@firecms/collection_editor 3.0.0-tw4.6 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -45,7 +45,7 @@
45
45
  }
46
46
  let t2;
47
47
  let t3;
48
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
48
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
49
49
  t2 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "label", color: "secondary", className: "ml-3.5", children: "Document view" });
50
50
  t3 = ui.cls("flex flex-row gap-4");
51
51
  $[2] = t2;
@@ -73,7 +73,7 @@
73
73
  }
74
74
  let t7;
75
75
  let t8;
76
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
76
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
77
77
  t7 = /* @__PURE__ */ jsxRuntime.jsx(ui.VerticalSplitIcon, {});
78
78
  t8 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "label", children: "Side panel" });
79
79
  $[8] = t7;
@@ -113,7 +113,7 @@
113
113
  }
114
114
  let t13;
115
115
  let t14;
116
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
116
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
117
117
  t13 = /* @__PURE__ */ jsxRuntime.jsx(ui.SquareIcon, {});
118
118
  t14 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "label", children: "Full screen" });
119
119
  $[17] = t13;
@@ -147,7 +147,7 @@
147
147
  t16 = $[24];
148
148
  }
149
149
  let t17;
150
- if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
150
+ if ($[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
151
151
  t17 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "caption", color: "secondary", className: "ml-3.5", children: "Should documents be opened full screen or in an inline side dialog" });
152
152
  $[25] = t17;
153
153
  } else {
@@ -169,7 +169,7 @@
169
169
  return t18;
170
170
  }
171
171
  function CollectionDetailsForm(t0) {
172
- const $ = reactCompilerRuntime.c(202);
172
+ const $ = reactCompilerRuntime.c(201);
173
173
  const {
174
174
  isNewCollection,
175
175
  reservedGroups,
@@ -254,7 +254,7 @@
254
254
  const collectionIcon = t5;
255
255
  groups?.filter((group) => !reservedGroups?.includes(group));
256
256
  let t6;
257
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
257
+ if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
258
258
  t6 = {
259
259
  ref: groupRef
260
260
  };
@@ -302,7 +302,7 @@
302
302
  t10 = $[17];
303
303
  }
304
304
  let t11;
305
- if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
305
+ if ($[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
306
306
  t11 = () => setIconDialogOpen(true);
307
307
  $[18] = t11;
308
308
  } else {
@@ -397,201 +397,199 @@
397
397
  t23 = $[41];
398
398
  }
399
399
  let t24;
400
- if ($[42] === Symbol.for("react.memo_cache_sentinel")) {
400
+ if ($[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
401
401
  t24 = ui.cls("col-span-12 ");
402
402
  $[42] = t24;
403
403
  } else {
404
404
  t24 = $[42];
405
405
  }
406
- const t25 = !isNewCollection;
407
- const t26 = showErrors && Boolean(errors.path);
408
- let t27;
409
- if ($[43] !== t25 || $[44] !== t26) {
410
- t27 = /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: "path", as: ui.DebouncedTextField, label: "Path", disabled: t25, required: true, error: t26 });
406
+ const t25 = showErrors && Boolean(errors.path);
407
+ let t26;
408
+ if ($[43] !== t25) {
409
+ t26 = /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: "path", as: ui.DebouncedTextField, label: "Path", required: true, error: t25 });
411
410
  $[43] = t25;
412
411
  $[44] = t26;
413
- $[45] = t27;
414
412
  } else {
415
- t27 = $[45];
413
+ t26 = $[44];
416
414
  }
417
- const t28 = touched.path && Boolean(errors.path);
418
- 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";
419
- let t30;
420
- if ($[46] !== t28 || $[47] !== t29) {
421
- t30 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t28, children: t29 });
415
+ const t27 = touched.path && Boolean(errors.path);
416
+ 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";
417
+ let t29;
418
+ if ($[45] !== t27 || $[46] !== t28) {
419
+ t29 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t27, children: t28 });
420
+ $[45] = t27;
422
421
  $[46] = t28;
423
422
  $[47] = t29;
424
- $[48] = t30;
425
423
  } else {
426
- t30 = $[48];
424
+ t29 = $[47];
427
425
  }
428
- let t31;
429
- if ($[49] !== t27 || $[50] !== t30) {
430
- t31 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t24, children: [
431
- t27,
432
- t30
426
+ let t30;
427
+ if ($[48] !== t26 || $[49] !== t29) {
428
+ t30 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t24, children: [
429
+ t26,
430
+ t29
433
431
  ] });
434
- $[49] = t27;
432
+ $[48] = t26;
433
+ $[49] = t29;
435
434
  $[50] = t30;
436
- $[51] = t31;
437
435
  } else {
438
- t31 = $[51];
436
+ t30 = $[50];
439
437
  }
440
- const t32 = values.openEntityMode ?? "side_panel";
441
- let t33;
442
- if ($[52] !== setFieldValue) {
443
- t33 = (value) => setFieldValue("openEntityMode", value);
444
- $[52] = setFieldValue;
445
- $[53] = t33;
438
+ const t31 = values.openEntityMode ?? "side_panel";
439
+ let t32;
440
+ if ($[51] !== setFieldValue) {
441
+ t32 = (value) => setFieldValue("openEntityMode", value);
442
+ $[51] = setFieldValue;
443
+ $[52] = t32;
446
444
  } else {
447
- t33 = $[53];
445
+ t32 = $[52];
448
446
  }
449
- let t34;
450
- if ($[54] !== t32 || $[55] !== t33) {
451
- t34 = /* @__PURE__ */ jsxRuntime.jsx(LayoutModeSwitch, { className: "col-span-12", value: t32, onChange: t33 });
447
+ let t33;
448
+ if ($[53] !== t31 || $[54] !== t32) {
449
+ t33 = /* @__PURE__ */ jsxRuntime.jsx(LayoutModeSwitch, { className: "col-span-12", value: t31, onChange: t32 });
450
+ $[53] = t31;
452
451
  $[54] = t32;
453
452
  $[55] = t33;
454
- $[56] = t34;
455
453
  } else {
456
- t34 = $[56];
454
+ t33 = $[55];
457
455
  }
458
- 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";
459
- let t36;
460
- if ($[57] !== setFieldValue) {
461
- t36 = (v) => setFieldValue("history", v);
462
- $[57] = setFieldValue;
463
- $[58] = t36;
456
+ 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";
457
+ let t35;
458
+ if ($[56] !== setFieldValue) {
459
+ t35 = (v) => setFieldValue("history", v);
460
+ $[56] = setFieldValue;
461
+ $[57] = t35;
464
462
  } else {
465
- t36 = $[58];
463
+ t35 = $[57];
466
464
  }
467
- const t37 = values.history === void 0 ? null : values.history;
468
- let t38;
469
- if ($[59] !== t35 || $[60] !== t36 || $[61] !== t37) {
470
- t38 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", size: "large", allowIndeterminate: true, label: t35, onValueChange: t36, value: t37 });
465
+ const t36 = values.history === void 0 ? null : values.history;
466
+ let t37;
467
+ if ($[58] !== t34 || $[59] !== t35 || $[60] !== t36) {
468
+ t37 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", size: "large", allowIndeterminate: true, label: t34, onValueChange: t35, value: t36 });
469
+ $[58] = t34;
471
470
  $[59] = t35;
472
471
  $[60] = t36;
473
472
  $[61] = t37;
474
- $[62] = t38;
475
473
  } else {
476
- t38 = $[62];
474
+ t37 = $[61];
477
475
  }
478
- let t39;
479
- if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
480
- t39 = /* @__PURE__ */ jsxRuntime.jsxs(core.FieldCaption, { children: [
476
+ let t38;
477
+ if ($[62] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
478
+ t38 = /* @__PURE__ */ jsxRuntime.jsxs(core.FieldCaption, { children: [
481
479
  "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 ",
482
480
  /* @__PURE__ */ jsxRuntime.jsx("b", { children: "__history" }),
483
481
  "."
484
482
  ] });
485
- $[63] = t39;
483
+ $[62] = t38;
486
484
  } else {
487
- t39 = $[63];
485
+ t38 = $[62];
488
486
  }
489
- let t40;
490
- if ($[64] !== t38) {
491
- t40 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
492
- t38,
493
- t39
487
+ let t39;
488
+ if ($[63] !== t37) {
489
+ t39 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
490
+ t37,
491
+ t38
494
492
  ] });
495
- $[64] = t38;
496
- $[65] = t40;
493
+ $[63] = t37;
494
+ $[64] = t39;
497
495
  } else {
498
- t40 = $[65];
496
+ t39 = $[64];
499
497
  }
500
- let t41;
501
- if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
502
- t41 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500 text-text-secondary dark:text-text-secondary-dark", children: [
498
+ let t40;
499
+ if ($[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
500
+ t40 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500", children: [
503
501
  /* @__PURE__ */ jsxRuntime.jsx(ui.SettingsIcon, {}),
504
502
  /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "ml-2", children: "Advanced" })
505
503
  ] });
506
- $[66] = t41;
504
+ $[65] = t40;
507
505
  } else {
508
- t41 = $[66];
506
+ t40 = $[65];
509
507
  }
510
- const t42 = !isNewCollection;
511
- const t43 = showErrors && Boolean(errors.id);
512
- let t44;
513
- if ($[67] !== t42 || $[68] !== t43) {
514
- t44 = /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: "id", as: ui.DebouncedTextField, disabled: t42, label: "Collection id", error: t43 });
508
+ const t41 = !isNewCollection;
509
+ const t42 = showErrors && Boolean(errors.id);
510
+ let t43;
511
+ if ($[66] !== t41 || $[67] !== t42) {
512
+ t43 = /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: "id", as: ui.DebouncedTextField, disabled: t41, label: "Collection id", error: t42 });
513
+ $[66] = t41;
515
514
  $[67] = t42;
516
515
  $[68] = t43;
517
- $[69] = t44;
518
516
  } else {
519
- t44 = $[69];
517
+ t43 = $[68];
520
518
  }
521
- const t45 = touched.id && Boolean(errors.id);
522
- const t46 = touched.id && Boolean(errors.id) ? errors.id : "This id identifies this collection. Typically the same as the path.";
523
- let t47;
524
- if ($[70] !== t45 || $[71] !== t46) {
525
- t47 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t45, children: t46 });
519
+ const t44 = touched.id && Boolean(errors.id);
520
+ const t45 = touched.id && Boolean(errors.id) ? errors.id : "This id identifies this collection. Typically the same as the path.";
521
+ let t46;
522
+ if ($[69] !== t44 || $[70] !== t45) {
523
+ t46 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t44, children: t45 });
524
+ $[69] = t44;
526
525
  $[70] = t45;
527
526
  $[71] = t46;
528
- $[72] = t47;
529
527
  } else {
530
- t47 = $[72];
528
+ t46 = $[71];
531
529
  }
532
- let t48;
533
- if ($[73] !== t44 || $[74] !== t47) {
534
- t48 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
535
- t44,
536
- t47
530
+ let t47;
531
+ if ($[72] !== t43 || $[73] !== t46) {
532
+ t47 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
533
+ t43,
534
+ t46
537
535
  ] });
538
- $[73] = t44;
536
+ $[72] = t43;
537
+ $[73] = t46;
539
538
  $[74] = t47;
540
- $[75] = t48;
541
539
  } else {
542
- t48 = $[75];
540
+ t47 = $[74];
543
541
  }
544
- const t49 = showErrors && Boolean(errors.singularName);
545
- let t50;
546
- if ($[76] !== handleChange || $[77] !== setFieldTouched) {
547
- t50 = (e_0) => {
542
+ const t48 = showErrors && Boolean(errors.singularName);
543
+ let t49;
544
+ if ($[75] !== handleChange || $[76] !== setFieldTouched) {
545
+ t49 = (e_0) => {
548
546
  setFieldTouched("singularName", true);
549
547
  return handleChange(e_0);
550
548
  };
551
- $[76] = handleChange;
552
- $[77] = setFieldTouched;
553
- $[78] = t50;
549
+ $[75] = handleChange;
550
+ $[76] = setFieldTouched;
551
+ $[77] = t49;
554
552
  } else {
555
- t50 = $[78];
553
+ t49 = $[77];
556
554
  }
557
- const t51 = values.singularName ?? "";
558
- let t52;
559
- if ($[79] !== t49 || $[80] !== t50 || $[81] !== t51) {
560
- t52 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t49, name: "singularName", "aria-describedby": "singularName-helper", onChange: t50, value: t51, label: "Singular name" });
555
+ const t50 = values.singularName ?? "";
556
+ let t51;
557
+ if ($[78] !== t48 || $[79] !== t49 || $[80] !== t50) {
558
+ t51 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t48, name: "singularName", "aria-describedby": "singularName-helper", onChange: t49, value: t50, label: "Singular name" });
559
+ $[78] = t48;
561
560
  $[79] = t49;
562
561
  $[80] = t50;
563
562
  $[81] = t51;
564
- $[82] = t52;
565
563
  } else {
566
- t52 = $[82];
564
+ t51 = $[81];
567
565
  }
568
- const t53 = showErrors && Boolean(errors.singularName);
569
- const t54 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define a singular name for your entities";
570
- let t55;
571
- if ($[83] !== t53 || $[84] !== t54) {
572
- t55 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t53, children: t54 });
566
+ const t52 = showErrors && Boolean(errors.singularName);
567
+ const t53 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define a singular name for your entities";
568
+ let t54;
569
+ if ($[82] !== t52 || $[83] !== t53) {
570
+ t54 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t52, children: t53 });
571
+ $[82] = t52;
573
572
  $[83] = t53;
574
573
  $[84] = t54;
575
- $[85] = t55;
576
574
  } else {
577
- t55 = $[85];
575
+ t54 = $[84];
578
576
  }
579
- let t56;
580
- if ($[86] !== t52 || $[87] !== t55) {
581
- t56 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
582
- t52,
583
- t55
577
+ let t55;
578
+ if ($[85] !== t51 || $[86] !== t54) {
579
+ t55 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
580
+ t51,
581
+ t54
584
582
  ] });
585
- $[86] = t52;
583
+ $[85] = t51;
584
+ $[86] = t54;
586
585
  $[87] = t55;
587
- $[88] = t56;
588
586
  } else {
589
- t56 = $[88];
587
+ t55 = $[87];
590
588
  }
591
- const t57 = showErrors && Boolean(errors.sideDialogWidth);
592
- let t58;
593
- if ($[89] !== setFieldTouched || $[90] !== setFieldValue) {
594
- t58 = (e_1) => {
589
+ const t56 = showErrors && Boolean(errors.sideDialogWidth);
590
+ let t57;
591
+ if ($[88] !== setFieldTouched || $[89] !== setFieldValue) {
592
+ t57 = (e_1) => {
595
593
  setFieldTouched("sideDialogWidth", true);
596
594
  const value_0 = e_1.target.value;
597
595
  if (!value_0) {
@@ -602,440 +600,440 @@
602
600
  }
603
601
  }
604
602
  };
605
- $[89] = setFieldTouched;
606
- $[90] = setFieldValue;
607
- $[91] = t58;
603
+ $[88] = setFieldTouched;
604
+ $[89] = setFieldValue;
605
+ $[90] = t57;
608
606
  } else {
609
- t58 = $[91];
607
+ t57 = $[90];
610
608
  }
611
- let t59;
612
- if ($[92] !== setFieldValue) {
613
- t59 = () => {
609
+ let t58;
610
+ if ($[91] !== setFieldValue) {
611
+ t58 = () => {
614
612
  setFieldValue("sideDialogWidth", null);
615
613
  };
616
- $[92] = setFieldValue;
617
- $[93] = t59;
614
+ $[91] = setFieldValue;
615
+ $[92] = t58;
618
616
  } else {
619
- t59 = $[93];
617
+ t58 = $[92];
620
618
  }
621
- const t60 = !values.sideDialogWidth;
622
- let t61;
623
- if ($[94] === Symbol.for("react.memo_cache_sentinel")) {
624
- t61 = /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, { size: "small" });
625
- $[94] = t61;
619
+ const t59 = !values.sideDialogWidth;
620
+ let t60;
621
+ if ($[93] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
622
+ t60 = /* @__PURE__ */ jsxRuntime.jsx(ui.CloseIcon, { size: "small" });
623
+ $[93] = t60;
626
624
  } else {
627
- t61 = $[94];
625
+ t60 = $[93];
628
626
  }
629
- let t62;
630
- if ($[95] !== t59 || $[96] !== t60) {
631
- t62 = /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", onClick: t59, disabled: t60, children: t61 });
627
+ let t61;
628
+ if ($[94] !== t58 || $[95] !== t59) {
629
+ t61 = /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", onClick: t58, disabled: t59, children: t60 });
630
+ $[94] = t58;
632
631
  $[95] = t59;
633
- $[96] = t60;
634
- $[97] = t62;
632
+ $[96] = t61;
635
633
  } else {
636
- t62 = $[97];
634
+ t61 = $[96];
637
635
  }
638
- const t63 = values.sideDialogWidth ?? "";
639
- let t64;
640
- if ($[98] !== t57 || $[99] !== t58 || $[100] !== t62 || $[101] !== t63) {
641
- t64 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t57, name: "sideDialogWidth", type: "number", "aria-describedby": "sideDialogWidth-helper", onChange: t58, endAdornment: t62, value: t63, label: "Side dialog width" });
636
+ const t62 = values.sideDialogWidth ?? "";
637
+ let t63;
638
+ if ($[97] !== t56 || $[98] !== t57 || $[99] !== t61 || $[100] !== t62) {
639
+ t63 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t56, name: "sideDialogWidth", type: "number", "aria-describedby": "sideDialogWidth-helper", onChange: t57, endAdornment: t61, value: t62, label: "Side dialog width" });
640
+ $[97] = t56;
642
641
  $[98] = t57;
643
- $[99] = t58;
642
+ $[99] = t61;
644
643
  $[100] = t62;
645
644
  $[101] = t63;
646
- $[102] = t64;
647
645
  } else {
648
- t64 = $[102];
646
+ t63 = $[101];
649
647
  }
650
- const t65 = showErrors && Boolean(errors.singularName);
651
- const t66 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define the width (in pixels) of entities side dialog. Default is 768px";
652
- let t67;
653
- if ($[103] !== t65 || $[104] !== t66) {
654
- t67 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t65, children: t66 });
648
+ const t64 = showErrors && Boolean(errors.singularName);
649
+ const t65 = showErrors && Boolean(errors.singularName) ? errors.singularName : "Optionally define the width (in pixels) of entities side dialog. Default is 768px";
650
+ let t66;
651
+ if ($[102] !== t64 || $[103] !== t65) {
652
+ t66 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t64, children: t65 });
653
+ $[102] = t64;
655
654
  $[103] = t65;
656
655
  $[104] = t66;
657
- $[105] = t67;
658
656
  } else {
659
- t67 = $[105];
657
+ t66 = $[104];
660
658
  }
661
- let t68;
662
- if ($[106] !== t64 || $[107] !== t67) {
663
- t68 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
664
- t64,
665
- t67
659
+ let t67;
660
+ if ($[105] !== t63 || $[106] !== t66) {
661
+ t67 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
662
+ t63,
663
+ t66
666
664
  ] });
667
- $[106] = t64;
665
+ $[105] = t63;
666
+ $[106] = t66;
668
667
  $[107] = t67;
669
- $[108] = t68;
670
668
  } else {
671
- t68 = $[108];
669
+ t67 = $[107];
672
670
  }
673
- const t69 = showErrors && Boolean(errors.description);
674
- const t70 = values.description ?? "";
675
- let t71;
676
- if ($[109] !== handleChange || $[110] !== t69 || $[111] !== t70) {
677
- t71 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t69, name: "description", value: t70, onChange: handleChange, multiline: true, minRows: 2, "aria-describedby": "description-helper-text", label: "Description" });
678
- $[109] = handleChange;
671
+ const t68 = showErrors && Boolean(errors.description);
672
+ const t69 = values.description ?? "";
673
+ let t70;
674
+ if ($[108] !== handleChange || $[109] !== t68 || $[110] !== t69) {
675
+ t70 = /* @__PURE__ */ jsxRuntime.jsx(ui.TextField, { error: t68, name: "description", value: t69, onChange: handleChange, multiline: true, minRows: 2, "aria-describedby": "description-helper-text", label: "Description" });
676
+ $[108] = handleChange;
677
+ $[109] = t68;
679
678
  $[110] = t69;
680
679
  $[111] = t70;
681
- $[112] = t71;
682
680
  } else {
683
- t71 = $[112];
681
+ t70 = $[111];
684
682
  }
685
- const t72 = showErrors && Boolean(errors.description);
686
- const t73 = showErrors && Boolean(errors.description) ? errors.description : "Description of the collection, you can use markdown";
687
- let t74;
688
- if ($[113] !== t72 || $[114] !== t73) {
689
- t74 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t72, children: t73 });
683
+ const t71 = showErrors && Boolean(errors.description);
684
+ const t72 = showErrors && Boolean(errors.description) ? errors.description : "Description of the collection, you can use markdown";
685
+ let t73;
686
+ if ($[112] !== t71 || $[113] !== t72) {
687
+ t73 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { error: t71, children: t72 });
688
+ $[112] = t71;
690
689
  $[113] = t72;
691
690
  $[114] = t73;
692
- $[115] = t74;
693
691
  } else {
694
- t74 = $[115];
692
+ t73 = $[114];
695
693
  }
696
- let t75;
697
- if ($[116] !== t71 || $[117] !== t74) {
698
- t75 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
699
- t71,
700
- t74
694
+ let t74;
695
+ if ($[115] !== t70 || $[116] !== t73) {
696
+ t74 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
697
+ t70,
698
+ t73
701
699
  ] });
702
- $[116] = t71;
700
+ $[115] = t70;
701
+ $[116] = t73;
703
702
  $[117] = t74;
704
- $[118] = t75;
705
- } else {
706
- t75 = $[118];
707
- }
708
- const t76 = values.defaultSize ?? "";
709
- let t77;
710
- if ($[119] === Symbol.for("react.memo_cache_sentinel")) {
711
- t77 = ["xs", "s", "m", "l", "xl"].map(_temp2$8);
712
- $[119] = t77;
713
703
  } else {
714
- t77 = $[119];
704
+ t74 = $[117];
715
705
  }
716
- let t78;
717
- if ($[120] !== handleChange || $[121] !== t76) {
718
- t78 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Select, { name: "defaultSize", size: "large", fullWidth: true, label: "Default row size", position: "item-aligned", onChange: handleChange, value: t76, renderValue: _temp$c, children: t77 }) });
719
- $[120] = handleChange;
720
- $[121] = t76;
721
- $[122] = t78;
706
+ const t75 = values.defaultSize ?? "";
707
+ let t76;
708
+ if ($[118] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
709
+ t76 = ["xs", "s", "m", "l", "xl"].map(_temp2$8);
710
+ $[118] = t76;
722
711
  } else {
723
- t78 = $[122];
712
+ t76 = $[118];
724
713
  }
725
- const t79 = values.includeJsonView === void 0 || values.includeJsonView ? "Include JSON view" : "Do not include JSON view";
726
- let t80;
727
- if ($[123] !== setFieldValue) {
728
- t80 = (v_0) => setFieldValue("includeJsonView", v_0);
729
- $[123] = setFieldValue;
730
- $[124] = t80;
731
- } else {
732
- t80 = $[124];
733
- }
734
- const t81 = values.includeJsonView === void 0 ? true : values.includeJsonView;
735
- let t82;
736
- if ($[125] !== t79 || $[126] !== t80 || $[127] !== t81) {
737
- t82 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", size: "large", label: t79, onValueChange: t80, value: t81 });
714
+ let t77;
715
+ if ($[119] !== handleChange || $[120] !== t75) {
716
+ t77 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Select, { name: "defaultSize", size: "large", fullWidth: true, label: "Default row size", position: "item-aligned", onChange: handleChange, value: t75, renderValue: _temp$c, children: t76 }) });
717
+ $[119] = handleChange;
718
+ $[120] = t75;
719
+ $[121] = t77;
720
+ } else {
721
+ t77 = $[121];
722
+ }
723
+ const t78 = values.includeJsonView === void 0 || values.includeJsonView ? "Include JSON view" : "Do not include JSON view";
724
+ let t79;
725
+ if ($[122] !== setFieldValue) {
726
+ t79 = (v_0) => setFieldValue("includeJsonView", v_0);
727
+ $[122] = setFieldValue;
728
+ $[123] = t79;
729
+ } else {
730
+ t79 = $[123];
731
+ }
732
+ const t80 = values.includeJsonView === void 0 ? true : values.includeJsonView;
733
+ let t81;
734
+ if ($[124] !== t78 || $[125] !== t79 || $[126] !== t80) {
735
+ t81 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", size: "large", label: t78, onValueChange: t79, value: t80 });
736
+ $[124] = t78;
738
737
  $[125] = t79;
739
738
  $[126] = t80;
740
739
  $[127] = t81;
740
+ } else {
741
+ t81 = $[127];
742
+ }
743
+ let t82;
744
+ if ($[128] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
745
+ t82 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { children: "Include the JSON representation of the document." });
741
746
  $[128] = t82;
742
747
  } else {
743
748
  t82 = $[128];
744
749
  }
745
750
  let t83;
746
- if ($[129] === Symbol.for("react.memo_cache_sentinel")) {
747
- t83 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { children: "Include the JSON representation of the document." });
748
- $[129] = t83;
749
- } else {
750
- t83 = $[129];
751
- }
752
- let t84;
753
- if ($[130] !== t82) {
754
- t84 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
755
- t82,
756
- t83
757
- ] });
758
- $[130] = t82;
759
- $[131] = t84;
760
- } else {
761
- t84 = $[131];
762
- }
763
- 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";
764
- let t86;
765
- if ($[132] !== setFieldValue) {
766
- t86 = (v_1) => setFieldValue("inlineEditing", v_1);
767
- $[132] = setFieldValue;
768
- $[133] = t86;
769
- } else {
770
- t86 = $[133];
771
- }
772
- const t87 = values.inlineEditing === void 0 ? true : values.inlineEditing;
773
- let t88;
774
- if ($[134] !== t85 || $[135] !== t86 || $[136] !== t87) {
775
- t88 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", size: "large", label: t85, onValueChange: t86, value: t87 });
751
+ if ($[129] !== t81) {
752
+ t83 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
753
+ t81,
754
+ t82
755
+ ] });
756
+ $[129] = t81;
757
+ $[130] = t83;
758
+ } else {
759
+ t83 = $[130];
760
+ }
761
+ 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";
762
+ let t85;
763
+ if ($[131] !== setFieldValue) {
764
+ t85 = (v_1) => setFieldValue("inlineEditing", v_1);
765
+ $[131] = setFieldValue;
766
+ $[132] = t85;
767
+ } else {
768
+ t85 = $[132];
769
+ }
770
+ const t86 = values.inlineEditing === void 0 ? true : values.inlineEditing;
771
+ let t87;
772
+ if ($[133] !== t84 || $[134] !== t85 || $[135] !== t86) {
773
+ t87 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", size: "large", label: t84, onValueChange: t85, value: t86 });
774
+ $[133] = t84;
776
775
  $[134] = t85;
777
776
  $[135] = t86;
778
777
  $[136] = t87;
778
+ } else {
779
+ t87 = $[136];
780
+ }
781
+ let t88;
782
+ if ($[137] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
783
+ t88 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { children: "Allow editing data directly in the table view, without opening the form view." });
779
784
  $[137] = t88;
780
785
  } else {
781
786
  t88 = $[137];
782
787
  }
783
788
  let t89;
784
- if ($[138] === Symbol.for("react.memo_cache_sentinel")) {
785
- t89 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { children: "Allow editing data directly in the table view, without opening the form view." });
786
- $[138] = t89;
787
- } else {
788
- t89 = $[138];
789
- }
790
- let t90;
791
- if ($[139] !== t88) {
792
- t90 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
793
- t88,
794
- t89
789
+ if ($[138] !== t87) {
790
+ t89 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
791
+ t87,
792
+ t88
795
793
  ] });
796
- $[139] = t88;
797
- $[140] = t90;
794
+ $[138] = t87;
795
+ $[139] = t89;
798
796
  } else {
799
- t90 = $[140];
797
+ t89 = $[139];
800
798
  }
801
- const t91 = customIdValue === "code_defined";
802
- let t92;
803
- if ($[141] !== setFieldValue) {
804
- t92 = (v_2) => {
799
+ const t90 = customIdValue === "code_defined";
800
+ let t91;
801
+ if ($[140] !== setFieldValue) {
802
+ t91 = (v_2) => {
805
803
  if (v_2 === "code_defined") {
806
804
  throw new Error("This should not happen");
807
805
  }
808
806
  setFieldValue("customId", v_2);
809
807
  };
810
- $[141] = setFieldValue;
811
- $[142] = t92;
808
+ $[140] = setFieldValue;
809
+ $[141] = t91;
812
810
  } else {
813
- t92 = $[142];
811
+ t91 = $[141];
814
812
  }
815
- const t93 = customIdValue ?? "";
813
+ const t92 = customIdValue ?? "";
814
+ let t93;
816
815
  let t94;
817
816
  let t95;
818
- let t96;
819
- if ($[143] === Symbol.for("react.memo_cache_sentinel")) {
820
- t94 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "false", children: "Document ID is generated automatically" });
821
- t95 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "true", children: "Users must define an ID" });
822
- t96 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "optional", children: "Users can define an ID, but it is not required" });
817
+ if ($[142] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
818
+ t93 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "false", children: "Document ID is generated automatically" });
819
+ t94 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "true", children: "Users must define an ID" });
820
+ t95 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "optional", children: "Users can define an ID, but it is not required" });
821
+ $[142] = t93;
823
822
  $[143] = t94;
824
823
  $[144] = t95;
825
- $[145] = t96;
826
824
  } else {
825
+ t93 = $[142];
827
826
  t94 = $[143];
828
827
  t95 = $[144];
829
- t96 = $[145];
830
828
  }
831
- let t97;
832
- if ($[146] !== t91 || $[147] !== t92 || $[148] !== t93) {
833
- t97 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Select, { name: "customId", label: "Document IDs generation", position: "item-aligned", size: "large", fullWidth: true, disabled: t91, onValueChange: t92, value: t93, renderValue: _temp3$5, children: [
829
+ let t96;
830
+ if ($[145] !== t90 || $[146] !== t91 || $[147] !== t92) {
831
+ t96 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Select, { name: "customId", label: "Document IDs generation", position: "item-aligned", size: "large", fullWidth: true, disabled: t90, onValueChange: t91, value: t92, renderValue: _temp3$5, children: [
832
+ t93,
834
833
  t94,
835
- t95,
836
- t96
834
+ t95
837
835
  ] }) });
836
+ $[145] = t90;
838
837
  $[146] = t91;
839
838
  $[147] = t92;
840
- $[148] = t93;
841
- $[149] = t97;
839
+ $[148] = t96;
842
840
  } else {
843
- t97 = $[149];
841
+ t96 = $[148];
844
842
  }
845
- let t98;
846
- if ($[150] !== setFieldValue) {
847
- t98 = (v_3) => setFieldValue("collectionGroup", v_3);
848
- $[150] = setFieldValue;
849
- $[151] = t98;
843
+ let t97;
844
+ if ($[149] !== setFieldValue) {
845
+ t97 = (v_3) => setFieldValue("collectionGroup", v_3);
846
+ $[149] = setFieldValue;
847
+ $[150] = t97;
848
+ } else {
849
+ t97 = $[150];
850
+ }
851
+ const t98 = values.collectionGroup ?? false;
852
+ let t99;
853
+ if ($[151] !== t97 || $[152] !== t98) {
854
+ t99 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", size: "large", label: "Collection group", onValueChange: t97, value: t98 });
855
+ $[151] = t97;
856
+ $[152] = t98;
857
+ $[153] = t99;
850
858
  } else {
851
- t98 = $[151];
859
+ t99 = $[153];
852
860
  }
853
- const t99 = values.collectionGroup ?? false;
854
861
  let t100;
855
- if ($[152] !== t98 || $[153] !== t99) {
856
- t100 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", size: "large", label: "Collection group", onValueChange: t98, value: t99 });
857
- $[152] = t98;
858
- $[153] = t99;
862
+ if ($[154] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
863
+ t100 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { children: "A collection group consists of all collections with the same path. This allows you to query over multiple collections at once." });
859
864
  $[154] = t100;
860
865
  } else {
861
866
  t100 = $[154];
862
867
  }
863
868
  let t101;
864
- if ($[155] === Symbol.for("react.memo_cache_sentinel")) {
865
- t101 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { children: "A collection group consists of all collections with the same path. This allows you to query over multiple collections at once." });
866
- $[155] = t101;
867
- } else {
868
- t101 = $[155];
869
- }
870
- let t102;
871
- if ($[156] !== t100) {
872
- t102 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12 mt-4", children: [
873
- t100,
874
- t101
869
+ if ($[155] !== t99) {
870
+ t101 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12 mt-4", children: [
871
+ t99,
872
+ t100
875
873
  ] });
876
- $[156] = t100;
877
- $[157] = t102;
874
+ $[155] = t99;
875
+ $[156] = t101;
878
876
  } else {
879
- t102 = $[157];
877
+ t101 = $[156];
880
878
  }
881
- let t103;
882
- if ($[158] !== setFieldValue) {
883
- t103 = (v_4) => setFieldValue("textSearchEnabled", v_4);
884
- $[158] = setFieldValue;
885
- $[159] = t103;
879
+ let t102;
880
+ if ($[157] !== setFieldValue) {
881
+ t102 = (v_4) => setFieldValue("textSearchEnabled", v_4);
882
+ $[157] = setFieldValue;
883
+ $[158] = t102;
884
+ } else {
885
+ t102 = $[158];
886
+ }
887
+ const t103 = values.textSearchEnabled ?? false;
888
+ let t104;
889
+ if ($[159] !== t102 || $[160] !== t103) {
890
+ t104 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", size: "large", label: "Enable text search for this collection", onValueChange: t102, value: t103 });
891
+ $[159] = t102;
892
+ $[160] = t103;
893
+ $[161] = t104;
886
894
  } else {
887
- t103 = $[159];
895
+ t104 = $[161];
888
896
  }
889
- const t104 = values.textSearchEnabled ?? false;
890
897
  let t105;
891
- if ($[160] !== t103 || $[161] !== t104) {
892
- t105 = /* @__PURE__ */ jsxRuntime.jsx(ui.BooleanSwitchWithLabel, { position: "start", size: "large", label: "Enable text search for this collection", onValueChange: t103, value: t104 });
893
- $[160] = t103;
894
- $[161] = t104;
898
+ if ($[162] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
899
+ t105 = /* @__PURE__ */ jsxRuntime.jsx(core.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." });
895
900
  $[162] = t105;
896
901
  } else {
897
902
  t105 = $[162];
898
903
  }
899
904
  let t106;
900
- if ($[163] === Symbol.for("react.memo_cache_sentinel")) {
901
- t106 = /* @__PURE__ */ jsxRuntime.jsx(core.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." });
902
- $[163] = t106;
905
+ if ($[163] !== t104) {
906
+ t106 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
907
+ t104,
908
+ t105
909
+ ] });
910
+ $[163] = t104;
911
+ $[164] = t106;
903
912
  } else {
904
- t106 = $[163];
913
+ t106 = $[164];
905
914
  }
906
915
  let t107;
907
- if ($[164] !== t105) {
908
- t107 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
909
- t105,
916
+ if ($[165] !== t101 || $[166] !== t106 || $[167] !== t47 || $[168] !== t55 || $[169] !== t67 || $[170] !== t74 || $[171] !== t77 || $[172] !== t83 || $[173] !== t89 || $[174] !== t96) {
917
+ t107 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-12 gap-4 p-4", children: [
918
+ t47,
919
+ t55,
920
+ t67,
921
+ t74,
922
+ t77,
923
+ t83,
924
+ t89,
925
+ t96,
926
+ t101,
910
927
  t106
911
928
  ] });
912
- $[164] = t105;
913
- $[165] = t107;
929
+ $[165] = t101;
930
+ $[166] = t106;
931
+ $[167] = t47;
932
+ $[168] = t55;
933
+ $[169] = t67;
934
+ $[170] = t74;
935
+ $[171] = t77;
936
+ $[172] = t83;
937
+ $[173] = t89;
938
+ $[174] = t96;
939
+ $[175] = t107;
914
940
  } else {
915
- t107 = $[165];
941
+ t107 = $[175];
916
942
  }
917
943
  let t108;
918
- if ($[166] !== t102 || $[167] !== t107 || $[168] !== t48 || $[169] !== t56 || $[170] !== t68 || $[171] !== t75 || $[172] !== t78 || $[173] !== t84 || $[174] !== t90 || $[175] !== t97) {
919
- t108 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-12 gap-4 p-4", children: [
920
- t48,
921
- t56,
922
- t68,
923
- t75,
924
- t78,
925
- t84,
926
- t90,
927
- t97,
928
- t102,
929
- t107
930
- ] });
931
- $[166] = t102;
932
- $[167] = t107;
933
- $[168] = t48;
934
- $[169] = t56;
935
- $[170] = t68;
936
- $[171] = t75;
937
- $[172] = t78;
938
- $[173] = t84;
939
- $[174] = t90;
940
- $[175] = t97;
941
- $[176] = t108;
942
- } else {
943
- t108 = $[176];
944
- }
945
- let t109;
946
- if ($[177] !== advancedPanelExpanded || $[178] !== t108) {
947
- t109 = /* @__PURE__ */ jsxRuntime.jsx(ui.ExpandablePanel, { expanded: advancedPanelExpanded, onExpandedChange: setAdvancedPanelExpanded, title: t41, initiallyExpanded: false, children: t108 });
948
- $[177] = advancedPanelExpanded;
944
+ if ($[176] !== advancedPanelExpanded || $[177] !== t107) {
945
+ t108 = /* @__PURE__ */ jsxRuntime.jsx(ui.ExpandablePanel, { expanded: advancedPanelExpanded, onExpandedChange: setAdvancedPanelExpanded, title: t40, initiallyExpanded: false, children: t107 });
946
+ $[176] = advancedPanelExpanded;
947
+ $[177] = t107;
949
948
  $[178] = t108;
950
- $[179] = t109;
951
949
  } else {
952
- t109 = $[179];
950
+ t108 = $[178];
953
951
  }
954
- let t110;
955
- if ($[180] !== children || $[181] !== t109) {
956
- t110 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12 mt-8", children: [
957
- t109,
952
+ let t109;
953
+ if ($[179] !== children || $[180] !== t108) {
954
+ t109 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12 mt-8", children: [
955
+ t108,
958
956
  children
959
957
  ] });
960
- $[180] = children;
958
+ $[179] = children;
959
+ $[180] = t108;
961
960
  $[181] = t109;
962
- $[182] = t110;
963
961
  } else {
964
- t110 = $[182];
962
+ t109 = $[181];
965
963
  }
966
- let t111;
967
- if ($[183] !== t110 || $[184] !== t23 || $[185] !== t31 || $[186] !== t34 || $[187] !== t40) {
968
- t111 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-12 gap-4", children: [
964
+ let t110;
965
+ if ($[182] !== t109 || $[183] !== t23 || $[184] !== t30 || $[185] !== t33 || $[186] !== t39) {
966
+ t110 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-12 gap-4", children: [
969
967
  t23,
970
- t31,
971
- t34,
972
- t40,
973
- t110
968
+ t30,
969
+ t33,
970
+ t39,
971
+ t109
974
972
  ] });
975
- $[183] = t110;
976
- $[184] = t23;
977
- $[185] = t31;
978
- $[186] = t34;
979
- $[187] = t40;
980
- $[188] = t111;
973
+ $[182] = t109;
974
+ $[183] = t23;
975
+ $[184] = t30;
976
+ $[185] = t33;
977
+ $[186] = t39;
978
+ $[187] = t110;
981
979
  } else {
982
- t111 = $[188];
980
+ t110 = $[187];
983
981
  }
984
- let t112;
985
- if ($[189] === Symbol.for("react.memo_cache_sentinel")) {
986
- t112 = /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
982
+ let t111;
983
+ if ($[188] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
984
+ t111 = /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
987
985
  height: "52px"
988
986
  } });
989
- $[189] = t112;
987
+ $[188] = t111;
990
988
  } else {
991
- t112 = $[189];
989
+ t111 = $[188];
992
990
  }
993
- const t113 = typeof values.icon === "string" ? values.icon : void 0;
994
- let t114;
995
- if ($[190] !== setFieldValue) {
996
- t114 = (icon) => {
991
+ const t112 = typeof values.icon === "string" ? values.icon : void 0;
992
+ let t113;
993
+ if ($[189] !== setFieldValue) {
994
+ t113 = (icon) => {
997
995
  setIconDialogOpen(false);
998
996
  setFieldValue("icon", icon);
999
997
  };
1000
- $[190] = setFieldValue;
1001
- $[191] = t114;
998
+ $[189] = setFieldValue;
999
+ $[190] = t113;
1002
1000
  } else {
1003
- t114 = $[191];
1001
+ t113 = $[190];
1004
1002
  }
1005
- let t115;
1006
- if ($[192] !== t113 || $[193] !== t114) {
1007
- t115 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 overflow-auto min-h-[200px]", children: /* @__PURE__ */ jsxRuntime.jsx(core.SearchIconsView, { selectedIcon: t113, onIconSelected: t114 }) });
1003
+ let t114;
1004
+ if ($[191] !== t112 || $[192] !== t113) {
1005
+ t114 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 overflow-auto min-h-[200px]", children: /* @__PURE__ */ jsxRuntime.jsx(core.SearchIconsView, { selectedIcon: t112, onIconSelected: t113 }) });
1006
+ $[191] = t112;
1008
1007
  $[192] = t113;
1009
1008
  $[193] = t114;
1010
- $[194] = t115;
1011
1009
  } else {
1012
- t115 = $[194];
1010
+ t114 = $[193];
1013
1011
  }
1014
- let t116;
1015
- if ($[195] !== iconDialogOpen || $[196] !== t115) {
1016
- t116 = /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { open: iconDialogOpen, onOpenChange: setIconDialogOpen, maxWidth: "xl", fullWidth: true, children: t115 });
1017
- $[195] = iconDialogOpen;
1012
+ let t115;
1013
+ if ($[194] !== iconDialogOpen || $[195] !== t114) {
1014
+ t115 = /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { open: iconDialogOpen, onOpenChange: setIconDialogOpen, maxWidth: "xl", fullWidth: true, children: t114 });
1015
+ $[194] = iconDialogOpen;
1016
+ $[195] = t114;
1018
1017
  $[196] = t115;
1019
- $[197] = t116;
1020
1018
  } else {
1021
- t116 = $[197];
1019
+ t115 = $[196];
1022
1020
  }
1023
- let t117;
1024
- if ($[198] !== t111 || $[199] !== t116 || $[200] !== t15) {
1025
- t117 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-auto my-auto", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Container, { maxWidth: "4xl", className: "flex flex-col gap-4 p-8 m-auto", children: [
1021
+ let t116;
1022
+ if ($[197] !== t110 || $[198] !== t115 || $[199] !== t15) {
1023
+ t116 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-auto my-auto", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Container, { maxWidth: "4xl", className: "flex flex-col gap-4 p-8 m-auto", children: [
1026
1024
  t15,
1025
+ t110,
1027
1026
  t111,
1028
- t112,
1029
- t116
1027
+ t115
1030
1028
  ] }) });
1031
- $[198] = t111;
1032
- $[199] = t116;
1033
- $[200] = t15;
1034
- $[201] = t117;
1029
+ $[197] = t110;
1030
+ $[198] = t115;
1031
+ $[199] = t15;
1032
+ $[200] = t116;
1035
1033
  } else {
1036
- t117 = $[201];
1034
+ t116 = $[200];
1037
1035
  }
1038
- return t117;
1036
+ return t116;
1039
1037
  }
1040
1038
  function _temp3$5(value_3) {
1041
1039
  if (value_3 === "code_defined") {
@@ -1230,7 +1228,7 @@
1230
1228
  const [editDialogIndex, setEditDialogIndex] = React.useState();
1231
1229
  const [inferring, setInferring] = React.useState(false);
1232
1230
  let t1;
1233
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1231
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1234
1232
  t1 = /* @__PURE__ */ new Set();
1235
1233
  $[0] = t1;
1236
1234
  } else {
@@ -1293,7 +1291,7 @@
1293
1291
  const inferValues = t3;
1294
1292
  let t4;
1295
1293
  let t5;
1296
- if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
1294
+ if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1297
1295
  t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.ListIcon, {});
1298
1296
  t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "ml-2 grow", children: "Values" });
1299
1297
  $[13] = t4;
@@ -1338,7 +1336,7 @@
1338
1336
  t8 = $[24];
1339
1337
  }
1340
1338
  let t9;
1341
- if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
1339
+ if ($[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1342
1340
  t9 = {
1343
1341
  id: "",
1344
1342
  label: ""
@@ -1361,7 +1359,7 @@
1361
1359
  }
1362
1360
  const t11 = editDialogIndex !== void 0;
1363
1361
  let t12;
1364
- if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
1362
+ if ($[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1365
1363
  t12 = () => setEditDialogIndex(void 0);
1366
1364
  $[32] = t12;
1367
1365
  } else {
@@ -1583,7 +1581,7 @@
1583
1581
  t2 = $[5];
1584
1582
  }
1585
1583
  let t3;
1586
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
1584
+ if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1587
1585
  t3 = /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { hidden: true, children: "Enum form dialog" });
1588
1586
  $[6] = t3;
1589
1587
  } else {
@@ -1994,8 +1992,8 @@
1994
1992
  children
1995
1993
  } = t0;
1996
1994
  let t1;
1997
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1998
- t1 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500 text-text-secondary dark:text-text-secondary-dark", children: [
1995
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1996
+ t1 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500", children: [
1999
1997
  /* @__PURE__ */ jsxRuntime.jsx(ui.RuleIcon, {}),
2000
1998
  /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "ml-4", children: "Validation" })
2001
1999
  ] });
@@ -2069,7 +2067,7 @@
2069
2067
  "text/*": "Text files"
2070
2068
  };
2071
2069
  function StoragePropertyField(t0) {
2072
- const $ = reactCompilerRuntime.c(180);
2070
+ const $ = reactCompilerRuntime.c(189);
2073
2071
  const {
2074
2072
  multiple,
2075
2073
  existing,
@@ -2085,6 +2083,7 @@
2085
2083
  const maxSize = `${baseStoragePath}.maxSize`;
2086
2084
  const storagePath = `${baseStoragePath}.storagePath`;
2087
2085
  const storeUrl = `${baseStoragePath}.storeUrl`;
2086
+ const includeBucketUrl = `${baseStoragePath}.includeBucketUrl`;
2088
2087
  const imageResize = `${baseStoragePath}.imageResize`;
2089
2088
  const imageResizeMaxWidth = `${imageResize}.maxWidth`;
2090
2089
  const imageResizeMaxHeight = `${imageResize}.maxHeight`;
@@ -2132,45 +2131,45 @@
2132
2131
  let t7;
2133
2132
  let t8;
2134
2133
  let t9;
2135
- 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) {
2134
+ 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) {
2136
2135
  const maxSizeValue = formex.getIn(values, maxSize);
2137
2136
  const imageResizeMaxWidthValue = formex.getIn(values, imageResizeMaxWidth);
2138
2137
  const imageResizeMaxHeightValue = formex.getIn(values, imageResizeMaxHeight);
2139
2138
  let t222;
2140
- if ($[43] !== imageResizeMode || $[44] !== values) {
2139
+ if ($[44] !== imageResizeMode || $[45] !== values) {
2141
2140
  t222 = formex.getIn(values, imageResizeMode) ?? "cover";
2142
- $[43] = imageResizeMode;
2143
- $[44] = values;
2144
- $[45] = t222;
2141
+ $[44] = imageResizeMode;
2142
+ $[45] = values;
2143
+ $[46] = t222;
2145
2144
  } else {
2146
- t222 = $[45];
2145
+ t222 = $[46];
2147
2146
  }
2148
2147
  const imageResizeModeValue = t222;
2149
2148
  let t232;
2150
- if ($[46] !== imageResizeFormat || $[47] !== values) {
2149
+ if ($[47] !== imageResizeFormat || $[48] !== values) {
2151
2150
  t232 = formex.getIn(values, imageResizeFormat) ?? "original";
2152
- $[46] = imageResizeFormat;
2153
- $[47] = values;
2154
- $[48] = t232;
2151
+ $[47] = imageResizeFormat;
2152
+ $[48] = values;
2153
+ $[49] = t232;
2155
2154
  } else {
2156
- t232 = $[48];
2155
+ t232 = $[49];
2157
2156
  }
2158
2157
  const imageResizeFormatValue = t232;
2159
2158
  const imageResizeQualityValue = formex.getIn(values, imageResizeQuality);
2160
2159
  let t242;
2161
- if ($[49] !== acceptedFiles || $[50] !== values) {
2160
+ if ($[50] !== acceptedFiles || $[51] !== values) {
2162
2161
  t242 = formex.getIn(values, acceptedFiles);
2163
- $[49] = acceptedFiles;
2164
- $[50] = values;
2165
- $[51] = t242;
2162
+ $[50] = acceptedFiles;
2163
+ $[51] = values;
2164
+ $[52] = t242;
2166
2165
  } else {
2167
- t242 = $[51];
2166
+ t242 = $[52];
2168
2167
  }
2169
2168
  const storedValue = t242;
2170
2169
  const fileTypesValue = Array.isArray(storedValue) ? storedValue : void 0;
2171
2170
  const allFileTypesSelected = !fileTypesValue || fileTypesValue.length === 0;
2172
2171
  let t252;
2173
- if ($[52] !== acceptedFiles || $[53] !== setFieldValue) {
2172
+ if ($[53] !== acceptedFiles || $[54] !== setFieldValue) {
2174
2173
  t252 = (value) => {
2175
2174
  if (!value) {
2176
2175
  setFieldValue(acceptedFiles, void 0);
@@ -2178,38 +2177,38 @@
2178
2177
  setFieldValue(acceptedFiles, value);
2179
2178
  }
2180
2179
  };
2181
- $[52] = acceptedFiles;
2182
- $[53] = setFieldValue;
2183
- $[54] = t252;
2180
+ $[53] = acceptedFiles;
2181
+ $[54] = setFieldValue;
2182
+ $[55] = t252;
2184
2183
  } else {
2185
- t252 = $[54];
2184
+ t252 = $[55];
2186
2185
  }
2187
2186
  const handleTypesChange = t252;
2188
2187
  const hasFilenameCallback = typeof fileNameValue === "function";
2189
2188
  const hasStoragePathCallback = typeof storagePathValue === "function";
2190
2189
  t21 = "col-span-12";
2191
2190
  T1 = ui.ExpandablePanel;
2192
- if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
2193
- t20 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500 text-text-secondary dark:text-text-secondary-dark", children: [
2191
+ if ($[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2192
+ t20 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500", children: [
2194
2193
  /* @__PURE__ */ jsxRuntime.jsx(ui.CloudUploadIcon, {}),
2195
2194
  /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "ml-4", children: "File upload config" })
2196
2195
  ] });
2197
- $[55] = t20;
2196
+ $[56] = t20;
2198
2197
  } else {
2199
- t20 = $[55];
2198
+ t20 = $[56];
2200
2199
  }
2201
2200
  t10 = "grid grid-cols-12 gap-2 p-4";
2202
2201
  let t262;
2203
- if ($[56] !== fileTypesValue) {
2202
+ if ($[57] !== fileTypesValue) {
2204
2203
  t262 = fileTypesValue ?? [];
2205
- $[56] = fileTypesValue;
2206
- $[57] = t262;
2204
+ $[57] = fileTypesValue;
2205
+ $[58] = t262;
2207
2206
  } else {
2208
- t262 = $[57];
2207
+ t262 = $[58];
2209
2208
  }
2210
2209
  const t272 = allFileTypesSelected ? void 0 : "Allowed file types";
2211
2210
  let t282;
2212
- if ($[58] !== acceptedFiles || $[59] !== setFieldValue) {
2211
+ if ($[59] !== acceptedFiles || $[60] !== setFieldValue) {
2213
2212
  t282 = Object.entries(fileTypes).map((t293) => {
2214
2213
  const [value_0, label] = t293;
2215
2214
  return /* @__PURE__ */ jsxRuntime.jsxs(ui.MultiSelectItem, { value: value_0, className: "flex items-center gap-2", children: [
@@ -2221,49 +2220,49 @@
2221
2220
  }, children: "Only" })
2222
2221
  ] }, value_0);
2223
2222
  });
2224
- $[58] = acceptedFiles;
2225
- $[59] = setFieldValue;
2226
- $[60] = t282;
2223
+ $[59] = acceptedFiles;
2224
+ $[60] = setFieldValue;
2225
+ $[61] = t282;
2227
2226
  } else {
2228
- t282 = $[60];
2227
+ t282 = $[61];
2229
2228
  }
2230
- if ($[61] !== acceptedFiles || $[62] !== disabled || $[63] !== handleTypesChange || $[64] !== t262 || $[65] !== t272 || $[66] !== t282) {
2229
+ if ($[62] !== acceptedFiles || $[63] !== disabled || $[64] !== handleTypesChange || $[65] !== t262 || $[66] !== t272 || $[67] !== t282) {
2231
2230
  t11 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(ui.MultiSelect, { className: "w-full", placeholder: "All file types allowed", disabled, name: acceptedFiles, value: t262, onValueChange: handleTypesChange, label: t272, renderValues: _temp3$4, children: t282 }) });
2232
- $[61] = acceptedFiles;
2233
- $[62] = disabled;
2234
- $[63] = handleTypesChange;
2235
- $[64] = t262;
2236
- $[65] = t272;
2237
- $[66] = t282;
2238
- $[67] = t11;
2231
+ $[62] = acceptedFiles;
2232
+ $[63] = disabled;
2233
+ $[64] = handleTypesChange;
2234
+ $[65] = t262;
2235
+ $[66] = t272;
2236
+ $[67] = t282;
2237
+ $[68] = t11;
2239
2238
  } else {
2240
- t11 = $[67];
2239
+ t11 = $[68];
2241
2240
  }
2242
2241
  const t292 = hasFilenameCallback || disabled;
2243
2242
  const t302 = hasFilenameCallback ? "-" : fileNameValue;
2244
- if ($[68] !== fileName || $[69] !== t292 || $[70] !== t302) {
2243
+ if ($[69] !== fileName || $[70] !== t292 || $[71] !== t302) {
2245
2244
  t12 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: fileName, as: ui.DebouncedTextField, label: "File name", size: "small", disabled: t292, value: t302 }) });
2246
- $[68] = fileName;
2247
- $[69] = t292;
2248
- $[70] = t302;
2249
- $[71] = t12;
2245
+ $[69] = fileName;
2246
+ $[70] = t292;
2247
+ $[71] = t302;
2248
+ $[72] = t12;
2250
2249
  } else {
2251
- t12 = $[71];
2250
+ t12 = $[72];
2252
2251
  }
2253
2252
  const t312 = hasStoragePathCallback || disabled;
2254
2253
  const t322 = hasStoragePathCallback ? "-" : storagePathValue;
2255
2254
  let t33;
2256
- if ($[72] !== storagePath || $[73] !== t312 || $[74] !== t322) {
2255
+ if ($[73] !== storagePath || $[74] !== t312 || $[75] !== t322) {
2257
2256
  t33 = /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: storagePath, as: ui.DebouncedTextField, label: "Storage path", disabled: t312, size: "small", value: t322 });
2258
- $[72] = storagePath;
2259
- $[73] = t312;
2260
- $[74] = t322;
2261
- $[75] = t33;
2257
+ $[73] = storagePath;
2258
+ $[74] = t312;
2259
+ $[75] = t322;
2260
+ $[76] = t33;
2262
2261
  } else {
2263
- t33 = $[75];
2262
+ t33 = $[76];
2264
2263
  }
2265
2264
  let t34;
2266
- if ($[76] === Symbol.for("react.memo_cache_sentinel")) {
2265
+ if ($[77] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2267
2266
  t34 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: [
2268
2267
  /* @__PURE__ */ jsxRuntime.jsx("p", { children: "You can use the following placeholders in the file name and storage path values:" }),
2269
2268
  /* @__PURE__ */ jsxRuntime.jsxs("ul", { children: [
@@ -2276,58 +2275,96 @@
2276
2275
  /* @__PURE__ */ jsxRuntime.jsx("li", { children: "{rand} - Random value used to avoid name collisions" })
2277
2276
  ] })
2278
2277
  ] });
2279
- $[76] = t34;
2278
+ $[77] = t34;
2280
2279
  } else {
2281
- t34 = $[76];
2280
+ t34 = $[77];
2282
2281
  }
2283
2282
  let t35;
2284
- if ($[77] !== disabled || $[78] !== existing) {
2283
+ if ($[78] !== disabled || $[79] !== existing) {
2285
2284
  t35 = (t362) => {
2286
2285
  const {
2287
2286
  field,
2288
2287
  form
2289
2288
  } = t362;
2290
- return /* @__PURE__ */ jsxRuntime.jsx(SwitchControl, { label: "Save URL instead of storage path", disabled: existing || disabled, form, field });
2289
+ return /* @__PURE__ */ jsxRuntime.jsx(SwitchControl, { label: "Include bucket URL (gs://...) in saved value", disabled: existing || disabled, form, field });
2291
2290
  };
2292
- $[77] = disabled;
2293
- $[78] = existing;
2294
- $[79] = t35;
2291
+ $[78] = disabled;
2292
+ $[79] = existing;
2293
+ $[80] = t35;
2295
2294
  } else {
2296
- t35 = $[79];
2295
+ t35 = $[80];
2297
2296
  }
2298
2297
  let t36;
2299
- if ($[80] !== storeUrl || $[81] !== t35) {
2300
- t36 = /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: storeUrl, type: "checkbox", children: t35 });
2301
- $[80] = storeUrl;
2302
- $[81] = t35;
2303
- $[82] = t36;
2298
+ if ($[81] !== includeBucketUrl || $[82] !== t35) {
2299
+ t36 = /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: includeBucketUrl, type: "checkbox", children: t35 });
2300
+ $[81] = includeBucketUrl;
2301
+ $[82] = t35;
2302
+ $[83] = t36;
2304
2303
  } else {
2305
- t36 = $[82];
2304
+ t36 = $[83];
2306
2305
  }
2307
2306
  let t37;
2308
- if ($[83] === Symbol.for("react.memo_cache_sentinel")) {
2309
- t37 = /* @__PURE__ */ jsxRuntime.jsx(ui.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." });
2310
- $[83] = t37;
2307
+ if ($[84] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2308
+ t37 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: [
2309
+ "Turn this setting on if you want to save a fully-qualified storage URL (e.g. ",
2310
+ /* @__PURE__ */ jsxRuntime.jsx("code", { children: "gs://my-bucket/path/to/file" }),
2311
+ ") instead of just the storage path. You can only change this prop upon creation."
2312
+ ] });
2313
+ $[84] = t37;
2311
2314
  } else {
2312
- t37 = $[83];
2315
+ t37 = $[84];
2313
2316
  }
2314
- if ($[84] !== t33 || $[85] !== t36) {
2317
+ let t38;
2318
+ if ($[85] !== disabled || $[86] !== existing) {
2319
+ t38 = (t392) => {
2320
+ const {
2321
+ field: field_0,
2322
+ form: form_0
2323
+ } = t392;
2324
+ return /* @__PURE__ */ jsxRuntime.jsx(SwitchControl, { label: "Save URL instead of storage path", disabled: existing || disabled, form: form_0, field: field_0 });
2325
+ };
2326
+ $[85] = disabled;
2327
+ $[86] = existing;
2328
+ $[87] = t38;
2329
+ } else {
2330
+ t38 = $[87];
2331
+ }
2332
+ let t39;
2333
+ if ($[88] !== storeUrl || $[89] !== t38) {
2334
+ t39 = /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: storeUrl, type: "checkbox", children: t38 });
2335
+ $[88] = storeUrl;
2336
+ $[89] = t38;
2337
+ $[90] = t39;
2338
+ } else {
2339
+ t39 = $[90];
2340
+ }
2341
+ let t40;
2342
+ if ($[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2343
+ t40 = /* @__PURE__ */ jsxRuntime.jsx(ui.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." });
2344
+ $[91] = t40;
2345
+ } else {
2346
+ t40 = $[91];
2347
+ }
2348
+ if ($[92] !== t33 || $[93] !== t36 || $[94] !== t39) {
2315
2349
  t13 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12", children: [
2316
2350
  t33,
2317
2351
  t34,
2318
2352
  t36,
2319
- t37
2353
+ t37,
2354
+ t39,
2355
+ t40
2320
2356
  ] });
2321
- $[84] = t33;
2322
- $[85] = t36;
2323
- $[86] = t13;
2357
+ $[92] = t33;
2358
+ $[93] = t36;
2359
+ $[94] = t39;
2360
+ $[95] = t13;
2324
2361
  } else {
2325
- t13 = $[86];
2362
+ t13 = $[95];
2326
2363
  }
2327
- const t38 = maxSizeValue !== void 0 && maxSizeValue !== null ? maxSizeValue.toString() : "";
2328
- let t39;
2329
- if ($[87] !== maxSize || $[88] !== setFieldValue) {
2330
- t39 = (e_0) => {
2364
+ const t41 = maxSizeValue !== void 0 && maxSizeValue !== null ? maxSizeValue.toString() : "";
2365
+ let t42;
2366
+ if ($[96] !== maxSize || $[97] !== setFieldValue) {
2367
+ t42 = (e_0) => {
2331
2368
  const value_1 = e_0.target.value;
2332
2369
  if (value_1 === "") {
2333
2370
  setFieldValue(maxSize, void 0);
@@ -2335,34 +2372,34 @@
2335
2372
  setFieldValue(maxSize, parseInt(value_1));
2336
2373
  }
2337
2374
  };
2338
- $[87] = maxSize;
2339
- $[88] = setFieldValue;
2340
- $[89] = t39;
2375
+ $[96] = maxSize;
2376
+ $[97] = setFieldValue;
2377
+ $[98] = t42;
2341
2378
  } else {
2342
- t39 = $[89];
2379
+ t42 = $[98];
2343
2380
  }
2344
- if ($[90] !== maxSize || $[91] !== t38 || $[92] !== t39) {
2345
- t14 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(ui.DebouncedTextField, { name: maxSize, type: "number", label: "Max size (in bytes)", size: "small", value: t38, onChange: t39 }) });
2346
- $[90] = maxSize;
2347
- $[91] = t38;
2348
- $[92] = t39;
2349
- $[93] = t14;
2381
+ if ($[99] !== maxSize || $[100] !== t41 || $[101] !== t42) {
2382
+ t14 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(ui.DebouncedTextField, { name: maxSize, type: "number", label: "Max size (in bytes)", size: "small", value: t41, onChange: t42 }) });
2383
+ $[99] = maxSize;
2384
+ $[100] = t41;
2385
+ $[101] = t42;
2386
+ $[102] = t14;
2350
2387
  } else {
2351
- t14 = $[93];
2388
+ t14 = $[102];
2352
2389
  }
2353
- if ($[94] === Symbol.for("react.memo_cache_sentinel")) {
2390
+ if ($[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2354
2391
  t15 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-12 mt-4", children: [
2355
2392
  /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", color: "secondary", className: "mb-2 block", children: "Image Resize Configuration" }),
2356
2393
  /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "caption", className: "mb-2 block text-xs", children: "Automatically resize and optimize images before upload (JPEG, PNG, WebP only)" })
2357
2394
  ] });
2358
- $[94] = t15;
2395
+ $[103] = t15;
2359
2396
  } else {
2360
- t15 = $[94];
2397
+ t15 = $[103];
2361
2398
  }
2362
- const t40 = imageResizeMaxWidthValue !== void 0 && imageResizeMaxWidthValue !== null ? imageResizeMaxWidthValue.toString() : "";
2363
- let t41;
2364
- if ($[95] !== imageResizeMaxWidth || $[96] !== setFieldValue) {
2365
- t41 = (e_1) => {
2399
+ const t43 = imageResizeMaxWidthValue !== void 0 && imageResizeMaxWidthValue !== null ? imageResizeMaxWidthValue.toString() : "";
2400
+ let t44;
2401
+ if ($[104] !== imageResizeMaxWidth || $[105] !== setFieldValue) {
2402
+ t44 = (e_1) => {
2366
2403
  const value_2 = e_1.target.value;
2367
2404
  if (value_2 === "") {
2368
2405
  setFieldValue(imageResizeMaxWidth, void 0);
@@ -2370,26 +2407,26 @@
2370
2407
  setFieldValue(imageResizeMaxWidth, parseInt(value_2));
2371
2408
  }
2372
2409
  };
2373
- $[95] = imageResizeMaxWidth;
2374
- $[96] = setFieldValue;
2375
- $[97] = t41;
2410
+ $[104] = imageResizeMaxWidth;
2411
+ $[105] = setFieldValue;
2412
+ $[106] = t44;
2376
2413
  } else {
2377
- t41 = $[97];
2414
+ t44 = $[106];
2378
2415
  }
2379
- if ($[98] !== disabled || $[99] !== imageResizeMaxWidth || $[100] !== t40 || $[101] !== t41) {
2380
- t16 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxRuntime.jsx(ui.DebouncedTextField, { name: imageResizeMaxWidth, type: "number", label: "Max width (px)", size: "small", disabled, value: t40, onChange: t41 }) });
2381
- $[98] = disabled;
2382
- $[99] = imageResizeMaxWidth;
2383
- $[100] = t40;
2384
- $[101] = t41;
2385
- $[102] = t16;
2416
+ if ($[107] !== disabled || $[108] !== imageResizeMaxWidth || $[109] !== t43 || $[110] !== t44) {
2417
+ t16 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxRuntime.jsx(ui.DebouncedTextField, { name: imageResizeMaxWidth, type: "number", label: "Max width (px)", size: "small", disabled, value: t43, onChange: t44 }) });
2418
+ $[107] = disabled;
2419
+ $[108] = imageResizeMaxWidth;
2420
+ $[109] = t43;
2421
+ $[110] = t44;
2422
+ $[111] = t16;
2386
2423
  } else {
2387
- t16 = $[102];
2424
+ t16 = $[111];
2388
2425
  }
2389
- const t42 = imageResizeMaxHeightValue !== void 0 && imageResizeMaxHeightValue !== null ? imageResizeMaxHeightValue.toString() : "";
2390
- let t43;
2391
- if ($[103] !== imageResizeMaxHeight || $[104] !== setFieldValue) {
2392
- t43 = (e_2) => {
2426
+ const t45 = imageResizeMaxHeightValue !== void 0 && imageResizeMaxHeightValue !== null ? imageResizeMaxHeightValue.toString() : "";
2427
+ let t46;
2428
+ if ($[112] !== imageResizeMaxHeight || $[113] !== setFieldValue) {
2429
+ t46 = (e_2) => {
2393
2430
  const value_3 = e_2.target.value;
2394
2431
  if (value_3 === "") {
2395
2432
  setFieldValue(imageResizeMaxHeight, void 0);
@@ -2397,99 +2434,99 @@
2397
2434
  setFieldValue(imageResizeMaxHeight, parseInt(value_3));
2398
2435
  }
2399
2436
  };
2400
- $[103] = imageResizeMaxHeight;
2401
- $[104] = setFieldValue;
2402
- $[105] = t43;
2437
+ $[112] = imageResizeMaxHeight;
2438
+ $[113] = setFieldValue;
2439
+ $[114] = t46;
2403
2440
  } else {
2404
- t43 = $[105];
2441
+ t46 = $[114];
2405
2442
  }
2406
- if ($[106] !== disabled || $[107] !== imageResizeMaxHeight || $[108] !== t42 || $[109] !== t43) {
2407
- t17 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxRuntime.jsx(ui.DebouncedTextField, { name: imageResizeMaxHeight, type: "number", label: "Max height (px)", size: "small", disabled, value: t42, onChange: t43 }) });
2408
- $[106] = disabled;
2409
- $[107] = imageResizeMaxHeight;
2410
- $[108] = t42;
2411
- $[109] = t43;
2412
- $[110] = t17;
2443
+ if ($[115] !== disabled || $[116] !== imageResizeMaxHeight || $[117] !== t45 || $[118] !== t46) {
2444
+ t17 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxRuntime.jsx(ui.DebouncedTextField, { name: imageResizeMaxHeight, type: "number", label: "Max height (px)", size: "small", disabled, value: t45, onChange: t46 }) });
2445
+ $[115] = disabled;
2446
+ $[116] = imageResizeMaxHeight;
2447
+ $[117] = t45;
2448
+ $[118] = t46;
2449
+ $[119] = t17;
2413
2450
  } else {
2414
- t17 = $[110];
2451
+ t17 = $[119];
2415
2452
  }
2416
- const t44 = imageResizeModeValue || "cover";
2417
- let t45;
2418
- if ($[111] !== imageResizeMode || $[112] !== setFieldValue) {
2419
- t45 = (value_4) => setFieldValue(imageResizeMode, value_4 || "cover");
2420
- $[111] = imageResizeMode;
2421
- $[112] = setFieldValue;
2422
- $[113] = t45;
2453
+ const t47 = imageResizeModeValue || "cover";
2454
+ let t48;
2455
+ if ($[120] !== imageResizeMode || $[121] !== setFieldValue) {
2456
+ t48 = (value_4) => setFieldValue(imageResizeMode, value_4 || "cover");
2457
+ $[120] = imageResizeMode;
2458
+ $[121] = setFieldValue;
2459
+ $[122] = t48;
2423
2460
  } else {
2424
- t45 = $[113];
2461
+ t48 = $[122];
2425
2462
  }
2426
- let t46;
2427
- let t47;
2428
- if ($[114] === Symbol.for("react.memo_cache_sentinel")) {
2429
- t46 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "contain", children: "Contain (fit within bounds)" });
2430
- t47 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "cover", children: "Cover (fill bounds, may crop)" });
2431
- $[114] = t46;
2432
- $[115] = t47;
2463
+ let t49;
2464
+ let t50;
2465
+ if ($[123] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2466
+ t49 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "contain", children: "Contain (fit within bounds)" });
2467
+ t50 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "cover", children: "Cover (fill bounds, may crop)" });
2468
+ $[123] = t49;
2469
+ $[124] = t50;
2433
2470
  } else {
2434
- t46 = $[114];
2435
- t47 = $[115];
2471
+ t49 = $[123];
2472
+ t50 = $[124];
2436
2473
  }
2437
- if ($[116] !== disabled || $[117] !== imageResizeMode || $[118] !== t44 || $[119] !== t45) {
2438
- t18 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Select, { disabled, name: imageResizeMode, fullWidth: true, size: "medium", value: t44, onValueChange: t45, label: "Resize mode", renderValue: _temp4$2, children: [
2439
- t46,
2440
- t47
2474
+ if ($[125] !== disabled || $[126] !== imageResizeMode || $[127] !== t47 || $[128] !== t48) {
2475
+ t18 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Select, { disabled, name: imageResizeMode, fullWidth: true, size: "medium", value: t47, onValueChange: t48, label: "Resize mode", renderValue: _temp4$2, children: [
2476
+ t49,
2477
+ t50
2441
2478
  ] }) });
2442
- $[116] = disabled;
2443
- $[117] = imageResizeMode;
2444
- $[118] = t44;
2445
- $[119] = t45;
2446
- $[120] = t18;
2479
+ $[125] = disabled;
2480
+ $[126] = imageResizeMode;
2481
+ $[127] = t47;
2482
+ $[128] = t48;
2483
+ $[129] = t18;
2447
2484
  } else {
2448
- t18 = $[120];
2485
+ t18 = $[129];
2449
2486
  }
2450
- const t48 = imageResizeFormatValue || "original";
2451
- let t49;
2452
- if ($[121] !== imageResizeFormat || $[122] !== setFieldValue) {
2453
- t49 = (value_5) => setFieldValue(imageResizeFormat, value_5 || "original");
2454
- $[121] = imageResizeFormat;
2455
- $[122] = setFieldValue;
2456
- $[123] = t49;
2487
+ const t51 = imageResizeFormatValue || "original";
2488
+ let t52;
2489
+ if ($[130] !== imageResizeFormat || $[131] !== setFieldValue) {
2490
+ t52 = (value_5) => setFieldValue(imageResizeFormat, value_5 || "original");
2491
+ $[130] = imageResizeFormat;
2492
+ $[131] = setFieldValue;
2493
+ $[132] = t52;
2457
2494
  } else {
2458
- t49 = $[123];
2495
+ t52 = $[132];
2459
2496
  }
2460
- let t50;
2461
- let t51;
2462
- let t52;
2463
2497
  let t53;
2464
- if ($[124] === Symbol.for("react.memo_cache_sentinel")) {
2465
- t50 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "original", children: "Original (keep same format)" });
2466
- t51 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "jpeg", children: "JPEG" });
2467
- t52 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "png", children: "PNG" });
2468
- t53 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "webp", children: "WebP (best compression)" });
2469
- $[124] = t50;
2470
- $[125] = t51;
2471
- $[126] = t52;
2472
- $[127] = t53;
2498
+ let t54;
2499
+ let t55;
2500
+ let t56;
2501
+ if ($[133] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2502
+ t53 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "original", children: "Original (keep same format)" });
2503
+ t54 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "jpeg", children: "JPEG" });
2504
+ t55 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "png", children: "PNG" });
2505
+ t56 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "webp", children: "WebP (best compression)" });
2506
+ $[133] = t53;
2507
+ $[134] = t54;
2508
+ $[135] = t55;
2509
+ $[136] = t56;
2473
2510
  } else {
2474
- t50 = $[124];
2475
- t51 = $[125];
2476
- t52 = $[126];
2477
- t53 = $[127];
2511
+ t53 = $[133];
2512
+ t54 = $[134];
2513
+ t55 = $[135];
2514
+ t56 = $[136];
2478
2515
  }
2479
- if ($[128] !== disabled || $[129] !== imageResizeFormat || $[130] !== t48 || $[131] !== t49) {
2480
- t19 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Select, { disabled, size: "medium", fullWidth: true, name: imageResizeFormat, value: t48, onValueChange: t49, label: "Output format", renderValue: _temp5, children: [
2481
- t50,
2482
- t51,
2483
- t52,
2484
- t53
2516
+ if ($[137] !== disabled || $[138] !== imageResizeFormat || $[139] !== t51 || $[140] !== t52) {
2517
+ t19 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Select, { disabled, size: "medium", fullWidth: true, name: imageResizeFormat, value: t51, onValueChange: t52, label: "Output format", renderValue: _temp5, children: [
2518
+ t53,
2519
+ t54,
2520
+ t55,
2521
+ t56
2485
2522
  ] }) });
2486
- $[128] = disabled;
2487
- $[129] = imageResizeFormat;
2488
- $[130] = t48;
2489
- $[131] = t49;
2490
- $[132] = t19;
2523
+ $[137] = disabled;
2524
+ $[138] = imageResizeFormat;
2525
+ $[139] = t51;
2526
+ $[140] = t52;
2527
+ $[141] = t19;
2491
2528
  } else {
2492
- t19 = $[132];
2529
+ t19 = $[141];
2493
2530
  }
2494
2531
  t9 = "col-span-12";
2495
2532
  T0 = ui.DebouncedTextField;
@@ -2509,58 +2546,59 @@
2509
2546
  $[13] = imageResizeMaxWidth;
2510
2547
  $[14] = imageResizeMode;
2511
2548
  $[15] = imageResizeQuality;
2512
- $[16] = maxSize;
2513
- $[17] = setFieldValue;
2514
- $[18] = storagePath;
2515
- $[19] = storagePathValue;
2516
- $[20] = storeUrl;
2517
- $[21] = values;
2518
- $[22] = T0;
2519
- $[23] = T1;
2520
- $[24] = t10;
2521
- $[25] = t11;
2522
- $[26] = t12;
2523
- $[27] = t13;
2524
- $[28] = t14;
2525
- $[29] = t15;
2526
- $[30] = t16;
2527
- $[31] = t17;
2528
- $[32] = t18;
2529
- $[33] = t19;
2530
- $[34] = t20;
2531
- $[35] = t21;
2532
- $[36] = t3;
2533
- $[37] = t4;
2534
- $[38] = t5;
2535
- $[39] = t6;
2536
- $[40] = t7;
2537
- $[41] = t8;
2538
- $[42] = t9;
2549
+ $[16] = includeBucketUrl;
2550
+ $[17] = maxSize;
2551
+ $[18] = setFieldValue;
2552
+ $[19] = storagePath;
2553
+ $[20] = storagePathValue;
2554
+ $[21] = storeUrl;
2555
+ $[22] = values;
2556
+ $[23] = T0;
2557
+ $[24] = T1;
2558
+ $[25] = t10;
2559
+ $[26] = t11;
2560
+ $[27] = t12;
2561
+ $[28] = t13;
2562
+ $[29] = t14;
2563
+ $[30] = t15;
2564
+ $[31] = t16;
2565
+ $[32] = t17;
2566
+ $[33] = t18;
2567
+ $[34] = t19;
2568
+ $[35] = t20;
2569
+ $[36] = t21;
2570
+ $[37] = t3;
2571
+ $[38] = t4;
2572
+ $[39] = t5;
2573
+ $[40] = t6;
2574
+ $[41] = t7;
2575
+ $[42] = t8;
2576
+ $[43] = t9;
2539
2577
  } else {
2540
- T0 = $[22];
2541
- T1 = $[23];
2542
- t10 = $[24];
2543
- t11 = $[25];
2544
- t12 = $[26];
2545
- t13 = $[27];
2546
- t14 = $[28];
2547
- t15 = $[29];
2548
- t16 = $[30];
2549
- t17 = $[31];
2550
- t18 = $[32];
2551
- t19 = $[33];
2552
- t20 = $[34];
2553
- t21 = $[35];
2554
- t3 = $[36];
2555
- t4 = $[37];
2556
- t5 = $[38];
2557
- t6 = $[39];
2558
- t7 = $[40];
2559
- t8 = $[41];
2560
- t9 = $[42];
2578
+ T0 = $[23];
2579
+ T1 = $[24];
2580
+ t10 = $[25];
2581
+ t11 = $[26];
2582
+ t12 = $[27];
2583
+ t13 = $[28];
2584
+ t14 = $[29];
2585
+ t15 = $[30];
2586
+ t16 = $[31];
2587
+ t17 = $[32];
2588
+ t18 = $[33];
2589
+ t19 = $[34];
2590
+ t20 = $[35];
2591
+ t21 = $[36];
2592
+ t3 = $[37];
2593
+ t4 = $[38];
2594
+ t5 = $[39];
2595
+ t6 = $[40];
2596
+ t7 = $[41];
2597
+ t8 = $[42];
2598
+ t9 = $[43];
2561
2599
  }
2562
2600
  let t22;
2563
- if ($[133] !== imageResizeQuality || $[134] !== setFieldValue) {
2601
+ if ($[142] !== imageResizeQuality || $[143] !== setFieldValue) {
2564
2602
  t22 = (e_3) => {
2565
2603
  const value_6 = e_3.target.value;
2566
2604
  if (value_6 === "") {
@@ -2572,48 +2610,48 @@
2572
2610
  }
2573
2611
  }
2574
2612
  };
2575
- $[133] = imageResizeQuality;
2576
- $[134] = setFieldValue;
2577
- $[135] = t22;
2613
+ $[142] = imageResizeQuality;
2614
+ $[143] = setFieldValue;
2615
+ $[144] = t22;
2578
2616
  } else {
2579
- t22 = $[135];
2617
+ t22 = $[144];
2580
2618
  }
2581
2619
  let t23;
2582
- if ($[136] !== T0 || $[137] !== t22 || $[138] !== t3 || $[139] !== t4 || $[140] !== t5 || $[141] !== t6 || $[142] !== t7 || $[143] !== t8) {
2620
+ if ($[145] !== T0 || $[146] !== t22 || $[147] !== t3 || $[148] !== t4 || $[149] !== t5 || $[150] !== t6 || $[151] !== t7 || $[152] !== t8) {
2583
2621
  t23 = /* @__PURE__ */ jsxRuntime.jsx(T0, { name: t3, type: t4, label: t5, size: t6, disabled: t7, value: t8, onChange: t22 });
2584
- $[136] = T0;
2585
- $[137] = t22;
2586
- $[138] = t3;
2587
- $[139] = t4;
2588
- $[140] = t5;
2589
- $[141] = t6;
2590
- $[142] = t7;
2591
- $[143] = t8;
2592
- $[144] = t23;
2593
- } else {
2594
- t23 = $[144];
2622
+ $[145] = T0;
2623
+ $[146] = t22;
2624
+ $[147] = t3;
2625
+ $[148] = t4;
2626
+ $[149] = t5;
2627
+ $[150] = t6;
2628
+ $[151] = t7;
2629
+ $[152] = t8;
2630
+ $[153] = t23;
2631
+ } else {
2632
+ t23 = $[153];
2595
2633
  }
2596
2634
  let t24;
2597
- if ($[145] === Symbol.for("react.memo_cache_sentinel")) {
2635
+ if ($[154] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2598
2636
  t24 = /* @__PURE__ */ jsxRuntime.jsx(ui.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" });
2599
- $[145] = t24;
2637
+ $[154] = t24;
2600
2638
  } else {
2601
- t24 = $[145];
2639
+ t24 = $[154];
2602
2640
  }
2603
2641
  let t25;
2604
- if ($[146] !== t23 || $[147] !== t9) {
2642
+ if ($[155] !== t23 || $[156] !== t9) {
2605
2643
  t25 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t9, children: [
2606
2644
  t23,
2607
2645
  t24
2608
2646
  ] });
2609
- $[146] = t23;
2610
- $[147] = t9;
2611
- $[148] = t25;
2647
+ $[155] = t23;
2648
+ $[156] = t9;
2649
+ $[157] = t25;
2612
2650
  } else {
2613
- t25 = $[148];
2651
+ t25 = $[157];
2614
2652
  }
2615
2653
  let t26;
2616
- if ($[149] !== t10 || $[150] !== t11 || $[151] !== t12 || $[152] !== t13 || $[153] !== t14 || $[154] !== t15 || $[155] !== t16 || $[156] !== t17 || $[157] !== t18 || $[158] !== t19 || $[159] !== t25) {
2654
+ if ($[158] !== t10 || $[159] !== t11 || $[160] !== t12 || $[161] !== t13 || $[162] !== t14 || $[163] !== t15 || $[164] !== t16 || $[165] !== t17 || $[166] !== t18 || $[167] !== t19 || $[168] !== t25) {
2617
2655
  t26 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t10, children: [
2618
2656
  t11,
2619
2657
  t12,
@@ -2626,81 +2664,81 @@
2626
2664
  t19,
2627
2665
  t25
2628
2666
  ] });
2629
- $[149] = t10;
2630
- $[150] = t11;
2631
- $[151] = t12;
2632
- $[152] = t13;
2633
- $[153] = t14;
2634
- $[154] = t15;
2635
- $[155] = t16;
2636
- $[156] = t17;
2637
- $[157] = t18;
2638
- $[158] = t19;
2639
- $[159] = t25;
2640
- $[160] = t26;
2641
- } else {
2642
- t26 = $[160];
2667
+ $[158] = t10;
2668
+ $[159] = t11;
2669
+ $[160] = t12;
2670
+ $[161] = t13;
2671
+ $[162] = t14;
2672
+ $[163] = t15;
2673
+ $[164] = t16;
2674
+ $[165] = t17;
2675
+ $[166] = t18;
2676
+ $[167] = t19;
2677
+ $[168] = t25;
2678
+ $[169] = t26;
2679
+ } else {
2680
+ t26 = $[169];
2643
2681
  }
2644
2682
  let t27;
2645
- if ($[161] !== T1 || $[162] !== t20 || $[163] !== t26) {
2683
+ if ($[170] !== T1 || $[171] !== t20 || $[172] !== t26) {
2646
2684
  t27 = /* @__PURE__ */ jsxRuntime.jsx(T1, { title: t20, children: t26 });
2647
- $[161] = T1;
2648
- $[162] = t20;
2649
- $[163] = t26;
2650
- $[164] = t27;
2685
+ $[170] = T1;
2686
+ $[171] = t20;
2687
+ $[172] = t26;
2688
+ $[173] = t27;
2651
2689
  } else {
2652
- t27 = $[164];
2690
+ t27 = $[173];
2653
2691
  }
2654
2692
  let t28;
2655
- if ($[165] !== t21 || $[166] !== t27) {
2693
+ if ($[174] !== t21 || $[175] !== t27) {
2656
2694
  t28 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: t21, children: t27 });
2657
- $[165] = t21;
2658
- $[166] = t27;
2659
- $[167] = t28;
2695
+ $[174] = t21;
2696
+ $[175] = t27;
2697
+ $[176] = t28;
2660
2698
  } else {
2661
- t28 = $[167];
2699
+ t28 = $[176];
2662
2700
  }
2663
2701
  let t29;
2664
- if ($[168] !== disabled || $[169] !== multiple) {
2702
+ if ($[177] !== disabled || $[178] !== multiple) {
2665
2703
  t29 = !multiple && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-12 gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(GeneralPropertyValidation, { disabled }) });
2666
- $[168] = disabled;
2667
- $[169] = multiple;
2668
- $[170] = t29;
2704
+ $[177] = disabled;
2705
+ $[178] = multiple;
2706
+ $[179] = t29;
2669
2707
  } else {
2670
- t29 = $[170];
2708
+ t29 = $[179];
2671
2709
  }
2672
2710
  let t30;
2673
- if ($[171] !== disabled || $[172] !== multiple) {
2711
+ if ($[180] !== disabled || $[181] !== multiple) {
2674
2712
  t30 = multiple && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(ArrayPropertyValidation, { disabled }) });
2675
- $[171] = disabled;
2676
- $[172] = multiple;
2677
- $[173] = t30;
2713
+ $[180] = disabled;
2714
+ $[181] = multiple;
2715
+ $[182] = t30;
2678
2716
  } else {
2679
- t30 = $[173];
2717
+ t30 = $[182];
2680
2718
  }
2681
2719
  let t31;
2682
- if ($[174] !== t29 || $[175] !== t30) {
2720
+ if ($[183] !== t29 || $[184] !== t30) {
2683
2721
  t31 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsxs(ValidationPanel, { children: [
2684
2722
  t29,
2685
2723
  t30
2686
2724
  ] }) });
2687
- $[174] = t29;
2688
- $[175] = t30;
2689
- $[176] = t31;
2725
+ $[183] = t29;
2726
+ $[184] = t30;
2727
+ $[185] = t31;
2690
2728
  } else {
2691
- t31 = $[176];
2729
+ t31 = $[185];
2692
2730
  }
2693
2731
  let t32;
2694
- if ($[177] !== t28 || $[178] !== t31) {
2732
+ if ($[186] !== t28 || $[187] !== t31) {
2695
2733
  t32 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2696
2734
  t28,
2697
2735
  t31
2698
2736
  ] });
2699
- $[177] = t28;
2700
- $[178] = t31;
2701
- $[179] = t32;
2737
+ $[186] = t28;
2738
+ $[187] = t31;
2739
+ $[188] = t32;
2702
2740
  } else {
2703
- t32 = $[179];
2741
+ t32 = $[188];
2704
2742
  }
2705
2743
  return t32;
2706
2744
  }
@@ -2783,7 +2821,7 @@
2783
2821
  }
2784
2822
  const propertyConfig = t1;
2785
2823
  editableProperty(property);
2786
- const borderColorClass = hasError ? "border-red-500 dark:border-red-500 border-opacity-100 dark:border-opacity-100 border-red-500/100 dark:border-red-500/100 ring-0 dark:ring-0" : selected ? "border-primary" : "border-transparent";
2824
+ const borderColorClass = hasError ? "border-red-500 dark:border-red-500 border-opacity-100 dark:border-opacity-100 ring-0 dark:ring-0" : selected ? "border-primary" : "border-transparent";
2787
2825
  let t2;
2788
2826
  if ($[3] !== propertyConfig) {
2789
2827
  t2 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "m-4", children: /* @__PURE__ */ jsxRuntime.jsx(core.PropertyConfigBadge, { propertyConfig }) });
@@ -2930,7 +2968,7 @@
2930
2968
  t3 = $[6];
2931
2969
  }
2932
2970
  let t4;
2933
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
2971
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2934
2972
  t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.DoNotDisturbOnIcon, { color: "disabled", size: "small", className: "absolute -right-2 -top-2" });
2935
2973
  $[7] = t4;
2936
2974
  } else {
@@ -3082,7 +3120,7 @@
3082
3120
  }
3083
3121
  const propertiesOrder = t1;
3084
3122
  let t2;
3085
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
3123
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3086
3124
  t2 = {
3087
3125
  activationConstraint: {
3088
3126
  distance: 5
@@ -3093,7 +3131,7 @@
3093
3131
  t2 = $[3];
3094
3132
  }
3095
3133
  let t3;
3096
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
3134
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3097
3135
  t3 = {
3098
3136
  coordinateGetter: sortable.sortableKeyboardCoordinates
3099
3137
  };
@@ -3157,7 +3195,7 @@
3157
3195
  }
3158
3196
  const items = t5;
3159
3197
  let t6;
3160
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
3198
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3161
3199
  t6 = [modifiers.restrictToVerticalAxis];
3162
3200
  $[14] = t6;
3163
3201
  } else {
@@ -3533,7 +3571,7 @@
3533
3571
  }
3534
3572
  const onPropertyMove = t5;
3535
3573
  let t6;
3536
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
3574
+ if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3537
3575
  t6 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", children: "Properties in this group" });
3538
3576
  $[16] = t6;
3539
3577
  } else {
@@ -3541,7 +3579,7 @@
3541
3579
  }
3542
3580
  let t7;
3543
3581
  let t8;
3544
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
3582
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3545
3583
  t7 = () => setPropertyDialogOpen(true);
3546
3584
  t8 = /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, {});
3547
3585
  $[17] = t7;
@@ -3574,14 +3612,14 @@
3574
3612
  t11 = $[22];
3575
3613
  }
3576
3614
  let t12;
3577
- if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
3615
+ if ($[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3578
3616
  t12 = {};
3579
3617
  $[23] = t12;
3580
3618
  } else {
3581
3619
  t12 = $[23];
3582
3620
  }
3583
3621
  let t13;
3584
- if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
3622
+ if ($[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3585
3623
  t13 = (propertyKey_0, namespace_1) => {
3586
3624
  setSelectedPropertyKey(propertyKey_0);
3587
3625
  setSelectedPropertyNamespace(namespace_1);
@@ -3653,7 +3691,7 @@
3653
3691
  t20 = $[42];
3654
3692
  }
3655
3693
  let t21;
3656
- if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
3694
+ if ($[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3657
3695
  t21 = /* @__PURE__ */ jsxRuntime.jsx(core.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." });
3658
3696
  $[43] = t21;
3659
3697
  } else {
@@ -3672,7 +3710,7 @@
3672
3710
  }
3673
3711
  let t23;
3674
3712
  let t24;
3675
- if ($[46] === Symbol.for("react.memo_cache_sentinel")) {
3713
+ if ($[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3676
3714
  t23 = () => {
3677
3715
  setPropertyDialogOpen(false);
3678
3716
  setSelectedPropertyKey(void 0);
@@ -3796,7 +3834,7 @@
3796
3834
  }
3797
3835
  const widget = t1;
3798
3836
  let t2;
3799
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
3837
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3800
3838
  t2 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", children: "Repeat component" });
3801
3839
  $[14] = t2;
3802
3840
  } else {
@@ -3928,7 +3966,7 @@
3928
3966
  t5 = $[13];
3929
3967
  }
3930
3968
  let t6;
3931
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
3969
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3932
3970
  t6 = {
3933
3971
  fontSize: 20
3934
3972
  };
@@ -4314,7 +4352,7 @@
4314
4352
  const deleteProperty = t3;
4315
4353
  let t4;
4316
4354
  let t5;
4317
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
4355
+ if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4318
4356
  t4 = () => setPropertyDialogOpen(true);
4319
4357
  t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, {});
4320
4358
  $[11] = t4;
@@ -4348,7 +4386,7 @@
4348
4386
  }
4349
4387
  const onPropertyMove = t8;
4350
4388
  let t9;
4351
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
4389
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4352
4390
  t9 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", children: "Properties in this block" });
4353
4391
  $[17] = t9;
4354
4392
  } else {
@@ -4375,7 +4413,7 @@
4375
4413
  }
4376
4414
  const t12 = values.oneOf?.propertiesOrder;
4377
4415
  let t13;
4378
- if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
4416
+ if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4379
4417
  t13 = {};
4380
4418
  $[22] = t13;
4381
4419
  } else {
@@ -4699,7 +4737,6 @@
4699
4737
  function ReferencePropertyField(t0) {
4700
4738
  const $ = reactCompilerRuntime.c(14);
4701
4739
  const {
4702
- existing,
4703
4740
  multiple,
4704
4741
  disabled,
4705
4742
  showErrors,
@@ -4713,7 +4750,7 @@
4713
4750
  const navigation = core.useNavigationController();
4714
4751
  if (!navigation) {
4715
4752
  let t12;
4716
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
4753
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4717
4754
  t12 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(ui.CircularProgress, {}) });
4718
4755
  $[0] = t12;
4719
4756
  } else {
@@ -4743,23 +4780,22 @@
4743
4780
  t2 = $[7];
4744
4781
  }
4745
4782
  const pathError = t2;
4746
- const t3 = existing && Boolean(pathValue) || disabled;
4747
- let t4;
4748
- if ($[8] !== handleChange || $[9] !== pathError || $[10] !== pathPath || $[11] !== pathValue || $[12] !== t3) {
4749
- t4 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: pathPath, pathPath, type: "select", disabled: t3, value: pathValue, error: pathError, handleChange, as: CollectionsSelect }) }) });
4750
- $[8] = handleChange;
4751
- $[9] = pathError;
4752
- $[10] = pathPath;
4753
- $[11] = pathValue;
4754
- $[12] = t3;
4755
- $[13] = t4;
4783
+ let t3;
4784
+ if ($[8] !== disabled || $[9] !== handleChange || $[10] !== pathError || $[11] !== pathPath || $[12] !== pathValue) {
4785
+ t3 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(formex.Field, { name: pathPath, pathPath, type: "select", disabled, value: pathValue, error: pathError, handleChange, as: CollectionsSelect }) }) });
4786
+ $[8] = disabled;
4787
+ $[9] = handleChange;
4788
+ $[10] = pathError;
4789
+ $[11] = pathPath;
4790
+ $[12] = pathValue;
4791
+ $[13] = t3;
4756
4792
  } else {
4757
- t4 = $[13];
4793
+ t3 = $[13];
4758
4794
  }
4759
- return t4;
4795
+ return t3;
4760
4796
  }
4761
4797
  function CollectionsSelect(t0) {
4762
- const $ = reactCompilerRuntime.c(29);
4798
+ const $ = reactCompilerRuntime.c(26);
4763
4799
  let disabled;
4764
4800
  let error;
4765
4801
  let handleChange;
@@ -4793,7 +4829,7 @@
4793
4829
  const navigation = core.useNavigationController();
4794
4830
  if (!navigation) {
4795
4831
  let t12;
4796
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
4832
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4797
4833
  t12 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxRuntime.jsx(ui.CircularProgress, {}) });
4798
4834
  $[7] = t12;
4799
4835
  } else {
@@ -4822,10 +4858,10 @@
4822
4858
  let t3;
4823
4859
  if ($[12] !== collections || $[13] !== disabled || $[14] !== error || $[15] !== groups || $[16] !== handleChange || $[17] !== pathPath || $[18] !== props || $[19] !== value) {
4824
4860
  const ungroupedCollections = collections.filter(_temp2$6);
4825
- const t42 = Boolean(error);
4826
- let t52;
4861
+ const t4 = Boolean(error);
4862
+ let t5;
4827
4863
  if ($[21] !== collections) {
4828
- t52 = (selected) => {
4864
+ t5 = (selected) => {
4829
4865
  const selectedCollection = collections.find((collection) => collection.id === selected || collection.path === selected);
4830
4866
  if (!selectedCollection) {
4831
4867
  return null;
@@ -4836,9 +4872,9 @@
4836
4872
  ] });
4837
4873
  };
4838
4874
  $[21] = collections;
4839
- $[22] = t52;
4875
+ $[22] = t5;
4840
4876
  } else {
4841
- t52 = $[22];
4877
+ t5 = $[22];
4842
4878
  }
4843
4879
  let t6;
4844
4880
  if ($[23] !== collections || $[24] !== groups) {
@@ -4852,10 +4888,10 @@
4852
4888
  } else {
4853
4889
  t6 = $[25];
4854
4890
  }
4855
- t3 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Select, { error: t42, disabled, value: value ?? "", position: "item-aligned", name: pathPath, size: "large", fullWidth: true, onChange: handleChange, label: "Target collection", renderValue: t52, ...props, children: [
4891
+ t3 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Select, { error: t4, disabled, value: value ?? "", position: "item-aligned", name: pathPath, size: "large", fullWidth: true, onChange: handleChange, label: "Target collection", renderValue: t5, ...props, children: [
4856
4892
  t6,
4857
4893
  ungroupedCollections && /* @__PURE__ */ jsxRuntime.jsx(ui.SelectGroup, { label: "Views", children: ungroupedCollections.map(_temp3$3) })
4858
- ] });
4894
+ ] }) });
4859
4895
  $[12] = collections;
4860
4896
  $[13] = disabled;
4861
4897
  $[14] = error;
@@ -4868,25 +4904,7 @@
4868
4904
  } else {
4869
4905
  t3 = $[20];
4870
4906
  }
4871
- let t4;
4872
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
4873
- t4 = /* @__PURE__ */ jsxRuntime.jsx(core.FieldCaption, { children: "You can only edit the reference collection upon field creation." });
4874
- $[26] = t4;
4875
- } else {
4876
- t4 = $[26];
4877
- }
4878
- let t5;
4879
- if ($[27] !== t3) {
4880
- t5 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4881
- t3,
4882
- t4
4883
- ] });
4884
- $[27] = t3;
4885
- $[28] = t5;
4886
- } else {
4887
- t5 = $[28];
4888
- }
4889
- return t5;
4907
+ return t3;
4890
4908
  }
4891
4909
  function _temp3$3(collection_2) {
4892
4910
  return /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: collection_2.id ?? collection_2.path, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row", children: [
@@ -4961,7 +4979,7 @@
4961
4979
  }
4962
4980
  let t8;
4963
4981
  let t9;
4964
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
4982
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4965
4983
  t8 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "date_time", children: " Date/Time " });
4966
4984
  t9 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "date", children: " Date " });
4967
4985
  $[12] = t8;
@@ -5019,7 +5037,7 @@
5019
5037
  let t17;
5020
5038
  let t18;
5021
5039
  let t19;
5022
- if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
5040
+ if ($[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5023
5041
  t17 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "none", children: " None " });
5024
5042
  t18 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "on_create", children: " On create " });
5025
5043
  t19 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "on_update", children: " On any update " });
@@ -5449,7 +5467,7 @@
5449
5467
  let t5;
5450
5468
  let t6;
5451
5469
  let t7;
5452
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
5470
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5453
5471
  t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "[NONE]", children: "Display URL" });
5454
5472
  t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "image", children: "Image" });
5455
5473
  t6 = /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: "video", children: "Video" });
@@ -5614,7 +5632,7 @@
5614
5632
  }
5615
5633
  t13 = "col-span-12";
5616
5634
  T1 = ui.ExpandablePanel;
5617
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
5635
+ if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5618
5636
  t12 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row text-surface-500", children: [
5619
5637
  /* @__PURE__ */ jsxRuntime.jsx(ui.CloudUploadIcon, {}),
5620
5638
  /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "ml-4", children: "File upload config" })
@@ -5647,7 +5665,7 @@
5647
5665
  }
5648
5666
  let t202;
5649
5667
  let t212;
5650
- if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
5668
+ if ($[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5651
5669
  t202 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: [
5652
5670
  /* @__PURE__ */ jsxRuntime.jsx("p", { children: "You can use the following placeholders in the file name and storage path values:" }),
5653
5671
  /* @__PURE__ */ jsxRuntime.jsxs("ul", { children: [
@@ -5864,7 +5882,7 @@
5864
5882
  const includeIdAndName = t0 === void 0 ? true : t0;
5865
5883
  const onPropertyChangedImmediate = t1 === void 0 ? true : t1;
5866
5884
  let t2;
5867
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
5885
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5868
5886
  t2 = {
5869
5887
  id: "",
5870
5888
  name: ""
@@ -6120,7 +6138,7 @@
6120
6138
  }
6121
6139
  const formexRef = React.useRef();
6122
6140
  let t1;
6123
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
6141
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6124
6142
  t1 = (helpers) => {
6125
6143
  formexRef.current = helpers;
6126
6144
  };
@@ -6132,7 +6150,7 @@
6132
6150
  const t2 = open ?? false;
6133
6151
  let t3;
6134
6152
  let t4;
6135
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
6153
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6136
6154
  t3 = (e) => {
6137
6155
  e.preventDefault();
6138
6156
  e.stopPropagation();
@@ -6181,7 +6199,7 @@
6181
6199
  t7 = $[21];
6182
6200
  }
6183
6201
  let t8;
6184
- if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
6202
+ if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6185
6203
  t8 = /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outlined", type: "submit", color: "primary", children: "Ok" });
6186
6204
  $[22] = t8;
6187
6205
  } else {
@@ -6918,7 +6936,7 @@
6918
6936
  t2 = $[40];
6919
6937
  }
6920
6938
  t3 = "4xl";
6921
- if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
6939
+ if ($[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6922
6940
  t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Select a property widget" });
6923
6941
  $[41] = t4;
6924
6942
  } else {
@@ -7039,7 +7057,7 @@
7039
7057
  const baseProperty = propertyConfig.property;
7040
7058
  const shouldWarnChangingDataType = existing && !core.isPropertyBuilder(baseProperty) && baseProperty.dataType !== initialProperty?.dataType;
7041
7059
  let t1;
7042
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
7060
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7043
7061
  t1 = ui.cls("flex flex-row items-center text-base min-h-[48px]");
7044
7062
  $[0] = t1;
7045
7063
  } else {
@@ -7158,7 +7176,7 @@
7158
7176
  t1 = $[1];
7159
7177
  }
7160
7178
  let t2;
7161
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
7179
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7162
7180
  t2 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Typography, { variant: "body2", className: "my-4 mb-8", children: [
7163
7181
  "If you want to customise the collection in code, you can add this collection code to your CMS app configuration. More info in the ",
7164
7182
  /* @__PURE__ */ jsxRuntime.jsx("a", { rel: "noopener noreferrer", href: "https://firecms.co/docs/cloud/quickstart", children: "docs" }),
@@ -7197,7 +7215,7 @@
7197
7215
  t4 = $[7];
7198
7216
  }
7199
7217
  let t5;
7200
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
7218
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7201
7219
  t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.ContentCopyIcon, { size: "small" });
7202
7220
  $[8] = t5;
7203
7221
  } else {
@@ -7501,7 +7519,7 @@
7501
7519
  setSelectedPropertyKey(propertyKey_2);
7502
7520
  setSelectedPropertyNamespace(namespace_5);
7503
7521
  };
7504
- const body = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-12 gap-2 h-full bg-surface dark:bg-surface-dark", children: [
7522
+ const body = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-12 gap-2 h-full bg-white dark:bg-surface-950", children: [
7505
7523
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("bg-surface-50 dark:bg-surface-900", "p-4 md:p-8 pb-20 md:pb-20", "col-span-12 lg:col-span-5 h-full overflow-auto", !asDialog && "border-r " + ui.defaultBorderMixin), children: [
7506
7524
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex my-2", children: [
7507
7525
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-grow mb-4", children: [
@@ -7576,7 +7594,7 @@
7576
7594
  t4 = $[6];
7577
7595
  }
7578
7596
  let t5;
7579
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
7597
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7580
7598
  t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { children: "Are you sure?" });
7581
7599
  $[7] = t5;
7582
7600
  } else {
@@ -7649,7 +7667,7 @@
7649
7667
  entityViews
7650
7668
  } = core.useCustomizationController();
7651
7669
  let t1;
7652
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
7670
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7653
7671
  t1 = /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Select custom view" });
7654
7672
  $[0] = t1;
7655
7673
  } else {
@@ -7796,7 +7814,7 @@
7796
7814
  t142 = $[25];
7797
7815
  }
7798
7816
  let t152;
7799
- if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
7817
+ if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7800
7818
  t152 = () => {
7801
7819
  setCurrentDialog({
7802
7820
  isNewCollection: true
@@ -7807,7 +7825,7 @@
7807
7825
  t152 = $[26];
7808
7826
  }
7809
7827
  let t162;
7810
- if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
7828
+ if ($[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7811
7829
  t162 = /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: t152, variant: "text", startIcon: /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, {}), children: "Add subcollection" });
7812
7830
  $[27] = t162;
7813
7831
  } else {
@@ -7836,7 +7854,7 @@
7836
7854
  t9 = $[32];
7837
7855
  }
7838
7856
  t5 = "flex-grow flex flex-col gap-4 items-start";
7839
- if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
7857
+ if ($[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7840
7858
  t6 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "h5", children: "Custom views" });
7841
7859
  $[33] = t6;
7842
7860
  } else {
@@ -7854,7 +7872,7 @@
7854
7872
  T1 = ui.Table;
7855
7873
  T0 = ui.TableBody;
7856
7874
  let t182;
7857
- if ($[36] === Symbol.for("react.memo_cache_sentinel")) {
7875
+ if ($[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7858
7876
  t182 = (view) => /* @__PURE__ */ jsxRuntime.jsxs(ui.TableRow, { children: [
7859
7877
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { align: "left", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "flex-grow", children: view.name }) }),
7860
7878
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { align: "right", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "Remove", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", onClick: (e_3) => {
@@ -7929,7 +7947,7 @@
7929
7947
  t14 = $[43];
7930
7948
  }
7931
7949
  let t15;
7932
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
7950
+ if ($[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7933
7951
  t15 = () => {
7934
7952
  setAddEntityViewDialogOpen(true);
7935
7953
  };
@@ -7938,7 +7956,7 @@
7938
7956
  t15 = $[44];
7939
7957
  }
7940
7958
  let t16;
7941
- if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
7959
+ if ($[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
7942
7960
  t16 = /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: t15, variant: "text", startIcon: /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, {}), children: "Add custom entity view" });
7943
7961
  $[45] = t16;
7944
7962
  } else {
@@ -7997,7 +8015,7 @@
7997
8015
  t20 = $[63];
7998
8016
  }
7999
8017
  let t21;
8000
- if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
8018
+ if ($[64] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8001
8019
  t21 = /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
8002
8020
  height: "52px"
8003
8021
  } });
@@ -8628,7 +8646,7 @@
8628
8646
  const t4 = "4xl";
8629
8647
  const t5 = "flex flex-col gap-4 p-8 m-auto";
8630
8648
  let t6;
8631
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
8649
+ if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8632
8650
  t6 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-row py-2 pt-3 items-center", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "h4", className: "flex-grow", children: "New collection" }) });
8633
8651
  $[4] = t6;
8634
8652
  } else {
@@ -8656,14 +8674,14 @@
8656
8674
  }, size: "small", children: suggestion }, suggestion)) })
8657
8675
  ] });
8658
8676
  let t9;
8659
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
8677
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8660
8678
  t9 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "caption", color: "secondary", children: "● Select a template:" });
8661
8679
  $[7] = t9;
8662
8680
  } else {
8663
8681
  t9 = $[7];
8664
8682
  }
8665
8683
  let t10;
8666
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
8684
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8667
8685
  t10 = /* @__PURE__ */ jsxRuntime.jsx(ui.Icon, { size: "small", iconKey: productsCollectionTemplate.icon });
8668
8686
  $[8] = t10;
8669
8687
  } else {
@@ -8682,7 +8700,7 @@
8682
8700
  t11 = $[11];
8683
8701
  }
8684
8702
  let t12;
8685
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
8703
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8686
8704
  t12 = /* @__PURE__ */ jsxRuntime.jsx(ui.Icon, { size: "small", iconKey: usersCollectionTemplate.icon });
8687
8705
  $[12] = t12;
8688
8706
  } else {
@@ -8701,7 +8719,7 @@
8701
8719
  t13 = $[15];
8702
8720
  }
8703
8721
  let t14;
8704
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
8722
+ if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8705
8723
  t14 = /* @__PURE__ */ jsxRuntime.jsx(ui.Icon, { size: "small", iconKey: blogCollectionTemplate.icon });
8706
8724
  $[16] = t14;
8707
8725
  } else {
@@ -8720,7 +8738,7 @@
8720
8738
  t15 = $[19];
8721
8739
  }
8722
8740
  let t16;
8723
- if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
8741
+ if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8724
8742
  t16 = /* @__PURE__ */ jsxRuntime.jsx(ui.Icon, { size: "small", iconKey: pagesCollectionTemplate.icon });
8725
8743
  $[20] = t16;
8726
8744
  } else {
@@ -8799,8 +8817,8 @@
8799
8817
  onClick
8800
8818
  } = t0;
8801
8819
  let t1;
8802
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
8803
- t1 = ui.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-text-secondary dark:text-text-secondary-dark", "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 ");
8820
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8821
+ t1 = ui.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 ");
8804
8822
  $[0] = t1;
8805
8823
  } else {
8806
8824
  t1 = $[0];
@@ -8951,7 +8969,7 @@
8951
8969
  }
8952
8970
  const onPropertyTypeChanged = t3;
8953
8971
  let t4;
8954
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
8972
+ if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
8955
8973
  t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "h6", className: "my-4 ml-3.5", children: "Data property mapping" });
8956
8974
  $[11] = t4;
8957
8975
  } else {
@@ -9007,7 +9025,7 @@
9007
9025
  const t8 = selectedProperty !== void 0;
9008
9026
  let t10;
9009
9027
  let t9;
9010
- if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
9028
+ if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9011
9029
  t9 = () => {
9012
9030
  setSelectedProperty(void 0);
9013
9031
  };
@@ -9034,7 +9052,7 @@
9034
9052
  t11 = $[28];
9035
9053
  }
9036
9054
  let t12;
9037
- if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
9055
+ if ($[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9038
9056
  t12 = /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
9039
9057
  height: "52px"
9040
9058
  } });
@@ -9129,7 +9147,7 @@
9129
9147
  t8 = $[11];
9130
9148
  }
9131
9149
  let t9;
9132
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
9150
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9133
9151
  t9 = Object.entries(supportedFields).map(_temp2$2);
9134
9152
  $[12] = t9;
9135
9153
  } else {
@@ -9279,7 +9297,7 @@
9279
9297
  t2 = $[6];
9280
9298
  }
9281
9299
  let t3;
9282
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
9300
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9283
9301
  t3 = [];
9284
9302
  $[7] = t3;
9285
9303
  } else {
@@ -9289,7 +9307,7 @@
9289
9307
  const selectionController = core.useSelectionController();
9290
9308
  if (loading) {
9291
9309
  let t42;
9292
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
9310
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9293
9311
  t42 = /* @__PURE__ */ jsxRuntime.jsx(core.CircularProgressCenter, {});
9294
9312
  $[8] = t42;
9295
9313
  } else {
@@ -9298,7 +9316,7 @@
9298
9316
  return t42;
9299
9317
  }
9300
9318
  let t4;
9301
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
9319
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9302
9320
  t4 = /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
9303
9321
  /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", children: "Imported data preview" }),
9304
9322
  /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "caption", children: "Entities with the same id will be overwritten" })
@@ -9320,7 +9338,7 @@
9320
9338
  t5 = $[11];
9321
9339
  }
9322
9340
  let t6;
9323
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
9341
+ if ($[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9324
9342
  t6 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-12" });
9325
9343
  $[12] = t6;
9326
9344
  } else {
@@ -9411,7 +9429,7 @@
9411
9429
  entityActions
9412
9430
  } = core.useCustomizationController();
9413
9431
  let t1;
9414
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
9432
+ if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9415
9433
  t1 = /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Select custom action" });
9416
9434
  $[0] = t1;
9417
9435
  } else {
@@ -9513,7 +9531,7 @@
9513
9531
  t9 = "flex flex-col gap-4 p-8 m-auto";
9514
9532
  t7 = "flex flex-col gap-16";
9515
9533
  t4 = "flex-grow flex flex-col gap-4 items-start";
9516
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
9534
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9517
9535
  t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "h5", children: "Custom actions" });
9518
9536
  $[17] = t5;
9519
9537
  } else {
@@ -9531,7 +9549,7 @@
9531
9549
  T1 = ui.Table;
9532
9550
  T0 = ui.TableBody;
9533
9551
  let t112;
9534
- if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
9552
+ if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9535
9553
  t112 = (action) => /* @__PURE__ */ jsxRuntime.jsxs(ui.TableRow, { children: [
9536
9554
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { align: "left", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "flex-grow", children: action.name }) }),
9537
9555
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { align: "right", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "Remove", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", onClick: (e_2) => {
@@ -9602,7 +9620,7 @@
9602
9620
  t12 = $[27];
9603
9621
  }
9604
9622
  let t13;
9605
- if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
9623
+ if ($[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9606
9624
  t13 = () => {
9607
9625
  setAddEntityActionDialogOpen(true);
9608
9626
  };
@@ -9611,7 +9629,7 @@
9611
9629
  t13 = $[28];
9612
9630
  }
9613
9631
  let t14;
9614
- if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
9632
+ if ($[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9615
9633
  t14 = /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: t13, variant: "text", startIcon: /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, {}), children: "Add custom entity action" });
9616
9634
  $[29] = t14;
9617
9635
  } else {
@@ -9666,7 +9684,7 @@
9666
9684
  t18 = $[46];
9667
9685
  }
9668
9686
  let t19;
9669
- if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
9687
+ if ($[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9670
9688
  t19 = /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
9671
9689
  height: "52px"
9672
9690
  } });
@@ -9798,7 +9816,7 @@
9798
9816
  t3 = $[7];
9799
9817
  }
9800
9818
  let t4;
9801
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
9819
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9802
9820
  t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { hidden: true, children: "Collection editor" });
9803
9821
  $[8] = t4;
9804
9822
  } else {
@@ -9823,7 +9841,7 @@
9823
9841
  t6 = $[14];
9824
9842
  }
9825
9843
  let t7;
9826
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
9844
+ if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
9827
9845
  t7 = () => setUnsavedChangesDialogOpen(false);
9828
9846
  $[15] = t7;
9829
9847
  } else {
@@ -10252,23 +10270,14 @@
10252
10270
  }, getUser, getData: getDataWithPath, doCollectionInference, propertyConfigs, collectionEditable, extraIcon: extraView?.icon && /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { color: "primary", onClick: () => setCurrentView("extra_view"), children: extraView.icon }) }),
10253
10271
  /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogActions, { position: "absolute", children: [
10254
10272
  error && /* @__PURE__ */ jsxRuntime.jsx(core.ErrorView, { error }),
10255
- isNewCollection && includeTemplates && currentView === "import_data_mapping" && /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { variant: "text", type: "button", color: "primary", onClick: () => {
10273
+ isNewCollection && includeTemplates && currentView === "import_data_mapping" && /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "text", type: "button", onClick: () => {
10256
10274
  importConfig.setInUse(false);
10257
10275
  return setCurrentView("welcome");
10258
- }, children: [
10259
- /* @__PURE__ */ jsxRuntime.jsx(ui.ArrowBackIcon, {}),
10260
- "Back"
10261
- ] }),
10262
- isNewCollection && includeTemplates && currentView === "import_data_preview" && /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { variant: "text", type: "button", color: "primary", onClick: () => {
10276
+ }, children: "Back" }),
10277
+ isNewCollection && includeTemplates && currentView === "import_data_preview" && /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "text", type: "button", onClick: () => {
10263
10278
  setCurrentView("import_data_mapping");
10264
- }, children: [
10265
- /* @__PURE__ */ jsxRuntime.jsx(ui.ArrowBackIcon, {}),
10266
- "Back"
10267
- ] }),
10268
- isNewCollection && includeTemplates && currentView === "details" && /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { variant: "text", color: "neutral", type: "button", onClick: () => setCurrentView("welcome"), children: [
10269
- /* @__PURE__ */ jsxRuntime.jsx(ui.ArrowBackIcon, {}),
10270
- "Back"
10271
- ] }),
10279
+ }, children: "Back" }),
10280
+ isNewCollection && includeTemplates && currentView === "details" && /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "text", type: "button", onClick: () => setCurrentView("welcome"), children: "Back" }),
10272
10281
  isNewCollection && currentView === "properties" && /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { variant: "text", type: "button", color: "neutral", onClick: () => setCurrentView("details"), children: [
10273
10282
  /* @__PURE__ */ jsxRuntime.jsx(ui.ArrowBackIcon, {}),
10274
10283
  "Back"
@@ -10637,7 +10646,7 @@
10637
10646
  let t17;
10638
10647
  let t18;
10639
10648
  let t19;
10640
- if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
10649
+ if ($[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10641
10650
  t17 = () => {
10642
10651
  setCurrentPropertyDialog(void 0);
10643
10652
  };
@@ -10654,7 +10663,7 @@
10654
10663
  t19 = $[46];
10655
10664
  }
10656
10665
  let t20;
10657
- if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
10666
+ if ($[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10658
10667
  t20 = [];
10659
10668
  $[47] = t20;
10660
10669
  } else {
@@ -10773,7 +10782,7 @@
10773
10782
  t5 = $[14];
10774
10783
  }
10775
10784
  let t6;
10776
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
10785
+ if ($[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10777
10786
  t6 = /* @__PURE__ */ jsxRuntime.jsx(ui.SettingsIcon, { size: "small" });
10778
10787
  $[15] = t6;
10779
10788
  } else {
@@ -10911,7 +10920,7 @@
10911
10920
  }
10912
10921
  let t7;
10913
10922
  let t8;
10914
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
10923
+ if ($[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10915
10924
  t7 = () => setDeleteRequested(false);
10916
10925
  t8 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: "Delete this collection?" });
10917
10926
  $[19] = t7;
@@ -10921,7 +10930,7 @@
10921
10930
  t8 = $[20];
10922
10931
  }
10923
10932
  let t9;
10924
- if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
10933
+ if ($[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10925
10934
  t9 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
10926
10935
  " This will ",
10927
10936
  /* @__PURE__ */ jsxRuntime.jsx("b", { children: "not delete any data" }),
@@ -10989,7 +10998,7 @@
10989
10998
  t2 = $[6];
10990
10999
  }
10991
11000
  let t3;
10992
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
11001
+ if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
10993
11002
  t3 = /* @__PURE__ */ jsxRuntime.jsx(ui.SettingsIcon, { size: "small" });
10994
11003
  $[7] = t3;
10995
11004
  } else {
@@ -11040,7 +11049,7 @@
11040
11049
  t2 = $[4];
11041
11050
  }
11042
11051
  let t3;
11043
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
11052
+ if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11044
11053
  t3 = /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, { color: "inherit" });
11045
11054
  $[5] = t3;
11046
11055
  } else {
@@ -11048,7 +11057,7 @@
11048
11057
  }
11049
11058
  let t4;
11050
11059
  if ($[6] !== t2) {
11051
- t4 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-0.5 w-20 h-full flex items-center justify-center cursor-pointer bg-surface-100 bg-opacity-40 bg-surface-100/40 hover:bg-surface-100 dark:bg-surface-950 dark:bg-opacity-40 dark:bg-surface-950/40 dark:hover:bg-surface-950", onClick: t2, children: t3 });
11060
+ t4 = /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-0.5 w-20 h-full flex items-center justify-center cursor-pointer bg-surface-100 bg-opacity-40 hover:bg-surface-100 dark:bg-surface-950 dark:bg-opacity-40 dark:hover:bg-surface-950", onClick: t2, children: t3 });
11052
11061
  $[6] = t2;
11053
11062
  $[7] = t4;
11054
11063
  } else {
@@ -11081,7 +11090,7 @@
11081
11090
  t0 = $[1];
11082
11091
  }
11083
11092
  let t1;
11084
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
11093
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11085
11094
  t1 = /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, {});
11086
11095
  $[2] = t1;
11087
11096
  } else {
@@ -11154,7 +11163,7 @@
11154
11163
  t32 = $[10];
11155
11164
  }
11156
11165
  let t4;
11157
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
11166
+ if ($[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11158
11167
  t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.SaveIcon, {});
11159
11168
  $[11] = t4;
11160
11169
  } else {
@@ -11248,7 +11257,7 @@
11248
11257
  }
11249
11258
  const canCreateCollections = t1;
11250
11259
  let t2;
11251
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
11260
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11252
11261
  t2 = ui.cls("h-full p-4 min-h-[124px]");
11253
11262
  $[3] = t2;
11254
11263
  } else {
@@ -11272,14 +11281,14 @@
11272
11281
  t3 = $[7];
11273
11282
  }
11274
11283
  let t4;
11275
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
11284
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11276
11285
  t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, { color: "primary", size: "large" });
11277
11286
  $[8] = t4;
11278
11287
  } else {
11279
11288
  t4 = $[8];
11280
11289
  }
11281
11290
  let t5;
11282
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
11291
+ if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11283
11292
  t5 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { color: "primary", variant: "caption", className: "font-medium", children: "Add new collection".toUpperCase() });
11284
11293
  $[9] = t5;
11285
11294
  } else {
@@ -11373,7 +11382,7 @@
11373
11382
  t5 = $[13];
11374
11383
  }
11375
11384
  let t6;
11376
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
11385
+ if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11377
11386
  t6 = /* @__PURE__ */ jsxRuntime.jsx(ui.SettingsIcon, { size: "small" });
11378
11387
  $[14] = t6;
11379
11388
  } else {
@@ -11453,7 +11462,7 @@
11453
11462
  t2 = $[9];
11454
11463
  }
11455
11464
  let t3;
11456
- if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
11465
+ if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11457
11466
  t3 = /* @__PURE__ */ jsxRuntime.jsx(NewCollectionButton, {});
11458
11467
  $[10] = t3;
11459
11468
  } else {
@@ -11487,7 +11496,7 @@
11487
11496
  }
11488
11497
  let t6;
11489
11498
  let t7;
11490
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
11499
+ if ($[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11491
11500
  t6 = {
11492
11501
  CollectionActionsStart: EditorCollectionActionStart,
11493
11502
  CollectionActions: EditorCollectionAction,
@@ -11547,7 +11556,7 @@
11547
11556
  }
11548
11557
  let t1;
11549
11558
  let t2;
11550
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
11559
+ if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11551
11560
  t1 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { variant: "subtitle2", className: "uppercase", children: "No collections found" });
11552
11561
  t2 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { children: "Start building collections in FireCMS easily. Map them to your existing database data, import from files, or use our templates." });
11553
11562
  $[3] = t1;
@@ -11573,7 +11582,7 @@
11573
11582
  t3 = $[7];
11574
11583
  }
11575
11584
  let t4;
11576
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
11585
+ if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
11577
11586
  t4 = /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { color: "secondary", children: "You can also define collections programmatically." });
11578
11587
  $[8] = t4;
11579
11588
  } else {