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