@firecms/core 3.0.0-tw4.6 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +1 -1
  2. package/dist/components/VirtualTable/VirtualTable.performance.test.d.ts +1 -0
  3. package/dist/form/components/LocalChangesMenu.d.ts +2 -2
  4. package/dist/form/components/StorageUploadProgress.d.ts +1 -1
  5. package/dist/index.es.js +218 -238
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/index.umd.js +218 -238
  8. package/dist/index.umd.js.map +1 -1
  9. package/dist/types/entities.d.ts +1 -0
  10. package/dist/types/properties.d.ts +9 -0
  11. package/dist/types/storage.d.ts +8 -0
  12. package/dist/util/useStorageUploadController.d.ts +1 -1
  13. package/package.json +6 -5
  14. package/src/app/Scaffold.tsx +1 -1
  15. package/src/components/ArrayContainer.tsx +1 -1
  16. package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +1 -1
  17. package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +3 -3
  18. package/src/components/EntityPreview.tsx +1 -1
  19. package/src/components/ReferenceWidget.tsx +1 -1
  20. package/src/components/SelectableTable/SelectableTable.tsx +1 -1
  21. package/src/components/VirtualTable/VirtualTable.performance.test.tsx +386 -0
  22. package/src/components/VirtualTable/VirtualTable.tsx +3 -3
  23. package/src/components/VirtualTable/VirtualTableHeader.tsx +1 -1
  24. package/src/components/VirtualTable/VirtualTableRow.tsx +1 -1
  25. package/src/core/DefaultDrawer.tsx +1 -1
  26. package/src/core/DrawerNavigationItem.tsx +3 -4
  27. package/src/form/EntityForm.tsx +3 -10
  28. package/src/form/components/LocalChangesMenu.tsx +6 -6
  29. package/src/form/components/StorageUploadProgress.tsx +4 -3
  30. package/src/preview/components/EmptyValue.tsx +1 -1
  31. package/src/preview/components/ReferencePreview.tsx +6 -1
  32. package/src/types/entities.ts +10 -0
  33. package/src/types/properties.ts +10 -0
  34. package/src/types/storage.ts +9 -0
  35. package/src/util/useStorageUploadController.tsx +11 -1
package/dist/index.es.js CHANGED
@@ -222,6 +222,15 @@ class EntityReference {
222
222
  get pathWithId() {
223
223
  return `${this.path}/${this.id}`;
224
224
  }
225
+ get pathWithIdAndDatabase() {
226
+ if (this.databaseId) {
227
+ if (this.databaseId === "(default)") {
228
+ return this.pathWithId;
229
+ }
230
+ return `${this.databaseId}:::${this.path}/${this.id}`;
231
+ }
232
+ return this.pathWithId;
233
+ }
225
234
  isEntityReference() {
226
235
  return true;
227
236
  }
@@ -3274,7 +3283,7 @@ const IconForView = React__default.memo(function IconForView2(t0) {
3274
3283
  const size = t1 === void 0 ? "medium" : t1;
3275
3284
  if (!collectionOrView) {
3276
3285
  let t22;
3277
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
3286
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3278
3287
  t22 = /* @__PURE__ */ jsx(Fragment, {});
3279
3288
  $[0] = t22;
3280
3289
  } else {
@@ -3994,7 +4003,7 @@ const DialogsProvider = (t0) => {
3994
4003
  children
3995
4004
  } = t0;
3996
4005
  let t1;
3997
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
4006
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3998
4007
  t1 = [];
3999
4008
  $[0] = t1;
4000
4009
  } else {
@@ -4003,7 +4012,7 @@ const DialogsProvider = (t0) => {
4003
4012
  const [dialogEntries, setDialogEntries] = useState(t1);
4004
4013
  const dialogEntriesRef = useRef(dialogEntries);
4005
4014
  let t2;
4006
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
4015
+ if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4007
4016
  t2 = (newPanels) => {
4008
4017
  dialogEntriesRef.current = newPanels;
4009
4018
  setDialogEntries(newPanels);
@@ -4029,7 +4038,7 @@ const DialogsProvider = (t0) => {
4029
4038
  }
4030
4039
  const close = t3;
4031
4040
  let t4;
4032
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
4041
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4033
4042
  t4 = (dialogEntry) => {
4034
4043
  const updatedPanels_0 = [...dialogEntriesRef.current, dialogEntry];
4035
4044
  updateDialogEntries(updatedPanels_0);
@@ -4174,7 +4183,7 @@ function useCollectionFetch(t0) {
4174
4183
  const currentSort = sortBy ? sortBy[1] : void 0;
4175
4184
  const context = useFireCMSContext();
4176
4185
  let t2;
4177
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
4186
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4178
4187
  t2 = [];
4179
4188
  $[3] = t2;
4180
4189
  } else {
@@ -4650,7 +4659,7 @@ function useResolvedNavigationFrom(t0) {
4650
4659
  useEffect(t1, t2);
4651
4660
  if (!context.navigation) {
4652
4661
  let t32;
4653
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
4662
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4654
4663
  t32 = {
4655
4664
  dataLoading: true
4656
4665
  };
@@ -4772,7 +4781,7 @@ const useLargeLayout = () => {
4772
4781
  const [isLargeLayout, setIsLargeLayout] = useState(isLargeLayoutGlobal);
4773
4782
  let t0;
4774
4783
  let t1;
4775
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
4784
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4776
4785
  t0 = () => {
4777
4786
  const listener = (newIsLargeLayout) => {
4778
4787
  setIsLargeLayout(newIsLargeLayout);
@@ -4864,7 +4873,7 @@ function ErrorView(t0) {
4864
4873
  const component = error instanceof Error ? error.message : error;
4865
4874
  console.warn("ErrorView", JSON.stringify(error));
4866
4875
  let t1;
4867
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
4876
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4868
4877
  t1 = /* @__PURE__ */ jsx(ErrorIcon, { className: "mx-2", size: "small", color: "error" });
4869
4878
  $[0] = t1;
4870
4879
  } else {
@@ -4919,8 +4928,8 @@ function ErrorView(t0) {
4919
4928
  function EmptyValue() {
4920
4929
  const $ = c(1);
4921
4930
  let t0;
4922
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
4923
- t0 = /* @__PURE__ */ jsx("div", { className: "rounded-full bg-surface-200 bg-opacity-30 bg-surface-200/30 dark:bg-opacity-20 dark:bg-surface-200/20 w-5 h-2 inline-block" });
4931
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4932
+ t0 = /* @__PURE__ */ jsx("div", { className: "rounded-full bg-surface-200 bg-opacity-30 dark:bg-opacity-20 w-5 h-2 inline-block" });
4924
4933
  $[0] = t0;
4925
4934
  } else {
4926
4935
  t0 = $[0];
@@ -4996,7 +5005,7 @@ function ImagePreview(t0) {
4996
5005
  return t52;
4997
5006
  }
4998
5007
  let t3;
4999
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
5008
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5000
5009
  t3 = {
5001
5010
  maxWidth: "100%",
5002
5011
  maxHeight: "100%"
@@ -5039,7 +5048,7 @@ function ImagePreview(t0) {
5039
5048
  t7 = $[14];
5040
5049
  }
5041
5050
  let t8;
5042
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
5051
+ if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5043
5052
  t8 = /* @__PURE__ */ jsx(OpenInNewIcon, { className: "text-surface-700 dark:text-surface-300", size: "smallest" });
5044
5053
  $[15] = t8;
5045
5054
  } else {
@@ -5097,7 +5106,7 @@ function UrlComponentPreview(t0) {
5097
5106
  if (!previewType) {
5098
5107
  if (!url || !url.trim()) {
5099
5108
  let t22;
5100
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
5109
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5101
5110
  t22 = /* @__PURE__ */ jsx(EmptyValue, {});
5102
5111
  $[0] = t22;
5103
5112
  } else {
@@ -5106,7 +5115,7 @@ function UrlComponentPreview(t0) {
5106
5115
  return t22;
5107
5116
  }
5108
5117
  let t2;
5109
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
5118
+ if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5110
5119
  t2 = /* @__PURE__ */ jsx(OpenInNewIcon, { size: "small" });
5111
5120
  $[1] = t2;
5112
5121
  } else {
@@ -5139,7 +5148,7 @@ function UrlComponentPreview(t0) {
5139
5148
  } else {
5140
5149
  if (previewType === "audio") {
5141
5150
  let t2;
5142
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
5151
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5143
5152
  t2 = /* @__PURE__ */ jsx("code", { children: "audio" });
5144
5153
  $[7] = t2;
5145
5154
  } else {
@@ -5201,7 +5210,7 @@ function UrlComponentPreview(t0) {
5201
5210
  t4 = $[20];
5202
5211
  }
5203
5212
  let t5;
5204
- if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
5213
+ if ($[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5205
5214
  t5 = /* @__PURE__ */ jsx(DescriptionIcon, { className: "text-surface-700 dark:text-surface-300" });
5206
5215
  $[21] = t5;
5207
5216
  } else {
@@ -5363,7 +5372,7 @@ function SkeletonPropertyComponent(t0) {
5363
5372
  content = t1;
5364
5373
  } else {
5365
5374
  let t1;
5366
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
5375
+ if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5367
5376
  t1 = renderSkeletonText();
5368
5377
  $[5] = t1;
5369
5378
  } else {
@@ -5414,7 +5423,7 @@ function SkeletonPropertyComponent(t0) {
5414
5423
  if (arrayProperty.of.dataType === "string") {
5415
5424
  if (arrayProperty.of.enumValues) {
5416
5425
  let t1;
5417
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
5426
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5418
5427
  t1 = renderArrayEnumTableCell();
5419
5428
  $[14] = t1;
5420
5429
  } else {
@@ -5434,7 +5443,7 @@ function SkeletonPropertyComponent(t0) {
5434
5443
  content = t1;
5435
5444
  } else {
5436
5445
  let t1;
5437
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
5446
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5438
5447
  t1 = renderArrayOfStrings();
5439
5448
  $[17] = t1;
5440
5449
  } else {
@@ -5473,7 +5482,7 @@ function SkeletonPropertyComponent(t0) {
5473
5482
  } else {
5474
5483
  if (property.dataType === "date") {
5475
5484
  let t1;
5476
- if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
5485
+ if ($[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5477
5486
  t1 = renderSkeletonText();
5478
5487
  $[23] = t1;
5479
5488
  } else {
@@ -5483,7 +5492,7 @@ function SkeletonPropertyComponent(t0) {
5483
5492
  } else {
5484
5493
  if (property.dataType === "reference") {
5485
5494
  let t1;
5486
- if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
5495
+ if ($[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5487
5496
  t1 = renderReference();
5488
5497
  $[24] = t1;
5489
5498
  } else {
@@ -5493,7 +5502,7 @@ function SkeletonPropertyComponent(t0) {
5493
5502
  } else {
5494
5503
  if (property.dataType === "boolean") {
5495
5504
  let t1;
5496
- if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
5505
+ if ($[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5497
5506
  t1 = renderSkeletonText();
5498
5507
  $[25] = t1;
5499
5508
  } else {
@@ -5502,7 +5511,7 @@ function SkeletonPropertyComponent(t0) {
5502
5511
  content = t1;
5503
5512
  } else {
5504
5513
  let t1;
5505
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
5514
+ if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5506
5515
  t1 = renderSkeletonText();
5507
5516
  $[26] = t1;
5508
5517
  } else {
@@ -5646,7 +5655,7 @@ function StorageThumbnailInternal(t0) {
5646
5655
  const previewType = filetype?.startsWith("image") ? "image" : filetype?.startsWith("video") ? "video" : filetype?.startsWith("audio") ? "audio" : "file";
5647
5656
  if (downloadConfig?.fileNotFound) {
5648
5657
  let t32;
5649
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
5658
+ if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5650
5659
  t32 = /* @__PURE__ */ jsx(ErrorView, { error: "File not found" });
5651
5660
  $[5] = t32;
5652
5661
  } else {
@@ -5795,7 +5804,7 @@ function StringPropertyPreview(t0) {
5795
5804
  } else {
5796
5805
  if (!value) {
5797
5806
  let t12;
5798
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
5807
+ if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5799
5808
  t12 = /* @__PURE__ */ jsx(Fragment, {});
5800
5809
  $[16] = t12;
5801
5810
  } else {
@@ -6012,7 +6021,7 @@ const EntityPreviewContainer = React.forwardRef((t0, ref) => {
6012
6021
  const t7 = onClick ? "cursor-pointer" : "";
6013
6022
  let t8;
6014
6023
  if ($[11] !== className || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== t7) {
6015
- t8 = cls("bg-white dark:bg-surface-900", "min-h-[42px]", t4, "items-center", t5, t6, "flex border rounded-lg", t7, defaultBorderMixin, className);
6024
+ t8 = cls("bg-white dark:bg-surface-900", "min-h-[44px]", t4, "items-center", t5, t6, "flex border rounded-lg", t7, defaultBorderMixin, className);
6016
6025
  $[11] = className;
6017
6026
  $[12] = t4;
6018
6027
  $[13] = t5;
@@ -6097,7 +6106,7 @@ const ReferencePreview = function ReferencePreview2(props) {
6097
6106
  return t0;
6098
6107
  };
6099
6108
  function ReferencePreviewInternal(t0) {
6100
- const $ = c(16);
6109
+ const $ = c(22);
6101
6110
  const {
6102
6111
  disabled,
6103
6112
  reference,
@@ -6135,24 +6144,43 @@ function ReferencePreviewInternal(t0) {
6135
6144
  }
6136
6145
  return t42;
6137
6146
  } else {
6138
- throw Error(`Couldn't find the corresponding collection view for the path: ${reference.path}`);
6147
+ const t42 = size ?? "medium";
6148
+ let t5;
6149
+ if ($[6] !== reference.pathWithId) {
6150
+ t5 = /* @__PURE__ */ jsx(ErrorView, { error: "Unexpected reference value. Click to edit", tooltip: reference.pathWithId });
6151
+ $[6] = reference.pathWithId;
6152
+ $[7] = t5;
6153
+ } else {
6154
+ t5 = $[7];
6155
+ }
6156
+ let t6;
6157
+ if ($[8] !== onClick || $[9] !== t42 || $[10] !== t5) {
6158
+ t6 = /* @__PURE__ */ jsx(EntityPreviewContainer, { onClick, size: t42, children: t5 });
6159
+ $[8] = onClick;
6160
+ $[9] = t42;
6161
+ $[10] = t5;
6162
+ $[11] = t6;
6163
+ } else {
6164
+ t6 = $[11];
6165
+ }
6166
+ return t6;
6139
6167
  }
6140
6168
  }
6141
6169
  let t4;
6142
- if ($[6] !== collection || $[7] !== disabled || $[8] !== hover || $[9] !== includeEntityLink || $[10] !== includeId || $[11] !== onClick || $[12] !== previewProperties || $[13] !== reference || $[14] !== size) {
6170
+ if ($[12] !== collection || $[13] !== disabled || $[14] !== hover || $[15] !== includeEntityLink || $[16] !== includeId || $[17] !== onClick || $[18] !== previewProperties || $[19] !== reference || $[20] !== size) {
6143
6171
  t4 = /* @__PURE__ */ jsx(ReferencePreviewExisting, { reference, collection, previewProperties, size, disabled, includeEntityLink, includeId, onClick, hover });
6144
- $[6] = collection;
6145
- $[7] = disabled;
6146
- $[8] = hover;
6147
- $[9] = includeEntityLink;
6148
- $[10] = includeId;
6149
- $[11] = onClick;
6150
- $[12] = previewProperties;
6151
- $[13] = reference;
6152
- $[14] = size;
6153
- $[15] = t4;
6172
+ $[12] = collection;
6173
+ $[13] = disabled;
6174
+ $[14] = hover;
6175
+ $[15] = includeEntityLink;
6176
+ $[16] = includeId;
6177
+ $[17] = onClick;
6178
+ $[18] = previewProperties;
6179
+ $[19] = reference;
6180
+ $[20] = size;
6181
+ $[21] = t4;
6154
6182
  } else {
6155
- t4 = $[15];
6183
+ t4 = $[21];
6156
6184
  }
6157
6185
  return t4;
6158
6186
  }
@@ -6204,7 +6232,7 @@ function ReferencePreviewExisting(t0) {
6204
6232
  let body;
6205
6233
  if (!reference) {
6206
6234
  let t32;
6207
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
6235
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6208
6236
  t32 = /* @__PURE__ */ jsx(ErrorView, { error: "Reference not set" });
6209
6237
  $[7] = t32;
6210
6238
  } else {
@@ -6244,7 +6272,7 @@ function ReferencePreviewExisting(t0) {
6244
6272
  const t32 = disabled ? void 0 : onClick;
6245
6273
  const t4 = disabled ? void 0 : hover;
6246
6274
  let t5;
6247
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
6275
+ if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6248
6276
  t5 = /* @__PURE__ */ jsx(Skeleton, {});
6249
6277
  $[15] = t5;
6250
6278
  } else {
@@ -6266,7 +6294,7 @@ function ReferencePreviewExisting(t0) {
6266
6294
  const t32 = disabled ? void 0 : onClick;
6267
6295
  const t4 = disabled ? void 0 : hover;
6268
6296
  let t5;
6269
- if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
6297
+ if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6270
6298
  t5 = /* @__PURE__ */ jsx(ErrorView, { error: "Entity not found" });
6271
6299
  $[20] = t5;
6272
6300
  } else {
@@ -6690,7 +6718,7 @@ function KeyValuePreview(t0) {
6690
6718
  }
6691
6719
  if (!value) {
6692
6720
  let t12;
6693
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
6721
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6694
6722
  t12 = /* @__PURE__ */ jsx(EmptyValue, {});
6695
6723
  $[0] = t12;
6696
6724
  } else {
@@ -6860,7 +6888,7 @@ function UserDisplay(t0) {
6860
6888
  } = t0;
6861
6889
  if (!user) {
6862
6890
  let t12;
6863
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
6891
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6864
6892
  t12 = /* @__PURE__ */ jsx(EmptyValue, {});
6865
6893
  $[0] = t12;
6866
6894
  } else {
@@ -6869,7 +6897,7 @@ function UserDisplay(t0) {
6869
6897
  return t12;
6870
6898
  }
6871
6899
  let t1;
6872
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
6900
+ if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6873
6901
  t1 = cls("inline-flex items-center gap-4 px-2 py-1 rounded-xl", "bg-surface-accent-100 dark:bg-surface-accent-800", "border", defaultBorderMixin);
6874
6902
  $[1] = t1;
6875
6903
  } else {
@@ -6886,7 +6914,7 @@ function UserDisplay(t0) {
6886
6914
  t2 = $[5];
6887
6915
  }
6888
6916
  let t3;
6889
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
6917
+ if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6890
6918
  t3 = cls("font-regular truncate", "text-sm");
6891
6919
  $[6] = t3;
6892
6920
  } else {
@@ -6946,7 +6974,7 @@ function UserPreview(t0) {
6946
6974
  } = useInternalUserManagementController();
6947
6975
  if (!value) {
6948
6976
  let t12;
6949
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
6977
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6950
6978
  t12 = /* @__PURE__ */ jsx(EmptyValue, {});
6951
6979
  $[0] = t12;
6952
6980
  } else {
@@ -7011,7 +7039,7 @@ const PropertyPreview = React__default.memo(function PropertyPreview2(props) {
7011
7039
  });
7012
7040
  if (property === null) {
7013
7041
  let t02;
7014
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
7042
+ if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7015
7043
  t02 = /* @__PURE__ */ jsx(EmptyValue, {});
7016
7044
  $[11] = t02;
7017
7045
  } else {
@@ -7032,7 +7060,7 @@ const PropertyPreview = React__default.memo(function PropertyPreview2(props) {
7032
7060
  } else {
7033
7061
  if (value === void 0 || value === null) {
7034
7062
  let t02;
7035
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
7063
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7036
7064
  t02 = /* @__PURE__ */ jsx(EmptyValue, {});
7037
7065
  $[12] = t02;
7038
7066
  } else {
@@ -7096,7 +7124,7 @@ const PropertyPreview = React__default.memo(function PropertyPreview2(props) {
7096
7124
  content = /* @__PURE__ */ jsx(ReferencePreview, { disabled: !stringProperty.reference.path, previewProperties: stringProperty.reference.previewProperties, includeId: stringProperty.reference.includeId, includeEntityLink: stringProperty.reference.includeEntityLink, size: props.size, reference: new EntityReference(value, stringProperty.reference.path) });
7097
7125
  } else {
7098
7126
  let t02;
7099
- if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
7127
+ if ($[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7100
7128
  t02 = /* @__PURE__ */ jsx(EmptyValue, {});
7101
7129
  $[23] = t02;
7102
7130
  } else {
@@ -7187,7 +7215,7 @@ const PropertyPreview = React__default.memo(function PropertyPreview2(props) {
7187
7215
  }
7188
7216
  } else {
7189
7217
  let t02;
7190
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
7218
+ if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7191
7219
  t02 = /* @__PURE__ */ jsx(EmptyValue, {});
7192
7220
  $[26] = t02;
7193
7221
  } else {
@@ -7272,7 +7300,7 @@ function ArrayOfMapsPreview(t0) {
7272
7300
  let t3;
7273
7301
  let t4;
7274
7302
  if ($[0] !== authController || $[1] !== customizationController.propertyConfigs || $[2] !== inputProperty || $[3] !== propertyKey || $[4] !== size || $[5] !== value) {
7275
- t4 = Symbol.for("react.early_return_sentinel");
7303
+ t4 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
7276
7304
  bb0: {
7277
7305
  const property = resolveArrayProperty({
7278
7306
  propertyKey,
@@ -7322,7 +7350,7 @@ function ArrayOfMapsPreview(t0) {
7322
7350
  t3 = $[7];
7323
7351
  t4 = $[8];
7324
7352
  }
7325
- if (t4 !== Symbol.for("react.early_return_sentinel")) {
7353
+ if (t4 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
7326
7354
  return t4;
7327
7355
  }
7328
7356
  let t5;
@@ -7381,7 +7409,7 @@ const AsyncPreviewComponent = React.memo(function AsyncPreviewComponentInternal(
7381
7409
  useEffect(t1, t2);
7382
7410
  if (loading) {
7383
7411
  let t32;
7384
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
7412
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7385
7413
  t32 = /* @__PURE__ */ jsx(Skeleton, {});
7386
7414
  $[3] = t32;
7387
7415
  } else {
@@ -7893,7 +7921,7 @@ function VirtualTableInput(props) {
7893
7921
  }
7894
7922
  useEffect(t3, t4);
7895
7923
  let t5;
7896
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
7924
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7897
7925
  t5 = {
7898
7926
  padding: 0,
7899
7927
  margin: 0,
@@ -7926,7 +7954,7 @@ function VirtualTableInput(props) {
7926
7954
  t7 = $[14];
7927
7955
  }
7928
7956
  let t8;
7929
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
7957
+ if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7930
7958
  t8 = () => {
7931
7959
  focusedState.current = true;
7932
7960
  };
@@ -8160,7 +8188,7 @@ function VirtualTableDateField(props) {
8160
8188
  }
8161
8189
  let t2;
8162
8190
  let t3;
8163
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
8191
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8164
8192
  t2 = cls("w-full h-full", focusedDisabled);
8165
8193
  t3 = cls("w-full h-full", focusedDisabled);
8166
8194
  $[2] = t2;
@@ -8359,9 +8387,16 @@ function useStorageUploadController({
8359
8387
  propertyKey
8360
8388
  }) ?? "/";
8361
8389
  }, [entityId, entityValues, path, resolvedProperty, propertyKey, storage]);
8362
- const onFileUploadComplete = useCallback(async (uploadedPath, entry, metadata_0) => {
8390
+ const onFileUploadComplete = useCallback(async (uploadedPath, entry, metadata_0, uploadedUrl) => {
8363
8391
  console.debug("onFileUploadComplete", uploadedPath, entry);
8364
8392
  let uploadPathOrDownloadUrl = uploadedPath;
8393
+ if (storage.includeBucketUrl) {
8394
+ if (!uploadedUrl) {
8395
+ console.warn("includeBucketUrl is set but no fully-qualified storage URL was returned by the StorageSource. Falling back to the storage path.");
8396
+ } else {
8397
+ uploadPathOrDownloadUrl = uploadedUrl;
8398
+ }
8399
+ }
8365
8400
  if (storage.storeUrl) {
8366
8401
  uploadPathOrDownloadUrl = (await storageSource.getDownloadURL(uploadedPath)).url;
8367
8402
  }
@@ -8534,10 +8569,11 @@ function StorageUploadProgress({
8534
8569
  path: storagePath,
8535
8570
  metadata
8536
8571
  }).then(async ({
8537
- path
8572
+ path,
8573
+ storageUrl
8538
8574
  }) => {
8539
8575
  console.debug("Upload successful", path);
8540
- await onFileUploadComplete(path, entry, metadata);
8576
+ await onFileUploadComplete(path, entry, metadata, storageUrl);
8541
8577
  if (mounted.current) setLoading(false);
8542
8578
  }).catch((e) => {
8543
8579
  console.warn("Upload error", e);
@@ -8897,7 +8933,7 @@ function StorageUpload$1(t0) {
8897
8933
  }
8898
8934
  const t16 = !disabled ? openPopup : void 0;
8899
8935
  let t17;
8900
- if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
8936
+ if ($[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8901
8937
  t17 = /* @__PURE__ */ jsx(EditIcon, { size: "small", className: "text-surface-500" });
8902
8938
  $[48] = t17;
8903
8939
  } else {
@@ -9158,7 +9194,7 @@ const TableReferenceFieldInternal = React__default.memo(function TableReferenceF
9158
9194
  const buildMultipleReferenceField = t6;
9159
9195
  if (!collection) {
9160
9196
  let t72;
9161
- if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
9197
+ if ($[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9162
9198
  t72 = /* @__PURE__ */ jsx(ErrorView, { error: "The specified collection does not exist" });
9163
9199
  $[35] = t72;
9164
9200
  } else {
@@ -9729,7 +9765,7 @@ const EntityTableCell = React__default.memo(function EntityTableCell2(t0) {
9729
9765
  const scrollable = !disabled && allowScroll && isOverflowing;
9730
9766
  const faded = !disabled && !allowScroll && isOverflowing;
9731
9767
  let t9;
9732
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
9768
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9733
9769
  t9 = () => setOnHover(true);
9734
9770
  $[9] = t9;
9735
9771
  } else {
@@ -9737,7 +9773,7 @@ const EntityTableCell = React__default.memo(function EntityTableCell2(t0) {
9737
9773
  }
9738
9774
  const setOnHoverTrue = t9;
9739
9775
  let t10;
9740
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
9776
+ if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9741
9777
  t10 = () => setOnHover(false);
9742
9778
  $[10] = t10;
9743
9779
  } else {
@@ -9745,9 +9781,9 @@ const EntityTableCell = React__default.memo(function EntityTableCell2(t0) {
9745
9781
  }
9746
9782
  const setOnHoverFalse = t10;
9747
9783
  const borderClass = showError ? "border-red-500" : internalSaved ? "border-green-500" : isSelected ? "border-primary" : "border-transparent";
9748
- const t11 = `flex relative h-full rounded-md p-${p} border border-4 border-opacity-75`;
9784
+ const t11 = `flex relative h-full rounded-md p-${p} border border-4 border-opacity-75`;
9749
9785
  const t12 = onHover && !disabled ? "bg-surface-50 dark:bg-surface-900" : "";
9750
- const t13 = saved ? "bg-surface-100/75 dark:bg-surface-800/75" : "";
9786
+ const t13 = saved ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "";
9751
9787
  const t14 = hideOverflow ? "overflow-hidden" : "";
9752
9788
  const t15 = isSelected ? "bg-surface-50 dark:bg-surface-900" : "";
9753
9789
  let t16;
@@ -9815,7 +9851,7 @@ const EntityTableCell = React__default.memo(function EntityTableCell2(t0) {
9815
9851
  }
9816
9852
  let t24;
9817
9853
  if ($[33] !== disabled || $[34] !== disabledTooltip || $[35] !== onHover) {
9818
- t24 = disabled && onHover && disabledTooltip && /* @__PURE__ */ jsx("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ jsx(Tooltip, { title: disabledTooltip, children: /* @__PURE__ */ jsx(DoNotDisturbOnIcon, { size: "smallest", color: "disabled", className: "text-text-disabled" }) }) });
9854
+ t24 = disabled && onHover && disabledTooltip && /* @__PURE__ */ jsx("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ jsx(Tooltip, { title: disabledTooltip, children: /* @__PURE__ */ jsx(DoNotDisturbOnIcon, { size: "smallest", color: "disabled", className: "text-surface-500" }) }) });
9819
9855
  $[33] = disabled;
9820
9856
  $[34] = disabledTooltip;
9821
9857
  $[35] = onHover;
@@ -10281,7 +10317,7 @@ const EntityCollectionRowActions = function EntityCollectionRowActions2({
10281
10317
  const enableLocalChangesBackup = collection ? getLocalChangesBackup(collection) : false;
10282
10318
  const hasDraft = enableLocalChangesBackup ? getEntityFromCache(fullPath + "/" + entity.id) : false;
10283
10319
  const iconSize = largeLayout && (size === "m" || size === "l" || size == "xl") ? "medium" : "small";
10284
- return /* @__PURE__ */ jsxs("div", { className: cls("h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90 bg-surface-50/90 dark:bg-opacity-90 dark:bg-surface-900/90 z-10", frozen ? "sticky left-0" : ""), onClick: useCallback((event) => {
10320
+ return /* @__PURE__ */ jsxs("div", { className: cls("h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90 dark:bg-opacity-90 z-10", frozen ? "sticky left-0" : ""), onClick: useCallback((event) => {
10285
10321
  event.stopPropagation();
10286
10322
  }, []), style: {
10287
10323
  width,
@@ -10384,7 +10420,7 @@ function CollectionTableToolbar(t0) {
10384
10420
  t4 = $[4];
10385
10421
  }
10386
10422
  let t5;
10387
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
10423
+ if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10388
10424
  t5 = ["xs", "s", "m", "l", "xl"].map(_temp2$7);
10389
10425
  $[5] = t5;
10390
10426
  } else {
@@ -10401,7 +10437,7 @@ function CollectionTableToolbar(t0) {
10401
10437
  }
10402
10438
  const sizeSelect = t6;
10403
10439
  let t7;
10404
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
10440
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10405
10441
  t7 = cls(defaultBorderMixin, "no-scrollbar min-h-[56px] overflow-x-auto px-2 md:px-4 bg-surface-50 dark:bg-surface-900 border-b flex flex-row justify-between items-center w-full");
10406
10442
  $[9] = t7;
10407
10443
  } else {
@@ -10765,7 +10801,7 @@ const VirtualTableHeader = React__default.memo(function VirtualTableHeader2(t0)
10765
10801
  const [openFilter, setOpenFilter] = React__default.useState(false);
10766
10802
  const [hidden, setHidden] = React__default.useState(false);
10767
10803
  let t1;
10768
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
10804
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10769
10805
  t1 = (event) => {
10770
10806
  setOpenFilter(true);
10771
10807
  };
@@ -10795,7 +10831,7 @@ const VirtualTableHeader = React__default.memo(function VirtualTableHeader2(t0)
10795
10831
  const t3 = column.frozen ? "sticky left-0 z-10" : "relative z-0";
10796
10832
  let t4;
10797
10833
  if ($[4] !== t3) {
10798
- t4 = cls("flex py-0 px-3 h-full text-xs uppercase font-semibold relative select-none items-center bg-surface-50 dark:bg-surface-900", "text-text-secondary hover:text-text-primary dark:text-text-secondary-dark dark:hover:text-text-primary-dark", "hover:bg-surface-100 dark:hover:bg-surface-800 hover:bg-opacity-50 hover:bg-surface-100/50 dark:hover:bg-opacity-50 dark:hover:bg-surface-800/50", t3);
10834
+ t4 = cls("flex py-0 px-3 h-full text-xs uppercase font-semibold relative select-none items-center bg-surface-50 dark:bg-surface-900", "text-text-secondary hover:text-text-primary dark:text-text-secondary-dark dark:hover:text-text-primary-dark", "hover:bg-surface-100 dark:hover:bg-surface-800 hover:bg-opacity-50 dark:hover:bg-opacity-50", t3);
10799
10835
  $[4] = t3;
10800
10836
  $[5] = t4;
10801
10837
  } else {
@@ -10818,7 +10854,7 @@ const VirtualTableHeader = React__default.memo(function VirtualTableHeader2(t0)
10818
10854
  let t7;
10819
10855
  let t8;
10820
10856
  let t9;
10821
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
10857
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10822
10858
  t7 = () => setOnHover(true);
10823
10859
  t8 = () => setOnHover(true);
10824
10860
  t9 = () => setOnHover(false);
@@ -11044,7 +11080,7 @@ function FilterForm(t0) {
11044
11080
  t6 = $[16];
11045
11081
  }
11046
11082
  let t7;
11047
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
11083
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11048
11084
  t7 = cls(defaultBorderMixin, "py-4 px-6 typography-label border-b");
11049
11085
  $[17] = t7;
11050
11086
  } else {
@@ -11078,7 +11114,7 @@ function FilterForm(t0) {
11078
11114
  t12 = $[24];
11079
11115
  }
11080
11116
  let t13;
11081
- if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
11117
+ if ($[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11082
11118
  t13 = /* @__PURE__ */ jsx(Button, { variant: "outlined", color: "primary", type: "submit", children: "Filter" });
11083
11119
  $[25] = t13;
11084
11120
  } else {
@@ -11231,7 +11267,7 @@ const VirtualTableRow = React__default.memo(function VirtualTableRow2(t0) {
11231
11267
  const onClick = t1;
11232
11268
  let t2;
11233
11269
  if ($[4] !== hoverRow || $[5] !== onRowClick || $[6] !== rowClassName || $[7] !== rowData) {
11234
- t2 = cls("flex min-w-full text-sm border-b border-surface-200 dark:border-surface-800 border-opacity-40 border-surface-200/40 dark:border-opacity-40 dark:border-surface-800/40", rowClassName ? rowClassName(rowData) : "", {
11270
+ t2 = cls("flex min-w-full text-sm border-b border-surface-200 dark:border-surface-800 border-opacity-40 dark:border-opacity-40", rowClassName ? rowClassName(rowData) : "", {
11235
11271
  "hover:bg-opacity-95": hoverRow,
11236
11272
  "cursor-pointer": onRowClick
11237
11273
  });
@@ -11516,7 +11552,7 @@ const VirtualTable = React__default.memo(function VirtualTable2({
11516
11552
  /* @__PURE__ */ jsx(AssignmentIcon, {}),
11517
11553
  emptyComponent
11518
11554
  ] }) : void 0;
11519
- const virtualListController = {
11555
+ const virtualListController = useMemo(() => ({
11520
11556
  data,
11521
11557
  rowHeight,
11522
11558
  cellRenderer,
@@ -11535,7 +11571,7 @@ const VirtualTable = React__default.memo(function VirtualTable2({
11535
11571
  rowClassName,
11536
11572
  endAdornment,
11537
11573
  AddColumnComponent
11538
- };
11574
+ }), [data, rowHeight, cellRenderer, columns, currentSort, onRowClick, customView, onColumnResizeInternal, onColumnResizeEndInternal, filterInput, onColumnSort, onFilterUpdateInternal, sortByProperty, hoverRow, createFilterField2, rowClassName, endAdornment, AddColumnComponent]);
11539
11575
  return /* @__PURE__ */ jsx("div", { ref: measureRef, style, className: cls("h-full w-full", className), children: /* @__PURE__ */ jsx(VirtualListContext.Provider, { value: virtualListController, children: /* @__PURE__ */ jsx(MemoizedList, { outerRef: tableRef, width: bounds.width, height: bounds.height, itemCount: (data?.length ?? 0) + (endAdornment ? 1 : 0), onScroll, includeAddColumn: Boolean(AddColumnComponent), itemSize: rowHeight }, rowHeight) }) });
11540
11576
  }, equal);
11541
11577
  function MemoizedList({
@@ -12262,7 +12298,7 @@ const SelectableTable = function SelectableTable2({
12262
12298
  selectedCell
12263
12299
  }), [setPopupCell, select, onValueChange, size, selectedCell]);
12264
12300
  return /* @__PURE__ */ jsx(SelectableTableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx("div", { className: "h-full w-full flex flex-col bg-white dark:bg-surface-950", ref, children: /* @__PURE__ */ jsx(VirtualTable, { data, columns, cellRenderer, onRowClick: inlineEditing ? void 0 : onEntityClick ? onRowClick : void 0, onEndReached: loadNextPage, onResetPagination: resetPagination, error: dataLoadingError, onColumnResize, rowHeight: getRowHeight(size), loading: dataLoading, filter: filterValues, onFilterUpdate: setFilterValues ? onFilterUpdate : void 0, sortBy, onSortByUpdate: setSortBy, hoverRow, initialScroll, onScroll, checkFilterCombination, createFilterField: filterable ? createFilterField : void 0, rowClassName: useCallback((entity) => {
12265
- return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75 bg-surface-100/75 dark:bg-surface-800 dark:bg-opacity-75 dark:bg-surface-800/75" : "";
12301
+ return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "";
12266
12302
  }, [highlightedRow]), className: "flex-grow", emptyComponent, endAdornment, AddColumnComponent }) }) });
12267
12303
  };
12268
12304
  function createFilterField({
@@ -13662,7 +13698,7 @@ function NavigationGroup(t0) {
13662
13698
  }
13663
13699
  const t3 = isPreview ? "body2" : "caption";
13664
13700
  let t4;
13665
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
13701
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
13666
13702
  t4 = cls("p-4 py-2 rounded", "font-medium uppercase text-sm text-surface-600 dark:text-surface-400");
13667
13703
  $[2] = t4;
13668
13704
  } else {
@@ -13863,7 +13899,7 @@ const NavigationCard = React__default.memo(function NavigationCard2(t0) {
13863
13899
  t8 = $[16];
13864
13900
  }
13865
13901
  let t9;
13866
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
13902
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
13867
13903
  t9 = {
13868
13904
  alignSelf: "flex-end"
13869
13905
  };
@@ -13872,7 +13908,7 @@ const NavigationCard = React__default.memo(function NavigationCard2(t0) {
13872
13908
  t9 = $[17];
13873
13909
  }
13874
13910
  let t10;
13875
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
13911
+ if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
13876
13912
  t10 = /* @__PURE__ */ jsx("div", { style: t9, children: /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx(ArrowForwardIcon, { className: "text-primary" }) }) });
13877
13913
  $[18] = t10;
13878
13914
  } else {
@@ -13913,7 +13949,7 @@ function SmallNavigationCard(t0) {
13913
13949
  icon
13914
13950
  } = t0;
13915
13951
  let t1;
13916
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
13952
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
13917
13953
  t1 = cls(cardMixin, cardClickableMixin, "cursor-pointer flex flex-row items-center px-4 py-2 text-inherit dark:text-inherit visited:text-inherit visited:dark:text-inherit hover:text-inherit hover:dark:text-inherit ");
13918
13954
  $[0] = t1;
13919
13955
  } else {
@@ -13940,7 +13976,7 @@ function SmallNavigationCard(t0) {
13940
13976
  t3 = $[5];
13941
13977
  }
13942
13978
  let t4;
13943
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
13979
+ if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
13944
13980
  t4 = /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx(ArrowForwardIcon, { color: "primary" }) });
13945
13981
  $[6] = t4;
13946
13982
  } else {
@@ -14734,7 +14770,7 @@ function NewGroupDropZone(t0) {
14734
14770
  t6 = $[10];
14735
14771
  }
14736
14772
  let t7;
14737
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
14773
+ if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
14738
14774
  t7 = /* @__PURE__ */ jsx("div", { className: "text-center p-4", children: /* @__PURE__ */ jsx("span", { className: "block font-medium text-sm", children: "Drop here to create a new group" }) });
14739
14775
  $[11] = t7;
14740
14776
  } else {
@@ -14871,7 +14907,7 @@ function RenameGroupDialog(t0) {
14871
14907
  return null;
14872
14908
  }
14873
14909
  let t6;
14874
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
14910
+ if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
14875
14911
  t6 = /* @__PURE__ */ jsx(DialogTitle, { children: "Rename Group" });
14876
14912
  $[16] = t6;
14877
14913
  } else {
@@ -15410,7 +15446,7 @@ function useDraggable({
15410
15446
  function useWindowSize() {
15411
15447
  const $ = c(3);
15412
15448
  let t0;
15413
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
15449
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15414
15450
  t0 = {
15415
15451
  width: 0,
15416
15452
  height: 0
@@ -15422,7 +15458,7 @@ function useWindowSize() {
15422
15458
  const [size, setSize] = useState(t0);
15423
15459
  let t1;
15424
15460
  let t2;
15425
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
15461
+ if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15426
15462
  t1 = () => {
15427
15463
  const updateSize = function updateSize2() {
15428
15464
  setSize({
@@ -15700,7 +15736,7 @@ function buildSideActions$1({
15700
15736
  function LocalChangesMenu(t0) {
15701
15737
  const $ = c(42);
15702
15738
  const {
15703
- localChangesData,
15739
+ cachedData,
15704
15740
  formex,
15705
15741
  onClearLocalChanges,
15706
15742
  cacheKey,
@@ -15710,7 +15746,7 @@ function LocalChangesMenu(t0) {
15710
15746
  const [previewDialogOpen, setPreviewDialogOpen] = useState(false);
15711
15747
  const [open, setOpen] = useState(false);
15712
15748
  let t1;
15713
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
15749
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15714
15750
  t1 = () => setOpen(true);
15715
15751
  $[0] = t1;
15716
15752
  } else {
@@ -15718,7 +15754,7 @@ function LocalChangesMenu(t0) {
15718
15754
  }
15719
15755
  const handleOpenMenu = t1;
15720
15756
  let t2;
15721
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
15757
+ if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15722
15758
  t2 = () => setOpen(false);
15723
15759
  $[1] = t2;
15724
15760
  } else {
@@ -15726,7 +15762,7 @@ function LocalChangesMenu(t0) {
15726
15762
  }
15727
15763
  const handleCloseMenu = t2;
15728
15764
  let t3;
15729
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
15765
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15730
15766
  t3 = () => {
15731
15767
  setPreviewDialogOpen(true);
15732
15768
  handleCloseMenu();
@@ -15737,14 +15773,14 @@ function LocalChangesMenu(t0) {
15737
15773
  }
15738
15774
  const handlePreview = t3;
15739
15775
  let t4;
15740
- if ($[3] !== formex || $[4] !== localChangesData || $[5] !== onClearLocalChanges || $[6] !== snackbarController) {
15776
+ if ($[3] !== cachedData || $[4] !== formex || $[5] !== onClearLocalChanges || $[6] !== snackbarController) {
15741
15777
  t4 = () => {
15742
- const mergedValues = mergeDeep(formex.values, localChangesData);
15778
+ const mergedValues = mergeDeep(formex.values, cachedData);
15743
15779
  const touched = {
15744
15780
  ...formex.touched
15745
15781
  };
15746
- const previewKeys = flattenKeys(localChangesData);
15747
- previewKeys.forEach((key) => {
15782
+ const cachedKeys = flattenKeys(cachedData);
15783
+ cachedKeys.forEach((key) => {
15748
15784
  touched[key] = true;
15749
15785
  });
15750
15786
  formex.setTouched(touched);
@@ -15756,8 +15792,8 @@ function LocalChangesMenu(t0) {
15756
15792
  handleCloseMenu();
15757
15793
  onClearLocalChanges?.();
15758
15794
  };
15759
- $[3] = formex;
15760
- $[4] = localChangesData;
15795
+ $[3] = cachedData;
15796
+ $[4] = formex;
15761
15797
  $[5] = onClearLocalChanges;
15762
15798
  $[6] = snackbarController;
15763
15799
  $[7] = t4;
@@ -15785,14 +15821,14 @@ function LocalChangesMenu(t0) {
15785
15821
  }
15786
15822
  const handleDiscard = t5;
15787
15823
  let t6;
15788
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
15824
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15789
15825
  t6 = /* @__PURE__ */ jsx(WarningIcon, { size: "smallest", className: "mr-1 text-yellow-600 dark:text-yellow-400" });
15790
15826
  $[12] = t6;
15791
15827
  } else {
15792
15828
  t6 = $[12];
15793
15829
  }
15794
15830
  let t7;
15795
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
15831
+ if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15796
15832
  t7 = /* @__PURE__ */ jsxs(Button, { size: "small", className: "font-semibold text-xs rounded-full px-4 py-1 bg-yellow-200 dark:bg-yellow-900 hover:bg-yellow-300 dark:hover:bg-yellow-800 text-yellow-800 dark:text-yellow-200", onClick: handleOpenMenu, children: [
15797
15833
  t6,
15798
15834
  "Unsaved Local changes",
@@ -15803,14 +15839,14 @@ function LocalChangesMenu(t0) {
15803
15839
  t7 = $[13];
15804
15840
  }
15805
15841
  let t8;
15806
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
15842
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15807
15843
  t8 = /* @__PURE__ */ jsx("div", { className: "max-w-xs px-4 py-4 text-sm text-gray-700 dark:text-gray-300", children: "This document was edited locally and has unsaved changes. These local changes will be lost if you don't apply them." });
15808
15844
  $[14] = t8;
15809
15845
  } else {
15810
15846
  t8 = $[14];
15811
15847
  }
15812
15848
  let t9;
15813
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
15849
+ if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15814
15850
  t9 = /* @__PURE__ */ jsxs(MenuItem, { dense: true, onClick: handlePreview, children: [
15815
15851
  /* @__PURE__ */ jsx(VisibilityIcon, { size: "small" }),
15816
15852
  "Preview Changes"
@@ -15820,7 +15856,7 @@ function LocalChangesMenu(t0) {
15820
15856
  t9 = $[15];
15821
15857
  }
15822
15858
  let t10;
15823
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
15859
+ if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15824
15860
  t10 = /* @__PURE__ */ jsx(CheckIcon, { size: "small" });
15825
15861
  $[16] = t10;
15826
15862
  } else {
@@ -15838,7 +15874,7 @@ function LocalChangesMenu(t0) {
15838
15874
  t11 = $[18];
15839
15875
  }
15840
15876
  let t12;
15841
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
15877
+ if ($[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15842
15878
  t12 = /* @__PURE__ */ jsx(CancelIcon, { size: "small" });
15843
15879
  $[19] = t12;
15844
15880
  } else {
@@ -15871,21 +15907,21 @@ function LocalChangesMenu(t0) {
15871
15907
  t14 = $[25];
15872
15908
  }
15873
15909
  let t15;
15874
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
15910
+ if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15875
15911
  t15 = /* @__PURE__ */ jsx(DialogTitle, { variant: "h6", children: "Preview Local Changes" });
15876
15912
  $[26] = t15;
15877
15913
  } else {
15878
15914
  t15 = $[26];
15879
15915
  }
15880
15916
  let t16;
15881
- if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
15917
+ if ($[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15882
15918
  t16 = /* @__PURE__ */ jsx(Typography, { variant: "body2", className: "mb-4", children: "These are the local changes that will be applied to the form." });
15883
15919
  $[27] = t16;
15884
15920
  } else {
15885
15921
  t16 = $[27];
15886
15922
  }
15887
15923
  let t17;
15888
- if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
15924
+ if ($[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15889
15925
  t17 = {
15890
15926
  maxHeight: 520,
15891
15927
  overflow: "auto"
@@ -15896,19 +15932,19 @@ function LocalChangesMenu(t0) {
15896
15932
  }
15897
15933
  const t18 = properties;
15898
15934
  let t19;
15899
- if ($[29] !== localChangesData || $[30] !== t18) {
15935
+ if ($[29] !== cachedData || $[30] !== t18) {
15900
15936
  t19 = /* @__PURE__ */ jsxs(DialogContent, { className: "my-4", children: [
15901
15937
  t16,
15902
- /* @__PURE__ */ jsx("div", { className: `border rounded-lg ${defaultBorderMixin}`, style: t17, children: /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx(PropertyCollectionView, { data: localChangesData, properties: t18 }) }) })
15938
+ /* @__PURE__ */ jsx("div", { className: `border rounded-lg ${defaultBorderMixin}`, style: t17, children: /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx(PropertyCollectionView, { data: cachedData, properties: t18 }) }) })
15903
15939
  ] });
15904
- $[29] = localChangesData;
15940
+ $[29] = cachedData;
15905
15941
  $[30] = t18;
15906
15942
  $[31] = t19;
15907
15943
  } else {
15908
15944
  t19 = $[31];
15909
15945
  }
15910
15946
  let t20;
15911
- if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
15947
+ if ($[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
15912
15948
  t20 = /* @__PURE__ */ jsx(Button, { onClick: () => setPreviewDialogOpen(false), children: "Close" });
15913
15949
  $[32] = t20;
15914
15950
  } else {
@@ -15968,56 +16004,6 @@ function extractTouchedValues(values, touched) {
15968
16004
  });
15969
16005
  return acc;
15970
16006
  }
15971
- function getChanges(source, comparison) {
15972
- const changes = {};
15973
- if (!source) {
15974
- return {};
15975
- }
15976
- if (!comparison) {
15977
- return source;
15978
- }
15979
- const allKeys = Array.from(/* @__PURE__ */ new Set([...Object.keys(source), ...Object.keys(comparison)]));
15980
- for (const key of allKeys) {
15981
- const sourceValue = source[key];
15982
- const comparisonValue = comparison[key];
15983
- if (equal(sourceValue, comparisonValue)) {
15984
- continue;
15985
- }
15986
- const sourceHasKey = source && typeof source === "object" && Object.prototype.hasOwnProperty.call(source, key);
15987
- const comparisonHasKey = comparison && typeof comparison === "object" && Object.prototype.hasOwnProperty.call(comparison, key);
15988
- if (comparisonHasKey && !sourceHasKey) {
15989
- changes[key] = void 0;
15990
- } else if (Array.isArray(sourceValue)) {
15991
- const comparisonArray = Array.isArray(comparisonValue) ? comparisonValue : [];
15992
- if (sourceValue.length < comparisonArray.length) {
15993
- changes[key] = sourceValue;
15994
- continue;
15995
- }
15996
- const changedArray = sourceValue.map((item, index) => {
15997
- const comparisonItem = comparisonArray[index];
15998
- if (equal(item, comparisonItem)) {
15999
- return null;
16000
- }
16001
- if (isObject(item) && item && isObject(comparisonItem) && comparisonItem) {
16002
- const nestedChanges = getChanges(item, comparisonItem);
16003
- return Object.keys(nestedChanges).length > 0 ? nestedChanges : item;
16004
- }
16005
- return item;
16006
- });
16007
- if (changedArray.some((item) => item !== null) || sourceValue.length > comparisonArray.length) {
16008
- changes[key] = changedArray;
16009
- }
16010
- } else if (isObject(sourceValue) && sourceValue && isObject(comparisonValue) && comparisonValue) {
16011
- const nestedChanges = getChanges(sourceValue, comparisonValue);
16012
- if (Object.keys(nestedChanges).length > 0) {
16013
- changes[key] = nestedChanges;
16014
- }
16015
- } else {
16016
- changes[key] = sourceValue;
16017
- }
16018
- }
16019
- return changes;
16020
- }
16021
16007
  function EntityForm({
16022
16008
  path,
16023
16009
  fullIdPath,
@@ -16135,13 +16121,7 @@ function EntityForm({
16135
16121
  const initialDirty = Boolean(initialDirtyValues) && initialDirtyValues && Object.keys(initialDirtyValues).length > 0;
16136
16122
  return [initialValues, initialDirty];
16137
16123
  }, [autoApplyLocalChanges, localChangesDataRaw, baseInitialValues, initialDirtyValues]);
16138
- const localChangesData = useMemo(() => {
16139
- if (!localChangesDataRaw) {
16140
- return void 0;
16141
- }
16142
- return getChanges(localChangesDataRaw, initialValues_0);
16143
- }, [localChangesDataRaw, initialValues_0]);
16144
- const hasLocalChanges = !localChangesCleared && localChangesData && Object.keys(localChangesData).length > 0;
16124
+ const hasLocalChanges = !localChangesCleared && localChangesDataRaw && Object.keys(localChangesDataRaw).length > 0;
16145
16125
  const formex = formexProp ?? useCreateFormex({
16146
16126
  initialValues: initialValues_0,
16147
16127
  initialDirty: initialDirty_0,
@@ -16478,7 +16458,7 @@ function EntityForm({
16478
16458
  }), noValidate: true, className: cls("flex-1 flex flex-row w-full overflow-y-auto justify-center", className), children: [
16479
16459
  /* @__PURE__ */ jsx("div", { id: `form_${path}`, className: cls("relative flex flex-row max-w-4xl lg:max-w-3xl xl:max-w-4xl 2xl:max-w-6xl w-full h-fit"), children: /* @__PURE__ */ jsxs("div", { className: cls("flex flex-col w-full pt-12 pb-16 px-4 sm:px-8 md:px-10"), children: [
16480
16460
  /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-4 self-end sticky top-4 z-10", children: [
16481
- manualApplyLocalChanges && hasLocalChanges && /* @__PURE__ */ jsx(LocalChangesMenu, { cacheKey: status === "new" || status === "copy" ? path + "#new" : path + "/" + entityId, properties: resolvedCollection.properties, localChangesData, formex, onClearLocalChanges: () => setLocalChangesCleared(true) }),
16461
+ manualApplyLocalChanges && hasLocalChanges && /* @__PURE__ */ jsx(LocalChangesMenu, { cacheKey: status === "new" || status === "copy" ? path + "#new" : path + "/" + entityId, properties: resolvedCollection.properties, cachedData: localChangesDataRaw, formex, onClearLocalChanges: () => setLocalChangesCleared(true) }),
16482
16462
  formex.dirty ? /* @__PURE__ */ jsx(Tooltip, { title: "This form has been modified", children: /* @__PURE__ */ jsx(Chip, { size: "small", className: "py-1", colorScheme: "orangeDarker", children: /* @__PURE__ */ jsx(EditIcon, { size: "smallest" }) }) }) : /* @__PURE__ */ jsx(Tooltip, { title: "The current form is in sync with the database", children: /* @__PURE__ */ jsx(Chip, { size: "small", className: "py-1", children: /* @__PURE__ */ jsx(CheckIcon, { size: "smallest" }) }) })
16483
16463
  ] }),
16484
16464
  formView
@@ -16907,7 +16887,7 @@ function SelectFieldBinding(t0) {
16907
16887
  const t6 = true;
16908
16888
  const t7 = "item-aligned";
16909
16889
  let t8;
16910
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
16890
+ if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
16911
16891
  t8 = cls("w-full");
16912
16892
  $[10] = t8;
16913
16893
  } else {
@@ -17496,7 +17476,7 @@ function SortableStorageItem(t0) {
17496
17476
  }
17497
17477
  }
17498
17478
  let t5;
17499
- if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
17479
+ if ($[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
17500
17480
  t5 = cls("rounded-md m-1");
17501
17481
  $[27] = t5;
17502
17482
  } else {
@@ -17807,7 +17787,7 @@ function StorageUpload(t0) {
17807
17787
  }
17808
17788
  const moveItem = t1;
17809
17789
  let t2;
17810
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
17790
+ if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
17811
17791
  t2 = {
17812
17792
  activationConstraint: {
17813
17793
  distance: 5
@@ -17818,7 +17798,7 @@ function StorageUpload(t0) {
17818
17798
  t2 = $[5];
17819
17799
  }
17820
17800
  let t3;
17821
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
17801
+ if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
17822
17802
  t3 = {
17823
17803
  coordinateGetter: sortableKeyboardCoordinates
17824
17804
  };
@@ -17828,7 +17808,7 @@ function StorageUpload(t0) {
17828
17808
  }
17829
17809
  const sensors = useSensors(useSensor(PointerSensor, t2), useSensor(KeyboardSensor, t3));
17830
17810
  let t4;
17831
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
17811
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
17832
17812
  t4 = (event) => {
17833
17813
  setIsDndItemDragging(true);
17834
17814
  };
@@ -18411,7 +18391,7 @@ function ReadOnlyFieldBinding(t0) {
18411
18391
  t1 = $[3];
18412
18392
  }
18413
18393
  let t2;
18414
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
18394
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
18415
18395
  t2 = cls(paperMixin, "w-full min-h-14 p-4 md:p-6 overflow-x-scroll no-scrollbar");
18416
18396
  $[4] = t2;
18417
18397
  } else {
@@ -18921,7 +18901,7 @@ function MapFieldBinding(t0) {
18921
18901
  mapProperties = t12;
18922
18902
  } else {
18923
18903
  let t12;
18924
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
18904
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
18925
18905
  t12 = {};
18926
18906
  $[3] = t12;
18927
18907
  } else {
@@ -19440,7 +19420,7 @@ function MapKeyValueRow(t0) {
19440
19420
  t8 = $[23];
19441
19421
  }
19442
19422
  let t9;
19443
- if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
19423
+ if ($[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
19444
19424
  t9 = /* @__PURE__ */ jsx(IconButton, { size: "smallest", children: /* @__PURE__ */ jsx(ArrowDropDownIcon, { size: "small" }) });
19445
19425
  $[24] = t9;
19446
19426
  } else {
@@ -19515,7 +19495,7 @@ function MapKeyValueRow(t0) {
19515
19495
  t16 = $[43];
19516
19496
  }
19517
19497
  let t17;
19518
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
19498
+ if ($[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
19519
19499
  t17 = /* @__PURE__ */ jsx(RemoveIcon, { size: "smallest" });
19520
19500
  $[44] = t17;
19521
19501
  } else {
@@ -19601,7 +19581,7 @@ function ArrayKeyValueRow(t0) {
19601
19581
  }
19602
19582
  const [selectedDataType, setSelectedDataType] = useState(t1);
19603
19583
  let t2;
19604
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
19584
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
19605
19585
  t2 = function doUpdateDataType2(dataType) {
19606
19586
  setSelectedDataType(dataType);
19607
19587
  };
@@ -19690,42 +19670,42 @@ function ArrayKeyValueRow(t0) {
19690
19670
  t6 = $[13];
19691
19671
  }
19692
19672
  let t7;
19693
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
19673
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
19694
19674
  t7 = /* @__PURE__ */ jsx(IconButton, { size: "small", className: "h-7 w-7", children: /* @__PURE__ */ jsx(ArrowDropDownIcon, {}) });
19695
19675
  $[14] = t7;
19696
19676
  } else {
19697
19677
  t7 = $[14];
19698
19678
  }
19699
19679
  let t8;
19700
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
19680
+ if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
19701
19681
  t8 = /* @__PURE__ */ jsx(MenuItem, { dense: true, onClick: () => doUpdateDataType("string"), children: "string" });
19702
19682
  $[15] = t8;
19703
19683
  } else {
19704
19684
  t8 = $[15];
19705
19685
  }
19706
19686
  let t9;
19707
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
19687
+ if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
19708
19688
  t9 = /* @__PURE__ */ jsx(MenuItem, { dense: true, onClick: () => doUpdateDataType("number"), children: "number" });
19709
19689
  $[16] = t9;
19710
19690
  } else {
19711
19691
  t9 = $[16];
19712
19692
  }
19713
19693
  let t10;
19714
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
19694
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
19715
19695
  t10 = /* @__PURE__ */ jsx(MenuItem, { dense: true, onClick: () => doUpdateDataType("boolean"), children: "boolean" });
19716
19696
  $[17] = t10;
19717
19697
  } else {
19718
19698
  t10 = $[17];
19719
19699
  }
19720
19700
  let t11;
19721
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
19701
+ if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
19722
19702
  t11 = /* @__PURE__ */ jsx(MenuItem, { dense: true, onClick: () => doUpdateDataType("map"), children: "map" });
19723
19703
  $[18] = t11;
19724
19704
  } else {
19725
19705
  t11 = $[18];
19726
19706
  }
19727
19707
  let t12;
19728
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
19708
+ if ($[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
19729
19709
  t12 = /* @__PURE__ */ jsxs(Menu, { trigger: t7, children: [
19730
19710
  t8,
19731
19711
  t9,
@@ -20071,7 +20051,7 @@ function BlockEntry(t0) {
20071
20051
  const [typeInternal, setTypeInternal] = useState(type ?? void 0);
20072
20052
  const formex = useFormex();
20073
20053
  let t1;
20074
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
20054
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
20075
20055
  t1 = [];
20076
20056
  $[0] = t1;
20077
20057
  } else {
@@ -20156,7 +20136,7 @@ function BlockEntry(t0) {
20156
20136
  formex.setFieldValue(valueFieldName, newSelectedProperty ? getDefaultValueFor(newSelectedProperty) : null);
20157
20137
  };
20158
20138
  let t7;
20159
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
20139
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
20160
20140
  t7 = cls(paperMixin, "bg-transparent p-2");
20161
20141
  $[17] = t7;
20162
20142
  } else {
@@ -20826,7 +20806,7 @@ function ClearFilterSortButton(t0) {
20826
20806
  t1 = $[1];
20827
20807
  }
20828
20808
  let t2;
20829
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
20809
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
20830
20810
  t2 = /* @__PURE__ */ jsx(FilterListOffIcon, {});
20831
20811
  $[2] = t2;
20832
20812
  } else {
@@ -21378,7 +21358,7 @@ function EntityIdHeaderWidget(t0) {
21378
21358
  const t2 = !openPopup ? "Find by ID" : void 0;
21379
21359
  let t3;
21380
21360
  let t4;
21381
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
21361
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
21382
21362
  t3 = /* @__PURE__ */ jsx(IconButton, { size: "small", children: /* @__PURE__ */ jsx(SearchIcon, { size: "small" }) });
21383
21363
  t4 = cls("my-2 rounded-lg bg-surface-50 dark:bg-surface-950 text-surface-900 dark:text-white");
21384
21364
  $[2] = t3;
@@ -21419,7 +21399,7 @@ function EntityIdHeaderWidget(t0) {
21419
21399
  t5 = $[11];
21420
21400
  }
21421
21401
  let t6;
21422
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
21402
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
21423
21403
  t6 = (e_0) => {
21424
21404
  setSearchString(e_0.target.value);
21425
21405
  };
@@ -21438,7 +21418,7 @@ function EntityIdHeaderWidget(t0) {
21438
21418
  }
21439
21419
  const t8 = !searchString.trim();
21440
21420
  let t9;
21441
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
21421
+ if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
21442
21422
  t9 = /* @__PURE__ */ jsx(KeyboardTabIcon, {});
21443
21423
  $[16] = t9;
21444
21424
  } else {
@@ -21564,7 +21544,7 @@ function PropertyConfigBadge(t0) {
21564
21544
  function NotFoundPage() {
21565
21545
  const $ = c(1);
21566
21546
  let t0;
21567
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
21547
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
21568
21548
  t0 = /* @__PURE__ */ jsx("div", { className: "flex w-full h-full", children: /* @__PURE__ */ jsxs("div", { className: "m-auto flex items-center flex-col", children: [
21569
21549
  /* @__PURE__ */ jsx(Typography, { variant: "h4", align: "center", gutterBottom: true, children: "Page not found" }),
21570
21550
  /* @__PURE__ */ jsx(Typography, { align: "center", gutterBottom: true, children: "This page does not exist or you may not have access to it" }),
@@ -21670,7 +21650,7 @@ function FireCMSLogo(t0) {
21670
21650
  let t3;
21671
21651
  let t4;
21672
21652
  let t5;
21673
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
21653
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
21674
21654
  t3 = /* @__PURE__ */ jsx("circle", { cx: "291.5", cy: "291.5", r: "291.5", fill: "#0070F4" });
21675
21655
  t4 = /* @__PURE__ */ jsx("ellipse", { cx: "292", cy: "291.5", rx: "173", ry: "173.5", fill: "#FF3773" });
21676
21656
  t5 = /* @__PURE__ */ jsx("path", { d: "M465 291.5C465 268.847 460.525 246.416 451.831 225.487C443.137 204.558 430.394 185.542 414.329 169.524C398.265 153.506 379.194 140.8 358.204 132.131C337.215 123.462 314.719 119 292 119C269.281 119 246.785 123.462 225.796 132.131C204.806 140.8 185.735 153.506 169.671 169.524C153.606 185.542 140.863 204.558 132.169 225.487C123.475 246.416 119 268.847 119 291.5L292 291.5H465Z", fill: "#FFA400" });
@@ -21726,7 +21706,7 @@ const BreadcrumbsProvider = (t0) => {
21726
21706
  children
21727
21707
  } = t0;
21728
21708
  let t1;
21729
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
21709
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
21730
21710
  t1 = [];
21731
21711
  $[0] = t1;
21732
21712
  } else {
@@ -21734,7 +21714,7 @@ const BreadcrumbsProvider = (t0) => {
21734
21714
  }
21735
21715
  const [breadcrumbs, setBreadcrumbs] = useState(t1);
21736
21716
  let t2;
21737
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
21717
+ if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
21738
21718
  t2 = (props) => {
21739
21719
  setBreadcrumbs(props.breadcrumbs);
21740
21720
  };
@@ -21824,7 +21804,7 @@ const DefaultAppBar = function DefaultAppBar2(t0) {
21824
21804
  } else {
21825
21805
  if (user === void 0 || authController.initialLoading) {
21826
21806
  let t22;
21827
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
21807
+ if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
21828
21808
  t22 = /* @__PURE__ */ jsx("div", { className: "p-1 flex justify-center", children: /* @__PURE__ */ jsx(Skeleton, { className: "w-10 h-10 rounded-full" }) });
21829
21809
  $[6] = t22;
21830
21810
  } else {
@@ -21878,7 +21858,7 @@ const DefaultAppBar = function DefaultAppBar2(t0) {
21878
21858
  t7 = $[19];
21879
21859
  }
21880
21860
  let t8;
21881
- if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
21861
+ if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
21882
21862
  t8 = /* @__PURE__ */ jsx("div", { className: "flex-grow" });
21883
21863
  $[20] = t8;
21884
21864
  } else {
@@ -22060,7 +22040,7 @@ function ArrayContainerItem(t0) {
22060
22040
  storedProps,
22061
22041
  updateItemCustomProps
22062
22042
  } = t0;
22063
- const t1 = `relative ${!isDragging ? "hover\\:bg-surface-accent-50 dark\\:hover\\:bg-surface-800 dark\\:hover\\:bg-opacity-20 dark\\:hover\\:bg-surface-800/20" : ""} rounded-md opacity-100`;
22043
+ const t1 = `relative ${!isDragging ? "hover\\:bg-surface-accent-50 dark\\:hover\\:bg-surface-800 dark\\:hover\\:bg-opacity-20" : ""} rounded-md opacity-100`;
22064
22044
  let t2;
22065
22045
  if ($[0] !== internalId || $[1] !== updateItemCustomProps) {
22066
22046
  t2 = (props) => updateItemCustomProps(internalId, props);
@@ -22383,7 +22363,7 @@ function ReferenceWidget({
22383
22363
  } else if (value?.isEntityReference && value?.isEntityReference()) {
22384
22364
  child = /* @__PURE__ */ jsx(ReferencePreview, { reference: value, onClick: onEntryClick, disabled, previewProperties, size, includeId, includeEntityLink });
22385
22365
  }
22386
- return /* @__PURE__ */ jsxs("div", { className: cls("text-sm font-medium", "min-w-80 flex flex-col gap-4", "relative transition-colors duration-200 ease-in rounded font-medium", disabled ? "bg-opacity-50" : "hover:bg-opacity-75", "text-opacity-50 text-text-primary/50 dark:text-white dark:text-opacity-50 dark:text-white/50", className), children: [
22366
+ return /* @__PURE__ */ jsxs("div", { className: cls("text-sm font-medium", "min-w-80 flex flex-col gap-4", "relative transition-colors duration-200 ease-in rounded font-medium", disabled ? "bg-opacity-50" : "hover:bg-opacity-75", "text-opacity-50 dark:text-white dark:text-opacity-50", className), children: [
22387
22367
  child,
22388
22368
  !value && /* @__PURE__ */ jsx("div", { className: "justify-center text-left", children: /* @__PURE__ */ jsxs(Button, { variant: "outlined", color: "primary", disabled, onClick: onEntryClick, children: [
22389
22369
  "Edit ",
@@ -22410,7 +22390,7 @@ function SearchIconsView(t0) {
22410
22390
  const [query, setQuery] = React__default.useState("");
22411
22391
  let t2;
22412
22392
  let t3;
22413
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
22393
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
22414
22394
  t3 = debounce((value) => {
22415
22395
  if (!value || value === "") {
22416
22396
  setKeys(null);
@@ -22446,7 +22426,7 @@ function SearchIconsView(t0) {
22446
22426
  React__default.useEffect(t4, t5);
22447
22427
  const icons = keys === null ? coolIconKeys : keys;
22448
22428
  let t6;
22449
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
22429
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
22450
22430
  t6 = /* @__PURE__ */ jsx(SearchBar, { autoFocus: false, innerClassName: "w-full sticky top-0 z-10", onTextSearch: (value_0) => setQuery(value_0 ?? ""), placeholder: "Search for more icons…" });
22451
22431
  $[4] = t6;
22452
22432
  } else {
@@ -23149,7 +23129,7 @@ function computeNavigationGroups({
23149
23129
  function useBuildLocalConfigurationPersistence() {
23150
23130
  const $ = c(15);
23151
23131
  let t0;
23152
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
23132
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23153
23133
  t0 = {};
23154
23134
  $[0] = t0;
23155
23135
  } else {
@@ -23158,7 +23138,7 @@ function useBuildLocalConfigurationPersistence() {
23158
23138
  const configCache = useRef(t0);
23159
23139
  const getCollectionFromStorage = _temp$6;
23160
23140
  let t1;
23161
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
23141
+ if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23162
23142
  t1 = (path) => {
23163
23143
  const storageKey_0 = `collection_config::${stripCollectionPath(path)}`;
23164
23144
  if (configCache.current[storageKey_0]) {
@@ -23172,7 +23152,7 @@ function useBuildLocalConfigurationPersistence() {
23172
23152
  }
23173
23153
  const getCollectionConfig = t1;
23174
23154
  let t2;
23175
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
23155
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23176
23156
  t2 = (path_0, data) => {
23177
23157
  const storageKey_1 = `collection_config::${stripCollectionPath(path_0)}`;
23178
23158
  localStorage.setItem(storageKey_1, JSON.stringify(data));
@@ -23186,7 +23166,7 @@ function useBuildLocalConfigurationPersistence() {
23186
23166
  }
23187
23167
  const onCollectionModified = t2;
23188
23168
  let t3;
23189
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
23169
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23190
23170
  t3 = [];
23191
23171
  $[3] = t3;
23192
23172
  } else {
@@ -23194,7 +23174,7 @@ function useBuildLocalConfigurationPersistence() {
23194
23174
  }
23195
23175
  const [recentlyVisitedPaths, _setRecentlyVisitedPaths] = useState(t3);
23196
23176
  let t4;
23197
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
23177
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23198
23178
  t4 = [];
23199
23179
  $[4] = t4;
23200
23180
  } else {
@@ -23202,7 +23182,7 @@ function useBuildLocalConfigurationPersistence() {
23202
23182
  }
23203
23183
  const [favouritePaths, _setFavouritePaths] = useState(t4);
23204
23184
  let t5;
23205
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
23185
+ if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23206
23186
  t5 = [];
23207
23187
  $[5] = t5;
23208
23188
  } else {
@@ -23211,7 +23191,7 @@ function useBuildLocalConfigurationPersistence() {
23211
23191
  const [collapsedGroups, _setCollapsedGroups] = useState(t5);
23212
23192
  let t6;
23213
23193
  let t7;
23214
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
23194
+ if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23215
23195
  t6 = () => {
23216
23196
  _setRecentlyVisitedPaths(localStorage.getItem("recently_visited_paths") ? JSON.parse(localStorage.getItem("recently_visited_paths")) : []);
23217
23197
  _setFavouritePaths(localStorage.getItem("favourite_paths") ? JSON.parse(localStorage.getItem("favourite_paths")) : []);
@@ -23226,7 +23206,7 @@ function useBuildLocalConfigurationPersistence() {
23226
23206
  }
23227
23207
  useEffect(t6, t7);
23228
23208
  let t8;
23229
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
23209
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23230
23210
  t8 = (paths) => {
23231
23211
  localStorage.setItem("recently_visited_paths", JSON.stringify(paths));
23232
23212
  _setRecentlyVisitedPaths(paths);
@@ -23237,7 +23217,7 @@ function useBuildLocalConfigurationPersistence() {
23237
23217
  }
23238
23218
  const setRecentlyVisitedPaths = t8;
23239
23219
  let t9;
23240
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
23220
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23241
23221
  t9 = (paths_0) => {
23242
23222
  localStorage.setItem("favourite_paths", JSON.stringify(paths_0));
23243
23223
  _setFavouritePaths(paths_0);
@@ -23248,7 +23228,7 @@ function useBuildLocalConfigurationPersistence() {
23248
23228
  }
23249
23229
  const setFavouritePaths = t9;
23250
23230
  let t10;
23251
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
23231
+ if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23252
23232
  t10 = (paths_1) => {
23253
23233
  localStorage.setItem("collapsed_groups", JSON.stringify(paths_1));
23254
23234
  _setCollapsedGroups(paths_1);
@@ -23542,7 +23522,7 @@ function UnsavedChangesDialog(t0) {
23542
23522
  t2 = $[3];
23543
23523
  }
23544
23524
  let t3;
23545
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
23525
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23546
23526
  t3 = /* @__PURE__ */ jsx(Typography, { children: "Are you sure you want to leave this page?" });
23547
23527
  $[4] = t3;
23548
23528
  } else {
@@ -23971,7 +23951,7 @@ function EntityJsonPreview(t0) {
23971
23951
  const preRef = useRef(null);
23972
23952
  const t2 = mode === "dark" ? themes.vsDark : themes.github;
23973
23953
  let t3;
23974
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
23954
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
23975
23955
  t3 = (t42) => {
23976
23956
  const {
23977
23957
  style,
@@ -24607,7 +24587,7 @@ function useBuildSideDialogsController() {
24607
24587
  const location = useLocation();
24608
24588
  const navigate = useNavigate();
24609
24589
  let t0;
24610
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
24590
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
24611
24591
  t0 = [];
24612
24592
  $[0] = t0;
24613
24593
  } else {
@@ -24616,7 +24596,7 @@ function useBuildSideDialogsController() {
24616
24596
  const [sidePanels, setSidePanels] = useState(t0);
24617
24597
  const sidePanelsRef = useRef(sidePanels);
24618
24598
  let t1;
24619
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
24599
+ if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
24620
24600
  t1 = {};
24621
24601
  $[1] = t1;
24622
24602
  } else {
@@ -24625,7 +24605,7 @@ function useBuildSideDialogsController() {
24625
24605
  const routesStore = useRef(t1);
24626
24606
  const routesCount = useRef(0);
24627
24607
  let t2;
24628
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
24608
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
24629
24609
  t2 = (newPanels) => {
24630
24610
  sidePanelsRef.current = newPanels;
24631
24611
  setSidePanels(newPanels);
@@ -25279,7 +25259,7 @@ function DrawerNavigationItem(t0) {
25279
25259
  const {
25280
25260
  isActive
25281
25261
  } = t52;
25282
- return cls("rounded-lg truncate", "hover:bg-surface-accent-300 hover:bg-opacity-75 hover:bg-surface-accent-300/75 dark:hover:bg-surface-accent-800 dark:hover:bg-opacity-75 dark:hover:bg-surface-accent-800/75 text-text-primary dark:text-surface-200 hover:text-surface-900 hover:dark:text-white hover:bg-surface-accent-300/75 dark:hover:bg-surface-accent-800/75", "flex flex-row items-center mr-8", drawerOpen ? "pl-4 h-10" : "pl-4 h-9", "font-semibold text-xs", isActive ? "bg-surface-accent-200 bg-opacity-60 dark:bg-surface-800 dark:bg-opacity-50 bg-surface-accent-200/60 dark:bg-surface-800/50" : "");
25262
+ return cls("rounded-lg truncate", "hover:bg-surface-accent-300 hover:bg-opacity-75 dark:hover:bg-surface-accent-800 dark:hover:bg-opacity-75 text-text-primary dark:text-surface-200 hover:text-surface-900 hover:dark:text-white", "flex flex-row items-center mr-8", drawerOpen ? "pl-4 h-10" : "pl-4 h-9", "font-semibold text-xs", isActive ? "bg-surface-accent-200 bg-opacity-60 dark:bg-surface-800 dark:bg-opacity-50" : "");
25283
25263
  };
25284
25264
  $[4] = drawerOpen;
25285
25265
  $[5] = t4;
@@ -25289,7 +25269,7 @@ function DrawerNavigationItem(t0) {
25289
25269
  const t5 = drawerOpen ? "opacity-100" : "opacity-0 hidden";
25290
25270
  let t6;
25291
25271
  if ($[6] !== t5) {
25292
- t6 = cls("text-text-primary dark:text-surface-200", t5, "ml-4 font-inherit");
25272
+ t6 = cls(t5, "ml-4 font-inherit text-inherit");
25293
25273
  $[6] = t5;
25294
25274
  $[7] = t6;
25295
25275
  } else {
@@ -25427,7 +25407,7 @@ function DefaultDrawer(t0) {
25427
25407
  t7 = $[39];
25428
25408
  }
25429
25409
  t2 = "mt-4 flex-grow overflow-scroll no-scrollbar";
25430
- if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
25410
+ if ($[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
25431
25411
  t3 = {
25432
25412
  maskImage: "linear-gradient(to bottom, transparent 0, black 20px, black calc(100% - 20px), transparent 100%)"
25433
25413
  };
@@ -25437,7 +25417,7 @@ function DefaultDrawer(t0) {
25437
25417
  }
25438
25418
  let t10;
25439
25419
  if ($[41] !== adminMenuOpen || $[42] !== buildGroupHeader || $[43] !== drawerOpen || $[44] !== navigationEntries || $[45] !== onClick || $[46] !== tooltipsOpen) {
25440
- t10 = (group_0) => /* @__PURE__ */ jsxs("div", { className: "bg-surface-50 dark:bg-surface-800 dark:bg-opacity-30 dark:bg-surface-800/30 bg-surface-50 dark:bg-surface-800/30 my-4 rounded-lg ml-3 mr-1", children: [
25420
+ t10 = (group_0) => /* @__PURE__ */ jsxs("div", { className: "bg-surface-50 dark:bg-surface-800 dark:bg-opacity-30 my-4 rounded-lg ml-3 mr-1", children: [
25441
25421
  buildGroupHeader(group_0),
25442
25422
  Object.values(navigationEntries).filter((e_0) => e_0.group === group_0).map((view_0) => /* @__PURE__ */ jsx(DrawerNavigationItem, { icon: /* @__PURE__ */ jsx(IconForView, { collectionOrView: view_0.collection ?? view_0.view, size: "small" }), tooltipsOpen, adminMenuOpen, drawerOpen, onClick: () => onClick(view_0), url: view_0.url, name: view_0.name }, view_0.id))
25443
25423
  ] }, `drawer_group_${group_0}`);
@@ -25547,7 +25527,7 @@ function DrawerLogo(t0) {
25547
25527
  t2 = $[1];
25548
25528
  }
25549
25529
  let t3;
25550
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
25530
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
25551
25531
  t3 = cls("cursor-pointer rounded ml-3 mr-1");
25552
25532
  $[2] = t3;
25553
25533
  } else {
@@ -25622,7 +25602,7 @@ function UserSelectFieldBinding(t0) {
25622
25602
  t3 = $[3];
25623
25603
  }
25624
25604
  let t4;
25625
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
25605
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
25626
25606
  t4 = cls("w-full");
25627
25607
  $[4] = t4;
25628
25608
  } else {
@@ -26227,7 +26207,7 @@ function FireCMSRoute() {
26227
26207
  let t62;
26228
26208
  let t7;
26229
26209
  if ($[18] !== navigation || $[19] !== navigationEntries[0].id || $[20] !== navigationEntries[0].path) {
26230
- t7 = Symbol.for("react.early_return_sentinel");
26210
+ t7 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
26231
26211
  bb0: {
26232
26212
  let collection;
26233
26213
  collection = navigation.getCollectionById(navigationEntries[0].id);
@@ -26239,7 +26219,7 @@ function FireCMSRoute() {
26239
26219
  break bb0;
26240
26220
  }
26241
26221
  let t8;
26242
- if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
26222
+ if ($[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
26243
26223
  t8 = [];
26244
26224
  $[23] = t8;
26245
26225
  } else {
@@ -26256,7 +26236,7 @@ function FireCMSRoute() {
26256
26236
  t62 = $[21];
26257
26237
  t7 = $[22];
26258
26238
  }
26259
- if (t7 !== Symbol.for("react.early_return_sentinel")) {
26239
+ if (t7 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
26260
26240
  return t7;
26261
26241
  }
26262
26242
  return t62;
@@ -26267,7 +26247,7 @@ function FireCMSRoute() {
26267
26247
  let t62;
26268
26248
  let t7;
26269
26249
  if ($[24] !== navigation || $[25] !== navigationEntries[0]) {
26270
- t7 = Symbol.for("react.early_return_sentinel");
26250
+ t7 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
26271
26251
  bb1: {
26272
26252
  let collection_0;
26273
26253
  const firstEntry = navigationEntries[0];
@@ -26280,7 +26260,7 @@ function FireCMSRoute() {
26280
26260
  break bb1;
26281
26261
  }
26282
26262
  let t8;
26283
- if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
26263
+ if ($[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
26284
26264
  t8 = [];
26285
26265
  $[28] = t8;
26286
26266
  } else {
@@ -26296,7 +26276,7 @@ function FireCMSRoute() {
26296
26276
  t62 = $[26];
26297
26277
  t7 = $[27];
26298
26278
  }
26299
- if (t7 !== Symbol.for("react.early_return_sentinel")) {
26279
+ if (t7 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) {
26300
26280
  return t7;
26301
26281
  }
26302
26282
  return t62;
@@ -26462,7 +26442,7 @@ function HomePageRoute(t0) {
26462
26442
  t1 = $[1];
26463
26443
  }
26464
26444
  let t2;
26465
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
26445
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
26466
26446
  t2 = [];
26467
26447
  $[2] = t2;
26468
26448
  } else {
@@ -26653,7 +26633,7 @@ const Scaffold = React__default.memo(function Scaffold2(props) {
26653
26633
  const [drawerOpen, setDrawerOpen] = React__default.useState(false);
26654
26634
  const [onHover, setOnHover] = React__default.useState(false);
26655
26635
  let t4;
26656
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
26636
+ if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
26657
26637
  t4 = () => setOnHover(true);
26658
26638
  $[6] = t4;
26659
26639
  } else {
@@ -26661,7 +26641,7 @@ const Scaffold = React__default.memo(function Scaffold2(props) {
26661
26641
  }
26662
26642
  const setOnHoverTrue = t4;
26663
26643
  let t5;
26664
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
26644
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
26665
26645
  t5 = () => setOnHover(false);
26666
26646
  $[7] = t5;
26667
26647
  } else {
@@ -26669,7 +26649,7 @@ const Scaffold = React__default.memo(function Scaffold2(props) {
26669
26649
  }
26670
26650
  const setOnHoverFalse = t5;
26671
26651
  let t6;
26672
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
26652
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
26673
26653
  t6 = () => {
26674
26654
  setDrawerOpen(true);
26675
26655
  };
@@ -26679,7 +26659,7 @@ const Scaffold = React__default.memo(function Scaffold2(props) {
26679
26659
  }
26680
26660
  const handleDrawerOpen = t6;
26681
26661
  let t7;
26682
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
26662
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
26683
26663
  t7 = () => {
26684
26664
  setDrawerOpen(false);
26685
26665
  };
@@ -26828,7 +26808,7 @@ const Scaffold = React__default.memo(function Scaffold2(props) {
26828
26808
  const DrawerHeader = () => {
26829
26809
  const $ = c(1);
26830
26810
  let t0;
26831
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
26811
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
26832
26812
  t0 = /* @__PURE__ */ jsx("div", { className: "flex flex-col min-h-16" });
26833
26813
  $[0] = t0;
26834
26814
  } else {
@@ -26868,7 +26848,7 @@ function DrawerWrapper(props) {
26868
26848
  t3 = $[5];
26869
26849
  }
26870
26850
  let t4;
26871
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
26851
+ if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
26872
26852
  t4 = /* @__PURE__ */ jsx(ChevronLeftIcon, {});
26873
26853
  $[6] = t4;
26874
26854
  } else {
@@ -26929,7 +26909,7 @@ function DrawerWrapper(props) {
26929
26909
  t92 = $[20];
26930
26910
  }
26931
26911
  let t102;
26932
- if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
26912
+ if ($[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
26933
26913
  t102 = /* @__PURE__ */ jsx(MenuIcon, {});
26934
26914
  $[21] = t102;
26935
26915
  } else {
@@ -26945,7 +26925,7 @@ function DrawerWrapper(props) {
26945
26925
  }
26946
26926
  let t12;
26947
26927
  if ($[24] !== innerDrawer || $[25] !== props.open || $[26] !== props.setDrawerOpen) {
26948
- t12 = /* @__PURE__ */ jsx(Sheet, { side: "left", transparent: true, open: props.open, onOpenChange: props.setDrawerOpen, title: "Navigation drawer", overlayClassName: "bg-white bg-opacity-80 bg-white/80", children: innerDrawer });
26928
+ t12 = /* @__PURE__ */ jsx(Sheet, { side: "left", transparent: true, open: props.open, onOpenChange: props.setDrawerOpen, title: "Navigation drawer", overlayClassName: "bg-white bg-opacity-80", children: innerDrawer });
26949
26929
  $[24] = innerDrawer;
26950
26930
  $[25] = props.open;
26951
26931
  $[26] = props.setDrawerOpen;