@pdfme/ui 5.3.13-dev.1 → 5.3.13-dev.15
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 +78 -84
- package/dist/index.umd.js +59 -59
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
@@ -80029,7 +80029,7 @@ const DEFAULT_OPACITY = 1, HEX_COLOR_PATTERN = "^#(?:[A-Fa-f0-9]{6})$", getBody$
|
|
80029
80029
|
});
|
80030
80030
|
};
|
80031
80031
|
/**
|
80032
|
-
* @license lucide v0.
|
80032
|
+
* @license lucide v0.479.0 - ISC
|
80033
80033
|
*
|
80034
80034
|
* This source code is licensed under the ISC license.
|
80035
80035
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80040,7 +80040,7 @@ const AlignCenter = [
|
|
80040
80040
|
["path", { d: "M21 6H3" }]
|
80041
80041
|
];
|
80042
80042
|
/**
|
80043
|
-
* @license lucide v0.
|
80043
|
+
* @license lucide v0.479.0 - ISC
|
80044
80044
|
*
|
80045
80045
|
* This source code is licensed under the ISC license.
|
80046
80046
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80051,7 +80051,7 @@ const AlignJustify = [
|
|
80051
80051
|
["path", { d: "M3 6h18" }]
|
80052
80052
|
];
|
80053
80053
|
/**
|
80054
|
-
* @license lucide v0.
|
80054
|
+
* @license lucide v0.479.0 - ISC
|
80055
80055
|
*
|
80056
80056
|
* This source code is licensed under the ISC license.
|
80057
80057
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80062,7 +80062,7 @@ const AlignLeft = [
|
|
80062
80062
|
["path", { d: "M21 6H3" }]
|
80063
80063
|
];
|
80064
80064
|
/**
|
80065
|
-
* @license lucide v0.
|
80065
|
+
* @license lucide v0.479.0 - ISC
|
80066
80066
|
*
|
80067
80067
|
* This source code is licensed under the ISC license.
|
80068
80068
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80073,7 +80073,7 @@ const AlignRight = [
|
|
80073
80073
|
["path", { d: "M21 6H3" }]
|
80074
80074
|
];
|
80075
80075
|
/**
|
80076
|
-
* @license lucide v0.
|
80076
|
+
* @license lucide v0.479.0 - ISC
|
80077
80077
|
*
|
80078
80078
|
* This source code is licensed under the ISC license.
|
80079
80079
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80084,7 +80084,7 @@ const ArrowDownToLine = [
|
|
80084
80084
|
["path", { d: "M19 21H5" }]
|
80085
80085
|
];
|
80086
80086
|
/**
|
80087
|
-
* @license lucide v0.
|
80087
|
+
* @license lucide v0.479.0 - ISC
|
80088
80088
|
*
|
80089
80089
|
* This source code is licensed under the ISC license.
|
80090
80090
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80095,7 +80095,7 @@ const ArrowUpToLine = [
|
|
80095
80095
|
["path", { d: "M12 7v14" }]
|
80096
80096
|
];
|
80097
80097
|
/**
|
80098
|
-
* @license lucide v0.
|
80098
|
+
* @license lucide v0.479.0 - ISC
|
80099
80099
|
*
|
80100
80100
|
* This source code is licensed under the ISC license.
|
80101
80101
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80106,7 +80106,7 @@ const Strikethrough = [
|
|
80106
80106
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12" }]
|
80107
80107
|
];
|
80108
80108
|
/**
|
80109
|
-
* @license lucide v0.
|
80109
|
+
* @license lucide v0.479.0 - ISC
|
80110
80110
|
*
|
80111
80111
|
* This source code is licensed under the ISC license.
|
80112
80112
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80119,7 +80119,7 @@ const TextCursorInput = [
|
|
80119
80119
|
["path", { d: "M9 7v10" }]
|
80120
80120
|
];
|
80121
80121
|
/**
|
80122
|
-
* @license lucide v0.
|
80122
|
+
* @license lucide v0.479.0 - ISC
|
80123
80123
|
*
|
80124
80124
|
* This source code is licensed under the ISC license.
|
80125
80125
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135535,14 +135535,14 @@ const Dragger = /* @__PURE__ */ reactExports.forwardRef((a, s) => {
|
|
135535
135535
|
Upload.Dragger = Dragger;
|
135536
135536
|
Upload.LIST_IGNORE = LIST_IGNORE;
|
135537
135537
|
/**
|
135538
|
-
* @license lucide-react v0.
|
135538
|
+
* @license lucide-react v0.479.0 - ISC
|
135539
135539
|
*
|
135540
135540
|
* This source code is licensed under the ISC license.
|
135541
135541
|
* See the LICENSE file in the root directory of this source tree.
|
135542
135542
|
*/
|
135543
135543
|
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();
|
135544
135544
|
/**
|
135545
|
-
* @license lucide-react v0.
|
135545
|
+
* @license lucide-react v0.479.0 - ISC
|
135546
135546
|
*
|
135547
135547
|
* This source code is licensed under the ISC license.
|
135548
135548
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135559,7 +135559,7 @@ var defaultAttributes$1 = {
|
|
135559
135559
|
strokeLinejoin: "round"
|
135560
135560
|
};
|
135561
135561
|
/**
|
135562
|
-
* @license lucide-react v0.
|
135562
|
+
* @license lucide-react v0.479.0 - ISC
|
135563
135563
|
*
|
135564
135564
|
* This source code is licensed under the ISC license.
|
135565
135565
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135593,7 +135593,7 @@ const Icon = reactExports.forwardRef(
|
|
135593
135593
|
)
|
135594
135594
|
);
|
135595
135595
|
/**
|
135596
|
-
* @license lucide-react v0.
|
135596
|
+
* @license lucide-react v0.479.0 - ISC
|
135597
135597
|
*
|
135598
135598
|
* This source code is licensed under the ISC license.
|
135599
135599
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135610,248 +135610,242 @@ const createLucideIcon = (a, s) => {
|
|
135610
135610
|
return c.displayName = `${a}`, c;
|
135611
135611
|
};
|
135612
135612
|
/**
|
135613
|
-
* @license lucide-react v0.
|
135613
|
+
* @license lucide-react v0.479.0 - ISC
|
135614
135614
|
*
|
135615
135615
|
* This source code is licensed under the ISC license.
|
135616
135616
|
* See the LICENSE file in the root directory of this source tree.
|
135617
135617
|
*/
|
135618
|
-
const
|
135618
|
+
const __iconNode$m = [
|
135619
135619
|
["path", { d: "M2 12h20", key: "9i4pu4" }],
|
135620
135620
|
["path", { d: "M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4", key: "11f1s0" }],
|
135621
135621
|
["path", { d: "M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4", key: "t14dx9" }],
|
135622
135622
|
["path", { d: "M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1", key: "1w07xs" }],
|
135623
135623
|
["path", { d: "M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1", key: "1apec2" }]
|
135624
|
-
]);
|
135624
|
+
], AlignCenterHorizontal = createLucideIcon("AlignCenterHorizontal", __iconNode$m);
|
135625
135625
|
/**
|
135626
|
-
* @license lucide-react v0.
|
135626
|
+
* @license lucide-react v0.479.0 - ISC
|
135627
135627
|
*
|
135628
135628
|
* This source code is licensed under the ISC license.
|
135629
135629
|
* See the LICENSE file in the root directory of this source tree.
|
135630
135630
|
*/
|
135631
|
-
const
|
135631
|
+
const __iconNode$l = [
|
135632
135632
|
["path", { d: "M12 2v20", key: "t6zp3m" }],
|
135633
135633
|
["path", { d: "M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4", key: "14d6g8" }],
|
135634
135634
|
["path", { d: "M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4", key: "1e2lrw" }],
|
135635
135635
|
["path", { d: "M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1", key: "1fkdwx" }],
|
135636
135636
|
["path", { d: "M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1", key: "1euafb" }]
|
135637
|
-
]);
|
135637
|
+
], AlignCenterVertical = createLucideIcon("AlignCenterVertical", __iconNode$l);
|
135638
135638
|
/**
|
135639
|
-
* @license lucide-react v0.
|
135639
|
+
* @license lucide-react v0.479.0 - ISC
|
135640
135640
|
*
|
135641
135641
|
* This source code is licensed under the ISC license.
|
135642
135642
|
* See the LICENSE file in the root directory of this source tree.
|
135643
135643
|
*/
|
135644
|
-
const
|
135644
|
+
const __iconNode$k = [
|
135645
135645
|
["rect", { width: "6", height: "16", x: "4", y: "2", rx: "2", key: "z5wdxg" }],
|
135646
135646
|
["rect", { width: "6", height: "9", x: "14", y: "9", rx: "2", key: "um7a8w" }],
|
135647
135647
|
["path", { d: "M22 22H2", key: "19qnx5" }]
|
135648
|
-
]);
|
135648
|
+
], AlignEndHorizontal = createLucideIcon("AlignEndHorizontal", __iconNode$k);
|
135649
135649
|
/**
|
135650
|
-
* @license lucide-react v0.
|
135650
|
+
* @license lucide-react v0.479.0 - ISC
|
135651
135651
|
*
|
135652
135652
|
* This source code is licensed under the ISC license.
|
135653
135653
|
* See the LICENSE file in the root directory of this source tree.
|
135654
135654
|
*/
|
135655
|
-
const
|
135655
|
+
const __iconNode$j = [
|
135656
135656
|
["rect", { width: "16", height: "6", x: "2", y: "4", rx: "2", key: "10wcwx" }],
|
135657
135657
|
["rect", { width: "9", height: "6", x: "9", y: "14", rx: "2", key: "4p5bwg" }],
|
135658
135658
|
["path", { d: "M22 22V2", key: "12ipfv" }]
|
135659
|
-
]);
|
135659
|
+
], AlignEndVertical = createLucideIcon("AlignEndVertical", __iconNode$j);
|
135660
135660
|
/**
|
135661
|
-
* @license lucide-react v0.
|
135661
|
+
* @license lucide-react v0.479.0 - ISC
|
135662
135662
|
*
|
135663
135663
|
* This source code is licensed under the ISC license.
|
135664
135664
|
* See the LICENSE file in the root directory of this source tree.
|
135665
135665
|
*/
|
135666
|
-
const
|
135666
|
+
const __iconNode$i = [
|
135667
135667
|
["rect", { width: "6", height: "10", x: "9", y: "7", rx: "2", key: "yn7j0q" }],
|
135668
135668
|
["path", { d: "M4 22V2", key: "tsjzd3" }],
|
135669
135669
|
["path", { d: "M20 22V2", key: "1bnhr8" }]
|
135670
|
-
]);
|
135670
|
+
], AlignHorizontalSpaceAround = createLucideIcon("AlignHorizontalSpaceAround", __iconNode$i);
|
135671
135671
|
/**
|
135672
|
-
* @license lucide-react v0.
|
135672
|
+
* @license lucide-react v0.479.0 - ISC
|
135673
135673
|
*
|
135674
135674
|
* This source code is licensed under the ISC license.
|
135675
135675
|
* See the LICENSE file in the root directory of this source tree.
|
135676
135676
|
*/
|
135677
|
-
const
|
135677
|
+
const __iconNode$h = [
|
135678
135678
|
["rect", { width: "6", height: "16", x: "4", y: "6", rx: "2", key: "1n4dg1" }],
|
135679
135679
|
["rect", { width: "6", height: "9", x: "14", y: "6", rx: "2", key: "17khns" }],
|
135680
135680
|
["path", { d: "M22 2H2", key: "fhrpnj" }]
|
135681
|
-
]);
|
135681
|
+
], AlignStartHorizontal = createLucideIcon("AlignStartHorizontal", __iconNode$h);
|
135682
135682
|
/**
|
135683
|
-
* @license lucide-react v0.
|
135683
|
+
* @license lucide-react v0.479.0 - ISC
|
135684
135684
|
*
|
135685
135685
|
* This source code is licensed under the ISC license.
|
135686
135686
|
* See the LICENSE file in the root directory of this source tree.
|
135687
135687
|
*/
|
135688
|
-
const
|
135688
|
+
const __iconNode$g = [
|
135689
135689
|
["rect", { width: "9", height: "6", x: "6", y: "14", rx: "2", key: "lpm2y7" }],
|
135690
135690
|
["rect", { width: "16", height: "6", x: "6", y: "4", rx: "2", key: "rdj6ps" }],
|
135691
135691
|
["path", { d: "M2 2v20", key: "1ivd8o" }]
|
135692
|
-
]);
|
135692
|
+
], AlignStartVertical = createLucideIcon("AlignStartVertical", __iconNode$g);
|
135693
135693
|
/**
|
135694
|
-
* @license lucide-react v0.
|
135694
|
+
* @license lucide-react v0.479.0 - ISC
|
135695
135695
|
*
|
135696
135696
|
* This source code is licensed under the ISC license.
|
135697
135697
|
* See the LICENSE file in the root directory of this source tree.
|
135698
135698
|
*/
|
135699
|
-
const
|
135699
|
+
const __iconNode$f = [
|
135700
135700
|
["rect", { width: "10", height: "6", x: "7", y: "9", rx: "2", key: "b1zbii" }],
|
135701
135701
|
["path", { d: "M22 20H2", key: "1p1f7z" }],
|
135702
135702
|
["path", { d: "M22 4H2", key: "1b7qnq" }]
|
135703
|
-
]);
|
135703
|
+
], AlignVerticalSpaceAround = createLucideIcon("AlignVerticalSpaceAround", __iconNode$f);
|
135704
135704
|
/**
|
135705
|
-
* @license lucide-react v0.
|
135705
|
+
* @license lucide-react v0.479.0 - ISC
|
135706
135706
|
*
|
135707
135707
|
* This source code is licensed under the ISC license.
|
135708
135708
|
* See the LICENSE file in the root directory of this source tree.
|
135709
135709
|
*/
|
135710
|
-
const
|
135710
|
+
const __iconNode$e = [
|
135711
135711
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
135712
135712
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
135713
|
-
]);
|
135713
|
+
], ArrowLeft = createLucideIcon("ArrowLeft", __iconNode$e);
|
135714
135714
|
/**
|
135715
|
-
* @license lucide-react v0.
|
135715
|
+
* @license lucide-react v0.479.0 - ISC
|
135716
135716
|
*
|
135717
135717
|
* This source code is licensed under the ISC license.
|
135718
135718
|
* See the LICENSE file in the root directory of this source tree.
|
135719
135719
|
*/
|
135720
|
-
const
|
135720
|
+
const __iconNode$d = [
|
135721
135721
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
135722
135722
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
135723
|
-
]);
|
135723
|
+
], ArrowRight = createLucideIcon("ArrowRight", __iconNode$d);
|
135724
135724
|
/**
|
135725
|
-
* @license lucide-react v0.
|
135725
|
+
* @license lucide-react v0.479.0 - ISC
|
135726
135726
|
*
|
135727
135727
|
* This source code is licensed under the ISC license.
|
135728
135728
|
* See the LICENSE file in the root directory of this source tree.
|
135729
135729
|
*/
|
135730
|
-
const ChevronLeft = createLucideIcon("ChevronLeft",
|
135731
|
-
["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
|
135732
|
-
]);
|
135730
|
+
const __iconNode$c = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ChevronLeft = createLucideIcon("ChevronLeft", __iconNode$c);
|
135733
135731
|
/**
|
135734
|
-
* @license lucide-react v0.
|
135732
|
+
* @license lucide-react v0.479.0 - ISC
|
135735
135733
|
*
|
135736
135734
|
* This source code is licensed under the ISC license.
|
135737
135735
|
* See the LICENSE file in the root directory of this source tree.
|
135738
135736
|
*/
|
135739
|
-
const ChevronRight = createLucideIcon("ChevronRight",
|
135740
|
-
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
135741
|
-
]);
|
135737
|
+
const __iconNode$b = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ChevronRight = createLucideIcon("ChevronRight", __iconNode$b);
|
135742
135738
|
/**
|
135743
|
-
* @license lucide-react v0.
|
135739
|
+
* @license lucide-react v0.479.0 - ISC
|
135744
135740
|
*
|
135745
135741
|
* This source code is licensed under the ISC license.
|
135746
135742
|
* See the LICENSE file in the root directory of this source tree.
|
135747
135743
|
*/
|
135748
|
-
const
|
135744
|
+
const __iconNode$a = [
|
135749
135745
|
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
135750
135746
|
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
135751
|
-
]);
|
135747
|
+
], ChevronsLeft = createLucideIcon("ChevronsLeft", __iconNode$a);
|
135752
135748
|
/**
|
135753
|
-
* @license lucide-react v0.
|
135749
|
+
* @license lucide-react v0.479.0 - ISC
|
135754
135750
|
*
|
135755
135751
|
* This source code is licensed under the ISC license.
|
135756
135752
|
* See the LICENSE file in the root directory of this source tree.
|
135757
135753
|
*/
|
135758
|
-
const
|
135754
|
+
const __iconNode$9 = [
|
135759
135755
|
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
135760
135756
|
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
135761
|
-
]);
|
135757
|
+
], ChevronsRight = createLucideIcon("ChevronsRight", __iconNode$9);
|
135762
135758
|
/**
|
135763
|
-
* @license lucide-react v0.
|
135759
|
+
* @license lucide-react v0.479.0 - ISC
|
135764
135760
|
*
|
135765
135761
|
* This source code is licensed under the ISC license.
|
135766
135762
|
* See the LICENSE file in the root directory of this source tree.
|
135767
135763
|
*/
|
135768
|
-
const
|
135764
|
+
const __iconNode$8 = [
|
135769
135765
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
135770
135766
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
135771
135767
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
135772
|
-
]);
|
135768
|
+
], CircleAlert = createLucideIcon("CircleAlert", __iconNode$8);
|
135773
135769
|
/**
|
135774
|
-
* @license lucide-react v0.
|
135770
|
+
* @license lucide-react v0.479.0 - ISC
|
135775
135771
|
*
|
135776
135772
|
* This source code is licensed under the ISC license.
|
135777
135773
|
* See the LICENSE file in the root directory of this source tree.
|
135778
135774
|
*/
|
135779
|
-
const
|
135775
|
+
const __iconNode$7 = [
|
135780
135776
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
135781
135777
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
135782
135778
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
135783
|
-
]);
|
135779
|
+
], Ellipsis = createLucideIcon("Ellipsis", __iconNode$7);
|
135784
135780
|
/**
|
135785
|
-
* @license lucide-react v0.
|
135781
|
+
* @license lucide-react v0.479.0 - ISC
|
135786
135782
|
*
|
135787
135783
|
* This source code is licensed under the ISC license.
|
135788
135784
|
* See the LICENSE file in the root directory of this source tree.
|
135789
135785
|
*/
|
135790
|
-
const
|
135786
|
+
const __iconNode$6 = [
|
135791
135787
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
135792
135788
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
135793
135789
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
135794
135790
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
135795
135791
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
135796
135792
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
135797
|
-
]);
|
135793
|
+
], GripVertical = createLucideIcon("GripVertical", __iconNode$6);
|
135798
135794
|
/**
|
135799
|
-
* @license lucide-react v0.
|
135795
|
+
* @license lucide-react v0.479.0 - ISC
|
135800
135796
|
*
|
135801
135797
|
* This source code is licensed under the ISC license.
|
135802
135798
|
* See the LICENSE file in the root directory of this source tree.
|
135803
135799
|
*/
|
135804
|
-
const LoaderCircle = createLucideIcon("LoaderCircle",
|
135805
|
-
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
135806
|
-
]);
|
135800
|
+
const __iconNode$5 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], LoaderCircle = createLucideIcon("LoaderCircle", __iconNode$5);
|
135807
135801
|
/**
|
135808
|
-
* @license lucide-react v0.
|
135802
|
+
* @license lucide-react v0.479.0 - ISC
|
135809
135803
|
*
|
135810
135804
|
* This source code is licensed under the ISC license.
|
135811
135805
|
* See the LICENSE file in the root directory of this source tree.
|
135812
135806
|
*/
|
135813
|
-
const
|
135807
|
+
const __iconNode$4 = [
|
135814
135808
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
135815
135809
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
135816
|
-
]);
|
135810
|
+
], Lock = createLucideIcon("Lock", __iconNode$4);
|
135817
135811
|
/**
|
135818
|
-
* @license lucide-react v0.
|
135812
|
+
* @license lucide-react v0.479.0 - ISC
|
135819
135813
|
*
|
135820
135814
|
* This source code is licensed under the ISC license.
|
135821
135815
|
* See the LICENSE file in the root directory of this source tree.
|
135822
135816
|
*/
|
135823
|
-
const
|
135817
|
+
const __iconNode$3 = [
|
135824
135818
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
135825
135819
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
135826
135820
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
135827
|
-
]);
|
135821
|
+
], Menu = createLucideIcon("Menu", __iconNode$3);
|
135828
135822
|
/**
|
135829
|
-
* @license lucide-react v0.
|
135823
|
+
* @license lucide-react v0.479.0 - ISC
|
135830
135824
|
*
|
135831
135825
|
* This source code is licensed under the ISC license.
|
135832
135826
|
* See the LICENSE file in the root directory of this source tree.
|
135833
135827
|
*/
|
135834
|
-
const
|
135828
|
+
const __iconNode$2 = [["path", { d: "M5 12h14", key: "1ays0h" }]], Minus = createLucideIcon("Minus", __iconNode$2);
|
135835
135829
|
/**
|
135836
|
-
* @license lucide-react v0.
|
135830
|
+
* @license lucide-react v0.479.0 - ISC
|
135837
135831
|
*
|
135838
135832
|
* This source code is licensed under the ISC license.
|
135839
135833
|
* See the LICENSE file in the root directory of this source tree.
|
135840
135834
|
*/
|
135841
|
-
const
|
135835
|
+
const __iconNode$1 = [
|
135842
135836
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
135843
135837
|
["path", { d: "M12 5v14", key: "s699le" }]
|
135844
|
-
]);
|
135838
|
+
], Plus = createLucideIcon("Plus", __iconNode$1);
|
135845
135839
|
/**
|
135846
|
-
* @license lucide-react v0.
|
135840
|
+
* @license lucide-react v0.479.0 - ISC
|
135847
135841
|
*
|
135848
135842
|
* This source code is licensed under the ISC license.
|
135849
135843
|
* See the LICENSE file in the root directory of this source tree.
|
135850
135844
|
*/
|
135851
|
-
const
|
135845
|
+
const __iconNode = [
|
135852
135846
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
135853
135847
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
135854
|
-
]);
|
135848
|
+
], X = createLucideIcon("X", __iconNode);
|
135855
135849
|
function arrayMove(a, s, c) {
|
135856
135850
|
const u = a.slice();
|
135857
135851
|
return u.splice(c < 0 ? u.length + c : c, 0, u.splice(s, 1)[0]), u;
|
package/dist/index.umd.js
CHANGED
@@ -139,47 +139,47 @@ endstream`,s}copyBytesInto(s,c){this.updateDict();const u=c;c+=this.dict.copyByt
|
|
139
139
|
`,""),q=widthOfTextAtSize(J,y,m,P),Y=heightOfFontAtSize(y,m),Z=I*m*W;k===""&&(k=`\r
|
140
140
|
`);let ee=M;S==="center"?ee+=(R-q)/2:S==="right"&&(ee+=R-q);let re=E-mm2pt(v.position.y)-F-Z;if(v.strikethrough&&q>0){const V=ee+q+1,K=re+Y/3;d.drawLine({start:rotatePoint({x:ee,y:K},U,B.angle),end:rotatePoint({x:V,y:K},U,B.angle),thickness:1/12*m,color:C,opacity:O})}if(v.underline&&q>0){const V=ee+q+1,K=re-Y/12;d.drawLine({start:rotatePoint({x:ee,y:K},U,B.angle),end:rotatePoint({x:V,y:K},U,B.angle),thickness:1/12*m,color:C,opacity:O})}if(B.angle!==0){const V=rotatePoint({x:ee,y:re},U,B.angle);ee=V.x,re=V.y}let ae=P;if(S==="justify"&&k.slice(-1)!==`
|
141
141
|
`){const V=N.segment(J)[Symbol.iterator](),K=Array.from(V).length;ae+=(R-q)/K}d.pushOperators(u.setCharacterSpacing(ae)),d.drawText(J,{x:ee,y:re,rotate:B,size:m,color:C,lineHeight:I*m,font:_,opacity:O})})};/**
|
142
|
-
* @license lucide v0.
|
142
|
+
* @license lucide v0.479.0 - ISC
|
143
143
|
*
|
144
144
|
* This source code is licensed under the ISC license.
|
145
145
|
* See the LICENSE file in the root directory of this source tree.
|
146
146
|
*/const AlignCenter=[["path",{d:"M17 12H7"}],["path",{d:"M19 18H5"}],["path",{d:"M21 6H3"}]];/**
|
147
|
-
* @license lucide v0.
|
147
|
+
* @license lucide v0.479.0 - ISC
|
148
148
|
*
|
149
149
|
* This source code is licensed under the ISC license.
|
150
150
|
* See the LICENSE file in the root directory of this source tree.
|
151
151
|
*/const AlignJustify=[["path",{d:"M3 12h18"}],["path",{d:"M3 18h18"}],["path",{d:"M3 6h18"}]];/**
|
152
|
-
* @license lucide v0.
|
152
|
+
* @license lucide v0.479.0 - ISC
|
153
153
|
*
|
154
154
|
* This source code is licensed under the ISC license.
|
155
155
|
* See the LICENSE file in the root directory of this source tree.
|
156
156
|
*/const AlignLeft=[["path",{d:"M15 12H3"}],["path",{d:"M17 18H3"}],["path",{d:"M21 6H3"}]];/**
|
157
|
-
* @license lucide v0.
|
157
|
+
* @license lucide v0.479.0 - ISC
|
158
158
|
*
|
159
159
|
* This source code is licensed under the ISC license.
|
160
160
|
* See the LICENSE file in the root directory of this source tree.
|
161
161
|
*/const AlignRight=[["path",{d:"M21 12H9"}],["path",{d:"M21 18H7"}],["path",{d:"M21 6H3"}]];/**
|
162
|
-
* @license lucide v0.
|
162
|
+
* @license lucide v0.479.0 - ISC
|
163
163
|
*
|
164
164
|
* This source code is licensed under the ISC license.
|
165
165
|
* See the LICENSE file in the root directory of this source tree.
|
166
166
|
*/const ArrowDownToLine=[["path",{d:"M12 17V3"}],["path",{d:"m6 11 6 6 6-6"}],["path",{d:"M19 21H5"}]];/**
|
167
|
-
* @license lucide v0.
|
167
|
+
* @license lucide v0.479.0 - ISC
|
168
168
|
*
|
169
169
|
* This source code is licensed under the ISC license.
|
170
170
|
* See the LICENSE file in the root directory of this source tree.
|
171
171
|
*/const ArrowUpToLine=[["path",{d:"M5 3h14"}],["path",{d:"m18 13-6-6-6 6"}],["path",{d:"M12 7v14"}]];/**
|
172
|
-
* @license lucide v0.
|
172
|
+
* @license lucide v0.479.0 - ISC
|
173
173
|
*
|
174
174
|
* This source code is licensed under the ISC license.
|
175
175
|
* See the LICENSE file in the root directory of this source tree.
|
176
176
|
*/const Strikethrough=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12"}]];/**
|
177
|
-
* @license lucide v0.
|
177
|
+
* @license lucide v0.479.0 - ISC
|
178
178
|
*
|
179
179
|
* This source code is licensed under the ISC license.
|
180
180
|
* See the LICENSE file in the root directory of this source tree.
|
181
181
|
*/const TextCursorInput=[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7"}],["path",{d:"M9 7v10"}]];/**
|
182
|
-
* @license lucide v0.
|
182
|
+
* @license lucide v0.479.0 - ISC
|
183
183
|
*
|
184
184
|
* This source code is licensed under the ISC license.
|
185
185
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -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:be=>E(A,be),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,J=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),Z=classnames(`${c}-list-item-name`),ee=A.url?reactExports.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Z,title:A.name},N,{href:A.url,onClick:ge=>E(A,ge)}),A.name,Y):reactExports.createElement("span",{key:"view",className:Z,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,J,ae,j&&reactExports.createElement(CSSMotion,{motionName:`${K}-fade`,visible:O==="uploading",motionDeadline:2e3},ge=>{let{className:Se}=ge;const be="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)},be)})),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(Z=>{Y.thumbUrl=Z||"",B()}))})},[c,y,u]),reactExports.useEffect(()=>{D(!0)},[]);const H=(Y,Z)=>{if(d)return Z==null||Z.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 Z=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 Z?ee:re}return Z?reactExports.createElement(RefIcon$F,null):reactExports.createElement(RefIcon$4,null)},F=(Y,Z,ee,re,ae)=>{const V={type:"text",size:"small",title:re,onClick:K=>{var te,ie;Z(),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}`),J=reactExports.useMemo(()=>omit(initCollapseMotion(k),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[k]),q=Object.assign(Object.assign({},O?{}:J),{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:Z,file:ee,className:re,style:ae}=Y;return reactExports.createElement(ListItem,{key:Z,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:Z,style:ee}=Y;return cloneElement(_,re=>({className:classnames(re.className,Z),style:Object.assign(Object.assign(Object.assign({},ee),{pointerEvents:Z?"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"),J=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)})},Z=(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=J.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:J.current,nativeElement:q.current}));const{getPrefixCls:ie,direction:ce,upload:ge}=reactExports.useContext(ConfigContext$1),Se=ie("upload",I),be=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:Z,onChange:void 0,hasControlInside:D});delete be.className,delete be.style,(!_||F)&&delete be.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({},be,{ref:J,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({},be,{ref:J})));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.479.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
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.
|
645
|
+
* @license lucide-react v0.479.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.479.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.479.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
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=`${a}`,c};/**
|
660
|
-
* @license lucide-react v0.
|
660
|
+
* @license lucide-react v0.479.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
|
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("AlignCenterHorizontal",__iconNode$m);/**
|
665
|
+
* @license lucide-react v0.479.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
|
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("AlignCenterVertical",__iconNode$l);/**
|
670
|
+
* @license lucide-react v0.479.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
|
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("AlignEndHorizontal",__iconNode$k);/**
|
675
|
+
* @license lucide-react v0.479.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
|
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("AlignEndVertical",__iconNode$j);/**
|
680
|
+
* @license lucide-react v0.479.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
|
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("AlignHorizontalSpaceAround",__iconNode$i);/**
|
685
|
+
* @license lucide-react v0.479.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
|
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("AlignStartHorizontal",__iconNode$h);/**
|
690
|
+
* @license lucide-react v0.479.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
|
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("AlignStartVertical",__iconNode$g);/**
|
695
|
+
* @license lucide-react v0.479.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
|
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("AlignVerticalSpaceAround",__iconNode$f);/**
|
700
|
+
* @license lucide-react v0.479.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
|
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("ArrowLeft",__iconNode$e);/**
|
705
|
+
* @license lucide-react v0.479.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
|
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("ArrowRight",__iconNode$d);/**
|
710
|
+
* @license lucide-react v0.479.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
|
715
|
-
* @license lucide-react v0.
|
714
|
+
*/const __iconNode$c=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ChevronLeft=createLucideIcon("ChevronLeft",__iconNode$c);/**
|
715
|
+
* @license lucide-react v0.479.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
|
720
|
-
* @license lucide-react v0.
|
719
|
+
*/const __iconNode$b=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ChevronRight=createLucideIcon("ChevronRight",__iconNode$b);/**
|
720
|
+
* @license lucide-react v0.479.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
|
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("ChevronsLeft",__iconNode$a);/**
|
725
|
+
* @license lucide-react v0.479.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
|
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("ChevronsRight",__iconNode$9);/**
|
730
|
+
* @license lucide-react v0.479.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
|
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("CircleAlert",__iconNode$8);/**
|
735
|
+
* @license lucide-react v0.479.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
|
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.479.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
|
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("GripVertical",__iconNode$6);/**
|
745
|
+
* @license lucide-react v0.479.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
|
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("LoaderCircle",__iconNode$5);/**
|
750
|
+
* @license lucide-react v0.479.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
|
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.479.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
|
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.479.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
|
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.479.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
|
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.479.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 X=createLucideIcon("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);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}),J=useCombinedRefs(D,L),q=!!O,Y=q&&!C&&isValidIndex(f)&&isValidIndex(w),Z=!I&&U,ee=Z&&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 be=setTimeout(()=>{te.current.activeId=K},50);return()=>clearTimeout(be)},[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:J,setActivatorNodeRef:k,setDroppableNodeRef:D,setDraggableNodeRef:L,transform:ge??ae,transition:Se()};function Se(){if(ge||ie&&te.current.newIndex===_)return disabledTransition;if(!(Z&&!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}),J=useCombinedRefs(D,L),q=!!O,Y=q&&!C&&isValidIndex(f)&&isValidIndex(w),Z=!I&&U,ee=Z&&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 be=setTimeout(()=>{te.current.activeId=K},50);return()=>clearTimeout(be)},[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:J,setActivatorNodeRef:k,setDroppableNodeRef:D,setDraggableNodeRef:L,transform:ge??ae,transition:Se()};function Se(){if(ge||ie&&te.current.newIndex===_)return disabledTransition;if(!(Z&&!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.13-dev.
|
3
|
+
"version": "5.3.13-dev.15",
|
4
4
|
"sideEffects": false,
|
5
5
|
"author": "hand-dot",
|
6
6
|
"license": "MIT",
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"antd": "^5.24.2",
|
44
44
|
"form-render": "^2.2.16",
|
45
45
|
"hotkeys-js": "^3.8.7",
|
46
|
-
"lucide-react": "^0.
|
46
|
+
"lucide-react": "^0.479.0",
|
47
47
|
"react": "^16.14.0",
|
48
48
|
"react-dom": "^16.14.0",
|
49
49
|
"react-moveable": "^0.56.0",
|