@firecms/core 3.0.0-alpha.57 → 3.0.0-alpha.59

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.
Files changed (34) hide show
  1. package/dist/components/EntityCollectionTable/internal/default_entity_actions.d.ts +1 -0
  2. package/dist/{form/components → components}/LabelWithIcon.d.ts +1 -2
  3. package/dist/components/ReferenceWidget.d.ts +27 -0
  4. package/dist/components/index.d.ts +2 -0
  5. package/dist/form/components/index.d.ts +0 -1
  6. package/dist/index.es.js +882 -789
  7. package/dist/index.es.js.map +1 -1
  8. package/dist/index.umd.js +5 -5
  9. package/dist/index.umd.js.map +1 -1
  10. package/dist/types/firecms_context.d.ts +9 -9
  11. package/package.json +3 -3
  12. package/src/components/EntityCollectionTable/internal/default_entity_actions.tsx +17 -2
  13. package/src/{form/components → components}/LabelWithIcon.tsx +1 -2
  14. package/src/components/ReferenceWidget.tsx +143 -0
  15. package/src/components/index.tsx +2 -0
  16. package/src/form/components/index.tsx +0 -1
  17. package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +2 -1
  18. package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +2 -1
  19. package/src/form/field_bindings/BlockFieldBinding.tsx +2 -1
  20. package/src/form/field_bindings/DateTimeFieldBinding.tsx +2 -1
  21. package/src/form/field_bindings/KeyValueFieldBinding.tsx +3 -1
  22. package/src/form/field_bindings/MapFieldBinding.tsx +2 -1
  23. package/src/form/field_bindings/MarkdownFieldBinding.tsx +2 -1
  24. package/src/form/field_bindings/MultiSelectBinding.tsx +2 -1
  25. package/src/form/field_bindings/ReadOnlyFieldBinding.tsx +2 -1
  26. package/src/form/field_bindings/ReferenceFieldBinding.tsx +2 -1
  27. package/src/form/field_bindings/RepeatFieldBinding.tsx +2 -1
  28. package/src/form/field_bindings/SelectFieldBinding.tsx +2 -1
  29. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +2 -1
  30. package/src/form/field_bindings/SwitchFieldBinding.tsx +1 -1
  31. package/src/form/field_bindings/TextFieldBinding.tsx +2 -1
  32. package/src/types/firecms_context.tsx +10 -11
  33. package/dist/form/components/ReferenceWidget.d.ts +0 -24
  34. package/src/form/components/ReferenceWidget.tsx +0 -255
package/dist/index.es.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as r, jsxs as E, Fragment as G } from "react/jsx-runtime";
2
2
  import * as Rn from "react";
3
- import F, { useState as D, useEffect as V, useContext as Ye, useCallback as w, useMemo as ae, useRef as ue, createContext as ri, createElement as Oo, createRef as Go, forwardRef as Vo, useLayoutEffect as Pn, useDeferredValue as Yo } from "react";
3
+ import F, { useState as D, useEffect as V, useContext as Ye, useCallback as w, useMemo as le, useRef as ue, createContext as ri, createElement as Oo, createRef as Go, forwardRef as Vo, useLayoutEffect as Pn, useDeferredValue as Yo } from "react";
4
4
  import { SnackbarProvider as zo, useSnackbar as Uo } from "notistack";
5
5
  import wr from "object-hash";
6
6
  import { getIn as Mn, Field as $o, FastField as ii, useFormikContext as oi, ErrorMessage as jo, Formik as li, Form as ai, setIn as Lo } from "formik";
7
- import { CHIP_COLORS as Tn, CircleIcon as si, FunctionsIcon as _o, iconKeys as Wo, Icon as ci, coolIconKeys as Er, Tooltip as be, ErrorIcon as Ai, Typography as q, IconButton as se, ContentCopyIcon as Kt, OpenInNewIcon as cn, DescriptionIcon as Jo, Skeleton as Ve, Chip as Wn, cn as X, defaultBorderMixin as xe, KeyboardTabIcon as Jn, Checkbox as di, Markdown as An, TextareaAutosize as Ho, MultiSelect as ui, MultiSelectItem as fi, Select as Xe, SelectItem as Ke, BooleanSwitch as qo, DateTimeField as zt, paperMixin as dn, ErrorOutlineIcon as Zo, EditIcon as Xo, Button as Ae, useOutsideAlerter as Ko, RemoveCircleIcon as el, CircularProgress as un, Badge as Br, ArrowUpwardIcon as wn, Popover as Hn, FilterListIcon as tl, AssignmentIcon as nl, Menu as Ut, MoreVertIcon as mi, MenuItem as Ie, FilterListOffIcon as rl, SearchBar as gi, TextField as ct, ClearIcon as Mt, BooleanSwitchWithLabel as $t, Dialog as qn, DialogContent as Zn, DialogActions as xt, AddIcon as At, DeleteIcon as On, InfoIcon as il, CloseIcon as hi, ExpandablePanel as ut, RemoveIcon as en, fieldBackgroundMixin as pi, fieldBackgroundDisabledMixin as vi, fieldBackgroundHoverMixin as Xn, focusedMixin as xr, Collapse as bi, ArrowDropDownIcon as yi, useInjectStyles as ol, FileCopyIcon as ll, SearchIcon as al, Card as sl, StarIcon as wi, StarBorderIcon as Ei, ArrowForwardIcon as cl, Container as Al, LoadingButton as dl, Avatar as Cr, DarkModeIcon as ul, LightModeIcon as fl, LogoutIcon as ml, Tab as En, Tabs as gl, Sheet as Bi, CenteredView as kr, MenuIcon as Ir, ChevronLeftIcon as hl, ShortTextIcon as pl, SubjectIcon as vl, FormatQuoteIcon as bl, HttpIcon as yl, EmailIcon as wl, ListIcon as El, ListAltIcon as Bl, NumbersIcon as xl, FormatListNumberedIcon as Sr, UploadFileIcon as Cl, DriveFolderUploadIcon as kl, LinkIcon as Il, AddLinkIcon as Sl, FlagIcon as Nl, ScheduleIcon as Fl, BallotIcon as Nr, RepeatIcon as Fr, ViewStreamIcon as Ql } from "@firecms/ui";
7
+ import { CHIP_COLORS as Tn, CircleIcon as si, FunctionsIcon as _o, iconKeys as Wo, Icon as ci, coolIconKeys as Er, Tooltip as ye, ErrorIcon as Ai, Typography as q, IconButton as se, ContentCopyIcon as en, OpenInNewIcon as An, DescriptionIcon as Jo, Skeleton as Ve, Chip as Wn, cn as X, defaultBorderMixin as xe, KeyboardTabIcon as Jn, Checkbox as di, Markdown as dn, TextareaAutosize as Ho, MultiSelect as ui, MultiSelectItem as fi, Select as Ke, SelectItem as et, BooleanSwitch as qo, DateTimeField as zt, paperMixin as un, ErrorOutlineIcon as Zo, EditIcon as Xo, Button as Ae, useOutsideAlerter as Ko, RemoveCircleIcon as el, CircularProgress as fn, Badge as Br, ArrowUpwardIcon as wn, Popover as Hn, FilterListIcon as tl, AssignmentIcon as nl, Menu as Ut, MoreVertIcon as mi, MenuItem as Ie, FilterListOffIcon as rl, SearchBar as gi, TextField as At, ClearIcon as Mt, BooleanSwitchWithLabel as $t, Dialog as qn, DialogContent as Zn, DialogActions as xt, AddIcon as dt, DeleteIcon as On, InfoIcon as il, CloseIcon as hi, ExpandablePanel as ft, RemoveIcon as tn, fieldBackgroundMixin as pi, fieldBackgroundDisabledMixin as vi, fieldBackgroundHoverMixin as Xn, focusedMixin as xr, Collapse as bi, ArrowDropDownIcon as yi, useInjectStyles as ol, FileCopyIcon as ll, SearchIcon as al, Card as sl, StarIcon as wi, StarBorderIcon as Ei, ArrowForwardIcon as cl, Container as Al, LoadingButton as dl, Avatar as Cr, DarkModeIcon as ul, LightModeIcon as fl, LogoutIcon as ml, Tab as En, Tabs as gl, Sheet as Bi, CenteredView as kr, MenuIcon as Ir, ChevronLeftIcon as hl, ShortTextIcon as pl, SubjectIcon as vl, FormatQuoteIcon as bl, HttpIcon as yl, EmailIcon as wl, ListIcon as El, ListAltIcon as Bl, NumbersIcon as xl, FormatListNumberedIcon as Sr, UploadFileIcon as Cl, DriveFolderUploadIcon as kl, LinkIcon as Il, AddLinkIcon as Sl, FlagIcon as Nl, ScheduleIcon as Fl, BallotIcon as Nr, RepeatIcon as Fr, ViewStreamIcon as Ql } from "@firecms/ui";
8
8
  export * from "@firecms/ui";
9
- import { useNavigate as fn, useLocation as jt, Link as Kn, UNSAFE_NavigationContext as Dl, NavLink as Rl, Route as qt, Routes as Pl } from "react-router-dom";
9
+ import { useNavigate as mn, useLocation as jt, Link as Kn, UNSAFE_NavigationContext as Dl, NavLink as Rl, Route as Zt, Routes as Pl } from "react-router-dom";
10
10
  import { format as Ml } from "date-fns";
11
11
  import * as xi from "date-fns/locale";
12
12
  import me from "react-fast-compare";
@@ -16,7 +16,7 @@ import { DragDropContext as Ci, Droppable as ki, Draggable as Ii } from "@hello-
16
16
  import { useDropzone as Si } from "react-dropzone";
17
17
  import Ol from "react-image-file-resizer";
18
18
  import Gl from "markdown-it";
19
- import Zt, { Plugins as Bn } from "react-markdown-editor-lite";
19
+ import Xt, { Plugins as Bn } from "react-markdown-editor-lite";
20
20
  import * as Qe from "yup";
21
21
  import { registerLocale as Vl, setDefaultLocale as Yl } from "react-datepicker";
22
22
  import * as zl from "js-search";
@@ -102,7 +102,7 @@ function rr(e) {
102
102
  i.push(t.slice(0, o).join("/"));
103
103
  return i;
104
104
  }
105
- class Je {
105
+ class je {
106
106
  /**
107
107
  * ID of the entity
108
108
  */
@@ -141,13 +141,13 @@ const _l = (e, ...t) => ({
141
141
  function xn(e) {
142
142
  return e && typeof e == "object" && !Array.isArray(e);
143
143
  }
144
- function je(e, t) {
144
+ function Le(e, t) {
145
145
  const n = xn(e), i = n ? { ...e } : e;
146
146
  return n && xn(t) && Object.keys(t).forEach((o) => {
147
- xn(t[o]) ? o in e ? i[o] = je(e[o], t[o]) : Object.assign(i, { [o]: t[o] }) : Object.assign(i, { [o]: t[o] });
147
+ xn(t[o]) ? o in e ? i[o] = Le(e[o], t[o]) : Object.assign(i, { [o]: t[o] }) : Object.assign(i, { [o]: t[o] });
148
148
  }), i;
149
149
  }
150
- function dt(e, t) {
150
+ function ut(e, t) {
151
151
  if (e && typeof e == "object") {
152
152
  if (t in e)
153
153
  return e[t];
@@ -155,7 +155,7 @@ function dt(e, t) {
155
155
  let n = t.split(/[.[]/);
156
156
  t.includes("[") && (n = n.map((s) => s.replace("]", "")));
157
157
  const i = n[0], o = Array.isArray(e[i]) && !isNaN(parseInt(n[1])), l = o ? e[i][parseInt(n[1])] : e[i], a = n.slice(o ? 2 : 1).join(".");
158
- return a === "" ? l : dt(l, a);
158
+ return a === "" ? l : ut(l, a);
159
159
  }
160
160
  }
161
161
  }
@@ -211,17 +211,17 @@ function Wl(e, t) {
211
211
  l in o && (n(o[l]) && n(t[l]) ? o[l] = Wl(o[l], t[l]) : o[l] === t[l] && (i(o) ? o.splice(l, 1) : delete o[l]));
212
212
  }), o;
213
213
  }
214
- const Tt = "type", tn = "value";
214
+ const Tt = "type", nn = "value";
215
215
  function Lt(e) {
216
216
  return e.readOnly || e.dataType === "date" && e.autoValue ? !0 : e.dataType === "reference" ? !e.path : !1;
217
217
  }
218
- function mn(e) {
218
+ function gn(e) {
219
219
  return typeof e.disabled == "object" && !!e.disabled.hidden;
220
220
  }
221
221
  function Re(e) {
222
222
  return typeof e == "function";
223
223
  }
224
- function nn(e) {
224
+ function rn(e) {
225
225
  return e ? Object.entries(e).map(([t, n]) => {
226
226
  const i = or(n);
227
227
  return i === void 0 ? {} : { [t]: i };
@@ -230,7 +230,7 @@ function nn(e) {
230
230
  function or(e) {
231
231
  if (!Re(e))
232
232
  if (e.dataType === "map" && e.properties) {
233
- const t = nn(e.properties);
233
+ const t = rn(e.properties);
234
234
  return Object.keys(t).length === 0 ? void 0 : t;
235
235
  } else
236
236
  return e.defaultValue ? e.defaultValue : Di(e.dataType);
@@ -263,8 +263,8 @@ function OA(e, t) {
263
263
  e && e[i] !== void 0 ? n[i] = e[i] : o.validation?.required && (n[i] = null);
264
264
  }), n;
265
265
  }
266
- function yt(e) {
267
- return new Je(e.id, e.path);
266
+ function at(e) {
267
+ return new je(e.id, e.path);
268
268
  }
269
269
  function Ri(e, t, n) {
270
270
  const i = Object.entries(t).map(([l, a]) => {
@@ -283,7 +283,7 @@ function Gn(e, t, n) {
283
283
  if (t.of && Array.isArray(e))
284
284
  i = e.map((o) => Gn(o, t.of, n));
285
285
  else if (t.oneOf && Array.isArray(e)) {
286
- const o = t.oneOf?.typeField ?? Tt, l = t.oneOf?.valueField ?? tn;
286
+ const o = t.oneOf?.typeField ?? Tt, l = t.oneOf?.valueField ?? nn;
287
287
  i = e.map((a) => {
288
288
  if (a === null)
289
289
  return null;
@@ -311,7 +311,7 @@ function Mi(e) {
311
311
  const t = Pi(e), n = Object.keys(Tn), i = t % n.length;
312
312
  return Tn[n[i]];
313
313
  }
314
- function ft(e) {
314
+ function mt(e) {
315
315
  return Array.isArray(e) ? e : Object.entries(e).map(([t, n]) => typeof n == "string" ? {
316
316
  id: t,
317
317
  label: n
@@ -351,7 +351,7 @@ const Ge = ({
351
351
  userConfigPersistence: l,
352
352
  fields: a
353
353
  }) => {
354
- const s = l?.getCollectionConfig(t), c = dt(s, "properties"), A = nn(e.properties), u = i ?? A, m = o ?? i ?? A, f = Object.entries(e.properties).map(([h, p]) => {
354
+ const s = l?.getCollectionConfig(t), c = ut(s, "properties"), A = rn(e.properties), u = i ?? A, m = o ?? i ?? A, f = Object.entries(e.properties).map(([h, p]) => {
355
355
  const v = u ? Mn(u, h) : void 0, b = Te({
356
356
  propertyKey: h,
357
357
  propertyOrBuilder: p,
@@ -365,7 +365,7 @@ const Ge = ({
365
365
  return b ? {
366
366
  [h]: b
367
367
  } : {};
368
- }).filter((h) => h !== null).reduce((h, p) => ({ ...h, ...p }), {}), d = je(f, c), g = Object.entries(d).filter(([h, p]) => !!p?.dataType).map(([h, p]) => ({ [h]: p })).reduce((h, p) => ({ ...h, ...p }), {});
368
+ }).filter((h) => h !== null).reduce((h, p) => ({ ...h, ...p }), {}), d = Le(f, c), g = Object.entries(d).filter(([h, p]) => !!p?.dataType).map(([h, p]) => ({ [h]: p })).reduce((h, p) => ({ ...h, ...p }), {});
369
369
  return {
370
370
  ...e,
371
371
  properties: g,
@@ -416,7 +416,7 @@ function Te({
416
416
  properties: a
417
417
  };
418
418
  } else
419
- l.dataType === "array" ? o = mt({
419
+ l.dataType === "array" ? o = gt({
420
420
  property: l,
421
421
  propertyValue: t,
422
422
  fromBuilder: n,
@@ -444,7 +444,7 @@ function Te({
444
444
  propertyValue: t,
445
445
  ...i
446
446
  });
447
- c && (o = je(c, o));
447
+ c && (o = Le(c, o));
448
448
  }
449
449
  }
450
450
  return o ? {
@@ -452,7 +452,7 @@ function Te({
452
452
  resolved: !0
453
453
  } : null;
454
454
  }
455
- function mt({
455
+ function gt({
456
456
  propertyKey: e,
457
457
  property: t,
458
458
  propertyValue: n,
@@ -535,7 +535,7 @@ function Ti({
535
535
  ...n
536
536
  }) {
537
537
  return Object.entries(e).map(([i, o]) => {
538
- const l = t && typeof t == "object" ? dt(t, i) : void 0, a = Te({
538
+ const l = t && typeof t == "object" ? ut(t, i) : void 0, a = Te({
539
539
  propertyKey: i,
540
540
  propertyOrBuilder: o,
541
541
  propertyValue: l,
@@ -550,7 +550,7 @@ function Oi(e, t) {
550
550
  return typeof e.enumValues == "object" ? {
551
551
  ...e,
552
552
  resolved: !0,
553
- enumValues: ft(e.enumValues)?.filter((n) => n && n.id && n.label) ?? [],
553
+ enumValues: mt(e.enumValues)?.filter((n) => n && n.id && n.label) ?? [],
554
554
  fromBuilder: t ?? !1
555
555
  } : e;
556
556
  }
@@ -734,14 +734,14 @@ function ke(e, t = "small", n = {}) {
734
734
  function WA(e, t) {
735
735
  return Re(e) ? "#888" : vr(e, t)?.color ?? "#666";
736
736
  }
737
- function bt(e, t) {
737
+ function yt(e, t) {
738
738
  if (typeof e == "object") {
739
739
  if (t in e)
740
740
  return e[t];
741
741
  if (t.includes(".")) {
742
742
  const n = t.split("."), i = e[n[0]];
743
743
  if (typeof i == "object" && i.dataType === "map" && i.properties)
744
- return bt(i.properties, n.slice(1).join("."));
744
+ return yt(i.properties, n.slice(1).join("."));
745
745
  }
746
746
  }
747
747
  }
@@ -764,7 +764,7 @@ function ia(e, t) {
764
764
  return e;
765
765
  const n = {};
766
766
  return t.filter(Boolean).forEach((i) => {
767
- const o = bt(e, i);
767
+ const o = yt(e, i);
768
768
  typeof o == "object" && o.dataType === "map" && o.properties && (n[i] = {
769
769
  ...o,
770
770
  properties: ia(o.properties, o.propertiesOrder ?? [])
@@ -774,16 +774,16 @@ function ia(e, t) {
774
774
  function HA(e) {
775
775
  return e.propertiesOrder ? e.propertiesOrder : [...Object.keys(e.properties), ...(e.additionalFields ?? []).map((t) => t.key)];
776
776
  }
777
- const gn = {
777
+ const hn = {
778
778
  read: !0,
779
779
  edit: !0,
780
780
  create: !0,
781
781
  delete: !0
782
782
  };
783
- function hn(e, t, n, i) {
783
+ function pn(e, t, n, i) {
784
784
  const o = e.permissions;
785
785
  if (o === void 0)
786
- return gn;
786
+ return hn;
787
787
  if (typeof o == "object")
788
788
  return o;
789
789
  if (typeof o == "function")
@@ -797,28 +797,28 @@ function hn(e, t, n, i) {
797
797
  throw console.error("Permissions:", o), Error("New type of permission added and not mapped");
798
798
  }
799
799
  function Ui(e, t, n, i) {
800
- return hn(e, t, n, i).edit ?? gn.edit;
800
+ return pn(e, t, n, i).edit ?? hn.edit;
801
801
  }
802
802
  function Gt(e, t, n, i) {
803
- return hn(e, t, n, i).create ?? gn.create;
803
+ return pn(e, t, n, i).create ?? hn.create;
804
804
  }
805
805
  function cr(e, t, n, i) {
806
- return hn(e, t, n, i).delete ?? gn.delete;
806
+ return pn(e, t, n, i).delete ?? hn.delete;
807
807
  }
808
808
  function oa(e, t) {
809
- if (e && (e = Vn(e), e in rn))
810
- return e in rn ? /* @__PURE__ */ r(ci, { iconKey: e, size: "medium", className: t }) : void 0;
809
+ if (e && (e = Vn(e), e in on))
810
+ return e in on ? /* @__PURE__ */ r(ci, { iconKey: e, size: "medium", className: t }) : void 0;
811
811
  }
812
812
  function zn(e, t) {
813
813
  const n = oa(e.icon, t);
814
814
  if (e?.icon && n)
815
815
  return n;
816
816
  let i = Vn(("singularName" in e ? e.singularName : void 0) ?? e.name), o;
817
- i in rn && (o = i), o || (i = Vn(e.path), i in rn && (o = i));
817
+ i in on && (o = i), o || (i = Vn(e.path), i in on && (o = i));
818
818
  const l = Er.length;
819
819
  return o || (o = Er[Pi(e.path) % l]), /* @__PURE__ */ r(ci, { iconKey: o, size: "medium", className: t });
820
820
  }
821
- const rn = Wo.reduce((e, t) => (e[t] = t, e), {});
821
+ const on = Wo.reduce((e, t) => (e[t] = t, e), {});
822
822
  function qA(e, t) {
823
823
  if (t !== void 0 && t === 1)
824
824
  return e;
@@ -1043,7 +1043,7 @@ function da(e, t, n = [], i) {
1043
1043
  const d = e.properties[f];
1044
1044
  d ? l[f] = $i(d, t.properties[f]) : l[f] = t.properties[f];
1045
1045
  });
1046
- const a = je(e, t), s = Tr(e), c = Tr(t), A = [.../* @__PURE__ */ new Set([...c, ...s])], u = [.../* @__PURE__ */ new Set([...e.entityViews ?? [], ...t.entityViews ?? []])];
1046
+ const a = Le(e, t), s = Tr(e), c = Tr(t), A = [.../* @__PURE__ */ new Set([...c, ...s])], u = [.../* @__PURE__ */ new Set([...e.entityViews ?? [], ...t.entityViews ?? []])];
1047
1047
  let m = {
1048
1048
  ...a,
1049
1049
  subcollections: o,
@@ -1064,7 +1064,7 @@ function $i(e, t) {
1064
1064
  if (Re(t))
1065
1065
  return t;
1066
1066
  {
1067
- const n = je(e, t), i = !!e.editable, o = !!t.editable;
1067
+ const n = Le(e, t), i = !!e.editable, o = !!t.editable;
1068
1068
  if (t.dataType === "map" && t.properties) {
1069
1069
  const l = "properties" in e ? e.properties : {}, a = "properties" in t ? t.properties : {}, s = "propertiesOrder" in e && e.propertiesOrder ? e.propertiesOrder : Object.keys(l), c = "propertiesOrder" in t && t.propertiesOrder ? t.propertiesOrder : "properties" in t ? Object.keys(t.properties) : [], A = [.../* @__PURE__ */ new Set([...s, ...c])], u = { ...l };
1070
1070
  return Object.keys(t.properties).forEach((m) => {
@@ -1122,7 +1122,7 @@ function od(e) {
1122
1122
  function ld(e) {
1123
1123
  return e;
1124
1124
  }
1125
- const ua = "100vw", fa = "55vw", Or = "768px", ji = F.createContext({}), Le = () => Ye(ji), Li = F.createContext({}), ye = () => Ye(Li), gt = () => Ye(Ni), _i = F.createContext({}), pn = () => Ye(_i), Wi = F.createContext({}), ht = () => Ye(Wi), Ji = F.createContext({}), _t = () => Ye(Ji), pt = () => {
1125
+ const ua = "100vw", fa = "55vw", Or = "768px", ji = F.createContext({}), _e = () => Ye(ji), Li = F.createContext({}), he = () => Ye(Li), ht = () => Ye(Ni), _i = F.createContext({}), vn = () => Ye(_i), Wi = F.createContext({}), pt = () => Ye(Wi), Ji = F.createContext({}), _t = () => Ye(Ji), vt = () => {
1126
1126
  const {
1127
1127
  enqueueSnackbar: e,
1128
1128
  closeSnackbar: t
@@ -1140,7 +1140,7 @@ const ua = "100vw", fa = "55vw", Or = "768px", ji = F.createContext({}), Le = ()
1140
1140
  }, []), i = w(() => {
1141
1141
  t();
1142
1142
  }, []);
1143
- return ae(() => ({
1143
+ return le(() => ({
1144
1144
  open: n,
1145
1145
  close: i
1146
1146
  }), [n, i]);
@@ -1175,7 +1175,7 @@ const ua = "100vw", fa = "55vw", Or = "768px", ji = F.createContext({}), Le = ()
1175
1175
  ))
1176
1176
  ] });
1177
1177
  }, ga = () => Ye(qi), Zi = ri({}), te = () => {
1178
- const e = Ye(Zi), t = gt(), n = pn(), i = ht(), o = ye(), l = Le(), a = _t(), s = pt(), c = Ct(), A = ga();
1178
+ const e = Ye(Zi), t = ht(), n = vn(), i = pt(), o = he(), l = _e(), a = _t(), s = vt(), c = Ct(), A = ga();
1179
1179
  return {
1180
1180
  ...e,
1181
1181
  authController: t,
@@ -1197,25 +1197,25 @@ function ha({
1197
1197
  itemCount: o,
1198
1198
  searchString: l
1199
1199
  }) {
1200
- const a = Le(), c = ye().resolveAliasesFrom(e), A = i ? i[0] : void 0, u = i ? i[1] : void 0, m = te(), [f, d] = D([]), [g, h] = D(!1), [p, v] = D(), [b, y] = D(!1);
1200
+ const a = _e(), c = he().resolveAliasesFrom(e), A = i ? i[0] : void 0, u = i ? i[1] : void 0, m = te(), [f, d] = D([]), [g, h] = D(!1), [p, v] = D(), [b, y] = D(!1);
1201
1201
  return V(() => {
1202
1202
  h(!0);
1203
- const x = async (C) => {
1203
+ const B = async (C) => {
1204
1204
  if (t.callbacks?.onFetch)
1205
1205
  try {
1206
1206
  C = await Promise.all(
1207
- C.map((B) => t.callbacks.onFetch({
1207
+ C.map((x) => t.callbacks.onFetch({
1208
1208
  collection: t,
1209
1209
  path: c,
1210
- entity: B,
1210
+ entity: x,
1211
1211
  context: m
1212
1212
  }))
1213
1213
  );
1214
- } catch (B) {
1215
- console.error(B);
1214
+ } catch (x) {
1215
+ console.error(x);
1216
1216
  }
1217
- h(!1), v(void 0), d(C.map((B) => ({
1218
- ...B
1217
+ h(!1), v(void 0), d(C.map((x) => ({
1218
+ ...x
1219
1219
  // values: sanitizeData(e.values, resolvedCollection.properties)
1220
1220
  }))), y(!o || C.length < o);
1221
1221
  }, k = (C) => {
@@ -1224,7 +1224,7 @@ function ha({
1224
1224
  return a.listenCollection ? a.listenCollection({
1225
1225
  path: c,
1226
1226
  collection: t,
1227
- onUpdate: x,
1227
+ onUpdate: B,
1228
1228
  onError: k,
1229
1229
  searchString: l,
1230
1230
  filter: n,
@@ -1241,7 +1241,7 @@ function ha({
1241
1241
  startAfter: void 0,
1242
1242
  orderBy: A,
1243
1243
  order: u
1244
- }).then(x).catch(k), () => {
1244
+ }).then(B).catch(k), () => {
1245
1245
  });
1246
1246
  }, [c, o, u, A, n, l]), {
1247
1247
  data: f,
@@ -1257,7 +1257,7 @@ function Xi({
1257
1257
  collection: n,
1258
1258
  useCache: i = !1
1259
1259
  }) {
1260
- const o = Le(), a = ye().resolveAliasesFrom(e), s = te(), [c, A] = D(), [u, m] = D(!0), [f, d] = D();
1260
+ const o = _e(), a = he().resolveAliasesFrom(e), s = te(), [c, A] = D(), [u, m] = D(!0), [f, d] = D();
1261
1261
  return V(() => {
1262
1262
  m(!0);
1263
1263
  const g = async (p) => {
@@ -1501,8 +1501,8 @@ const eo = () => Ye(tr), ba = (e) => {
1501
1501
  u() && navigator.clipboard.writeText("");
1502
1502
  }, h = (b) => v("copy", typeof b == "object" ? void 0 : b), p = () => v("cut"), v = w(
1503
1503
  (b = "copy", y) => {
1504
- const x = l.current, k = x && (x.tagName === "INPUT" || x.tagName === "TEXTAREA"), C = l.current;
1505
- u() && !i && (y ? d(y) : x ? k ? (d(C.value), b === "cut" && (C.value = "")) : d(x.innerText) : m("Both the ref & text were undefined"));
1504
+ const B = l.current, k = B && (B.tagName === "INPUT" || B.tagName === "TEXTAREA"), C = l.current;
1505
+ u() && !i && (y ? d(y) : B ? k ? (d(C.value), b === "cut" && (C.value = "")) : d(B.innerText) : m("Both the ref & text were undefined"));
1506
1506
  },
1507
1507
  [i, d, m]
1508
1508
  );
@@ -1523,7 +1523,7 @@ const eo = () => Ye(tr), ba = (e) => {
1523
1523
  xl: 1280,
1524
1524
  "2xl": 1536,
1525
1525
  "3xl": 1920
1526
- }, _e = (e = "lg") => {
1526
+ }, We = (e = "lg") => {
1527
1527
  const [t, n] = D(!1);
1528
1528
  return V(() => {
1529
1529
  const i = () => {
@@ -1537,7 +1537,7 @@ const eo = () => Ye(tr), ba = (e) => {
1537
1537
  };
1538
1538
  function to(e) {
1539
1539
  return /* @__PURE__ */ r(
1540
- be,
1540
+ ye,
1541
1541
  {
1542
1542
  ...e,
1543
1543
  tooltipClassName: "!text-red-500 bg-red-50",
@@ -1592,7 +1592,7 @@ function wt(e) {
1592
1592
  return Ba;
1593
1593
  throw Error("Thumbnail size not mapped");
1594
1594
  }
1595
- function it(e) {
1595
+ function ot(e) {
1596
1596
  switch (e) {
1597
1597
  case "xs":
1598
1598
  case "s":
@@ -1610,7 +1610,7 @@ function xa({
1610
1610
  size: e,
1611
1611
  url: t
1612
1612
  }) {
1613
- const [n, i] = D(!1), o = ae(() => wt(e), [e]);
1613
+ const [n, i] = D(!1), o = le(() => wt(e), [e]);
1614
1614
  return e === "tiny" ? /* @__PURE__ */ r(
1615
1615
  "img",
1616
1616
  {
@@ -1649,7 +1649,7 @@ function xa({
1649
1649
  }
1650
1650
  ),
1651
1651
  n && /* @__PURE__ */ E(G, { children: [
1652
- navigator && /* @__PURE__ */ r(be, { title: "Copy url to clipboard", children: /* @__PURE__ */ r(
1652
+ navigator && /* @__PURE__ */ r(ye, { title: "Copy url to clipboard", children: /* @__PURE__ */ r(
1653
1653
  "div",
1654
1654
  {
1655
1655
  className: "rounded-full absolute bottom-[-4px] right-8",
@@ -1660,7 +1660,7 @@ function xa({
1660
1660
  size: "small",
1661
1661
  onClick: (a) => (a.stopPropagation(), a.preventDefault(), navigator.clipboard.writeText(t)),
1662
1662
  children: /* @__PURE__ */ r(
1663
- Kt,
1663
+ en,
1664
1664
  {
1665
1665
  className: "text-gray-500",
1666
1666
  size: "small"
@@ -1670,7 +1670,7 @@ function xa({
1670
1670
  )
1671
1671
  }
1672
1672
  ) }),
1673
- /* @__PURE__ */ r(be, { title: "Open image in new tab", children: /* @__PURE__ */ r(
1673
+ /* @__PURE__ */ r(ye, { title: "Open image in new tab", children: /* @__PURE__ */ r(
1674
1674
  se,
1675
1675
  {
1676
1676
  variant: "filled",
@@ -1686,7 +1686,7 @@ function xa({
1686
1686
  size: "small",
1687
1687
  onClick: (a) => a.stopPropagation(),
1688
1688
  children: /* @__PURE__ */ r(
1689
- cn,
1689
+ An,
1690
1690
  {
1691
1691
  className: "text-gray-500",
1692
1692
  size: "small"
@@ -1700,7 +1700,7 @@ function xa({
1700
1700
  "image_preview_" + t
1701
1701
  );
1702
1702
  }
1703
- function on({
1703
+ function ln({
1704
1704
  url: e,
1705
1705
  previewType: t,
1706
1706
  size: n,
@@ -1744,7 +1744,7 @@ function on({
1744
1744
  },
1745
1745
  children: [
1746
1746
  /* @__PURE__ */ r(Jo, { className: "flex-grow" }),
1747
- i && /* @__PURE__ */ r(be, { title: i, children: /* @__PURE__ */ r(
1747
+ i && /* @__PURE__ */ r(ye, { title: i, children: /* @__PURE__ */ r(
1748
1748
  q,
1749
1749
  {
1750
1750
  className: "max-w-full truncate rtl text-left",
@@ -1765,7 +1765,7 @@ function on({
1765
1765
  },
1766
1766
  target: "_blank",
1767
1767
  children: [
1768
- /* @__PURE__ */ r(cn, { size: "small" }),
1768
+ /* @__PURE__ */ r(An, { size: "small" }),
1769
1769
  e
1770
1770
  ]
1771
1771
  }
@@ -1779,7 +1779,7 @@ function Vt({
1779
1779
  let n;
1780
1780
  if (e.dataType === "string") {
1781
1781
  const i = e;
1782
- i.url ? n = Fa(i, t) : i.storage ? n = no(t) : n = ot();
1782
+ i.url ? n = Fa(i, t) : i.storage ? n = no(t) : n = lt();
1783
1783
  } else if (e.dataType === "array") {
1784
1784
  const i = e;
1785
1785
  i.of && (Array.isArray(i.of) ? n = /* @__PURE__ */ E(G, { children: [
@@ -1787,7 +1787,7 @@ function Vt({
1787
1787
  " "
1788
1788
  ] }) : i.of.dataType === "map" && i.of.properties ? n = ka(i.of.properties, t, i.of.previewProperties) : i.of.dataType === "string" ? i.of.enumValues ? n = Sa() : i.of.storage ? n = kn(i.of) : n = Ia() : n = kn(i.of));
1789
1789
  } else
1790
- e.dataType === "map" ? n = Ca(e, t) : e.dataType === "date" ? n = ot() : e.dataType === "reference" ? n = Na() : (e.dataType, n = ot());
1790
+ e.dataType === "map" ? n = Ca(e, t) : e.dataType === "date" ? n = lt() : e.dataType === "reference" ? n = Na() : (e.dataType, n = lt());
1791
1791
  return n || null;
1792
1792
  }
1793
1793
  function Ca(e, t) {
@@ -1858,11 +1858,11 @@ function ka(e, t, n) {
1858
1858
  ) }, `table_${o}_${l}`)) }) });
1859
1859
  }
1860
1860
  function Ia() {
1861
- return /* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: [0, 1].map((e, t) => ot(t)) });
1861
+ return /* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: [0, 1].map((e, t) => lt(t)) });
1862
1862
  }
1863
1863
  function Sa() {
1864
1864
  return /* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: [0, 1].map(
1865
- (e, t) => /* @__PURE__ */ r(G, { children: ot(t) })
1865
+ (e, t) => /* @__PURE__ */ r(G, { children: lt(t) })
1866
1866
  ) });
1867
1867
  }
1868
1868
  function kn(e, t = 0) {
@@ -1902,7 +1902,7 @@ function Fa(e, t = "medium") {
1902
1902
  display: "flex"
1903
1903
  }, children: [
1904
1904
  ro(),
1905
- ot()
1905
+ lt()
1906
1906
  ] }) : Qa(t);
1907
1907
  }
1908
1908
  function Qa(e) {
@@ -1914,7 +1914,7 @@ function Qa(e) {
1914
1914
  }
1915
1915
  );
1916
1916
  }
1917
- function ot(e, t = 120) {
1917
+ function lt(e, t = 120) {
1918
1918
  return /* @__PURE__ */ r(Ve, { width: t }, `skeleton_${e}`);
1919
1919
  }
1920
1920
  function sd(e) {
@@ -1952,7 +1952,7 @@ function Pa({
1952
1952
  return null;
1953
1953
  const c = a?.metadata ? Ma(a?.metadata.contentType) : void 0, A = c?.startsWith("image") ? "image" : c?.startsWith("video") ? "video" : c?.startsWith("audio") ? "audio" : "file";
1954
1954
  return a?.fileNotFound ? /* @__PURE__ */ r(Ce, { error: "File not found" }) : a?.url ? /* @__PURE__ */ r(
1955
- on,
1955
+ ln,
1956
1956
  {
1957
1957
  previewType: A,
1958
1958
  url: a.url,
@@ -1973,7 +1973,7 @@ function De({
1973
1973
  }) {
1974
1974
  if (!e)
1975
1975
  return null;
1976
- const l = ft(e), a = t !== void 0 ? lr(l, t) : void 0, s = ql(a), c = Hl(l, t);
1976
+ const l = mt(e), a = t !== void 0 ? lr(l, t) : void 0, s = ql(a), c = Hl(l, t);
1977
1977
  return /* @__PURE__ */ E(
1978
1978
  Wn,
1979
1979
  {
@@ -2018,7 +2018,7 @@ function io({
2018
2018
  } else {
2019
2019
  if (n.url)
2020
2020
  return /* @__PURE__ */ r(
2021
- on,
2021
+ ln,
2022
2022
  {
2023
2023
  size: i,
2024
2024
  url: t,
@@ -2045,7 +2045,7 @@ function Vr({
2045
2045
  entity: i,
2046
2046
  size: o
2047
2047
  }) {
2048
- const l = te(), a = mt({
2048
+ const l = te(), a = gt({
2049
2049
  propertyKey: e,
2050
2050
  property: n,
2051
2051
  propertyValue: t,
@@ -2081,9 +2081,9 @@ function Vr({
2081
2081
  }
2082
2082
  ) });
2083
2083
  }
2084
- const lt = Rn.memo(function(t) {
2084
+ const He = Rn.memo(function(t) {
2085
2085
  const n = t.reference;
2086
- return n instanceof Je ? /* @__PURE__ */ r(Oa, { ...t }) : (console.warn("Reference preview received value of type", typeof n), /* @__PURE__ */ r(
2086
+ return n instanceof je ? /* @__PURE__ */ r(Oa, { ...t }) : (console.warn("Reference preview received value of type", typeof n), /* @__PURE__ */ r(
2087
2087
  Ar,
2088
2088
  {
2089
2089
  onClick: t.onClick,
@@ -2110,7 +2110,7 @@ function Oa({
2110
2110
  onClick: l,
2111
2111
  allowEntityNavigation: a = !0
2112
2112
  }) {
2113
- const s = te(), A = ye().getCollection(t.path);
2113
+ const s = te(), A = he().getCollection(t.path);
2114
2114
  if (!A) {
2115
2115
  if (s.components?.missingReference)
2116
2116
  return /* @__PURE__ */ r(s.components.missingReference, { path: t.path });
@@ -2131,7 +2131,7 @@ function Oa({
2131
2131
  );
2132
2132
  }
2133
2133
  function Ga({ reference: e, collection: t, previewProperties: n, size: i, disabled: o, allowEntityNavigation: l, onClick: a, onHover: s }) {
2134
- const c = te(), A = ht(), {
2134
+ const c = te(), A = pt(), {
2135
2135
  entity: u,
2136
2136
  dataLoading: m,
2137
2137
  dataLoadingError: f
@@ -2142,12 +2142,12 @@ function Ga({ reference: e, collection: t, previewProperties: n, size: i, disabl
2142
2142
  useCache: !0
2143
2143
  });
2144
2144
  u && Yr.set(e.pathWithId, u);
2145
- const d = u ?? Yr.get(e.pathWithId), g = ae(() => Ge({
2145
+ const d = u ?? Yr.get(e.pathWithId), g = le(() => Ge({
2146
2146
  collection: t,
2147
2147
  path: e.path,
2148
2148
  values: d?.values,
2149
2149
  fields: c.propertyConfigs
2150
- }), [t]), h = ae(
2150
+ }), [t]), h = le(
2151
2151
  () => la(g, c.propertyConfigs, n, i === "small" || i === "medium" ? 3 : 1),
2152
2152
  [n, g, i]
2153
2153
  );
@@ -2182,7 +2182,7 @@ function Ga({ reference: e, collection: t, previewProperties: n, size: i, disabl
2182
2182
  Se,
2183
2183
  {
2184
2184
  propertyKey: v,
2185
- value: dt(d.values, v),
2185
+ value: ut(d.values, v),
2186
2186
  property: b,
2187
2187
  entity: d,
2188
2188
  size: "tiny"
@@ -2201,7 +2201,7 @@ function Ga({ reference: e, collection: t, previewProperties: n, size: i, disabl
2201
2201
  ]
2202
2202
  }
2203
2203
  ),
2204
- /* @__PURE__ */ r("div", { className: `my-${i === "tiny" ? 2 : 4}`, children: !o && d && l && /* @__PURE__ */ r(be, { title: `See details for ${d.id}`, children: /* @__PURE__ */ r(
2204
+ /* @__PURE__ */ r("div", { className: `my-${i === "tiny" ? 2 : 4}`, children: !o && d && l && /* @__PURE__ */ r(ye, { title: `See details for ${d.id}`, children: /* @__PURE__ */ r(
2205
2205
  se,
2206
2206
  {
2207
2207
  color: "inherit",
@@ -2276,7 +2276,7 @@ function Va({
2276
2276
  property: n,
2277
2277
  size: i
2278
2278
  }) {
2279
- const o = te(), l = mt({
2279
+ const o = te(), l = gt({
2280
2280
  propertyKey: e,
2281
2281
  property: n,
2282
2282
  propertyValue: t,
@@ -2295,7 +2295,7 @@ function Va({
2295
2295
  {
2296
2296
  className: "mt-1 mb-1 w-full",
2297
2297
  children: /* @__PURE__ */ r(
2298
- lt,
2298
+ He,
2299
2299
  {
2300
2300
  disabled: !A.path,
2301
2301
  previewProperties: A.previewProperties,
@@ -2316,7 +2316,7 @@ function Ya({
2316
2316
  property: i,
2317
2317
  size: o
2318
2318
  }) {
2319
- const l = te(), a = mt({
2319
+ const l = te(), a = gt({
2320
2320
  propertyKey: e,
2321
2321
  property: i,
2322
2322
  propertyValue: n,
@@ -2391,7 +2391,7 @@ function za({
2391
2391
  entity: i,
2392
2392
  size: o
2393
2393
  }) {
2394
- const l = te(), a = mt({
2394
+ const l = te(), a = gt({
2395
2395
  propertyKey: e,
2396
2396
  property: n,
2397
2397
  propertyValue: t,
@@ -2424,7 +2424,7 @@ function Ua({
2424
2424
  size: i,
2425
2425
  entity: o
2426
2426
  }) {
2427
- const l = te(), a = mt({
2427
+ const l = te(), a = gt({
2428
2428
  propertyKey: e,
2429
2429
  property: n,
2430
2430
  propertyValue: t,
@@ -2437,7 +2437,7 @@ function Ua({
2437
2437
  const s = t;
2438
2438
  if (!s)
2439
2439
  return null;
2440
- const c = i === "medium" ? "small" : "tiny", A = a.oneOf.typeField ?? Tt, u = a.oneOf.valueField ?? tn, m = a.oneOf.properties;
2440
+ const c = i === "medium" ? "small" : "tiny", A = a.oneOf.typeField ?? Tt, u = a.oneOf.valueField ?? nn, m = a.oneOf.properties;
2441
2441
  return /* @__PURE__ */ r("div", { className: "flex flex-col", children: s && s.map(
2442
2442
  (f, d) => /* @__PURE__ */ r(
2443
2443
  F.Fragment,
@@ -2619,7 +2619,7 @@ function _a({
2619
2619
  size: n
2620
2620
  }) {
2621
2621
  if (t.enumValues) {
2622
- const i = e, o = ft(t.enumValues);
2622
+ const i = e, o = mt(t.enumValues);
2623
2623
  return o ? /* @__PURE__ */ r(
2624
2624
  De,
2625
2625
  {
@@ -2669,13 +2669,13 @@ function Se(e) {
2669
2669
  else if (u.dataType === "string") {
2670
2670
  const m = u;
2671
2671
  typeof l == "string" ? m.url ? typeof m.url == "boolean" ? n = /* @__PURE__ */ r(
2672
- on,
2672
+ ln,
2673
2673
  {
2674
2674
  size: e.size,
2675
2675
  url: l
2676
2676
  }
2677
2677
  ) : typeof m.url == "string" && (n = /* @__PURE__ */ r(
2678
- on,
2678
+ ln,
2679
2679
  {
2680
2680
  size: e.size,
2681
2681
  url: l,
@@ -2688,14 +2688,14 @@ function Se(e) {
2688
2688
  size: e.size,
2689
2689
  storagePathOrDownloadUrl: l
2690
2690
  }
2691
- ) : m.markdown ? n = /* @__PURE__ */ r(An, { source: l }) : n = /* @__PURE__ */ r(
2691
+ ) : m.markdown ? n = /* @__PURE__ */ r(dn, { source: l }) : n = /* @__PURE__ */ r(
2692
2692
  io,
2693
2693
  {
2694
2694
  ...e,
2695
2695
  property: m,
2696
2696
  value: l
2697
2697
  }
2698
- ) : n = st(o, u.dataType, l);
2698
+ ) : n = ct(o, u.dataType, l);
2699
2699
  } else if (u.dataType === "array")
2700
2700
  if (l instanceof Array) {
2701
2701
  const m = u;
@@ -2759,7 +2759,7 @@ function Se(e) {
2759
2759
  }
2760
2760
  ));
2761
2761
  } else
2762
- n = st(o, u.dataType, l);
2762
+ n = ct(o, u.dataType, l);
2763
2763
  else
2764
2764
  u.dataType === "map" ? typeof l == "object" ? n = /* @__PURE__ */ r(
2765
2765
  $a,
@@ -2767,8 +2767,8 @@ function Se(e) {
2767
2767
  ...e,
2768
2768
  property: u
2769
2769
  }
2770
- ) : n = st(o, u.dataType, l) : u.dataType === "date" ? l instanceof Date ? n = /* @__PURE__ */ r(ja, { date: l }) : n = st(o, u.dataType, l) : u.dataType === "reference" ? typeof u.path == "string" ? l instanceof Je ? n = /* @__PURE__ */ r(
2771
- lt,
2770
+ ) : n = ct(o, u.dataType, l) : u.dataType === "date" ? l instanceof Date ? n = /* @__PURE__ */ r(ja, { date: l }) : n = ct(o, u.dataType, l) : u.dataType === "reference" ? typeof u.path == "string" ? l instanceof je ? n = /* @__PURE__ */ r(
2771
+ He,
2772
2772
  {
2773
2773
  disabled: !u.path,
2774
2774
  previewProperties: u.previewProperties,
@@ -2776,17 +2776,17 @@ function Se(e) {
2776
2776
  onClick: e.onClick,
2777
2777
  reference: l
2778
2778
  }
2779
- ) : n = st(o, u.dataType, l) : n = /* @__PURE__ */ r(Pt, {}) : u.dataType === "boolean" ? typeof l == "boolean" ? n = /* @__PURE__ */ r(La, { value: l }) : n = st(o, u.dataType, l) : u.dataType === "number" ? typeof l == "number" ? n = /* @__PURE__ */ r(
2779
+ ) : n = ct(o, u.dataType, l) : n = /* @__PURE__ */ r(Pt, {}) : u.dataType === "boolean" ? typeof l == "boolean" ? n = /* @__PURE__ */ r(La, { value: l }) : n = ct(o, u.dataType, l) : u.dataType === "number" ? typeof l == "number" ? n = /* @__PURE__ */ r(
2780
2780
  _a,
2781
2781
  {
2782
2782
  ...e,
2783
2783
  value: l,
2784
2784
  property: u
2785
2785
  }
2786
- ) : n = st(o, u.dataType, l) : n = JSON.stringify(l);
2786
+ ) : n = ct(o, u.dataType, l) : n = JSON.stringify(l);
2787
2787
  return n ?? /* @__PURE__ */ r(Pt, {});
2788
2788
  }
2789
- function st(e, t, n) {
2789
+ function ct(e, t, n) {
2790
2790
  return console.warn(`Unexpected value for property ${e}, of type ${t}`, n), /* @__PURE__ */ r(
2791
2791
  Ce,
2792
2792
  {
@@ -2802,7 +2802,7 @@ function cd({
2802
2802
  size: i,
2803
2803
  entity: o
2804
2804
  }) {
2805
- const l = te(), a = mt({
2805
+ const l = te(), a = gt({
2806
2806
  propertyKey: e,
2807
2807
  property: n,
2808
2808
  propertyValue: t,
@@ -2869,7 +2869,7 @@ function ao({
2869
2869
  path: n,
2870
2870
  className: i
2871
2871
  }) {
2872
- const o = te(), l = ae(() => Ge({
2872
+ const o = te(), l = le(() => Ge({
2873
2873
  collection: t,
2874
2874
  path: n,
2875
2875
  entityId: e.id,
@@ -2888,7 +2888,7 @@ function ao({
2888
2888
  rel: "noopener noreferrer",
2889
2889
  target: "_blank",
2890
2890
  children: /* @__PURE__ */ r(se, { children: /* @__PURE__ */ r(
2891
- cn,
2891
+ An,
2892
2892
  {
2893
2893
  size: "small"
2894
2894
  }
@@ -3063,7 +3063,7 @@ function In(e) {
3063
3063
  ))
3064
3064
  }
3065
3065
  ) : /* @__PURE__ */ r(
3066
- Xe,
3066
+ Ke,
3067
3067
  {
3068
3068
  inputRef: f,
3069
3069
  className: "w-full h-full p-0 bg-transparent",
@@ -3077,7 +3077,7 @@ function In(e) {
3077
3077
  onMultiValueChange: d,
3078
3078
  renderValue: g,
3079
3079
  children: n?.map((h) => /* @__PURE__ */ r(
3080
- Ke,
3080
+ et,
3081
3081
  {
3082
3082
  value: String(h.id),
3083
3083
  children: /* @__PURE__ */ r(
@@ -3250,27 +3250,27 @@ function Ao({
3250
3250
  const A = o.dataType === "string" ? o.storage : o.dataType === "array" && o.of.dataType === "string" ? o.of.storage : void 0, u = o.dataType === "array";
3251
3251
  if (!A)
3252
3252
  throw Error("Storage meta must be specified");
3253
- const m = A?.metadata, f = u ? "small" : "medium", d = A?.imageCompression, g = (u ? i ?? [] : i ? [i] : []).map((B) => ({
3253
+ const m = A?.metadata, f = u ? "small" : "medium", d = A?.imageCompression, g = (u ? i ?? [] : i ? [i] : []).map((x) => ({
3254
3254
  id: Sn(),
3255
- storagePathOrDownloadUrl: B,
3255
+ storagePathOrDownloadUrl: x,
3256
3256
  metadata: m,
3257
3257
  size: f
3258
3258
  })), [h, p] = D(i), [v, b] = D(g);
3259
3259
  V(() => {
3260
3260
  me(h, i) || (p(i), b(g));
3261
3261
  }, [g, i, h]);
3262
- const y = w(async (B) => {
3262
+ const y = w(async (x) => {
3263
3263
  if (A.fileName) {
3264
- const I = await Xa(A.fileName, A, t, e, n, o, B, l);
3264
+ const I = await Xa(A.fileName, A, t, e, n, o, x, l);
3265
3265
  if (!I || I.length === 0)
3266
3266
  throw Error("You need to return a valid filename");
3267
3267
  return I;
3268
3268
  }
3269
- return Ot() + "_" + B.name;
3270
- }, [e, t, n, o, l, A]), x = w((B) => Ka(A.storagePath, A, t, e, n, o, B, l) ?? "/", [e, t, n, o, l, A]), k = w(async (B, I, S) => {
3271
- console.debug("onFileUploadComplete", B, I);
3272
- let Q = B;
3273
- if (A.storeUrl && (Q = (await a.getDownloadURL(B)).url), A.postProcess && Q && (Q = await A.postProcess(Q)), !Q) {
3269
+ return Ot() + "_" + x.name;
3270
+ }, [e, t, n, o, l, A]), B = w((x) => Ka(A.storagePath, A, t, e, n, o, x, l) ?? "/", [e, t, n, o, l, A]), k = w(async (x, I, S) => {
3271
+ console.debug("onFileUploadComplete", x, I);
3272
+ let Q = x;
3273
+ if (A.storeUrl && (Q = (await a.getDownloadURL(x)).url), A.postProcess && Q && (Q = await A.postProcess(Q)), !Q) {
3274
3274
  console.warn("uploadPathOrDownloadUrl is null");
3275
3275
  return;
3276
3276
  }
@@ -3278,14 +3278,14 @@ function Ao({
3278
3278
  I.storagePathOrDownloadUrl = Q, I.metadata = S, N = [...v], N = Ur(N), b(N);
3279
3279
  const P = N.filter((U) => !!U.storagePathOrDownloadUrl).map((U) => U.storagePathOrDownloadUrl);
3280
3280
  c(u ? P : P ? P[0] : null);
3281
- }, [v, u, c, A, a]), C = w(async (B) => {
3282
- if (!B.length || s)
3281
+ }, [v, u, c, A, a]), C = w(async (x) => {
3282
+ if (!x.length || s)
3283
3283
  return;
3284
3284
  let I;
3285
3285
  if (u)
3286
3286
  I = [
3287
3287
  ...v,
3288
- ...await Promise.all(B.map(async (S) => (d && $n(S) && (S = await jr(S, d)), {
3288
+ ...await Promise.all(x.map(async (S) => (d && $n(S) && (S = await jr(S, d)), {
3289
3289
  id: Sn(),
3290
3290
  file: S,
3291
3291
  fileName: await y(S),
@@ -3294,7 +3294,7 @@ function Ao({
3294
3294
  })))
3295
3295
  ];
3296
3296
  else {
3297
- let S = B[0];
3297
+ let S = x[0];
3298
3298
  d && $n(S) && (S = await jr(S, d)), I = [{
3299
3299
  id: Sn(),
3300
3300
  file: S,
@@ -3310,7 +3310,7 @@ function Ao({
3310
3310
  setInternalValue: b,
3311
3311
  storage: A,
3312
3312
  fileNameBuilder: y,
3313
- storagePathBuilder: x,
3313
+ storagePathBuilder: B,
3314
3314
  onFileUploadComplete: k,
3315
3315
  onFilesAdded: C,
3316
3316
  multipleFilesSupported: u
@@ -3351,7 +3351,7 @@ function uo({
3351
3351
  imageSize: o,
3352
3352
  simple: l
3353
3353
  }) {
3354
- const a = _t(), s = pt(), [c, A] = F.useState(), [u, m] = F.useState(!1), f = F.useRef(!1), d = F.useRef(!1), g = w((h, p) => {
3354
+ const a = _t(), s = vt(), [c, A] = F.useState(), [u, m] = F.useState(!1), f = F.useRef(!1), d = F.useRef(!1), g = w((h, p) => {
3355
3355
  d.current || (d.current = !0, A(void 0), m(!0), a.uploadFile({
3356
3356
  file: h,
3357
3357
  fileName: p,
@@ -3371,7 +3371,7 @@ function uo({
3371
3371
  return F.useEffect(() => (f.current = !0, t.file && g(t.file, t.fileName), () => {
3372
3372
  f.current = !1;
3373
3373
  }), [t.file, t.fileName, g]), l ? /* @__PURE__ */ r("div", { className: `m-4 w-${o} h-${o}`, children: u && /* @__PURE__ */ r(Ve, { className: `w-${o} h-${o}` }) }) : /* @__PURE__ */ E("div", { className: X(
3374
- dn,
3374
+ un,
3375
3375
  "relative m-4 border-box flex items-center justify-center",
3376
3376
  `min-w-[${o}px] min-h-[${o}px]`
3377
3377
  ), children: [
@@ -3534,8 +3534,8 @@ function ls({
3534
3534
  } else
3535
3535
  throw Error("Storage field using array must be of data type string");
3536
3536
  }
3537
- const x = d?.metadata, k = !!n, C = pt(), {
3538
- open: B,
3537
+ const B = d?.metadata, k = !!n, C = vt(), {
3538
+ open: x,
3539
3539
  getRootProps: I,
3540
3540
  getInputProps: S,
3541
3541
  isDragActive: Q,
@@ -3558,7 +3558,7 @@ function ls({
3558
3558
  });
3559
3559
  }
3560
3560
  }
3561
- ), { ...U } = I(), Z = A ? "Drag 'n' drop some files here, or click here to edit" : "Drag 'n' drop a file here, or click here edit", W = A ? e.of : e, ne = ae(() => wt(y), [y]), le = !m && s;
3561
+ ), { ...U } = I(), Z = A ? "Drag 'n' drop some files here, or click here to edit" : "Drag 'n' drop a file here, or click here edit", W = A ? e.of : e, ne = le(() => wt(y), [y]), ae = !m && s;
3562
3562
  return /* @__PURE__ */ E(
3563
3563
  "div",
3564
3564
  {
@@ -3591,7 +3591,7 @@ function ls({
3591
3591
  uo,
3592
3592
  {
3593
3593
  entry: $,
3594
- metadata: x,
3594
+ metadata: B,
3595
3595
  storagePath: p($.file),
3596
3596
  onFileUploadComplete: h,
3597
3597
  imageSize: ne,
@@ -3604,7 +3604,7 @@ function ls({
3604
3604
  "div",
3605
3605
  {
3606
3606
  className: "flex-grow m-2 max-w-[200px]",
3607
- onClick: B,
3607
+ onClick: x,
3608
3608
  children: /* @__PURE__ */ r(
3609
3609
  q,
3610
3610
  {
@@ -3619,7 +3619,7 @@ function ls({
3619
3619
  /* @__PURE__ */ r(
3620
3620
  fo,
3621
3621
  {
3622
- showError: le,
3622
+ showError: ae,
3623
3623
  disabled: m,
3624
3624
  showExpandIcon: !0,
3625
3625
  selected: a,
@@ -3629,7 +3629,7 @@ function ls({
3629
3629
  {
3630
3630
  color: "inherit",
3631
3631
  size: "small",
3632
- onClick: B,
3632
+ onClick: x,
3633
3633
  children: /* @__PURE__ */ r(Xo, { size: "small", className: "text-gray-500" })
3634
3634
  }
3635
3635
  )
@@ -3663,7 +3663,7 @@ function as({
3663
3663
  );
3664
3664
  }
3665
3665
  function Lr(e) {
3666
- const t = te(), n = ye(), { path: i } = e, o = n.getCollection(i);
3666
+ const t = te(), n = he(), { path: i } = e, o = n.getCollection(i);
3667
3667
  if (!o) {
3668
3668
  if (t.components?.missingReference)
3669
3669
  return /* @__PURE__ */ r(t.components.missingReference, { path: i });
@@ -3685,10 +3685,10 @@ function ss(e) {
3685
3685
  forceFilter: u,
3686
3686
  collection: m
3687
3687
  } = e, [f, d] = D(!1), g = w(() => d(!0), []), h = w(() => d(!1), []), p = w((I) => {
3688
- i(I ? yt(I) : null);
3688
+ i(I ? at(I) : null);
3689
3689
  }, [i]), v = w((I) => {
3690
- i(I.map((S) => yt(S)));
3691
- }, [i]), b = n ? Array.isArray(n) ? n.map((I) => I.id) : n.id ? [n.id] : [] : [], y = bn(
3690
+ i(I.map((S) => at(S)));
3691
+ }, [i]), b = n ? Array.isArray(n) ? n.map((I) => I.id) : n.id ? [n.id] : [] : [], y = Wt(
3692
3692
  {
3693
3693
  multiselect: o,
3694
3694
  path: l,
@@ -3698,13 +3698,13 @@ function ss(e) {
3698
3698
  selectedEntityIds: b,
3699
3699
  forceFilter: u
3700
3700
  }
3701
- ), x = w(() => {
3701
+ ), B = w(() => {
3702
3702
  A || y.open();
3703
- }, [A, y]), k = !n || Array.isArray(n) && n.length === 0, C = () => n instanceof Je ? /* @__PURE__ */ r(
3704
- lt,
3703
+ }, [A, y]), k = !n || Array.isArray(n) && n.length === 0, C = () => n instanceof je ? /* @__PURE__ */ r(
3704
+ He,
3705
3705
  {
3706
- onClick: A ? void 0 : x,
3707
- size: it(a),
3706
+ onClick: A ? void 0 : B,
3707
+ size: ot(a),
3708
3708
  reference: n,
3709
3709
  onHover: f,
3710
3710
  disabled: !l,
@@ -3713,19 +3713,19 @@ function ss(e) {
3713
3713
  ) : /* @__PURE__ */ r(
3714
3714
  Ar,
3715
3715
  {
3716
- onClick: A ? void 0 : x,
3717
- size: it(a),
3716
+ onClick: A ? void 0 : B,
3717
+ size: ot(a),
3718
3718
  children: /* @__PURE__ */ r(Ce, { title: "Value is not a reference.", error: "Click to edit" })
3719
3719
  }
3720
- ), B = () => Array.isArray(n) ? /* @__PURE__ */ r(G, { children: n.map(
3720
+ ), x = () => Array.isArray(n) ? /* @__PURE__ */ r(G, { children: n.map(
3721
3721
  (I, S) => /* @__PURE__ */ r(
3722
3722
  "div",
3723
3723
  {
3724
3724
  className: "m-1 w-full",
3725
3725
  children: /* @__PURE__ */ r(
3726
- lt,
3726
+ He,
3727
3727
  {
3728
- onClick: A ? void 0 : x,
3728
+ onClick: A ? void 0 : B,
3729
3729
  size: "tiny",
3730
3730
  reference: I,
3731
3731
  onHover: f,
@@ -3746,11 +3746,11 @@ function ss(e) {
3746
3746
  onMouseLeave: h,
3747
3747
  children: [
3748
3748
  n && !o && C(),
3749
- n && o && B(),
3749
+ n && o && x(),
3750
3750
  k && /* @__PURE__ */ E(
3751
3751
  Ae,
3752
3752
  {
3753
- onClick: x,
3753
+ onClick: B,
3754
3754
  size: "small",
3755
3755
  variant: "outlined",
3756
3756
  color: "primary",
@@ -3828,7 +3828,7 @@ function As({
3828
3828
  const a = e.validation;
3829
3829
  if (e.enumValues) {
3830
3830
  a?.required && (l = l.required(a?.requiredMessage ? a.requiredMessage : "Required"));
3831
- const s = ft(e.enumValues);
3831
+ const s = mt(e.enumValues);
3832
3832
  l = l.oneOf(
3833
3833
  (a?.required ? s : [...s, null]).map((c) => c?.id ?? null)
3834
3834
  ).nullable(!0);
@@ -3984,7 +3984,7 @@ function ps({
3984
3984
  Qe.mixed().test(
3985
3985
  "Dynamic object validation",
3986
3986
  "Dynamic object validation error",
3987
- (c, A) => dt(s, A.path).validate(c)
3987
+ (c, A) => ut(s, A.path).validate(c)
3988
3988
  )
3989
3989
  );
3990
3990
  } else {
@@ -4066,7 +4066,7 @@ const vs = ({
4066
4066
  Ko(y, () => {
4067
4067
  o && d && d(void 0);
4068
4068
  }, !!(o && d));
4069
- const [x, k] = D(!1), C = ae(() => Et(i), [i]), [B, I] = D(!1), [S, Q] = D(s), N = !l && c;
4069
+ const [B, k] = D(!1), C = le(() => Et(i), [i]), [x, I] = D(!1), [S, Q] = D(s), N = !l && c;
4070
4070
  V(() => {
4071
4071
  s && Q(!0);
4072
4072
  const J = setTimeout(() => {
@@ -4114,10 +4114,10 @@ const vs = ({
4114
4114
  V(() => {
4115
4115
  if (b) {
4116
4116
  const J = b.height > C;
4117
- x !== J && k(J);
4117
+ B !== J && k(J);
4118
4118
  }
4119
- }, [b, x, C]);
4120
- const ne = !N && o, le = !l && u && x, $ = !l && !u && x, Y = w(() => I(!0), []), ce = w(() => I(!1), []);
4119
+ }, [b, B, C]);
4120
+ const ne = !N && o, ae = !l && u && B, $ = !l && !u && B, Y = w(() => I(!0), []), ce = w(() => I(!1), []);
4121
4121
  return /* @__PURE__ */ E(
4122
4122
  "div",
4123
4123
  {
@@ -4125,7 +4125,7 @@ const vs = ({
4125
4125
  className: X(
4126
4126
  "transition-colors duration-100 ease-in-out",
4127
4127
  `flex relative h-full rounded-md p-${P} border border-4 border-opacity-75`,
4128
- B && !l ? "bg-gray-50 dark:bg-gray-900" : "",
4128
+ x && !l ? "bg-gray-50 dark:bg-gray-900" : "",
4129
4129
  s ? "bg-gray-100 bg-opacity-75 dark:bg-gray-800 dark:bg-opacity-75" : "",
4130
4130
  !ne && !S && !N ? "border-transparent" : "",
4131
4131
  h ? "overflow-hidden" : "",
@@ -4136,7 +4136,7 @@ const vs = ({
4136
4136
  ),
4137
4137
  style: {
4138
4138
  justifyContent: U,
4139
- alignItems: l || !x ? "center" : void 0,
4139
+ alignItems: l || !B ? "center" : void 0,
4140
4140
  width: g ?? "100%",
4141
4141
  textAlign: A
4142
4142
  },
@@ -4153,7 +4153,7 @@ const vs = ({
4153
4153
  {
4154
4154
  fullHeight: f ?? !1,
4155
4155
  justifyContent: U,
4156
- scrollable: le ?? !1,
4156
+ scrollable: ae ?? !1,
4157
4157
  faded: $,
4158
4158
  children: !f && /* @__PURE__ */ r(
4159
4159
  "div",
@@ -4172,7 +4172,7 @@ const vs = ({
4172
4172
  )
4173
4173
  ] }),
4174
4174
  n,
4175
- l && B && a && /* @__PURE__ */ r("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ r(be, { title: a, children: /* @__PURE__ */ r(el, { size: "smallest", color: "disabled", className: "text-gray-500" }) }) })
4175
+ l && x && a && /* @__PURE__ */ r("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ r(ye, { title: a, children: /* @__PURE__ */ r(el, { size: "smallest", color: "disabled", className: "text-gray-500" }) }) })
4176
4176
  ]
4177
4177
  }
4178
4178
  );
@@ -4202,11 +4202,11 @@ const ys = F.memo(
4202
4202
  selectedCell: h,
4203
4203
  select: p,
4204
4204
  setPopupCell: v
4205
- } = Os(), b = h?.propertyKey === t && h?.entity.path === A.path && h?.entity.id === A.id, [y, x] = D(i), k = ue(i), [C, B] = D(), [I, S] = D(!1), Q = w(() => {
4205
+ } = Os(), b = h?.propertyKey === t && h?.entity.path === A.path && h?.entity.id === A.id, [y, B] = D(i), k = ue(i), [C, x] = D(), [I, S] = D(!1), Q = w(() => {
4206
4206
  S(!0), setTimeout(() => {
4207
4207
  S(!1);
4208
4208
  }, 100);
4209
- }, []), N = !!o.Field, P = !!o.Preview, U = Lt(o), Z = typeof o.disabled == "object" ? o.disabled.disabledMessage : void 0, W = u || m || !!o.disabled, ne = ae(() => Yt({
4209
+ }, []), N = !!o.Field, P = !!o.Preview, U = Lt(o), Z = typeof o.disabled == "object" ? o.disabled.disabledMessage : void 0, W = u || m || !!o.disabled, ne = le(() => Yt({
4210
4210
  property: o,
4211
4211
  entityId: A.id,
4212
4212
  customFieldValidator: n,
@@ -4214,33 +4214,33 @@ const ys = F.memo(
4214
4214
  }), [A.id, o, t]);
4215
4215
  V(
4216
4216
  () => {
4217
- me(i, k.current) || (B(void 0), x(i), k.current = i, Q());
4217
+ me(i, k.current) || (x(void 0), B(i), k.current = i, Q());
4218
4218
  },
4219
4219
  [Q, i]
4220
4220
  );
4221
- const le = (R) => {
4221
+ const ae = (R) => {
4222
4222
  me(R, k.current) || (S(!1), ne.validate(R).then(() => {
4223
- B(void 0), k.current = R, d && d({
4223
+ x(void 0), k.current = R, d && d({
4224
4224
  value: R,
4225
4225
  propertyKey: t,
4226
- setError: B,
4226
+ setError: x,
4227
4227
  onValueUpdated: Q,
4228
4228
  entity: A,
4229
4229
  fullPath: c,
4230
4230
  context: f
4231
4231
  });
4232
4232
  }).catch((T) => {
4233
- B(T);
4233
+ x(T);
4234
4234
  }));
4235
4235
  };
4236
4236
  V(() => {
4237
- ne.validate(y).then(() => B(void 0)).catch((R) => {
4238
- B(R);
4237
+ ne.validate(y).then(() => x(void 0)).catch((R) => {
4238
+ x(R);
4239
4239
  });
4240
4240
  }, [y, ne, t, o, A]);
4241
4241
  const $ = (R) => {
4242
4242
  let T;
4243
- R === void 0 ? T = null : T = R, x(T), le(T);
4243
+ R === void 0 ? T = null : T = R, B(T), ae(T);
4244
4244
  };
4245
4245
  ze({
4246
4246
  property: o,
@@ -4287,7 +4287,7 @@ const ys = F.memo(
4287
4287
  property: o,
4288
4288
  entity: A,
4289
4289
  value: y,
4290
- size: it(g)
4290
+ size: ot(g)
4291
4291
  }
4292
4292
  )
4293
4293
  },
@@ -4307,7 +4307,7 @@ const ys = F.memo(
4307
4307
  entity: A,
4308
4308
  path: c,
4309
4309
  value: y,
4310
- previewSize: it(g),
4310
+ previewSize: ot(g),
4311
4311
  updateValue: $,
4312
4312
  propertyKey: t
4313
4313
  }
@@ -4322,7 +4322,7 @@ const ys = F.memo(
4322
4322
  disabled: W,
4323
4323
  focused: b,
4324
4324
  valueType: "number",
4325
- small: it(g) !== "medium",
4325
+ small: ot(g) !== "medium",
4326
4326
  enumValues: T.enumValues,
4327
4327
  error: C,
4328
4328
  internalValue: y,
@@ -4350,7 +4350,7 @@ const ys = F.memo(
4350
4350
  focused: b,
4351
4351
  disabled: W,
4352
4352
  valueType: "string",
4353
- small: it(g) !== "medium",
4353
+ small: ot(g) !== "medium",
4354
4354
  enumValues: T.enumValues,
4355
4355
  error: C,
4356
4356
  internalValue: y,
@@ -4422,7 +4422,7 @@ const ys = F.memo(
4422
4422
  multiple: !0,
4423
4423
  disabled: W,
4424
4424
  focused: b,
4425
- small: it(g) !== "medium",
4425
+ small: ot(g) !== "medium",
4426
4426
  valueType: T.of.dataType,
4427
4427
  enumValues: T.of.enumValues,
4428
4428
  error: C,
@@ -4455,7 +4455,7 @@ const ys = F.memo(
4455
4455
  propertyKey: t,
4456
4456
  value: y,
4457
4457
  property: o,
4458
- size: it(g)
4458
+ size: ot(g)
4459
4459
  }
4460
4460
  )), /* @__PURE__ */ r(
4461
4461
  jn,
@@ -4495,13 +4495,13 @@ const ys = F.memo(
4495
4495
  function ws(e, t) {
4496
4496
  return e.height === t.height && e.propertyKey === t.propertyKey && e.align === t.align && e.width === t.width && me(e.property, t.property) && me(e.value, t.value) && me(e.entity.id, t.entity.id) && me(e.entity.values, t.entity.values);
4497
4497
  }
4498
- function ln({ text: e, ...t }) {
4498
+ function an({ text: e, ...t }) {
4499
4499
  return /* @__PURE__ */ r(
4500
4500
  "div",
4501
4501
  {
4502
4502
  className: "flex w-full h-screen max-h-full max-w-full bg-gray-50 dark:bg-gray-900 gap-4",
4503
4503
  children: /* @__PURE__ */ E("div", { className: "m-auto flex flex-col gap-2 items-center", children: [
4504
- /* @__PURE__ */ r(un, { ...t }),
4504
+ /* @__PURE__ */ r(fn, { ...t }),
4505
4505
  e && /* @__PURE__ */ r(
4506
4506
  q,
4507
4507
  {
@@ -4529,11 +4529,11 @@ const Es = F.memo(
4529
4529
  createFilterField: u,
4530
4530
  AdditionalHeaderWidget: m
4531
4531
  }) {
4532
- const [f, d] = D(!1), [g, h] = F.useState(!1), [p, v] = F.useState(!1), b = w((B) => {
4532
+ const [f, d] = D(!1), [g, h] = F.useState(!1), [p, v] = F.useState(!1), b = w((x) => {
4533
4533
  h(!0);
4534
- }, []), y = w((B, I) => {
4535
- a(c, B), I !== void 0 && h(I);
4536
- }, [c, a]), x = i === n, C = !(i !== n && i > 0) && (f || x);
4534
+ }, []), y = w((x, I) => {
4535
+ a(c, x), I !== void 0 && h(I);
4536
+ }, [c, a]), B = i === n, C = !(i !== n && i > 0) && (f || B);
4537
4537
  return /* @__PURE__ */ r(de, { children: /* @__PURE__ */ E(
4538
4538
  "div",
4539
4539
  {
@@ -4727,7 +4727,7 @@ const xs = ({
4727
4727
  createFilterField: c,
4728
4728
  AddColumnComponent: A
4729
4729
  }) => {
4730
- const u = e.map(() => Go()), [m, f] = D(-1), d = w((k, C, B) => {
4730
+ const u = e.map(() => Go()), [m, f] = D(-1), d = w((k, C, x) => {
4731
4731
  const I = e[k], S = 100, Q = 800, N = C > Q ? Q : C < S ? S : C, P = {
4732
4732
  width: N,
4733
4733
  key: I.key,
@@ -4736,7 +4736,7 @@ const xs = ({
4736
4736
  width: N
4737
4737
  }
4738
4738
  };
4739
- B ? s(P) : a(P);
4739
+ x ? s(P) : a(P);
4740
4740
  }, [e, a, s]), g = w((k) => {
4741
4741
  if (m >= 0) {
4742
4742
  const C = u[m].current?.parentElement?.getBoundingClientRect().left;
@@ -4760,7 +4760,7 @@ const xs = ({
4760
4760
  V(() => (m >= 0 ? y() : b(), () => {
4761
4761
  b();
4762
4762
  }), [y, m, b]);
4763
- const x = w((k) => {
4763
+ const B = w((k) => {
4764
4764
  f(k), h(!0);
4765
4765
  }, [h]);
4766
4766
  return /* @__PURE__ */ E(
@@ -4769,7 +4769,7 @@ const xs = ({
4769
4769
  className: X(xe, "z-20 sticky min-w-full flex w-fit flex-row top-0 left-0 h-12 border-b bg-gray-50 dark:bg-gray-900"),
4770
4770
  children: [
4771
4771
  e.map((k, C) => {
4772
- const B = e[C], I = B && l && l[B.key] ? l[B.key] : void 0;
4772
+ const x = e[C], I = x && l && l[x.key] ? l[x.key] : void 0;
4773
4773
  return /* @__PURE__ */ r(de, { children: /* @__PURE__ */ r(
4774
4774
  Es,
4775
4775
  {
@@ -4778,14 +4778,14 @@ const xs = ({
4778
4778
  isResizingIndex: m,
4779
4779
  onFilterUpdate: i,
4780
4780
  filter: I,
4781
- sort: o === B.key ? t : void 0,
4781
+ sort: o === x.key ? t : void 0,
4782
4782
  onColumnSort: n,
4783
- onClickResizeColumn: x,
4784
- column: B,
4783
+ onClickResizeColumn: B,
4784
+ column: x,
4785
4785
  createFilterField: c,
4786
- AdditionalHeaderWidget: B.AdditionalHeaderWidget
4786
+ AdditionalHeaderWidget: x.AdditionalHeaderWidget
4787
4787
  }
4788
- ) }, "header_" + B.key);
4788
+ ) }, "header_" + x.key);
4789
4789
  }),
4790
4790
  A && /* @__PURE__ */ r(A, {})
4791
4791
  ]
@@ -4847,12 +4847,12 @@ const xs = ({
4847
4847
  );
4848
4848
  },
4849
4849
  (e, t) => me(e, t)
4850
- ), vn = ri({});
4851
- vn.displayName = "VirtualListContext";
4850
+ ), bn = ri({});
4851
+ bn.displayName = "VirtualListContext";
4852
4852
  const Is = Vo(({
4853
4853
  children: e,
4854
4854
  ...t
4855
- }, n) => /* @__PURE__ */ r(vn.Consumer, { children: (i) => {
4855
+ }, n) => /* @__PURE__ */ r(bn.Consumer, { children: (i) => {
4856
4856
  const o = i.customView;
4857
4857
  return /* @__PURE__ */ E(G, { children: [
4858
4858
  /* @__PURE__ */ r(
@@ -4911,11 +4911,11 @@ const Is = Vo(({
4911
4911
  hoverRow: v,
4912
4912
  createFilterField: b,
4913
4913
  rowClassName: y,
4914
- className: x,
4914
+ className: B,
4915
4915
  endAdornment: k,
4916
4916
  AddColumnComponent: C
4917
4917
  }) {
4918
- const B = m ? m[0] : void 0, I = m ? m[1] : void 0, [S, Q] = D(l), N = ue(null), P = ue(0);
4918
+ const x = m ? m[0] : void 0, I = m ? m[1] : void 0, [S, Q] = D(l), N = ue(null), P = ue(0);
4919
4919
  V(() => {
4920
4920
  Q(l);
4921
4921
  }, [l]);
@@ -4923,16 +4923,16 @@ const Is = Vo(({
4923
4923
  Q(S.map((T) => T.key === R.column.key ? R.column : T));
4924
4924
  }, [S]), ne = w((R) => {
4925
4925
  Q(S.map((T) => T.key === R.column.key ? R.column : T)), s && s(R);
4926
- }, [S, s]), le = ue();
4926
+ }, [S, s]), ae = ue();
4927
4927
  V(() => {
4928
- le.current = c;
4928
+ ae.current = c;
4929
4929
  }, [c]);
4930
4930
  const $ = w(() => {
4931
4931
  P.current = 0, N.current && N.current.scrollTo(N.current?.scrollLeft, 0);
4932
4932
  }, []), Y = w((R) => {
4933
- const T = B === R && I === "desc", we = B === R && I === "asc" ? "desc" : T ? void 0 : "asc", he = T ? void 0 : R, Me = le.current, et = we && he ? [he, we] : void 0;
4934
- Me && A && !A(Me, et) && u && u(void 0), n && n(), g && g(et), $();
4935
- }, [A, I, u, n, g, $, B]), ce = w(() => {
4933
+ const T = x === R && I === "desc", we = x === R && I === "asc" ? "desc" : T ? void 0 : "asc", pe = T ? void 0 : R, Me = ae.current, tt = we && pe ? [pe, we] : void 0;
4934
+ Me && A && !A(Me, tt) && u && u(void 0), n && n(), g && g(tt), $();
4935
+ }, [A, I, u, n, g, $, x]), ce = w(() => {
4936
4936
  P.current = 0, g && g(void 0);
4937
4937
  }, [g]), J = Math.max((t?.length ?? 0) * Et(o) - Z.height, 0), K = w((R) => {
4938
4938
  i && (t?.length ?? 0) > 0 && R > P.current + 600 && (P.current = R, i());
@@ -4943,19 +4943,19 @@ const Is = Vo(({
4943
4943
  !T && R >= J - 600 && K(R);
4944
4944
  }, [J, K]), j = w((R, T) => {
4945
4945
  P.current = 0;
4946
- const Pe = le.current;
4946
+ const Pe = ae.current;
4947
4947
  let we = Pe ? { ...Pe } : {};
4948
- T ? we[R.key] = T : delete we[R.key], !A || A(we, B && I ? [B, I] : void 0) || (we = T ? { [R.key]: T } : {}), u && u(we), R.key !== B && ce();
4949
- }, [A, I, u, ce, B]), M = w(() => /* @__PURE__ */ E(
4948
+ T ? we[R.key] = T : delete we[R.key], !A || A(we, x && I ? [x, I] : void 0) || (we = T ? { [R.key]: T } : {}), u && u(we), R.key !== x && ce();
4949
+ }, [A, I, u, ce, x]), M = w(() => /* @__PURE__ */ E(
4950
4950
  "div",
4951
4951
  {
4952
4952
  className: "h-full flex flex-col items-center justify-center sticky left-0",
4953
4953
  children: [
4954
4954
  /* @__PURE__ */ r(q, { variant: "h6", children: "Error fetching data from the data source" }),
4955
- f?.message && /* @__PURE__ */ r(An, { className: "px-4 break-all", source: f.message })
4955
+ f?.message && /* @__PURE__ */ r(dn, { className: "px-4 break-all", source: f.message })
4956
4956
  ]
4957
4957
  }
4958
- ), [f?.message]), _ = w(() => h ? /* @__PURE__ */ r(ln, {}) : /* @__PURE__ */ E(
4958
+ ), [f?.message]), _ = w(() => h ? /* @__PURE__ */ r(an, {}) : /* @__PURE__ */ E(
4959
4959
  "div",
4960
4960
  {
4961
4961
  className: "flex flex-col overflow-auto items-center justify-center p-2 gap-2 h-full",
@@ -4969,9 +4969,9 @@ const Is = Vo(({
4969
4969
  "div",
4970
4970
  {
4971
4971
  ref: U,
4972
- className: X("h-full w-full", x),
4972
+ className: X("h-full w-full", B),
4973
4973
  children: /* @__PURE__ */ r(
4974
- vn.Provider,
4974
+ bn.Provider,
4975
4975
  {
4976
4976
  value: {
4977
4977
  data: t,
@@ -4983,10 +4983,10 @@ const Is = Vo(({
4983
4983
  customView: L,
4984
4984
  onColumnResize: W,
4985
4985
  onColumnResizeEnd: ne,
4986
- filter: le.current,
4986
+ filter: ae.current,
4987
4987
  onColumnSort: Y,
4988
4988
  onFilterUpdate: j,
4989
- sortByProperty: B,
4989
+ sortByProperty: x,
4990
4990
  hoverRow: v ?? !1,
4991
4991
  createFilterField: b,
4992
4992
  rowClassName: y,
@@ -5025,7 +5025,7 @@ function Ns({
5025
5025
  const s = w(({
5026
5026
  index: c,
5027
5027
  style: A
5028
- }) => /* @__PURE__ */ r(vn.Consumer, { children: ({
5028
+ }) => /* @__PURE__ */ r(bn.Consumer, { children: ({
5029
5029
  onRowClick: u,
5030
5030
  data: m,
5031
5031
  columns: f,
@@ -5059,7 +5059,7 @@ function Ns({
5059
5059
  },
5060
5060
  size: d,
5061
5061
  children: [
5062
- f.map((y, x) => {
5062
+ f.map((y, B) => {
5063
5063
  const k = b && b[y.key];
5064
5064
  return /* @__PURE__ */ r(
5065
5065
  ks,
@@ -5071,7 +5071,7 @@ function Ns({
5071
5071
  rowData: b,
5072
5072
  cellData: k,
5073
5073
  rowIndex: c,
5074
- columnIndex: x
5074
+ columnIndex: B
5075
5075
  },
5076
5076
  `cell_${y.key}`
5077
5077
  );
@@ -5113,11 +5113,11 @@ const ur = F.memo(function({
5113
5113
  hideId: d,
5114
5114
  selectionController: g
5115
5115
  }) {
5116
- const h = _e(), p = te(), v = w((B) => {
5116
+ const h = We(), p = te(), v = w((x) => {
5117
5117
  g?.toggleEntitySelection(t);
5118
- }, [t, g?.toggleEntitySelection]), b = w((B) => {
5119
- B.stopPropagation(), g?.toggleEntitySelection(t);
5120
- }, [t, g?.toggleEntitySelection]), y = f.length > 0, x = f.some((B) => B.collapsed || B.collapsed === void 0), k = f.filter((B) => B.collapsed || B.collapsed === void 0), C = f.filter((B) => B.collapsed === !1);
5118
+ }, [t, g?.toggleEntitySelection]), b = w((x) => {
5119
+ x.stopPropagation(), g?.toggleEntitySelection(t);
5120
+ }, [t, g?.toggleEntitySelection]), y = f.length > 0, B = f.some((x) => x.collapsed || x.collapsed === void 0), k = f.filter((x) => x.collapsed || x.collapsed === void 0), C = f.filter((x) => x.collapsed === !1);
5121
5121
  return /* @__PURE__ */ E(
5122
5122
  "div",
5123
5123
  {
@@ -5134,11 +5134,11 @@ const ur = F.memo(function({
5134
5134
  },
5135
5135
  children: [
5136
5136
  (y || s) && /* @__PURE__ */ E("div", { className: "w-34 flex justify-center", children: [
5137
- C.map((B, I) => /* @__PURE__ */ r(be, { title: B.name, children: /* @__PURE__ */ r(
5137
+ C.map((x, I) => /* @__PURE__ */ r(ye, { title: x.name, children: /* @__PURE__ */ r(
5138
5138
  se,
5139
5139
  {
5140
5140
  onClick: (S) => {
5141
- S.stopPropagation(), B.onClick({
5141
+ S.stopPropagation(), x.onClick({
5142
5142
  entity: t,
5143
5143
  fullPath: i,
5144
5144
  collection: n,
@@ -5150,10 +5150,10 @@ const ur = F.memo(function({
5150
5150
  });
5151
5151
  },
5152
5152
  size: h ? "medium" : "small",
5153
- children: B.icon
5153
+ children: x.icon
5154
5154
  }
5155
5155
  ) }, I)),
5156
- x && /* @__PURE__ */ r(
5156
+ B && /* @__PURE__ */ r(
5157
5157
  Ut,
5158
5158
  {
5159
5159
  trigger: /* @__PURE__ */ r(
@@ -5163,11 +5163,11 @@ const ur = F.memo(function({
5163
5163
  children: /* @__PURE__ */ r(mi, {})
5164
5164
  }
5165
5165
  ),
5166
- children: k.map((B, I) => /* @__PURE__ */ E(
5166
+ children: k.map((x, I) => /* @__PURE__ */ E(
5167
5167
  Ie,
5168
5168
  {
5169
5169
  onClick: (S) => {
5170
- S.stopPropagation(), B.onClick({
5170
+ S.stopPropagation(), x.onClick({
5171
5171
  entity: t,
5172
5172
  fullPath: i,
5173
5173
  collection: n,
@@ -5179,15 +5179,15 @@ const ur = F.memo(function({
5179
5179
  });
5180
5180
  },
5181
5181
  children: [
5182
- B.icon,
5183
- B.name
5182
+ x.icon,
5183
+ x.name
5184
5184
  ]
5185
5185
  },
5186
5186
  I
5187
5187
  ))
5188
5188
  }
5189
5189
  ),
5190
- s && /* @__PURE__ */ r(be, { title: `Select ${t.id}`, children: /* @__PURE__ */ r(
5190
+ s && /* @__PURE__ */ r(ye, { title: `Select ${t.id}`, children: /* @__PURE__ */ r(
5191
5191
  di,
5192
5192
  {
5193
5193
  size: h ? "medium" : "small",
@@ -5199,8 +5199,8 @@ const ur = F.memo(function({
5199
5199
  !d && c !== "xs" && /* @__PURE__ */ r("div", { className: "w-[138px] text-center overflow-hidden truncate", children: t ? /* @__PURE__ */ E(
5200
5200
  q,
5201
5201
  {
5202
- onClick: (B) => {
5203
- B.stopPropagation();
5202
+ onClick: (x) => {
5203
+ x.stopPropagation();
5204
5204
  },
5205
5205
  className: "font-mono select-all",
5206
5206
  variant: "caption",
@@ -5217,7 +5217,7 @@ const ur = F.memo(function({
5217
5217
  );
5218
5218
  }, me);
5219
5219
  function Fs(e) {
5220
- const t = _e(), n = !e.forceFilter && e.filterIsSet && e.clearFilter && /* @__PURE__ */ E(
5220
+ const t = We(), n = !e.forceFilter && e.filterIsSet && e.clearFilter && /* @__PURE__ */ E(
5221
5221
  Ae,
5222
5222
  {
5223
5223
  variant: "outlined",
@@ -5231,14 +5231,14 @@ function Fs(e) {
5231
5231
  ]
5232
5232
  }
5233
5233
  ), i = /* @__PURE__ */ r(
5234
- Xe,
5234
+ Ke,
5235
5235
  {
5236
5236
  value: e.size,
5237
5237
  className: "w-16 h-10",
5238
5238
  size: "small",
5239
5239
  onValueChange: (o) => e.onSizeChanged(o),
5240
5240
  renderValue: (o) => /* @__PURE__ */ r("div", { className: "font-medium", children: o.toUpperCase() }),
5241
- children: ["xs", "s", "m", "l", "xl"].map((o) => /* @__PURE__ */ r(Ke, { value: o, className: "w-12 font-medium text-center", children: o.toUpperCase() }, o))
5241
+ children: ["xs", "s", "m", "l", "xl"].map((o) => /* @__PURE__ */ r(et, { value: o, className: "w-12 font-medium text-center", children: o.toUpperCase() }, o))
5242
5242
  }
5243
5243
  );
5244
5244
  return /* @__PURE__ */ E(
@@ -5253,7 +5253,7 @@ function Fs(e) {
5253
5253
  n
5254
5254
  ] }),
5255
5255
  /* @__PURE__ */ E("div", { className: "flex items-center gap-2", children: [
5256
- t && /* @__PURE__ */ r("div", { className: "w-[22px]", children: e.loading && /* @__PURE__ */ r(un, { size: "small" }) }),
5256
+ t && /* @__PURE__ */ r("div", { className: "w-[22px]", children: e.loading && /* @__PURE__ */ r(fn, { size: "small" }) }),
5257
5257
  e.onTextSearch && /* @__PURE__ */ r(
5258
5258
  gi,
5259
5259
  {
@@ -5292,25 +5292,25 @@ function Qs({
5292
5292
  }) {
5293
5293
  const c = i ? ["array-contains"] : ["==", "!=", ">", "<", ">=", "<="], [A, u] = F.useState(!1);
5294
5294
  i ? c.push("array-contains-any") : c.push("in", "not-in");
5295
- const [m, f] = t || [c[0], void 0], [d, g] = D(m), [h, p] = D(f), v = h ? Array.isArray(h) ? h.map((N) => N instanceof Je ? N.id : null).filter(Boolean) : [h.id] : [];
5295
+ const [m, f] = t || [c[0], void 0], [d, g] = D(m), [h, p] = D(f), v = h ? Array.isArray(h) ? h.map((N) => N instanceof je ? N.id : null).filter(Boolean) : [h.id] : [];
5296
5296
  function b(N, P) {
5297
5297
  const U = Nn.includes(d), Z = Nn.includes(N);
5298
5298
  let W = P;
5299
- U !== Z && (W = Z ? W instanceof Je ? [W] : [] : void 0), g(N), p(W);
5299
+ U !== Z && (W = Z ? W instanceof je ? [W] : [] : void 0), g(N), p(W);
5300
5300
  const ne = W !== null && Array.isArray(W) ? W.length > 0 : W !== void 0;
5301
5301
  n(
5302
5302
  N && ne ? [N, W] : void 0
5303
5303
  );
5304
5304
  }
5305
- const y = ye(), x = ae(() => o ? y.getCollection(o) : void 0, [o]), k = (N) => {
5306
- b(d, yt(N));
5305
+ const y = he(), B = le(() => o ? y.getCollection(o) : void 0, [o]), k = (N) => {
5306
+ b(d, at(N));
5307
5307
  }, C = (N) => {
5308
- b(d, N.map((P) => yt(P)));
5309
- }, B = Nn.includes(d), I = bn(
5308
+ b(d, N.map((P) => at(P)));
5309
+ }, x = Nn.includes(d), I = Wt(
5310
5310
  {
5311
- multiselect: B,
5311
+ multiselect: x,
5312
5312
  path: o,
5313
- collection: x,
5313
+ collection: B,
5314
5314
  onSingleEntitySelected: k,
5315
5315
  onMultipleEntitiesSelected: C,
5316
5316
  selectedEntityIds: v,
@@ -5328,7 +5328,7 @@ function Qs({
5328
5328
  onMouseMove: () => u(!0),
5329
5329
  onMouseLeave: () => u(!1),
5330
5330
  children: /* @__PURE__ */ r(
5331
- lt,
5331
+ He,
5332
5332
  {
5333
5333
  disabled: !o,
5334
5334
  previewProperties: a,
@@ -5343,14 +5343,14 @@ function Qs({
5343
5343
  );
5344
5344
  return /* @__PURE__ */ E("div", { className: "flex w-[440px] flex-row", children: [
5345
5345
  /* @__PURE__ */ r("div", { className: "w-[120px]", children: /* @__PURE__ */ r(
5346
- Xe,
5346
+ Ke,
5347
5347
  {
5348
5348
  value: d,
5349
5349
  onValueChange: (N) => {
5350
5350
  b(N, h);
5351
5351
  },
5352
5352
  renderValue: (N) => _r[N],
5353
- children: c.map((N) => /* @__PURE__ */ r(Ke, { value: N, children: _r[N] }, N))
5353
+ children: c.map((N) => /* @__PURE__ */ r(et, { value: N, children: _r[N] }, N))
5354
5354
  }
5355
5355
  ) }),
5356
5356
  /* @__PURE__ */ E("div", { className: "flex-grow ml-2 h-full", children: [
@@ -5362,7 +5362,7 @@ function Qs({
5362
5362
  onClick: S,
5363
5363
  variant: "outlined",
5364
5364
  className: "h-full w-full",
5365
- children: B ? "Select references" : "Select reference"
5365
+ children: x ? "Select references" : "Select reference"
5366
5366
  }
5367
5367
  )
5368
5368
  ] })
@@ -5394,8 +5394,8 @@ function Ds({
5394
5394
  const [c, A] = t || [s[0], void 0], [u, m] = D(c), [f, d] = D(A);
5395
5395
  function g(p, v) {
5396
5396
  let b = v;
5397
- const y = Fn.includes(u), x = Fn.includes(p);
5398
- y !== x && (b = x ? typeof v == "string" || typeof v == "number" ? [v] : [] : ""), typeof b == "number" && isNaN(b) && (b = void 0), m(p), d(b);
5397
+ const y = Fn.includes(u), B = Fn.includes(p);
5398
+ y !== B && (b = B ? typeof v == "string" || typeof v == "number" ? [v] : [] : ""), typeof b == "number" && isNaN(b) && (b = void 0), m(p), d(b);
5399
5399
  const k = b !== null && Array.isArray(b) ? b.length > 0 : b !== void 0;
5400
5400
  n(
5401
5401
  p && k ? [p, b] : void 0
@@ -5404,7 +5404,7 @@ function Ds({
5404
5404
  const h = Fn.includes(u);
5405
5405
  return /* @__PURE__ */ E("div", { className: "flex w-[440px] items-center", children: [
5406
5406
  /* @__PURE__ */ r("div", { className: "w-[80px]", children: /* @__PURE__ */ r(
5407
- Xe,
5407
+ Ke,
5408
5408
  {
5409
5409
  value: u,
5410
5410
  position: "item-aligned",
@@ -5412,12 +5412,12 @@ function Ds({
5412
5412
  g(p, f);
5413
5413
  },
5414
5414
  renderValue: (p) => Wr[p],
5415
- children: s.map((p) => /* @__PURE__ */ r(Ke, { value: p, children: Wr[p] }, p))
5415
+ children: s.map((p) => /* @__PURE__ */ r(et, { value: p, children: Wr[p] }, p))
5416
5416
  }
5417
5417
  ) }),
5418
5418
  /* @__PURE__ */ E("div", { className: "flex-grow ml-2", children: [
5419
5419
  !l && /* @__PURE__ */ r(
5420
- ct,
5420
+ At,
5421
5421
  {
5422
5422
  type: i === "number" ? "number" : void 0,
5423
5423
  value: f !== void 0 ? String(f) : "",
@@ -5436,7 +5436,7 @@ function Ds({
5436
5436
  }
5437
5437
  ),
5438
5438
  l && /* @__PURE__ */ r(
5439
- Xe,
5439
+ Ke,
5440
5440
  {
5441
5441
  position: "item-aligned",
5442
5442
  value: f !== void 0 ? Array.isArray(f) ? f.map((p) => String(p)) : String(f) : o ? [] : "",
@@ -5462,7 +5462,7 @@ function Ds({
5462
5462
  `select_value_${e}_${p}`
5463
5463
  ),
5464
5464
  children: l.map((p) => /* @__PURE__ */ r(
5465
- Ke,
5465
+ et,
5466
5466
  {
5467
5467
  value: String(p.id),
5468
5468
  children: /* @__PURE__ */ r(
@@ -5528,21 +5528,21 @@ function Ps({
5528
5528
  let v = p;
5529
5529
  const b = Hr.includes(u), y = Hr.includes(h);
5530
5530
  b !== y && (v = y ? p ? [p] : [] : ""), m(h), d(v === null ? void 0 : v);
5531
- const x = v !== null && Array.isArray(v) ? v.length > 0 : v !== void 0;
5531
+ const B = v !== null && Array.isArray(v) ? v.length > 0 : v !== void 0;
5532
5532
  o(
5533
- h && x ? [h, v] : void 0
5533
+ h && B ? [h, v] : void 0
5534
5534
  );
5535
5535
  }
5536
5536
  return /* @__PURE__ */ E("div", { className: "flex w-[440px] items-center", children: [
5537
5537
  /* @__PURE__ */ r("div", { className: "w-[80px]", children: /* @__PURE__ */ r(
5538
- Xe,
5538
+ Ke,
5539
5539
  {
5540
5540
  value: u,
5541
5541
  onValueChange: (h) => {
5542
5542
  g(h, f);
5543
5543
  },
5544
5544
  renderValue: (h) => Jr[h],
5545
- children: s.map((h) => /* @__PURE__ */ r(Ke, { value: h, children: Jr[h] }, h))
5545
+ children: s.map((h) => /* @__PURE__ */ r(et, { value: h, children: Jr[h] }, h))
5546
5546
  }
5547
5547
  ) }),
5548
5548
  /* @__PURE__ */ r("div", { className: "flex-grow ml-2", children: /* @__PURE__ */ r(
@@ -5562,7 +5562,7 @@ function Ps({
5562
5562
  }
5563
5563
  const go = "collectionGroupParent";
5564
5564
  function ho(e, t) {
5565
- return ae(() => e.propertiesOrder ? po(e, e.propertiesOrder) : Ms(e, t), [e, t]);
5565
+ return le(() => e.propertiesOrder ? po(e, e.propertiesOrder) : Ms(e, t), [e, t]);
5566
5566
  }
5567
5567
  function po(e, t) {
5568
5568
  return t.flatMap((n) => {
@@ -5626,11 +5626,11 @@ const Ts = {}, vo = F.createContext(Ts), Os = () => Ye(vo), bo = F.memo(
5626
5626
  additionalFields: v,
5627
5627
  displayedColumnIds: b,
5628
5628
  defaultSize: y,
5629
- properties: x,
5629
+ properties: B,
5630
5630
  tableController: {
5631
5631
  data: k,
5632
5632
  dataLoading: C,
5633
- noMoreToLoad: B,
5633
+ noMoreToLoad: x,
5634
5634
  dataLoadingError: I,
5635
5635
  filterValues: S,
5636
5636
  setFilterValues: Q,
@@ -5640,7 +5640,7 @@ const Ts = {}, vo = F.createContext(Ts), Os = () => Ye(vo), bo = F.memo(
5640
5640
  clearFilter: Z,
5641
5641
  itemCount: W,
5642
5642
  setItemCount: ne,
5643
- pageSize: le = 50,
5643
+ pageSize: ae = 50,
5644
5644
  paginationEnabled: $,
5645
5645
  checkFilterCombination: Y,
5646
5646
  setPopupCell: ce
@@ -5654,16 +5654,16 @@ const Ts = {}, vo = F.createContext(Ts), Os = () => Ye(vo), bo = F.memo(
5654
5654
  emptyComponent: re,
5655
5655
  getIdColumnWidth: L
5656
5656
  }) {
5657
- const R = _e(), T = !!t, Pe = A?.selectedEntities?.length > 0 ? A?.selectedEntities : u, we = te(), [he, Me] = F.useState(y ?? "m"), [et, He] = F.useState(void 0), We = Pe?.map((H) => H.id), It = !!S && Object.keys(S).length > 0, vt = () => {
5658
- !$ || C || B || W !== void 0 && ne?.(W + le);
5657
+ const R = We(), T = !!t, Pe = A?.selectedEntities?.length > 0 ? A?.selectedEntities : u, we = te(), [pe, Me] = F.useState(y ?? "m"), [tt, qe] = F.useState(void 0), Je = Pe?.map((H) => H.id), It = !!S && Object.keys(S).length > 0, bt = () => {
5658
+ !$ || C || x || W !== void 0 && ne?.(W + ae);
5659
5659
  }, St = w(() => {
5660
- ne?.(le);
5661
- }, [le]), tt = w(({ rowData: H }) => {
5660
+ ne?.(ae);
5661
+ }, [ae]), nt = w(({ rowData: H }) => {
5662
5662
  if (console.debug("EntityCollectionTable click"), !p)
5663
5663
  return m && m(H);
5664
- }, [m, p]), nt = w((H) => {
5664
+ }, [m, p]), rt = w((H) => {
5665
5665
  d && d(H), Me(H);
5666
- }, []), Nt = w((H) => U?.(H), []), rt = ae(() => v ? v.map((H) => ({ [H.key]: H })).reduce((H, Ee) => ({ ...H, ...Ee }), {}) : {}, [v]);
5666
+ }, []), Nt = w((H) => U?.(H), []), it = le(() => v ? v.map((H) => ({ [H.key]: H })).reduce((H, Ee) => ({ ...H, ...Ee }), {}) : {}, [v]);
5667
5667
  V(() => {
5668
5668
  const H = (Ee) => {
5669
5669
  Ee.keyCode === 27 && Qt();
@@ -5673,55 +5673,55 @@ const Ts = {}, vo = F.createContext(Ts), Os = () => Ye(vo), bo = F.memo(
5673
5673
  };
5674
5674
  });
5675
5675
  const Ft = w((H) => {
5676
- He(H);
5676
+ qe(H);
5677
5677
  }, []), Qt = w(() => {
5678
- He(void 0);
5678
+ qe(void 0);
5679
5679
  }, []), z = a, O = w(({
5680
5680
  column: H,
5681
5681
  columnIndex: Ee,
5682
- rowData: ve,
5682
+ rowData: be,
5683
5683
  rowIndex: Oe
5684
5684
  }) => {
5685
- const fe = ve, qe = H.key;
5686
- let Ze = H.custom?.disabled;
5687
- const yn = fe.values ? dt(fe.values, qe) : void 0, at = s?.({
5688
- propertyKey: qe,
5685
+ const fe = be, Ze = H.key;
5686
+ let Xe = H.custom?.disabled;
5687
+ const yn = fe.values ? ut(fe.values, Ze) : void 0, st = s?.({
5688
+ propertyKey: Ze,
5689
5689
  propertyValue: yn,
5690
5690
  entity: fe
5691
5691
  }) ?? H.custom.resolvedProperty;
5692
- return at?.disabled || (Ze = !1), at ? /* @__PURE__ */ r(de, { children: fe ? /* @__PURE__ */ r(
5692
+ return st?.disabled || (Xe = !1), st ? /* @__PURE__ */ r(de, { children: fe ? /* @__PURE__ */ r(
5693
5693
  ys,
5694
5694
  {
5695
5695
  readonly: !p,
5696
5696
  align: H.align ?? "left",
5697
- propertyKey: qe,
5698
- property: at,
5699
- value: fe?.values ? dt(fe.values, qe) : void 0,
5697
+ propertyKey: Ze,
5698
+ property: st,
5699
+ value: fe?.values ? ut(fe.values, Ze) : void 0,
5700
5700
  customFieldValidator: z,
5701
5701
  columnIndex: Ee,
5702
5702
  width: H.width,
5703
- height: Et(he),
5703
+ height: Et(pe),
5704
5704
  entity: fe,
5705
- disabled: Ze,
5705
+ disabled: Xe,
5706
5706
  path: fe.path
5707
5707
  },
5708
- `property_table_cell_${fe.id}_${qe}`
5709
- ) : ot() }) : null;
5710
- }, [z, p, he, We]), ee = w(({
5708
+ `property_table_cell_${fe.id}_${Ze}`
5709
+ ) : lt() }) : null;
5710
+ }, [z, p, pe, Je]), ee = w(({
5711
5711
  column: H,
5712
5712
  rowData: Ee,
5713
- width: ve
5713
+ width: be
5714
5714
  }) => {
5715
- const Oe = Ee, fe = rt[H.key], qe = fe.dependencies ? Object.entries(Oe.values).filter(([at, yr]) => fe.dependencies.includes(at)).reduce((at, yr) => ({ ...at, ...yr }), {}) : Oe, Ze = fe.Builder;
5716
- if (!Ze && !fe.value)
5715
+ const Oe = Ee, fe = it[H.key], Ze = fe.dependencies ? Object.entries(Oe.values).filter(([st, yr]) => fe.dependencies.includes(st)).reduce((st, yr) => ({ ...st, ...yr }), {}) : Oe, Xe = fe.Builder;
5716
+ if (!Xe && !fe.value)
5717
5717
  throw new Error("When using additional fields you need to provide a Builder or a value");
5718
- const yn = Ze ? /* @__PURE__ */ r(Ze, { entity: Oe, context: we }) : /* @__PURE__ */ r(G, { children: fe.value?.({ entity: Oe, context: we }) });
5718
+ const yn = Xe ? /* @__PURE__ */ r(Xe, { entity: Oe, context: we }) : /* @__PURE__ */ r(G, { children: fe.value?.({ entity: Oe, context: we }) });
5719
5719
  return /* @__PURE__ */ r(
5720
5720
  jn,
5721
5721
  {
5722
- width: ve,
5723
- size: he,
5724
- value: qe,
5722
+ width: be,
5723
+ size: pe,
5724
+ value: Ze,
5725
5725
  selected: !1,
5726
5726
  disabled: !0,
5727
5727
  align: "left",
@@ -5732,42 +5732,42 @@ const Ts = {}, vo = F.createContext(Ts), Os = () => Ye(vo), bo = F.memo(
5732
5732
  },
5733
5733
  `additional_table_cell_${Oe.id}_${H.key}`
5734
5734
  );
5735
- }, [rt, he, We]), ie = ae(
5735
+ }, [it, pe, Je]), ie = le(
5736
5736
  () => {
5737
- const H = Object.entries(x).flatMap(([ve, Oe]) => fr(Oe, ve)).map(({
5738
- key: ve,
5737
+ const H = Object.entries(B).flatMap(([be, Oe]) => fr(Oe, be)).map(({
5738
+ key: be,
5739
5739
  disabled: Oe
5740
5740
  }) => {
5741
- const fe = zi(x, ve);
5741
+ const fe = zi(B, be);
5742
5742
  if (!fe)
5743
- throw Error("Internal error: no property found in path " + ve);
5744
- const qe = yo(fe);
5743
+ throw Error("Internal error: no property found in path " + be);
5744
+ const Ze = yo(fe);
5745
5745
  return {
5746
- key: ve,
5746
+ key: be,
5747
5747
  align: Wa(fe),
5748
- icon: (Ze) => ke(fe, "small"),
5749
- title: fe.name ?? ve,
5750
- sortable: K && (t ? Object.keys(t).includes(ve) : !0),
5751
- filter: !T && qe,
5748
+ icon: (Xe) => ke(fe, "small"),
5749
+ title: fe.name ?? be,
5750
+ sortable: K && (t ? Object.keys(t).includes(be) : !0),
5751
+ filter: !T && Ze,
5752
5752
  width: so(fe),
5753
5753
  resizable: !0,
5754
5754
  custom: {
5755
5755
  resolvedProperty: fe,
5756
5756
  disabled: Oe
5757
5757
  },
5758
- AdditionalHeaderWidget: ({ onHover: Ze }) => M ? /* @__PURE__ */ r(M, { property: fe, propertyKey: ve, onHover: Ze }) : void 0
5758
+ AdditionalHeaderWidget: ({ onHover: Xe }) => M ? /* @__PURE__ */ r(M, { property: fe, propertyKey: be, onHover: Xe }) : void 0
5759
5759
  };
5760
- }), Ee = v ? v.map((ve) => ({
5761
- key: ve.key,
5760
+ }), Ee = v ? v.map((be) => ({
5761
+ key: be.key,
5762
5762
  align: "left",
5763
5763
  sortable: !1,
5764
- title: ve.name,
5765
- width: ve.width ?? 200
5764
+ title: be.name,
5765
+ width: be.width ?? 200
5766
5766
  })) : [];
5767
5767
  return [...H, ...Ee];
5768
5768
  },
5769
- [v, T, t, x, K]
5770
- ), oe = ae(() => ({
5769
+ [v, T, t, B, K]
5770
+ ), oe = le(() => ({
5771
5771
  key: "id_ewcfedcswdf3",
5772
5772
  width: L?.() ?? (R ? 160 : 130),
5773
5773
  title: "ID",
@@ -5776,15 +5776,15 @@ const Ts = {}, vo = F.createContext(Ts), Os = () => Ye(vo), bo = F.memo(
5776
5776
  headerAlign: "center",
5777
5777
  align: "center",
5778
5778
  AdditionalHeaderWidget: () => _
5779
- }), [L, R]), pe = ae(() => [
5779
+ }), [L, R]), ve = le(() => [
5780
5780
  oe,
5781
5781
  ...b.map((H) => ie.find((Ee) => Ee.key === H.key)).filter(Boolean)
5782
5782
  ], [ie, b, oe]), Ue = w((H) => {
5783
- const Ee = H.column, ve = H.columns, Oe = Ee.key;
5783
+ const Ee = H.column, be = H.columns, Oe = Ee.key;
5784
5784
  if (H.columnIndex === 0)
5785
5785
  return l ? l({
5786
5786
  entity: H.rowData,
5787
- size: he,
5787
+ size: pe,
5788
5788
  width: Ee.width,
5789
5789
  frozen: Ee.frozen
5790
5790
  }) : /* @__PURE__ */ r(
@@ -5794,15 +5794,15 @@ const Ts = {}, vo = F.createContext(Ts), Os = () => Ye(vo), bo = F.memo(
5794
5794
  width: Ee.width,
5795
5795
  frozen: Ee.frozen,
5796
5796
  isSelected: !1,
5797
- size: he
5797
+ size: pe
5798
5798
  }
5799
5799
  );
5800
- if (rt[Oe])
5800
+ if (it[Oe])
5801
5801
  return ee(H);
5802
- if (H.columnIndex < ve.length + 1)
5802
+ if (H.columnIndex < be.length + 1)
5803
5803
  return O(H);
5804
5804
  throw Error("Internal: columns not mapped properly");
5805
- }, [rt, l, he, ee, O]), Dt = w((H) => {
5805
+ }, [it, l, pe, ee, O]), Dt = w((H) => {
5806
5806
  Q?.({ ...H, ...t });
5807
5807
  }, [t]);
5808
5808
  return /* @__PURE__ */ r(
@@ -5812,9 +5812,9 @@ const Ts = {}, vo = F.createContext(Ts), Os = () => Ye(vo), bo = F.memo(
5812
5812
  setPopupCell: ce,
5813
5813
  select: Ft,
5814
5814
  onValueChange: c,
5815
- size: he,
5816
- selectedCell: et,
5817
- selectedEntityIds: We
5815
+ size: pe,
5816
+ selectedCell: tt,
5817
+ selectedEntityIds: Je
5818
5818
  },
5819
5819
  children: /* @__PURE__ */ E("div", { className: "h-full w-full flex flex-col bg-white dark:bg-gray-950", children: [
5820
5820
  /* @__PURE__ */ r(
@@ -5824,8 +5824,8 @@ const Ts = {}, vo = F.createContext(Ts), Os = () => Ye(vo), bo = F.memo(
5824
5824
  filterIsSet: It,
5825
5825
  onTextSearch: g ? Nt : void 0,
5826
5826
  clearFilter: Z,
5827
- size: he,
5828
- onSizeChanged: nt,
5827
+ size: pe,
5828
+ onSizeChanged: rt,
5829
5829
  title: o,
5830
5830
  actionsStart: n,
5831
5831
  actions: i,
@@ -5836,15 +5836,15 @@ const Ts = {}, vo = F.createContext(Ts), Os = () => Ye(vo), bo = F.memo(
5836
5836
  Ss,
5837
5837
  {
5838
5838
  data: k,
5839
- columns: pe,
5839
+ columns: ve,
5840
5840
  cellRenderer: Ue,
5841
- onRowClick: p ? void 0 : m ? tt : void 0,
5842
- onEndReached: vt,
5841
+ onRowClick: p ? void 0 : m ? nt : void 0,
5842
+ onEndReached: bt,
5843
5843
  onResetPagination: St,
5844
5844
  error: I,
5845
5845
  paginationEnabled: $,
5846
5846
  onColumnResize: f,
5847
- size: he,
5847
+ size: pe,
5848
5848
  loading: C,
5849
5849
  filter: S,
5850
5850
  onFilterUpdate: Q ? Dt : void 0,
@@ -5854,7 +5854,7 @@ const Ts = {}, vo = F.createContext(Ts), Os = () => Ye(vo), bo = F.memo(
5854
5854
  emptyComponent: re,
5855
5855
  checkFilterCombination: Y,
5856
5856
  createFilterField: J ? Gs : void 0,
5857
- rowClassName: w((H) => We?.includes(H.id) ? "bg-gray-100 bg-opacity-75 dark:bg-gray-800 dark:bg-opacity-75" : "", [We]),
5857
+ rowClassName: w((H) => Je?.includes(H.id) ? "bg-gray-100 bg-opacity-75 dark:bg-gray-800 dark:bg-opacity-75" : "", [Je]),
5858
5858
  className: "flex-grow",
5859
5859
  endAdornment: ge,
5860
5860
  AddColumnComponent: j
@@ -5895,7 +5895,7 @@ function Gs({
5895
5895
  }
5896
5896
  );
5897
5897
  if (c.dataType === "number" || c.dataType === "string") {
5898
- const A = c.name, u = c.enumValues ? ft(c.enumValues) : void 0;
5898
+ const A = c.name, u = c.enumValues ? mt(c.enumValues) : void 0;
5899
5899
  return /* @__PURE__ */ r(
5900
5900
  Ds,
5901
5901
  {
@@ -5972,23 +5972,23 @@ function wo({
5972
5972
  initialFilter: l,
5973
5973
  initialSort: a,
5974
5974
  forceFilter: s
5975
- } = t, [c, A] = F.useState(void 0), u = ye(), m = Le(), f = ae(() => u.resolveAliasesFrom(e), [e, u.resolveAliasesFrom]), d = o ?? s, g = t.pagination === void 0 || !!t.pagination, h = typeof t.pagination == "number" ? t.pagination : zs, [p, v] = F.useState(), [b, y] = F.useState(g ? h : void 0), x = w(($, Y) => m.isFilterCombinationValid ? m.isFilterCombinationValid({
5975
+ } = t, [c, A] = F.useState(void 0), u = he(), m = _e(), f = le(() => u.resolveAliasesFrom(e), [e, u.resolveAliasesFrom]), d = o ?? s, g = t.pagination === void 0 || !!t.pagination, h = typeof t.pagination == "number" ? t.pagination : zs, [p, v] = F.useState(), [b, y] = F.useState(g ? h : void 0), B = w(($, Y) => m.isFilterCombinationValid ? m.isFilterCombinationValid({
5976
5976
  path: f,
5977
5977
  collection: t,
5978
5978
  filterValues: $,
5979
5979
  sortBy: Y
5980
- }) : !0, []), k = ae(() => {
5981
- if (a && d && !x(d, a)) {
5980
+ }) : !0, []), k = le(() => {
5981
+ if (a && d && !B(d, a)) {
5982
5982
  console.warn("Initial sort is not compatible with the force filter. Ignoring initial sort");
5983
5983
  return;
5984
5984
  }
5985
5985
  return a;
5986
- }, [a, d]), [C, B] = F.useState(d ?? l ?? void 0), [I, S] = F.useState(k), Q = w(() => B(d ?? void 0), [d]), N = w(($) => {
5986
+ }, [a, d]), [C, x] = F.useState(d ?? l ?? void 0), [I, S] = F.useState(k), Q = w(() => x(d ?? void 0), [d]), N = w(($) => {
5987
5987
  if (d) {
5988
5988
  console.warn("Filter is not compatible with the force filter. Ignoring filter");
5989
5989
  return;
5990
5990
  }
5991
- $ && Object.keys($).length === 0 ? B(void 0) : B($);
5991
+ $ && Object.keys($).length === 0 ? x(void 0) : x($);
5992
5992
  }, [d]), {
5993
5993
  data: P,
5994
5994
  dataLoading: U,
@@ -6026,7 +6026,7 @@ function wo({
6026
6026
  setItemCount: y,
6027
6027
  paginationEnabled: g,
6028
6028
  pageSize: h,
6029
- checkFilterCombination: x,
6029
+ checkFilterCombination: B,
6030
6030
  popupCell: c,
6031
6031
  setPopupCell: A
6032
6032
  };
@@ -6041,16 +6041,16 @@ function Eo({
6041
6041
  onMultipleEntitiesDelete: a,
6042
6042
  path: s
6043
6043
  }) {
6044
- const c = Le();
6044
+ const c = _e();
6045
6045
  console.log("dataSource", c);
6046
- const A = pt(), [u, m] = D(!1), [f, d] = F.useState(), [g, h] = F.useState(), p = te();
6046
+ const A = vt(), [u, m] = D(!1), [f, d] = F.useState(), [g, h] = F.useState(), p = te();
6047
6047
  F.useEffect(() => {
6048
6048
  if (e) {
6049
6049
  const N = Array.isArray(e) && e.length === 1 ? e[0] : e;
6050
6050
  d(N), h(Array.isArray(N));
6051
6051
  }
6052
6052
  }, [e]);
6053
- const v = ae(() => Ge({
6053
+ const v = le(() => Ge({
6054
6054
  collection: t,
6055
6055
  path: s,
6056
6056
  fields: p.propertyConfigs
@@ -6058,7 +6058,7 @@ function Eo({
6058
6058
  n();
6059
6059
  }, [n]), y = w((N) => {
6060
6060
  console.debug("Deleted", N);
6061
- }, []), x = w((N, P) => {
6061
+ }, []), B = w((N, P) => {
6062
6062
  A.open({
6063
6063
  type: "error",
6064
6064
  message: "Error deleting: " + P?.message
@@ -6073,18 +6073,18 @@ function Eo({
6073
6073
  type: "error",
6074
6074
  message: "Error after deleting: " + P?.message
6075
6075
  }), console.error(P);
6076
- }, [v.name]), B = w((N) => pa({
6076
+ }, [v.name]), x = w((N) => pa({
6077
6077
  dataSource: c,
6078
6078
  entity: N,
6079
6079
  collection: v,
6080
6080
  callbacks: o,
6081
6081
  onDeleteSuccess: y,
6082
- onDeleteFailure: x,
6082
+ onDeleteFailure: B,
6083
6083
  onPreDeleteHookError: k,
6084
6084
  onDeleteSuccessHookError: C,
6085
6085
  context: p
6086
- }), [c, v, o, y, x, k, C, p]), I = w(async () => {
6087
- f && (m(!0), g ? Promise.all(f.map(B)).then((N) => {
6086
+ }), [c, v, o, y, B, k, C, p]), I = w(async () => {
6087
+ f && (m(!0), g ? Promise.all(f.map(x)).then((N) => {
6088
6088
  m(!1), a && f && a(s, f), N.every(Boolean) ? A.open({
6089
6089
  type: "success",
6090
6090
  message: `${v.name}: multiple deleted`
@@ -6095,13 +6095,13 @@ function Eo({
6095
6095
  type: "error",
6096
6096
  message: `${v.name}: Error deleting entities`
6097
6097
  }), n();
6098
- }) : B(f).then((N) => {
6098
+ }) : x(f).then((N) => {
6099
6099
  m(!1), N && (l && f && l(s, f), A.open({
6100
6100
  type: "success",
6101
6101
  message: `${v.singularName ?? v.name} deleted`
6102
6102
  }), n());
6103
6103
  }));
6104
- }, [f, g, B, a, s, n, A, v.name, l]);
6104
+ }, [f, g, x, a, s, n, A, v.name, l]);
6105
6105
  let S;
6106
6106
  if (f && g)
6107
6107
  S = /* @__PURE__ */ r(G, { children: "Multiple entities" });
@@ -6133,7 +6133,7 @@ function Eo({
6133
6133
  !g && /* @__PURE__ */ r("div", { className: "p-4", children: S })
6134
6134
  ] }),
6135
6135
  /* @__PURE__ */ E(xt, { children: [
6136
- u && /* @__PURE__ */ r(un, { size: "small" }),
6136
+ u && /* @__PURE__ */ r(fn, { size: "small" }),
6137
6137
  /* @__PURE__ */ r(
6138
6138
  Ae,
6139
6139
  {
@@ -6160,7 +6160,7 @@ function Eo({
6160
6160
  }
6161
6161
  );
6162
6162
  }
6163
- function an(e) {
6163
+ function sn(e) {
6164
6164
  return Array.isArray(e) ? e : e ? [e] : [];
6165
6165
  }
6166
6166
  function Us({
@@ -6175,12 +6175,12 @@ function Us({
6175
6175
  tableController: c,
6176
6176
  collectionEntitiesCount: A
6177
6177
  }) {
6178
- const u = te(), m = u.plugins ?? [], f = gt(), d = _e(), g = s.selectedEntities, h = Gt(e, f, $e(a), null) && i && (d ? /* @__PURE__ */ E(
6178
+ const u = te(), m = u.plugins ?? [], f = ht(), d = We(), g = s.selectedEntities, h = Gt(e, f, $e(a), null) && i && (d ? /* @__PURE__ */ E(
6179
6179
  Ae,
6180
6180
  {
6181
6181
  id: `add_entity_${a}`,
6182
6182
  onClick: i,
6183
- startIcon: /* @__PURE__ */ r(At, {}),
6183
+ startIcon: /* @__PURE__ */ r(dt, {}),
6184
6184
  size: "large",
6185
6185
  variant: "filled",
6186
6186
  color: "primary",
@@ -6197,12 +6197,12 @@ function Us({
6197
6197
  size: "medium",
6198
6198
  variant: "filled",
6199
6199
  color: "primary",
6200
- children: /* @__PURE__ */ r(At, {})
6200
+ children: /* @__PURE__ */ r(dt, {})
6201
6201
  }
6202
6202
  )), p = cr(e, f, $e(a), null);
6203
6203
  let v;
6204
6204
  if (l) {
6205
- const x = d ? /* @__PURE__ */ E(
6205
+ const B = d ? /* @__PURE__ */ E(
6206
6206
  Ae,
6207
6207
  {
6208
6208
  variant: "text",
@@ -6227,10 +6227,10 @@ function Us({
6227
6227
  }
6228
6228
  );
6229
6229
  v = /* @__PURE__ */ r(
6230
- be,
6230
+ ye,
6231
6231
  {
6232
6232
  title: p ? "Delete" : "You have selected at least one entity you cannot delete",
6233
- children: x
6233
+ children: B
6234
6234
  }
6235
6235
  );
6236
6236
  }
@@ -6243,9 +6243,9 @@ function Us({
6243
6243
  context: u,
6244
6244
  tableController: c,
6245
6245
  collectionEntitiesCount: A
6246
- }, y = an(e.Actions).map((x, k) => /* @__PURE__ */ r(de, { children: /* @__PURE__ */ r(x, { ...b }) }, `actions_${k}`));
6247
- return m && m.forEach((x, k) => {
6248
- x.collections?.CollectionActions && y.push(...an(x.collections?.CollectionActions).map((C, B) => /* @__PURE__ */ r(de, { children: /* @__PURE__ */ r(C, { ...b, ...x.collections?.collectionActionsProps }) }, `plugin_actions_${k}_${B}`)));
6246
+ }, y = sn(e.Actions).map((B, k) => /* @__PURE__ */ r(de, { children: /* @__PURE__ */ r(B, { ...b }) }, `actions_${k}`));
6247
+ return m && m.forEach((B, k) => {
6248
+ B.collections?.CollectionActions && y.push(...sn(B.collections?.CollectionActions).map((C, x) => /* @__PURE__ */ r(de, { children: /* @__PURE__ */ r(C, { ...b, ...B.collections?.collectionActionsProps }) }, `plugin_actions_${k}_${x}`)));
6249
6249
  }), /* @__PURE__ */ E(G, { children: [
6250
6250
  y,
6251
6251
  v,
@@ -6367,30 +6367,6 @@ function mr({
6367
6367
  }
6368
6368
  );
6369
6369
  }
6370
- function Ne({
6371
- icon: e,
6372
- title: t,
6373
- small: n,
6374
- className: i,
6375
- required: o
6376
- }) {
6377
- return /* @__PURE__ */ E(
6378
- "span",
6379
- {
6380
- className: `inline-flex items-center my-0.5 ${n ? "gap-1" : "gap-2"} ${i ?? ""}`,
6381
- children: [
6382
- e,
6383
- /* @__PURE__ */ r(
6384
- "span",
6385
- {
6386
- className: `font-medium text-${n ? "base" : "sm"} origin-top-left transform ${n ? "translate-x-2 scale-75" : ""}`,
6387
- children: (t ?? "") + (o ? " *" : "")
6388
- }
6389
- )
6390
- ]
6391
- }
6392
- );
6393
- }
6394
6370
  function dd({
6395
6371
  field: e,
6396
6372
  form: t,
@@ -6413,14 +6389,14 @@ function dd({
6413
6389
  }
6414
6390
  );
6415
6391
  return i ? /* @__PURE__ */ r(
6416
- be,
6392
+ ye,
6417
6393
  {
6418
6394
  title: i,
6419
6395
  children: s
6420
6396
  }
6421
6397
  ) : s;
6422
6398
  }
6423
- function Fe({
6399
+ function Ne({
6424
6400
  error: e,
6425
6401
  showError: t,
6426
6402
  property: n,
@@ -6451,7 +6427,7 @@ function Fe({
6451
6427
  }
6452
6428
  ),
6453
6429
  n.longDescription && /* @__PURE__ */ r(
6454
- be,
6430
+ ye,
6455
6431
  {
6456
6432
  title: n.longDescription,
6457
6433
  side: "bottom",
@@ -6496,14 +6472,14 @@ function qr({
6496
6472
  }, [n]);
6497
6473
  return /* @__PURE__ */ E(G, { children: [
6498
6474
  /* @__PURE__ */ r(
6499
- Xe,
6475
+ Ke,
6500
6476
  {
6501
6477
  value: t ? t.toString() : "",
6502
6478
  disabled: l,
6503
6479
  position: "item-aligned",
6504
6480
  inputClassName: X("w-full"),
6505
6481
  label: /* @__PURE__ */ r(
6506
- Ne,
6482
+ Fe,
6507
6483
  {
6508
6484
  icon: ke(c, "small"),
6509
6485
  required: c.validation?.required,
@@ -6531,7 +6507,7 @@ function qr({
6531
6507
  }
6532
6508
  ),
6533
6509
  children: u && u.map((f) => /* @__PURE__ */ r(
6534
- Ke,
6510
+ et,
6535
6511
  {
6536
6512
  value: String(f.id),
6537
6513
  children: /* @__PURE__ */ r(
@@ -6548,7 +6524,7 @@ function qr({
6548
6524
  }
6549
6525
  ),
6550
6526
  /* @__PURE__ */ r(
6551
- Fe,
6527
+ Ne,
6552
6528
  {
6553
6529
  includeDescription: A,
6554
6530
  showError: o,
@@ -6577,7 +6553,7 @@ function Zr({
6577
6553
  throw Error("Using array properties instead of single one in `of` in ArrayProperty");
6578
6554
  if (A.dataType !== "string" && A.dataType !== "number")
6579
6555
  throw Error("Field misconfiguration: array field of type string or number");
6580
- const u = ft(A.enumValues);
6556
+ const u = mt(A.enumValues);
6581
6557
  if (!u)
6582
6558
  throw console.error(a), Error("Field misconfiguration: array field of type string or number needs to have enumValues");
6583
6559
  ze({
@@ -6620,7 +6596,7 @@ function Zr({
6620
6596
  value: m ? t.map((d) => d.toString()) : [],
6621
6597
  disabled: l,
6622
6598
  label: /* @__PURE__ */ r(
6623
- Ne,
6599
+ Fe,
6624
6600
  {
6625
6601
  icon: ke(a, "small"),
6626
6602
  required: a.validation?.required,
@@ -6637,7 +6613,7 @@ function Zr({
6637
6613
  }
6638
6614
  ),
6639
6615
  /* @__PURE__ */ r(
6640
- Fe,
6616
+ Ne,
6641
6617
  {
6642
6618
  includeDescription: s,
6643
6619
  showError: o,
@@ -6670,12 +6646,12 @@ function _s({
6670
6646
  value: t,
6671
6647
  setValue: A
6672
6648
  });
6673
- const p = ye(), v = ae(() => m.path ? p.getCollection(m.path) : void 0, [m.path]);
6649
+ const p = he(), v = le(() => m.path ? p.getCollection(m.path) : void 0, [m.path]);
6674
6650
  if (!v)
6675
6651
  throw Error(`Couldn't find the corresponding collection for the path: ${m.path}`);
6676
6652
  const b = w((I) => {
6677
- console.debug("onMultipleEntitiesSelected", I), A(I.map((S) => yt(S)));
6678
- }, [A]), y = bn(
6653
+ console.debug("onMultipleEntitiesSelected", I), A(I.map((S) => at(S)));
6654
+ }, [A]), y = Wt(
6679
6655
  {
6680
6656
  multiselect: !0,
6681
6657
  path: m.path,
@@ -6684,7 +6660,7 @@ function _s({
6684
6660
  selectedEntityIds: h,
6685
6661
  forceFilter: m.forceFilter
6686
6662
  }
6687
- ), x = w((I) => {
6663
+ ), B = w((I) => {
6688
6664
  I.preventDefault(), y.open();
6689
6665
  }, [y]), k = w((I, S) => {
6690
6666
  const Q = t && t.length > I ? t[I] : void 0;
@@ -6695,12 +6671,12 @@ function _s({
6695
6671
  onMouseMove: () => g(!0),
6696
6672
  onMouseLeave: () => g(!1),
6697
6673
  children: /* @__PURE__ */ r(
6698
- lt,
6674
+ He,
6699
6675
  {
6700
6676
  disabled: !m.path,
6701
6677
  previewProperties: m.previewProperties,
6702
6678
  size: "medium",
6703
- onClick: x,
6679
+ onClick: B,
6704
6680
  reference: Q,
6705
6681
  onHover: d
6706
6682
  }
@@ -6708,14 +6684,14 @@ function _s({
6708
6684
  }
6709
6685
  ) : /* @__PURE__ */ r("div", { children: "Internal ERROR" });
6710
6686
  }, [m.path, m.previewProperties, d, t]), C = /* @__PURE__ */ r(
6711
- Ne,
6687
+ Fe,
6712
6688
  {
6713
6689
  icon: ke(s, "small"),
6714
6690
  required: s.validation?.required,
6715
6691
  title: s.name,
6716
6692
  className: "text-text-secondary dark:text-text-secondary-dark"
6717
6693
  }
6718
- ), B = /* @__PURE__ */ E(G, { children: [
6694
+ ), x = /* @__PURE__ */ E(G, { children: [
6719
6695
  !v && /* @__PURE__ */ r(
6720
6696
  Ce,
6721
6697
  {
@@ -6742,7 +6718,7 @@ function _s({
6742
6718
  variant: "outlined",
6743
6719
  color: "primary",
6744
6720
  disabled: l,
6745
- onClick: x,
6721
+ onClick: B,
6746
6722
  children: [
6747
6723
  "Edit ",
6748
6724
  s.name
@@ -6753,17 +6729,17 @@ function _s({
6753
6729
  ] });
6754
6730
  return /* @__PURE__ */ E(G, { children: [
6755
6731
  !a && /* @__PURE__ */ r(
6756
- ut,
6732
+ ft,
6757
6733
  {
6758
6734
  className: "px-2 md:px-4 pb-2 md:pb-4 pt-1 md:pt-2",
6759
6735
  initiallyExpanded: f,
6760
6736
  title: C,
6761
- children: B
6737
+ children: x
6762
6738
  }
6763
6739
  ),
6764
- a && B,
6740
+ a && x,
6765
6741
  /* @__PURE__ */ r(
6766
- Fe,
6742
+ Ne,
6767
6743
  {
6768
6744
  includeDescription: c,
6769
6745
  showError: i,
@@ -6784,7 +6760,7 @@ function Bo({
6784
6760
  size: a
6785
6761
  }) {
6786
6762
  return /* @__PURE__ */ E("div", { className: X(
6787
- dn,
6763
+ un,
6788
6764
  "relative m-4 border-box flex items-center justify-center",
6789
6765
  a === "medium" ? "min-w-[220px] min-h-[220px] max-w-[220px]" : "min-w-[118px] min-h-[118px] max-w-[118px]"
6790
6766
  ), children: [
@@ -6793,7 +6769,7 @@ function Bo({
6793
6769
  {
6794
6770
  className: "absolute rounded-full -top-2 -right-2 z-10 bg-white dark:bg-gray-900",
6795
6771
  children: /* @__PURE__ */ r(
6796
- be,
6772
+ ye,
6797
6773
  {
6798
6774
  title: "Remove",
6799
6775
  children: /* @__PURE__ */ r(
@@ -6803,7 +6779,7 @@ function Bo({
6803
6779
  onClick: (s) => {
6804
6780
  s.stopPropagation(), o(n);
6805
6781
  },
6806
- children: /* @__PURE__ */ r(en, { size: "small" })
6782
+ children: /* @__PURE__ */ r(tn, { size: "small" })
6807
6783
  }
6808
6784
  )
6809
6785
  }
@@ -6862,14 +6838,14 @@ function Xr({
6862
6838
  value: t,
6863
6839
  setValue: n
6864
6840
  });
6865
- const x = {
6841
+ const B = {
6866
6842
  id: A.entityId,
6867
6843
  values: A.values,
6868
6844
  path: A.path
6869
6845
  };
6870
6846
  return /* @__PURE__ */ E(G, { children: [
6871
6847
  !a && /* @__PURE__ */ r(
6872
- Ne,
6848
+ Fe,
6873
6849
  {
6874
6850
  icon: ke(s, "small"),
6875
6851
  required: s.validation?.required,
@@ -6888,7 +6864,7 @@ function Xr({
6888
6864
  onChange: n,
6889
6865
  setInternalValue: g,
6890
6866
  onFilesAdded: h,
6891
- entity: x,
6867
+ entity: B,
6892
6868
  onFileUploadComplete: v,
6893
6869
  storagePathBuilder: b,
6894
6870
  storage: p,
@@ -6896,7 +6872,7 @@ function Xr({
6896
6872
  }
6897
6873
  ),
6898
6874
  /* @__PURE__ */ r(
6899
- Fe,
6875
+ Ne,
6900
6876
  {
6901
6877
  includeDescription: c,
6902
6878
  showError: o,
@@ -6926,21 +6902,21 @@ function Ks({
6926
6902
  name: h,
6927
6903
  helpText: p
6928
6904
  }) {
6929
- const v = pt(), {
6905
+ const v = vt(), {
6930
6906
  getRootProps: b,
6931
6907
  getInputProps: y,
6932
- isDragActive: x,
6908
+ isDragActive: B,
6933
6909
  isDragAccept: k,
6934
6910
  isDragReject: C
6935
6911
  } = Si(
6936
6912
  {
6937
- accept: e.acceptedFiles ? e.acceptedFiles.map((B) => ({ [B]: [] })).reduce((B, I) => ({ ...B, ...I }), {}) : void 0,
6913
+ accept: e.acceptedFiles ? e.acceptedFiles.map((x) => ({ [x]: [] })).reduce((x, I) => ({ ...x, ...I }), {}) : void 0,
6938
6914
  disabled: t || n,
6939
6915
  noDragEventsBubbling: !0,
6940
6916
  maxSize: e.maxSize,
6941
6917
  onDrop: i,
6942
- onDropRejected: (B, I) => {
6943
- for (const S of B)
6918
+ onDropRejected: (x, I) => {
6919
+ for (const S of x)
6944
6920
  for (const Q of S.errors)
6945
6921
  v.open({
6946
6922
  type: "error",
@@ -6960,8 +6936,8 @@ function Ks({
6960
6936
  o && s.length ? "" : "flex",
6961
6937
  xr,
6962
6938
  {
6963
- [Hs]: !x,
6964
- [qs]: x,
6939
+ [Hs]: !B,
6940
+ [qs]: B,
6965
6941
  [Xs]: C,
6966
6942
  [Zs]: k,
6967
6943
  [Js]: t
@@ -6986,25 +6962,25 @@ function Ks({
6986
6962
  ...y()
6987
6963
  }
6988
6964
  ),
6989
- s.map((B, I) => {
6965
+ s.map((x, I) => {
6990
6966
  let S;
6991
- return B.storagePathOrDownloadUrl ? S = /* @__PURE__ */ r(
6967
+ return x.storagePathOrDownloadUrl ? S = /* @__PURE__ */ r(
6992
6968
  Bo,
6993
6969
  {
6994
- name: `storage_preview_${B.storagePathOrDownloadUrl}`,
6970
+ name: `storage_preview_${x.storagePathOrDownloadUrl}`,
6995
6971
  property: c,
6996
6972
  disabled: t,
6997
6973
  entity: A,
6998
- value: B.storagePathOrDownloadUrl,
6974
+ value: x.storagePathOrDownloadUrl,
6999
6975
  onRemove: u,
7000
- size: B.size
6976
+ size: x.size
7001
6977
  }
7002
- ) : B.file && (S = /* @__PURE__ */ r(
6978
+ ) : x.file && (S = /* @__PURE__ */ r(
7003
6979
  uo,
7004
6980
  {
7005
- entry: B,
6981
+ entry: x,
7006
6982
  metadata: m,
7007
- storagePath: f(B.file),
6983
+ storagePath: f(x.file),
7008
6984
  onFileUploadComplete: d,
7009
6985
  imageSize: g === "medium" ? 220 : 118,
7010
6986
  simple: !1
@@ -7012,7 +6988,7 @@ function Ks({
7012
6988
  )), /* @__PURE__ */ r(
7013
6989
  Ii,
7014
6990
  {
7015
- draggableId: `array_field_${h}_${B.id}`,
6991
+ draggableId: `array_field_${h}_${x.id}`,
7016
6992
  index: I,
7017
6993
  children: (Q, N) => /* @__PURE__ */ r(
7018
6994
  "div",
@@ -7029,7 +7005,7 @@ function Ks({
7029
7005
  }
7030
7006
  )
7031
7007
  },
7032
- `array_field_${h}_${B.id}`
7008
+ `array_field_${h}_${x.id}`
7033
7009
  );
7034
7010
  }),
7035
7011
  l.placeholder
@@ -7070,25 +7046,25 @@ function ec({
7070
7046
  storagePathBuilder: f
7071
7047
  }) {
7072
7048
  if (l) {
7073
- const x = e;
7074
- if (x.of) {
7075
- if (Array.isArray(x.of) || x.of.dataType !== "string")
7049
+ const B = e;
7050
+ if (B.of) {
7051
+ if (Array.isArray(B.of) || B.of.dataType !== "string")
7076
7052
  throw Error("Storage field using array must be of data type string");
7077
7053
  } else
7078
7054
  throw Error("Storage field using array must be of data type string");
7079
7055
  }
7080
- const d = u?.metadata, g = l ? "small" : "medium", h = w((x, k) => {
7056
+ const d = u?.metadata, g = l ? "small" : "medium", h = w((B, k) => {
7081
7057
  if (!l)
7082
7058
  return;
7083
- const C = [...n], B = C[x];
7084
- C.splice(x, 1), C.splice(k, 0, B), i(C);
7059
+ const C = [...n], x = C[B];
7060
+ C.splice(B, 1), C.splice(k, 0, x), i(C);
7085
7061
  const I = C.filter((S) => !!S.storagePathOrDownloadUrl).map((S) => S.storagePathOrDownloadUrl);
7086
7062
  o(I);
7087
- }, [l, o, i, n]), p = w((x) => {
7088
- x.destination && h(x.source.index, x.destination.index);
7089
- }, [h]), v = w((x) => {
7063
+ }, [l, o, i, n]), p = w((B) => {
7064
+ B.destination && h(B.source.index, B.destination.index);
7065
+ }, [h]), v = w((B) => {
7090
7066
  if (l) {
7091
- const k = n.filter((C) => C.storagePathOrDownloadUrl !== x);
7067
+ const k = n.filter((C) => C.storagePathOrDownloadUrl !== B);
7092
7068
  o(k.filter((C) => !!C.storagePathOrDownloadUrl).map((C) => C.storagePathOrDownloadUrl)), i(k);
7093
7069
  } else
7094
7070
  o(null), i([]);
@@ -7098,38 +7074,38 @@ function ec({
7098
7074
  {
7099
7075
  droppableId: `droppable_${t}`,
7100
7076
  direction: "horizontal",
7101
- renderClone: (x, k, C) => {
7102
- const B = n[C.source.index];
7077
+ renderClone: (B, k, C) => {
7078
+ const x = n[C.source.index];
7103
7079
  return /* @__PURE__ */ r(
7104
7080
  "div",
7105
7081
  {
7106
- ref: x.innerRef,
7107
- ...x.draggableProps,
7108
- ...x.dragHandleProps,
7109
- style: x.draggableProps.style,
7082
+ ref: B.innerRef,
7083
+ ...B.draggableProps,
7084
+ ...B.dragHandleProps,
7085
+ style: B.draggableProps.style,
7110
7086
  className: "rounded",
7111
7087
  children: /* @__PURE__ */ r(
7112
7088
  Bo,
7113
7089
  {
7114
- name: `storage_preview_${B.storagePathOrDownloadUrl}`,
7090
+ name: `storage_preview_${x.storagePathOrDownloadUrl}`,
7115
7091
  property: y,
7116
7092
  disabled: !0,
7117
7093
  entity: m,
7118
- value: B.storagePathOrDownloadUrl,
7094
+ value: x.storagePathOrDownloadUrl,
7119
7095
  onRemove: v,
7120
- size: B.size
7096
+ size: x.size
7121
7097
  }
7122
7098
  )
7123
7099
  }
7124
7100
  );
7125
7101
  },
7126
- children: (x, k) => /* @__PURE__ */ r(
7102
+ children: (B, k) => /* @__PURE__ */ r(
7127
7103
  Ks,
7128
7104
  {
7129
7105
  storage: u,
7130
7106
  disabled: s,
7131
7107
  isDraggingOver: k.isDraggingOver,
7132
- droppableProvided: x,
7108
+ droppableProvided: B,
7133
7109
  onFilesAdded: c,
7134
7110
  multipleFilesSupported: l,
7135
7111
  autoFocus: A,
@@ -7176,13 +7152,13 @@ function Rt({
7176
7152
  }, d = !!A, g = s.dataType === "number" ? "number" : void 0;
7177
7153
  return /* @__PURE__ */ E(G, { children: [
7178
7154
  /* @__PURE__ */ r(
7179
- ct,
7155
+ At,
7180
7156
  {
7181
7157
  value: t,
7182
7158
  onChange: f,
7183
7159
  autoFocus: a,
7184
7160
  label: /* @__PURE__ */ r(
7185
- Ne,
7161
+ Fe,
7186
7162
  {
7187
7163
  icon: ke(s, "small"),
7188
7164
  required: s.validation?.required,
@@ -7204,7 +7180,7 @@ function Rt({
7204
7180
  }
7205
7181
  ),
7206
7182
  /* @__PURE__ */ r(
7207
- Fe,
7183
+ Ne,
7208
7184
  {
7209
7185
  includeDescription: c,
7210
7186
  showError: o,
@@ -7254,7 +7230,7 @@ const tc = F.forwardRef(function({
7254
7230
  onValueChange: (f) => i(f),
7255
7231
  error: l,
7256
7232
  label: /* @__PURE__ */ r(
7257
- Ne,
7233
+ Fe,
7258
7234
  {
7259
7235
  icon: ke(A, "small"),
7260
7236
  required: A.validation?.required,
@@ -7267,7 +7243,7 @@ const tc = F.forwardRef(function({
7267
7243
  }
7268
7244
  ),
7269
7245
  /* @__PURE__ */ r(
7270
- Fe,
7246
+ Ne,
7271
7247
  {
7272
7248
  includeDescription: u,
7273
7249
  showError: l,
@@ -7306,7 +7282,7 @@ function nc({
7306
7282
  clearable: c.clearable,
7307
7283
  locale: u,
7308
7284
  label: /* @__PURE__ */ r(
7309
- Ne,
7285
+ Fe,
7310
7286
  {
7311
7287
  icon: ke(c, "small"),
7312
7288
  required: c.validation?.required,
@@ -7317,7 +7293,7 @@ function nc({
7317
7293
  }
7318
7294
  ),
7319
7295
  /* @__PURE__ */ r(
7320
- Fe,
7296
+ Ne,
7321
7297
  {
7322
7298
  includeDescription: A,
7323
7299
  showError: l,
@@ -7347,7 +7323,7 @@ function xo({
7347
7323
  };
7348
7324
  return /* @__PURE__ */ E(G, { children: [
7349
7325
  !o && /* @__PURE__ */ r(
7350
- Ne,
7326
+ Fe,
7351
7327
  {
7352
7328
  icon: ke(l, "small"),
7353
7329
  required: l.validation?.required,
@@ -7358,7 +7334,7 @@ function xo({
7358
7334
  /* @__PURE__ */ r(
7359
7335
  "div",
7360
7336
  {
7361
- className: X(dn, "min-h-14 p-4 md:p-6 overflow-x-scroll no-scrollbar"),
7337
+ className: X(un, "min-h-14 p-4 md:p-6 overflow-x-scroll no-scrollbar"),
7362
7338
  children: /* @__PURE__ */ r(de, { children: /* @__PURE__ */ r(
7363
7339
  Se,
7364
7340
  {
@@ -7372,7 +7348,7 @@ function xo({
7372
7348
  }
7373
7349
  ),
7374
7350
  /* @__PURE__ */ r(
7375
- Fe,
7351
+ Ne,
7376
7352
  {
7377
7353
  includeDescription: a,
7378
7354
  showError: i,
@@ -7405,12 +7381,12 @@ function ic({
7405
7381
  value: e,
7406
7382
  setValue: t
7407
7383
  });
7408
- const m = e && e instanceof Je, f = ye(), d = ae(() => c.path ? f.getCollection(c.path) : void 0, [c.path]);
7384
+ const m = e && e instanceof je, f = he(), d = le(() => c.path ? f.getCollection(c.path) : void 0, [c.path]);
7409
7385
  if (!d)
7410
7386
  throw Error(`Couldn't find the corresponding collection for the path: ${c.path}`);
7411
7387
  const g = w((v) => {
7412
- t(v ? yt(v) : null);
7413
- }, [t]), h = bn(
7388
+ t(v ? at(v) : null);
7389
+ }, [t]), h = Wt(
7414
7390
  {
7415
7391
  multiselect: !1,
7416
7392
  path: c.path,
@@ -7424,7 +7400,7 @@ function ic({
7424
7400
  }, [h]);
7425
7401
  return /* @__PURE__ */ E(G, { children: [
7426
7402
  /* @__PURE__ */ r(
7427
- Ne,
7403
+ Fe,
7428
7404
  {
7429
7405
  icon: ke(c, "small"),
7430
7406
  required: c.validation?.required,
@@ -7440,7 +7416,7 @@ function ic({
7440
7416
  ),
7441
7417
  d && /* @__PURE__ */ E(G, { children: [
7442
7418
  e && /* @__PURE__ */ r(
7443
- lt,
7419
+ He,
7444
7420
  {
7445
7421
  disabled: !c.path,
7446
7422
  previewProperties: c.previewProperties,
@@ -7464,7 +7440,7 @@ function ic({
7464
7440
  ) })
7465
7441
  ] }),
7466
7442
  /* @__PURE__ */ r(
7467
- Fe,
7443
+ Ne,
7468
7444
  {
7469
7445
  includeDescription: A,
7470
7446
  showError: i,
@@ -7479,7 +7455,7 @@ const kt = F.memo(oc, (e, t) => {
7479
7455
  if (e.propertyKey !== t.propertyKey)
7480
7456
  return !1;
7481
7457
  const n = Re(e.property) || e.property.fromBuilder, i = Re(t.property) || t.property.fromBuilder;
7482
- return !((n === i || me(e.property, t.property)) && e.disabled === t.disabled) || sn(t.property), !1;
7458
+ return !((n === i || me(e.property, t.property)) && e.disabled === t.disabled) || cn(t.property), !1;
7483
7459
  });
7484
7460
  function oc({
7485
7461
  propertyKey: e,
@@ -7493,7 +7469,7 @@ function oc({
7493
7469
  partOfBlock: c,
7494
7470
  autoFocus: A
7495
7471
  }) {
7496
- const u = te(), f = sn(t, u.plugins) ? $o : ii;
7472
+ const u = te(), f = cn(t, u.plugins) ? $o : ii;
7497
7473
  return /* @__PURE__ */ r(
7498
7474
  f,
7499
7475
  {
@@ -7509,7 +7485,7 @@ function oc({
7509
7485
  entityId: n.entityId,
7510
7486
  fields: u.propertyConfigs
7511
7487
  });
7512
- if (h === null || mn(h))
7488
+ if (h === null || gn(h))
7513
7489
  return /* @__PURE__ */ r(G, {});
7514
7490
  if (Lt(h))
7515
7491
  g = xo;
@@ -7569,7 +7545,7 @@ function lc({
7569
7545
  }) {
7570
7546
  const { plugins: f } = te(), d = n.customProps, g = m.field.value, h = m.meta.initialValue, p = Mn(m.form.errors, t), v = Mn(m.form.touched, t), b = p && (m.form.submitCount > 0 || n.validation?.unique) && (!Array.isArray(p) || !!p.filter((I) => !!I).length);
7571
7547
  ac(A.path, A.collection, t, n, e, f);
7572
- const y = e, x = m.form.isSubmitting, k = w((I, S) => {
7548
+ const y = e, B = m.form.isSubmitting, k = w((I, S) => {
7573
7549
  m.form.setFieldTouched(t, !0, !1), m.form.setFieldValue(t, I, S);
7574
7550
  }, []), C = w((I, S, Q) => {
7575
7551
  m.form.setFieldTouched(t, !0, !1), m.form.setFieldValue(I, S, Q);
@@ -7584,7 +7560,7 @@ function lc({
7584
7560
  error: p,
7585
7561
  touched: v,
7586
7562
  showError: b,
7587
- isSubmitting: x,
7563
+ isSubmitting: B,
7588
7564
  includeDescription: i ?? !0,
7589
7565
  property: n,
7590
7566
  disabled: u ?? !1,
@@ -7596,14 +7572,14 @@ function lc({
7596
7572
  customProps: d,
7597
7573
  context: A
7598
7574
  } }),
7599
- o && !x && /* @__PURE__ */ r(q, { variant: "caption", className: "ml-3.5", children: "This value has been updated elsewhere" })
7575
+ o && !B && /* @__PURE__ */ r(q, { variant: "caption", className: "ml-3.5", children: "This value has been updated elsewhere" })
7600
7576
  ] });
7601
7577
  }
7602
- const sn = (e, t) => {
7578
+ const cn = (e, t) => {
7603
7579
  if (t?.some((o) => o.form?.fieldBuilder) || Re(e))
7604
7580
  return !0;
7605
7581
  const n = e, i = !!n.Field || "fromBuilder" in n && n.fromBuilder;
7606
- return n.dataType === "map" && n.properties ? i || Object.values(n.properties).some((o) => sn(o, t)) : n.dataType === "array" && "resolvedProperties" in n ? i || n.resolvedProperties?.some((o) => o && sn(o, t)) : i;
7582
+ return n.dataType === "map" && n.properties ? i || Object.values(n.properties).some((o) => cn(o, t)) : n.dataType === "array" && "resolvedProperties" in n ? i || n.resolvedProperties?.some((o) => o && cn(o, t)) : i;
7607
7583
  };
7608
7584
  function ac(e, t, n, i, o, l) {
7609
7585
  return ue((() => {
@@ -7649,8 +7625,8 @@ function sc({
7649
7625
  l.properties,
7650
7626
  ...Object.keys(t).filter((b) => b in l.properties)
7651
7627
  ) : h = {} : h = l.properties;
7652
- const p = /* @__PURE__ */ r(G, { children: /* @__PURE__ */ r("div", { className: "py-1 flex flex-col space-y-2", children: Object.entries(h).filter(([b, y]) => !mn(y)).map(
7653
- ([b, y], x) => {
7628
+ const p = /* @__PURE__ */ r(G, { children: /* @__PURE__ */ r("div", { className: "py-1 flex flex-col space-y-2", children: Object.entries(h).filter(([b, y]) => !gn(y)).map(
7629
+ ([b, y], B) => {
7654
7630
  const k = {
7655
7631
  propertyKey: `${e}.${b}`,
7656
7632
  disabled: o,
@@ -7661,17 +7637,17 @@ function sc({
7661
7637
  tableMode: !1,
7662
7638
  partOfArray: !1,
7663
7639
  partOfBlock: !1,
7664
- autoFocus: m && x === 0
7640
+ autoFocus: m && B === 0
7665
7641
  };
7666
7642
  return /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
7667
7643
  kt,
7668
7644
  {
7669
7645
  ...k
7670
7646
  }
7671
- ) }, `map-${e}-${x}`);
7647
+ ) }, `map-${e}-${B}`);
7672
7648
  }
7673
7649
  ) }) }), v = /* @__PURE__ */ r(
7674
- Ne,
7650
+ Fe,
7675
7651
  {
7676
7652
  icon: ke(l, "small"),
7677
7653
  required: l.validation?.required,
@@ -7681,7 +7657,7 @@ function sc({
7681
7657
  );
7682
7658
  return /* @__PURE__ */ E(G, { children: [
7683
7659
  !c && !s && /* @__PURE__ */ r(
7684
- ut,
7660
+ ft,
7685
7661
  {
7686
7662
  initiallyExpanded: g,
7687
7663
  className: "px-2 md:px-4 pb-2 md:pb-4 pt-1 md:pt-2",
@@ -7691,7 +7667,7 @@ function sc({
7691
7667
  ),
7692
7668
  (c || s) && p,
7693
7669
  /* @__PURE__ */ r(
7694
- Fe,
7670
+ Ne,
7695
7671
  {
7696
7672
  includeDescription: A,
7697
7673
  showError: n,
@@ -7728,7 +7704,7 @@ function cc({
7728
7704
  fieldName: l.name ?? e
7729
7705
  }
7730
7706
  ), g = /* @__PURE__ */ r(
7731
- Ne,
7707
+ Fe,
7732
7708
  {
7733
7709
  icon: ke(l, "small"),
7734
7710
  required: l.validation?.required,
@@ -7738,7 +7714,7 @@ function cc({
7738
7714
  );
7739
7715
  return /* @__PURE__ */ E(G, { children: [
7740
7716
  !s && /* @__PURE__ */ r(
7741
- ut,
7717
+ ft,
7742
7718
  {
7743
7719
  initiallyExpanded: f,
7744
7720
  title: g,
@@ -7748,7 +7724,7 @@ function cc({
7748
7724
  ),
7749
7725
  s && d,
7750
7726
  /* @__PURE__ */ r(
7751
- Fe,
7727
+ Ne,
7752
7728
  {
7753
7729
  includeDescription: c,
7754
7730
  showError: n,
@@ -7845,7 +7821,7 @@ function gr({
7845
7821
  color: "primary",
7846
7822
  className: "w-full",
7847
7823
  disabled: i,
7848
- startIcon: /* @__PURE__ */ r(At, {}),
7824
+ startIcon: /* @__PURE__ */ r(dt, {}),
7849
7825
  onClick: (c) => {
7850
7826
  c.preventDefault(), t({
7851
7827
  ...e ?? {},
@@ -7875,7 +7851,7 @@ function Ac({
7875
7851
  const { locale: u } = te();
7876
7852
  function m(d, g, h) {
7877
7853
  return h === "string" || h === "number" ? /* @__PURE__ */ r(
7878
- ct,
7854
+ At,
7879
7855
  {
7880
7856
  placeholder: "value",
7881
7857
  value: d,
@@ -8007,7 +7983,7 @@ function Ac({
8007
7983
  className: "font-mono flex flex-row gap-1",
8008
7984
  children: [
8009
7985
  /* @__PURE__ */ r("div", { className: "w-[200px] max-w-[25%]", children: /* @__PURE__ */ r(
8010
- ct,
7986
+ At,
8011
7987
  {
8012
7988
  value: t,
8013
7989
  placeholder: "key",
@@ -8089,7 +8065,7 @@ function Ac({
8089
8065
  size: "small",
8090
8066
  onClick: o,
8091
8067
  className: "h-7 w-7",
8092
- children: /* @__PURE__ */ r(en, { size: "small" })
8068
+ children: /* @__PURE__ */ r(tn, { size: "small" })
8093
8069
  }
8094
8070
  )
8095
8071
  ]
@@ -8111,7 +8087,7 @@ function dc({
8111
8087
  }
8112
8088
  function c(A, u) {
8113
8089
  return u === "string" || u === "number" ? /* @__PURE__ */ r(
8114
- ct,
8090
+ At,
8115
8091
  {
8116
8092
  value: A,
8117
8093
  type: u === "number" ? "number" : "text",
@@ -8244,7 +8220,7 @@ function Ln(e) {
8244
8220
  return "array";
8245
8221
  if (e instanceof Date)
8246
8222
  return "date";
8247
- if (e instanceof Je)
8223
+ if (e instanceof je)
8248
8224
  return "reference";
8249
8225
  if (e instanceof ir)
8250
8226
  return "geopoint";
@@ -8276,9 +8252,9 @@ function uc({
8276
8252
  value: t,
8277
8253
  setValue: l
8278
8254
  });
8279
- const v = (x, k) => {
8280
- const C = c.resolvedProperties[x] ?? g, B = {
8281
- propertyKey: `${e}.${x}`,
8255
+ const v = (B, k) => {
8256
+ const C = c.resolvedProperties[B] ?? g, x = {
8257
+ propertyKey: `${e}.${B}`,
8282
8258
  disabled: f,
8283
8259
  property: C,
8284
8260
  includeDescription: A,
@@ -8289,7 +8265,7 @@ function uc({
8289
8265
  partOfBlock: !1,
8290
8266
  autoFocus: k === h
8291
8267
  };
8292
- return /* @__PURE__ */ r(kt, { ...B });
8268
+ return /* @__PURE__ */ r(kt, { ...x });
8293
8269
  }, b = /* @__PURE__ */ r(
8294
8270
  mr,
8295
8271
  {
@@ -8304,7 +8280,7 @@ function uc({
8304
8280
  newDefaultEntry: c.of.defaultValue
8305
8281
  }
8306
8282
  ), y = /* @__PURE__ */ r(
8307
- Ne,
8283
+ Fe,
8308
8284
  {
8309
8285
  icon: ke(c, "small"),
8310
8286
  required: c.validation?.required,
@@ -8314,7 +8290,7 @@ function uc({
8314
8290
  );
8315
8291
  return /* @__PURE__ */ E(G, { children: [
8316
8292
  !s && /* @__PURE__ */ r(
8317
- ut,
8293
+ ft,
8318
8294
  {
8319
8295
  initiallyExpanded: d,
8320
8296
  className: "px-2 md:px-4 pb-2 md:pb-4 pt-1 md:pt-2",
@@ -8324,7 +8300,7 @@ function uc({
8324
8300
  ),
8325
8301
  s && b,
8326
8302
  /* @__PURE__ */ r(
8327
- Fe,
8303
+ Ne,
8328
8304
  {
8329
8305
  includeDescription: A,
8330
8306
  showError: i,
@@ -8358,21 +8334,21 @@ function fc({
8358
8334
  value: t,
8359
8335
  setValue: l
8360
8336
  });
8361
- const [g, h] = D(), p = w((x, k) => /* @__PURE__ */ r(
8337
+ const [g, h] = D(), p = w((B, k) => /* @__PURE__ */ r(
8362
8338
  mc,
8363
8339
  {
8364
- name: `${e}.${x}`,
8365
- index: x,
8366
- value: t[x],
8340
+ name: `${e}.${B}`,
8341
+ index: B,
8342
+ value: t[B],
8367
8343
  typeField: c.oneOf.typeField ?? Tt,
8368
- valueField: c.oneOf.valueField ?? tn,
8344
+ valueField: c.oneOf.valueField ?? nn,
8369
8345
  properties: c.oneOf.properties,
8370
8346
  autoFocus: k === g,
8371
8347
  context: m
8372
8348
  },
8373
- `array_one_of_${x}`
8349
+ `array_one_of_${B}`
8374
8350
  ), [m, g, c.oneOf, e, t]), v = /* @__PURE__ */ r(
8375
- Ne,
8351
+ Fe,
8376
8352
  {
8377
8353
  icon: ke(c, "small"),
8378
8354
  required: c.validation?.required,
@@ -8392,13 +8368,13 @@ function fc({
8392
8368
  setFieldValue: a,
8393
8369
  newDefaultEntry: {
8394
8370
  [c.oneOf.typeField ?? Tt]: b,
8395
- [c.oneOf.valueField ?? tn]: or(c.oneOf.properties[b])
8371
+ [c.oneOf.valueField ?? nn]: or(c.oneOf.properties[b])
8396
8372
  }
8397
8373
  }
8398
8374
  );
8399
8375
  return /* @__PURE__ */ E(G, { children: [
8400
8376
  !s && /* @__PURE__ */ r(
8401
- ut,
8377
+ ft,
8402
8378
  {
8403
8379
  className: "px-2 md:px-4 pb-2 md:pb-4 pt-1 md:pt-2",
8404
8380
  initiallyExpanded: d,
@@ -8408,7 +8384,7 @@ function fc({
8408
8384
  ),
8409
8385
  s && y,
8410
8386
  /* @__PURE__ */ r(
8411
- Fe,
8387
+ Ne,
8412
8388
  {
8413
8389
  includeDescription: A,
8414
8390
  showError: i,
@@ -8450,14 +8426,14 @@ function mc({
8450
8426
  const y = b ? l[b] : void 0;
8451
8427
  u(b), m.setFieldTouched(g), m.setFieldValue(g, b), m.setFieldValue(h, y ? or(y) : null);
8452
8428
  };
8453
- return /* @__PURE__ */ E("div", { className: X(dn, "bg-transparent p-4 my-4 py-8"), children: [
8429
+ return /* @__PURE__ */ E("div", { className: X(un, "bg-transparent p-4 my-4 py-8"), children: [
8454
8430
  /* @__PURE__ */ r(
8455
8431
  ii,
8456
8432
  {
8457
8433
  required: !0,
8458
8434
  name: g,
8459
8435
  children: (b) => /* @__PURE__ */ r(G, { children: /* @__PURE__ */ r(
8460
- Xe,
8436
+ Ke,
8461
8437
  {
8462
8438
  className: "mb-2",
8463
8439
  placeholder: /* @__PURE__ */ r(
@@ -8484,7 +8460,7 @@ function mc({
8484
8460
  },
8485
8461
  children: d.map(
8486
8462
  (y) => /* @__PURE__ */ r(
8487
- Ke,
8463
+ et,
8488
8464
  {
8489
8465
  value: String(y.id),
8490
8466
  children: /* @__PURE__ */ r(
@@ -8509,9 +8485,9 @@ function mc({
8509
8485
  }
8510
8486
  const gc = new Gl();
8511
8487
  try {
8512
- Zt.use(Bn.AutoResize, {
8488
+ Xt.use(Bn.AutoResize, {
8513
8489
  min: 100
8514
- }), Zt.unuse(Bn.FontUnderline), Zt.unuse(Bn.Clear);
8490
+ }), Xt.unuse(Bn.FontUnderline), Xt.unuse(Bn.Clear);
8515
8491
  } catch {
8516
8492
  }
8517
8493
  function hc({
@@ -8545,7 +8521,7 @@ function hc({
8545
8521
  variant: "caption",
8546
8522
  className: "flex-grow",
8547
8523
  children: /* @__PURE__ */ r(
8548
- Ne,
8524
+ Fe,
8549
8525
  {
8550
8526
  icon: ke(c, "small"),
8551
8527
  required: c.validation?.required,
@@ -8556,7 +8532,7 @@ function hc({
8556
8532
  }
8557
8533
  ),
8558
8534
  /* @__PURE__ */ r(
8559
- Zt,
8535
+ Xt,
8560
8536
  {
8561
8537
  value: f ?? "",
8562
8538
  className: X(
@@ -8580,7 +8556,7 @@ function hc({
8580
8556
  }
8581
8557
  ),
8582
8558
  /* @__PURE__ */ r(
8583
- Fe,
8559
+ Ne,
8584
8560
  {
8585
8561
  includeDescription: u,
8586
8562
  showError: o,
@@ -9198,7 +9174,7 @@ function vc({
9198
9174
  setValue: l
9199
9175
  });
9200
9176
  const d = /* @__PURE__ */ r(
9201
- Ne,
9177
+ Fe,
9202
9178
  {
9203
9179
  icon: ke(s, "small"),
9204
9180
  required: s.validation?.required,
@@ -9222,7 +9198,7 @@ function vc({
9222
9198
  });
9223
9199
  return /* @__PURE__ */ E(G, { children: [
9224
9200
  !a && /* @__PURE__ */ r(
9225
- ut,
9201
+ ft,
9226
9202
  {
9227
9203
  initiallyExpanded: f,
9228
9204
  title: d,
@@ -9232,7 +9208,7 @@ function vc({
9232
9208
  ),
9233
9209
  a && g,
9234
9210
  /* @__PURE__ */ r(
9235
- Fe,
9211
+ Ne,
9236
9212
  {
9237
9213
  includeDescription: c,
9238
9214
  showError: i,
@@ -9277,10 +9253,10 @@ function wc({
9277
9253
  error: o,
9278
9254
  entity: l
9279
9255
  }) {
9280
- const a = n === "existing" || !e, s = n !== "existing" && !e, c = ae(() => {
9256
+ const a = n === "existing" || !e, s = n !== "existing" && !e, c = le(() => {
9281
9257
  if (!(!e || typeof e == "boolean" || e === "optional"))
9282
- return ft(e);
9283
- }, [e]), A = pt(), { copy: u } = ba({
9258
+ return mt(e);
9259
+ }, [e]), A = vt(), { copy: u } = ba({
9284
9260
  onSuccess: (d) => A.open({
9285
9261
  type: "success",
9286
9262
  message: `Copied ${d}`
@@ -9291,15 +9267,15 @@ function wc({
9291
9267
  name: "id",
9292
9268
  value: (l && n === "existing" ? l.id : t) ?? "",
9293
9269
  endAdornment: l ? /* @__PURE__ */ E(G, { children: [
9294
- /* @__PURE__ */ r(be, { title: "Copy", children: /* @__PURE__ */ r(
9270
+ /* @__PURE__ */ r(ye, { title: "Copy", children: /* @__PURE__ */ r(
9295
9271
  se,
9296
9272
  {
9297
9273
  onClick: (d) => u(l.id),
9298
9274
  "aria-label": "copy-id",
9299
- children: /* @__PURE__ */ r(Kt, { size: "small" })
9275
+ children: /* @__PURE__ */ r(en, { size: "small" })
9300
9276
  }
9301
9277
  ) }),
9302
- m?.entityLinkBuilder && /* @__PURE__ */ r(be, { title: "Open in the console", children: /* @__PURE__ */ r(
9278
+ m?.entityLinkBuilder && /* @__PURE__ */ r(ye, { title: "Open in the console", children: /* @__PURE__ */ r(
9303
9279
  se,
9304
9280
  {
9305
9281
  component: "a",
@@ -9308,14 +9284,14 @@ function wc({
9308
9284
  target: "_blank",
9309
9285
  onClick: (d) => d.stopPropagation(),
9310
9286
  "aria-label": "go-to-datasource",
9311
- children: /* @__PURE__ */ r(cn, { size: "small" })
9287
+ children: /* @__PURE__ */ r(An, { size: "small" })
9312
9288
  }
9313
9289
  ) })
9314
9290
  ] }) : void 0
9315
9291
  };
9316
9292
  return /* @__PURE__ */ E(G, { children: [
9317
9293
  c && /* @__PURE__ */ r(
9318
- Xe,
9294
+ Ke,
9319
9295
  {
9320
9296
  error: o,
9321
9297
  onValueChange: (d) => i(d),
@@ -9326,7 +9302,7 @@ function wc({
9326
9302
  },
9327
9303
  children: c.map(
9328
9304
  (d) => /* @__PURE__ */ r(
9329
- Ke,
9305
+ et,
9330
9306
  {
9331
9307
  value: String(d.id),
9332
9308
  children: /* @__PURE__ */ r(
@@ -9344,7 +9320,7 @@ function wc({
9344
9320
  }
9345
9321
  ),
9346
9322
  !c && /* @__PURE__ */ r(
9347
- ct,
9323
+ At,
9348
9324
  {
9349
9325
  ...f,
9350
9326
  error: o,
@@ -9465,22 +9441,22 @@ function xc({
9465
9441
  autoSave: m,
9466
9442
  onIdUpdateError: f
9467
9443
  }) {
9468
- const d = te(), g = Le(), h = d.plugins, p = ae(() => Ge({
9444
+ const d = te(), g = _e(), h = d.plugins, p = le(() => Ge({
9469
9445
  collection: n,
9470
9446
  path: t,
9471
9447
  values: i?.values,
9472
9448
  fields: d.propertyConfigs
9473
- }), [i?.values, t]), v = (e === "new" || e === "copy") && !!p.customId && p.customId !== "optional", b = ae(() => e === "new" || e === "copy" ? v ? void 0 : g.generateEntityId(t) : i?.id, []), y = ue(!1), x = ae(() => {
9449
+ }), [i?.values, t]), v = (e === "new" || e === "copy") && !!p.customId && p.customId !== "optional", b = le(() => e === "new" || e === "copy" ? v ? void 0 : g.generateEntityId(t) : i?.id, []), y = ue(!1), B = le(() => {
9474
9450
  const M = p.properties;
9475
9451
  if ((e === "existing" || e === "copy") && i)
9476
- return i.values ?? nn(M);
9452
+ return i.values ?? rn(M);
9477
9453
  if (e === "new")
9478
- return nn(M);
9454
+ return rn(M);
9479
9455
  throw console.error({
9480
9456
  status: e,
9481
9457
  entity: i
9482
9458
  }), new Error("Form has not been initialised with the correct parameters");
9483
- }, [e, p, i]), [k, C] = F.useState(b), [B, I] = F.useState(!1), [S, Q] = F.useState(), N = ue(i?.values ?? x), P = N.current, [U, Z] = D(P), W = (M) => {
9459
+ }, [e, p, i]), [k, C] = F.useState(b), [x, I] = F.useState(!1), [S, Q] = F.useState(), N = ue(i?.values ?? B), P = N.current, [U, Z] = D(P), W = (M) => {
9484
9460
  Z(M), s && s(M), m && M && !me(M, P) && Y(M);
9485
9461
  };
9486
9462
  V(() => {
@@ -9493,11 +9469,11 @@ function xc({
9493
9469
  values: U,
9494
9470
  previousValues: P,
9495
9471
  fields: d.propertyConfigs
9496
- }), le = n.callbacks?.onIdUpdate;
9472
+ }), ae = n.callbacks?.onIdUpdate;
9497
9473
  V(() => {
9498
- if (le && U && (e === "new" || e === "copy"))
9474
+ if (ae && U && (e === "new" || e === "copy"))
9499
9475
  try {
9500
- const M = le({
9476
+ const M = ae({
9501
9477
  collection: ne,
9502
9478
  path: t,
9503
9479
  entityId: k,
@@ -9509,12 +9485,12 @@ function xc({
9509
9485
  f && f(M), console.error(M);
9510
9486
  }
9511
9487
  }, [k, U, e]);
9512
- const $ = ae(() => P && e === "existing" ? Object.entries(ne.properties).map(([M, _]) => {
9513
- if (mn(_))
9488
+ const $ = le(() => P && e === "existing" ? Object.entries(ne.properties).map(([M, _]) => {
9489
+ if (gn(_))
9514
9490
  return {};
9515
- const re = P[M], L = x[M];
9491
+ const re = P[M], L = B[M];
9516
9492
  return me(re, L) ? {} : { [M]: L };
9517
- }).reduce((M, _) => ({ ...M, ..._ }), {}) : {}, [x, ne.properties, P, e]), Y = (M) => o({
9493
+ }).reduce((M, _) => ({ ...M, ..._ }), {}) : {}, [B, ne.properties, P, e]), Y = (M) => o({
9518
9494
  collection: ne,
9519
9495
  path: t,
9520
9496
  entityId: k,
@@ -9558,21 +9534,21 @@ function xc({
9558
9534
  property: re
9559
9535
  }) => g.checkUniqueField(t, M, _, k),
9560
9536
  [g, t, k]
9561
- ), K = ae(
9537
+ ), K = le(
9562
9538
  () => k ? mo(
9563
9539
  k,
9564
9540
  ne.properties,
9565
9541
  J
9566
9542
  ) : void 0,
9567
9543
  [k, ne.properties, J]
9568
- ), ge = gt(), j = w(({ entity: M, customEntityActions: _ }) => {
9544
+ ), ge = ht(), j = w(({ entity: M, customEntityActions: _ }) => {
9569
9545
  const re = Gt(n, ge, $e(t), null), L = M ? cr(n, ge, $e(t), M) : !0, R = [];
9570
9546
  return re && R.push(ko), L && R.push(Io), _ && R.push(..._), R;
9571
9547
  }, [ge, n, t]);
9572
9548
  return /* @__PURE__ */ r(
9573
9549
  li,
9574
9550
  {
9575
- initialValues: x,
9551
+ initialValues: B,
9576
9552
  onSubmit: ce,
9577
9553
  validationSchema: K,
9578
9554
  validate: (M) => console.debug("Validating", M),
@@ -9644,7 +9620,7 @@ function xc({
9644
9620
  entityId: k,
9645
9621
  status: e,
9646
9622
  onChange: C,
9647
- error: B,
9623
+ error: x,
9648
9624
  entity: i
9649
9625
  }
9650
9626
  ),
@@ -9695,7 +9671,7 @@ function Cc(e) {
9695
9671
  closeAfterSaveRef: h,
9696
9672
  autoSave: p,
9697
9673
  entityActions: v
9698
- } = e, b = te(), y = v.filter((S) => S.includeInForm === void 0 || S.includeInForm), x = ht(), k = g;
9674
+ } = e, b = te(), y = v.filter((S) => S.includeInForm === void 0 || S.includeInForm), B = pt(), k = g;
9699
9675
  V(() => {
9700
9676
  n && n(k), i && i(t);
9701
9677
  }, [k, t]), V(() => {
@@ -9709,7 +9685,7 @@ function Cc(e) {
9709
9685
  if (!Q)
9710
9686
  return console.warn(`Property ${S} not found in collection ${A.name}`), null;
9711
9687
  const N = !!o && Object.keys(o).includes(S) && !!s[S], P = !p && u || Lt(Q) || !!Q.disabled;
9712
- if (mn(Q))
9688
+ if (gn(Q))
9713
9689
  return null;
9714
9690
  const Z = {
9715
9691
  propertyKey: S,
@@ -9731,7 +9707,7 @@ function Cc(e) {
9731
9707
  },
9732
9708
  `field_${A.name}_${S}`
9733
9709
  );
9734
- }).filter(Boolean) }), B = u || !k && m === "existing", I = F.useRef(null);
9710
+ }).filter(Boolean) }), x = u || !k && m === "existing", I = F.useRef(null);
9735
9711
  return /* @__PURE__ */ E(
9736
9712
  ai,
9737
9713
  {
@@ -9762,7 +9738,7 @@ function Cc(e) {
9762
9738
  fullPath: A.path,
9763
9739
  collection: A,
9764
9740
  context: b,
9765
- sideEntityController: x
9741
+ sideEntityController: B
9766
9742
  });
9767
9743
  },
9768
9744
  children: S.icon
@@ -9773,7 +9749,7 @@ function Cc(e) {
9773
9749
  Ae,
9774
9750
  {
9775
9751
  variant: "text",
9776
- disabled: B,
9752
+ disabled: x,
9777
9753
  type: "reset",
9778
9754
  children: m === "existing" ? "Discard" : "Clear"
9779
9755
  }
@@ -9784,7 +9760,7 @@ function Cc(e) {
9784
9760
  variant: "text",
9785
9761
  color: "primary",
9786
9762
  type: "submit",
9787
- disabled: B,
9763
+ disabled: x,
9788
9764
  onClick: () => {
9789
9765
  h.current = !1;
9790
9766
  },
@@ -9801,7 +9777,7 @@ function Cc(e) {
9801
9777
  variant: "filled",
9802
9778
  color: "primary",
9803
9779
  type: "submit",
9804
- disabled: B,
9780
+ disabled: x,
9805
9781
  onClick: () => {
9806
9782
  h.current = !0;
9807
9783
  },
@@ -9833,7 +9809,7 @@ function Ic({
9833
9809
  onCellValueChange: A,
9834
9810
  container: u
9835
9811
  }) {
9836
- const m = Le(), f = te(), [d, g] = F.useState(), [h, p] = D(), v = t?.id, [b, y] = D(t);
9812
+ const m = _e(), f = te(), [d, g] = F.useState(), [h, p] = D(), v = t?.id, [b, y] = D(t);
9837
9813
  V(() => v && o ? m.listenEntity?.({
9838
9814
  path: l,
9839
9815
  entityId: v,
@@ -9843,20 +9819,20 @@ function Ic({
9843
9819
  }
9844
9820
  }) : () => {
9845
9821
  }, [m, v, o, l, s]);
9846
- const [x, k] = D(b?.values), C = o ? Ge({
9822
+ const [B, k] = D(b?.values), C = o ? Ge({
9847
9823
  collection: o,
9848
9824
  path: l,
9849
- values: x,
9825
+ values: B,
9850
9826
  entityId: v,
9851
9827
  fields: f.propertyConfigs
9852
- }) : void 0, B = js(), I = F.useRef(null), S = F.useRef(null), Q = F.useRef(!1), N = w(() => {
9828
+ }) : void 0, x = js(), I = F.useRef(null), S = F.useRef(null), Q = F.useRef(!1), N = w(() => {
9853
9829
  if (!a)
9854
9830
  throw Error("getInitialLocation error");
9855
9831
  return {
9856
- x: a.left < B.width - a.right ? a.x + a.width / 2 : a.x - a.width / 2,
9857
- y: a.top < B.height - a.bottom ? a.y + a.height / 2 : a.y - a.height / 2
9832
+ x: a.left < x.width - a.right ? a.x + a.width / 2 : a.x - a.width / 2,
9833
+ y: a.top < x.height - a.bottom ? a.y + a.height / 2 : a.y - a.height / 2
9858
9834
  };
9859
- }, [a, B.height, B.width]), P = w(({
9835
+ }, [a, x.height, x.width]), P = w(({
9860
9836
  x: Y,
9861
9837
  y: ce
9862
9838
  }) => {
@@ -9864,10 +9840,10 @@ function Ic({
9864
9840
  if (!J)
9865
9841
  throw Error("normalizePosition called before draggableBoundingRect is set");
9866
9842
  return {
9867
- x: Math.max(0, Math.min(Y, B.width - J.width)),
9868
- y: Math.max(0, Math.min(ce, B.height - J.height))
9843
+ x: Math.max(0, Math.min(Y, x.width - J.width)),
9844
+ y: Math.max(0, Math.min(ce, x.height - J.height))
9869
9845
  };
9870
- }, [B]), U = w((Y) => {
9846
+ }, [x]), U = w((Y) => {
9871
9847
  const ce = I.current?.getBoundingClientRect();
9872
9848
  if (!a || !ce)
9873
9849
  return;
@@ -9895,9 +9871,9 @@ function Ic({
9895
9871
  () => {
9896
9872
  U(h);
9897
9873
  },
9898
- [B, a]
9874
+ [x, a]
9899
9875
  );
9900
- const Z = ae(() => {
9876
+ const Z = le(() => {
9901
9877
  if (!(!C || !v))
9902
9878
  return mo(
9903
9879
  v,
@@ -9916,7 +9892,7 @@ function Ic({
9916
9892
  }) : Promise.resolve());
9917
9893
  if (!b)
9918
9894
  return /* @__PURE__ */ r(G, {});
9919
- const le = b && /* @__PURE__ */ E(
9895
+ const ae = b && /* @__PURE__ */ E(
9920
9896
  "div",
9921
9897
  {
9922
9898
  className: `text-gray-900 dark:text-white overflow-auto rounded rounded-md bg-white dark:bg-gray-950 ${s ? "" : "hidden"} cursor-grab max-w-[100vw]`,
@@ -9939,7 +9915,7 @@ function Ic({
9939
9915
  isSubmitting: K
9940
9916
  }) => {
9941
9917
  if (V(() => {
9942
- me(Y, x) || k(Y);
9918
+ me(Y, B) || k(Y);
9943
9919
  }, [Y]), !b)
9944
9920
  return /* @__PURE__ */ r(
9945
9921
  Ce,
@@ -9956,7 +9932,7 @@ function Ic({
9956
9932
  path: l,
9957
9933
  setFieldValue: ce,
9958
9934
  save: ne
9959
- }, M = i && bt(C.properties, i), _ = i && M ? {
9935
+ }, M = i && yt(C.properties, i), _ = i && M ? {
9960
9936
  propertyKey: i,
9961
9937
  disabled: K || Lt(M) || !!M.disabled,
9962
9938
  property: M,
@@ -10047,7 +10023,7 @@ function Ic({
10047
10023
  {
10048
10024
  className: "overflow-hidden",
10049
10025
  children: [
10050
- le,
10026
+ ae,
10051
10027
  /* @__PURE__ */ r(
10052
10028
  "div",
10053
10029
  {
@@ -10098,10 +10074,10 @@ const Sc = "collectionGroupParent", So = F.memo(
10098
10074
  className: o,
10099
10075
  ...l
10100
10076
  }) {
10101
- const a = Le(), s = ye(), c = ht(), A = gt(), u = Ct(), m = te(), f = F.useRef(null), d = ae(() => {
10077
+ const a = _e(), s = he(), c = pt(), A = ht(), u = Ct(), m = te(), f = F.useRef(null), d = le(() => {
10102
10078
  const O = u?.getCollectionConfig(t);
10103
- return O ? je(l, O) : l;
10104
- }, [l, t, u?.getCollectionConfig]), g = Gt(d, A, $e(t), null), [h, p] = D(void 0), [v, b] = F.useState(void 0), [y, x] = F.useState(0), [k, C] = D(0), B = w(() => {
10079
+ return O ? Le(l, O) : l;
10080
+ }, [l, t, u?.getCollectionConfig]), g = Gt(d, A, $e(t), null), [h, p] = D(void 0), [v, b] = F.useState(void 0), [y, B] = F.useState(0), [k, C] = D(0), x = w(() => {
10105
10081
  const O = h;
10106
10082
  setTimeout(() => {
10107
10083
  O === h && p(void 0);
@@ -10109,7 +10085,7 @@ const Sc = "collectionGroupParent", So = F.memo(
10109
10085
  }, [h]), I = w((O) => Ui(d, A, $e(t), O ?? null) ? d.inlineEditing === void 0 || d.inlineEditing : !1, [d, A, t]), S = d.selectionEnabled === void 0 || d.selectionEnabled, Q = !I(), [N, P] = D(!1), U = No(), Z = d.selectionController ?? U, {
10110
10086
  selectedEntities: W,
10111
10087
  toggleEntitySelection: ne,
10112
- isEntitySelected: le,
10088
+ isEntitySelected: ae,
10113
10089
  setSelectedEntities: $
10114
10090
  } = Z;
10115
10091
  V(() => {
@@ -10130,7 +10106,7 @@ const Sc = "collectionGroupParent", So = F.memo(
10130
10106
  path: O.path,
10131
10107
  collection: d,
10132
10108
  updateUrl: !0,
10133
- onClose: B
10109
+ onClose: x
10134
10110
  })), [t, d, c]), j = w(() => {
10135
10111
  m.onAnalyticsEvent?.("new_entity_click", {
10136
10112
  path: t
@@ -10138,7 +10114,7 @@ const Sc = "collectionGroupParent", So = F.memo(
10138
10114
  path: t,
10139
10115
  collection: d,
10140
10116
  updateUrl: !0,
10141
- onClose: B
10117
+ onClose: x
10142
10118
  });
10143
10119
  }, [t, d, c]);
10144
10120
  w((O) => {
@@ -10153,30 +10129,30 @@ const Sc = "collectionGroupParent", So = F.memo(
10153
10129
  }, [m, t, W]), _ = w((O, ee) => {
10154
10130
  m.onAnalyticsEvent?.("single_entity_deleted", {
10155
10131
  path: t
10156
- }), $((ie) => ie.filter((oe) => oe.id !== ee.id)), x(Date.now());
10132
+ }), $((ie) => ie.filter((oe) => oe.id !== ee.id)), B(Date.now());
10157
10133
  }, [m, t, $]), re = w((O, ee) => {
10158
10134
  m.onAnalyticsEvent?.("multiple_entities_deleted", {
10159
10135
  path: t
10160
- }), $([]), b(void 0), x(Date.now());
10136
+ }), $([]), b(void 0), B(Date.now());
10161
10137
  }, [$]);
10162
10138
  let L;
10163
10139
  m?.plugins && (L = m.plugins.find((O) => O.collectionView?.AddColumnComponent)?.collectionView?.AddColumnComponent);
10164
10140
  const R = w((O, ee) => {
10165
10141
  if (u) {
10166
- const ie = u.getCollectionConfig(O), oe = je(ie, ee);
10142
+ const ie = u.getCollectionConfig(O), oe = Le(ie, ee);
10167
10143
  u.onCollectionModified(O, oe);
10168
10144
  }
10169
10145
  }, [u]), T = w(({
10170
10146
  width: O,
10171
10147
  key: ee
10172
10148
  }) => {
10173
- if (!bt(d.properties, ee))
10149
+ if (!yt(d.properties, ee))
10174
10150
  return;
10175
10151
  const ie = Fo(ee, O);
10176
10152
  R(t, ie);
10177
10153
  }, [d, R, t]), Pe = w((O) => {
10178
10154
  u && R(t, { defaultSize: O });
10179
- }, [R, t, u]), we = Gt(d, A, $e(t), null), he = w(
10155
+ }, [R, t, u]), we = Gt(d, A, $e(t), null), pe = w(
10180
10156
  ({
10181
10157
  name: O,
10182
10158
  value: ee,
@@ -10189,7 +10165,7 @@ const Sc = "collectionGroupParent", So = F.memo(
10189
10165
  context: ee,
10190
10166
  value: ie,
10191
10167
  propertyKey: oe,
10192
- onValueUpdated: pe,
10168
+ onValueUpdated: ve,
10193
10169
  setError: Ue,
10194
10170
  entity: Dt
10195
10171
  }) => {
@@ -10207,22 +10183,22 @@ const Sc = "collectionGroupParent", So = F.memo(
10207
10183
  callbacks: d.callbacks,
10208
10184
  dataSource: a,
10209
10185
  context: ee,
10210
- onSaveSuccess: () => pe(),
10211
- onSaveFailure: (ve) => {
10212
- console.error("Save failure"), console.error(ve), Ue(ve);
10186
+ onSaveSuccess: () => ve(),
10187
+ onSaveFailure: (be) => {
10188
+ console.error("Save failure"), console.error(be), Ue(be);
10213
10189
  }
10214
10190
  });
10215
- }, et = s.resolveAliasesFrom(t), He = ae(() => Ge({
10191
+ }, tt = s.resolveAliasesFrom(t), qe = le(() => Ge({
10216
10192
  collection: d,
10217
10193
  path: t,
10218
10194
  fields: m.propertyConfigs
10219
- }), [d, t]), We = w(({
10195
+ }), [d, t]), Je = w(({
10220
10196
  propertyKey: O,
10221
10197
  propertyValue: ee,
10222
10198
  entity: ie
10223
10199
  }) => {
10224
- let oe = bt(d.properties, O);
10225
- return oe || (oe = bt(He.properties, O)), Te({
10200
+ let oe = yt(d.properties, O);
10201
+ return oe || (oe = yt(qe.properties, O)), Te({
10226
10202
  propertyKey: O,
10227
10203
  propertyOrBuilder: oe,
10228
10204
  path: t,
@@ -10231,7 +10207,7 @@ const Sc = "collectionGroupParent", So = F.memo(
10231
10207
  entityId: ie.id,
10232
10208
  fields: m.propertyConfigs
10233
10209
  });
10234
- }, [d.properties, m.propertyConfigs, t, He.properties]), It = ho(He, !0), vt = ae(() => {
10210
+ }, [d.properties, m.propertyConfigs, t, qe.properties]), It = ho(qe, !0), bt = le(() => {
10235
10211
  const O = d.subcollections?.map((ie) => ({
10236
10212
  key: dr(ie),
10237
10213
  name: ie.name,
@@ -10243,8 +10219,8 @@ const Sc = "collectionGroupParent", So = F.memo(
10243
10219
  color: "primary",
10244
10220
  variant: "outlined",
10245
10221
  startIcon: /* @__PURE__ */ r(Jn, { size: "small" }),
10246
- onClick: (pe) => {
10247
- pe.stopPropagation(), c.open({
10222
+ onClick: (ve) => {
10223
+ ve.stopPropagation(), c.open({
10248
10224
  path: t,
10249
10225
  entityId: oe.id,
10250
10226
  selectedSubPath: ie.id ?? ie.path,
@@ -10262,13 +10238,13 @@ const Sc = "collectionGroupParent", So = F.memo(
10262
10238
  dependencies: [],
10263
10239
  Builder: ({ entity: ie }) => {
10264
10240
  const oe = s.getParentReferencesFromPath(ie.path);
10265
- return /* @__PURE__ */ r(G, { children: oe.map((pe) => /* @__PURE__ */ r(
10266
- lt,
10241
+ return /* @__PURE__ */ r(G, { children: oe.map((ve) => /* @__PURE__ */ r(
10242
+ He,
10267
10243
  {
10268
- reference: pe,
10244
+ reference: ve,
10269
10245
  size: "tiny"
10270
10246
  },
10271
- pe.path + "/" + pe.id
10247
+ ve.path + "/" + ve.id
10272
10248
  )) });
10273
10249
  }
10274
10250
  }] : [];
@@ -10278,31 +10254,31 @@ const Sc = "collectionGroupParent", So = F.memo(
10278
10254
  ...ee
10279
10255
  ];
10280
10256
  }, [d, t]), St = w(() => {
10281
- x(Date.now());
10282
- }, []), tt = _e(), nt = w(({ entity: O, customEntityActions: ee }) => {
10257
+ B(Date.now());
10258
+ }, []), nt = We(), rt = w(({ entity: O, customEntityActions: ee }) => {
10283
10259
  const ie = O ? cr(d, A, $e(t), O) : !0, oe = [Ec];
10284
10260
  return we && oe.push(ko), ie && oe.push(Io), ee && oe.push(...ee), oe;
10285
10261
  }, [A, d, we, t]), Nt = w(() => {
10286
- const O = nt({}), ee = O.filter((pe) => pe.collapsed !== !1), oe = O.filter((pe) => pe.collapsed === !1).length * (tt ? 40 : 30);
10287
- return (tt ? 80 + oe : 70 + oe) + (ee.length > 0 ? tt ? 40 : 30 : 0);
10288
- }, [tt, nt]), rt = w(({
10262
+ const O = rt({}), ee = O.filter((ve) => ve.collapsed !== !1), oe = O.filter((ve) => ve.collapsed === !1).length * (nt ? 40 : 30);
10263
+ return (nt ? 80 + oe : 70 + oe) + (ee.length > 0 ? nt ? 40 : 30 : 0);
10264
+ }, [nt, rt]), it = w(({
10289
10265
  entity: O,
10290
10266
  size: ee,
10291
10267
  width: ie,
10292
10268
  frozen: oe
10293
10269
  }) => {
10294
- const pe = le(O), Ue = nt({ entity: O, customEntityActions: d.entityActions });
10270
+ const ve = ae(O), Ue = rt({ entity: O, customEntityActions: d.entityActions });
10295
10271
  return /* @__PURE__ */ r(
10296
10272
  ur,
10297
10273
  {
10298
10274
  entity: O,
10299
10275
  width: ie,
10300
10276
  frozen: oe,
10301
- isSelected: pe,
10277
+ isSelected: ve,
10302
10278
  selectionEnabled: S,
10303
10279
  size: ee,
10304
10280
  highlightEntity: p,
10305
- unhighlightEntity: B,
10281
+ unhighlightEntity: x,
10306
10282
  collection: d,
10307
10283
  fullPath: t,
10308
10284
  actions: Ue,
@@ -10311,7 +10287,7 @@ const Sc = "collectionGroupParent", So = F.memo(
10311
10287
  selectionController: Z
10312
10288
  }
10313
10289
  );
10314
- }, [le, d, A, t, S, ne, we]), Ft = /* @__PURE__ */ r(
10290
+ }, [ae, d, A, t, S, ne, we]), Ft = /* @__PURE__ */ r(
10315
10291
  Hn,
10316
10292
  {
10317
10293
  open: N,
@@ -10340,7 +10316,7 @@ const Sc = "collectionGroupParent", So = F.memo(
10340
10316
  }
10341
10317
  )
10342
10318
  ] }),
10343
- children: d.description && /* @__PURE__ */ r("div", { className: "m-4 text-gray-900 dark:text-white", children: /* @__PURE__ */ r(An, { source: d.description }) })
10319
+ children: d.description && /* @__PURE__ */ r("div", { className: "m-4 text-gray-900 dark:text-white", children: /* @__PURE__ */ r(dn, { source: d.description }) })
10344
10320
  }
10345
10321
  );
10346
10322
  function Qt({
@@ -10348,7 +10324,7 @@ const Sc = "collectionGroupParent", So = F.memo(
10348
10324
  propertyKey: ee,
10349
10325
  onHover: ie
10350
10326
  }) {
10351
- return m.plugins ? /* @__PURE__ */ r(G, { children: m.plugins.filter((oe) => oe.collectionView?.HeaderAction).map((oe, pe) => {
10327
+ return m.plugins ? /* @__PURE__ */ r(G, { children: m.plugins.filter((oe) => oe.collectionView?.HeaderAction).map((oe, ve) => {
10352
10328
  const Ue = oe.collectionView.HeaderAction;
10353
10329
  return /* @__PURE__ */ r(
10354
10330
  Ue,
@@ -10360,7 +10336,7 @@ const Sc = "collectionGroupParent", So = F.memo(
10360
10336
  collection: d,
10361
10337
  parentCollectionIds: n ?? []
10362
10338
  },
10363
- `plugin_header_action_${pe}`
10339
+ `plugin_header_action_${ve}`
10364
10340
  );
10365
10341
  }) }) : null;
10366
10342
  }
@@ -10383,21 +10359,21 @@ const Sc = "collectionGroupParent", So = F.memo(
10383
10359
  /* @__PURE__ */ r(
10384
10360
  bo,
10385
10361
  {
10386
- additionalFields: vt,
10362
+ additionalFields: bt,
10387
10363
  tableController: Y,
10388
10364
  displayedColumnIds: It,
10389
10365
  onSizeChanged: Pe,
10390
10366
  onEntityClick: ge,
10391
10367
  onColumnResize: T,
10392
10368
  onValueChange: Me,
10393
- tableRowActionsBuilder: rt,
10394
- uniqueFieldValidator: he,
10369
+ tableRowActionsBuilder: it,
10370
+ uniqueFieldValidator: pe,
10395
10371
  title: Ft,
10396
10372
  selectionController: Z,
10397
10373
  highlightedEntities: h ? [h] : [],
10398
10374
  defaultSize: d.defaultSize,
10399
- properties: He.properties,
10400
- getPropertyFor: We,
10375
+ properties: qe.properties,
10376
+ getPropertyFor: Je,
10401
10377
  actions: /* @__PURE__ */ r(
10402
10378
  Us,
10403
10379
  {
@@ -10423,7 +10399,7 @@ const Sc = "collectionGroupParent", So = F.memo(
10423
10399
  onClick: j,
10424
10400
  className: "mt-4",
10425
10401
  children: [
10426
- /* @__PURE__ */ r(At, {}),
10402
+ /* @__PURE__ */ r(dt, {}),
10427
10403
  "Create your first entity"
10428
10404
  ]
10429
10405
  }
@@ -10454,8 +10430,8 @@ const Sc = "collectionGroupParent", So = F.memo(
10454
10430
  collection: d,
10455
10431
  entity: J?.entity,
10456
10432
  tableKey: ce.current,
10457
- customFieldValidator: he,
10458
- path: et,
10433
+ customFieldValidator: pe,
10434
+ path: tt,
10459
10435
  onCellValueChange: Me,
10460
10436
  container: f.current
10461
10437
  },
@@ -10499,7 +10475,7 @@ function Nc({
10499
10475
  sortBy: i,
10500
10476
  onCountChange: o
10501
10477
  }) {
10502
- const l = Le(), a = ye(), [s, c] = D(void 0), [A, u] = D(void 0), m = i ? i[0] : void 0, f = i ? i[1] : void 0, d = ae(() => a.resolveAliasesFrom(e), [e, a.resolveAliasesFrom]);
10478
+ const l = _e(), a = he(), [s, c] = D(void 0), [A, u] = D(void 0), m = i ? i[0] : void 0, f = i ? i[1] : void 0, d = le(() => a.resolveAliasesFrom(e), [e, a.resolveAliasesFrom]);
10503
10479
  return V(() => {
10504
10480
  l.countEntities({
10505
10481
  path: d,
@@ -10531,8 +10507,8 @@ function Fc({
10531
10507
  collection: e,
10532
10508
  path: t
10533
10509
  }) {
10534
- const [n, i] = F.useState(!1), [o, l] = F.useState(""), a = ht();
10535
- return /* @__PURE__ */ r(be, { title: n ? void 0 : "Find by ID", children: /* @__PURE__ */ r(
10510
+ const [n, i] = F.useState(!1), [o, l] = F.useState(""), a = pt();
10511
+ return /* @__PURE__ */ r(ye, { title: n ? void 0 : "Find by ID", children: /* @__PURE__ */ r(
10536
10512
  Hn,
10537
10513
  {
10538
10514
  open: n,
@@ -10554,7 +10530,7 @@ function Fc({
10554
10530
  className: "text-gray-900 dark:text-white w-96 max-w-full",
10555
10531
  children: /* @__PURE__ */ E("div", { className: "flex p-4 w-full gap-4", children: [
10556
10532
  /* @__PURE__ */ r(
10557
- ct,
10533
+ At,
10558
10534
  {
10559
10535
  placeholder: "Find entity by ID",
10560
10536
  size: "small",
@@ -10589,7 +10565,7 @@ function Qc({
10589
10565
  forceFilter: s,
10590
10566
  maxSelection: c
10591
10567
  }) {
10592
- const A = hr(), u = ht(), m = ye(), f = te(), d = m.resolveAliasesFrom(o), g = Le(), [h, p] = D([]), v = No();
10568
+ const A = hr(), u = pt(), m = he(), f = te(), d = m.resolveAliasesFrom(o), g = _e(), [h, p] = D([]), v = No();
10593
10569
  V(() => {
10594
10570
  let N = !1;
10595
10571
  const P = l?.map((U) => U?.toString()).filter(Boolean);
@@ -10629,7 +10605,7 @@ function Qc({
10629
10605
  }
10630
10606
  v.setSelectedEntities(P), t && t(P);
10631
10607
  }
10632
- }, x = (N) => {
10608
+ }, B = (N) => {
10633
10609
  console.debug("ReferenceSelectionInner onEntityClick", N), !n && e ? (f.onAnalyticsEvent?.("reference_selected_single", {
10634
10610
  path: d,
10635
10611
  entityId: N.id
@@ -10642,7 +10618,7 @@ function Qc({
10642
10618
  collection: i,
10643
10619
  updateUrl: !0,
10644
10620
  onUpdate: ({ entity: N }) => {
10645
- p([N, ...h]), x(N);
10621
+ p([N, ...h]), B(N);
10646
10622
  },
10647
10623
  closeOnSave: !0
10648
10624
  });
@@ -10652,7 +10628,7 @@ function Qc({
10652
10628
  width: U,
10653
10629
  frozen: Z
10654
10630
  }) => {
10655
- const W = v.selectedEntities, ne = W && W.map((le) => le.id).indexOf(N.id) > -1;
10631
+ const W = v.selectedEntities, ne = W && W.map((ae) => ae.id).indexOf(N.id) > -1;
10656
10632
  return /* @__PURE__ */ r(
10657
10633
  ur,
10658
10634
  {
@@ -10667,7 +10643,7 @@ function Qc({
10667
10643
  selectionController: v
10668
10644
  }
10669
10645
  );
10670
- }, B = w((N) => {
10646
+ }, x = w((N) => {
10671
10647
  N.stopPropagation(), A.close(!1);
10672
10648
  }, [A]);
10673
10649
  if (!i)
@@ -10677,7 +10653,7 @@ function Qc({
10677
10653
  error: "Could not find collection with id " + i
10678
10654
  }
10679
10655
  );
10680
- const I = ae(() => Ge({
10656
+ const I = le(() => Ge({
10681
10657
  collection: i,
10682
10658
  path: d,
10683
10659
  values: {},
@@ -10693,7 +10669,7 @@ function Qc({
10693
10669
  bo,
10694
10670
  {
10695
10671
  displayedColumnIds: S,
10696
- onEntityClick: x,
10672
+ onEntityClick: B,
10697
10673
  tableController: Q,
10698
10674
  tableRowActionsBuilder: C,
10699
10675
  title: /* @__PURE__ */ r(q, { variant: "subtitle2", children: i.singularName ? `Select ${i.singularName}` : `Select from ${i.name}` }),
@@ -10725,7 +10701,7 @@ function Qc({
10725
10701
  /* @__PURE__ */ r(
10726
10702
  Ae,
10727
10703
  {
10728
- onClick: B,
10704
+ onClick: x,
10729
10705
  color: "primary",
10730
10706
  variant: "filled",
10731
10707
  children: "Done"
@@ -10740,13 +10716,13 @@ function Dc({
10740
10716
  onClear: n,
10741
10717
  onNewClick: i
10742
10718
  }) {
10743
- const o = gt(), l = _e(), a = i ? (c) => {
10719
+ const o = ht(), l = We(), a = i ? (c) => {
10744
10720
  c.preventDefault(), i();
10745
10721
  } : void 0, s = Gt(e, o, $e(t), null) && a && (l ? /* @__PURE__ */ E(
10746
10722
  Ae,
10747
10723
  {
10748
10724
  onClick: a,
10749
- startIcon: /* @__PURE__ */ r(At, {}),
10725
+ startIcon: /* @__PURE__ */ r(dt, {}),
10750
10726
  variant: "outlined",
10751
10727
  color: "primary",
10752
10728
  children: [
@@ -10761,7 +10737,7 @@ function Dc({
10761
10737
  size: "medium",
10762
10738
  variant: "outlined",
10763
10739
  color: "primary",
10764
- children: /* @__PURE__ */ r(At, {})
10740
+ children: /* @__PURE__ */ r(dt, {})
10765
10741
  }
10766
10742
  ));
10767
10743
  return /* @__PURE__ */ E(G, { children: [
@@ -10783,7 +10759,7 @@ function Kr({
10783
10759
  }) {
10784
10760
  const n = Ct();
10785
10761
  return /* @__PURE__ */ r(
10786
- ut,
10762
+ ft,
10787
10763
  {
10788
10764
  invisible: !0,
10789
10765
  titleClassName: "font-medium text-sm text-gray-600 dark:text-gray-400",
@@ -10819,7 +10795,7 @@ function Rc({
10819
10795
  description: l,
10820
10796
  onClick: a
10821
10797
  }) {
10822
- const s = Ct(), c = zn(n ?? e), A = fn(), u = te(), m = (s?.favouritePaths ?? []).includes(t);
10798
+ const s = Ct(), c = zn(n ?? e), A = mn(), u = te(), m = (s?.favouritePaths ?? []).includes(t);
10823
10799
  let f;
10824
10800
  if (u.plugins && n) {
10825
10801
  const d = {
@@ -10912,7 +10888,7 @@ function Rc({
10912
10888
  variant: "body2",
10913
10889
  color: "secondary",
10914
10890
  component: "div",
10915
- children: /* @__PURE__ */ r(An, { source: l })
10891
+ children: /* @__PURE__ */ r(dn, { source: l })
10916
10892
  }
10917
10893
  )
10918
10894
  ]
@@ -10924,7 +10900,7 @@ function Rc({
10924
10900
  );
10925
10901
  }
10926
10902
  function Pc({ entry: e }) {
10927
- const t = fn(), n = Ct();
10903
+ const t = mn(), n = Ct();
10928
10904
  if (!n)
10929
10905
  return null;
10930
10906
  const i = n.favouritePaths.includes(e.path), o = (l) => {
@@ -10959,7 +10935,7 @@ function Pc({ entry: e }) {
10959
10935
  );
10960
10936
  }
10961
10937
  function Mc({ hidden: e }) {
10962
- const t = ye(), n = Ct();
10938
+ const t = he(), n = Ct();
10963
10939
  if (!n)
10964
10940
  return null;
10965
10941
  const i = (n?.favouritePaths ?? []).map((o) => t.topLevelNavigation?.navigationEntries.find((l) => l.path === o)).filter(Boolean);
@@ -11004,7 +10980,7 @@ function Oc({
11004
10980
  additionalChildrenStart: e,
11005
10981
  additionalChildrenEnd: t
11006
10982
  }) {
11007
- const n = te(), i = ye();
10983
+ const n = te(), i = he();
11008
10984
  if (!i.topLevelNavigation)
11009
10985
  throw Error("Navigation not ready in FireCMSHomePage");
11010
10986
  const {
@@ -11036,12 +11012,12 @@ function Oc({
11036
11012
  context: n
11037
11013
  };
11038
11014
  p = /* @__PURE__ */ r(G, { children: n.plugins.filter((b) => b.homePage?.includeSection).map((b, y) => {
11039
- const x = b.homePage.includeSection(v);
11015
+ const B = b.homePage.includeSection(v);
11040
11016
  return /* @__PURE__ */ r(
11041
11017
  Kr,
11042
11018
  {
11043
- group: x.title,
11044
- children: x.children
11019
+ group: B.title,
11020
+ children: B.children
11045
11021
  },
11046
11022
  `plugin_section_${b.name}`
11047
11023
  );
@@ -11074,12 +11050,12 @@ function Oc({
11074
11050
  e,
11075
11051
  g,
11076
11052
  d.map((v, b) => {
11077
- const y = [], x = {
11053
+ const y = [], B = {
11078
11054
  group: v,
11079
11055
  context: n
11080
11056
  };
11081
11057
  n.plugins && n.plugins.forEach((C) => {
11082
- C.homePage?.AdditionalCards && y.push(...an(C.homePage?.AdditionalCards));
11058
+ C.homePage?.AdditionalCards && y.push(...sn(C.homePage?.AdditionalCards));
11083
11059
  });
11084
11060
  const k = m.filter((C) => C.group === v || !C.group && v === void 0);
11085
11061
  return k.length === 0 && y.length === 0 ? null : /* @__PURE__ */ r(
@@ -11092,12 +11068,12 @@ function Oc({
11092
11068
  {
11093
11069
  ...C,
11094
11070
  onClick: () => {
11095
- const B = C.type === "collection" ? "home_navigate_to_collection" : C.type === "view" ? "home_navigate_to_view" : "unmapped_event";
11096
- n.onAnalyticsEvent?.(B, { path: C.path });
11071
+ const x = C.type === "collection" ? "home_navigate_to_collection" : C.type === "view" ? "home_navigate_to_view" : "unmapped_event";
11072
+ n.onAnalyticsEvent?.(x, { path: C.path });
11097
11073
  }
11098
11074
  }
11099
11075
  ) }, `nav_${C.group}_${C.name}`)),
11100
- y && y.map((C, B) => /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(C, { ...x }) }, `nav_${v}_add_${B}`))
11076
+ y && y.map((C, x) => /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(C, { ...B }) }, `nav_${v}_add_${x}`))
11101
11077
  ] })
11102
11078
  },
11103
11079
  `plugin_section_${v}`
@@ -11349,10 +11325,10 @@ const Yc = function({
11349
11325
  style: c,
11350
11326
  user: A
11351
11327
  }) {
11352
- const u = ye(), m = gt(), {
11328
+ const u = he(), m = ht(), {
11353
11329
  mode: f,
11354
11330
  toggleMode: d
11355
- } = eo(), g = _e(), h = A ?? m.user;
11331
+ } = eo(), g = We(), h = A ?? m.user;
11356
11332
  let p;
11357
11333
  if (h && h.photoURL)
11358
11334
  p = /* @__PURE__ */ r(
@@ -11430,7 +11406,7 @@ const Yc = function({
11430
11406
  }
11431
11407
  );
11432
11408
  }, zc = (e) => e && Array.isArray(e) && e.length > 0 ? e.map((t, n) => t ? {
11433
- [Qi(t) + n]: Xt()
11409
+ [Qi(t) + n]: Kt()
11434
11410
  } : {}).reduce((t, n) => ({ ...t, ...n }), {}) : {};
11435
11411
  function Qo({
11436
11412
  droppableId: e,
@@ -11449,12 +11425,12 @@ function Qo({
11449
11425
  );
11450
11426
  V(() => {
11451
11427
  if (u && n && n.length !== f.length) {
11452
- const b = n.map((y, x) => {
11453
- const k = Qi(y) + x;
11428
+ const b = n.map((y, B) => {
11429
+ const k = Qi(y) + B;
11454
11430
  if (k in m.current)
11455
11431
  return m.current[k];
11456
11432
  {
11457
- const C = Xt();
11433
+ const C = Kt();
11458
11434
  return m.current[k] = C, C;
11459
11435
  }
11460
11436
  });
@@ -11464,30 +11440,30 @@ function Qo({
11464
11440
  const g = (b) => {
11465
11441
  if (b.preventDefault(), i)
11466
11442
  return;
11467
- const y = Xt(), x = [...f, y];
11468
- a && a(y), d(x), A([...n ?? [], c]);
11443
+ const y = Kt(), B = [...f, y];
11444
+ a && a(y), d(B), A([...n ?? [], c]);
11469
11445
  }, h = (b) => {
11470
11446
  const y = [...f];
11471
- y.splice(b, 1), d(y), A(n.filter((x, k) => k !== b));
11447
+ y.splice(b, 1), d(y), A(n.filter((B, k) => k !== b));
11472
11448
  }, p = (b) => {
11473
- const y = Xt(), x = n[b], k = [
11449
+ const y = Kt(), B = n[b], k = [
11474
11450
  ...f.splice(0, b + 1),
11475
11451
  y,
11476
11452
  ...f.splice(b + 1, f.length - b - 1)
11477
11453
  ];
11478
- a && a(y), d(k), A([...n.slice(0, b + 1), x, ...n.slice(b + 1)]);
11454
+ a && a(y), d(k), A([...n.slice(0, b + 1), B, ...n.slice(b + 1)]);
11479
11455
  };
11480
11456
  return /* @__PURE__ */ r(Ci, { onDragEnd: (b) => {
11481
11457
  if (!b.destination)
11482
11458
  return;
11483
- const y = b.source.index, x = b.destination.index, k = [...f], C = k[y];
11484
- k[y] = k[x], k[x] = C, d(k), A($c(n, y, x));
11459
+ const y = b.source.index, B = b.destination.index, k = [...f], C = k[y];
11460
+ k[y] = k[B], k[B] = C, d(k), A($c(n, y, B));
11485
11461
  }, children: /* @__PURE__ */ r(
11486
11462
  ki,
11487
11463
  {
11488
11464
  droppableId: e,
11489
- renderClone: (b, y, x) => {
11490
- const k = x.source.index, C = f[k];
11465
+ renderClone: (b, y, B) => {
11466
+ const k = B.source.index, C = f[k];
11491
11467
  return /* @__PURE__ */ r(
11492
11468
  ei,
11493
11469
  {
@@ -11509,28 +11485,28 @@ function Qo({
11509
11485
  ...b.droppableProps,
11510
11486
  ref: b.innerRef,
11511
11487
  children: [
11512
- u && f.map((x, k) => /* @__PURE__ */ r(
11488
+ u && f.map((B, k) => /* @__PURE__ */ r(
11513
11489
  Ii,
11514
11490
  {
11515
- draggableId: `array_field_${x}`,
11491
+ draggableId: `array_field_${B}`,
11516
11492
  isDragDisabled: i,
11517
11493
  index: k,
11518
- children: (C, B) => /* @__PURE__ */ r(
11494
+ children: (C, x) => /* @__PURE__ */ r(
11519
11495
  ei,
11520
11496
  {
11521
11497
  provided: C,
11522
- internalId: x,
11498
+ internalId: B,
11523
11499
  index: k,
11524
11500
  size: l,
11525
11501
  disabled: i,
11526
11502
  buildEntry: o,
11527
11503
  remove: h,
11528
11504
  copy: p,
11529
- isDragging: B.isDragging
11505
+ isDragging: x.isDragging
11530
11506
  }
11531
11507
  )
11532
11508
  },
11533
- `array_field_${x}`
11509
+ `array_field_${B}`
11534
11510
  )),
11535
11511
  b.placeholder,
11536
11512
  s && /* @__PURE__ */ r("div", { className: "py-4 justify-center text-left", children: /* @__PURE__ */ r(
@@ -11540,7 +11516,7 @@ function Qo({
11540
11516
  size: l === "small" ? "small" : "medium",
11541
11517
  color: "primary",
11542
11518
  disabled: i,
11543
- startIcon: /* @__PURE__ */ r(At, {}),
11519
+ startIcon: /* @__PURE__ */ r(dt, {}),
11544
11520
  onClick: g,
11545
11521
  children: t ?? "Add"
11546
11522
  }
@@ -11622,7 +11598,7 @@ function Uc({
11622
11598
  ...o.dragHandleProps,
11623
11599
  children: [
11624
11600
  /* @__PURE__ */ r(
11625
- be,
11601
+ ye,
11626
11602
  {
11627
11603
  side: e === "column" ? "left" : void 0,
11628
11604
  title: "Move",
@@ -11648,7 +11624,7 @@ function Uc({
11648
11624
  ),
11649
11625
  !s && !a && /* @__PURE__ */ E(G, { children: [
11650
11626
  /* @__PURE__ */ r(
11651
- be,
11627
+ ye,
11652
11628
  {
11653
11629
  title: "Remove",
11654
11630
  side: e === "column" ? "left" : void 0,
@@ -11660,7 +11636,7 @@ function Uc({
11660
11636
  disabled: t,
11661
11637
  onClick: () => n(i),
11662
11638
  children: /* @__PURE__ */ r(
11663
- en,
11639
+ tn,
11664
11640
  {
11665
11641
  size: "small"
11666
11642
  }
@@ -11670,7 +11646,7 @@ function Uc({
11670
11646
  }
11671
11647
  ),
11672
11648
  /* @__PURE__ */ r(
11673
- be,
11649
+ ye,
11674
11650
  {
11675
11651
  side: e === "column" ? "left" : void 0,
11676
11652
  title: "Copy in this position",
@@ -11682,7 +11658,7 @@ function Uc({
11682
11658
  disabled: t,
11683
11659
  onClick: () => l(i),
11684
11660
  children: /* @__PURE__ */ r(
11685
- Kt,
11661
+ en,
11686
11662
  {
11687
11663
  size: "small"
11688
11664
  }
@@ -11703,11 +11679,11 @@ function Uc({
11703
11679
  ) }),
11704
11680
  children: [
11705
11681
  /* @__PURE__ */ E(Ie, { dense: !0, onClick: () => n(i), children: [
11706
- /* @__PURE__ */ r(en, { size: "small" }),
11682
+ /* @__PURE__ */ r(tn, { size: "small" }),
11707
11683
  "Remove"
11708
11684
  ] }),
11709
11685
  /* @__PURE__ */ E(Ie, { dense: !0, onClick: () => l(i), children: [
11710
- /* @__PURE__ */ r(Kt, { size: "small" }),
11686
+ /* @__PURE__ */ r(en, { size: "small" }),
11711
11687
  "Copy"
11712
11688
  ] })
11713
11689
  ]
@@ -11721,11 +11697,127 @@ function $c(e, t, n) {
11721
11697
  const i = Array.from(e), [o] = i.splice(t, 1);
11722
11698
  return i.splice(n, 0, o), i;
11723
11699
  }
11724
- function Xt() {
11700
+ function Kt() {
11725
11701
  return Math.floor(Math.random() * Math.floor(Number.MAX_SAFE_INTEGER));
11726
11702
  }
11727
- function bn(e) {
11728
- const t = ye(), n = pn(), i = w(() => {
11703
+ function md({
11704
+ name: e,
11705
+ multiselect: t = !1,
11706
+ path: n,
11707
+ disabled: i,
11708
+ value: o,
11709
+ onReferenceSelected: l,
11710
+ onMultipleReferenceSelected: a,
11711
+ previewProperties: s,
11712
+ forceFilter: c,
11713
+ size: A,
11714
+ className: u
11715
+ }) {
11716
+ const m = he(), f = le(() => m.getCollection(n), [n, m]);
11717
+ if (!f)
11718
+ throw Error(`Couldn't find the corresponding collection for the path: ${n}`);
11719
+ const d = w((b) => {
11720
+ if (!i && l) {
11721
+ const y = b ? at(b) : null;
11722
+ l?.({ reference: y, entity: b });
11723
+ }
11724
+ }, [i, l]), g = w((b) => {
11725
+ if (!i && a) {
11726
+ const y = b ? b.map((B) => at(B)) : null;
11727
+ a({ references: y, entities: b });
11728
+ }
11729
+ }, [i, l]), h = Wt(
11730
+ {
11731
+ multiselect: t,
11732
+ path: n,
11733
+ collection: f,
11734
+ onSingleEntitySelected: d,
11735
+ onMultipleEntitiesSelected: g,
11736
+ forceFilter: c
11737
+ }
11738
+ );
11739
+ w((b) => {
11740
+ b.stopPropagation(), t ? g([]) : d(null);
11741
+ }, [l]);
11742
+ let p;
11743
+ const v = () => {
11744
+ i || h.open();
11745
+ };
11746
+ return Array.isArray(o) ? p = /* @__PURE__ */ r("div", { className: "flex flex-col gap-4", children: o.map((b, y) => /* @__PURE__ */ r(
11747
+ He,
11748
+ {
11749
+ onClick: v,
11750
+ reference: b,
11751
+ disabled: i,
11752
+ previewProperties: s,
11753
+ size: A
11754
+ },
11755
+ `reference_preview_${y}`
11756
+ )) }) : o instanceof je && (p = /* @__PURE__ */ r(
11757
+ He,
11758
+ {
11759
+ reference: o,
11760
+ onClick: v,
11761
+ disabled: i,
11762
+ previewProperties: s,
11763
+ size: A
11764
+ }
11765
+ )), /* @__PURE__ */ E(
11766
+ "div",
11767
+ {
11768
+ className: X(
11769
+ "text-sm font-medium text-gray-500",
11770
+ "min-w-80 flex flex-col gap-4",
11771
+ "relative transition-colors duration-200 ease-in rounded font-medium",
11772
+ i ? "bg-opacity-50" : "hover:bg-opacity-75",
11773
+ "text-opacity-50 dark:text-white dark:text-opacity-50",
11774
+ u
11775
+ ),
11776
+ children: [
11777
+ p,
11778
+ !o && /* @__PURE__ */ r("div", { className: "justify-center text-left", children: /* @__PURE__ */ E(
11779
+ Ae,
11780
+ {
11781
+ variant: "outlined",
11782
+ color: "primary",
11783
+ disabled: i,
11784
+ onClick: v,
11785
+ children: [
11786
+ "Edit ",
11787
+ e
11788
+ ]
11789
+ }
11790
+ ) })
11791
+ ]
11792
+ }
11793
+ );
11794
+ }
11795
+ function Fe({
11796
+ icon: e,
11797
+ title: t,
11798
+ small: n,
11799
+ className: i,
11800
+ required: o
11801
+ }) {
11802
+ return /* @__PURE__ */ E(
11803
+ "span",
11804
+ {
11805
+ className: `inline-flex items-center my-0.5 ${n ? "gap-1" : "gap-2"} ${i ?? ""}`,
11806
+ children: [
11807
+ e,
11808
+ /* @__PURE__ */ r(
11809
+ "span",
11810
+ {
11811
+ className: `font-medium text-${n ? "base" : "sm"} origin-top-left transform ${n ? "translate-x-2 scale-75" : ""}`,
11812
+ children: (t ?? "") + (o ? " *" : "")
11813
+ }
11814
+ )
11815
+ ]
11816
+ }
11817
+ );
11818
+ }
11819
+ function Wt(e) {
11820
+ const t = he(), n = vn(), i = w(() => {
11729
11821
  if (e.path) {
11730
11822
  let l = e.collection;
11731
11823
  if (l || (l = t.getCollection(e.path)), !l)
@@ -11756,7 +11848,7 @@ function bn(e) {
11756
11848
  }
11757
11849
  const jc = `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAB9pJREFUWMONl12obVUVx39jzLk+9j7nHq9y1QT1qpcbSIaXQFGs24PQl3HroSQyqHwJFJF6qaceCsqQoJdELHoIC6EeJCSKsi/TFLGozGsKXksljRLxnrP3WmvOOUYPa+19zsmPWpux5pxrzTX///Exx5hb+B/X1y+/nuIlVKF5m0v1YbQ55tIcKTQXFerNQkumOZ1oTiXCqUH8saR+74L8ZIWWux7+7JuuL2/04s5jJyhWQlXV71KtbhCtr1WtD6s0KlrjNBRaEi3JGzpv6bymQ0sn9mwv9otB7Ls7kn9Xo+U7D9z8/xG4+bz3cs35SjE/HEK8NWr8RBOrs+tQUUlEtAYaijRkbxmY0fuMzucsfcbSWnZQtiWxJL3Uid09iH0jIM8/1f+d3/zuS29M4PvHrmG+cZA8dMdjiLfNYrx6owrMVKlVUQkgkeI1iYbBJ3A2WPpKNtnx+UQisy29L0gPDGKfrwkPn2bJPfd/Zo0ZVp0fvOOdnLGxheX+A/Mq3nGwqS8/q645o4psxkgbhFqdSgqVJKIkghgqjuDoWh+dlm1AI0gUC3o4C9d04idbmZ06euQDPPHMj3YJ3HnkrZx98Fys2PFZ1dxxsJkdPbOecaBqmcWGqBVBIkEiKkoQJ5IJJBTbY8aRgBMwjxgVJoJJwDScnYUrOy2PBamfv/CS4zz9zE+IAIfPuQQzPzyrmq9u1e3RM+qWeaipNCCiE4DjbjgF94xZQj2htpjeK84ImqlIUpO9JllgEKgJDFpfOoh8paN8chbOeQ4g/OTq97PdLXSz3fjiVjO7/sx6g804ow41QWuCrjQPBB3bkZQgAkpBJOMojmIEjIgRKV6RpaYIZHGKQlK5OIv0L8bul8eOfsxjDJGD8613z6rmhq1qxkY1o9YKFUFEEED2xqoE1MNoWgPBwQZMl2SrSbQM9NQyUMlA5S3Rlcqd6E50RdRvPMvn9yE8qP9+9WWtQvXxzdic8xrwPaJrUYJGoq4sVBM1Ukuiln4UBipJVJrGoHUhrARB0XMQ/cizbSd61uaZlzUhXjuvWmqt9oOyAmUPEabnkSDV2j0Rp2YgksZdQpoCtRBwAiN4cKYdw4m3pNnbY9Tw4SZUh9tQEda+ld1WpmThgoivU8fYDbgEggRcleiZ6BOoFNRXLQQX1Eelggsgh8GPx6DhWB2iRgkj2OTuVX8dBzJtMx93BAKK4hIwUUSEID4BGspecWTfDwSCw+UxqByJoqPf9+xmYWQg7H3u+5Poyk3o5BZDxRBxxH29fdkF3YcBXKHgF+m+hLxn4OvbnnbPzMkjsm/+f5cXec2ye6ZfpO6+OX7pE8TqPj1zcN/7Zu8CDm44Bu6skrKjuOs0FlxWCJNMYxMOqLlR3DAvsAKaZo6t7+u7r6nhjN/5RKIQKESKhykhjeIINgJi+0m4Fiuns2WKZQybtJ2AfAWzGu/ayt0wz5gXimeKQyKSPI4kiCMhDxSgyLiOiY9kxnW2NVs+1ZeBbAmzhLmtgd0d8z1k1mIUTxQbKD5gnkmuDN6QvCF5TaIie0UmkIU1id3WcfwZHUo61eWB3gayDdOiZR+JXUuMWmcbyGWcny2RzOi8obeWwRsGrxm8JlGPBHCyOJmpJkwkHHs09pnfL1L60KLqtBKZtprhU+lVmSq9+xRsBfOMW6L4QLFM7zWdz+l8Ru8tA+10YKlJIiSxkcC6dQqlmJc/xaHIvTuZT7UpHalFUHEqL6iGsfKtM8FEzMdy7J4oXui9mk5CczpGErtEKgacQUZJE3gSwzw/i+dfx2G7e6IcOPALCXIkakGkYx4iwceyq+uENPp+RSI7DN7Q+5ylb7JgJLH0+XRGbOlRerWJwNgmnOwJ83Tvq/7KX2KZb1nJfnfp5YRoda7hFC/MQyGI7Mteow2E4pHkDT2zyfS758HV4bSjolOjF2PYS4KBbN2L5vmHZ7DpsWQnDsvfLj1+Lwufy9LSO2y5M1Mnik8OEJxAoSJRk7xhoKX3+URiztI3WPgGS2/p1OnE6CcSvRQGH+htQfH07dPSP7Lp9ajcNy+9DnG/oMT67qqZHz/QtGxVyjworQqVCIjiPiaaTD1ttZZ+fTIeCXQ+Y6HCQm0tO5LYpmfHlyy9/1nCPi3ICw/99JbxUHrdvxr6Q4depdhTfeGapVeH+imKxwhv6ZnR+5zeN0aNGU2+ZIPON0cX0LBQYSnGQgsLSSzoWdiCHVvQ2fLP2fMtwf2vDz50K6TpVPxj/sn7Ni5iu9l6Tof+yd78yoWFQ0uvWYvVLK1h6e34B8RnY9DZnIW3LAijxpLYkZ6Fd+z4km3bYcd2WNry8ezppsZ5ZMd2+MfTv3xtjbr9/PfwyoFDzPvtq7I2t+Vq/m6pt4hxThVaojao1CANRkORmkwkiTCI00thKYWOzJJR+6V1JE8/z2JfqGgfW9jLPPLg7a9Xe8frHs7j5MVXESxfmLS5KYXmxhQ3z/a4icQNRFtEGlwjJkoRIamTmIKNTE+it57kw0sF+1ah3CkSXkiPf42Htl+3WL/2+vIFJ6ishJ3QXD1o9dEhVCcGbS7ModUcakwrigaKChkoYmQK2XMp5L8V/F7DfuDePYrEcv8f7npdnDcksEvkg9RewquhuayTcHzQeCyJXpFVD2fRzSxCFtkuwqks8mjB/ujYr9y6k0gs9528503X/w/F3eUgyIBI4wAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNS0xMFQxOToyODozMyswMDowMEzeSx4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDUtMTBUMTk6Mjg6MzMrMDA6MDA9g/OiAAAARnRFWHRzb2Z0d2FyZQBJbWFnZU1hZ2ljayA2LjcuOC05IDIwMTQtMDUtMTIgUTE2IGh0dHA6Ly93d3cuaW1hZ2VtYWdpY2sub3Jn3IbtAAAAABh0RVh0VGh1bWI6OkRvY3VtZW50OjpQYWdlcwAxp/+7LwAAABh0RVh0VGh1bWI6OkltYWdlOjpoZWlnaHQAMTkyDwByhQAAABd0RVh0VGh1bWI6OkltYWdlOjpXaWR0aAAxOTLTrCEIAAAAGXRFWHRUaHVtYjo6TWltZXR5cGUAaW1hZ2UvcG5nP7JWTgAAABd0RVh0VGh1bWI6Ok1UaW1lADE2MjA2NzQ5MTMk8oswAAAAD3RFWHRUaHVtYjo6U2l6ZQAwQkKUoj7sAAAAVnRFWHRUaHVtYjo6VVJJAGZpbGU6Ly8vbW50bG9nL2Zhdmljb25zLzIwMjEtMDUtMTAvOGIxNDNhYjgwODhkMjBlZThkYmUzOTFhN2NkNmQ3NmQuaWNvLnBuZ9msgG0AAAAASUVORK5CYII=
11758
11850
  `;
11759
- function md(e, t) {
11851
+ function gd(e, t) {
11760
11852
  V(() => {
11761
11853
  if (document) {
11762
11854
  document.title = `${e} - FireCMS`;
@@ -11765,7 +11857,7 @@ function md(e, t) {
11765
11857
  }
11766
11858
  }, [e, t]);
11767
11859
  }
11768
- const Wt = "main_##Q$SC^#S6";
11860
+ const Jt = "main_##Q$SC^#S6";
11769
11861
  function Lc({
11770
11862
  path: e,
11771
11863
  entityId: t,
@@ -11789,13 +11881,13 @@ function Lc({
11789
11881
  closeAfterSave: !1
11790
11882
  });
11791
11883
  }, !1, 2e3);
11792
- const g = Le(), h = hr(), p = ht(), v = pt(), b = te(), y = gt(), [x, k] = D(void 0), [C, B] = D(i ? "copy" : t ? "existing" : "new"), I = ue(void 0), S = I.current, Q = (o.subcollections ?? []).filter((z) => !z.hideFromNavigation), N = Q?.length ?? 0, P = o.entityViews, U = P?.length ?? 0, Z = o.formAutoSave && !o.customId, W = U > 0 || N > 0, ne = n ?? Yi(
11884
+ const g = _e(), h = hr(), p = pt(), v = vt(), b = te(), y = ht(), [B, k] = D(void 0), [C, x] = D(i ? "copy" : t ? "existing" : "new"), I = ue(void 0), S = I.current, Q = (o.subcollections ?? []).filter((z) => !z.hideFromNavigation), N = Q?.length ?? 0, P = o.entityViews, U = P?.length ?? 0, Z = o.formAutoSave && !o.customId, W = U > 0 || N > 0, ne = n ?? Yi(
11793
11885
  o ? o.defaultSelectedView : void 0,
11794
11886
  {
11795
11887
  status: C,
11796
11888
  entityId: t
11797
11889
  }
11798
- ), le = ue(ne ?? Wt), $ = le.current === Wt, {
11890
+ ), ae = ue(ne ?? Jt), $ = ae.current === Jt, {
11799
11891
  entity: Y,
11800
11892
  dataLoading: ce,
11801
11893
  // eslint-disable-next-line no-unused-vars
@@ -11830,10 +11922,10 @@ function Lc({
11830
11922
  m(!1), Z || v.open({
11831
11923
  type: "success",
11832
11924
  message: `${o.singularName ?? o.name}: Saved correctly`
11833
- }), ge(z), B("existing"), a(!1), c && c({ entity: z }), O ? (h.setBlocked(!1), h.close(!0), A?.()) : C !== "existing" && p.replace({
11925
+ }), ge(z), x("existing"), a(!1), c && c({ entity: z }), O ? (h.setBlocked(!1), h.close(!0), A?.()) : C !== "existing" && p.replace({
11834
11926
  path: e,
11835
11927
  entityId: z.id,
11836
- selectedSubPath: le.current,
11928
+ selectedSubPath: ae.current,
11837
11929
  updateUrl: !0,
11838
11930
  collection: o
11839
11931
  });
@@ -11848,10 +11940,10 @@ function Lc({
11848
11940
  closeAfterSave: ee,
11849
11941
  entityId: ie,
11850
11942
  collection: oe,
11851
- path: pe
11943
+ path: ve
11852
11944
  }) => {
11853
11945
  m(!0), Ki({
11854
- path: pe,
11946
+ path: ve,
11855
11947
  entityId: ie,
11856
11948
  values: z,
11857
11949
  previousValues: O,
@@ -11870,7 +11962,7 @@ function Lc({
11870
11962
  entityId: ee,
11871
11963
  values: ie,
11872
11964
  previousValues: oe,
11873
- closeAfterSave: pe,
11965
+ closeAfterSave: ve,
11874
11966
  autoSave: Ue
11875
11967
  }) => {
11876
11968
  C && (Ue ? d(ie) : T({
@@ -11879,11 +11971,11 @@ function Lc({
11879
11971
  entityId: ee,
11880
11972
  values: ie,
11881
11973
  previousValues: oe,
11882
- closeAfterSave: pe
11974
+ closeAfterSave: ve
11883
11975
  }));
11884
- }, we = P ? P.map((z) => Gi(z, b.entityViews)).filter(Boolean) : [], he = P && we.map(
11976
+ }, we = P ? P.map((z) => Gi(z, b.entityViews)).filter(Boolean) : [], pe = P && we.map(
11885
11977
  (z, O) => {
11886
- if (!z || le.current !== z.key)
11978
+ if (!z || ae.current !== z.key)
11887
11979
  return null;
11888
11980
  const ee = z.Builder;
11889
11981
  return ee ? /* @__PURE__ */ r(
@@ -11894,29 +11986,29 @@ function Lc({
11894
11986
  "relative flex-grow w-full h-full overflow-auto "
11895
11987
  ),
11896
11988
  role: "tabpanel",
11897
- children: /* @__PURE__ */ r(de, { children: x && /* @__PURE__ */ r(
11989
+ children: /* @__PURE__ */ r(de, { children: B && /* @__PURE__ */ r(
11898
11990
  ee,
11899
11991
  {
11900
11992
  collection: o,
11901
11993
  entity: K,
11902
11994
  modifiedValues: S ?? K?.values,
11903
- formContext: x
11995
+ formContext: B
11904
11996
  }
11905
11997
  ) })
11906
11998
  },
11907
11999
  `custom_view_${z.key}`
11908
12000
  ) : (console.error("customView.Builder is not defined"), null);
11909
12001
  }
11910
- ).filter(Boolean), Me = ce && !K || (!K || j === void 0) && (C === "existing" || C === "copy"), et = Me || u, He = Q && Q.map(
12002
+ ).filter(Boolean), Me = ce && !K || (!K || j === void 0) && (C === "existing" || C === "copy"), tt = Me || u, qe = Q && Q.map(
11911
12003
  (z, O) => {
11912
12004
  const ee = z.id ?? z.path, ie = K ? `${e}/${K?.id}/${Be(ee)}` : void 0;
11913
- return le.current !== ee ? null : /* @__PURE__ */ E(
12005
+ return ae.current !== ee ? null : /* @__PURE__ */ E(
11914
12006
  "div",
11915
12007
  {
11916
12008
  className: "relative flex-grow h-full overflow-auto w-full",
11917
12009
  role: "tabpanel",
11918
12010
  children: [
11919
- et && /* @__PURE__ */ r(ln, {}),
12011
+ tt && /* @__PURE__ */ r(an, {}),
11920
12012
  !Me && (K && ie ? /* @__PURE__ */ r(
11921
12013
  So,
11922
12014
  {
@@ -11937,29 +12029,29 @@ function Lc({
11937
12029
  `subcol_${ee}`
11938
12030
  );
11939
12031
  }
11940
- ).filter(Boolean), We = w(() => {
12032
+ ).filter(Boolean), Je = w(() => {
11941
12033
  a(!1);
11942
12034
  }, []), It = (z) => {
11943
- le.current = z, p.replace({
12035
+ ae.current = z, p.replace({
11944
12036
  path: e,
11945
12037
  entityId: t,
11946
- selectedSubPath: z === Wt ? void 0 : z,
12038
+ selectedSubPath: z === Jt ? void 0 : z,
11947
12039
  updateUrl: !0,
11948
12040
  collection: o
11949
12041
  });
11950
- }, vt = w((z) => {
12042
+ }, bt = w((z) => {
11951
12043
  I.current = z;
11952
12044
  }, []), St = w((z) => {
11953
12045
  v.open({
11954
12046
  type: "error",
11955
12047
  message: "Error updating id, check the console"
11956
12048
  });
11957
- }, []), tt = w((z) => {
12049
+ }, []), nt = w((z) => {
11958
12050
  ge((O) => O ? {
11959
12051
  ...O,
11960
12052
  id: z
11961
12053
  } : void 0);
11962
- }, []), nt = (z) => {
12054
+ }, []), rt = (z) => {
11963
12055
  Z || a(z);
11964
12056
  };
11965
12057
  function Nt() {
@@ -11971,11 +12063,11 @@ function Lc({
11971
12063
  path: e,
11972
12064
  collection: o,
11973
12065
  onEntitySaveRequested: Pe,
11974
- onDiscard: We,
11975
- onValuesChanged: vt,
11976
- onModified: nt,
12066
+ onDiscard: Je,
12067
+ onValuesChanged: bt,
12068
+ onModified: rt,
11977
12069
  entity: K,
11978
- onIdChange: tt,
12070
+ onIdChange: nt,
11979
12071
  onFormContextChange: k,
11980
12072
  hideId: o.hideIdFromForm,
11981
12073
  autoSave: Z,
@@ -11989,19 +12081,19 @@ function Lc({
11989
12081
  status: C,
11990
12082
  path: e,
11991
12083
  collection: o,
11992
- onDiscard: We,
11993
- onValuesChanged: vt,
11994
- onModified: nt,
12084
+ onDiscard: Je,
12085
+ onValuesChanged: bt,
12086
+ onModified: rt,
11995
12087
  entity: K,
11996
12088
  context: b,
11997
- formContext: x,
12089
+ formContext: B,
11998
12090
  ...ee.form.provider.props,
11999
12091
  children: O
12000
12092
  }
12001
12093
  ));
12002
12094
  }), /* @__PURE__ */ r(de, { children: O });
12003
12095
  }
12004
- const rt = j === void 0 ? /* @__PURE__ */ r(G, {}) : j ? /* @__PURE__ */ E(G, { children: [
12096
+ const it = j === void 0 ? /* @__PURE__ */ r(G, {}) : j ? /* @__PURE__ */ E(G, { children: [
12005
12097
  /* @__PURE__ */ r(
12006
12098
  q,
12007
12099
  {
@@ -12069,13 +12161,13 @@ function Lc({
12069
12161
  "div",
12070
12162
  {
12071
12163
  className: "self-center",
12072
- children: /* @__PURE__ */ r(un, { size: "small" })
12164
+ children: /* @__PURE__ */ r(fn, { size: "small" })
12073
12165
  }
12074
12166
  ),
12075
12167
  /* @__PURE__ */ E(
12076
12168
  gl,
12077
12169
  {
12078
- value: le.current,
12170
+ value: ae.current,
12079
12171
  onValueChange: (z) => {
12080
12172
  It(z);
12081
12173
  },
@@ -12085,7 +12177,7 @@ function Lc({
12085
12177
  En,
12086
12178
  {
12087
12179
  disabled: !W,
12088
- value: Wt,
12180
+ value: Jt,
12089
12181
  className: `${W ? "" : "hidden"} text-sm min-w-[140px]`,
12090
12182
  children: o.singularName ?? o.name
12091
12183
  }
@@ -12117,11 +12209,11 @@ function Lc({
12117
12209
  hidden: !$,
12118
12210
  id: `form_${e}`,
12119
12211
  className: " w-full",
12120
- children: Me ? /* @__PURE__ */ r(ln, {}) : rt
12212
+ children: Me ? /* @__PURE__ */ r(an, {}) : it
12121
12213
  }
12122
12214
  ),
12123
- he,
12124
- He
12215
+ pe,
12216
+ qe
12125
12217
  ]
12126
12218
  }
12127
12219
  )
@@ -12130,7 +12222,7 @@ function Lc({
12130
12222
  );
12131
12223
  }
12132
12224
  function _c(e, t) {
12133
- const [n, i] = F.useState(), { navigator: o } = F.useContext(Dl), l = fn(), a = () => {
12225
+ const [n, i] = F.useState(), { navigator: o } = F.useContext(Dl), l = mn(), a = () => {
12134
12226
  i(void 0);
12135
12227
  }, s = () => {
12136
12228
  t(), i(void 0), l(-1);
@@ -12203,8 +12295,8 @@ const Do = F.createContext({
12203
12295
  close: () => {
12204
12296
  }
12205
12297
  }), hr = () => Ye(Do);
12206
- function gd() {
12207
- const t = pn().sidePanels, n = [...t];
12298
+ function hd() {
12299
+ const t = vn().sidePanels, n = [...t];
12208
12300
  return n.push(void 0), /* @__PURE__ */ r(G, { children: n.map((i, o) => /* @__PURE__ */ r(
12209
12301
  Jc,
12210
12302
  {
@@ -12218,7 +12310,7 @@ function Jc({
12218
12310
  offsetPosition: e,
12219
12311
  panel: t
12220
12312
  }) {
12221
- const [n, i] = D(!1), [o, l] = D(!1), [a, s] = D(), c = F.useRef(t?.width), A = c.current, u = pn(), {
12313
+ const [n, i] = D(!1), [o, l] = D(!1), [a, s] = D(), c = F.useRef(t?.width), A = c.current, u = vn(), {
12222
12314
  navigationWasBlocked: m,
12223
12315
  handleOk: f,
12224
12316
  handleCancel: d
@@ -12286,7 +12378,7 @@ function Hc(e) {
12286
12378
  blocked: t,
12287
12379
  setBlocked: n,
12288
12380
  setBlockedNavigationMessage: i
12289
- } = hr(), o = ye(), l = ae(() => o.getParentCollectionIds(e.path), [o, e.path]), a = ae(() => {
12381
+ } = hr(), o = he(), l = le(() => o.getParentCollectionIds(e.path), [o, e.path]), a = le(() => {
12290
12382
  if (!e)
12291
12383
  return;
12292
12384
  let c = e.collection;
@@ -12328,7 +12420,7 @@ function qc(e, t) {
12328
12420
  return n ? i ?? Or : `calc(${fa} + ${i ?? Or})`;
12329
12421
  }
12330
12422
  const Zc = (e, t) => {
12331
- const n = jt(), i = ue(!1), o = !_e();
12423
+ const n = jt(), i = ue(!1), o = !We();
12332
12424
  V(() => {
12333
12425
  if (!e.loading && !i.current) {
12334
12426
  if (e.isUrlCollectionPath(n.pathname)) {
@@ -12336,7 +12428,7 @@ const Zc = (e, t) => {
12336
12428
  for (let m = 0; m < u.length; m++) {
12337
12429
  const f = u[m];
12338
12430
  setTimeout(() => {
12339
- m === 0 ? t.replace(Jt(f, e, o)) : t.open(Jt(f, e, o));
12431
+ m === 0 ? t.replace(Ht(f, e, o)) : t.open(Ht(f, e, o));
12340
12432
  }, 1);
12341
12433
  }
12342
12434
  }
@@ -12355,11 +12447,11 @@ const Zc = (e, t) => {
12355
12447
  entityId: c.entityId
12356
12448
  }
12357
12449
  );
12358
- t.open(Jt({ selectedSubPath: A, ...c }, e, o));
12450
+ t.open(Ht({ selectedSubPath: A, ...c }, e, o));
12359
12451
  }, [t, e, o]), s = w((c) => {
12360
12452
  if (c.copy && !c.entityId)
12361
12453
  throw Error("If you want to copy an entity you need to provide an entityId");
12362
- t.replace(Jt(c, e, o));
12454
+ t.replace(Ht(c, e, o));
12363
12455
  }, [e, t, o]);
12364
12456
  return {
12365
12457
  close: l,
@@ -12401,7 +12493,7 @@ function Xc(e, t, n) {
12401
12493
  copy: !1
12402
12494
  }), o;
12403
12495
  }
12404
- const Jt = (e, t, n) => {
12496
+ const Ht = (e, t, n) => {
12405
12497
  const i = Be(e.path), o = e.entityId ? t.buildUrlCollectionPath(`${i}/${e.entityId}/${e.selectedSubPath || ""}`) : t.buildUrlCollectionPath(`${i}#${Ro}`);
12406
12498
  return {
12407
12499
  key: `${e.path}/${e.entityId}`,
@@ -12413,7 +12505,7 @@ const Jt = (e, t, n) => {
12413
12505
  };
12414
12506
  };
12415
12507
  function Kc() {
12416
- const e = jt(), t = fn(), [n, i] = D([]), o = ue(n), l = ue({}), a = ue(0), s = (m) => {
12508
+ const e = jt(), t = mn(), [n, i] = D([]), o = ue(n), l = ue({}), a = ue(0), s = (m) => {
12417
12509
  o.current = m, i(m);
12418
12510
  };
12419
12511
  V(() => {
@@ -12502,7 +12594,7 @@ function Po(e) {
12502
12594
  const u = A.id ?? A.path, m = i && i.length > 0 ? i + "/" + u : u, f = Be(Be(t).replace(c, "")), d = f.length > 0 ? f.split("/") : [];
12503
12595
  if (d.length > 0) {
12504
12596
  const g = d[0], h = m + "/" + g;
12505
- if (a.push(new Je(g, m)), d.length > 1) {
12597
+ if (a.push(new je(g, m)), d.length > 1) {
12506
12598
  const p = d.slice(1).join("/");
12507
12599
  if (!A)
12508
12600
  throw Error("collection not found resolving path: " + A);
@@ -12529,11 +12621,11 @@ function rA({
12529
12621
  plugins: a,
12530
12622
  dataSource: s
12531
12623
  }) {
12532
- const c = jt(), [A, u] = D(), [m, f] = D(), [d, g] = D(!1), [h, p] = D(void 0), [v, b] = D(!0), [y, x] = D(void 0), k = Be(e), C = Be(t), B = k ? `/${k}` : "/", I = k ? `/${k}/${C}` : `/${C}`, S = w(
12533
- (j) => k ? `/${k}/${Ht(j)}` : `/${Ht(j)}`,
12624
+ const c = jt(), [A, u] = D(), [m, f] = D(), [d, g] = D(!1), [h, p] = D(void 0), [v, b] = D(!0), [y, B] = D(void 0), k = Be(e), C = Be(t), x = k ? `/${k}` : "/", I = k ? `/${k}/${C}` : `/${C}`, S = w(
12625
+ (j) => k ? `/${k}/${qt(j)}` : `/${qt(j)}`,
12534
12626
  [k]
12535
12627
  ), Q = w(
12536
- (j) => `${Be(t)}/${Ht(j)}`,
12628
+ (j) => `${Be(t)}/${qt(j)}`,
12537
12629
  [t]
12538
12630
  ), N = w((j, M) => {
12539
12631
  const _ = [
@@ -12570,7 +12662,7 @@ function rA({
12570
12662
  );
12571
12663
  u(j), f(M), p(N(j ?? [], M));
12572
12664
  } catch (j) {
12573
- console.error(j), x(j);
12665
+ console.error(j), B(j);
12574
12666
  }
12575
12667
  b(!1), g(!0);
12576
12668
  }
@@ -12581,15 +12673,15 @@ function rA({
12581
12673
  const U = w((j, M, _ = !1) => {
12582
12674
  if (!A)
12583
12675
  return;
12584
- const re = nr(Be(j), A), L = _ ? l?.getCollectionConfig(j) : void 0, R = re ? je(re, L) : void 0;
12676
+ const re = nr(Be(j), A), L = _ ? l?.getCollectionConfig(j) : void 0, R = re ? Le(re, L) : void 0;
12585
12677
  let T = R;
12586
12678
  if (R) {
12587
- const Pe = R.subcollections, we = R.callbacks, he = R.permissions;
12679
+ const Pe = R.subcollections, we = R.callbacks, pe = R.permissions;
12588
12680
  T = {
12589
12681
  ...T,
12590
12682
  subcollections: T?.subcollections ?? Pe,
12591
12683
  callbacks: T?.callbacks ?? we,
12592
- permissions: T?.permissions ?? he
12684
+ permissions: T?.permissions ?? pe
12593
12685
  };
12594
12686
  }
12595
12687
  if (T)
@@ -12623,14 +12715,14 @@ function rA({
12623
12715
  }, [A]), ne = w(
12624
12716
  (j) => Be(j + "/").startsWith(Be(I) + "/"),
12625
12717
  [I]
12626
- ), le = w((j) => {
12718
+ ), ae = w((j) => {
12627
12719
  if (j.startsWith(I))
12628
12720
  return j.replace(I, "");
12629
12721
  throw Error("Expected path starting with " + I);
12630
12722
  }, [I]), $ = w(
12631
12723
  ({
12632
12724
  path: j
12633
- }) => `s/edit/${Ht(j)}`,
12725
+ }) => `s/edit/${qt(j)}`,
12634
12726
  []
12635
12727
  ), Y = w((j) => {
12636
12728
  if (!A)
@@ -12640,12 +12732,12 @@ function rA({
12640
12732
  path: j,
12641
12733
  collections: A
12642
12734
  }), [A]), ge = w((j) => K(j).map((M) => M.id), [K]);
12643
- return ae(() => ({
12735
+ return le(() => ({
12644
12736
  collections: A ?? [],
12645
12737
  views: m ?? [],
12646
12738
  loading: !d || v,
12647
12739
  navigationLoadingError: y,
12648
- homeUrl: B,
12740
+ homeUrl: x,
12649
12741
  basePath: e,
12650
12742
  baseCollectionPath: t,
12651
12743
  initialised: d,
@@ -12653,7 +12745,7 @@ function rA({
12653
12745
  getCollectionFromPaths: Z,
12654
12746
  getCollectionFromIds: W,
12655
12747
  isUrlCollectionPath: ne,
12656
- urlPathToDataPath: le,
12748
+ urlPathToDataPath: ae,
12657
12749
  buildUrlCollectionPath: Q,
12658
12750
  buildUrlEditCollectionPath: $,
12659
12751
  buildCMSUrlPath: S,
@@ -12663,13 +12755,13 @@ function rA({
12663
12755
  refreshNavigation: P,
12664
12756
  getParentReferencesFromPath: K,
12665
12757
  getParentCollectionIds: ge
12666
- }), [t, J, e, S, Q, $, A, K, U, Z, B, d, ne, v, y, P, Y, h, le, m]);
12758
+ }), [t, J, e, S, Q, $, A, K, U, Z, x, d, ne, v, y, P, Y, h, ae, m]);
12667
12759
  }
12668
- function Ht(e) {
12760
+ function qt(e) {
12669
12761
  return encodeURIComponent(Be(e)).replaceAll("%2F", "/").replaceAll("%23", "#");
12670
12762
  }
12671
12763
  function Mo(e, t) {
12672
- return e.filter((n) => n.permissions ? hn(n, t, [n.path], null).read !== !1 : !0).map((n) => n.subcollections ? {
12764
+ return e.filter((n) => n.permissions ? pn(n, t, [n.path], null).read !== !1 : !0).map((n) => n.subcollections ? {
12673
12765
  ...n,
12674
12766
  subcollections: Mo(n.subcollections, t)
12675
12767
  } : n);
@@ -12911,9 +13003,9 @@ function lA({
12911
13003
  };
12912
13004
  }
12913
13005
  function _n(e, t, n, i, o) {
12914
- return e === void 0 ? o() : Array.isArray(e) ? e.map((l) => _n(l, t, n, i, o)) : e instanceof Je ? t(e) : e instanceof ir ? n(e) : e instanceof Date ? i(e) : e && typeof e == "object" ? Object.entries(e).map(([l, a]) => ({ [l]: _n(a, t, n, i, o) })).reduce((l, a) => ({ ...l, ...a }), {}) : e;
13006
+ return e === void 0 ? o() : Array.isArray(e) ? e.map((l) => _n(l, t, n, i, o)) : e instanceof je ? t(e) : e instanceof ir ? n(e) : e instanceof Date ? i(e) : e && typeof e == "object" ? Object.entries(e).map(([l, a]) => ({ [l]: _n(a, t, n, i, o) })).reduce((l, a) => ({ ...l, ...a }), {}) : e;
12915
13007
  }
12916
- function hd(e) {
13008
+ function pd(e) {
12917
13009
  const t = eo(), {
12918
13010
  children: n,
12919
13011
  entityLinkBuilder: i,
@@ -12943,11 +13035,11 @@ function hd(e) {
12943
13035
  userConfigPersistence: o,
12944
13036
  dataSource: A,
12945
13037
  plugins: u
12946
- }), x = lA({
13038
+ }), B = lA({
12947
13039
  delegate: A,
12948
13040
  propertyConfigs: f,
12949
13041
  navigationController: y
12950
- }), k = Kc(), C = Zc(y, k), B = u?.some((Q) => Q.loading) ?? !1, I = s.initialLoading || y.loading || B, S = ae(() => ({
13042
+ }), k = Kc(), C = Zc(y, k), x = u?.some((Q) => Q.loading) ?? !1, I = s.initialLoading || y.loading || x, S = le(() => ({
12951
13043
  entityLinkBuilder: i,
12952
13044
  dateTimeFormat: l,
12953
13045
  locale: a,
@@ -12980,7 +13072,7 @@ function hd(e) {
12980
13072
  children: /* @__PURE__ */ r(
12981
13073
  ji.Provider,
12982
13074
  {
12983
- value: x,
13075
+ value: B,
12984
13076
  children: /* @__PURE__ */ r(
12985
13077
  Ni.Provider,
12986
13078
  {
@@ -13045,7 +13137,7 @@ function sA({
13045
13137
  drawerOpen: t,
13046
13138
  closeDrawer: n
13047
13139
  }) {
13048
- const i = te(), o = ye(), l = e && !t, a = _e();
13140
+ const i = te(), o = he(), l = e && !t, a = We();
13049
13141
  if (!o.topLevelNavigation)
13050
13142
  throw Error("Navigation not ready in Drawer");
13051
13143
  const {
@@ -13149,7 +13241,7 @@ function ti({
13149
13241
  }
13150
13242
  );
13151
13243
  return n ? s : /* @__PURE__ */ r(
13152
- be,
13244
+ ye,
13153
13245
  {
13154
13246
  open: i,
13155
13247
  side: "right",
@@ -13158,7 +13250,7 @@ function ti({
13158
13250
  }
13159
13251
  );
13160
13252
  }
13161
- const cA = 280, pd = F.memo(
13253
+ const cA = 280, vd = F.memo(
13162
13254
  function(t) {
13163
13255
  const {
13164
13256
  children: n,
@@ -13170,9 +13262,9 @@ const cA = 280, pd = F.memo(
13170
13262
  drawerProps: c,
13171
13263
  FireCMSAppBarComponent: A = Yc,
13172
13264
  fireCMSAppBarComponentProps: u
13173
- } = t, m = _e(), f = ye(), [d, g] = F.useState(!1), [h, p] = F.useState(!1), v = w(() => p(!0), []), b = w(() => p(!1), []), y = w(() => {
13265
+ } = t, m = We(), f = he(), [d, g] = F.useState(!1), [h, p] = F.useState(!1), v = w(() => p(!0), []), b = w(() => p(!1), []), y = w(() => {
13174
13266
  g(!1);
13175
- }, []), x = d || !!(m && a && h);
13267
+ }, []), B = d || !!(m && a && h);
13176
13268
  return /* @__PURE__ */ E(
13177
13269
  "div",
13178
13270
  {
@@ -13193,7 +13285,7 @@ const cA = 280, pd = F.memo(
13193
13285
  {
13194
13286
  title: i,
13195
13287
  includeDrawer: l,
13196
- drawerOpen: x,
13288
+ drawerOpen: B,
13197
13289
  ...u
13198
13290
  }
13199
13291
  ),
@@ -13204,15 +13296,15 @@ const cA = 280, pd = F.memo(
13204
13296
  onMouseEnter: v,
13205
13297
  onMouseMove: v,
13206
13298
  onMouseLeave: b,
13207
- open: x,
13299
+ open: B,
13208
13300
  logo: o,
13209
13301
  hovered: h,
13210
13302
  setDrawerOpen: g,
13211
- children: l && (f.loading ? /* @__PURE__ */ r(ln, {}) : /* @__PURE__ */ r(
13303
+ children: l && (f.loading ? /* @__PURE__ */ r(an, {}) : /* @__PURE__ */ r(
13212
13304
  s,
13213
13305
  {
13214
13306
  hovered: h,
13215
- drawerOpen: x,
13307
+ drawerOpen: B,
13216
13308
  closeDrawer: y,
13217
13309
  ...c
13218
13310
  }
@@ -13242,7 +13334,7 @@ const cA = 280, pd = F.memo(
13242
13334
  me
13243
13335
  ), AA = () => /* @__PURE__ */ r("div", { className: "flex flex-col min-h-[68px]" });
13244
13336
  function dA(e) {
13245
- const t = ye(), n = e.displayed ? e.open ? cA : 72 : 0, i = /* @__PURE__ */ E(
13337
+ const t = he(), n = e.displayed ? e.open ? cA : 72 : 0, i = /* @__PURE__ */ E(
13246
13338
  "div",
13247
13339
  {
13248
13340
  className: "relative h-full no-scrollbar overflow-y-auto overflow-x-hidden",
@@ -13252,7 +13344,7 @@ function dA(e) {
13252
13344
  },
13253
13345
  children: [
13254
13346
  !e.open && e.displayed && /* @__PURE__ */ r(
13255
- be,
13347
+ ye,
13256
13348
  {
13257
13349
  title: "Open menu",
13258
13350
  side: "right",
@@ -13281,7 +13373,7 @@ function dA(e) {
13281
13373
  },
13282
13374
  className: X("cursor-pointer"),
13283
13375
  children: /* @__PURE__ */ r(
13284
- be,
13376
+ ye,
13285
13377
  {
13286
13378
  title: "Home",
13287
13379
  sideOffset: 20,
@@ -13312,7 +13404,7 @@ function dA(e) {
13312
13404
  ]
13313
13405
  }
13314
13406
  );
13315
- return _e() ? /* @__PURE__ */ E(
13407
+ return We() ? /* @__PURE__ */ E(
13316
13408
  "div",
13317
13409
  {
13318
13410
  className: "relative",
@@ -13651,7 +13743,7 @@ function vr(e, t) {
13651
13743
  return;
13652
13744
  }
13653
13745
  const o = pr[i], l = n ? t[n] : void 0;
13654
- return je(o ?? {}, l ?? {});
13746
+ return Le(o ?? {}, l ?? {});
13655
13747
  }
13656
13748
  function br(e) {
13657
13749
  if (e.dataType === "string")
@@ -13679,12 +13771,12 @@ function br(e) {
13679
13771
  function To(e) {
13680
13772
  return e.propertyConfig ? e.propertyConfig : br(e);
13681
13773
  }
13682
- const vd = F.memo(
13774
+ const bd = F.memo(
13683
13775
  function({
13684
13776
  HomePage: t = Oc,
13685
13777
  customRoutes: n
13686
13778
  }) {
13687
- const i = jt(), o = ye();
13779
+ const i = jt(), o = he();
13688
13780
  if (!o)
13689
13781
  return /* @__PURE__ */ r(G, {});
13690
13782
  const l = i.state, a = l && l.base_location ? l.base_location : i, s = [];
@@ -13695,7 +13787,7 @@ const vd = F.memo(
13695
13787
  (f) => {
13696
13788
  const d = o.buildUrlCollectionPath(f.id ?? f.path);
13697
13789
  return /* @__PURE__ */ r(
13698
- qt,
13790
+ Zt,
13699
13791
  {
13700
13792
  path: d + "/*",
13701
13793
  element: /* @__PURE__ */ r(
@@ -13705,7 +13797,7 @@ const vd = F.memo(
13705
13797
  parentCollectionIds: [],
13706
13798
  fullPath: f.id ?? f.path,
13707
13799
  ...f,
13708
- Actions: an(f.Actions)
13800
+ Actions: sn(f.Actions)
13709
13801
  },
13710
13802
  `collection_view_${f.id ?? f.path}`
13711
13803
  )
@@ -13718,14 +13810,14 @@ const vd = F.memo(
13718
13810
  A,
13719
13811
  s,
13720
13812
  /* @__PURE__ */ r(
13721
- qt,
13813
+ Zt,
13722
13814
  {
13723
13815
  path: "/",
13724
13816
  element: /* @__PURE__ */ r(t, {})
13725
13817
  }
13726
13818
  ),
13727
13819
  /* @__PURE__ */ r(
13728
- qt,
13820
+ Zt,
13729
13821
  {
13730
13822
  path: "*",
13731
13823
  element: /* @__PURE__ */ r(Gc, {})
@@ -13735,14 +13827,14 @@ const vd = F.memo(
13735
13827
  ] });
13736
13828
  }
13737
13829
  ), ni = (e, t) => /* @__PURE__ */ r(
13738
- qt,
13830
+ Zt,
13739
13831
  {
13740
13832
  path: e,
13741
13833
  element: t.view
13742
13834
  },
13743
13835
  "navigation_view_" + e
13744
13836
  );
13745
- function bd() {
13837
+ function yd() {
13746
13838
  const e = typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)"), n = (localStorage.getItem("prefers-dark-mode") != null ? localStorage.getItem("prefers-dark-mode") === "true" : null) ?? e, [i, o] = D(n ? "dark" : "light");
13747
13839
  V(() => {
13748
13840
  o(n ? "dark" : "light"), s(n ? "dark" : "light");
@@ -13762,7 +13854,7 @@ function bd() {
13762
13854
  toggleMode: c
13763
13855
  };
13764
13856
  }
13765
- function yd() {
13857
+ function wd() {
13766
13858
  const [e, t] = D({}), n = w((g) => {
13767
13859
  const h = localStorage.getItem(g);
13768
13860
  return h ? JSON.parse(h) : {};
@@ -13772,8 +13864,8 @@ function yd() {
13772
13864
  }, [e, n]), o = w((g, h) => {
13773
13865
  const p = `collection_config::${Pr(g)}`;
13774
13866
  localStorage.setItem(p, JSON.stringify(h)), t((v) => {
13775
- const b = v[p], y = je(b ?? n(g), h);
13776
- return je(v, y);
13867
+ const b = v[p], y = Le(b ?? n(g), h);
13868
+ return Le(v, y);
13777
13869
  });
13778
13870
  }, [n]), [l, a] = D([]), [s, c] = D([]), [A, u] = D([]);
13779
13871
  V(() => {
@@ -13816,7 +13908,7 @@ export {
13816
13908
  fc as BlockFieldBinding,
13817
13909
  La as BooleanPreview,
13818
13910
  ea as COLLECTION_PATH_SEPARATOR,
13819
- ln as CircularProgressCenter,
13911
+ an as CircularProgressCenter,
13820
13912
  pr as DEFAULT_FIELD_CONFIGS,
13821
13913
  ja as DatePreview,
13822
13914
  nc as DateTimeFieldBinding,
@@ -13829,13 +13921,13 @@ export {
13829
13921
  So as EntityCollectionView,
13830
13922
  Bc as EntityForm,
13831
13923
  ao as EntityPreview,
13832
- Je as EntityReference,
13924
+ je as EntityReference,
13833
13925
  De as EnumValuesChip,
13834
13926
  de as ErrorBoundary,
13835
13927
  Ce as ErrorView,
13836
13928
  ud as FieldConfigBadge,
13837
- Fe as FieldHelperText,
13838
- hd as FireCMS,
13929
+ Ne as FieldHelperText,
13930
+ pd as FireCMS,
13839
13931
  Yc as FireCMSAppBar,
13840
13932
  Zi as FireCMSContextInstance,
13841
13933
  Vc as FireCMSLogo,
@@ -13844,7 +13936,7 @@ export {
13844
13936
  xa as ImagePreview,
13845
13937
  cc as KeyValueFieldBinding,
13846
13938
  lo as KeyValuePreview,
13847
- Ne as LabelWithIcon,
13939
+ Fe as LabelWithIcon,
13848
13940
  sc as MapFieldBinding,
13849
13941
  $a as MapPropertyPreview,
13850
13942
  hc as MarkdownFieldBinding,
@@ -13853,20 +13945,21 @@ export {
13853
13945
  Zr as MultiSelectBinding,
13854
13946
  Rc as NavigationCollectionCard,
13855
13947
  Kr as NavigationGroup,
13856
- vd as NavigationRoutes,
13948
+ bd as NavigationRoutes,
13857
13949
  Gc as NotFoundPage,
13858
13950
  _a as NumberPropertyPreview,
13859
13951
  kt as PropertyFieldBinding,
13860
13952
  Se as PropertyPreview,
13861
13953
  xo as ReadOnlyFieldBinding,
13862
13954
  rc as ReferenceFieldBinding,
13863
- lt as ReferencePreview,
13955
+ He as ReferencePreview,
13864
13956
  Ar as ReferencePreviewContainer,
13865
13957
  Qc as ReferenceSelectionInner,
13958
+ md as ReferenceWidget,
13866
13959
  uc as RepeatFieldBinding,
13867
- pd as Scaffold,
13960
+ vd as Scaffold,
13868
13961
  qr as SelectFieldBinding,
13869
- gd as SideDialogs,
13962
+ hd as SideDialogs,
13870
13963
  Vt as SkeletonPropertyComponent,
13871
13964
  QA as SnackbarProvider,
13872
13965
  Da as StorageThumbnail,
@@ -13876,7 +13969,7 @@ export {
13876
13969
  dd as SwitchControl,
13877
13970
  tc as SwitchFieldBinding,
13878
13971
  Rt as TextFieldBinding,
13879
- on as UrlComponentPreview,
13972
+ ln as UrlComponentPreview,
13880
13973
  Ss as VirtualTable,
13881
13974
  PA as addInitialSlash,
13882
13975
  od as buildAdditionalFieldDelegate,
@@ -13894,7 +13987,7 @@ export {
13894
13987
  Ui as canEditEntity,
13895
13988
  Kl as defaultDateFormat,
13896
13989
  pa as deleteEntityWithCallbacks,
13897
- ft as enumToObjectEntries,
13990
+ mt as enumToObjectEntries,
13898
13991
  Mr as flattenObject,
13899
13992
  $e as fullPathToCollectionSegments,
13900
13993
  aa as getArrayValuesCount,
@@ -13908,7 +14001,7 @@ export {
13908
14001
  HA as getDefaultPropertiesOrder,
13909
14002
  or as getDefaultValueFor,
13910
14003
  Di as getDefaultValueForDataType,
13911
- nn as getDefaultValuesFor,
14004
+ rn as getDefaultValuesFor,
13912
14005
  vr as getFieldConfig,
13913
14006
  To as getFieldId,
13914
14007
  Qi as getHashValue,
@@ -13920,17 +14013,17 @@ export {
13920
14013
  lr as getLabelOrConfigFrom,
13921
14014
  MA as getLastSegment,
13922
14015
  ia as getPropertiesWithPropertiesOrder,
13923
- bt as getPropertyInPath,
13924
- Xt as getRandomId,
13925
- yt as getReferenceFrom,
14016
+ yt as getPropertyInPath,
14017
+ Kt as getRandomId,
14018
+ at as getReferenceFrom,
13926
14019
  la as getReferencePreviewKeys,
13927
14020
  zi as getResolvedPropertyInPath,
13928
- dt as getValueInPath,
14021
+ ut as getValueInPath,
13929
14022
  na as hydrateRegExp,
13930
14023
  uA as isDefaultFieldConfigId,
13931
14024
  Rr as isEmptyObject,
13932
14025
  GA as isEnumValueDisabled,
13933
- mn as isHidden,
14026
+ gn as isHidden,
13934
14027
  xn as isObject,
13935
14028
  Re as isPropertyBuilder,
13936
14029
  Lt as isReadOnly,
@@ -13940,7 +14033,7 @@ export {
13940
14033
  sa as makePropertiesEditable,
13941
14034
  ca as makePropertiesNonEditable,
13942
14035
  da as mergeCollection,
13943
- je as mergeDeep,
14036
+ Le as mergeDeep,
13944
14037
  _l as pick,
13945
14038
  qA as plural,
13946
14039
  UA as randomColor,
@@ -13955,15 +14048,15 @@ export {
13955
14048
  sd as renderSkeletonCaptionText,
13956
14049
  ro as renderSkeletonIcon,
13957
14050
  no as renderSkeletonImageThumbnail,
13958
- ot as renderSkeletonText,
13959
- mt as resolveArrayProperty,
14051
+ lt as renderSkeletonText,
14052
+ gt as resolveArrayProperty,
13960
14053
  Ge as resolveCollection,
13961
14054
  Fi as resolveCollectionPathAliases,
13962
14055
  Yi as resolveDefaultSelectedView,
13963
14056
  Gi as resolveEntityView,
13964
14057
  VA as resolveEnumValues,
13965
14058
  va as resolveNavigationFrom,
13966
- hn as resolvePermissions,
14059
+ pn as resolvePermissions,
13967
14060
  Ti as resolveProperties,
13968
14061
  Te as resolveProperty,
13969
14062
  Oi as resolvePropertyEnum,
@@ -13981,29 +14074,29 @@ export {
13981
14074
  Ri as traverseValuesProperties,
13982
14075
  RA as unslugify,
13983
14076
  Jl as updateDateAutoValues,
13984
- gt as useAuthController,
13985
- md as useBrowserTitleAndIcon,
13986
- yd as useBuildLocalConfigurationPersistence,
13987
- bd as useBuildModeController,
14077
+ ht as useAuthController,
14078
+ gd as useBrowserTitleAndIcon,
14079
+ wd as useBuildLocalConfigurationPersistence,
14080
+ yd as useBuildModeController,
13988
14081
  ze as useClearRestoreValue,
13989
14082
  ba as useClipboard,
13990
14083
  ha as useCollectionFetch,
13991
- Le as useDataSource,
14084
+ _e as useDataSource,
13992
14085
  sr as useDebounce,
13993
14086
  LA as useDebounceValue,
13994
14087
  wo as useEntityCollectionTableController,
13995
14088
  Xi as useEntityFetch,
13996
14089
  te as useFireCMSContext,
13997
- _e as useLargeLayout,
14090
+ We as useLargeLayout,
13998
14091
  eo as useModeController,
13999
- ye as useNavigationController,
14000
- bn as useReferenceDialog,
14092
+ he as useNavigationController,
14093
+ Wt as useReferenceDialog,
14001
14094
  ad as useResolvedNavigationFrom,
14002
14095
  No as useSelectionController,
14003
14096
  hr as useSideDialogContext,
14004
- pn as useSideDialogsController,
14005
- ht as useSideEntityController,
14006
- pt as useSnackbarController,
14097
+ vn as useSideDialogsController,
14098
+ pt as useSideEntityController,
14099
+ vt as useSnackbarController,
14007
14100
  _t as useStorageSource
14008
14101
  };
14009
14102
  //# sourceMappingURL=index.es.js.map