@firecms/collection_editor 3.3.0 → 3.4.0-canary.2575a08
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +810 -752
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +810 -752
- package/dist/index.umd.js.map +1 -1
- package/dist/ui/collection_editor/properties/StoragePropertyField.d.ts +1 -2
- package/package.json +8 -7
- package/src/locales/de.ts +2 -2
- package/src/locales/en.ts +2 -2
- package/src/locales/es.ts +2 -2
- package/src/locales/fr.ts +2 -2
- package/src/locales/hi.ts +2 -2
- package/src/locales/it.ts +2 -2
- package/src/locales/pt.ts +2 -2
- package/src/ui/collection_editor/CollectionPropertiesEditorForm.tsx +2 -2
- package/src/ui/collection_editor/DisplaySettingsForm.tsx +105 -0
- package/src/ui/collection_editor/PropertyEditView.tsx +2 -4
- package/src/ui/collection_editor/properties/StoragePropertyField.tsx +2 -4
package/dist/index.es.js
CHANGED
|
@@ -2371,10 +2371,9 @@ function EnumPropertyField({
|
|
|
2371
2371
|
] });
|
|
2372
2372
|
}
|
|
2373
2373
|
function StoragePropertyField(t0) {
|
|
2374
|
-
const $ = c(
|
|
2374
|
+
const $ = c(341);
|
|
2375
2375
|
const {
|
|
2376
2376
|
multiple,
|
|
2377
|
-
existing,
|
|
2378
2377
|
disabled
|
|
2379
2378
|
} = t0;
|
|
2380
2379
|
const {
|
|
@@ -2438,39 +2437,39 @@ function StoragePropertyField(t0) {
|
|
|
2438
2437
|
let t7;
|
|
2439
2438
|
let t8;
|
|
2440
2439
|
let t9;
|
|
2441
|
-
if ($[6] !== acceptedFiles || $[7] !== disabled || $[8] !==
|
|
2440
|
+
if ($[6] !== acceptedFiles || $[7] !== disabled || $[8] !== fileName || $[9] !== fileNameValue || $[10] !== imageResizeFormat || $[11] !== imageResizeMaxHeight || $[12] !== imageResizeMaxWidth || $[13] !== imageResizeMode || $[14] !== imageResizeQuality || $[15] !== includeBucketUrl || $[16] !== maxSize || $[17] !== setFieldValue || $[18] !== storagePath || $[19] !== storagePathValue || $[20] !== storeUrl || $[21] !== t || $[22] !== values) {
|
|
2442
2441
|
const maxSizeValue = getIn(values, maxSize);
|
|
2443
2442
|
const imageResizeMaxWidthValue = getIn(values, imageResizeMaxWidth);
|
|
2444
2443
|
const imageResizeMaxHeightValue = getIn(values, imageResizeMaxHeight);
|
|
2445
2444
|
let t222;
|
|
2446
|
-
if ($[
|
|
2445
|
+
if ($[44] !== imageResizeMode || $[45] !== values) {
|
|
2447
2446
|
t222 = getIn(values, imageResizeMode) ?? "cover";
|
|
2448
|
-
$[
|
|
2449
|
-
$[
|
|
2450
|
-
$[
|
|
2447
|
+
$[44] = imageResizeMode;
|
|
2448
|
+
$[45] = values;
|
|
2449
|
+
$[46] = t222;
|
|
2451
2450
|
} else {
|
|
2452
|
-
t222 = $[
|
|
2451
|
+
t222 = $[46];
|
|
2453
2452
|
}
|
|
2454
2453
|
const imageResizeModeValue = t222;
|
|
2455
2454
|
let t232;
|
|
2456
|
-
if ($[
|
|
2455
|
+
if ($[47] !== imageResizeFormat || $[48] !== values) {
|
|
2457
2456
|
t232 = getIn(values, imageResizeFormat) ?? "original";
|
|
2458
|
-
$[
|
|
2459
|
-
$[
|
|
2460
|
-
$[
|
|
2457
|
+
$[47] = imageResizeFormat;
|
|
2458
|
+
$[48] = values;
|
|
2459
|
+
$[49] = t232;
|
|
2461
2460
|
} else {
|
|
2462
|
-
t232 = $[
|
|
2461
|
+
t232 = $[49];
|
|
2463
2462
|
}
|
|
2464
2463
|
const imageResizeFormatValue = t232;
|
|
2465
2464
|
const imageResizeQualityValue = getIn(values, imageResizeQuality);
|
|
2466
2465
|
let t242;
|
|
2467
|
-
if ($[
|
|
2466
|
+
if ($[50] !== acceptedFiles || $[51] !== values) {
|
|
2468
2467
|
t242 = getIn(values, acceptedFiles);
|
|
2469
|
-
$[
|
|
2470
|
-
$[
|
|
2471
|
-
$[
|
|
2468
|
+
$[50] = acceptedFiles;
|
|
2469
|
+
$[51] = values;
|
|
2470
|
+
$[52] = t242;
|
|
2472
2471
|
} else {
|
|
2473
|
-
t242 = $[
|
|
2472
|
+
t242 = $[52];
|
|
2474
2473
|
}
|
|
2475
2474
|
const storedValue = t242;
|
|
2476
2475
|
const fileTypesValue = Array.isArray(storedValue) ? storedValue : void 0;
|
|
@@ -2488,7 +2487,7 @@ function StoragePropertyField(t0) {
|
|
|
2488
2487
|
let t322;
|
|
2489
2488
|
let t332;
|
|
2490
2489
|
let t34;
|
|
2491
|
-
if ($[
|
|
2490
|
+
if ($[53] !== acceptedFiles || $[54] !== allFileTypesSelected || $[55] !== disabled || $[56] !== fileNameValue || $[57] !== fileTypesValue || $[58] !== setFieldValue || $[59] !== storagePathValue || $[60] !== t) {
|
|
2492
2491
|
const fileTypes = {
|
|
2493
2492
|
"image/*": t("file_type_images"),
|
|
2494
2493
|
"video/*": t("file_type_videos"),
|
|
@@ -2497,7 +2496,7 @@ function StoragePropertyField(t0) {
|
|
|
2497
2496
|
"text/*": t("file_type_text")
|
|
2498
2497
|
};
|
|
2499
2498
|
let t352;
|
|
2500
|
-
if ($[
|
|
2499
|
+
if ($[78] !== acceptedFiles || $[79] !== setFieldValue) {
|
|
2501
2500
|
t352 = (value) => {
|
|
2502
2501
|
if (!value) {
|
|
2503
2502
|
setFieldValue(acceptedFiles, void 0);
|
|
@@ -2505,11 +2504,11 @@ function StoragePropertyField(t0) {
|
|
|
2505
2504
|
setFieldValue(acceptedFiles, value);
|
|
2506
2505
|
}
|
|
2507
2506
|
};
|
|
2508
|
-
$[
|
|
2509
|
-
$[
|
|
2510
|
-
$[
|
|
2507
|
+
$[78] = acceptedFiles;
|
|
2508
|
+
$[79] = setFieldValue;
|
|
2509
|
+
$[80] = t352;
|
|
2511
2510
|
} else {
|
|
2512
|
-
t352 = $[
|
|
2511
|
+
t352 = $[80];
|
|
2513
2512
|
}
|
|
2514
2513
|
const handleTypesChange = t352;
|
|
2515
2514
|
hasFilenameCallback = typeof fileNameValue === "function";
|
|
@@ -2517,58 +2516,58 @@ function StoragePropertyField(t0) {
|
|
|
2517
2516
|
t21 = "col-span-12";
|
|
2518
2517
|
T1 = ExpandablePanel;
|
|
2519
2518
|
let t362;
|
|
2520
|
-
if ($[
|
|
2519
|
+
if ($[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2521
2520
|
t362 = /* @__PURE__ */ jsx(CloudUploadIcon, {});
|
|
2522
|
-
$[
|
|
2521
|
+
$[81] = t362;
|
|
2523
2522
|
} else {
|
|
2524
|
-
t362 = $[
|
|
2523
|
+
t362 = $[81];
|
|
2525
2524
|
}
|
|
2526
2525
|
let t372;
|
|
2527
|
-
if ($[
|
|
2526
|
+
if ($[82] !== t) {
|
|
2528
2527
|
t372 = t("file_upload_config");
|
|
2529
|
-
$[
|
|
2530
|
-
$[
|
|
2528
|
+
$[82] = t;
|
|
2529
|
+
$[83] = t372;
|
|
2531
2530
|
} else {
|
|
2532
|
-
t372 = $[
|
|
2531
|
+
t372 = $[83];
|
|
2533
2532
|
}
|
|
2534
|
-
if ($[
|
|
2533
|
+
if ($[84] !== t372) {
|
|
2535
2534
|
t20 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500 text-text-secondary dark:text-text-secondary-dark", children: [
|
|
2536
2535
|
t362,
|
|
2537
2536
|
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "ml-4", children: t372 })
|
|
2538
2537
|
] });
|
|
2539
|
-
$[
|
|
2540
|
-
$[
|
|
2538
|
+
$[84] = t372;
|
|
2539
|
+
$[85] = t20;
|
|
2541
2540
|
} else {
|
|
2542
|
-
t20 = $[
|
|
2541
|
+
t20 = $[85];
|
|
2543
2542
|
}
|
|
2544
2543
|
t10 = "grid grid-cols-12 gap-2 p-4";
|
|
2545
2544
|
t34 = "col-span-12";
|
|
2546
2545
|
T2 = MultiSelect;
|
|
2547
2546
|
t252 = "w-full";
|
|
2548
|
-
if ($[
|
|
2547
|
+
if ($[86] !== t) {
|
|
2549
2548
|
t262 = t("all_file_types_allowed");
|
|
2550
|
-
$[
|
|
2551
|
-
$[
|
|
2549
|
+
$[86] = t;
|
|
2550
|
+
$[87] = t262;
|
|
2552
2551
|
} else {
|
|
2553
|
-
t262 = $[
|
|
2552
|
+
t262 = $[87];
|
|
2554
2553
|
}
|
|
2555
2554
|
t272 = disabled;
|
|
2556
2555
|
t282 = acceptedFiles;
|
|
2557
|
-
if ($[
|
|
2556
|
+
if ($[88] !== fileTypesValue) {
|
|
2558
2557
|
t292 = fileTypesValue ?? [];
|
|
2559
|
-
$[
|
|
2560
|
-
$[
|
|
2558
|
+
$[88] = fileTypesValue;
|
|
2559
|
+
$[89] = t292;
|
|
2561
2560
|
} else {
|
|
2562
|
-
t292 = $[
|
|
2561
|
+
t292 = $[89];
|
|
2563
2562
|
}
|
|
2564
2563
|
t302 = handleTypesChange;
|
|
2565
|
-
if ($[
|
|
2564
|
+
if ($[90] !== allFileTypesSelected || $[91] !== t) {
|
|
2566
2565
|
t312 = allFileTypesSelected ? void 0 : t("allowed_file_types");
|
|
2567
|
-
$[
|
|
2568
|
-
$[
|
|
2569
|
-
$[
|
|
2566
|
+
$[90] = allFileTypesSelected;
|
|
2567
|
+
$[91] = t;
|
|
2568
|
+
$[92] = t312;
|
|
2570
2569
|
} else {
|
|
2571
|
-
t312 = $[
|
|
2570
|
+
t312 = $[92];
|
|
2572
2571
|
}
|
|
2573
2572
|
t322 = (selected) => {
|
|
2574
2573
|
if (!selected || selected.length === 0) {
|
|
@@ -2577,7 +2576,7 @@ function StoragePropertyField(t0) {
|
|
|
2577
2576
|
return selected.map((v) => fileTypes[v]).filter(_temp$d).join(", ");
|
|
2578
2577
|
};
|
|
2579
2578
|
let t382;
|
|
2580
|
-
if ($[
|
|
2579
|
+
if ($[93] !== acceptedFiles || $[94] !== setFieldValue || $[95] !== t) {
|
|
2581
2580
|
t382 = (t392) => {
|
|
2582
2581
|
const [value_0, label] = t392;
|
|
2583
2582
|
return /* @__PURE__ */ jsxs(MultiSelectItem, { value: value_0, className: "flex items-center gap-2", children: [
|
|
@@ -2589,254 +2588,254 @@ function StoragePropertyField(t0) {
|
|
|
2589
2588
|
}, children: t("only") })
|
|
2590
2589
|
] }, value_0);
|
|
2591
2590
|
};
|
|
2592
|
-
$[
|
|
2593
|
-
$[
|
|
2594
|
-
$[
|
|
2595
|
-
$[
|
|
2591
|
+
$[93] = acceptedFiles;
|
|
2592
|
+
$[94] = setFieldValue;
|
|
2593
|
+
$[95] = t;
|
|
2594
|
+
$[96] = t382;
|
|
2596
2595
|
} else {
|
|
2597
|
-
t382 = $[
|
|
2596
|
+
t382 = $[96];
|
|
2598
2597
|
}
|
|
2599
2598
|
t332 = Object.entries(fileTypes).map(t382);
|
|
2600
|
-
$[
|
|
2601
|
-
$[
|
|
2602
|
-
$[
|
|
2603
|
-
$[
|
|
2604
|
-
$[
|
|
2605
|
-
$[
|
|
2606
|
-
$[
|
|
2607
|
-
$[
|
|
2608
|
-
$[
|
|
2609
|
-
$[
|
|
2610
|
-
$[
|
|
2611
|
-
$[
|
|
2612
|
-
$[
|
|
2613
|
-
$[
|
|
2614
|
-
$[
|
|
2615
|
-
$[
|
|
2616
|
-
$[
|
|
2617
|
-
$[
|
|
2618
|
-
$[
|
|
2619
|
-
$[
|
|
2620
|
-
$[
|
|
2621
|
-
$[
|
|
2622
|
-
$[
|
|
2623
|
-
$[
|
|
2624
|
-
$[
|
|
2599
|
+
$[53] = acceptedFiles;
|
|
2600
|
+
$[54] = allFileTypesSelected;
|
|
2601
|
+
$[55] = disabled;
|
|
2602
|
+
$[56] = fileNameValue;
|
|
2603
|
+
$[57] = fileTypesValue;
|
|
2604
|
+
$[58] = setFieldValue;
|
|
2605
|
+
$[59] = storagePathValue;
|
|
2606
|
+
$[60] = t;
|
|
2607
|
+
$[61] = T1;
|
|
2608
|
+
$[62] = T2;
|
|
2609
|
+
$[63] = hasFilenameCallback;
|
|
2610
|
+
$[64] = hasStoragePathCallback;
|
|
2611
|
+
$[65] = t10;
|
|
2612
|
+
$[66] = t20;
|
|
2613
|
+
$[67] = t21;
|
|
2614
|
+
$[68] = t252;
|
|
2615
|
+
$[69] = t262;
|
|
2616
|
+
$[70] = t272;
|
|
2617
|
+
$[71] = t282;
|
|
2618
|
+
$[72] = t292;
|
|
2619
|
+
$[73] = t302;
|
|
2620
|
+
$[74] = t312;
|
|
2621
|
+
$[75] = t322;
|
|
2622
|
+
$[76] = t332;
|
|
2623
|
+
$[77] = t34;
|
|
2625
2624
|
} else {
|
|
2626
|
-
T1 = $[
|
|
2627
|
-
T2 = $[
|
|
2628
|
-
hasFilenameCallback = $[
|
|
2629
|
-
hasStoragePathCallback = $[
|
|
2630
|
-
t10 = $[
|
|
2631
|
-
t20 = $[
|
|
2632
|
-
t21 = $[
|
|
2633
|
-
t252 = $[
|
|
2634
|
-
t262 = $[
|
|
2635
|
-
t272 = $[
|
|
2636
|
-
t282 = $[
|
|
2637
|
-
t292 = $[
|
|
2638
|
-
t302 = $[
|
|
2639
|
-
t312 = $[
|
|
2640
|
-
t322 = $[
|
|
2641
|
-
t332 = $[
|
|
2642
|
-
t34 = $[
|
|
2625
|
+
T1 = $[61];
|
|
2626
|
+
T2 = $[62];
|
|
2627
|
+
hasFilenameCallback = $[63];
|
|
2628
|
+
hasStoragePathCallback = $[64];
|
|
2629
|
+
t10 = $[65];
|
|
2630
|
+
t20 = $[66];
|
|
2631
|
+
t21 = $[67];
|
|
2632
|
+
t252 = $[68];
|
|
2633
|
+
t262 = $[69];
|
|
2634
|
+
t272 = $[70];
|
|
2635
|
+
t282 = $[71];
|
|
2636
|
+
t292 = $[72];
|
|
2637
|
+
t302 = $[73];
|
|
2638
|
+
t312 = $[74];
|
|
2639
|
+
t322 = $[75];
|
|
2640
|
+
t332 = $[76];
|
|
2641
|
+
t34 = $[77];
|
|
2643
2642
|
}
|
|
2644
2643
|
let t35;
|
|
2645
|
-
if ($[
|
|
2644
|
+
if ($[97] !== T2 || $[98] !== t252 || $[99] !== t262 || $[100] !== t272 || $[101] !== t282 || $[102] !== t292 || $[103] !== t302 || $[104] !== t312 || $[105] !== t322 || $[106] !== t332) {
|
|
2646
2645
|
t35 = /* @__PURE__ */ jsx(T2, { className: t252, placeholder: t262, disabled: t272, name: t282, value: t292, onValueChange: t302, label: t312, renderValues: t322, children: t332 });
|
|
2647
|
-
$[
|
|
2648
|
-
$[
|
|
2649
|
-
$[
|
|
2650
|
-
$[
|
|
2651
|
-
$[
|
|
2652
|
-
$[
|
|
2653
|
-
$[
|
|
2654
|
-
$[
|
|
2655
|
-
$[
|
|
2656
|
-
$[
|
|
2657
|
-
$[
|
|
2646
|
+
$[97] = T2;
|
|
2647
|
+
$[98] = t252;
|
|
2648
|
+
$[99] = t262;
|
|
2649
|
+
$[100] = t272;
|
|
2650
|
+
$[101] = t282;
|
|
2651
|
+
$[102] = t292;
|
|
2652
|
+
$[103] = t302;
|
|
2653
|
+
$[104] = t312;
|
|
2654
|
+
$[105] = t322;
|
|
2655
|
+
$[106] = t332;
|
|
2656
|
+
$[107] = t35;
|
|
2658
2657
|
} else {
|
|
2659
|
-
t35 = $[
|
|
2658
|
+
t35 = $[107];
|
|
2660
2659
|
}
|
|
2661
|
-
if ($[
|
|
2660
|
+
if ($[108] !== t34 || $[109] !== t35) {
|
|
2662
2661
|
t11 = /* @__PURE__ */ jsx("div", { className: t34, children: t35 });
|
|
2663
|
-
$[
|
|
2664
|
-
$[
|
|
2665
|
-
$[
|
|
2662
|
+
$[108] = t34;
|
|
2663
|
+
$[109] = t35;
|
|
2664
|
+
$[110] = t11;
|
|
2666
2665
|
} else {
|
|
2667
|
-
t11 = $[
|
|
2666
|
+
t11 = $[110];
|
|
2668
2667
|
}
|
|
2669
2668
|
let t36;
|
|
2670
|
-
if ($[
|
|
2669
|
+
if ($[111] !== t) {
|
|
2671
2670
|
t36 = t("file_name_label");
|
|
2672
|
-
$[
|
|
2673
|
-
$[
|
|
2671
|
+
$[111] = t;
|
|
2672
|
+
$[112] = t36;
|
|
2674
2673
|
} else {
|
|
2675
|
-
t36 = $[
|
|
2674
|
+
t36 = $[112];
|
|
2676
2675
|
}
|
|
2677
2676
|
const t37 = hasFilenameCallback || disabled;
|
|
2678
2677
|
const t38 = hasFilenameCallback ? "-" : fileNameValue;
|
|
2679
|
-
if ($[
|
|
2678
|
+
if ($[113] !== fileName || $[114] !== t36 || $[115] !== t37 || $[116] !== t38) {
|
|
2680
2679
|
t12 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(Field, { name: fileName, as: DebouncedTextField, label: t36, size: "small", disabled: t37, value: t38 }) });
|
|
2681
|
-
$[
|
|
2682
|
-
$[
|
|
2683
|
-
$[
|
|
2684
|
-
$[
|
|
2685
|
-
$[
|
|
2680
|
+
$[113] = fileName;
|
|
2681
|
+
$[114] = t36;
|
|
2682
|
+
$[115] = t37;
|
|
2683
|
+
$[116] = t38;
|
|
2684
|
+
$[117] = t12;
|
|
2686
2685
|
} else {
|
|
2687
|
-
t12 = $[
|
|
2686
|
+
t12 = $[117];
|
|
2688
2687
|
}
|
|
2689
2688
|
let t39;
|
|
2690
|
-
if ($[
|
|
2689
|
+
if ($[118] !== t) {
|
|
2691
2690
|
t39 = t("storage_path_label");
|
|
2692
|
-
$[
|
|
2693
|
-
$[
|
|
2691
|
+
$[118] = t;
|
|
2692
|
+
$[119] = t39;
|
|
2694
2693
|
} else {
|
|
2695
|
-
t39 = $[
|
|
2694
|
+
t39 = $[119];
|
|
2696
2695
|
}
|
|
2697
2696
|
const t40 = hasStoragePathCallback || disabled;
|
|
2698
2697
|
const t41 = hasStoragePathCallback ? "-" : storagePathValue;
|
|
2699
2698
|
let t42;
|
|
2700
|
-
if ($[
|
|
2699
|
+
if ($[120] !== storagePath || $[121] !== t39 || $[122] !== t40 || $[123] !== t41) {
|
|
2701
2700
|
t42 = /* @__PURE__ */ jsx(Field, { name: storagePath, as: DebouncedTextField, label: t39, disabled: t40, size: "small", value: t41 });
|
|
2702
|
-
$[
|
|
2703
|
-
$[
|
|
2704
|
-
$[
|
|
2705
|
-
$[
|
|
2706
|
-
$[
|
|
2701
|
+
$[120] = storagePath;
|
|
2702
|
+
$[121] = t39;
|
|
2703
|
+
$[122] = t40;
|
|
2704
|
+
$[123] = t41;
|
|
2705
|
+
$[124] = t42;
|
|
2707
2706
|
} else {
|
|
2708
|
-
t42 = $[
|
|
2707
|
+
t42 = $[124];
|
|
2709
2708
|
}
|
|
2710
2709
|
let t43;
|
|
2711
|
-
if ($[
|
|
2710
|
+
if ($[125] !== t) {
|
|
2712
2711
|
t43 = t("storage_placeholders_description");
|
|
2713
|
-
$[
|
|
2714
|
-
$[
|
|
2712
|
+
$[125] = t;
|
|
2713
|
+
$[126] = t43;
|
|
2715
2714
|
} else {
|
|
2716
|
-
t43 = $[
|
|
2715
|
+
t43 = $[126];
|
|
2717
2716
|
}
|
|
2718
2717
|
let t44;
|
|
2719
|
-
if ($[
|
|
2718
|
+
if ($[127] !== t43) {
|
|
2720
2719
|
t44 = /* @__PURE__ */ jsx("p", { children: t43 });
|
|
2721
|
-
$[
|
|
2722
|
-
$[
|
|
2720
|
+
$[127] = t43;
|
|
2721
|
+
$[128] = t44;
|
|
2723
2722
|
} else {
|
|
2724
|
-
t44 = $[
|
|
2723
|
+
t44 = $[128];
|
|
2725
2724
|
}
|
|
2726
2725
|
let t45;
|
|
2727
|
-
if ($[
|
|
2726
|
+
if ($[129] !== t) {
|
|
2728
2727
|
t45 = t("storage_placeholder_file");
|
|
2729
|
-
$[
|
|
2730
|
-
$[
|
|
2728
|
+
$[129] = t;
|
|
2729
|
+
$[130] = t45;
|
|
2731
2730
|
} else {
|
|
2732
|
-
t45 = $[
|
|
2731
|
+
t45 = $[130];
|
|
2733
2732
|
}
|
|
2734
2733
|
let t46;
|
|
2735
|
-
if ($[
|
|
2734
|
+
if ($[131] !== t45) {
|
|
2736
2735
|
t46 = /* @__PURE__ */ jsx("li", { children: t45 });
|
|
2737
|
-
$[
|
|
2738
|
-
$[
|
|
2736
|
+
$[131] = t45;
|
|
2737
|
+
$[132] = t46;
|
|
2739
2738
|
} else {
|
|
2740
|
-
t46 = $[
|
|
2739
|
+
t46 = $[132];
|
|
2741
2740
|
}
|
|
2742
2741
|
let t47;
|
|
2743
|
-
if ($[
|
|
2742
|
+
if ($[133] !== t) {
|
|
2744
2743
|
t47 = t("storage_placeholder_file_name");
|
|
2745
|
-
$[
|
|
2746
|
-
$[
|
|
2744
|
+
$[133] = t;
|
|
2745
|
+
$[134] = t47;
|
|
2747
2746
|
} else {
|
|
2748
|
-
t47 = $[
|
|
2747
|
+
t47 = $[134];
|
|
2749
2748
|
}
|
|
2750
2749
|
let t48;
|
|
2751
|
-
if ($[
|
|
2750
|
+
if ($[135] !== t47) {
|
|
2752
2751
|
t48 = /* @__PURE__ */ jsx("li", { children: t47 });
|
|
2753
|
-
$[
|
|
2754
|
-
$[
|
|
2752
|
+
$[135] = t47;
|
|
2753
|
+
$[136] = t48;
|
|
2755
2754
|
} else {
|
|
2756
|
-
t48 = $[
|
|
2755
|
+
t48 = $[136];
|
|
2757
2756
|
}
|
|
2758
2757
|
let t49;
|
|
2759
|
-
if ($[
|
|
2758
|
+
if ($[137] !== t) {
|
|
2760
2759
|
t49 = t("storage_placeholder_file_ext");
|
|
2761
|
-
$[
|
|
2762
|
-
$[
|
|
2760
|
+
$[137] = t;
|
|
2761
|
+
$[138] = t49;
|
|
2763
2762
|
} else {
|
|
2764
|
-
t49 = $[
|
|
2763
|
+
t49 = $[138];
|
|
2765
2764
|
}
|
|
2766
2765
|
let t50;
|
|
2767
|
-
if ($[
|
|
2766
|
+
if ($[139] !== t49) {
|
|
2768
2767
|
t50 = /* @__PURE__ */ jsx("li", { children: t49 });
|
|
2769
|
-
$[
|
|
2770
|
-
$[
|
|
2768
|
+
$[139] = t49;
|
|
2769
|
+
$[140] = t50;
|
|
2771
2770
|
} else {
|
|
2772
|
-
t50 = $[
|
|
2771
|
+
t50 = $[140];
|
|
2773
2772
|
}
|
|
2774
2773
|
let t51;
|
|
2775
|
-
if ($[
|
|
2774
|
+
if ($[141] !== t) {
|
|
2776
2775
|
t51 = t("storage_placeholder_entity_id");
|
|
2777
|
-
$[
|
|
2778
|
-
$[
|
|
2776
|
+
$[141] = t;
|
|
2777
|
+
$[142] = t51;
|
|
2779
2778
|
} else {
|
|
2780
|
-
t51 = $[
|
|
2779
|
+
t51 = $[142];
|
|
2781
2780
|
}
|
|
2782
2781
|
let t52;
|
|
2783
|
-
if ($[
|
|
2782
|
+
if ($[143] !== t51) {
|
|
2784
2783
|
t52 = /* @__PURE__ */ jsx("li", { children: t51 });
|
|
2785
|
-
$[
|
|
2786
|
-
$[
|
|
2784
|
+
$[143] = t51;
|
|
2785
|
+
$[144] = t52;
|
|
2787
2786
|
} else {
|
|
2788
|
-
t52 = $[
|
|
2787
|
+
t52 = $[144];
|
|
2789
2788
|
}
|
|
2790
2789
|
let t53;
|
|
2791
|
-
if ($[
|
|
2790
|
+
if ($[145] !== t) {
|
|
2792
2791
|
t53 = t("storage_placeholder_property_key");
|
|
2793
|
-
$[
|
|
2794
|
-
$[
|
|
2792
|
+
$[145] = t;
|
|
2793
|
+
$[146] = t53;
|
|
2795
2794
|
} else {
|
|
2796
|
-
t53 = $[
|
|
2795
|
+
t53 = $[146];
|
|
2797
2796
|
}
|
|
2798
2797
|
let t54;
|
|
2799
|
-
if ($[
|
|
2798
|
+
if ($[147] !== t53) {
|
|
2800
2799
|
t54 = /* @__PURE__ */ jsx("li", { children: t53 });
|
|
2801
|
-
$[
|
|
2802
|
-
$[
|
|
2800
|
+
$[147] = t53;
|
|
2801
|
+
$[148] = t54;
|
|
2803
2802
|
} else {
|
|
2804
|
-
t54 = $[
|
|
2803
|
+
t54 = $[148];
|
|
2805
2804
|
}
|
|
2806
2805
|
let t55;
|
|
2807
|
-
if ($[
|
|
2806
|
+
if ($[149] !== t) {
|
|
2808
2807
|
t55 = t("storage_placeholder_path");
|
|
2809
|
-
$[
|
|
2810
|
-
$[
|
|
2808
|
+
$[149] = t;
|
|
2809
|
+
$[150] = t55;
|
|
2811
2810
|
} else {
|
|
2812
|
-
t55 = $[
|
|
2811
|
+
t55 = $[150];
|
|
2813
2812
|
}
|
|
2814
2813
|
let t56;
|
|
2815
|
-
if ($[
|
|
2814
|
+
if ($[151] !== t55) {
|
|
2816
2815
|
t56 = /* @__PURE__ */ jsx("li", { children: t55 });
|
|
2817
|
-
$[
|
|
2818
|
-
$[
|
|
2816
|
+
$[151] = t55;
|
|
2817
|
+
$[152] = t56;
|
|
2819
2818
|
} else {
|
|
2820
|
-
t56 = $[
|
|
2819
|
+
t56 = $[152];
|
|
2821
2820
|
}
|
|
2822
2821
|
let t57;
|
|
2823
|
-
if ($[
|
|
2822
|
+
if ($[153] !== t) {
|
|
2824
2823
|
t57 = t("storage_placeholder_rand");
|
|
2825
|
-
$[
|
|
2826
|
-
$[
|
|
2824
|
+
$[153] = t;
|
|
2825
|
+
$[154] = t57;
|
|
2827
2826
|
} else {
|
|
2828
|
-
t57 = $[
|
|
2827
|
+
t57 = $[154];
|
|
2829
2828
|
}
|
|
2830
2829
|
let t58;
|
|
2831
|
-
if ($[
|
|
2830
|
+
if ($[155] !== t57) {
|
|
2832
2831
|
t58 = /* @__PURE__ */ jsx("li", { children: t57 });
|
|
2833
|
-
$[
|
|
2834
|
-
$[
|
|
2832
|
+
$[155] = t57;
|
|
2833
|
+
$[156] = t58;
|
|
2835
2834
|
} else {
|
|
2836
|
-
t58 = $[
|
|
2835
|
+
t58 = $[156];
|
|
2837
2836
|
}
|
|
2838
2837
|
let t59;
|
|
2839
|
-
if ($[
|
|
2838
|
+
if ($[157] !== t46 || $[158] !== t48 || $[159] !== t50 || $[160] !== t52 || $[161] !== t54 || $[162] !== t56 || $[163] !== t58) {
|
|
2840
2839
|
t59 = /* @__PURE__ */ jsxs("ul", { children: [
|
|
2841
2840
|
t46,
|
|
2842
2841
|
t48,
|
|
@@ -2846,112 +2845,110 @@ function StoragePropertyField(t0) {
|
|
|
2846
2845
|
t56,
|
|
2847
2846
|
t58
|
|
2848
2847
|
] });
|
|
2849
|
-
$[
|
|
2850
|
-
$[
|
|
2851
|
-
$[
|
|
2852
|
-
$[
|
|
2853
|
-
$[
|
|
2854
|
-
$[
|
|
2855
|
-
$[
|
|
2856
|
-
$[
|
|
2848
|
+
$[157] = t46;
|
|
2849
|
+
$[158] = t48;
|
|
2850
|
+
$[159] = t50;
|
|
2851
|
+
$[160] = t52;
|
|
2852
|
+
$[161] = t54;
|
|
2853
|
+
$[162] = t56;
|
|
2854
|
+
$[163] = t58;
|
|
2855
|
+
$[164] = t59;
|
|
2857
2856
|
} else {
|
|
2858
|
-
t59 = $[
|
|
2857
|
+
t59 = $[164];
|
|
2859
2858
|
}
|
|
2860
2859
|
let t60;
|
|
2861
|
-
if ($[
|
|
2860
|
+
if ($[165] !== t44 || $[166] !== t59) {
|
|
2862
2861
|
t60 = /* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: [
|
|
2863
2862
|
t44,
|
|
2864
2863
|
t59
|
|
2865
2864
|
] });
|
|
2866
|
-
$[
|
|
2867
|
-
$[
|
|
2868
|
-
$[
|
|
2865
|
+
$[165] = t44;
|
|
2866
|
+
$[166] = t59;
|
|
2867
|
+
$[167] = t60;
|
|
2869
2868
|
} else {
|
|
2870
|
-
t60 = $[
|
|
2869
|
+
t60 = $[167];
|
|
2871
2870
|
}
|
|
2872
2871
|
let t61;
|
|
2873
|
-
if ($[
|
|
2872
|
+
if ($[168] !== disabled || $[169] !== t) {
|
|
2874
2873
|
t61 = (t622) => {
|
|
2875
2874
|
const {
|
|
2876
2875
|
field,
|
|
2877
2876
|
form
|
|
2878
2877
|
} = t622;
|
|
2879
|
-
return /* @__PURE__ */ jsx(SwitchControl, { label: t("include_bucket_url"), disabled
|
|
2878
|
+
return /* @__PURE__ */ jsx(SwitchControl, { label: t("include_bucket_url"), disabled, form, field });
|
|
2880
2879
|
};
|
|
2881
|
-
$[
|
|
2882
|
-
$[
|
|
2883
|
-
$[
|
|
2884
|
-
$[172] = t61;
|
|
2880
|
+
$[168] = disabled;
|
|
2881
|
+
$[169] = t;
|
|
2882
|
+
$[170] = t61;
|
|
2885
2883
|
} else {
|
|
2886
|
-
t61 = $[
|
|
2884
|
+
t61 = $[170];
|
|
2887
2885
|
}
|
|
2888
2886
|
let t62;
|
|
2889
|
-
if ($[
|
|
2887
|
+
if ($[171] !== includeBucketUrl || $[172] !== t61) {
|
|
2890
2888
|
t62 = /* @__PURE__ */ jsx(Field, { name: includeBucketUrl, type: "checkbox", children: t61 });
|
|
2891
|
-
$[
|
|
2892
|
-
$[
|
|
2893
|
-
$[
|
|
2889
|
+
$[171] = includeBucketUrl;
|
|
2890
|
+
$[172] = t61;
|
|
2891
|
+
$[173] = t62;
|
|
2894
2892
|
} else {
|
|
2895
|
-
t62 = $[
|
|
2893
|
+
t62 = $[173];
|
|
2896
2894
|
}
|
|
2897
2895
|
let t63;
|
|
2898
|
-
if ($[
|
|
2896
|
+
if ($[174] !== t) {
|
|
2899
2897
|
t63 = t("include_bucket_url_description");
|
|
2900
|
-
$[
|
|
2901
|
-
$[
|
|
2898
|
+
$[174] = t;
|
|
2899
|
+
$[175] = t63;
|
|
2902
2900
|
} else {
|
|
2903
|
-
t63 = $[
|
|
2901
|
+
t63 = $[175];
|
|
2904
2902
|
}
|
|
2905
2903
|
let t64;
|
|
2906
|
-
if ($[
|
|
2904
|
+
if ($[176] !== t63) {
|
|
2907
2905
|
t64 = /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: t63 });
|
|
2908
|
-
$[
|
|
2909
|
-
$[
|
|
2906
|
+
$[176] = t63;
|
|
2907
|
+
$[177] = t64;
|
|
2910
2908
|
} else {
|
|
2911
|
-
t64 = $[
|
|
2909
|
+
t64 = $[177];
|
|
2912
2910
|
}
|
|
2913
2911
|
let t65;
|
|
2914
|
-
if ($[
|
|
2912
|
+
if ($[178] !== disabled || $[179] !== t) {
|
|
2915
2913
|
t65 = (t662) => {
|
|
2916
2914
|
const {
|
|
2917
2915
|
field: field_0,
|
|
2918
2916
|
form: form_0
|
|
2919
2917
|
} = t662;
|
|
2920
|
-
return /* @__PURE__ */ jsx(SwitchControl, { label: t("save_url_instead_of_path"), disabled
|
|
2918
|
+
return /* @__PURE__ */ jsx(SwitchControl, { label: t("save_url_instead_of_path"), disabled, form: form_0, field: field_0 });
|
|
2921
2919
|
};
|
|
2922
|
-
$[
|
|
2923
|
-
$[
|
|
2924
|
-
$[
|
|
2925
|
-
$[183] = t65;
|
|
2920
|
+
$[178] = disabled;
|
|
2921
|
+
$[179] = t;
|
|
2922
|
+
$[180] = t65;
|
|
2926
2923
|
} else {
|
|
2927
|
-
t65 = $[
|
|
2924
|
+
t65 = $[180];
|
|
2928
2925
|
}
|
|
2929
2926
|
let t66;
|
|
2930
|
-
if ($[
|
|
2927
|
+
if ($[181] !== storeUrl || $[182] !== t65) {
|
|
2931
2928
|
t66 = /* @__PURE__ */ jsx(Field, { name: storeUrl, type: "checkbox", children: t65 });
|
|
2932
|
-
$[
|
|
2933
|
-
$[
|
|
2934
|
-
$[
|
|
2929
|
+
$[181] = storeUrl;
|
|
2930
|
+
$[182] = t65;
|
|
2931
|
+
$[183] = t66;
|
|
2935
2932
|
} else {
|
|
2936
|
-
t66 = $[
|
|
2933
|
+
t66 = $[183];
|
|
2937
2934
|
}
|
|
2938
2935
|
let t67;
|
|
2939
|
-
if ($[
|
|
2936
|
+
if ($[184] !== t) {
|
|
2940
2937
|
t67 = t("save_url_description");
|
|
2941
|
-
$[
|
|
2942
|
-
$[
|
|
2938
|
+
$[184] = t;
|
|
2939
|
+
$[185] = t67;
|
|
2943
2940
|
} else {
|
|
2944
|
-
t67 = $[
|
|
2941
|
+
t67 = $[185];
|
|
2945
2942
|
}
|
|
2946
2943
|
let t68;
|
|
2947
|
-
if ($[
|
|
2944
|
+
if ($[186] !== t67) {
|
|
2948
2945
|
t68 = /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: t67 });
|
|
2949
|
-
$[
|
|
2950
|
-
$[
|
|
2946
|
+
$[186] = t67;
|
|
2947
|
+
$[187] = t68;
|
|
2951
2948
|
} else {
|
|
2952
|
-
t68 = $[
|
|
2949
|
+
t68 = $[187];
|
|
2953
2950
|
}
|
|
2954
|
-
if ($[
|
|
2951
|
+
if ($[188] !== t42 || $[189] !== t60 || $[190] !== t62 || $[191] !== t64 || $[192] !== t66 || $[193] !== t68) {
|
|
2955
2952
|
t13 = /* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
|
|
2956
2953
|
t42,
|
|
2957
2954
|
t60,
|
|
@@ -2960,27 +2957,27 @@ function StoragePropertyField(t0) {
|
|
|
2960
2957
|
t66,
|
|
2961
2958
|
t68
|
|
2962
2959
|
] });
|
|
2963
|
-
$[
|
|
2964
|
-
$[
|
|
2965
|
-
$[
|
|
2966
|
-
$[
|
|
2967
|
-
$[
|
|
2968
|
-
$[
|
|
2969
|
-
$[
|
|
2960
|
+
$[188] = t42;
|
|
2961
|
+
$[189] = t60;
|
|
2962
|
+
$[190] = t62;
|
|
2963
|
+
$[191] = t64;
|
|
2964
|
+
$[192] = t66;
|
|
2965
|
+
$[193] = t68;
|
|
2966
|
+
$[194] = t13;
|
|
2970
2967
|
} else {
|
|
2971
|
-
t13 = $[
|
|
2968
|
+
t13 = $[194];
|
|
2972
2969
|
}
|
|
2973
2970
|
let t69;
|
|
2974
|
-
if ($[
|
|
2971
|
+
if ($[195] !== t) {
|
|
2975
2972
|
t69 = t("max_size_bytes");
|
|
2976
|
-
$[
|
|
2977
|
-
$[
|
|
2973
|
+
$[195] = t;
|
|
2974
|
+
$[196] = t69;
|
|
2978
2975
|
} else {
|
|
2979
|
-
t69 = $[
|
|
2976
|
+
t69 = $[196];
|
|
2980
2977
|
}
|
|
2981
2978
|
const t70 = maxSizeValue !== void 0 && maxSizeValue !== null ? maxSizeValue.toString() : "";
|
|
2982
2979
|
let t71;
|
|
2983
|
-
if ($[
|
|
2980
|
+
if ($[197] !== maxSize || $[198] !== setFieldValue) {
|
|
2984
2981
|
t71 = (e_0) => {
|
|
2985
2982
|
const value_1 = e_0.target.value;
|
|
2986
2983
|
if (value_1 === "") {
|
|
@@ -2989,76 +2986,76 @@ function StoragePropertyField(t0) {
|
|
|
2989
2986
|
setFieldValue(maxSize, parseInt(value_1));
|
|
2990
2987
|
}
|
|
2991
2988
|
};
|
|
2992
|
-
$[
|
|
2993
|
-
$[
|
|
2994
|
-
$[
|
|
2989
|
+
$[197] = maxSize;
|
|
2990
|
+
$[198] = setFieldValue;
|
|
2991
|
+
$[199] = t71;
|
|
2995
2992
|
} else {
|
|
2996
|
-
t71 = $[
|
|
2993
|
+
t71 = $[199];
|
|
2997
2994
|
}
|
|
2998
|
-
if ($[
|
|
2995
|
+
if ($[200] !== maxSize || $[201] !== t69 || $[202] !== t70 || $[203] !== t71) {
|
|
2999
2996
|
t14 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(DebouncedTextField, { name: maxSize, type: "number", label: t69, size: "small", value: t70, onChange: t71 }) });
|
|
3000
|
-
$[
|
|
3001
|
-
$[
|
|
3002
|
-
$[
|
|
3003
|
-
$[
|
|
3004
|
-
$[
|
|
2997
|
+
$[200] = maxSize;
|
|
2998
|
+
$[201] = t69;
|
|
2999
|
+
$[202] = t70;
|
|
3000
|
+
$[203] = t71;
|
|
3001
|
+
$[204] = t14;
|
|
3005
3002
|
} else {
|
|
3006
|
-
t14 = $[
|
|
3003
|
+
t14 = $[204];
|
|
3007
3004
|
}
|
|
3008
3005
|
let t72;
|
|
3009
|
-
if ($[
|
|
3006
|
+
if ($[205] !== t) {
|
|
3010
3007
|
t72 = t("image_resize_configuration");
|
|
3011
|
-
$[
|
|
3012
|
-
$[
|
|
3008
|
+
$[205] = t;
|
|
3009
|
+
$[206] = t72;
|
|
3013
3010
|
} else {
|
|
3014
|
-
t72 = $[
|
|
3011
|
+
t72 = $[206];
|
|
3015
3012
|
}
|
|
3016
3013
|
let t73;
|
|
3017
|
-
if ($[
|
|
3014
|
+
if ($[207] !== t72) {
|
|
3018
3015
|
t73 = /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", color: "secondary", className: "mb-2 block", children: t72 });
|
|
3019
|
-
$[
|
|
3020
|
-
$[
|
|
3016
|
+
$[207] = t72;
|
|
3017
|
+
$[208] = t73;
|
|
3021
3018
|
} else {
|
|
3022
|
-
t73 = $[
|
|
3019
|
+
t73 = $[208];
|
|
3023
3020
|
}
|
|
3024
3021
|
let t74;
|
|
3025
|
-
if ($[
|
|
3022
|
+
if ($[209] !== t) {
|
|
3026
3023
|
t74 = t("image_resize_description");
|
|
3027
|
-
$[
|
|
3028
|
-
$[
|
|
3024
|
+
$[209] = t;
|
|
3025
|
+
$[210] = t74;
|
|
3029
3026
|
} else {
|
|
3030
|
-
t74 = $[
|
|
3027
|
+
t74 = $[210];
|
|
3031
3028
|
}
|
|
3032
3029
|
let t75;
|
|
3033
|
-
if ($[
|
|
3030
|
+
if ($[211] !== t74) {
|
|
3034
3031
|
t75 = /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "mb-2 block text-xs", children: t74 });
|
|
3035
|
-
$[
|
|
3036
|
-
$[
|
|
3032
|
+
$[211] = t74;
|
|
3033
|
+
$[212] = t75;
|
|
3037
3034
|
} else {
|
|
3038
|
-
t75 = $[
|
|
3035
|
+
t75 = $[212];
|
|
3039
3036
|
}
|
|
3040
|
-
if ($[
|
|
3037
|
+
if ($[213] !== t73 || $[214] !== t75) {
|
|
3041
3038
|
t15 = /* @__PURE__ */ jsxs("div", { className: "col-span-12 mt-4", children: [
|
|
3042
3039
|
t73,
|
|
3043
3040
|
t75
|
|
3044
3041
|
] });
|
|
3045
|
-
$[
|
|
3046
|
-
$[
|
|
3047
|
-
$[
|
|
3042
|
+
$[213] = t73;
|
|
3043
|
+
$[214] = t75;
|
|
3044
|
+
$[215] = t15;
|
|
3048
3045
|
} else {
|
|
3049
|
-
t15 = $[
|
|
3046
|
+
t15 = $[215];
|
|
3050
3047
|
}
|
|
3051
3048
|
let t76;
|
|
3052
|
-
if ($[
|
|
3049
|
+
if ($[216] !== t) {
|
|
3053
3050
|
t76 = t("max_width_px");
|
|
3054
|
-
$[
|
|
3055
|
-
$[
|
|
3051
|
+
$[216] = t;
|
|
3052
|
+
$[217] = t76;
|
|
3056
3053
|
} else {
|
|
3057
|
-
t76 = $[
|
|
3054
|
+
t76 = $[217];
|
|
3058
3055
|
}
|
|
3059
3056
|
const t77 = imageResizeMaxWidthValue !== void 0 && imageResizeMaxWidthValue !== null ? imageResizeMaxWidthValue.toString() : "";
|
|
3060
3057
|
let t78;
|
|
3061
|
-
if ($[
|
|
3058
|
+
if ($[218] !== imageResizeMaxWidth || $[219] !== setFieldValue) {
|
|
3062
3059
|
t78 = (e_1) => {
|
|
3063
3060
|
const value_2 = e_1.target.value;
|
|
3064
3061
|
if (value_2 === "") {
|
|
@@ -3067,34 +3064,34 @@ function StoragePropertyField(t0) {
|
|
|
3067
3064
|
setFieldValue(imageResizeMaxWidth, parseInt(value_2));
|
|
3068
3065
|
}
|
|
3069
3066
|
};
|
|
3070
|
-
$[
|
|
3071
|
-
$[
|
|
3072
|
-
$[
|
|
3067
|
+
$[218] = imageResizeMaxWidth;
|
|
3068
|
+
$[219] = setFieldValue;
|
|
3069
|
+
$[220] = t78;
|
|
3073
3070
|
} else {
|
|
3074
|
-
t78 = $[
|
|
3071
|
+
t78 = $[220];
|
|
3075
3072
|
}
|
|
3076
|
-
if ($[
|
|
3073
|
+
if ($[221] !== disabled || $[222] !== imageResizeMaxWidth || $[223] !== t76 || $[224] !== t77 || $[225] !== t78) {
|
|
3077
3074
|
t16 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { name: imageResizeMaxWidth, type: "number", label: t76, size: "small", disabled, value: t77, onChange: t78 }) });
|
|
3078
|
-
$[
|
|
3079
|
-
$[
|
|
3080
|
-
$[
|
|
3081
|
-
$[
|
|
3082
|
-
$[
|
|
3083
|
-
$[
|
|
3075
|
+
$[221] = disabled;
|
|
3076
|
+
$[222] = imageResizeMaxWidth;
|
|
3077
|
+
$[223] = t76;
|
|
3078
|
+
$[224] = t77;
|
|
3079
|
+
$[225] = t78;
|
|
3080
|
+
$[226] = t16;
|
|
3084
3081
|
} else {
|
|
3085
|
-
t16 = $[
|
|
3082
|
+
t16 = $[226];
|
|
3086
3083
|
}
|
|
3087
3084
|
let t79;
|
|
3088
|
-
if ($[
|
|
3085
|
+
if ($[227] !== t) {
|
|
3089
3086
|
t79 = t("max_height_px");
|
|
3090
|
-
$[
|
|
3091
|
-
$[
|
|
3087
|
+
$[227] = t;
|
|
3088
|
+
$[228] = t79;
|
|
3092
3089
|
} else {
|
|
3093
|
-
t79 = $[
|
|
3090
|
+
t79 = $[228];
|
|
3094
3091
|
}
|
|
3095
3092
|
const t80 = imageResizeMaxHeightValue !== void 0 && imageResizeMaxHeightValue !== null ? imageResizeMaxHeightValue.toString() : "";
|
|
3096
3093
|
let t81;
|
|
3097
|
-
if ($[
|
|
3094
|
+
if ($[229] !== imageResizeMaxHeight || $[230] !== setFieldValue) {
|
|
3098
3095
|
t81 = (e_2) => {
|
|
3099
3096
|
const value_3 = e_2.target.value;
|
|
3100
3097
|
if (value_3 === "") {
|
|
@@ -3103,274 +3100,273 @@ function StoragePropertyField(t0) {
|
|
|
3103
3100
|
setFieldValue(imageResizeMaxHeight, parseInt(value_3));
|
|
3104
3101
|
}
|
|
3105
3102
|
};
|
|
3106
|
-
$[
|
|
3107
|
-
$[
|
|
3108
|
-
$[
|
|
3103
|
+
$[229] = imageResizeMaxHeight;
|
|
3104
|
+
$[230] = setFieldValue;
|
|
3105
|
+
$[231] = t81;
|
|
3109
3106
|
} else {
|
|
3110
|
-
t81 = $[
|
|
3107
|
+
t81 = $[231];
|
|
3111
3108
|
}
|
|
3112
|
-
if ($[
|
|
3109
|
+
if ($[232] !== disabled || $[233] !== imageResizeMaxHeight || $[234] !== t79 || $[235] !== t80 || $[236] !== t81) {
|
|
3113
3110
|
t17 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsx(DebouncedTextField, { name: imageResizeMaxHeight, type: "number", label: t79, size: "small", disabled, value: t80, onChange: t81 }) });
|
|
3114
|
-
$[
|
|
3115
|
-
$[
|
|
3116
|
-
$[
|
|
3117
|
-
$[
|
|
3118
|
-
$[
|
|
3119
|
-
$[
|
|
3111
|
+
$[232] = disabled;
|
|
3112
|
+
$[233] = imageResizeMaxHeight;
|
|
3113
|
+
$[234] = t79;
|
|
3114
|
+
$[235] = t80;
|
|
3115
|
+
$[236] = t81;
|
|
3116
|
+
$[237] = t17;
|
|
3120
3117
|
} else {
|
|
3121
|
-
t17 = $[
|
|
3118
|
+
t17 = $[237];
|
|
3122
3119
|
}
|
|
3123
3120
|
const t82 = imageResizeModeValue || "cover";
|
|
3124
3121
|
let t83;
|
|
3125
|
-
if ($[
|
|
3122
|
+
if ($[238] !== imageResizeMode || $[239] !== setFieldValue) {
|
|
3126
3123
|
t83 = (value_4) => setFieldValue(imageResizeMode, value_4 || "cover");
|
|
3127
|
-
$[
|
|
3128
|
-
$[
|
|
3129
|
-
$[
|
|
3124
|
+
$[238] = imageResizeMode;
|
|
3125
|
+
$[239] = setFieldValue;
|
|
3126
|
+
$[240] = t83;
|
|
3130
3127
|
} else {
|
|
3131
|
-
t83 = $[
|
|
3128
|
+
t83 = $[240];
|
|
3132
3129
|
}
|
|
3133
3130
|
let t84;
|
|
3134
|
-
if ($[
|
|
3131
|
+
if ($[241] !== t) {
|
|
3135
3132
|
t84 = t("resize_mode");
|
|
3136
|
-
$[
|
|
3137
|
-
$[
|
|
3133
|
+
$[241] = t;
|
|
3134
|
+
$[242] = t84;
|
|
3138
3135
|
} else {
|
|
3139
|
-
t84 = $[
|
|
3136
|
+
t84 = $[242];
|
|
3140
3137
|
}
|
|
3141
3138
|
let t85;
|
|
3142
|
-
if ($[
|
|
3139
|
+
if ($[243] !== t) {
|
|
3143
3140
|
t85 = (selected_0) => {
|
|
3144
3141
|
if (!selected_0) {
|
|
3145
3142
|
return t("resize_cover");
|
|
3146
3143
|
}
|
|
3147
3144
|
return selected_0 === "contain" ? t("resize_contain_description") : t("resize_cover_description");
|
|
3148
3145
|
};
|
|
3149
|
-
$[
|
|
3150
|
-
$[
|
|
3146
|
+
$[243] = t;
|
|
3147
|
+
$[244] = t85;
|
|
3151
3148
|
} else {
|
|
3152
|
-
t85 = $[
|
|
3149
|
+
t85 = $[244];
|
|
3153
3150
|
}
|
|
3154
3151
|
let t86;
|
|
3155
|
-
if ($[
|
|
3152
|
+
if ($[245] !== t) {
|
|
3156
3153
|
t86 = t("resize_contain_description");
|
|
3157
|
-
$[
|
|
3158
|
-
$[
|
|
3154
|
+
$[245] = t;
|
|
3155
|
+
$[246] = t86;
|
|
3159
3156
|
} else {
|
|
3160
|
-
t86 = $[
|
|
3157
|
+
t86 = $[246];
|
|
3161
3158
|
}
|
|
3162
3159
|
let t87;
|
|
3163
|
-
if ($[
|
|
3160
|
+
if ($[247] !== t86) {
|
|
3164
3161
|
t87 = /* @__PURE__ */ jsx(SelectItem, { value: "contain", children: t86 });
|
|
3165
|
-
$[
|
|
3166
|
-
$[
|
|
3162
|
+
$[247] = t86;
|
|
3163
|
+
$[248] = t87;
|
|
3167
3164
|
} else {
|
|
3168
|
-
t87 = $[
|
|
3165
|
+
t87 = $[248];
|
|
3169
3166
|
}
|
|
3170
3167
|
let t88;
|
|
3171
|
-
if ($[
|
|
3168
|
+
if ($[249] !== t) {
|
|
3172
3169
|
t88 = t("resize_cover_description");
|
|
3173
|
-
$[
|
|
3174
|
-
$[
|
|
3170
|
+
$[249] = t;
|
|
3171
|
+
$[250] = t88;
|
|
3175
3172
|
} else {
|
|
3176
|
-
t88 = $[
|
|
3173
|
+
t88 = $[250];
|
|
3177
3174
|
}
|
|
3178
3175
|
let t89;
|
|
3179
|
-
if ($[
|
|
3176
|
+
if ($[251] !== t88) {
|
|
3180
3177
|
t89 = /* @__PURE__ */ jsx(SelectItem, { value: "cover", children: t88 });
|
|
3181
|
-
$[
|
|
3182
|
-
$[
|
|
3178
|
+
$[251] = t88;
|
|
3179
|
+
$[252] = t89;
|
|
3183
3180
|
} else {
|
|
3184
|
-
t89 = $[
|
|
3181
|
+
t89 = $[252];
|
|
3185
3182
|
}
|
|
3186
|
-
if ($[
|
|
3183
|
+
if ($[253] !== disabled || $[254] !== imageResizeMode || $[255] !== t82 || $[256] !== t83 || $[257] !== t84 || $[258] !== t85 || $[259] !== t87 || $[260] !== t89) {
|
|
3187
3184
|
t18 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxs(Select, { disabled, name: imageResizeMode, fullWidth: true, size: "medium", value: t82, onValueChange: t83, label: t84, renderValue: t85, children: [
|
|
3188
3185
|
t87,
|
|
3189
3186
|
t89
|
|
3190
3187
|
] }) });
|
|
3191
|
-
$[
|
|
3192
|
-
$[
|
|
3193
|
-
$[
|
|
3194
|
-
$[
|
|
3195
|
-
$[
|
|
3196
|
-
$[
|
|
3197
|
-
$[
|
|
3198
|
-
$[
|
|
3199
|
-
$[
|
|
3188
|
+
$[253] = disabled;
|
|
3189
|
+
$[254] = imageResizeMode;
|
|
3190
|
+
$[255] = t82;
|
|
3191
|
+
$[256] = t83;
|
|
3192
|
+
$[257] = t84;
|
|
3193
|
+
$[258] = t85;
|
|
3194
|
+
$[259] = t87;
|
|
3195
|
+
$[260] = t89;
|
|
3196
|
+
$[261] = t18;
|
|
3200
3197
|
} else {
|
|
3201
|
-
t18 = $[
|
|
3198
|
+
t18 = $[261];
|
|
3202
3199
|
}
|
|
3203
3200
|
const t90 = imageResizeFormatValue || "original";
|
|
3204
3201
|
let t91;
|
|
3205
|
-
if ($[
|
|
3202
|
+
if ($[262] !== imageResizeFormat || $[263] !== setFieldValue) {
|
|
3206
3203
|
t91 = (value_5) => setFieldValue(imageResizeFormat, value_5 || "original");
|
|
3207
|
-
$[
|
|
3208
|
-
$[
|
|
3209
|
-
$[
|
|
3204
|
+
$[262] = imageResizeFormat;
|
|
3205
|
+
$[263] = setFieldValue;
|
|
3206
|
+
$[264] = t91;
|
|
3210
3207
|
} else {
|
|
3211
|
-
t91 = $[
|
|
3208
|
+
t91 = $[264];
|
|
3212
3209
|
}
|
|
3213
3210
|
let t92;
|
|
3214
|
-
if ($[
|
|
3211
|
+
if ($[265] !== t) {
|
|
3215
3212
|
t92 = t("output_format");
|
|
3216
|
-
$[
|
|
3217
|
-
$[
|
|
3213
|
+
$[265] = t;
|
|
3214
|
+
$[266] = t92;
|
|
3218
3215
|
} else {
|
|
3219
|
-
t92 = $[
|
|
3216
|
+
t92 = $[266];
|
|
3220
3217
|
}
|
|
3221
3218
|
let t93;
|
|
3222
|
-
if ($[
|
|
3219
|
+
if ($[267] !== t) {
|
|
3223
3220
|
t93 = (selected_1) => {
|
|
3224
3221
|
if (!selected_1) {
|
|
3225
3222
|
return t("format_original");
|
|
3226
3223
|
}
|
|
3227
3224
|
return selected_1.charAt(0).toUpperCase() + selected_1.slice(1);
|
|
3228
3225
|
};
|
|
3229
|
-
$[
|
|
3230
|
-
$[
|
|
3226
|
+
$[267] = t;
|
|
3227
|
+
$[268] = t93;
|
|
3231
3228
|
} else {
|
|
3232
|
-
t93 = $[
|
|
3229
|
+
t93 = $[268];
|
|
3233
3230
|
}
|
|
3234
3231
|
let t94;
|
|
3235
|
-
if ($[
|
|
3232
|
+
if ($[269] !== t) {
|
|
3236
3233
|
t94 = t("format_original_description");
|
|
3237
|
-
$[
|
|
3238
|
-
$[
|
|
3234
|
+
$[269] = t;
|
|
3235
|
+
$[270] = t94;
|
|
3239
3236
|
} else {
|
|
3240
|
-
t94 = $[
|
|
3237
|
+
t94 = $[270];
|
|
3241
3238
|
}
|
|
3242
3239
|
let t95;
|
|
3243
|
-
if ($[
|
|
3240
|
+
if ($[271] !== t94) {
|
|
3244
3241
|
t95 = /* @__PURE__ */ jsx(SelectItem, { value: "original", children: t94 });
|
|
3245
|
-
$[
|
|
3246
|
-
$[
|
|
3242
|
+
$[271] = t94;
|
|
3243
|
+
$[272] = t95;
|
|
3247
3244
|
} else {
|
|
3248
|
-
t95 = $[
|
|
3245
|
+
t95 = $[272];
|
|
3249
3246
|
}
|
|
3250
3247
|
let t96;
|
|
3251
3248
|
let t97;
|
|
3252
|
-
if ($[
|
|
3249
|
+
if ($[273] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
3253
3250
|
t96 = /* @__PURE__ */ jsx(SelectItem, { value: "jpeg", children: "JPEG" });
|
|
3254
3251
|
t97 = /* @__PURE__ */ jsx(SelectItem, { value: "png", children: "PNG" });
|
|
3255
|
-
$[
|
|
3256
|
-
$[
|
|
3252
|
+
$[273] = t96;
|
|
3253
|
+
$[274] = t97;
|
|
3257
3254
|
} else {
|
|
3258
|
-
t96 = $[
|
|
3259
|
-
t97 = $[
|
|
3255
|
+
t96 = $[273];
|
|
3256
|
+
t97 = $[274];
|
|
3260
3257
|
}
|
|
3261
3258
|
let t98;
|
|
3262
|
-
if ($[
|
|
3259
|
+
if ($[275] !== t) {
|
|
3263
3260
|
t98 = t("format_webp_description");
|
|
3264
|
-
$[
|
|
3265
|
-
$[
|
|
3261
|
+
$[275] = t;
|
|
3262
|
+
$[276] = t98;
|
|
3266
3263
|
} else {
|
|
3267
|
-
t98 = $[
|
|
3264
|
+
t98 = $[276];
|
|
3268
3265
|
}
|
|
3269
3266
|
let t99;
|
|
3270
|
-
if ($[
|
|
3267
|
+
if ($[277] !== t98) {
|
|
3271
3268
|
t99 = /* @__PURE__ */ jsx(SelectItem, { value: "webp", children: t98 });
|
|
3272
|
-
$[
|
|
3273
|
-
$[
|
|
3269
|
+
$[277] = t98;
|
|
3270
|
+
$[278] = t99;
|
|
3274
3271
|
} else {
|
|
3275
|
-
t99 = $[
|
|
3272
|
+
t99 = $[278];
|
|
3276
3273
|
}
|
|
3277
|
-
if ($[
|
|
3274
|
+
if ($[279] !== disabled || $[280] !== imageResizeFormat || $[281] !== t90 || $[282] !== t91 || $[283] !== t92 || $[284] !== t93 || $[285] !== t95 || $[286] !== t99) {
|
|
3278
3275
|
t19 = /* @__PURE__ */ jsx("div", { className: "col-span-6", children: /* @__PURE__ */ jsxs(Select, { disabled, size: "medium", fullWidth: true, name: imageResizeFormat, value: t90, onValueChange: t91, label: t92, renderValue: t93, children: [
|
|
3279
3276
|
t95,
|
|
3280
3277
|
t96,
|
|
3281
3278
|
t97,
|
|
3282
3279
|
t99
|
|
3283
3280
|
] }) });
|
|
3284
|
-
$[
|
|
3285
|
-
$[
|
|
3286
|
-
$[
|
|
3287
|
-
$[
|
|
3288
|
-
$[
|
|
3289
|
-
$[
|
|
3290
|
-
$[
|
|
3291
|
-
$[
|
|
3292
|
-
$[
|
|
3281
|
+
$[279] = disabled;
|
|
3282
|
+
$[280] = imageResizeFormat;
|
|
3283
|
+
$[281] = t90;
|
|
3284
|
+
$[282] = t91;
|
|
3285
|
+
$[283] = t92;
|
|
3286
|
+
$[284] = t93;
|
|
3287
|
+
$[285] = t95;
|
|
3288
|
+
$[286] = t99;
|
|
3289
|
+
$[287] = t19;
|
|
3293
3290
|
} else {
|
|
3294
|
-
t19 = $[
|
|
3291
|
+
t19 = $[287];
|
|
3295
3292
|
}
|
|
3296
3293
|
t9 = "col-span-12";
|
|
3297
3294
|
T0 = DebouncedTextField;
|
|
3298
3295
|
t3 = imageResizeQuality;
|
|
3299
3296
|
t4 = "number";
|
|
3300
|
-
if ($[
|
|
3297
|
+
if ($[288] !== t) {
|
|
3301
3298
|
t5 = t("quality_label");
|
|
3302
|
-
$[
|
|
3303
|
-
$[
|
|
3299
|
+
$[288] = t;
|
|
3300
|
+
$[289] = t5;
|
|
3304
3301
|
} else {
|
|
3305
|
-
t5 = $[
|
|
3302
|
+
t5 = $[289];
|
|
3306
3303
|
}
|
|
3307
3304
|
t6 = "small";
|
|
3308
3305
|
t7 = disabled;
|
|
3309
3306
|
t8 = imageResizeQualityValue !== void 0 && imageResizeQualityValue !== null ? imageResizeQualityValue.toString() : "";
|
|
3310
3307
|
$[6] = acceptedFiles;
|
|
3311
3308
|
$[7] = disabled;
|
|
3312
|
-
$[8] =
|
|
3313
|
-
$[9] =
|
|
3314
|
-
$[10] =
|
|
3315
|
-
$[11] =
|
|
3316
|
-
$[12] =
|
|
3317
|
-
$[13] =
|
|
3318
|
-
$[14] =
|
|
3319
|
-
$[15] =
|
|
3320
|
-
$[16] =
|
|
3321
|
-
$[17] =
|
|
3322
|
-
$[18] =
|
|
3323
|
-
$[19] =
|
|
3324
|
-
$[20] =
|
|
3325
|
-
$[21] =
|
|
3326
|
-
$[22] =
|
|
3327
|
-
$[23] =
|
|
3328
|
-
$[24] =
|
|
3329
|
-
$[25] =
|
|
3330
|
-
$[26] =
|
|
3331
|
-
$[27] =
|
|
3332
|
-
$[28] =
|
|
3333
|
-
$[29] =
|
|
3334
|
-
$[30] =
|
|
3335
|
-
$[31] =
|
|
3336
|
-
$[32] =
|
|
3337
|
-
$[33] =
|
|
3338
|
-
$[34] =
|
|
3339
|
-
$[35] =
|
|
3340
|
-
$[36] =
|
|
3341
|
-
$[37] =
|
|
3342
|
-
$[38] =
|
|
3343
|
-
$[39] =
|
|
3344
|
-
$[40] =
|
|
3345
|
-
$[41] =
|
|
3346
|
-
$[42] =
|
|
3347
|
-
$[43] =
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
t9 = $[44];
|
|
3309
|
+
$[8] = fileName;
|
|
3310
|
+
$[9] = fileNameValue;
|
|
3311
|
+
$[10] = imageResizeFormat;
|
|
3312
|
+
$[11] = imageResizeMaxHeight;
|
|
3313
|
+
$[12] = imageResizeMaxWidth;
|
|
3314
|
+
$[13] = imageResizeMode;
|
|
3315
|
+
$[14] = imageResizeQuality;
|
|
3316
|
+
$[15] = includeBucketUrl;
|
|
3317
|
+
$[16] = maxSize;
|
|
3318
|
+
$[17] = setFieldValue;
|
|
3319
|
+
$[18] = storagePath;
|
|
3320
|
+
$[19] = storagePathValue;
|
|
3321
|
+
$[20] = storeUrl;
|
|
3322
|
+
$[21] = t;
|
|
3323
|
+
$[22] = values;
|
|
3324
|
+
$[23] = T0;
|
|
3325
|
+
$[24] = T1;
|
|
3326
|
+
$[25] = t10;
|
|
3327
|
+
$[26] = t11;
|
|
3328
|
+
$[27] = t12;
|
|
3329
|
+
$[28] = t13;
|
|
3330
|
+
$[29] = t14;
|
|
3331
|
+
$[30] = t15;
|
|
3332
|
+
$[31] = t16;
|
|
3333
|
+
$[32] = t17;
|
|
3334
|
+
$[33] = t18;
|
|
3335
|
+
$[34] = t19;
|
|
3336
|
+
$[35] = t20;
|
|
3337
|
+
$[36] = t21;
|
|
3338
|
+
$[37] = t3;
|
|
3339
|
+
$[38] = t4;
|
|
3340
|
+
$[39] = t5;
|
|
3341
|
+
$[40] = t6;
|
|
3342
|
+
$[41] = t7;
|
|
3343
|
+
$[42] = t8;
|
|
3344
|
+
$[43] = t9;
|
|
3345
|
+
} else {
|
|
3346
|
+
T0 = $[23];
|
|
3347
|
+
T1 = $[24];
|
|
3348
|
+
t10 = $[25];
|
|
3349
|
+
t11 = $[26];
|
|
3350
|
+
t12 = $[27];
|
|
3351
|
+
t13 = $[28];
|
|
3352
|
+
t14 = $[29];
|
|
3353
|
+
t15 = $[30];
|
|
3354
|
+
t16 = $[31];
|
|
3355
|
+
t17 = $[32];
|
|
3356
|
+
t18 = $[33];
|
|
3357
|
+
t19 = $[34];
|
|
3358
|
+
t20 = $[35];
|
|
3359
|
+
t21 = $[36];
|
|
3360
|
+
t3 = $[37];
|
|
3361
|
+
t4 = $[38];
|
|
3362
|
+
t5 = $[39];
|
|
3363
|
+
t6 = $[40];
|
|
3364
|
+
t7 = $[41];
|
|
3365
|
+
t8 = $[42];
|
|
3366
|
+
t9 = $[43];
|
|
3371
3367
|
}
|
|
3372
3368
|
let t22;
|
|
3373
|
-
if ($[
|
|
3369
|
+
if ($[290] !== imageResizeQuality || $[291] !== setFieldValue) {
|
|
3374
3370
|
t22 = (e_3) => {
|
|
3375
3371
|
const value_6 = e_3.target.value;
|
|
3376
3372
|
if (value_6 === "") {
|
|
@@ -3382,58 +3378,58 @@ function StoragePropertyField(t0) {
|
|
|
3382
3378
|
}
|
|
3383
3379
|
}
|
|
3384
3380
|
};
|
|
3385
|
-
$[
|
|
3386
|
-
$[
|
|
3387
|
-
$[
|
|
3381
|
+
$[290] = imageResizeQuality;
|
|
3382
|
+
$[291] = setFieldValue;
|
|
3383
|
+
$[292] = t22;
|
|
3388
3384
|
} else {
|
|
3389
|
-
t22 = $[
|
|
3385
|
+
t22 = $[292];
|
|
3390
3386
|
}
|
|
3391
3387
|
let t23;
|
|
3392
|
-
if ($[
|
|
3388
|
+
if ($[293] !== T0 || $[294] !== t22 || $[295] !== t3 || $[296] !== t4 || $[297] !== t5 || $[298] !== t6 || $[299] !== t7 || $[300] !== t8) {
|
|
3393
3389
|
t23 = /* @__PURE__ */ jsx(T0, { name: t3, type: t4, label: t5, size: t6, disabled: t7, value: t8, onChange: t22 });
|
|
3394
|
-
$[
|
|
3395
|
-
$[
|
|
3396
|
-
$[
|
|
3397
|
-
$[
|
|
3398
|
-
$[
|
|
3399
|
-
$[
|
|
3400
|
-
$[
|
|
3401
|
-
$[
|
|
3402
|
-
$[
|
|
3403
|
-
} else {
|
|
3404
|
-
t23 = $[
|
|
3390
|
+
$[293] = T0;
|
|
3391
|
+
$[294] = t22;
|
|
3392
|
+
$[295] = t3;
|
|
3393
|
+
$[296] = t4;
|
|
3394
|
+
$[297] = t5;
|
|
3395
|
+
$[298] = t6;
|
|
3396
|
+
$[299] = t7;
|
|
3397
|
+
$[300] = t8;
|
|
3398
|
+
$[301] = t23;
|
|
3399
|
+
} else {
|
|
3400
|
+
t23 = $[301];
|
|
3405
3401
|
}
|
|
3406
3402
|
let t24;
|
|
3407
|
-
if ($[
|
|
3403
|
+
if ($[302] !== t) {
|
|
3408
3404
|
t24 = t("quality_hint");
|
|
3409
|
-
$[
|
|
3410
|
-
$[
|
|
3405
|
+
$[302] = t;
|
|
3406
|
+
$[303] = t24;
|
|
3411
3407
|
} else {
|
|
3412
|
-
t24 = $[
|
|
3408
|
+
t24 = $[303];
|
|
3413
3409
|
}
|
|
3414
3410
|
let t25;
|
|
3415
|
-
if ($[
|
|
3411
|
+
if ($[304] !== t24) {
|
|
3416
3412
|
t25 = /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "ml-3.5 mt-1 mb-2", children: t24 });
|
|
3417
|
-
$[
|
|
3418
|
-
$[
|
|
3413
|
+
$[304] = t24;
|
|
3414
|
+
$[305] = t25;
|
|
3419
3415
|
} else {
|
|
3420
|
-
t25 = $[
|
|
3416
|
+
t25 = $[305];
|
|
3421
3417
|
}
|
|
3422
3418
|
let t26;
|
|
3423
|
-
if ($[
|
|
3419
|
+
if ($[306] !== t23 || $[307] !== t25 || $[308] !== t9) {
|
|
3424
3420
|
t26 = /* @__PURE__ */ jsxs("div", { className: t9, children: [
|
|
3425
3421
|
t23,
|
|
3426
3422
|
t25
|
|
3427
3423
|
] });
|
|
3428
|
-
$[
|
|
3429
|
-
$[
|
|
3430
|
-
$[
|
|
3431
|
-
$[
|
|
3424
|
+
$[306] = t23;
|
|
3425
|
+
$[307] = t25;
|
|
3426
|
+
$[308] = t9;
|
|
3427
|
+
$[309] = t26;
|
|
3432
3428
|
} else {
|
|
3433
|
-
t26 = $[
|
|
3429
|
+
t26 = $[309];
|
|
3434
3430
|
}
|
|
3435
3431
|
let t27;
|
|
3436
|
-
if ($[
|
|
3432
|
+
if ($[310] !== t10 || $[311] !== t11 || $[312] !== t12 || $[313] !== t13 || $[314] !== t14 || $[315] !== t15 || $[316] !== t16 || $[317] !== t17 || $[318] !== t18 || $[319] !== t19 || $[320] !== t26) {
|
|
3437
3433
|
t27 = /* @__PURE__ */ jsxs("div", { className: t10, children: [
|
|
3438
3434
|
t11,
|
|
3439
3435
|
t12,
|
|
@@ -3446,81 +3442,81 @@ function StoragePropertyField(t0) {
|
|
|
3446
3442
|
t19,
|
|
3447
3443
|
t26
|
|
3448
3444
|
] });
|
|
3449
|
-
$[
|
|
3450
|
-
$[
|
|
3451
|
-
$[
|
|
3452
|
-
$[
|
|
3453
|
-
$[
|
|
3454
|
-
$[
|
|
3455
|
-
$[
|
|
3456
|
-
$[
|
|
3457
|
-
$[
|
|
3458
|
-
$[
|
|
3459
|
-
$[
|
|
3460
|
-
$[
|
|
3461
|
-
} else {
|
|
3462
|
-
t27 = $[
|
|
3445
|
+
$[310] = t10;
|
|
3446
|
+
$[311] = t11;
|
|
3447
|
+
$[312] = t12;
|
|
3448
|
+
$[313] = t13;
|
|
3449
|
+
$[314] = t14;
|
|
3450
|
+
$[315] = t15;
|
|
3451
|
+
$[316] = t16;
|
|
3452
|
+
$[317] = t17;
|
|
3453
|
+
$[318] = t18;
|
|
3454
|
+
$[319] = t19;
|
|
3455
|
+
$[320] = t26;
|
|
3456
|
+
$[321] = t27;
|
|
3457
|
+
} else {
|
|
3458
|
+
t27 = $[321];
|
|
3463
3459
|
}
|
|
3464
3460
|
let t28;
|
|
3465
|
-
if ($[
|
|
3461
|
+
if ($[322] !== T1 || $[323] !== t20 || $[324] !== t27) {
|
|
3466
3462
|
t28 = /* @__PURE__ */ jsx(T1, { title: t20, children: t27 });
|
|
3467
|
-
$[
|
|
3468
|
-
$[
|
|
3469
|
-
$[
|
|
3470
|
-
$[
|
|
3463
|
+
$[322] = T1;
|
|
3464
|
+
$[323] = t20;
|
|
3465
|
+
$[324] = t27;
|
|
3466
|
+
$[325] = t28;
|
|
3471
3467
|
} else {
|
|
3472
|
-
t28 = $[
|
|
3468
|
+
t28 = $[325];
|
|
3473
3469
|
}
|
|
3474
3470
|
let t29;
|
|
3475
|
-
if ($[
|
|
3471
|
+
if ($[326] !== t21 || $[327] !== t28) {
|
|
3476
3472
|
t29 = /* @__PURE__ */ jsx("div", { className: t21, children: t28 });
|
|
3477
|
-
$[
|
|
3478
|
-
$[
|
|
3479
|
-
$[
|
|
3473
|
+
$[326] = t21;
|
|
3474
|
+
$[327] = t28;
|
|
3475
|
+
$[328] = t29;
|
|
3480
3476
|
} else {
|
|
3481
|
-
t29 = $[
|
|
3477
|
+
t29 = $[328];
|
|
3482
3478
|
}
|
|
3483
3479
|
let t30;
|
|
3484
|
-
if ($[
|
|
3480
|
+
if ($[329] !== disabled || $[330] !== multiple) {
|
|
3485
3481
|
t30 = !multiple && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-12 gap-2", children: /* @__PURE__ */ jsx(GeneralPropertyValidation, { disabled }) });
|
|
3486
|
-
$[
|
|
3487
|
-
$[
|
|
3488
|
-
$[
|
|
3482
|
+
$[329] = disabled;
|
|
3483
|
+
$[330] = multiple;
|
|
3484
|
+
$[331] = t30;
|
|
3489
3485
|
} else {
|
|
3490
|
-
t30 = $[
|
|
3486
|
+
t30 = $[331];
|
|
3491
3487
|
}
|
|
3492
3488
|
let t31;
|
|
3493
|
-
if ($[
|
|
3489
|
+
if ($[332] !== disabled || $[333] !== multiple) {
|
|
3494
3490
|
t31 = multiple && /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(ArrayPropertyValidation, { disabled }) });
|
|
3495
|
-
$[
|
|
3496
|
-
$[
|
|
3497
|
-
$[
|
|
3491
|
+
$[332] = disabled;
|
|
3492
|
+
$[333] = multiple;
|
|
3493
|
+
$[334] = t31;
|
|
3498
3494
|
} else {
|
|
3499
|
-
t31 = $[
|
|
3495
|
+
t31 = $[334];
|
|
3500
3496
|
}
|
|
3501
3497
|
let t32;
|
|
3502
|
-
if ($[
|
|
3498
|
+
if ($[335] !== t30 || $[336] !== t31) {
|
|
3503
3499
|
t32 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxs(ValidationPanel, { children: [
|
|
3504
3500
|
t30,
|
|
3505
3501
|
t31
|
|
3506
3502
|
] }) });
|
|
3507
|
-
$[
|
|
3508
|
-
$[
|
|
3509
|
-
$[
|
|
3503
|
+
$[335] = t30;
|
|
3504
|
+
$[336] = t31;
|
|
3505
|
+
$[337] = t32;
|
|
3510
3506
|
} else {
|
|
3511
|
-
t32 = $[
|
|
3507
|
+
t32 = $[337];
|
|
3512
3508
|
}
|
|
3513
3509
|
let t33;
|
|
3514
|
-
if ($[
|
|
3510
|
+
if ($[338] !== t29 || $[339] !== t32) {
|
|
3515
3511
|
t33 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3516
3512
|
t29,
|
|
3517
3513
|
t32
|
|
3518
3514
|
] });
|
|
3519
|
-
$[
|
|
3520
|
-
$[
|
|
3521
|
-
$[
|
|
3515
|
+
$[338] = t29;
|
|
3516
|
+
$[339] = t32;
|
|
3517
|
+
$[340] = t33;
|
|
3522
3518
|
} else {
|
|
3523
|
-
t33 = $[
|
|
3519
|
+
t33 = $[340];
|
|
3524
3520
|
}
|
|
3525
3521
|
return t33;
|
|
3526
3522
|
}
|
|
@@ -10374,7 +10370,7 @@ function PropertyFormDialog(t0) {
|
|
|
10374
10370
|
return t12;
|
|
10375
10371
|
}
|
|
10376
10372
|
function PropertyEditFormFields(t0) {
|
|
10377
|
-
const $ = c(
|
|
10373
|
+
const $ = c(153);
|
|
10378
10374
|
const {
|
|
10379
10375
|
values,
|
|
10380
10376
|
errors,
|
|
@@ -10582,155 +10578,153 @@ function PropertyEditFormFields(t0) {
|
|
|
10582
10578
|
} else {
|
|
10583
10579
|
if (selectedFieldConfigId === "file_upload") {
|
|
10584
10580
|
let t102;
|
|
10585
|
-
if ($[51] !== disabled
|
|
10586
|
-
t102 = /* @__PURE__ */ jsx(StoragePropertyField, {
|
|
10581
|
+
if ($[51] !== disabled) {
|
|
10582
|
+
t102 = /* @__PURE__ */ jsx(StoragePropertyField, { multiple: false, disabled });
|
|
10587
10583
|
$[51] = disabled;
|
|
10588
|
-
$[52] =
|
|
10589
|
-
$[53] = t102;
|
|
10584
|
+
$[52] = t102;
|
|
10590
10585
|
} else {
|
|
10591
|
-
t102 = $[
|
|
10586
|
+
t102 = $[52];
|
|
10592
10587
|
}
|
|
10593
10588
|
childComponent = t102;
|
|
10594
10589
|
} else {
|
|
10595
10590
|
if (selectedFieldConfigId === "multi_file_upload") {
|
|
10596
10591
|
let t102;
|
|
10597
|
-
if ($[
|
|
10598
|
-
t102 = /* @__PURE__ */ jsx(StoragePropertyField, {
|
|
10599
|
-
$[
|
|
10600
|
-
$[
|
|
10601
|
-
$[56] = t102;
|
|
10592
|
+
if ($[53] !== disabled) {
|
|
10593
|
+
t102 = /* @__PURE__ */ jsx(StoragePropertyField, { multiple: true, disabled });
|
|
10594
|
+
$[53] = disabled;
|
|
10595
|
+
$[54] = t102;
|
|
10602
10596
|
} else {
|
|
10603
|
-
t102 = $[
|
|
10597
|
+
t102 = $[54];
|
|
10604
10598
|
}
|
|
10605
10599
|
childComponent = t102;
|
|
10606
10600
|
} else {
|
|
10607
10601
|
if (selectedFieldConfigId === "switch") {
|
|
10608
10602
|
let t102;
|
|
10609
|
-
if ($[
|
|
10603
|
+
if ($[55] !== disabled) {
|
|
10610
10604
|
t102 = /* @__PURE__ */ jsx(BooleanPropertyField, { disabled });
|
|
10611
|
-
$[
|
|
10612
|
-
$[
|
|
10605
|
+
$[55] = disabled;
|
|
10606
|
+
$[56] = t102;
|
|
10613
10607
|
} else {
|
|
10614
|
-
t102 = $[
|
|
10608
|
+
t102 = $[56];
|
|
10615
10609
|
}
|
|
10616
10610
|
childComponent = t102;
|
|
10617
10611
|
} else {
|
|
10618
10612
|
if (selectedFieldConfigId === "number_input") {
|
|
10619
10613
|
let t102;
|
|
10620
|
-
if ($[
|
|
10614
|
+
if ($[57] !== disabled) {
|
|
10621
10615
|
t102 = /* @__PURE__ */ jsx(NumberPropertyField, { disabled });
|
|
10622
|
-
$[
|
|
10623
|
-
$[
|
|
10616
|
+
$[57] = disabled;
|
|
10617
|
+
$[58] = t102;
|
|
10624
10618
|
} else {
|
|
10625
|
-
t102 = $[
|
|
10619
|
+
t102 = $[58];
|
|
10626
10620
|
}
|
|
10627
10621
|
childComponent = t102;
|
|
10628
10622
|
} else {
|
|
10629
10623
|
if (selectedFieldConfigId === "group") {
|
|
10630
10624
|
let t102;
|
|
10631
|
-
if ($[
|
|
10625
|
+
if ($[59] !== allowDataInference || $[60] !== collectionEditable || $[61] !== disabled || $[62] !== getData || $[63] !== propertyConfigs) {
|
|
10632
10626
|
t102 = /* @__PURE__ */ jsx(MapPropertyField, { disabled, getData, allowDataInference, collectionEditable, propertyConfigs });
|
|
10633
|
-
$[
|
|
10634
|
-
$[
|
|
10635
|
-
$[
|
|
10636
|
-
$[
|
|
10637
|
-
$[
|
|
10638
|
-
$[
|
|
10627
|
+
$[59] = allowDataInference;
|
|
10628
|
+
$[60] = collectionEditable;
|
|
10629
|
+
$[61] = disabled;
|
|
10630
|
+
$[62] = getData;
|
|
10631
|
+
$[63] = propertyConfigs;
|
|
10632
|
+
$[64] = t102;
|
|
10639
10633
|
} else {
|
|
10640
|
-
t102 = $[
|
|
10634
|
+
t102 = $[64];
|
|
10641
10635
|
}
|
|
10642
10636
|
childComponent = t102;
|
|
10643
10637
|
} else {
|
|
10644
10638
|
if (selectedFieldConfigId === "block") {
|
|
10645
10639
|
let t102;
|
|
10646
|
-
if ($[
|
|
10640
|
+
if ($[65] !== allowDataInference || $[66] !== collectionEditable || $[67] !== disabled || $[68] !== getData || $[69] !== propertyConfigs) {
|
|
10647
10641
|
t102 = /* @__PURE__ */ jsx(BlockPropertyField, { disabled, getData, allowDataInference, collectionEditable, propertyConfigs });
|
|
10648
|
-
$[
|
|
10649
|
-
$[
|
|
10650
|
-
$[
|
|
10651
|
-
$[
|
|
10652
|
-
$[
|
|
10653
|
-
$[
|
|
10642
|
+
$[65] = allowDataInference;
|
|
10643
|
+
$[66] = collectionEditable;
|
|
10644
|
+
$[67] = disabled;
|
|
10645
|
+
$[68] = getData;
|
|
10646
|
+
$[69] = propertyConfigs;
|
|
10647
|
+
$[70] = t102;
|
|
10654
10648
|
} else {
|
|
10655
|
-
t102 = $[
|
|
10649
|
+
t102 = $[70];
|
|
10656
10650
|
}
|
|
10657
10651
|
childComponent = t102;
|
|
10658
10652
|
} else {
|
|
10659
10653
|
if (selectedFieldConfigId === "reference") {
|
|
10660
10654
|
let t102;
|
|
10661
|
-
if ($[
|
|
10655
|
+
if ($[71] !== disabled || $[72] !== existing || $[73] !== showErrors) {
|
|
10662
10656
|
t102 = /* @__PURE__ */ jsx(ReferencePropertyField, { showErrors, existing, multiple: false, disabled });
|
|
10663
|
-
$[
|
|
10664
|
-
$[
|
|
10665
|
-
$[
|
|
10666
|
-
$[
|
|
10657
|
+
$[71] = disabled;
|
|
10658
|
+
$[72] = existing;
|
|
10659
|
+
$[73] = showErrors;
|
|
10660
|
+
$[74] = t102;
|
|
10667
10661
|
} else {
|
|
10668
|
-
t102 = $[
|
|
10662
|
+
t102 = $[74];
|
|
10669
10663
|
}
|
|
10670
10664
|
childComponent = t102;
|
|
10671
10665
|
} else {
|
|
10672
10666
|
if (selectedFieldConfigId === "reference_as_string") {
|
|
10673
10667
|
let t102;
|
|
10674
|
-
if ($[
|
|
10668
|
+
if ($[75] !== disabled || $[76] !== existing || $[77] !== showErrors) {
|
|
10675
10669
|
t102 = /* @__PURE__ */ jsx(ReferencePropertyField, { showErrors, existing, asString: true, multiple: false, disabled });
|
|
10676
|
-
$[
|
|
10677
|
-
$[
|
|
10678
|
-
$[
|
|
10679
|
-
$[
|
|
10670
|
+
$[75] = disabled;
|
|
10671
|
+
$[76] = existing;
|
|
10672
|
+
$[77] = showErrors;
|
|
10673
|
+
$[78] = t102;
|
|
10680
10674
|
} else {
|
|
10681
|
-
t102 = $[
|
|
10675
|
+
t102 = $[78];
|
|
10682
10676
|
}
|
|
10683
10677
|
childComponent = t102;
|
|
10684
10678
|
} else {
|
|
10685
10679
|
if (selectedFieldConfigId === "date_time") {
|
|
10686
10680
|
let t102;
|
|
10687
|
-
if ($[
|
|
10681
|
+
if ($[79] !== disabled) {
|
|
10688
10682
|
t102 = /* @__PURE__ */ jsx(DateTimePropertyField, { disabled });
|
|
10689
|
-
$[
|
|
10690
|
-
$[
|
|
10683
|
+
$[79] = disabled;
|
|
10684
|
+
$[80] = t102;
|
|
10691
10685
|
} else {
|
|
10692
|
-
t102 = $[
|
|
10686
|
+
t102 = $[80];
|
|
10693
10687
|
}
|
|
10694
10688
|
childComponent = t102;
|
|
10695
10689
|
} else {
|
|
10696
10690
|
if (selectedFieldConfigId === "multi_references") {
|
|
10697
10691
|
let t102;
|
|
10698
|
-
if ($[
|
|
10692
|
+
if ($[81] !== disabled || $[82] !== existing || $[83] !== showErrors) {
|
|
10699
10693
|
t102 = /* @__PURE__ */ jsx(ReferencePropertyField, { showErrors, existing, multiple: true, disabled });
|
|
10700
|
-
$[
|
|
10701
|
-
$[
|
|
10702
|
-
$[
|
|
10703
|
-
$[
|
|
10694
|
+
$[81] = disabled;
|
|
10695
|
+
$[82] = existing;
|
|
10696
|
+
$[83] = showErrors;
|
|
10697
|
+
$[84] = t102;
|
|
10704
10698
|
} else {
|
|
10705
|
-
t102 = $[
|
|
10699
|
+
t102 = $[84];
|
|
10706
10700
|
}
|
|
10707
10701
|
childComponent = t102;
|
|
10708
10702
|
} else {
|
|
10709
10703
|
if (selectedFieldConfigId === "repeat") {
|
|
10710
10704
|
let t102;
|
|
10711
|
-
if ($[
|
|
10705
|
+
if ($[85] !== allowDataInference || $[86] !== collectionEditable || $[87] !== disabled || $[88] !== existing || $[89] !== getData || $[90] !== propertyConfigs || $[91] !== showErrors) {
|
|
10712
10706
|
t102 = /* @__PURE__ */ jsx(RepeatPropertyField, { showErrors, existing, getData, allowDataInference, disabled, collectionEditable, propertyConfigs });
|
|
10713
|
-
$[
|
|
10714
|
-
$[
|
|
10715
|
-
$[
|
|
10716
|
-
$[
|
|
10717
|
-
$[
|
|
10718
|
-
$[
|
|
10719
|
-
$[
|
|
10720
|
-
$[
|
|
10707
|
+
$[85] = allowDataInference;
|
|
10708
|
+
$[86] = collectionEditable;
|
|
10709
|
+
$[87] = disabled;
|
|
10710
|
+
$[88] = existing;
|
|
10711
|
+
$[89] = getData;
|
|
10712
|
+
$[90] = propertyConfigs;
|
|
10713
|
+
$[91] = showErrors;
|
|
10714
|
+
$[92] = t102;
|
|
10721
10715
|
} else {
|
|
10722
|
-
t102 = $[
|
|
10716
|
+
t102 = $[92];
|
|
10723
10717
|
}
|
|
10724
10718
|
childComponent = t102;
|
|
10725
10719
|
} else {
|
|
10726
10720
|
if (selectedFieldConfigId === "key_value") {
|
|
10727
10721
|
let t102;
|
|
10728
|
-
if ($[
|
|
10722
|
+
if ($[93] !== disabled) {
|
|
10729
10723
|
t102 = /* @__PURE__ */ jsx(KeyValuePropertyField, { disabled });
|
|
10730
|
-
$[
|
|
10731
|
-
$[
|
|
10724
|
+
$[93] = disabled;
|
|
10725
|
+
$[94] = t102;
|
|
10732
10726
|
} else {
|
|
10733
|
-
t102 = $[
|
|
10727
|
+
t102 = $[94];
|
|
10734
10728
|
}
|
|
10735
10729
|
childComponent = t102;
|
|
10736
10730
|
} else {
|
|
@@ -10753,7 +10747,7 @@ function PropertyEditFormFields(t0) {
|
|
|
10753
10747
|
}
|
|
10754
10748
|
}
|
|
10755
10749
|
let t10;
|
|
10756
|
-
if ($[
|
|
10750
|
+
if ($[95] !== disabled) {
|
|
10757
10751
|
t10 = disabled && /* @__PURE__ */ jsxs(InfoLabel, { mode: "warn", children: [
|
|
10758
10752
|
/* @__PURE__ */ jsx(Typography, { children: "This property can't be edited" }),
|
|
10759
10753
|
/* @__PURE__ */ jsxs(Typography, { variant: "caption", children: [
|
|
@@ -10764,170 +10758,170 @@ function PropertyEditFormFields(t0) {
|
|
|
10764
10758
|
"."
|
|
10765
10759
|
] })
|
|
10766
10760
|
] });
|
|
10767
|
-
$[
|
|
10768
|
-
$[
|
|
10761
|
+
$[95] = disabled;
|
|
10762
|
+
$[96] = t10;
|
|
10769
10763
|
} else {
|
|
10770
|
-
t10 = $[
|
|
10764
|
+
t10 = $[96];
|
|
10771
10765
|
}
|
|
10772
10766
|
const t11 = selectedFieldConfigId;
|
|
10773
10767
|
let t12;
|
|
10774
|
-
if ($[
|
|
10768
|
+
if ($[97] !== onWidgetSelectChanged) {
|
|
10775
10769
|
t12 = (value) => onWidgetSelectChanged(value);
|
|
10776
|
-
$[
|
|
10777
|
-
$[
|
|
10770
|
+
$[97] = onWidgetSelectChanged;
|
|
10771
|
+
$[98] = t12;
|
|
10778
10772
|
} else {
|
|
10779
|
-
t12 = $[
|
|
10773
|
+
t12 = $[98];
|
|
10780
10774
|
}
|
|
10781
10775
|
let t13;
|
|
10782
|
-
if ($[
|
|
10776
|
+
if ($[99] !== onDismiss) {
|
|
10783
10777
|
t13 = (open, hasValue) => {
|
|
10784
10778
|
if (!hasValue) {
|
|
10785
10779
|
onDismiss?.();
|
|
10786
10780
|
}
|
|
10787
10781
|
setSelectOpen(open);
|
|
10788
10782
|
};
|
|
10789
|
-
$[
|
|
10790
|
-
$[
|
|
10783
|
+
$[99] = onDismiss;
|
|
10784
|
+
$[100] = t13;
|
|
10791
10785
|
} else {
|
|
10792
|
-
t13 = $[
|
|
10786
|
+
t13 = $[100];
|
|
10793
10787
|
}
|
|
10794
10788
|
const t14 = Boolean(selectedWidgetError);
|
|
10795
10789
|
let t15;
|
|
10796
|
-
if ($[
|
|
10790
|
+
if ($[101] !== disabled || $[102] !== existing || $[103] !== inArray || $[104] !== propertyConfigs || $[105] !== selectOpen || $[106] !== t11 || $[107] !== t12 || $[108] !== t13 || $[109] !== t14 || $[110] !== values) {
|
|
10797
10791
|
t15 = /* @__PURE__ */ jsx(WidgetSelectView, { initialProperty: values, value: t11, onValueChange: t12, open: selectOpen, onOpenChange: t13, disabled, showError: t14, existing, propertyConfigs, inArray });
|
|
10798
|
-
$[
|
|
10799
|
-
$[
|
|
10800
|
-
$[
|
|
10801
|
-
$[
|
|
10802
|
-
$[
|
|
10803
|
-
$[
|
|
10804
|
-
$[
|
|
10805
|
-
$[
|
|
10806
|
-
$[
|
|
10807
|
-
$[
|
|
10808
|
-
$[
|
|
10809
|
-
} else {
|
|
10810
|
-
t15 = $[
|
|
10792
|
+
$[101] = disabled;
|
|
10793
|
+
$[102] = existing;
|
|
10794
|
+
$[103] = inArray;
|
|
10795
|
+
$[104] = propertyConfigs;
|
|
10796
|
+
$[105] = selectOpen;
|
|
10797
|
+
$[106] = t11;
|
|
10798
|
+
$[107] = t12;
|
|
10799
|
+
$[108] = t13;
|
|
10800
|
+
$[109] = t14;
|
|
10801
|
+
$[110] = values;
|
|
10802
|
+
$[111] = t15;
|
|
10803
|
+
} else {
|
|
10804
|
+
t15 = $[111];
|
|
10811
10805
|
}
|
|
10812
10806
|
let t16;
|
|
10813
|
-
if ($[
|
|
10807
|
+
if ($[112] !== selectedWidgetError || $[113] !== t) {
|
|
10814
10808
|
t16 = selectedWidgetError && /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "ml-3.5", color: "error", children: t("required") });
|
|
10815
|
-
$[
|
|
10816
|
-
$[
|
|
10817
|
-
$[
|
|
10809
|
+
$[112] = selectedWidgetError;
|
|
10810
|
+
$[113] = t;
|
|
10811
|
+
$[114] = t16;
|
|
10818
10812
|
} else {
|
|
10819
|
-
t16 = $[
|
|
10813
|
+
t16 = $[114];
|
|
10820
10814
|
}
|
|
10821
10815
|
let t17;
|
|
10822
|
-
if ($[
|
|
10816
|
+
if ($[115] !== t15 || $[116] !== t16) {
|
|
10823
10817
|
t17 = /* @__PURE__ */ jsxs("div", { className: "w-full flex flex-col gap-2", children: [
|
|
10824
10818
|
t15,
|
|
10825
10819
|
t16
|
|
10826
10820
|
] });
|
|
10827
|
-
$[
|
|
10828
|
-
$[
|
|
10829
|
-
$[
|
|
10821
|
+
$[115] = t15;
|
|
10822
|
+
$[116] = t16;
|
|
10823
|
+
$[117] = t17;
|
|
10830
10824
|
} else {
|
|
10831
|
-
t17 = $[
|
|
10825
|
+
t17 = $[117];
|
|
10832
10826
|
}
|
|
10833
10827
|
let t18;
|
|
10834
|
-
if ($[
|
|
10828
|
+
if ($[118] !== disabled || $[119] !== existing || $[120] !== onDelete || $[121] !== values?.id) {
|
|
10835
10829
|
t18 = onDelete && existing && values?.id && /* @__PURE__ */ jsx(IconButton, { variant: "ghost", className: "m-4", disabled, onClick: () => setDeleteDialogOpen(true), children: /* @__PURE__ */ jsx(DeleteIcon, {}) });
|
|
10836
|
-
$[
|
|
10837
|
-
$[
|
|
10838
|
-
$[
|
|
10839
|
-
$[
|
|
10840
|
-
$[
|
|
10830
|
+
$[118] = disabled;
|
|
10831
|
+
$[119] = existing;
|
|
10832
|
+
$[120] = onDelete;
|
|
10833
|
+
$[121] = values?.id;
|
|
10834
|
+
$[122] = t18;
|
|
10841
10835
|
} else {
|
|
10842
|
-
t18 = $[
|
|
10836
|
+
t18 = $[122];
|
|
10843
10837
|
}
|
|
10844
10838
|
let t19;
|
|
10845
|
-
if ($[
|
|
10839
|
+
if ($[123] !== t17 || $[124] !== t18) {
|
|
10846
10840
|
t19 = /* @__PURE__ */ jsxs("div", { className: "flex mt-2 justify-between", children: [
|
|
10847
10841
|
t17,
|
|
10848
10842
|
t18
|
|
10849
10843
|
] });
|
|
10850
|
-
$[
|
|
10851
|
-
$[
|
|
10852
|
-
$[
|
|
10844
|
+
$[123] = t17;
|
|
10845
|
+
$[124] = t18;
|
|
10846
|
+
$[125] = t19;
|
|
10853
10847
|
} else {
|
|
10854
|
-
t19 = $[
|
|
10848
|
+
t19 = $[125];
|
|
10855
10849
|
}
|
|
10856
10850
|
let t20;
|
|
10857
|
-
if ($[
|
|
10851
|
+
if ($[126] !== autoUpdateId || $[127] !== disabled || $[128] !== existing || $[129] !== includeIdAndTitle || $[130] !== showErrors) {
|
|
10858
10852
|
t20 = includeIdAndTitle && /* @__PURE__ */ jsx(CommonPropertyFields, { showErrors, disabledId: existing, isNewProperty: !existing, disabled, autoUpdateId, ref: nameFieldRef });
|
|
10859
|
-
$[
|
|
10860
|
-
$[
|
|
10861
|
-
$[
|
|
10862
|
-
$[
|
|
10863
|
-
$[
|
|
10864
|
-
$[
|
|
10853
|
+
$[126] = autoUpdateId;
|
|
10854
|
+
$[127] = disabled;
|
|
10855
|
+
$[128] = existing;
|
|
10856
|
+
$[129] = includeIdAndTitle;
|
|
10857
|
+
$[130] = showErrors;
|
|
10858
|
+
$[131] = t20;
|
|
10865
10859
|
} else {
|
|
10866
|
-
t20 = $[
|
|
10860
|
+
t20 = $[131];
|
|
10867
10861
|
}
|
|
10868
10862
|
let t21;
|
|
10869
|
-
if ($[
|
|
10863
|
+
if ($[132] !== disabled) {
|
|
10870
10864
|
t21 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(AdvancedPropertyValidation, { disabled }) });
|
|
10871
|
-
$[
|
|
10872
|
-
$[
|
|
10865
|
+
$[132] = disabled;
|
|
10866
|
+
$[133] = t21;
|
|
10873
10867
|
} else {
|
|
10874
|
-
t21 = $[
|
|
10868
|
+
t21 = $[133];
|
|
10875
10869
|
}
|
|
10876
10870
|
let t22;
|
|
10877
|
-
if ($[
|
|
10871
|
+
if ($[134] !== collectionProperties || $[135] !== disabled) {
|
|
10878
10872
|
t22 = /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsxs(ConditionsPanel, { children: [
|
|
10879
10873
|
/* @__PURE__ */ jsx(ConditionsEditor, { disabled, collectionProperties }),
|
|
10880
10874
|
/* @__PURE__ */ jsx(EnumConditionsEditor, { disabled, collectionProperties })
|
|
10881
10875
|
] }) });
|
|
10882
|
-
$[
|
|
10883
|
-
$[
|
|
10884
|
-
$[
|
|
10876
|
+
$[134] = collectionProperties;
|
|
10877
|
+
$[135] = disabled;
|
|
10878
|
+
$[136] = t22;
|
|
10885
10879
|
} else {
|
|
10886
|
-
t22 = $[
|
|
10880
|
+
t22 = $[136];
|
|
10887
10881
|
}
|
|
10888
10882
|
let t23;
|
|
10889
|
-
if ($[
|
|
10883
|
+
if ($[137] !== childComponent || $[138] !== t20 || $[139] !== t21 || $[140] !== t22) {
|
|
10890
10884
|
t23 = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-y-12 mt-8 mb-8", children: [
|
|
10891
10885
|
t20,
|
|
10892
10886
|
childComponent,
|
|
10893
10887
|
t21,
|
|
10894
10888
|
t22
|
|
10895
10889
|
] });
|
|
10896
|
-
$[
|
|
10897
|
-
$[
|
|
10898
|
-
$[
|
|
10899
|
-
$[
|
|
10900
|
-
$[
|
|
10890
|
+
$[137] = childComponent;
|
|
10891
|
+
$[138] = t20;
|
|
10892
|
+
$[139] = t21;
|
|
10893
|
+
$[140] = t22;
|
|
10894
|
+
$[141] = t23;
|
|
10901
10895
|
} else {
|
|
10902
|
-
t23 = $[
|
|
10896
|
+
t23 = $[141];
|
|
10903
10897
|
}
|
|
10904
10898
|
let t24;
|
|
10905
|
-
if ($[
|
|
10899
|
+
if ($[142] !== deleteDialogOpen || $[143] !== onDelete || $[144] !== propertyNamespace || $[145] !== t || $[146] !== values?.id) {
|
|
10906
10900
|
t24 = onDelete && /* @__PURE__ */ jsx(ConfirmationDialog, { open: deleteDialogOpen, onAccept: () => onDelete(values?.id, propertyNamespace), onCancel: () => setDeleteDialogOpen(false), title: /* @__PURE__ */ jsx("div", { children: t("delete_this_property") }), body: /* @__PURE__ */ jsx("div", { children: t("delete_property_warning") }) });
|
|
10907
|
-
$[
|
|
10908
|
-
$[
|
|
10909
|
-
$[
|
|
10910
|
-
$[
|
|
10911
|
-
$[
|
|
10912
|
-
$[
|
|
10901
|
+
$[142] = deleteDialogOpen;
|
|
10902
|
+
$[143] = onDelete;
|
|
10903
|
+
$[144] = propertyNamespace;
|
|
10904
|
+
$[145] = t;
|
|
10905
|
+
$[146] = values?.id;
|
|
10906
|
+
$[147] = t24;
|
|
10913
10907
|
} else {
|
|
10914
|
-
t24 = $[
|
|
10908
|
+
t24 = $[147];
|
|
10915
10909
|
}
|
|
10916
10910
|
let t25;
|
|
10917
|
-
if ($[
|
|
10911
|
+
if ($[148] !== t10 || $[149] !== t19 || $[150] !== t23 || $[151] !== t24) {
|
|
10918
10912
|
t25 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10919
10913
|
t10,
|
|
10920
10914
|
t19,
|
|
10921
10915
|
t23,
|
|
10922
10916
|
t24
|
|
10923
10917
|
] });
|
|
10924
|
-
$[
|
|
10925
|
-
$[
|
|
10926
|
-
$[
|
|
10927
|
-
$[
|
|
10928
|
-
$[
|
|
10918
|
+
$[148] = t10;
|
|
10919
|
+
$[149] = t19;
|
|
10920
|
+
$[150] = t23;
|
|
10921
|
+
$[151] = t24;
|
|
10922
|
+
$[152] = t25;
|
|
10929
10923
|
} else {
|
|
10930
|
-
t25 = $[
|
|
10924
|
+
t25 = $[152];
|
|
10931
10925
|
}
|
|
10932
10926
|
return t25;
|
|
10933
10927
|
}
|
|
@@ -11483,6 +11477,30 @@ function DisplaySettingsForm({
|
|
|
11483
11477
|
});
|
|
11484
11478
|
return result;
|
|
11485
11479
|
}, [resolvedCollection.properties]);
|
|
11480
|
+
const imageProperties = useMemo(() => {
|
|
11481
|
+
const result_0 = [];
|
|
11482
|
+
if (!resolvedCollection.properties) return result_0;
|
|
11483
|
+
const isImageProperty = (prop_0) => {
|
|
11484
|
+
if (!prop_0 || !("dataType" in prop_0)) return false;
|
|
11485
|
+
if (prop_0.dataType === "string") {
|
|
11486
|
+
return Boolean(prop_0.storage?.acceptedFiles?.includes("image/*")) || prop_0.url === "image";
|
|
11487
|
+
}
|
|
11488
|
+
if (prop_0.dataType === "array" && prop_0.of) {
|
|
11489
|
+
return isImageProperty(prop_0.of);
|
|
11490
|
+
}
|
|
11491
|
+
return false;
|
|
11492
|
+
};
|
|
11493
|
+
Object.entries(resolvedCollection.properties).forEach(([key_0, prop_1]) => {
|
|
11494
|
+
if (isImageProperty(prop_1)) {
|
|
11495
|
+
result_0.push({
|
|
11496
|
+
key: key_0,
|
|
11497
|
+
label: prop_1.name || key_0,
|
|
11498
|
+
property: prop_1
|
|
11499
|
+
});
|
|
11500
|
+
}
|
|
11501
|
+
});
|
|
11502
|
+
return result_0;
|
|
11503
|
+
}, [resolvedCollection.properties]);
|
|
11486
11504
|
if (typeof values.customId === "object") ;
|
|
11487
11505
|
else if (values.customId === true) ;
|
|
11488
11506
|
else if (values.customId === false) ;
|
|
@@ -11509,25 +11527,25 @@ function DisplaySettingsForm({
|
|
|
11509
11527
|
")"
|
|
11510
11528
|
] });
|
|
11511
11529
|
}
|
|
11512
|
-
const
|
|
11513
|
-
if (!
|
|
11514
|
-
const fieldConfig = getFieldConfig(
|
|
11530
|
+
const prop_2 = numberProperties.find((p_0) => p_0.key === value_1);
|
|
11531
|
+
if (!prop_2) return t("select_a_property");
|
|
11532
|
+
const fieldConfig = getFieldConfig(prop_2.property, customizationController.propertyConfigs);
|
|
11515
11533
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
11516
11534
|
/* @__PURE__ */ jsx(PropertyConfigBadge, { propertyConfig: fieldConfig }),
|
|
11517
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
11535
|
+
/* @__PURE__ */ jsx("span", { children: prop_2.label })
|
|
11518
11536
|
] });
|
|
11519
11537
|
}, endAdornment: values.orderProperty ? /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: (e) => {
|
|
11520
11538
|
e.stopPropagation();
|
|
11521
11539
|
setFieldValue("orderProperty", void 0);
|
|
11522
|
-
}, children: /* @__PURE__ */ jsx(CloseIcon, { size: "small" }) }) : void 0, children: numberProperties.map((
|
|
11523
|
-
const fieldConfig_0 = getFieldConfig(
|
|
11524
|
-
return /* @__PURE__ */ jsx(SelectItem, { value:
|
|
11540
|
+
}, children: /* @__PURE__ */ jsx(CloseIcon, { size: "small" }) }) : void 0, children: numberProperties.map((prop_3) => {
|
|
11541
|
+
const fieldConfig_0 = getFieldConfig(prop_3.property, customizationController.propertyConfigs);
|
|
11542
|
+
return /* @__PURE__ */ jsx(SelectItem, { value: prop_3.key, children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
11525
11543
|
/* @__PURE__ */ jsx(PropertyConfigBadge, { propertyConfig: fieldConfig_0 }),
|
|
11526
11544
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
11527
|
-
/* @__PURE__ */ jsx("div", { children:
|
|
11545
|
+
/* @__PURE__ */ jsx("div", { children: prop_3.label }),
|
|
11528
11546
|
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", children: fieldConfig_0?.name || t("number") })
|
|
11529
11547
|
] })
|
|
11530
|
-
] }) },
|
|
11548
|
+
] }) }, prop_3.key);
|
|
11531
11549
|
}) }, `order-select-${numberProperties.length}`),
|
|
11532
11550
|
/* @__PURE__ */ jsx(FieldCaption, { error: orderPropertyMissing, children: orderPropertyMissing ? t("order_property_not_found", {
|
|
11533
11551
|
property: values.orderProperty ?? ""
|
|
@@ -11566,14 +11584,54 @@ function DisplaySettingsForm({
|
|
|
11566
11584
|
] });
|
|
11567
11585
|
})()
|
|
11568
11586
|
] }),
|
|
11569
|
-
/* @__PURE__ */ jsx("div", { className: "col-span-12
|
|
11587
|
+
/* @__PURE__ */ jsx("div", { className: "col-span-12 mt-4", children: (() => {
|
|
11588
|
+
const imagePropertyMissing = Boolean(values.imageProperty) && !imageProperties.some((p_2) => p_2.key === values.imageProperty);
|
|
11589
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11590
|
+
/* @__PURE__ */ jsx(Typography, { variant: "label", color: "secondary", className: "ml-3.5", children: t("image_property") }),
|
|
11591
|
+
/* @__PURE__ */ jsx(Select, { name: "imageProperty", size: "large", fullWidth: true, position: "item-aligned", disabled: imageProperties.length === 0, error: imagePropertyMissing, value: values.imageProperty ?? "", onValueChange: (v_0) => {
|
|
11592
|
+
setFieldValue("imageProperty", v_0 || void 0);
|
|
11593
|
+
}, renderValue: (value_2) => {
|
|
11594
|
+
if (imagePropertyMissing) {
|
|
11595
|
+
return /* @__PURE__ */ jsxs("span", { className: "text-red-500", children: [
|
|
11596
|
+
value_2,
|
|
11597
|
+
" (",
|
|
11598
|
+
t("not_found_suffix"),
|
|
11599
|
+
")"
|
|
11600
|
+
] });
|
|
11601
|
+
}
|
|
11602
|
+
const prop_4 = imageProperties.find((p_3) => p_3.key === value_2);
|
|
11603
|
+
if (!prop_4) return t("select_a_property");
|
|
11604
|
+
const fieldConfig_1 = getFieldConfig(prop_4.property, customizationController.propertyConfigs);
|
|
11605
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
11606
|
+
/* @__PURE__ */ jsx(PropertyConfigBadge, { propertyConfig: fieldConfig_1 }),
|
|
11607
|
+
/* @__PURE__ */ jsx("span", { children: prop_4.label })
|
|
11608
|
+
] });
|
|
11609
|
+
}, endAdornment: values.imageProperty ? /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: (e_0) => {
|
|
11610
|
+
e_0.stopPropagation();
|
|
11611
|
+
setFieldValue("imageProperty", void 0);
|
|
11612
|
+
}, children: /* @__PURE__ */ jsx(CloseIcon, { size: "small" }) }) : void 0, children: imageProperties.map((prop_5) => {
|
|
11613
|
+
const fieldConfig_2 = getFieldConfig(prop_5.property, customizationController.propertyConfigs);
|
|
11614
|
+
return /* @__PURE__ */ jsx(SelectItem, { value: prop_5.key, children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
11615
|
+
/* @__PURE__ */ jsx(PropertyConfigBadge, { propertyConfig: fieldConfig_2 }),
|
|
11616
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
11617
|
+
/* @__PURE__ */ jsx("div", { children: prop_5.label }),
|
|
11618
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", children: fieldConfig_2?.name || prop_5.label })
|
|
11619
|
+
] })
|
|
11620
|
+
] }) }, prop_5.key);
|
|
11621
|
+
}) }, `image-select-${imageProperties.length}`),
|
|
11622
|
+
/* @__PURE__ */ jsx(FieldCaption, { error: imagePropertyMissing, children: imagePropertyMissing ? t("image_property_not_found", {
|
|
11623
|
+
property: values.imageProperty ?? ""
|
|
11624
|
+
}) : imageProperties.length === 0 ? t("no_image_properties") : t("image_property_description") })
|
|
11625
|
+
] });
|
|
11626
|
+
})() }),
|
|
11627
|
+
/* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(Select, { name: "defaultSize", size: "large", fullWidth: true, label: t("default_row_size"), position: "item-aligned", onChange: handleChange, value: values.defaultSize ?? "", renderValue: (value_3) => value_3.toUpperCase(), children: ["xs", "s", "m", "l", "xl"].map((value_4) => /* @__PURE__ */ jsx(SelectItem, { value: value_4, children: value_4.toUpperCase() }, `size-select-${value_4}`)) }) }),
|
|
11570
11628
|
/* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
|
|
11571
|
-
/* @__PURE__ */ jsx(TextField, { name: "sideDialogWidth", type: "number", "aria-describedby": "sideDialogWidth-helper", onChange: (
|
|
11572
|
-
const
|
|
11573
|
-
if (!
|
|
11629
|
+
/* @__PURE__ */ jsx(TextField, { name: "sideDialogWidth", type: "number", "aria-describedby": "sideDialogWidth-helper", onChange: (e_1) => {
|
|
11630
|
+
const value_5 = e_1.target.value;
|
|
11631
|
+
if (!value_5) {
|
|
11574
11632
|
setFieldValue("sideDialogWidth", null);
|
|
11575
|
-
} else if (!isNaN(Number(
|
|
11576
|
-
setFieldValue("sideDialogWidth", Number(
|
|
11633
|
+
} else if (!isNaN(Number(value_5))) {
|
|
11634
|
+
setFieldValue("sideDialogWidth", Number(value_5));
|
|
11577
11635
|
}
|
|
11578
11636
|
}, endAdornment: /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: () => {
|
|
11579
11637
|
setFieldValue("sideDialogWidth", null);
|
|
@@ -11581,11 +11639,11 @@ function DisplaySettingsForm({
|
|
|
11581
11639
|
/* @__PURE__ */ jsx(FieldCaption, { children: t("side_dialog_width_description") })
|
|
11582
11640
|
] }),
|
|
11583
11641
|
/* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
|
|
11584
|
-
/* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: values.inlineEditing === void 0 || values.inlineEditing ? t("inline_editing_enabled") : t("inline_editing_disabled"), onValueChange: (
|
|
11642
|
+
/* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: values.inlineEditing === void 0 || values.inlineEditing ? t("inline_editing_enabled") : t("inline_editing_disabled"), onValueChange: (v_1) => setFieldValue("inlineEditing", v_1), value: values.inlineEditing === void 0 ? true : values.inlineEditing }),
|
|
11585
11643
|
/* @__PURE__ */ jsx(FieldCaption, { children: t("inline_editing_description") })
|
|
11586
11644
|
] }),
|
|
11587
11645
|
/* @__PURE__ */ jsxs("div", { className: "col-span-12", children: [
|
|
11588
|
-
/* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: values.includeJsonView === void 0 || values.includeJsonView ? t("include_json_view") : t("no_json_view"), onValueChange: (
|
|
11646
|
+
/* @__PURE__ */ jsx(BooleanSwitchWithLabel, { position: "start", size: "large", label: values.includeJsonView === void 0 || values.includeJsonView ? t("include_json_view") : t("no_json_view"), onValueChange: (v_2) => setFieldValue("includeJsonView", v_2), value: values.includeJsonView === void 0 ? true : values.includeJsonView }),
|
|
11589
11647
|
/* @__PURE__ */ jsx(FieldCaption, { children: t("json_view_description") })
|
|
11590
11648
|
] })
|
|
11591
11649
|
] }),
|
|
@@ -12147,7 +12205,7 @@ function CollectionPropertiesEditorForm({
|
|
|
12147
12205
|
/* @__PURE__ */ jsx(Button, { className: "mt-8 w-full", size: "large", onClick: () => setNewPropertyDialogOpen(true), startIcon: /* @__PURE__ */ jsx(AddIcon, {}), children: t("add_new_property") })
|
|
12148
12206
|
] }),
|
|
12149
12207
|
!asDialog && /* @__PURE__ */ jsx("div", { className: "col-span-12 lg:col-span-7 p-4 md:py-8 md:px-4 h-full overflow-auto pb-20 md:pb-20", children: /* @__PURE__ */ jsxs("div", { className: "sticky top-8 min-h-full w-full flex flex-col justify-center", children: [
|
|
12150
|
-
selectedPropertyFullId && selectedProperty && !isPropertyBuilder(selectedProperty) && /* @__PURE__ */ jsx(PropertyForm, { inArray: false, existingProperty: !isNewCollection, autoUpdateId: false, allowDataInference: !isNewCollection, autoOpenTypeSelect: false, propertyKey: selectedPropertyKey, propertyNamespace: selectedPropertyNamespace, property: selectedProperty, onPropertyChanged, onDelete: deleteProperty, onError: onPropertyErrorInternal, forceShowErrors: showErrors, initialErrors, getData, propertyConfigs, collectionEditable, collectionProperties: values.properties }, `edit_view_${
|
|
12208
|
+
selectedPropertyFullId && selectedProperty && !isPropertyBuilder(selectedProperty) && /* @__PURE__ */ jsx(PropertyForm, { inArray: false, existingProperty: !isNewCollection, autoUpdateId: false, allowDataInference: !isNewCollection, autoOpenTypeSelect: false, propertyKey: selectedPropertyKey, propertyNamespace: selectedPropertyNamespace, property: selectedProperty, onPropertyChanged, onDelete: deleteProperty, onError: onPropertyErrorInternal, forceShowErrors: showErrors, initialErrors, getData, propertyConfigs, collectionEditable, collectionProperties: values.properties }, `edit_view_${selectedPropertyFullId}_${generationCounter}`),
|
|
12151
12209
|
!selectedProperty && /* @__PURE__ */ jsxs("div", { className: "w-full flex flex-col items-center justify-center h-full gap-4", children: [
|
|
12152
12210
|
/* @__PURE__ */ jsx(Typography, { variant: "label", className: "", children: emptyCollection ? t("add_first_property") : t("select_property_to_edit") }),
|
|
12153
12211
|
/* @__PURE__ */ jsxs(Button, { onClick: () => setNewPropertyDialogOpen(true), children: [
|
|
@@ -12157,7 +12215,7 @@ function CollectionPropertiesEditorForm({
|
|
|
12157
12215
|
] }),
|
|
12158
12216
|
selectedProperty && isPropertyBuilder(selectedProperty) && /* @__PURE__ */ jsx(Typography, { variant: "label", className: "flex items-center justify-center", children: t("property_defined_as_builder") })
|
|
12159
12217
|
] }) }),
|
|
12160
|
-
asDialog && /* @__PURE__ */ jsx(PropertyFormDialog, { inArray: false, open: selectedPropertyIndex !== void 0, autoUpdateId: !selectedProperty, allowDataInference: !isNewCollection, existingProperty: true, autoOpenTypeSelect: false, propertyKey: selectedPropertyKey, propertyNamespace: selectedPropertyNamespace, property: selectedProperty, onPropertyChanged, onDelete: deleteProperty, onError: onPropertyErrorInternal, forceShowErrors: showErrors, initialErrors, getData, propertyConfigs, collectionEditable, collectionProperties: values.properties, onCancel: closePropertyDialog, onOkClicked: asDialog ? closePropertyDialog : void 0 }, `edit_view_${
|
|
12218
|
+
asDialog && /* @__PURE__ */ jsx(PropertyFormDialog, { inArray: false, open: selectedPropertyIndex !== void 0, autoUpdateId: !selectedProperty, allowDataInference: !isNewCollection, existingProperty: true, autoOpenTypeSelect: false, propertyKey: selectedPropertyKey, propertyNamespace: selectedPropertyNamespace, property: selectedProperty, onPropertyChanged, onDelete: deleteProperty, onError: onPropertyErrorInternal, forceShowErrors: showErrors, initialErrors, getData, propertyConfigs, collectionEditable, collectionProperties: values.properties, onCancel: closePropertyDialog, onOkClicked: asDialog ? closePropertyDialog : void 0 }, `edit_view_${selectedPropertyFullId}_${generationCounter}`)
|
|
12161
12219
|
] });
|
|
12162
12220
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12163
12221
|
body,
|
|
@@ -17588,9 +17646,9 @@ const collectionEditorTranslationsEn = {
|
|
|
17588
17646
|
storage_placeholder_path: "{path} - Path of this entity",
|
|
17589
17647
|
storage_placeholder_rand: "{rand} - Random value used to avoid name collisions",
|
|
17590
17648
|
include_bucket_url: "Include bucket URL (gs://...) in saved value",
|
|
17591
|
-
include_bucket_url_description: "Turn this setting on if you want to save a fully-qualified storage URL (e.g. gs://my-bucket/path/to/file) instead of just the storage path.
|
|
17649
|
+
include_bucket_url_description: "Turn this setting on if you want to save a fully-qualified storage URL (e.g. gs://my-bucket/path/to/file) instead of just the storage path. Changing it only affects new uploads: values already saved keep their current format.",
|
|
17592
17650
|
save_url_instead_of_path: "Save URL instead of storage path",
|
|
17593
|
-
save_url_description: "Turn this setting on, if you prefer to save the download URL of the uploaded file instead of the storage path.
|
|
17651
|
+
save_url_description: "Turn this setting on, if you prefer to save the download URL of the uploaded file instead of the storage path. Changing it only affects new uploads: values already saved keep their current format.",
|
|
17594
17652
|
max_size_bytes: "Max size (in bytes)",
|
|
17595
17653
|
image_resize_configuration: "Image Resize Configuration",
|
|
17596
17654
|
image_resize_description: "Automatically resize and optimize images before upload (JPEG, PNG, WebP only)",
|
|
@@ -17720,9 +17778,9 @@ const collectionEditorTranslationsEs = {
|
|
|
17720
17778
|
storage_placeholder_path: "{path} - Ruta de esta entidad",
|
|
17721
17779
|
storage_placeholder_rand: "{rand} - Valor aleatorio para evitar colisiones de nombres",
|
|
17722
17780
|
include_bucket_url: "Incluir URL del bucket (gs://...) en el valor guardado",
|
|
17723
|
-
include_bucket_url_description: "Activa esta opción si deseas guardar una URL de almacenamiento completa (ej. gs://mi-bucket/ruta/al/archivo) en lugar de solo la ruta de almacenamiento.
|
|
17781
|
+
include_bucket_url_description: "Activa esta opción si deseas guardar una URL de almacenamiento completa (ej. gs://mi-bucket/ruta/al/archivo) en lugar de solo la ruta de almacenamiento. Cambiarla solo afecta a las nuevas subidas: los valores ya guardados mantienen su formato actual.",
|
|
17724
17782
|
save_url_instead_of_path: "Guardar URL en lugar de ruta de almacenamiento",
|
|
17725
|
-
save_url_description: "Activa esta opción si prefieres guardar la URL de descarga del archivo subido en lugar de la ruta de almacenamiento.
|
|
17783
|
+
save_url_description: "Activa esta opción si prefieres guardar la URL de descarga del archivo subido en lugar de la ruta de almacenamiento. Cambiarla solo afecta a las nuevas subidas: los valores ya guardados mantienen su formato actual.",
|
|
17726
17784
|
max_size_bytes: "Tamaño máximo (en bytes)",
|
|
17727
17785
|
image_resize_configuration: "Configuración de redimensionamiento de imagen",
|
|
17728
17786
|
image_resize_description: "Redimensionar y optimizar imágenes automáticamente antes de subirlas (solo JPEG, PNG, WebP)",
|
|
@@ -17842,9 +17900,9 @@ const collectionEditorTranslationsDe = {
|
|
|
17842
17900
|
storage_placeholder_path: "{path} - Pfad dieser Entität",
|
|
17843
17901
|
storage_placeholder_rand: "{rand} - Zufallswert zur Vermeidung von Namenskollisionen",
|
|
17844
17902
|
include_bucket_url: "Bucket-URL (gs://...) im gespeicherten Wert einschließen",
|
|
17845
|
-
include_bucket_url_description: "Aktivieren Sie diese Einstellung, wenn Sie eine vollqualifizierte Speicher-URL (z. B. gs://mein-bucket/pfad/zur/datei) statt nur des Speicherpfads speichern möchten.
|
|
17903
|
+
include_bucket_url_description: "Aktivieren Sie diese Einstellung, wenn Sie eine vollqualifizierte Speicher-URL (z. B. gs://mein-bucket/pfad/zur/datei) statt nur des Speicherpfads speichern möchten. Eine Änderung wirkt sich nur auf neue Uploads aus: Bereits gespeicherte Werte behalten ihr aktuelles Format.",
|
|
17846
17904
|
save_url_instead_of_path: "URL statt Speicherpfad speichern",
|
|
17847
|
-
save_url_description: "Aktivieren Sie diese Einstellung, wenn Sie bevorzugen, die Download-URL der hochgeladenen Datei statt des Speicherpfads zu speichern.
|
|
17905
|
+
save_url_description: "Aktivieren Sie diese Einstellung, wenn Sie bevorzugen, die Download-URL der hochgeladenen Datei statt des Speicherpfads zu speichern. Eine Änderung wirkt sich nur auf neue Uploads aus: Bereits gespeicherte Werte behalten ihr aktuelles Format.",
|
|
17848
17906
|
max_size_bytes: "Maximale Größe (in Bytes)",
|
|
17849
17907
|
image_resize_configuration: "Bildgrößenanpassungs-Konfiguration",
|
|
17850
17908
|
image_resize_description: "Bilder vor dem Hochladen automatisch anpassen und optimieren (nur JPEG, PNG, WebP)",
|
|
@@ -17964,9 +18022,9 @@ const collectionEditorTranslationsFr = {
|
|
|
17964
18022
|
storage_placeholder_path: "{path} - Chemin de cette entité",
|
|
17965
18023
|
storage_placeholder_rand: "{rand} - Valeur aléatoire pour éviter les conflits de noms",
|
|
17966
18024
|
include_bucket_url: "Inclure l'URL du bucket (gs://...) dans la valeur enregistrée",
|
|
17967
|
-
include_bucket_url_description: "Activez ce paramètre si vous souhaitez enregistrer une URL de stockage complète (ex. gs://mon-bucket/chemin/vers/fichier) au lieu du simple chemin de stockage.
|
|
18025
|
+
include_bucket_url_description: "Activez ce paramètre si vous souhaitez enregistrer une URL de stockage complète (ex. gs://mon-bucket/chemin/vers/fichier) au lieu du simple chemin de stockage. Sa modification n'affecte que les nouveaux envois : les valeurs déjà enregistrées conservent leur format actuel.",
|
|
17968
18026
|
save_url_instead_of_path: "Enregistrer l'URL au lieu du chemin de stockage",
|
|
17969
|
-
save_url_description: "Activez ce paramètre si vous préférez enregistrer l'URL de téléchargement du fichier plutôt que le chemin de stockage.
|
|
18027
|
+
save_url_description: "Activez ce paramètre si vous préférez enregistrer l'URL de téléchargement du fichier plutôt que le chemin de stockage. Sa modification n'affecte que les nouveaux envois : les valeurs déjà enregistrées conservent leur format actuel.",
|
|
17970
18028
|
max_size_bytes: "Taille maximale (en octets)",
|
|
17971
18029
|
image_resize_configuration: "Configuration du redimensionnement d'image",
|
|
17972
18030
|
image_resize_description: "Redimensionner et optimiser automatiquement les images avant le téléchargement (JPEG, PNG, WebP uniquement)",
|
|
@@ -18086,9 +18144,9 @@ const collectionEditorTranslationsIt = {
|
|
|
18086
18144
|
storage_placeholder_path: "{path} - Percorso di questa entità",
|
|
18087
18145
|
storage_placeholder_rand: "{rand} - Valore casuale per evitare conflitti di nomi",
|
|
18088
18146
|
include_bucket_url: "Includi URL del bucket (gs://...) nel valore salvato",
|
|
18089
|
-
include_bucket_url_description: "Attiva questa impostazione se desideri salvare un URL di archiviazione completo (es. gs://mio-bucket/percorso/al/file) invece del solo percorso di archiviazione.
|
|
18147
|
+
include_bucket_url_description: "Attiva questa impostazione se desideri salvare un URL di archiviazione completo (es. gs://mio-bucket/percorso/al/file) invece del solo percorso di archiviazione. La modifica influisce solo sui nuovi caricamenti: i valori già salvati mantengono il loro formato attuale.",
|
|
18090
18148
|
save_url_instead_of_path: "Salva URL invece del percorso di archiviazione",
|
|
18091
|
-
save_url_description: "Attiva questa impostazione se preferisci salvare l'URL di download del file caricato invece del percorso di archiviazione.
|
|
18149
|
+
save_url_description: "Attiva questa impostazione se preferisci salvare l'URL di download del file caricato invece del percorso di archiviazione. La modifica influisce solo sui nuovi caricamenti: i valori già salvati mantengono il loro formato attuale.",
|
|
18092
18150
|
max_size_bytes: "Dimensione massima (in byte)",
|
|
18093
18151
|
image_resize_configuration: "Configurazione ridimensionamento immagine",
|
|
18094
18152
|
image_resize_description: "Ridimensiona e ottimizza automaticamente le immagini prima del caricamento (solo JPEG, PNG, WebP)",
|
|
@@ -18208,9 +18266,9 @@ const collectionEditorTranslationsHi = {
|
|
|
18208
18266
|
storage_placeholder_path: "{path} - इस इकाई का पथ",
|
|
18209
18267
|
storage_placeholder_rand: "{rand} - नाम टकराव से बचने के लिए यादृच्छिक मूल्य",
|
|
18210
18268
|
include_bucket_url: "सहेजे गए मान में बकेट URL (gs://...) शामिल करें",
|
|
18211
|
-
include_bucket_url_description: "यदि आप केवल स्टोरेज पथ के बजाय पूरी तरह से योग्य स्टोरेज URL (जैसे gs://my-bucket/path/to/file) सहेजना चाहते हैं तो इस सेटिंग को चालू करें।
|
|
18269
|
+
include_bucket_url_description: "यदि आप केवल स्टोरेज पथ के बजाय पूरी तरह से योग्य स्टोरेज URL (जैसे gs://my-bucket/path/to/file) सहेजना चाहते हैं तो इस सेटिंग को चालू करें। इसे बदलने का असर केवल नए अपलोड पर होता है: पहले से सहेजे गए मान अपने मौजूदा प्रारूप में बने रहते हैं।",
|
|
18212
18270
|
save_url_instead_of_path: "स्टोरेज पथ के बजाय URL सहेजें",
|
|
18213
|
-
save_url_description: "यदि आप स्टोरेज पथ के बजाय अपलोड की गई फ़ाइल का डाउनलोड URL सहेजना पसंद करते हैं तो इस सेटिंग को चालू करें।
|
|
18271
|
+
save_url_description: "यदि आप स्टोरेज पथ के बजाय अपलोड की गई फ़ाइल का डाउनलोड URL सहेजना पसंद करते हैं तो इस सेटिंग को चालू करें। इसे बदलने का असर केवल नए अपलोड पर होता है: पहले से सहेजे गए मान अपने मौजूदा प्रारूप में बने रहते हैं।",
|
|
18214
18272
|
max_size_bytes: "अधिकतम आकार (बाइट में)",
|
|
18215
18273
|
image_resize_configuration: "छवि आकार बदलने का कॉन्फ़िगरेशन",
|
|
18216
18274
|
image_resize_description: "अपलोड से पहले स्वचालित रूप से छवियों का आकार बदलें और अनुकूलित करें (केवल JPEG, PNG, WebP)",
|
|
@@ -18330,9 +18388,9 @@ const collectionEditorTranslationsPt = {
|
|
|
18330
18388
|
storage_placeholder_path: "{path} - Caminho desta entidade",
|
|
18331
18389
|
storage_placeholder_rand: "{rand} - Valor aleatório para evitar colisões de nomes",
|
|
18332
18390
|
include_bucket_url: "Incluir URL do bucket (gs://...) no valor salvo",
|
|
18333
|
-
include_bucket_url_description: "Ative esta configuração se deseja salvar uma URL de armazenamento completa (ex. gs://meu-bucket/caminho/para/arquivo) em vez de apenas o caminho de armazenamento.
|
|
18391
|
+
include_bucket_url_description: "Ative esta configuração se deseja salvar uma URL de armazenamento completa (ex. gs://meu-bucket/caminho/para/arquivo) em vez de apenas o caminho de armazenamento. Alterá-la afeta apenas os novos envios: os valores já salvos mantêm o formato atual.",
|
|
18334
18392
|
save_url_instead_of_path: "Salvar URL em vez do caminho de armazenamento",
|
|
18335
|
-
save_url_description: "Ative esta configuração se preferir salvar a URL de download do arquivo enviado em vez do caminho de armazenamento.
|
|
18393
|
+
save_url_description: "Ative esta configuração se preferir salvar a URL de download do arquivo enviado em vez do caminho de armazenamento. Alterá-la afeta apenas os novos envios: os valores já salvos mantêm o formato atual.",
|
|
18336
18394
|
max_size_bytes: "Tamanho máximo (em bytes)",
|
|
18337
18395
|
image_resize_configuration: "Configuração de redimensionamento de imagem",
|
|
18338
18396
|
image_resize_description: "Redimensionar e otimizar imagens automaticamente antes do upload (apenas JPEG, PNG, WebP)",
|