@firecms/core 3.0.0-alpha.37 → 3.0.0-alpha.38

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,5 +1,5 @@
1
1
  import { jsx as n, jsxs as I, Fragment as O } from "react/jsx-runtime";
2
- import * as pe from "react";
2
+ import * as Ae from "react";
3
3
  import F, { useEffect as Q, useCallback as v, useContext as Ve, useMemo as ie, useState as R, useRef as de, createContext as kr, createElement as mc, useLayoutEffect as yt, createRef as pc, forwardRef as Ac, useDeferredValue as ao } from "react";
4
4
  import * as Jn from "@radix-ui/react-collapsible";
5
5
  import { clsx as _c } from "clsx";
@@ -13,7 +13,7 @@ import { Formik as Kr, Form as xr, setIn as vc, getIn as qt, Field as kc, FastFi
13
13
  import * as Un from "@radix-ui/react-tooltip";
14
14
  import * as Ze from "@radix-ui/react-dialog";
15
15
  import { useDropzone as lo } from "react-dropzone";
16
- import Ae from "react-fast-compare";
16
+ import _e from "react-fast-compare";
17
17
  import Br from "markdown-it";
18
18
  import * as $n from "@radix-ui/react-dropdown-menu";
19
19
  import { Command as mt } from "cmdk";
@@ -9366,22 +9366,22 @@ function Da({
9366
9366
  const l = He(), u = ve().resolveAliasesFrom(e), d = i ? i[0] : void 0, m = i ? i[1] : void 0, p = oe(), [A, f] = R([]), [_, y] = R(!1), [h, g] = R(), [b, w] = R(!1);
9367
9367
  return Q(() => {
9368
9368
  y(!0);
9369
- const x = async (C) => {
9369
+ const K = async (C) => {
9370
9370
  if (o.callbacks?.onFetch)
9371
9371
  try {
9372
9372
  C = await Promise.all(
9373
- C.map((K) => o.callbacks.onFetch({
9373
+ C.map((x) => o.callbacks.onFetch({
9374
9374
  collection: o,
9375
9375
  path: u,
9376
- entity: K,
9376
+ entity: x,
9377
9377
  context: p
9378
9378
  }))
9379
9379
  );
9380
- } catch (K) {
9381
- console.error(K);
9380
+ } catch (x) {
9381
+ console.error(x);
9382
9382
  }
9383
- y(!1), g(void 0), f(C.map((K) => ({
9384
- ...K
9383
+ y(!1), g(void 0), f(C.map((x) => ({
9384
+ ...x
9385
9385
  // values: sanitizeData(e.values, resolvedCollection.properties)
9386
9386
  }))), w(!c || C.length < c);
9387
9387
  }, k = (C) => {
@@ -9390,7 +9390,7 @@ function Da({
9390
9390
  return l.listenCollection ? l.listenCollection({
9391
9391
  path: u,
9392
9392
  collection: o,
9393
- onUpdate: x,
9393
+ onUpdate: K,
9394
9394
  onError: k,
9395
9395
  searchString: a,
9396
9396
  filter: r,
@@ -9407,7 +9407,7 @@ function Da({
9407
9407
  startAfter: void 0,
9408
9408
  orderBy: d,
9409
9409
  order: m
9410
- }).then(x).catch(k), () => {
9410
+ }).then(K).catch(k), () => {
9411
9411
  });
9412
9412
  }, [u, c, m, d, r, a]), {
9413
9413
  data: A,
@@ -10492,7 +10492,7 @@ function pi({
10492
10492
  );
10493
10493
  } else if (r.previewAsTag) {
10494
10494
  const c = jr(e ?? "");
10495
- return /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ n(
10495
+ return /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
10496
10496
  _o,
10497
10497
  {
10498
10498
  colorScheme: c,
@@ -10550,7 +10550,7 @@ function nr({
10550
10550
  return p ? /* @__PURE__ */ n(
10551
10551
  F.Fragment,
10552
10552
  {
10553
- children: /* @__PURE__ */ n("div", { className: S(ge, "m-1 border-b last:border-b-0"), children: /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ n(
10553
+ children: /* @__PURE__ */ n("div", { className: S(ge, "m-1 border-b last:border-b-0"), children: /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
10554
10554
  Ne,
10555
10555
  {
10556
10556
  propertyKey: e,
@@ -10566,7 +10566,7 @@ function nr({
10566
10566
  }
10567
10567
  ) });
10568
10568
  }
10569
- const An = pe.memo(function(o) {
10569
+ const An = Ae.memo(function(o) {
10570
10570
  const r = o.reference;
10571
10571
  return r instanceof en ? /* @__PURE__ */ n(ml, { ...o }) : (console.warn("Reference preview received value of type", typeof r), /* @__PURE__ */ n(
10572
10572
  vo,
@@ -10813,7 +10813,7 @@ function _l({
10813
10813
  throw Error("Picked wrong preview component ArrayOfStorageComponentsPreview");
10814
10814
  const s = c === "medium" ? "small" : "tiny";
10815
10815
  return /* @__PURE__ */ n("div", { className: "flex flex-wrap gap-2", children: r && r.map(
10816
- (u, d) => /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ n(
10816
+ (u, d) => /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
10817
10817
  Ne,
10818
10818
  {
10819
10819
  propertyKey: e,
@@ -10833,7 +10833,7 @@ function Ai({
10833
10833
  }) {
10834
10834
  return /* @__PURE__ */ n("div", { className: "flex flex-wrap gap-1.5", children: o && o.map(
10835
10835
  (c, a) => /* @__PURE__ */ n(
10836
- _e,
10836
+ pe,
10837
10837
  {
10838
10838
  children: /* @__PURE__ */ n(
10839
10839
  Me,
@@ -10890,7 +10890,7 @@ function yl({
10890
10890
  return /* @__PURE__ */ n("div", { children: `Unexpected value: ${o}` });
10891
10891
  const s = l.of;
10892
10892
  return /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: o && o.map(
10893
- (u, d) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ n(
10893
+ (u, d) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
10894
10894
  pi,
10895
10895
  {
10896
10896
  propertyKey: e,
@@ -10927,7 +10927,7 @@ function hl({
10927
10927
  (A, f) => /* @__PURE__ */ n(
10928
10928
  F.Fragment,
10929
10929
  {
10930
- children: /* @__PURE__ */ n("div", { className: S(ge, "m-1 border-b last:border-b-0"), children: /* @__PURE__ */ n(_e, { children: A && /* @__PURE__ */ n(
10930
+ children: /* @__PURE__ */ n("div", { className: S(ge, "m-1 border-b last:border-b-0"), children: /* @__PURE__ */ n(pe, { children: A && /* @__PURE__ */ n(
10931
10931
  Ne,
10932
10932
  {
10933
10933
  propertyKey: e,
@@ -10952,13 +10952,13 @@ function gl({
10952
10952
  if (r.dataType !== "map")
10953
10953
  throw Error("Picked wrong preview component MapPropertyPreview");
10954
10954
  const a = r;
10955
- if (e === "result.suggestions" && console.log({ propertyKey: e, property: r, value: o }), !a.properties || Object.keys(a.properties ?? {}).length === 0)
10955
+ if (!a.properties || Object.keys(a.properties ?? {}).length === 0)
10956
10956
  return /* @__PURE__ */ n(_i, { value: o });
10957
10957
  if (!o)
10958
10958
  return null;
10959
10959
  const l = Object.keys(a.properties);
10960
10960
  return c === "tiny" ? /* @__PURE__ */ n("div", { className: "w-full flex flex-col space-y-1 md:space-y-2", children: l.map((s, u) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
10961
- _e,
10961
+ pe,
10962
10962
  {
10963
10963
  children: /* @__PURE__ */ n(
10964
10964
  Ne,
@@ -11007,7 +11007,7 @@ function gl({
11007
11007
  "div",
11008
11008
  {
11009
11009
  className: "flex-grow max-w-[75%]",
11010
- children: /* @__PURE__ */ n(_e, { children: !(d.dataType === "map" || d === "array") && /* @__PURE__ */ n(
11010
+ children: /* @__PURE__ */ n(pe, { children: !(d.dataType === "map" || d === "array") && /* @__PURE__ */ n(
11011
11011
  Ne,
11012
11012
  {
11013
11013
  propertyKey: s,
@@ -11075,7 +11075,7 @@ function _i({ value: e }) {
11075
11075
  "div",
11076
11076
  {
11077
11077
  className: "flex-grow max-w-[75%]",
11078
- children: typeof r != "object" && /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ n(_e, { children: r && r.toString() }) })
11078
+ children: typeof r != "object" && /* @__PURE__ */ n(Z, { children: /* @__PURE__ */ n(pe, { children: r && r.toString() }) })
11079
11079
  }
11080
11080
  )
11081
11081
  ]
@@ -11313,7 +11313,7 @@ function IW({
11313
11313
  "div",
11314
11314
  {
11315
11315
  className: "table-cell",
11316
- children: /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ n(
11316
+ children: /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
11317
11317
  Ne,
11318
11318
  {
11319
11319
  propertyKey: _,
@@ -11346,7 +11346,7 @@ function We({
11346
11346
  r
11347
11347
  ) });
11348
11348
  }
11349
- const wW = pe.memo(
11349
+ const wW = Ae.memo(
11350
11350
  function({
11351
11351
  builder: o
11352
11352
  }) {
@@ -11360,7 +11360,7 @@ const wW = pe.memo(
11360
11360
  }), () => {
11361
11361
  l = !0;
11362
11362
  };
11363
- }, [o]), r ? /* @__PURE__ */ n(We, {}) : /* @__PURE__ */ n(pe.Fragment, { children: c });
11363
+ }, [o]), r ? /* @__PURE__ */ n(We, {}) : /* @__PURE__ */ n(Ae.Fragment, { children: c });
11364
11364
  }
11365
11365
  );
11366
11366
  function yi({
@@ -11472,7 +11472,7 @@ const Kl = {
11472
11472
  function rr(e) {
11473
11473
  return e == null || Object.keys(e).length === 0 || e.outerHeightStyle === 0 && !e.overflow;
11474
11474
  }
11475
- const gi = pe.forwardRef(function(o, r) {
11475
+ const gi = Ae.forwardRef(function(o, r) {
11476
11476
  const {
11477
11477
  onChange: i,
11478
11478
  onScroll: c,
@@ -11486,9 +11486,9 @@ const gi = pe.forwardRef(function(o, r) {
11486
11486
  sizeRef: A,
11487
11487
  ignoreBoxSizing: f,
11488
11488
  ..._
11489
- } = o, { current: y } = pe.useRef(d != null), h = pe.useRef(null), g = xl(r, h), b = pe.useRef(null), w = pe.useRef(0), [x, k] = pe.useState({
11489
+ } = o, { current: y } = Ae.useRef(d != null), h = Ae.useRef(null), g = xl(r, h), b = Ae.useRef(null), w = Ae.useRef(0), [K, k] = Ae.useState({
11490
11490
  outerHeightStyle: 0
11491
- }), C = pe.useCallback(() => {
11491
+ }), C = Ae.useCallback(() => {
11492
11492
  const E = h.current;
11493
11493
  if (typeof window > "u")
11494
11494
  return {
@@ -11512,7 +11512,7 @@ const gi = pe.forwardRef(function(o, r) {
11512
11512
  outerHeightStyle: ue,
11513
11513
  overflow: fe
11514
11514
  };
11515
- }, [l, s, o.placeholder]), K = (E, P) => {
11515
+ }, [l, s, o.placeholder]), x = (E, P) => {
11516
11516
  const {
11517
11517
  outerHeightStyle: D,
11518
11518
  overflow: H
@@ -11527,16 +11527,16 @@ const gi = pe.forwardRef(function(o, r) {
11527
11527
  ].join(`
11528
11528
  `)
11529
11529
  ), E);
11530
- }, N = pe.useCallback(() => {
11530
+ }, N = Ae.useCallback(() => {
11531
11531
  const E = C();
11532
- rr(E) || (a && a(E), k((P) => K(P, E)));
11532
+ rr(E) || (a && a(E), k((P) => x(P, E)));
11533
11533
  }, [C, a]), B = () => {
11534
11534
  const E = C();
11535
11535
  rr(E) || xc.flushSync(() => {
11536
- k((P) => K(P, E));
11536
+ k((P) => x(P, E));
11537
11537
  });
11538
11538
  };
11539
- pe.useEffect(() => {
11539
+ Ae.useEffect(() => {
11540
11540
  const E = kl(() => {
11541
11541
  w.current = 0, h.current && B();
11542
11542
  });
@@ -11548,13 +11548,13 @@ const gi = pe.forwardRef(function(o, r) {
11548
11548
  };
11549
11549
  }), yt(() => {
11550
11550
  N();
11551
- }), pe.useEffect(() => {
11551
+ }), Ae.useEffect(() => {
11552
11552
  w.current = 0;
11553
11553
  }, [d]);
11554
11554
  const T = (E) => {
11555
11555
  w.current = 0, y || N(), i && i(E);
11556
11556
  };
11557
- return /* @__PURE__ */ I(pe.Fragment, { children: [
11557
+ return /* @__PURE__ */ I(Ae.Fragment, { children: [
11558
11558
  /* @__PURE__ */ n(
11559
11559
  "textarea",
11560
11560
  {
@@ -11566,10 +11566,10 @@ const gi = pe.forwardRef(function(o, r) {
11566
11566
  onBlur: p,
11567
11567
  rows: s,
11568
11568
  style: {
11569
- height: x.outerHeightStyle,
11569
+ height: K.outerHeightStyle,
11570
11570
  // Need a large enough difference to allow scrolling.
11571
11571
  // This prevents infinite rendering loop.
11572
- overflow: x.overflow ? "hidden" : void 0,
11572
+ overflow: K.overflow ? "hidden" : void 0,
11573
11573
  ...u
11574
11574
  },
11575
11575
  onScroll: c,
@@ -11594,7 +11594,7 @@ const gi = pe.forwardRef(function(o, r) {
11594
11594
  ] });
11595
11595
  });
11596
11596
  function xl(...e) {
11597
- return pe.useMemo(() => e.every((o) => o == null) ? null : (o) => {
11597
+ return Ae.useMemo(() => e.every((o) => o == null) ? null : (o) => {
11598
11598
  e.forEach((r) => {
11599
11599
  Cl(r, o);
11600
11600
  });
@@ -11844,7 +11844,7 @@ function Fl(e) {
11844
11844
  }
11845
11845
  );
11846
11846
  }
11847
- class _e extends F.Component {
11847
+ class pe extends F.Component {
11848
11848
  constructor(o) {
11849
11849
  super(o), this.state = { error: null };
11850
11850
  }
@@ -11913,27 +11913,27 @@ function Ii({
11913
11913
  const d = c.dataType === "string" ? c.storage : c.dataType === "array" && c.of.dataType === "string" ? c.of.storage : void 0, m = c.dataType === "array";
11914
11914
  if (!d)
11915
11915
  throw Error("Storage meta must be specified");
11916
- const p = d?.metadata, A = m ? "small" : "medium", f = d?.imageCompression, _ = (m ? i ?? [] : i ? [i] : []).map((K) => ({
11916
+ const p = d?.metadata, A = m ? "small" : "medium", f = d?.imageCompression, _ = (m ? i ?? [] : i ? [i] : []).map((x) => ({
11917
11917
  id: Wt(),
11918
- storagePathOrDownloadUrl: K,
11918
+ storagePathOrDownloadUrl: x,
11919
11919
  metadata: p,
11920
11920
  size: A
11921
11921
  })), [y, h] = R(i), [g, b] = R(_);
11922
11922
  Q(() => {
11923
- Ae(y, i) || (h(i), b(_));
11923
+ _e(y, i) || (h(i), b(_));
11924
11924
  }, [_, i, y]);
11925
- const w = v(async (K) => {
11925
+ const w = v(async (x) => {
11926
11926
  if (d.fileName) {
11927
- const N = await Nl(d.fileName, d, o, e, r, c, K, a);
11927
+ const N = await Nl(d.fileName, d, o, e, r, c, x, a);
11928
11928
  if (!N || N.length === 0)
11929
11929
  throw Error("You need to return a valid filename");
11930
11930
  return N;
11931
11931
  }
11932
- return Xn() + "_" + K.name;
11933
- }, [e, o, r, c, a, d]), x = v((K) => Pl(d.storagePath, d, o, e, r, c, K, a) ?? "/", [e, o, r, c, a, d]), k = v(async (K, N, B) => {
11934
- console.debug("onFileUploadComplete", K, N);
11935
- let T = K;
11936
- if (d.storeUrl && (T = (await l.getDownloadURL(K)).url), d.postProcess && T && (T = await d.postProcess(T)), !T) {
11932
+ return Xn() + "_" + x.name;
11933
+ }, [e, o, r, c, a, d]), K = v((x) => Pl(d.storagePath, d, o, e, r, c, x, a) ?? "/", [e, o, r, c, a, d]), k = v(async (x, N, B) => {
11934
+ console.debug("onFileUploadComplete", x, N);
11935
+ let T = x;
11936
+ if (d.storeUrl && (T = (await l.getDownloadURL(x)).url), d.postProcess && T && (T = await d.postProcess(T)), !T) {
11937
11937
  console.warn("uploadPathOrDownloadUrl is null");
11938
11938
  return;
11939
11939
  }
@@ -11941,14 +11941,14 @@ function Ii({
11941
11941
  N.storagePathOrDownloadUrl = T, N.metadata = B, E = [...g], E = ir(E), b(E);
11942
11942
  const P = E.filter((D) => !!D.storagePathOrDownloadUrl).map((D) => D.storagePathOrDownloadUrl);
11943
11943
  u(m ? P : P ? P[0] : null);
11944
- }, [g, m, u, d, l]), C = v(async (K) => {
11945
- if (!K.length || s)
11944
+ }, [g, m, u, d, l]), C = v(async (x) => {
11945
+ if (!x.length || s)
11946
11946
  return;
11947
11947
  let N;
11948
11948
  if (m)
11949
11949
  N = [
11950
11950
  ...g,
11951
- ...await Promise.all(K.map(async (B) => (f && no(B) && (B = await ar(B, f)), {
11951
+ ...await Promise.all(x.map(async (B) => (f && no(B) && (B = await ar(B, f)), {
11952
11952
  id: Wt(),
11953
11953
  file: B,
11954
11954
  fileName: await w(B),
@@ -11957,7 +11957,7 @@ function Ii({
11957
11957
  })))
11958
11958
  ];
11959
11959
  else {
11960
- let B = K[0];
11960
+ let B = x[0];
11961
11961
  f && no(B) && (B = await ar(B, f)), N = [{
11962
11962
  id: Wt(),
11963
11963
  file: B,
@@ -11973,7 +11973,7 @@ function Ii({
11973
11973
  setInternalValue: b,
11974
11974
  storage: d,
11975
11975
  fileNameBuilder: w,
11976
- storagePathBuilder: x,
11976
+ storagePathBuilder: K,
11977
11977
  onFileUploadComplete: k,
11978
11978
  onFilesAdded: C,
11979
11979
  multipleFilesSupported: m
@@ -12197,8 +12197,8 @@ function Ll({
12197
12197
  } else
12198
12198
  throw Error("Storage field using array must be of data type string");
12199
12199
  }
12200
- const x = f?.metadata, k = !!r, C = xn(), {
12201
- open: K,
12200
+ const K = f?.metadata, k = !!r, C = xn(), {
12201
+ open: x,
12202
12202
  getRootProps: N,
12203
12203
  getInputProps: B,
12204
12204
  isDragActive: T,
@@ -12254,7 +12254,7 @@ function Ll({
12254
12254
  wi,
12255
12255
  {
12256
12256
  entry: W,
12257
- metadata: x,
12257
+ metadata: K,
12258
12258
  storagePath: h(W.file),
12259
12259
  onFileUploadComplete: y,
12260
12260
  imageSize: q,
@@ -12267,7 +12267,7 @@ function Ll({
12267
12267
  "div",
12268
12268
  {
12269
12269
  className: "flex-grow m-2 max-w-[200px]",
12270
- onClick: K,
12270
+ onClick: x,
12271
12271
  children: /* @__PURE__ */ n(
12272
12272
  Z,
12273
12273
  {
@@ -12292,7 +12292,7 @@ function Ll({
12292
12292
  {
12293
12293
  color: "inherit",
12294
12294
  size: "small",
12295
- onClick: K,
12295
+ onClick: x,
12296
12296
  children: /* @__PURE__ */ n(Xc, { size: "small", className: "text-gray-500" })
12297
12297
  }
12298
12298
  )
@@ -12312,7 +12312,7 @@ function Vl({
12312
12312
  "div",
12313
12313
  {
12314
12314
  className: "relative m-2",
12315
- children: o && /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ n(
12315
+ children: o && /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
12316
12316
  Ne,
12317
12317
  {
12318
12318
  propertyKey: "ignore",
@@ -12361,12 +12361,12 @@ function zl(e) {
12361
12361
  selectedEntityIds: b,
12362
12362
  forceFilter: m
12363
12363
  }
12364
- ), x = v(() => {
12364
+ ), K = v(() => {
12365
12365
  d || w.open();
12366
12366
  }, [d, w]), k = !r || Array.isArray(r) && r.length === 0, C = () => r instanceof en ? /* @__PURE__ */ n(
12367
12367
  An,
12368
12368
  {
12369
- onClick: d ? void 0 : x,
12369
+ onClick: d ? void 0 : K,
12370
12370
  size: fn(l),
12371
12371
  reference: r,
12372
12372
  onHover: A,
@@ -12376,11 +12376,11 @@ function zl(e) {
12376
12376
  ) : /* @__PURE__ */ n(
12377
12377
  vo,
12378
12378
  {
12379
- onClick: d ? void 0 : x,
12379
+ onClick: d ? void 0 : K,
12380
12380
  size: fn(l),
12381
12381
  children: /* @__PURE__ */ n(Be, { title: "Value is not a reference.", error: "Click to edit" })
12382
12382
  }
12383
- ), K = () => Array.isArray(r) ? /* @__PURE__ */ n(O, { children: r.map(
12383
+ ), x = () => Array.isArray(r) ? /* @__PURE__ */ n(O, { children: r.map(
12384
12384
  (N, B) => /* @__PURE__ */ n(
12385
12385
  "div",
12386
12386
  {
@@ -12388,7 +12388,7 @@ function zl(e) {
12388
12388
  children: /* @__PURE__ */ n(
12389
12389
  An,
12390
12390
  {
12391
- onClick: d ? void 0 : x,
12391
+ onClick: d ? void 0 : K,
12392
12392
  size: "tiny",
12393
12393
  reference: N,
12394
12394
  onHover: A,
@@ -12409,11 +12409,11 @@ function zl(e) {
12409
12409
  onMouseLeave: y,
12410
12410
  children: [
12411
12411
  r && !c && C(),
12412
- r && c && K(),
12412
+ r && c && x(),
12413
12413
  k && /* @__PURE__ */ I(
12414
12414
  me,
12415
12415
  {
12416
- onClick: x,
12416
+ onClick: K,
12417
12417
  size: "small",
12418
12418
  variant: "outlined",
12419
12419
  color: "primary",
@@ -12729,7 +12729,7 @@ const Zl = ({
12729
12729
  mo(w, () => {
12730
12730
  c && f && f(void 0);
12731
12731
  }, !!(c && f));
12732
- const [x, k] = R(!1), C = ie(() => Dn(i), [i]), [K, N] = R(!1), [B, T] = R(s), E = !a && u;
12732
+ const [K, k] = R(!1), C = ie(() => Dn(i), [i]), [x, N] = R(!1), [B, T] = R(s), E = !a && u;
12733
12733
  Q(() => {
12734
12734
  s && T(!0);
12735
12735
  const M = setTimeout(() => {
@@ -12777,10 +12777,10 @@ const Zl = ({
12777
12777
  Q(() => {
12778
12778
  if (b) {
12779
12779
  const M = b.height > C;
12780
- x !== M && k(M);
12780
+ K !== M && k(M);
12781
12781
  }
12782
- }, [b, x, C]);
12783
- const q = !E && c, se = !a && m && x, W = !a && !m && x, Y = v(() => N(!0), []), ce = v(() => N(!1), []);
12782
+ }, [b, K, C]);
12783
+ const q = !E && c, se = !a && m && K, W = !a && !m && K, Y = v(() => N(!0), []), ce = v(() => N(!1), []);
12784
12784
  return /* @__PURE__ */ I(
12785
12785
  "div",
12786
12786
  {
@@ -12788,7 +12788,7 @@ const Zl = ({
12788
12788
  className: S(
12789
12789
  "transition-colors duration-100 ease-in-out",
12790
12790
  `flex relative h-full rounded-md p-${P} border border-4 border-opacity-75`,
12791
- K && !a ? "bg-gray-50 dark:bg-gray-900" : "",
12791
+ x && !a ? "bg-gray-50 dark:bg-gray-900" : "",
12792
12792
  s ? "bg-gray-100 bg-opacity-75 dark:bg-gray-800 dark:bg-opacity-75" : "",
12793
12793
  !q && !B && !E ? "border-transparent" : "",
12794
12794
  y ? "overflow-hidden" : "",
@@ -12799,7 +12799,7 @@ const Zl = ({
12799
12799
  ),
12800
12800
  style: {
12801
12801
  justifyContent: D,
12802
- alignItems: a || !x ? "center" : void 0,
12802
+ alignItems: a || !K ? "center" : void 0,
12803
12803
  width: _ ?? "100%",
12804
12804
  textAlign: d
12805
12805
  },
@@ -12809,7 +12809,7 @@ const Zl = ({
12809
12809
  onMouseMove: Y,
12810
12810
  onMouseLeave: ce,
12811
12811
  children: [
12812
- /* @__PURE__ */ I(_e, { children: [
12812
+ /* @__PURE__ */ I(pe, { children: [
12813
12813
  A && !W && o,
12814
12814
  (!A || W) && /* @__PURE__ */ n(
12815
12815
  Zl,
@@ -12835,7 +12835,7 @@ const Zl = ({
12835
12835
  )
12836
12836
  ] }),
12837
12837
  r,
12838
- a && K && l && /* @__PURE__ */ n("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ n(we, { title: l, children: /* @__PURE__ */ n(_a, { size: "smallest", color: "disabled", className: "text-gray-500" }) }) })
12838
+ a && x && l && /* @__PURE__ */ n("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ n(we, { title: l, children: /* @__PURE__ */ n(_a, { size: "smallest", color: "disabled", className: "text-gray-500" }) }) })
12839
12839
  ]
12840
12840
  }
12841
12841
  );
@@ -12865,7 +12865,7 @@ const es = F.memo(
12865
12865
  selectedCell: y,
12866
12866
  select: h,
12867
12867
  setPopupCell: g
12868
- } = ys(), b = y?.propertyKey === o && y?.entity.path === d.path && y?.entity.id === d.id, [w, x] = R(i), k = de(i), [C, K] = R(), [N, B] = R(!1), T = v(() => {
12868
+ } = ys(), b = y?.propertyKey === o && y?.entity.path === d.path && y?.entity.id === d.id, [w, K] = R(i), k = de(i), [C, x] = R(), [N, B] = R(!1), T = v(() => {
12869
12869
  B(!0), setTimeout(() => {
12870
12870
  B(!1);
12871
12871
  }, 100);
@@ -12877,33 +12877,33 @@ const es = F.memo(
12877
12877
  }), [d.id, c, o]);
12878
12878
  Q(
12879
12879
  () => {
12880
- Ae(i, k.current) || (K(void 0), x(i), k.current = i, T());
12880
+ _e(i, k.current) || (x(void 0), K(i), k.current = i, T());
12881
12881
  },
12882
12882
  [T, i]
12883
12883
  );
12884
12884
  const se = (G) => {
12885
- Ae(G, k.current) || (B(!1), q.validate(G).then(() => {
12886
- K(void 0), k.current = G, f && f({
12885
+ _e(G, k.current) || (B(!1), q.validate(G).then(() => {
12886
+ x(void 0), k.current = G, f && f({
12887
12887
  value: G,
12888
12888
  propertyKey: o,
12889
- setError: K,
12889
+ setError: x,
12890
12890
  onValueUpdated: T,
12891
12891
  entity: d,
12892
12892
  fullPath: u,
12893
12893
  context: A
12894
12894
  });
12895
12895
  }).catch((J) => {
12896
- K(J);
12896
+ x(J);
12897
12897
  }));
12898
12898
  };
12899
12899
  Q(() => {
12900
- q.validate(w).then(() => K(void 0)).catch((G) => {
12901
- K(G);
12900
+ q.validate(w).then(() => x(void 0)).catch((G) => {
12901
+ x(G);
12902
12902
  });
12903
12903
  }, [w, q, o, c, d]);
12904
12904
  const W = (G) => {
12905
12905
  let J;
12906
- G === void 0 ? J = null : J = G, x(J), se(J);
12906
+ G === void 0 ? J = null : J = G, K(J), se(J);
12907
12907
  };
12908
12908
  Ue({
12909
12909
  property: c,
@@ -13156,7 +13156,7 @@ const es = F.memo(
13156
13156
  ns
13157
13157
  );
13158
13158
  function ns(e, o) {
13159
- return e.height === o.height && e.propertyKey === o.propertyKey && e.align === o.align && e.width === o.width && Ae(e.property, o.property) && Ae(e.value, o.value) && Ae(e.entity.id, o.entity.id) && Ae(e.entity.values, o.entity.values);
13159
+ return e.height === o.height && e.propertyKey === o.propertyKey && e.align === o.align && e.width === o.width && _e(e.property, o.property) && _e(e.value, o.value) && _e(e.entity.id, o.entity.id) && _e(e.entity.values, o.entity.values);
13160
13160
  }
13161
13161
  function kt({ text: e, ...o }) {
13162
13162
  return /* @__PURE__ */ n(
@@ -13192,12 +13192,12 @@ const ts = F.memo(
13192
13192
  createFilterField: m,
13193
13193
  AdditionalHeaderWidget: p
13194
13194
  }) {
13195
- const [A, f] = R(!1), [_, y] = F.useState(!1), [h, g] = F.useState(!1), b = v((K) => {
13195
+ const [A, f] = R(!1), [_, y] = F.useState(!1), [h, g] = F.useState(!1), b = v((x) => {
13196
13196
  y(!0);
13197
- }, []), w = v((K, N) => {
13198
- l(u, K), N !== void 0 && y(N);
13199
- }, [u, l]), x = i === r, C = !(i !== r && i > 0) && (A || x);
13200
- return /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ I(
13197
+ }, []), w = v((x, N) => {
13198
+ l(u, x), N !== void 0 && y(N);
13199
+ }, [u, l]), K = i === r, C = !(i !== r && i > 0) && (A || K);
13200
+ return /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ I(
13201
13201
  "div",
13202
13202
  {
13203
13203
  className: S(
@@ -13315,7 +13315,7 @@ const ts = F.memo(
13315
13315
  }
13316
13316
  ) });
13317
13317
  },
13318
- Ae
13318
+ _e
13319
13319
  );
13320
13320
  function os({
13321
13321
  column: e,
@@ -13390,7 +13390,7 @@ const rs = ({
13390
13390
  createFilterField: u,
13391
13391
  AddColumnComponent: d
13392
13392
  }) => {
13393
- const m = e.map(() => pc()), [p, A] = R(-1), f = v((k, C, K) => {
13393
+ const m = e.map(() => pc()), [p, A] = R(-1), f = v((k, C, x) => {
13394
13394
  const N = e[k], B = 100, T = 800, E = C > T ? T : C < B ? B : C, P = {
13395
13395
  width: E,
13396
13396
  key: N.key,
@@ -13399,7 +13399,7 @@ const rs = ({
13399
13399
  width: E
13400
13400
  }
13401
13401
  };
13402
- K ? s(P) : l(P);
13402
+ x ? s(P) : l(P);
13403
13403
  }, [e, l, s]), _ = v((k) => {
13404
13404
  if (p >= 0) {
13405
13405
  const C = m[p].current?.parentElement?.getBoundingClientRect().left;
@@ -13423,7 +13423,7 @@ const rs = ({
13423
13423
  Q(() => (p >= 0 ? w() : b(), () => {
13424
13424
  b();
13425
13425
  }), [w, p, b]);
13426
- const x = v((k) => {
13426
+ const K = v((k) => {
13427
13427
  A(k), y(!0);
13428
13428
  }, [y]);
13429
13429
  return /* @__PURE__ */ I(
@@ -13432,8 +13432,8 @@ const rs = ({
13432
13432
  className: S(ge, "z-20 sticky min-w-full flex w-fit flex-row top-0 left-0 h-12 border-b bg-gray-50 dark:bg-gray-900"),
13433
13433
  children: [
13434
13434
  e.map((k, C) => {
13435
- const K = e[C], N = K && a && a[K.key] ? a[K.key] : void 0;
13436
- return /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ n(
13435
+ const x = e[C], N = x && a && a[x.key] ? a[x.key] : void 0;
13436
+ return /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
13437
13437
  ts,
13438
13438
  {
13439
13439
  resizeHandleRef: m[C],
@@ -13441,14 +13441,14 @@ const rs = ({
13441
13441
  isResizingIndex: p,
13442
13442
  onFilterUpdate: i,
13443
13443
  filter: N,
13444
- sort: c === K.key ? o : void 0,
13444
+ sort: c === x.key ? o : void 0,
13445
13445
  onColumnSort: r,
13446
- onClickResizeColumn: x,
13447
- column: K,
13446
+ onClickResizeColumn: K,
13447
+ column: x,
13448
13448
  createFilterField: u,
13449
- AdditionalHeaderWidget: K.AdditionalHeaderWidget
13449
+ AdditionalHeaderWidget: x.AdditionalHeaderWidget
13450
13450
  }
13451
- ) }, "header_" + K.key);
13451
+ ) }, "header_" + x.key);
13452
13452
  }),
13453
13453
  d && /* @__PURE__ */ n(d, {})
13454
13454
  ]
@@ -13491,7 +13491,7 @@ const rs = ({
13491
13491
  }
13492
13492
  );
13493
13493
  },
13494
- Ae
13494
+ _e
13495
13495
  ), cs = F.memo(
13496
13496
  function(o) {
13497
13497
  return o.rowData && o.cellRenderer(
@@ -13507,7 +13507,7 @@ const rs = ({
13507
13507
  }
13508
13508
  );
13509
13509
  },
13510
- (e, o) => Ae(e, o)
13510
+ (e, o) => _e(e, o)
13511
13511
  ), Nt = kr({});
13512
13512
  Nt.displayName = "VirtualListContext";
13513
13513
  const as = Ac(({
@@ -13572,11 +13572,11 @@ const as = Ac(({
13572
13572
  hoverRow: g,
13573
13573
  createFilterField: b,
13574
13574
  rowClassName: w,
13575
- className: x,
13575
+ className: K,
13576
13576
  endAdornment: k,
13577
13577
  AddColumnComponent: C
13578
13578
  }) {
13579
- const K = p ? p[0] : void 0, N = p ? p[1] : void 0, [B, T] = R(a), E = de(null), P = de(0);
13579
+ const x = p ? p[0] : void 0, N = p ? p[1] : void 0, [B, T] = R(a), E = de(null), P = de(0);
13580
13580
  Q(() => {
13581
13581
  T(a);
13582
13582
  }, [a]);
@@ -13591,9 +13591,9 @@ const as = Ac(({
13591
13591
  const W = v(() => {
13592
13592
  P.current = 0, E.current && E.current.scrollTo(E.current?.scrollLeft, 0);
13593
13593
  }, []), Y = v((G) => {
13594
- const J = K === G && N === "desc", Ee = K === G && N === "asc" ? "desc" : J ? void 0 : "asc", he = J ? void 0 : G, $e = se.current, un = Ee && he ? [he, Ee] : void 0;
13594
+ const J = x === G && N === "desc", Ee = x === G && N === "asc" ? "desc" : J ? void 0 : "asc", he = J ? void 0 : G, $e = se.current, un = Ee && he ? [he, Ee] : void 0;
13595
13595
  $e && d && !d($e, un) && m && m(void 0), r && r(), _ && _(un), W();
13596
- }, [d, N, m, r, _, W, K]), ce = v(() => {
13596
+ }, [d, N, m, r, _, W, x]), ce = v(() => {
13597
13597
  P.current = 0, _ && _(void 0);
13598
13598
  }, [_]), M = Math.max((o?.length ?? 0) * Dn(c) - H.height, 0), z = v((G) => {
13599
13599
  i && (o?.length ?? 0) > 0 && G > P.current + 600 && (P.current = G, i());
@@ -13606,8 +13606,8 @@ const as = Ac(({
13606
13606
  P.current = 0;
13607
13607
  const Re = se.current;
13608
13608
  let Ee = Re ? { ...Re } : {};
13609
- J ? Ee[G.key] = J : delete Ee[G.key], !d || d(Ee, K && N ? [K, N] : void 0) || (Ee = J ? { [G.key]: J } : {}), m && m(Ee), G.key !== K && ce();
13610
- }, [d, N, m, ce, K]), U = v(() => /* @__PURE__ */ I(
13609
+ J ? Ee[G.key] = J : delete Ee[G.key], !d || d(Ee, x && N ? [x, N] : void 0) || (Ee = J ? { [G.key]: J } : {}), m && m(Ee), G.key !== x && ce();
13610
+ }, [d, N, m, ce, x]), U = v(() => /* @__PURE__ */ I(
13611
13611
  "div",
13612
13612
  {
13613
13613
  className: "h-full flex flex-col items-center justify-center sticky left-0",
@@ -13630,7 +13630,7 @@ const as = Ac(({
13630
13630
  "div",
13631
13631
  {
13632
13632
  ref: D,
13633
- className: S("h-full w-full", x),
13633
+ className: S("h-full w-full", K),
13634
13634
  children: /* @__PURE__ */ n(
13635
13635
  Nt.Provider,
13636
13636
  {
@@ -13647,7 +13647,7 @@ const as = Ac(({
13647
13647
  filter: se.current,
13648
13648
  onColumnSort: Y,
13649
13649
  onFilterUpdate: fe,
13650
- sortByProperty: K,
13650
+ sortByProperty: x,
13651
13651
  hoverRow: g ?? !1,
13652
13652
  createFilterField: b,
13653
13653
  rowClassName: w,
@@ -13672,7 +13672,7 @@ const as = Ac(({
13672
13672
  }
13673
13673
  );
13674
13674
  },
13675
- Ae
13675
+ _e
13676
13676
  );
13677
13677
  function ss({
13678
13678
  outerRef: e,
@@ -13720,7 +13720,7 @@ function ss({
13720
13720
  },
13721
13721
  size: f,
13722
13722
  children: [
13723
- A.map((w, x) => {
13723
+ A.map((w, K) => {
13724
13724
  const k = b && b[w.key];
13725
13725
  return /* @__PURE__ */ n(
13726
13726
  cs,
@@ -13732,7 +13732,7 @@ function ss({
13732
13732
  rowData: b,
13733
13733
  cellData: k,
13734
13734
  rowIndex: u,
13735
- columnIndex: x
13735
+ columnIndex: K
13736
13736
  },
13737
13737
  `cell_${w.key}`
13738
13738
  );
@@ -13774,11 +13774,11 @@ const Ko = F.memo(function({
13774
13774
  hideId: f,
13775
13775
  selectionController: _
13776
13776
  }) {
13777
- const y = je(), h = oe(), g = v((K) => {
13777
+ const y = je(), h = oe(), g = v((x) => {
13778
13778
  _?.toggleEntitySelection(o);
13779
- }, [o, _?.toggleEntitySelection]), b = v((K) => {
13780
- K.stopPropagation(), _?.toggleEntitySelection(o);
13781
- }, [o, _?.toggleEntitySelection]), w = A.length > 0, x = A.some((K) => K.collapsed || K.collapsed === void 0), k = A.filter((K) => K.collapsed || K.collapsed === void 0), C = A.filter((K) => K.collapsed === !1);
13779
+ }, [o, _?.toggleEntitySelection]), b = v((x) => {
13780
+ x.stopPropagation(), _?.toggleEntitySelection(o);
13781
+ }, [o, _?.toggleEntitySelection]), w = A.length > 0, K = A.some((x) => x.collapsed || x.collapsed === void 0), k = A.filter((x) => x.collapsed || x.collapsed === void 0), C = A.filter((x) => x.collapsed === !1);
13782
13782
  return /* @__PURE__ */ I(
13783
13783
  "div",
13784
13784
  {
@@ -13795,11 +13795,11 @@ const Ko = F.memo(function({
13795
13795
  },
13796
13796
  children: [
13797
13797
  (w || s) && /* @__PURE__ */ I("div", { className: "w-34 flex justify-center", children: [
13798
- C.map((K, N) => /* @__PURE__ */ n(we, { title: K.name, children: /* @__PURE__ */ n(
13798
+ C.map((x, N) => /* @__PURE__ */ n(we, { title: x.name, children: /* @__PURE__ */ n(
13799
13799
  ne,
13800
13800
  {
13801
13801
  onClick: (B) => {
13802
- B.stopPropagation(), K.onClick({
13802
+ B.stopPropagation(), x.onClick({
13803
13803
  entity: o,
13804
13804
  fullPath: i,
13805
13805
  collection: r,
@@ -13811,10 +13811,10 @@ const Ko = F.memo(function({
13811
13811
  });
13812
13812
  },
13813
13813
  size: y ? "medium" : "small",
13814
- children: K.icon
13814
+ children: x.icon
13815
13815
  }
13816
13816
  ) }, N)),
13817
- x && /* @__PURE__ */ n(
13817
+ K && /* @__PURE__ */ n(
13818
13818
  st,
13819
13819
  {
13820
13820
  trigger: /* @__PURE__ */ n(
@@ -13824,11 +13824,11 @@ const Ko = F.memo(function({
13824
13824
  children: /* @__PURE__ */ n(Gr, {})
13825
13825
  }
13826
13826
  ),
13827
- children: k.map((K, N) => /* @__PURE__ */ I(
13827
+ children: k.map((x, N) => /* @__PURE__ */ I(
13828
13828
  Fe,
13829
13829
  {
13830
13830
  onClick: (B) => {
13831
- B.stopPropagation(), K.onClick({
13831
+ B.stopPropagation(), x.onClick({
13832
13832
  entity: o,
13833
13833
  fullPath: i,
13834
13834
  collection: r,
@@ -13840,8 +13840,8 @@ const Ko = F.memo(function({
13840
13840
  });
13841
13841
  },
13842
13842
  children: [
13843
- K.icon,
13844
- K.name
13843
+ x.icon,
13844
+ x.name
13845
13845
  ]
13846
13846
  },
13847
13847
  N
@@ -13860,8 +13860,8 @@ const Ko = F.memo(function({
13860
13860
  !f && u !== "xs" && /* @__PURE__ */ n("div", { className: "w-[138px] text-center overflow-hidden truncate", children: o ? /* @__PURE__ */ I(
13861
13861
  Z,
13862
13862
  {
13863
- onClick: (K) => {
13864
- K.stopPropagation();
13863
+ onClick: (x) => {
13864
+ x.stopPropagation();
13865
13865
  },
13866
13866
  className: "font-mono select-all",
13867
13867
  variant: "caption",
@@ -13876,7 +13876,7 @@ const Ko = F.memo(function({
13876
13876
  ]
13877
13877
  }
13878
13878
  );
13879
- }, Ae);
13879
+ }, _e);
13880
13880
  function us(e) {
13881
13881
  const o = je(), r = !e.forceFilter && e.filterIsSet && e.clearFilter && /* @__PURE__ */ I(
13882
13882
  me,
@@ -13963,15 +13963,15 @@ function ds({
13963
13963
  E && q ? [E, j] : void 0
13964
13964
  );
13965
13965
  }
13966
- const w = ve(), x = ie(() => c ? w.getCollection(c) : void 0, [c]), k = (E) => {
13966
+ const w = ve(), K = ie(() => c ? w.getCollection(c) : void 0, [c]), k = (E) => {
13967
13967
  b(f, Nn(E));
13968
13968
  }, C = (E) => {
13969
13969
  b(f, E.map((P) => Nn(P)));
13970
- }, K = Ut.includes(f), N = Rt(
13970
+ }, x = Ut.includes(f), N = Rt(
13971
13971
  {
13972
- multiselect: K,
13972
+ multiselect: x,
13973
13973
  path: c,
13974
- collection: x,
13974
+ collection: K,
13975
13975
  onSingleEntitySelected: k,
13976
13976
  onMultipleEntitiesSelected: C,
13977
13977
  selectedEntityIds: g,
@@ -14025,7 +14025,7 @@ function ds({
14025
14025
  onClick: B,
14026
14026
  variant: "outlined",
14027
14027
  className: "h-full w-full",
14028
- children: K ? "Select references" : "Select reference"
14028
+ children: x ? "Select references" : "Select reference"
14029
14029
  }
14030
14030
  )
14031
14031
  ] })
@@ -14057,8 +14057,8 @@ function fs({
14057
14057
  const [u, d] = o || [s[0], void 0], [m, p] = R(u), [A, f] = R(d);
14058
14058
  function _(h, g) {
14059
14059
  let b = g;
14060
- const w = Yt.includes(m), x = Yt.includes(h);
14061
- w !== x && (b = x ? typeof g == "string" || typeof g == "number" ? [g] : [] : ""), typeof b == "number" && isNaN(b) && (b = void 0), p(h), f(b);
14060
+ const w = Yt.includes(m), K = Yt.includes(h);
14061
+ w !== K && (b = K ? typeof g == "string" || typeof g == "number" ? [g] : [] : ""), typeof b == "number" && isNaN(b) && (b = void 0), p(h), f(b);
14062
14062
  const k = b !== null && Array.isArray(b) ? b.length > 0 : b !== void 0;
14063
14063
  r(
14064
14064
  h && k ? [h, b] : void 0
@@ -14288,11 +14288,11 @@ const _s = {}, Ei = F.createContext(_s), ys = () => Ve(Ei), Bi = F.memo(
14288
14288
  additionalFields: g,
14289
14289
  displayedColumnIds: b,
14290
14290
  defaultSize: w,
14291
- properties: x,
14291
+ properties: K,
14292
14292
  tableController: {
14293
14293
  data: k,
14294
14294
  dataLoading: C,
14295
- noMoreToLoad: K,
14295
+ noMoreToLoad: x,
14296
14296
  dataLoadingError: N,
14297
14297
  filterValues: B,
14298
14298
  setFilterValues: T,
@@ -14317,7 +14317,7 @@ const _s = {}, Ei = F.createContext(_s), ys = () => Ve(Ei), Bi = F.memo(
14317
14317
  getIdColumnWidth: ae
14318
14318
  }) {
14319
14319
  const G = je(), J = !!o, Re = d?.selectedEntities?.length > 0 ? d?.selectedEntities : m, Ee = oe(), [he, $e] = F.useState(w ?? "m"), [un, qe] = F.useState(void 0), tn = Re?.map((X) => X.id), Sn = !!B && Object.keys(B).length > 0, Ln = () => {
14320
- !W || C || K || j !== void 0 && q?.(j + se);
14320
+ !W || C || x || j !== void 0 && q?.(j + se);
14321
14321
  }, Vn = v(() => {
14322
14322
  q?.(se);
14323
14323
  }, [se]), on = v(({ rowData: X }) => {
@@ -14351,7 +14351,7 @@ const _s = {}, Ei = F.createContext(_s), ys = () => Ve(Ei), Bi = F.memo(
14351
14351
  propertyValue: Mt,
14352
14352
  entity: ye
14353
14353
  }) ?? X.custom.resolvedProperty;
14354
- return gn?.disabled || (cn = !1), gn ? /* @__PURE__ */ n(_e, { children: ye ? /* @__PURE__ */ n(
14354
+ return gn?.disabled || (cn = !1), gn ? /* @__PURE__ */ n(pe, { children: ye ? /* @__PURE__ */ n(
14355
14355
  es,
14356
14356
  {
14357
14357
  readonly: !h,
@@ -14390,17 +14390,17 @@ const _s = {}, Ei = F.createContext(_s), ys = () => Ve(Ei), Bi = F.memo(
14390
14390
  allowScroll: !1,
14391
14391
  showExpandIcon: !1,
14392
14392
  disabledTooltip: "This column can't be edited directly",
14393
- children: /* @__PURE__ */ n(_e, { children: Mt })
14393
+ children: /* @__PURE__ */ n(pe, { children: Mt })
14394
14394
  },
14395
14395
  `additional_table_cell_${ze.id}_${X.key}`
14396
14396
  );
14397
14397
  }, [dn, he, tn]), le = ie(
14398
14398
  () => {
14399
- const X = Object.entries(x).flatMap(([Ie, ze]) => xo(ze, Ie)).map(({
14399
+ const X = Object.entries(K).flatMap(([Ie, ze]) => xo(ze, Ie)).map(({
14400
14400
  key: Ie,
14401
14401
  disabled: ze
14402
14402
  }) => {
14403
- const ye = rc(x, Ie);
14403
+ const ye = rc(K, Ie);
14404
14404
  if (!ye)
14405
14405
  throw Error("Internal error: no property found in path " + Ie);
14406
14406
  const rn = Si(ye);
@@ -14428,7 +14428,7 @@ const _s = {}, Ei = F.createContext(_s), ys = () => Ve(Ei), Bi = F.memo(
14428
14428
  })) : [];
14429
14429
  return [...X, ...Ke];
14430
14430
  },
14431
- [g, J, o, x, z]
14431
+ [g, J, o, K, z]
14432
14432
  ), te = ie(() => ({
14433
14433
  key: "id_ewcfedcswdf3",
14434
14434
  width: ae?.() ?? (G ? 160 : 130),
@@ -14526,7 +14526,7 @@ const _s = {}, Ei = F.createContext(_s), ys = () => Ve(Ei), Bi = F.memo(
14526
14526
  }
14527
14527
  );
14528
14528
  },
14529
- Ae
14529
+ _e
14530
14530
  );
14531
14531
  function hs({
14532
14532
  id: e,
@@ -14610,10 +14610,10 @@ function gs({
14610
14610
  return [...o, ...e.filter((i) => !r.has(i.id))];
14611
14611
  }
14612
14612
  function bs(e, o, r = 5e3) {
14613
- const [i, c] = F.useState(e), a = F.useRef(i.length ?? 0), l = F.useRef(!1), s = F.useRef(o), u = !Ae(s.current, o), d = e.length >= a.current || u;
14613
+ const [i, c] = F.useState(e), a = F.useRef(i.length ?? 0), l = F.useRef(!1), s = F.useRef(o), u = !_e(s.current, o), d = e.length >= a.current || u;
14614
14614
  return F.useEffect(() => {
14615
14615
  const m = () => {
14616
- Ae(i, e) || (s.current = o, a.current = e.length, c(e)), l.current = !1;
14616
+ _e(i, e) || (s.current = o, a.current = e.length, c(e)), l.current = !1;
14617
14617
  };
14618
14618
  l.current = !0;
14619
14619
  let p;
@@ -14634,23 +14634,23 @@ function Fi({
14634
14634
  initialFilter: a,
14635
14635
  initialSort: l,
14636
14636
  forceFilter: s
14637
- } = o, [u, d] = F.useState(void 0), m = ve(), p = He(), A = ie(() => m.resolveAliasesFrom(e), [e, m.resolveAliasesFrom]), f = c ?? s, _ = o.pagination === void 0 || !!o.pagination, y = typeof o.pagination == "number" ? o.pagination : Is, [h, g] = F.useState(), [b, w] = F.useState(_ ? y : void 0), x = v((W, Y) => p.isFilterCombinationValid ? p.isFilterCombinationValid({
14637
+ } = o, [u, d] = F.useState(void 0), m = ve(), p = He(), A = ie(() => m.resolveAliasesFrom(e), [e, m.resolveAliasesFrom]), f = c ?? s, _ = o.pagination === void 0 || !!o.pagination, y = typeof o.pagination == "number" ? o.pagination : Is, [h, g] = F.useState(), [b, w] = F.useState(_ ? y : void 0), K = v((W, Y) => p.isFilterCombinationValid ? p.isFilterCombinationValid({
14638
14638
  path: A,
14639
14639
  collection: o,
14640
14640
  filterValues: W,
14641
14641
  sortBy: Y
14642
14642
  }) : !0, []), k = ie(() => {
14643
- if (l && f && !x(f, l)) {
14643
+ if (l && f && !K(f, l)) {
14644
14644
  console.warn("Initial sort is not compatible with the force filter. Ignoring initial sort");
14645
14645
  return;
14646
14646
  }
14647
14647
  return l;
14648
- }, [l, f]), [C, K] = F.useState(f ?? a ?? void 0), [N, B] = F.useState(k), T = v(() => K(f ?? void 0), [f]), E = v((W) => {
14648
+ }, [l, f]), [C, x] = F.useState(f ?? a ?? void 0), [N, B] = F.useState(k), T = v(() => x(f ?? void 0), [f]), E = v((W) => {
14649
14649
  if (f) {
14650
14650
  console.warn("Filter is not compatible with the force filter. Ignoring filter");
14651
14651
  return;
14652
14652
  }
14653
- W && Object.keys(W).length === 0 ? K(void 0) : K(W);
14653
+ W && Object.keys(W).length === 0 ? x(void 0) : x(W);
14654
14654
  }, [f]), {
14655
14655
  data: P,
14656
14656
  dataLoading: D,
@@ -14688,7 +14688,7 @@ function Fi({
14688
14688
  setItemCount: w,
14689
14689
  paginationEnabled: _,
14690
14690
  pageSize: y,
14691
- checkFilterCombination: x,
14691
+ checkFilterCombination: K,
14692
14692
  popupCell: u,
14693
14693
  setPopupCell: d
14694
14694
  };
@@ -14718,7 +14718,7 @@ function Ni({
14718
14718
  r();
14719
14719
  }, [r]), w = v((E) => {
14720
14720
  console.debug("Deleted", E);
14721
- }, []), x = v((E, P) => {
14721
+ }, []), K = v((E, P) => {
14722
14722
  d.open({
14723
14723
  type: "error",
14724
14724
  message: "Error deleting: " + P?.message
@@ -14733,18 +14733,18 @@ function Ni({
14733
14733
  type: "error",
14734
14734
  message: "Error after deleting: " + P?.message
14735
14735
  }), console.error(P);
14736
- }, [g.name]), K = v((E) => id({
14736
+ }, [g.name]), x = v((E) => id({
14737
14737
  dataSource: u,
14738
14738
  entity: E,
14739
14739
  collection: g,
14740
14740
  callbacks: c,
14741
14741
  onDeleteSuccess: w,
14742
- onDeleteFailure: x,
14742
+ onDeleteFailure: K,
14743
14743
  onPreDeleteHookError: k,
14744
14744
  onDeleteSuccessHookError: C,
14745
14745
  context: h
14746
- }), [u, g, c, w, x, k, C, h]), N = v(async () => {
14747
- A && (p(!0), _ ? Promise.all(A.map(K)).then((E) => {
14746
+ }), [u, g, c, w, K, k, C, h]), N = v(async () => {
14747
+ A && (p(!0), _ ? Promise.all(A.map(x)).then((E) => {
14748
14748
  p(!1), l && A && l(s, A), E.every(Boolean) ? d.open({
14749
14749
  type: "success",
14750
14750
  message: `${g.name}: multiple deleted`
@@ -14755,13 +14755,13 @@ function Ni({
14755
14755
  type: "error",
14756
14756
  message: `${g.name}: Error deleting entities`
14757
14757
  }), r();
14758
- }) : K(A).then((E) => {
14758
+ }) : x(A).then((E) => {
14759
14759
  p(!1), E && (a && A && a(s, A), d.open({
14760
14760
  type: "success",
14761
14761
  message: `${g.singularName ?? g.name} deleted`
14762
14762
  }), r());
14763
14763
  }));
14764
- }, [A, _, K, l, s, r, d, g.name, a]);
14764
+ }, [A, _, x, l, s, r, d, g.name, a]);
14765
14765
  let B;
14766
14766
  if (A && _)
14767
14767
  B = /* @__PURE__ */ n(O, { children: "Multiple entities" });
@@ -14862,7 +14862,7 @@ function ws({
14862
14862
  )), h = Po(e, A, Ge(l), null);
14863
14863
  let g;
14864
14864
  if (a) {
14865
- const k = f ? /* @__PURE__ */ I(
14865
+ const K = f ? /* @__PURE__ */ I(
14866
14866
  me,
14867
14867
  {
14868
14868
  variant: "text",
@@ -14890,7 +14890,7 @@ function ws({
14890
14890
  we,
14891
14891
  {
14892
14892
  title: h ? "Delete" : "You have selected at least one entity you cannot delete",
14893
- children: k
14893
+ children: K
14894
14894
  }
14895
14895
  );
14896
14896
  }
@@ -14903,13 +14903,11 @@ function ws({
14903
14903
  context: m,
14904
14904
  tableController: u,
14905
14905
  collectionEntitiesCount: d
14906
- }, w = [];
14907
- w.push(...Kt(e.Actions)), p && p.forEach((k) => {
14908
- k.collections?.CollectionActions && w.push(...Kt(k.collections?.CollectionActions));
14909
- });
14910
- const x = /* @__PURE__ */ n(O, { children: w.map((k, C) => /* @__PURE__ */ n(k, { ...b }, `actions_${C}`)) });
14911
- return /* @__PURE__ */ I(O, { children: [
14912
- x,
14906
+ }, w = Kt(e.Actions).map((K, k) => /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(K, { ...b }) }, `actions_${k}`));
14907
+ return p && p.forEach((K) => {
14908
+ K.collections?.CollectionActions && w.push(...Kt(K.collections?.CollectionActions).map((k, C) => /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(k, { ...b, ...K.collections?.collectionActionsProps }) }, `plugin_actions_${C}`)));
14909
+ }), /* @__PURE__ */ I(O, { children: [
14910
+ w,
14913
14911
  g,
14914
14912
  y
14915
14913
  ] });
@@ -15027,20 +15025,20 @@ function Cs({
15027
15025
  }
15028
15026
  }) : () => {
15029
15027
  }, [p, g, c, a, s]);
15030
- const [x, k] = R(b?.values), C = c ? Le({
15028
+ const [K, k] = R(b?.values), C = c ? Le({
15031
15029
  collection: c,
15032
15030
  path: a,
15033
- values: x,
15031
+ values: K,
15034
15032
  entityId: g,
15035
15033
  fields: A.propertyConfigs
15036
- }) : void 0, K = ks(), N = F.useRef(null), B = F.useRef(null), T = F.useRef(!1), E = v(() => {
15034
+ }) : void 0, x = ks(), N = F.useRef(null), B = F.useRef(null), T = F.useRef(!1), E = v(() => {
15037
15035
  if (!l)
15038
15036
  throw Error("getInitialLocation error");
15039
15037
  return {
15040
- x: l.left < K.width - l.right ? l.x + l.width / 2 : l.x - l.width / 2,
15041
- y: l.top < K.height - l.bottom ? l.y + l.height / 2 : l.y - l.height / 2
15038
+ x: l.left < x.width - l.right ? l.x + l.width / 2 : l.x - l.width / 2,
15039
+ y: l.top < x.height - l.bottom ? l.y + l.height / 2 : l.y - l.height / 2
15042
15040
  };
15043
- }, [l, K.height, K.width]), P = v(({
15041
+ }, [l, x.height, x.width]), P = v(({
15044
15042
  x: Y,
15045
15043
  y: ce
15046
15044
  }) => {
@@ -15048,10 +15046,10 @@ function Cs({
15048
15046
  if (!M)
15049
15047
  throw Error("normalizePosition called before draggableBoundingRect is set");
15050
15048
  return {
15051
- x: Math.max(0, Math.min(Y, K.width - M.width)),
15052
- y: Math.max(0, Math.min(ce, K.height - M.height))
15049
+ x: Math.max(0, Math.min(Y, x.width - M.width)),
15050
+ y: Math.max(0, Math.min(ce, x.height - M.height))
15053
15051
  };
15054
- }, [K]), D = v((Y) => {
15052
+ }, [x]), D = v((Y) => {
15055
15053
  const ce = N.current?.getBoundingClientRect();
15056
15054
  if (!l || !ce)
15057
15055
  return;
@@ -15079,7 +15077,7 @@ function Cs({
15079
15077
  () => {
15080
15078
  D(y);
15081
15079
  },
15082
- [K, l]
15080
+ [x, l]
15083
15081
  );
15084
15082
  const H = ie(() => {
15085
15083
  if (!(!C || !g))
@@ -15123,7 +15121,7 @@ function Cs({
15123
15121
  isSubmitting: z
15124
15122
  }) => {
15125
15123
  if (Q(() => {
15126
- Ae(Y, x) || k(Y);
15124
+ _e(Y, K) || k(Y);
15127
15125
  }, [Y]), !b)
15128
15126
  return /* @__PURE__ */ n(
15129
15127
  Be,
@@ -15366,7 +15364,7 @@ const Es = {
15366
15364
  const l = He(), s = ve(), u = Kn(), d = kn(), m = Mn(), p = oe(), A = F.useRef(null), f = ie(() => {
15367
15365
  const V = m?.getCollectionConfig(o);
15368
15366
  return V ? Ye(a, V) : a;
15369
- }, [a, o, m?.getCollectionConfig]), _ = tt(f, d, Ge(o), null), [y, h] = R(void 0), [g, b] = F.useState(void 0), [w, x] = F.useState(0), [k, C] = R(0), K = v(() => {
15367
+ }, [a, o, m?.getCollectionConfig]), _ = tt(f, d, Ge(o), null), [y, h] = R(void 0), [g, b] = F.useState(void 0), [w, K] = F.useState(0), [k, C] = R(0), x = v(() => {
15370
15368
  const V = y;
15371
15369
  setTimeout(() => {
15372
15370
  V === y && h(void 0);
@@ -15395,7 +15393,7 @@ const Es = {
15395
15393
  path: V.path,
15396
15394
  collection: f,
15397
15395
  updateUrl: !0,
15398
- onClose: K
15396
+ onClose: x
15399
15397
  })), [o, f, u]), fe = v(() => {
15400
15398
  p.onAnalyticsEvent?.("new_entity_click", {
15401
15399
  path: o
@@ -15403,7 +15401,7 @@ const Es = {
15403
15401
  path: o,
15404
15402
  collection: f,
15405
15403
  updateUrl: !0,
15406
- onClose: K
15404
+ onClose: x
15407
15405
  });
15408
15406
  }, [o, f, u]);
15409
15407
  v((V) => {
@@ -15418,11 +15416,11 @@ const Es = {
15418
15416
  }, [p, o, j]), L = v((V, re) => {
15419
15417
  p.onAnalyticsEvent?.("single_entity_deleted", {
15420
15418
  path: o
15421
- }), W((le) => le.filter((te) => te.id !== re.id)), x(Date.now());
15419
+ }), W((le) => le.filter((te) => te.id !== re.id)), K(Date.now());
15422
15420
  }, [p, o, W]), ee = v((V, re) => {
15423
15421
  p.onAnalyticsEvent?.("multiple_entities_deleted", {
15424
15422
  path: o
15425
- }), W([]), b(void 0), x(Date.now());
15423
+ }), W([]), b(void 0), K(Date.now());
15426
15424
  }, [W]);
15427
15425
  let ae;
15428
15426
  p?.plugins && (ae = p.plugins.find((V) => V.collectionView?.AddColumnComponent)?.collectionView?.AddColumnComponent);
@@ -15542,7 +15540,7 @@ const Es = {
15542
15540
  ...re
15543
15541
  ];
15544
15542
  }, [f, o]), Vn = v(() => {
15545
- x(Date.now());
15543
+ K(Date.now());
15546
15544
  }, []), on = je(), yn = v(({ entity: V, customEntityActions: re }) => {
15547
15545
  const le = V ? Po(f, d, Ge(o), V) : !0, te = [Es];
15548
15546
  return Ee && te.push(Pi), le && te.push(Di), re && te.push(...re), te;
@@ -15566,7 +15564,7 @@ const Es = {
15566
15564
  selectionEnabled: B,
15567
15565
  size: re,
15568
15566
  highlightEntity: h,
15569
- unhighlightEntity: K,
15567
+ unhighlightEntity: x,
15570
15568
  collection: f,
15571
15569
  fullPath: o,
15572
15570
  actions: hn,
@@ -15742,7 +15740,7 @@ const Es = {
15742
15740
  }
15743
15741
  );
15744
15742
  },
15745
- Ae
15743
+ _e
15746
15744
  );
15747
15745
  function Ti() {
15748
15746
  const [e, o] = R([]), r = v((c) => {
@@ -15939,7 +15937,7 @@ function Ms({
15939
15937
  closeAfterSave: !1
15940
15938
  });
15941
15939
  }, !1, 2e3);
15942
- const f = He(), _ = Bo(), y = Kn(), h = xn(), g = oe(), b = kn(), [w, x] = R(void 0), [k, C] = R(i ? "copy" : o ? "existing" : "new"), K = de(void 0), N = K.current, B = (c.subcollections ?? []).filter(($) => !$.hideFromNavigation), T = B?.length ?? 0, E = c.entityViews, P = E?.length ?? 0, D = c.formAutoSave && !c.customId, H = P > 0 || T > 0, j = r ?? li(
15940
+ const f = He(), _ = Bo(), y = Kn(), h = xn(), g = oe(), b = kn(), [w, K] = R(void 0), [k, C] = R(i ? "copy" : o ? "existing" : "new"), x = de(void 0), N = x.current, B = (c.subcollections ?? []).filter(($) => !$.hideFromNavigation), T = B?.length ?? 0, E = c.entityViews, P = E?.length ?? 0, D = c.formAutoSave && !c.customId, H = P > 0 || T > 0, j = r ?? li(
15943
15941
  c ? c.defaultSelectedView : void 0,
15944
15942
  {
15945
15943
  status: k,
@@ -16044,7 +16042,7 @@ function Ms({
16044
16042
  "relative flex-grow w-full h-full overflow-auto "
16045
16043
  ),
16046
16044
  role: "tabpanel",
16047
- children: /* @__PURE__ */ n(_e, { children: w && /* @__PURE__ */ n(
16045
+ children: /* @__PURE__ */ n(pe, { children: w && /* @__PURE__ */ n(
16048
16046
  V,
16049
16047
  {
16050
16048
  collection: c,
@@ -16098,7 +16096,7 @@ function Ms({
16098
16096
  collection: c
16099
16097
  });
16100
16098
  }, Sn = v(($) => {
16101
- K.current = $;
16099
+ x.current = $;
16102
16100
  }, []), Ln = v(($) => {
16103
16101
  h.open({
16104
16102
  type: "error",
@@ -16126,7 +16124,7 @@ function Ms({
16126
16124
  onModified: on,
16127
16125
  entity: M,
16128
16126
  onIdChange: Vn,
16129
- onFormContextChange: x,
16127
+ onFormContextChange: K,
16130
16128
  hideId: c.hideIdFromForm,
16131
16129
  autoSave: D,
16132
16130
  onIdUpdateError: Ln
@@ -16149,7 +16147,7 @@ function Ms({
16149
16147
  children: ke
16150
16148
  }
16151
16149
  ));
16152
- }), /* @__PURE__ */ n(_e, { children: ke });
16150
+ }), /* @__PURE__ */ n(pe, { children: ke });
16153
16151
  }
16154
16152
  const zn = ue === void 0 ? /* @__PURE__ */ n(O, {}) : ue ? /* @__PURE__ */ I(O, { children: [
16155
16153
  /* @__PURE__ */ n(
@@ -16411,7 +16409,7 @@ function Ls({
16411
16409
  width: o.width,
16412
16410
  transform: `translateX(-${e * 200}px)`
16413
16411
  },
16414
- children: /* @__PURE__ */ n(_e, { children: o.component })
16412
+ children: /* @__PURE__ */ n(pe, { children: o.component })
16415
16413
  }
16416
16414
  ),
16417
16415
  !o && /* @__PURE__ */ n("div", { style: { width: d } })
@@ -16459,7 +16457,7 @@ function Vs(e) {
16459
16457
  "."
16460
16458
  ] }) : void 0);
16461
16459
  }, [a?.name, r, i]);
16462
- return !e || !a ? /* @__PURE__ */ n("div", { className: "w-full" }) : /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ n(
16460
+ return !e || !a ? /* @__PURE__ */ n("div", { className: "w-full" }) : /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
16463
16461
  Ms,
16464
16462
  {
16465
16463
  ...e,
@@ -16599,7 +16597,7 @@ function Us({
16599
16597
  plugins: l,
16600
16598
  dataSource: s
16601
16599
  }) {
16602
- const u = ot(), [d, m] = R(), [p, A] = R(), [f, _] = R(!1), [y, h] = R(void 0), [g, b] = R(!0), [w, x] = R(void 0), k = Ce(e), C = Ce(o), K = k ? `/${k}` : "/", N = k ? `/${k}/${C}` : `/${C}`, B = v(
16600
+ const u = ot(), [d, m] = R(), [p, A] = R(), [f, _] = R(!1), [y, h] = R(void 0), [g, b] = R(!0), [w, K] = R(void 0), k = Ce(e), C = Ce(o), x = k ? `/${k}` : "/", N = k ? `/${k}/${C}` : `/${C}`, B = v(
16603
16601
  (z) => k ? `/${k}/${ft(z)}` : `/${ft(z)}`,
16604
16602
  [k]
16605
16603
  ), T = v(
@@ -16640,7 +16638,7 @@ function Us({
16640
16638
  );
16641
16639
  m(z), A(ue), h(E(z ?? [], ue));
16642
16640
  } catch (z) {
16643
- console.error(z), x(z);
16641
+ console.error(z), K(z);
16644
16642
  }
16645
16643
  b(!1), _(!0);
16646
16644
  }
@@ -16704,7 +16702,7 @@ function Us({
16704
16702
  views: p ?? [],
16705
16703
  loading: !f || g,
16706
16704
  navigationLoadingError: w,
16707
- homeUrl: K,
16705
+ homeUrl: x,
16708
16706
  basePath: e,
16709
16707
  baseCollectionPath: o,
16710
16708
  initialised: f,
@@ -16720,7 +16718,7 @@ function Us({
16720
16718
  baseLocation: ce,
16721
16719
  refreshNavigation: P,
16722
16720
  getParentReferencesFromPath: M
16723
- }), [o, ce, e, B, T, se, d, M, D, H, K, f, j, g, w, P, W, y, q, p]);
16721
+ }), [o, ce, e, B, T, se, d, M, D, H, x, f, j, g, w, P, W, y, q, p]);
16724
16722
  }
16725
16723
  function ft(e) {
16726
16724
  return encodeURIComponent(Ce(e)).replaceAll("%2F", "/").replaceAll("%23", "#");
@@ -16755,7 +16753,7 @@ function js() {
16755
16753
  };
16756
16754
  Q(() => {
16757
16755
  const f = (e.state?.panels ?? []).map((_) => a.current[_]).filter((_) => !!_);
16758
- Ae(c.current.map((_) => _.key), f.map((_) => _.key)) || s(f);
16756
+ _e(c.current.map((_) => _.key), f.map((_) => _.key)) || s(f);
16759
16757
  }, [e]);
16760
16758
  const u = v(() => {
16761
16759
  if (r.length === 0)
@@ -16858,7 +16856,7 @@ function KW(e) {
16858
16856
  userConfigPersistence: l,
16859
16857
  dataSource: p,
16860
16858
  plugins: _
16861
- }), x = js(), k = Gs(w, x), C = _?.some((B) => B.loading) ?? !1, K = d.initialLoading || w.loading || C, N = ie(() => ({
16859
+ }), K = js(), k = Gs(w, K), C = _?.some((B) => B.loading) ?? !1, x = d.initialLoading || w.loading || C, N = ie(() => ({
16862
16860
  entityLinkBuilder: a,
16863
16861
  dateTimeFormat: s,
16864
16862
  locale: u,
@@ -16899,7 +16897,7 @@ function KW(e) {
16899
16897
  children: /* @__PURE__ */ n(
16900
16898
  Zr.Provider,
16901
16899
  {
16902
- value: x,
16900
+ value: K,
16903
16901
  children: /* @__PURE__ */ n(
16904
16902
  Xr.Provider,
16905
16903
  {
@@ -16911,7 +16909,7 @@ function KW(e) {
16911
16909
  children: /* @__PURE__ */ n(Ps, { children: /* @__PURE__ */ n(Na, { children: /* @__PURE__ */ n(
16912
16910
  Zs,
16913
16911
  {
16914
- loading: K,
16912
+ loading: x,
16915
16913
  children: r
16916
16914
  }
16917
16915
  ) }) })
@@ -17083,7 +17081,7 @@ const eu = 280, xW = F.memo(
17083
17081
  fireCMSAppBarComponentProps: m
17084
17082
  } = o, p = je(), A = ve(), [f, _] = F.useState(!1), [y, h] = F.useState(!1), g = v(() => h(!0), []), b = v(() => h(!1), []), w = v(() => {
17085
17083
  _(!1);
17086
- }, []), x = f || !!(p && l && y);
17084
+ }, []), K = f || !!(p && l && y);
17087
17085
  return /* @__PURE__ */ I(
17088
17086
  "div",
17089
17087
  {
@@ -17104,7 +17102,7 @@ const eu = 280, xW = F.memo(
17104
17102
  {
17105
17103
  title: i,
17106
17104
  includeDrawer: a,
17107
- drawerOpen: x,
17105
+ drawerOpen: K,
17108
17106
  ...m
17109
17107
  }
17110
17108
  ),
@@ -17115,7 +17113,7 @@ const eu = 280, xW = F.memo(
17115
17113
  onMouseEnter: g,
17116
17114
  onMouseMove: g,
17117
17115
  onMouseLeave: b,
17118
- open: x,
17116
+ open: K,
17119
17117
  logo: c,
17120
17118
  hovered: y,
17121
17119
  setDrawerOpen: _,
@@ -17123,7 +17121,7 @@ const eu = 280, xW = F.memo(
17123
17121
  s,
17124
17122
  {
17125
17123
  hovered: y,
17126
- drawerOpen: x,
17124
+ drawerOpen: K,
17127
17125
  closeDrawer: w,
17128
17126
  ...u
17129
17127
  }
@@ -17140,7 +17138,7 @@ const eu = 280, xW = F.memo(
17140
17138
  "div",
17141
17139
  {
17142
17140
  className: S(ge, "flex-grow overflow-auto lg:m-0 lg:mx-4 lg:mb-4 lg:rounded-lg lg:border lg:border-solid m-0 mt-1"),
17143
- children: /* @__PURE__ */ n(_e, { children: r })
17141
+ children: /* @__PURE__ */ n(pe, { children: r })
17144
17142
  }
17145
17143
  )
17146
17144
  ]
@@ -17150,7 +17148,7 @@ const eu = 280, xW = F.memo(
17150
17148
  }
17151
17149
  );
17152
17150
  },
17153
- Ae
17151
+ _e
17154
17152
  ), nu = () => /* @__PURE__ */ n("div", { className: "flex flex-col min-h-[68px]" });
17155
17153
  function tu(e) {
17156
17154
  const o = ve(), r = e.displayed ? e.open ? eu : 72 : 0, i = /* @__PURE__ */ I(
@@ -17381,7 +17379,7 @@ const CW = F.memo(
17381
17379
  });
17382
17380
  }, [i, r]), /* @__PURE__ */ n(O, { children: o });
17383
17381
  },
17384
- Ae
17382
+ _e
17385
17383
  );
17386
17384
  function EW() {
17387
17385
  const e = typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)"), r = (localStorage.getItem("prefers-dark-mode") != null ? localStorage.getItem("prefers-dark-mode") === "true" : null) ?? e, [i, c] = R(r ? "dark" : "light");
@@ -17488,7 +17486,7 @@ function ou({
17488
17486
  }
17489
17487
  g.setSelectedEntities(P), o && o(P);
17490
17488
  }
17491
- }, [o, g.selectedEntities]), x = v((E) => {
17489
+ }, [o, g.selectedEntities]), K = v((E) => {
17492
17490
  !r && e ? (A.onAnalyticsEvent?.("reference_selected_single", {
17493
17491
  path: f,
17494
17492
  entityId: E.id
@@ -17502,12 +17500,12 @@ function ou({
17502
17500
  collection: i,
17503
17501
  updateUrl: !0,
17504
17502
  onUpdate: ({ entity: E }) => {
17505
- h([E, ...y]), x(E);
17503
+ h([E, ...y]), K(E);
17506
17504
  },
17507
17505
  closeOnSave: !0
17508
17506
  });
17509
17507
  },
17510
- [m, f, i, y, x]
17508
+ [m, f, i, y, K]
17511
17509
  ), C = v(({
17512
17510
  entity: E,
17513
17511
  size: P,
@@ -17529,7 +17527,7 @@ function ou({
17529
17527
  selectionController: g
17530
17528
  }
17531
17529
  );
17532
- }, [r, g.selectedEntities, w, i?.hideIdFromCollection]), K = v((E) => {
17530
+ }, [r, g.selectedEntities, w, i?.hideIdFromCollection]), x = v((E) => {
17533
17531
  E.stopPropagation(), d.close(!1);
17534
17532
  }, [d]);
17535
17533
  if (!i)
@@ -17555,7 +17553,7 @@ function ou({
17555
17553
  Bi,
17556
17554
  {
17557
17555
  displayedColumnIds: B,
17558
- onEntityClick: x,
17556
+ onEntityClick: K,
17559
17557
  tableController: T,
17560
17558
  tableRowActionsBuilder: C,
17561
17559
  title: /* @__PURE__ */ n(Z, { variant: "subtitle2", children: i.singularName ? `Select ${i.singularName}` : `Select from ${i.name}` }),
@@ -17587,7 +17585,7 @@ function ou({
17587
17585
  /* @__PURE__ */ n(
17588
17586
  me,
17589
17587
  {
17590
- onClick: K,
17588
+ onClick: x,
17591
17589
  color: "primary",
17592
17590
  variant: "filled",
17593
17591
  children: "Done"
@@ -17984,12 +17982,12 @@ function su({
17984
17982
  context: r
17985
17983
  };
17986
17984
  h = /* @__PURE__ */ n(O, { children: r.plugins.filter((b) => b.homePage?.includeSection).map((b, w) => {
17987
- const x = b.homePage.includeSection(g);
17985
+ const K = b.homePage.includeSection(g);
17988
17986
  return /* @__PURE__ */ n(
17989
17987
  _r,
17990
17988
  {
17991
- group: x.title,
17992
- children: x.children
17989
+ group: K.title,
17990
+ children: K.children
17993
17991
  },
17994
17992
  `plugin_section_${b.name}`
17995
17993
  );
@@ -18022,7 +18020,7 @@ function su({
18022
18020
  e,
18023
18021
  _,
18024
18022
  f.map((g, b) => {
18025
- const w = [], x = {
18023
+ const w = [], K = {
18026
18024
  group: g,
18027
18025
  context: r
18028
18026
  };
@@ -18040,12 +18038,12 @@ function su({
18040
18038
  {
18041
18039
  ...C,
18042
18040
  onClick: () => {
18043
- const K = C.type === "collection" ? "home_navigate_to_collection" : C.type === "view" ? "home_navigate_to_view" : "unmapped_event";
18044
- r.onAnalyticsEvent?.(K, { path: C.path });
18041
+ const x = C.type === "collection" ? "home_navigate_to_collection" : C.type === "view" ? "home_navigate_to_view" : "unmapped_event";
18042
+ r.onAnalyticsEvent?.(x, { path: C.path });
18045
18043
  }
18046
18044
  }
18047
18045
  ) }, `nav_${C.group}_${C.name}`)),
18048
- w && w.map((C, K) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(C, { ...x }) }, `nav_${g}_add_${K}`))
18046
+ w && w.map((C, x) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(C, { ...K }) }, `nav_${g}_add_${x}`))
18049
18047
  ] })
18050
18048
  },
18051
18049
  `plugin_section_${g}`
@@ -18370,7 +18368,7 @@ const fu = function({
18370
18368
  }
18371
18369
  ) }),
18372
18370
  /* @__PURE__ */ n("div", { className: "flex-grow" }),
18373
- r && /* @__PURE__ */ n(_e, { children: r }),
18371
+ r && /* @__PURE__ */ n(pe, { children: r }),
18374
18372
  /* @__PURE__ */ n(
18375
18373
  ne,
18376
18374
  {
@@ -18411,8 +18409,8 @@ function Gi({
18411
18409
  );
18412
18410
  Q(() => {
18413
18411
  if (m && r && r.length !== A.length) {
18414
- const b = r.map((w, x) => {
18415
- const k = si(w) + x;
18412
+ const b = r.map((w, K) => {
18413
+ const k = si(w) + K;
18416
18414
  if (k in p.current)
18417
18415
  return p.current[k];
18418
18416
  {
@@ -18426,30 +18424,30 @@ function Gi({
18426
18424
  const _ = (b) => {
18427
18425
  if (b.preventDefault(), i)
18428
18426
  return;
18429
- const w = _t(), x = [...A, w];
18430
- l && l(w), f(x), d([...r ?? [], u]);
18427
+ const w = _t(), K = [...A, w];
18428
+ l && l(w), f(K), d([...r ?? [], u]);
18431
18429
  }, y = (b) => {
18432
18430
  const w = [...A];
18433
- w.splice(b, 1), f(w), d(r.filter((x, k) => k !== b));
18431
+ w.splice(b, 1), f(w), d(r.filter((K, k) => k !== b));
18434
18432
  }, h = (b) => {
18435
- const w = _t(), x = r[b], k = [
18433
+ const w = _t(), K = r[b], k = [
18436
18434
  ...A.splice(0, b + 1),
18437
18435
  w,
18438
18436
  ...A.splice(b + 1, A.length - b - 1)
18439
18437
  ];
18440
- l && l(w), f(k), d([...r.slice(0, b + 1), x, ...r.slice(b + 1)]);
18438
+ l && l(w), f(k), d([...r.slice(0, b + 1), K, ...r.slice(b + 1)]);
18441
18439
  };
18442
18440
  return /* @__PURE__ */ n(Fr, { onDragEnd: (b) => {
18443
18441
  if (!b.destination)
18444
18442
  return;
18445
- const w = b.source.index, x = b.destination.index, k = [...A], C = k[w];
18446
- k[w] = k[x], k[x] = C, f(k), d(Au(r, w, x));
18443
+ const w = b.source.index, K = b.destination.index, k = [...A], C = k[w];
18444
+ k[w] = k[K], k[K] = C, f(k), d(Au(r, w, K));
18447
18445
  }, children: /* @__PURE__ */ n(
18448
18446
  Nr,
18449
18447
  {
18450
18448
  droppableId: e,
18451
- renderClone: (b, w, x) => {
18452
- const k = x.source.index, C = A[k];
18449
+ renderClone: (b, w, K) => {
18450
+ const k = K.source.index, C = A[k];
18453
18451
  return /* @__PURE__ */ n(
18454
18452
  yr,
18455
18453
  {
@@ -18471,28 +18469,28 @@ function Gi({
18471
18469
  ...b.droppableProps,
18472
18470
  ref: b.innerRef,
18473
18471
  children: [
18474
- m && A.map((x, k) => /* @__PURE__ */ n(
18472
+ m && A.map((K, k) => /* @__PURE__ */ n(
18475
18473
  Pr,
18476
18474
  {
18477
- draggableId: `array_field_${x}`,
18475
+ draggableId: `array_field_${K}`,
18478
18476
  isDragDisabled: i,
18479
18477
  index: k,
18480
- children: (C, K) => /* @__PURE__ */ n(
18478
+ children: (C, x) => /* @__PURE__ */ n(
18481
18479
  yr,
18482
18480
  {
18483
18481
  provided: C,
18484
- internalId: x,
18482
+ internalId: K,
18485
18483
  index: k,
18486
18484
  size: a,
18487
18485
  disabled: i,
18488
18486
  buildEntry: c,
18489
18487
  remove: y,
18490
18488
  copy: h,
18491
- isDragging: K.isDragging
18489
+ isDragging: x.isDragging
18492
18490
  }
18493
18491
  )
18494
18492
  },
18495
- `array_field_${x}`
18493
+ `array_field_${K}`
18496
18494
  )),
18497
18495
  b.placeholder,
18498
18496
  s && /* @__PURE__ */ n("div", { className: "py-4 justify-center text-left", children: /* @__PURE__ */ n(
@@ -18931,7 +18929,7 @@ function Wi({ children: e, error: o }) {
18931
18929
  o ? "text-red-500 dark:text-red-600" : "text-gray-500 dark:text-gray-300"
18932
18930
  ), children: e });
18933
18931
  }
18934
- const Ui = pe.createContext({});
18932
+ const Ui = Ae.createContext({});
18935
18933
  function Yi({
18936
18934
  value: e,
18937
18935
  open: o,
@@ -18947,15 +18945,15 @@ function Yi({
18947
18945
  children: p,
18948
18946
  error: A
18949
18947
  }) {
18950
- const f = pe.useRef(null), _ = pe.useRef(null), y = pe.useRef(null);
18948
+ const f = Ae.useRef(null), _ = Ae.useRef(null), y = Ae.useRef(null);
18951
18949
  mo(y, () => g(!1));
18952
- const [h, g] = pe.useState(!1);
18950
+ const [h, g] = Ae.useState(!1);
18953
18951
  Q(() => {
18954
18952
  g(o ?? !1);
18955
18953
  }, [o]);
18956
- const b = pe.useCallback((E) => {
18954
+ const b = Ae.useCallback((E) => {
18957
18955
  Array.isArray(e) && e.includes(E) ? r?.(e.filter((P) => P !== E)) : r?.([...e ?? [], E]);
18958
- }, [e, r]), [w, x] = pe.useState(""), [k, C] = pe.useState(null), K = pe.useCallback((E) => {
18956
+ }, [e, r]), [w, K] = Ae.useState(""), [k, C] = Ae.useState(null), x = Ae.useCallback((E) => {
18959
18957
  const P = _.current;
18960
18958
  if (P) {
18961
18959
  if ((E.key === "Delete" || E.key === "Backspace") && P.value === "") {
@@ -18964,7 +18962,7 @@ function Yi({
18964
18962
  }
18965
18963
  E.key === "Escape" && (P.blur(), g(!1), E.stopPropagation());
18966
18964
  }
18967
- }, [r, e]), N = pe.useCallback(() => {
18965
+ }, [r, e]), N = Ae.useCallback(() => {
18968
18966
  C(f.current?.getBoundingClientRect() ?? null), g(!0);
18969
18967
  }, []), B = k ?? f.current?.getBoundingClientRect(), T = window.innerHeight - (B?.top ?? 0) - (B?.height ?? 0) - 16;
18970
18968
  return /* @__PURE__ */ I(O, { children: [
@@ -18972,7 +18970,7 @@ function Yi({
18972
18970
  /* @__PURE__ */ I(
18973
18971
  mt,
18974
18972
  {
18975
- onKeyDown: K,
18973
+ onKeyDown: x,
18976
18974
  onClick: () => {
18977
18975
  _.current?.focus(), N();
18978
18976
  },
@@ -19004,7 +19002,7 @@ function Yi({
19004
19002
  {
19005
19003
  ref: _,
19006
19004
  value: w,
19007
- onValueChange: x,
19005
+ onValueChange: K,
19008
19006
  onFocus: N,
19009
19007
  className: "ml-2 bg-transparent outline-none flex-1 h-full w-full "
19010
19008
  }
@@ -19025,7 +19023,7 @@ function Yi({
19025
19023
  {
19026
19024
  value: {
19027
19025
  fieldValue: e,
19028
- setInputValue: x,
19026
+ setInputValue: K,
19029
19027
  onValueChangeInternal: b
19030
19028
  },
19031
19029
  children: /* @__PURE__ */ n(
@@ -19058,7 +19056,7 @@ function Yi({
19058
19056
  ] });
19059
19057
  }
19060
19058
  function Hi({ children: e, value: o, className: r }) {
19061
- const i = pe.useContext(Ui);
19059
+ const i = Ae.useContext(Ui);
19062
19060
  if (!i)
19063
19061
  throw new Error("MultiSelectItem must be used inside a MultiSelect");
19064
19062
  const { fieldValue: c, setInputValue: a, onValueChangeInternal: l } = i;
@@ -19210,7 +19208,7 @@ function _u({
19210
19208
  selectedEntityIds: y,
19211
19209
  forceFilter: p.forceFilter
19212
19210
  }
19213
- ), x = v((N) => {
19211
+ ), K = v((N) => {
19214
19212
  N.preventDefault(), w.open();
19215
19213
  }, [w]), k = v((N, B) => {
19216
19214
  const T = o && o.length > N ? o[N] : void 0;
@@ -19226,7 +19224,7 @@ function _u({
19226
19224
  disabled: !p.path,
19227
19225
  previewProperties: p.previewProperties,
19228
19226
  size: "medium",
19229
- onClick: x,
19227
+ onClick: K,
19230
19228
  reference: T,
19231
19229
  onHover: f
19232
19230
  }
@@ -19241,7 +19239,7 @@ function _u({
19241
19239
  title: s.name,
19242
19240
  className: "text-text-secondary dark:text-text-secondary-dark"
19243
19241
  }
19244
- ), K = /* @__PURE__ */ I(O, { children: [
19242
+ ), x = /* @__PURE__ */ I(O, { children: [
19245
19243
  !g && /* @__PURE__ */ n(
19246
19244
  Be,
19247
19245
  {
@@ -19268,7 +19266,7 @@ function _u({
19268
19266
  variant: "outlined",
19269
19267
  color: "primary",
19270
19268
  disabled: a,
19271
- onClick: x,
19269
+ onClick: K,
19272
19270
  children: [
19273
19271
  "Edit ",
19274
19272
  s.name
@@ -19284,10 +19282,10 @@ function _u({
19284
19282
  className: "px-2 md:px-4 pb-2 md:pb-4 pt-1 md:pt-2",
19285
19283
  initiallyExpanded: A,
19286
19284
  title: C,
19287
- children: K
19285
+ children: x
19288
19286
  }
19289
19287
  ),
19290
- l && K,
19288
+ l && x,
19291
19289
  /* @__PURE__ */ n(
19292
19290
  De,
19293
19291
  {
@@ -19336,7 +19334,7 @@ function ji({
19336
19334
  )
19337
19335
  }
19338
19336
  ),
19339
- r && /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ n(
19337
+ r && /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
19340
19338
  Ne,
19341
19339
  {
19342
19340
  propertyKey: e,
@@ -19388,7 +19386,7 @@ function br({
19388
19386
  value: o,
19389
19387
  setValue: r
19390
19388
  });
19391
- const x = {
19389
+ const K = {
19392
19390
  id: d.entityId,
19393
19391
  values: d.values,
19394
19392
  path: d.path
@@ -19414,7 +19412,7 @@ function br({
19414
19412
  onChange: r,
19415
19413
  setInternalValue: _,
19416
19414
  onFilesAdded: y,
19417
- entity: x,
19415
+ entity: K,
19418
19416
  onFileUploadComplete: g,
19419
19417
  storagePathBuilder: b,
19420
19418
  storage: h,
@@ -19455,18 +19453,18 @@ function vu({
19455
19453
  const g = xn(), {
19456
19454
  getRootProps: b,
19457
19455
  getInputProps: w,
19458
- isDragActive: x,
19456
+ isDragActive: K,
19459
19457
  isDragAccept: k,
19460
19458
  isDragReject: C
19461
19459
  } = lo(
19462
19460
  {
19463
- accept: e.acceptedFiles ? e.acceptedFiles.map((K) => ({ [K]: [] })).reduce((K, N) => ({ ...K, ...N }), {}) : void 0,
19461
+ accept: e.acceptedFiles ? e.acceptedFiles.map((x) => ({ [x]: [] })).reduce((x, N) => ({ ...x, ...N }), {}) : void 0,
19464
19462
  disabled: o || r,
19465
19463
  noDragEventsBubbling: !0,
19466
19464
  maxSize: e.maxSize,
19467
19465
  onDrop: i,
19468
- onDropRejected: (K, N) => {
19469
- for (const B of K)
19466
+ onDropRejected: (x, N) => {
19467
+ for (const B of x)
19470
19468
  for (const T of B.errors)
19471
19469
  g.open({
19472
19470
  type: "error",
@@ -19486,8 +19484,8 @@ function vu({
19486
19484
  c && s.length ? "" : "flex",
19487
19485
  xe,
19488
19486
  {
19489
- [gu]: !x,
19490
- [bu]: x,
19487
+ [gu]: !K,
19488
+ [bu]: K,
19491
19489
  [wu]: C,
19492
19490
  [Iu]: k,
19493
19491
  [hu]: o
@@ -19512,25 +19510,25 @@ function vu({
19512
19510
  ...w()
19513
19511
  }
19514
19512
  ),
19515
- s.map((K, N) => {
19513
+ s.map((x, N) => {
19516
19514
  let B;
19517
- return K.storagePathOrDownloadUrl ? B = /* @__PURE__ */ n(
19515
+ return x.storagePathOrDownloadUrl ? B = /* @__PURE__ */ n(
19518
19516
  ji,
19519
19517
  {
19520
- name: `storage_preview_${K.storagePathOrDownloadUrl}`,
19518
+ name: `storage_preview_${x.storagePathOrDownloadUrl}`,
19521
19519
  property: u,
19522
19520
  disabled: o,
19523
19521
  entity: d,
19524
- value: K.storagePathOrDownloadUrl,
19522
+ value: x.storagePathOrDownloadUrl,
19525
19523
  onRemove: m,
19526
- size: K.size
19524
+ size: x.size
19527
19525
  }
19528
- ) : K.file && (B = /* @__PURE__ */ n(
19526
+ ) : x.file && (B = /* @__PURE__ */ n(
19529
19527
  wi,
19530
19528
  {
19531
- entry: K,
19529
+ entry: x,
19532
19530
  metadata: p,
19533
- storagePath: A(K.file),
19531
+ storagePath: A(x.file),
19534
19532
  onFileUploadComplete: f,
19535
19533
  imageSize: _ === "medium" ? 220 : 118,
19536
19534
  simple: !1
@@ -19538,7 +19536,7 @@ function vu({
19538
19536
  )), /* @__PURE__ */ n(
19539
19537
  Pr,
19540
19538
  {
19541
- draggableId: `array_field_${y}_${K.id}`,
19539
+ draggableId: `array_field_${y}_${x.id}`,
19542
19540
  index: N,
19543
19541
  children: (T, E) => /* @__PURE__ */ n(
19544
19542
  "div",
@@ -19555,7 +19553,7 @@ function vu({
19555
19553
  }
19556
19554
  )
19557
19555
  },
19558
- `array_field_${y}_${K.id}`
19556
+ `array_field_${y}_${x.id}`
19559
19557
  );
19560
19558
  }),
19561
19559
  a.placeholder
@@ -19596,25 +19594,25 @@ function ku({
19596
19594
  storagePathBuilder: A
19597
19595
  }) {
19598
19596
  if (a) {
19599
- const x = e;
19600
- if (x.of) {
19601
- if (Array.isArray(x.of) || x.of.dataType !== "string")
19597
+ const K = e;
19598
+ if (K.of) {
19599
+ if (Array.isArray(K.of) || K.of.dataType !== "string")
19602
19600
  throw Error("Storage field using array must be of data type string");
19603
19601
  } else
19604
19602
  throw Error("Storage field using array must be of data type string");
19605
19603
  }
19606
- const f = m?.metadata, _ = a ? "small" : "medium", y = v((x, k) => {
19604
+ const f = m?.metadata, _ = a ? "small" : "medium", y = v((K, k) => {
19607
19605
  if (!a)
19608
19606
  return;
19609
- const C = [...r], K = C[x];
19610
- C.splice(x, 1), C.splice(k, 0, K), i(C);
19607
+ const C = [...r], x = C[K];
19608
+ C.splice(K, 1), C.splice(k, 0, x), i(C);
19611
19609
  const N = C.filter((B) => !!B.storagePathOrDownloadUrl).map((B) => B.storagePathOrDownloadUrl);
19612
19610
  c(N);
19613
- }, [a, c, i, r]), h = v((x) => {
19614
- x.destination && y(x.source.index, x.destination.index);
19615
- }, [y]), g = v((x) => {
19611
+ }, [a, c, i, r]), h = v((K) => {
19612
+ K.destination && y(K.source.index, K.destination.index);
19613
+ }, [y]), g = v((K) => {
19616
19614
  if (a) {
19617
- const k = r.filter((C) => C.storagePathOrDownloadUrl !== x);
19615
+ const k = r.filter((C) => C.storagePathOrDownloadUrl !== K);
19618
19616
  c(k.filter((C) => !!C.storagePathOrDownloadUrl).map((C) => C.storagePathOrDownloadUrl)), i(k);
19619
19617
  } else
19620
19618
  c(null), i([]);
@@ -19624,38 +19622,38 @@ function ku({
19624
19622
  {
19625
19623
  droppableId: `droppable_${o}`,
19626
19624
  direction: "horizontal",
19627
- renderClone: (x, k, C) => {
19628
- const K = r[C.source.index];
19625
+ renderClone: (K, k, C) => {
19626
+ const x = r[C.source.index];
19629
19627
  return /* @__PURE__ */ n(
19630
19628
  "div",
19631
19629
  {
19632
- ref: x.innerRef,
19633
- ...x.draggableProps,
19634
- ...x.dragHandleProps,
19635
- style: x.draggableProps.style,
19630
+ ref: K.innerRef,
19631
+ ...K.draggableProps,
19632
+ ...K.dragHandleProps,
19633
+ style: K.draggableProps.style,
19636
19634
  className: "rounded",
19637
19635
  children: /* @__PURE__ */ n(
19638
19636
  ji,
19639
19637
  {
19640
- name: `storage_preview_${K.storagePathOrDownloadUrl}`,
19638
+ name: `storage_preview_${x.storagePathOrDownloadUrl}`,
19641
19639
  property: w,
19642
19640
  disabled: !0,
19643
19641
  entity: p,
19644
- value: K.storagePathOrDownloadUrl,
19642
+ value: x.storagePathOrDownloadUrl,
19645
19643
  onRemove: g,
19646
- size: K.size
19644
+ size: x.size
19647
19645
  }
19648
19646
  )
19649
19647
  }
19650
19648
  );
19651
19649
  },
19652
- children: (x, k) => /* @__PURE__ */ n(
19650
+ children: (K, k) => /* @__PURE__ */ n(
19653
19651
  vu,
19654
19652
  {
19655
19653
  storage: m,
19656
19654
  disabled: s,
19657
19655
  isDraggingOver: k.isDraggingOver,
19658
- droppableProvided: x,
19656
+ droppableProvided: K,
19659
19657
  onFilesAdded: u,
19660
19658
  multipleFilesSupported: a,
19661
19659
  autoFocus: d,
@@ -19884,7 +19882,7 @@ function $i({
19884
19882
  "div",
19885
19883
  {
19886
19884
  className: S(nn, "min-h-14 p-4 md:p-6 overflow-x-scroll no-scrollbar"),
19887
- children: /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ n(
19885
+ children: /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
19888
19886
  Ne,
19889
19887
  {
19890
19888
  propertyKey: e,
@@ -20004,7 +20002,7 @@ const On = F.memo(Bu, (e, o) => {
20004
20002
  if (e.propertyKey !== o.propertyKey)
20005
20003
  return !1;
20006
20004
  const r = Oe(e.property) || e.property.fromBuilder, i = Oe(o.property) || o.property.fromBuilder;
20007
- return !((r === i || Ae(e.property, o.property)) && e.disabled === o.disabled) || xt(o.property), !1;
20005
+ return !((r === i || _e(e.property, o.property)) && e.disabled === o.disabled) || xt(o.property), !1;
20008
20006
  });
20009
20007
  function Bu({
20010
20008
  propertyKey: e,
@@ -20092,18 +20090,18 @@ function Su({
20092
20090
  },
20093
20091
  fieldProps: p
20094
20092
  }) {
20095
- const { plugins: A } = oe(), f = r.customProps, _ = p.field.value, y = p.meta.initialValue, h = qt(p.form.errors, o), g = qt(p.form.touched, o), b = h && (p.form.submitCount > 0 || r.validation?.unique) && (!Array.isArray(h) || !!h.filter((B) => !!B).length), x = Fu(d.path, d.collection, o, r, e, A) ?? e, k = p.form.isSubmitting, C = v((B, T) => {
20093
+ const { plugins: A } = oe(), f = r.customProps, _ = p.field.value, y = p.meta.initialValue, h = qt(p.form.errors, o), g = qt(p.form.touched, o), b = h && (p.form.submitCount > 0 || r.validation?.unique) && (!Array.isArray(h) || !!h.filter((B) => !!B).length), K = Fu(d.path, d.collection, o, r, e, A) ?? e, k = p.form.isSubmitting, C = v((B, T) => {
20096
20094
  p.form.setFieldTouched(o, !0, !1), p.form.setFieldValue(o, B, T);
20097
- }, []), K = v((B, T, E) => {
20095
+ }, []), x = v((B, T, E) => {
20098
20096
  p.form.setFieldTouched(o, !0, !1), p.form.setFieldValue(B, T, E);
20099
20097
  }, []);
20100
- return /* @__PURE__ */ I(_e, { children: [
20101
- /* @__PURE__ */ n(x, { ...{
20098
+ return /* @__PURE__ */ I(pe, { children: [
20099
+ /* @__PURE__ */ n(K, { ...{
20102
20100
  propertyKey: o,
20103
20101
  value: _,
20104
20102
  initialValue: y,
20105
20103
  setValue: C,
20106
- setFieldValue: K,
20104
+ setFieldValue: x,
20107
20105
  error: h,
20108
20106
  touched: g,
20109
20107
  showError: b,
@@ -20173,7 +20171,7 @@ function Nu({
20173
20171
  ...Object.keys(o).filter((b) => b in a.properties)
20174
20172
  ) : y = {} : y = a.properties;
20175
20173
  const h = /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n("div", { className: "py-1 flex flex-col space-y-2", children: Object.entries(y).filter(([b, w]) => !Ft(w)).map(
20176
- ([b, w], x) => {
20174
+ ([b, w], K) => {
20177
20175
  const k = {
20178
20176
  propertyKey: `${e}.${b}`,
20179
20177
  disabled: c,
@@ -20184,14 +20182,14 @@ function Nu({
20184
20182
  tableMode: !1,
20185
20183
  partOfArray: !1,
20186
20184
  partOfBlock: !1,
20187
- autoFocus: p && x === 0
20185
+ autoFocus: p && K === 0
20188
20186
  };
20189
20187
  return /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
20190
20188
  On,
20191
20189
  {
20192
20190
  ...k
20193
20191
  }
20194
- ) }, `map-${e}-${x}`);
20192
+ ) }, `map-${e}-${K}`);
20195
20193
  }
20196
20194
  ) }) }), g = /* @__PURE__ */ n(
20197
20195
  Pe,
@@ -20796,9 +20794,9 @@ function Tu({
20796
20794
  value: o,
20797
20795
  setValue: a
20798
20796
  });
20799
- const g = (x, k) => {
20800
- const C = u.resolvedProperties[x] ?? _, K = {
20801
- propertyKey: `${e}.${x}`,
20797
+ const g = (K, k) => {
20798
+ const C = u.resolvedProperties[K] ?? _, x = {
20799
+ propertyKey: `${e}.${K}`,
20802
20800
  disabled: A,
20803
20801
  property: C,
20804
20802
  includeDescription: d,
@@ -20809,7 +20807,7 @@ function Tu({
20809
20807
  partOfBlock: !1,
20810
20808
  autoFocus: k === y
20811
20809
  };
20812
- return /* @__PURE__ */ n(On, { ...K });
20810
+ return /* @__PURE__ */ n(On, { ...x });
20813
20811
  }, b = /* @__PURE__ */ n(
20814
20812
  So,
20815
20813
  {
@@ -20878,19 +20876,19 @@ function Mu({
20878
20876
  value: o,
20879
20877
  setValue: a
20880
20878
  });
20881
- const [_, y] = R(), h = v((x, k) => /* @__PURE__ */ n(
20879
+ const [_, y] = R(), h = v((K, k) => /* @__PURE__ */ n(
20882
20880
  Ou,
20883
20881
  {
20884
- name: `${e}.${x}`,
20885
- index: x,
20886
- value: o[x],
20882
+ name: `${e}.${K}`,
20883
+ index: K,
20884
+ value: o[K],
20887
20885
  typeField: u.oneOf.typeField ?? Zn,
20888
20886
  valueField: u.oneOf.valueField ?? It,
20889
20887
  properties: u.oneOf.properties,
20890
20888
  autoFocus: k === _,
20891
20889
  context: p
20892
20890
  },
20893
- `array_one_of_${x}`
20891
+ `array_one_of_${K}`
20894
20892
  ), [p, _, u.oneOf, e, o]), g = /* @__PURE__ */ n(
20895
20893
  Pe,
20896
20894
  {
@@ -21887,7 +21885,7 @@ function Uu({
21887
21885
  }
21888
21886
  const Yu = F.memo(
21889
21887
  Hu,
21890
- (e, o) => e.status === o.status && e.path === o.path && Ae(e.entity?.values, o.entity?.values)
21888
+ (e, o) => e.status === o.status && e.path === o.path && _e(e.entity?.values, o.entity?.values)
21891
21889
  );
21892
21890
  function Hu({
21893
21891
  status: e,
@@ -21909,7 +21907,7 @@ function Hu({
21909
21907
  path: o,
21910
21908
  values: i?.values,
21911
21909
  fields: f.propertyConfigs
21912
- }), [i?.values, o]), g = (e === "new" || e === "copy") && !!h.customId && h.customId !== "optional", b = ie(() => e === "new" || e === "copy" ? g ? void 0 : _.generateEntityId(o) : i?.id, []), w = de(!1), x = ie(() => {
21910
+ }), [i?.values, o]), g = (e === "new" || e === "copy") && !!h.customId && h.customId !== "optional", b = ie(() => e === "new" || e === "copy" ? g ? void 0 : _.generateEntityId(o) : i?.id, []), w = de(!1), K = ie(() => {
21913
21911
  const U = h.properties;
21914
21912
  if ((e === "existing" || e === "copy") && i)
21915
21913
  return i.values ?? wt(U);
@@ -21919,8 +21917,8 @@ function Hu({
21919
21917
  status: e,
21920
21918
  entity: i
21921
21919
  }), new Error("Form has not been initialised with the correct parameters");
21922
- }, [e, h, i]), [k, C] = F.useState(b), [K, N] = F.useState(!1), [B, T] = F.useState(), E = de(i?.values ?? x), P = E.current, [D, H] = R(P), j = (U) => {
21923
- H(U), s && s(U), p && U && !Ae(U, P) && Y(U);
21920
+ }, [e, h, i]), [k, C] = F.useState(b), [x, N] = F.useState(!1), [B, T] = F.useState(), E = de(i?.values ?? K), P = E.current, [D, H] = R(P), j = (U) => {
21921
+ H(U), s && s(U), p && U && !_e(U, P) && Y(U);
21924
21922
  };
21925
21923
  Q(() => {
21926
21924
  k && u && u(k);
@@ -21951,9 +21949,9 @@ function Hu({
21951
21949
  const W = ie(() => P && e === "existing" ? Object.entries(q.properties).map(([U, L]) => {
21952
21950
  if (Ft(L))
21953
21951
  return {};
21954
- const ee = P[U], ae = x[U];
21955
- return Ae(ee, ae) ? {} : { [U]: ae };
21956
- }).reduce((U, L) => ({ ...U, ...L }), {}) : {}, [x, q.properties, P, e]), Y = (U) => c({
21952
+ const ee = P[U], ae = K[U];
21953
+ return _e(ee, ae) ? {} : { [U]: ae };
21954
+ }).reduce((U, L) => ({ ...U, ...L }), {}) : {}, [K, q.properties, P, e]), Y = (U) => c({
21957
21955
  collection: q,
21958
21956
  path: o,
21959
21957
  entityId: k,
@@ -22011,7 +22009,7 @@ function Hu({
22011
22009
  return /* @__PURE__ */ n(
22012
22010
  Kr,
22013
22011
  {
22014
- initialValues: x,
22012
+ initialValues: K,
22015
22013
  onSubmit: ce,
22016
22014
  validationSchema: z,
22017
22015
  validate: (U) => console.debug("Validating", U),
@@ -22087,7 +22085,7 @@ function Hu({
22087
22085
  entityId: k,
22088
22086
  status: e,
22089
22087
  onChange: C,
22090
- error: K,
22088
+ error: x,
22091
22089
  entity: i
22092
22090
  }
22093
22091
  ),
@@ -22138,13 +22136,13 @@ function ju(e) {
22138
22136
  closeAfterSaveRef: y,
22139
22137
  autoSave: h,
22140
22138
  entityActions: g
22141
- } = e, b = oe(), w = g.filter((B) => B.includeInForm === void 0 || B.includeInForm), x = Kn(), k = _;
22139
+ } = e, b = oe(), w = g.filter((B) => B.includeInForm === void 0 || B.includeInForm), K = Kn(), k = _;
22142
22140
  Q(() => {
22143
22141
  r && r(k), i && i(o);
22144
22142
  }, [k, o]), Q(() => {
22145
22143
  !h && c && l && Object.entries(c).forEach(([B, T]) => {
22146
22144
  const E = o[B];
22147
- !Ae(T, E) && !s[B] && (console.debug("Updated value from the datasource:", B, T), u(B, T !== void 0 ? T : null));
22145
+ !_e(T, E) && !s[B] && (console.debug("Updated value from the datasource:", B, T), u(B, T !== void 0 ? T : null));
22148
22146
  });
22149
22147
  }, [h, c, l, o, s, u]);
22150
22148
  const C = /* @__PURE__ */ n("div", { className: "flex flex-col gap-8", children: (d.propertiesOrder ?? Object.keys(d.properties)).map((B) => {
@@ -22170,11 +22168,11 @@ function ju(e) {
22170
22168
  "div",
22171
22169
  {
22172
22170
  id: `form_field_${B}`,
22173
- children: /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ n(On, { ...H }) })
22171
+ children: /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(On, { ...H }) })
22174
22172
  },
22175
22173
  `field_${d.name}_${B}`
22176
22174
  );
22177
- }).filter(Boolean) }), K = m || !k && p === "existing", N = F.useRef(null);
22175
+ }).filter(Boolean) }), x = m || !k && p === "existing", N = F.useRef(null);
22178
22176
  return /* @__PURE__ */ I(
22179
22177
  xr,
22180
22178
  {
@@ -22205,7 +22203,7 @@ function ju(e) {
22205
22203
  fullPath: d.path,
22206
22204
  collection: d,
22207
22205
  context: b,
22208
- sideEntityController: x
22206
+ sideEntityController: K
22209
22207
  });
22210
22208
  },
22211
22209
  children: B.icon
@@ -22216,7 +22214,7 @@ function ju(e) {
22216
22214
  me,
22217
22215
  {
22218
22216
  variant: "text",
22219
- disabled: K,
22217
+ disabled: x,
22220
22218
  type: "reset",
22221
22219
  children: p === "existing" ? "Discard" : "Clear"
22222
22220
  }
@@ -22227,7 +22225,7 @@ function ju(e) {
22227
22225
  variant: "text",
22228
22226
  color: "primary",
22229
22227
  type: "submit",
22230
- disabled: K,
22228
+ disabled: x,
22231
22229
  onClick: () => {
22232
22230
  y.current = !1;
22233
22231
  },
@@ -22244,7 +22242,7 @@ function ju(e) {
22244
22242
  variant: "filled",
22245
22243
  color: "primary",
22246
22244
  type: "submit",
22247
- disabled: K,
22245
+ disabled: x,
22248
22246
  onClick: () => {
22249
22247
  y.current = !0;
22250
22248
  },
@@ -23373,8 +23371,8 @@ const lc = () => Ve(Co), ad = (e) => {
23373
23371
  m() && navigator.clipboard.writeText("");
23374
23372
  }, y = (b) => g("copy", typeof b == "object" ? void 0 : b), h = () => g("cut"), g = v(
23375
23373
  (b = "copy", w) => {
23376
- const x = a.current, k = x && (x.tagName === "INPUT" || x.tagName === "TEXTAREA"), C = a.current;
23377
- m() && !i && (w ? f(w) : x ? k ? (f(C.value), b === "cut" && (C.value = "")) : f(x.innerText) : p("Both the ref & text were undefined"));
23374
+ const K = a.current, k = K && (K.tagName === "INPUT" || K.tagName === "TEXTAREA"), C = a.current;
23375
+ m() && !i && (w ? f(w) : K ? k ? (f(C.value), b === "cut" && (C.value = "")) : f(K.innerText) : p("Both the ref & text were undefined"));
23378
23376
  },
23379
23377
  [i, f, p]
23380
23378
  );
@@ -23668,7 +23666,7 @@ function XW({
23668
23666
  function co(e, o, r, i, c) {
23669
23667
  return e === void 0 ? c() : Array.isArray(e) ? e.map((a) => co(a, o, r, i, c)) : e instanceof en ? o(e) : e instanceof yo ? r(e) : e instanceof Date ? i(e) : e && typeof e == "object" ? Object.entries(e).map(([a, l]) => ({ [a]: co(l, o, r, i, c) })).reduce((a, l) => ({ ...a, ...l }), {}) : e;
23670
23668
  }
23671
- const uc = pe.forwardRef(function(o, r) {
23669
+ const uc = Ae.forwardRef(function(o, r) {
23672
23670
  const {
23673
23671
  shrink: i,
23674
23672
  className: c,
@@ -23711,7 +23709,7 @@ const uc = pe.forwardRef(function(o, r) {
23711
23709
  }) => {
23712
23710
  const f = de(null), { locale: _ } = oe(), y = de(null), [h, g] = F.useState(document.activeElement === y.current), b = e != null, w = e != null && !(e instanceof Date);
23713
23711
  Tn("DateTimeField", ud);
23714
- const x = (k) => {
23712
+ const K = (k) => {
23715
23713
  k.preventDefault(), r(null);
23716
23714
  };
23717
23715
  return /* @__PURE__ */ I(O, { children: [
@@ -23783,7 +23781,7 @@ const uc = pe.forwardRef(function(o, r) {
23783
23781
  c && e && /* @__PURE__ */ n(
23784
23782
  ne,
23785
23783
  {
23786
- onClick: x,
23784
+ onClick: K,
23787
23785
  className: "absolute right-14 top-1/2 transform -translate-y-1/2 text-gray-400 ",
23788
23786
  children: /* @__PURE__ */ n(wn, {})
23789
23787
  }
@@ -24655,42 +24653,44 @@ const uc = pe.forwardRef(function(o, r) {
24655
24653
  fullHeight: a,
24656
24654
  fullScreen: l,
24657
24655
  scrollable: s = !0,
24658
- maxWidth: u = "lg"
24656
+ maxWidth: u = "lg",
24657
+ modal: d = !0
24659
24658
  }) => {
24660
- const [d, m] = R(!1);
24659
+ const [m, p] = R(!1);
24661
24660
  return Q(() => {
24662
24661
  if (e)
24663
- return m(!0), () => {
24662
+ return p(!0), () => {
24664
24663
  };
24665
24664
  {
24666
- const p = setTimeout(() => {
24667
- m(!1);
24665
+ const A = setTimeout(() => {
24666
+ p(!1);
24668
24667
  }, 250);
24669
- return () => clearTimeout(p);
24668
+ return () => clearTimeout(A);
24670
24669
  }
24671
24670
  }, [e]), /* @__PURE__ */ n(
24672
24671
  Ze.Root,
24673
24672
  {
24674
- open: d || e,
24673
+ open: m || e,
24674
+ modal: d,
24675
24675
  onOpenChange: o,
24676
- children: /* @__PURE__ */ n(Ze.Portal, { children: /* @__PURE__ */ I("div", { className: "fixed inset-0 z-40", children: [
24676
+ children: /* @__PURE__ */ n(Ze.Portal, { children: /* @__PURE__ */ I("div", { className: "fixed inset-0 z-30", children: [
24677
24677
  /* @__PURE__ */ n(
24678
24678
  Ze.Overlay,
24679
24679
  {
24680
24680
  className: S(
24681
24681
  "fixed inset-0 transition-opacity z-20 ease-in-out duration-200 bg-black bg-opacity-50 dark:bg-opacity-60 backdrop-blur-sm ",
24682
- d && e ? "opacity-100" : "opacity-0",
24682
+ m && e ? "opacity-100" : "opacity-0",
24683
24683
  "z-20 fixed top-0 left-0 w-full h-full flex justify-center items-center"
24684
24684
  ),
24685
24685
  style: {
24686
- pointerEvents: d ? "auto" : "none"
24686
+ pointerEvents: m ? "auto" : "none"
24687
24687
  }
24688
24688
  }
24689
24689
  ),
24690
24690
  /* @__PURE__ */ n(
24691
24691
  Ze.Content,
24692
24692
  {
24693
- className: S("h-full outline-none flex justify-center items-center z-50 opacity-100 transition-all duration-200 ease-in-out"),
24693
+ className: S("h-full outline-none flex justify-center items-center z-40 opacity-100 transition-all duration-200 ease-in-out"),
24694
24694
  children: /* @__PURE__ */ n(
24695
24695
  "div",
24696
24696
  {
@@ -24706,7 +24706,7 @@ const uc = pe.forwardRef(function(o, r) {
24706
24706
  l ? "h-screen w-screen" : "max-h-[90vh] shadow-xl",
24707
24707
  "ease-in-out duration-200",
24708
24708
  s && "overflow-y-auto",
24709
- d && e ? "opacity-100" : "opacity-0",
24709
+ m && e ? "opacity-100" : "opacity-0",
24710
24710
  u && !l ? dd[u] : void 0,
24711
24711
  i
24712
24712
  ),
@@ -24883,7 +24883,7 @@ const pd = new Br({ html: !0 }), Tt = F.memo(
24883
24883
  }
24884
24884
  );
24885
24885
  },
24886
- Ae
24886
+ _e
24887
24887
  );
24888
24888
  function st({
24889
24889
  children: e,
@@ -24958,10 +24958,10 @@ function an({
24958
24958
  error: g,
24959
24959
  disabled: b,
24960
24960
  padding: w = !0,
24961
- position: x = "item-aligned",
24961
+ position: K = "item-aligned",
24962
24962
  endAdornment: k,
24963
24963
  multiple: C,
24964
- invisible: K,
24964
+ invisible: x,
24965
24965
  children: N,
24966
24966
  ...B
24967
24967
  }) {
@@ -24998,7 +24998,7 @@ function an({
24998
24998
  className: S(
24999
24999
  y === "small" ? "min-h-[42px]" : "min-h-[64px]",
25000
25000
  "select-none rounded-md text-sm",
25001
- K ? Dr : sn,
25001
+ x ? Dr : sn,
25002
25002
  b ? pn : Xe,
25003
25003
  "relative flex items-center",
25004
25004
  d
@@ -25061,13 +25061,15 @@ function an({
25061
25061
  /* @__PURE__ */ n(Je.Portal, { children: /* @__PURE__ */ n(
25062
25062
  Je.Content,
25063
25063
  {
25064
- position: x,
25065
- className: "z-50 max-h-[var(--radix-select-content-available-height)] overflow-hidden relative border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-800 p-2 rounded-lg shadow-lg",
25064
+ position: K,
25065
+ className: "z-50 relative overflow-hidden border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-800 p-2 rounded-lg shadow-lg",
25066
25066
  children: /* @__PURE__ */ n(
25067
25067
  Je.Viewport,
25068
25068
  {
25069
- className: "p-1 max-h-[var(--radix-select-content-available-height)]",
25070
- style: {},
25069
+ className: "p-1",
25070
+ style: {
25071
+ maxHeight: "var(--radix-select-content-available-height)"
25072
+ },
25071
25073
  children: N
25072
25074
  }
25073
25075
  )
@@ -25317,7 +25319,7 @@ function _n({
25317
25319
  inputRef: g,
25318
25320
  ...b
25319
25321
  }) {
25320
- const w = g ?? de(null), [x, k] = F.useState(document.activeElement === w.current), C = e != null && e !== "", K = v((B) => {
25322
+ const w = g ?? de(null), [K, k] = F.useState(document.activeElement === w.current), C = e != null && e !== "", x = v((B) => {
25321
25323
  B.target.blur(), B.stopPropagation(), setTimeout(() => {
25322
25324
  B.target.focus();
25323
25325
  }, 0);
@@ -25326,7 +25328,7 @@ function _n({
25326
25328
  {
25327
25329
  ...b,
25328
25330
  ref: w,
25329
- placeholder: x || C || !r ? p : void 0,
25331
+ placeholder: K || C || !r ? p : void 0,
25330
25332
  autoFocus: m,
25331
25333
  rows: l,
25332
25334
  value: e ?? "",
@@ -25343,7 +25345,7 @@ function _n({
25343
25345
  {
25344
25346
  ...b,
25345
25347
  ref: w,
25346
- onWheel: i === "number" ? K : void 0,
25348
+ onWheel: i === "number" ? x : void 0,
25347
25349
  disabled: s,
25348
25350
  style: h,
25349
25351
  className: S(
@@ -25353,12 +25355,12 @@ function _n({
25353
25355
  s ? pn : Xe,
25354
25356
  A === "small" ? "min-h-[48px]" : "min-h-[64px]",
25355
25357
  r ? A === "medium" ? "pt-[28px] pb-2" : "pt-4 pb-2" : "py-2",
25356
- x ? "text-text-primary dark:text-text-primary-dark" : "",
25358
+ K ? "text-text-primary dark:text-text-primary-dark" : "",
25357
25359
  d ? "pr-10" : "pr-3",
25358
25360
  s && "border border-transparent outline-none opacity-50 dark:opacity-50 text-gray-800 dark:text-gray-200",
25359
25361
  y
25360
25362
  ),
25361
- placeholder: x || C || !r ? p : void 0,
25363
+ placeholder: K || C || !r ? p : void 0,
25362
25364
  autoFocus: m,
25363
25365
  onFocus: () => k(!0),
25364
25366
  onBlur: () => k(!1),
@@ -25389,10 +25391,10 @@ function _n({
25389
25391
  className: S(
25390
25392
  "pointer-events-none absolute",
25391
25393
  A === "medium" ? "top-1" : "-top-1",
25392
- u ? "text-red-500 dark:text-red-600" : x ? "text-primary dark:text-primary" : "text-text-secondary dark:text-text-secondary-dark",
25394
+ u ? "text-red-500 dark:text-red-600" : K ? "text-primary dark:text-primary" : "text-text-secondary dark:text-text-secondary-dark",
25393
25395
  s ? "opacity-50" : ""
25394
25396
  ),
25395
- shrink: C || x,
25397
+ shrink: C || K,
25396
25398
  children: r
25397
25399
  }
25398
25400
  ),
@@ -26339,7 +26341,7 @@ export {
26339
26341
  en as EntityReference,
26340
26342
  Me as EnumValuesChip,
26341
26343
  zv as EqualizerIcon,
26342
- _e as ErrorBoundary,
26344
+ pe as ErrorBoundary,
26343
26345
  zr as ErrorIcon,
26344
26346
  na as ErrorOutlineIcon,
26345
26347
  Be as ErrorView,