@pdfme/ui 5.3.14-dev.11 → 5.3.14-dev.17
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 +73 -63
- package/dist/index.umd.js +52 -52
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
@@ -135581,14 +135581,20 @@ const Dragger = /* @__PURE__ */ reactExports.forwardRef((a, s) => {
|
|
135581
135581
|
Upload.Dragger = Dragger;
|
135582
135582
|
Upload.LIST_IGNORE = LIST_IGNORE;
|
135583
135583
|
/**
|
135584
|
-
* @license lucide-react v0.
|
135584
|
+
* @license lucide-react v0.486.0 - ISC
|
135585
135585
|
*
|
135586
135586
|
* This source code is licensed under the ISC license.
|
135587
135587
|
* See the LICENSE file in the root directory of this source tree.
|
135588
135588
|
*/
|
135589
|
-
const toKebabCase = (a) => a.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(),
|
135589
|
+
const toKebabCase = (a) => a.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), toCamelCase = (a) => a.replace(
|
135590
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
135591
|
+
(s, c, u) => u ? u.toUpperCase() : c.toLowerCase()
|
135592
|
+
), toPascalCase = (a) => {
|
135593
|
+
const s = toCamelCase(a);
|
135594
|
+
return s.charAt(0).toUpperCase() + s.slice(1);
|
135595
|
+
}, mergeClasses = (...a) => a.filter((s, c, u) => !!s && s.trim() !== "" && u.indexOf(s) === c).join(" ").trim();
|
135590
135596
|
/**
|
135591
|
-
* @license lucide-react v0.
|
135597
|
+
* @license lucide-react v0.486.0 - ISC
|
135592
135598
|
*
|
135593
135599
|
* This source code is licensed under the ISC license.
|
135594
135600
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135605,7 +135611,7 @@ var defaultAttributes$1 = {
|
|
135605
135611
|
strokeLinejoin: "round"
|
135606
135612
|
};
|
135607
135613
|
/**
|
135608
|
-
* @license lucide-react v0.
|
135614
|
+
* @license lucide-react v0.486.0 - ISC
|
135609
135615
|
*
|
135610
135616
|
* This source code is licensed under the ISC license.
|
135611
135617
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135639,7 +135645,7 @@ const Icon = reactExports.forwardRef(
|
|
135639
135645
|
)
|
135640
135646
|
);
|
135641
135647
|
/**
|
135642
|
-
* @license lucide-react v0.
|
135648
|
+
* @license lucide-react v0.486.0 - ISC
|
135643
135649
|
*
|
135644
135650
|
* This source code is licensed under the ISC license.
|
135645
135651
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135649,40 +135655,44 @@ const createLucideIcon = (a, s) => {
|
|
135649
135655
|
({ className: u, ...d }, p) => reactExports.createElement(Icon, {
|
135650
135656
|
ref: p,
|
135651
135657
|
iconNode: s,
|
135652
|
-
className: mergeClasses(
|
135658
|
+
className: mergeClasses(
|
135659
|
+
`lucide-${toKebabCase(toPascalCase(a))}`,
|
135660
|
+
`lucide-${a}`,
|
135661
|
+
u
|
135662
|
+
),
|
135653
135663
|
...d
|
135654
135664
|
})
|
135655
135665
|
);
|
135656
|
-
return c.displayName =
|
135666
|
+
return c.displayName = toPascalCase(a), c;
|
135657
135667
|
};
|
135658
135668
|
/**
|
135659
|
-
* @license lucide-react v0.
|
135669
|
+
* @license lucide-react v0.486.0 - ISC
|
135660
135670
|
*
|
135661
135671
|
* This source code is licensed under the ISC license.
|
135662
135672
|
* See the LICENSE file in the root directory of this source tree.
|
135663
135673
|
*/
|
135664
135674
|
const __iconNode$m = [
|
135665
|
-
["path", { d: "
|
135666
|
-
["path", { d: "
|
135667
|
-
["path", { d: "
|
135668
|
-
["path", { d: "
|
135669
|
-
["path", { d: "
|
135670
|
-
],
|
135675
|
+
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
135676
|
+
["path", { d: "M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4", key: "11f1s0" }],
|
135677
|
+
["path", { d: "M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4", key: "t14dx9" }],
|
135678
|
+
["path", { d: "M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1", key: "1w07xs" }],
|
135679
|
+
["path", { d: "M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1", key: "1apec2" }]
|
135680
|
+
], AlignCenterHorizontal = createLucideIcon("align-center-horizontal", __iconNode$m);
|
135671
135681
|
/**
|
135672
|
-
* @license lucide-react v0.
|
135682
|
+
* @license lucide-react v0.486.0 - ISC
|
135673
135683
|
*
|
135674
135684
|
* This source code is licensed under the ISC license.
|
135675
135685
|
* See the LICENSE file in the root directory of this source tree.
|
135676
135686
|
*/
|
135677
135687
|
const __iconNode$l = [
|
135678
|
-
["path", { d: "
|
135679
|
-
["path", { d: "
|
135680
|
-
["path", { d: "
|
135681
|
-
["path", { d: "
|
135682
|
-
["path", { d: "
|
135683
|
-
],
|
135688
|
+
["path", { d: "M12 2v20", key: "t6zp3m" }],
|
135689
|
+
["path", { d: "M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4", key: "14d6g8" }],
|
135690
|
+
["path", { d: "M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4", key: "1e2lrw" }],
|
135691
|
+
["path", { d: "M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1", key: "1fkdwx" }],
|
135692
|
+
["path", { d: "M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1", key: "1euafb" }]
|
135693
|
+
], AlignCenterVertical = createLucideIcon("align-center-vertical", __iconNode$l);
|
135684
135694
|
/**
|
135685
|
-
* @license lucide-react v0.
|
135695
|
+
* @license lucide-react v0.486.0 - ISC
|
135686
135696
|
*
|
135687
135697
|
* This source code is licensed under the ISC license.
|
135688
135698
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135691,9 +135701,9 @@ const __iconNode$k = [
|
|
135691
135701
|
["rect", { width: "6", height: "16", x: "4", y: "2", rx: "2", key: "z5wdxg" }],
|
135692
135702
|
["rect", { width: "6", height: "9", x: "14", y: "9", rx: "2", key: "um7a8w" }],
|
135693
135703
|
["path", { d: "M22 22H2", key: "19qnx5" }]
|
135694
|
-
], AlignEndHorizontal = createLucideIcon("
|
135704
|
+
], AlignEndHorizontal = createLucideIcon("align-end-horizontal", __iconNode$k);
|
135695
135705
|
/**
|
135696
|
-
* @license lucide-react v0.
|
135706
|
+
* @license lucide-react v0.486.0 - ISC
|
135697
135707
|
*
|
135698
135708
|
* This source code is licensed under the ISC license.
|
135699
135709
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135702,9 +135712,9 @@ const __iconNode$j = [
|
|
135702
135712
|
["rect", { width: "16", height: "6", x: "2", y: "4", rx: "2", key: "10wcwx" }],
|
135703
135713
|
["rect", { width: "9", height: "6", x: "9", y: "14", rx: "2", key: "4p5bwg" }],
|
135704
135714
|
["path", { d: "M22 22V2", key: "12ipfv" }]
|
135705
|
-
], AlignEndVertical = createLucideIcon("
|
135715
|
+
], AlignEndVertical = createLucideIcon("align-end-vertical", __iconNode$j);
|
135706
135716
|
/**
|
135707
|
-
* @license lucide-react v0.
|
135717
|
+
* @license lucide-react v0.486.0 - ISC
|
135708
135718
|
*
|
135709
135719
|
* This source code is licensed under the ISC license.
|
135710
135720
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135713,9 +135723,9 @@ const __iconNode$i = [
|
|
135713
135723
|
["rect", { width: "6", height: "10", x: "9", y: "7", rx: "2", key: "yn7j0q" }],
|
135714
135724
|
["path", { d: "M4 22V2", key: "tsjzd3" }],
|
135715
135725
|
["path", { d: "M20 22V2", key: "1bnhr8" }]
|
135716
|
-
], AlignHorizontalSpaceAround = createLucideIcon("
|
135726
|
+
], AlignHorizontalSpaceAround = createLucideIcon("align-horizontal-space-around", __iconNode$i);
|
135717
135727
|
/**
|
135718
|
-
* @license lucide-react v0.
|
135728
|
+
* @license lucide-react v0.486.0 - ISC
|
135719
135729
|
*
|
135720
135730
|
* This source code is licensed under the ISC license.
|
135721
135731
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135724,9 +135734,9 @@ const __iconNode$h = [
|
|
135724
135734
|
["rect", { width: "6", height: "16", x: "4", y: "6", rx: "2", key: "1n4dg1" }],
|
135725
135735
|
["rect", { width: "6", height: "9", x: "14", y: "6", rx: "2", key: "17khns" }],
|
135726
135736
|
["path", { d: "M22 2H2", key: "fhrpnj" }]
|
135727
|
-
], AlignStartHorizontal = createLucideIcon("
|
135737
|
+
], AlignStartHorizontal = createLucideIcon("align-start-horizontal", __iconNode$h);
|
135728
135738
|
/**
|
135729
|
-
* @license lucide-react v0.
|
135739
|
+
* @license lucide-react v0.486.0 - ISC
|
135730
135740
|
*
|
135731
135741
|
* This source code is licensed under the ISC license.
|
135732
135742
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135735,9 +135745,9 @@ const __iconNode$g = [
|
|
135735
135745
|
["rect", { width: "9", height: "6", x: "6", y: "14", rx: "2", key: "lpm2y7" }],
|
135736
135746
|
["rect", { width: "16", height: "6", x: "6", y: "4", rx: "2", key: "rdj6ps" }],
|
135737
135747
|
["path", { d: "M2 2v20", key: "1ivd8o" }]
|
135738
|
-
], AlignStartVertical = createLucideIcon("
|
135748
|
+
], AlignStartVertical = createLucideIcon("align-start-vertical", __iconNode$g);
|
135739
135749
|
/**
|
135740
|
-
* @license lucide-react v0.
|
135750
|
+
* @license lucide-react v0.486.0 - ISC
|
135741
135751
|
*
|
135742
135752
|
* This source code is licensed under the ISC license.
|
135743
135753
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135746,9 +135756,9 @@ const __iconNode$f = [
|
|
135746
135756
|
["rect", { width: "10", height: "6", x: "7", y: "9", rx: "2", key: "b1zbii" }],
|
135747
135757
|
["path", { d: "M22 20H2", key: "1p1f7z" }],
|
135748
135758
|
["path", { d: "M22 4H2", key: "1b7qnq" }]
|
135749
|
-
], AlignVerticalSpaceAround = createLucideIcon("
|
135759
|
+
], AlignVerticalSpaceAround = createLucideIcon("align-vertical-space-around", __iconNode$f);
|
135750
135760
|
/**
|
135751
|
-
* @license lucide-react v0.
|
135761
|
+
* @license lucide-react v0.486.0 - ISC
|
135752
135762
|
*
|
135753
135763
|
* This source code is licensed under the ISC license.
|
135754
135764
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135756,9 +135766,9 @@ const __iconNode$f = [
|
|
135756
135766
|
const __iconNode$e = [
|
135757
135767
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
135758
135768
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
135759
|
-
], ArrowLeft = createLucideIcon("
|
135769
|
+
], ArrowLeft = createLucideIcon("arrow-left", __iconNode$e);
|
135760
135770
|
/**
|
135761
|
-
* @license lucide-react v0.
|
135771
|
+
* @license lucide-react v0.486.0 - ISC
|
135762
135772
|
*
|
135763
135773
|
* This source code is licensed under the ISC license.
|
135764
135774
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135766,23 +135776,23 @@ const __iconNode$e = [
|
|
135766
135776
|
const __iconNode$d = [
|
135767
135777
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
135768
135778
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
135769
|
-
], ArrowRight = createLucideIcon("
|
135779
|
+
], ArrowRight = createLucideIcon("arrow-right", __iconNode$d);
|
135770
135780
|
/**
|
135771
|
-
* @license lucide-react v0.
|
135781
|
+
* @license lucide-react v0.486.0 - ISC
|
135772
135782
|
*
|
135773
135783
|
* This source code is licensed under the ISC license.
|
135774
135784
|
* See the LICENSE file in the root directory of this source tree.
|
135775
135785
|
*/
|
135776
|
-
const __iconNode$c = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ChevronLeft = createLucideIcon("
|
135786
|
+
const __iconNode$c = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ChevronLeft = createLucideIcon("chevron-left", __iconNode$c);
|
135777
135787
|
/**
|
135778
|
-
* @license lucide-react v0.
|
135788
|
+
* @license lucide-react v0.486.0 - ISC
|
135779
135789
|
*
|
135780
135790
|
* This source code is licensed under the ISC license.
|
135781
135791
|
* See the LICENSE file in the root directory of this source tree.
|
135782
135792
|
*/
|
135783
|
-
const __iconNode$b = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ChevronRight = createLucideIcon("
|
135793
|
+
const __iconNode$b = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ChevronRight = createLucideIcon("chevron-right", __iconNode$b);
|
135784
135794
|
/**
|
135785
|
-
* @license lucide-react v0.
|
135795
|
+
* @license lucide-react v0.486.0 - ISC
|
135786
135796
|
*
|
135787
135797
|
* This source code is licensed under the ISC license.
|
135788
135798
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135790,9 +135800,9 @@ const __iconNode$b = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ChevronR
|
|
135790
135800
|
const __iconNode$a = [
|
135791
135801
|
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
135792
135802
|
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
135793
|
-
], ChevronsLeft = createLucideIcon("
|
135803
|
+
], ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$a);
|
135794
135804
|
/**
|
135795
|
-
* @license lucide-react v0.
|
135805
|
+
* @license lucide-react v0.486.0 - ISC
|
135796
135806
|
*
|
135797
135807
|
* This source code is licensed under the ISC license.
|
135798
135808
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135800,9 +135810,9 @@ const __iconNode$a = [
|
|
135800
135810
|
const __iconNode$9 = [
|
135801
135811
|
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
135802
135812
|
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
135803
|
-
], ChevronsRight = createLucideIcon("
|
135813
|
+
], ChevronsRight = createLucideIcon("chevrons-right", __iconNode$9);
|
135804
135814
|
/**
|
135805
|
-
* @license lucide-react v0.
|
135815
|
+
* @license lucide-react v0.486.0 - ISC
|
135806
135816
|
*
|
135807
135817
|
* This source code is licensed under the ISC license.
|
135808
135818
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135811,9 +135821,9 @@ const __iconNode$8 = [
|
|
135811
135821
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
135812
135822
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
135813
135823
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
135814
|
-
], CircleAlert = createLucideIcon("
|
135824
|
+
], CircleAlert = createLucideIcon("circle-alert", __iconNode$8);
|
135815
135825
|
/**
|
135816
|
-
* @license lucide-react v0.
|
135826
|
+
* @license lucide-react v0.486.0 - ISC
|
135817
135827
|
*
|
135818
135828
|
* This source code is licensed under the ISC license.
|
135819
135829
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135822,9 +135832,9 @@ const __iconNode$7 = [
|
|
135822
135832
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
135823
135833
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
135824
135834
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
135825
|
-
], Ellipsis = createLucideIcon("
|
135835
|
+
], Ellipsis = createLucideIcon("ellipsis", __iconNode$7);
|
135826
135836
|
/**
|
135827
|
-
* @license lucide-react v0.
|
135837
|
+
* @license lucide-react v0.486.0 - ISC
|
135828
135838
|
*
|
135829
135839
|
* This source code is licensed under the ISC license.
|
135830
135840
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135836,16 +135846,16 @@ const __iconNode$6 = [
|
|
135836
135846
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
135837
135847
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
135838
135848
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
135839
|
-
], GripVertical = createLucideIcon("
|
135849
|
+
], GripVertical = createLucideIcon("grip-vertical", __iconNode$6);
|
135840
135850
|
/**
|
135841
|
-
* @license lucide-react v0.
|
135851
|
+
* @license lucide-react v0.486.0 - ISC
|
135842
135852
|
*
|
135843
135853
|
* This source code is licensed under the ISC license.
|
135844
135854
|
* See the LICENSE file in the root directory of this source tree.
|
135845
135855
|
*/
|
135846
|
-
const __iconNode$5 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], LoaderCircle = createLucideIcon("
|
135856
|
+
const __iconNode$5 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], LoaderCircle = createLucideIcon("loader-circle", __iconNode$5);
|
135847
135857
|
/**
|
135848
|
-
* @license lucide-react v0.
|
135858
|
+
* @license lucide-react v0.486.0 - ISC
|
135849
135859
|
*
|
135850
135860
|
* This source code is licensed under the ISC license.
|
135851
135861
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135853,9 +135863,9 @@ const __iconNode$5 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald"
|
|
135853
135863
|
const __iconNode$4 = [
|
135854
135864
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
135855
135865
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
135856
|
-
], Lock = createLucideIcon("
|
135866
|
+
], Lock = createLucideIcon("lock", __iconNode$4);
|
135857
135867
|
/**
|
135858
|
-
* @license lucide-react v0.
|
135868
|
+
* @license lucide-react v0.486.0 - ISC
|
135859
135869
|
*
|
135860
135870
|
* This source code is licensed under the ISC license.
|
135861
135871
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135864,16 +135874,16 @@ const __iconNode$3 = [
|
|
135864
135874
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
135865
135875
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
135866
135876
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
135867
|
-
], Menu = createLucideIcon("
|
135877
|
+
], Menu = createLucideIcon("menu", __iconNode$3);
|
135868
135878
|
/**
|
135869
|
-
* @license lucide-react v0.
|
135879
|
+
* @license lucide-react v0.486.0 - ISC
|
135870
135880
|
*
|
135871
135881
|
* This source code is licensed under the ISC license.
|
135872
135882
|
* See the LICENSE file in the root directory of this source tree.
|
135873
135883
|
*/
|
135874
|
-
const __iconNode$2 = [["path", { d: "M5 12h14", key: "1ays0h" }]], Minus = createLucideIcon("
|
135884
|
+
const __iconNode$2 = [["path", { d: "M5 12h14", key: "1ays0h" }]], Minus = createLucideIcon("minus", __iconNode$2);
|
135875
135885
|
/**
|
135876
|
-
* @license lucide-react v0.
|
135886
|
+
* @license lucide-react v0.486.0 - ISC
|
135877
135887
|
*
|
135878
135888
|
* This source code is licensed under the ISC license.
|
135879
135889
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135881,9 +135891,9 @@ const __iconNode$2 = [["path", { d: "M5 12h14", key: "1ays0h" }]], Minus = creat
|
|
135881
135891
|
const __iconNode$1 = [
|
135882
135892
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
135883
135893
|
["path", { d: "M12 5v14", key: "s699le" }]
|
135884
|
-
], Plus = createLucideIcon("
|
135894
|
+
], Plus = createLucideIcon("plus", __iconNode$1);
|
135885
135895
|
/**
|
135886
|
-
* @license lucide-react v0.
|
135896
|
+
* @license lucide-react v0.486.0 - ISC
|
135887
135897
|
*
|
135888
135898
|
* This source code is licensed under the ISC license.
|
135889
135899
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135891,7 +135901,7 @@ const __iconNode$1 = [
|
|
135891
135901
|
const __iconNode = [
|
135892
135902
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
135893
135903
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
135894
|
-
], X = createLucideIcon("
|
135904
|
+
], X = createLucideIcon("x", __iconNode);
|
135895
135905
|
function arrayMove(a, s, c) {
|
135896
135906
|
const u = a.slice();
|
135897
135907
|
return u.splice(c < 0 ? u.length + c : c, 0, u.splice(s, 1)[0]), u;
|
package/dist/index.umd.js
CHANGED
@@ -637,141 +637,141 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
637
637
|
${c}-download,
|
638
638
|
${c}-delete
|
639
639
|
`]:{zIndex:10,width:u,margin:`0 ${unit$1(a.marginXXS)}`,fontSize:u,cursor:"pointer",transition:`all ${a.motionDurationSlow}`,color:d,"&:hover":{color:d},svg:{verticalAlign:"baseline"}}},[`${A}-thumbnail, ${A}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${A}-name`]:{display:"none",textAlign:"center"},[`${A}-file + ${A}-name`]:{position:"absolute",bottom:a.margin,display:"block",width:`calc(100% - ${unit$1(p(a.paddingXS).mul(2).equal())})`},[`${A}-uploading`]:{[`&${A}`]:{backgroundColor:a.colorFillAlter},[`&::before, ${c}-eye, ${c}-download, ${c}-delete`]:{display:"none"}},[`${A}-progress`]:{bottom:a.marginXL,width:`calc(100% - ${unit$1(p(a.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${s}-wrapper${s}-picture-circle-wrapper`]:{[`${s}${s}-select`]:{borderRadius:"50%"}}}},genRtlStyle=a=>{const{componentCls:s}=a;return{[`${s}-rtl`]:{direction:"rtl"}}},genBaseStyle=a=>{const{componentCls:s,colorTextDisabled:c}=a;return{[`${s}-wrapper`]:Object.assign(Object.assign({},resetComponent(a)),{[s]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${s}-select`]:{display:"inline-block"},[`${s}-hidden`]:{display:"none"},[`${s}-disabled`]:{color:c,cursor:"not-allowed"}})}},prepareComponentToken=a=>({actionsColor:a.colorTextDescription}),useStyle=genStyleHooks("Upload",a=>{const{fontSizeHeading3:s,fontHeight:c,lineWidth:u,controlHeightLG:d,calc:p}=a,v=merge(a,{uploadThumbnailSize:p(s).mul(2).equal(),uploadProgressOffset:p(p(c).div(2)).add(u).equal(),uploadPicCardSize:p(d).mul(2.55).equal()});return[genBaseStyle(v),genDraggerStyle(v),genPictureStyle(v),genPictureCardStyle(v),genListStyle(v),genMotionStyle(v),genRtlStyle(v),genCollapseMotion(v)]},prepareComponentToken);function file2Obj(a){return Object.assign(Object.assign({},a),{lastModified:a.lastModified,lastModifiedDate:a.lastModifiedDate,name:a.name,size:a.size,type:a.type,uid:a.uid,percent:0,originFileObj:a})}function updateFileList(a,s){const c=_toConsumableArray$e(s),u=c.findIndex(d=>{let{uid:p}=d;return p===a.uid});return u===-1?c.push(a):c[u]=a,c}function getFileItem(a,s){const c=a.uid!==void 0?"uid":"name";return s.filter(u=>u[c]===a[c])[0]}function removeFileItem(a,s){const c=a.uid!==void 0?"uid":"name",u=s.filter(d=>d[c]!==a[c]);return u.length===s.length?null:u}const extname=function(){const s=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),u=s[s.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(u)||[""])[0]},isImageFileType=a=>a.indexOf("image/")===0,isImageUrl=a=>{if(a.type&&!a.thumbUrl)return isImageFileType(a.type);const s=a.thumbUrl||a.url||"",c=extname(s);return/^data:image\//.test(s)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(c)?!0:!(/^data:/.test(s)||c)},MEASURE_SIZE=200;function previewImage(a){return new Promise(s=>{if(!a.type||!isImageFileType(a.type)){s("");return}const c=document.createElement("canvas");c.width=MEASURE_SIZE,c.height=MEASURE_SIZE,c.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(c);const u=c.getContext("2d"),d=new Image;if(d.onload=()=>{const{width:p,height:v}=d;let A=MEASURE_SIZE,b=MEASURE_SIZE,g=0,x=0;p>v?(b=v*(MEASURE_SIZE/p),x=-(b-A)/2):(A=p*(MEASURE_SIZE/v),g=-(A-b)/2),u.drawImage(d,g,x,A,b);const y=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(d.src),s(y)},d.crossOrigin="anonymous",a.type.startsWith("image/svg+xml")){const p=new FileReader;p.onload=()=>{p.result&&typeof p.result=="string"&&(d.src=p.result)},p.readAsDataURL(a)}else if(a.type.startsWith("image/gif")){const p=new FileReader;p.onload=()=>{p.result&&s(p.result)},p.readAsDataURL(a)}else d.src=window.URL.createObjectURL(a)})}const ListItem=reactExports.forwardRef((a,s)=>{let{prefixCls:c,className:u,style:d,locale:p,listType:v,file:A,items:b,progress:g,iconRender:x,actionIconRender:y,itemRender:f,isImgUrl:m,showPreviewIcon:C,showRemoveIcon:S,showDownloadIcon:w,previewIcon:I,removeIcon:P,downloadIcon:$,extra:_,onPreview:E,onDownload:R,onClose:T}=a;var B,M;const{status:D}=A,[O,H]=reactExports.useState(D);reactExports.useEffect(()=>{D!=="removed"&&H(D)},[D]);const[j,q]=reactExports.useState(!1);reactExports.useEffect(()=>{const ge=setTimeout(()=>{q(!0)},300);return()=>{clearTimeout(ge)}},[]);const L=x(A);let F=reactExports.createElement("div",{className:`${c}-icon`},L);if(v==="picture"||v==="picture-card"||v==="picture-circle")if(O==="uploading"||!A.thumbUrl&&!A.url){const ge=classnames(`${c}-list-item-thumbnail`,{[`${c}-list-item-file`]:O!=="uploading"});F=reactExports.createElement("div",{className:ge},L)}else{const ge=m!=null&&m(A)?reactExports.createElement("img",{src:A.thumbUrl||A.url,alt:A.name,className:`${c}-list-item-image`,crossOrigin:A.crossOrigin}):L,Se=classnames(`${c}-list-item-thumbnail`,{[`${c}-list-item-file`]:m&&!m(A)});F=reactExports.createElement("a",{className:Se,onClick:ve=>E(A,ve),href:A.url||A.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ge)}const U=classnames(`${c}-list-item`,`${c}-list-item-${O}`),N=typeof A.linkProps=="string"?JSON.parse(A.linkProps):A.linkProps,k=(typeof S=="function"?S(A):S)?y((typeof P=="function"?P(A):P)||reactExports.createElement(RefIcon$f,null),()=>T(A),c,p.removeFile,!0):null,W=(typeof w=="function"?w(A):w)&&O==="done"?y((typeof $=="function"?$(A):$)||reactExports.createElement(RefIcon$e,null),()=>R(A),c,p.downloadFile):null,Z=v!=="picture-card"&&v!=="picture-circle"&&reactExports.createElement("span",{key:"download-delete",className:classnames(`${c}-list-item-actions`,{picture:v==="picture"})},W,k),Q=typeof _=="function"?_(A):_,Y=Q&&reactExports.createElement("span",{className:`${c}-list-item-extra`},Q),J=classnames(`${c}-list-item-name`),ee=A.url?reactExports.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:J,title:A.name},N,{href:A.url,onClick:ge=>E(A,ge)}),A.name,Y):reactExports.createElement("span",{key:"view",className:J,onClick:ge=>E(A,ge),title:A.name},A.name,Y),re=(typeof C=="function"?C(A):C)&&(A.url||A.thumbUrl)?reactExports.createElement("a",{href:A.url||A.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ge=>E(A,ge),title:p.previewFile},typeof I=="function"?I(A):I||reactExports.createElement(RefIcon$s,null)):null,ae=(v==="picture-card"||v==="picture-circle")&&O!=="uploading"&&reactExports.createElement("span",{className:`${c}-list-item-actions`},re,O==="done"&&W,k),{getPrefixCls:V}=reactExports.useContext(ConfigContext$1),K=V(),te=reactExports.createElement("div",{className:U},F,ee,Z,ae,j&&reactExports.createElement(CSSMotion,{motionName:`${K}-fade`,visible:O==="uploading",motionDeadline:2e3},ge=>{let{className:Se}=ge;const ve="percent"in A?reactExports.createElement(Progress,Object.assign({},g,{type:"line",percent:A.percent,"aria-label":A["aria-label"],"aria-labelledby":A["aria-labelledby"]})):null;return reactExports.createElement("div",{className:classnames(`${c}-list-item-progress`,Se)},ve)})),ie=A.response&&typeof A.response=="string"?A.response:((B=A.error)===null||B===void 0?void 0:B.statusText)||((M=A.error)===null||M===void 0?void 0:M.message)||p.uploadError,ce=O==="error"?reactExports.createElement(Tooltip,{title:ie,getPopupContainer:ge=>ge.parentNode},te):te;return reactExports.createElement("div",{className:classnames(`${c}-list-item-container`,u),style:d,ref:s},f?f(ce,A,b,{download:R.bind(null,A),preview:E.bind(null,A),remove:T.bind(null,A)}):ce)}),InternalUploadList=(a,s)=>{const{listType:c="text",previewFile:u=previewImage,onPreview:d,onDownload:p,onRemove:v,locale:A,iconRender:b,isImageUrl:g=isImageUrl,prefixCls:x,items:y=[],showPreviewIcon:f=!0,showRemoveIcon:m=!0,showDownloadIcon:C=!1,removeIcon:S,previewIcon:w,downloadIcon:I,extra:P,progress:$={size:[-1,2],showInfo:!1},appendAction:_,appendActionVisible:E=!0,itemRender:R,disabled:T}=a,B=useForceUpdate(),[M,D]=reactExports.useState(!1),O=["picture-card","picture-circle"].includes(c);reactExports.useEffect(()=>{c.startsWith("picture")&&(y||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",u==null||u(Y.originFileObj).then(J=>{Y.thumbUrl=J||"",B()}))})},[c,y,u]),reactExports.useEffect(()=>{D(!0)},[]);const H=(Y,J)=>{if(d)return J==null||J.preventDefault(),d(Y)},j=Y=>{typeof p=="function"?p(Y):Y.url&&window.open(Y.url)},q=Y=>{v==null||v(Y)},L=Y=>{if(b)return b(Y,c);const J=Y.status==="uploading";if(c.startsWith("picture")){const ee=c==="picture"?reactExports.createElement(RefIcon$F,null):A.uploading,re=g!=null&&g(Y)?reactExports.createElement(RefIcon$3,null):reactExports.createElement(RefIcon$a,null);return J?ee:re}return J?reactExports.createElement(RefIcon$F,null):reactExports.createElement(RefIcon$4,null)},F=(Y,J,ee,re,ae)=>{const V={type:"text",size:"small",title:re,onClick:K=>{var te,ie;J(),reactExports.isValidElement(Y)&&((ie=(te=Y.props).onClick)===null||ie===void 0||ie.call(te,K))},className:`${ee}-list-item-action`};return ae&&(V.disabled=T),reactExports.isValidElement(Y)?reactExports.createElement(Button$1,Object.assign({},V,{icon:cloneElement(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):reactExports.createElement(Button$1,Object.assign({},V),reactExports.createElement("span",null,Y))};reactExports.useImperativeHandle(s,()=>({handlePreview:H,handleDownload:j}));const{getPrefixCls:U}=reactExports.useContext(ConfigContext$1),N=U("upload",x),k=U(),W=classnames(`${N}-list`,`${N}-list-${c}`),Z=reactExports.useMemo(()=>omit(initCollapseMotion(k),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[k]),Q=Object.assign(Object.assign({},O?{}:Z),{motionDeadline:2e3,motionName:`${N}-${O?"animate-inline":"animate"}`,keys:_toConsumableArray$e(y.map(Y=>({key:Y.uid,file:Y}))),motionAppear:M});return reactExports.createElement("div",{className:W},reactExports.createElement(CSSMotionList,Object.assign({},Q,{component:!1}),Y=>{let{key:J,file:ee,className:re,style:ae}=Y;return reactExports.createElement(ListItem,{key:J,locale:A,prefixCls:N,className:re,style:ae,file:ee,items:y,progress:$,listType:c,isImgUrl:g,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:C,removeIcon:S,previewIcon:w,downloadIcon:I,extra:P,iconRender:L,actionIconRender:F,itemRender:R,onPreview:H,onDownload:j,onClose:q})}),_&&reactExports.createElement(CSSMotion,Object.assign({},Q,{visible:E,forceRender:!0}),Y=>{let{className:J,style:ee}=Y;return cloneElement(_,re=>({className:classnames(re.className,J),style:Object.assign(Object.assign(Object.assign({},ee),{pointerEvents:J?"none":void 0}),re.style)}))}))},UploadList=reactExports.forwardRef(InternalUploadList);var __awaiter=function(a,s,c,u){function d(p){return p instanceof c?p:new c(function(v){v(p)})}return new(c||(c=Promise))(function(p,v){function A(x){try{g(u.next(x))}catch(y){v(y)}}function b(x){try{g(u.throw(x))}catch(y){v(y)}}function g(x){x.done?p(x.value):d(x.value).then(A,b)}g((u=u.apply(a,[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(a,s)=>{const{fileList:c,defaultFileList:u,onRemove:d,showUploadList:p=!0,listType:v="text",onPreview:A,onDownload:b,onChange:g,onDrop:x,previewFile:y,disabled:f,locale:m,iconRender:C,isImageUrl:S,progress:w,prefixCls:I,className:P,type:$="select",children:_,style:E,itemRender:R,maxCount:T,data:B={},multiple:M=!1,hasControlInside:D=!0,action:O="",accept:H="",supportServerRender:j=!0,rootClassName:q}=a,L=reactExports.useContext(DisabledContext),F=f??L,[U,N]=useMergedState(u||[],{value:c,postState:Ne=>Ne??[]}),[k,W]=reactExports.useState("drop"),Z=reactExports.useRef(null),Q=reactExports.useRef(null);reactExports.useMemo(()=>{const Ne=Date.now();(c||[]).forEach((Me,Fe)=>{!Me.uid&&!Object.isFrozen(Me)&&(Me.uid=`__AUTO__${Ne}_${Fe}__`)})},[c]);const Y=(Ne,Me,Fe)=>{let _e=_toConsumableArray$e(Me),je=!1;T===1?_e=_e.slice(-1):T&&(je=_e.length>T,_e=_e.slice(0,T)),reactDomExports.flushSync(()=>{N(_e)});const Ye={file:Ne,fileList:_e};Fe&&(Ye.event=Fe),(!je||Ne.status==="removed"||_e.some(Te=>Te.uid===Ne.uid))&&reactDomExports.flushSync(()=>{g==null||g(Ye)})},J=(Ne,Me)=>__awaiter(void 0,void 0,void 0,function*(){const{beforeUpload:Fe,transformFile:_e}=a;let je=Ne;if(Fe){const Ye=yield Fe(Ne,Me);if(Ye===!1)return!1;if(delete Ne[LIST_IGNORE],Ye===LIST_IGNORE)return Object.defineProperty(Ne,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof Ye=="object"&&Ye&&(je=Ye)}return _e&&(je=yield _e(je)),je}),ee=Ne=>{const Me=Ne.filter(je=>!je.file[LIST_IGNORE]);if(!Me.length)return;const Fe=Me.map(je=>file2Obj(je.file));let _e=_toConsumableArray$e(U);Fe.forEach(je=>{_e=updateFileList(je,_e)}),Fe.forEach((je,Ye)=>{let Te=je;if(Me[Ye].parsedFile)je.status="uploading";else{const{originFileObj:ke}=je;let De;try{De=new File([ke],ke.name,{type:ke.type})}catch{De=new Blob([ke],{type:ke.type}),De.name=ke.name,De.lastModifiedDate=new Date,De.lastModified=new Date().getTime()}De.uid=je.uid,Te=De}Y(Te,_e)})},re=(Ne,Me,Fe)=>{try{typeof Ne=="string"&&(Ne=JSON.parse(Ne))}catch{}if(!getFileItem(Me,U))return;const _e=file2Obj(Me);_e.status="done",_e.percent=100,_e.response=Ne,_e.xhr=Fe;const je=updateFileList(_e,U);Y(_e,je)},ae=(Ne,Me)=>{if(!getFileItem(Me,U))return;const Fe=file2Obj(Me);Fe.status="uploading",Fe.percent=Ne.percent;const _e=updateFileList(Fe,U);Y(Fe,_e,Ne)},V=(Ne,Me,Fe)=>{if(!getFileItem(Fe,U))return;const _e=file2Obj(Fe);_e.error=Ne,_e.response=Me,_e.status="error";const je=updateFileList(_e,U);Y(_e,je)},K=Ne=>{let Me;Promise.resolve(typeof d=="function"?d(Ne):d).then(Fe=>{var _e;if(Fe===!1)return;const je=removeFileItem(Ne,U);je&&(Me=Object.assign(Object.assign({},Ne),{status:"removed"}),U==null||U.forEach(Ye=>{const Te=Me.uid!==void 0?"uid":"name";Ye[Te]===Me[Te]&&!Object.isFrozen(Ye)&&(Ye.status="removed")}),(_e=Z.current)===null||_e===void 0||_e.abort(Me),Y(Me,je))})},te=Ne=>{W(Ne.type),Ne.type==="drop"&&(x==null||x(Ne))};reactExports.useImperativeHandle(s,()=>({onBatchStart:ee,onSuccess:re,onProgress:ae,onError:V,fileList:U,upload:Z.current,nativeElement:Q.current}));const{getPrefixCls:ie,direction:ce,upload:ge}=reactExports.useContext(ConfigContext$1),Se=ie("upload",I),ve=Object.assign(Object.assign({onBatchStart:ee,onError:V,onProgress:ae,onSuccess:re},a),{data:B,multiple:M,action:O,accept:H,supportServerRender:j,prefixCls:Se,disabled:F,beforeUpload:J,onChange:void 0,hasControlInside:D});delete ve.className,delete ve.style,(!_||F)&&delete ve.id;const me=`${Se}-wrapper`,[fe,se,oe]=useStyle(Se,me),[de]=useLocale$1("Upload",localeValues.Upload),{showRemoveIcon:le,showPreviewIcon:xe,showDownloadIcon:Ce,removeIcon:$e,previewIcon:we,downloadIcon:Ee,extra:Ae}=typeof p=="boolean"?{}:p,pe=typeof le>"u"?!F:le,he=(Ne,Me)=>p?reactExports.createElement(UploadList,{prefixCls:Se,listType:v,items:U,previewFile:y,onPreview:A,onDownload:b,onRemove:K,showRemoveIcon:pe,showPreviewIcon:xe,showDownloadIcon:Ce,removeIcon:$e,previewIcon:we,downloadIcon:Ee,iconRender:C,extra:Ae,locale:Object.assign(Object.assign({},de),m),isImageUrl:S,progress:w,appendAction:Ne,appendActionVisible:Me,itemRender:R,disabled:F}):Ne,Ie=classnames(me,P,q,se,oe,ge==null?void 0:ge.className,{[`${Se}-rtl`]:ce==="rtl",[`${Se}-picture-card-wrapper`]:v==="picture-card",[`${Se}-picture-circle-wrapper`]:v==="picture-circle"}),ye=Object.assign(Object.assign({},ge==null?void 0:ge.style),E);if($==="drag"){const Ne=classnames(se,Se,`${Se}-drag`,{[`${Se}-drag-uploading`]:U.some(Me=>Me.status==="uploading"),[`${Se}-drag-hover`]:k==="dragover",[`${Se}-disabled`]:F,[`${Se}-rtl`]:ce==="rtl"});return fe(reactExports.createElement("span",{className:Ie,ref:Q},reactExports.createElement("div",{className:Ne,style:ye,onDrop:te,onDragOver:te,onDragLeave:te},reactExports.createElement(Upload$2,Object.assign({},ve,{ref:Z,className:`${Se}-btn`}),reactExports.createElement("div",{className:`${Se}-drag-container`},_))),he()))}const Pe=classnames(Se,`${Se}-select`,{[`${Se}-disabled`]:F,[`${Se}-hidden`]:!_}),Le=reactExports.createElement("div",{className:Pe},reactExports.createElement(Upload$2,Object.assign({},ve,{ref:Z})));return fe(v==="picture-card"||v==="picture-circle"?reactExports.createElement("span",{className:Ie,ref:Q},he(Le,!!_)):reactExports.createElement("span",{className:Ie,ref:Q},Le,he()))},Upload$1=reactExports.forwardRef(InternalUpload);var __rest$3=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const Dragger=reactExports.forwardRef((a,s)=>{var{style:c,height:u,hasControlInside:d=!1}=a,p=__rest$3(a,["style","height","hasControlInside"]);return reactExports.createElement(Upload$1,Object.assign({ref:s,hasControlInside:d},p,{type:"drag",style:Object.assign(Object.assign({},c),{height:u})}))}),Upload=Upload$1;Upload.Dragger=Dragger,Upload.LIST_IGNORE=LIST_IGNORE;/**
|
640
|
-
* @license lucide-react v0.
|
640
|
+
* @license lucide-react v0.486.0 - ISC
|
641
641
|
*
|
642
642
|
* This source code is licensed under the ISC license.
|
643
643
|
* See the LICENSE file in the root directory of this source tree.
|
644
|
-
*/const toKebabCase=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mergeClasses=(...a)=>a.filter((s,c,u)=>!!s&&s.trim()!==""&&u.indexOf(s)===c).join(" ").trim();/**
|
645
|
-
* @license lucide-react v0.
|
644
|
+
*/const toKebabCase=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),toCamelCase=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,c,u)=>u?u.toUpperCase():c.toLowerCase()),toPascalCase=a=>{const s=toCamelCase(a);return s.charAt(0).toUpperCase()+s.slice(1)},mergeClasses=(...a)=>a.filter((s,c,u)=>!!s&&s.trim()!==""&&u.indexOf(s)===c).join(" ").trim();/**
|
645
|
+
* @license lucide-react v0.486.0 - ISC
|
646
646
|
*
|
647
647
|
* This source code is licensed under the ISC license.
|
648
648
|
* See the LICENSE file in the root directory of this source tree.
|
649
649
|
*/var defaultAttributes$1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
650
|
-
* @license lucide-react v0.
|
650
|
+
* @license lucide-react v0.486.0 - ISC
|
651
651
|
*
|
652
652
|
* This source code is licensed under the ISC license.
|
653
653
|
* See the LICENSE file in the root directory of this source tree.
|
654
654
|
*/const Icon=reactExports.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:c=2,absoluteStrokeWidth:u,className:d="",children:p,iconNode:v,...A},b)=>reactExports.createElement("svg",{ref:b,...defaultAttributes$1,width:s,height:s,stroke:a,strokeWidth:u?Number(c)*24/Number(s):c,className:mergeClasses("lucide",d),...A},[...v.map(([g,x])=>reactExports.createElement(g,x)),...Array.isArray(p)?p:[p]]));/**
|
655
|
-
* @license lucide-react v0.
|
655
|
+
* @license lucide-react v0.486.0 - ISC
|
656
656
|
*
|
657
657
|
* This source code is licensed under the ISC license.
|
658
658
|
* See the LICENSE file in the root directory of this source tree.
|
659
|
-
*/const createLucideIcon=(a,s)=>{const c=reactExports.forwardRef(({className:u,...d},p)=>reactExports.createElement(Icon,{ref:p,iconNode:s,className:mergeClasses(`lucide-${toKebabCase(a)}`,u),...d}));return c.displayName
|
660
|
-
* @license lucide-react v0.
|
659
|
+
*/const createLucideIcon=(a,s)=>{const c=reactExports.forwardRef(({className:u,...d},p)=>reactExports.createElement(Icon,{ref:p,iconNode:s,className:mergeClasses(`lucide-${toKebabCase(toPascalCase(a))}`,`lucide-${a}`,u),...d}));return c.displayName=toPascalCase(a),c};/**
|
660
|
+
* @license lucide-react v0.486.0 - ISC
|
661
661
|
*
|
662
662
|
* This source code is licensed under the ISC license.
|
663
663
|
* See the LICENSE file in the root directory of this source tree.
|
664
|
-
*/const __iconNode$m=[["path",{d:"
|
665
|
-
* @license lucide-react v0.
|
664
|
+
*/const __iconNode$m=[["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4",key:"11f1s0"}],["path",{d:"M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4",key:"t14dx9"}],["path",{d:"M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1",key:"1w07xs"}],["path",{d:"M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1",key:"1apec2"}]],AlignCenterHorizontal=createLucideIcon("align-center-horizontal",__iconNode$m);/**
|
665
|
+
* @license lucide-react v0.486.0 - ISC
|
666
666
|
*
|
667
667
|
* This source code is licensed under the ISC license.
|
668
668
|
* See the LICENSE file in the root directory of this source tree.
|
669
|
-
*/const __iconNode$l=[["path",{d:"
|
670
|
-
* @license lucide-react v0.
|
669
|
+
*/const __iconNode$l=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]],AlignCenterVertical=createLucideIcon("align-center-vertical",__iconNode$l);/**
|
670
|
+
* @license lucide-react v0.486.0 - ISC
|
671
671
|
*
|
672
672
|
* This source code is licensed under the ISC license.
|
673
673
|
* See the LICENSE file in the root directory of this source tree.
|
674
|
-
*/const __iconNode$k=[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]],AlignEndHorizontal=createLucideIcon("
|
675
|
-
* @license lucide-react v0.
|
674
|
+
*/const __iconNode$k=[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]],AlignEndHorizontal=createLucideIcon("align-end-horizontal",__iconNode$k);/**
|
675
|
+
* @license lucide-react v0.486.0 - ISC
|
676
676
|
*
|
677
677
|
* This source code is licensed under the ISC license.
|
678
678
|
* See the LICENSE file in the root directory of this source tree.
|
679
|
-
*/const __iconNode$j=[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]],AlignEndVertical=createLucideIcon("
|
680
|
-
* @license lucide-react v0.
|
679
|
+
*/const __iconNode$j=[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]],AlignEndVertical=createLucideIcon("align-end-vertical",__iconNode$j);/**
|
680
|
+
* @license lucide-react v0.486.0 - ISC
|
681
681
|
*
|
682
682
|
* This source code is licensed under the ISC license.
|
683
683
|
* See the LICENSE file in the root directory of this source tree.
|
684
|
-
*/const __iconNode$i=[["rect",{width:"6",height:"10",x:"9",y:"7",rx:"2",key:"yn7j0q"}],["path",{d:"M4 22V2",key:"tsjzd3"}],["path",{d:"M20 22V2",key:"1bnhr8"}]],AlignHorizontalSpaceAround=createLucideIcon("
|
685
|
-
* @license lucide-react v0.
|
684
|
+
*/const __iconNode$i=[["rect",{width:"6",height:"10",x:"9",y:"7",rx:"2",key:"yn7j0q"}],["path",{d:"M4 22V2",key:"tsjzd3"}],["path",{d:"M20 22V2",key:"1bnhr8"}]],AlignHorizontalSpaceAround=createLucideIcon("align-horizontal-space-around",__iconNode$i);/**
|
685
|
+
* @license lucide-react v0.486.0 - ISC
|
686
686
|
*
|
687
687
|
* This source code is licensed under the ISC license.
|
688
688
|
* See the LICENSE file in the root directory of this source tree.
|
689
|
-
*/const __iconNode$h=[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]],AlignStartHorizontal=createLucideIcon("
|
690
|
-
* @license lucide-react v0.
|
689
|
+
*/const __iconNode$h=[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]],AlignStartHorizontal=createLucideIcon("align-start-horizontal",__iconNode$h);/**
|
690
|
+
* @license lucide-react v0.486.0 - ISC
|
691
691
|
*
|
692
692
|
* This source code is licensed under the ISC license.
|
693
693
|
* See the LICENSE file in the root directory of this source tree.
|
694
|
-
*/const __iconNode$g=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],AlignStartVertical=createLucideIcon("
|
695
|
-
* @license lucide-react v0.
|
694
|
+
*/const __iconNode$g=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],AlignStartVertical=createLucideIcon("align-start-vertical",__iconNode$g);/**
|
695
|
+
* @license lucide-react v0.486.0 - ISC
|
696
696
|
*
|
697
697
|
* This source code is licensed under the ISC license.
|
698
698
|
* See the LICENSE file in the root directory of this source tree.
|
699
|
-
*/const __iconNode$f=[["rect",{width:"10",height:"6",x:"7",y:"9",rx:"2",key:"b1zbii"}],["path",{d:"M22 20H2",key:"1p1f7z"}],["path",{d:"M22 4H2",key:"1b7qnq"}]],AlignVerticalSpaceAround=createLucideIcon("
|
700
|
-
* @license lucide-react v0.
|
699
|
+
*/const __iconNode$f=[["rect",{width:"10",height:"6",x:"7",y:"9",rx:"2",key:"b1zbii"}],["path",{d:"M22 20H2",key:"1p1f7z"}],["path",{d:"M22 4H2",key:"1b7qnq"}]],AlignVerticalSpaceAround=createLucideIcon("align-vertical-space-around",__iconNode$f);/**
|
700
|
+
* @license lucide-react v0.486.0 - ISC
|
701
701
|
*
|
702
702
|
* This source code is licensed under the ISC license.
|
703
703
|
* See the LICENSE file in the root directory of this source tree.
|
704
|
-
*/const __iconNode$e=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ArrowLeft=createLucideIcon("
|
705
|
-
* @license lucide-react v0.
|
704
|
+
*/const __iconNode$e=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ArrowLeft=createLucideIcon("arrow-left",__iconNode$e);/**
|
705
|
+
* @license lucide-react v0.486.0 - ISC
|
706
706
|
*
|
707
707
|
* This source code is licensed under the ISC license.
|
708
708
|
* See the LICENSE file in the root directory of this source tree.
|
709
|
-
*/const __iconNode$d=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ArrowRight=createLucideIcon("
|
710
|
-
* @license lucide-react v0.
|
709
|
+
*/const __iconNode$d=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ArrowRight=createLucideIcon("arrow-right",__iconNode$d);/**
|
710
|
+
* @license lucide-react v0.486.0 - ISC
|
711
711
|
*
|
712
712
|
* This source code is licensed under the ISC license.
|
713
713
|
* See the LICENSE file in the root directory of this source tree.
|
714
|
-
*/const __iconNode$c=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ChevronLeft=createLucideIcon("
|
715
|
-
* @license lucide-react v0.
|
714
|
+
*/const __iconNode$c=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ChevronLeft=createLucideIcon("chevron-left",__iconNode$c);/**
|
715
|
+
* @license lucide-react v0.486.0 - ISC
|
716
716
|
*
|
717
717
|
* This source code is licensed under the ISC license.
|
718
718
|
* See the LICENSE file in the root directory of this source tree.
|
719
|
-
*/const __iconNode$b=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ChevronRight=createLucideIcon("
|
720
|
-
* @license lucide-react v0.
|
719
|
+
*/const __iconNode$b=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ChevronRight=createLucideIcon("chevron-right",__iconNode$b);/**
|
720
|
+
* @license lucide-react v0.486.0 - ISC
|
721
721
|
*
|
722
722
|
* This source code is licensed under the ISC license.
|
723
723
|
* See the LICENSE file in the root directory of this source tree.
|
724
|
-
*/const __iconNode$a=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],ChevronsLeft=createLucideIcon("
|
725
|
-
* @license lucide-react v0.
|
724
|
+
*/const __iconNode$a=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],ChevronsLeft=createLucideIcon("chevrons-left",__iconNode$a);/**
|
725
|
+
* @license lucide-react v0.486.0 - ISC
|
726
726
|
*
|
727
727
|
* This source code is licensed under the ISC license.
|
728
728
|
* See the LICENSE file in the root directory of this source tree.
|
729
|
-
*/const __iconNode$9=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],ChevronsRight=createLucideIcon("
|
730
|
-
* @license lucide-react v0.
|
729
|
+
*/const __iconNode$9=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],ChevronsRight=createLucideIcon("chevrons-right",__iconNode$9);/**
|
730
|
+
* @license lucide-react v0.486.0 - ISC
|
731
731
|
*
|
732
732
|
* This source code is licensed under the ISC license.
|
733
733
|
* See the LICENSE file in the root directory of this source tree.
|
734
|
-
*/const __iconNode$8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],CircleAlert=createLucideIcon("
|
735
|
-
* @license lucide-react v0.
|
734
|
+
*/const __iconNode$8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],CircleAlert=createLucideIcon("circle-alert",__iconNode$8);/**
|
735
|
+
* @license lucide-react v0.486.0 - ISC
|
736
736
|
*
|
737
737
|
* This source code is licensed under the ISC license.
|
738
738
|
* See the LICENSE file in the root directory of this source tree.
|
739
|
-
*/const __iconNode$7=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Ellipsis=createLucideIcon("
|
740
|
-
* @license lucide-react v0.
|
739
|
+
*/const __iconNode$7=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Ellipsis=createLucideIcon("ellipsis",__iconNode$7);/**
|
740
|
+
* @license lucide-react v0.486.0 - ISC
|
741
741
|
*
|
742
742
|
* This source code is licensed under the ISC license.
|
743
743
|
* See the LICENSE file in the root directory of this source tree.
|
744
|
-
*/const __iconNode$6=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],GripVertical=createLucideIcon("
|
745
|
-
* @license lucide-react v0.
|
744
|
+
*/const __iconNode$6=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],GripVertical=createLucideIcon("grip-vertical",__iconNode$6);/**
|
745
|
+
* @license lucide-react v0.486.0 - ISC
|
746
746
|
*
|
747
747
|
* This source code is licensed under the ISC license.
|
748
748
|
* See the LICENSE file in the root directory of this source tree.
|
749
|
-
*/const __iconNode$5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LoaderCircle=createLucideIcon("
|
750
|
-
* @license lucide-react v0.
|
749
|
+
*/const __iconNode$5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LoaderCircle=createLucideIcon("loader-circle",__iconNode$5);/**
|
750
|
+
* @license lucide-react v0.486.0 - ISC
|
751
751
|
*
|
752
752
|
* This source code is licensed under the ISC license.
|
753
753
|
* See the LICENSE file in the root directory of this source tree.
|
754
|
-
*/const __iconNode$4=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Lock=createLucideIcon("
|
755
|
-
* @license lucide-react v0.
|
754
|
+
*/const __iconNode$4=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Lock=createLucideIcon("lock",__iconNode$4);/**
|
755
|
+
* @license lucide-react v0.486.0 - ISC
|
756
756
|
*
|
757
757
|
* This source code is licensed under the ISC license.
|
758
758
|
* See the LICENSE file in the root directory of this source tree.
|
759
|
-
*/const __iconNode$3=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Menu=createLucideIcon("
|
760
|
-
* @license lucide-react v0.
|
759
|
+
*/const __iconNode$3=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Menu=createLucideIcon("menu",__iconNode$3);/**
|
760
|
+
* @license lucide-react v0.486.0 - ISC
|
761
761
|
*
|
762
762
|
* This source code is licensed under the ISC license.
|
763
763
|
* See the LICENSE file in the root directory of this source tree.
|
764
|
-
*/const __iconNode$2=[["path",{d:"M5 12h14",key:"1ays0h"}]],Minus=createLucideIcon("
|
765
|
-
* @license lucide-react v0.
|
764
|
+
*/const __iconNode$2=[["path",{d:"M5 12h14",key:"1ays0h"}]],Minus=createLucideIcon("minus",__iconNode$2);/**
|
765
|
+
* @license lucide-react v0.486.0 - ISC
|
766
766
|
*
|
767
767
|
* This source code is licensed under the ISC license.
|
768
768
|
* See the LICENSE file in the root directory of this source tree.
|
769
|
-
*/const __iconNode$1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Plus=createLucideIcon("
|
770
|
-
* @license lucide-react v0.
|
769
|
+
*/const __iconNode$1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Plus=createLucideIcon("plus",__iconNode$1);/**
|
770
|
+
* @license lucide-react v0.486.0 - ISC
|
771
771
|
*
|
772
772
|
* This source code is licensed under the ISC license.
|
773
773
|
* See the LICENSE file in the root directory of this source tree.
|
774
|
-
*/const __iconNode=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],X=createLucideIcon("X",__iconNode);function arrayMove(a,s,c){const u=a.slice();return u.splice(c<0?u.length+c:c,0,u.splice(s,1)[0]),u}function getSortedRects(a,s){return a.reduce((c,u,d)=>{const p=s.get(u);return p&&(c[d]=p),c},Array(a.length))}function isValidIndex(a){return a!==null&&a>=0}function itemsEqual(a,s){if(a===s)return!0;if(a.length!==s.length)return!1;for(let c=0;c<a.length;c++)if(a[c]!==s[c])return!1;return!0}function normalizeDisabled(a){return typeof a=="boolean"?{draggable:a,droppable:a}:a}const rectSortingStrategy=a=>{let{rects:s,activeIndex:c,overIndex:u,index:d}=a;const p=arrayMove(s,u,c),v=s[d],A=p[d];return!A||!v?null:{x:A.left-v.left,y:A.top-v.top,scaleX:A.width/v.width,scaleY:A.height/v.height}},defaultScale$1={scaleX:1,scaleY:1},verticalListSortingStrategy=a=>{var s;let{activeIndex:c,activeNodeRect:u,index:d,rects:p,overIndex:v}=a;const A=(s=p[c])!=null?s:u;if(!A)return null;if(d===c){const g=p[v];return g?{x:0,y:c<v?g.top+g.height-(A.top+A.height):g.top-A.top,...defaultScale$1}:null}const b=getItemGap$1(p,d,c);return d>c&&d<=v?{x:0,y:-A.height-b,...defaultScale$1}:d<c&&d>=v?{x:0,y:A.height+b,...defaultScale$1}:{x:0,y:0,...defaultScale$1}};function getItemGap$1(a,s,c){const u=a[s],d=a[s-1],p=a[s+1];return u?c<s?d?u.top-(d.top+d.height):p?p.top-(u.top+u.height):0:p?p.top-(u.top+u.height):d?u.top-(d.top+d.height):0:0}const ID_PREFIX="Sortable",Context$1=React.createContext({activeIndex:-1,containerId:ID_PREFIX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:rectSortingStrategy,disabled:{draggable:!1,droppable:!1}});function SortableContext(a){let{children:s,id:c,items:u,strategy:d=rectSortingStrategy,disabled:p=!1}=a;const{active:v,dragOverlay:A,droppableRects:b,over:g,measureDroppableContainers:x}=useDndContext(),y=useUniqueId(ID_PREFIX,c),f=A.rect!==null,m=reactExports.useMemo(()=>u.map(R=>typeof R=="object"&&"id"in R?R.id:R),[u]),C=v!=null,S=v?m.indexOf(v.id):-1,w=g?m.indexOf(g.id):-1,I=reactExports.useRef(m),P=!itemsEqual(m,I.current),$=w!==-1&&S===-1||P,_=normalizeDisabled(p);useIsomorphicLayoutEffect$1(()=>{P&&C&&x(m)},[P,m,C,x]),reactExports.useEffect(()=>{I.current=m},[m]);const E=reactExports.useMemo(()=>({activeIndex:S,containerId:y,disabled:_,disableTransforms:$,items:m,overIndex:w,useDragOverlay:f,sortedRects:getSortedRects(m,b),strategy:d}),[S,y,_.draggable,_.droppable,$,m,w,b,f,d]);return React.createElement(Context$1.Provider,{value:E},s)}const defaultNewIndexGetter=a=>{let{id:s,items:c,activeIndex:u,overIndex:d}=a;return arrayMove(c,u,d).indexOf(s)},defaultAnimateLayoutChanges=a=>{let{containerId:s,isSorting:c,wasDragging:u,index:d,items:p,newIndex:v,previousItems:A,previousContainerId:b,transition:g}=a;return!g||!u||A!==p&&d===v?!1:c?!0:v!==d&&s===b},defaultTransition={duration:200,easing:"ease"},transitionProperty="transform",disabledTransition=CSS$1.Transition.toString({property:transitionProperty,duration:0,easing:"linear"}),defaultAttributes={roleDescription:"sortable"};function useDerivedTransform(a){let{disabled:s,index:c,node:u,rect:d}=a;const[p,v]=reactExports.useState(null),A=reactExports.useRef(c);return useIsomorphicLayoutEffect$1(()=>{if(!s&&c!==A.current&&u.current){const b=d.current;if(b){const g=getClientRect$1(u.current,{ignoreTransform:!0}),x={x:b.left-g.left,y:b.top-g.top,scaleX:b.width/g.width,scaleY:b.height/g.height};(x.x||x.y)&&v(x)}}c!==A.current&&(A.current=c)},[s,c,u,d]),reactExports.useEffect(()=>{p&&v(null)},[p]),p}function useSortable(a){let{animateLayoutChanges:s=defaultAnimateLayoutChanges,attributes:c,disabled:u,data:d,getNewIndex:p=defaultNewIndexGetter,id:v,strategy:A,resizeObserverConfig:b,transition:g=defaultTransition}=a;const{items:x,containerId:y,activeIndex:f,disabled:m,disableTransforms:C,sortedRects:S,overIndex:w,useDragOverlay:I,strategy:P}=reactExports.useContext(Context$1),$=normalizeLocalDisabled(u,m),_=x.indexOf(v),E=reactExports.useMemo(()=>({sortable:{containerId:y,index:_,items:x},...d}),[y,d,_,x]),R=reactExports.useMemo(()=>x.slice(x.indexOf(v)),[x,v]),{rect:T,node:B,isOver:M,setNodeRef:D}=useDroppable({id:v,data:E,disabled:$.droppable,resizeObserverConfig:{updateMeasurementsFor:R,...b}}),{active:O,activatorEvent:H,activeNodeRect:j,attributes:q,setNodeRef:L,listeners:F,isDragging:U,over:N,setActivatorNodeRef:k,transform:W}=useDraggable({id:v,data:E,attributes:{...defaultAttributes,...c},disabled:$.draggable}),Z=useCombinedRefs(D,L),Q=!!O,Y=Q&&!C&&isValidIndex(f)&&isValidIndex(w),J=!I&&U,ee=J&&Y?W:null,ae=Y?ee??(A??P)({rects:S,activeNodeRect:j,activeIndex:f,overIndex:w,index:_}):null,V=isValidIndex(f)&&isValidIndex(w)?p({id:v,items:x,activeIndex:f,overIndex:w}):_,K=O==null?void 0:O.id,te=reactExports.useRef({activeId:K,items:x,newIndex:V,containerId:y}),ie=x!==te.current.items,ce=s({active:O,containerId:y,isDragging:U,isSorting:Q,id:v,index:_,items:x,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:g,wasDragging:te.current.activeId!=null}),ge=useDerivedTransform({disabled:!ce,index:_,node:B,rect:T});return reactExports.useEffect(()=>{Q&&te.current.newIndex!==V&&(te.current.newIndex=V),y!==te.current.containerId&&(te.current.containerId=y),x!==te.current.items&&(te.current.items=x)},[Q,V,y,x]),reactExports.useEffect(()=>{if(K===te.current.activeId)return;if(K!=null&&te.current.activeId==null){te.current.activeId=K;return}const ve=setTimeout(()=>{te.current.activeId=K},50);return()=>clearTimeout(ve)},[K]),{active:O,activeIndex:f,attributes:q,data:E,rect:T,index:_,newIndex:V,items:x,isOver:M,isSorting:Q,isDragging:U,listeners:F,node:B,overIndex:w,over:N,setNodeRef:Z,setActivatorNodeRef:k,setDroppableNodeRef:D,setDraggableNodeRef:L,transform:ge??ae,transition:Se()};function Se(){if(ge||ie&&te.current.newIndex===_)return disabledTransition;if(!(J&&!isKeyboardEvent(H)||!g)&&(Q||ce))return CSS$1.Transition.toString({...g,property:transitionProperty})}}function normalizeLocalDisabled(a,s){var c,u;return typeof a=="boolean"?{draggable:a,droppable:!1}:{draggable:(c=a==null?void 0:a.draggable)!=null?c:s.draggable,droppable:(u=a==null?void 0:a.droppable)!=null?u:s.droppable}}function hasSortableData(a){if(!a)return!1;const s=a.data.current;return!!(s&&"sortable"in s&&typeof s.sortable=="object"&&"containerId"in s.sortable&&"items"in s.sortable&&"index"in s.sortable)}const directions=[KeyboardCode.Down,KeyboardCode.Right,KeyboardCode.Up,KeyboardCode.Left],sortableKeyboardCoordinates=(a,s)=>{let{context:{active:c,collisionRect:u,droppableRects:d,droppableContainers:p,over:v,scrollableAncestors:A}}=s;if(directions.includes(a.code)){if(a.preventDefault(),!c||!u)return;const b=[];p.getEnabled().forEach(y=>{if(!y||y!=null&&y.disabled)return;const f=d.get(y.id);if(f)switch(a.code){case KeyboardCode.Down:u.top<f.top&&b.push(y);break;case KeyboardCode.Up:u.top>f.top&&b.push(y);break;case KeyboardCode.Left:u.left>f.left&&b.push(y);break;case KeyboardCode.Right:u.left<f.left&&b.push(y);break}});const g=closestCorners({collisionRect:u,droppableRects:d,droppableContainers:b});let x=getFirstCollision(g,"id");if(x===(v==null?void 0:v.id)&&g.length>1&&(x=g[1].id),x!=null){const y=p.get(c.id),f=p.get(x),m=f?d.get(f.id):null,C=f==null?void 0:f.node.current;if(C&&m&&y&&f){const w=getScrollableAncestors(C).some((R,T)=>A[T]!==R),I=isSameContainer(y,f),P=isAfter(y,f),$=w||!I?{x:0,y:0}:{x:P?u.width-m.width:0,y:P?u.height-m.height:0},_={x:m.left,y:m.top};return $.x&&$.y?_:subtract(_,$)}}}};function isSameContainer(a,s){return!hasSortableData(a)||!hasSortableData(s)?!1:a.data.current.sortable.containerId===s.data.current.sortable.containerId}function isAfter(a,s){return!hasSortableData(a)||!hasSortableData(s)||!isSameContainer(a,s)?!1:a.data.current.sortable.index<s.data.current.sortable.index}const{Text:Text$4}=Typography,Item=React.memo(React.forwardRef(function a({icon:s,value:c,status:u,title:d,required:p,readOnly:v,style:A,dragOverlay:b,onClick:g,onMouseEnter:x,onMouseLeave:y,dragging:f,fadeIn:m,listeners:C,sorting:S,transition:w,transform:I,...P},$){const _=reactExports.useContext(I18nContext);reactExports.useEffect(()=>{if(b)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[b]);const{x:E,y:R,scaleX:T,scaleY:B}=I||{x:0,y:0,scaleX:1,scaleY:1};return jsxRuntimeExports.jsx("li",{style:{marginTop:10,transition:w,transform:`translate(${E}px, ${R}px) scale(${T}, ${B})`},onMouseEnter:x,onMouseLeave:y,ref:$,children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",gap:"0.5rem",...A},...P,onClick:()=>g&&g(),children:[jsxRuntimeExports.jsx(Button$1,{...C,style:{display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none",paddingLeft:"0.25rem"},icon:jsxRuntimeExports.jsx(GripVertical,{size:15,style:{cursor:"grab"}})}),s,jsxRuntimeExports.jsx(Text$4,{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%"},title:d||"",children:u===void 0?c:jsxRuntimeExports.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[jsxRuntimeExports.jsx(CircleAlert,{size:15,style:{marginRight:"0.25rem"}}),u==="is-warning"?_("noKeyName"):c,u==="is-danger"?_("notUniq"):""]})}),v&&jsxRuntimeExports.jsx(Lock,{size:15,style:{marginRight:"0.5rem"}}),p&&jsxRuntimeExports.jsx("span",{style:{color:"red",marginRight:"0.5rem"},children:"*"})]})})}));Item.displayName="Item";const usePrevious=a=>{const s=reactExports.useRef(null);return reactExports.useEffect(()=>{s.current=a}),s.current},getScale=(a,s)=>Math.floor((a/s>1?1:a/s)*100)/100,useUIPreProcessor=({template:a,size:s,zoomLevel:c,maxZoom:u})=>{const[d,p]=reactExports.useState([]),[v,A]=reactExports.useState([]),[b,g]=reactExports.useState(0),[x,y]=reactExports.useState(null),f=async m=>{const{template:{basePdf:C,schemas:S},size:w}=m;let I,P,$,_;if(isBlankPdf(C)){const{width:R,height:T}=C;I=R*ZOOM,P=T*ZOOM,$=S.map(()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII="),_=S.map(()=>({width:R,height:T}))}else{const R=await getB64BasePdf(C),T=b64toUint8Array(R),B=new ArrayBuffer(T.byteLength);new Uint8Array(B).set(T);const[M,D]=await Promise.all([pdf2size(B),pdf2img(B.slice(),{scale:u})]);_=M,I=_[0].width*ZOOM,P=_[0].height*ZOOM,$=D.map(arrayBufferToBase64)}const E=Math.min(getScale(w.width,I),getScale(w.height-RULER_HEIGHT,P));return{backgrounds:$,pageSizes:_,scale:E}};return reactExports.useEffect(()=>{f({template:a,size:s}).then(({pageSizes:m,scale:C,backgrounds:S})=>{A(m),g(C),p(S)}).catch(m=>{y(m),console.error("[@pdfme/ui]",m)})},[a,s]),{backgrounds:d,pageSizes:v,scale:b*c,error:x,refresh:m=>f({template:m,size:s}).then(({pageSizes:C,scale:S,backgrounds:w})=>{A(C),g(S),p(w)})}},useScrollPageCursor=({ref:a,pageSizes:s,scale:c,pageCursor:u,onChangePageCursor:d})=>{const p=reactExports.useCallback(()=>{if(!s[0]||!a.current)return;const v=a.current.scrollTop,{top:A}=a.current.getBoundingClientRect(),b=s.reduce((x,y,f)=>{let m=(y.height*ZOOM+RULER_HEIGHT)*c;return f===0?m+=A-m/2:m+=x[f-1],x.concat(m)},[]);let g=0;b.forEach((x,y)=>{v>x&&(g=y+1>=b.length?b.length-1:y+1)}),g!==u&&d(g)},[d,u,s,a,c]);reactExports.useEffect(()=>{var v;return(v=a.current)==null||v.addEventListener("scroll",p),()=>{var A;(A=a.current)==null||A.removeEventListener("scroll",p)}},[a,p])},useMountStatus=()=>{const[a,s]=reactExports.useState(!1);return reactExports.useEffect(()=>{const c=setTimeout(()=>s(!0),500);return()=>clearTimeout(c)},[]),a},useInitEvents=({pageCursor:a,pageSizes:s,activeElements:c,template:u,schemasList:d,changeSchemas:p,commitSchemas:v,removeSchemas:A,onSaveTemplate:b,past:g,future:x,setSchemasList:y,onEdit:f,onEditEnd:m})=>{const C=reactExports.useRef(null),S=reactExports.useCallback(()=>{const I=()=>{const $=c.map(_=>_.id);return d[a].filter(_=>$.includes(_.id))},P=$=>{const _=$==="undo",E=_?g:x;if(E.current.length<=0)return;(_?x:g).current.push(cloneDeep$1(d[a]));const R=cloneDeep$1(d);R[a]=E.current.pop(),y(R)};initShortCuts({move:($,_)=>{const E=s[a],R=I(),T=moveCommandToChangeSchemasArg({command:$,activeSchemas:R,pageSize:E,isShift:_});p(T)},copy:()=>{const $=I();$.length!==0&&(C.current=$)},paste:()=>{if(!C.current||C.current.length===0)return;const $=d[a],_=[],E=C.current.map(R=>{const T=uuid$6(),B=getUniqueSchemaName({copiedSchemaName:R.name,schema:$,stackUniqueSchemaNames:_}),{height:M,width:D,position:O}=R,H=s[a],j={x:O.x+10>H.width-D?H.width-D:O.x+10,y:O.y+10>H.height-M?H.height-M:O.y+10};return Object.assign(cloneDeep$1(R),{id:T,name:B,position:j})});v(d[a].concat(E)),f(E.map(R=>document.getElementById(R.id))),C.current=E},redo:()=>P("redo"),undo:()=>P("undo"),save:()=>b&&b(schemasList2template(d,u.basePdf)),remove:()=>A(I().map($=>$.id)),esc:m,selectAll:()=>f(d[a].map($=>document.getElementById($.id)))})},[u,c,a,s,p,v,d,b,A,g,x,y,C,f,m]),w=reactExports.useCallback(()=>{destroyShortCuts()},[]);reactExports.useEffect(()=>(S(),w),[S,w])},getWithModifiedSize=(a,s,c,u)=>{const p=new DOMParser().parseFromString(a,"text/html"),v=A=>{(A.tagName==="SVG"||A.tagName==="svg")&&(A.setAttribute("width",c.toString()),A.setAttribute("height",c.toString())),Array.from(A.children).forEach(b=>v(b))};return Array.from(p.body.children).forEach(A=>v(A)),jsxRuntimeExports.jsx("div",{style:u,title:s,dangerouslySetInnerHTML:{__html:p.body.innerHTML}})},PluginIcon=a=>{var x;const{plugin:s,label:c,size:u,styles:d}=a,{token:p}=theme.useToken(),v=reactExports.useContext(OptionsContext),A=s.propPanel&&typeof s.propPanel=="object"&&s.propPanel.defaultSchema&&typeof s.propPanel.defaultSchema=="object"&&"type"in s.propPanel.defaultSchema&&typeof s.propPanel.defaultSchema.type=="string"?s.propPanel.defaultSchema.type:"",b=((x=v.icons)==null?void 0:x[A])??s.icon,g={...d,color:p.colorText,display:"flex",justifyContent:"center"};return b?u?getWithModifiedSize(b,c,u,g):jsxRuntimeExports.jsx("div",{style:g,title:c,dangerouslySetInnerHTML:{__html:b}}):jsxRuntimeExports.jsx("div",{style:{...d,overflow:"hidden",fontSize:10},title:c,children:c})},SelectableSortableItem=({isSelected:a,style:s,onSelect:c,onEdit:u,schema:d,schemas:p,onMouseEnter:v,onMouseLeave:A})=>{const{token:b}=theme.useToken(),g=reactExports.useContext(I18nContext),x=reactExports.useContext(PluginsRegistry),{setNodeRef:y,listeners:f,isDragging:m,isSorting:C,transform:S,transition:w}=useSortable({id:d.id}),I=useMountStatus(),P=m&&!I,$={...f,onClick:O=>c(d.id,O.shiftKey)},_=typeof d.type=="string"?d.type:"",E=Object.entries(x).find(([,O])=>{if(!O||typeof O!="object"||!O.propPanel||typeof O.propPanel!="object"||!O.propPanel.defaultSchema||typeof O.propPanel.defaultSchema!="object")return!1;const H=O.propPanel.defaultSchema;return"type"in H&&typeof H.type=="string"&&H.type===_}),[R,T]=E||["",void 0];let B;d.name?p.find(O=>d.name&&O.name===d.name&&O.id!==d.id)&&(B="is-danger"):B="is-warning";let M=g("edit");B==="is-warning"?M=g("plsInputName"):B==="is-danger"&&(M=g("fieldMustUniq"));const D=a?{background:b.colorPrimary,opacity:C||m?.5:1}:{};return jsxRuntimeExports.jsx(Item,{ref:y,onMouseEnter:v,onMouseLeave:A,onClick:()=>u(d.id),icon:T&&jsxRuntimeExports.jsx(PluginIcon,{plugin:T,label:R,size:20}),value:d.name,status:B,title:M,required:d.required,readOnly:d.readOnly,style:{...D,...s},dragging:m,sorting:C,transition:w,transform:S,fadeIn:P,listeners:$})},SelectableSortableContainer=a=>{const{token:s}=theme.useToken(),{schemas:c,onEdit:u,onSortEnd:d,hoveringSchemaId:p,onChangeHoveringSchemaId:v}=a,[A,b]=reactExports.useState([]),[g,x]=reactExports.useState(null),[y,f]=reactExports.useState(null),m=reactExports.useContext(PluginsRegistry),C=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:15}}),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates})),S=P=>A.map($=>$.id).includes(P),w=(P,$)=>{if($)if(S(P)){const _=A.filter(E=>E.id!==P);b(_)}else{const _=c.find(R=>R.id===P),E=A.concat(_);b(E)}else b([])},I=P=>{const $=typeof P=="string"?c.find(B=>B.id===P):P;if(!$)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const _=typeof $.type=="string"?$.type:"",E=Object.entries(m).find(([,B])=>{if(!B||typeof B!="object"||!B.propPanel||typeof B.propPanel!="object"||!B.propPanel.defaultSchema||typeof B.propPanel.defaultSchema!="object")return!1;const M=B.propPanel.defaultSchema;return"type"in M&&typeof M.type=="string"&&M.type===_}),[R,T]=E||["",void 0];return T?jsxRuntimeExports.jsx(PluginIcon,{plugin:T,label:R,size:20,styles:{marginRight:"0.5rem"}}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})};return jsxRuntimeExports.jsx(DndContext,{sensors:C,collisionDetection:closestCorners,onDragStart:({active:P})=>{f(String(P.id)),x(c),S(String(P.id))?A.length>0&&d(A.reduce(($,_)=>_.id===String(P.id)?$:$.filter(E=>E!==_),c)):b([])},onDragEnd:({active:P,over:$})=>{const _=($==null?void 0:$.id)||"",E=c.map(T=>T.id).indexOf(String(P.id)),R=c.map(T=>T.id).indexOf(String(_));if(A.length){let T=[...c];T=arrayMove(T,E,R),T.splice(R+1,0,...A.filter(B=>B.id!==y)),d(T),b([])}else E!==R&&d(arrayMove(c,E,R));f(null)},onDragCancel:()=>{g&&d(g),f(null),x(null)},children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{style:{height:"100%",overflowY:"auto"},children:jsxRuntimeExports.jsx(SortableContext,{items:c,strategy:verticalListSortingStrategy,children:jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none",borderRadius:5},children:c.map(P=>jsxRuntimeExports.jsx(SelectableSortableItem,{style:{border:`1px solid ${P.id===p?s.colorPrimary:"transparent"}`},schema:P,schemas:c,isSelected:S(P.id)||y===P.id,onEdit:u,onSelect:w,onMouseEnter:()=>v(P.id),onMouseLeave:()=>v(null)},P.id))})})}),reactDomExports.createPortal(jsxRuntimeExports.jsx(DragOverlay,{adjustScale:!0,children:y?(()=>{const P=c.find($=>$.id===y);return P?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:jsxRuntimeExports.jsx(Item,{icon:I(y),value:P.name,required:P.required,readOnly:P.readOnly,style:{background:s.colorPrimary},dragOverlay:!0})}),jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:A.filter($=>$.id!==y).map($=>jsxRuntimeExports.jsx(Item,{icon:I($),value:$.name,required:$.required,readOnly:$.readOnly,style:{background:s.colorPrimary},dragOverlay:!0},$.id))})]}):null})():null}),document.body)]})})},{Text:Text$3}=Typography,{TextArea:TextArea$2}=Input$1,headHeight=40,ListView=a=>{const{schemas:s,onSortEnd:c,onEdit:u,size:d,hoveringSchemaId:p,onChangeHoveringSchemaId:v,changeSchemas:A}=a,{token:b}=theme.useToken(),g=reactExports.useContext(I18nContext),[x,y]=reactExports.useState(!1),[f,m]=reactExports.useState(""),C=getSidebarContentHeight(d.height),S=()=>{const I=f.split(`
|
774
|
+
*/const __iconNode=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],X=createLucideIcon("x",__iconNode);function arrayMove(a,s,c){const u=a.slice();return u.splice(c<0?u.length+c:c,0,u.splice(s,1)[0]),u}function getSortedRects(a,s){return a.reduce((c,u,d)=>{const p=s.get(u);return p&&(c[d]=p),c},Array(a.length))}function isValidIndex(a){return a!==null&&a>=0}function itemsEqual(a,s){if(a===s)return!0;if(a.length!==s.length)return!1;for(let c=0;c<a.length;c++)if(a[c]!==s[c])return!1;return!0}function normalizeDisabled(a){return typeof a=="boolean"?{draggable:a,droppable:a}:a}const rectSortingStrategy=a=>{let{rects:s,activeIndex:c,overIndex:u,index:d}=a;const p=arrayMove(s,u,c),v=s[d],A=p[d];return!A||!v?null:{x:A.left-v.left,y:A.top-v.top,scaleX:A.width/v.width,scaleY:A.height/v.height}},defaultScale$1={scaleX:1,scaleY:1},verticalListSortingStrategy=a=>{var s;let{activeIndex:c,activeNodeRect:u,index:d,rects:p,overIndex:v}=a;const A=(s=p[c])!=null?s:u;if(!A)return null;if(d===c){const g=p[v];return g?{x:0,y:c<v?g.top+g.height-(A.top+A.height):g.top-A.top,...defaultScale$1}:null}const b=getItemGap$1(p,d,c);return d>c&&d<=v?{x:0,y:-A.height-b,...defaultScale$1}:d<c&&d>=v?{x:0,y:A.height+b,...defaultScale$1}:{x:0,y:0,...defaultScale$1}};function getItemGap$1(a,s,c){const u=a[s],d=a[s-1],p=a[s+1];return u?c<s?d?u.top-(d.top+d.height):p?p.top-(u.top+u.height):0:p?p.top-(u.top+u.height):d?u.top-(d.top+d.height):0:0}const ID_PREFIX="Sortable",Context$1=React.createContext({activeIndex:-1,containerId:ID_PREFIX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:rectSortingStrategy,disabled:{draggable:!1,droppable:!1}});function SortableContext(a){let{children:s,id:c,items:u,strategy:d=rectSortingStrategy,disabled:p=!1}=a;const{active:v,dragOverlay:A,droppableRects:b,over:g,measureDroppableContainers:x}=useDndContext(),y=useUniqueId(ID_PREFIX,c),f=A.rect!==null,m=reactExports.useMemo(()=>u.map(R=>typeof R=="object"&&"id"in R?R.id:R),[u]),C=v!=null,S=v?m.indexOf(v.id):-1,w=g?m.indexOf(g.id):-1,I=reactExports.useRef(m),P=!itemsEqual(m,I.current),$=w!==-1&&S===-1||P,_=normalizeDisabled(p);useIsomorphicLayoutEffect$1(()=>{P&&C&&x(m)},[P,m,C,x]),reactExports.useEffect(()=>{I.current=m},[m]);const E=reactExports.useMemo(()=>({activeIndex:S,containerId:y,disabled:_,disableTransforms:$,items:m,overIndex:w,useDragOverlay:f,sortedRects:getSortedRects(m,b),strategy:d}),[S,y,_.draggable,_.droppable,$,m,w,b,f,d]);return React.createElement(Context$1.Provider,{value:E},s)}const defaultNewIndexGetter=a=>{let{id:s,items:c,activeIndex:u,overIndex:d}=a;return arrayMove(c,u,d).indexOf(s)},defaultAnimateLayoutChanges=a=>{let{containerId:s,isSorting:c,wasDragging:u,index:d,items:p,newIndex:v,previousItems:A,previousContainerId:b,transition:g}=a;return!g||!u||A!==p&&d===v?!1:c?!0:v!==d&&s===b},defaultTransition={duration:200,easing:"ease"},transitionProperty="transform",disabledTransition=CSS$1.Transition.toString({property:transitionProperty,duration:0,easing:"linear"}),defaultAttributes={roleDescription:"sortable"};function useDerivedTransform(a){let{disabled:s,index:c,node:u,rect:d}=a;const[p,v]=reactExports.useState(null),A=reactExports.useRef(c);return useIsomorphicLayoutEffect$1(()=>{if(!s&&c!==A.current&&u.current){const b=d.current;if(b){const g=getClientRect$1(u.current,{ignoreTransform:!0}),x={x:b.left-g.left,y:b.top-g.top,scaleX:b.width/g.width,scaleY:b.height/g.height};(x.x||x.y)&&v(x)}}c!==A.current&&(A.current=c)},[s,c,u,d]),reactExports.useEffect(()=>{p&&v(null)},[p]),p}function useSortable(a){let{animateLayoutChanges:s=defaultAnimateLayoutChanges,attributes:c,disabled:u,data:d,getNewIndex:p=defaultNewIndexGetter,id:v,strategy:A,resizeObserverConfig:b,transition:g=defaultTransition}=a;const{items:x,containerId:y,activeIndex:f,disabled:m,disableTransforms:C,sortedRects:S,overIndex:w,useDragOverlay:I,strategy:P}=reactExports.useContext(Context$1),$=normalizeLocalDisabled(u,m),_=x.indexOf(v),E=reactExports.useMemo(()=>({sortable:{containerId:y,index:_,items:x},...d}),[y,d,_,x]),R=reactExports.useMemo(()=>x.slice(x.indexOf(v)),[x,v]),{rect:T,node:B,isOver:M,setNodeRef:D}=useDroppable({id:v,data:E,disabled:$.droppable,resizeObserverConfig:{updateMeasurementsFor:R,...b}}),{active:O,activatorEvent:H,activeNodeRect:j,attributes:q,setNodeRef:L,listeners:F,isDragging:U,over:N,setActivatorNodeRef:k,transform:W}=useDraggable({id:v,data:E,attributes:{...defaultAttributes,...c},disabled:$.draggable}),Z=useCombinedRefs(D,L),Q=!!O,Y=Q&&!C&&isValidIndex(f)&&isValidIndex(w),J=!I&&U,ee=J&&Y?W:null,ae=Y?ee??(A??P)({rects:S,activeNodeRect:j,activeIndex:f,overIndex:w,index:_}):null,V=isValidIndex(f)&&isValidIndex(w)?p({id:v,items:x,activeIndex:f,overIndex:w}):_,K=O==null?void 0:O.id,te=reactExports.useRef({activeId:K,items:x,newIndex:V,containerId:y}),ie=x!==te.current.items,ce=s({active:O,containerId:y,isDragging:U,isSorting:Q,id:v,index:_,items:x,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:g,wasDragging:te.current.activeId!=null}),ge=useDerivedTransform({disabled:!ce,index:_,node:B,rect:T});return reactExports.useEffect(()=>{Q&&te.current.newIndex!==V&&(te.current.newIndex=V),y!==te.current.containerId&&(te.current.containerId=y),x!==te.current.items&&(te.current.items=x)},[Q,V,y,x]),reactExports.useEffect(()=>{if(K===te.current.activeId)return;if(K!=null&&te.current.activeId==null){te.current.activeId=K;return}const ve=setTimeout(()=>{te.current.activeId=K},50);return()=>clearTimeout(ve)},[K]),{active:O,activeIndex:f,attributes:q,data:E,rect:T,index:_,newIndex:V,items:x,isOver:M,isSorting:Q,isDragging:U,listeners:F,node:B,overIndex:w,over:N,setNodeRef:Z,setActivatorNodeRef:k,setDroppableNodeRef:D,setDraggableNodeRef:L,transform:ge??ae,transition:Se()};function Se(){if(ge||ie&&te.current.newIndex===_)return disabledTransition;if(!(J&&!isKeyboardEvent(H)||!g)&&(Q||ce))return CSS$1.Transition.toString({...g,property:transitionProperty})}}function normalizeLocalDisabled(a,s){var c,u;return typeof a=="boolean"?{draggable:a,droppable:!1}:{draggable:(c=a==null?void 0:a.draggable)!=null?c:s.draggable,droppable:(u=a==null?void 0:a.droppable)!=null?u:s.droppable}}function hasSortableData(a){if(!a)return!1;const s=a.data.current;return!!(s&&"sortable"in s&&typeof s.sortable=="object"&&"containerId"in s.sortable&&"items"in s.sortable&&"index"in s.sortable)}const directions=[KeyboardCode.Down,KeyboardCode.Right,KeyboardCode.Up,KeyboardCode.Left],sortableKeyboardCoordinates=(a,s)=>{let{context:{active:c,collisionRect:u,droppableRects:d,droppableContainers:p,over:v,scrollableAncestors:A}}=s;if(directions.includes(a.code)){if(a.preventDefault(),!c||!u)return;const b=[];p.getEnabled().forEach(y=>{if(!y||y!=null&&y.disabled)return;const f=d.get(y.id);if(f)switch(a.code){case KeyboardCode.Down:u.top<f.top&&b.push(y);break;case KeyboardCode.Up:u.top>f.top&&b.push(y);break;case KeyboardCode.Left:u.left>f.left&&b.push(y);break;case KeyboardCode.Right:u.left<f.left&&b.push(y);break}});const g=closestCorners({collisionRect:u,droppableRects:d,droppableContainers:b});let x=getFirstCollision(g,"id");if(x===(v==null?void 0:v.id)&&g.length>1&&(x=g[1].id),x!=null){const y=p.get(c.id),f=p.get(x),m=f?d.get(f.id):null,C=f==null?void 0:f.node.current;if(C&&m&&y&&f){const w=getScrollableAncestors(C).some((R,T)=>A[T]!==R),I=isSameContainer(y,f),P=isAfter(y,f),$=w||!I?{x:0,y:0}:{x:P?u.width-m.width:0,y:P?u.height-m.height:0},_={x:m.left,y:m.top};return $.x&&$.y?_:subtract(_,$)}}}};function isSameContainer(a,s){return!hasSortableData(a)||!hasSortableData(s)?!1:a.data.current.sortable.containerId===s.data.current.sortable.containerId}function isAfter(a,s){return!hasSortableData(a)||!hasSortableData(s)||!isSameContainer(a,s)?!1:a.data.current.sortable.index<s.data.current.sortable.index}const{Text:Text$4}=Typography,Item=React.memo(React.forwardRef(function a({icon:s,value:c,status:u,title:d,required:p,readOnly:v,style:A,dragOverlay:b,onClick:g,onMouseEnter:x,onMouseLeave:y,dragging:f,fadeIn:m,listeners:C,sorting:S,transition:w,transform:I,...P},$){const _=reactExports.useContext(I18nContext);reactExports.useEffect(()=>{if(b)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[b]);const{x:E,y:R,scaleX:T,scaleY:B}=I||{x:0,y:0,scaleX:1,scaleY:1};return jsxRuntimeExports.jsx("li",{style:{marginTop:10,transition:w,transform:`translate(${E}px, ${R}px) scale(${T}, ${B})`},onMouseEnter:x,onMouseLeave:y,ref:$,children:jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",gap:"0.5rem",...A},...P,onClick:()=>g&&g(),children:[jsxRuntimeExports.jsx(Button$1,{...C,style:{display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none",paddingLeft:"0.25rem"},icon:jsxRuntimeExports.jsx(GripVertical,{size:15,style:{cursor:"grab"}})}),s,jsxRuntimeExports.jsx(Text$4,{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%"},title:d||"",children:u===void 0?c:jsxRuntimeExports.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[jsxRuntimeExports.jsx(CircleAlert,{size:15,style:{marginRight:"0.25rem"}}),u==="is-warning"?_("noKeyName"):c,u==="is-danger"?_("notUniq"):""]})}),v&&jsxRuntimeExports.jsx(Lock,{size:15,style:{marginRight:"0.5rem"}}),p&&jsxRuntimeExports.jsx("span",{style:{color:"red",marginRight:"0.5rem"},children:"*"})]})})}));Item.displayName="Item";const usePrevious=a=>{const s=reactExports.useRef(null);return reactExports.useEffect(()=>{s.current=a}),s.current},getScale=(a,s)=>Math.floor((a/s>1?1:a/s)*100)/100,useUIPreProcessor=({template:a,size:s,zoomLevel:c,maxZoom:u})=>{const[d,p]=reactExports.useState([]),[v,A]=reactExports.useState([]),[b,g]=reactExports.useState(0),[x,y]=reactExports.useState(null),f=async m=>{const{template:{basePdf:C,schemas:S},size:w}=m;let I,P,$,_;if(isBlankPdf(C)){const{width:R,height:T}=C;I=R*ZOOM,P=T*ZOOM,$=S.map(()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII="),_=S.map(()=>({width:R,height:T}))}else{const R=await getB64BasePdf(C),T=b64toUint8Array(R),B=new ArrayBuffer(T.byteLength);new Uint8Array(B).set(T);const[M,D]=await Promise.all([pdf2size(B),pdf2img(B.slice(),{scale:u})]);_=M,I=_[0].width*ZOOM,P=_[0].height*ZOOM,$=D.map(arrayBufferToBase64)}const E=Math.min(getScale(w.width,I),getScale(w.height-RULER_HEIGHT,P));return{backgrounds:$,pageSizes:_,scale:E}};return reactExports.useEffect(()=>{f({template:a,size:s}).then(({pageSizes:m,scale:C,backgrounds:S})=>{A(m),g(C),p(S)}).catch(m=>{y(m),console.error("[@pdfme/ui]",m)})},[a,s]),{backgrounds:d,pageSizes:v,scale:b*c,error:x,refresh:m=>f({template:m,size:s}).then(({pageSizes:C,scale:S,backgrounds:w})=>{A(C),g(S),p(w)})}},useScrollPageCursor=({ref:a,pageSizes:s,scale:c,pageCursor:u,onChangePageCursor:d})=>{const p=reactExports.useCallback(()=>{if(!s[0]||!a.current)return;const v=a.current.scrollTop,{top:A}=a.current.getBoundingClientRect(),b=s.reduce((x,y,f)=>{let m=(y.height*ZOOM+RULER_HEIGHT)*c;return f===0?m+=A-m/2:m+=x[f-1],x.concat(m)},[]);let g=0;b.forEach((x,y)=>{v>x&&(g=y+1>=b.length?b.length-1:y+1)}),g!==u&&d(g)},[d,u,s,a,c]);reactExports.useEffect(()=>{var v;return(v=a.current)==null||v.addEventListener("scroll",p),()=>{var A;(A=a.current)==null||A.removeEventListener("scroll",p)}},[a,p])},useMountStatus=()=>{const[a,s]=reactExports.useState(!1);return reactExports.useEffect(()=>{const c=setTimeout(()=>s(!0),500);return()=>clearTimeout(c)},[]),a},useInitEvents=({pageCursor:a,pageSizes:s,activeElements:c,template:u,schemasList:d,changeSchemas:p,commitSchemas:v,removeSchemas:A,onSaveTemplate:b,past:g,future:x,setSchemasList:y,onEdit:f,onEditEnd:m})=>{const C=reactExports.useRef(null),S=reactExports.useCallback(()=>{const I=()=>{const $=c.map(_=>_.id);return d[a].filter(_=>$.includes(_.id))},P=$=>{const _=$==="undo",E=_?g:x;if(E.current.length<=0)return;(_?x:g).current.push(cloneDeep$1(d[a]));const R=cloneDeep$1(d);R[a]=E.current.pop(),y(R)};initShortCuts({move:($,_)=>{const E=s[a],R=I(),T=moveCommandToChangeSchemasArg({command:$,activeSchemas:R,pageSize:E,isShift:_});p(T)},copy:()=>{const $=I();$.length!==0&&(C.current=$)},paste:()=>{if(!C.current||C.current.length===0)return;const $=d[a],_=[],E=C.current.map(R=>{const T=uuid$6(),B=getUniqueSchemaName({copiedSchemaName:R.name,schema:$,stackUniqueSchemaNames:_}),{height:M,width:D,position:O}=R,H=s[a],j={x:O.x+10>H.width-D?H.width-D:O.x+10,y:O.y+10>H.height-M?H.height-M:O.y+10};return Object.assign(cloneDeep$1(R),{id:T,name:B,position:j})});v(d[a].concat(E)),f(E.map(R=>document.getElementById(R.id))),C.current=E},redo:()=>P("redo"),undo:()=>P("undo"),save:()=>b&&b(schemasList2template(d,u.basePdf)),remove:()=>A(I().map($=>$.id)),esc:m,selectAll:()=>f(d[a].map($=>document.getElementById($.id)))})},[u,c,a,s,p,v,d,b,A,g,x,y,C,f,m]),w=reactExports.useCallback(()=>{destroyShortCuts()},[]);reactExports.useEffect(()=>(S(),w),[S,w])},getWithModifiedSize=(a,s,c,u)=>{const p=new DOMParser().parseFromString(a,"text/html"),v=A=>{(A.tagName==="SVG"||A.tagName==="svg")&&(A.setAttribute("width",c.toString()),A.setAttribute("height",c.toString())),Array.from(A.children).forEach(b=>v(b))};return Array.from(p.body.children).forEach(A=>v(A)),jsxRuntimeExports.jsx("div",{style:u,title:s,dangerouslySetInnerHTML:{__html:p.body.innerHTML}})},PluginIcon=a=>{var x;const{plugin:s,label:c,size:u,styles:d}=a,{token:p}=theme.useToken(),v=reactExports.useContext(OptionsContext),A=s.propPanel&&typeof s.propPanel=="object"&&s.propPanel.defaultSchema&&typeof s.propPanel.defaultSchema=="object"&&"type"in s.propPanel.defaultSchema&&typeof s.propPanel.defaultSchema.type=="string"?s.propPanel.defaultSchema.type:"",b=((x=v.icons)==null?void 0:x[A])??s.icon,g={...d,color:p.colorText,display:"flex",justifyContent:"center"};return b?u?getWithModifiedSize(b,c,u,g):jsxRuntimeExports.jsx("div",{style:g,title:c,dangerouslySetInnerHTML:{__html:b}}):jsxRuntimeExports.jsx("div",{style:{...d,overflow:"hidden",fontSize:10},title:c,children:c})},SelectableSortableItem=({isSelected:a,style:s,onSelect:c,onEdit:u,schema:d,schemas:p,onMouseEnter:v,onMouseLeave:A})=>{const{token:b}=theme.useToken(),g=reactExports.useContext(I18nContext),x=reactExports.useContext(PluginsRegistry),{setNodeRef:y,listeners:f,isDragging:m,isSorting:C,transform:S,transition:w}=useSortable({id:d.id}),I=useMountStatus(),P=m&&!I,$={...f,onClick:O=>c(d.id,O.shiftKey)},_=typeof d.type=="string"?d.type:"",E=Object.entries(x).find(([,O])=>{if(!O||typeof O!="object"||!O.propPanel||typeof O.propPanel!="object"||!O.propPanel.defaultSchema||typeof O.propPanel.defaultSchema!="object")return!1;const H=O.propPanel.defaultSchema;return"type"in H&&typeof H.type=="string"&&H.type===_}),[R,T]=E||["",void 0];let B;d.name?p.find(O=>d.name&&O.name===d.name&&O.id!==d.id)&&(B="is-danger"):B="is-warning";let M=g("edit");B==="is-warning"?M=g("plsInputName"):B==="is-danger"&&(M=g("fieldMustUniq"));const D=a?{background:b.colorPrimary,opacity:C||m?.5:1}:{};return jsxRuntimeExports.jsx(Item,{ref:y,onMouseEnter:v,onMouseLeave:A,onClick:()=>u(d.id),icon:T&&jsxRuntimeExports.jsx(PluginIcon,{plugin:T,label:R,size:20}),value:d.name,status:B,title:M,required:d.required,readOnly:d.readOnly,style:{...D,...s},dragging:m,sorting:C,transition:w,transform:S,fadeIn:P,listeners:$})},SelectableSortableContainer=a=>{const{token:s}=theme.useToken(),{schemas:c,onEdit:u,onSortEnd:d,hoveringSchemaId:p,onChangeHoveringSchemaId:v}=a,[A,b]=reactExports.useState([]),[g,x]=reactExports.useState(null),[y,f]=reactExports.useState(null),m=reactExports.useContext(PluginsRegistry),C=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:15}}),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates})),S=P=>A.map($=>$.id).includes(P),w=(P,$)=>{if($)if(S(P)){const _=A.filter(E=>E.id!==P);b(_)}else{const _=c.find(R=>R.id===P),E=A.concat(_);b(E)}else b([])},I=P=>{const $=typeof P=="string"?c.find(B=>B.id===P):P;if(!$)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const _=typeof $.type=="string"?$.type:"",E=Object.entries(m).find(([,B])=>{if(!B||typeof B!="object"||!B.propPanel||typeof B.propPanel!="object"||!B.propPanel.defaultSchema||typeof B.propPanel.defaultSchema!="object")return!1;const M=B.propPanel.defaultSchema;return"type"in M&&typeof M.type=="string"&&M.type===_}),[R,T]=E||["",void 0];return T?jsxRuntimeExports.jsx(PluginIcon,{plugin:T,label:R,size:20,styles:{marginRight:"0.5rem"}}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})};return jsxRuntimeExports.jsx(DndContext,{sensors:C,collisionDetection:closestCorners,onDragStart:({active:P})=>{f(String(P.id)),x(c),S(String(P.id))?A.length>0&&d(A.reduce(($,_)=>_.id===String(P.id)?$:$.filter(E=>E!==_),c)):b([])},onDragEnd:({active:P,over:$})=>{const _=($==null?void 0:$.id)||"",E=c.map(T=>T.id).indexOf(String(P.id)),R=c.map(T=>T.id).indexOf(String(_));if(A.length){let T=[...c];T=arrayMove(T,E,R),T.splice(R+1,0,...A.filter(B=>B.id!==y)),d(T),b([])}else E!==R&&d(arrayMove(c,E,R));f(null)},onDragCancel:()=>{g&&d(g),f(null),x(null)},children:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{style:{height:"100%",overflowY:"auto"},children:jsxRuntimeExports.jsx(SortableContext,{items:c,strategy:verticalListSortingStrategy,children:jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none",borderRadius:5},children:c.map(P=>jsxRuntimeExports.jsx(SelectableSortableItem,{style:{border:`1px solid ${P.id===p?s.colorPrimary:"transparent"}`},schema:P,schemas:c,isSelected:S(P.id)||y===P.id,onEdit:u,onSelect:w,onMouseEnter:()=>v(P.id),onMouseLeave:()=>v(null)},P.id))})})}),reactDomExports.createPortal(jsxRuntimeExports.jsx(DragOverlay,{adjustScale:!0,children:y?(()=>{const P=c.find($=>$.id===y);return P?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:jsxRuntimeExports.jsx(Item,{icon:I(y),value:P.name,required:P.required,readOnly:P.readOnly,style:{background:s.colorPrimary},dragOverlay:!0})}),jsxRuntimeExports.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:A.filter($=>$.id!==y).map($=>jsxRuntimeExports.jsx(Item,{icon:I($),value:$.name,required:$.required,readOnly:$.readOnly,style:{background:s.colorPrimary},dragOverlay:!0},$.id))})]}):null})():null}),document.body)]})})},{Text:Text$3}=Typography,{TextArea:TextArea$2}=Input$1,headHeight=40,ListView=a=>{const{schemas:s,onSortEnd:c,onEdit:u,size:d,hoveringSchemaId:p,onChangeHoveringSchemaId:v,changeSchemas:A}=a,{token:b}=theme.useToken(),g=reactExports.useContext(I18nContext),[x,y]=reactExports.useState(!1),[f,m]=reactExports.useState(""),C=getSidebarContentHeight(d.height),S=()=>{const I=f.split(`
|
775
775
|
`);I.length!==s.length?alert(g("errorBulkUpdateFieldName")):(A(I.map((P,$)=>({key:"name",value:P,schemaId:s[$].id}))),y(!1))},w=()=>{m(s.map(I=>I.name).join(`
|
776
776
|
`)),y(!0)};return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{style:{height:headHeight,display:"flex",alignItems:"center"},children:jsxRuntimeExports.jsx(Text$3,{strong:!0,style:{textAlign:"center",width:"100%"},children:g("fieldsList")})}),jsxRuntimeExports.jsx(Divider,{style:{marginTop:b.marginXS,marginBottom:b.marginXS}}),jsxRuntimeExports.jsxs("div",{style:{height:C-headHeight},children:[x?jsxRuntimeExports.jsx(TextArea$2,{wrap:"off",value:f,onChange:I=>m(I.target.value),style:{paddingLeft:30,height:C-headHeight,width:RIGHT_SIDEBAR_WIDTH-35,lineHeight:"2.75rem"}}):jsxRuntimeExports.jsx(SelectableSortableContainer,{schemas:s,hoveringSchemaId:p,onChangeHoveringSchemaId:v,onSortEnd:c,onEdit:u}),jsxRuntimeExports.jsx("div",{style:{paddingTop:"0.5rem",display:"flex",alignItems:"center",justifyContent:"flex-end"},children:x?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button$1,{size:"small",type:"text",onClick:S,children:jsxRuntimeExports.jsxs("u",{children:[" ",g("commitBulkUpdateFieldName")]})}),jsxRuntimeExports.jsx("span",{style:{margin:"0 1rem"},children:"/"}),jsxRuntimeExports.jsx(Button$1,{size:"small",type:"text",onClick:()=>y(!1),children:jsxRuntimeExports.jsxs("u",{children:[" ",g("cancel")]})})]}):jsxRuntimeExports.jsx(Button$1,{size:"small",type:"text",onClick:w,children:jsxRuntimeExports.jsxs("u",{children:[" ",g("bulkUpdateFieldName")]})})})]})]})};var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root.Symbol,objectProto$g=Object.prototype,hasOwnProperty$d=objectProto$g.hasOwnProperty,nativeObjectToString$1=objectProto$g.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(a){var s=hasOwnProperty$d.call(a,symToStringTag$1),c=a[symToStringTag$1];try{a[symToStringTag$1]=void 0;var u=!0}catch{}var d=nativeObjectToString$1.call(a);return u&&(s?a[symToStringTag$1]=c:delete a[symToStringTag$1]),d}var objectProto$f=Object.prototype,nativeObjectToString=objectProto$f.toString;function objectToString(a){return nativeObjectToString.call(a)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(a){return a==null?a===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(a)?getRawTag(a):objectToString(a)}function isObjectLike(a){return a!=null&&typeof a=="object"}var symbolTag$3="[object Symbol]";function isSymbol(a){return typeof a=="symbol"||isObjectLike(a)&&baseGetTag(a)==symbolTag$3}function arrayMap(a,s){for(var c=-1,u=a==null?0:a.length,d=Array(u);++c<u;)d[c]=s(a[c],c,a);return d}var isArray$2=Array.isArray,symbolProto$2=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;function baseToString(a){if(typeof a=="string")return a;if(isArray$2(a))return arrayMap(a,baseToString)+"";if(isSymbol(a))return symbolToString?symbolToString.call(a):"";var s=a+"";return s=="0"&&1/a==-1/0?"-0":s}function isObject$3(a){var s=typeof a;return a!=null&&(s=="object"||s=="function")}function identity$1(a){return a}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(a){if(!isObject$3(a))return!1;var s=baseGetTag(a);return s==funcTag$2||s==genTag$1||s==asyncTag||s==proxyTag}var coreJsData=root["__core-js_shared__"],maskSrcKey=function(){var a=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function isMasked(a){return!!maskSrcKey&&maskSrcKey in a}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(a){if(a!=null){try{return funcToString$2.call(a)}catch{}try{return a+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$e=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$c=objectProto$e.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(a){if(!isObject$3(a)||isMasked(a))return!1;var s=isFunction$2(a)?reIsNative:reIsHostCtor;return s.test(toSource(a))}function getValue$1(a,s){return a==null?void 0:a[s]}function getNative(a,s){var c=getValue$1(a,s);return baseIsNative(c)?c:void 0}var WeakMap$1=getNative(root,"WeakMap"),objectCreate=Object.create,baseCreate=function(){function a(){}return function(s){if(!isObject$3(s))return{};if(objectCreate)return objectCreate(s);a.prototype=s;var c=new a;return a.prototype=void 0,c}}();function apply(a,s,c){switch(c.length){case 0:return a.call(s);case 1:return a.call(s,c[0]);case 2:return a.call(s,c[0],c[1]);case 3:return a.call(s,c[0],c[1],c[2])}return a.apply(s,c)}function copyArray(a,s){var c=-1,u=a.length;for(s||(s=Array(u));++c<u;)s[c]=a[c];return s}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(a){var s=0,c=0;return function(){var u=nativeNow(),d=HOT_SPAN-(u-c);if(c=u,d>0){if(++s>=HOT_COUNT)return arguments[0]}else s=0;return a.apply(void 0,arguments)}}function constant(a){return function(){return a}}var defineProperty$4=function(){try{var a=getNative(Object,"defineProperty");return a({},"",{}),a}catch{}}(),baseSetToString=defineProperty$4?function(a,s){return defineProperty$4(a,"toString",{configurable:!0,enumerable:!1,value:constant(s),writable:!0})}:identity$1,setToString=shortOut(baseSetToString);function arrayEach(a,s){for(var c=-1,u=a==null?0:a.length;++c<u&&s(a[c],c,a)!==!1;);return a}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(a,s){var c=typeof a;return s=s??MAX_SAFE_INTEGER$1,!!s&&(c=="number"||c!="symbol"&&reIsUint.test(a))&&a>-1&&a%1==0&&a<s}function baseAssignValue(a,s,c){s=="__proto__"&&defineProperty$4?defineProperty$4(a,s,{configurable:!0,enumerable:!0,value:c,writable:!0}):a[s]=c}function eq(a,s){return a===s||a!==a&&s!==s}var objectProto$d=Object.prototype,hasOwnProperty$b=objectProto$d.hasOwnProperty;function assignValue(a,s,c){var u=a[s];(!(hasOwnProperty$b.call(a,s)&&eq(u,c))||c===void 0&&!(s in a))&&baseAssignValue(a,s,c)}function copyObject(a,s,c,u){var d=!c;c||(c={});for(var p=-1,v=s.length;++p<v;){var A=s[p],b=void 0;b===void 0&&(b=a[A]),d?baseAssignValue(c,A,b):assignValue(c,A,b)}return c}var nativeMax=Math.max;function overRest(a,s,c){return s=nativeMax(s===void 0?a.length-1:s,0),function(){for(var u=arguments,d=-1,p=nativeMax(u.length-s,0),v=Array(p);++d<p;)v[d]=u[s+d];d=-1;for(var A=Array(s+1);++d<s;)A[d]=u[d];return A[s]=c(v),apply(a,this,A)}}function baseRest(a,s){return setToString(overRest(a,s,identity$1),a+"")}var MAX_SAFE_INTEGER=9007199254740991;function isLength(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=MAX_SAFE_INTEGER}function isArrayLike(a){return a!=null&&isLength(a.length)&&!isFunction$2(a)}function isIterateeCall(a,s,c){if(!isObject$3(c))return!1;var u=typeof s;return(u=="number"?isArrayLike(c)&&isIndex(s,c.length):u=="string"&&s in c)?eq(c[s],a):!1}function createAssigner(a){return baseRest(function(s,c){var u=-1,d=c.length,p=d>1?c[d-1]:void 0,v=d>2?c[2]:void 0;for(p=a.length>3&&typeof p=="function"?(d--,p):void 0,v&&isIterateeCall(c[0],c[1],v)&&(p=d<3?void 0:p,d=1),s=Object(s);++u<d;){var A=c[u];A&&a(s,A,u,p)}return s})}var objectProto$c=Object.prototype;function isPrototype(a){var s=a&&a.constructor,c=typeof s=="function"&&s.prototype||objectProto$c;return a===c}function baseTimes(a,s){for(var c=-1,u=Array(a);++c<a;)u[c]=s(c);return u}var argsTag$3="[object Arguments]";function baseIsArguments(a){return isObjectLike(a)&&baseGetTag(a)==argsTag$3}var objectProto$b=Object.prototype,hasOwnProperty$a=objectProto$b.hasOwnProperty,propertyIsEnumerable$1=objectProto$b.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(a){return isObjectLike(a)&&hasOwnProperty$a.call(a,"callee")&&!propertyIsEnumerable$1.call(a,"callee")};function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root.Buffer:void 0,nativeIsBuffer=Buffer$2?Buffer$2.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(a){return isObjectLike(a)&&isLength(a.length)&&!!typedArrayTags[baseGetTag(a)]}function baseUnary(a){return function(s){return a(s)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal.process,nodeUtil=function(){try{var a=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return a||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$a=Object.prototype,hasOwnProperty$9=objectProto$a.hasOwnProperty;function arrayLikeKeys(a,s){var c=isArray$2(a),u=!c&&isArguments(a),d=!c&&!u&&isBuffer(a),p=!c&&!u&&!d&&isTypedArray(a),v=c||u||d||p,A=v?baseTimes(a.length,String):[],b=A.length;for(var g in a)(s||hasOwnProperty$9.call(a,g))&&!(v&&(g=="length"||d&&(g=="offset"||g=="parent")||p&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||isIndex(g,b)))&&A.push(g);return A}function overArg(a,s){return function(c){return a(s(c))}}var nativeKeys=overArg(Object.keys,Object),objectProto$9=Object.prototype,hasOwnProperty$8=objectProto$9.hasOwnProperty;function baseKeys(a){if(!isPrototype(a))return nativeKeys(a);var s=[];for(var c in Object(a))hasOwnProperty$8.call(a,c)&&c!="constructor"&&s.push(c);return s}function keys(a){return isArrayLike(a)?arrayLikeKeys(a):baseKeys(a)}function nativeKeysIn(a){var s=[];if(a!=null)for(var c in Object(a))s.push(c);return s}var objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function baseKeysIn(a){if(!isObject$3(a))return nativeKeysIn(a);var s=isPrototype(a),c=[];for(var u in a)u=="constructor"&&(s||!hasOwnProperty$7.call(a,u))||c.push(u);return c}function keysIn(a){return isArrayLike(a)?arrayLikeKeys(a,!0):baseKeysIn(a)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(a,s){if(isArray$2(a))return!1;var c=typeof a;return c=="number"||c=="symbol"||c=="boolean"||a==null||isSymbol(a)?!0:reIsPlainProp.test(a)||!reIsDeepProp.test(a)||s!=null&&a in Object(s)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(a){var s=this.has(a)&&delete this.__data__[a];return this.size-=s?1:0,s}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashGet(a){var s=this.__data__;if(nativeCreate){var c=s[a];return c===HASH_UNDEFINED$2?void 0:c}return hasOwnProperty$6.call(s,a)?s[a]:void 0}var objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function hashHas(a){var s=this.__data__;return nativeCreate?s[a]!==void 0:hasOwnProperty$5.call(s,a)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(a,s){var c=this.__data__;return this.size+=this.has(a)?0:1,c[a]=nativeCreate&&s===void 0?HASH_UNDEFINED$1:s,this}function Hash(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var u=a[s];this.set(u[0],u[1])}}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(a,s){for(var c=a.length;c--;)if(eq(a[c][0],s))return c;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(a){var s=this.__data__,c=assocIndexOf(s,a);if(c<0)return!1;var u=s.length-1;return c==u?s.pop():splice.call(s,c,1),--this.size,!0}function listCacheGet(a){var s=this.__data__,c=assocIndexOf(s,a);return c<0?void 0:s[c][1]}function listCacheHas(a){return assocIndexOf(this.__data__,a)>-1}function listCacheSet(a,s){var c=this.__data__,u=assocIndexOf(c,a);return u<0?(++this.size,c.push([a,s])):c[u][1]=s,this}function ListCache(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var u=a[s];this.set(u[0],u[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;var Map$1=getNative(root,"Map");function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}}function isKeyable(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}function getMapData(a,s){var c=a.__data__;return isKeyable(s)?c[typeof s=="string"?"string":"hash"]:c.map}function mapCacheDelete(a){var s=getMapData(this,a).delete(a);return this.size-=s?1:0,s}function mapCacheGet(a){return getMapData(this,a).get(a)}function mapCacheHas(a){return getMapData(this,a).has(a)}function mapCacheSet(a,s){var c=getMapData(this,a),u=c.size;return c.set(a,s),this.size+=c.size==u?0:1,this}function MapCache(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var u=a[s];this.set(u[0],u[1])}}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$1="Expected a function";function memoize(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new TypeError(FUNC_ERROR_TEXT$1);var c=function(){var u=arguments,d=s?s.apply(this,u):u[0],p=c.cache;if(p.has(d))return p.get(d);var v=a.apply(this,u);return c.cache=p.set(d,v)||p,v};return c.cache=new(memoize.Cache||MapCache),c}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(a){var s=memoize(a,function(u){return c.size===MAX_MEMOIZE_SIZE&&c.clear(),u}),c=s.cache;return s}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(rePropName,function(c,u,d,p){s.push(d?p.replace(reEscapeChar,"$1"):u||c)}),s});function toString(a){return a==null?"":baseToString(a)}function castPath(a,s){return isArray$2(a)?a:isKey(a,s)?[a]:stringToPath(toString(a))}function toKey(a){if(typeof a=="string"||isSymbol(a))return a;var s=a+"";return s=="0"&&1/a==-1/0?"-0":s}function baseGet(a,s){s=castPath(s,a);for(var c=0,u=s.length;a!=null&&c<u;)a=a[toKey(s[c++])];return c&&c==u?a:void 0}function get(a,s,c){var u=a==null?void 0:baseGet(a,s);return u===void 0?c:u}function arrayPush(a,s){for(var c=-1,u=s.length,d=a.length;++c<u;)a[d+c]=s[c];return a}var getPrototype=overArg(Object.getPrototypeOf,Object),objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$5=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$4=objectProto$5.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject(a){if(!isObjectLike(a)||baseGetTag(a)!=objectTag$3)return!1;var s=getPrototype(a);if(s===null)return!0;var c=hasOwnProperty$4.call(s,"constructor")&&s.constructor;return typeof c=="function"&&c instanceof c&&funcToString.call(c)==objectCtorString}function baseSlice(a,s,c){var u=-1,d=a.length;s<0&&(s=-s>d?0:d+s),c=c>d?d:c,c<0&&(c+=d),d=s>c?0:c-s>>>0,s>>>=0;for(var p=Array(d);++u<d;)p[u]=a[u+s];return p}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(a){var s=this.__data__,c=s.delete(a);return this.size=s.size,c}function stackGet(a){return this.__data__.get(a)}function stackHas(a){return this.__data__.has(a)}var LARGE_ARRAY_SIZE=200;function stackSet(a,s){var c=this.__data__;if(c instanceof ListCache){var u=c.__data__;if(!Map$1||u.length<LARGE_ARRAY_SIZE-1)return u.push([a,s]),this.size=++c.size,this;c=this.__data__=new MapCache(u)}return c.set(a,s),this.size=c.size,this}function Stack(a){var s=this.__data__=new ListCache(a);this.size=s.size}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer(a,s){if(s)return a.slice();var c=a.length,u=allocUnsafe?allocUnsafe(c):new a.constructor(c);return a.copy(u),u}function arrayFilter(a,s){for(var c=-1,u=a==null?0:a.length,d=0,p=[];++c<u;){var v=a[c];s(v,c,a)&&(p[d++]=v)}return p}function stubArray(){return[]}var objectProto$4=Object.prototype,propertyIsEnumerable=objectProto$4.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(a){return a==null?[]:(a=Object(a),arrayFilter(nativeGetSymbols$1(a),function(s){return propertyIsEnumerable.call(a,s)}))}:stubArray,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(a){for(var s=[];a;)arrayPush(s,getSymbols(a)),a=getPrototype(a);return s}:stubArray;function baseGetAllKeys(a,s,c){var u=s(a);return isArray$2(a)?u:arrayPush(u,c(a))}function getAllKeys(a){return baseGetAllKeys(a,keys,getSymbols)}function getAllKeysIn(a){return baseGetAllKeys(a,keysIn,getSymbolsIn)}var DataView$1=getNative(root,"DataView"),Promise$1=getNative(root,"Promise"),Set$1=getNative(root,"Set"),mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$1&&getTag(new Map$1)!=mapTag$4||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$4||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag$1)&&(getTag=function(a){var s=baseGetTag(a),c=s==objectTag$2?a.constructor:void 0,u=c?toSource(c):"";if(u)switch(u){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return s});var objectProto$3=Object.prototype,hasOwnProperty$3=objectProto$3.hasOwnProperty;function initCloneArray(a){var s=a.length,c=new a.constructor(s);return s&&typeof a[0]=="string"&&hasOwnProperty$3.call(a,"index")&&(c.index=a.index,c.input=a.input),c}var Uint8Array$1=root.Uint8Array;function cloneArrayBuffer(a){var s=new a.constructor(a.byteLength);return new Uint8Array$1(s).set(new Uint8Array$1(a)),s}function cloneDataView(a,s){var c=cloneArrayBuffer(a.buffer);return new a.constructor(c,a.byteOffset,a.byteLength)}var reFlags=/\w*$/;function cloneRegExp(a){var s=new a.constructor(a.source,reFlags.exec(a));return s.lastIndex=a.lastIndex,s}var symbolProto$1=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(a){return symbolValueOf$1?Object(symbolValueOf$1.call(a)):{}}function cloneTypedArray(a,s){var c=s?cloneArrayBuffer(a.buffer):a.buffer;return new a.constructor(c,a.byteOffset,a.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(a,s,c){var u=a.constructor;switch(s){case arrayBufferTag$2:return cloneArrayBuffer(a);case boolTag$2:case dateTag$2:return new u(+a);case dataViewTag$2:return cloneDataView(a);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(a,c);case mapTag$3:return new u;case numberTag$2:case stringTag$2:return new u(a);case regexpTag$2:return cloneRegExp(a);case setTag$3:return new u;case symbolTag$2:return cloneSymbol(a)}}function initCloneObject(a){return typeof a.constructor=="function"&&!isPrototype(a)?baseCreate(getPrototype(a)):{}}var mapTag$2="[object Map]";function baseIsMap(a){return isObjectLike(a)&&getTag(a)==mapTag$2}var nodeIsMap=nodeUtil&&nodeUtil.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,setTag$2="[object Set]";function baseIsSet(a){return isObjectLike(a)&&getTag(a)==setTag$2}var nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,CLONE_DEEP_FLAG$1=1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(a,s,c,u,d,p){var v,A=s&CLONE_DEEP_FLAG$1;if(v!==void 0)return v;if(!isObject$3(a))return a;var b=isArray$2(a);if(b)v=initCloneArray(a);else{var g=getTag(a),x=g==funcTag||g==genTag;if(isBuffer(a))return cloneBuffer(a,A);if(g==objectTag$1||g==argsTag$1||x&&!d)v=x?{}:initCloneObject(a);else{if(!cloneableTags[g])return d?a:{};v=initCloneByTag(a,g,A)}}p||(p=new Stack);var y=p.get(a);if(y)return y;p.set(a,v),isSet(a)?a.forEach(function(C){v.add(baseClone(C,s,c,C,a,p))}):isMap(a)&&a.forEach(function(C,S){v.set(S,baseClone(C,s,c,S,a,p))});var f=getAllKeys,m=b?void 0:f(a);return arrayEach(m||a,function(C,S){m&&(S=C,C=a[S]),assignValue(v,S,baseClone(C,s,c,S,a,p))}),v}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(a){return baseClone(a,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(a){return this.__data__.set(a,HASH_UNDEFINED),this}function setCacheHas(a){return this.__data__.has(a)}function SetCache(a){var s=-1,c=a==null?0:a.length;for(this.__data__=new MapCache;++s<c;)this.add(a[s])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;function arraySome(a,s){for(var c=-1,u=a==null?0:a.length;++c<u;)if(s(a[c],c,a))return!0;return!1}function cacheHas(a,s){return a.has(s)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(a,s,c,u,d,p){var v=c&COMPARE_PARTIAL_FLAG$5,A=a.length,b=s.length;if(A!=b&&!(v&&b>A))return!1;var g=p.get(a),x=p.get(s);if(g&&x)return g==s&&x==a;var y=-1,f=!0,m=c&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(p.set(a,s),p.set(s,a);++y<A;){var C=a[y],S=s[y];if(u)var w=v?u(S,C,y,s,a,p):u(C,S,y,a,s,p);if(w!==void 0){if(w)continue;f=!1;break}if(m){if(!arraySome(s,function(I,P){if(!cacheHas(m,P)&&(C===I||d(C,I,c,u,p)))return m.push(P)})){f=!1;break}}else if(!(C===S||d(C,S,c,u,p))){f=!1;break}}return p.delete(a),p.delete(s),f}function mapToArray(a){var s=-1,c=Array(a.size);return a.forEach(function(u,d){c[++s]=[d,u]}),c}function setToArray(a){var s=-1,c=Array(a.size);return a.forEach(function(u){c[++s]=u}),c}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(a,s,c,u,d,p,v){switch(c){case dataViewTag:if(a.byteLength!=s.byteLength||a.byteOffset!=s.byteOffset)return!1;a=a.buffer,s=s.buffer;case arrayBufferTag:return!(a.byteLength!=s.byteLength||!p(new Uint8Array$1(a),new Uint8Array$1(s)));case boolTag:case dateTag:case numberTag:return eq(+a,+s);case errorTag:return a.name==s.name&&a.message==s.message;case regexpTag:case stringTag:return a==s+"";case mapTag:var A=mapToArray;case setTag:var b=u&COMPARE_PARTIAL_FLAG$4;if(A||(A=setToArray),a.size!=s.size&&!b)return!1;var g=v.get(a);if(g)return g==s;u|=COMPARE_UNORDERED_FLAG$2,v.set(a,s);var x=equalArrays(A(a),A(s),u,d,p,v);return v.delete(a),x;case symbolTag:if(symbolValueOf)return symbolValueOf.call(a)==symbolValueOf.call(s)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function equalObjects(a,s,c,u,d,p){var v=c&COMPARE_PARTIAL_FLAG$3,A=getAllKeys(a),b=A.length,g=getAllKeys(s),x=g.length;if(b!=x&&!v)return!1;for(var y=b;y--;){var f=A[y];if(!(v?f in s:hasOwnProperty$2.call(s,f)))return!1}var m=p.get(a),C=p.get(s);if(m&&C)return m==s&&C==a;var S=!0;p.set(a,s),p.set(s,a);for(var w=v;++y<b;){f=A[y];var I=a[f],P=s[f];if(u)var $=v?u(P,I,f,s,a,p):u(I,P,f,a,s,p);if(!($===void 0?I===P||d(I,P,c,u,p):$)){S=!1;break}w||(w=f=="constructor")}if(S&&!w){var _=a.constructor,E=s.constructor;_!=E&&"constructor"in a&&"constructor"in s&&!(typeof _=="function"&&_ instanceof _&&typeof E=="function"&&E instanceof E)&&(S=!1)}return p.delete(a),p.delete(s),S}var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function baseIsEqualDeep(a,s,c,u,d,p){var v=isArray$2(a),A=isArray$2(s),b=v?arrayTag:getTag(a),g=A?arrayTag:getTag(s);b=b==argsTag?objectTag:b,g=g==argsTag?objectTag:g;var x=b==objectTag,y=g==objectTag,f=b==g;if(f&&isBuffer(a)){if(!isBuffer(s))return!1;v=!0,x=!1}if(f&&!x)return p||(p=new Stack),v||isTypedArray(a)?equalArrays(a,s,c,u,d,p):equalByTag(a,s,b,c,u,d,p);if(!(c&COMPARE_PARTIAL_FLAG$2)){var m=x&&hasOwnProperty$1.call(a,"__wrapped__"),C=y&&hasOwnProperty$1.call(s,"__wrapped__");if(m||C){var S=m?a.value():a,w=C?s.value():s;return p||(p=new Stack),d(S,w,c,u,p)}}return f?(p||(p=new Stack),equalObjects(a,s,c,u,d,p)):!1}function baseIsEqual(a,s,c,u,d){return a===s?!0:a==null||s==null||!isObjectLike(a)&&!isObjectLike(s)?a!==a&&s!==s:baseIsEqualDeep(a,s,c,u,baseIsEqual,d)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(a,s,c,u){var d=c.length,p=d;if(a==null)return!p;for(a=Object(a);d--;){var v=c[d];if(v[2]?v[1]!==a[v[0]]:!(v[0]in a))return!1}for(;++d<p;){v=c[d];var A=v[0],b=a[A],g=v[1];if(v[2]){if(b===void 0&&!(A in a))return!1}else{var x=new Stack,y;if(!(y===void 0?baseIsEqual(g,b,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,u,x):y))return!1}}return!0}function isStrictComparable(a){return a===a&&!isObject$3(a)}function getMatchData(a){for(var s=keys(a),c=s.length;c--;){var u=s[c],d=a[u];s[c]=[u,d,isStrictComparable(d)]}return s}function matchesStrictComparable(a,s){return function(c){return c==null?!1:c[a]===s&&(s!==void 0||a in Object(c))}}function baseMatches(a){var s=getMatchData(a);return s.length==1&&s[0][2]?matchesStrictComparable(s[0][0],s[0][1]):function(c){return c===a||baseIsMatch(c,a,s)}}function baseHasIn(a,s){return a!=null&&s in Object(a)}function hasPath(a,s,c){s=castPath(s,a);for(var u=-1,d=s.length,p=!1;++u<d;){var v=toKey(s[u]);if(!(p=a!=null&&c(a,v)))break;a=a[v]}return p||++u!=d?p:(d=a==null?0:a.length,!!d&&isLength(d)&&isIndex(v,d)&&(isArray$2(a)||isArguments(a)))}function hasIn(a,s){return a!=null&&hasPath(a,s,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(a,s){return isKey(a)&&isStrictComparable(s)?matchesStrictComparable(toKey(a),s):function(c){var u=get(c,a);return u===void 0&&u===s?hasIn(c,a):baseIsEqual(s,u,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(a){return function(s){return s==null?void 0:s[a]}}function basePropertyDeep(a){return function(s){return baseGet(s,a)}}function property(a){return isKey(a)?baseProperty(toKey(a)):basePropertyDeep(a)}function baseIteratee(a){return typeof a=="function"?a:a==null?identity$1:typeof a=="object"?isArray$2(a)?baseMatchesProperty(a[0],a[1]):baseMatches(a):property(a)}function createBaseFor(a){return function(s,c,u){for(var d=-1,p=Object(s),v=u(s),A=v.length;A--;){var b=v[++d];if(c(p[b],b,p)===!1)break}return s}}var baseFor=createBaseFor();function baseForOwn(a,s){return a&&baseFor(a,s,keys)}function createBaseEach(a,s){return function(c,u){if(c==null)return c;if(!isArrayLike(c))return a(c,u);for(var d=c.length,p=-1,v=Object(c);++p<d&&u(v[p],p,v)!==!1;);return c}}var baseEach=createBaseEach(baseForOwn);function assignMergeValue(a,s,c){(c!==void 0&&!eq(a[s],c)||c===void 0&&!(s in a))&&baseAssignValue(a,s,c)}function isArrayLikeObject(a){return isObjectLike(a)&&isArrayLike(a)}function safeGet$1(a,s){if(!(s==="constructor"&&typeof a[s]=="function")&&s!="__proto__")return a[s]}function toPlainObject(a){return copyObject(a,keysIn(a))}function baseMergeDeep(a,s,c,u,d,p,v){var A=safeGet$1(a,c),b=safeGet$1(s,c),g=v.get(b);if(g){assignMergeValue(a,c,g);return}var x=p?p(A,b,c+"",a,s,v):void 0,y=x===void 0;if(y){var f=isArray$2(b),m=!f&&isBuffer(b),C=!f&&!m&&isTypedArray(b);x=b,f||m||C?isArray$2(A)?x=A:isArrayLikeObject(A)?x=copyArray(A):m?(y=!1,x=cloneBuffer(b,!0)):C?(y=!1,x=cloneTypedArray(b,!0)):x=[]:isPlainObject(b)||isArguments(b)?(x=A,isArguments(A)?x=toPlainObject(A):(!isObject$3(A)||isFunction$2(A))&&(x=initCloneObject(b))):y=!1}y&&(v.set(b,x),d(x,b,u,p,v),v.delete(b)),assignMergeValue(a,c,x)}function baseMerge(a,s,c,u,d){a!==s&&baseFor(s,function(p,v){if(d||(d=new Stack),isObject$3(p))baseMergeDeep(a,s,v,c,baseMerge,u,d);else{var A=u?u(safeGet$1(a,v),p,v+"",a,s,d):void 0;A===void 0&&(A=p),assignMergeValue(a,v,A)}},keysIn)}createAssigner(function(a,s,c,u){baseMerge(a,s,c,u)});function last(a){var s=a==null?0:a.length;return s?a[s-1]:void 0}var objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseHas(a,s){return a!=null&&hasOwnProperty.call(a,s)}function has(a,s){return a!=null&&hasPath(a,s,baseHas)}function parent(a,s){return s.length<2?a:baseGet(a,baseSlice(s,0,-1))}function isMatch(a,s){return a===s||baseIsMatch(a,s,getMatchData(s))}function isUndefined$1(a){return a===void 0}createAssigner(function(a,s,c){baseMerge(a,s,c)});var FUNC_ERROR_TEXT="Expected a function";function negate(a){if(typeof a!="function")throw new TypeError(FUNC_ERROR_TEXT);return function(){var s=arguments;switch(s.length){case 0:return!a.call(this);case 1:return!a.call(this,s[0]);case 2:return!a.call(this,s[0],s[1]);case 3:return!a.call(this,s[0],s[1],s[2])}return!a.apply(this,s)}}function baseUnset(a,s){return s=castPath(s,a),a=parent(a,s),a==null||delete a[toKey(last(s))]}function baseSet(a,s,c,u){if(!isObject$3(a))return a;s=castPath(s,a);for(var d=-1,p=s.length,v=p-1,A=a;A!=null&&++d<p;){var b=toKey(s[d]),g=c;if(b==="__proto__"||b==="constructor"||b==="prototype")return a;if(d!=v){var x=A[b];g=void 0,g===void 0&&(g=isObject$3(x)?x:isIndex(s[d+1])?[]:{})}assignValue(A,b,g),A=A[b]}return a}function basePickBy(a,s,c){for(var u=-1,d=s.length,p={};++u<d;){var v=s[u],A=baseGet(a,v);c(A,v)&&baseSet(p,castPath(v,a),A)}return p}function pickBy(a,s){if(a==null)return{};var c=arrayMap(getAllKeysIn(a),function(u){return[u]});return s=baseIteratee(s),basePickBy(a,c,function(u,d){return s(u,d[0])})}function omitBy(a,s){return pickBy(a,negate(baseIteratee(s)))}function set(a,s,c){return a==null?a:baseSet(a,s,c)}function baseSome(a,s){var c;return baseEach(a,function(u,d,p){return c=s(u,d,p),!c}),!!c}function some$1(a,s,c){var u=isArray$2(a)?arraySome:baseSome;return c&&isIterateeCall(a,s,c)&&(s=void 0),u(a,baseIteratee(s))}function unset(a,s){return a==null?!0:baseUnset(a,s)}const __vite_import_meta_env__={},createStoreImpl=a=>{let s;const c=new Set,u=(x,y)=>{const f=typeof x=="function"?x(s):x;if(!Object.is(f,s)){const m=s;s=y??(typeof f!="object"||f===null)?f:Object.assign({},s,f),c.forEach(C=>C(s,m))}},d=()=>s,b={setState:u,getState:d,getInitialState:()=>g,subscribe:x=>(c.add(x),()=>c.delete(x)),destroy:()=>{(__vite_import_meta_env__?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),c.clear()}},g=s=a(u,d,b);return b},createStore$1=a=>a?createStoreImpl(a):createStoreImpl;var withSelector={exports:{}},withSelector_production={},shim={exports:{}},useSyncExternalStoreShim_production={};/**
|
777
777
|
* @license React
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pdfme/ui",
|
3
|
-
"version": "5.3.14-dev.
|
3
|
+
"version": "5.3.14-dev.17",
|
4
4
|
"sideEffects": false,
|
5
5
|
"author": "hand-dot",
|
6
6
|
"license": "MIT",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"form-render": "^2.2.16",
|
45
45
|
"globrex": "^0.1.2",
|
46
46
|
"hotkeys-js": "^3.8.7",
|
47
|
-
"lucide-react": "^0.
|
47
|
+
"lucide-react": "^0.486.0",
|
48
48
|
"react": "^16.14.0",
|
49
49
|
"react-dom": "^16.14.0",
|
50
50
|
"react-moveable": "^0.56.0",
|
@@ -70,8 +70,8 @@
|
|
70
70
|
"jest-environment-jsdom": "^29.7.0",
|
71
71
|
"postcss": "^8.5.3",
|
72
72
|
"process": "^0.11.10",
|
73
|
-
"rollup": "^4.
|
74
|
-
"vite": "^6.2.
|
73
|
+
"rollup": "^4.38.0",
|
74
|
+
"vite": "^6.2.4",
|
75
75
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
76
76
|
"vite-tsconfig-paths": "^5.1.4"
|
77
77
|
},
|