@firecms/collection_editor 3.0.0-canary.183 → 3.0.0-canary.186

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
@@ -162,7 +162,7 @@ function LayoutModeSwitch(t0) {
162
162
  return t18;
163
163
  }
164
164
  function CollectionDetailsForm(t0) {
165
- const $ = c(177);
165
+ const $ = c(176);
166
166
  const {
167
167
  isNewCollection,
168
168
  reservedGroups,
@@ -181,7 +181,7 @@ function CollectionDetailsForm(t0) {
181
181
  isSubmitting,
182
182
  submitCount
183
183
  } = useFormex();
184
- const collectionEditor = useCollectionEditorController();
184
+ useCollectionEditorController();
185
185
  const [iconDialogOpen, setIconDialogOpen] = useState(false);
186
186
  const [advancedPanelExpanded, setAdvancedPanelExpanded] = useState(false);
187
187
  let t1;
@@ -237,7 +237,6 @@ function CollectionDetailsForm(t0) {
237
237
  t4 = $[8];
238
238
  }
239
239
  useEffect(t3, t4);
240
- const DatabaseField = collectionEditor.components?.DatabaseField ?? DefaultDatabaseField;
241
240
  let t5;
242
241
  if ($[9] !== values) {
243
242
  t5 = /* @__PURE__ */ jsx(IconForView, { collectionOrView: values });
@@ -295,154 +294,153 @@ function CollectionDetailsForm(t0) {
295
294
  t12 = $[14];
296
295
  }
297
296
  let t13;
298
- if ($[15] !== DatabaseField || $[16] !== updateDatabaseId || $[17] !== values.databaseId) {
299
- t13 = /* @__PURE__ */ jsx(DatabaseField, { databaseId: values.databaseId, onDatabaseIdUpdate: updateDatabaseId });
300
- $[15] = DatabaseField;
301
- $[16] = updateDatabaseId;
302
- $[17] = values.databaseId;
303
- $[18] = t13;
297
+ if ($[15] !== updateDatabaseId || $[16] !== values.databaseId) {
298
+ t13 = /* @__PURE__ */ jsx(DefaultDatabaseField, { databaseId: values.databaseId, onDatabaseIdUpdate: updateDatabaseId });
299
+ $[15] = updateDatabaseId;
300
+ $[16] = values.databaseId;
301
+ $[17] = t13;
304
302
  } else {
305
- t13 = $[18];
303
+ t13 = $[17];
306
304
  }
307
305
  let t14;
308
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
306
+ if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
309
307
  t14 = () => setIconDialogOpen(true);
310
- $[19] = t14;
308
+ $[18] = t14;
311
309
  } else {
312
- t14 = $[19];
310
+ t14 = $[18];
313
311
  }
314
312
  let t15;
315
- if ($[20] !== collectionIcon) {
313
+ if ($[19] !== collectionIcon) {
316
314
  t15 = /* @__PURE__ */ jsx(Tooltip, { title: "Change icon", asChild: true, children: /* @__PURE__ */ jsx(IconButton, { shape: "square", onClick: t14, children: collectionIcon }) });
317
- $[20] = collectionIcon;
318
- $[21] = t15;
315
+ $[19] = collectionIcon;
316
+ $[20] = t15;
319
317
  } else {
320
- t15 = $[21];
318
+ t15 = $[20];
321
319
  }
322
320
  let t16;
323
- if ($[22] !== t12 || $[23] !== t13 || $[24] !== t15) {
321
+ if ($[21] !== t12 || $[22] !== t13 || $[23] !== t15) {
324
322
  t16 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-2 py-2 pt-3 items-center", children: [
325
323
  t12,
326
324
  t13,
327
325
  t15
328
326
  ] });
329
- $[22] = t12;
330
- $[23] = t13;
331
- $[24] = t15;
332
- $[25] = t16;
327
+ $[21] = t12;
328
+ $[22] = t13;
329
+ $[23] = t15;
330
+ $[24] = t16;
333
331
  } else {
334
- t16 = $[25];
332
+ t16 = $[24];
335
333
  }
336
334
  let t17;
337
- if ($[26] !== parentCollection) {
335
+ if ($[25] !== parentCollection) {
338
336
  t17 = parentCollection && /* @__PURE__ */ jsx(Chip, { colorScheme: "tealDarker", children: /* @__PURE__ */ jsxs(Typography, { variant: "caption", children: [
339
337
  "This is a subcollection of ",
340
338
  /* @__PURE__ */ jsx("b", { children: parentCollection.name })
341
339
  ] }) });
342
- $[26] = parentCollection;
343
- $[27] = t17;
340
+ $[25] = parentCollection;
341
+ $[26] = t17;
344
342
  } else {
345
- t17 = $[27];
343
+ t17 = $[26];
346
344
  }
347
345
  let t18;
348
- if ($[28] !== t16 || $[29] !== t17) {
346
+ if ($[27] !== t16 || $[28] !== t17) {
349
347
  t18 = /* @__PURE__ */ jsxs("div", { children: [
350
348
  t16,
351
349
  t17
352
350
  ] });
353
- $[28] = t16;
354
- $[29] = t17;
355
- $[30] = t18;
351
+ $[27] = t16;
352
+ $[28] = t17;
353
+ $[29] = t18;
356
354
  } else {
357
- t18 = $[30];
355
+ t18 = $[29];
358
356
  }
359
357
  const t19 = "grid grid-cols-12 gap-4";
360
358
  const t20 = values.name ?? "";
361
359
  let t21;
362
- if ($[31] !== updateName) {
360
+ if ($[30] !== updateName) {
363
361
  t21 = (e) => updateName(e.target.value);
364
- $[31] = updateName;
365
- $[32] = t21;
362
+ $[30] = updateName;
363
+ $[31] = t21;
366
364
  } else {
367
- t21 = $[32];
365
+ t21 = $[31];
368
366
  }
369
367
  const t22 = showErrors && Boolean(errors.name);
370
368
  let t23;
371
- if ($[33] !== t20 || $[34] !== t21 || $[35] !== t22) {
369
+ if ($[32] !== t20 || $[33] !== t21 || $[34] !== t22) {
372
370
  t23 = /* @__PURE__ */ jsx(TextField, { value: t20, onChange: t21, label: "Name", autoFocus: true, required: true, error: t22 });
373
- $[33] = t20;
374
- $[34] = t21;
375
- $[35] = t22;
376
- $[36] = t23;
371
+ $[32] = t20;
372
+ $[33] = t21;
373
+ $[34] = t22;
374
+ $[35] = t23;
377
375
  } else {
378
- t23 = $[36];
376
+ t23 = $[35];
379
377
  }
380
378
  const t24 = touched.name && Boolean(errors.name);
381
379
  const t25 = touched.name && Boolean(errors.name) ? errors.name : "Name of this collection, usually a plural name (e.g. Products)";
382
380
  let t26;
383
- if ($[37] !== t24 || $[38] !== t25) {
381
+ if ($[36] !== t24 || $[37] !== t25) {
384
382
  t26 = /* @__PURE__ */ jsx(FieldCaption, { error: t24, children: t25 });
385
- $[37] = t24;
386
- $[38] = t25;
387
- $[39] = t26;
383
+ $[36] = t24;
384
+ $[37] = t25;
385
+ $[38] = t26;
388
386
  } else {
389
- t26 = $[39];
387
+ t26 = $[38];
390
388
  }
391
389
  let t27;
392
- if ($[40] !== t23 || $[41] !== t26) {
390
+ if ($[39] !== t23 || $[40] !== t26) {
393
391
  t27 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
394
392
  t23,
395
393
  t26
396
394
  ] });
397
- $[40] = t23;
398
- $[41] = t26;
399
- $[42] = t27;
395
+ $[39] = t23;
396
+ $[40] = t26;
397
+ $[41] = t27;
400
398
  } else {
401
- t27 = $[42];
399
+ t27 = $[41];
402
400
  }
403
401
  const t28 = isSubcollection ? "" : "sm:col-span-8";
404
402
  let t29;
405
- if ($[43] !== t28) {
403
+ if ($[42] !== t28) {
406
404
  t29 = cls("col-span-12 ", t28);
407
- $[43] = t28;
408
- $[44] = t29;
405
+ $[42] = t28;
406
+ $[43] = t29;
409
407
  } else {
410
- t29 = $[44];
408
+ t29 = $[43];
411
409
  }
412
410
  const t30 = !isNewCollection;
413
411
  const t31 = showErrors && Boolean(errors.path);
414
412
  let t32;
415
- if ($[45] !== t30 || $[46] !== t31) {
413
+ if ($[44] !== t30 || $[45] !== t31) {
416
414
  t32 = /* @__PURE__ */ jsx(Field, { name: "path", as: DebouncedTextField, label: "Path", disabled: t30, required: true, error: t31 });
417
- $[45] = t30;
418
- $[46] = t31;
419
- $[47] = t32;
415
+ $[44] = t30;
416
+ $[45] = t31;
417
+ $[46] = t32;
420
418
  } else {
421
- t32 = $[47];
419
+ t32 = $[46];
422
420
  }
423
421
  const t33 = touched.path && Boolean(errors.path);
424
422
  const t34 = touched.path && Boolean(errors.path) ? errors.path : isSubcollection ? "Relative path to the parent (no need to include the parent path)" : "Path that this collection is stored in, in the database";
425
423
  let t35;
426
- if ($[48] !== t33 || $[49] !== t34) {
424
+ if ($[47] !== t33 || $[48] !== t34) {
427
425
  t35 = /* @__PURE__ */ jsx(FieldCaption, { error: t33, children: t34 });
428
- $[48] = t33;
429
- $[49] = t34;
430
- $[50] = t35;
426
+ $[47] = t33;
427
+ $[48] = t34;
428
+ $[49] = t35;
431
429
  } else {
432
- t35 = $[50];
430
+ t35 = $[49];
433
431
  }
434
432
  let t36;
435
- if ($[51] !== t29 || $[52] !== t32 || $[53] !== t35) {
433
+ if ($[50] !== t29 || $[51] !== t32 || $[52] !== t35) {
436
434
  t36 = /* @__PURE__ */ jsxs("div", { className: t29, children: [
437
435
  t32,
438
436
  t35
439
437
  ] });
440
- $[51] = t29;
441
- $[52] = t32;
442
- $[53] = t35;
443
- $[54] = t36;
438
+ $[50] = t29;
439
+ $[51] = t32;
440
+ $[52] = t35;
441
+ $[53] = t36;
444
442
  } else {
445
- t36 = $[54];
443
+ t36 = $[53];
446
444
  }
447
445
  const t37 = !isSubcollection && /* @__PURE__ */ jsxs("div", { className: "col-span-12 sm:col-span-4 relative", children: [
448
446
  /* @__PURE__ */ jsx(TextField, { error: showErrors && Boolean(errors.group), disabled: isSubmitting, value: values.group ?? "", autoComplete: "off", onChange: (event) => setFieldValue("group", event.target.value), name: "group", inputRef: groupRef, label: "Group" }),
@@ -454,116 +452,116 @@ function CollectionDetailsForm(t0) {
454
452
  ] });
455
453
  const t38 = values.openEntityMode ?? "side_panel";
456
454
  let t39;
457
- if ($[55] !== setFieldValue) {
455
+ if ($[54] !== setFieldValue) {
458
456
  t39 = (value) => setFieldValue("openEntityMode", value);
459
- $[55] = setFieldValue;
460
- $[56] = t39;
457
+ $[54] = setFieldValue;
458
+ $[55] = t39;
461
459
  } else {
462
- t39 = $[56];
460
+ t39 = $[55];
463
461
  }
464
462
  let t40;
465
- if ($[57] !== t38 || $[58] !== t39) {
463
+ if ($[56] !== t38 || $[57] !== t39) {
466
464
  t40 = /* @__PURE__ */ jsx(LayoutModeSwitch, { className: "col-span-12", value: t38, onChange: t39 });
467
- $[57] = t38;
468
- $[58] = t39;
469
- $[59] = t40;
465
+ $[56] = t38;
466
+ $[57] = t39;
467
+ $[58] = t40;
470
468
  } else {
471
- t40 = $[59];
469
+ t40 = $[58];
472
470
  }
473
471
  let t41;
474
- if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
472
+ if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
475
473
  t41 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
476
474
  /* @__PURE__ */ jsx(SettingsIcon, {}),
477
475
  /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "ml-2", children: "Advanced" })
478
476
  ] });
479
- $[60] = t41;
477
+ $[59] = t41;
480
478
  } else {
481
- t41 = $[60];
479
+ t41 = $[59];
482
480
  }
483
481
  const t42 = !isNewCollection;
484
482
  const t43 = showErrors && Boolean(errors.id);
485
483
  let t44;
486
- if ($[61] !== t42 || $[62] !== t43) {
484
+ if ($[60] !== t42 || $[61] !== t43) {
487
485
  t44 = /* @__PURE__ */ jsx(Field, { name: "id", as: DebouncedTextField, disabled: t42, label: "Collection id", error: t43 });
488
- $[61] = t42;
489
- $[62] = t43;
490
- $[63] = t44;
486
+ $[60] = t42;
487
+ $[61] = t43;
488
+ $[62] = t44;
491
489
  } else {
492
- t44 = $[63];
490
+ t44 = $[62];
493
491
  }
494
492
  const t45 = touched.id && Boolean(errors.id);
495
493
  const t46 = touched.id && Boolean(errors.id) ? errors.id : "This id identifies this collection. Typically the same as the path.";
496
494
  let t47;
497
- if ($[64] !== t45 || $[65] !== t46) {
495
+ if ($[63] !== t45 || $[64] !== t46) {
498
496
  t47 = /* @__PURE__ */ jsx(FieldCaption, { error: t45, children: t46 });
499
- $[64] = t45;
500
- $[65] = t46;
501
- $[66] = t47;
497
+ $[63] = t45;
498
+ $[64] = t46;
499
+ $[65] = t47;
502
500
  } else {
503
- t47 = $[66];
501
+ t47 = $[65];
504
502
  }
505
503
  let t48;
506
- if ($[67] !== t44 || $[68] !== t47) {
504
+ if ($[66] !== t44 || $[67] !== t47) {
507
505
  t48 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
508
506
  t44,
509
507
  t47
510
508
  ] });
511
- $[67] = t44;
512
- $[68] = t47;
513
- $[69] = t48;
509
+ $[66] = t44;
510
+ $[67] = t47;
511
+ $[68] = t48;
514
512
  } else {
515
- t48 = $[69];
513
+ t48 = $[68];
516
514
  }
517
515
  const t49 = showErrors && Boolean(errors.singularName);
518
516
  let t50;
519
- if ($[70] !== handleChange || $[71] !== setFieldTouched) {
517
+ if ($[69] !== handleChange || $[70] !== setFieldTouched) {
520
518
  t50 = (e_0) => {
521
519
  setFieldTouched("singularName", true);
522
520
  return handleChange(e_0);
523
521
  };
524
- $[70] = handleChange;
525
- $[71] = setFieldTouched;
526
- $[72] = t50;
522
+ $[69] = handleChange;
523
+ $[70] = setFieldTouched;
524
+ $[71] = t50;
527
525
  } else {
528
- t50 = $[72];
526
+ t50 = $[71];
529
527
  }
530
528
  const t51 = values.singularName ?? "";
531
529
  let t52;
532
- if ($[73] !== t49 || $[74] !== t50 || $[75] !== t51) {
530
+ if ($[72] !== t49 || $[73] !== t50 || $[74] !== t51) {
533
531
  t52 = /* @__PURE__ */ jsx(TextField, { error: t49, name: "singularName", "aria-describedby": "singularName-helper", onChange: t50, value: t51, label: "Singular name" });
534
- $[73] = t49;
535
- $[74] = t50;
536
- $[75] = t51;
537
- $[76] = t52;
532
+ $[72] = t49;
533
+ $[73] = t50;
534
+ $[74] = t51;
535
+ $[75] = t52;
538
536
  } else {
539
- t52 = $[76];
537
+ t52 = $[75];
540
538
  }
541
539
  const t53 = showErrors && Boolean(errors.singularName);
542
540
  const t54 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define a singular name for your entities";
543
541
  let t55;
544
- if ($[77] !== t53 || $[78] !== t54) {
542
+ if ($[76] !== t53 || $[77] !== t54) {
545
543
  t55 = /* @__PURE__ */ jsx(FieldCaption, { error: t53, children: t54 });
546
- $[77] = t53;
547
- $[78] = t54;
548
- $[79] = t55;
544
+ $[76] = t53;
545
+ $[77] = t54;
546
+ $[78] = t55;
549
547
  } else {
550
- t55 = $[79];
548
+ t55 = $[78];
551
549
  }
552
550
  let t56;
553
- if ($[80] !== t52 || $[81] !== t55) {
551
+ if ($[79] !== t52 || $[80] !== t55) {
554
552
  t56 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
555
553
  t52,
556
554
  t55
557
555
  ] });
558
- $[80] = t52;
559
- $[81] = t55;
560
- $[82] = t56;
556
+ $[79] = t52;
557
+ $[80] = t55;
558
+ $[81] = t56;
561
559
  } else {
562
- t56 = $[82];
560
+ t56 = $[81];
563
561
  }
564
562
  const t57 = showErrors && Boolean(errors.sideDialogWidth);
565
563
  let t58;
566
- if ($[83] !== setFieldTouched || $[84] !== setFieldValue) {
564
+ if ($[82] !== setFieldTouched || $[83] !== setFieldValue) {
567
565
  t58 = (e_1) => {
568
566
  setFieldTouched("sideDialogWidth", true);
569
567
  const value_0 = e_1.target.value;
@@ -575,129 +573,129 @@ function CollectionDetailsForm(t0) {
575
573
  }
576
574
  }
577
575
  };
578
- $[83] = setFieldTouched;
579
- $[84] = setFieldValue;
580
- $[85] = t58;
576
+ $[82] = setFieldTouched;
577
+ $[83] = setFieldValue;
578
+ $[84] = t58;
581
579
  } else {
582
- t58 = $[85];
580
+ t58 = $[84];
583
581
  }
584
582
  let t59;
585
- if ($[86] !== setFieldValue) {
583
+ if ($[85] !== setFieldValue) {
586
584
  t59 = () => {
587
585
  setFieldValue("sideDialogWidth", null);
588
586
  };
589
- $[86] = setFieldValue;
590
- $[87] = t59;
587
+ $[85] = setFieldValue;
588
+ $[86] = t59;
591
589
  } else {
592
- t59 = $[87];
590
+ t59 = $[86];
593
591
  }
594
592
  const t60 = !values.sideDialogWidth;
595
593
  let t61;
596
- if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
594
+ if ($[87] === Symbol.for("react.memo_cache_sentinel")) {
597
595
  t61 = /* @__PURE__ */ jsx(CloseIcon, { size: "small" });
598
- $[88] = t61;
596
+ $[87] = t61;
599
597
  } else {
600
- t61 = $[88];
598
+ t61 = $[87];
601
599
  }
602
600
  let t62;
603
- if ($[89] !== t59 || $[90] !== t60) {
601
+ if ($[88] !== t59 || $[89] !== t60) {
604
602
  t62 = /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: t59, disabled: t60, children: t61 });
605
- $[89] = t59;
606
- $[90] = t60;
607
- $[91] = t62;
603
+ $[88] = t59;
604
+ $[89] = t60;
605
+ $[90] = t62;
608
606
  } else {
609
- t62 = $[91];
607
+ t62 = $[90];
610
608
  }
611
609
  const t63 = values.sideDialogWidth ?? "";
612
610
  let t64;
613
- if ($[92] !== t57 || $[93] !== t58 || $[94] !== t62 || $[95] !== t63) {
611
+ if ($[91] !== t57 || $[92] !== t58 || $[93] !== t62 || $[94] !== t63) {
614
612
  t64 = /* @__PURE__ */ jsx(TextField, { error: t57, name: "sideDialogWidth", type: "number", "aria-describedby": "sideDialogWidth-helper", onChange: t58, endAdornment: t62, value: t63, label: "Side dialog width" });
615
- $[92] = t57;
616
- $[93] = t58;
617
- $[94] = t62;
618
- $[95] = t63;
619
- $[96] = t64;
613
+ $[91] = t57;
614
+ $[92] = t58;
615
+ $[93] = t62;
616
+ $[94] = t63;
617
+ $[95] = t64;
620
618
  } else {
621
- t64 = $[96];
619
+ t64 = $[95];
622
620
  }
623
621
  const t65 = showErrors && Boolean(errors.singularName);
624
622
  const t66 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define the width (in pixels) of entities side dialog. Default is 768px";
625
623
  let t67;
626
- if ($[97] !== t65 || $[98] !== t66) {
624
+ if ($[96] !== t65 || $[97] !== t66) {
627
625
  t67 = /* @__PURE__ */ jsx(FieldCaption, { error: t65, children: t66 });
628
- $[97] = t65;
629
- $[98] = t66;
630
- $[99] = t67;
626
+ $[96] = t65;
627
+ $[97] = t66;
628
+ $[98] = t67;
631
629
  } else {
632
- t67 = $[99];
630
+ t67 = $[98];
633
631
  }
634
632
  let t68;
635
- if ($[100] !== t64 || $[101] !== t67) {
633
+ if ($[99] !== t64 || $[100] !== t67) {
636
634
  t68 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
637
635
  t64,
638
636
  t67
639
637
  ] });
640
- $[100] = t64;
641
- $[101] = t67;
642
- $[102] = t68;
638
+ $[99] = t64;
639
+ $[100] = t67;
640
+ $[101] = t68;
643
641
  } else {
644
- t68 = $[102];
642
+ t68 = $[101];
645
643
  }
646
644
  const t69 = showErrors && Boolean(errors.description);
647
645
  const t70 = values.description ?? "";
648
646
  let t71;
649
- if ($[103] !== handleChange || $[104] !== t69 || $[105] !== t70) {
647
+ if ($[102] !== handleChange || $[103] !== t69 || $[104] !== t70) {
650
648
  t71 = /* @__PURE__ */ jsx(TextField, { error: t69, name: "description", value: t70, onChange: handleChange, multiline: true, rows: 2, "aria-describedby": "description-helper-text", label: "Description" });
651
- $[103] = handleChange;
652
- $[104] = t69;
653
- $[105] = t70;
654
- $[106] = t71;
649
+ $[102] = handleChange;
650
+ $[103] = t69;
651
+ $[104] = t70;
652
+ $[105] = t71;
655
653
  } else {
656
- t71 = $[106];
654
+ t71 = $[105];
657
655
  }
658
656
  const t72 = showErrors && Boolean(errors.description);
659
657
  const t73 = showErrors && Boolean(errors.description) ? errors.description : "Description of the collection, you can use markdown";
660
658
  let t74;
661
- if ($[107] !== t72 || $[108] !== t73) {
659
+ if ($[106] !== t72 || $[107] !== t73) {
662
660
  t74 = /* @__PURE__ */ jsx(FieldCaption, { error: t72, children: t73 });
663
- $[107] = t72;
664
- $[108] = t73;
665
- $[109] = t74;
661
+ $[106] = t72;
662
+ $[107] = t73;
663
+ $[108] = t74;
666
664
  } else {
667
- t74 = $[109];
665
+ t74 = $[108];
668
666
  }
669
667
  let t75;
670
- if ($[110] !== t71 || $[111] !== t74) {
668
+ if ($[109] !== t71 || $[110] !== t74) {
671
669
  t75 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
672
670
  t71,
673
671
  t74
674
672
  ] });
675
- $[110] = t71;
676
- $[111] = t74;
677
- $[112] = t75;
673
+ $[109] = t71;
674
+ $[110] = t74;
675
+ $[111] = t75;
678
676
  } else {
679
- t75 = $[112];
677
+ t75 = $[111];
680
678
  }
681
679
  const t76 = values.defaultSize ?? "";
682
680
  let t77;
683
- if ($[113] === Symbol.for("react.memo_cache_sentinel")) {
681
+ if ($[112] === Symbol.for("react.memo_cache_sentinel")) {
684
682
  t77 = ["xs", "s", "m", "l", "xl"].map(_temp2$7);
685
- $[113] = t77;
683
+ $[112] = t77;
686
684
  } else {
687
- t77 = $[113];
685
+ t77 = $[112];
688
686
  }
689
687
  let t78;
690
- if ($[114] !== handleChange || $[115] !== t76) {
688
+ if ($[113] !== handleChange || $[114] !== t76) {
691
689
  t78 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(Select, { name: "defaultSize", size: "large", fullWidth: true, label: "Default row size", position: "item-aligned", onChange: handleChange, value: t76, renderValue: _temp$b, children: t77 }) });
692
- $[114] = handleChange;
693
- $[115] = t76;
694
- $[116] = t78;
690
+ $[113] = handleChange;
691
+ $[114] = t76;
692
+ $[115] = t78;
695
693
  } else {
696
- t78 = $[116];
694
+ t78 = $[115];
697
695
  }
698
696
  const t79 = customIdValue === "code_defined";
699
697
  let t80;
700
- if ($[117] !== setFieldValue) {
698
+ if ($[116] !== setFieldValue) {
701
699
  t80 = (v) => {
702
700
  if (v === "code_defined") {
703
701
  throw new Error("This should not happen");
@@ -715,115 +713,115 @@ function CollectionDetailsForm(t0) {
715
713
  }
716
714
  }
717
715
  };
718
- $[117] = setFieldValue;
719
- $[118] = t80;
716
+ $[116] = setFieldValue;
717
+ $[117] = t80;
720
718
  } else {
721
- t80 = $[118];
719
+ t80 = $[117];
722
720
  }
723
721
  const t81 = customIdValue ?? "";
724
722
  let t82;
725
723
  let t83;
726
724
  let t84;
727
- if ($[119] === Symbol.for("react.memo_cache_sentinel")) {
725
+ if ($[118] === Symbol.for("react.memo_cache_sentinel")) {
728
726
  t82 = /* @__PURE__ */ jsx(SelectItem, { value: "false", children: "Document ID is generated automatically" });
729
727
  t83 = /* @__PURE__ */ jsx(SelectItem, { value: "true", children: "Users must define an ID" });
730
728
  t84 = /* @__PURE__ */ jsx(SelectItem, { value: "optional", children: "Users can define an ID, but it is not required" });
731
- $[119] = t82;
732
- $[120] = t83;
733
- $[121] = t84;
729
+ $[118] = t82;
730
+ $[119] = t83;
731
+ $[120] = t84;
734
732
  } else {
735
- t82 = $[119];
736
- t83 = $[120];
737
- t84 = $[121];
733
+ t82 = $[118];
734
+ t83 = $[119];
735
+ t84 = $[120];
738
736
  }
739
737
  let t85;
740
- if ($[122] !== t79 || $[123] !== t80 || $[124] !== t81) {
738
+ if ($[121] !== t79 || $[122] !== t80 || $[123] !== t81) {
741
739
  t85 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxs(Select, { name: "customId", label: "Document IDs generation", position: "item-aligned", size: "large", fullWidth: true, disabled: t79, onValueChange: t80, value: t81, renderValue: _temp3$4, children: [
742
740
  t82,
743
741
  t83,
744
742
  t84
745
743
  ] }) });
746
- $[122] = t79;
747
- $[123] = t80;
748
- $[124] = t81;
749
- $[125] = t85;
744
+ $[121] = t79;
745
+ $[122] = t80;
746
+ $[123] = t81;
747
+ $[124] = t85;
750
748
  } else {
751
- t85 = $[125];
749
+ t85 = $[124];
752
750
  }
753
751
  let t86;
754
- if ($[126] !== setFieldValue) {
752
+ if ($[125] !== setFieldValue) {
755
753
  t86 = (v_0) => setFieldValue("collectionGroup", v_0);
756
- $[126] = setFieldValue;
757
- $[127] = t86;
754
+ $[125] = setFieldValue;
755
+ $[126] = t86;
758
756
  } else {
759
- t86 = $[127];
757
+ t86 = $[126];
760
758
  }
761
759
  const t87 = values.collectionGroup ?? false;
762
760
  let t88;
763
- if ($[128] !== t86 || $[129] !== t87) {
761
+ if ($[127] !== t86 || $[128] !== t87) {
764
762
  t88 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", label: "Collection group", onValueChange: t86, value: t87 });
765
- $[128] = t86;
766
- $[129] = t87;
767
- $[130] = t88;
763
+ $[127] = t86;
764
+ $[128] = t87;
765
+ $[129] = t88;
768
766
  } else {
769
- t88 = $[130];
767
+ t88 = $[129];
770
768
  }
771
769
  let t89;
772
- if ($[131] === Symbol.for("react.memo_cache_sentinel")) {
770
+ if ($[130] === Symbol.for("react.memo_cache_sentinel")) {
773
771
  t89 = /* @__PURE__ */ jsx(FieldCaption, { children: "A collection group consists of all collections with the same path. This allows you to query over multiple collections at once." });
774
- $[131] = t89;
772
+ $[130] = t89;
775
773
  } else {
776
- t89 = $[131];
774
+ t89 = $[130];
777
775
  }
778
776
  let t90;
779
- if ($[132] !== t88) {
777
+ if ($[131] !== t88) {
780
778
  t90 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
781
779
  t88,
782
780
  t89
783
781
  ] });
784
- $[132] = t88;
785
- $[133] = t90;
782
+ $[131] = t88;
783
+ $[132] = t90;
786
784
  } else {
787
- t90 = $[133];
785
+ t90 = $[132];
788
786
  }
789
787
  let t91;
790
- if ($[134] !== setFieldValue) {
788
+ if ($[133] !== setFieldValue) {
791
789
  t91 = (v_1) => setFieldValue("textSearchEnabled", v_1);
792
- $[134] = setFieldValue;
793
- $[135] = t91;
790
+ $[133] = setFieldValue;
791
+ $[134] = t91;
794
792
  } else {
795
- t91 = $[135];
793
+ t91 = $[134];
796
794
  }
797
795
  const t92 = values.textSearchEnabled ?? false;
798
796
  let t93;
799
- if ($[136] !== t91 || $[137] !== t92) {
797
+ if ($[135] !== t91 || $[136] !== t92) {
800
798
  t93 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", label: "Enable text search for this collection", onValueChange: t91, value: t92 });
801
- $[136] = t91;
802
- $[137] = t92;
803
- $[138] = t93;
799
+ $[135] = t91;
800
+ $[136] = t92;
801
+ $[137] = t93;
804
802
  } else {
805
- t93 = $[138];
803
+ t93 = $[137];
806
804
  }
807
805
  let t94;
808
- if ($[139] === Symbol.for("react.memo_cache_sentinel")) {
806
+ if ($[138] === Symbol.for("react.memo_cache_sentinel")) {
809
807
  t94 = /* @__PURE__ */ jsx(FieldCaption, { children: "Allow text search for this collection. If you have not specified a text search delegate, this will use the built-in local text search. This is not recommended for large collections, as it may incur in performance and cost issues." });
810
- $[139] = t94;
808
+ $[138] = t94;
811
809
  } else {
812
- t94 = $[139];
810
+ t94 = $[138];
813
811
  }
814
812
  let t95;
815
- if ($[140] !== t93) {
813
+ if ($[139] !== t93) {
816
814
  t95 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
817
815
  t93,
818
816
  t94
819
817
  ] });
820
- $[140] = t93;
821
- $[141] = t95;
818
+ $[139] = t93;
819
+ $[140] = t95;
822
820
  } else {
823
- t95 = $[141];
821
+ t95 = $[140];
824
822
  }
825
823
  let t96;
826
- if ($[142] !== t48 || $[143] !== t56 || $[144] !== t68 || $[145] !== t75 || $[146] !== t78 || $[147] !== t85 || $[148] !== t90 || $[149] !== t95) {
824
+ if ($[141] !== t48 || $[142] !== t56 || $[143] !== t68 || $[144] !== t75 || $[145] !== t78 || $[146] !== t85 || $[147] !== t90 || $[148] !== t95) {
827
825
  t96 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-4 p-4", children: [
828
826
  t48,
829
827
  t56,
@@ -834,41 +832,41 @@ function CollectionDetailsForm(t0) {
834
832
  t90,
835
833
  t95
836
834
  ] });
837
- $[142] = t48;
838
- $[143] = t56;
839
- $[144] = t68;
840
- $[145] = t75;
841
- $[146] = t78;
842
- $[147] = t85;
843
- $[148] = t90;
844
- $[149] = t95;
845
- $[150] = t96;
846
- } else {
847
- t96 = $[150];
835
+ $[141] = t48;
836
+ $[142] = t56;
837
+ $[143] = t68;
838
+ $[144] = t75;
839
+ $[145] = t78;
840
+ $[146] = t85;
841
+ $[147] = t90;
842
+ $[148] = t95;
843
+ $[149] = t96;
844
+ } else {
845
+ t96 = $[149];
848
846
  }
849
847
  let t97;
850
- if ($[151] !== advancedPanelExpanded || $[152] !== t96) {
848
+ if ($[150] !== advancedPanelExpanded || $[151] !== t96) {
851
849
  t97 = /* @__PURE__ */ jsx(ExpandablePanel, { expanded: advancedPanelExpanded, onExpandedChange: setAdvancedPanelExpanded, title: t41, initiallyExpanded: false, children: t96 });
852
- $[151] = advancedPanelExpanded;
853
- $[152] = t96;
854
- $[153] = t97;
850
+ $[150] = advancedPanelExpanded;
851
+ $[151] = t96;
852
+ $[152] = t97;
855
853
  } else {
856
- t97 = $[153];
854
+ t97 = $[152];
857
855
  }
858
856
  let t98;
859
- if ($[154] !== children || $[155] !== t97) {
857
+ if ($[153] !== children || $[154] !== t97) {
860
858
  t98 = /* @__PURE__ */ jsxs("div", { className: "col-span-12 mt-8", children: [
861
859
  t97,
862
860
  children
863
861
  ] });
864
- $[154] = children;
865
- $[155] = t97;
866
- $[156] = t98;
862
+ $[153] = children;
863
+ $[154] = t97;
864
+ $[155] = t98;
867
865
  } else {
868
- t98 = $[156];
866
+ t98 = $[155];
869
867
  }
870
868
  let t99;
871
- if ($[157] !== t27 || $[158] !== t36 || $[159] !== t37 || $[160] !== t40 || $[161] !== t98) {
869
+ if ($[156] !== t27 || $[157] !== t36 || $[158] !== t37 || $[159] !== t40 || $[160] !== t98) {
872
870
  t99 = /* @__PURE__ */ jsxs("div", { className: t19, children: [
873
871
  t27,
874
872
  t36,
@@ -876,68 +874,68 @@ function CollectionDetailsForm(t0) {
876
874
  t40,
877
875
  t98
878
876
  ] });
879
- $[157] = t27;
880
- $[158] = t36;
881
- $[159] = t37;
882
- $[160] = t40;
883
- $[161] = t98;
884
- $[162] = t99;
877
+ $[156] = t27;
878
+ $[157] = t36;
879
+ $[158] = t37;
880
+ $[159] = t40;
881
+ $[160] = t98;
882
+ $[161] = t99;
885
883
  } else {
886
- t99 = $[162];
884
+ t99 = $[161];
887
885
  }
888
886
  let t100;
889
- if ($[163] === Symbol.for("react.memo_cache_sentinel")) {
887
+ if ($[162] === Symbol.for("react.memo_cache_sentinel")) {
890
888
  t100 = /* @__PURE__ */ jsx("div", { style: {
891
889
  height: "52px"
892
890
  } });
893
- $[163] = t100;
891
+ $[162] = t100;
894
892
  } else {
895
- t100 = $[163];
893
+ t100 = $[162];
896
894
  }
897
895
  let t101;
898
- if ($[164] !== setFieldValue) {
896
+ if ($[163] !== setFieldValue) {
899
897
  t101 = (icon) => {
900
898
  setIconDialogOpen(false);
901
899
  setFieldValue("icon", icon);
902
900
  };
903
- $[164] = setFieldValue;
904
- $[165] = t101;
901
+ $[163] = setFieldValue;
902
+ $[164] = t101;
905
903
  } else {
906
- t101 = $[165];
904
+ t101 = $[164];
907
905
  }
908
906
  let t102;
909
- if ($[166] !== t101 || $[167] !== values.icon) {
907
+ if ($[165] !== t101 || $[166] !== values.icon) {
910
908
  t102 = /* @__PURE__ */ jsx("div", { className: "p-4 overflow-auto min-h-[200px]", children: /* @__PURE__ */ jsx(SearchIconsView, { selectedIcon: values.icon, onIconSelected: t101 }) });
911
- $[166] = t101;
912
- $[167] = values.icon;
913
- $[168] = t102;
909
+ $[165] = t101;
910
+ $[166] = values.icon;
911
+ $[167] = t102;
914
912
  } else {
915
- t102 = $[168];
913
+ t102 = $[167];
916
914
  }
917
915
  let t103;
918
- if ($[169] !== iconDialogOpen || $[170] !== t102) {
916
+ if ($[168] !== iconDialogOpen || $[169] !== t102) {
919
917
  t103 = /* @__PURE__ */ jsx(Dialog, { open: iconDialogOpen, onOpenChange: setIconDialogOpen, maxWidth: "xl", fullWidth: true, children: t102 });
920
- $[169] = iconDialogOpen;
921
- $[170] = t102;
922
- $[171] = t103;
918
+ $[168] = iconDialogOpen;
919
+ $[169] = t102;
920
+ $[170] = t103;
923
921
  } else {
924
- t103 = $[171];
922
+ t103 = $[170];
925
923
  }
926
924
  let t104;
927
- if ($[172] !== T0 || $[173] !== t103 || $[174] !== t18 || $[175] !== t99) {
925
+ if ($[171] !== T0 || $[172] !== t103 || $[173] !== t18 || $[174] !== t99) {
928
926
  t104 = /* @__PURE__ */ jsx("div", { className: t7, children: /* @__PURE__ */ jsxs(T0, { maxWidth: t8, className: t9, children: [
929
927
  t18,
930
928
  t99,
931
929
  t100,
932
930
  t103
933
931
  ] }) });
934
- $[172] = T0;
935
- $[173] = t103;
936
- $[174] = t18;
937
- $[175] = t99;
938
- $[176] = t104;
932
+ $[171] = T0;
933
+ $[172] = t103;
934
+ $[173] = t18;
935
+ $[174] = t99;
936
+ $[175] = t104;
939
937
  } else {
940
- t104 = $[176];
938
+ t104 = $[175];
941
939
  }
942
940
  return t104;
943
941
  }
@@ -9543,7 +9541,7 @@ const validateId = (value, isNewCollection, existingPaths, existingIds) => {
9543
9541
  const ConfigControllerContext = React__default.createContext({});
9544
9542
  const CollectionEditorContext = React__default.createContext({});
9545
9543
  const ConfigControllerProvider = React__default.memo(function ConfigControllerProvider2(t0) {
9546
- const $ = c(68);
9544
+ const $ = c(67);
9547
9545
  const {
9548
9546
  children,
9549
9547
  collectionConfigController,
@@ -9554,8 +9552,7 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
9554
9552
  getPathSuggestions,
9555
9553
  getUser,
9556
9554
  getData,
9557
- onAnalyticsEvent,
9558
- components
9555
+ onAnalyticsEvent
9559
9556
  } = t0;
9560
9557
  const navigation = useNavigationController();
9561
9558
  const navigate = useNavigate();
@@ -9673,28 +9670,26 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
9673
9670
  const createCollection = t3;
9674
9671
  const t4 = configPermissions ?? defaultConfigPermissions;
9675
9672
  let t5;
9676
- if ($[6] !== components || $[7] !== createCollection || $[8] !== editCollection || $[9] !== editProperty || $[10] !== getPathSuggestions || $[11] !== t4) {
9673
+ if ($[6] !== createCollection || $[7] !== editCollection || $[8] !== editProperty || $[9] !== getPathSuggestions || $[10] !== t4) {
9677
9674
  t5 = {
9678
9675
  editCollection,
9679
9676
  createCollection,
9680
9677
  editProperty,
9681
9678
  configPermissions: t4,
9682
- getPathSuggestions,
9683
- components
9679
+ getPathSuggestions
9684
9680
  };
9685
- $[6] = components;
9686
- $[7] = createCollection;
9687
- $[8] = editCollection;
9688
- $[9] = editProperty;
9689
- $[10] = getPathSuggestions;
9690
- $[11] = t4;
9691
- $[12] = t5;
9681
+ $[6] = createCollection;
9682
+ $[7] = editCollection;
9683
+ $[8] = editProperty;
9684
+ $[9] = getPathSuggestions;
9685
+ $[10] = t4;
9686
+ $[11] = t5;
9692
9687
  } else {
9693
- t5 = $[12];
9688
+ t5 = $[11];
9694
9689
  }
9695
9690
  const t6 = Boolean(currentDialog);
9696
9691
  let t7;
9697
- if ($[13] !== currentDialog || $[14] !== navigate || $[15] !== navigation) {
9692
+ if ($[12] !== currentDialog || $[13] !== navigate || $[14] !== navigation) {
9698
9693
  t7 = (collection_0) => {
9699
9694
  if (currentDialog?.redirect) {
9700
9695
  if (collection_0 && currentDialog?.isNewCollection && !currentDialog.parentCollectionIds.length) {
@@ -9704,29 +9699,29 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
9704
9699
  }
9705
9700
  setCurrentDialog(void 0);
9706
9701
  };
9707
- $[13] = currentDialog;
9708
- $[14] = navigate;
9709
- $[15] = navigation;
9710
- $[16] = t7;
9702
+ $[12] = currentDialog;
9703
+ $[13] = navigate;
9704
+ $[14] = navigation;
9705
+ $[15] = t7;
9711
9706
  } else {
9712
- t7 = $[16];
9707
+ t7 = $[15];
9713
9708
  }
9714
9709
  let t8;
9715
- if ($[17] !== collectionConfigController || $[18] !== collectionInference || $[19] !== currentDialog || $[20] !== extraView || $[21] !== getData || $[22] !== getPathSuggestions || $[23] !== getUser || $[24] !== reservedGroups || $[25] !== t6 || $[26] !== t7) {
9710
+ if ($[16] !== collectionConfigController || $[17] !== collectionInference || $[18] !== currentDialog || $[19] !== extraView || $[20] !== getData || $[21] !== getPathSuggestions || $[22] !== getUser || $[23] !== reservedGroups || $[24] !== t6 || $[25] !== t7) {
9716
9711
  t8 = /* @__PURE__ */ jsx(CollectionEditorDialog, { open: t6, configController: collectionConfigController, isNewCollection: false, collectionInference, ...currentDialog, getData, reservedGroups, extraView, pathSuggestions: getPathSuggestions, getUser, handleClose: t7 });
9717
- $[17] = collectionConfigController;
9718
- $[18] = collectionInference;
9719
- $[19] = currentDialog;
9720
- $[20] = extraView;
9721
- $[21] = getData;
9722
- $[22] = getPathSuggestions;
9723
- $[23] = getUser;
9724
- $[24] = reservedGroups;
9725
- $[25] = t6;
9726
- $[26] = t7;
9727
- $[27] = t8;
9712
+ $[16] = collectionConfigController;
9713
+ $[17] = collectionInference;
9714
+ $[18] = currentDialog;
9715
+ $[19] = extraView;
9716
+ $[20] = getData;
9717
+ $[21] = getPathSuggestions;
9718
+ $[22] = getUser;
9719
+ $[23] = reservedGroups;
9720
+ $[24] = t6;
9721
+ $[25] = t7;
9722
+ $[26] = t8;
9728
9723
  } else {
9729
- t8 = $[27];
9724
+ t8 = $[26];
9730
9725
  }
9731
9726
  const t9 = Boolean(currentPropertyDialog);
9732
9727
  const t10 = Boolean(currentPropertyDialog?.propertyKey);
@@ -9734,21 +9729,21 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
9734
9729
  const t12 = !currentPropertyDialog ? false : !currentPropertyDialog?.propertyKey;
9735
9730
  const t13 = currentPropertyDialog?.collectionEditable ?? false;
9736
9731
  let t14;
9737
- if ($[28] !== currentPropertyDialog || $[29] !== getData || $[30] !== navigation) {
9732
+ if ($[27] !== currentPropertyDialog || $[28] !== getData || $[29] !== navigation) {
9738
9733
  t14 = getData && currentPropertyDialog?.editedCollectionId ? () => {
9739
9734
  console.debug("get data for property", currentPropertyDialog?.editedCollectionId);
9740
9735
  const resolvedPath = navigation.resolveIdsFrom(currentPropertyDialog.editedCollectionId);
9741
9736
  return getData(resolvedPath, []);
9742
9737
  } : void 0;
9743
- $[28] = currentPropertyDialog;
9744
- $[29] = getData;
9745
- $[30] = navigation;
9746
- $[31] = t14;
9738
+ $[27] = currentPropertyDialog;
9739
+ $[28] = getData;
9740
+ $[29] = navigation;
9741
+ $[30] = t14;
9747
9742
  } else {
9748
- t14 = $[31];
9743
+ t14 = $[30];
9749
9744
  }
9750
9745
  let t15;
9751
- if ($[32] !== collectionConfigController || $[33] !== currentPropertyDialog || $[34] !== snackbarController) {
9746
+ if ($[31] !== collectionConfigController || $[32] !== currentPropertyDialog || $[33] !== snackbarController) {
9752
9747
  t15 = (t162) => {
9753
9748
  const {
9754
9749
  id: id_0,
@@ -9777,15 +9772,15 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
9777
9772
  return false;
9778
9773
  });
9779
9774
  };
9780
- $[32] = collectionConfigController;
9781
- $[33] = currentPropertyDialog;
9782
- $[34] = snackbarController;
9783
- $[35] = t15;
9775
+ $[31] = collectionConfigController;
9776
+ $[32] = currentPropertyDialog;
9777
+ $[33] = snackbarController;
9778
+ $[34] = t15;
9784
9779
  } else {
9785
- t15 = $[35];
9780
+ t15 = $[34];
9786
9781
  }
9787
9782
  let t16;
9788
- if ($[36] !== collectionConfigController || $[37] !== currentPropertyDialog?.currentPropertiesOrder || $[38] !== currentPropertyDialog?.editedCollectionId || $[39] !== currentPropertyDialog?.namespace || $[40] !== currentPropertyDialog?.parentCollectionIds || $[41] !== currentPropertyDialog?.propertyKey || $[42] !== snackbarController) {
9783
+ if ($[35] !== collectionConfigController || $[36] !== currentPropertyDialog?.currentPropertiesOrder || $[37] !== currentPropertyDialog?.editedCollectionId || $[38] !== currentPropertyDialog?.namespace || $[39] !== currentPropertyDialog?.parentCollectionIds || $[40] !== currentPropertyDialog?.propertyKey || $[41] !== snackbarController) {
9789
9784
  t16 = () => {
9790
9785
  if (!currentPropertyDialog?.propertyKey) {
9791
9786
  return;
@@ -9808,21 +9803,21 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
9808
9803
  return false;
9809
9804
  });
9810
9805
  };
9811
- $[36] = collectionConfigController;
9812
- $[37] = currentPropertyDialog?.currentPropertiesOrder;
9813
- $[38] = currentPropertyDialog?.editedCollectionId;
9814
- $[39] = currentPropertyDialog?.namespace;
9815
- $[40] = currentPropertyDialog?.parentCollectionIds;
9816
- $[41] = currentPropertyDialog?.propertyKey;
9817
- $[42] = snackbarController;
9818
- $[43] = t16;
9806
+ $[35] = collectionConfigController;
9807
+ $[36] = currentPropertyDialog?.currentPropertiesOrder;
9808
+ $[37] = currentPropertyDialog?.editedCollectionId;
9809
+ $[38] = currentPropertyDialog?.namespace;
9810
+ $[39] = currentPropertyDialog?.parentCollectionIds;
9811
+ $[40] = currentPropertyDialog?.propertyKey;
9812
+ $[41] = snackbarController;
9813
+ $[42] = t16;
9819
9814
  } else {
9820
- t16 = $[43];
9815
+ t16 = $[42];
9821
9816
  }
9822
9817
  let t17;
9823
9818
  let t18;
9824
9819
  let t19;
9825
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
9820
+ if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
9826
9821
  t17 = () => {
9827
9822
  setCurrentPropertyDialog(void 0);
9828
9823
  };
@@ -9830,64 +9825,64 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
9830
9825
  setCurrentPropertyDialog(void 0);
9831
9826
  };
9832
9827
  t19 = {};
9833
- $[44] = t17;
9834
- $[45] = t18;
9835
- $[46] = t19;
9828
+ $[43] = t17;
9829
+ $[44] = t18;
9830
+ $[45] = t19;
9836
9831
  } else {
9837
- t17 = $[44];
9838
- t18 = $[45];
9839
- t19 = $[46];
9832
+ t17 = $[43];
9833
+ t18 = $[44];
9834
+ t19 = $[45];
9840
9835
  }
9841
9836
  let t20;
9842
- if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
9837
+ if ($[46] === Symbol.for("react.memo_cache_sentinel")) {
9843
9838
  t20 = [];
9844
- $[47] = t20;
9839
+ $[46] = t20;
9845
9840
  } else {
9846
- t20 = $[47];
9841
+ t20 = $[46];
9847
9842
  }
9848
9843
  const t21 = currentPropertyDialog?.property;
9849
9844
  const t22 = currentPropertyDialog?.propertyKey;
9850
9845
  let t23;
9851
- if ($[48] !== propertyConfigs || $[49] !== t10 || $[50] !== t11 || $[51] !== t12 || $[52] !== t13 || $[53] !== t14 || $[54] !== t15 || $[55] !== t16 || $[56] !== t21 || $[57] !== t22 || $[58] !== t9) {
9846
+ if ($[47] !== propertyConfigs || $[48] !== t10 || $[49] !== t11 || $[50] !== t12 || $[51] !== t13 || $[52] !== t14 || $[53] !== t15 || $[54] !== t16 || $[55] !== t21 || $[56] !== t22 || $[57] !== t9) {
9852
9847
  t23 = /* @__PURE__ */ jsx(PropertyFormDialog, { open: t9, includeIdAndName: true, existingProperty: t10, autoUpdateId: t11, autoOpenTypeSelect: t12, inArray: false, collectionEditable: t13, getData: t14, onPropertyChanged: t15, onPropertyChangedImmediate: false, onDelete: t16, onError: _temp2, onOkClicked: t17, onCancel: t18, initialErrors: t19, forceShowErrors: false, existingPropertyKeys: t20, allowDataInference: true, propertyConfigs, property: t21, propertyKey: t22 });
9853
- $[48] = propertyConfigs;
9854
- $[49] = t10;
9855
- $[50] = t11;
9856
- $[51] = t12;
9857
- $[52] = t13;
9858
- $[53] = t14;
9859
- $[54] = t15;
9860
- $[55] = t16;
9861
- $[56] = t21;
9862
- $[57] = t22;
9863
- $[58] = t9;
9864
- $[59] = t23;
9865
- } else {
9866
- t23 = $[59];
9848
+ $[47] = propertyConfigs;
9849
+ $[48] = t10;
9850
+ $[49] = t11;
9851
+ $[50] = t12;
9852
+ $[51] = t13;
9853
+ $[52] = t14;
9854
+ $[53] = t15;
9855
+ $[54] = t16;
9856
+ $[55] = t21;
9857
+ $[56] = t22;
9858
+ $[57] = t9;
9859
+ $[58] = t23;
9860
+ } else {
9861
+ t23 = $[58];
9867
9862
  }
9868
9863
  let t24;
9869
- if ($[60] !== children || $[61] !== t23 || $[62] !== t5 || $[63] !== t8) {
9864
+ if ($[59] !== children || $[60] !== t23 || $[61] !== t5 || $[62] !== t8) {
9870
9865
  t24 = /* @__PURE__ */ jsxs(CollectionEditorContext.Provider, { value: t5, children: [
9871
9866
  children,
9872
9867
  t8,
9873
9868
  t23
9874
9869
  ] });
9875
- $[60] = children;
9876
- $[61] = t23;
9877
- $[62] = t5;
9878
- $[63] = t8;
9879
- $[64] = t24;
9870
+ $[59] = children;
9871
+ $[60] = t23;
9872
+ $[61] = t5;
9873
+ $[62] = t8;
9874
+ $[63] = t24;
9880
9875
  } else {
9881
- t24 = $[64];
9876
+ t24 = $[63];
9882
9877
  }
9883
9878
  let t25;
9884
- if ($[65] !== collectionConfigController || $[66] !== t24) {
9879
+ if ($[64] !== collectionConfigController || $[65] !== t24) {
9885
9880
  t25 = /* @__PURE__ */ jsx(ConfigControllerContext.Provider, { value: collectionConfigController, children: t24 });
9886
- $[65] = collectionConfigController;
9887
- $[66] = t24;
9888
- $[67] = t25;
9881
+ $[64] = collectionConfigController;
9882
+ $[65] = t24;
9883
+ $[66] = t25;
9889
9884
  } else {
9890
- t25 = $[67];
9885
+ t25 = $[66];
9891
9886
  }
9892
9887
  return t25;
9893
9888
  }, equal);
@@ -10502,7 +10497,7 @@ function NewCollectionCard(t0) {
10502
10497
  return t8;
10503
10498
  }
10504
10499
  function useCollectionEditorPlugin(t0) {
10505
- const $ = c(16);
10500
+ const $ = c(15);
10506
10501
  const {
10507
10502
  collectionConfigController,
10508
10503
  configPermissions,
@@ -10512,11 +10507,10 @@ function useCollectionEditorPlugin(t0) {
10512
10507
  getUser,
10513
10508
  collectionInference,
10514
10509
  getData,
10515
- onAnalyticsEvent,
10516
- components
10510
+ onAnalyticsEvent
10517
10511
  } = t0;
10518
10512
  let t1;
10519
- if ($[0] !== collectionConfigController || $[1] !== collectionInference || $[2] !== components || $[3] !== configPermissions || $[4] !== extraView || $[5] !== getData || $[6] !== getPathSuggestions || $[7] !== getUser || $[8] !== onAnalyticsEvent || $[9] !== reservedGroups) {
10513
+ if ($[0] !== collectionConfigController || $[1] !== collectionInference || $[2] !== configPermissions || $[3] !== extraView || $[4] !== getData || $[5] !== getPathSuggestions || $[6] !== getUser || $[7] !== onAnalyticsEvent || $[8] !== reservedGroups) {
10520
10514
  t1 = {
10521
10515
  Component: ConfigControllerProvider,
10522
10516
  props: {
@@ -10528,27 +10522,25 @@ function useCollectionEditorPlugin(t0) {
10528
10522
  getPathSuggestions,
10529
10523
  getUser,
10530
10524
  getData,
10531
- onAnalyticsEvent,
10532
- components
10525
+ onAnalyticsEvent
10533
10526
  }
10534
10527
  };
10535
10528
  $[0] = collectionConfigController;
10536
10529
  $[1] = collectionInference;
10537
- $[2] = components;
10538
- $[3] = configPermissions;
10539
- $[4] = extraView;
10540
- $[5] = getData;
10541
- $[6] = getPathSuggestions;
10542
- $[7] = getUser;
10543
- $[8] = onAnalyticsEvent;
10544
- $[9] = reservedGroups;
10545
- $[10] = t1;
10530
+ $[2] = configPermissions;
10531
+ $[3] = extraView;
10532
+ $[4] = getData;
10533
+ $[5] = getPathSuggestions;
10534
+ $[6] = getUser;
10535
+ $[7] = onAnalyticsEvent;
10536
+ $[8] = reservedGroups;
10537
+ $[9] = t1;
10546
10538
  } else {
10547
- t1 = $[10];
10539
+ t1 = $[9];
10548
10540
  }
10549
10541
  let t2;
10550
10542
  let t3;
10551
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
10543
+ if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
10552
10544
  t2 = {
10553
10545
  additionalActions: /* @__PURE__ */ jsx(NewCollectionButton, {}),
10554
10546
  additionalChildrenStart: /* @__PURE__ */ jsx(IntroWidget, {}),
@@ -10561,14 +10553,14 @@ function useCollectionEditorPlugin(t0) {
10561
10553
  HeaderAction: CollectionViewHeaderAction,
10562
10554
  AddColumnComponent: PropertyAddColumnComponent
10563
10555
  };
10564
- $[11] = t2;
10565
- $[12] = t3;
10556
+ $[10] = t2;
10557
+ $[11] = t3;
10566
10558
  } else {
10567
- t2 = $[11];
10568
- t3 = $[12];
10559
+ t2 = $[10];
10560
+ t3 = $[11];
10569
10561
  }
10570
10562
  let t4;
10571
- if ($[13] !== collectionConfigController.loading || $[14] !== t1) {
10563
+ if ($[12] !== collectionConfigController.loading || $[13] !== t1) {
10572
10564
  t4 = {
10573
10565
  key: "collection_editor",
10574
10566
  loading: collectionConfigController.loading,
@@ -10576,11 +10568,11 @@ function useCollectionEditorPlugin(t0) {
10576
10568
  homePage: t2,
10577
10569
  collectionView: t3
10578
10570
  };
10579
- $[13] = collectionConfigController.loading;
10580
- $[14] = t1;
10581
- $[15] = t4;
10571
+ $[12] = collectionConfigController.loading;
10572
+ $[13] = t1;
10573
+ $[14] = t4;
10582
10574
  } else {
10583
- t4 = $[15];
10575
+ t4 = $[14];
10584
10576
  }
10585
10577
  return t4;
10586
10578
  }