@entropic-bond/crud-panel 4.4.3 → 4.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- class Pe {
1
+ class Se {
2
2
  constructor() {
3
3
  this.subscribers = /* @__PURE__ */ new Set();
4
4
  }
@@ -74,8 +74,8 @@ var _t = Object.defineProperty, yt = (n, t, s, a) => {
74
74
  for (var c = void 0, p = n.length - 1, O; p >= 0; p--)
75
75
  (O = n[p]) && (c = O(t, s, c) || c);
76
76
  return c && _t(t, s, c), c;
77
- }, k;
78
- const tt = (k = class {
77
+ }, A;
78
+ const tt = (A = class {
79
79
  /**
80
80
  * Registers a class to be used by the persistence engine.
81
81
  * @param className the name of the class to be registered
@@ -120,7 +120,7 @@ const tt = (k = class {
120
120
  }
121
121
  /**
122
122
  * Returns the names of all registered classes that extend a given class
123
- * @param derivedFrom the class to be extended
123
+ * @param derivedFrom the parent class to be queried
124
124
  * @returns the names of all registered classes that extend the given class
125
125
  * @see registerFactory
126
126
  * @see classFactory
@@ -136,7 +136,7 @@ const tt = (k = class {
136
136
  * @see registerFactory
137
137
  */
138
138
  static annotations(n) {
139
- if (n instanceof k ? n = n.className : typeof n == "string" || (n = new n().className), !this._factoryMap[n]) throw new Error(`You should register class ${n} prior to use.`);
139
+ if (n instanceof A ? n = n.className : typeof n == "string" || (n = new n().className), !this._factoryMap[n]) throw new Error(`You should register class ${n} prior to use.`);
140
140
  return this._factoryMap[n].annotation;
141
141
  }
142
142
  /**
@@ -272,7 +272,7 @@ const tt = (k = class {
272
272
  if (!this.className) throw new Error(`You should register \`${this.constructor.name || this.toString() || "this"}\` class prior to streaming it.`);
273
273
  return this._persistentProperties.forEach((s) => {
274
274
  const a = this[s.name], c = this.removeUnderscore(s);
275
- a != null && (s.isReference ? t[c] = this.toReferenceObj(s, n) : t[c] = this.toDeepObj(a, n), s.searchableArray && (t[k.searchableArrayNameFor(c)] = a.map((p) => p.id)));
275
+ a != null && (s.isReference ? t[c] = this.toReferenceObj(s, n) : t[c] = this.toDeepObj(a, n), s.searchableArray && (t[A.searchableArrayNameFor(c)] = a.map((p) => p.id)));
276
276
  }), t.__className = this.className, t;
277
277
  }
278
278
  static searchableArrayNameFor(n) {
@@ -283,11 +283,11 @@ const tt = (k = class {
283
283
  if (Array.isArray(n))
284
284
  return n.map((t) => this.fromDeepObject(t));
285
285
  if (n.__documentReference) {
286
- const t = n, s = k.createInstance(t);
286
+ const t = n, s = A.createInstance(t);
287
287
  return s.__documentReference = n.__documentReference, s;
288
288
  }
289
289
  if (n.__className)
290
- return k.createInstance(n);
290
+ return A.createInstance(n);
291
291
  if (typeof n == "object") {
292
292
  const t = {};
293
293
  return Object.entries(n).forEach(
@@ -301,7 +301,7 @@ const tt = (k = class {
301
301
  if (Array.isArray(n))
302
302
  return n.map((s) => this.toDeepObj(s, t));
303
303
  if (n.__documentReference) return n;
304
- if (n instanceof k)
304
+ if (n instanceof A)
305
305
  return n.toObj(t);
306
306
  if (typeof n == "object") {
307
307
  const s = {};
@@ -312,13 +312,13 @@ const tt = (k = class {
312
312
  return n;
313
313
  }
314
314
  }
315
- static collectionPath(n, t) {
316
- let s;
317
- return typeof t.storeInCollection == "function" ? s = t.storeInCollection(n, t) : s = t.storeInCollection ?? n.className, s;
315
+ static collectionPath(n, t, s) {
316
+ let a;
317
+ return typeof t.storeInCollection == "function" ? a = t.storeInCollection(n, t, s) : a = t.storeInCollection ?? n.className, a;
318
318
  }
319
319
  toReferenceObj(n, t) {
320
320
  const s = this[n.name];
321
- return Array.isArray(s) ? s.map((a) => (n.isPureReference || this.pushDocument(t, k.collectionPath(a, n), a), this.buildRefObject(a, k.collectionPath(a, n), n.cachedPropsConfig?.cachedProps))) : (n.isPureReference || this.pushDocument(t, k.collectionPath(s, n), s), this.buildRefObject(s, k.collectionPath(s, n), n.cachedPropsConfig?.cachedProps));
321
+ return Array.isArray(s) ? s.map((a) => (n.isPureReference || this.pushDocument(t, A.collectionPath(a, n), a), this.buildRefObject(a, A.collectionPath(a, n), n.cachedProps))) : (n.isPureReference || this.pushDocument(t, A.collectionPath(s, n), s), this.buildRefObject(s, A.collectionPath(s, n), n.cachedProps));
322
322
  }
323
323
  buildRefObject(n, t, s) {
324
324
  const a = s?.reduce((c, p) => (n[p] !== void 0 && (c[p] = n[p]), c), {});
@@ -341,14 +341,14 @@ const tt = (k = class {
341
341
  return n.name.slice(1);
342
342
  }
343
343
  static createReference(n) {
344
- const t = k.createInstance(n);
344
+ const t = A.createInstance(n);
345
345
  return t.__documentReference = n.__documentReference || { storedInCollection: t.className }, t;
346
346
  }
347
347
  static createInstance(n) {
348
348
  if (typeof n == "string")
349
- return new (k.classFactory(n))();
349
+ return new (A.classFactory(n))();
350
350
  try {
351
- return new (k.classFactory(n.__className))().fromObject(n);
351
+ return new (A.classFactory(n.__className))().fromObject(n);
352
352
  } catch (t) {
353
353
  const s = Object.entries(n).filter(([a, c]) => c != null && typeof c != "function").map(([a, c]) => `${a}: ${c}`).join(`,
354
354
  `);
@@ -361,21 +361,41 @@ const tt = (k = class {
361
361
  }
362
362
  }
363
363
  static propInfo(n, t) {
364
- return k.createInstance(n).getPropInfo(t);
364
+ return A.createInstance(n).getPropInfo(t);
365
+ }
366
+ /**
367
+ * Return the type of a persistent property.
368
+ * Several strategies are used to determine the type:
369
+ * - If the typeName is defined in the property info a decorator, it is used
370
+ * - If the property value is an array, the type of the first element is used
371
+ * - If the property value is a Persistent instance, its class name is used
372
+ * - Otherwise, the typeof operator is used to determine the type
373
+ * @param propInfo the persistent property info to retrieve the type
374
+ * @returns the type of the property or the type of the first element if the property is an array or undefined if cannot be determined
375
+ */
376
+ static propType(n) {
377
+ if (n.typeName) return Array.isArray(n.typeName) ? "undefined[]" : n.typeName ?? "undefined";
378
+ const t = A.createInstance(n.ownerClassName())[n.name];
379
+ if (Array.isArray(t)) {
380
+ if (t.length === 0) return "undefined[]";
381
+ const s = t[0];
382
+ return s instanceof A ? s.className + "[]" : typeof s + "[]";
383
+ } else
384
+ return t instanceof A ? t.className : typeof t;
365
385
  }
366
386
  /**
367
387
  * Retrieves a collection of references with the properties that are stored in the reference object
368
388
  * @returns the references collection
369
389
  */
370
390
  static getSystemRegisteredReferencesWithCachedProps() {
371
- return k.registeredClassesAndLegacyNames().reduce((n, t) => {
372
- const s = k.createInstance(t).getPersistentProperties().filter(
373
- (a) => a.cachedPropsConfig?.cachedProps
391
+ return A.registeredClasses().reduce((n, t) => {
392
+ const s = A.createInstance(t).getPersistentProperties().filter(
393
+ (a) => a.cachedProps
374
394
  );
375
395
  return s.length > 0 && (n[t] = s), n;
376
396
  }, {});
377
397
  }
378
- }, k._factoryMap = {}, k);
398
+ }, A._factoryMap = {}, A);
379
399
  yt([
380
400
  he
381
401
  ], tt.prototype, "_id");
@@ -389,6 +409,7 @@ function gt(n) {
389
409
  const a = t._persistentProperties.find((c) => c.name === s);
390
410
  a ? Object.assign(a, n) : t._persistentProperties.push({
391
411
  name: s,
412
+ ownerClassName: () => t.className,
392
413
  ...n
393
414
  });
394
415
  };
@@ -490,7 +511,7 @@ var wt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, pe = (n, t
490
511
  };
491
512
  let ce = class extends rt {
492
513
  constructor() {
493
- super(...arguments), this._onChange = new Pe();
514
+ super(...arguments), this._onChange = new Se();
494
515
  }
495
516
  async save({ data: n, fileName: t, progress: s, cloudStorageProvider: a } = {}) {
496
517
  const c = n || this._pendingData;
@@ -560,7 +581,7 @@ function Ct(n, t = "-") {
560
581
  }
561
582
  class Tt {
562
583
  constructor() {
563
- this._debug = !1, this._stages = {}, this._onProgress = new Pe();
584
+ this._debug = !1, this._stages = {}, this._onProgress = new Se();
564
585
  }
565
586
  notifyBusy(t, s) {
566
587
  this.pushStage({
@@ -590,7 +611,7 @@ class Tt {
590
611
  }
591
612
  const ne = class ne {
592
613
  constructor(t) {
593
- this.progressController = new Tt(), this.onChangeHdl = new Pe(), this.onErrorHdl = new Pe(), this.validator = {}, this.setDocument(t || this.createDocument());
614
+ this.progressController = new Tt(), this.onChangeHdl = new Se(), this.onErrorHdl = new Se(), this.validator = {}, this.setDocument(t || this.createDocument());
594
615
  }
595
616
  allRequiredPropertiesFilled() {
596
617
  return this.nonFilledRequiredProperties.length <= 0 && this.validateGlobal();
@@ -796,8 +817,8 @@ function Ot() {
796
817
  var O = null;
797
818
  if (p !== void 0 && (O = "" + p), c.key !== void 0 && (O = "" + c.key), "key" in c) {
798
819
  p = {};
799
- for (var P in c)
800
- P !== "key" && (p[P] = c[P]);
820
+ for (var S in c)
821
+ S !== "key" && (p[S] = c[S]);
801
822
  } else p = c;
802
823
  return c = p.ref, {
803
824
  $$typeof: n,
@@ -811,11 +832,11 @@ function Ot() {
811
832
  }
812
833
  var ye = {}, Oe = { exports: {} }, _ = {};
813
834
  var Xe;
814
- function Pt() {
835
+ function St() {
815
836
  if (Xe) return _;
816
837
  Xe = 1;
817
- var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), O = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), V = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), $ = Symbol.iterator;
818
- function H(r) {
838
+ var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), O = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), V = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), $ = Symbol.iterator;
839
+ function U(r) {
819
840
  return r === null || typeof r != "object" ? null : (r = $ && r[$] || r["@@iterator"], typeof r == "function" ? r : null);
820
841
  }
821
842
  var Q = {
@@ -847,8 +868,8 @@ function Pt() {
847
868
  function se(r, i, f) {
848
869
  this.props = r, this.context = i, this.refs = X, this.updater = f || Q;
849
870
  }
850
- var J = se.prototype = new K();
851
- J.constructor = se, oe(J, W.prototype), J.isPureReactComponent = !0;
871
+ var Z = se.prototype = new K();
872
+ Z.constructor = se, oe(Z, W.prototype), Z.isPureReactComponent = !0;
852
873
  var F = Array.isArray;
853
874
  function ie() {
854
875
  }
@@ -863,7 +884,7 @@ function Pt() {
863
884
  props: f
864
885
  };
865
886
  }
866
- function Z(r, i) {
887
+ function J(r, i) {
867
888
  return N(r.type, i, r.props);
868
889
  }
869
890
  function ue(r) {
@@ -933,7 +954,7 @@ function Pt() {
933
954
  if (m)
934
955
  return g = g(r), m = d === "" ? "." + z(r, 0) : d, F(g) ? (f = "", m != null && (f = m.replace(ee, "$&/") + "/"), M(g, i, f, "", function(G) {
935
956
  return G;
936
- })) : g != null && (ue(g) && (g = Z(
957
+ })) : g != null && (ue(g) && (g = J(
937
958
  g,
938
959
  f + (g.key == null || r && r.key === g.key ? "" : ("" + g.key).replace(
939
960
  ee,
@@ -941,19 +962,19 @@ function Pt() {
941
962
  ) + "/") + m
942
963
  )), i.push(g)), 1;
943
964
  m = 0;
944
- var A = d === "" ? "." : d + ":";
965
+ var k = d === "" ? "." : d + ":";
945
966
  if (F(r))
946
- for (var S = 0; S < r.length; S++)
947
- d = r[S], w = A + z(d, S), m += M(
967
+ for (var P = 0; P < r.length; P++)
968
+ d = r[P], w = k + z(d, P), m += M(
948
969
  d,
949
970
  i,
950
971
  f,
951
972
  w,
952
973
  g
953
974
  );
954
- else if (S = H(r), typeof S == "function")
955
- for (r = S.call(r), S = 0; !(d = r.next()).done; )
956
- d = d.value, w = A + z(d, S++), m += M(
975
+ else if (P = U(r), typeof P == "function")
976
+ for (r = P.call(r), P = 0; !(d = r.next()).done; )
977
+ d = d.value, w = k + z(d, P++), m += M(
957
978
  d,
958
979
  i,
959
980
  f,
@@ -1064,8 +1085,8 @@ function Pt() {
1064
1085
  var w = arguments.length - 2;
1065
1086
  if (w === 1) d.children = f;
1066
1087
  else if (1 < w) {
1067
- for (var m = Array(w), A = 0; A < w; A++)
1068
- m[A] = arguments[A + 2];
1088
+ for (var m = Array(w), k = 0; k < w; k++)
1089
+ m[k] = arguments[k + 2];
1069
1090
  d.children = m;
1070
1091
  }
1071
1092
  return N(r.type, g, d);
@@ -1089,9 +1110,9 @@ function Pt() {
1089
1110
  var m = arguments.length - 2;
1090
1111
  if (m === 1) g.children = f;
1091
1112
  else if (1 < m) {
1092
- for (var A = Array(m), S = 0; S < m; S++)
1093
- A[S] = arguments[S + 2];
1094
- g.children = A;
1113
+ for (var k = Array(m), P = 0; P < m; P++)
1114
+ k[P] = arguments[P + 2];
1115
+ g.children = k;
1095
1116
  }
1096
1117
  if (r && r.defaultProps)
1097
1118
  for (d in m = r.defaultProps, m)
@@ -1100,7 +1121,7 @@ function Pt() {
1100
1121
  }, _.createRef = function() {
1101
1122
  return { current: null };
1102
1123
  }, _.forwardRef = function(r) {
1103
- return { $$typeof: P, render: r };
1124
+ return { $$typeof: S, render: r };
1104
1125
  }, _.isValidElement = ue, _.lazy = function(r) {
1105
1126
  return {
1106
1127
  $$typeof: I,
@@ -1172,7 +1193,7 @@ function Pt() {
1172
1193
  var ve = { exports: {} };
1173
1194
  ve.exports;
1174
1195
  var Ke;
1175
- function St() {
1196
+ function Pt() {
1176
1197
  return Ke || (Ke = 1, function(n, t) {
1177
1198
  process.env.NODE_ENV !== "production" && function() {
1178
1199
  function s(e, o) {
@@ -1199,12 +1220,12 @@ function St() {
1199
1220
  ), Me[u] = !0);
1200
1221
  }
1201
1222
  function p(e, o, u) {
1202
- this.props = e, this.context = o, this.refs = Se, this.updater = u || Ie;
1223
+ this.props = e, this.context = o, this.refs = Pe, this.updater = u || Ie;
1203
1224
  }
1204
1225
  function O() {
1205
1226
  }
1206
- function P(e, o, u) {
1207
- this.props = e, this.context = o, this.refs = Se, this.updater = u || Ie;
1227
+ function S(e, o, u) {
1228
+ this.props = e, this.context = o, this.refs = Pe, this.updater = u || Ie;
1208
1229
  }
1209
1230
  function D() {
1210
1231
  }
@@ -1242,7 +1263,7 @@ function St() {
1242
1263
  return "StrictMode";
1243
1264
  case m:
1244
1265
  return "Suspense";
1245
- case A:
1266
+ case k:
1246
1267
  return "SuspenseList";
1247
1268
  case De:
1248
1269
  return "Activity";
@@ -1260,7 +1281,7 @@ function St() {
1260
1281
  case w:
1261
1282
  var o = e.render;
1262
1283
  return e = e.displayName, e || (e = o.displayName || o.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
1263
- case S:
1284
+ case P:
1264
1285
  return o = e.displayName || null, o !== null ? o : L(e.type) || "Memo";
1265
1286
  case G:
1266
1287
  o = e._payload, e = e._init;
@@ -1282,7 +1303,7 @@ function St() {
1282
1303
  return "<...>";
1283
1304
  }
1284
1305
  }
1285
- function H() {
1306
+ function U() {
1286
1307
  var e = v.A;
1287
1308
  return e === null ? null : e.getOwner();
1288
1309
  }
@@ -1298,7 +1319,7 @@ function St() {
1298
1319
  }
1299
1320
  function X(e, o) {
1300
1321
  function u() {
1301
- He || (He = !0, console.error(
1322
+ Ue || (Ue = !0, console.error(
1302
1323
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
1303
1324
  o
1304
1325
  ));
@@ -1357,7 +1378,7 @@ function St() {
1357
1378
  e._debugTask
1358
1379
  ), e._store && (o._store.validated = e._store.validated), o;
1359
1380
  }
1360
- function J(e) {
1381
+ function Z(e) {
1361
1382
  F(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === G && (e._payload.status === "fulfilled" ? F(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
1362
1383
  }
1363
1384
  function F(e) {
@@ -1471,7 +1492,7 @@ function St() {
1471
1492
  }
1472
1493
  return y;
1473
1494
  }
1474
- function Z(e, o, u) {
1495
+ function J(e, o, u) {
1475
1496
  if (e == null) return e;
1476
1497
  var l = [], h = 0;
1477
1498
  return N(e, l, "", "", function(E) {
@@ -1606,7 +1627,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1606
1627
  }
1607
1628
  }
1608
1629
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1609
- var B = Symbol.for("react.transitional.element"), ae = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), d = Symbol.for("react.consumer"), g = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), De = Symbol.for("react.activity"), Ne = Symbol.iterator, Me = {}, Ie = {
1630
+ var B = Symbol.for("react.transitional.element"), ae = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), d = Symbol.for("react.consumer"), g = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), De = Symbol.for("react.activity"), Ne = Symbol.iterator, Me = {}, Ie = {
1610
1631
  isMounted: function() {
1611
1632
  return !1;
1612
1633
  },
@@ -1619,8 +1640,8 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1619
1640
  enqueueSetState: function(e) {
1620
1641
  c(e, "setState");
1621
1642
  }
1622
- }, Le = Object.assign, Se = {};
1623
- Object.freeze(Se), p.prototype.isReactComponent = {}, p.prototype.setState = function(e, o) {
1643
+ }, Le = Object.assign, Pe = {};
1644
+ Object.freeze(Pe), p.prototype.isReactComponent = {}, p.prototype.setState = function(e, o) {
1624
1645
  if (typeof e != "object" && typeof e != "function" && e != null)
1625
1646
  throw Error(
1626
1647
  "takes an object of state variables to update or a function which returns an object of state variables."
@@ -1641,7 +1662,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1641
1662
  };
1642
1663
  for (me in Y)
1643
1664
  Y.hasOwnProperty(me) && s(me, Y[me]);
1644
- O.prototype = p.prototype, Y = P.prototype = new O(), Y.constructor = P, Le(Y, p.prototype), Y.isPureReactComponent = !0;
1665
+ O.prototype = p.prototype, Y = S.prototype = new O(), Y.constructor = S, Le(Y, p.prototype), Y.isPureReactComponent = !0;
1645
1666
  var Ye = Array.isArray, st = Symbol.for("react.client.reference"), v = {
1646
1667
  H: null,
1647
1668
  A: null,
@@ -1655,7 +1676,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1655
1676
  thrownErrors: [],
1656
1677
  getCurrentStack: null,
1657
1678
  recentlyCreatedOwnerStacks: 0
1658
- }, be = Object.prototype.hasOwnProperty, Ue = console.createTask ? console.createTask : function() {
1679
+ }, be = Object.prototype.hasOwnProperty, He = console.createTask ? console.createTask : function() {
1659
1680
  return null;
1660
1681
  };
1661
1682
  Y = {
@@ -1663,10 +1684,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1663
1684
  return e();
1664
1685
  }
1665
1686
  };
1666
- var He, Fe, qe = {}, it = Y.react_stack_bottom_frame.bind(
1687
+ var Ue, Fe, qe = {}, it = Y.react_stack_bottom_frame.bind(
1667
1688
  Y,
1668
1689
  Q
1669
- )(), ut = Ue($(Q)), xe = !1, $e = /\/+/g, We = typeof reportError == "function" ? reportError : function(e) {
1690
+ )(), ut = He($(Q)), xe = !1, $e = /\/+/g, We = typeof reportError == "function" ? reportError : function(e) {
1670
1691
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
1671
1692
  var o = new window.ErrorEvent("error", {
1672
1693
  bubbles: !0,
@@ -1692,9 +1713,9 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1692
1713
  }
1693
1714
  });
1694
1715
  var me = {
1695
- map: Z,
1716
+ map: J,
1696
1717
  forEach: function(e, o, u) {
1697
- Z(
1718
+ J(
1698
1719
  e,
1699
1720
  function() {
1700
1721
  o.apply(this, arguments);
@@ -1704,12 +1725,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1704
1725
  },
1705
1726
  count: function(e) {
1706
1727
  var o = 0;
1707
- return Z(e, function() {
1728
+ return J(e, function() {
1708
1729
  o++;
1709
1730
  }), o;
1710
1731
  },
1711
1732
  toArray: function(e) {
1712
- return Z(e, function(o) {
1733
+ return J(e, function(o) {
1713
1734
  return o;
1714
1735
  }) || [];
1715
1736
  },
@@ -1721,7 +1742,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1721
1742
  return e;
1722
1743
  }
1723
1744
  };
1724
- t.Activity = De, t.Children = me, t.Component = p, t.Fragment = r, t.Profiler = f, t.PureComponent = P, t.StrictMode = i, t.Suspense = m, t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = v, t.__COMPILER_RUNTIME = Y, t.act = function(e) {
1745
+ t.Activity = De, t.Children = me, t.Component = p, t.Fragment = r, t.Profiler = f, t.PureComponent = S, t.StrictMode = i, t.Suspense = m, t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = v, t.__COMPILER_RUNTIME = Y, t.act = function(e) {
1725
1746
  var o = v.actQueue, u = Re;
1726
1747
  Re++;
1727
1748
  var l = v.actQueue = o !== null ? o : [], h = !1;
@@ -1816,7 +1837,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1816
1837
  }
1817
1838
  y = o.ref !== void 0;
1818
1839
  }
1819
- y && (E = H()), oe(o) && (I(o.key), h = "" + o.key);
1840
+ y && (E = U()), oe(o) && (I(o.key), h = "" + o.key);
1820
1841
  for (T in o)
1821
1842
  !be.call(o, T) || T === "key" || T === "__self" || T === "__source" || T === "ref" && o.ref === void 0 || (l[T] = o[T]);
1822
1843
  }
@@ -1836,7 +1857,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1836
1857
  e._debugStack,
1837
1858
  e._debugTask
1838
1859
  ), h = 2; h < arguments.length; h++)
1839
- J(arguments[h]);
1860
+ Z(arguments[h]);
1840
1861
  return l;
1841
1862
  }, t.createContext = function(e) {
1842
1863
  return e = {
@@ -1852,7 +1873,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1852
1873
  }, e._currentRenderer = null, e._currentRenderer2 = null, e;
1853
1874
  }, t.createElement = function(e, o, u) {
1854
1875
  for (var l = 2; l < arguments.length; l++)
1855
- J(arguments[l]);
1876
+ Z(arguments[l]);
1856
1877
  l = {};
1857
1878
  var h = null;
1858
1879
  if (o != null)
@@ -1879,15 +1900,15 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1879
1900
  e,
1880
1901
  h,
1881
1902
  l,
1882
- H(),
1903
+ U(),
1883
1904
  b ? Error("react-stack-top-frame") : it,
1884
- b ? Ue($(e)) : ut
1905
+ b ? He($(e)) : ut
1885
1906
  );
1886
1907
  }, t.createRef = function() {
1887
1908
  var e = { current: null };
1888
1909
  return Object.seal(e), e;
1889
1910
  }, t.forwardRef = function(e) {
1890
- e != null && e.$$typeof === S ? console.error(
1911
+ e != null && e.$$typeof === P ? console.error(
1891
1912
  "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1892
1913
  ) : typeof e != "function" ? console.error(
1893
1914
  "forwardRef requires a render function but was given %s.",
@@ -1930,7 +1951,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
1930
1951
  "memo: The first argument must be a component. Instead received: %s",
1931
1952
  e === null ? "null" : typeof e
1932
1953
  ), o = {
1933
- $$typeof: S,
1954
+ $$typeof: P,
1934
1955
  type: e,
1935
1956
  compare: o === void 0 ? null : o
1936
1957
  };
@@ -2021,13 +2042,13 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
2021
2042
  }();
2022
2043
  }(ve, ve.exports)), ve.exports;
2023
2044
  }
2024
- var Je;
2045
+ var Ze;
2025
2046
  function ot() {
2026
- return Je || (Je = 1, process.env.NODE_ENV === "production" ? Oe.exports = Pt() : Oe.exports = St()), Oe.exports;
2047
+ return Ze || (Ze = 1, process.env.NODE_ENV === "production" ? Oe.exports = St() : Oe.exports = Pt()), Oe.exports;
2027
2048
  }
2028
- var Ze;
2049
+ var Je;
2029
2050
  function At() {
2030
- return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
2051
+ return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
2031
2052
  function n(r) {
2032
2053
  if (r == null) return null;
2033
2054
  if (typeof r == "function")
@@ -2044,7 +2065,7 @@ function At() {
2044
2065
  return "Suspense";
2045
2066
  case R:
2046
2067
  return "SuspenseList";
2047
- case Z:
2068
+ case J:
2048
2069
  return "Activity";
2049
2070
  }
2050
2071
  if (typeof r == "object")
@@ -2053,7 +2074,7 @@ function At() {
2053
2074
  ), r.$$typeof) {
2054
2075
  case oe:
2055
2076
  return "Portal";
2056
- case J:
2077
+ case Z:
2057
2078
  return r.displayName || "Context";
2058
2079
  case se:
2059
2080
  return (r._context.displayName || "Context") + ".Consumer";
@@ -2116,7 +2137,7 @@ function At() {
2116
2137
  }
2117
2138
  return r.key !== void 0;
2118
2139
  }
2119
- function P(r, i) {
2140
+ function S(r, i) {
2120
2141
  function f() {
2121
2142
  M || (M = !0, console.error(
2122
2143
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
@@ -2182,10 +2203,10 @@ function At() {
2182
2203
  else L(m);
2183
2204
  if (ee.call(i, "key")) {
2184
2205
  m = n(r);
2185
- var A = Object.keys(i).filter(function(G) {
2206
+ var k = Object.keys(i).filter(function(G) {
2186
2207
  return G !== "key";
2187
2208
  });
2188
- d = 0 < A.length ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}", ae[m + d] || (A = 0 < A.length ? "{" + A.join(": ..., ") + ": ...}" : "{}", console.error(
2209
+ d = 0 < k.length ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}", ae[m + d] || (k = 0 < k.length ? "{" + k.join(": ..., ") + ": ...}" : "{}", console.error(
2189
2210
  `A props object containing a "key" prop is being spread into JSX:
2190
2211
  let props = %s;
2191
2212
  <%s {...props} />
@@ -2194,16 +2215,16 @@ React keys must be passed directly to JSX without using spread:
2194
2215
  <%s key={someKey} {...props} />`,
2195
2216
  d,
2196
2217
  m,
2197
- A,
2218
+ k,
2198
2219
  m
2199
2220
  ), ae[m + d] = !0);
2200
2221
  }
2201
2222
  if (m = null, f !== void 0 && (s(f), m = "" + f), O(i) && (s(i.key), m = "" + i.key), "key" in i) {
2202
2223
  f = {};
2203
- for (var S in i)
2204
- S !== "key" && (f[S] = i[S]);
2224
+ for (var P in i)
2225
+ P !== "key" && (f[P] = i[P]);
2205
2226
  } else f = i;
2206
- return m && P(
2227
+ return m && S(
2207
2228
  f,
2208
2229
  typeof r == "function" ? r.displayName || r.name || "Unknown" : r
2209
2230
  ), V(
@@ -2221,16 +2242,16 @@ React keys must be passed directly to JSX without using spread:
2221
2242
  function $(r) {
2222
2243
  return typeof r == "object" && r !== null && r.$$typeof === Q;
2223
2244
  }
2224
- var H = ot(), Q = Symbol.for("react.transitional.element"), oe = Symbol.for("react.portal"), X = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), se = Symbol.for("react.consumer"), J = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), ie = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), le = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), ue = Symbol.for("react.client.reference"), C = H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, z = Array.isArray, q = console.createTask ? console.createTask : function() {
2245
+ var U = ot(), Q = Symbol.for("react.transitional.element"), oe = Symbol.for("react.portal"), X = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), se = Symbol.for("react.consumer"), Z = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), ie = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), le = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), J = Symbol.for("react.activity"), ue = Symbol.for("react.client.reference"), C = U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, z = Array.isArray, q = console.createTask ? console.createTask : function() {
2225
2246
  return null;
2226
2247
  };
2227
- H = {
2248
+ U = {
2228
2249
  react_stack_bottom_frame: function(r) {
2229
2250
  return r();
2230
2251
  }
2231
2252
  };
2232
- var M, x = {}, te = H.react_stack_bottom_frame.bind(
2233
- H,
2253
+ var M, x = {}, te = U.react_stack_bottom_frame.bind(
2254
+ U,
2234
2255
  p
2235
2256
  )(), B = q(a(p)), ae = {};
2236
2257
  ye.Fragment = X, ye.jsx = function(r, i, f) {
@@ -2260,7 +2281,7 @@ var et;
2260
2281
  function kt() {
2261
2282
  return et || (et = 1, process.env.NODE_ENV === "production" ? Te.exports = Ot() : Te.exports = At()), Te.exports;
2262
2283
  }
2263
- var U = kt(), ge = ot();
2284
+ var H = kt(), ge = ot();
2264
2285
  class jt extends ge.Component {
2265
2286
  constructor(t) {
2266
2287
  super(t), this.unfilteredDocuments = [], this.state = {
@@ -2306,7 +2327,7 @@ class jt extends ge.Component {
2306
2327
  invokeContentViewChild(t) {
2307
2328
  const { children: s, layout: a, controller: c } = this.props, { mode: p } = this.state, O = a !== "formAndItems";
2308
2329
  if (!c.document) return;
2309
- const P = {
2330
+ const S = {
2310
2331
  controller: c,
2311
2332
  submitButtonCaption: p == 2 ? t?.updateButtonLabel : t?.addButtonLabel,
2312
2333
  onSubmit: (D) => this.storeDocument(D),
@@ -2315,7 +2336,7 @@ class jt extends ge.Component {
2315
2336
  /* normal */
2316
2337
  }) : () => this.newDocument()
2317
2338
  };
2318
- return typeof s[0] == "function" ? ge.cloneElement(s[0](P), { key: c.document.id }) : ge.cloneElement(s[0], { key: c.document.id, ...P });
2339
+ return typeof s[0] == "function" ? ge.cloneElement(s[0](S), { key: c.document.id }) : ge.cloneElement(s[0], { key: c.document.id, ...S });
2319
2340
  }
2320
2341
  invokeDetailViewChild(t) {
2321
2342
  const { children: s, controller: a } = this.props, c = {
@@ -2327,31 +2348,31 @@ class jt extends ge.Component {
2327
2348
  }
2328
2349
  render() {
2329
2350
  const { mode: t, documents: s } = this.state, { className: a, cardAddButton: c, controller: p } = this.props, O = Ct(p.document?.className);
2330
- let P = this.props.labels || {};
2351
+ let S = this.props.labels || {};
2331
2352
  const D = this.props.layout || "itemsAlways";
2332
- typeof P == "function" && (P = P(p));
2333
- const { addNewDocumentLabel: V, singularDocumentInCollectionCaption: I, documentsInCollectionCaption: L, noDocumentsFoundLabel: $ } = P;
2334
- return /* @__PURE__ */ U.jsxs("div", { className: `crud-panel ${O} ${a || ""}`, children: [
2335
- t === 0 && D !== "formAndItems" && !c && /* @__PURE__ */ U.jsx("div", { className: "header", children: this.props.header ? typeof this.props.header == "function" ? this.props.header(p, () => this.newDocument(), P) : this.props.header : /* @__PURE__ */ U.jsx("button", { onClick: () => this.newDocument(), children: V }) }),
2336
- (D === "formAndItems" || t === 1 || t === 2) && /* @__PURE__ */ U.jsx("div", { className: "content-panel", children: this.invokeContentViewChild(P) }),
2337
- (D === "itemsAlways" || D === "formAndItems" || t === 0) && /* @__PURE__ */ U.jsxs("div", { className: "collection-panel", children: [
2338
- s?.length > 0 && /* @__PURE__ */ U.jsx("h3", { children: s.length > 1 ? L : I || L }),
2339
- /* @__PURE__ */ U.jsxs("div", { className: "documents", children: [
2340
- c && /* @__PURE__ */ U.jsxs(
2353
+ typeof S == "function" && (S = S(p));
2354
+ const { addNewDocumentLabel: V, singularDocumentInCollectionCaption: I, documentsInCollectionCaption: L, noDocumentsFoundLabel: $ } = S;
2355
+ return /* @__PURE__ */ H.jsxs("div", { className: `crud-panel ${O} ${a || ""}`, children: [
2356
+ t === 0 && D !== "formAndItems" && !c && /* @__PURE__ */ H.jsx("div", { className: "header", children: this.props.header ? typeof this.props.header == "function" ? this.props.header(p, () => this.newDocument(), S) : this.props.header : /* @__PURE__ */ H.jsx("button", { onClick: () => this.newDocument(), children: V }) }),
2357
+ (D === "formAndItems" || t === 1 || t === 2) && /* @__PURE__ */ H.jsx("div", { className: "content-panel", children: this.invokeContentViewChild(S) }),
2358
+ (D === "itemsAlways" || D === "formAndItems" || t === 0) && /* @__PURE__ */ H.jsxs("div", { className: "collection-panel", children: [
2359
+ s?.length > 0 && /* @__PURE__ */ H.jsx("h3", { children: s.length > 1 ? L : I || L }),
2360
+ /* @__PURE__ */ H.jsxs("div", { className: "documents", children: [
2361
+ c && /* @__PURE__ */ H.jsxs(
2341
2362
  "div",
2342
2363
  {
2343
2364
  className: "crud-card card-add-button clickable",
2344
2365
  onClick: () => this.newDocument(),
2345
2366
  children: [
2346
- /* @__PURE__ */ U.jsx("div", { className: "button-element", children: c }),
2347
- /* @__PURE__ */ U.jsx("div", { className: "add-label", children: V })
2367
+ /* @__PURE__ */ H.jsx("div", { className: "button-element", children: c }),
2368
+ /* @__PURE__ */ H.jsx("div", { className: "add-label", children: V })
2348
2369
  ]
2349
2370
  }
2350
2371
  ),
2351
- s?.length ? s.map((H) => this.invokeDetailViewChild(H)) : /* @__PURE__ */ U.jsx("p", { children: $ })
2372
+ s?.length ? s.map((U) => this.invokeDetailViewChild(U)) : /* @__PURE__ */ H.jsx("p", { children: $ })
2352
2373
  ] })
2353
2374
  ] }),
2354
- /* @__PURE__ */ U.jsx("div", { className: "footer", children: this.props.footer && typeof this.props.footer == "function" ? this.props.footer(p, () => this.newDocument(), P) : this.props.footer })
2375
+ /* @__PURE__ */ H.jsx("div", { className: "footer", children: this.props.footer && typeof this.props.footer == "function" ? this.props.footer(p, () => this.newDocument(), S) : this.props.footer })
2355
2376
  ] });
2356
2377
  }
2357
2378
  }