@firecms/collection_editor 3.0.0 → 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.
package/dist/index.es.js CHANGED
@@ -41,7 +41,7 @@ function LayoutModeSwitch(t0) {
41
41
  }
42
42
  let t2;
43
43
  let t3;
44
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
45
45
  t2 = /* @__PURE__ */ jsx(Typography, { variant: "label", color: "secondary", className: "ml-3.5", children: "Document view" });
46
46
  t3 = cls("flex flex-row gap-4");
47
47
  $[2] = t2;
@@ -69,7 +69,7 @@ function LayoutModeSwitch(t0) {
69
69
  }
70
70
  let t7;
71
71
  let t8;
72
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
72
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
73
73
  t7 = /* @__PURE__ */ jsx(VerticalSplitIcon, {});
74
74
  t8 = /* @__PURE__ */ jsx(Typography, { variant: "label", children: "Side panel" });
75
75
  $[8] = t7;
@@ -109,7 +109,7 @@ function LayoutModeSwitch(t0) {
109
109
  }
110
110
  let t13;
111
111
  let t14;
112
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
112
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
113
113
  t13 = /* @__PURE__ */ jsx(SquareIcon, {});
114
114
  t14 = /* @__PURE__ */ jsx(Typography, { variant: "label", children: "Full screen" });
115
115
  $[17] = t13;
@@ -143,7 +143,7 @@ function LayoutModeSwitch(t0) {
143
143
  t16 = $[24];
144
144
  }
145
145
  let t17;
146
- if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
146
+ if ($[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
147
147
  t17 = /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", className: "ml-3.5", children: "Should documents be opened full screen or in an inline side dialog" });
148
148
  $[25] = t17;
149
149
  } else {
@@ -165,7 +165,7 @@ function LayoutModeSwitch(t0) {
165
165
  return t18;
166
166
  }
167
167
  function CollectionDetailsForm(t0) {
168
- const $ = c(202);
168
+ const $ = c(201);
169
169
  const {
170
170
  isNewCollection,
171
171
  reservedGroups,
@@ -250,7 +250,7 @@ function CollectionDetailsForm(t0) {
250
250
  const collectionIcon = t5;
251
251
  groups?.filter((group) => !reservedGroups?.includes(group));
252
252
  let t6;
253
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
253
+ if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
254
254
  t6 = {
255
255
  ref: groupRef
256
256
  };
@@ -298,7 +298,7 @@ function CollectionDetailsForm(t0) {
298
298
  t10 = $[17];
299
299
  }
300
300
  let t11;
301
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
301
+ if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
302
302
  t11 = () => setIconDialogOpen(true);
303
303
  $[18] = t11;
304
304
  } else {
@@ -393,201 +393,199 @@ function CollectionDetailsForm(t0) {
393
393
  t23 = $[41];
394
394
  }
395
395
  let t24;
396
- if ($[42] === Symbol.for("react.memo_cache_sentinel")) {
396
+ if ($[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
397
397
  t24 = cls("col-span-12 ");
398
398
  $[42] = t24;
399
399
  } else {
400
400
  t24 = $[42];
401
401
  }
402
- const t25 = !isNewCollection;
403
- const t26 = showErrors && Boolean(errors.path);
404
- let t27;
405
- if ($[43] !== t25 || $[44] !== t26) {
406
- t27 = /* @__PURE__ */ jsx(Field, { name: "path", as: DebouncedTextField, label: "Path", disabled: t25, required: true, error: t26 });
402
+ const t25 = showErrors && Boolean(errors.path);
403
+ let t26;
404
+ if ($[43] !== t25) {
405
+ t26 = /* @__PURE__ */ jsx(Field, { name: "path", as: DebouncedTextField, label: "Path", required: true, error: t25 });
407
406
  $[43] = t25;
408
407
  $[44] = t26;
409
- $[45] = t27;
410
408
  } else {
411
- t27 = $[45];
409
+ t26 = $[44];
412
410
  }
413
- const t28 = touched.path && Boolean(errors.path);
414
- const t29 = 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";
415
- let t30;
416
- if ($[46] !== t28 || $[47] !== t29) {
417
- t30 = /* @__PURE__ */ jsx(FieldCaption, { error: t28, children: t29 });
411
+ const t27 = touched.path && Boolean(errors.path);
412
+ const t28 = 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";
413
+ let t29;
414
+ if ($[45] !== t27 || $[46] !== t28) {
415
+ t29 = /* @__PURE__ */ jsx(FieldCaption, { error: t27, children: t28 });
416
+ $[45] = t27;
418
417
  $[46] = t28;
419
418
  $[47] = t29;
420
- $[48] = t30;
421
419
  } else {
422
- t30 = $[48];
420
+ t29 = $[47];
423
421
  }
424
- let t31;
425
- if ($[49] !== t27 || $[50] !== t30) {
426
- t31 = /* @__PURE__ */ jsxs("div", { className: t24, children: [
427
- t27,
428
- t30
422
+ let t30;
423
+ if ($[48] !== t26 || $[49] !== t29) {
424
+ t30 = /* @__PURE__ */ jsxs("div", { className: t24, children: [
425
+ t26,
426
+ t29
429
427
  ] });
430
- $[49] = t27;
428
+ $[48] = t26;
429
+ $[49] = t29;
431
430
  $[50] = t30;
432
- $[51] = t31;
433
431
  } else {
434
- t31 = $[51];
432
+ t30 = $[50];
435
433
  }
436
- const t32 = values.openEntityMode ?? "side_panel";
437
- let t33;
438
- if ($[52] !== setFieldValue) {
439
- t33 = (value) => setFieldValue("openEntityMode", value);
440
- $[52] = setFieldValue;
441
- $[53] = t33;
434
+ const t31 = values.openEntityMode ?? "side_panel";
435
+ let t32;
436
+ if ($[51] !== setFieldValue) {
437
+ t32 = (value) => setFieldValue("openEntityMode", value);
438
+ $[51] = setFieldValue;
439
+ $[52] = t32;
442
440
  } else {
443
- t33 = $[53];
441
+ t32 = $[52];
444
442
  }
445
- let t34;
446
- if ($[54] !== t32 || $[55] !== t33) {
447
- t34 = /* @__PURE__ */ jsx(LayoutModeSwitch, { className: "col-span-12", value: t32, onChange: t33 });
443
+ let t33;
444
+ if ($[53] !== t31 || $[54] !== t32) {
445
+ t33 = /* @__PURE__ */ jsx(LayoutModeSwitch, { className: "col-span-12", value: t31, onChange: t32 });
446
+ $[53] = t31;
448
447
  $[54] = t32;
449
448
  $[55] = t33;
450
- $[56] = t34;
451
449
  } else {
452
- t34 = $[56];
450
+ t33 = $[55];
453
451
  }
454
- const t35 = values.history === null || values.history === void 0 ? "Document history revisions enabled if enabled globally" : values.history ? "Document history revisions ENABLED" : "Document history revisions NOT enabled";
455
- let t36;
456
- if ($[57] !== setFieldValue) {
457
- t36 = (v) => setFieldValue("history", v);
458
- $[57] = setFieldValue;
459
- $[58] = t36;
452
+ const t34 = values.history === null || values.history === void 0 ? "Document history revisions enabled if enabled globally" : values.history ? "Document history revisions ENABLED" : "Document history revisions NOT enabled";
453
+ let t35;
454
+ if ($[56] !== setFieldValue) {
455
+ t35 = (v) => setFieldValue("history", v);
456
+ $[56] = setFieldValue;
457
+ $[57] = t35;
460
458
  } else {
461
- t36 = $[58];
459
+ t35 = $[57];
462
460
  }
463
- const t37 = values.history === void 0 ? null : values.history;
464
- let t38;
465
- if ($[59] !== t35 || $[60] !== t36 || $[61] !== t37) {
466
- t38 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", allowIndeterminate: true, label: t35, onValueChange: t36, value: t37 });
461
+ const t36 = values.history === void 0 ? null : values.history;
462
+ let t37;
463
+ if ($[58] !== t34 || $[59] !== t35 || $[60] !== t36) {
464
+ t37 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", allowIndeterminate: true, label: t34, onValueChange: t35, value: t36 });
465
+ $[58] = t34;
467
466
  $[59] = t35;
468
467
  $[60] = t36;
469
468
  $[61] = t37;
470
- $[62] = t38;
471
469
  } else {
472
- t38 = $[62];
470
+ t37 = $[61];
473
471
  }
474
- let t39;
475
- if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
476
- t39 = /* @__PURE__ */ jsxs(FieldCaption, { children: [
472
+ let t38;
473
+ if ($[62] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
474
+ t38 = /* @__PURE__ */ jsxs(FieldCaption, { children: [
477
475
  "When enabled, each document in this collection will have a history of changes. This is useful for auditing purposes. The data is stored in a subcollection of the document in your database, called ",
478
476
  /* @__PURE__ */ jsx("b", { children: "__history" }),
479
477
  "."
480
478
  ] });
481
- $[63] = t39;
479
+ $[62] = t38;
482
480
  } else {
483
- t39 = $[63];
481
+ t38 = $[62];
484
482
  }
485
- let t40;
486
- if ($[64] !== t38) {
487
- t40 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
488
- t38,
489
- t39
483
+ let t39;
484
+ if ($[63] !== t37) {
485
+ t39 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
486
+ t37,
487
+ t38
490
488
  ] });
491
- $[64] = t38;
492
- $[65] = t40;
489
+ $[63] = t37;
490
+ $[64] = t39;
493
491
  } else {
494
- t40 = $[65];
492
+ t39 = $[64];
495
493
  }
496
- let t41;
497
- if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
498
- t41 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
494
+ let t40;
495
+ if ($[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
496
+ t40 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
499
497
  /* @__PURE__ */ jsx(SettingsIcon, {}),
500
498
  /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "ml-2", children: "Advanced" })
501
499
  ] });
502
- $[66] = t41;
500
+ $[65] = t40;
503
501
  } else {
504
- t41 = $[66];
502
+ t40 = $[65];
505
503
  }
506
- const t42 = !isNewCollection;
507
- const t43 = showErrors && Boolean(errors.id);
508
- let t44;
509
- if ($[67] !== t42 || $[68] !== t43) {
510
- t44 = /* @__PURE__ */ jsx(Field, { name: "id", as: DebouncedTextField, disabled: t42, label: "Collection id", error: t43 });
504
+ const t41 = !isNewCollection;
505
+ const t42 = showErrors && Boolean(errors.id);
506
+ let t43;
507
+ if ($[66] !== t41 || $[67] !== t42) {
508
+ t43 = /* @__PURE__ */ jsx(Field, { name: "id", as: DebouncedTextField, disabled: t41, label: "Collection id", error: t42 });
509
+ $[66] = t41;
511
510
  $[67] = t42;
512
511
  $[68] = t43;
513
- $[69] = t44;
514
512
  } else {
515
- t44 = $[69];
513
+ t43 = $[68];
516
514
  }
517
- const t45 = touched.id && Boolean(errors.id);
518
- const t46 = touched.id && Boolean(errors.id) ? errors.id : "This id identifies this collection. Typically the same as the path.";
519
- let t47;
520
- if ($[70] !== t45 || $[71] !== t46) {
521
- t47 = /* @__PURE__ */ jsx(FieldCaption, { error: t45, children: t46 });
515
+ const t44 = touched.id && Boolean(errors.id);
516
+ const t45 = touched.id && Boolean(errors.id) ? errors.id : "This id identifies this collection. Typically the same as the path.";
517
+ let t46;
518
+ if ($[69] !== t44 || $[70] !== t45) {
519
+ t46 = /* @__PURE__ */ jsx(FieldCaption, { error: t44, children: t45 });
520
+ $[69] = t44;
522
521
  $[70] = t45;
523
522
  $[71] = t46;
524
- $[72] = t47;
525
523
  } else {
526
- t47 = $[72];
524
+ t46 = $[71];
527
525
  }
528
- let t48;
529
- if ($[73] !== t44 || $[74] !== t47) {
530
- t48 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
531
- t44,
532
- t47
526
+ let t47;
527
+ if ($[72] !== t43 || $[73] !== t46) {
528
+ t47 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
529
+ t43,
530
+ t46
533
531
  ] });
534
- $[73] = t44;
532
+ $[72] = t43;
533
+ $[73] = t46;
535
534
  $[74] = t47;
536
- $[75] = t48;
537
535
  } else {
538
- t48 = $[75];
536
+ t47 = $[74];
539
537
  }
540
- const t49 = showErrors && Boolean(errors.singularName);
541
- let t50;
542
- if ($[76] !== handleChange || $[77] !== setFieldTouched) {
543
- t50 = (e_0) => {
538
+ const t48 = showErrors && Boolean(errors.singularName);
539
+ let t49;
540
+ if ($[75] !== handleChange || $[76] !== setFieldTouched) {
541
+ t49 = (e_0) => {
544
542
  setFieldTouched("singularName", true);
545
543
  return handleChange(e_0);
546
544
  };
547
- $[76] = handleChange;
548
- $[77] = setFieldTouched;
549
- $[78] = t50;
545
+ $[75] = handleChange;
546
+ $[76] = setFieldTouched;
547
+ $[77] = t49;
550
548
  } else {
551
- t50 = $[78];
549
+ t49 = $[77];
552
550
  }
553
- const t51 = values.singularName ?? "";
554
- let t52;
555
- if ($[79] !== t49 || $[80] !== t50 || $[81] !== t51) {
556
- t52 = /* @__PURE__ */ jsx(TextField, { error: t49, name: "singularName", "aria-describedby": "singularName-helper", onChange: t50, value: t51, label: "Singular name" });
551
+ const t50 = values.singularName ?? "";
552
+ let t51;
553
+ if ($[78] !== t48 || $[79] !== t49 || $[80] !== t50) {
554
+ t51 = /* @__PURE__ */ jsx(TextField, { error: t48, name: "singularName", "aria-describedby": "singularName-helper", onChange: t49, value: t50, label: "Singular name" });
555
+ $[78] = t48;
557
556
  $[79] = t49;
558
557
  $[80] = t50;
559
558
  $[81] = t51;
560
- $[82] = t52;
561
559
  } else {
562
- t52 = $[82];
560
+ t51 = $[81];
563
561
  }
564
- const t53 = showErrors && Boolean(errors.singularName);
565
- const t54 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define a singular name for your entities";
566
- let t55;
567
- if ($[83] !== t53 || $[84] !== t54) {
568
- t55 = /* @__PURE__ */ jsx(FieldCaption, { error: t53, children: t54 });
562
+ const t52 = showErrors && Boolean(errors.singularName);
563
+ const t53 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define a singular name for your entities";
564
+ let t54;
565
+ if ($[82] !== t52 || $[83] !== t53) {
566
+ t54 = /* @__PURE__ */ jsx(FieldCaption, { error: t52, children: t53 });
567
+ $[82] = t52;
569
568
  $[83] = t53;
570
569
  $[84] = t54;
571
- $[85] = t55;
572
570
  } else {
573
- t55 = $[85];
571
+ t54 = $[84];
574
572
  }
575
- let t56;
576
- if ($[86] !== t52 || $[87] !== t55) {
577
- t56 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
578
- t52,
579
- t55
573
+ let t55;
574
+ if ($[85] !== t51 || $[86] !== t54) {
575
+ t55 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
576
+ t51,
577
+ t54
580
578
  ] });
581
- $[86] = t52;
579
+ $[85] = t51;
580
+ $[86] = t54;
582
581
  $[87] = t55;
583
- $[88] = t56;
584
582
  } else {
585
- t56 = $[88];
583
+ t55 = $[87];
586
584
  }
587
- const t57 = showErrors && Boolean(errors.sideDialogWidth);
588
- let t58;
589
- if ($[89] !== setFieldTouched || $[90] !== setFieldValue) {
590
- t58 = (e_1) => {
585
+ const t56 = showErrors && Boolean(errors.sideDialogWidth);
586
+ let t57;
587
+ if ($[88] !== setFieldTouched || $[89] !== setFieldValue) {
588
+ t57 = (e_1) => {
591
589
  setFieldTouched("sideDialogWidth", true);
592
590
  const value_0 = e_1.target.value;
593
591
  if (!value_0) {
@@ -598,440 +596,440 @@ function CollectionDetailsForm(t0) {
598
596
  }
599
597
  }
600
598
  };
601
- $[89] = setFieldTouched;
602
- $[90] = setFieldValue;
603
- $[91] = t58;
599
+ $[88] = setFieldTouched;
600
+ $[89] = setFieldValue;
601
+ $[90] = t57;
604
602
  } else {
605
- t58 = $[91];
603
+ t57 = $[90];
606
604
  }
607
- let t59;
608
- if ($[92] !== setFieldValue) {
609
- t59 = () => {
605
+ let t58;
606
+ if ($[91] !== setFieldValue) {
607
+ t58 = () => {
610
608
  setFieldValue("sideDialogWidth", null);
611
609
  };
612
- $[92] = setFieldValue;
613
- $[93] = t59;
610
+ $[91] = setFieldValue;
611
+ $[92] = t58;
614
612
  } else {
615
- t59 = $[93];
613
+ t58 = $[92];
616
614
  }
617
- const t60 = !values.sideDialogWidth;
618
- let t61;
619
- if ($[94] === Symbol.for("react.memo_cache_sentinel")) {
620
- t61 = /* @__PURE__ */ jsx(CloseIcon, { size: "small" });
621
- $[94] = t61;
615
+ const t59 = !values.sideDialogWidth;
616
+ let t60;
617
+ if ($[93] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
618
+ t60 = /* @__PURE__ */ jsx(CloseIcon, { size: "small" });
619
+ $[93] = t60;
622
620
  } else {
623
- t61 = $[94];
621
+ t60 = $[93];
624
622
  }
625
- let t62;
626
- if ($[95] !== t59 || $[96] !== t60) {
627
- t62 = /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: t59, disabled: t60, children: t61 });
623
+ let t61;
624
+ if ($[94] !== t58 || $[95] !== t59) {
625
+ t61 = /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: t58, disabled: t59, children: t60 });
626
+ $[94] = t58;
628
627
  $[95] = t59;
629
- $[96] = t60;
630
- $[97] = t62;
628
+ $[96] = t61;
631
629
  } else {
632
- t62 = $[97];
630
+ t61 = $[96];
633
631
  }
634
- const t63 = values.sideDialogWidth ?? "";
635
- let t64;
636
- if ($[98] !== t57 || $[99] !== t58 || $[100] !== t62 || $[101] !== t63) {
637
- t64 = /* @__PURE__ */ jsx(TextField, { error: t57, name: "sideDialogWidth", type: "number", "aria-describedby": "sideDialogWidth-helper", onChange: t58, endAdornment: t62, value: t63, label: "Side dialog width" });
632
+ const t62 = values.sideDialogWidth ?? "";
633
+ let t63;
634
+ if ($[97] !== t56 || $[98] !== t57 || $[99] !== t61 || $[100] !== t62) {
635
+ t63 = /* @__PURE__ */ jsx(TextField, { error: t56, name: "sideDialogWidth", type: "number", "aria-describedby": "sideDialogWidth-helper", onChange: t57, endAdornment: t61, value: t62, label: "Side dialog width" });
636
+ $[97] = t56;
638
637
  $[98] = t57;
639
- $[99] = t58;
638
+ $[99] = t61;
640
639
  $[100] = t62;
641
640
  $[101] = t63;
642
- $[102] = t64;
643
641
  } else {
644
- t64 = $[102];
642
+ t63 = $[101];
645
643
  }
646
- const t65 = showErrors && Boolean(errors.singularName);
647
- const t66 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define the width (in pixels) of entities side dialog. Default is 768px";
648
- let t67;
649
- if ($[103] !== t65 || $[104] !== t66) {
650
- t67 = /* @__PURE__ */ jsx(FieldCaption, { error: t65, children: t66 });
644
+ const t64 = showErrors && Boolean(errors.singularName);
645
+ const t65 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define the width (in pixels) of entities side dialog. Default is 768px";
646
+ let t66;
647
+ if ($[102] !== t64 || $[103] !== t65) {
648
+ t66 = /* @__PURE__ */ jsx(FieldCaption, { error: t64, children: t65 });
649
+ $[102] = t64;
651
650
  $[103] = t65;
652
651
  $[104] = t66;
653
- $[105] = t67;
654
652
  } else {
655
- t67 = $[105];
653
+ t66 = $[104];
656
654
  }
657
- let t68;
658
- if ($[106] !== t64 || $[107] !== t67) {
659
- t68 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
660
- t64,
661
- t67
655
+ let t67;
656
+ if ($[105] !== t63 || $[106] !== t66) {
657
+ t67 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
658
+ t63,
659
+ t66
662
660
  ] });
663
- $[106] = t64;
661
+ $[105] = t63;
662
+ $[106] = t66;
664
663
  $[107] = t67;
665
- $[108] = t68;
666
664
  } else {
667
- t68 = $[108];
665
+ t67 = $[107];
668
666
  }
669
- const t69 = showErrors && Boolean(errors.description);
670
- const t70 = values.description ?? "";
671
- let t71;
672
- if ($[109] !== handleChange || $[110] !== t69 || $[111] !== t70) {
673
- t71 = /* @__PURE__ */ jsx(TextField, { error: t69, name: "description", value: t70, onChange: handleChange, multiline: true, minRows: 2, "aria-describedby": "description-helper-text", label: "Description" });
674
- $[109] = handleChange;
667
+ const t68 = showErrors && Boolean(errors.description);
668
+ const t69 = values.description ?? "";
669
+ let t70;
670
+ if ($[108] !== handleChange || $[109] !== t68 || $[110] !== t69) {
671
+ t70 = /* @__PURE__ */ jsx(TextField, { error: t68, name: "description", value: t69, onChange: handleChange, multiline: true, minRows: 2, "aria-describedby": "description-helper-text", label: "Description" });
672
+ $[108] = handleChange;
673
+ $[109] = t68;
675
674
  $[110] = t69;
676
675
  $[111] = t70;
677
- $[112] = t71;
678
676
  } else {
679
- t71 = $[112];
677
+ t70 = $[111];
680
678
  }
681
- const t72 = showErrors && Boolean(errors.description);
682
- const t73 = showErrors && Boolean(errors.description) ? errors.description : "Description of the collection, you can use markdown";
683
- let t74;
684
- if ($[113] !== t72 || $[114] !== t73) {
685
- t74 = /* @__PURE__ */ jsx(FieldCaption, { error: t72, children: t73 });
679
+ const t71 = showErrors && Boolean(errors.description);
680
+ const t72 = showErrors && Boolean(errors.description) ? errors.description : "Description of the collection, you can use markdown";
681
+ let t73;
682
+ if ($[112] !== t71 || $[113] !== t72) {
683
+ t73 = /* @__PURE__ */ jsx(FieldCaption, { error: t71, children: t72 });
684
+ $[112] = t71;
686
685
  $[113] = t72;
687
686
  $[114] = t73;
688
- $[115] = t74;
689
687
  } else {
690
- t74 = $[115];
688
+ t73 = $[114];
691
689
  }
692
- let t75;
693
- if ($[116] !== t71 || $[117] !== t74) {
694
- t75 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
695
- t71,
696
- t74
690
+ let t74;
691
+ if ($[115] !== t70 || $[116] !== t73) {
692
+ t74 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
693
+ t70,
694
+ t73
697
695
  ] });
698
- $[116] = t71;
696
+ $[115] = t70;
697
+ $[116] = t73;
699
698
  $[117] = t74;
700
- $[118] = t75;
701
- } else {
702
- t75 = $[118];
703
- }
704
- const t76 = values.defaultSize ?? "";
705
- let t77;
706
- if ($[119] === Symbol.for("react.memo_cache_sentinel")) {
707
- t77 = ["xs", "s", "m", "l", "xl"].map(_temp2$8);
708
- $[119] = t77;
709
699
  } else {
710
- t77 = $[119];
700
+ t74 = $[117];
711
701
  }
712
- let t78;
713
- if ($[120] !== handleChange || $[121] !== t76) {
714
- 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$c, children: t77 }) });
715
- $[120] = handleChange;
716
- $[121] = t76;
717
- $[122] = t78;
702
+ const t75 = values.defaultSize ?? "";
703
+ let t76;
704
+ if ($[118] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
705
+ t76 = ["xs", "s", "m", "l", "xl"].map(_temp2$8);
706
+ $[118] = t76;
718
707
  } else {
719
- t78 = $[122];
708
+ t76 = $[118];
720
709
  }
721
- const t79 = values.includeJsonView === void 0 || values.includeJsonView ? "Include JSON view" : "Do not include JSON view";
722
- let t80;
723
- if ($[123] !== setFieldValue) {
724
- t80 = (v_0) => setFieldValue("includeJsonView", v_0);
725
- $[123] = setFieldValue;
726
- $[124] = t80;
727
- } else {
728
- t80 = $[124];
729
- }
730
- const t81 = values.includeJsonView === void 0 ? true : values.includeJsonView;
731
- let t82;
732
- if ($[125] !== t79 || $[126] !== t80 || $[127] !== t81) {
733
- t82 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: t79, onValueChange: t80, value: t81 });
710
+ let t77;
711
+ if ($[119] !== handleChange || $[120] !== t75) {
712
+ t77 = /* @__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: t75, renderValue: _temp$c, children: t76 }) });
713
+ $[119] = handleChange;
714
+ $[120] = t75;
715
+ $[121] = t77;
716
+ } else {
717
+ t77 = $[121];
718
+ }
719
+ const t78 = values.includeJsonView === void 0 || values.includeJsonView ? "Include JSON view" : "Do not include JSON view";
720
+ let t79;
721
+ if ($[122] !== setFieldValue) {
722
+ t79 = (v_0) => setFieldValue("includeJsonView", v_0);
723
+ $[122] = setFieldValue;
724
+ $[123] = t79;
725
+ } else {
726
+ t79 = $[123];
727
+ }
728
+ const t80 = values.includeJsonView === void 0 ? true : values.includeJsonView;
729
+ let t81;
730
+ if ($[124] !== t78 || $[125] !== t79 || $[126] !== t80) {
731
+ t81 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: t78, onValueChange: t79, value: t80 });
732
+ $[124] = t78;
734
733
  $[125] = t79;
735
734
  $[126] = t80;
736
735
  $[127] = t81;
736
+ } else {
737
+ t81 = $[127];
738
+ }
739
+ let t82;
740
+ if ($[128] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
741
+ t82 = /* @__PURE__ */ jsx(FieldCaption, { children: "Include the JSON representation of the document." });
737
742
  $[128] = t82;
738
743
  } else {
739
744
  t82 = $[128];
740
745
  }
741
746
  let t83;
742
- if ($[129] === Symbol.for("react.memo_cache_sentinel")) {
743
- t83 = /* @__PURE__ */ jsx(FieldCaption, { children: "Include the JSON representation of the document." });
744
- $[129] = t83;
745
- } else {
746
- t83 = $[129];
747
- }
748
- let t84;
749
- if ($[130] !== t82) {
750
- t84 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
751
- t82,
752
- t83
753
- ] });
754
- $[130] = t82;
755
- $[131] = t84;
756
- } else {
757
- t84 = $[131];
758
- }
759
- const t85 = values.inlineEditing === void 0 || values.inlineEditing ? "Data can be edited directly in the table view" : "Data can be edited only in the form view";
760
- let t86;
761
- if ($[132] !== setFieldValue) {
762
- t86 = (v_1) => setFieldValue("inlineEditing", v_1);
763
- $[132] = setFieldValue;
764
- $[133] = t86;
765
- } else {
766
- t86 = $[133];
767
- }
768
- const t87 = values.inlineEditing === void 0 ? true : values.inlineEditing;
769
- let t88;
770
- if ($[134] !== t85 || $[135] !== t86 || $[136] !== t87) {
771
- t88 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: t85, onValueChange: t86, value: t87 });
747
+ if ($[129] !== t81) {
748
+ t83 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
749
+ t81,
750
+ t82
751
+ ] });
752
+ $[129] = t81;
753
+ $[130] = t83;
754
+ } else {
755
+ t83 = $[130];
756
+ }
757
+ const t84 = values.inlineEditing === void 0 || values.inlineEditing ? "Data can be edited directly in the table view" : "Data can be edited only in the form view";
758
+ let t85;
759
+ if ($[131] !== setFieldValue) {
760
+ t85 = (v_1) => setFieldValue("inlineEditing", v_1);
761
+ $[131] = setFieldValue;
762
+ $[132] = t85;
763
+ } else {
764
+ t85 = $[132];
765
+ }
766
+ const t86 = values.inlineEditing === void 0 ? true : values.inlineEditing;
767
+ let t87;
768
+ if ($[133] !== t84 || $[134] !== t85 || $[135] !== t86) {
769
+ t87 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: t84, onValueChange: t85, value: t86 });
770
+ $[133] = t84;
772
771
  $[134] = t85;
773
772
  $[135] = t86;
774
773
  $[136] = t87;
774
+ } else {
775
+ t87 = $[136];
776
+ }
777
+ let t88;
778
+ if ($[137] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
779
+ t88 = /* @__PURE__ */ jsx(FieldCaption, { children: "Allow editing data directly in the table view, without opening the form view." });
775
780
  $[137] = t88;
776
781
  } else {
777
782
  t88 = $[137];
778
783
  }
779
784
  let t89;
780
- if ($[138] === Symbol.for("react.memo_cache_sentinel")) {
781
- t89 = /* @__PURE__ */ jsx(FieldCaption, { children: "Allow editing data directly in the table view, without opening the form view." });
782
- $[138] = t89;
783
- } else {
784
- t89 = $[138];
785
- }
786
- let t90;
787
- if ($[139] !== t88) {
788
- t90 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
789
- t88,
790
- t89
785
+ if ($[138] !== t87) {
786
+ t89 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
787
+ t87,
788
+ t88
791
789
  ] });
792
- $[139] = t88;
793
- $[140] = t90;
790
+ $[138] = t87;
791
+ $[139] = t89;
794
792
  } else {
795
- t90 = $[140];
793
+ t89 = $[139];
796
794
  }
797
- const t91 = customIdValue === "code_defined";
798
- let t92;
799
- if ($[141] !== setFieldValue) {
800
- t92 = (v_2) => {
795
+ const t90 = customIdValue === "code_defined";
796
+ let t91;
797
+ if ($[140] !== setFieldValue) {
798
+ t91 = (v_2) => {
801
799
  if (v_2 === "code_defined") {
802
800
  throw new Error("This should not happen");
803
801
  }
804
802
  setFieldValue("customId", v_2);
805
803
  };
806
- $[141] = setFieldValue;
807
- $[142] = t92;
804
+ $[140] = setFieldValue;
805
+ $[141] = t91;
808
806
  } else {
809
- t92 = $[142];
807
+ t91 = $[141];
810
808
  }
811
- const t93 = customIdValue ?? "";
809
+ const t92 = customIdValue ?? "";
810
+ let t93;
812
811
  let t94;
813
812
  let t95;
814
- let t96;
815
- if ($[143] === Symbol.for("react.memo_cache_sentinel")) {
816
- t94 = /* @__PURE__ */ jsx(SelectItem, { value: "false", children: "Document ID is generated automatically" });
817
- t95 = /* @__PURE__ */ jsx(SelectItem, { value: "true", children: "Users must define an ID" });
818
- t96 = /* @__PURE__ */ jsx(SelectItem, { value: "optional", children: "Users can define an ID, but it is not required" });
813
+ if ($[142] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
814
+ t93 = /* @__PURE__ */ jsx(SelectItem, { value: "false", children: "Document ID is generated automatically" });
815
+ t94 = /* @__PURE__ */ jsx(SelectItem, { value: "true", children: "Users must define an ID" });
816
+ t95 = /* @__PURE__ */ jsx(SelectItem, { value: "optional", children: "Users can define an ID, but it is not required" });
817
+ $[142] = t93;
819
818
  $[143] = t94;
820
819
  $[144] = t95;
821
- $[145] = t96;
822
820
  } else {
821
+ t93 = $[142];
823
822
  t94 = $[143];
824
823
  t95 = $[144];
825
- t96 = $[145];
826
824
  }
827
- let t97;
828
- if ($[146] !== t91 || $[147] !== t92 || $[148] !== t93) {
829
- t97 = /* @__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: t91, onValueChange: t92, value: t93, renderValue: _temp3$5, children: [
825
+ let t96;
826
+ if ($[145] !== t90 || $[146] !== t91 || $[147] !== t92) {
827
+ t96 = /* @__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: t90, onValueChange: t91, value: t92, renderValue: _temp3$5, children: [
828
+ t93,
830
829
  t94,
831
- t95,
832
- t96
830
+ t95
833
831
  ] }) });
832
+ $[145] = t90;
834
833
  $[146] = t91;
835
834
  $[147] = t92;
836
- $[148] = t93;
837
- $[149] = t97;
835
+ $[148] = t96;
838
836
  } else {
839
- t97 = $[149];
837
+ t96 = $[148];
840
838
  }
841
- let t98;
842
- if ($[150] !== setFieldValue) {
843
- t98 = (v_3) => setFieldValue("collectionGroup", v_3);
844
- $[150] = setFieldValue;
845
- $[151] = t98;
839
+ let t97;
840
+ if ($[149] !== setFieldValue) {
841
+ t97 = (v_3) => setFieldValue("collectionGroup", v_3);
842
+ $[149] = setFieldValue;
843
+ $[150] = t97;
844
+ } else {
845
+ t97 = $[150];
846
+ }
847
+ const t98 = values.collectionGroup ?? false;
848
+ let t99;
849
+ if ($[151] !== t97 || $[152] !== t98) {
850
+ t99 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: "Collection group", onValueChange: t97, value: t98 });
851
+ $[151] = t97;
852
+ $[152] = t98;
853
+ $[153] = t99;
846
854
  } else {
847
- t98 = $[151];
855
+ t99 = $[153];
848
856
  }
849
- const t99 = values.collectionGroup ?? false;
850
857
  let t100;
851
- if ($[152] !== t98 || $[153] !== t99) {
852
- t100 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: "Collection group", onValueChange: t98, value: t99 });
853
- $[152] = t98;
854
- $[153] = t99;
858
+ if ($[154] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
859
+ t100 = /* @__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." });
855
860
  $[154] = t100;
856
861
  } else {
857
862
  t100 = $[154];
858
863
  }
859
864
  let t101;
860
- if ($[155] === Symbol.for("react.memo_cache_sentinel")) {
861
- t101 = /* @__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." });
862
- $[155] = t101;
863
- } else {
864
- t101 = $[155];
865
- }
866
- let t102;
867
- if ($[156] !== t100) {
868
- t102 = /* @__PURE__ */ jsxs("div", { className: "col-span-12 mt-4", children: [
869
- t100,
870
- t101
865
+ if ($[155] !== t99) {
866
+ t101 = /* @__PURE__ */ jsxs("div", { className: "col-span-12 mt-4", children: [
867
+ t99,
868
+ t100
871
869
  ] });
872
- $[156] = t100;
873
- $[157] = t102;
870
+ $[155] = t99;
871
+ $[156] = t101;
874
872
  } else {
875
- t102 = $[157];
873
+ t101 = $[156];
876
874
  }
877
- let t103;
878
- if ($[158] !== setFieldValue) {
879
- t103 = (v_4) => setFieldValue("textSearchEnabled", v_4);
880
- $[158] = setFieldValue;
881
- $[159] = t103;
875
+ let t102;
876
+ if ($[157] !== setFieldValue) {
877
+ t102 = (v_4) => setFieldValue("textSearchEnabled", v_4);
878
+ $[157] = setFieldValue;
879
+ $[158] = t102;
880
+ } else {
881
+ t102 = $[158];
882
+ }
883
+ const t103 = values.textSearchEnabled ?? false;
884
+ let t104;
885
+ if ($[159] !== t102 || $[160] !== t103) {
886
+ t104 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: "Enable text search for this collection", onValueChange: t102, value: t103 });
887
+ $[159] = t102;
888
+ $[160] = t103;
889
+ $[161] = t104;
882
890
  } else {
883
- t103 = $[159];
891
+ t104 = $[161];
884
892
  }
885
- const t104 = values.textSearchEnabled ?? false;
886
893
  let t105;
887
- if ($[160] !== t103 || $[161] !== t104) {
888
- t105 = /* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: "Enable text search for this collection", onValueChange: t103, value: t104 });
889
- $[160] = t103;
890
- $[161] = t104;
894
+ if ($[162] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
895
+ t105 = /* @__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." });
891
896
  $[162] = t105;
892
897
  } else {
893
898
  t105 = $[162];
894
899
  }
895
900
  let t106;
896
- if ($[163] === Symbol.for("react.memo_cache_sentinel")) {
897
- t106 = /* @__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." });
898
- $[163] = t106;
901
+ if ($[163] !== t104) {
902
+ t106 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
903
+ t104,
904
+ t105
905
+ ] });
906
+ $[163] = t104;
907
+ $[164] = t106;
899
908
  } else {
900
- t106 = $[163];
909
+ t106 = $[164];
901
910
  }
902
911
  let t107;
903
- if ($[164] !== t105) {
904
- t107 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
905
- t105,
912
+ if ($[165] !== t101 || $[166] !== t106 || $[167] !== t47 || $[168] !== t55 || $[169] !== t67 || $[170] !== t74 || $[171] !== t77 || $[172] !== t83 || $[173] !== t89 || $[174] !== t96) {
913
+ t107 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-4 p-4", children: [
914
+ t47,
915
+ t55,
916
+ t67,
917
+ t74,
918
+ t77,
919
+ t83,
920
+ t89,
921
+ t96,
922
+ t101,
906
923
  t106
907
924
  ] });
908
- $[164] = t105;
909
- $[165] = t107;
925
+ $[165] = t101;
926
+ $[166] = t106;
927
+ $[167] = t47;
928
+ $[168] = t55;
929
+ $[169] = t67;
930
+ $[170] = t74;
931
+ $[171] = t77;
932
+ $[172] = t83;
933
+ $[173] = t89;
934
+ $[174] = t96;
935
+ $[175] = t107;
910
936
  } else {
911
- t107 = $[165];
937
+ t107 = $[175];
912
938
  }
913
939
  let t108;
914
- if ($[166] !== t102 || $[167] !== t107 || $[168] !== t48 || $[169] !== t56 || $[170] !== t68 || $[171] !== t75 || $[172] !== t78 || $[173] !== t84 || $[174] !== t90 || $[175] !== t97) {
915
- t108 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-4 p-4", children: [
916
- t48,
917
- t56,
918
- t68,
919
- t75,
920
- t78,
921
- t84,
922
- t90,
923
- t97,
924
- t102,
925
- t107
926
- ] });
927
- $[166] = t102;
928
- $[167] = t107;
929
- $[168] = t48;
930
- $[169] = t56;
931
- $[170] = t68;
932
- $[171] = t75;
933
- $[172] = t78;
934
- $[173] = t84;
935
- $[174] = t90;
936
- $[175] = t97;
937
- $[176] = t108;
938
- } else {
939
- t108 = $[176];
940
- }
941
- let t109;
942
- if ($[177] !== advancedPanelExpanded || $[178] !== t108) {
943
- t109 = /* @__PURE__ */ jsx(ExpandablePanel, { expanded: advancedPanelExpanded, onExpandedChange: setAdvancedPanelExpanded, title: t41, initiallyExpanded: false, children: t108 });
944
- $[177] = advancedPanelExpanded;
940
+ if ($[176] !== advancedPanelExpanded || $[177] !== t107) {
941
+ t108 = /* @__PURE__ */ jsx(ExpandablePanel, { expanded: advancedPanelExpanded, onExpandedChange: setAdvancedPanelExpanded, title: t40, initiallyExpanded: false, children: t107 });
942
+ $[176] = advancedPanelExpanded;
943
+ $[177] = t107;
945
944
  $[178] = t108;
946
- $[179] = t109;
947
945
  } else {
948
- t109 = $[179];
946
+ t108 = $[178];
949
947
  }
950
- let t110;
951
- if ($[180] !== children || $[181] !== t109) {
952
- t110 = /* @__PURE__ */ jsxs("div", { className: "col-span-12 mt-8", children: [
953
- t109,
948
+ let t109;
949
+ if ($[179] !== children || $[180] !== t108) {
950
+ t109 = /* @__PURE__ */ jsxs("div", { className: "col-span-12 mt-8", children: [
951
+ t108,
954
952
  children
955
953
  ] });
956
- $[180] = children;
954
+ $[179] = children;
955
+ $[180] = t108;
957
956
  $[181] = t109;
958
- $[182] = t110;
959
957
  } else {
960
- t110 = $[182];
958
+ t109 = $[181];
961
959
  }
962
- let t111;
963
- if ($[183] !== t110 || $[184] !== t23 || $[185] !== t31 || $[186] !== t34 || $[187] !== t40) {
964
- t111 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-4", children: [
960
+ let t110;
961
+ if ($[182] !== t109 || $[183] !== t23 || $[184] !== t30 || $[185] !== t33 || $[186] !== t39) {
962
+ t110 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-4", children: [
965
963
  t23,
966
- t31,
967
- t34,
968
- t40,
969
- t110
964
+ t30,
965
+ t33,
966
+ t39,
967
+ t109
970
968
  ] });
971
- $[183] = t110;
972
- $[184] = t23;
973
- $[185] = t31;
974
- $[186] = t34;
975
- $[187] = t40;
976
- $[188] = t111;
969
+ $[182] = t109;
970
+ $[183] = t23;
971
+ $[184] = t30;
972
+ $[185] = t33;
973
+ $[186] = t39;
974
+ $[187] = t110;
977
975
  } else {
978
- t111 = $[188];
976
+ t110 = $[187];
979
977
  }
980
- let t112;
981
- if ($[189] === Symbol.for("react.memo_cache_sentinel")) {
982
- t112 = /* @__PURE__ */ jsx("div", { style: {
978
+ let t111;
979
+ if ($[188] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
980
+ t111 = /* @__PURE__ */ jsx("div", { style: {
983
981
  height: "52px"
984
982
  } });
985
- $[189] = t112;
983
+ $[188] = t111;
986
984
  } else {
987
- t112 = $[189];
985
+ t111 = $[188];
988
986
  }
989
- const t113 = typeof values.icon === "string" ? values.icon : void 0;
990
- let t114;
991
- if ($[190] !== setFieldValue) {
992
- t114 = (icon) => {
987
+ const t112 = typeof values.icon === "string" ? values.icon : void 0;
988
+ let t113;
989
+ if ($[189] !== setFieldValue) {
990
+ t113 = (icon) => {
993
991
  setIconDialogOpen(false);
994
992
  setFieldValue("icon", icon);
995
993
  };
996
- $[190] = setFieldValue;
997
- $[191] = t114;
994
+ $[189] = setFieldValue;
995
+ $[190] = t113;
998
996
  } else {
999
- t114 = $[191];
997
+ t113 = $[190];
1000
998
  }
1001
- let t115;
1002
- if ($[192] !== t113 || $[193] !== t114) {
1003
- t115 = /* @__PURE__ */ jsx("div", { className: "p-4 overflow-auto min-h-[200px]", children: /* @__PURE__ */ jsx(SearchIconsView, { selectedIcon: t113, onIconSelected: t114 }) });
999
+ let t114;
1000
+ if ($[191] !== t112 || $[192] !== t113) {
1001
+ t114 = /* @__PURE__ */ jsx("div", { className: "p-4 overflow-auto min-h-[200px]", children: /* @__PURE__ */ jsx(SearchIconsView, { selectedIcon: t112, onIconSelected: t113 }) });
1002
+ $[191] = t112;
1004
1003
  $[192] = t113;
1005
1004
  $[193] = t114;
1006
- $[194] = t115;
1007
1005
  } else {
1008
- t115 = $[194];
1006
+ t114 = $[193];
1009
1007
  }
1010
- let t116;
1011
- if ($[195] !== iconDialogOpen || $[196] !== t115) {
1012
- t116 = /* @__PURE__ */ jsx(Dialog, { open: iconDialogOpen, onOpenChange: setIconDialogOpen, maxWidth: "xl", fullWidth: true, children: t115 });
1013
- $[195] = iconDialogOpen;
1008
+ let t115;
1009
+ if ($[194] !== iconDialogOpen || $[195] !== t114) {
1010
+ t115 = /* @__PURE__ */ jsx(Dialog, { open: iconDialogOpen, onOpenChange: setIconDialogOpen, maxWidth: "xl", fullWidth: true, children: t114 });
1011
+ $[194] = iconDialogOpen;
1012
+ $[195] = t114;
1014
1013
  $[196] = t115;
1015
- $[197] = t116;
1016
1014
  } else {
1017
- t116 = $[197];
1015
+ t115 = $[196];
1018
1016
  }
1019
- let t117;
1020
- if ($[198] !== t111 || $[199] !== t116 || $[200] !== t15) {
1021
- t117 = /* @__PURE__ */ jsx("div", { className: "overflow-auto my-auto", children: /* @__PURE__ */ jsxs(Container, { maxWidth: "4xl", className: "flex flex-col gap-4 p-8 m-auto", children: [
1017
+ let t116;
1018
+ if ($[197] !== t110 || $[198] !== t115 || $[199] !== t15) {
1019
+ t116 = /* @__PURE__ */ jsx("div", { className: "overflow-auto my-auto", children: /* @__PURE__ */ jsxs(Container, { maxWidth: "4xl", className: "flex flex-col gap-4 p-8 m-auto", children: [
1022
1020
  t15,
1021
+ t110,
1023
1022
  t111,
1024
- t112,
1025
- t116
1023
+ t115
1026
1024
  ] }) });
1027
- $[198] = t111;
1028
- $[199] = t116;
1029
- $[200] = t15;
1030
- $[201] = t117;
1025
+ $[197] = t110;
1026
+ $[198] = t115;
1027
+ $[199] = t15;
1028
+ $[200] = t116;
1031
1029
  } else {
1032
- t117 = $[201];
1030
+ t116 = $[200];
1033
1031
  }
1034
- return t117;
1032
+ return t116;
1035
1033
  }
1036
1034
  function _temp3$5(value_3) {
1037
1035
  if (value_3 === "code_defined") {
@@ -1226,7 +1224,7 @@ function EnumFormFields(t0) {
1226
1224
  const [editDialogIndex, setEditDialogIndex] = React__default.useState();
1227
1225
  const [inferring, setInferring] = React__default.useState(false);
1228
1226
  let t1;
1229
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1227
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1230
1228
  t1 = /* @__PURE__ */ new Set();
1231
1229
  $[0] = t1;
1232
1230
  } else {
@@ -1289,7 +1287,7 @@ function EnumFormFields(t0) {
1289
1287
  const inferValues = t3;
1290
1288
  let t4;
1291
1289
  let t5;
1292
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
1290
+ if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1293
1291
  t4 = /* @__PURE__ */ jsx(ListIcon, {});
1294
1292
  t5 = /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "ml-2 grow", children: "Values" });
1295
1293
  $[13] = t4;
@@ -1334,7 +1332,7 @@ function EnumFormFields(t0) {
1334
1332
  t8 = $[24];
1335
1333
  }
1336
1334
  let t9;
1337
- if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
1335
+ if ($[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1338
1336
  t9 = {
1339
1337
  id: "",
1340
1338
  label: ""
@@ -1357,7 +1355,7 @@ function EnumFormFields(t0) {
1357
1355
  }
1358
1356
  const t11 = editDialogIndex !== void 0;
1359
1357
  let t12;
1360
- if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
1358
+ if ($[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1361
1359
  t12 = () => setEditDialogIndex(void 0);
1362
1360
  $[32] = t12;
1363
1361
  } else {
@@ -1579,7 +1577,7 @@ function EnumEntryDialog(t0) {
1579
1577
  t2 = $[5];
1580
1578
  }
1581
1579
  let t3;
1582
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
1580
+ if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1583
1581
  t3 = /* @__PURE__ */ jsx(DialogTitle, { hidden: true, children: "Enum form dialog" });
1584
1582
  $[6] = t3;
1585
1583
  } else {
@@ -1990,7 +1988,7 @@ function ValidationPanel(t0) {
1990
1988
  children
1991
1989
  } = t0;
1992
1990
  let t1;
1993
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1991
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1994
1992
  t1 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
1995
1993
  /* @__PURE__ */ jsx(RuleIcon, {}),
1996
1994
  /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "ml-4", children: "Validation" })
@@ -2065,7 +2063,7 @@ const fileTypes = {
2065
2063
  "text/*": "Text files"
2066
2064
  };
2067
2065
  function StoragePropertyField(t0) {
2068
- const $ = c(180);
2066
+ const $ = c(189);
2069
2067
  const {
2070
2068
  multiple,
2071
2069
  existing,
@@ -2081,6 +2079,7 @@ function StoragePropertyField(t0) {
2081
2079
  const maxSize = `${baseStoragePath}.maxSize`;
2082
2080
  const storagePath = `${baseStoragePath}.storagePath`;
2083
2081
  const storeUrl = `${baseStoragePath}.storeUrl`;
2082
+ const includeBucketUrl = `${baseStoragePath}.includeBucketUrl`;
2084
2083
  const imageResize = `${baseStoragePath}.imageResize`;
2085
2084
  const imageResizeMaxWidth = `${imageResize}.maxWidth`;
2086
2085
  const imageResizeMaxHeight = `${imageResize}.maxHeight`;
@@ -2128,45 +2127,45 @@ function StoragePropertyField(t0) {
2128
2127
  let t7;
2129
2128
  let t8;
2130
2129
  let t9;
2131
- if ($[6] !== acceptedFiles || $[7] !== disabled || $[8] !== existing || $[9] !== fileName || $[10] !== fileNameValue || $[11] !== imageResizeFormat || $[12] !== imageResizeMaxHeight || $[13] !== imageResizeMaxWidth || $[14] !== imageResizeMode || $[15] !== imageResizeQuality || $[16] !== maxSize || $[17] !== setFieldValue || $[18] !== storagePath || $[19] !== storagePathValue || $[20] !== storeUrl || $[21] !== values) {
2130
+ if ($[6] !== acceptedFiles || $[7] !== disabled || $[8] !== existing || $[9] !== fileName || $[10] !== fileNameValue || $[11] !== imageResizeFormat || $[12] !== imageResizeMaxHeight || $[13] !== imageResizeMaxWidth || $[14] !== imageResizeMode || $[15] !== imageResizeQuality || $[16] !== includeBucketUrl || $[17] !== maxSize || $[18] !== setFieldValue || $[19] !== storagePath || $[20] !== storagePathValue || $[21] !== storeUrl || $[22] !== values) {
2132
2131
  const maxSizeValue = getIn(values, maxSize);
2133
2132
  const imageResizeMaxWidthValue = getIn(values, imageResizeMaxWidth);
2134
2133
  const imageResizeMaxHeightValue = getIn(values, imageResizeMaxHeight);
2135
2134
  let t222;
2136
- if ($[43] !== imageResizeMode || $[44] !== values) {
2135
+ if ($[44] !== imageResizeMode || $[45] !== values) {
2137
2136
  t222 = getIn(values, imageResizeMode) ?? "cover";
2138
- $[43] = imageResizeMode;
2139
- $[44] = values;
2140
- $[45] = t222;
2137
+ $[44] = imageResizeMode;
2138
+ $[45] = values;
2139
+ $[46] = t222;
2141
2140
  } else {
2142
- t222 = $[45];
2141
+ t222 = $[46];
2143
2142
  }
2144
2143
  const imageResizeModeValue = t222;
2145
2144
  let t232;
2146
- if ($[46] !== imageResizeFormat || $[47] !== values) {
2145
+ if ($[47] !== imageResizeFormat || $[48] !== values) {
2147
2146
  t232 = getIn(values, imageResizeFormat) ?? "original";
2148
- $[46] = imageResizeFormat;
2149
- $[47] = values;
2150
- $[48] = t232;
2147
+ $[47] = imageResizeFormat;
2148
+ $[48] = values;
2149
+ $[49] = t232;
2151
2150
  } else {
2152
- t232 = $[48];
2151
+ t232 = $[49];
2153
2152
  }
2154
2153
  const imageResizeFormatValue = t232;
2155
2154
  const imageResizeQualityValue = getIn(values, imageResizeQuality);
2156
2155
  let t242;
2157
- if ($[49] !== acceptedFiles || $[50] !== values) {
2156
+ if ($[50] !== acceptedFiles || $[51] !== values) {
2158
2157
  t242 = getIn(values, acceptedFiles);
2159
- $[49] = acceptedFiles;
2160
- $[50] = values;
2161
- $[51] = t242;
2158
+ $[50] = acceptedFiles;
2159
+ $[51] = values;
2160
+ $[52] = t242;
2162
2161
  } else {
2163
- t242 = $[51];
2162
+ t242 = $[52];
2164
2163
  }
2165
2164
  const storedValue = t242;
2166
2165
  const fileTypesValue = Array.isArray(storedValue) ? storedValue : void 0;
2167
2166
  const allFileTypesSelected = !fileTypesValue || fileTypesValue.length === 0;
2168
2167
  let t252;
2169
- if ($[52] !== acceptedFiles || $[53] !== setFieldValue) {
2168
+ if ($[53] !== acceptedFiles || $[54] !== setFieldValue) {
2170
2169
  t252 = (value) => {
2171
2170
  if (!value) {
2172
2171
  setFieldValue(acceptedFiles, void 0);
@@ -2174,38 +2173,38 @@ function StoragePropertyField(t0) {
2174
2173
  setFieldValue(acceptedFiles, value);
2175
2174
  }
2176
2175
  };
2177
- $[52] = acceptedFiles;
2178
- $[53] = setFieldValue;
2179
- $[54] = t252;
2176
+ $[53] = acceptedFiles;
2177
+ $[54] = setFieldValue;
2178
+ $[55] = t252;
2180
2179
  } else {
2181
- t252 = $[54];
2180
+ t252 = $[55];
2182
2181
  }
2183
2182
  const handleTypesChange = t252;
2184
2183
  const hasFilenameCallback = typeof fileNameValue === "function";
2185
2184
  const hasStoragePathCallback = typeof storagePathValue === "function";
2186
2185
  t21 = "col-span-12";
2187
2186
  T1 = ExpandablePanel;
2188
- if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
2187
+ if ($[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2189
2188
  t20 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
2190
2189
  /* @__PURE__ */ jsx(CloudUploadIcon, {}),
2191
2190
  /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "ml-4", children: "File upload config" })
2192
2191
  ] });
2193
- $[55] = t20;
2192
+ $[56] = t20;
2194
2193
  } else {
2195
- t20 = $[55];
2194
+ t20 = $[56];
2196
2195
  }
2197
2196
  t10 = "grid grid-cols-12 gap-2 p-4";
2198
2197
  let t262;
2199
- if ($[56] !== fileTypesValue) {
2198
+ if ($[57] !== fileTypesValue) {
2200
2199
  t262 = fileTypesValue ?? [];
2201
- $[56] = fileTypesValue;
2202
- $[57] = t262;
2200
+ $[57] = fileTypesValue;
2201
+ $[58] = t262;
2203
2202
  } else {
2204
- t262 = $[57];
2203
+ t262 = $[58];
2205
2204
  }
2206
2205
  const t272 = allFileTypesSelected ? void 0 : "Allowed file types";
2207
2206
  let t282;
2208
- if ($[58] !== acceptedFiles || $[59] !== setFieldValue) {
2207
+ if ($[59] !== acceptedFiles || $[60] !== setFieldValue) {
2209
2208
  t282 = Object.entries(fileTypes).map((t293) => {
2210
2209
  const [value_0, label] = t293;
2211
2210
  return /* @__PURE__ */ jsxs(MultiSelectItem, { value: value_0, className: "flex items-center gap-2", children: [
@@ -2217,49 +2216,49 @@ function StoragePropertyField(t0) {
2217
2216
  }, children: "Only" })
2218
2217
  ] }, value_0);
2219
2218
  });
2220
- $[58] = acceptedFiles;
2221
- $[59] = setFieldValue;
2222
- $[60] = t282;
2219
+ $[59] = acceptedFiles;
2220
+ $[60] = setFieldValue;
2221
+ $[61] = t282;
2223
2222
  } else {
2224
- t282 = $[60];
2223
+ t282 = $[61];
2225
2224
  }
2226
- if ($[61] !== acceptedFiles || $[62] !== disabled || $[63] !== handleTypesChange || $[64] !== t262 || $[65] !== t272 || $[66] !== t282) {
2225
+ if ($[62] !== acceptedFiles || $[63] !== disabled || $[64] !== handleTypesChange || $[65] !== t262 || $[66] !== t272 || $[67] !== t282) {
2227
2226
  t11 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(MultiSelect, { className: "w-full", placeholder: "All file types allowed", disabled, name: acceptedFiles, value: t262, onValueChange: handleTypesChange, label: t272, renderValues: _temp3$4, children: t282 }) });
2228
- $[61] = acceptedFiles;
2229
- $[62] = disabled;
2230
- $[63] = handleTypesChange;
2231
- $[64] = t262;
2232
- $[65] = t272;
2233
- $[66] = t282;
2234
- $[67] = t11;
2227
+ $[62] = acceptedFiles;
2228
+ $[63] = disabled;
2229
+ $[64] = handleTypesChange;
2230
+ $[65] = t262;
2231
+ $[66] = t272;
2232
+ $[67] = t282;
2233
+ $[68] = t11;
2235
2234
  } else {
2236
- t11 = $[67];
2235
+ t11 = $[68];
2237
2236
  }
2238
2237
  const t292 = hasFilenameCallback || disabled;
2239
2238
  const t302 = hasFilenameCallback ? "-" : fileNameValue;
2240
- if ($[68] !== fileName || $[69] !== t292 || $[70] !== t302) {
2239
+ if ($[69] !== fileName || $[70] !== t292 || $[71] !== t302) {
2241
2240
  t12 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(Field, { name: fileName, as: DebouncedTextField, label: "File name", size: "small", disabled: t292, value: t302 }) });
2242
- $[68] = fileName;
2243
- $[69] = t292;
2244
- $[70] = t302;
2245
- $[71] = t12;
2241
+ $[69] = fileName;
2242
+ $[70] = t292;
2243
+ $[71] = t302;
2244
+ $[72] = t12;
2246
2245
  } else {
2247
- t12 = $[71];
2246
+ t12 = $[72];
2248
2247
  }
2249
2248
  const t312 = hasStoragePathCallback || disabled;
2250
2249
  const t322 = hasStoragePathCallback ? "-" : storagePathValue;
2251
2250
  let t33;
2252
- if ($[72] !== storagePath || $[73] !== t312 || $[74] !== t322) {
2251
+ if ($[73] !== storagePath || $[74] !== t312 || $[75] !== t322) {
2253
2252
  t33 = /* @__PURE__ */ jsx(Field, { name: storagePath, as: DebouncedTextField, label: "Storage path", disabled: t312, size: "small", value: t322 });
2254
- $[72] = storagePath;
2255
- $[73] = t312;
2256
- $[74] = t322;
2257
- $[75] = t33;
2253
+ $[73] = storagePath;
2254
+ $[74] = t312;
2255
+ $[75] = t322;
2256
+ $[76] = t33;
2258
2257
  } else {
2259
- t33 = $[75];
2258
+ t33 = $[76];
2260
2259
  }
2261
2260
  let t34;
2262
- if ($[76] === Symbol.for("react.memo_cache_sentinel")) {
2261
+ if ($[77] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2263
2262
  t34 = /* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: [
2264
2263
  /* @__PURE__ */ jsx("p", { children: "You can use the following placeholders in the file name and storage path values:" }),
2265
2264
  /* @__PURE__ */ jsxs("ul", { children: [
@@ -2272,58 +2271,96 @@ function StoragePropertyField(t0) {
2272
2271
  /* @__PURE__ */ jsx("li", { children: "{rand} - Random value used to avoid name collisions" })
2273
2272
  ] })
2274
2273
  ] });
2275
- $[76] = t34;
2274
+ $[77] = t34;
2276
2275
  } else {
2277
- t34 = $[76];
2276
+ t34 = $[77];
2278
2277
  }
2279
2278
  let t35;
2280
- if ($[77] !== disabled || $[78] !== existing) {
2279
+ if ($[78] !== disabled || $[79] !== existing) {
2281
2280
  t35 = (t362) => {
2282
2281
  const {
2283
2282
  field,
2284
2283
  form
2285
2284
  } = t362;
2286
- return /* @__PURE__ */ jsx(SwitchControl, { label: "Save URL instead of storage path", disabled: existing || disabled, form, field });
2285
+ return /* @__PURE__ */ jsx(SwitchControl, { label: "Include bucket URL (gs://...) in saved value", disabled: existing || disabled, form, field });
2287
2286
  };
2288
- $[77] = disabled;
2289
- $[78] = existing;
2290
- $[79] = t35;
2287
+ $[78] = disabled;
2288
+ $[79] = existing;
2289
+ $[80] = t35;
2291
2290
  } else {
2292
- t35 = $[79];
2291
+ t35 = $[80];
2293
2292
  }
2294
2293
  let t36;
2295
- if ($[80] !== storeUrl || $[81] !== t35) {
2296
- t36 = /* @__PURE__ */ jsx(Field, { name: storeUrl, type: "checkbox", children: t35 });
2297
- $[80] = storeUrl;
2298
- $[81] = t35;
2299
- $[82] = t36;
2294
+ if ($[81] !== includeBucketUrl || $[82] !== t35) {
2295
+ t36 = /* @__PURE__ */ jsx(Field, { name: includeBucketUrl, type: "checkbox", children: t35 });
2296
+ $[81] = includeBucketUrl;
2297
+ $[82] = t35;
2298
+ $[83] = t36;
2300
2299
  } else {
2301
- t36 = $[82];
2300
+ t36 = $[83];
2302
2301
  }
2303
2302
  let t37;
2304
- if ($[83] === Symbol.for("react.memo_cache_sentinel")) {
2305
- t37 = /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: "Turn this setting on, if you prefer to save the download URL of the uploaded file instead of the storage path. You can only change this prop upon creation." });
2306
- $[83] = t37;
2303
+ if ($[84] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2304
+ t37 = /* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: [
2305
+ "Turn this setting on if you want to save a fully-qualified storage URL (e.g. ",
2306
+ /* @__PURE__ */ jsx("code", { children: "gs://my-bucket/path/to/file" }),
2307
+ ") instead of just the storage path. You can only change this prop upon creation."
2308
+ ] });
2309
+ $[84] = t37;
2307
2310
  } else {
2308
- t37 = $[83];
2311
+ t37 = $[84];
2309
2312
  }
2310
- if ($[84] !== t33 || $[85] !== t36) {
2313
+ let t38;
2314
+ if ($[85] !== disabled || $[86] !== existing) {
2315
+ t38 = (t392) => {
2316
+ const {
2317
+ field: field_0,
2318
+ form: form_0
2319
+ } = t392;
2320
+ return /* @__PURE__ */ jsx(SwitchControl, { label: "Save URL instead of storage path", disabled: existing || disabled, form: form_0, field: field_0 });
2321
+ };
2322
+ $[85] = disabled;
2323
+ $[86] = existing;
2324
+ $[87] = t38;
2325
+ } else {
2326
+ t38 = $[87];
2327
+ }
2328
+ let t39;
2329
+ if ($[88] !== storeUrl || $[89] !== t38) {
2330
+ t39 = /* @__PURE__ */ jsx(Field, { name: storeUrl, type: "checkbox", children: t38 });
2331
+ $[88] = storeUrl;
2332
+ $[89] = t38;
2333
+ $[90] = t39;
2334
+ } else {
2335
+ t39 = $[90];
2336
+ }
2337
+ let t40;
2338
+ if ($[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2339
+ t40 = /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: "Turn this setting on, if you prefer to save the download URL of the uploaded file instead of the storage path. You can only change this prop upon creation." });
2340
+ $[91] = t40;
2341
+ } else {
2342
+ t40 = $[91];
2343
+ }
2344
+ if ($[92] !== t33 || $[93] !== t36 || $[94] !== t39) {
2311
2345
  t13 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
2312
2346
  t33,
2313
2347
  t34,
2314
2348
  t36,
2315
- t37
2349
+ t37,
2350
+ t39,
2351
+ t40
2316
2352
  ] });
2317
- $[84] = t33;
2318
- $[85] = t36;
2319
- $[86] = t13;
2353
+ $[92] = t33;
2354
+ $[93] = t36;
2355
+ $[94] = t39;
2356
+ $[95] = t13;
2320
2357
  } else {
2321
- t13 = $[86];
2358
+ t13 = $[95];
2322
2359
  }
2323
- const t38 = maxSizeValue !== void 0 && maxSizeValue !== null ? maxSizeValue.toString() : "";
2324
- let t39;
2325
- if ($[87] !== maxSize || $[88] !== setFieldValue) {
2326
- t39 = (e_0) => {
2360
+ const t41 = maxSizeValue !== void 0 && maxSizeValue !== null ? maxSizeValue.toString() : "";
2361
+ let t42;
2362
+ if ($[96] !== maxSize || $[97] !== setFieldValue) {
2363
+ t42 = (e_0) => {
2327
2364
  const value_1 = e_0.target.value;
2328
2365
  if (value_1 === "") {
2329
2366
  setFieldValue(maxSize, void 0);
@@ -2331,34 +2368,34 @@ function StoragePropertyField(t0) {
2331
2368
  setFieldValue(maxSize, parseInt(value_1));
2332
2369
  }
2333
2370
  };
2334
- $[87] = maxSize;
2335
- $[88] = setFieldValue;
2336
- $[89] = t39;
2371
+ $[96] = maxSize;
2372
+ $[97] = setFieldValue;
2373
+ $[98] = t42;
2337
2374
  } else {
2338
- t39 = $[89];
2375
+ t42 = $[98];
2339
2376
  }
2340
- if ($[90] !== maxSize || $[91] !== t38 || $[92] !== t39) {
2341
- t14 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(DebouncedTextField, { name: maxSize, type: "number", label: "Max size (in bytes)", size: "small", value: t38, onChange: t39 }) });
2342
- $[90] = maxSize;
2343
- $[91] = t38;
2344
- $[92] = t39;
2345
- $[93] = t14;
2377
+ if ($[99] !== maxSize || $[100] !== t41 || $[101] !== t42) {
2378
+ t14 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(DebouncedTextField, { name: maxSize, type: "number", label: "Max size (in bytes)", size: "small", value: t41, onChange: t42 }) });
2379
+ $[99] = maxSize;
2380
+ $[100] = t41;
2381
+ $[101] = t42;
2382
+ $[102] = t14;
2346
2383
  } else {
2347
- t14 = $[93];
2384
+ t14 = $[102];
2348
2385
  }
2349
- if ($[94] === Symbol.for("react.memo_cache_sentinel")) {
2386
+ if ($[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2350
2387
  t15 = /* @__PURE__ */ jsxs("div", { className: "col-span-12 mt-4", children: [
2351
2388
  /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", color: "secondary", className: "mb-2 block", children: "Image Resize Configuration" }),
2352
2389
  /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "mb-2 block text-xs", children: "Automatically resize and optimize images before upload (JPEG, PNG, WebP only)" })
2353
2390
  ] });
2354
- $[94] = t15;
2391
+ $[103] = t15;
2355
2392
  } else {
2356
- t15 = $[94];
2393
+ t15 = $[103];
2357
2394
  }
2358
- const t40 = imageResizeMaxWidthValue !== void 0 && imageResizeMaxWidthValue !== null ? imageResizeMaxWidthValue.toString() : "";
2359
- let t41;
2360
- if ($[95] !== imageResizeMaxWidth || $[96] !== setFieldValue) {
2361
- t41 = (e_1) => {
2395
+ const t43 = imageResizeMaxWidthValue !== void 0 && imageResizeMaxWidthValue !== null ? imageResizeMaxWidthValue.toString() : "";
2396
+ let t44;
2397
+ if ($[104] !== imageResizeMaxWidth || $[105] !== setFieldValue) {
2398
+ t44 = (e_1) => {
2362
2399
  const value_2 = e_1.target.value;
2363
2400
  if (value_2 === "") {
2364
2401
  setFieldValue(imageResizeMaxWidth, void 0);
@@ -2366,26 +2403,26 @@ function StoragePropertyField(t0) {
2366
2403
  setFieldValue(imageResizeMaxWidth, parseInt(value_2));
2367
2404
  }
2368
2405
  };
2369
- $[95] = imageResizeMaxWidth;
2370
- $[96] = setFieldValue;
2371
- $[97] = t41;
2406
+ $[104] = imageResizeMaxWidth;
2407
+ $[105] = setFieldValue;
2408
+ $[106] = t44;
2372
2409
  } else {
2373
- t41 = $[97];
2410
+ t44 = $[106];
2374
2411
  }
2375
- if ($[98] !== disabled || $[99] !== imageResizeMaxWidth || $[100] !== t40 || $[101] !== t41) {
2376
- t16 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { name: imageResizeMaxWidth, type: "number", label: "Max width (px)", size: "small", disabled, value: t40, onChange: t41 }) });
2377
- $[98] = disabled;
2378
- $[99] = imageResizeMaxWidth;
2379
- $[100] = t40;
2380
- $[101] = t41;
2381
- $[102] = t16;
2412
+ if ($[107] !== disabled || $[108] !== imageResizeMaxWidth || $[109] !== t43 || $[110] !== t44) {
2413
+ t16 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { name: imageResizeMaxWidth, type: "number", label: "Max width (px)", size: "small", disabled, value: t43, onChange: t44 }) });
2414
+ $[107] = disabled;
2415
+ $[108] = imageResizeMaxWidth;
2416
+ $[109] = t43;
2417
+ $[110] = t44;
2418
+ $[111] = t16;
2382
2419
  } else {
2383
- t16 = $[102];
2420
+ t16 = $[111];
2384
2421
  }
2385
- const t42 = imageResizeMaxHeightValue !== void 0 && imageResizeMaxHeightValue !== null ? imageResizeMaxHeightValue.toString() : "";
2386
- let t43;
2387
- if ($[103] !== imageResizeMaxHeight || $[104] !== setFieldValue) {
2388
- t43 = (e_2) => {
2422
+ const t45 = imageResizeMaxHeightValue !== void 0 && imageResizeMaxHeightValue !== null ? imageResizeMaxHeightValue.toString() : "";
2423
+ let t46;
2424
+ if ($[112] !== imageResizeMaxHeight || $[113] !== setFieldValue) {
2425
+ t46 = (e_2) => {
2389
2426
  const value_3 = e_2.target.value;
2390
2427
  if (value_3 === "") {
2391
2428
  setFieldValue(imageResizeMaxHeight, void 0);
@@ -2393,99 +2430,99 @@ function StoragePropertyField(t0) {
2393
2430
  setFieldValue(imageResizeMaxHeight, parseInt(value_3));
2394
2431
  }
2395
2432
  };
2396
- $[103] = imageResizeMaxHeight;
2397
- $[104] = setFieldValue;
2398
- $[105] = t43;
2433
+ $[112] = imageResizeMaxHeight;
2434
+ $[113] = setFieldValue;
2435
+ $[114] = t46;
2399
2436
  } else {
2400
- t43 = $[105];
2437
+ t46 = $[114];
2401
2438
  }
2402
- if ($[106] !== disabled || $[107] !== imageResizeMaxHeight || $[108] !== t42 || $[109] !== t43) {
2403
- t17 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { name: imageResizeMaxHeight, type: "number", label: "Max height (px)", size: "small", disabled, value: t42, onChange: t43 }) });
2404
- $[106] = disabled;
2405
- $[107] = imageResizeMaxHeight;
2406
- $[108] = t42;
2407
- $[109] = t43;
2408
- $[110] = t17;
2439
+ if ($[115] !== disabled || $[116] !== imageResizeMaxHeight || $[117] !== t45 || $[118] !== t46) {
2440
+ t17 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { name: imageResizeMaxHeight, type: "number", label: "Max height (px)", size: "small", disabled, value: t45, onChange: t46 }) });
2441
+ $[115] = disabled;
2442
+ $[116] = imageResizeMaxHeight;
2443
+ $[117] = t45;
2444
+ $[118] = t46;
2445
+ $[119] = t17;
2409
2446
  } else {
2410
- t17 = $[110];
2447
+ t17 = $[119];
2411
2448
  }
2412
- const t44 = imageResizeModeValue || "cover";
2413
- let t45;
2414
- if ($[111] !== imageResizeMode || $[112] !== setFieldValue) {
2415
- t45 = (value_4) => setFieldValue(imageResizeMode, value_4 || "cover");
2416
- $[111] = imageResizeMode;
2417
- $[112] = setFieldValue;
2418
- $[113] = t45;
2449
+ const t47 = imageResizeModeValue || "cover";
2450
+ let t48;
2451
+ if ($[120] !== imageResizeMode || $[121] !== setFieldValue) {
2452
+ t48 = (value_4) => setFieldValue(imageResizeMode, value_4 || "cover");
2453
+ $[120] = imageResizeMode;
2454
+ $[121] = setFieldValue;
2455
+ $[122] = t48;
2419
2456
  } else {
2420
- t45 = $[113];
2457
+ t48 = $[122];
2421
2458
  }
2422
- let t46;
2423
- let t47;
2424
- if ($[114] === Symbol.for("react.memo_cache_sentinel")) {
2425
- t46 = /* @__PURE__ */ jsx(SelectItem, { value: "contain", children: "Contain (fit within bounds)" });
2426
- t47 = /* @__PURE__ */ jsx(SelectItem, { value: "cover", children: "Cover (fill bounds, may crop)" });
2427
- $[114] = t46;
2428
- $[115] = t47;
2459
+ let t49;
2460
+ let t50;
2461
+ if ($[123] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2462
+ t49 = /* @__PURE__ */ jsx(SelectItem, { value: "contain", children: "Contain (fit within bounds)" });
2463
+ t50 = /* @__PURE__ */ jsx(SelectItem, { value: "cover", children: "Cover (fill bounds, may crop)" });
2464
+ $[123] = t49;
2465
+ $[124] = t50;
2429
2466
  } else {
2430
- t46 = $[114];
2431
- t47 = $[115];
2467
+ t49 = $[123];
2468
+ t50 = $[124];
2432
2469
  }
2433
- if ($[116] !== disabled || $[117] !== imageResizeMode || $[118] !== t44 || $[119] !== t45) {
2434
- t18 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxs(Select, { disabled, name: imageResizeMode, fullWidth: true, size: "medium", value: t44, onValueChange: t45, label: "Resize mode", renderValue: _temp4$2, children: [
2435
- t46,
2436
- t47
2470
+ if ($[125] !== disabled || $[126] !== imageResizeMode || $[127] !== t47 || $[128] !== t48) {
2471
+ t18 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxs(Select, { disabled, name: imageResizeMode, fullWidth: true, size: "medium", value: t47, onValueChange: t48, label: "Resize mode", renderValue: _temp4$2, children: [
2472
+ t49,
2473
+ t50
2437
2474
  ] }) });
2438
- $[116] = disabled;
2439
- $[117] = imageResizeMode;
2440
- $[118] = t44;
2441
- $[119] = t45;
2442
- $[120] = t18;
2475
+ $[125] = disabled;
2476
+ $[126] = imageResizeMode;
2477
+ $[127] = t47;
2478
+ $[128] = t48;
2479
+ $[129] = t18;
2443
2480
  } else {
2444
- t18 = $[120];
2481
+ t18 = $[129];
2445
2482
  }
2446
- const t48 = imageResizeFormatValue || "original";
2447
- let t49;
2448
- if ($[121] !== imageResizeFormat || $[122] !== setFieldValue) {
2449
- t49 = (value_5) => setFieldValue(imageResizeFormat, value_5 || "original");
2450
- $[121] = imageResizeFormat;
2451
- $[122] = setFieldValue;
2452
- $[123] = t49;
2483
+ const t51 = imageResizeFormatValue || "original";
2484
+ let t52;
2485
+ if ($[130] !== imageResizeFormat || $[131] !== setFieldValue) {
2486
+ t52 = (value_5) => setFieldValue(imageResizeFormat, value_5 || "original");
2487
+ $[130] = imageResizeFormat;
2488
+ $[131] = setFieldValue;
2489
+ $[132] = t52;
2453
2490
  } else {
2454
- t49 = $[123];
2491
+ t52 = $[132];
2455
2492
  }
2456
- let t50;
2457
- let t51;
2458
- let t52;
2459
2493
  let t53;
2460
- if ($[124] === Symbol.for("react.memo_cache_sentinel")) {
2461
- t50 = /* @__PURE__ */ jsx(SelectItem, { value: "original", children: "Original (keep same format)" });
2462
- t51 = /* @__PURE__ */ jsx(SelectItem, { value: "jpeg", children: "JPEG" });
2463
- t52 = /* @__PURE__ */ jsx(SelectItem, { value: "png", children: "PNG" });
2464
- t53 = /* @__PURE__ */ jsx(SelectItem, { value: "webp", children: "WebP (best compression)" });
2465
- $[124] = t50;
2466
- $[125] = t51;
2467
- $[126] = t52;
2468
- $[127] = t53;
2494
+ let t54;
2495
+ let t55;
2496
+ let t56;
2497
+ if ($[133] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2498
+ t53 = /* @__PURE__ */ jsx(SelectItem, { value: "original", children: "Original (keep same format)" });
2499
+ t54 = /* @__PURE__ */ jsx(SelectItem, { value: "jpeg", children: "JPEG" });
2500
+ t55 = /* @__PURE__ */ jsx(SelectItem, { value: "png", children: "PNG" });
2501
+ t56 = /* @__PURE__ */ jsx(SelectItem, { value: "webp", children: "WebP (best compression)" });
2502
+ $[133] = t53;
2503
+ $[134] = t54;
2504
+ $[135] = t55;
2505
+ $[136] = t56;
2469
2506
  } else {
2470
- t50 = $[124];
2471
- t51 = $[125];
2472
- t52 = $[126];
2473
- t53 = $[127];
2507
+ t53 = $[133];
2508
+ t54 = $[134];
2509
+ t55 = $[135];
2510
+ t56 = $[136];
2474
2511
  }
2475
- if ($[128] !== disabled || $[129] !== imageResizeFormat || $[130] !== t48 || $[131] !== t49) {
2476
- t19 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxs(Select, { disabled, size: "medium", fullWidth: true, name: imageResizeFormat, value: t48, onValueChange: t49, label: "Output format", renderValue: _temp5, children: [
2477
- t50,
2478
- t51,
2479
- t52,
2480
- t53
2512
+ if ($[137] !== disabled || $[138] !== imageResizeFormat || $[139] !== t51 || $[140] !== t52) {
2513
+ t19 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxs(Select, { disabled, size: "medium", fullWidth: true, name: imageResizeFormat, value: t51, onValueChange: t52, label: "Output format", renderValue: _temp5, children: [
2514
+ t53,
2515
+ t54,
2516
+ t55,
2517
+ t56
2481
2518
  ] }) });
2482
- $[128] = disabled;
2483
- $[129] = imageResizeFormat;
2484
- $[130] = t48;
2485
- $[131] = t49;
2486
- $[132] = t19;
2519
+ $[137] = disabled;
2520
+ $[138] = imageResizeFormat;
2521
+ $[139] = t51;
2522
+ $[140] = t52;
2523
+ $[141] = t19;
2487
2524
  } else {
2488
- t19 = $[132];
2525
+ t19 = $[141];
2489
2526
  }
2490
2527
  t9 = "col-span-12";
2491
2528
  T0 = DebouncedTextField;
@@ -2505,58 +2542,59 @@ function StoragePropertyField(t0) {
2505
2542
  $[13] = imageResizeMaxWidth;
2506
2543
  $[14] = imageResizeMode;
2507
2544
  $[15] = imageResizeQuality;
2508
- $[16] = maxSize;
2509
- $[17] = setFieldValue;
2510
- $[18] = storagePath;
2511
- $[19] = storagePathValue;
2512
- $[20] = storeUrl;
2513
- $[21] = values;
2514
- $[22] = T0;
2515
- $[23] = T1;
2516
- $[24] = t10;
2517
- $[25] = t11;
2518
- $[26] = t12;
2519
- $[27] = t13;
2520
- $[28] = t14;
2521
- $[29] = t15;
2522
- $[30] = t16;
2523
- $[31] = t17;
2524
- $[32] = t18;
2525
- $[33] = t19;
2526
- $[34] = t20;
2527
- $[35] = t21;
2528
- $[36] = t3;
2529
- $[37] = t4;
2530
- $[38] = t5;
2531
- $[39] = t6;
2532
- $[40] = t7;
2533
- $[41] = t8;
2534
- $[42] = t9;
2545
+ $[16] = includeBucketUrl;
2546
+ $[17] = maxSize;
2547
+ $[18] = setFieldValue;
2548
+ $[19] = storagePath;
2549
+ $[20] = storagePathValue;
2550
+ $[21] = storeUrl;
2551
+ $[22] = values;
2552
+ $[23] = T0;
2553
+ $[24] = T1;
2554
+ $[25] = t10;
2555
+ $[26] = t11;
2556
+ $[27] = t12;
2557
+ $[28] = t13;
2558
+ $[29] = t14;
2559
+ $[30] = t15;
2560
+ $[31] = t16;
2561
+ $[32] = t17;
2562
+ $[33] = t18;
2563
+ $[34] = t19;
2564
+ $[35] = t20;
2565
+ $[36] = t21;
2566
+ $[37] = t3;
2567
+ $[38] = t4;
2568
+ $[39] = t5;
2569
+ $[40] = t6;
2570
+ $[41] = t7;
2571
+ $[42] = t8;
2572
+ $[43] = t9;
2535
2573
  } else {
2536
- T0 = $[22];
2537
- T1 = $[23];
2538
- t10 = $[24];
2539
- t11 = $[25];
2540
- t12 = $[26];
2541
- t13 = $[27];
2542
- t14 = $[28];
2543
- t15 = $[29];
2544
- t16 = $[30];
2545
- t17 = $[31];
2546
- t18 = $[32];
2547
- t19 = $[33];
2548
- t20 = $[34];
2549
- t21 = $[35];
2550
- t3 = $[36];
2551
- t4 = $[37];
2552
- t5 = $[38];
2553
- t6 = $[39];
2554
- t7 = $[40];
2555
- t8 = $[41];
2556
- t9 = $[42];
2574
+ T0 = $[23];
2575
+ T1 = $[24];
2576
+ t10 = $[25];
2577
+ t11 = $[26];
2578
+ t12 = $[27];
2579
+ t13 = $[28];
2580
+ t14 = $[29];
2581
+ t15 = $[30];
2582
+ t16 = $[31];
2583
+ t17 = $[32];
2584
+ t18 = $[33];
2585
+ t19 = $[34];
2586
+ t20 = $[35];
2587
+ t21 = $[36];
2588
+ t3 = $[37];
2589
+ t4 = $[38];
2590
+ t5 = $[39];
2591
+ t6 = $[40];
2592
+ t7 = $[41];
2593
+ t8 = $[42];
2594
+ t9 = $[43];
2557
2595
  }
2558
2596
  let t22;
2559
- if ($[133] !== imageResizeQuality || $[134] !== setFieldValue) {
2597
+ if ($[142] !== imageResizeQuality || $[143] !== setFieldValue) {
2560
2598
  t22 = (e_3) => {
2561
2599
  const value_6 = e_3.target.value;
2562
2600
  if (value_6 === "") {
@@ -2568,48 +2606,48 @@ function StoragePropertyField(t0) {
2568
2606
  }
2569
2607
  }
2570
2608
  };
2571
- $[133] = imageResizeQuality;
2572
- $[134] = setFieldValue;
2573
- $[135] = t22;
2609
+ $[142] = imageResizeQuality;
2610
+ $[143] = setFieldValue;
2611
+ $[144] = t22;
2574
2612
  } else {
2575
- t22 = $[135];
2613
+ t22 = $[144];
2576
2614
  }
2577
2615
  let t23;
2578
- if ($[136] !== T0 || $[137] !== t22 || $[138] !== t3 || $[139] !== t4 || $[140] !== t5 || $[141] !== t6 || $[142] !== t7 || $[143] !== t8) {
2616
+ if ($[145] !== T0 || $[146] !== t22 || $[147] !== t3 || $[148] !== t4 || $[149] !== t5 || $[150] !== t6 || $[151] !== t7 || $[152] !== t8) {
2579
2617
  t23 = /* @__PURE__ */ jsx(T0, { name: t3, type: t4, label: t5, size: t6, disabled: t7, value: t8, onChange: t22 });
2580
- $[136] = T0;
2581
- $[137] = t22;
2582
- $[138] = t3;
2583
- $[139] = t4;
2584
- $[140] = t5;
2585
- $[141] = t6;
2586
- $[142] = t7;
2587
- $[143] = t8;
2588
- $[144] = t23;
2589
- } else {
2590
- t23 = $[144];
2618
+ $[145] = T0;
2619
+ $[146] = t22;
2620
+ $[147] = t3;
2621
+ $[148] = t4;
2622
+ $[149] = t5;
2623
+ $[150] = t6;
2624
+ $[151] = t7;
2625
+ $[152] = t8;
2626
+ $[153] = t23;
2627
+ } else {
2628
+ t23 = $[153];
2591
2629
  }
2592
2630
  let t24;
2593
- if ($[145] === Symbol.for("react.memo_cache_sentinel")) {
2631
+ if ($[154] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2594
2632
  t24 = /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: "Higher quality = larger file size. Recommended: 80-90 for photos, 90-100 for graphics" });
2595
- $[145] = t24;
2633
+ $[154] = t24;
2596
2634
  } else {
2597
- t24 = $[145];
2635
+ t24 = $[154];
2598
2636
  }
2599
2637
  let t25;
2600
- if ($[146] !== t23 || $[147] !== t9) {
2638
+ if ($[155] !== t23 || $[156] !== t9) {
2601
2639
  t25 = /* @__PURE__ */ jsxs("div", { className: t9, children: [
2602
2640
  t23,
2603
2641
  t24
2604
2642
  ] });
2605
- $[146] = t23;
2606
- $[147] = t9;
2607
- $[148] = t25;
2643
+ $[155] = t23;
2644
+ $[156] = t9;
2645
+ $[157] = t25;
2608
2646
  } else {
2609
- t25 = $[148];
2647
+ t25 = $[157];
2610
2648
  }
2611
2649
  let t26;
2612
- if ($[149] !== t10 || $[150] !== t11 || $[151] !== t12 || $[152] !== t13 || $[153] !== t14 || $[154] !== t15 || $[155] !== t16 || $[156] !== t17 || $[157] !== t18 || $[158] !== t19 || $[159] !== t25) {
2650
+ if ($[158] !== t10 || $[159] !== t11 || $[160] !== t12 || $[161] !== t13 || $[162] !== t14 || $[163] !== t15 || $[164] !== t16 || $[165] !== t17 || $[166] !== t18 || $[167] !== t19 || $[168] !== t25) {
2613
2651
  t26 = /* @__PURE__ */ jsxs("div", { className: t10, children: [
2614
2652
  t11,
2615
2653
  t12,
@@ -2622,81 +2660,81 @@ function StoragePropertyField(t0) {
2622
2660
  t19,
2623
2661
  t25
2624
2662
  ] });
2625
- $[149] = t10;
2626
- $[150] = t11;
2627
- $[151] = t12;
2628
- $[152] = t13;
2629
- $[153] = t14;
2630
- $[154] = t15;
2631
- $[155] = t16;
2632
- $[156] = t17;
2633
- $[157] = t18;
2634
- $[158] = t19;
2635
- $[159] = t25;
2636
- $[160] = t26;
2637
- } else {
2638
- t26 = $[160];
2663
+ $[158] = t10;
2664
+ $[159] = t11;
2665
+ $[160] = t12;
2666
+ $[161] = t13;
2667
+ $[162] = t14;
2668
+ $[163] = t15;
2669
+ $[164] = t16;
2670
+ $[165] = t17;
2671
+ $[166] = t18;
2672
+ $[167] = t19;
2673
+ $[168] = t25;
2674
+ $[169] = t26;
2675
+ } else {
2676
+ t26 = $[169];
2639
2677
  }
2640
2678
  let t27;
2641
- if ($[161] !== T1 || $[162] !== t20 || $[163] !== t26) {
2679
+ if ($[170] !== T1 || $[171] !== t20 || $[172] !== t26) {
2642
2680
  t27 = /* @__PURE__ */ jsx(T1, { title: t20, children: t26 });
2643
- $[161] = T1;
2644
- $[162] = t20;
2645
- $[163] = t26;
2646
- $[164] = t27;
2681
+ $[170] = T1;
2682
+ $[171] = t20;
2683
+ $[172] = t26;
2684
+ $[173] = t27;
2647
2685
  } else {
2648
- t27 = $[164];
2686
+ t27 = $[173];
2649
2687
  }
2650
2688
  let t28;
2651
- if ($[165] !== t21 || $[166] !== t27) {
2689
+ if ($[174] !== t21 || $[175] !== t27) {
2652
2690
  t28 = /* @__PURE__ */ jsx("div", { className: t21, children: t27 });
2653
- $[165] = t21;
2654
- $[166] = t27;
2655
- $[167] = t28;
2691
+ $[174] = t21;
2692
+ $[175] = t27;
2693
+ $[176] = t28;
2656
2694
  } else {
2657
- t28 = $[167];
2695
+ t28 = $[176];
2658
2696
  }
2659
2697
  let t29;
2660
- if ($[168] !== disabled || $[169] !== multiple) {
2698
+ if ($[177] !== disabled || $[178] !== multiple) {
2661
2699
  t29 = !multiple && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-12 gap-2", children: /* @__PURE__ */ jsx(GeneralPropertyValidation, { disabled }) });
2662
- $[168] = disabled;
2663
- $[169] = multiple;
2664
- $[170] = t29;
2700
+ $[177] = disabled;
2701
+ $[178] = multiple;
2702
+ $[179] = t29;
2665
2703
  } else {
2666
- t29 = $[170];
2704
+ t29 = $[179];
2667
2705
  }
2668
2706
  let t30;
2669
- if ($[171] !== disabled || $[172] !== multiple) {
2707
+ if ($[180] !== disabled || $[181] !== multiple) {
2670
2708
  t30 = multiple && /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(ArrayPropertyValidation, { disabled }) });
2671
- $[171] = disabled;
2672
- $[172] = multiple;
2673
- $[173] = t30;
2709
+ $[180] = disabled;
2710
+ $[181] = multiple;
2711
+ $[182] = t30;
2674
2712
  } else {
2675
- t30 = $[173];
2713
+ t30 = $[182];
2676
2714
  }
2677
2715
  let t31;
2678
- if ($[174] !== t29 || $[175] !== t30) {
2716
+ if ($[183] !== t29 || $[184] !== t30) {
2679
2717
  t31 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxs(ValidationPanel, { children: [
2680
2718
  t29,
2681
2719
  t30
2682
2720
  ] }) });
2683
- $[174] = t29;
2684
- $[175] = t30;
2685
- $[176] = t31;
2721
+ $[183] = t29;
2722
+ $[184] = t30;
2723
+ $[185] = t31;
2686
2724
  } else {
2687
- t31 = $[176];
2725
+ t31 = $[185];
2688
2726
  }
2689
2727
  let t32;
2690
- if ($[177] !== t28 || $[178] !== t31) {
2728
+ if ($[186] !== t28 || $[187] !== t31) {
2691
2729
  t32 = /* @__PURE__ */ jsxs(Fragment, { children: [
2692
2730
  t28,
2693
2731
  t31
2694
2732
  ] });
2695
- $[177] = t28;
2696
- $[178] = t31;
2697
- $[179] = t32;
2733
+ $[186] = t28;
2734
+ $[187] = t31;
2735
+ $[188] = t32;
2698
2736
  } else {
2699
- t32 = $[179];
2737
+ t32 = $[188];
2700
2738
  }
2701
2739
  return t32;
2702
2740
  }
@@ -2926,7 +2964,7 @@ function NonEditablePropertyPreview(t0) {
2926
2964
  t3 = $[6];
2927
2965
  }
2928
2966
  let t4;
2929
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
2967
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2930
2968
  t4 = /* @__PURE__ */ jsx(DoNotDisturbOnIcon, { color: "disabled", size: "small", className: "absolute -right-2 -top-2" });
2931
2969
  $[7] = t4;
2932
2970
  } else {
@@ -3078,7 +3116,7 @@ const PropertyTree = React__default.memo(function PropertyTree2(t0) {
3078
3116
  }
3079
3117
  const propertiesOrder = t1;
3080
3118
  let t2;
3081
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
3119
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3082
3120
  t2 = {
3083
3121
  activationConstraint: {
3084
3122
  distance: 5
@@ -3089,7 +3127,7 @@ const PropertyTree = React__default.memo(function PropertyTree2(t0) {
3089
3127
  t2 = $[3];
3090
3128
  }
3091
3129
  let t3;
3092
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
3130
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3093
3131
  t3 = {
3094
3132
  coordinateGetter: sortableKeyboardCoordinates
3095
3133
  };
@@ -3153,7 +3191,7 @@ const PropertyTree = React__default.memo(function PropertyTree2(t0) {
3153
3191
  }
3154
3192
  const items = t5;
3155
3193
  let t6;
3156
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
3194
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3157
3195
  t6 = [restrictToVerticalAxis];
3158
3196
  $[14] = t6;
3159
3197
  } else {
@@ -3529,7 +3567,7 @@ function MapPropertyField(t0) {
3529
3567
  }
3530
3568
  const onPropertyMove = t5;
3531
3569
  let t6;
3532
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
3570
+ if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3533
3571
  t6 = /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: "Properties in this group" });
3534
3572
  $[16] = t6;
3535
3573
  } else {
@@ -3537,7 +3575,7 @@ function MapPropertyField(t0) {
3537
3575
  }
3538
3576
  let t7;
3539
3577
  let t8;
3540
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
3578
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3541
3579
  t7 = () => setPropertyDialogOpen(true);
3542
3580
  t8 = /* @__PURE__ */ jsx(AddIcon, {});
3543
3581
  $[17] = t7;
@@ -3570,14 +3608,14 @@ function MapPropertyField(t0) {
3570
3608
  t11 = $[22];
3571
3609
  }
3572
3610
  let t12;
3573
- if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
3611
+ if ($[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3574
3612
  t12 = {};
3575
3613
  $[23] = t12;
3576
3614
  } else {
3577
3615
  t12 = $[23];
3578
3616
  }
3579
3617
  let t13;
3580
- if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
3618
+ if ($[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3581
3619
  t13 = (propertyKey_0, namespace_1) => {
3582
3620
  setSelectedPropertyKey(propertyKey_0);
3583
3621
  setSelectedPropertyNamespace(namespace_1);
@@ -3649,7 +3687,7 @@ function MapPropertyField(t0) {
3649
3687
  t20 = $[42];
3650
3688
  }
3651
3689
  let t21;
3652
- if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
3690
+ if ($[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3653
3691
  t21 = /* @__PURE__ */ jsx(FieldCaption, { children: "Set this flag to true if you want to display the children of this group as individual columns. This will only work for top level groups." });
3654
3692
  $[43] = t21;
3655
3693
  } else {
@@ -3668,7 +3706,7 @@ function MapPropertyField(t0) {
3668
3706
  }
3669
3707
  let t23;
3670
3708
  let t24;
3671
- if ($[46] === Symbol.for("react.memo_cache_sentinel")) {
3709
+ if ($[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3672
3710
  t23 = () => {
3673
3711
  setPropertyDialogOpen(false);
3674
3712
  setSelectedPropertyKey(void 0);
@@ -3792,7 +3830,7 @@ function RepeatPropertyField(t0) {
3792
3830
  }
3793
3831
  const widget = t1;
3794
3832
  let t2;
3795
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
3833
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3796
3834
  t2 = /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: "Repeat component" });
3797
3835
  $[14] = t2;
3798
3836
  } else {
@@ -3924,7 +3962,7 @@ const CommonPropertyFields = React__default.forwardRef(function CommonPropertyFi
3924
3962
  t5 = $[13];
3925
3963
  }
3926
3964
  let t6;
3927
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
3965
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3928
3966
  t6 = {
3929
3967
  fontSize: 20
3930
3968
  };
@@ -4310,7 +4348,7 @@ function BlockPropertyField(t0) {
4310
4348
  const deleteProperty = t3;
4311
4349
  let t4;
4312
4350
  let t5;
4313
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
4351
+ if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4314
4352
  t4 = () => setPropertyDialogOpen(true);
4315
4353
  t5 = /* @__PURE__ */ jsx(AddIcon, {});
4316
4354
  $[11] = t4;
@@ -4344,7 +4382,7 @@ function BlockPropertyField(t0) {
4344
4382
  }
4345
4383
  const onPropertyMove = t8;
4346
4384
  let t9;
4347
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
4385
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4348
4386
  t9 = /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: "Properties in this block" });
4349
4387
  $[17] = t9;
4350
4388
  } else {
@@ -4371,7 +4409,7 @@ function BlockPropertyField(t0) {
4371
4409
  }
4372
4410
  const t12 = values.oneOf?.propertiesOrder;
4373
4411
  let t13;
4374
- if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
4412
+ if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4375
4413
  t13 = {};
4376
4414
  $[22] = t13;
4377
4415
  } else {
@@ -4695,7 +4733,6 @@ function NumberPropertyField(t0) {
4695
4733
  function ReferencePropertyField(t0) {
4696
4734
  const $ = c(14);
4697
4735
  const {
4698
- existing,
4699
4736
  multiple,
4700
4737
  disabled,
4701
4738
  showErrors,
@@ -4709,7 +4746,7 @@ function ReferencePropertyField(t0) {
4709
4746
  const navigation = useNavigationController();
4710
4747
  if (!navigation) {
4711
4748
  let t12;
4712
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
4749
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4713
4750
  t12 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(CircularProgress, {}) });
4714
4751
  $[0] = t12;
4715
4752
  } else {
@@ -4739,23 +4776,22 @@ function ReferencePropertyField(t0) {
4739
4776
  t2 = $[7];
4740
4777
  }
4741
4778
  const pathError = t2;
4742
- const t3 = existing && Boolean(pathValue) || disabled;
4743
- let t4;
4744
- if ($[8] !== handleChange || $[9] !== pathError || $[10] !== pathPath || $[11] !== pathValue || $[12] !== t3) {
4745
- t4 = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(Field, { name: pathPath, pathPath, type: "select", disabled: t3, value: pathValue, error: pathError, handleChange, as: CollectionsSelect }) }) });
4746
- $[8] = handleChange;
4747
- $[9] = pathError;
4748
- $[10] = pathPath;
4749
- $[11] = pathValue;
4750
- $[12] = t3;
4751
- $[13] = t4;
4779
+ let t3;
4780
+ if ($[8] !== disabled || $[9] !== handleChange || $[10] !== pathError || $[11] !== pathPath || $[12] !== pathValue) {
4781
+ t3 = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(Field, { name: pathPath, pathPath, type: "select", disabled, value: pathValue, error: pathError, handleChange, as: CollectionsSelect }) }) });
4782
+ $[8] = disabled;
4783
+ $[9] = handleChange;
4784
+ $[10] = pathError;
4785
+ $[11] = pathPath;
4786
+ $[12] = pathValue;
4787
+ $[13] = t3;
4752
4788
  } else {
4753
- t4 = $[13];
4789
+ t3 = $[13];
4754
4790
  }
4755
- return t4;
4791
+ return t3;
4756
4792
  }
4757
4793
  function CollectionsSelect(t0) {
4758
- const $ = c(29);
4794
+ const $ = c(26);
4759
4795
  let disabled;
4760
4796
  let error;
4761
4797
  let handleChange;
@@ -4789,7 +4825,7 @@ function CollectionsSelect(t0) {
4789
4825
  const navigation = useNavigationController();
4790
4826
  if (!navigation) {
4791
4827
  let t12;
4792
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
4828
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4793
4829
  t12 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(CircularProgress, {}) });
4794
4830
  $[7] = t12;
4795
4831
  } else {
@@ -4818,10 +4854,10 @@ function CollectionsSelect(t0) {
4818
4854
  let t3;
4819
4855
  if ($[12] !== collections || $[13] !== disabled || $[14] !== error || $[15] !== groups || $[16] !== handleChange || $[17] !== pathPath || $[18] !== props || $[19] !== value) {
4820
4856
  const ungroupedCollections = collections.filter(_temp2$6);
4821
- const t42 = Boolean(error);
4822
- let t52;
4857
+ const t4 = Boolean(error);
4858
+ let t5;
4823
4859
  if ($[21] !== collections) {
4824
- t52 = (selected) => {
4860
+ t5 = (selected) => {
4825
4861
  const selectedCollection = collections.find((collection) => collection.id === selected || collection.path === selected);
4826
4862
  if (!selectedCollection) {
4827
4863
  return null;
@@ -4832,9 +4868,9 @@ function CollectionsSelect(t0) {
4832
4868
  ] });
4833
4869
  };
4834
4870
  $[21] = collections;
4835
- $[22] = t52;
4871
+ $[22] = t5;
4836
4872
  } else {
4837
- t52 = $[22];
4873
+ t5 = $[22];
4838
4874
  }
4839
4875
  let t6;
4840
4876
  if ($[23] !== collections || $[24] !== groups) {
@@ -4848,10 +4884,10 @@ function CollectionsSelect(t0) {
4848
4884
  } else {
4849
4885
  t6 = $[25];
4850
4886
  }
4851
- t3 = /* @__PURE__ */ jsxs(Select, { error: t42, disabled, value: value ?? "", position: "item-aligned", name: pathPath, size: "large", fullWidth: true, onChange: handleChange, label: "Target collection", renderValue: t52, ...props, children: [
4887
+ t3 = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Select, { error: t4, disabled, value: value ?? "", position: "item-aligned", name: pathPath, size: "large", fullWidth: true, onChange: handleChange, label: "Target collection", renderValue: t5, ...props, children: [
4852
4888
  t6,
4853
4889
  ungroupedCollections && /* @__PURE__ */ jsx(SelectGroup, { label: "Views", children: ungroupedCollections.map(_temp3$3) })
4854
- ] });
4890
+ ] }) });
4855
4891
  $[12] = collections;
4856
4892
  $[13] = disabled;
4857
4893
  $[14] = error;
@@ -4864,25 +4900,7 @@ function CollectionsSelect(t0) {
4864
4900
  } else {
4865
4901
  t3 = $[20];
4866
4902
  }
4867
- let t4;
4868
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
4869
- t4 = /* @__PURE__ */ jsx(FieldCaption, { children: "You can only edit the reference collection upon field creation." });
4870
- $[26] = t4;
4871
- } else {
4872
- t4 = $[26];
4873
- }
4874
- let t5;
4875
- if ($[27] !== t3) {
4876
- t5 = /* @__PURE__ */ jsxs(Fragment, { children: [
4877
- t3,
4878
- t4
4879
- ] });
4880
- $[27] = t3;
4881
- $[28] = t5;
4882
- } else {
4883
- t5 = $[28];
4884
- }
4885
- return t5;
4903
+ return t3;
4886
4904
  }
4887
4905
  function _temp3$3(collection_2) {
4888
4906
  return /* @__PURE__ */ jsx(SelectItem, { value: collection_2.id ?? collection_2.path, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-row", children: [
@@ -4957,7 +4975,7 @@ function DateTimePropertyField(t0) {
4957
4975
  }
4958
4976
  let t8;
4959
4977
  let t9;
4960
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
4978
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4961
4979
  t8 = /* @__PURE__ */ jsx(SelectItem, { value: "date_time", children: " Date/Time " });
4962
4980
  t9 = /* @__PURE__ */ jsx(SelectItem, { value: "date", children: " Date " });
4963
4981
  $[12] = t8;
@@ -5015,7 +5033,7 @@ function DateTimePropertyField(t0) {
5015
5033
  let t17;
5016
5034
  let t18;
5017
5035
  let t19;
5018
- if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
5036
+ if ($[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5019
5037
  t17 = /* @__PURE__ */ jsx(SelectItem, { value: "none", children: " None " });
5020
5038
  t18 = /* @__PURE__ */ jsx(SelectItem, { value: "on_create", children: " On create " });
5021
5039
  t19 = /* @__PURE__ */ jsx(SelectItem, { value: "on_update", children: " On any update " });
@@ -5445,7 +5463,7 @@ function UrlPropertyField(t0) {
5445
5463
  let t5;
5446
5464
  let t6;
5447
5465
  let t7;
5448
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
5466
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5449
5467
  t4 = /* @__PURE__ */ jsx(SelectItem, { value: "[NONE]", children: "Display URL" });
5450
5468
  t5 = /* @__PURE__ */ jsx(SelectItem, { value: "image", children: "Image" });
5451
5469
  t6 = /* @__PURE__ */ jsx(SelectItem, { value: "video", children: "Video" });
@@ -5610,7 +5628,7 @@ function MarkdownPropertyField(t0) {
5610
5628
  }
5611
5629
  t13 = "col-span-12";
5612
5630
  T1 = ExpandablePanel;
5613
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
5631
+ if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5614
5632
  t12 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
5615
5633
  /* @__PURE__ */ jsx(CloudUploadIcon, {}),
5616
5634
  /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "ml-4", children: "File upload config" })
@@ -5643,7 +5661,7 @@ function MarkdownPropertyField(t0) {
5643
5661
  }
5644
5662
  let t202;
5645
5663
  let t212;
5646
- if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
5664
+ if ($[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5647
5665
  t202 = /* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: [
5648
5666
  /* @__PURE__ */ jsx("p", { children: "You can use the following placeholders in the file name and storage path values:" }),
5649
5667
  /* @__PURE__ */ jsxs("ul", { children: [
@@ -5860,7 +5878,7 @@ const PropertyForm = React__default.memo(function PropertyForm2(props) {
5860
5878
  const includeIdAndName = t0 === void 0 ? true : t0;
5861
5879
  const onPropertyChangedImmediate = t1 === void 0 ? true : t1;
5862
5880
  let t2;
5863
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
5881
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5864
5882
  t2 = {
5865
5883
  id: "",
5866
5884
  name: ""
@@ -6116,7 +6134,7 @@ function PropertyFormDialog(t0) {
6116
6134
  }
6117
6135
  const formexRef = useRef();
6118
6136
  let t1;
6119
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
6137
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6120
6138
  t1 = (helpers) => {
6121
6139
  formexRef.current = helpers;
6122
6140
  };
@@ -6128,7 +6146,7 @@ function PropertyFormDialog(t0) {
6128
6146
  const t2 = open ?? false;
6129
6147
  let t3;
6130
6148
  let t4;
6131
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
6149
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6132
6150
  t3 = (e) => {
6133
6151
  e.preventDefault();
6134
6152
  e.stopPropagation();
@@ -6177,7 +6195,7 @@ function PropertyFormDialog(t0) {
6177
6195
  t7 = $[21];
6178
6196
  }
6179
6197
  let t8;
6180
- if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
6198
+ if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6181
6199
  t8 = /* @__PURE__ */ jsx(Button, { variant: "outlined", type: "submit", color: "primary", children: "Ok" });
6182
6200
  $[22] = t8;
6183
6201
  } else {
@@ -6914,7 +6932,7 @@ function WidgetSelectView(t0) {
6914
6932
  t2 = $[40];
6915
6933
  }
6916
6934
  t3 = "4xl";
6917
- if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
6935
+ if ($[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6918
6936
  t4 = /* @__PURE__ */ jsx(DialogTitle, { children: "Select a property widget" });
6919
6937
  $[41] = t4;
6920
6938
  } else {
@@ -7035,7 +7053,7 @@ function WidgetSelectViewItem(t0) {
7035
7053
  const baseProperty = propertyConfig.property;
7036
7054
  const shouldWarnChangingDataType = existing && !isPropertyBuilder(baseProperty) && baseProperty.dataType !== initialProperty?.dataType;
7037
7055
  let t1;
7038
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
7056
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7039
7057
  t1 = cls("flex flex-row items-center text-base min-h-[48px]");
7040
7058
  $[0] = t1;
7041
7059
  } else {
@@ -7154,7 +7172,7 @@ function GetCodeDialog(t0) {
7154
7172
  t1 = $[1];
7155
7173
  }
7156
7174
  let t2;
7157
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
7175
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7158
7176
  t2 = /* @__PURE__ */ jsxs(Typography, { variant: "body2", className: "my-4 mb-8", children: [
7159
7177
  "If you want to customise the collection in code, you can add this collection code to your CMS app configuration. More info in the ",
7160
7178
  /* @__PURE__ */ jsx("a", { rel: "noopener noreferrer", href: "https://firecms.co/docs/cloud/quickstart", children: "docs" }),
@@ -7193,7 +7211,7 @@ function GetCodeDialog(t0) {
7193
7211
  t4 = $[7];
7194
7212
  }
7195
7213
  let t5;
7196
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
7214
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7197
7215
  t5 = /* @__PURE__ */ jsx(ContentCopyIcon, { size: "small" });
7198
7216
  $[8] = t5;
7199
7217
  } else {
@@ -7572,7 +7590,7 @@ function UnsavedChangesDialog(t0) {
7572
7590
  t4 = $[6];
7573
7591
  }
7574
7592
  let t5;
7575
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
7593
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7576
7594
  t5 = /* @__PURE__ */ jsx(Typography, { children: "Are you sure?" });
7577
7595
  $[7] = t5;
7578
7596
  } else {
@@ -7645,7 +7663,7 @@ function EntityCustomViewsSelectDialog(t0) {
7645
7663
  entityViews
7646
7664
  } = useCustomizationController();
7647
7665
  let t1;
7648
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
7666
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7649
7667
  t1 = /* @__PURE__ */ jsx(DialogTitle, { children: "Select custom view" });
7650
7668
  $[0] = t1;
7651
7669
  } else {
@@ -7792,7 +7810,7 @@ function SubcollectionsEditTab(t0) {
7792
7810
  t142 = $[25];
7793
7811
  }
7794
7812
  let t152;
7795
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
7813
+ if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7796
7814
  t152 = () => {
7797
7815
  setCurrentDialog({
7798
7816
  isNewCollection: true
@@ -7803,7 +7821,7 @@ function SubcollectionsEditTab(t0) {
7803
7821
  t152 = $[26];
7804
7822
  }
7805
7823
  let t162;
7806
- if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
7824
+ if ($[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7807
7825
  t162 = /* @__PURE__ */ jsx(Button, { onClick: t152, variant: "text", startIcon: /* @__PURE__ */ jsx(AddIcon, {}), children: "Add subcollection" });
7808
7826
  $[27] = t162;
7809
7827
  } else {
@@ -7832,7 +7850,7 @@ function SubcollectionsEditTab(t0) {
7832
7850
  t9 = $[32];
7833
7851
  }
7834
7852
  t5 = "flex-grow flex flex-col gap-4 items-start";
7835
- if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
7853
+ if ($[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7836
7854
  t6 = /* @__PURE__ */ jsx(Typography, { variant: "h5", children: "Custom views" });
7837
7855
  $[33] = t6;
7838
7856
  } else {
@@ -7850,7 +7868,7 @@ function SubcollectionsEditTab(t0) {
7850
7868
  T1 = Table;
7851
7869
  T0 = TableBody;
7852
7870
  let t182;
7853
- if ($[36] === Symbol.for("react.memo_cache_sentinel")) {
7871
+ if ($[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7854
7872
  t182 = (view) => /* @__PURE__ */ jsxs(TableRow, { children: [
7855
7873
  /* @__PURE__ */ jsx(TableCell, { align: "left", children: /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "flex-grow", children: view.name }) }),
7856
7874
  /* @__PURE__ */ jsx(TableCell, { align: "right", children: /* @__PURE__ */ jsx(Tooltip, { title: "Remove", asChild: true, children: /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: (e_3) => {
@@ -7925,7 +7943,7 @@ function SubcollectionsEditTab(t0) {
7925
7943
  t14 = $[43];
7926
7944
  }
7927
7945
  let t15;
7928
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
7946
+ if ($[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7929
7947
  t15 = () => {
7930
7948
  setAddEntityViewDialogOpen(true);
7931
7949
  };
@@ -7934,7 +7952,7 @@ function SubcollectionsEditTab(t0) {
7934
7952
  t15 = $[44];
7935
7953
  }
7936
7954
  let t16;
7937
- if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
7955
+ if ($[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7938
7956
  t16 = /* @__PURE__ */ jsx(Button, { onClick: t15, variant: "text", startIcon: /* @__PURE__ */ jsx(AddIcon, {}), children: "Add custom entity view" });
7939
7957
  $[45] = t16;
7940
7958
  } else {
@@ -7993,7 +8011,7 @@ function SubcollectionsEditTab(t0) {
7993
8011
  t20 = $[63];
7994
8012
  }
7995
8013
  let t21;
7996
- if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
8014
+ if ($[64] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7997
8015
  t21 = /* @__PURE__ */ jsx("div", { style: {
7998
8016
  height: "52px"
7999
8017
  } });
@@ -8624,7 +8642,7 @@ function CollectionEditorWelcomeView(t0) {
8624
8642
  const t4 = "4xl";
8625
8643
  const t5 = "flex flex-col gap-4 p-8 m-auto";
8626
8644
  let t6;
8627
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
8645
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8628
8646
  t6 = /* @__PURE__ */ jsx("div", { className: "flex flex-row py-2 pt-3 items-center", children: /* @__PURE__ */ jsx(Typography, { variant: "h4", className: "flex-grow", children: "New collection" }) });
8629
8647
  $[4] = t6;
8630
8648
  } else {
@@ -8652,14 +8670,14 @@ function CollectionEditorWelcomeView(t0) {
8652
8670
  }, size: "small", children: suggestion }, suggestion)) })
8653
8671
  ] });
8654
8672
  let t9;
8655
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
8673
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8656
8674
  t9 = /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", children: "● Select a template:" });
8657
8675
  $[7] = t9;
8658
8676
  } else {
8659
8677
  t9 = $[7];
8660
8678
  }
8661
8679
  let t10;
8662
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
8680
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8663
8681
  t10 = /* @__PURE__ */ jsx(Icon, { size: "small", iconKey: productsCollectionTemplate.icon });
8664
8682
  $[8] = t10;
8665
8683
  } else {
@@ -8678,7 +8696,7 @@ function CollectionEditorWelcomeView(t0) {
8678
8696
  t11 = $[11];
8679
8697
  }
8680
8698
  let t12;
8681
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
8699
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8682
8700
  t12 = /* @__PURE__ */ jsx(Icon, { size: "small", iconKey: usersCollectionTemplate.icon });
8683
8701
  $[12] = t12;
8684
8702
  } else {
@@ -8697,7 +8715,7 @@ function CollectionEditorWelcomeView(t0) {
8697
8715
  t13 = $[15];
8698
8716
  }
8699
8717
  let t14;
8700
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
8718
+ if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8701
8719
  t14 = /* @__PURE__ */ jsx(Icon, { size: "small", iconKey: blogCollectionTemplate.icon });
8702
8720
  $[16] = t14;
8703
8721
  } else {
@@ -8716,7 +8734,7 @@ function CollectionEditorWelcomeView(t0) {
8716
8734
  t15 = $[19];
8717
8735
  }
8718
8736
  let t16;
8719
- if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
8737
+ if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8720
8738
  t16 = /* @__PURE__ */ jsx(Icon, { size: "small", iconKey: pagesCollectionTemplate.icon });
8721
8739
  $[20] = t16;
8722
8740
  } else {
@@ -8795,7 +8813,7 @@ function TemplateButton(t0) {
8795
8813
  onClick
8796
8814
  } = t0;
8797
8815
  let t1;
8798
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
8816
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8799
8817
  t1 = cls("my-2 rounded-md border mx-0 p-6 px-4 focus:outline-none transition ease-in-out duration-150 flex flex-row gap-4 items-center", "text-surface-700 dark:text-surface-accent-300", "hover:border-primary-dark hover:text-primary-dark dark:hover:text-primary focus:ring-primary hover:ring-1 hover:ring-primary", "border-surface-400 dark:border-surface-600 ");
8800
8818
  $[0] = t1;
8801
8819
  } else {
@@ -8947,7 +8965,7 @@ function CollectionEditorImportMapping(t0) {
8947
8965
  }
8948
8966
  const onPropertyTypeChanged = t3;
8949
8967
  let t4;
8950
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
8968
+ if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8951
8969
  t4 = /* @__PURE__ */ jsx(Typography, { variant: "h6", className: "my-4 ml-3.5", children: "Data property mapping" });
8952
8970
  $[11] = t4;
8953
8971
  } else {
@@ -9003,7 +9021,7 @@ function CollectionEditorImportMapping(t0) {
9003
9021
  const t8 = selectedProperty !== void 0;
9004
9022
  let t10;
9005
9023
  let t9;
9006
- if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
9024
+ if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9007
9025
  t9 = () => {
9008
9026
  setSelectedProperty(void 0);
9009
9027
  };
@@ -9030,7 +9048,7 @@ function CollectionEditorImportMapping(t0) {
9030
9048
  t11 = $[28];
9031
9049
  }
9032
9050
  let t12;
9033
- if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
9051
+ if ($[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9034
9052
  t12 = /* @__PURE__ */ jsx("div", { style: {
9035
9053
  height: "52px"
9036
9054
  } });
@@ -9125,7 +9143,7 @@ function PropertySelect(t0) {
9125
9143
  t8 = $[11];
9126
9144
  }
9127
9145
  let t9;
9128
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
9146
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9129
9147
  t9 = Object.entries(supportedFields).map(_temp2$2);
9130
9148
  $[12] = t9;
9131
9149
  } else {
@@ -9275,7 +9293,7 @@ function CollectionEditorImportDataPreview(t0) {
9275
9293
  t2 = $[6];
9276
9294
  }
9277
9295
  let t3;
9278
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
9296
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9279
9297
  t3 = [];
9280
9298
  $[7] = t3;
9281
9299
  } else {
@@ -9285,7 +9303,7 @@ function CollectionEditorImportDataPreview(t0) {
9285
9303
  const selectionController = useSelectionController();
9286
9304
  if (loading) {
9287
9305
  let t42;
9288
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
9306
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9289
9307
  t42 = /* @__PURE__ */ jsx(CircularProgressCenter, {});
9290
9308
  $[8] = t42;
9291
9309
  } else {
@@ -9294,7 +9312,7 @@ function CollectionEditorImportDataPreview(t0) {
9294
9312
  return t42;
9295
9313
  }
9296
9314
  let t4;
9297
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
9315
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9298
9316
  t4 = /* @__PURE__ */ jsxs("div", { children: [
9299
9317
  /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", children: "Imported data preview" }),
9300
9318
  /* @__PURE__ */ jsx(Typography, { variant: "caption", children: "Entities with the same id will be overwritten" })
@@ -9316,7 +9334,7 @@ function CollectionEditorImportDataPreview(t0) {
9316
9334
  t5 = $[11];
9317
9335
  }
9318
9336
  let t6;
9319
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
9337
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9320
9338
  t6 = /* @__PURE__ */ jsx("div", { className: "h-12" });
9321
9339
  $[12] = t6;
9322
9340
  } else {
@@ -9407,7 +9425,7 @@ function EntityActionsSelectDialog(t0) {
9407
9425
  entityActions
9408
9426
  } = useCustomizationController();
9409
9427
  let t1;
9410
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
9428
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9411
9429
  t1 = /* @__PURE__ */ jsx(DialogTitle, { children: "Select custom action" });
9412
9430
  $[0] = t1;
9413
9431
  } else {
@@ -9509,7 +9527,7 @@ function EntityActionsEditTab(t0) {
9509
9527
  t9 = "flex flex-col gap-4 p-8 m-auto";
9510
9528
  t7 = "flex flex-col gap-16";
9511
9529
  t4 = "flex-grow flex flex-col gap-4 items-start";
9512
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
9530
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9513
9531
  t5 = /* @__PURE__ */ jsx(Typography, { variant: "h5", children: "Custom actions" });
9514
9532
  $[17] = t5;
9515
9533
  } else {
@@ -9527,7 +9545,7 @@ function EntityActionsEditTab(t0) {
9527
9545
  T1 = Table;
9528
9546
  T0 = TableBody;
9529
9547
  let t112;
9530
- if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
9548
+ if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9531
9549
  t112 = (action) => /* @__PURE__ */ jsxs(TableRow, { children: [
9532
9550
  /* @__PURE__ */ jsx(TableCell, { align: "left", children: /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "flex-grow", children: action.name }) }),
9533
9551
  /* @__PURE__ */ jsx(TableCell, { align: "right", children: /* @__PURE__ */ jsx(Tooltip, { title: "Remove", asChild: true, children: /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: (e_2) => {
@@ -9598,7 +9616,7 @@ function EntityActionsEditTab(t0) {
9598
9616
  t12 = $[27];
9599
9617
  }
9600
9618
  let t13;
9601
- if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
9619
+ if ($[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9602
9620
  t13 = () => {
9603
9621
  setAddEntityActionDialogOpen(true);
9604
9622
  };
@@ -9607,7 +9625,7 @@ function EntityActionsEditTab(t0) {
9607
9625
  t13 = $[28];
9608
9626
  }
9609
9627
  let t14;
9610
- if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
9628
+ if ($[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9611
9629
  t14 = /* @__PURE__ */ jsx(Button, { onClick: t13, variant: "text", startIcon: /* @__PURE__ */ jsx(AddIcon, {}), children: "Add custom entity action" });
9612
9630
  $[29] = t14;
9613
9631
  } else {
@@ -9662,7 +9680,7 @@ function EntityActionsEditTab(t0) {
9662
9680
  t18 = $[46];
9663
9681
  }
9664
9682
  let t19;
9665
- if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
9683
+ if ($[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9666
9684
  t19 = /* @__PURE__ */ jsx("div", { style: {
9667
9685
  height: "52px"
9668
9686
  } });
@@ -9794,7 +9812,7 @@ function CollectionEditorDialog(props) {
9794
9812
  t3 = $[7];
9795
9813
  }
9796
9814
  let t4;
9797
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
9815
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9798
9816
  t4 = /* @__PURE__ */ jsx(DialogTitle, { hidden: true, children: "Collection editor" });
9799
9817
  $[8] = t4;
9800
9818
  } else {
@@ -9819,7 +9837,7 @@ function CollectionEditorDialog(props) {
9819
9837
  t6 = $[14];
9820
9838
  }
9821
9839
  let t7;
9822
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
9840
+ if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9823
9841
  t7 = () => setUnsavedChangesDialogOpen(false);
9824
9842
  $[15] = t7;
9825
9843
  } else {
@@ -10248,23 +10266,14 @@ function CollectionEditorInternal({
10248
10266
  }, getUser, getData: getDataWithPath, doCollectionInference, propertyConfigs, collectionEditable, extraIcon: extraView?.icon && /* @__PURE__ */ jsx(IconButton, { color: "primary", onClick: () => setCurrentView("extra_view"), children: extraView.icon }) }),
10249
10267
  /* @__PURE__ */ jsxs(DialogActions, { position: "absolute", children: [
10250
10268
  error && /* @__PURE__ */ jsx(ErrorView, { error }),
10251
- isNewCollection && includeTemplates && currentView === "import_data_mapping" && /* @__PURE__ */ jsxs(Button, { variant: "text", type: "button", color: "primary", onClick: () => {
10269
+ isNewCollection && includeTemplates && currentView === "import_data_mapping" && /* @__PURE__ */ jsx(Button, { variant: "text", type: "button", onClick: () => {
10252
10270
  importConfig.setInUse(false);
10253
10271
  return setCurrentView("welcome");
10254
- }, children: [
10255
- /* @__PURE__ */ jsx(ArrowBackIcon, {}),
10256
- "Back"
10257
- ] }),
10258
- isNewCollection && includeTemplates && currentView === "import_data_preview" && /* @__PURE__ */ jsxs(Button, { variant: "text", type: "button", color: "primary", onClick: () => {
10272
+ }, children: "Back" }),
10273
+ isNewCollection && includeTemplates && currentView === "import_data_preview" && /* @__PURE__ */ jsx(Button, { variant: "text", type: "button", onClick: () => {
10259
10274
  setCurrentView("import_data_mapping");
10260
- }, children: [
10261
- /* @__PURE__ */ jsx(ArrowBackIcon, {}),
10262
- "Back"
10263
- ] }),
10264
- isNewCollection && includeTemplates && currentView === "details" && /* @__PURE__ */ jsxs(Button, { variant: "text", color: "neutral", type: "button", onClick: () => setCurrentView("welcome"), children: [
10265
- /* @__PURE__ */ jsx(ArrowBackIcon, {}),
10266
- "Back"
10267
- ] }),
10275
+ }, children: "Back" }),
10276
+ isNewCollection && includeTemplates && currentView === "details" && /* @__PURE__ */ jsx(Button, { variant: "text", type: "button", onClick: () => setCurrentView("welcome"), children: "Back" }),
10268
10277
  isNewCollection && currentView === "properties" && /* @__PURE__ */ jsxs(Button, { variant: "text", type: "button", color: "neutral", onClick: () => setCurrentView("details"), children: [
10269
10278
  /* @__PURE__ */ jsx(ArrowBackIcon, {}),
10270
10279
  "Back"
@@ -10633,7 +10642,7 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
10633
10642
  let t17;
10634
10643
  let t18;
10635
10644
  let t19;
10636
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
10645
+ if ($[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10637
10646
  t17 = () => {
10638
10647
  setCurrentPropertyDialog(void 0);
10639
10648
  };
@@ -10650,7 +10659,7 @@ const ConfigControllerProvider = React__default.memo(function ConfigControllerPr
10650
10659
  t19 = $[46];
10651
10660
  }
10652
10661
  let t20;
10653
- if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
10662
+ if ($[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10654
10663
  t20 = [];
10655
10664
  $[47] = t20;
10656
10665
  } else {
@@ -10769,7 +10778,7 @@ function EditorCollectionAction(t0) {
10769
10778
  t5 = $[14];
10770
10779
  }
10771
10780
  let t6;
10772
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
10781
+ if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10773
10782
  t6 = /* @__PURE__ */ jsx(SettingsIcon, { size: "small" });
10774
10783
  $[15] = t6;
10775
10784
  } else {
@@ -10907,7 +10916,7 @@ function HomePageEditorCollectionAction(t0) {
10907
10916
  }
10908
10917
  let t7;
10909
10918
  let t8;
10910
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
10919
+ if ($[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10911
10920
  t7 = () => setDeleteRequested(false);
10912
10921
  t8 = /* @__PURE__ */ jsx(Fragment, { children: "Delete this collection?" });
10913
10922
  $[19] = t7;
@@ -10917,7 +10926,7 @@ function HomePageEditorCollectionAction(t0) {
10917
10926
  t8 = $[20];
10918
10927
  }
10919
10928
  let t9;
10920
- if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
10929
+ if ($[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10921
10930
  t9 = /* @__PURE__ */ jsxs(Fragment, { children: [
10922
10931
  " This will ",
10923
10932
  /* @__PURE__ */ jsx("b", { children: "not delete any data" }),
@@ -10985,7 +10994,7 @@ function CollectionViewHeaderAction(t0) {
10985
10994
  t2 = $[6];
10986
10995
  }
10987
10996
  let t3;
10988
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
10997
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10989
10998
  t3 = /* @__PURE__ */ jsx(SettingsIcon, { size: "small" });
10990
10999
  $[7] = t3;
10991
11000
  } else {
@@ -11036,7 +11045,7 @@ function PropertyAddColumnComponent(t0) {
11036
11045
  t2 = $[4];
11037
11046
  }
11038
11047
  let t3;
11039
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
11048
+ if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11040
11049
  t3 = /* @__PURE__ */ jsx(AddIcon, { color: "inherit" });
11041
11050
  $[5] = t3;
11042
11051
  } else {
@@ -11077,7 +11086,7 @@ function NewCollectionButton() {
11077
11086
  t0 = $[1];
11078
11087
  }
11079
11088
  let t1;
11080
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
11089
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11081
11090
  t1 = /* @__PURE__ */ jsx(AddIcon, {});
11082
11091
  $[2] = t1;
11083
11092
  } else {
@@ -11150,7 +11159,7 @@ function EditorCollectionActionStart(t0) {
11150
11159
  t32 = $[10];
11151
11160
  }
11152
11161
  let t4;
11153
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
11162
+ if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11154
11163
  t4 = /* @__PURE__ */ jsx(SaveIcon, {});
11155
11164
  $[11] = t4;
11156
11165
  } else {
@@ -11244,7 +11253,7 @@ function NewCollectionCard(t0) {
11244
11253
  }
11245
11254
  const canCreateCollections = t1;
11246
11255
  let t2;
11247
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
11256
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11248
11257
  t2 = cls("h-full p-4 min-h-[124px]");
11249
11258
  $[3] = t2;
11250
11259
  } else {
@@ -11268,14 +11277,14 @@ function NewCollectionCard(t0) {
11268
11277
  t3 = $[7];
11269
11278
  }
11270
11279
  let t4;
11271
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
11280
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11272
11281
  t4 = /* @__PURE__ */ jsx(AddIcon, { color: "primary", size: "large" });
11273
11282
  $[8] = t4;
11274
11283
  } else {
11275
11284
  t4 = $[8];
11276
11285
  }
11277
11286
  let t5;
11278
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
11287
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11279
11288
  t5 = /* @__PURE__ */ jsx(Typography, { color: "primary", variant: "caption", className: "font-medium", children: "Add new collection".toUpperCase() });
11280
11289
  $[9] = t5;
11281
11290
  } else {
@@ -11369,7 +11378,7 @@ function EditorEntityAction(t0) {
11369
11378
  t5 = $[13];
11370
11379
  }
11371
11380
  let t6;
11372
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
11381
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11373
11382
  t6 = /* @__PURE__ */ jsx(SettingsIcon, { size: "small" });
11374
11383
  $[14] = t6;
11375
11384
  } else {
@@ -11449,7 +11458,7 @@ function useCollectionEditorPlugin(t0) {
11449
11458
  t2 = $[9];
11450
11459
  }
11451
11460
  let t3;
11452
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
11461
+ if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11453
11462
  t3 = /* @__PURE__ */ jsx(NewCollectionButton, {});
11454
11463
  $[10] = t3;
11455
11464
  } else {
@@ -11483,7 +11492,7 @@ function useCollectionEditorPlugin(t0) {
11483
11492
  }
11484
11493
  let t6;
11485
11494
  let t7;
11486
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
11495
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11487
11496
  t6 = {
11488
11497
  CollectionActionsStart: EditorCollectionActionStart,
11489
11498
  CollectionActions: EditorCollectionAction,
@@ -11543,7 +11552,7 @@ function IntroWidget() {
11543
11552
  }
11544
11553
  let t1;
11545
11554
  let t2;
11546
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
11555
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11547
11556
  t1 = /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "uppercase", children: "No collections found" });
11548
11557
  t2 = /* @__PURE__ */ jsx(Typography, { children: "Start building collections in FireCMS easily. Map them to your existing database data, import from files, or use our templates." });
11549
11558
  $[3] = t1;
@@ -11569,7 +11578,7 @@ function IntroWidget() {
11569
11578
  t3 = $[7];
11570
11579
  }
11571
11580
  let t4;
11572
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
11581
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11573
11582
  t4 = /* @__PURE__ */ jsx(Typography, { color: "secondary", children: "You can also define collections programmatically." });
11574
11583
  $[8] = t4;
11575
11584
  } else {