@firecms/core 3.0.0-canary.74 → 3.0.0-canary.76

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.
package/dist/index.es.js CHANGED
@@ -1,45 +1,45 @@
1
1
  import { jsx as n, jsxs as v, Fragment as O } from "react/jsx-runtime";
2
2
  import * as kt from "react";
3
- import S, { useRef as ce, useEffect as M, useContext as $e, useCallback as x, useMemo as he, useState as P, createElement as xa, createRef as Ea, createContext as Ca, forwardRef as Ba, useLayoutEffect as ei, useDeferredValue as Sa } from "react";
4
- import { SnackbarProvider as Ia, useSnackbar as Na } from "notistack";
3
+ import S, { useRef as ce, useEffect as M, useContext as $e, useCallback as x, useMemo as he, useState as P, createElement as Ea, createRef as Ca, createContext as Ba, forwardRef as Sa, useLayoutEffect as ei, useDeferredValue as Ia } from "react";
4
+ import { SnackbarProvider as Na, useSnackbar as Fa } from "notistack";
5
5
  import Ji from "object-hash";
6
- import { useCreateFormex as Sn, Formex as In, setIn as ti, Field as Nn, getIn as jt, useFormex as fi } from "@firecms/formex";
7
- import { getColorSchemeForSeed as Fn, CHIP_COLORS as Fa, Tooltip as ke, ErrorIcon as Pn, Typography as Y, CircleIcon as Qn, FunctionsIcon as Pa, iconKeys as hi, coolIconKeys as ri, Icon as gi, IconButton as de, ContentCopyIcon as vr, OpenInNewIcon as Ht, DescriptionIcon as Qa, Skeleton as Ue, Chip as Ai, cls as U, defaultBorderMixin as Se, KeyboardTabIcon as bi, Checkbox as Zt, Markdown as yi, TextareaAutosize as Da, MultiSelect as Dn, MultiSelectItem as Rn, Select as nt, SelectItem as ot, BooleanSwitch as Ra, DateTimeField as Xt, paperMixin as kr, ErrorOutlineIcon as Ta, EditIcon as Oa, Button as ge, RemoveCircleIcon as Ma, Menu as St, MoreVertIcon as Tn, MenuItem as Pe, CircularProgress as _t, SearchBar as wi, Badge as Hi, ArrowUpwardIcon as Gr, Popover as vi, FilterListIcon as za, AssignmentIcon as Va, CenteredView as sr, Label as ki, TextField as xt, ClearIcon as Yt, BooleanSwitchWithLabel as _r, useOutsideAlerter as On, Dialog as _i, DialogContent as xi, DialogActions as It, FileCopyIcon as Ga, ArchiveIcon as ja, DeleteIcon as ii, AddIcon as pt, ExpandablePanel as ft, Card as Ya, ArrowForwardIcon as Mn, cardMixin as La, cardClickableMixin as Ua, focusedMixin as ni, StarIcon as zn, StarBorderIcon as Vn, Collapse as Gn, Container as $a, FilterListOffIcon as qa, SearchIcon as Wa, LoadingButton as Ja, Avatar as Zi, DarkModeIcon as Ha, LightModeIcon as Za, LogoutIcon as Xa, fieldBackgroundHoverMixin as xr, HandleIcon as Ka, RemoveIcon as Ei, debounce as es, InfoIcon as ts, CloseIcon as jn, fieldBackgroundMixin as pr, fieldBackgroundDisabledMixin as Yn, ArrowDropDownIcon as Ln, useInjectStyles as rs, ShortTextIcon as is, SubjectIcon as ns, FormatQuoteIcon as os, HttpIcon as as, EmailIcon as ss, FlagIcon as ls, ListIcon as cs, ListAltIcon as ds, NumbersIcon as us, FormatListNumberedIcon as Xi, UploadFileIcon as ms, DriveFolderUploadIcon as ps, LinkIcon as fs, AddLinkIcon as hs, ScheduleIcon as gs, BallotIcon as Ki, RepeatIcon as en, ViewStreamIcon as As, Tab as jr, Tabs as bs, Alert as ys, Sheet as Un, useLocaleConfig as ws, MenuIcon as tn, ChevronLeftIcon as vs } from "@firecms/ui";
6
+ import { useCreateFormex as In, Formex as Nn, setIn as ti, Field as Fn, getIn as jt, useFormex as fi } from "@firecms/formex";
7
+ import { getColorSchemeForSeed as Pn, CHIP_COLORS as Pa, Tooltip as ke, ErrorIcon as Qn, Typography as Y, CircleIcon as Dn, FunctionsIcon as Qa, iconKeys as hi, coolIconKeys as ri, Icon as gi, IconButton as de, ContentCopyIcon as vr, OpenInNewIcon as Ht, DescriptionIcon as Da, Skeleton as Ue, Chip as Ai, cls as U, defaultBorderMixin as Se, KeyboardTabIcon as bi, Checkbox as Zt, Markdown as yi, TextareaAutosize as Ra, MultiSelect as Rn, MultiSelectItem as Tn, Select as nt, SelectItem as ot, BooleanSwitch as Ta, DateTimeField as Xt, paperMixin as kr, ErrorOutlineIcon as Oa, EditIcon as Ma, Button as ge, RemoveCircleIcon as za, Menu as St, MoreVertIcon as On, MenuItem as Pe, CircularProgress as _t, SearchBar as wi, Badge as Hi, ArrowUpwardIcon as Gr, Popover as vi, FilterListIcon as Va, AssignmentIcon as Ga, CenteredView as sr, Label as ki, TextField as xt, ClearIcon as Yt, BooleanSwitchWithLabel as _r, useOutsideAlerter as Mn, Dialog as _i, DialogContent as xi, DialogActions as It, FileCopyIcon as ja, ArchiveIcon as Ya, DeleteIcon as ii, AddIcon as pt, ExpandablePanel as ft, Card as La, ArrowForwardIcon as zn, cardMixin as Ua, cardClickableMixin as $a, focusedMixin as ni, StarIcon as Vn, StarBorderIcon as Gn, Collapse as jn, Container as qa, FilterListOffIcon as Wa, SearchIcon as Ja, LoadingButton as Ha, Avatar as Zi, DarkModeIcon as Za, LightModeIcon as Xa, LogoutIcon as Ka, fieldBackgroundHoverMixin as xr, HandleIcon as es, RemoveIcon as Ei, debounce as ts, InfoIcon as rs, CloseIcon as Yn, fieldBackgroundMixin as pr, fieldBackgroundDisabledMixin as Ln, ArrowDropDownIcon as Un, useInjectStyles as is, ShortTextIcon as ns, SubjectIcon as os, FormatQuoteIcon as as, HttpIcon as ss, EmailIcon as ls, FlagIcon as cs, ListIcon as ds, ListAltIcon as us, NumbersIcon as ms, FormatListNumberedIcon as Xi, UploadFileIcon as ps, DriveFolderUploadIcon as fs, LinkIcon as hs, AddLinkIcon as gs, ScheduleIcon as As, BallotIcon as Ki, RepeatIcon as en, ViewStreamIcon as bs, Tab as jr, Tabs as ys, Alert as ws, Sheet as $n, useLocaleConfig as vs, MenuIcon as tn, ChevronLeftIcon as ks } from "@firecms/ui";
8
8
  import J from "react-fast-compare";
9
- import { Link as Er, useNavigate as Kt, useLocation as Cr, UNSAFE_NavigationContext as ks, NavLink as _s, Route as lr, Routes as xs } from "react-router-dom";
10
- import { format as Es } from "date-fns";
11
- import * as Cs from "date-fns/locale";
12
- import $n from "react-use-measure";
13
- import { useDropzone as qn } from "react-dropzone";
14
- import { DragDropContext as Wn, Droppable as Jn, Draggable as Hn } from "@hello-pangea/dnd";
15
- import Bs from "react-image-file-resizer";
16
- import * as Zn from "js-search";
17
- import { FixedSizeList as Ss } from "react-window";
9
+ import { Link as Er, useNavigate as Kt, useLocation as Cr, UNSAFE_NavigationContext as _s, NavLink as xs, Route as lr, Routes as Es } from "react-router-dom";
10
+ import { format as Cs } from "date-fns";
11
+ import * as Bs from "date-fns/locale";
12
+ import qn from "react-use-measure";
13
+ import { useDropzone as Wn } from "react-dropzone";
14
+ import { DragDropContext as Jn, Droppable as Hn, Draggable as Zn } from "@hello-pangea/dnd";
15
+ import Ss from "react-image-file-resizer";
16
+ import * as Xn from "js-search";
17
+ import { FixedSizeList as Is } from "react-window";
18
18
  import * as Oe from "yup";
19
- import Is from "markdown-it";
19
+ import Ns from "markdown-it";
20
20
  import cr, { Plugins as Yr } from "react-markdown-editor-lite";
21
- import * as Ns from "@radix-ui/react-portal";
21
+ import * as Fs from "@radix-ui/react-portal";
22
22
  const Mu = ({ children: e }) => /* @__PURE__ */ n(
23
- Ia,
23
+ Na,
24
24
  {
25
25
  maxSnack: 3,
26
26
  autoHideDuration: 3500,
27
27
  children: e
28
28
  }
29
- ), Fs = {
29
+ ), Ps = {
30
30
  mode: "light",
31
31
  setMode: (e) => {
32
32
  },
33
33
  toggleMode: () => {
34
34
  }
35
- }, Xn = S.createContext(Fs), zu = Xn.Provider, Kn = S.createContext({});
35
+ }, Kn = S.createContext(Ps), zu = Kn.Provider, eo = S.createContext({});
36
36
  function Ee(e) {
37
- return Ps(Qs(e));
37
+ return Qs(Ds(e));
38
38
  }
39
- function Ps(e) {
39
+ function Qs(e) {
40
40
  return e.startsWith("/") ? e.slice(1) : e;
41
41
  }
42
- function Qs(e) {
42
+ function Ds(e) {
43
43
  return e.endsWith("/") ? e.slice(0, -1) : e;
44
44
  }
45
45
  function Vu(e) {
@@ -53,7 +53,7 @@ function Gu(e) {
53
53
  }
54
54
  return t;
55
55
  }
56
- function eo(e, t) {
56
+ function to(e, t) {
57
57
  const r = Ee(e), i = r.split("/");
58
58
  if (i.length % 2 === 0)
59
59
  throw Error(`resolveCollectionPathAliases: Collection paths must have an odd number of segments: ${e}`);
@@ -64,7 +64,7 @@ function eo(e, t) {
64
64
  if (!s?.subcollections)
65
65
  return r;
66
66
  const l = r.split("/").slice(2).join("/");
67
- return (o ?? i[0]) + "/" + i[1] + "/" + eo(l, s.subcollections);
67
+ return (o ?? i[0]) + "/" + i[1] + "/" + to(l, s.subcollections);
68
68
  } else
69
69
  return o ?? r;
70
70
  }
@@ -84,8 +84,7 @@ function Ci(e, t) {
84
84
  c.length > 0 && (a = Ci(c, l.subcollections));
85
85
  }
86
86
  }
87
- if (a)
88
- break;
87
+ if (a) break;
89
88
  }
90
89
  return a;
91
90
  }
@@ -95,7 +94,7 @@ function Bi(e) {
95
94
  i.push(t.slice(0, a).join("/"));
96
95
  return i;
97
96
  }
98
- class to {
97
+ class ro {
99
98
  /**
100
99
  * ID of the entity
101
100
  */
@@ -115,7 +114,7 @@ class to {
115
114
  return !0;
116
115
  }
117
116
  }
118
- class ro {
117
+ class io {
119
118
  /**
120
119
  * The latitude of this GeoPoint instance.
121
120
  */
@@ -134,7 +133,7 @@ class ju {
134
133
  this.value = t;
135
134
  }
136
135
  }
137
- const Ds = (e, ...t) => ({
136
+ const Rs = (e, ...t) => ({
138
137
  ...t.reduce((r, i) => ({
139
138
  ...r,
140
139
  [i]: e[i]
@@ -173,15 +172,14 @@ function rn(e) {
173
172
  if (e !== void 0)
174
173
  return e === null ? null : typeof e == "object" ? Object.entries(e).filter(([t, r]) => typeof r != "function").map(([t, r]) => Array.isArray(r) ? { [t]: r.map((i) => rn(i)) } : typeof r == "object" ? { [t]: rn(r) } : { [t]: r }).reduce((t, r) => ({ ...t, ...r }), {}) : e;
175
174
  }
176
- function io(e) {
177
- if (!e)
178
- return null;
175
+ function no(e) {
176
+ if (!e) return null;
179
177
  if (typeof e == "object") {
180
178
  if ("id" in e)
181
179
  return e.id;
182
180
  if (e instanceof Date)
183
181
  return e.toLocaleString();
184
- if (e instanceof ro)
182
+ if (e instanceof io)
185
183
  return Ji(e);
186
184
  }
187
185
  return Ji(e, { ignoreUnknown: !0 });
@@ -205,14 +203,19 @@ function nn(e, t) {
205
203
  function on(e) {
206
204
  return e && Object.getPrototypeOf(e) === Object.prototype && Object.keys(e).length === 0;
207
205
  }
208
- function Rs(e, t) {
206
+ function an(e, t) {
209
207
  const r = (o) => typeof o == "object" && o !== null, i = (o) => Array.isArray(o);
210
208
  if (!r(e) || !r(t))
211
209
  return e;
212
210
  const a = i(e) ? [...e] : { ...e };
213
- return Object.keys(t).forEach((o) => {
214
- o in a && (r(a[o]) && r(t[o]) ? a[o] = Rs(a[o], t[o]) : a[o] === t[o] && (i(a) ? a.splice(o, 1) : delete a[o]));
215
- }), a;
211
+ if (i(a))
212
+ for (let o = a.length - 1; o >= 0; o--)
213
+ a[o] === t[o] ? a.splice(o, 1) : r(a[o]) && r(t[o]) && (a[o] = an(a[o], t[o]));
214
+ else
215
+ Object.keys(t).forEach((o) => {
216
+ o in a && (r(a[o]) && r(t[o]) ? a[o] = an(a[o], t[o]) : a[o] === t[o] && delete a[o]);
217
+ });
218
+ return a;
216
219
  }
217
220
  const Lt = "type", fr = "value";
218
221
  function er(e) {
@@ -231,14 +234,17 @@ function hr(e) {
231
234
  }).reduce((t, r) => ({ ...t, ...r }), {}) : {};
232
235
  }
233
236
  function Br(e) {
234
- if (!Qe(e))
237
+ if (!Qe(e)) {
238
+ if (e.defaultValue || e.defaultValue === null)
239
+ return e.defaultValue;
235
240
  if (e.dataType === "map" && e.properties) {
236
241
  const t = hr(e.properties);
237
242
  return Object.keys(t).length === 0 ? void 0 : t;
238
243
  } else
239
- return e.defaultValue || e.defaultValue === null ? e.defaultValue : no(e.dataType);
244
+ return oo(e.dataType);
245
+ }
240
246
  }
241
- function no(e) {
247
+ function oo(e) {
242
248
  return e === "string" || e === "number" ? null : e === "boolean" ? !1 : e === "date" ? null : e === "array" ? [] : e === "map" ? {} : null;
243
249
  }
244
250
  function Ts({
@@ -248,7 +254,7 @@ function Ts({
248
254
  timestampNowValue: i,
249
255
  setDateToMidnight: a
250
256
  }) {
251
- return oo(
257
+ return ao(
252
258
  e,
253
259
  t,
254
260
  (o, s) => {
@@ -267,13 +273,12 @@ function Lu(e, t) {
267
273
  }), r;
268
274
  }
269
275
  function ut(e) {
270
- return new to(e.id, e.path);
276
+ return new ro(e.id, e.path);
271
277
  }
272
- function oo(e, t, r) {
278
+ function ao(e, t, r) {
273
279
  const i = Object.entries(t).map(([o, s]) => {
274
280
  const l = e && e[o], c = oi(l, s, r);
275
- if (c === null)
276
- return null;
281
+ if (c === null) return null;
277
282
  if (c !== void 0)
278
283
  return { [o]: c };
279
284
  }).reduce((o, s) => ({ ...o, ...s }), {}), a = { ...e, ...i };
@@ -283,17 +288,15 @@ function oo(e, t, r) {
283
288
  function oi(e, t, r) {
284
289
  let i;
285
290
  if (t.dataType === "map" && t.properties)
286
- i = oo(e, t.properties, r);
291
+ i = ao(e, t.properties, r);
287
292
  else if (t.dataType === "array")
288
293
  if (t.of && Array.isArray(e))
289
294
  i = e.map((a) => oi(a, t.of, r));
290
295
  else if (t.oneOf && Array.isArray(e)) {
291
296
  const a = t.oneOf?.typeField ?? Lt, o = t.oneOf?.valueField ?? fr;
292
297
  i = e.map((s) => {
293
- if (s === null)
294
- return null;
295
- if (typeof s != "object")
296
- return s;
298
+ if (s === null) return null;
299
+ if (typeof s != "object") return s;
297
300
  const l = s[a], c = t.oneOf?.properties[l];
298
301
  return !l || !c ? s : {
299
302
  [a]: l,
@@ -322,10 +325,10 @@ function Ii(e, t) {
322
325
  function Os(e, t) {
323
326
  const r = Ii(e, t);
324
327
  if (!r?.color)
325
- return Fn(t.toString());
328
+ return Pn(t.toString());
326
329
  if (typeof r == "object" && "color" in r) {
327
330
  if (typeof r.color == "string")
328
- return Fa[r.color];
331
+ return Pa[r.color];
329
332
  if (typeof r.color == "object")
330
333
  return r.color;
331
334
  }
@@ -337,7 +340,7 @@ function Ms(e) {
337
340
  if (e !== void 0)
338
341
  return typeof e == "object" ? e.label : e;
339
342
  }
340
- function ao(e) {
343
+ function so(e) {
341
344
  return /* @__PURE__ */ n(
342
345
  ke,
343
346
  {
@@ -359,7 +362,7 @@ function Ne({
359
362
  {
360
363
  className: "flex items-center m-2",
361
364
  children: [
362
- /* @__PURE__ */ n(Pn, { size: "small", color: "error" }),
365
+ /* @__PURE__ */ n(Qn, { size: "small", color: "error" }),
363
366
  /* @__PURE__ */ v("div", { className: "pl-2", children: [
364
367
  e && /* @__PURE__ */ n(
365
368
  Y,
@@ -374,9 +377,9 @@ function Ne({
374
377
  ]
375
378
  }
376
379
  );
377
- return r ? /* @__PURE__ */ n(ao, { title: r, children: a }) : a;
380
+ return r ? /* @__PURE__ */ n(so, { title: r, children: a }) : a;
378
381
  }
379
- function so(e, t) {
382
+ function lo(e, t) {
380
383
  try {
381
384
  const r = Object.keys(e);
382
385
  return (t ?? r).map((a) => {
@@ -385,7 +388,7 @@ function so(e, t) {
385
388
  return !Qe(o) && o?.dataType === "map" && o.properties ? {
386
389
  [a]: {
387
390
  ...o,
388
- properties: so(o.properties, o.propertiesOrder)
391
+ properties: lo(o.properties, o.propertiesOrder)
389
392
  }
390
393
  } : { [a]: o };
391
394
  } else
@@ -395,7 +398,7 @@ function so(e, t) {
395
398
  return console.error("Error sorting properties", r), e;
396
399
  }
397
400
  }
398
- function lo(e, t) {
401
+ function co(e, t) {
399
402
  if (e)
400
403
  return typeof e == "string" ? e : e(t);
401
404
  }
@@ -416,8 +419,7 @@ function Wu() {
416
419
  return Math.floor(Math.random() * 16777215).toString(16);
417
420
  }
418
421
  function ai(e, t = "_", r = !0) {
419
- if (!e)
420
- return "";
422
+ if (!e) return "";
421
423
  const i = "ãàáäâẽèéëêìíïîõòóöôùúüûñç·/_,:;-", a = `aaaaaeeeeeiiiiooooouuuunc${t}${t}${t}${t}${t}${t}${t}`;
422
424
  for (let o = 0, s = i.length; o < s; o++)
423
425
  e = e.replace(new RegExp(i.charAt(o), "g"), a.charAt(o));
@@ -432,21 +434,20 @@ function Ju(e) {
432
434
  }).trim() : e.trim() : "";
433
435
  }
434
436
  const js = "MMMM dd, yyyy, HH:mm:ss", Ys = "::";
435
- function an(e) {
436
- return Ls(co(e));
437
+ function sn(e) {
438
+ return Ls(uo(e));
437
439
  }
438
440
  function Ls(e) {
439
441
  return e.length === 1 ? e[0] : e.reduce((t, r) => `${t}${Ys}${r}`);
440
442
  }
441
- function co(e) {
443
+ function uo(e) {
442
444
  return e.split("/").filter((t, r) => r % 2 === 0);
443
445
  }
444
446
  function Hu(e) {
445
447
  return e ? e.toString() : "";
446
448
  }
447
449
  function Us(e) {
448
- if (!e)
449
- return;
450
+ if (!e) return;
450
451
  const t = e.match(/\/(.*?)\/([a-z]*)?$/i);
451
452
  return t ? new RegExp(t[1], t[2] || "") : new RegExp(e, "");
452
453
  }
@@ -474,15 +475,15 @@ function $s(e, t) {
474
475
  return r ? r.dataType === "reference" ? !0 : r.dataType === "array" ? Array.isArray(r.of) ? !1 : r.of?.dataType === "reference" : !1 : null;
475
476
  }
476
477
  function Xu(e) {
477
- return /* @__PURE__ */ n(Qn, { size: e });
478
+ return /* @__PURE__ */ n(Dn, { size: e });
478
479
  }
479
480
  function si(e, t) {
480
- const r = e?.Icon ?? Qn;
481
+ const r = e?.Icon ?? Dn;
481
482
  return /* @__PURE__ */ n(r, { size: t });
482
483
  }
483
484
  function De(e, t = "small", r = {}) {
484
485
  if (Qe(e))
485
- return /* @__PURE__ */ n(Pa, { size: t });
486
+ return /* @__PURE__ */ n(Qa, { size: t });
486
487
  {
487
488
  const i = Qr(e, r);
488
489
  return si(i, t);
@@ -502,14 +503,14 @@ function wt(e, t) {
502
503
  }
503
504
  }
504
505
  }
505
- function uo(e, t) {
506
+ function mo(e, t) {
506
507
  if (typeof e == "object") {
507
508
  if (t in e)
508
509
  return e[t];
509
510
  if (t.includes(".")) {
510
511
  const r = t.split("."), i = e[r[0]];
511
512
  if (i.dataType === "map" && i.properties)
512
- return uo(i.properties, r.slice(1).join("."));
513
+ return mo(i.properties, r.slice(1).join("."));
513
514
  }
514
515
  }
515
516
  }
@@ -517,8 +518,7 @@ function em(e) {
517
518
  return e.replace(/\.([^.]*)/g, "[$1]");
518
519
  }
519
520
  function qs(e, t) {
520
- if (!t)
521
- return e;
521
+ if (!t) return e;
522
522
  const r = {};
523
523
  return t.filter(Boolean).forEach((i) => {
524
524
  const a = wt(e, i);
@@ -544,7 +544,7 @@ function Ir(e, t, r, i) {
544
544
  if (typeof a == "object")
545
545
  return a;
546
546
  if (typeof a == "function") {
547
- const o = co(r);
547
+ const o = uo(r);
548
548
  return a({
549
549
  entity: i,
550
550
  path: r,
@@ -556,7 +556,7 @@ function Ir(e, t, r, i) {
556
556
  }
557
557
  throw console.error("Permissions:", a), Error("New type of permission added and not mapped");
558
558
  }
559
- function mo(e, t, r, i) {
559
+ function po(e, t, r, i) {
560
560
  return Ir(e, t, r, i)?.edit ?? Sr.edit;
561
561
  }
562
562
  function $t(e, t, r, i) {
@@ -2418,7 +2418,7 @@ const li = {
2418
2418
  zoom_in_map: "arrows destination location maps move place stop",
2419
2419
  zoom_out: "find glass look magnifier magnifying minus negative scale search see size smaller",
2420
2420
  zoom_out_map: "arrows destination location maps move place stop"
2421
- }, Pi = new Zn.Search("key");
2421
+ }, Pi = new Xn.Search("key");
2422
2422
  Pi.addIndex("synonyms");
2423
2423
  Pi.addDocuments(hi.map((e) => ({
2424
2424
  key: e,
@@ -2437,8 +2437,7 @@ function Js(e, t) {
2437
2437
  }
2438
2438
  const ci = S.memo(
2439
2439
  function({ collectionOrView: t, className: r }) {
2440
- if (!t)
2441
- return /* @__PURE__ */ n(O, {});
2440
+ if (!t) return /* @__PURE__ */ n(O, {});
2442
2441
  const i = Js(t.icon, r);
2443
2442
  if (t?.icon && i)
2444
2443
  return i;
@@ -2611,7 +2610,7 @@ function Hs(e, t, r, i = 3) {
2611
2610
  return l && !Qe(l) && !$s(l, t);
2612
2611
  }).slice(0, i));
2613
2612
  }
2614
- function po(e, t) {
2613
+ function fo(e, t) {
2615
2614
  if (e.titleProperty)
2616
2615
  return e.titleProperty;
2617
2616
  for (const r in e.properties) {
@@ -2627,12 +2626,12 @@ function Zs(e) {
2627
2626
  return t;
2628
2627
  }
2629
2628
  }
2630
- function sn(e, t = "") {
2629
+ function ln(e, t = "") {
2631
2630
  return e && Object.keys(e).reduce((r, i) => {
2632
2631
  const a = t ? `${t}.${i}` : i;
2633
2632
  return typeof e[i] == "object" && e[i] !== null ? Array.isArray(e[i]) ? e[i].forEach((o, s) => {
2634
- Object.assign(r, sn(o, `${a}[${s}]`));
2635
- }) : Object.assign(r, sn(e[i], a)) : r[a] = e[i], r;
2633
+ Object.assign(r, ln(o, `${a}[${s}]`));
2634
+ }) : Object.assign(r, ln(e[i], a)) : r[a] = e[i], r;
2636
2635
  }, {});
2637
2636
  }
2638
2637
  function Xs(e) {
@@ -2687,13 +2686,13 @@ function rl(e, t, r = [], i) {
2687
2686
  ), o = { ...e.properties };
2688
2687
  Object.keys(t.properties).forEach((m) => {
2689
2688
  const p = e.properties[m];
2690
- p ? o[m] = fo(p, t.properties[m]) : o[m] = t.properties[m];
2689
+ p ? o[m] = ho(p, t.properties[m]) : o[m] = t.properties[m];
2691
2690
  });
2692
- const s = He(e, t), l = ln(e), c = ln(t), d = [.../* @__PURE__ */ new Set([...c, ...l])], u = [.../* @__PURE__ */ new Set([...e.entityViews ?? [], ...t.entityViews ?? []])];
2691
+ const s = He(e, t), l = cn(e), c = cn(t), d = [.../* @__PURE__ */ new Set([...c, ...l])], u = [.../* @__PURE__ */ new Set([...e.entityViews ?? [], ...t.entityViews ?? []])];
2693
2692
  let f = {
2694
2693
  ...s,
2695
2694
  subcollections: a,
2696
- properties: so(o, d),
2695
+ properties: lo(o, d),
2697
2696
  propertiesOrder: d,
2698
2697
  entityViews: u
2699
2698
  };
@@ -2706,7 +2705,7 @@ function rl(e, t, r = [], i) {
2706
2705
  }
2707
2706
  return f;
2708
2707
  }
2709
- function fo(e, t) {
2708
+ function ho(e, t) {
2710
2709
  if (Qe(t))
2711
2710
  return t;
2712
2711
  if (Qe(e))
@@ -2717,7 +2716,7 @@ function fo(e, t) {
2717
2716
  const o = "properties" in e ? e.properties : {}, s = "properties" in t ? t.properties : {}, l = "propertiesOrder" in e && e.propertiesOrder ? e.propertiesOrder : Object.keys(o), c = "propertiesOrder" in t && t.propertiesOrder ? t.propertiesOrder : "properties" in t ? Object.keys(t.properties) : [], d = [.../* @__PURE__ */ new Set([...l, ...c])], u = { ...o };
2718
2717
  return Object.keys(t.properties).forEach((f) => {
2719
2718
  const m = o[f];
2720
- m && (u[f] = fo(m, s[f]));
2719
+ m && (u[f] = ho(m, s[f]));
2721
2720
  }), {
2722
2721
  ...r,
2723
2722
  editable: i && a,
@@ -2731,7 +2730,7 @@ function fo(e, t) {
2731
2730
  };
2732
2731
  }
2733
2732
  }
2734
- function ln(e) {
2733
+ function cn(e) {
2735
2734
  if (e.propertiesOrder && e.propertiesOrder.length > 0) {
2736
2735
  const t = e.propertiesOrder;
2737
2736
  return e.additionalFields && e.additionalFields.forEach((r) => {
@@ -2770,28 +2769,28 @@ function um(e) {
2770
2769
  function mm(e) {
2771
2770
  return e;
2772
2771
  }
2773
- function ho(e, t, r = "", i = 0, a = 10) {
2772
+ function go(e, t, r = "", i = 0, a = 10) {
2774
2773
  i > a || (e && t && typeof e == "object" && typeof t == "object" ? Object.keys(e).forEach((o) => {
2775
- ho(e[o], t[o], r + "." + o, i + 1, a);
2774
+ go(e[o], t[o], r + "." + o, i + 1, a);
2776
2775
  }) : e !== t && console.log("Changed props:", r));
2777
2776
  }
2778
2777
  function pm(e, t = 3) {
2779
2778
  const r = ce(e);
2780
2779
  M(() => {
2781
- console.log("Changed props:"), ho(e, r.current, "", 0, t), r.current = e;
2780
+ console.log("Changed props:"), go(e, r.current, "", 0, t), r.current = e;
2782
2781
  });
2783
2782
  }
2784
- const go = S.createContext({}), tt = (e) => {
2785
- const t = $e(go);
2783
+ const Ao = S.createContext({}), tt = (e) => {
2784
+ const t = $e(Ao);
2786
2785
  return e?.overrides?.dataSource ? e?.overrides.dataSource : t;
2787
- }, Ao = S.createContext({}), _e = () => $e(Ao), Nt = () => $e(Kn), bo = S.createContext({}), Nr = () => $e(bo), yo = S.createContext({}), Ft = () => $e(yo), wo = S.createContext({}), tr = (e) => {
2788
- const t = $e(wo);
2786
+ }, bo = S.createContext({}), _e = () => $e(bo), Nt = () => $e(eo), yo = S.createContext({}), Nr = () => $e(yo), wo = S.createContext({}), Ft = () => $e(wo), vo = S.createContext({}), tr = (e) => {
2787
+ const t = $e(vo);
2789
2788
  return e?.overrides?.storageSource ? e.overrides.storageSource : t;
2790
2789
  }, gt = () => {
2791
2790
  const {
2792
2791
  enqueueSnackbar: e,
2793
2792
  closeSnackbar: t
2794
- } = Na(), r = x((a) => {
2793
+ } = Fa(), r = x((a) => {
2795
2794
  const {
2796
2795
  type: o,
2797
2796
  message: s,
@@ -2809,7 +2808,7 @@ const go = S.createContext({}), tt = (e) => {
2809
2808
  open: r,
2810
2809
  close: i
2811
2810
  }), [r, i]);
2812
- }, vo = S.createContext(void 0), Pt = () => $e(vo), ko = S.createContext({}), il = ({ children: e }) => {
2811
+ }, ko = S.createContext(void 0), Pt = () => $e(ko), _o = S.createContext({}), il = ({ children: e }) => {
2813
2812
  const [t, r] = P([]), i = ce(t), a = (l) => {
2814
2813
  i.current = l, r(l);
2815
2814
  }, o = x(() => {
@@ -2826,7 +2825,7 @@ const go = S.createContext({}), tt = (e) => {
2826
2825
  }
2827
2826
  };
2828
2827
  }, [t]);
2829
- return /* @__PURE__ */ v(ko.Provider, { value: {
2828
+ return /* @__PURE__ */ v(_o.Provider, { value: {
2830
2829
  open: s,
2831
2830
  close: o
2832
2831
  }, children: [
@@ -2840,7 +2839,7 @@ const go = S.createContext({}), tt = (e) => {
2840
2839
  `dialog_${c}`
2841
2840
  ))
2842
2841
  ] });
2843
- }, nl = () => $e(ko), _o = S.createContext({}), fe = () => $e(_o), xo = S.createContext({}), Qt = () => $e(xo), Re = () => {
2842
+ }, nl = () => $e(_o), xo = S.createContext({}), fe = () => $e(xo), Eo = S.createContext({}), Qt = () => $e(Eo), Re = () => {
2844
2843
  const e = Nt(), t = Nr(), r = Ft(), i = _e(), a = tt(), o = tr(), s = gt(), l = Pt(), c = nl(), d = fe(), u = Qt(), f = S.useRef({
2845
2844
  authController: e,
2846
2845
  sideDialogsController: t,
@@ -2932,7 +2931,7 @@ function fm({
2932
2931
  };
2933
2932
  }
2934
2933
  const Ur = {};
2935
- function Eo({
2934
+ function Co({
2936
2935
  path: e,
2937
2936
  entityId: t,
2938
2937
  collection: r,
@@ -2977,7 +2976,7 @@ function Eo({
2977
2976
  dataLoadingError: m
2978
2977
  };
2979
2978
  }
2980
- async function Co({
2979
+ async function Bo({
2981
2980
  collection: e,
2982
2981
  path: t,
2983
2982
  entityId: r,
@@ -3155,16 +3154,14 @@ function hm({
3155
3154
  }).catch((d) => l(d)).finally(() => o(!1)));
3156
3155
  }, [e, t]), t.navigation ? { data: r, dataLoading: a, dataLoadingError: s } : { dataLoading: !0 };
3157
3156
  }
3158
- const sl = () => $e(Xn), ll = (e) => {
3157
+ const sl = () => $e(Kn), ll = (e) => {
3159
3158
  const { onSuccess: t, onError: r, disableClipboardAPI: i = !1, copiedDuration: a } = e || {}, o = ce(null), [s, l] = P(!1), [c, d] = P("");
3160
3159
  M(() => {
3161
3160
  a && setTimeout(() => l(!1), a);
3162
3161
  }, [s]);
3163
3162
  const u = () => navigator.clipboard !== void 0, f = x((w) => {
3164
- if (r)
3165
- r(w);
3166
- else
3167
- throw new Error(w);
3163
+ if (r) r(w);
3164
+ else throw new Error(w);
3168
3165
  }, [r]), m = x((w) => {
3169
3166
  t && t(w), l(!0), d(w);
3170
3167
  }, [t]), p = x((w) => {
@@ -3198,12 +3195,12 @@ const sl = () => $e(Xn), ll = (e) => {
3198
3195
  "2xl": 1536,
3199
3196
  "3xl": 1920
3200
3197
  };
3201
- let qt = Bo("lg");
3198
+ let qt = So("lg");
3202
3199
  const dr = [], dl = () => {
3203
3200
  dr.forEach((e) => e(qt));
3204
3201
  };
3205
3202
  typeof window < "u" && window.addEventListener("resize", () => {
3206
- const e = Bo("lg");
3203
+ const e = So("lg");
3207
3204
  e !== qt && (qt = e, dl());
3208
3205
  });
3209
3206
  const Ze = () => {
@@ -3218,7 +3215,7 @@ const Ze = () => {
3218
3215
  };
3219
3216
  }, []), e;
3220
3217
  };
3221
- function Bo(e = "lg") {
3218
+ function So(e = "lg") {
3222
3219
  return typeof window > "u" ? !1 : window.matchMedia(`(min-width: ${cl[e] + 1}px)`).matches;
3223
3220
  }
3224
3221
  function rr(e) {
@@ -3262,7 +3259,7 @@ function gm(e, t) {
3262
3259
  }
3263
3260
  }, [e, t]);
3264
3261
  }
3265
- function So(e) {
3262
+ function Io(e) {
3266
3263
  const {
3267
3264
  path: t,
3268
3265
  collections: r = [],
@@ -3274,11 +3271,11 @@ function So(e) {
3274
3271
  const u = d.id ?? d.path, f = i && i.length > 0 ? i + "/" + u : u, m = Ee(Ee(t).replace(c, "")), p = m.length > 0 ? m.split("/") : [];
3275
3272
  if (p.length > 0) {
3276
3273
  const h = p[0], A = f + "/" + h;
3277
- if (s.push(new to(h, f)), p.length > 1) {
3274
+ if (s.push(new ro(h, f)), p.length > 1) {
3278
3275
  const g = p.slice(1).join("/");
3279
3276
  if (!d)
3280
3277
  throw Error("collection not found resolving path: " + d);
3281
- d.subcollections && s.push(...So({
3278
+ d.subcollections && s.push(...Io({
3282
3279
  path: g,
3283
3280
  collections: d.subcollections,
3284
3281
  currentFullPath: A
@@ -3319,7 +3316,7 @@ function Am(e) {
3319
3316
  path: I.id ?? I.path,
3320
3317
  collection: I,
3321
3318
  description: I.description?.trim(),
3322
- group: dn(I)
3319
+ group: un(I)
3323
3320
  }).filter(Boolean),
3324
3321
  ...(ne ?? []).map((I) => I.hideFromNavigation ? void 0 : {
3325
3322
  url: F(Array.isArray(I.path) ? I.path[0] : I.path),
@@ -3328,7 +3325,7 @@ function Am(e) {
3328
3325
  path: I.path,
3329
3326
  view: I,
3330
3327
  description: I.description?.trim(),
3331
- group: dn(I)
3328
+ group: un(I)
3332
3329
  }).filter(Boolean),
3333
3330
  ...(K ?? []).map((I) => I.hideFromNavigation ? void 0 : {
3334
3331
  url: F(Array.isArray(I.path) ? I.path[0] : I.path),
@@ -3356,12 +3353,12 @@ function Am(e) {
3356
3353
  const [T = [], ne, K = []] = await Promise.all(
3357
3354
  [
3358
3355
  fl(a, o, i, u, f),
3359
- cn(s, i, u),
3360
- cn(l, i, u)
3356
+ dn(s, i, u),
3357
+ dn(l, i, u)
3361
3358
  ]
3362
3359
  );
3363
3360
  let H = !1;
3364
- No(m.current ?? [], T) || (m.current = T, H = !0), J(p.current, ne) || (p.current = ne, H = !0), J(h.current, K) || (h.current = K, H = !0);
3361
+ Fo(m.current ?? [], T) || (m.current = T, H = !0), J(p.current, ne) || (p.current = ne, H = !0), J(h.current, K) || (h.current = K, H = !0);
3365
3362
  const j = $(T, ne, K, c);
3366
3363
  H && !J(y, j) && w(j);
3367
3364
  } catch (T) {
@@ -3437,10 +3434,10 @@ function Am(e) {
3437
3434
  []
3438
3435
  ), Ae = x((T) => {
3439
3436
  const ne = m.current ?? [];
3440
- return eo(T, ne);
3437
+ return to(T, ne);
3441
3438
  }, []), ue = x((T) => {
3442
3439
  const ne = m.current ?? [];
3443
- return So({
3440
+ return Io({
3444
3441
  path: T,
3445
3442
  collections: ne
3446
3443
  });
@@ -3494,10 +3491,10 @@ function bm(e, t) {
3494
3491
  function nr(e) {
3495
3492
  return encodeURIComponent(Ee(e)).replaceAll("%2F", "/").replaceAll("%23", "#");
3496
3493
  }
3497
- function Io(e, t) {
3494
+ function No(e, t) {
3498
3495
  return e.filter((r) => r.permissions ? Ir(r, t, r.path, null)?.read !== !1 : !0).map((r) => r.subcollections ? {
3499
3496
  ...r,
3500
- subcollections: Io(r.subcollections, t)
3497
+ subcollections: No(r.subcollections, t)
3501
3498
  } : r);
3502
3499
  }
3503
3500
  async function fl(e, t, r, i, a) {
@@ -3506,9 +3503,9 @@ async function fl(e, t, r, i, a) {
3506
3503
  user: r.user,
3507
3504
  authController: r,
3508
3505
  dataSource: i
3509
- }) : Array.isArray(e) && (o = e), a && (o = a(o ?? [])), o = zs(o, t), o = Io(o, r), o;
3506
+ }) : Array.isArray(e) && (o = e), a && (o = a(o ?? [])), o = zs(o, t), o = No(o, r), o;
3510
3507
  }
3511
- async function cn(e, t, r) {
3508
+ async function dn(e, t, r) {
3512
3509
  let i = [];
3513
3510
  return typeof e == "function" ? i = await e({
3514
3511
  user: t.user,
@@ -3516,11 +3513,11 @@ async function cn(e, t, r) {
3516
3513
  dataSource: r
3517
3514
  }) : Array.isArray(e) && (i = e), i;
3518
3515
  }
3519
- function dn(e) {
3516
+ function un(e) {
3520
3517
  const t = e.group?.trim();
3521
3518
  return !t || t === "" ? "Views" : t ?? "Views";
3522
3519
  }
3523
- function No(e, t) {
3520
+ function Fo(e, t) {
3524
3521
  if (e.length !== t.length)
3525
3522
  return !1;
3526
3523
  const r = [...e], i = [...t], a = r.sort((s, l) => s.id.localeCompare(l.id)), o = i.sort((s, l) => s.id.localeCompare(l.id));
@@ -3534,17 +3531,17 @@ function hl(e, t) {
3534
3531
  subcollections: a,
3535
3532
  ...o
3536
3533
  } = t;
3537
- return No(r ?? [], a ?? []) ? J(i, o) : !1;
3534
+ return Fo(r ?? [], a ?? []) ? J(i, o) : !1;
3538
3535
  }
3539
3536
  function ym() {
3540
3537
  const e = ce({}), t = x((p) => {
3541
3538
  const h = localStorage.getItem(p);
3542
3539
  return h ? JSON.parse(h) : {};
3543
3540
  }, []), r = x((p) => {
3544
- const h = `collection_config::${an(p)}`;
3541
+ const h = `collection_config::${sn(p)}`;
3545
3542
  return e.current[h] ? e.current[h] : t(h);
3546
3543
  }, [t]), i = x((p, h) => {
3547
- const A = `collection_config::${an(p)}`;
3544
+ const A = `collection_config::${sn(p)}`;
3548
3545
  localStorage.setItem(A, JSON.stringify(h));
3549
3546
  const g = e.current[A], y = He(g ?? t(p), h);
3550
3547
  e.current[A] = He(e.current[A], y);
@@ -3805,7 +3802,7 @@ function Ar({
3805
3802
  height: Et(r)
3806
3803
  },
3807
3804
  children: [
3808
- /* @__PURE__ */ n(Qa, { className: "flex-grow" }),
3805
+ /* @__PURE__ */ n(Da, { className: "flex-grow" }),
3809
3806
  i && /* @__PURE__ */ n(ke, { title: i, children: /* @__PURE__ */ n(
3810
3807
  Y,
3811
3808
  {
@@ -3841,15 +3838,14 @@ function Ct({
3841
3838
  let r;
3842
3839
  if (e.dataType === "string") {
3843
3840
  const i = e;
3844
- i.url ? r = El(i, t) : i.storage ? r = Fo(t) : r = ct();
3841
+ i.url ? r = El(i, t) : i.storage ? r = Po(t) : r = ct();
3845
3842
  } else if (e.dataType === "array") {
3846
3843
  const i = e;
3847
3844
  i.of && (Array.isArray(i.of) ? r = /* @__PURE__ */ v(O, { children: [
3848
3845
  i.of.map((a, o) => $r(a, o)),
3849
3846
  " "
3850
3847
  ] }) : i.of.dataType === "map" && i.of.properties ? r = vl(i.of.properties, t, i.of.previewProperties) : i.of.dataType === "string" ? i.of.enumValues ? r = _l() : i.of.storage ? r = $r(i.of) : r = kl() : r = $r(i.of));
3851
- } else
3852
- e.dataType === "map" ? r = wl(e, t) : e.dataType === "date" ? r = ct() : e.dataType === "reference" ? r = xl() : (e.dataType, r = ct());
3848
+ } else e.dataType === "map" ? r = wl(e, t) : e.dataType === "date" ? r = ct() : e.dataType === "reference" ? r = xl() : (e.dataType, r = ct());
3853
3849
  return r || null;
3854
3850
  }
3855
3851
  function wl(e, t) {
@@ -3946,7 +3942,7 @@ function $r(e, t = 0) {
3946
3942
  "array_index_" + t
3947
3943
  );
3948
3944
  }
3949
- function Fo(e) {
3945
+ function Po(e) {
3950
3946
  const t = e === "tiny" ? 40 : e === "small" ? 100 : 200;
3951
3947
  return /* @__PURE__ */ n(
3952
3948
  Ue,
@@ -3963,7 +3959,7 @@ function El(e, t = "medium") {
3963
3959
  return typeof e.url == "boolean" ? /* @__PURE__ */ v("div", { style: {
3964
3960
  display: "flex"
3965
3961
  }, children: [
3966
- Po(),
3962
+ Qo(),
3967
3963
  ct()
3968
3964
  ] }) : Cl(t);
3969
3965
  }
@@ -3972,7 +3968,7 @@ function Cl(e) {
3972
3968
  "div",
3973
3969
  {
3974
3970
  className: `w-${Et(e)} h-${Et(e)}`,
3975
- children: Po()
3971
+ children: Qo()
3976
3972
  }
3977
3973
  );
3978
3974
  }
@@ -3987,31 +3983,30 @@ function km(e) {
3987
3983
  }
3988
3984
  );
3989
3985
  }
3990
- function Po() {
3986
+ function Qo() {
3991
3987
  return /* @__PURE__ */ n(Ue, { width: 24, height: 24 });
3992
3988
  }
3993
3989
  const Bl = S.memo(Il, Sl);
3994
3990
  function Sl(e, t) {
3995
3991
  return e.size === t.size && e.storagePathOrDownloadUrl === t.storagePathOrDownloadUrl && e.storeUrl === t.storeUrl;
3996
3992
  }
3997
- const un = {};
3993
+ const mn = {};
3998
3994
  function Il({
3999
3995
  storeUrl: e,
4000
3996
  storagePathOrDownloadUrl: t,
4001
3997
  size: r
4002
3998
  }) {
4003
- const [i, a] = S.useState(void 0), o = tr(), [s, l] = S.useState(un[t]);
3999
+ const [i, a] = S.useState(void 0), o = tr(), [s, l] = S.useState(mn[t]);
4004
4000
  if (M(() => {
4005
4001
  if (!t)
4006
4002
  return;
4007
4003
  let u = !1;
4008
4004
  return o.getDownloadURL(t).then(function(f) {
4009
- u || (l(f), un[t] = f);
4005
+ u || (l(f), mn[t] = f);
4010
4006
  }).catch(a), () => {
4011
4007
  u = !0;
4012
4008
  };
4013
- }, [t]), !t)
4014
- return null;
4009
+ }, [t]), !t) return null;
4015
4010
  const c = s?.metadata ? Nl(s?.metadata.contentType) : void 0, d = c?.startsWith("image") ? "image" : c?.startsWith("video") ? "video" : c?.startsWith("audio") ? "audio" : "file";
4016
4011
  return s?.fileNotFound ? /* @__PURE__ */ n(Ne, { error: "File not found" }) : s?.url ? /* @__PURE__ */ n(
4017
4012
  Ar,
@@ -4021,7 +4016,7 @@ function Il({
4021
4016
  size: r,
4022
4017
  hint: t
4023
4018
  }
4024
- ) : Fo(r);
4019
+ ) : Po(r);
4025
4020
  }
4026
4021
  function Nl(e) {
4027
4022
  return e.startsWith("image") ? "image/*" : e.startsWith("video") ? "video/*" : e.startsWith("audio") ? "audio/*" : e.startsWith("application") ? "application/*" : e.startsWith("text") ? "text/*" : e.startsWith("font") ? "font/*" : e;
@@ -4033,8 +4028,7 @@ function je({
4033
4028
  className: i,
4034
4029
  children: a
4035
4030
  }) {
4036
- if (!e)
4037
- return null;
4031
+ if (!e) return null;
4038
4032
  const o = ht(e), s = t !== void 0 ? Ii(o, t) : void 0, l = Ms(s), c = Os(o, t);
4039
4033
  return /* @__PURE__ */ v(
4040
4034
  Ai,
@@ -4051,14 +4045,14 @@ function je({
4051
4045
  }
4052
4046
  );
4053
4047
  }
4054
- function Qo({
4048
+ function Do({
4055
4049
  propertyKey: e,
4056
4050
  value: t,
4057
4051
  property: r,
4058
4052
  size: i
4059
4053
  }) {
4060
4054
  if (r.enumValues) {
4061
- const a = t, o = da(r);
4055
+ const a = t, o = ua(r);
4062
4056
  return /* @__PURE__ */ n(
4063
4057
  je,
4064
4058
  {
@@ -4068,7 +4062,7 @@ function Qo({
4068
4062
  }
4069
4063
  );
4070
4064
  } else if (r.previewAsTag) {
4071
- const a = Fn(e ?? "");
4065
+ const a = Pn(e ?? "");
4072
4066
  return /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
4073
4067
  Ai,
4074
4068
  {
@@ -4088,8 +4082,7 @@ function Qo({
4088
4082
  }
4089
4083
  );
4090
4084
  {
4091
- if (!t)
4092
- return /* @__PURE__ */ n(O, {});
4085
+ if (!t) return /* @__PURE__ */ n(O, {});
4093
4086
  const a = t.split(`
4094
4087
  `);
4095
4088
  return t && t.includes(`
@@ -4100,7 +4093,7 @@ function Qo({
4100
4093
  }
4101
4094
  }
4102
4095
  }
4103
- function mn({
4096
+ function pn({
4104
4097
  propertyKey: e,
4105
4098
  value: t,
4106
4099
  property: r,
@@ -4117,8 +4110,7 @@ function mn({
4117
4110
  if (o.dataType !== "array")
4118
4111
  throw Error("Picked wrong preview component ArrayPreview");
4119
4112
  const s = t;
4120
- if (!s)
4121
- return null;
4113
+ if (!s) return null;
4122
4114
  const l = i === "medium" ? "small" : "tiny";
4123
4115
  return /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: s && s.map(
4124
4116
  (c, d) => {
@@ -4164,7 +4156,7 @@ function Fl({
4164
4156
  }), [h]), g = he(
4165
4157
  () => Hs(A, m.propertyConfigs, a, s === "small" || s === "medium" ? 3 : 1),
4166
4158
  [a, A, s]
4167
- ), y = po(A, m.propertyConfigs), w = Zs(A), b = w ? A.properties[w] : void 0, _ = g.filter((k) => k !== y && k !== w);
4159
+ ), y = fo(A, m.propertyConfigs), w = Zs(A), b = w ? A.properties[w] : void 0, _ = g.filter((k) => k !== y && k !== w);
4168
4160
  return /* @__PURE__ */ v(
4169
4161
  vt,
4170
4162
  {
@@ -4263,7 +4255,7 @@ function Fl({
4263
4255
  }
4264
4256
  );
4265
4257
  }
4266
- const Do = kt.forwardRef(({
4258
+ const Ro = kt.forwardRef(({
4267
4259
  children: e,
4268
4260
  hover: t,
4269
4261
  onClick: r,
@@ -4299,8 +4291,8 @@ const Do = kt.forwardRef(({
4299
4291
  children: e
4300
4292
  }
4301
4293
  ));
4302
- Do.displayName = "EntityPreviewContainer";
4303
- const vt = kt.memo(Do), et = kt.memo(function(t) {
4294
+ Ro.displayName = "EntityPreviewContainer";
4295
+ const vt = kt.memo(Ro), et = kt.memo(function(t) {
4304
4296
  const r = t.reference;
4305
4297
  return typeof r == "object" && "isEntityReference" in r && r.isEntityReference() ? /* @__PURE__ */ n(Ql, { ...t }) : (console.warn("Reference preview received value of type", typeof r), /* @__PURE__ */ n(
4306
4298
  vt,
@@ -4366,14 +4358,14 @@ function Dl({
4366
4358
  entity: d,
4367
4359
  dataLoading: u,
4368
4360
  dataLoadingError: f
4369
- } = Eo({
4361
+ } = Co({
4370
4362
  path: e.path,
4371
4363
  entityId: e.id,
4372
4364
  collection: t,
4373
4365
  useCache: !0
4374
4366
  });
4375
- d && pn.set(e.pathWithId, d);
4376
- const m = d ?? pn.get(e.pathWithId);
4367
+ d && fn.set(e.pathWithId, d);
4368
+ const m = d ?? fn.get(e.pathWithId);
4377
4369
  let p;
4378
4370
  return e ? m && !m.values && (p = /* @__PURE__ */ n(
4379
4371
  Ne,
@@ -4420,7 +4412,7 @@ function Dl({
4420
4412
  }
4421
4413
  );
4422
4414
  }
4423
- const pn = /* @__PURE__ */ new Map();
4415
+ const fn = /* @__PURE__ */ new Map();
4424
4416
  function Rl({
4425
4417
  propertyKey: e,
4426
4418
  value: t,
@@ -4490,7 +4482,7 @@ function Tl({
4490
4482
  ) }, `preview_array_storage_${e}_${c}`)
4491
4483
  ) });
4492
4484
  }
4493
- function Ro({
4485
+ function To({
4494
4486
  name: e,
4495
4487
  value: t,
4496
4488
  enumValues: r,
@@ -4513,7 +4505,7 @@ function Ro({
4513
4505
  )
4514
4506
  ) });
4515
4507
  }
4516
- function fn({
4508
+ function hn({
4517
4509
  propertyKey: e,
4518
4510
  value: t,
4519
4511
  property: r,
@@ -4525,7 +4517,7 @@ function fn({
4525
4517
  if (!a.enumValues)
4526
4518
  throw Error("Picked wrong preview component ArrayEnumPreview");
4527
4519
  return t ? /* @__PURE__ */ n(
4528
- Ro,
4520
+ To,
4529
4521
  {
4530
4522
  name: e,
4531
4523
  value: t,
@@ -4555,7 +4547,7 @@ function Ol({
4555
4547
  const s = o.of;
4556
4548
  return /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: t && t.map(
4557
4549
  (l, c) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
4558
- Qo,
4550
+ Do,
4559
4551
  {
4560
4552
  propertyKey: e,
4561
4553
  property: s,
@@ -4582,8 +4574,7 @@ function Ml({
4582
4574
  if (!o?.oneOf)
4583
4575
  throw Error(`You need to specify an 'of' or 'oneOf' prop (or specify a custom field) in your array property ${e}`);
4584
4576
  const s = t;
4585
- if (!s)
4586
- return null;
4577
+ if (!s) return null;
4587
4578
  const l = i === "medium" ? "small" : "tiny", c = o.oneOf.typeField ?? Lt, d = o.oneOf.valueField ?? fr, u = o.oneOf.properties;
4588
4579
  return /* @__PURE__ */ n("div", { className: "flex flex-col", children: s && s.map(
4589
4580
  (f, m) => /* @__PURE__ */ n(
@@ -4614,9 +4605,8 @@ function zl({
4614
4605
  throw Error("Picked wrong preview component MapPropertyPreview");
4615
4606
  const a = r;
4616
4607
  if (!a.properties || Object.keys(a.properties ?? {}).length === 0)
4617
- return /* @__PURE__ */ n(To, { value: t });
4618
- if (!t)
4619
- return null;
4608
+ return /* @__PURE__ */ n(Oo, { value: t });
4609
+ if (!t) return null;
4620
4610
  const o = Object.keys(a.properties);
4621
4611
  return i === "tiny" ? /* @__PURE__ */ n("div", { className: "w-full flex flex-col space-y-1 md:space-y-2", children: o.map((s, l) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
4622
4612
  pe,
@@ -4698,7 +4688,7 @@ function zl({
4698
4688
  }
4699
4689
  );
4700
4690
  }
4701
- function To({ value: e }) {
4691
+ function Oo({ value: e }) {
4702
4692
  return typeof e != "object" ? null : e ? /* @__PURE__ */ n(
4703
4693
  "div",
4704
4694
  {
@@ -4739,7 +4729,7 @@ function To({ value: e }) {
4739
4729
  ]
4740
4730
  }
4741
4731
  ),
4742
- typeof r == "object" && /* @__PURE__ */ n("div", { className: U(Se, "border-l pl-4"), children: /* @__PURE__ */ n(To, { value: r }) })
4732
+ typeof r == "object" && /* @__PURE__ */ n("div", { className: U(Se, "border-l pl-4"), children: /* @__PURE__ */ n(Oo, { value: r }) })
4743
4733
  ]
4744
4734
  },
4745
4735
  `map_preview_table_${t}}`
@@ -4750,7 +4740,7 @@ function To({ value: e }) {
4750
4740
  function Vl({
4751
4741
  date: e
4752
4742
  }) {
4753
- const t = fe(), r = t?.locale ? Cs[t?.locale] : void 0, i = t?.dateTimeFormat ?? js, a = e ? Es(e, i, { locale: r }) : "";
4743
+ const t = fe(), r = t?.locale ? Bs[t?.locale] : void 0, i = t?.dateTimeFormat ?? js, a = e ? Cs(e, i, { locale: r }) : "";
4754
4744
  return /* @__PURE__ */ n(O, { children: a });
4755
4745
  }
4756
4746
  function Gl({
@@ -4814,7 +4804,7 @@ const Fe = S.memo(function(t) {
4814
4804
  if (s === void 0 || u === null)
4815
4805
  i = /* @__PURE__ */ n(yt, {});
4816
4806
  else if (u.Preview)
4817
- i = xa(
4807
+ i = Ea(
4818
4808
  u.Preview,
4819
4809
  {
4820
4810
  propertyKey: o,
@@ -4852,7 +4842,7 @@ const Fe = S.memo(function(t) {
4852
4842
  storagePathOrDownloadUrl: s
4853
4843
  }
4854
4844
  ) : f.markdown ? i = /* @__PURE__ */ n(yi, { source: s, size: "small" }) : i = /* @__PURE__ */ n(
4855
- Qo,
4845
+ Do,
4856
4846
  {
4857
4847
  ...t,
4858
4848
  property: f,
@@ -4865,7 +4855,7 @@ const Fe = S.memo(function(t) {
4865
4855
  if (!f.of && !f.oneOf)
4866
4856
  throw Error(`You need to specify an 'of' or 'oneOf' prop (or specify a custom field) in your array property ${o}`);
4867
4857
  f.of ? Array.isArray(f.of) ? i = /* @__PURE__ */ n(
4868
- mn,
4858
+ pn,
4869
4859
  {
4870
4860
  ...t,
4871
4861
  value: s,
@@ -4879,7 +4869,7 @@ const Fe = S.memo(function(t) {
4879
4869
  property: u
4880
4870
  }
4881
4871
  ) : f.of.dataType === "string" ? f.of.enumValues ? i = /* @__PURE__ */ n(
4882
- fn,
4872
+ hn,
4883
4873
  {
4884
4874
  ...t,
4885
4875
  value: s,
@@ -4900,14 +4890,14 @@ const Fe = S.memo(function(t) {
4900
4890
  property: u
4901
4891
  }
4902
4892
  ) : f.of.dataType === "number" && f.of.enumValues ? i = /* @__PURE__ */ n(
4903
- fn,
4893
+ hn,
4904
4894
  {
4905
4895
  ...t,
4906
4896
  value: s,
4907
4897
  property: u
4908
4898
  }
4909
4899
  ) : i = /* @__PURE__ */ n(
4910
- mn,
4900
+ pn,
4911
4901
  {
4912
4902
  ...t,
4913
4903
  value: s,
@@ -4923,31 +4913,30 @@ const Fe = S.memo(function(t) {
4923
4913
  ));
4924
4914
  } else
4925
4915
  i = mt(o, u.dataType, s);
4926
- else
4927
- u.dataType === "map" ? typeof s == "object" ? i = /* @__PURE__ */ n(
4928
- zl,
4929
- {
4930
- ...t,
4931
- property: u
4932
- }
4933
- ) : i = mt(o, u.dataType, s) : u.dataType === "date" ? s instanceof Date ? i = /* @__PURE__ */ n(Vl, { date: s }) : i = mt(o, u.dataType, s) : u.dataType === "reference" ? typeof u.path == "string" ? typeof s == "object" && "isEntityReference" in s && s.isEntityReference() ? i = /* @__PURE__ */ n(
4934
- et,
4935
- {
4936
- disabled: !u.path,
4937
- previewProperties: u.previewProperties,
4938
- includeId: u.includeId,
4939
- includeEntityLink: u.includeEntityLink,
4940
- size: t.size,
4941
- reference: s
4942
- }
4943
- ) : i = mt(o, u.dataType, s) : i = /* @__PURE__ */ n(yt, {}) : u.dataType === "boolean" ? typeof s == "boolean" ? i = /* @__PURE__ */ n(Gl, { value: s, size: l, property: u }) : i = mt(o, u.dataType, s) : u.dataType === "number" ? typeof s == "number" ? i = /* @__PURE__ */ n(
4944
- jl,
4945
- {
4946
- ...t,
4947
- value: s,
4948
- property: u
4949
- }
4950
- ) : i = mt(o, u.dataType, s) : i = JSON.stringify(s);
4916
+ else u.dataType === "map" ? typeof s == "object" ? i = /* @__PURE__ */ n(
4917
+ zl,
4918
+ {
4919
+ ...t,
4920
+ property: u
4921
+ }
4922
+ ) : i = mt(o, u.dataType, s) : u.dataType === "date" ? s instanceof Date ? i = /* @__PURE__ */ n(Vl, { date: s }) : i = mt(o, u.dataType, s) : u.dataType === "reference" ? typeof u.path == "string" ? typeof s == "object" && "isEntityReference" in s && s.isEntityReference() ? i = /* @__PURE__ */ n(
4923
+ et,
4924
+ {
4925
+ disabled: !u.path,
4926
+ previewProperties: u.previewProperties,
4927
+ includeId: u.includeId,
4928
+ includeEntityLink: u.includeEntityLink,
4929
+ size: t.size,
4930
+ reference: s
4931
+ }
4932
+ ) : i = mt(o, u.dataType, s) : i = /* @__PURE__ */ n(yt, {}) : u.dataType === "boolean" ? typeof s == "boolean" ? i = /* @__PURE__ */ n(Gl, { value: s, size: l, property: u }) : i = mt(o, u.dataType, s) : u.dataType === "number" ? typeof s == "number" ? i = /* @__PURE__ */ n(
4933
+ jl,
4934
+ {
4935
+ ...t,
4936
+ value: s,
4937
+ property: u
4938
+ }
4939
+ ) : i = mt(o, u.dataType, s) : i = JSON.stringify(s);
4951
4940
  return i == null || Array.isArray(i) && i.length === 0 ? /* @__PURE__ */ n(yt, {}) : i;
4952
4941
  }, J);
4953
4942
  function mt(e, t, r) {
@@ -4979,8 +4968,7 @@ function _m({
4979
4968
  if (!l)
4980
4969
  throw Error(`You need to specify a 'properties' prop (or specify a custom field) in your map property ${e}`);
4981
4970
  const c = t, d = s.previewProperties;
4982
- if (!c)
4983
- return null;
4971
+ if (!c) return null;
4984
4972
  let u = d;
4985
4973
  return (!u || !u.length) && (u = Object.keys(l), i && (u = u.slice(0, 3))), /* @__PURE__ */ n("div", { className: "table-auto text-xs", children: /* @__PURE__ */ n("div", { children: c && c.map((f, m) => /* @__PURE__ */ n(
4986
4974
  "div",
@@ -5025,7 +5013,7 @@ const xm = kt.memo(
5025
5013
  }, [t]), r ? /* @__PURE__ */ n(Ue, {}) : /* @__PURE__ */ n(kt.Fragment, { children: a });
5026
5014
  }
5027
5015
  );
5028
- function Oo({
5016
+ function Mo({
5029
5017
  entity: e,
5030
5018
  collection: t,
5031
5019
  path: r,
@@ -5112,7 +5100,7 @@ function Yl(e) {
5112
5100
  return Ni(c, f, !s, 2e3), M(() => {
5113
5101
  t.current && s && !u.current ? (u.current = !0, t.current.focus({ preventScroll: !0 }), t.current.selectionStart = t.current.value.length, t.current.selectionEnd = t.current.value.length) : u.current = s;
5114
5102
  }, [s, t]), /* @__PURE__ */ n(
5115
- Da,
5103
+ Ra,
5116
5104
  {
5117
5105
  ref: t,
5118
5106
  style: {
@@ -5172,7 +5160,7 @@ function qr(e) {
5172
5160
  else
5173
5161
  throw Error("Missing mapping in TableSelect");
5174
5162
  }, [d, c, u]), h = (A, g) => d && Array.isArray(A) ? /* @__PURE__ */ n(
5175
- Ro,
5163
+ To,
5176
5164
  {
5177
5165
  value: A,
5178
5166
  name: t,
@@ -5190,7 +5178,7 @@ function qr(e) {
5190
5178
  `${A}-${g}`
5191
5179
  );
5192
5180
  return d ? /* @__PURE__ */ n(
5193
- Dn,
5181
+ Rn,
5194
5182
  {
5195
5183
  inputRef: m,
5196
5184
  containerClassName: "w-full h-full",
@@ -5203,7 +5191,7 @@ function qr(e) {
5203
5191
  onMultiValueChange: p,
5204
5192
  renderValue: h,
5205
5193
  children: r?.map((A) => /* @__PURE__ */ n(
5206
- Rn,
5194
+ Tn,
5207
5195
  {
5208
5196
  value: String(A.id),
5209
5197
  children: /* @__PURE__ */ n(
@@ -5306,7 +5294,7 @@ function Ul(e) {
5306
5294
  return M(() => {
5307
5295
  a.current && i && a.current.focus({ preventScroll: !0 });
5308
5296
  }, [i, a]), /* @__PURE__ */ n(
5309
- Ra,
5297
+ Ta,
5310
5298
  {
5311
5299
  ref: a,
5312
5300
  size: "small",
@@ -5351,7 +5339,7 @@ class pe extends S.Component {
5351
5339
  render() {
5352
5340
  return this.state.error ? /* @__PURE__ */ v("div", { className: "flex flex-col m-2", children: [
5353
5341
  /* @__PURE__ */ v("div", { className: "flex items-center m-2", children: [
5354
- /* @__PURE__ */ n(Pn, { color: "error", size: "small" }),
5342
+ /* @__PURE__ */ n(Qn, { color: "error", size: "small" }),
5355
5343
  /* @__PURE__ */ n("div", { className: "ml-4", children: "Error" })
5356
5344
  ] }),
5357
5345
  /* @__PURE__ */ n(Y, { variant: "caption", children: this.state.error?.message ?? "See the error in the console" })
@@ -5377,7 +5365,7 @@ async function ql({
5377
5365
  file: s,
5378
5366
  storage: t,
5379
5367
  propertyKey: l
5380
- }), c || console.warn("Storage callback returned empty result. Using default name value")) : c = Mo({
5368
+ }), c || console.warn("Storage callback returned empty result. Using default name value")) : c = zo({
5381
5369
  file: s,
5382
5370
  input: e,
5383
5371
  entityId: i,
@@ -5404,7 +5392,7 @@ function Wl({
5404
5392
  file: s,
5405
5393
  storage: t,
5406
5394
  propertyKey: l
5407
- }), c || console.warn("Storage callback returned empty result. Using default name value")) : c = Mo({
5395
+ }), c || console.warn("Storage callback returned empty result. Using default name value")) : c = zo({
5408
5396
  file: s,
5409
5397
  input: e,
5410
5398
  entityId: i,
@@ -5412,7 +5400,7 @@ function Wl({
5412
5400
  path: a
5413
5401
  }), c || (c = Ut() + "_" + s.name), c;
5414
5402
  }
5415
- function Mo({
5403
+ function zo({
5416
5404
  file: e,
5417
5405
  input: t,
5418
5406
  entityId: r,
@@ -5428,7 +5416,7 @@ function Mo({
5428
5416
  }
5429
5417
  return s || (s = Ut() + "_" + e.name), s;
5430
5418
  }
5431
- function zo({
5419
+ function Vo({
5432
5420
  entityId: e,
5433
5421
  entityValues: t,
5434
5422
  path: r,
@@ -5485,7 +5473,7 @@ function zo({
5485
5473
  return;
5486
5474
  }
5487
5475
  let F;
5488
- B.storagePathOrDownloadUrl = D, B.metadata = Q, F = [...y], F = hn(F), w(F);
5476
+ B.storagePathOrDownloadUrl = D, B.metadata = Q, F = [...y], F = gn(F), w(F);
5489
5477
  const z = F.filter(($) => !!$.storagePathOrDownloadUrl).map(($) => $.storagePathOrDownloadUrl);
5490
5478
  c(u ? z : z ? z[0] : null);
5491
5479
  }, [y, u, c, d, s]), E = x(async (C) => {
@@ -5495,7 +5483,7 @@ function zo({
5495
5483
  if (u)
5496
5484
  B = [
5497
5485
  ...y,
5498
- ...await Promise.all(C.map(async (Q) => (p && ui(Q) && (Q = await An(Q, p)), {
5486
+ ...await Promise.all(C.map(async (Q) => (p && ui(Q) && (Q = await bn(Q, p)), {
5499
5487
  id: Wr(),
5500
5488
  file: Q,
5501
5489
  fileName: await b(Q),
@@ -5505,7 +5493,7 @@ function zo({
5505
5493
  ];
5506
5494
  else {
5507
5495
  let Q = C[0];
5508
- p && ui(Q) && (Q = await An(Q, p)), B = [{
5496
+ p && ui(Q) && (Q = await bn(Q, p)), B = [{
5509
5497
  id: Wr(),
5510
5498
  file: Q,
5511
5499
  fileName: await b(Q),
@@ -5513,7 +5501,7 @@ function zo({
5513
5501
  size: m
5514
5502
  }];
5515
5503
  }
5516
- B = hn(B), w(B);
5504
+ B = gn(B), w(B);
5517
5505
  }, [l, b, y, f, u, m]);
5518
5506
  return {
5519
5507
  internalValue: y,
@@ -5526,7 +5514,7 @@ function zo({
5526
5514
  multipleFilesSupported: u
5527
5515
  };
5528
5516
  }
5529
- function hn(e) {
5517
+ function gn(e) {
5530
5518
  return e.filter(
5531
5519
  (t, r) => (e.map((i) => i.storagePathOrDownloadUrl).indexOf(t.storagePathOrDownloadUrl) === r || !t.storagePathOrDownloadUrl) && (e.map((i) => i.file).indexOf(t.file) === r || !t.file)
5532
5520
  );
@@ -5534,15 +5522,15 @@ function hn(e) {
5534
5522
  function Wr() {
5535
5523
  return Math.floor(Math.random() * Math.floor(Number.MAX_SAFE_INTEGER));
5536
5524
  }
5537
- const gn = {
5525
+ const An = {
5538
5526
  "image/jpeg": "JPEG",
5539
5527
  "image/png": "PNG",
5540
5528
  "image/webp": "WEBP"
5541
- }, ui = (e) => gn[e.type] ? gn[e.type] : null, Jl = 100, An = (e, t) => new Promise((r) => {
5529
+ }, ui = (e) => An[e.type] ? An[e.type] : null, Jl = 100, bn = (e, t) => new Promise((r) => {
5542
5530
  const i = t.quality === void 0 ? Jl : t.quality, a = i >= 0 && i <= 100 ? i : 100, o = ui(e);
5543
5531
  if (!o)
5544
5532
  throw Error("resizeAndCompressImage: Unsupported image format");
5545
- Bs.imageFileResizer(
5533
+ Ss.imageFileResizer(
5546
5534
  e,
5547
5535
  t.maxWidth || Number.MAX_VALUE,
5548
5536
  t.maxHeight || Number.MAX_VALUE,
@@ -5553,7 +5541,7 @@ const gn = {
5553
5541
  "file"
5554
5542
  );
5555
5543
  });
5556
- function Vo({
5544
+ function Go({
5557
5545
  storagePath: e,
5558
5546
  entry: t,
5559
5547
  metadata: r,
@@ -5595,7 +5583,7 @@ function Vo({
5595
5583
  )
5596
5584
  ] });
5597
5585
  }
5598
- function Go({ showError: e, disabled: t, showExpandIcon: r, selected: i, openPopup: a, children: o }) {
5586
+ function jo({ showError: e, disabled: t, showExpandIcon: r, selected: i, openPopup: a, children: o }) {
5599
5587
  const s = ce(null), l = x(() => {
5600
5588
  if (a) {
5601
5589
  const d = s && s?.current?.getBoundingClientRect();
@@ -5641,14 +5629,14 @@ function Go({ showError: e, disabled: t, showExpandIcon: r, selected: i, openPop
5641
5629
  }
5642
5630
  ),
5643
5631
  e && /* @__PURE__ */ n(
5644
- ao,
5632
+ so,
5645
5633
  {
5646
5634
  side: "left",
5647
5635
  className: "flex items-center justify-center",
5648
5636
  style: { width: 32, height: 32 },
5649
5637
  title: e.message,
5650
5638
  children: /* @__PURE__ */ n(
5651
- Ta,
5639
+ Oa,
5652
5640
  {
5653
5641
  size: "small",
5654
5642
  color: "error"
@@ -5680,7 +5668,7 @@ function ec(e) {
5680
5668
  onFileUploadComplete: y,
5681
5669
  storagePathBuilder: w,
5682
5670
  multipleFilesSupported: b
5683
- } = zo({
5671
+ } = Vo({
5684
5672
  entityValues: c.values,
5685
5673
  entityId: c.id,
5686
5674
  path: d,
@@ -5751,7 +5739,7 @@ function tc({
5751
5739
  isDragActive: D,
5752
5740
  isDragAccept: F,
5753
5741
  isDragReject: z
5754
- } = qn(
5742
+ } = Wn(
5755
5743
  {
5756
5744
  accept: p.acceptedFiles ? p.acceptedFiles.map((V) => ({ [V]: [] })).reduce((V, ae) => ({ ...V, ...ae }), {}) : void 0,
5757
5745
  disabled: f,
@@ -5798,7 +5786,7 @@ function tc({
5798
5786
  },
5799
5787
  `storage_preview_${ae}`
5800
5788
  ) : V.file && (te = /* @__PURE__ */ n(
5801
- Vo,
5789
+ Go,
5802
5790
  {
5803
5791
  entry: V,
5804
5792
  metadata: _,
@@ -5827,7 +5815,7 @@ function tc({
5827
5815
  }
5828
5816
  ),
5829
5817
  /* @__PURE__ */ n(
5830
- Go,
5818
+ jo,
5831
5819
  {
5832
5820
  showError: q,
5833
5821
  disabled: f,
@@ -5840,7 +5828,7 @@ function tc({
5840
5828
  color: "inherit",
5841
5829
  size: "small",
5842
5830
  onClick: C,
5843
- children: /* @__PURE__ */ n(Oa, { size: "small", className: "text-gray-500" })
5831
+ children: /* @__PURE__ */ n(Ma, { size: "small", className: "text-gray-500" })
5844
5832
  }
5845
5833
  )
5846
5834
  }
@@ -5871,7 +5859,7 @@ function rc({
5871
5859
  }
5872
5860
  );
5873
5861
  }
5874
- function bn(e) {
5862
+ function yn(e) {
5875
5863
  const t = fe(), r = _e(), { path: i } = e, a = r.getCollection(i);
5876
5864
  if (!a) {
5877
5865
  if (t.components?.missingReference)
@@ -5976,7 +5964,7 @@ const ic = S.memo(
5976
5964
  Oe.addMethod(Oe.array, "uniqueInArray", function(e = (r) => r, t) {
5977
5965
  return this.test("uniqueInArray", t, (r) => !r || r.length === new Set(r.map(e)).size);
5978
5966
  });
5979
- function jo(e, t, r) {
5967
+ function Yo(e, t, r) {
5980
5968
  const i = {};
5981
5969
  return Object.entries(t).forEach(([a, o]) => {
5982
5970
  i[a] = Wt({
@@ -6273,7 +6261,7 @@ const pc = ({
6273
6261
  hideOverflow: A = !0,
6274
6262
  showExpandIcon: g = !0
6275
6263
  }) {
6276
- const [y, w] = $n(), b = ce(null), _ = he(() => Fr(i), [i]), [k, E] = P(!1), [C, B] = P(l), Q = !o && !!c;
6264
+ const [y, w] = qn(), b = ce(null), _ = he(() => Fr(i), [i]), [k, E] = P(!1), [C, B] = P(l), Q = !o && !!c;
6277
6265
  M(() => {
6278
6266
  l && B(!0);
6279
6267
  const Ae = setTimeout(() => {
@@ -6311,8 +6299,7 @@ const pc = ({
6311
6299
  F = "flex-start";
6312
6300
  }
6313
6301
  const z = x(() => {
6314
- if (!p)
6315
- return;
6302
+ if (!p) return;
6316
6303
  const Ae = b && b?.current?.getBoundingClientRect();
6317
6304
  o ? p(void 0) : !a && Ae && p(Ae);
6318
6305
  }, [b, p, a, o]), $ = x((Ae) => {
@@ -6369,13 +6356,13 @@ const pc = ({
6369
6356
  )
6370
6357
  ] }),
6371
6358
  r,
6372
- o && k && s && /* @__PURE__ */ n("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ n(ke, { title: s, children: /* @__PURE__ */ n(Ma, { size: "smallest", color: "disabled", className: "text-gray-500" }) }) })
6359
+ o && k && s && /* @__PURE__ */ n("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ n(ke, { title: s, children: /* @__PURE__ */ n(za, { size: "smallest", color: "disabled", className: "text-gray-500" }) }) })
6373
6360
  ]
6374
6361
  }
6375
6362
  );
6376
6363
  },
6377
6364
  (e, t) => e.error === t.error && e.value === t.value && e.disabled === t.disabled && e.saved === t.saved && e.allowScroll === t.allowScroll && e.align === t.align && e.size === t.size && e.disabledTooltip === t.disabledTooltip && e.width === t.width && e.showExpandIcon === t.showExpandIcon && e.removePadding === t.removePadding && e.fullHeight === t.fullHeight && e.selected === t.selected
6378
- ), Yo = S.createContext({}), fc = () => $e(Yo);
6365
+ ), Lo = S.createContext({}), fc = () => $e(Lo);
6379
6366
  function qe({
6380
6367
  property: e,
6381
6368
  value: t,
@@ -6605,7 +6592,7 @@ const gc = S.memo(
6605
6592
  ), H = !0, ne = !1, ee = !1;
6606
6593
  else if (a.dataType === "reference")
6607
6594
  typeof a.path == "string" && (se = /* @__PURE__ */ n(
6608
- bn,
6595
+ yn,
6609
6596
  {
6610
6597
  name: t,
6611
6598
  internalValue: b,
@@ -6640,7 +6627,7 @@ const gc = S.memo(
6640
6627
  updateValue: te
6641
6628
  }
6642
6629
  ), ee = !0, H = !0, ne = !1) : R.of.dataType === "reference" && (typeof R.of.path == "string" && (se = /* @__PURE__ */ n(
6643
- bn,
6630
+ yn,
6644
6631
  {
6645
6632
  name: t,
6646
6633
  disabled: q,
@@ -6687,7 +6674,7 @@ const gc = S.memo(
6687
6674
  value: b,
6688
6675
  hideOverflow: ne,
6689
6676
  actions: j && /* @__PURE__ */ n(
6690
- Go,
6677
+ jo,
6691
6678
  {
6692
6679
  showError: G,
6693
6680
  disabled: q,
@@ -6769,7 +6756,7 @@ const Qi = function({
6769
6756
  de,
6770
6757
  {
6771
6758
  size: A ? "medium" : "small",
6772
- children: /* @__PURE__ */ n(Tn, {})
6759
+ children: /* @__PURE__ */ n(On, {})
6773
6760
  }
6774
6761
  ),
6775
6762
  children: k.map((C, B) => /* @__PURE__ */ v(
@@ -6884,25 +6871,24 @@ function bc({
6884
6871
  function yc(e) {
6885
6872
  return e.dataType === "boolean" ? "center" : e.dataType === "number" ? e.enumValues ? "left" : "right" : e.dataType === "date" ? "right" : "left";
6886
6873
  }
6887
- function Lo(e) {
6874
+ function Uo(e) {
6888
6875
  if (e.columnWidth)
6889
6876
  return e.columnWidth;
6890
6877
  if (e.dataType === "string")
6891
6878
  return e.url ? 280 : e.storage ? 160 : e.enumValues ? 200 : e.multiline || e.markdown ? 300 : (e.email, 200);
6892
6879
  if (e.dataType === "array") {
6893
6880
  const t = e;
6894
- return t.of ? Array.isArray(e.of) ? 300 : Lo(t.of) : 300;
6895
- } else
6896
- return e.dataType === "number" ? e.enumValues ? 200 : 140 : e.dataType === "map" ? 360 : e.dataType === "date" ? 200 : e.dataType === "reference" ? 220 : e.dataType === "boolean" ? 140 : 200;
6881
+ return t.of ? Array.isArray(e.of) ? 300 : Uo(t.of) : 300;
6882
+ } else return e.dataType === "number" ? e.enumValues ? 200 : 140 : e.dataType === "map" ? 360 : e.dataType === "date" ? 200 : e.dataType === "reference" ? 220 : e.dataType === "boolean" ? 140 : 200;
6897
6883
  }
6898
6884
  function Di(e) {
6899
6885
  return `subcollection:${e.id ?? e.path}`;
6900
6886
  }
6901
6887
  const Ri = "collectionGroupParent";
6902
- function Uo(e, t) {
6888
+ function $o(e, t) {
6903
6889
  return he(() => {
6904
6890
  if (e.propertiesOrder) {
6905
- const r = $o(e, e.propertiesOrder);
6891
+ const r = qo(e, e.propertiesOrder);
6906
6892
  return e.collectionGroup && r.push({
6907
6893
  key: Ri,
6908
6894
  disabled: !0
@@ -6911,7 +6897,7 @@ function Uo(e, t) {
6911
6897
  return wc(e, t);
6912
6898
  }, [e, t]);
6913
6899
  }
6914
- function $o(e, t) {
6900
+ function qo(e, t) {
6915
6901
  return t.flatMap((r) => {
6916
6902
  const i = e.properties[r];
6917
6903
  return i ? i.hideFromCollection ? [null] : i.disabled && typeof i.disabled == "object" && i.disabled.hidden ? [null] : i.dataType === "map" && i.spreadChildren && i.properties ? Ti(i, r) : [{
@@ -6938,7 +6924,7 @@ function wc(e, t) {
6938
6924
  const s = a.map((l) => Di(l));
6939
6925
  o.push(...s.filter((l) => !o.includes(l)));
6940
6926
  }
6941
- return e.collectionGroup && o.push(Ri), $o(e, o);
6927
+ return e.collectionGroup && o.push(Ri), qo(e, o);
6942
6928
  }
6943
6929
  function Ti(e, t, r) {
6944
6930
  return e.dataType === "map" && e.spreadChildren && e.properties ? Object.entries(e.properties).flatMap(
@@ -6969,10 +6955,10 @@ function vc({ properties: e, sortable: t, forceFilter: r, AdditionalHeaderWidget
6969
6955
  key: o,
6970
6956
  disabled: s
6971
6957
  }) => {
6972
- const l = uo(e, o);
6958
+ const l = mo(e, o);
6973
6959
  if (!l)
6974
6960
  throw Error("Internal error: no property found in path " + o);
6975
- const c = qo(l);
6961
+ const c = Wo(l);
6976
6962
  return {
6977
6963
  key: o,
6978
6964
  align: yc(l),
@@ -6980,7 +6966,7 @@ function vc({ properties: e, sortable: t, forceFilter: r, AdditionalHeaderWidget
6980
6966
  title: l.name ?? o,
6981
6967
  sortable: t,
6982
6968
  filter: !a && c,
6983
- width: Lo(l),
6969
+ width: Uo(l),
6984
6970
  resizable: !0,
6985
6971
  custom: {
6986
6972
  resolvedProperty: l,
@@ -6990,8 +6976,8 @@ function vc({ properties: e, sortable: t, forceFilter: r, AdditionalHeaderWidget
6990
6976
  };
6991
6977
  });
6992
6978
  }
6993
- function qo(e, t = !1) {
6994
- return t ? ["string", "number", "date", "reference"].includes(e.dataType) : e.dataType === "array" ? e.of ? qo(e.of, !0) : !1 : ["string", "number", "boolean", "date", "reference", "array"].includes(e.dataType);
6979
+ function Wo(e, t = !1) {
6980
+ return t ? ["string", "number", "date", "reference"].includes(e.dataType) : e.dataType === "array" ? e.of ? Wo(e.of, !0) : !1 : ["string", "number", "boolean", "date", "reference", "array"].includes(e.dataType);
6995
6981
  }
6996
6982
  function yr({ text: e, ...t }) {
6997
6983
  return /* @__PURE__ */ n(
@@ -7116,7 +7102,7 @@ const kc = S.memo(
7116
7102
  className: m || h ? "bg-white dark:bg-gray-950" : void 0,
7117
7103
  size: "small",
7118
7104
  onClick: w,
7119
- children: /* @__PURE__ */ n(za, { size: "small" })
7105
+ children: /* @__PURE__ */ n(Va, { size: "small" })
7120
7106
  }
7121
7107
  ),
7122
7108
  children: /* @__PURE__ */ n(
@@ -7164,8 +7150,7 @@ function _c({
7164
7150
  const l = e.key, [c, d] = P(r);
7165
7151
  if (M(() => {
7166
7152
  d(r);
7167
- }, [r]), !e.filter)
7168
- return null;
7153
+ }, [r]), !e.filter) return null;
7169
7154
  const u = () => {
7170
7155
  t(c, !1);
7171
7156
  }, f = (h) => {
@@ -7235,7 +7220,7 @@ const xc = ({
7235
7220
  createFilterField: c,
7236
7221
  AddColumnComponent: d
7237
7222
  }) => {
7238
- const u = e.map(() => Ea()), [f, m] = P(-1), p = x((k, E, C) => {
7223
+ const u = e.map(() => Ca()), [f, m] = P(-1), p = x((k, E, C) => {
7239
7224
  const B = e[k], Q = 100, D = 800, F = E > D ? D : E < Q ? Q : E, z = {
7240
7225
  width: F,
7241
7226
  key: B.key,
@@ -7355,9 +7340,9 @@ const xc = ({
7355
7340
  );
7356
7341
  },
7357
7342
  (e, t) => J(e.rowData, t.rowData) && J(e.column, t.column) && J(e.cellData, t.cellData) && J(e.rowIndex, t.rowIndex) && J(e.cellRenderer, t.cellRenderer) && J(e.columnIndex, t.columnIndex)
7358
- ), Pr = Ca({});
7343
+ ), Pr = Ba({});
7359
7344
  Pr.displayName = "VirtualListContext";
7360
- const Bc = Ba(({
7345
+ const Bc = Sa(({
7361
7346
  children: e,
7362
7347
  ...t
7363
7348
  }, r) => /* @__PURE__ */ n(Pr.Consumer, { children: (i) => {
@@ -7428,7 +7413,7 @@ const Bc = Ba(({
7428
7413
  M(() => {
7429
7414
  F(o);
7430
7415
  }, [o]);
7431
- const [oe, L] = $n(), X = x((j) => {
7416
+ const [oe, L] = qn(), X = x((j) => {
7432
7417
  F(D.map((G) => G.key === j.column.key ? j.column : G));
7433
7418
  }, [D]), q = x((j) => {
7434
7419
  F(D.map((G) => G.key === j.column.key ? j.column : G)), l && l(j);
@@ -7462,7 +7447,7 @@ const Bc = Ba(({
7462
7447
  {
7463
7448
  className: "flex flex-col overflow-auto items-center justify-center p-2 gap-2 h-full",
7464
7449
  children: [
7465
- /* @__PURE__ */ n(Va, {}),
7450
+ /* @__PURE__ */ n(Ga, {}),
7466
7451
  p
7467
7452
  ]
7468
7453
  }
@@ -7596,7 +7581,7 @@ function Ic({
7596
7581
  );
7597
7582
  } }), []);
7598
7583
  return /* @__PURE__ */ n(
7599
- Ss,
7584
+ Is,
7600
7585
  {
7601
7586
  outerRef: e,
7602
7587
  innerElementType: Bc,
@@ -7613,7 +7598,7 @@ function Ic({
7613
7598
  const Nc = ({ text: e }) => {
7614
7599
  const t = /https?:\/\/[^\s]+/g, r = e.replace(t, (i) => `<a href="${i}" class="underline" target="_blank">Link</a><br/>`);
7615
7600
  return /* @__PURE__ */ n("div", { className: "break-all", dangerouslySetInnerHTML: { __html: r } });
7616
- }, yn = {
7601
+ }, wn = {
7617
7602
  "==": "==",
7618
7603
  "!=": "!=",
7619
7604
  ">": ">",
@@ -7687,8 +7672,8 @@ function Fc({
7687
7672
  onValueChange: (D) => {
7688
7673
  y(D, h);
7689
7674
  },
7690
- renderValue: (D) => yn[D],
7691
- children: d.map((D) => /* @__PURE__ */ n(ot, { value: D, children: yn[D] }, D))
7675
+ renderValue: (D) => wn[D],
7676
+ children: d.map((D) => /* @__PURE__ */ n(ot, { value: D, children: wn[D] }, D))
7692
7677
  }
7693
7678
  ) }),
7694
7679
  /* @__PURE__ */ v("div", { className: "flex-grow ml-2 h-full gap-2 flex flex-col", children: [
@@ -7728,7 +7713,7 @@ function Fc({
7728
7713
  ] })
7729
7714
  ] });
7730
7715
  }
7731
- const wn = {
7716
+ const vn = {
7732
7717
  "==": "==",
7733
7718
  "!=": "!=",
7734
7719
  ">": ">",
@@ -7771,8 +7756,8 @@ function Pc({
7771
7756
  onValueChange: (g) => {
7772
7757
  h(g, m);
7773
7758
  },
7774
- renderValue: (g) => wn[g],
7775
- children: l.map((g) => /* @__PURE__ */ n(ot, { value: g, children: wn[g] }, g))
7759
+ renderValue: (g) => vn[g],
7760
+ children: l.map((g) => /* @__PURE__ */ n(ot, { value: g, children: vn[g] }, g))
7776
7761
  }
7777
7762
  ) }),
7778
7763
  /* @__PURE__ */ v("div", { className: "flex-grow ml-2 flex flex-col gap-2", children: [
@@ -7883,7 +7868,7 @@ function Qc({
7883
7868
  }
7884
7869
  ) });
7885
7870
  }
7886
- const vn = {
7871
+ const kn = {
7887
7872
  "==": "==",
7888
7873
  "!=": "!=",
7889
7874
  ">": ">",
@@ -7894,7 +7879,7 @@ const vn = {
7894
7879
  in: "in",
7895
7880
  "array-contains": "Contains",
7896
7881
  "array-contains-any": "Any"
7897
- }, kn = ["array-contains-any", "in"];
7882
+ }, _n = ["array-contains-any", "in"];
7898
7883
  function Dc({
7899
7884
  name: e,
7900
7885
  isArray: t,
@@ -7906,7 +7891,7 @@ function Dc({
7906
7891
  const { locale: s } = fe(), l = t ? ["array-contains"] : ["==", "!=", ">", "<", ">=", "<="], [c, d] = i || [l[0], void 0], [u, f] = P(c), [m, p] = P(d);
7907
7892
  function h(A, g) {
7908
7893
  let y = g;
7909
- const w = kn.includes(u), b = kn.includes(A);
7894
+ const w = _n.includes(u), b = _n.includes(A);
7910
7895
  w !== b && (y = b ? g ? [g] : [] : ""), f(A), p(y === null ? void 0 : y);
7911
7896
  const _ = y !== null && Array.isArray(y) ? y.length > 0 : y !== void 0;
7912
7897
  a(
@@ -7921,8 +7906,8 @@ function Dc({
7921
7906
  onValueChange: (A) => {
7922
7907
  h(A, m);
7923
7908
  },
7924
- renderValue: (A) => vn[A],
7925
- children: l.map((A) => /* @__PURE__ */ n(ot, { value: A, children: vn[A] }, A))
7909
+ renderValue: (A) => kn[A],
7910
+ children: l.map((A) => /* @__PURE__ */ n(ot, { value: A, children: kn[A] }, A))
7926
7911
  }
7927
7912
  ) }),
7928
7913
  /* @__PURE__ */ v("div", { className: "flex-grow ml-2 flex flex-col gap-2", children: [
@@ -8006,7 +7991,7 @@ const Rc = S.memo(
8006
7991
  if (!l)
8007
7992
  return i && i(ee);
8008
7993
  }, [i, l]);
8009
- On(
7994
+ Mn(
8010
7995
  L,
8011
7996
  () => {
8012
7997
  X && ue();
@@ -8028,7 +8013,7 @@ const Rc = S.memo(
8028
8013
  p?.({ ...ee, ...F });
8029
8014
  }, [F]);
8030
8015
  return /* @__PURE__ */ n(
8031
- Yo.Provider,
8016
+ Lo.Provider,
8032
8017
  {
8033
8018
  value: {
8034
8019
  setPopupCell: C,
@@ -8147,7 +8132,7 @@ function Tc({
8147
8132
  }
8148
8133
  return /* @__PURE__ */ n("div", { children: `Currently the filter field ${s.dataType} is not supported` });
8149
8134
  }
8150
- const Wo = function({
8135
+ const Jo = function({
8151
8136
  className: t,
8152
8137
  style: r,
8153
8138
  forceFilter: i,
@@ -8377,7 +8362,7 @@ function Mc(e, t, r = 5e3) {
8377
8362
  }, [e, r, t, d]), d ? e : i;
8378
8363
  }
8379
8364
  const zc = 50;
8380
- function Jo({
8365
+ function Ho({
8381
8366
  fullPath: e,
8382
8367
  collection: t,
8383
8368
  entitiesDisplayedFirst: r,
@@ -8486,7 +8471,7 @@ function Jo({
8486
8471
  setPopupCell: d
8487
8472
  };
8488
8473
  }
8489
- function Ho(e) {
8474
+ function Zo(e) {
8490
8475
  const [t, r] = P([]), i = x((o) => {
8491
8476
  let s;
8492
8477
  t.map((l) => l.id).includes(o.id) ? (e?.(o, !1), s = t.filter((l) => l.id !== o.id)) : (e?.(o, !0), s = [...t, o]), r(s);
@@ -8498,7 +8483,7 @@ function Ho(e) {
8498
8483
  toggleEntitySelection: i
8499
8484
  };
8500
8485
  }
8501
- function Zo({
8486
+ function Xo({
8502
8487
  collection: e,
8503
8488
  fullPath: t,
8504
8489
  parentCollectionIds: r
@@ -8535,7 +8520,7 @@ function Zo({
8535
8520
  textSearchEnabled: f
8536
8521
  };
8537
8522
  }
8538
- function Xo({
8523
+ function Ko({
8539
8524
  entityOrEntitiesToDelete: e,
8540
8525
  collection: t,
8541
8526
  onClose: r,
@@ -8610,7 +8595,7 @@ function Xo({
8610
8595
  else {
8611
8596
  const z = p;
8612
8597
  D = z ? /* @__PURE__ */ n(
8613
- Oo,
8598
+ Mo,
8614
8599
  {
8615
8600
  entity: z,
8616
8601
  collection: t,
@@ -8687,8 +8672,8 @@ const Vc = {
8687
8672
  onClose: () => o?.(e)
8688
8673
  }), Promise.resolve(void 0);
8689
8674
  }
8690
- }, Ko = {
8691
- icon: /* @__PURE__ */ n(Ga, {}),
8675
+ }, ea = {
8676
+ icon: /* @__PURE__ */ n(ja, {}),
8692
8677
  name: "Copy",
8693
8678
  onClick({
8694
8679
  entity: e,
@@ -8710,7 +8695,7 @@ const Vc = {
8710
8695
  }), Promise.resolve(void 0);
8711
8696
  }
8712
8697
  }, Cm = {
8713
- icon: /* @__PURE__ */ n(ja, {}),
8698
+ icon: /* @__PURE__ */ n(Ya, {}),
8714
8699
  name: "Archive",
8715
8700
  onClick({
8716
8701
  entity: e,
@@ -8731,7 +8716,7 @@ const Vc = {
8731
8716
  }) {
8732
8717
  return window.open(`https://example.com/${e.id}`, "_blank"), Promise.resolve(void 0);
8733
8718
  }
8734
- }, ea = {
8719
+ }, ta = {
8735
8720
  icon: /* @__PURE__ */ n(ii, {}),
8736
8721
  name: "Delete",
8737
8722
  onClick({
@@ -8749,7 +8734,7 @@ const Vc = {
8749
8734
  if (!r || !t)
8750
8735
  throw new Error("deleteEntityAction: Collection is undefined");
8751
8736
  return /* @__PURE__ */ n(
8752
- Xo,
8737
+ Ko,
8753
8738
  {
8754
8739
  entityOrEntitiesToDelete: e,
8755
8740
  path: t,
@@ -8796,7 +8781,7 @@ function Gc({
8796
8781
  }
8797
8782
  b.setSelectedEntities(q), t && t(q);
8798
8783
  }
8799
- }, b = Ho(w);
8784
+ }, b = Zo(w);
8800
8785
  M(() => {
8801
8786
  let X = !1;
8802
8787
  const q = o?.map((V) => V?.toString()).filter(Boolean);
@@ -8872,7 +8857,7 @@ function Gc({
8872
8857
  path: h,
8873
8858
  values: {},
8874
8859
  fields: p.propertyConfigs
8875
- }), [i, p.propertyConfigs, h]), D = Uo(Q, !1), F = Jo({
8860
+ }), [i, p.propertyConfigs, h]), D = $o(Q, !1), F = Ho({
8876
8861
  fullPath: h,
8877
8862
  collection: i,
8878
8863
  entitiesDisplayedFirst: g,
@@ -8884,14 +8869,14 @@ function Gc({
8884
8869
  textSearchEnabled: L
8885
8870
  } = (
8886
8871
  // eslint-disable-next-line react-hooks/rules-of-hooks
8887
- Zo({
8872
+ Xo({
8888
8873
  collection: i,
8889
8874
  fullPath: h
8890
8875
  })
8891
8876
  );
8892
8877
  return /* @__PURE__ */ v("div", { className: "flex flex-col h-full", children: [
8893
8878
  /* @__PURE__ */ n("div", { className: "flex-grow", children: g && /* @__PURE__ */ n(
8894
- Wo,
8879
+ Jo,
8895
8880
  {
8896
8881
  textSearchLoading: z,
8897
8882
  onTextSearchClick: $ ? void 0 : oe,
@@ -8984,7 +8969,7 @@ function jc({
8984
8969
  function Jt(e) {
8985
8970
  return Array.isArray(e) ? e : e ? [e] : [];
8986
8971
  }
8987
- function _n({
8972
+ function xn({
8988
8973
  children: e,
8989
8974
  group: t
8990
8975
  }) {
@@ -9025,7 +9010,7 @@ function Yc({
9025
9010
  onClick: a
9026
9011
  }) {
9027
9012
  return /* @__PURE__ */ n(
9028
- Ya,
9013
+ La,
9029
9014
  {
9030
9015
  className: U("h-full p-4 cursor-pointer min-h-[230px]"),
9031
9016
  onClick: () => {
@@ -9077,7 +9062,7 @@ function Yc({
9077
9062
  ]
9078
9063
  }
9079
9064
  ),
9080
- /* @__PURE__ */ n("div", { style: { alignSelf: "flex-end" }, children: /* @__PURE__ */ n("div", { className: "p-4", children: /* @__PURE__ */ n(Mn, { className: "text-primary" }) }) })
9065
+ /* @__PURE__ */ n("div", { style: { alignSelf: "flex-end" }, children: /* @__PURE__ */ n("div", { className: "p-4", children: /* @__PURE__ */ n(zn, { className: "text-primary" }) }) })
9081
9066
  ] })
9082
9067
  }
9083
9068
  );
@@ -9092,8 +9077,8 @@ function Lc({
9092
9077
  {
9093
9078
  tabIndex: 0,
9094
9079
  className: U(
9095
- La,
9096
9080
  Ua,
9081
+ $a,
9097
9082
  ni,
9098
9083
  "cursor-pointer flex flex-row items-center px-4 py-2 text-inherit dark:text-inherit visited:text-inherit visited:dark:text-inherit hover:text-inherit hover:dark:text-inherit "
9099
9084
  ),
@@ -9112,7 +9097,7 @@ function Lc({
9112
9097
  }
9113
9098
  )
9114
9099
  ] }),
9115
- /* @__PURE__ */ n("div", { className: "p-4", children: /* @__PURE__ */ n(Mn, { color: "primary" }) })
9100
+ /* @__PURE__ */ n("div", { className: "p-4", children: /* @__PURE__ */ n(zn, { color: "primary" }) })
9116
9101
  ]
9117
9102
  }
9118
9103
  ) });
@@ -9139,13 +9124,13 @@ function Uc({
9139
9124
  );
9140
9125
  },
9141
9126
  children: p ? /* @__PURE__ */ n(
9142
- zn,
9127
+ Vn,
9143
9128
  {
9144
9129
  size: 18,
9145
9130
  className: "text-secondary"
9146
9131
  }
9147
9132
  ) : /* @__PURE__ */ n(
9148
- Vn,
9133
+ Gn,
9149
9134
  {
9150
9135
  size: 18,
9151
9136
  className: "text-gray-400 dark:text-gray-500"
@@ -9211,14 +9196,14 @@ function $c({ entry: e }) {
9211
9196
  {
9212
9197
  onClick: () => t(e.url),
9213
9198
  icon: i ? /* @__PURE__ */ n(
9214
- zn,
9199
+ Vn,
9215
9200
  {
9216
9201
  onClick: a,
9217
9202
  size: 18,
9218
9203
  className: "text-secondary"
9219
9204
  }
9220
9205
  ) : /* @__PURE__ */ n(
9221
- Vn,
9206
+ Gn,
9222
9207
  {
9223
9208
  onClick: a,
9224
9209
  size: 18,
@@ -9235,7 +9220,7 @@ function qc({ hidden: e }) {
9235
9220
  if (!r)
9236
9221
  return null;
9237
9222
  const i = (r?.favouritePaths ?? []).map((a) => t.topLevelNavigation?.navigationEntries.find((o) => o.path === a)).filter(Boolean);
9238
- return /* @__PURE__ */ n(Gn, { in: i.length > 0, children: /* @__PURE__ */ n("div", { className: "flex flex-row flex-wrap gap-2 pb-2 min-h-[32px]", children: i.map((a) => /* @__PURE__ */ n(
9223
+ return /* @__PURE__ */ n(jn, { in: i.length > 0, children: /* @__PURE__ */ n("div", { className: "flex flex-row flex-wrap gap-2 pb-2 min-h-[32px]", children: i.map((a) => /* @__PURE__ */ n(
9239
9224
  $c,
9240
9225
  {
9241
9226
  entry: a
@@ -9267,7 +9252,7 @@ function Wc() {
9267
9252
  direction: a
9268
9253
  };
9269
9254
  }
9270
- const Bt = new Zn.Search("url");
9255
+ const Bt = new Xn.Search("url");
9271
9256
  Bt.addIndex("name");
9272
9257
  Bt.addIndex("description");
9273
9258
  Bt.addIndex("group");
@@ -9311,7 +9296,7 @@ function Jc({
9311
9296
  w = /* @__PURE__ */ n(O, { children: a.plugins.filter((_) => _.homePage?.includeSection).map((_, k) => {
9312
9297
  const E = _.homePage.includeSection(b);
9313
9298
  return /* @__PURE__ */ n(
9314
- _n,
9299
+ xn,
9315
9300
  {
9316
9301
  group: E.title,
9317
9302
  children: E.children
@@ -9326,7 +9311,7 @@ function Jc({
9326
9311
  id: "home_page",
9327
9312
  ref: s,
9328
9313
  className: "py-2 overflow-auto h-full w-full",
9329
- children: /* @__PURE__ */ v($a, { maxWidth: "6xl", children: [
9314
+ children: /* @__PURE__ */ v(qa, { maxWidth: "6xl", children: [
9330
9315
  /* @__PURE__ */ v(
9331
9316
  "div",
9332
9317
  {
@@ -9360,7 +9345,7 @@ function Jc({
9360
9345
  });
9361
9346
  const C = p.filter((B) => B.group === b || !B.group && b === void 0);
9362
9347
  return C.length === 0 && k.length === 0 ? null : /* @__PURE__ */ n(
9363
- _n,
9348
+ xn,
9364
9349
  {
9365
9350
  group: b,
9366
9351
  children: /* @__PURE__ */ v("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4", children: [
@@ -9584,8 +9569,7 @@ function td({
9584
9569
  entityId: y,
9585
9570
  fields: m.propertyConfigs
9586
9571
  }) : void 0, C = Xc(), B = S.useRef(null), Q = S.useRef(null), D = S.useRef(!1), F = x(() => {
9587
- if (!s)
9588
- throw Error("getInitialLocation error");
9572
+ if (!s) throw Error("getInitialLocation error");
9589
9573
  return {
9590
9574
  x: s.left < C.width - s.right ? s.x + s.width / 2 : s.x - s.width / 2,
9591
9575
  y: s.top < C.height - s.bottom ? s.y + s.height / 2 : s.y - s.height / 2
@@ -9603,8 +9587,7 @@ function td({
9603
9587
  };
9604
9588
  }, [C]), $ = x((G) => {
9605
9589
  const I = B.current?.getBoundingClientRect();
9606
- if (!s || !I)
9607
- return;
9590
+ if (!s || !I) return;
9608
9591
  const R = G ?? z(F());
9609
9592
  (!A || R.x !== A.x || R.y !== A.y) && g(R);
9610
9593
  }, [s, F, z, A]);
@@ -9633,7 +9616,7 @@ function td({
9633
9616
  );
9634
9617
  const oe = he(() => {
9635
9618
  if (!(!E || !y))
9636
- return jo(
9619
+ return Yo(
9637
9620
  y,
9638
9621
  i && E.properties[i] ? { [i]: E.properties[i] } : {},
9639
9622
  r
@@ -9648,7 +9631,7 @@ function td({
9648
9631
  }) : Promise.resolve());
9649
9632
  if (!w)
9650
9633
  return /* @__PURE__ */ n(O, {});
9651
- const q = Sn({
9634
+ const q = In({
9652
9635
  initialValues: w?.values ?? {},
9653
9636
  validation: (G) => oe?.validate(G, { abortEarly: !1 }).then(() => ({})).catch((I) => {
9654
9637
  const R = {};
@@ -9809,11 +9792,11 @@ function td({
9809
9792
  `draggable_${i}_${y}_${l}`
9810
9793
  );
9811
9794
  return /* @__PURE__ */ n(
9812
- Ns.Root,
9795
+ Fs.Root,
9813
9796
  {
9814
9797
  asChild: !0,
9815
9798
  container: u,
9816
- children: /* @__PURE__ */ n(In, { value: q, children: j })
9799
+ children: /* @__PURE__ */ n(Nn, { value: q, children: j })
9817
9800
  }
9818
9801
  );
9819
9802
  }
@@ -9837,7 +9820,7 @@ function rd({
9837
9820
  },
9838
9821
  size: "small",
9839
9822
  children: [
9840
- /* @__PURE__ */ n(qa, {}),
9823
+ /* @__PURE__ */ n(Wa, {}),
9841
9824
  a
9842
9825
  ]
9843
9826
  }
@@ -9877,7 +9860,7 @@ function id({
9877
9860
  m.collectionView?.CollectionActionsStart && f.push(...Jt(m.collectionView?.CollectionActionsStart).map((h, A) => /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(h, { ...u, ...m.collectionView?.collectionActionsStartProps }) }, `plugin_actions_${p}_${A}`)));
9878
9861
  }), /* @__PURE__ */ n(O, { children: f });
9879
9862
  }
9880
- const nd = "collectionGroupParent", ta = S.memo(
9863
+ const nd = "collectionGroupParent", ra = S.memo(
9881
9864
  function({
9882
9865
  fullPath: t,
9883
9866
  parentCollectionIds: r,
@@ -9899,8 +9882,8 @@ const nd = "collectionGroupParent", ta = S.memo(
9899
9882
  }, 2400);
9900
9883
  }, [b]), z = x((W) => {
9901
9884
  const le = y.current;
9902
- return mo(le, f, l, W ?? null) ? le.inlineEditing === void 0 || le.inlineEditing : !1;
9903
- }, [f, l]), $ = g.selectionEnabled === void 0 || g.selectionEnabled, oe = !z(), [L, X] = P(!1), q = Ho(), V = g.selectionController ?? q, {
9885
+ return po(le, f, l, W ?? null) ? le.inlineEditing === void 0 || le.inlineEditing : !1;
9886
+ }, [f, l]), $ = g.selectionEnabled === void 0 || g.selectionEnabled, oe = !z(), [L, X] = P(!1), q = Zo(), V = g.selectionController ?? q, {
9904
9887
  selectedEntities: ae,
9905
9888
  isEntitySelected: te,
9906
9889
  setSelectedEntities: Ae
@@ -9908,7 +9891,7 @@ const nd = "collectionGroupParent", ta = S.memo(
9908
9891
  M(() => {
9909
9892
  E(void 0);
9910
9893
  }, [ae]);
9911
- const ue = Jo({
9894
+ const ue = Ho({
9912
9895
  fullPath: l,
9913
9896
  collection: g,
9914
9897
  lastDeleteTimestamp: C
@@ -9962,9 +9945,8 @@ const nd = "collectionGroupParent", ta = S.memo(
9962
9945
  key: le
9963
9946
  }) => {
9964
9947
  const be = y.current;
9965
- if (!wt(be.properties, le))
9966
- return;
9967
- const ye = ra(le, W);
9948
+ if (!wt(be.properties, le)) return;
9949
+ const ye = ia(le, W);
9968
9950
  R(l, ye);
9969
9951
  }, [R, l]), Ie = x((W) => {
9970
9952
  m && R(l, { defaultSize: W });
@@ -9991,7 +9973,7 @@ const nd = "collectionGroupParent", ta = S.memo(
9991
9973
  collection: g,
9992
9974
  status: "existing"
9993
9975
  };
9994
- return Co({
9976
+ return Bo({
9995
9977
  ...st,
9996
9978
  collection: g,
9997
9979
  dataSource: c,
@@ -10020,7 +10002,7 @@ const nd = "collectionGroupParent", ta = S.memo(
10020
10002
  entityId: le.id,
10021
10003
  fields: h.propertyConfigs
10022
10004
  });
10023
- }, [g.properties, h.propertyConfigs, Te.properties]), We = Uo(Te, !0), Ke = he(() => {
10005
+ }, [g.properties, h.propertyConfigs, Te.properties]), We = $o(Te, !0), Ke = he(() => {
10024
10006
  const W = g.subcollections?.map((be) => ({
10025
10007
  key: Di(be),
10026
10008
  name: be.name,
@@ -10073,7 +10055,7 @@ const nd = "collectionGroupParent", ta = S.memo(
10073
10055
  customEntityActions: le
10074
10056
  }) => {
10075
10057
  const be = W ? Fi(g, f, l, W) : !0, ye = [Vc];
10076
- return Xe && ye.push(Ko), be && ye.push(ea), le && ye.push(...le), ye;
10058
+ return Xe && ye.push(ea), be && ye.push(ta), le && ye.push(...le), ye;
10077
10059
  }, ir = () => {
10078
10060
  const W = Be({}), le = W.filter((we) => we.collapsed !== !1), ye = W.filter((we) => we.collapsed === !1).length * (re ? 40 : 30);
10079
10061
  return (re ? 80 + ye : 70 + ye) + (le.length > 0 ? re ? 40 : 30 : 0);
@@ -10172,7 +10154,7 @@ const nd = "collectionGroupParent", ta = S.memo(
10172
10154
  textSearchInitialised: Tr,
10173
10155
  onTextSearchClick: bt,
10174
10156
  textSearchEnabled: Or
10175
- } = Zo({
10157
+ } = Xo({
10176
10158
  collection: g,
10177
10159
  fullPath: Ve,
10178
10160
  parentCollectionIds: r
@@ -10184,7 +10166,7 @@ const nd = "collectionGroupParent", ta = S.memo(
10184
10166
  ref: A,
10185
10167
  children: [
10186
10168
  /* @__PURE__ */ n(
10187
- Wo,
10169
+ Jo,
10188
10170
  {
10189
10171
  additionalFields: Ke,
10190
10172
  tableController: ue,
@@ -10281,7 +10263,7 @@ const nd = "collectionGroupParent", ta = S.memo(
10281
10263
  `popup_form_${ee?.propertyKey}_${ee?.entity?.id}`
10282
10264
  ),
10283
10265
  k && /* @__PURE__ */ n(
10284
- Xo,
10266
+ Ko,
10285
10267
  {
10286
10268
  entityOrEntitiesToDelete: k,
10287
10269
  path: l,
@@ -10327,10 +10309,10 @@ function od({
10327
10309
  }
10328
10310
  );
10329
10311
  }
10330
- function ra(e, t) {
10312
+ function ia(e, t) {
10331
10313
  if (e.includes(".")) {
10332
10314
  const [r, ...i] = e.split(".");
10333
- return { properties: { [r]: ra(i.join("."), t) } };
10315
+ return { properties: { [r]: ia(i.join("."), t) } };
10334
10316
  }
10335
10317
  return { properties: { [e]: { columnWidth: t } } };
10336
10318
  }
@@ -10344,7 +10326,7 @@ function ad({
10344
10326
  {
10345
10327
  open: r,
10346
10328
  onOpenChange: i,
10347
- trigger: /* @__PURE__ */ n(de, { size: "small", children: /* @__PURE__ */ n(Wa, { size: "small" }) }),
10329
+ trigger: /* @__PURE__ */ n(de, { size: "small", children: /* @__PURE__ */ n(Ja, { size: "small" }) }),
10348
10330
  children: /* @__PURE__ */ n(
10349
10331
  "form",
10350
10332
  {
@@ -10458,7 +10440,7 @@ function Im({
10458
10440
  }
10459
10441
  ),
10460
10442
  /* @__PURE__ */ n(
10461
- Ja,
10443
+ Ha,
10462
10444
  {
10463
10445
  color: "primary",
10464
10446
  type: "submit",
@@ -10472,7 +10454,7 @@ function Im({
10472
10454
  }
10473
10455
  );
10474
10456
  }
10475
- function ia({
10457
+ function na({
10476
10458
  width: e,
10477
10459
  height: t,
10478
10460
  className: r,
@@ -10615,7 +10597,7 @@ function ia({
10615
10597
  }
10616
10598
  );
10617
10599
  }
10618
- const na = S.createContext({
10600
+ const oa = S.createContext({
10619
10601
  hasDrawer: !1,
10620
10602
  drawerHovered: !1,
10621
10603
  drawerOpen: !1,
@@ -10628,7 +10610,7 @@ const na = S.createContext({
10628
10610
  autoOpenDrawer: !1
10629
10611
  });
10630
10612
  function Oi() {
10631
- return S.useContext(na);
10613
+ return S.useContext(oa);
10632
10614
  }
10633
10615
  const ld = function({
10634
10616
  title: t,
@@ -10693,7 +10675,7 @@ const ld = function({
10693
10675
  alt: "Logo",
10694
10676
  className: U("w-[32px] h-[32px] object-contain")
10695
10677
  }
10696
- ) : /* @__PURE__ */ n(ia, { width: "32px", height: "32px" })),
10678
+ ) : /* @__PURE__ */ n(na, { width: "32px", height: "32px" })),
10697
10679
  typeof t == "string" ? /* @__PURE__ */ n(
10698
10680
  Y,
10699
10681
  {
@@ -10716,7 +10698,7 @@ const ld = function({
10716
10698
  "aria-label": "Open drawer",
10717
10699
  onClick: A,
10718
10700
  size: "large",
10719
- children: h === "dark" ? /* @__PURE__ */ n(Ha, {}) : /* @__PURE__ */ n(Za, {})
10701
+ children: h === "dark" ? /* @__PURE__ */ n(Za, {}) : /* @__PURE__ */ n(Xa, {})
10720
10702
  }
10721
10703
  ),
10722
10704
  /* @__PURE__ */ v(St, { trigger: w, children: [
@@ -10726,7 +10708,7 @@ const ld = function({
10726
10708
  ] }),
10727
10709
  a,
10728
10710
  !a && /* @__PURE__ */ v(Pe, { onClick: p.signOut, children: [
10729
- /* @__PURE__ */ n(Xa, {}),
10711
+ /* @__PURE__ */ n(Ka, {}),
10730
10712
  "Log Out"
10731
10713
  ] })
10732
10714
  ] })
@@ -10734,9 +10716,9 @@ const ld = function({
10734
10716
  }
10735
10717
  );
10736
10718
  }, cd = (e) => e && Array.isArray(e) && e.length > 0 ? e.map((t, r) => t ? {
10737
- [io(t) + r]: ur()
10719
+ [no(t) + r]: ur()
10738
10720
  } : {}).reduce((t, r) => ({ ...t, ...r }), {}) : {};
10739
- function oa({
10721
+ function aa({
10740
10722
  droppableId: e,
10741
10723
  addLabel: t,
10742
10724
  value: r,
@@ -10754,7 +10736,7 @@ function oa({
10754
10736
  M(() => {
10755
10737
  if (u && r && r.length !== m.length) {
10756
10738
  const w = r.map((b, _) => {
10757
- const k = io(b) + _;
10739
+ const k = no(b) + _;
10758
10740
  if (k in f.current)
10759
10741
  return f.current[k];
10760
10742
  {
@@ -10766,8 +10748,7 @@ function oa({
10766
10748
  }
10767
10749
  }, [u, m.length, r]);
10768
10750
  const h = (w) => {
10769
- if (w.preventDefault(), i)
10770
- return;
10751
+ if (w.preventDefault(), i) return;
10771
10752
  const b = ur(), _ = [...m, b];
10772
10753
  s && s(b), p(_), d([...r ?? [], c]);
10773
10754
  }, A = (w) => {
@@ -10781,19 +10762,19 @@ function oa({
10781
10762
  ];
10782
10763
  s && s(b), p(k), d([...r.slice(0, w + 1), _, ...r.slice(w + 1)]);
10783
10764
  };
10784
- return /* @__PURE__ */ n(Wn, { onDragEnd: (w) => {
10765
+ return /* @__PURE__ */ n(Jn, { onDragEnd: (w) => {
10785
10766
  if (!w.destination)
10786
10767
  return;
10787
10768
  const b = w.source.index, _ = w.destination.index, k = [...m], E = k[b];
10788
10769
  k[b] = k[_], k[_] = E, p(k), d(ud(r, b, _));
10789
10770
  }, children: /* @__PURE__ */ n(
10790
- Jn,
10771
+ Hn,
10791
10772
  {
10792
10773
  droppableId: e,
10793
10774
  renderClone: (w, b, _) => {
10794
10775
  const k = _.source.index, E = m[k];
10795
10776
  return /* @__PURE__ */ n(
10796
- xn,
10777
+ En,
10797
10778
  {
10798
10779
  provided: w,
10799
10780
  internalId: E,
@@ -10814,13 +10795,13 @@ function oa({
10814
10795
  ref: w.innerRef,
10815
10796
  children: [
10816
10797
  u && m.map((_, k) => /* @__PURE__ */ n(
10817
- Hn,
10798
+ Zn,
10818
10799
  {
10819
10800
  draggableId: `array_field_${_}`,
10820
10801
  isDragDisabled: i,
10821
10802
  index: k,
10822
10803
  children: (E, C) => /* @__PURE__ */ n(
10823
- xn,
10804
+ En,
10824
10805
  {
10825
10806
  provided: E,
10826
10807
  internalId: _,
@@ -10855,7 +10836,7 @@ function oa({
10855
10836
  }
10856
10837
  ) });
10857
10838
  }
10858
- function xn({
10839
+ function En({
10859
10840
  provided: e,
10860
10841
  index: t,
10861
10842
  internalId: r,
@@ -10909,7 +10890,7 @@ function dd({
10909
10890
  copy: o
10910
10891
  }) {
10911
10892
  const [s, l] = P(!1), c = S.useRef(null);
10912
- return On(c, () => l(!1)), /* @__PURE__ */ n(
10893
+ return Mn(c, () => l(!1)), /* @__PURE__ */ n(
10913
10894
  "div",
10914
10895
  {
10915
10896
  className: `pl-2 pt-1 pb-4 flex ${e === "row" ? "flex-row-reverse" : "flex-col"} items-center`,
@@ -10933,7 +10914,7 @@ function dd({
10933
10914
  l(!1);
10934
10915
  },
10935
10916
  className: `cursor-${t ? "inherit" : "grab"}`,
10936
- children: /* @__PURE__ */ n(Ka, {})
10917
+ children: /* @__PURE__ */ n(es, {})
10937
10918
  }
10938
10919
  ),
10939
10920
  /* @__PURE__ */ v(
@@ -11081,7 +11062,7 @@ function Fm({
11081
11062
  onIconSelected: t
11082
11063
  }) {
11083
11064
  const [r, i] = S.useState(null), [a, o] = S.useState(""), s = S.useMemo(
11084
- () => es((c) => {
11065
+ () => ts((c) => {
11085
11066
  if (!c || c === "")
11086
11067
  i(null);
11087
11068
  else {
@@ -11134,7 +11115,7 @@ function Mi({
11134
11115
  setFieldValue: d
11135
11116
  }) {
11136
11117
  return /* @__PURE__ */ n(
11137
- oa,
11118
+ aa,
11138
11119
  {
11139
11120
  droppableId: e,
11140
11121
  addLabel: t,
@@ -11190,7 +11171,7 @@ function Me({
11190
11171
  size: "small",
11191
11172
  className: "self-start",
11192
11173
  children: /* @__PURE__ */ n(
11193
- ts,
11174
+ rs,
11194
11175
  {
11195
11176
  color: "disabled",
11196
11177
  size: "small"
@@ -11226,7 +11207,7 @@ function ze({
11226
11207
  }
11227
11208
  );
11228
11209
  }
11229
- function En({
11210
+ function Cn({
11230
11211
  propertyKey: e,
11231
11212
  value: t,
11232
11213
  setValue: r,
@@ -11312,7 +11293,7 @@ function En({
11312
11293
  )
11313
11294
  ] });
11314
11295
  }
11315
- function Cn({
11296
+ function Bn({
11316
11297
  propertyKey: e,
11317
11298
  value: t,
11318
11299
  setValue: r,
@@ -11358,7 +11339,7 @@ function Cn({
11358
11339
  onClick: (g) => {
11359
11340
  g.preventDefault(), g.stopPropagation(), r(t.filter((y) => y !== p));
11360
11341
  },
11361
- children: /* @__PURE__ */ n(jn, { size: "smallest" })
11342
+ children: /* @__PURE__ */ n(Yn, { size: "smallest" })
11362
11343
  }
11363
11344
  )
11364
11345
  ]
@@ -11368,7 +11349,7 @@ function Cn({
11368
11349
  }, [u, r, t]);
11369
11350
  return /* @__PURE__ */ v("div", { className: "mt-0.5 ml-0.5 mt-2", children: [
11370
11351
  /* @__PURE__ */ n(
11371
- Dn,
11352
+ Rn,
11372
11353
  {
11373
11354
  value: f ? t.map((p) => p.toString()) : [],
11374
11355
  disabled: o,
@@ -11386,7 +11367,7 @@ function Cn({
11386
11367
  let h;
11387
11368
  return d && d?.dataType === "number" ? h = p ? p.map((A) => parseFloat(A)) : [] : h = p, r(h);
11388
11369
  },
11389
- children: u.map((p) => String(p.id)).map((p) => /* @__PURE__ */ n(Rn, { value: p, children: m(p, !0) }, p))
11370
+ children: u.map((p) => String(p.id)).map((p) => /* @__PURE__ */ n(Tn, { value: p, children: m(p, !0) }, p))
11390
11371
  }
11391
11372
  ),
11392
11373
  /* @__PURE__ */ n(
@@ -11530,7 +11511,7 @@ function pd({
11530
11511
  )
11531
11512
  ] });
11532
11513
  }
11533
- function aa({
11514
+ function sa({
11534
11515
  name: e,
11535
11516
  property: t,
11536
11517
  value: r,
@@ -11577,7 +11558,7 @@ function aa({
11577
11558
  ] });
11578
11559
  }
11579
11560
  const fd = "box-border relative pt-[2px] items-center border border-transparent min-h-[254px] outline-none rounded-md duration-200 ease-[cubic-bezier(0.4,0,0.2,1)] focus:border-primary-solid", hd = "border-dotted-gray", gd = xr, Ad = "pt-0 border-2 border-solid", bd = "transition-colors duration-200 ease-[cubic-bezier(0,0,0.2,1)] border-2 border-solid border-green-500", yd = "transition-colors duration-200 ease-[cubic-bezier(0,0,0.2,1)] border-2 border-solid border-red-500";
11580
- function Bn({
11561
+ function Sn({
11581
11562
  propertyKey: e,
11582
11563
  value: t,
11583
11564
  setValue: r,
@@ -11600,7 +11581,7 @@ function Bn({
11600
11581
  onFileUploadComplete: y,
11601
11582
  storagePathBuilder: w,
11602
11583
  multipleFilesSupported: b
11603
- } = zo({
11584
+ } = Vo({
11604
11585
  entityValues: d.values,
11605
11586
  entityId: d.entityId,
11606
11587
  path: d.path,
@@ -11678,7 +11659,7 @@ function wd({
11678
11659
  isDragActive: b,
11679
11660
  isDragAccept: _,
11680
11661
  isDragReject: k
11681
- } = qn(
11662
+ } = Wn(
11682
11663
  {
11683
11664
  accept: e.acceptedFiles ? e.acceptedFiles.map((E) => ({ [E]: [] })).reduce((E, C) => ({ ...E, ...C }), {}) : void 0,
11684
11665
  disabled: t || r,
@@ -11701,7 +11682,7 @@ function wd({
11701
11682
  ...y(),
11702
11683
  className: U(
11703
11684
  pr,
11704
- t ? Yn : xr,
11685
+ t ? Ln : xr,
11705
11686
  fd,
11706
11687
  a && l.length ? "" : "flex",
11707
11688
  ni,
@@ -11735,7 +11716,7 @@ function wd({
11735
11716
  l.map((E, C) => {
11736
11717
  let B;
11737
11718
  return E.storagePathOrDownloadUrl ? B = /* @__PURE__ */ n(
11738
- aa,
11719
+ sa,
11739
11720
  {
11740
11721
  name: `storage_preview_${E.storagePathOrDownloadUrl}`,
11741
11722
  property: c,
@@ -11745,7 +11726,7 @@ function wd({
11745
11726
  size: E.size
11746
11727
  }
11747
11728
  ) : E.file && (B = /* @__PURE__ */ n(
11748
- Vo,
11729
+ Go,
11749
11730
  {
11750
11731
  entry: E,
11751
11732
  metadata: u,
@@ -11755,7 +11736,7 @@ function wd({
11755
11736
  simple: !1
11756
11737
  }
11757
11738
  )), /* @__PURE__ */ n(
11758
- Hn,
11739
+ Zn,
11759
11740
  {
11760
11741
  draggableId: `array_field_${h}_${E.id}`,
11761
11742
  index: C,
@@ -11822,8 +11803,7 @@ function vd({
11822
11803
  throw Error("Storage field using array must be of data type string");
11823
11804
  }
11824
11805
  const m = u?.metadata, p = o ? "small" : "medium", h = x((b, _) => {
11825
- if (!o)
11826
- return;
11806
+ if (!o) return;
11827
11807
  const k = [...r], E = k[b];
11828
11808
  k.splice(b, 1), k.splice(_, 0, E), i(k);
11829
11809
  const C = k.filter((B) => !!B.storagePathOrDownloadUrl).map((B) => B.storagePathOrDownloadUrl);
@@ -11837,8 +11817,8 @@ function vd({
11837
11817
  } else
11838
11818
  a(null), i([]);
11839
11819
  }, [r, o, a]), y = o ? "Drag 'n' drop some files here, or click to select files" : "Drag 'n' drop a file here, or click to select one", w = o ? e.of : e;
11840
- return /* @__PURE__ */ n(Wn, { onDragEnd: A, children: /* @__PURE__ */ n(
11841
- Jn,
11820
+ return /* @__PURE__ */ n(Jn, { onDragEnd: A, children: /* @__PURE__ */ n(
11821
+ Hn,
11842
11822
  {
11843
11823
  droppableId: `droppable_${t}`,
11844
11824
  direction: "horizontal",
@@ -11853,7 +11833,7 @@ function vd({
11853
11833
  style: b.draggableProps.style,
11854
11834
  className: "rounded",
11855
11835
  children: /* @__PURE__ */ n(
11856
- aa,
11836
+ sa,
11857
11837
  {
11858
11838
  name: `storage_preview_${E.storagePathOrDownloadUrl}`,
11859
11839
  property: w,
@@ -11957,7 +11937,7 @@ function Vt({
11957
11937
  }
11958
11938
  ),
11959
11939
  f && /* @__PURE__ */ n(
11960
- Gn,
11940
+ jn,
11961
11941
  {
11962
11942
  className: "mt-1 ml-1",
11963
11943
  in: !!r,
@@ -12072,7 +12052,7 @@ function _d({
12072
12052
  )
12073
12053
  ] });
12074
12054
  }
12075
- function sa({
12055
+ function la({
12076
12056
  propertyKey: e,
12077
12057
  value: t,
12078
12058
  error: r,
@@ -12121,7 +12101,7 @@ function sa({
12121
12101
  ] });
12122
12102
  }
12123
12103
  function xd(e) {
12124
- return typeof e.property.path != "string" ? /* @__PURE__ */ n(sa, { ...e }) : /* @__PURE__ */ n(Ed, { ...e });
12104
+ return typeof e.property.path != "string" ? /* @__PURE__ */ n(la, { ...e }) : /* @__PURE__ */ n(Ed, { ...e });
12125
12105
  }
12126
12106
  function Ed({
12127
12107
  value: e,
@@ -12236,7 +12216,7 @@ function Cd({
12236
12216
  }) {
12237
12217
  const u = fe();
12238
12218
  return /* @__PURE__ */ n(
12239
- Nn,
12219
+ Fn,
12240
12220
  {
12241
12221
  name: e,
12242
12222
  children: (f) => {
@@ -12252,7 +12232,7 @@ function Cd({
12252
12232
  if (p === null || Si(p))
12253
12233
  return /* @__PURE__ */ n(O, {});
12254
12234
  if (er(p))
12255
- m = sa;
12235
+ m = la;
12256
12236
  else if (p.Field)
12257
12237
  typeof p.Field == "function" && (m = p.Field);
12258
12238
  else {
@@ -12366,7 +12346,7 @@ function Sd({
12366
12346
  return ce((() => {
12367
12347
  let l = null;
12368
12348
  return o && o.forEach((c) => {
12369
- const d = la(i);
12349
+ const d = ca(i);
12370
12350
  if (d && c.form?.fieldBuilder) {
12371
12351
  const u = {
12372
12352
  fieldConfigId: d,
@@ -12401,7 +12381,7 @@ function Id({
12401
12381
  if (!o.properties)
12402
12382
  throw Error(`You need to specify a 'properties' prop (or specify a custom field) in your map property ${e}`);
12403
12383
  let h;
12404
- m ? t ? h = Ds(
12384
+ m ? t ? h = Rs(
12405
12385
  o.properties,
12406
12386
  ...Object.keys(t).filter((y) => y in o.properties)
12407
12387
  ) : h = {} : h = o.properties;
@@ -12549,7 +12529,7 @@ function zi({
12549
12529
  dataType: d
12550
12530
  }] : u)), t({
12551
12531
  ...e ?? {},
12552
- [a.find((u) => u[0] === c)?.[1].key ?? ""]: no(d)
12532
+ [a.find((u) => u[0] === c)?.[1].key ?? ""]: oo(d)
12553
12533
  });
12554
12534
  };
12555
12535
  return /* @__PURE__ */ v("div", { className: "py-1 flex flex-col gap-1", children: [
@@ -12692,7 +12672,7 @@ function Fd({
12692
12672
  {
12693
12673
  className: U(Se, "ml-2 pl-2 border-l border-solid"),
12694
12674
  children: /* @__PURE__ */ n(
12695
- oa,
12675
+ aa,
12696
12676
  {
12697
12677
  value: p,
12698
12678
  newDefaultEntry: "",
@@ -12783,7 +12763,7 @@ function Fd({
12783
12763
  {
12784
12764
  size: "small",
12785
12765
  className: "h-7 w-7",
12786
- children: /* @__PURE__ */ n(Ln, {})
12766
+ children: /* @__PURE__ */ n(Un, {})
12787
12767
  }
12788
12768
  ),
12789
12769
  children: [
@@ -12932,7 +12912,7 @@ function Pd({
12932
12912
  {
12933
12913
  size: "small",
12934
12914
  className: "h-7 w-7",
12935
- children: /* @__PURE__ */ n(Ln, {})
12915
+ children: /* @__PURE__ */ n(Un, {})
12936
12916
  }
12937
12917
  ),
12938
12918
  children: [
@@ -13002,7 +12982,7 @@ function pi(e) {
13002
12982
  return "date";
13003
12983
  if (e?.isEntityReference && e?.isEntityReference())
13004
12984
  return "reference";
13005
- if (e instanceof ro)
12985
+ if (e instanceof io)
13006
12986
  return "geopoint";
13007
12987
  if (typeof e == "object")
13008
12988
  return "map";
@@ -13215,7 +13195,7 @@ function Rd({
13215
13195
  };
13216
13196
  return /* @__PURE__ */ v("div", { className: U(kr, "bg-transparent p-4 my-4 py-8"), children: [
13217
13197
  /* @__PURE__ */ n(
13218
- Nn,
13198
+ Fn,
13219
13199
  {
13220
13200
  name: h,
13221
13201
  children: (w) => {
@@ -13272,7 +13252,7 @@ function Rd({
13272
13252
  /* @__PURE__ */ n(Dt, { ...g }, `form_control_${e}_${d}`)
13273
13253
  ] });
13274
13254
  }
13275
- const Td = new Is();
13255
+ const Td = new Ns();
13276
13256
  try {
13277
13257
  cr.use(Yr.AutoResize, {
13278
13258
  min: 100
@@ -13294,8 +13274,8 @@ function Od({
13294
13274
  context: f
13295
13275
  }) {
13296
13276
  const [m, p] = S.useState(t), h = ce(t);
13297
- rs("MarkdownFieldBinding", Md);
13298
- const A = Sa({
13277
+ is("MarkdownFieldBinding", Md);
13278
+ const A = Ia({
13299
13279
  internalValue: m,
13300
13280
  value: t
13301
13281
  });
@@ -13326,7 +13306,7 @@ function Od({
13326
13306
  value: m ?? "",
13327
13307
  className: U(
13328
13308
  pr,
13329
- o ? Yn : xr,
13309
+ o ? Ln : xr,
13330
13310
  "text-base"
13331
13311
  ),
13332
13312
  readOnly: o,
@@ -14023,7 +14003,7 @@ const Vi = {
14023
14003
  key: "text_field",
14024
14004
  name: "Text field",
14025
14005
  description: "Simple short text",
14026
- Icon: is,
14006
+ Icon: ns,
14027
14007
  color: "#2d7ff9",
14028
14008
  property: {
14029
14009
  dataType: "string",
@@ -14034,7 +14014,7 @@ const Vi = {
14034
14014
  key: "multiline",
14035
14015
  name: "Multiline",
14036
14016
  description: "Text with multiple lines",
14037
- Icon: ns,
14017
+ Icon: os,
14038
14018
  color: "#2d7ff9",
14039
14019
  property: {
14040
14020
  dataType: "string",
@@ -14046,7 +14026,7 @@ const Vi = {
14046
14026
  key: "markdown",
14047
14027
  name: "Markdown",
14048
14028
  description: "Text with advanced markdown syntax",
14049
- Icon: os,
14029
+ Icon: as,
14050
14030
  color: "#2d7ff9",
14051
14031
  property: {
14052
14032
  dataType: "string",
@@ -14058,7 +14038,7 @@ const Vi = {
14058
14038
  key: "url",
14059
14039
  name: "Url",
14060
14040
  description: "Text with URL validation",
14061
- Icon: as,
14041
+ Icon: ss,
14062
14042
  color: "#154fb3",
14063
14043
  property: {
14064
14044
  dataType: "string",
@@ -14070,7 +14050,7 @@ const Vi = {
14070
14050
  key: "email",
14071
14051
  name: "Email",
14072
14052
  description: "Text with email validation",
14073
- Icon: ss,
14053
+ Icon: ls,
14074
14054
  color: "#154fb3",
14075
14055
  property: {
14076
14056
  dataType: "string",
@@ -14082,7 +14062,7 @@ const Vi = {
14082
14062
  key: "switch",
14083
14063
  name: "Switch",
14084
14064
  description: "Boolean true or false field (or yes or no, 0 or 1...)",
14085
- Icon: ls,
14065
+ Icon: cs,
14086
14066
  color: "#20d9d2",
14087
14067
  property: {
14088
14068
  dataType: "boolean",
@@ -14093,19 +14073,19 @@ const Vi = {
14093
14073
  key: "select",
14094
14074
  name: "Select/enum",
14095
14075
  description: "Select one text value from within an enumeration",
14096
- Icon: cs,
14076
+ Icon: ds,
14097
14077
  color: "#4223c9",
14098
14078
  property: {
14099
14079
  dataType: "string",
14100
14080
  enumValues: [],
14101
- Field: En
14081
+ Field: Cn
14102
14082
  }
14103
14083
  },
14104
14084
  multi_select: {
14105
14085
  key: "multi_select",
14106
14086
  name: "Multi select",
14107
14087
  description: "Select multiple text values from within an enumeration",
14108
- Icon: ds,
14088
+ Icon: us,
14109
14089
  color: "#4223c9",
14110
14090
  property: {
14111
14091
  dataType: "array",
@@ -14113,14 +14093,14 @@ const Vi = {
14113
14093
  dataType: "string",
14114
14094
  enumValues: []
14115
14095
  },
14116
- Field: Cn
14096
+ Field: Bn
14117
14097
  }
14118
14098
  },
14119
14099
  number_input: {
14120
14100
  key: "number_input",
14121
14101
  name: "Number input",
14122
14102
  description: "Simple number field with validation",
14123
- Icon: us,
14103
+ Icon: ms,
14124
14104
  color: "#bec920",
14125
14105
  property: {
14126
14106
  dataType: "number",
@@ -14136,7 +14116,7 @@ const Vi = {
14136
14116
  property: {
14137
14117
  dataType: "number",
14138
14118
  enumValues: [],
14139
- Field: En
14119
+ Field: Cn
14140
14120
  }
14141
14121
  },
14142
14122
  multi_number_select: {
@@ -14151,28 +14131,28 @@ const Vi = {
14151
14131
  dataType: "number",
14152
14132
  enumValues: []
14153
14133
  },
14154
- Field: Cn
14134
+ Field: Bn
14155
14135
  }
14156
14136
  },
14157
14137
  file_upload: {
14158
14138
  key: "file_upload",
14159
14139
  name: "File upload",
14160
14140
  description: "Input for uploading single files",
14161
- Icon: ms,
14141
+ Icon: ps,
14162
14142
  color: "#f92d9a",
14163
14143
  property: {
14164
14144
  dataType: "string",
14165
14145
  storage: {
14166
14146
  storagePath: "{path}"
14167
14147
  },
14168
- Field: Bn
14148
+ Field: Sn
14169
14149
  }
14170
14150
  },
14171
14151
  multi_file_upload: {
14172
14152
  key: "multi_file_upload",
14173
14153
  name: "Multiple file upload",
14174
14154
  description: "Input for uploading multiple files",
14175
- Icon: ps,
14155
+ Icon: fs,
14176
14156
  color: "#f92d9a",
14177
14157
  property: {
14178
14158
  dataType: "array",
@@ -14182,14 +14162,14 @@ const Vi = {
14182
14162
  storagePath: "{path}"
14183
14163
  }
14184
14164
  },
14185
- Field: Bn
14165
+ Field: Sn
14186
14166
  }
14187
14167
  },
14188
14168
  reference: {
14189
14169
  key: "reference",
14190
14170
  name: "Reference",
14191
14171
  description: "The value refers to a different collection",
14192
- Icon: fs,
14172
+ Icon: hs,
14193
14173
  color: "#ff0042",
14194
14174
  property: {
14195
14175
  dataType: "reference",
@@ -14200,7 +14180,7 @@ const Vi = {
14200
14180
  key: "multi_references",
14201
14181
  name: "Multiple references",
14202
14182
  description: "Multiple values that refer to a different collection",
14203
- Icon: hs,
14183
+ Icon: gs,
14204
14184
  color: "#ff0042",
14205
14185
  property: {
14206
14186
  dataType: "array",
@@ -14214,7 +14194,7 @@ const Vi = {
14214
14194
  key: "date_time",
14215
14195
  name: "Date/time",
14216
14196
  description: "A date time select field",
14217
- Icon: gs,
14197
+ Icon: As,
14218
14198
  color: "#8b46ff",
14219
14199
  property: {
14220
14200
  dataType: "date",
@@ -14275,7 +14255,7 @@ const Vi = {
14275
14255
  key: "block",
14276
14256
  name: "Block",
14277
14257
  description: "A complex field that allows the user to compose different fields together, with a key->value format",
14278
- Icon: As,
14258
+ Icon: bs,
14279
14259
  color: "#ff9408",
14280
14260
  property: {
14281
14261
  dataType: "array",
@@ -14295,7 +14275,7 @@ function Gd(e) {
14295
14275
  return Vi[t];
14296
14276
  }
14297
14277
  function Qr(e, t) {
14298
- const r = la(e), i = Gi(e);
14278
+ const r = ca(e), i = Gi(e);
14299
14279
  if (!i) {
14300
14280
  console.error("No field id found for property", e);
14301
14281
  return;
@@ -14323,7 +14303,7 @@ function Gi(e) {
14323
14303
  }
14324
14304
  console.error("Unsupported field config mapping", e);
14325
14305
  }
14326
- function la(e) {
14306
+ function ca(e) {
14327
14307
  return e.propertyConfig ? e.propertyConfig : Gi(e);
14328
14308
  }
14329
14309
  const Le = ({
@@ -14389,7 +14369,7 @@ function Ye({
14389
14369
  } else {
14390
14370
  const o = e;
14391
14371
  if (o.dataType === "map" && o.properties) {
14392
- const s = ca({
14372
+ const s = da({
14393
14373
  ignoreMissingFields: r,
14394
14374
  ...i,
14395
14375
  properties: o.properties
@@ -14400,16 +14380,14 @@ function Ye({
14400
14380
  fromBuilder: t,
14401
14381
  properties: s
14402
14382
  };
14403
- } else
14404
- o.dataType === "array" ? a = At({
14405
- property: o,
14406
- fromBuilder: t,
14407
- ignoreMissingFields: r,
14408
- ...i
14409
- }) : (o.dataType === "string" || o.dataType === "number") && o.enumValues && (a = da(o, t));
14383
+ } else o.dataType === "array" ? a = At({
14384
+ property: o,
14385
+ fromBuilder: t,
14386
+ ignoreMissingFields: r,
14387
+ ...i
14388
+ }) : (o.dataType === "string" || o.dataType === "number") && o.enumValues && (a = ua(o, t));
14410
14389
  }
14411
- else
14412
- return null;
14390
+ else return null;
14413
14391
  if (a || (a = {
14414
14392
  ...e,
14415
14393
  resolved: !0,
@@ -14490,7 +14468,7 @@ function At({
14490
14468
  ignoreMissingFields: r,
14491
14469
  ...i
14492
14470
  });
14493
- }).filter((c) => !!c) : [], l = ca({
14471
+ }).filter((c) => !!c) : [], l = da({
14494
14472
  properties: t.oneOf.properties,
14495
14473
  ignoreMissingFields: r,
14496
14474
  ...i
@@ -14515,7 +14493,7 @@ function At({
14515
14493
  throw Error("The array property needs to declare an 'of' or a 'oneOf' property, or provide a custom `Field`");
14516
14494
  }
14517
14495
  }
14518
- function ca({
14496
+ function da({
14519
14497
  properties: e,
14520
14498
  ignoreMissingFields: t,
14521
14499
  ...r
@@ -14532,7 +14510,7 @@ function ca({
14532
14510
  } : {};
14533
14511
  }).filter((i) => i !== null).reduce((i, a) => ({ ...i, ...a }), {});
14534
14512
  }
14535
- function da(e, t) {
14513
+ function ua(e, t) {
14536
14514
  return typeof e.enumValues == "object" ? {
14537
14515
  ...e,
14538
14516
  resolved: !0,
@@ -14546,7 +14524,7 @@ function Qm(e) {
14546
14524
  label: r
14547
14525
  } : r) : Array.isArray(e) ? e : void 0;
14548
14526
  }
14549
- function ua(e, t) {
14527
+ function ma(e, t) {
14550
14528
  return typeof e == "string" ? t?.find((r) => r.key === e) : e;
14551
14529
  }
14552
14530
  function ji(e) {
@@ -14576,7 +14554,7 @@ function ji(e) {
14576
14554
  const g = p.slice(1).join("/");
14577
14555
  if (!d)
14578
14556
  throw Error("collection not found resolving path: " + d);
14579
- const y = d.entityViews, w = y && y.map((b) => ua(b, e.contextEntityViews)).filter(Boolean).find((b) => b.key === g);
14557
+ const y = d.entityViews, w = y && y.map((b) => ma(b, e.contextEntityViews)).filter(Boolean).find((b) => b.key === g);
14580
14558
  if (w) {
14581
14559
  const b = i && i.length > 0 ? i + "/" + w.key : w.key;
14582
14560
  s.push({
@@ -14584,13 +14562,12 @@ function ji(e) {
14584
14562
  path: b,
14585
14563
  view: w
14586
14564
  });
14587
- } else
14588
- d.subcollections && s.push(...ji({
14589
- path: g,
14590
- collections: d.subcollections,
14591
- currentFullPath: A,
14592
- contextEntityViews: e.contextEntityViews
14593
- }));
14565
+ } else d.subcollections && s.push(...ji({
14566
+ path: g,
14567
+ collections: d.subcollections,
14568
+ currentFullPath: A,
14569
+ contextEntityViews: e.contextEntityViews
14570
+ }));
14594
14571
  }
14595
14572
  }
14596
14573
  break;
@@ -14705,7 +14682,7 @@ const Ud = ({ containerRef: e }) => {
14705
14682
  `#form_field_${a[0]}`
14706
14683
  );
14707
14684
  if (o && e?.current) {
14708
- const s = ma(e.current);
14685
+ const s = pa(e.current);
14709
14686
  if (s) {
14710
14687
  const c = o.getBoundingClientRect().top;
14711
14688
  s.scrollTo({
@@ -14721,7 +14698,7 @@ const Ud = ({ containerRef: e }) => {
14721
14698
  }, $d = (e) => {
14722
14699
  const t = e && e.scrollHeight > e.clientHeight, r = e ? window.getComputedStyle(e).overflowY : null, i = r && r.indexOf("hidden") !== -1;
14723
14700
  return t && !i;
14724
- }, ma = (e) => !e || e === document.body ? document.body : $d(e) ? e : ma(e.parentNode);
14701
+ }, pa = (e) => !e || e === document.body ? document.body : $d(e) ? e : pa(e.parentNode);
14725
14702
  function qd({ propertyId: e }) {
14726
14703
  const [t, r] = P(!1);
14727
14704
  return /* @__PURE__ */ v("div", { className: "flex flex-row gap-2 items-center justify-center text-white", children: [
@@ -14759,7 +14736,7 @@ function Wd({
14759
14736
  dataLoading: i,
14760
14737
  // eslint-disable-next-line no-unused-vars
14761
14738
  dataLoadingError: a
14762
- } = Eo({
14739
+ } = Co({
14763
14740
  path: t.path,
14764
14741
  entityId: e,
14765
14742
  collection: t.collection,
@@ -14804,7 +14781,7 @@ function Jd({
14804
14781
  path: e,
14805
14782
  values: d?.values,
14806
14783
  fields: k.propertyConfigs
14807
- }), [d?.values, e, k.propertyConfigs]), D = i ? "copy" : t ? "existing" : "new", [F, z] = P(D), $ = (F === "new" || F === "copy") && !!Q.customId && Q.customId !== "optional", oe = he(() => F === "new" || F === "copy" ? $ ? void 0 : y.generateEntityId(e) : t, [t, F]), [L, X] = S.useState(oe), [q, V] = S.useState(!1), [ae, te] = S.useState(), [Ae, ue] = S.useState(!1), se = r ?? lo(
14784
+ }), [d?.values, e, k.propertyConfigs]), D = i ? "copy" : t ? "existing" : "new", [F, z] = P(D), $ = (F === "new" || F === "copy") && !!Q.customId && Q.customId !== "optional", oe = he(() => F === "new" || F === "copy" ? $ ? void 0 : y.generateEntityId(e) : t, [t, F]), [L, X] = S.useState(oe), [q, V] = S.useState(!1), [ae, te] = S.useState(), [Ae, ue] = S.useState(!1), se = r ?? co(
14808
14785
  a ? a.defaultSelectedView : void 0,
14809
14786
  {
14810
14787
  status: F,
@@ -14817,7 +14794,7 @@ function Jd({
14817
14794
  if (F === "new")
14818
14795
  ie(!1);
14819
14796
  else {
14820
- const N = me ? mo(a, g, e, me ?? null) : !1;
14797
+ const N = me ? po(a, g, e, me ?? null) : !1;
14821
14798
  me && ie(!N);
14822
14799
  }
14823
14800
  }, [g, me, F]);
@@ -14854,7 +14831,7 @@ function Jd({
14854
14831
  entityId: Ge,
14855
14832
  collection: it,
14856
14833
  path: zt
14857
- }) => (m(!0), Co({
14834
+ }) => (m(!0), Bo({
14858
14835
  path: zt,
14859
14836
  entityId: Ge,
14860
14837
  values: N,
@@ -14894,8 +14871,7 @@ function Jd({
14894
14871
  return;
14895
14872
  }
14896
14873
  if (te(void 0), V(!1), F === "existing") {
14897
- if (!d?.id)
14898
- throw Error("Form misconfiguration when saving, no id for existing entity");
14874
+ if (!d?.id) throw Error("Form misconfiguration when saving, no id for existing entity");
14899
14875
  } else if (F === "new" || F === "copy") {
14900
14876
  if (A.customId && A.customId !== "optional" && !L)
14901
14877
  throw Error("Form misconfiguration when saving, entityId should be set");
@@ -14910,10 +14886,10 @@ function Jd({
14910
14886
  }).finally(() => {
14911
14887
  Z.setSubmitting(!1);
14912
14888
  });
14913
- }, re = Sn({
14889
+ }, re = In({
14914
14890
  initialValues: T.current,
14915
14891
  onSubmit: rt,
14916
- validation: (N) => ga?.validate(N, { abortEarly: !1 }).then(() => ({})).catch((Z) => {
14892
+ validation: (N) => Aa?.validate(N, { abortEarly: !1 }).then(() => ({})).catch((Z) => {
14917
14893
  const ve = {};
14918
14894
  return Z.inner.forEach((Ge) => {
14919
14895
  ve[Ge.path] = Ge.message;
@@ -14950,7 +14926,7 @@ function Jd({
14950
14926
  path: e,
14951
14927
  save: Rt,
14952
14928
  formex: re
14953
- }, Tt = j ? j.map((N) => ua(N, k.entityViews)).filter(Boolean) : [], Dr = Tt.find((N) => N.key === ee.current), Rr = !I && (ee.current === Gt || Dr?.includeActions), Tr = j && Tt.map(
14929
+ }, Tt = j ? j.map((N) => ma(N, k.entityViews)).filter(Boolean) : [], Dr = Tt.find((N) => N.key === ee.current), Rr = !I && (ee.current === Gt || Dr?.includeActions), Tr = j && Tt.map(
14954
14930
  (N, Z) => {
14955
14931
  if (!N || ee.current !== N.key)
14956
14932
  return null;
@@ -14987,7 +14963,7 @@ function Jd({
14987
14963
  children: [
14988
14964
  Or && /* @__PURE__ */ n(yr, {}),
14989
14965
  !bt && (me && Ge ? /* @__PURE__ */ n(
14990
- ta,
14966
+ ra,
14991
14967
  {
14992
14968
  fullPath: Ge,
14993
14969
  parentCollectionIds: [...o, a.id],
@@ -15045,7 +15021,7 @@ function Jd({
15045
15021
  `actions_${Z.key}`
15046
15022
  ) : null).filter(Boolean));
15047
15023
  }
15048
- const Ot = po(Be, k.propertyConfigs), ha = re.values && Ot ? dt(re.values, Ot) : void 0, Li = A.callbacks?.onIdUpdate, Ui = x(async () => {
15024
+ const Ot = fo(Be, k.propertyConfigs), ga = re.values && Ot ? dt(re.values, Ot) : void 0, Li = A.callbacks?.onIdUpdate, Ui = x(async () => {
15049
15025
  if (Li && re.values && (F === "new" || F === "copy")) {
15050
15026
  ue(!0);
15051
15027
  try {
@@ -15073,19 +15049,19 @@ function Jd({
15073
15049
  property: ve
15074
15050
  }) => y.checkUniqueField(e, N, Z, L),
15075
15051
  [y, e, L]
15076
- ), ga = he(
15077
- () => L ? jo(
15052
+ ), Aa = he(
15053
+ () => L ? Yo(
15078
15054
  L,
15079
15055
  Be.properties,
15080
15056
  $i
15081
15057
  ) : void 0,
15082
15058
  [L, Be.properties, $i]
15083
- ), Aa = x(({
15059
+ ), ba = x(({
15084
15060
  entity: N,
15085
15061
  customEntityActions: Z
15086
15062
  }) => {
15087
15063
  const ve = $t(A, g, e, null), Ge = N ? Fi(A, g, e, N) : !0, it = [];
15088
- return ve && it.push(Ko), Ge && it.push(ea), Z && it.push(...Z), it;
15064
+ return ve && it.push(ea), Ge && it.push(ta), Z && it.push(...Z), it;
15089
15065
  }, [g, A, e]), Mr = re.dirty;
15090
15066
  M(() => {
15091
15067
  I ? re.values && !J(re.values, ir.current) && Rt(re.values) : s(Mr);
@@ -15095,13 +15071,12 @@ function Jd({
15095
15071
  !J(Z, ve) && !re.touched[N] && (console.debug("Updated value from the datasource:", N, Z), re.setFieldValue(N, Z !== void 0 ? Z : null));
15096
15072
  });
15097
15073
  }, [re.isSubmitting, I, Mt, d, re.values, re.touched, re.setFieldValue]);
15098
- const ba = /* @__PURE__ */ n(O, { children: (Be.propertiesOrder ?? Object.keys(Be.properties)).map((N) => {
15074
+ const ya = /* @__PURE__ */ n(O, { children: (Be.propertiesOrder ?? Object.keys(Be.properties)).map((N) => {
15099
15075
  const Z = Be.properties[N];
15100
15076
  if (!Z)
15101
15077
  return console.warn(`Property ${N} not found in collection ${Be.name}`), null;
15102
15078
  const ve = !!Mt && Object.keys(Mt).includes(N) && !!re.touched[N], Ge = !I && re.isSubmitting || er(Z) || !!Z.disabled;
15103
- if (Si(Z))
15104
- return null;
15079
+ if (Si(Z)) return null;
15105
15080
  const zt = {
15106
15081
  propertyKey: N,
15107
15082
  disabled: Ge,
@@ -15132,10 +15107,10 @@ function Jd({
15132
15107
  },
15133
15108
  `field_${Be.name}_${N}`
15134
15109
  );
15135
- }).filter(Boolean) }), zr = re.isSubmitting || !Mr && F === "existing", qi = S.useRef(null), Wi = Aa({
15110
+ }).filter(Boolean) }), zr = re.isSubmitting || !Mr && F === "existing", qi = S.useRef(null), Wi = ba({
15136
15111
  entity: d,
15137
15112
  customEntityActions: A.entityActions
15138
- }).filter((N) => N.includeInForm === void 0 || N.includeInForm), ya = /* @__PURE__ */ v(It, { position: "absolute", children: [
15113
+ }).filter((N) => N.includeInForm === void 0 || N.includeInForm), wa = /* @__PURE__ */ v(It, { position: "absolute", children: [
15139
15114
  ae && /* @__PURE__ */ n("div", { className: "text-right", children: /* @__PURE__ */ n(Y, { color: "error", children: ae.message }) }),
15140
15115
  d && Wi.length > 0 && /* @__PURE__ */ n("div", { className: "flex-grow flex overflow-auto no-scrollbar", children: Wi.map((N) => /* @__PURE__ */ n(
15141
15116
  de,
@@ -15199,7 +15174,7 @@ function Jd({
15199
15174
  }
15200
15175
  )
15201
15176
  ] });
15202
- function wa() {
15177
+ function va() {
15203
15178
  let N = /* @__PURE__ */ v("div", { className: "h-full overflow-auto", children: [
15204
15179
  Je.length > 0 && /* @__PURE__ */ n(
15205
15180
  "div",
@@ -15219,10 +15194,10 @@ function Jd({
15219
15194
  {
15220
15195
  className: "mt-4 flex-grow line-clamp-1 " + A.hideIdFromForm ? "mb-2" : "mb-0",
15221
15196
  variant: "h4",
15222
- children: ha ?? A.singularName ?? A.name
15197
+ children: ga ?? A.singularName ?? A.name
15223
15198
  }
15224
15199
  ),
15225
- /* @__PURE__ */ n(ys, { color: "base", className: "w-full", size: "small", children: /* @__PURE__ */ v("code", { className: "text-xs select-all", children: [
15200
+ /* @__PURE__ */ n(ws, { color: "base", className: "w-full", size: "small", children: /* @__PURE__ */ v("code", { className: "text-xs select-all", children: [
15226
15201
  e,
15227
15202
  "/",
15228
15203
  L
@@ -15249,7 +15224,7 @@ function Jd({
15249
15224
  className: "mt-12 flex flex-col gap-8",
15250
15225
  ref: qi,
15251
15226
  children: [
15252
- ba,
15227
+ ya,
15253
15228
  /* @__PURE__ */ n(Ud, { containerRef: qi })
15254
15229
  ]
15255
15230
  }
@@ -15275,7 +15250,7 @@ function Jd({
15275
15250
  ));
15276
15251
  }), /* @__PURE__ */ n(pe, { children: N });
15277
15252
  }
15278
- const va = Xe === void 0 ? /* @__PURE__ */ n(O, {}) : Xe ? /* @__PURE__ */ v(O, { children: [
15253
+ const ka = Xe === void 0 ? /* @__PURE__ */ n(O, {}) : Xe ? /* @__PURE__ */ v(O, { children: [
15279
15254
  /* @__PURE__ */ n(
15280
15255
  Y,
15281
15256
  {
@@ -15285,7 +15260,7 @@ function Jd({
15285
15260
  }
15286
15261
  ),
15287
15262
  /* @__PURE__ */ n(
15288
- Oo,
15263
+ Mo,
15289
15264
  {
15290
15265
  className: "px-12",
15291
15266
  entity: me,
@@ -15293,7 +15268,7 @@ function Jd({
15293
15268
  collection: a
15294
15269
  }
15295
15270
  )
15296
- ] }) : wa(), ka = K && K.map(
15271
+ ] }) : va(), _a = K && K.map(
15297
15272
  (N) => /* @__PURE__ */ n(
15298
15273
  jr,
15299
15274
  {
@@ -15303,7 +15278,7 @@ function Jd({
15303
15278
  },
15304
15279
  `entity_detail_collection_tab_${N.name}`
15305
15280
  )
15306
- ), _a = Tt.map(
15281
+ ), xa = Tt.map(
15307
15282
  (N) => /* @__PURE__ */ n(
15308
15283
  jr,
15309
15284
  {
@@ -15316,7 +15291,7 @@ function Jd({
15316
15291
  );
15317
15292
  return M(() => {
15318
15293
  L && we && we(L);
15319
- }, [L, we]), /* @__PURE__ */ n(In, { value: re, children: /* @__PURE__ */ v("div", { className: "flex flex-col h-full w-full transition-width duration-250 ease-in-out", children: [
15294
+ }, [L, we]), /* @__PURE__ */ n(Nn, { value: re, children: /* @__PURE__ */ v("div", { className: "flex flex-col h-full w-full transition-width duration-250 ease-in-out", children: [
15320
15295
  /* @__PURE__ */ v(
15321
15296
  "div",
15322
15297
  {
@@ -15330,7 +15305,7 @@ function Jd({
15330
15305
  de,
15331
15306
  {
15332
15307
  onClick: () => (c?.(), w.close(!1)),
15333
- children: /* @__PURE__ */ n(jn, { size: "small" })
15308
+ children: /* @__PURE__ */ n(Yn, { size: "small" })
15334
15309
  }
15335
15310
  )
15336
15311
  }
@@ -15344,7 +15319,7 @@ function Jd({
15344
15319
  }
15345
15320
  ),
15346
15321
  /* @__PURE__ */ v(
15347
- bs,
15322
+ ys,
15348
15323
  {
15349
15324
  value: ee.current,
15350
15325
  onValueChange: (N) => {
@@ -15361,8 +15336,8 @@ function Jd({
15361
15336
  children: a.singularName ?? a.name
15362
15337
  }
15363
15338
  ),
15364
- _a,
15365
- ka
15339
+ xa,
15340
+ _a
15366
15341
  ]
15367
15342
  }
15368
15343
  )
@@ -15384,12 +15359,12 @@ function Jd({
15384
15359
  hidden: !ne,
15385
15360
  id: `form_${e}`,
15386
15361
  className: " w-full",
15387
- children: bt ? /* @__PURE__ */ n(yr, {}) : va
15362
+ children: bt ? /* @__PURE__ */ n(yr, {}) : ka
15388
15363
  }
15389
15364
  ),
15390
15365
  Tr,
15391
15366
  W,
15392
- Rr && ya
15367
+ Rr && wa
15393
15368
  ]
15394
15369
  }
15395
15370
  )
@@ -15417,7 +15392,7 @@ function Zd(e) {
15417
15392
  return t;
15418
15393
  }
15419
15394
  function Xd(e, t) {
15420
- const [r, i] = S.useState(), { navigator: a } = S.useContext(ks), o = Kt(), s = () => {
15395
+ const [r, i] = S.useState(), { navigator: a } = S.useContext(_s), o = Kt(), s = () => {
15421
15396
  i(void 0);
15422
15397
  }, l = () => {
15423
15398
  t(), i(void 0), o(-1);
@@ -15436,8 +15411,7 @@ function Xd(e, t) {
15436
15411
  }
15437
15412
  }, []);
15438
15413
  return S.useEffect(() => {
15439
- if (!e || r || !("block" in a))
15440
- return;
15414
+ if (!e || r || !("block" in a)) return;
15441
15415
  const d = a.block((u) => {
15442
15416
  const f = {
15443
15417
  ...u,
@@ -15480,7 +15454,7 @@ function Kd({
15480
15454
  }
15481
15455
  );
15482
15456
  }
15483
- const pa = S.createContext({
15457
+ const fa = S.createContext({
15484
15458
  width: "",
15485
15459
  blocked: !1,
15486
15460
  setBlocked: (e) => {
@@ -15489,7 +15463,7 @@ const pa = S.createContext({
15489
15463
  },
15490
15464
  close: () => {
15491
15465
  }
15492
- }), Yi = () => $e(pa);
15466
+ }), Yi = () => $e(fa);
15493
15467
  function Dm() {
15494
15468
  const t = Nr().sidePanels, r = [...t];
15495
15469
  return r.push(void 0), /* @__PURE__ */ n(O, { children: r.map((i, a) => /* @__PURE__ */ n(
@@ -15524,7 +15498,7 @@ function eu({
15524
15498
  a && !y ? i(!0) : (u.close(), t?.onClose?.());
15525
15499
  };
15526
15500
  return /* @__PURE__ */ v(
15527
- pa.Provider,
15501
+ fa.Provider,
15528
15502
  {
15529
15503
  value: {
15530
15504
  blocked: a,
@@ -15535,7 +15509,7 @@ function eu({
15535
15509
  },
15536
15510
  children: [
15537
15511
  /* @__PURE__ */ v(
15538
- Un,
15512
+ $n,
15539
15513
  {
15540
15514
  open: !!t,
15541
15515
  onOpenChange: (y) => !y && g(),
@@ -15574,8 +15548,7 @@ function tu(e) {
15574
15548
  setBlocked: r,
15575
15549
  setBlockedNavigationMessage: i
15576
15550
  } = Yi(), a = _e(), o = he(() => a.getParentCollectionIds(e.path), [a, e.path]), s = he(() => {
15577
- if (!e)
15578
- return;
15551
+ if (!e) return;
15579
15552
  let c = e.collection;
15580
15553
  const d = a.getCollection(e.path);
15581
15554
  if (d && (c = d), !c)
@@ -15607,10 +15580,9 @@ function tu(e) {
15607
15580
  }
15608
15581
  ) }) });
15609
15582
  }
15610
- const fa = "new";
15583
+ const ha = "new";
15611
15584
  function ru(e, t) {
15612
- if (t)
15613
- return jd;
15585
+ if (t) return jd;
15614
15586
  const r = !e.selectedSubPath;
15615
15587
  let i;
15616
15588
  return e.width ? i = typeof e.width == "number" ? `${e.width}px` : e.width : e.collection?.sideDialogWidth && (i = typeof e.collection.sideDialogWidth == "number" ? `${e.collection.sideDialogWidth}px` : e.collection.sideDialogWidth), r ? i || (e.collection ? iu(e.collection) : wr) : `calc(${Yd} + ${i ?? wr})`;
@@ -15635,15 +15607,14 @@ function mr(e, t = 0) {
15635
15607
  if (e.dataType === "map" && e.properties) {
15636
15608
  const r = Object.values(e.properties).flatMap((i) => mr(i, t + 1));
15637
15609
  return Math.max(...r);
15638
- } else
15639
- return e.dataType === "array" && e.oneOf ? t + 3 : e.dataType === "array" && e.of ? Array.isArray(e.of) ? Math.max(...e.of.map((r) => mr(r, t + 1))) : mr(e.of, t + 1) : t + 1;
15610
+ } else return e.dataType === "array" && e.oneOf ? t + 3 : e.dataType === "array" && e.of ? Array.isArray(e.of) ? Math.max(...e.of.map((r) => mr(r, t + 1))) : mr(e.of, t + 1) : t + 1;
15640
15611
  }
15641
15612
  const nu = (e, t) => {
15642
15613
  const r = Cr(), i = ce(!1), a = !Ze();
15643
15614
  M(() => {
15644
15615
  if (!e.loading && !i.current) {
15645
15616
  if (console.debug("Initialising side entity controller"), e.isUrlCollectionPath(r.pathname)) {
15646
- const c = r.hash === `#${fa}`, d = e.urlPathToDataPath(r.pathname), u = ou(d, e.collections ?? [], c);
15617
+ const c = r.hash === `#${ha}`, d = e.urlPathToDataPath(r.pathname), u = ou(d, e.collections ?? [], c);
15647
15618
  for (let f = 0; f < u.length; f++) {
15648
15619
  const m = u[f];
15649
15620
  setTimeout(() => {
@@ -15659,7 +15630,7 @@ const nu = (e, t) => {
15659
15630
  }, [t]), s = x((c) => {
15660
15631
  if (c.copy && !c.entityId)
15661
15632
  throw Error("If you want to copy an entity you need to provide an entityId");
15662
- const d = lo(
15633
+ const d = co(
15663
15634
  c.collection ? c.collection.defaultSelectedView : void 0,
15664
15635
  {
15665
15636
  status: c.copy ? "copy" : c.entityId ? "existing" : "new",
@@ -15717,7 +15688,7 @@ function ou(e, t, r) {
15717
15688
  }), a;
15718
15689
  }
15719
15690
  const or = (e, t, r, i) => {
15720
- const a = Ee(e.path), o = e.entityId ? t(`${a}/${e.entityId}/${e.selectedSubPath || ""}`) : t(`${a}#${fa}`), s = r(e.path), l = {
15691
+ const a = Ee(e.path), o = e.entityId ? t(`${a}/${e.entityId}/${e.selectedSubPath || ""}`) : t(`${a}#${ha}`), s = r(e.path), l = {
15721
15692
  ...e,
15722
15693
  path: s
15723
15694
  };
@@ -16055,7 +16026,7 @@ function Rm(e) {
16055
16026
  components: p,
16056
16027
  navigationController: h
16057
16028
  } = e;
16058
- ws(o);
16029
+ vs(o);
16059
16030
  const A = su({
16060
16031
  delegate: c,
16061
16032
  propertyConfigs: f,
@@ -16100,32 +16071,32 @@ function Rm(e) {
16100
16071
  "Response from the server: ",
16101
16072
  E?.message
16102
16073
  ] })
16103
- ] }) : /* @__PURE__ */ n(xo.Provider, { value: k, children: /* @__PURE__ */ n(_o.Provider, { value: _, children: /* @__PURE__ */ n(
16104
- vo.Provider,
16074
+ ] }) : /* @__PURE__ */ n(Eo.Provider, { value: k, children: /* @__PURE__ */ n(xo.Provider, { value: _, children: /* @__PURE__ */ n(
16075
+ ko.Provider,
16105
16076
  {
16106
16077
  value: i,
16107
16078
  children: /* @__PURE__ */ n(
16108
- wo.Provider,
16079
+ vo.Provider,
16109
16080
  {
16110
16081
  value: l,
16111
16082
  children: /* @__PURE__ */ n(
16112
- go.Provider,
16083
+ Ao.Provider,
16113
16084
  {
16114
16085
  value: A,
16115
16086
  children: /* @__PURE__ */ n(
16116
- Kn.Provider,
16087
+ eo.Provider,
16117
16088
  {
16118
16089
  value: s,
16119
16090
  children: /* @__PURE__ */ n(
16120
- bo.Provider,
16091
+ yo.Provider,
16121
16092
  {
16122
16093
  value: g,
16123
16094
  children: /* @__PURE__ */ n(
16124
- yo.Provider,
16095
+ wo.Provider,
16125
16096
  {
16126
16097
  value: y,
16127
16098
  children: /* @__PURE__ */ n(
16128
- Ao.Provider,
16099
+ bo.Provider,
16129
16100
  {
16130
16101
  value: h,
16131
16102
  children: /* @__PURE__ */ n(il, { children: /* @__PURE__ */ n(
@@ -16190,7 +16161,7 @@ const mu = 280, Tm = S.memo(
16190
16161
  }, []), b = x(() => {
16191
16162
  p(!1);
16192
16163
  }, []), _ = m || !!(f && i && h);
16193
- return /* @__PURE__ */ n(na.Provider, { value: {
16164
+ return /* @__PURE__ */ n(oa.Provider, { value: {
16194
16165
  logo: a,
16195
16166
  hasDrawer: u,
16196
16167
  drawerHovered: h,
@@ -16286,7 +16257,7 @@ function fu(e) {
16286
16257
  {
16287
16258
  "aria-label": "Close drawer",
16288
16259
  onClick: () => e.setDrawerOpen(!1),
16289
- children: /* @__PURE__ */ n(vs, {})
16260
+ children: /* @__PURE__ */ n(ks, {})
16290
16261
  }
16291
16262
  )
16292
16263
  }
@@ -16321,7 +16292,7 @@ function fu(e) {
16321
16292
  }
16322
16293
  ),
16323
16294
  /* @__PURE__ */ n(
16324
- Un,
16295
+ $n,
16325
16296
  {
16326
16297
  side: "left",
16327
16298
  transparent: !0,
@@ -16341,7 +16312,7 @@ function hu({
16341
16312
  onClick: o
16342
16313
  }) {
16343
16314
  const l = /* @__PURE__ */ v(
16344
- _s,
16315
+ xs,
16345
16316
  {
16346
16317
  onClick: o,
16347
16318
  style: {
@@ -16464,7 +16435,7 @@ function gu({
16464
16435
  open: c,
16465
16436
  side: "right",
16466
16437
  sideOffset: 28,
16467
- children: /* @__PURE__ */ n(Tn, {})
16438
+ children: /* @__PURE__ */ n(On, {})
16468
16439
  }
16469
16440
  ),
16470
16441
  i && /* @__PURE__ */ n(
@@ -16527,7 +16498,7 @@ function Au({ logo: e }) {
16527
16498
  r ?? "w-[112px] h-[112px]"
16528
16499
  )
16529
16500
  }
16530
- ) : /* @__PURE__ */ n(ia, {})
16501
+ ) : /* @__PURE__ */ n(na, {})
16531
16502
  }
16532
16503
  )
16533
16504
  }
@@ -16557,7 +16528,7 @@ const Om = S.memo(
16557
16528
  {
16558
16529
  path: p + "/*",
16559
16530
  element: /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
16560
- ta,
16531
+ ra,
16561
16532
  {
16562
16533
  isSubCollection: !1,
16563
16534
  parentCollectionIds: [],
@@ -16572,7 +16543,7 @@ const Om = S.memo(
16572
16543
  );
16573
16544
  }
16574
16545
  );
16575
- return /* @__PURE__ */ v(xs, { location: s, children: [
16546
+ return /* @__PURE__ */ v(Es, { location: s, children: [
16576
16547
  d,
16577
16548
  l,
16578
16549
  /* @__PURE__ */ n(
@@ -16618,11 +16589,11 @@ function yu({
16618
16589
  yu.componentType = "AppBar";
16619
16590
  export {
16620
16591
  yu as AppBar,
16621
- na as AppContext,
16622
- oa as ArrayContainer,
16623
- xn as ArrayContainerItem,
16592
+ oa as AppContext,
16593
+ aa as ArrayContainer,
16594
+ En as ArrayContainerItem,
16624
16595
  zd as ArrayCustomShapedFieldBinding,
16625
- Ro as ArrayEnumPreview,
16596
+ To as ArrayEnumPreview,
16626
16597
  dd as ArrayItemOptions,
16627
16598
  _m as ArrayOfMapsPreview,
16628
16599
  pd as ArrayOfReferencesFieldBinding,
@@ -16630,10 +16601,10 @@ export {
16630
16601
  Tl as ArrayOfStorageComponentsPreview,
16631
16602
  Ol as ArrayOfStringsPreview,
16632
16603
  Ml as ArrayOneOfPreview,
16633
- fn as ArrayPropertyEnumPreview,
16634
- mn as ArrayPropertyPreview,
16604
+ hn as ArrayPropertyEnumPreview,
16605
+ pn as ArrayPropertyPreview,
16635
16606
  xm as AsyncPreviewComponent,
16636
- Kn as AuthControllerContext,
16607
+ eo as AuthControllerContext,
16637
16608
  Dd as BlockFieldBinding,
16638
16609
  Gl as BooleanPreview,
16639
16610
  Ys as COLLECTION_PATH_SEPARATOR,
@@ -16651,34 +16622,34 @@ export {
16651
16622
  hu as DrawerNavigationItem,
16652
16623
  yt as EmptyValue,
16653
16624
  Qi as EntityCollectionRowActions,
16654
- Wo as EntityCollectionTable,
16655
- ta as EntityCollectionView,
16625
+ Jo as EntityCollectionTable,
16626
+ ra as EntityCollectionView,
16656
16627
  Hc as EntityCollectionViewActions,
16657
- to as EntityReference,
16658
- Oo as EntityView,
16628
+ ro as EntityReference,
16629
+ Mo as EntityView,
16659
16630
  je as EnumValuesChip,
16660
16631
  pe as ErrorBoundary,
16661
16632
  Ne as ErrorView,
16662
16633
  Pm as FieldCaption,
16663
16634
  Me as FieldHelperText,
16664
16635
  Rm as FireCMS,
16665
- ia as FireCMSLogo,
16636
+ na as FireCMSLogo,
16666
16637
  Mi as FormikArrayContainer,
16667
- ro as GeoPoint,
16638
+ io as GeoPoint,
16668
16639
  ci as IconForView,
16669
16640
  yl as ImagePreview,
16670
16641
  Nd as KeyValueFieldBinding,
16671
- To as KeyValuePreview,
16642
+ Oo as KeyValuePreview,
16672
16643
  ze as LabelWithIcon,
16673
16644
  Id as MapFieldBinding,
16674
16645
  zl as MapPropertyPreview,
16675
16646
  Od as MarkdownFieldBinding,
16676
- Xn as ModeControllerContext,
16647
+ Kn as ModeControllerContext,
16677
16648
  zu as ModeControllerProvider,
16678
- Cn as MultiSelectBinding,
16649
+ Bn as MultiSelectBinding,
16679
16650
  Yc as NavigationCard,
16680
16651
  Uc as NavigationCardBinding,
16681
- _n as NavigationGroup,
16652
+ xn as NavigationGroup,
16682
16653
  Om as NavigationRoutes,
16683
16654
  sd as NotFoundPage,
16684
16655
  jl as NumberPropertyPreview,
@@ -16686,7 +16657,7 @@ export {
16686
16657
  Dt as PropertyFieldBinding,
16687
16658
  Fe as PropertyPreview,
16688
16659
  gc as PropertyTableCell,
16689
- sa as ReadOnlyFieldBinding,
16660
+ la as ReadOnlyFieldBinding,
16690
16661
  xd as ReferenceFieldBinding,
16691
16662
  et as ReferencePreview,
16692
16663
  Gc as ReferenceSelectionTable,
@@ -16694,17 +16665,17 @@ export {
16694
16665
  Qd as RepeatFieldBinding,
16695
16666
  Tm as Scaffold,
16696
16667
  Fm as SearchIconsView,
16697
- En as SelectFieldBinding,
16668
+ Cn as SelectFieldBinding,
16698
16669
  Rc as SelectableTable,
16699
- Yo as SelectableTableContext,
16670
+ Lo as SelectableTableContext,
16700
16671
  Dm as SideDialogs,
16701
16672
  Ct as SkeletonPropertyComponent,
16702
16673
  Lc as SmallNavigationCard,
16703
16674
  Mu as SnackbarProvider,
16704
16675
  Bl as StorageThumbnail,
16705
16676
  Il as StorageThumbnailInternal,
16706
- Bn as StorageUploadFieldBinding,
16707
- Qo as StringPropertyPreview,
16677
+ Sn as StorageUploadFieldBinding,
16678
+ Do as StringPropertyPreview,
16708
16679
  kd as SwitchFieldBinding,
16709
16680
  Vt as TextFieldBinding,
16710
16681
  Ar as UrlComponentPreview,
@@ -16726,15 +16697,15 @@ export {
16726
16697
  om as buildProperty,
16727
16698
  $t as canCreateEntity,
16728
16699
  Fi as canDeleteEntity,
16729
- mo as canEditEntity,
16730
- Ko as copyEntityAction,
16700
+ po as canEditEntity,
16701
+ ea as copyEntityAction,
16731
16702
  js as defaultDateFormat,
16732
- ea as deleteEntityAction,
16703
+ ta as deleteEntityAction,
16733
16704
  ol as deleteEntityWithCallbacks,
16734
16705
  Vc as editEntityAction,
16735
16706
  ht as enumToObjectEntries,
16736
- sn as flattenObject,
16737
- co as fullPathToCollectionSegments,
16707
+ ln as flattenObject,
16708
+ uo as fullPathToCollectionSegments,
16738
16709
  Xs as getArrayValuesCount,
16739
16710
  em as getBracketNotation,
16740
16711
  Ci as getCollectionByPathOrId,
@@ -16746,14 +16717,14 @@ export {
16746
16717
  Gi as getDefaultFieldId,
16747
16718
  tm as getDefaultPropertiesOrder,
16748
16719
  Br as getDefaultValueFor,
16749
- no as getDefaultValueForDataType,
16720
+ oo as getDefaultValueForDataType,
16750
16721
  hr as getDefaultValuesFor,
16751
16722
  Zs as getEntityImagePreviewPropertyKey,
16752
16723
  Hs as getEntityPreviewKeys,
16753
- po as getEntityTitlePropertyKey,
16724
+ fo as getEntityTitlePropertyKey,
16754
16725
  Qr as getFieldConfig,
16755
- la as getFieldId,
16756
- io as getHashValue,
16726
+ ca as getFieldId,
16727
+ no as getHashValue,
16757
16728
  Js as getIcon,
16758
16729
  De as getIconForProperty,
16759
16730
  si as getIconForWidget,
@@ -16764,7 +16735,7 @@ export {
16764
16735
  wt as getPropertyInPath,
16765
16736
  ur as getRandomId,
16766
16737
  ut as getReferenceFrom,
16767
- uo as getResolvedPropertyInPath,
16738
+ mo as getResolvedPropertyInPath,
16768
16739
  bm as getSidePanelKey,
16769
16740
  dt as getValueInPath,
16770
16741
  Us as hydrateRegExp,
@@ -16785,46 +16756,46 @@ export {
16785
16756
  rl as mergeCollection,
16786
16757
  He as mergeDeep,
16787
16758
  Bm as openWebsiteAction,
16788
- Ds as pick,
16759
+ Rs as pick,
16789
16760
  rm as plural,
16790
- ho as printChanged,
16761
+ go as printChanged,
16791
16762
  vc as propertiesToColumns,
16792
16763
  Wu as randomColor,
16793
16764
  Ut as randomString,
16794
16765
  rn as removeFunctions,
16795
16766
  Yu as removeInPath,
16796
16767
  Ee as removeInitialAndTrailingSlashes,
16797
- Ps as removeInitialSlash,
16798
- Rs as removePropsIfExisting,
16799
- Qs as removeTrailingSlash,
16768
+ Qs as removeInitialSlash,
16769
+ an as removePropsIfExisting,
16770
+ Ds as removeTrailingSlash,
16800
16771
  nn as removeUndefined,
16801
16772
  km as renderSkeletonCaptionText,
16802
- Po as renderSkeletonIcon,
16803
- Fo as renderSkeletonImageThumbnail,
16773
+ Qo as renderSkeletonIcon,
16774
+ Po as renderSkeletonImageThumbnail,
16804
16775
  ct as renderSkeletonText,
16805
16776
  At as resolveArrayProperty,
16806
16777
  Le as resolveCollection,
16807
- eo as resolveCollectionPathIds,
16808
- lo as resolveDefaultSelectedView,
16809
- ua as resolveEntityView,
16778
+ to as resolveCollectionPathIds,
16779
+ co as resolveDefaultSelectedView,
16780
+ ma as resolveEntityView,
16810
16781
  Qm as resolveEnumValues,
16811
16782
  al as resolveNavigationFrom,
16812
16783
  Ir as resolvePermissions,
16813
- ca as resolveProperties,
16784
+ da as resolveProperties,
16814
16785
  Ye as resolveProperty,
16815
- da as resolvePropertyEnum,
16786
+ ua as resolvePropertyEnum,
16816
16787
  Lu as sanitizeData,
16817
- Co as saveEntityWithCallbacks,
16788
+ Bo as saveEntityWithCallbacks,
16818
16789
  Ls as segmentsToStrippedPath,
16819
16790
  Hu as serializeRegExp,
16820
16791
  im as singular,
16821
16792
  ai as slugify,
16822
- so as sortProperties,
16823
- an as stripCollectionPath,
16793
+ lo as sortProperties,
16794
+ sn as stripCollectionPath,
16824
16795
  $u as toKebabCase,
16825
16796
  qu as toSnakeCase,
16826
16797
  oi as traverseValueProperty,
16827
- oo as traverseValuesProperties,
16798
+ ao as traverseValuesProperties,
16828
16799
  Ju as unslugify,
16829
16800
  Ts as updateDateAutoValues,
16830
16801
  Oi as useApp,
@@ -16836,14 +16807,14 @@ export {
16836
16807
  qe as useClearRestoreValue,
16837
16808
  ll as useClipboard,
16838
16809
  fm as useCollectionFetch,
16839
- Uo as useColumnIds,
16810
+ $o as useColumnIds,
16840
16811
  fe as useCustomizationController,
16841
16812
  tt as useDataSource,
16842
- Jo as useDataSourceEntityCollectionTableController,
16813
+ Ho as useDataSourceEntityCollectionTableController,
16843
16814
  Ni as useDebouncedCallback,
16844
16815
  Mc as useDebouncedData,
16845
16816
  nl as useDialogsController,
16846
- Eo as useEntityFetch,
16817
+ Co as useEntityFetch,
16847
16818
  Re as useFireCMSContext,
16848
16819
  Ze as useLargeLayout,
16849
16820
  sl as useModeController,
@@ -16851,13 +16822,13 @@ export {
16851
16822
  rr as useReferenceDialog,
16852
16823
  hm as useResolvedNavigationFrom,
16853
16824
  fc as useSelectableTableController,
16854
- Ho as useSelectionController,
16825
+ Zo as useSelectionController,
16855
16826
  Yi as useSideDialogContext,
16856
16827
  Nr as useSideDialogsController,
16857
16828
  Ft as useSideEntityController,
16858
16829
  gt as useSnackbarController,
16859
16830
  tr as useStorageSource,
16860
- Zo as useTableSearchHelper,
16831
+ Xo as useTableSearchHelper,
16861
16832
  pm as useTraceUpdate,
16862
16833
  vm as useValidateAuthenticator
16863
16834
  };