@farris/ui-vue 1.2.7 → 1.2.9

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.
Files changed (246) hide show
  1. package/components/accordion/index.esm.js +136 -136
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +418 -456
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/border-editor/index.esm.js +4 -4
  6. package/components/border-editor/index.umd.cjs +1 -1
  7. package/components/button/index.esm.js +1 -1
  8. package/components/button/index.umd.cjs +1 -1
  9. package/components/button-edit/index.esm.js +363 -436
  10. package/components/button-edit/index.umd.cjs +1 -1
  11. package/components/button-group/index.esm.js +5 -5
  12. package/components/button-group/index.umd.cjs +1 -1
  13. package/components/calendar/index.esm.js +417 -417
  14. package/components/calendar/index.umd.cjs +1 -1
  15. package/components/capsule/index.esm.js +176 -176
  16. package/components/capsule/index.umd.cjs +1 -1
  17. package/components/checkbox/index.esm.js +557 -594
  18. package/components/checkbox/index.umd.cjs +1 -1
  19. package/components/color-picker/index.esm.js +119 -119
  20. package/components/color-picker/index.umd.cjs +2 -2
  21. package/components/combo-list/index.esm.js +502 -535
  22. package/components/combo-list/index.umd.cjs +1 -1
  23. package/components/combo-tree/index.esm.js +69 -69
  24. package/components/combo-tree/index.umd.cjs +1 -1
  25. package/components/component/index.esm.js +387 -275
  26. package/components/component/index.umd.cjs +1 -1
  27. package/components/condition/index.esm.js +1219 -983
  28. package/components/condition/index.umd.cjs +1 -1
  29. package/components/content-container/index.esm.js +292 -219
  30. package/components/content-container/index.umd.cjs +1 -1
  31. package/components/data-grid/index.css +1 -1
  32. package/components/data-grid/index.esm.js +5718 -5546
  33. package/components/data-grid/index.umd.cjs +1 -1
  34. package/components/data-view/index.esm.js +3291 -2930
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.esm.js +2650 -2682
  37. package/components/date-picker/index.umd.cjs +1 -1
  38. package/components/dependent-base/style.js +1 -0
  39. package/components/dependent-fluid/style.js +1 -0
  40. package/components/dependent-icon/style.js +1 -0
  41. package/components/dependent-input/style.js +1 -0
  42. package/components/dependent-table/style.js +1 -0
  43. package/components/designer-canvas/index.css +1 -1
  44. package/components/designer-canvas/index.esm.js +945 -932
  45. package/components/designer-canvas/index.umd.cjs +1 -1
  46. package/components/designer-outline/index.css +1 -1
  47. package/components/designer-outline/index.esm.js +175 -133
  48. package/components/designer-outline/index.umd.cjs +1 -1
  49. package/components/designer-toolbox/index.esm.js +36 -12
  50. package/components/designer-toolbox/index.umd.cjs +1 -1
  51. package/components/discussion-editor/index.esm.js +1 -1
  52. package/components/discussion-editor/index.umd.cjs +1 -1
  53. package/components/dropdown/index.esm.js +246 -246
  54. package/components/dropdown/index.umd.cjs +2 -2
  55. package/components/dynamic-form/index.esm.js +1319 -1172
  56. package/components/dynamic-form/index.umd.cjs +1 -1
  57. package/components/dynamic-resolver/index.esm.js +119 -82
  58. package/components/dynamic-resolver/index.umd.cjs +1 -1
  59. package/components/dynamic-view/index.esm.js +258 -249
  60. package/components/dynamic-view/index.umd.cjs +1 -1
  61. package/components/enum-editor/index.esm.js +3 -3
  62. package/components/enum-editor/index.umd.cjs +1 -1
  63. package/components/events-editor/index.esm.js +569 -514
  64. package/components/events-editor/index.umd.cjs +1 -1
  65. package/components/expression-editor/index.esm.js +104 -104
  66. package/components/expression-editor/index.umd.cjs +1 -1
  67. package/components/external-container/index.css +1 -1
  68. package/components/external-container/index.esm.js +3122 -2686
  69. package/components/external-container/index.umd.cjs +1 -1
  70. package/components/field-selector/index.css +1 -1
  71. package/components/field-selector/index.esm.js +6780 -6608
  72. package/components/field-selector/index.umd.cjs +1 -1
  73. package/components/filter-bar/index.css +1 -1
  74. package/components/filter-bar/index.esm.js +1466 -1523
  75. package/components/filter-bar/index.umd.cjs +1 -1
  76. package/components/flow-canvas/index.css +1 -1
  77. package/components/flow-canvas/index.esm.js +1048 -1035
  78. package/components/flow-canvas/index.umd.cjs +1 -1
  79. package/components/image-cropper/index.esm.js +422 -422
  80. package/components/image-cropper/index.umd.cjs +1 -1
  81. package/components/input-group/index.esm.js +674 -716
  82. package/components/input-group/index.umd.cjs +1 -1
  83. package/components/layout/index.esm.js +291 -291
  84. package/components/layout/index.umd.cjs +1 -1
  85. package/components/list-nav/index.esm.js +303 -230
  86. package/components/list-nav/index.umd.cjs +1 -1
  87. package/components/list-view/index.css +1 -1
  88. package/components/list-view/index.esm.js +2486 -2130
  89. package/components/list-view/index.umd.cjs +1 -1
  90. package/components/lookup/index.css +1 -1
  91. package/components/lookup/index.esm.js +7474 -7272
  92. package/components/lookup/index.umd.cjs +1 -1
  93. package/components/mapping-editor/index.css +1 -1
  94. package/components/mapping-editor/index.esm.js +6139 -5949
  95. package/components/mapping-editor/index.umd.cjs +1 -1
  96. package/components/message-box/index.esm.js +1 -1
  97. package/components/message-box/index.umd.cjs +1 -1
  98. package/components/modal/index.esm.js +1 -1
  99. package/components/modal/index.umd.cjs +1 -1
  100. package/components/nav/index.esm.js +432 -371
  101. package/components/nav/index.umd.cjs +3 -3
  102. package/components/number-range/index.esm.js +1124 -0
  103. package/components/number-range/index.umd.cjs +1 -0
  104. package/components/number-range/package.json +8 -0
  105. package/components/number-range/style.js +6 -0
  106. package/components/number-spinner/index.esm.js +1155 -0
  107. package/components/number-spinner/index.umd.cjs +1 -0
  108. package/components/number-spinner/package.json +8 -0
  109. package/components/number-spinner/style.js +4 -0
  110. package/components/order/index.css +1 -1
  111. package/components/order/index.esm.js +1215 -1178
  112. package/components/order/index.umd.cjs +1 -1
  113. package/components/page-footer/index.esm.js +147 -147
  114. package/components/page-footer/index.umd.cjs +1 -1
  115. package/components/page-header/index.esm.js +1240 -1346
  116. package/components/page-header/index.umd.cjs +1 -1
  117. package/components/pagination/index.esm.js +489 -428
  118. package/components/pagination/index.umd.cjs +1 -1
  119. package/components/progress/index.esm.js +220 -220
  120. package/components/progress/index.umd.cjs +3 -3
  121. package/components/property-editor/index.esm.js +1512 -1540
  122. package/components/property-editor/index.umd.cjs +3 -3
  123. package/components/property-panel/index.css +1 -1
  124. package/components/property-panel/index.esm.js +749 -815
  125. package/components/property-panel/index.umd.cjs +1 -1
  126. package/components/query-solution/index.css +1 -0
  127. package/components/query-solution/index.esm.js +7074 -0
  128. package/components/query-solution/index.umd.cjs +1 -0
  129. package/components/query-solution/package.json +8 -0
  130. package/components/query-solution/style.js +2 -0
  131. package/components/radio-button/index.esm.js +86 -86
  132. package/components/radio-button/index.umd.cjs +1 -1
  133. package/components/radio-group/index.esm.js +442 -479
  134. package/components/radio-group/index.umd.cjs +1 -1
  135. package/components/rate/index.esm.js +213 -208
  136. package/components/rate/index.umd.cjs +1 -1
  137. package/components/response-layout/index.esm.js +116 -116
  138. package/components/response-layout/index.umd.cjs +1 -1
  139. package/components/response-layout-editor/index.esm.js +943 -918
  140. package/components/response-layout-editor/index.umd.cjs +1 -1
  141. package/components/response-toolbar/index.esm.js +1174 -1295
  142. package/components/response-toolbar/index.umd.cjs +1 -1
  143. package/components/schema-selector/index.css +1 -1
  144. package/components/schema-selector/index.esm.js +5383 -5171
  145. package/components/schema-selector/index.umd.cjs +2 -2
  146. package/components/search-box/index.esm.js +201 -201
  147. package/components/search-box/index.umd.cjs +1 -1
  148. package/components/section/index.esm.js +684 -542
  149. package/components/section/index.umd.cjs +1 -1
  150. package/components/smoke-detector/index.esm.js +121 -121
  151. package/components/smoke-detector/index.umd.cjs +1 -1
  152. package/components/spacing-editor/index.esm.js +2 -2
  153. package/components/spacing-editor/index.umd.cjs +1 -1
  154. package/components/splitter/index.esm.js +1158 -382
  155. package/components/splitter/index.umd.cjs +1 -1
  156. package/components/step/index.esm.js +232 -232
  157. package/components/step/index.umd.cjs +1 -1
  158. package/components/switch/index.esm.js +451 -487
  159. package/components/switch/index.umd.cjs +1 -1
  160. package/components/tabs/index.esm.js +2078 -2168
  161. package/components/tabs/index.umd.cjs +1 -1
  162. package/components/tags/index.esm.js +318 -320
  163. package/components/tags/index.umd.cjs +1 -1
  164. package/components/text/index.esm.js +192 -192
  165. package/components/text/index.umd.cjs +1 -1
  166. package/components/textarea/index.esm.js +471 -497
  167. package/components/textarea/index.umd.cjs +1 -1
  168. package/components/time-picker/index.esm.js +1421 -1441
  169. package/components/time-picker/index.umd.cjs +1 -1
  170. package/components/transfer/index.css +1 -1
  171. package/components/transfer/index.esm.js +430 -421
  172. package/components/transfer/index.umd.cjs +1 -1
  173. package/components/tree-grid/index.css +1 -1
  174. package/components/tree-grid/index.esm.js +6806 -6624
  175. package/components/tree-grid/index.umd.cjs +1 -1
  176. package/components/tree-view/index.esm.js +2793 -2433
  177. package/components/tree-view/index.umd.cjs +1 -1
  178. package/components/uploader/index.esm.js +165 -165
  179. package/components/uploader/index.umd.cjs +2 -2
  180. package/components/verify-detail/index.esm.js +255 -255
  181. package/components/verify-detail/index.umd.cjs +1 -1
  182. package/components/video/index.esm.js +413 -334
  183. package/components/video/index.umd.cjs +1 -1
  184. package/components/weather/index.esm.js +902 -902
  185. package/components/weather/index.umd.cjs +4 -4
  186. package/farris.all.esm.js +54155 -52847
  187. package/farris.all.umd.cjs +9 -9
  188. package/index.css +1 -1
  189. package/package.json +1 -1
  190. package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
  191. package/types/checkbox/index.d.ts +1 -0
  192. package/types/combo-list/src/components/list-container.component.d.ts +3 -0
  193. package/types/combo-list/src/components/list-container.props.d.ts +5 -1
  194. package/types/common/entity/entity-schema.d.ts +258 -0
  195. package/types/component/src/component-ref.props.d.ts +4 -0
  196. package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
  197. package/types/component/src/designer/use-designer-rules.d.ts +2 -2
  198. package/types/data-grid/index.d.ts +5 -2
  199. package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
  200. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  201. package/types/data-grid/src/data-grid.props.d.ts +2 -2
  202. package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
  203. package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
  204. package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
  205. package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
  206. package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
  207. package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
  208. package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
  209. package/types/data-view/components/column-format/date.component.d.ts +4 -0
  210. package/types/data-view/components/column-format/enum.component.d.ts +4 -0
  211. package/types/data-view/components/column-format/number.component.d.ts +4 -0
  212. package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
  213. package/types/data-view/composition/types.d.ts +19 -7
  214. package/types/data-view/composition/use-edit.d.ts +2 -1
  215. package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
  216. package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
  217. package/types/designer-canvas/src/types.d.ts +3 -3
  218. package/types/dynamic-form/index.d.ts +3 -1
  219. package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
  220. package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
  221. package/types/dynamic-form/src/types.d.ts +1 -1
  222. package/types/dynamic-resolver/index.d.ts +1 -0
  223. package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
  224. package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
  225. package/types/dynamic-resolver/src/types.d.ts +3 -2
  226. package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
  227. package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
  228. package/types/modal/src/modal.props.d.ts +1 -4
  229. package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
  230. package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
  231. package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
  232. package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
  233. package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
  234. package/types/section/src/property-config/section.property-config.d.ts +93 -0
  235. package/types/section/src/schema/schema-resolver.d.ts +2 -1
  236. package/types/tabs/src/composition/types.d.ts +2 -2
  237. package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
  238. package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
  239. package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
  240. package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
  241. package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
  242. package/types/tags/index.d.ts +36 -5
  243. package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
  244. package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
  245. package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
  246. package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
@@ -1,155 +1,157 @@
1
- import { ref as q, defineComponent as Fe, computed as Te, createVNode as J, createTextVNode as vt, inject as me, provide as Ee, watch as ze, onMounted as Ue, onBeforeUnmount as gt, mergeProps as $e, isVNode as yt } from "vue";
1
+ import { ref as H, defineComponent as Fe, computed as Te, createVNode as J, createTextVNode as gt, inject as me, provide as Ee, watch as Ue, onMounted as He, onBeforeUnmount as yt, mergeProps as $e, isVNode as ht } from "vue";
2
2
  import { findIndex as Ye } from "lodash-es";
3
- import ht from "@farris/ui-vue/components/accordion";
4
- import Ct from "@farris/ui-vue/components/avatar";
5
- import xt from "@farris/ui-vue/components/button-edit";
6
- import wt from "@farris/ui-vue/components/button-group";
7
- import bt from "@farris/ui-vue/components/calendar";
8
- import Pt from "@farris/ui-vue/components/capsule";
9
- import It from "@farris/ui-vue/components/checkbox";
10
- import St from "@farris/ui-vue/components/color-picker";
11
- import Tt from "@farris/ui-vue/components/combo-list";
12
- import Et from "@farris/ui-vue/components/content-container";
13
- import Ot from "@farris/ui-vue/components/data-grid";
14
- import Ft from "@farris/ui-vue/components/date-picker";
15
- import At from "@farris/ui-vue/components/dropdown";
16
- import Nt from "@farris/ui-vue/components/dynamic-form";
17
- import Dt from "@farris/ui-vue/components/external-container";
18
- import Bt from "@farris/ui-vue/components/events-editor";
19
- import Mt from "@farris/ui-vue/components/filter-bar";
20
- import _t from "@farris/ui-vue/components/image-cropper";
21
- import Lt from "@farris/ui-vue/components/input-group";
22
- import Rt from "@farris/ui-vue/components/layout";
23
- import kt from "@farris/ui-vue/components/list-nav";
24
- import Vt from "@farris/ui-vue/components/list-view";
25
- import Xt from "@farris/ui-vue/components/lookup";
26
- import $t from "@farris/ui-vue/components/nav";
27
- import Yt from "@farris/ui-vue/components/number-spinner";
28
- import jt from "@farris/ui-vue/components/number-range";
29
- import zt from "@farris/ui-vue/components/order";
30
- import Ut from "@farris/ui-vue/components/page-header";
31
- import Ht from "@farris/ui-vue/components/page-footer";
32
- import Wt from "@farris/ui-vue/components/pagination";
33
- import qt from "@farris/ui-vue/components/progress";
34
- import Gt from "@farris/ui-vue/components/query-solution";
35
- import Kt from "@farris/ui-vue/components/radio-group";
36
- import Qt from "@farris/ui-vue/components/rate";
37
- import Jt from "@farris/ui-vue/components/response-toolbar";
38
- import Zt from "@farris/ui-vue/components/response-layout";
39
- import en from "@farris/ui-vue/components/response-layout-editor";
40
- import tn from "@farris/ui-vue/components/search-box";
41
- import nn from "@farris/ui-vue/components/section";
42
- import on from "@farris/ui-vue/components/smoke-detector";
43
- import rn from "@farris/ui-vue/components/splitter";
44
- import sn from "@farris/ui-vue/components/step";
45
- import an from "@farris/ui-vue/components/switch";
46
- import cn from "@farris/ui-vue/components/tabs";
47
- import ln from "@farris/ui-vue/components/tags";
48
- import un from "@farris/ui-vue/components/text";
49
- import fn from "@farris/ui-vue/components/time-picker";
50
- import dn from "@farris/ui-vue/components/transfer";
51
- import pn from "@farris/ui-vue/components/tree-view";
52
- import mn from "@farris/ui-vue/components/uploader";
53
- import vn from "@farris/ui-vue/components/verify-detail";
54
- import gn from "@farris/ui-vue/components/weather";
55
- import yn from "@farris/ui-vue/components/component";
56
- import hn from "@farris/ui-vue/components/video";
57
- import Cn from "@farris/ui-vue/components/textarea";
58
- const xn = {
3
+ import Ct from "../accordion/index.esm.js";
4
+ import xt from "../avatar/index.esm.js";
5
+ import bt from "../button-edit/index.esm.js";
6
+ import wt from "../button-group/index.esm.js";
7
+ import Pt from "../calendar/index.esm.js";
8
+ import It from "../capsule/index.esm.js";
9
+ import St from "../checkbox/index.esm.js";
10
+ import Tt from "../color-picker/index.esm.js";
11
+ import Et from "../combo-list/index.esm.js";
12
+ import Ot from "../content-container/index.esm.js";
13
+ import Ft from "../data-grid/index.esm.js";
14
+ import At from "../date-picker/index.esm.js";
15
+ import Nt from "../dropdown/index.esm.js";
16
+ import Dt from "../dynamic-form/index.esm.js";
17
+ import Bt from "../external-container/index.esm.js";
18
+ import Mt from "../events-editor/index.esm.js";
19
+ import _t from "../filter-bar/index.esm.js";
20
+ import Lt from "../image-cropper/index.esm.js";
21
+ import kt from "../input-group/index.esm.js";
22
+ import Rt from "../layout/index.esm.js";
23
+ import Vt from "../list-nav/index.esm.js";
24
+ import Xt from "../list-view/index.esm.js";
25
+ import $t from "../lookup/index.esm.js";
26
+ import Yt from "../nav/index.esm.js";
27
+ import jt from "../number-spinner/index.esm.js";
28
+ import zt from "../number-range/index.esm.js";
29
+ import Ut from "../order/index.esm.js";
30
+ import Ht from "../page-header/index.esm.js";
31
+ import Wt from "../page-footer/index.esm.js";
32
+ import qt from "../pagination/index.esm.js";
33
+ import Gt from "../progress/index.esm.js";
34
+ import Kt from "../query-solution/index.esm.js";
35
+ import Qt from "../radio-group/index.esm.js";
36
+ import Jt from "../rate/index.esm.js";
37
+ import Zt from "../response-toolbar/index.esm.js";
38
+ import en from "../response-layout/index.esm.js";
39
+ import tn from "../response-layout-editor/index.esm.js";
40
+ import nn from "../search-box/index.esm.js";
41
+ import on from "../section/index.esm.js";
42
+ import rn from "../smoke-detector/index.esm.js";
43
+ import sn from "../splitter/index.esm.js";
44
+ import an from "../step/index.esm.js";
45
+ import cn from "../switch/index.esm.js";
46
+ import ln from "../tabs/index.esm.js";
47
+ import un from "../tags/index.esm.js";
48
+ import fn from "../text/index.esm.js";
49
+ import dn from "../time-picker/index.esm.js";
50
+ import pn from "../transfer/index.esm.js";
51
+ import mn from "../tree-view/index.esm.js";
52
+ import vn from "../uploader/index.esm.js";
53
+ import gn from "../verify-detail/index.esm.js";
54
+ import yn from "../weather/index.esm.js";
55
+ import hn from "../component/index.esm.js";
56
+ import Cn from "../video/index.esm.js";
57
+ import xn from "../textarea/index.esm.js";
58
+ import bn from "../tree-grid/index.esm.js";
59
+ import { getCustomClass as je } from "../common/index.esm.js";
60
+ const wn = {
59
61
  /**
60
62
  * 组件值
61
63
  */
62
64
  modelValue: { type: Object, default: {} }
63
65
  };
64
- function wn() {
65
- const P = { aroundDirection: "none", left: 2, right: 2, top: 2, bottom: 2, x: 0, y: 0 };
66
+ function Pn() {
67
+ const w = { aroundDirection: "none", left: 2, right: 2, top: 2, bottom: 2, x: 0, y: 0 };
66
68
  function B() {
67
69
  const e = document.createElementNS("http://www.w3.org/2000/svg", "path");
68
70
  return e.setAttribute("fill", "none"), e.setAttribute("stroke", "#4d53e8"), e.setAttribute("stroke-width", "2"), e.setAttribute("class", ""), e;
69
71
  }
70
- function p() {
72
+ function g() {
71
73
  const e = document.createElementNS("http://www.w3.org/2000/svg", "path");
72
74
  return e.setAttribute("fill", "none"), e.setAttribute("stroke", "#4d53e8"), e.setAttribute("stroke-width", "2"), e.setAttribute("stroke-linecap", "round"), e;
73
75
  }
74
- function w() {
76
+ function C() {
75
77
  const e = document.createElementNS("http://www.w3.org/2000/svg", "path");
76
78
  return e.setAttribute("fill", "none"), e.setAttribute("stroke", "#4d53e8"), e.setAttribute("stroke-width", "2"), e.setAttribute("stroke-linecap", "round"), e;
77
79
  }
78
- function h(e, t, a, b) {
79
- const c = (i) => {
80
- i.key === "Delete" && (e.indexOf("^"), document.removeEventListener("keydown", c), t.remove());
80
+ function b(e, t, c, v) {
81
+ const s = (n) => {
82
+ n.key === "Delete" && (e.indexOf("^"), document.removeEventListener("keydown", s), t.remove());
81
83
  };
82
- a.addEventListener("mouseenter", () => {
83
- a.setAttribute("stroke", "#37d0ff"), b.setAttribute("stroke", "#37d0ff"), a.setAttribute("stroke-width", "3"), document.addEventListener("keydown", c);
84
- }), a.addEventListener("mouseleave", () => {
85
- a.setAttribute("stroke", "#4d53e8"), a.setAttribute("stroke-width", "2"), b.setAttribute("stroke", "#4d53e8"), document.removeEventListener("keydown", c);
84
+ c.addEventListener("mouseenter", () => {
85
+ c.setAttribute("stroke", "#37d0ff"), v.setAttribute("stroke", "#37d0ff"), c.setAttribute("stroke-width", "3"), document.addEventListener("keydown", s);
86
+ }), c.addEventListener("mouseleave", () => {
87
+ c.setAttribute("stroke", "#4d53e8"), c.setAttribute("stroke-width", "2"), v.setAttribute("stroke", "#4d53e8"), document.removeEventListener("keydown", s);
86
88
  });
87
89
  }
88
- function f(e) {
90
+ function p(e) {
89
91
  let t = document.getElementById(e);
90
92
  if (t == null) {
91
- const a = document.createElementNS("http://www.w3.org/2000/svg", "svg"), b = B();
92
- a.appendChild(b);
93
- const c = p();
94
- a.appendChild(c);
95
- const i = w();
96
- a.appendChild(i);
97
- const z = w();
98
- a.appendChild(z), t = document.createElement("div"), t.id = e, t.style.position = "absolute", t.appendChild(a), h(e, t, b, c);
99
- const V = document.getElementById("svg-container");
100
- return V && V.appendChild(t), t;
93
+ const c = document.createElementNS("http://www.w3.org/2000/svg", "svg"), v = B();
94
+ c.appendChild(v);
95
+ const s = g();
96
+ c.appendChild(s);
97
+ const n = C();
98
+ c.appendChild(n);
99
+ const j = C();
100
+ c.appendChild(j), t = document.createElement("div"), t.id = e, t.style.position = "absolute", t.appendChild(c), b(e, t, v, s);
101
+ const L = document.getElementById("svg-container");
102
+ return L && L.appendChild(t), t;
101
103
  }
102
104
  return t;
103
105
  }
104
- function F(e, t, a, b, c) {
105
- const i = { x: 0, y: 0 };
106
- return e === "west" && (t === "north_west" && (a === "north" && (i.x = 0, i.y = 0 - c / 2), a === "west" && (i.x = 0 - b / 2, i.y = 0)), t === "north_east" && (a === "north" && (i.x = -100, i.y = 0 - c / 2), a === "east" && (i.x = -100, i.y = 0 - c / 2)), t === "south_east" && (a === "south" && (i.x = -100, i.y = 0 + c / 2), a === "east" && (i.x = -100, i.y = 0 + c / 2)), t === "south_west" && (a === "south" && (i.x = 0, i.y = 0 + c / 2), a === "west" && (i.x = 0 - b / 2, i.y = 0))), e === "east" && (t === "north_west" && (a === "north" && (i.x = -100, i.y = 0 - c / 2), a === "west" && (i.x = 100, i.y = 0 - c / 2)), t === "north_east" && (a === "north" && (i.x = 0, i.y = 0 - c / 2), a === "east" && (i.x = 0 + b / 2, i.y = 0)), t === "south_east" && (a === "south" && (i.x = 0, i.y = 0 + c / 2), a === "east" && (i.x = 0 + b / 2, i.y = 0)), t === "south_west" && (a === "south" && (i.x = 100, i.y = 0 + c / 2), a === "west" && (i.x = 100, i.y = 0 + c / 2))), e === "north" && (t === "north_west" && (a === "north" && (i.x = 0, i.y = 0 - c / 2), a === "west" && (i.x = 0 - b / 2, i.y = 0)), t === "north_east" && (a === "north" && (i.x = 0, i.y = 0 - c / 2), a === "east" && (i.x = 0 + b / 2, i.y = 0)), t === "south_east" && (a === "south" && (i.x = 0 + b / 2, i.y = -100), a === "east" && (i.x = 0 + b / 2, i.y = -100)), t === "south_west" && (a === "south" && (i.x = 0 - b / 2, i.y = -100), a === "west" && (i.x = 0 - b / 2, i.y = -100))), e === "south" && (t === "north_west" && (a === "north" && (i.x = 0 - b / 2, i.y = 100), a === "west" && (i.x = 0 - b / 2, i.y = 100)), t === "north_east" && (a === "north" && (i.x = 0 + b / 2, i.y = 100), a === "east" && (i.x = 0 + b / 2, i.y = 100)), t === "south_east" && (a === "south" && (i.x = 0, i.y = 0 + c / 2), a === "east" && (i.x = 0 + b / 2, i.y = 0)), t === "south_west" && (a === "south" && (i.x = 0, i.y = c / 2), a === "west" && (i.x = 0 - b / 2, i.y = 0))), i;
106
+ function T(e, t, c, v, s) {
107
+ const n = { x: 0, y: 0 };
108
+ return e === "west" && (t === "north_west" && (c === "north" && (n.x = 0, n.y = 0 - s / 2), c === "west" && (n.x = 0 - v / 2, n.y = 0)), t === "north_east" && (c === "north" && (n.x = -100, n.y = 0 - s / 2), c === "east" && (n.x = -100, n.y = 0 - s / 2)), t === "south_east" && (c === "south" && (n.x = -100, n.y = 0 + s / 2), c === "east" && (n.x = -100, n.y = 0 + s / 2)), t === "south_west" && (c === "south" && (n.x = 0, n.y = 0 + s / 2), c === "west" && (n.x = 0 - v / 2, n.y = 0))), e === "east" && (t === "north_west" && (c === "north" && (n.x = -100, n.y = 0 - s / 2), c === "west" && (n.x = 100, n.y = 0 - s / 2)), t === "north_east" && (c === "north" && (n.x = 0, n.y = 0 - s / 2), c === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_east" && (c === "south" && (n.x = 0, n.y = 0 + s / 2), c === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_west" && (c === "south" && (n.x = 100, n.y = 0 + s / 2), c === "west" && (n.x = 100, n.y = 0 + s / 2))), e === "north" && (t === "north_west" && (c === "north" && (n.x = 0, n.y = 0 - s / 2), c === "west" && (n.x = 0 - v / 2, n.y = 0)), t === "north_east" && (c === "north" && (n.x = 0, n.y = 0 - s / 2), c === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_east" && (c === "south" && (n.x = 0 + v / 2, n.y = -100), c === "east" && (n.x = 0 + v / 2, n.y = -100)), t === "south_west" && (c === "south" && (n.x = 0 - v / 2, n.y = -100), c === "west" && (n.x = 0 - v / 2, n.y = -100))), e === "south" && (t === "north_west" && (c === "north" && (n.x = 0 - v / 2, n.y = 100), c === "west" && (n.x = 0 - v / 2, n.y = 100)), t === "north_east" && (c === "north" && (n.x = 0 + v / 2, n.y = 100), c === "east" && (n.x = 0 + v / 2, n.y = 100)), t === "south_east" && (c === "south" && (n.x = 0, n.y = 0 + s / 2), c === "east" && (n.x = 0 + v / 2, n.y = 0)), t === "south_west" && (c === "south" && (n.x = 0, n.y = s / 2), c === "west" && (n.x = 0 - v / 2, n.y = 0))), n;
107
109
  }
108
- function C(e, t, a, b) {
109
- const c = { x: 0, y: 0 };
110
- return e === "south" && (t === "west" && (c.x = -100, c.y = 0 - b / 2), t === "east" && (c.x = 100, c.y = -100), t === "south" && (c.x = 0 - a / 2, c.y = 100), (t === "north" || t === "center") && (c.x = 0, c.y = 0 - b / 2)), e === "north" && (t === "west" && (c.x = -100, c.y = 100), t === "east" && (c.x = 100, c.y = 100), t === "north" && (c.x = 0 - a / 2, c.y = -100), (t === "south" || t === "center") && (c.x = 0, c.y = b / 2)), e === "east" && (t === "north" && (c.y = -100, c.x = -100), t === "south" && (c.y = 100, c.x = -100), t === "east" && (c.x = 100, c.y = 100), (t === "west" || t === "center") && (c.x = 0 - a / 2, c.y = 0)), e === "west" && (t === "north" && (c.y = -100, c.x = 100), t === "south" && (c.y = 100, c.x = 100), t === "west" && (c.x = -100, c.y = b / 2), (t === "east" || t === "center") && (c.x = a / 2, c.y = 0)), c;
110
+ function O(e, t, c, v) {
111
+ const s = { x: 0, y: 0 };
112
+ return e === "south" && (t === "west" && (s.x = -100, s.y = 0 - v / 2), t === "east" && (s.x = 100, s.y = -100), t === "south" && (s.x = 0 - c / 2, s.y = 100), (t === "north" || t === "center") && (s.x = 0, s.y = 0 - v / 2)), e === "north" && (t === "west" && (s.x = -100, s.y = 100), t === "east" && (s.x = 100, s.y = 100), t === "north" && (s.x = 0 - c / 2, s.y = -100), (t === "south" || t === "center") && (s.x = 0, s.y = v / 2)), e === "east" && (t === "north" && (s.y = -100, s.x = -100), t === "south" && (s.y = 100, s.x = -100), t === "east" && (s.x = 100, s.y = 100), (t === "west" || t === "center") && (s.x = 0 - c / 2, s.y = 0)), e === "west" && (t === "north" && (s.y = -100, s.x = 100), t === "south" && (s.y = 100, s.x = 100), t === "west" && (s.x = -100, s.y = v / 2), (t === "east" || t === "center") && (s.x = c / 2, s.y = 0)), s;
111
113
  }
112
- function I(e, t, a, b, c, i, z) {
113
- const V = z === "south" || z === "east" ? "portrait" : "landscape", ne = c, R = V === "landscape" ? "east" : "north", ie = z === "center" ? V === "landscape" ? "west" : "south" : z, se = F(ne, i, R, e, t), { x: D, y } = se, H = C(R, ie, e, t), { x: W, y: K } = H;
114
+ function d(e, t, c, v, s, n, j) {
115
+ const L = j === "south" || j === "east" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "east" : "north", ie = j === "center" ? L === "landscape" ? "west" : "south" : j, se = T(ee, n, V, e, t), { x: N, y: h } = se, W = O(V, ie, e, t), { x: q, y: K } = W;
114
116
  K < 0 && (t += Math.abs(K));
115
- const de = /* @__PURE__ */ new Map([["default", 0 + D], ["portrait", 0 + D], ["landscape", 0 + D]]), oe = /* @__PURE__ */ new Map([["default", t + y], ["portrait", t + y], ["landscape", t + y]]);
116
- D < 0 && (e += Math.abs(D)), W > 0 && (e += W);
117
- const ye = /* @__PURE__ */ new Map([["default", e + W], ["portrait", e + W], ["landscape", e + W]]), ce = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), le = b.left > P.left, ae = b.bottom > P.bottom, pe = le ? 0 : ae ? e / 2 : de.get(V), he = ae ? t + b.bottom : le ? t / 2 : oe.get(V), Ce = ye.get(V), ve = ce.get(V);
118
- return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: W, y: K }];
117
+ const de = /* @__PURE__ */ new Map([["default", 0 + N], ["portrait", 0 + N], ["landscape", 0 + N]]), oe = /* @__PURE__ */ new Map([["default", t + h], ["portrait", t + h], ["landscape", t + h]]);
118
+ N < 0 && (e += Math.abs(N)), q > 0 && (e += q);
119
+ const ye = /* @__PURE__ */ new Map([["default", e + q], ["portrait", e + q], ["landscape", e + q]]), ce = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), le = v.left > w.left, ae = v.bottom > w.bottom, pe = le ? 0 : ae ? e / 2 : de.get(L), he = ae ? t + v.bottom : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
120
+ return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
119
121
  }
120
- function u(e, t, a, b, c, i, z) {
121
- const V = z === "south" || z === "west" ? "portrait" : "landscape", ne = c, R = V === "landscape" ? "west" : "north", ie = z, se = F(ne, i, R, e, t), { x: D, y } = se, H = C(R, ie, e, t), { x: W, y: K } = H;
122
- K < 0 && (t += Math.abs(K)), D > 0 && (e += D), W < 0 && (e += Math.abs(W));
123
- const de = /* @__PURE__ */ new Map([["default", e + D], ["portrait", e + D], ["landscape", e + D]]), oe = /* @__PURE__ */ new Map([["default", t + y], ["portrait", t + y], ["landscape", t + y]]), ye = /* @__PURE__ */ new Map([["default", 0 + W], ["portrait", 0 + W], ["landscape", 0 + W]]), ce = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), le = b.right > P.right, ae = b.bottom > P.bottom, pe = le ? e + b.right : ae ? e / 2 : de.get(V), he = ae ? t + b.bottom : le ? t / 2 : oe.get(V), Ce = ye.get(V), ve = ce.get(V);
124
- return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: W, y: K }];
122
+ function S(e, t, c, v, s, n, j) {
123
+ const L = j === "south" || j === "west" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "west" : "north", ie = j, se = T(ee, n, V, e, t), { x: N, y: h } = se, W = O(V, ie, e, t), { x: q, y: K } = W;
124
+ K < 0 && (t += Math.abs(K)), N > 0 && (e += N), q < 0 && (e += Math.abs(q));
125
+ const de = /* @__PURE__ */ new Map([["default", e + N], ["portrait", e + N], ["landscape", e + N]]), oe = /* @__PURE__ */ new Map([["default", t + h], ["portrait", t + h], ["landscape", t + h]]), ye = /* @__PURE__ */ new Map([["default", 0 + q], ["portrait", 0 + q], ["landscape", 0 + q]]), ce = /* @__PURE__ */ new Map([["default", 0 + K], ["portrait", 0 + K], ["landscape", 0 + K]]), le = v.right > w.right, ae = v.bottom > w.bottom, pe = le ? e + v.right : ae ? e / 2 : de.get(L), he = ae ? t + v.bottom : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
126
+ return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
125
127
  }
126
- function n(e, t, a, b, c, i, z) {
127
- const V = z === "north" || z === "east" ? "portrait" : "landscape", ne = c, R = V === "landscape" ? "east" : "south", ie = z, se = F(ne, i, R, e, t), { x: D, y } = se, H = C(R, ie, e, t), { x: W, y: K } = H, de = /* @__PURE__ */ new Map([["default", 0 + D], ["portrait", 0 + D], ["landscape", 0 + D]]), oe = /* @__PURE__ */ new Map([["default", 0 + y], ["portrait", 0 + y], ["landscape", 0 + y]]);
128
- D < 0 && (e += Math.abs(D)), y < 0 && (t += Math.abs(y)), W > 0 && (e += W), K > 0 && (t += K);
129
- const ye = /* @__PURE__ */ new Map([["default", e + W], ["portrait", e + W], ["landscape", e + W]]), ce = /* @__PURE__ */ new Map([["default", t + K], ["portrait", t + K], ["landscape", t + K]]), le = b.left > P.left, ae = b.top > P.top, pe = le ? 0 : ae ? e / 2 : de.get(V), he = ae ? 0 : le ? t / 2 : oe.get(V), Ce = ye.get(V), ve = ce.get(V);
130
- return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: W, y: K }];
128
+ function f(e, t, c, v, s, n, j) {
129
+ const L = j === "north" || j === "east" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "east" : "south", ie = j, se = T(ee, n, V, e, t), { x: N, y: h } = se, W = O(V, ie, e, t), { x: q, y: K } = W, de = /* @__PURE__ */ new Map([["default", 0 + N], ["portrait", 0 + N], ["landscape", 0 + N]]), oe = /* @__PURE__ */ new Map([["default", 0 + h], ["portrait", 0 + h], ["landscape", 0 + h]]);
130
+ N < 0 && (e += Math.abs(N)), h < 0 && (t += Math.abs(h)), q > 0 && (e += q), K > 0 && (t += K);
131
+ const ye = /* @__PURE__ */ new Map([["default", e + q], ["portrait", e + q], ["landscape", e + q]]), ce = /* @__PURE__ */ new Map([["default", t + K], ["portrait", t + K], ["landscape", t + K]]), le = v.left > w.left, ae = v.top > w.top, pe = le ? 0 : ae ? e / 2 : de.get(L), he = ae ? 0 : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
132
+ return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
131
133
  }
132
- function o(e, t, a, b, c, i, z) {
133
- const V = z === "north" || z === "west" ? "portrait" : "landscape", ne = c, R = V === "landscape" ? "west" : "south", ie = z, se = F(ne, i, R, e, t), { x: D, y } = se, H = C(R, ie, e, t), { x: W, y: K } = H;
134
- W < 0 && (e += Math.abs(W));
135
- const de = /* @__PURE__ */ new Map([["default", e + D], ["portrait", e + D], ["landscape", e + D]]), oe = /* @__PURE__ */ new Map([["default", 0 + y], ["portrait", 0 + y], ["landscape", 0 + y]]);
136
- y < 0 && (t += Math.abs(y)), K > 0 && (t += K);
137
- const ye = /* @__PURE__ */ new Map([["default", 0 + W], ["portrait", 0 + W], ["landscape", 0 + W]]), ce = /* @__PURE__ */ new Map([["default", t + K], ["portrait", t + K], ["landscape", t + K]]), le = b.right > P.right, ae = b.top > P.top, pe = le ? e + b.right : ae ? e / 2 : de.get(V), he = ae ? 0 : le ? t / 2 : oe.get(V), Ce = ye.get(V), ve = ce.get(V);
138
- return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: W, y: K }];
134
+ function r(e, t, c, v, s, n, j) {
135
+ const L = j === "north" || j === "west" ? "portrait" : "landscape", ee = s, V = L === "landscape" ? "west" : "south", ie = j, se = T(ee, n, V, e, t), { x: N, y: h } = se, W = O(V, ie, e, t), { x: q, y: K } = W;
136
+ q < 0 && (e += Math.abs(q));
137
+ const de = /* @__PURE__ */ new Map([["default", e + N], ["portrait", e + N], ["landscape", e + N]]), oe = /* @__PURE__ */ new Map([["default", 0 + h], ["portrait", 0 + h], ["landscape", 0 + h]]);
138
+ h < 0 && (t += Math.abs(h)), K > 0 && (t += K);
139
+ const ye = /* @__PURE__ */ new Map([["default", 0 + q], ["portrait", 0 + q], ["landscape", 0 + q]]), ce = /* @__PURE__ */ new Map([["default", t + K], ["portrait", t + K], ["landscape", t + K]]), le = v.right > w.right, ae = v.top > w.top, pe = le ? e + v.right : ae ? e / 2 : de.get(L), he = ae ? 0 : le ? t / 2 : oe.get(L), Ce = ye.get(L), ve = ce.get(L);
140
+ return [{ x: pe, y: he }, { x: Ce, y: ve }, { x: q, y: K }];
139
141
  }
140
- const s = /* @__PURE__ */ new Map([
141
- ["north_east", I],
142
- ["north_west", u],
143
- ["south_east", n],
144
- ["south_west", o]
145
- ]), v = /* @__PURE__ */ new Map([
142
+ const i = /* @__PURE__ */ new Map([
143
+ ["north_east", d],
144
+ ["north_west", S],
145
+ ["south_east", f],
146
+ ["south_west", r]
147
+ ]), y = /* @__PURE__ */ new Map([
146
148
  ["east", ["north_west", "south_west"]],
147
149
  ["west", ["north_east", "south_east"]],
148
150
  ["north", ["south_west", "south_east"]],
149
151
  ["south", ["north_west", "north_east"]],
150
152
  ["center", []]
151
153
  ]);
152
- function m(e, t) {
154
+ function a(e, t) {
153
155
  return e === "north_west" ? {
154
156
  aroundDirection: "north_west",
155
157
  left: t.left,
@@ -164,7 +166,7 @@ function wn() {
164
166
  bottom: t.bottom
165
167
  } : t;
166
168
  }
167
- function Y(e, t) {
169
+ function F(e, t) {
168
170
  return e === "north_east" ? {
169
171
  left: 100,
170
172
  right: t.right,
@@ -177,7 +179,7 @@ function wn() {
177
179
  bottom: t.bottom
178
180
  } : t;
179
181
  }
180
- function j(e, t) {
182
+ function $(e, t) {
181
183
  return e === "south_west" ? {
182
184
  left: t.left,
183
185
  right: t.right,
@@ -190,7 +192,7 @@ function wn() {
190
192
  bottom: t.bottom
191
193
  } : t;
192
194
  }
193
- function X(e, t) {
195
+ function R(e, t) {
194
196
  return e === "north_west" ? {
195
197
  left: t.left,
196
198
  right: t.right,
@@ -206,84 +208,84 @@ function wn() {
206
208
  function l(e, t) {
207
209
  return t;
208
210
  }
209
- const A = /* @__PURE__ */ new Map([
210
- ["east", m],
211
- ["west", Y],
212
- ["north", j],
213
- ["south", X],
211
+ const E = /* @__PURE__ */ new Map([
212
+ ["east", a],
213
+ ["west", F],
214
+ ["north", $],
215
+ ["south", R],
214
216
  ["center", l]
215
217
  ]);
216
- function U(e, t, a, b) {
217
- const c = t.x - e.x, i = t.y - e.y, z = c >= 0 ? "east" : "west", V = i >= 0 ? "south" : "north", ne = `${V}_${z}`, ie = (v.get(a) || []).includes(ne), se = A.get(a), D = ie ? se(ne, P) : P, y = Math.abs(c), H = Math.abs(i), W = s.get(`${V}_${z}`), [K, de, oe] = W(
218
- y,
219
- H,
218
+ function U(e, t, c, v) {
219
+ const s = t.x - e.x, n = t.y - e.y, j = s >= 0 ? "east" : "west", L = n >= 0 ? "south" : "north", ee = `${L}_${j}`, ie = (y.get(c) || []).includes(ee), se = E.get(c), N = ie ? se(ee, w) : w, h = Math.abs(s), W = Math.abs(n), q = i.get(`${L}_${j}`), [K, de, oe] = q(
220
+ h,
221
+ W,
220
222
  ie,
221
- D,
222
- a,
223
- ne,
224
- b
225
- ), ye = z === "west" ? oe.x < 0 ? Math.abs(oe.x) : 0 : oe.x > 0 ? oe.x : 0, ce = D.left + D.right + y + ye, le = V === "north" ? oe.y < 0 ? Math.abs(oe.y) : 0 : oe.y > 0 ? oe.y : 0, ae = D.top + D.bottom + H + le, pe = z === "east" ? e.x - D.left : e.x + D.right - ce, he = V === "south" ? e.y - D.top : e.y + D.bottom - ae, Ce = z === "east" ? D.left : ce - D.right, ve = V === "north" ? ae - D.bottom : D.top, Be = z === "west" ? oe.x < 0 ? Math.abs(oe.x) : 0 : oe.x < 0 ? ce : ce - oe.x, Ae = V === "north" ? oe.y < 0 ? Math.abs(oe.y) : 0 : oe.y < 0 ? ae : ae - oe.y;
223
+ N,
224
+ c,
225
+ ee,
226
+ v
227
+ ), ye = j === "west" ? oe.x < 0 ? Math.abs(oe.x) : 0 : oe.x > 0 ? oe.x : 0, ce = N.left + N.right + h + ye, le = L === "north" ? oe.y < 0 ? Math.abs(oe.y) : 0 : oe.y > 0 ? oe.y : 0, ae = N.top + N.bottom + W + le, pe = j === "east" ? e.x - N.left : e.x + N.right - ce, he = L === "south" ? e.y - N.top : e.y + N.bottom - ae, Ce = j === "east" ? N.left : ce - N.right, ve = L === "north" ? ae - N.bottom : N.top, Be = j === "west" ? oe.x < 0 ? Math.abs(oe.x) : 0 : oe.x < 0 ? ce : ce - oe.x, Ae = L === "north" ? oe.y < 0 ? Math.abs(oe.y) : 0 : oe.y < 0 ? ae : ae - oe.y;
226
228
  return { width: ce, height: ae, left: pe, top: he, startPoinInBoundray: { x: Ce, y: ve }, firstControlPoint: K, secondControlPoint: de, endPoinInBoundray: { x: Be, y: Ae } };
227
229
  }
228
- function $(e, t, a, b, c) {
229
- e.style.position = "absolute", e.style.alignItems = "center", e.style.left = `${t}px`, e.style.top = `${a}px`, e.style.width = b + "px", e.style.height = c + "px";
230
+ function Y(e, t, c, v, s) {
231
+ e.style.position = "absolute", e.style.alignItems = "center", e.style.left = `${t}px`, e.style.top = `${c}px`, e.style.width = v + "px", e.style.height = s + "px";
230
232
  }
231
- function re(e, t, a, b, c, i, z) {
232
- const V = e.childNodes[0];
233
- V.setAttribute("width", String(t)), V.setAttribute("height", String(a)), e.appendChild(V);
234
- const ne = V.childNodes[0], R = `${b.x} ${b.y}`, ie = `${c.x} ${c.y}`, se = `${i.x} ${i.y}`, D = `${z.x} ${z.y}`, y = "M ".concat(R).concat(" C ").concat(ie).concat("," + se + ",").concat(D);
235
- ne.setAttribute("d", y), ne.setAttribute("fill", "none"), ne.setAttribute("stroke", "#4d53e8"), ne.setAttribute("stroke-width", "2"), ne.setAttribute("class", "");
233
+ function re(e, t, c, v, s, n, j) {
234
+ const L = e.childNodes[0];
235
+ L.setAttribute("width", String(t)), L.setAttribute("height", String(c)), e.appendChild(L);
236
+ const ee = L.childNodes[0], V = `${v.x} ${v.y}`, ie = `${s.x} ${s.y}`, se = `${n.x} ${n.y}`, N = `${j.x} ${j.y}`, h = "M ".concat(V).concat(" C ").concat(ie).concat("," + se + ",").concat(N);
237
+ ee.setAttribute("d", h), ee.setAttribute("fill", "none"), ee.setAttribute("stroke", "#4d53e8"), ee.setAttribute("stroke-width", "2"), ee.setAttribute("class", "");
236
238
  }
237
- function Q(e, t, a, b, c) {
239
+ function Q(e, t, c, v, s) {
238
240
  const {
239
- width: i,
240
- height: z,
241
- left: V,
242
- top: ne,
243
- startPoinInBoundray: R,
241
+ width: n,
242
+ height: j,
243
+ left: L,
244
+ top: ee,
245
+ startPoinInBoundray: V,
244
246
  firstControlPoint: ie,
245
247
  secondControlPoint: se,
246
- endPoinInBoundray: D
247
- } = U(t, a, b, c);
248
- $(e, V, ne, i, z), re(e, i, z, R, ie, se, D);
248
+ endPoinInBoundray: N
249
+ } = U(t, c, v, s);
250
+ Y(e, L, ee, n, j), re(e, n, j, V, ie, se, N);
249
251
  }
250
- function d(e, t, a, b, c) {
251
- const i = f(e);
252
- Q(i, t, a, b, c);
252
+ function m(e, t, c, v, s) {
253
+ const n = p(e);
254
+ Q(n, t, c, v, s);
253
255
  }
254
256
  function G(e) {
255
257
  return Number(e.replace("px", ""));
256
258
  }
257
- function g(e) {
259
+ function Z(e) {
258
260
  if (e !== null) {
259
- const t = e.parentNode, a = G(t.style.left), b = G(t.style.top);
261
+ const t = e.parentNode, c = G(t.style.left), v = G(t.style.top);
260
262
  return {
261
- x: a + e.offsetLeft + e.offsetWidth / 2,
262
- y: b + e.offsetTop + e.offsetHeight / 2
263
+ x: c + e.offsetLeft + e.offsetWidth / 2,
264
+ y: v + e.offsetTop + e.offsetHeight / 2
263
265
  };
264
266
  }
265
267
  return { x: 0, y: 0 };
266
268
  }
267
- function S(e, t) {
268
- const a = document.getElementById(e), b = document.getElementById(t), c = g(a), i = g(b), z = c.x + 2, V = c.y, ne = i.x - 2, R = i.y;
269
- return { startPoint: { x: z, y: V }, endPoint: { x: ne, y: R } };
269
+ function u(e, t) {
270
+ const c = document.getElementById(e), v = document.getElementById(t), s = Z(c), n = Z(v), j = s.x + 2, L = s.y, ee = n.x - 2, V = n.y;
271
+ return { startPoint: { x: j, y: L }, endPoint: { x: ee, y: V } };
270
272
  }
271
- function N(e, t, a, b) {
272
- const { startPoint: c, endPoint: i } = S(e, t);
273
- d(`${e}_${t}`, c, i, a, b);
273
+ function A(e, t, c, v) {
274
+ const { startPoint: s, endPoint: n } = u(e, t);
275
+ m(`${e}_${t}`, s, n, c, v);
274
276
  }
275
- return { connect: N, drawing: d };
277
+ return { connect: A, drawing: m };
276
278
  }
277
- function bn(O) {
278
- const Z = q(), E = q(0), P = q(0), B = q({ x: 0, y: 0 }), p = q(), { drawing: w } = O;
279
- function h(m) {
280
- return Number(m.replace("px", ""));
279
+ function In(D) {
280
+ const z = H(), I = H(0), w = H(0), B = H({ x: 0, y: 0 }), g = H(), { drawing: C } = D;
281
+ function b(a) {
282
+ return Number(a.replace("px", ""));
281
283
  }
282
- function f(m) {
283
- return (m && m.className && m.className.split ? m.className.split(" ") : []).includes("f-flow-ancher");
284
+ function p(a) {
285
+ return (a && a.className && a.className.split ? a.className.split(" ") : []).includes("f-flow-ancher");
284
286
  }
285
- function F(m) {
286
- switch ((m ? m.className.split(" ") : []).find((X) => X.startsWith("circle-")) || "") {
287
+ function T(a) {
288
+ switch ((a ? a.className.split(" ") : []).find((R) => R.startsWith("circle-")) || "") {
287
289
  case "circle-left":
288
290
  return "west";
289
291
  case "circle-right":
@@ -296,42 +298,42 @@ function bn(O) {
296
298
  return "center";
297
299
  }
298
300
  }
299
- function C(m, Y, j) {
300
- const X = j.getBoundingClientRect();
301
- E.value = X.left, P.value = X.top, B.value = { x: m, y: Y }, Z.value = F(j);
301
+ function O(a, F, $) {
302
+ const R = $.getBoundingClientRect();
303
+ I.value = R.left, w.value = R.top, B.value = { x: a, y: F }, z.value = T($);
302
304
  }
303
- function I(m) {
304
- var $;
305
- const Y = m.clientX - E.value, j = m.clientY - P.value, X = B.value.x + Y, l = B.value.y + j, A = m.target, U = A && typeof A.className == "string" && f(A) ? F(A) : "center";
306
- w(
307
- `${($ = p.value) == null ? void 0 : $.id}_curve_to`,
305
+ function d(a) {
306
+ var Y;
307
+ const F = a.clientX - I.value, $ = a.clientY - w.value, R = B.value.x + F, l = B.value.y + $, E = a.target, U = E && typeof E.className == "string" && p(E) ? T(E) : "center";
308
+ C(
309
+ `${(Y = g.value) == null ? void 0 : Y.id}_curve_to`,
308
310
  { x: B.value.x, y: B.value.y },
309
- { x: X, y: l },
310
- Z.value,
311
+ { x: R, y: l },
312
+ z.value,
311
313
  U
312
314
  );
313
315
  }
314
- function u(m) {
315
- const Y = document.getElementById(m);
316
- Y && Y.remove();
316
+ function S(a) {
317
+ const F = document.getElementById(a);
318
+ F && F.remove();
317
319
  }
318
- function n() {
319
- document.addEventListener("mousemove", I);
320
+ function f() {
321
+ document.addEventListener("mousemove", d);
320
322
  }
321
- function o() {
322
- document.removeEventListener("mousemove", I);
323
+ function r() {
324
+ document.removeEventListener("mousemove", d);
323
325
  }
324
- function s(m) {
325
- p.value = void 0, o();
326
+ function i(a) {
327
+ g.value = void 0, r();
326
328
  }
327
- function v(m, Y) {
328
- p.value = document.getElementById(m);
329
- const j = p.value.offsetParent, X = p.value.getBoundingClientRect(), l = j.getBoundingClientRect(), A = h(j.style.left) + (X.left - l.left), U = h(j.style.top) + (X.top - l.top), $ = A + X.width / 2, re = U + X.height / 2;
330
- C($, re, p.value), n();
329
+ function y(a, F) {
330
+ g.value = document.getElementById(a);
331
+ const $ = g.value.offsetParent, R = g.value.getBoundingClientRect(), l = $.getBoundingClientRect(), E = b($.style.left) + (R.left - l.left), U = b($.style.top) + (R.top - l.top), Y = E + R.width / 2, re = U + R.height / 2;
332
+ O(Y, re, g.value), f();
331
333
  }
332
- return { drawFrom: v, eraseDrawingLine: u, finishToDraw: s, getAncherPointPosition: F, isAncherPoint: f };
334
+ return { drawFrom: y, eraseDrawingLine: S, finishToDraw: i, getAncherPointPosition: T, isAncherPoint: p };
333
335
  }
334
- const Pn = {
336
+ const Sn = {
335
337
  id: { type: String, default: "" },
336
338
  type: { type: String, default: "" },
337
339
  /**
@@ -341,35 +343,35 @@ const Pn = {
341
343
  x: { type: Number, default: 0 },
342
344
  y: { type: Number, default: 0 },
343
345
  connection: { type: Array, default: [] }
344
- }, Oe = q(0);
345
- function In(O, Z) {
346
- const E = Z.getBoundingClientRect(), P = O.getBoundingClientRect(), B = P.top >= E.top, p = P.top <= E.bottom;
347
- return B && p;
346
+ }, Oe = H(0);
347
+ function Tn(D, z) {
348
+ const I = z.getBoundingClientRect(), w = D.getBoundingClientRect(), B = w.top >= I.top, g = w.top <= I.bottom;
349
+ return B && g;
348
350
  }
349
- function et(O) {
350
- if (!O)
351
+ function tt(D) {
352
+ if (!D)
351
353
  return;
352
- let Z;
353
- if (O.className.includes("dgComponentSelected") ? Z = O : Z = O.querySelector(".dgComponentSelected"), !Z)
354
+ let z;
355
+ if (D.className.includes("dgComponentSelected") ? z = D : z = D.querySelector(".dgComponentSelected"), !z)
354
356
  return;
355
- const E = Z.getBoundingClientRect();
356
- if (E.width === 0 && E.height === 0)
357
+ const I = z.getBoundingClientRect();
358
+ if (I.width === 0 && I.height === 0)
357
359
  return;
358
- const P = Z.querySelector(".component-btn-group");
359
- if (P) {
360
- if (!In(Z, O)) {
361
- P.style.display = "none";
360
+ const w = z.querySelector(".component-btn-group");
361
+ if (w) {
362
+ if (!Tn(z, D)) {
363
+ w.style.display = "none";
362
364
  return;
363
365
  }
364
- P.style.display = "";
365
- const p = P.getBoundingClientRect(), w = P.querySelector("div");
366
- if (w) {
367
- const h = w.getBoundingClientRect();
368
- w.style.top = p.top + "px", w.style.left = p.left - h.width + "px";
366
+ w.style.display = "";
367
+ const g = w.getBoundingClientRect(), C = w.querySelector("div");
368
+ if (C) {
369
+ const b = C.getBoundingClientRect();
370
+ C.style.top = g.top + "px", C.style.left = g.left - b.width + "px";
369
371
  }
370
372
  }
371
373
  }
372
- const Sn = {
374
+ const En = {
373
375
  /**
374
376
  * 组件值
375
377
  */
@@ -377,385 +379,385 @@ const Sn = {
377
379
  componentId: { type: String, default: "" }
378
380
  };
379
381
  var Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
380
- function Tn(O) {
381
- return O && O.__esModule && Object.prototype.hasOwnProperty.call(O, "default") ? O.default : O;
382
+ function On(D) {
383
+ return D && D.__esModule && Object.prototype.hasOwnProperty.call(D, "default") ? D.default : D;
382
384
  }
383
- function De(O) {
384
- throw new Error('Could not dynamically require "' + O + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
385
+ function De(D) {
386
+ throw new Error('Could not dynamically require "' + D + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
385
387
  }
386
- var tt = { exports: {} };
387
- (function(O, Z) {
388
- (function(E) {
389
- O.exports = E();
388
+ var nt = { exports: {} };
389
+ (function(D, z) {
390
+ (function(I) {
391
+ D.exports = I();
390
392
  })(function() {
391
393
  return (/* @__PURE__ */ function() {
392
- function E(P, B, p) {
393
- function w(F, C) {
394
- if (!B[F]) {
395
- if (!P[F]) {
396
- var I = typeof De == "function" && De;
397
- if (!C && I) return I(F, !0);
398
- if (h) return h(F, !0);
399
- var u = new Error("Cannot find module '" + F + "'");
400
- throw u.code = "MODULE_NOT_FOUND", u;
394
+ function I(w, B, g) {
395
+ function C(T, O) {
396
+ if (!B[T]) {
397
+ if (!w[T]) {
398
+ var d = typeof De == "function" && De;
399
+ if (!O && d) return d(T, !0);
400
+ if (b) return b(T, !0);
401
+ var S = new Error("Cannot find module '" + T + "'");
402
+ throw S.code = "MODULE_NOT_FOUND", S;
401
403
  }
402
- var n = B[F] = { exports: {} };
403
- P[F][0].call(n.exports, function(o) {
404
- var s = P[F][1][o];
405
- return w(s || o);
406
- }, n, n.exports, E, P, B, p);
404
+ var f = B[T] = { exports: {} };
405
+ w[T][0].call(f.exports, function(r) {
406
+ var i = w[T][1][r];
407
+ return C(i || r);
408
+ }, f, f.exports, I, w, B, g);
407
409
  }
408
- return B[F].exports;
410
+ return B[T].exports;
409
411
  }
410
- for (var h = typeof De == "function" && De, f = 0; f < p.length; f++) w(p[f]);
411
- return w;
412
+ for (var b = typeof De == "function" && De, p = 0; p < g.length; p++) C(g[p]);
413
+ return C;
412
414
  }
413
- return E;
415
+ return I;
414
416
  }())({
415
- 1: [function(E, P, B) {
416
- var p = {}, w = "(?:^|\\s)", h = "(?:\\s|$)";
417
- function f(I) {
418
- var u = p[I];
419
- return u ? u.lastIndex = 0 : p[I] = u = new RegExp(w + I + h, "g"), u;
417
+ 1: [function(I, w, B) {
418
+ var g = {}, C = "(?:^|\\s)", b = "(?:\\s|$)";
419
+ function p(d) {
420
+ var S = g[d];
421
+ return S ? S.lastIndex = 0 : g[d] = S = new RegExp(C + d + b, "g"), S;
420
422
  }
421
- function F(I, u) {
422
- var n = I.className;
423
- n.length ? f(u).test(n) || (I.className += " " + u) : I.className = u;
423
+ function T(d, S) {
424
+ var f = d.className;
425
+ f.length ? p(S).test(f) || (d.className += " " + S) : d.className = S;
424
426
  }
425
- function C(I, u) {
426
- I.className = I.className.replace(f(u), " ").trim();
427
+ function O(d, S) {
428
+ d.className = d.className.replace(p(S), " ").trim();
427
429
  }
428
- P.exports = {
429
- add: F,
430
- rm: C
430
+ w.exports = {
431
+ add: T,
432
+ rm: O
431
433
  };
432
434
  }, {}],
433
- 2: [function(E, P, B) {
434
- (function(p) {
435
- var w = E("contra/emitter"), h = E("crossvent"), f = E("./classes"), F = document, C = F.documentElement;
436
- function I(d, G) {
437
- var g = arguments.length;
438
- g === 1 && Array.isArray(d) === !1 && (G = d, d = []);
439
- var S, N, e, t, a, b, c, i, z, V = null, ne, R, ie = !1, se = 0, D, y = G || {};
440
- y.moves === void 0 && (y.moves = Y), y.accepts === void 0 && (y.accepts = Y), y.invalid === void 0 && (y.invalid = Be), y.containers === void 0 && (y.containers = d || []), y.isContainer === void 0 && (y.isContainer = m), y.copy === void 0 && (y.copy = !1), y.copySortSource === void 0 && (y.copySortSource = !1), y.revertOnSpill === void 0 && (y.revertOnSpill = !1), y.removeOnSpill === void 0 && (y.removeOnSpill = !1), y.direction === void 0 && (y.direction = "vertical"), y.ignoreInputTextSelection === void 0 && (y.ignoreInputTextSelection = !0), y.mirrorContainer === void 0 && (y.mirrorContainer = F.body);
441
- var H = w({
442
- containers: y.containers,
435
+ 2: [function(I, w, B) {
436
+ (function(g) {
437
+ var C = I("contra/emitter"), b = I("crossvent"), p = I("./classes"), T = document, O = T.documentElement;
438
+ function d(m, G) {
439
+ var Z = arguments.length;
440
+ Z === 1 && Array.isArray(m) === !1 && (G = m, m = []);
441
+ var u, A, e, t, c, v, s, n, j, L = null, ee, V, ie = !1, se = 0, N, h = G || {};
442
+ h.moves === void 0 && (h.moves = F), h.accepts === void 0 && (h.accepts = F), h.invalid === void 0 && (h.invalid = Be), h.containers === void 0 && (h.containers = m || []), h.isContainer === void 0 && (h.isContainer = a), h.copy === void 0 && (h.copy = !1), h.copySortSource === void 0 && (h.copySortSource = !1), h.revertOnSpill === void 0 && (h.revertOnSpill = !1), h.removeOnSpill === void 0 && (h.removeOnSpill = !1), h.direction === void 0 && (h.direction = "vertical"), h.ignoreInputTextSelection === void 0 && (h.ignoreInputTextSelection = !0), h.mirrorContainer === void 0 && (h.mirrorContainer = T.body);
443
+ var W = C({
444
+ containers: h.containers,
443
445
  start: Ce,
444
446
  end: Ae,
445
- cancel: qe,
446
- remove: We,
447
+ cancel: Ge,
448
+ remove: qe,
447
449
  destroy: ye,
448
450
  canMove: he,
449
451
  dragging: !1
450
452
  });
451
- return y.removeOnSpill === !0 && H.on("over", ot).on("out", rt), K(), H;
452
- function W(r) {
453
- return H.containers.indexOf(r) !== -1 || y.isContainer(r);
453
+ return h.removeOnSpill === !0 && W.on("over", rt).on("out", it), K(), W;
454
+ function q(o) {
455
+ return W.containers.indexOf(o) !== -1 || h.isContainer(o);
454
456
  }
455
- function K(r) {
456
- var x = r ? "remove" : "add";
457
- o(C, x, "mousedown", le), o(C, x, "mouseup", Ne);
457
+ function K(o) {
458
+ var x = o ? "remove" : "add";
459
+ r(O, x, "mousedown", le), r(O, x, "mouseup", Ne);
458
460
  }
459
- function de(r) {
460
- var x = r ? "remove" : "add";
461
- o(C, x, "mousemove", ae);
461
+ function de(o) {
462
+ var x = o ? "remove" : "add";
463
+ r(O, x, "mousemove", ae);
462
464
  }
463
- function oe(r) {
464
- var x = r ? "remove" : "add";
465
- h[x](C, "selectstart", ce), h[x](C, "click", ce);
465
+ function oe(o) {
466
+ var x = o ? "remove" : "add";
467
+ b[x](O, "selectstart", ce), b[x](O, "click", ce);
466
468
  }
467
469
  function ye() {
468
470
  K(!0), Ne({});
469
471
  }
470
- function ce(r) {
471
- ne && r.preventDefault();
472
+ function ce(o) {
473
+ ee && o.preventDefault();
472
474
  }
473
- function le(r) {
474
- t = r.clientX, a = r.clientY;
475
- var x = s(r) !== 1 || r.metaKey || r.ctrlKey;
475
+ function le(o) {
476
+ t = o.clientX, c = o.clientY;
477
+ var x = i(o) !== 1 || o.metaKey || o.ctrlKey;
476
478
  if (!x) {
477
- var T = r.target, k = pe(T);
478
- k && (ne = k, de(), r.type === "mousedown" && (A(T) ? T.focus() : r.preventDefault()));
479
+ var P = o.target, X = pe(P);
480
+ X && (ee = X, de(), o.type === "mousedown" && (E(P) ? P.focus() : o.preventDefault()));
479
481
  }
480
482
  }
481
- function ae(r) {
482
- if (ne) {
483
- if (s(r) === 0) {
483
+ function ae(o) {
484
+ if (ee) {
485
+ if (i(o) === 0) {
484
486
  Ne({});
485
487
  return;
486
488
  }
487
- if (!(r.clientX !== void 0 && Math.abs(r.clientX - t) <= (y.slideFactorX || 0) && r.clientY !== void 0 && Math.abs(r.clientY - a) <= (y.slideFactorY || 0))) {
488
- if (y.ignoreInputTextSelection) {
489
- var x = Q("clientX", r) || 0, T = Q("clientY", r) || 0, k = F.elementFromPoint(x, T);
490
- if (A(k))
489
+ if (!(o.clientX !== void 0 && Math.abs(o.clientX - t) <= (h.slideFactorX || 0) && o.clientY !== void 0 && Math.abs(o.clientY - c) <= (h.slideFactorY || 0))) {
490
+ if (h.ignoreInputTextSelection) {
491
+ var x = Q("clientX", o) || 0, P = Q("clientY", o) || 0, X = T.elementFromPoint(x, P);
492
+ if (E(X))
491
493
  return;
492
494
  }
493
- var ee = ne;
494
- de(!0), oe(), Ae(), ve(ee), f.add(i || e, "gu-transit"), st(), it(), se = 0, Re(r);
495
+ var te = ee;
496
+ de(!0), oe(), Ae(), ve(te), p.add(n || e, "gu-transit"), at(), st(), se = 0, ke(o);
495
497
  }
496
498
  }
497
499
  }
498
- function pe(r) {
499
- if (!(H.dragging && S) && !W(r)) {
500
- for (var x = r; l(r) && W(l(r)) === !1; )
501
- if (y.invalid(r, x) || (r = l(r), !r))
500
+ function pe(o) {
501
+ if (!(W.dragging && u) && !q(o)) {
502
+ for (var x = o; l(o) && q(l(o)) === !1; )
503
+ if (h.invalid(o, x) || (o = l(o), !o))
502
504
  return;
503
- var T = l(r);
504
- if (T && !y.invalid(r, x)) {
505
- var k = y.moves(r, T, x, $(r));
506
- if (k)
505
+ var P = l(o);
506
+ if (P && !h.invalid(o, x)) {
507
+ var X = h.moves(o, P, x, Y(o));
508
+ if (X)
507
509
  return {
508
- item: r,
509
- source: T
510
+ item: o,
511
+ source: P
510
512
  };
511
513
  }
512
514
  }
513
515
  }
514
- function he(r) {
515
- return !!pe(r);
516
+ function he(o) {
517
+ return !!pe(o);
516
518
  }
517
- function Ce(r) {
518
- var x = pe(r);
519
+ function Ce(o) {
520
+ var x = pe(o);
519
521
  x && ve(x);
520
522
  }
521
- function ve(r) {
522
- mt(r.item, r.source) && (i = r.item.cloneNode(!0), H.emit("cloned", i, r.item, "copy")), N = r.source, e = r.item, b = c = $(r.item), H.dragging = !0, H.emit("drag", e, N);
523
+ function ve(o) {
524
+ vt(o.item, o.source) && (n = o.item.cloneNode(!0), W.emit("cloned", n, o.item, "copy")), A = o.source, e = o.item, v = s = Y(o.item), W.dragging = !0, W.emit("drag", e, A);
523
525
  }
524
526
  function Be() {
525
527
  return !1;
526
528
  }
527
529
  function Ae() {
528
- if (H.dragging) {
529
- var r = i || e;
530
- He(r, l(r));
530
+ if (W.dragging) {
531
+ var o = n || e;
532
+ We(o, l(o));
531
533
  }
532
534
  }
533
535
  function Me() {
534
- ne = !1, de(!0), oe(!0);
536
+ ee = !1, de(!0), oe(!0);
535
537
  }
536
- function Ne(r) {
537
- if (Me(), !!H.dragging) {
538
- var x = i || e, T = Q("clientX", r) || 0, k = Q("clientY", r) || 0, ee = v(S, T, k), te = Ge(ee, T, k);
539
- te && (i && y.copySortSource || !i || te !== N) ? He(x, te) : y.removeOnSpill ? We() : qe();
538
+ function Ne(o) {
539
+ if (Me(), !!W.dragging) {
540
+ var x = n || e, P = Q("clientX", o) || 0, X = Q("clientY", o) || 0, te = y(u, P, X), ne = Ke(te, P, X);
541
+ ne && (n && h.copySortSource || !n || ne !== A) ? We(x, ne) : h.removeOnSpill ? qe() : Ge();
540
542
  }
541
543
  }
542
- function He(r, x) {
543
- var T = l(r);
544
- i && y.copySortSource && x === N && T.removeChild(e), Le(x) ? H.emit("cancel", r, N) : H.emit("drop", r, x, N, c), _e();
544
+ function We(o, x) {
545
+ var P = l(o);
546
+ n && h.copySortSource && x === A && P.removeChild(e), Le(x) ? W.emit("cancel", o, A) : W.emit("drop", o, x, A, s), _e();
545
547
  }
546
- function We() {
547
- if (H.dragging) {
548
- var r = i || e, x = l(r);
549
- x && x.removeChild(r), H.emit(i ? "cancel" : "remove", r, x, N), _e();
548
+ function qe() {
549
+ if (W.dragging) {
550
+ var o = n || e, x = l(o);
551
+ x && x.removeChild(o), W.emit(n ? "cancel" : "remove", o, x, A), _e();
550
552
  }
551
553
  }
552
- function qe(r) {
553
- if (H.dragging) {
554
- var x = arguments.length > 0 ? r : y.revertOnSpill, T = i || e, k = l(T), ee = Le(k);
555
- ee === !1 && x && (i ? k && k.removeChild(i) : N.insertBefore(T, b)), ee || x ? H.emit("cancel", T, N, N) : H.emit("drop", T, k, N, c), _e();
554
+ function Ge(o) {
555
+ if (W.dragging) {
556
+ var x = arguments.length > 0 ? o : h.revertOnSpill, P = n || e, X = l(P), te = Le(X);
557
+ te === !1 && x && (n ? X && X.removeChild(n) : A.insertBefore(P, v)), te || x ? W.emit("cancel", P, A, A) : W.emit("drop", P, X, A, s), _e();
556
558
  }
557
559
  }
558
560
  function _e() {
559
- var r = i || e;
560
- Me(), at(), ct(), r && f.rm(r, "gu-transit"), z && clearTimeout(z), H.dragging = !1, V && H.emit("out", r, V, N), H.emit("dragend", r, se), N = e = i = b = c = z = V = null;
561
+ var o = n || e;
562
+ Me(), ct(), lt(), o && p.rm(o, "gu-transit"), j && clearTimeout(j), W.dragging = !1, L && W.emit("out", o, L, A), W.emit("dragend", o, se), A = e = n = v = s = j = L = null;
561
563
  }
562
- function Le(r, x) {
563
- var T;
564
- return x !== void 0 ? T = x : S ? T = c : T = $(i || e), r === N && T === b;
564
+ function Le(o, x) {
565
+ var P;
566
+ return x !== void 0 ? P = x : u ? P = s : P = Y(n || e), o === A && P === v;
565
567
  }
566
- function Ge(r, x, T) {
567
- for (var k = r; k && !ee(); )
568
- k = l(k);
569
- return k;
570
- function ee() {
571
- var te = W(k);
572
- if (te === !1)
568
+ function Ke(o, x, P) {
569
+ for (var X = o; X && !te(); )
570
+ X = l(X);
571
+ return X;
572
+ function te() {
573
+ var ne = q(X);
574
+ if (ne === !1)
573
575
  return !1;
574
- var be = Ke(k, r), ge = Qe(k, be, x, T), we = Le(k, ge);
575
- return we ? !0 : y.accepts(e, k, N, ge);
576
+ var we = Qe(X, o), ge = Je(X, we, x, P), be = Le(X, ge);
577
+ return be ? !0 : h.accepts(e, X, A, ge);
576
578
  }
577
579
  }
578
- function Re(r) {
579
- if (!S)
580
+ function ke(o) {
581
+ if (!u)
580
582
  return;
581
- r.preventDefault();
582
- var x = Q("clientX", r) || 0, T = Q("clientY", r) || 0;
583
- S.style.left = x - 2 + "px", S.style.top = T - 2 + "px";
584
- var k = i || e, ee = v(S, x, T), te = Ge(ee, x, T), be = te !== null && te !== V;
585
- (be || te === null) && (xe(), V = te, Ie()), pt(ee, T);
586
- var ge = l(k);
587
- if (te === N && i && !y.copySortSource) {
588
- ge && ge.removeChild(k);
583
+ o.preventDefault();
584
+ var x = Q("clientX", o) || 0, P = Q("clientY", o) || 0;
585
+ u.style.left = x - 2 + "px", u.style.top = P - 2 + "px";
586
+ var X = n || e, te = y(u, x, P), ne = Ke(te, x, P), we = ne !== null && ne !== L;
587
+ (we || ne === null) && (xe(), L = ne, Ie()), mt(te, P);
588
+ var ge = l(X);
589
+ if (ne === A && n && !h.copySortSource) {
590
+ ge && ge.removeChild(X);
589
591
  return;
590
592
  }
591
- var we, Pe = Ke(te, ee);
592
- if (ie = lt(Pe, te), Pe !== null)
593
- we = Qe(te, Pe, x, T);
594
- else if (y.revertOnSpill === !0 && !i)
595
- we = b, te = N;
593
+ var be, Pe = Qe(ne, te);
594
+ if (ie = ut(Pe, ne), Pe !== null)
595
+ be = Je(ne, Pe, x, P);
596
+ else if (h.revertOnSpill === !0 && !n)
597
+ be = v, ne = A;
596
598
  else {
597
- i && ge && ge.removeChild(k), i && R && (R.style.display = "none");
599
+ n && ge && ge.removeChild(X), n && V && (V.style.display = "none");
598
600
  return;
599
601
  }
600
- R.style.display = "block", nt(we, k, be), we ? ft(Pe, we) : dt(te);
602
+ V.style.display = "block", ot(be, X, we), be ? dt(Pe, be) : pt(ne);
601
603
  function ue(fe) {
602
- H.emit(fe, k, V, N);
604
+ W.emit(fe, X, L, A);
603
605
  }
604
606
  function Ie() {
605
- be && ue("over");
607
+ we && ue("over");
606
608
  }
607
609
  function xe() {
608
- V && ue("out");
610
+ L && ue("out");
609
611
  }
610
612
  }
611
- function nt(r, x, T) {
612
- (r === x || r === $(x)) && (c = $(x)), (r === null && T || r !== x && r !== $(x)) && (c = r);
613
- }
614
- function ot(r) {
615
- f.rm(r, "gu-hide");
613
+ function ot(o, x, P) {
614
+ (o === x || o === Y(x)) && (s = Y(x)), (o === null && P || o !== x && o !== Y(x)) && (s = o);
616
615
  }
617
- function rt(r) {
618
- H.dragging && f.add(r, "gu-hide");
616
+ function rt(o) {
617
+ p.rm(o, "gu-hide");
619
618
  }
620
- function it() {
621
- S || (S = document.createElement("div"), S.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", S.innerHTML = y.getMirrorText && y.getMirrorText(e) || "控件", f.add(S, "gu-mirror"), y.mirrorContainer.appendChild(S), o(C, "add", "mousemove", Re), f.add(y.mirrorContainer, "gu-unselectable"), H.emit("cloned", S, e, "mirror"));
619
+ function it(o) {
620
+ W.dragging && p.add(o, "gu-hide");
622
621
  }
623
622
  function st() {
624
- if (R = document.createElement("div"), f.add(R, "gu-insertion"), e) {
625
- var r = e.getBoundingClientRect();
626
- R.style.left = r.left + "px", R.style.top = r.top + "px";
627
- }
628
- ie = !1, y.mirrorContainer.appendChild(R);
623
+ u || (u = document.createElement("div"), u.style = "background: grey; color: white; height: 24px; text-align: center; padding: 3px 10px; min-width: 100px;border-radius: 4px; box-shadow: 0 0 6px grey;", u.innerHTML = h.getMirrorText && h.getMirrorText(e) || "控件", p.add(u, "gu-mirror"), h.mirrorContainer.appendChild(u), r(O, "add", "mousemove", ke), p.add(h.mirrorContainer, "gu-unselectable"), W.emit("cloned", u, e, "mirror"));
629
624
  }
630
625
  function at() {
631
- S && (f.rm(y.mirrorContainer, "gu-unselectable"), o(C, "remove", "mousemove", Re), l(S).removeChild(S), S = null);
626
+ if (V = document.createElement("div"), p.add(V, "gu-insertion"), e) {
627
+ var o = e.getBoundingClientRect();
628
+ V.style.left = o.left + "px", V.style.top = o.top + "px";
629
+ }
630
+ ie = !1, h.mirrorContainer.appendChild(V);
632
631
  }
633
632
  function ct() {
634
- R && (l(R).removeChild(R), R = null);
633
+ u && (p.rm(h.mirrorContainer, "gu-unselectable"), r(O, "remove", "mousemove", ke), l(u).removeChild(u), u = null);
635
634
  }
636
- function Ke(r, x) {
637
- for (var T = x; T !== r && l(T) !== r; )
638
- T = l(T);
639
- return T === C ? null : T;
635
+ function lt() {
636
+ V && (l(V).removeChild(V), V = null);
640
637
  }
641
- function lt(r, x) {
638
+ function Qe(o, x) {
639
+ for (var P = x; P !== o && l(P) !== o; )
640
+ P = l(P);
641
+ return P === O ? null : P;
642
+ }
643
+ function ut(o, x) {
642
644
  if (!x)
643
645
  return ie;
644
- var T = r || x && x.lastElementChild;
645
- if (!T)
646
+ var P = o || x && x.lastElementChild;
647
+ if (!P)
646
648
  return !0;
647
- var k = getComputedStyle(r), ee = /^inline/.test(k.getPropertyValue("display")) || /^(left|right)$/.test(k.getPropertyValue("float"));
648
- if (ee)
649
+ var X = getComputedStyle(o), te = /^inline/.test(X.getPropertyValue("display")) || /^(left|right)$/.test(X.getPropertyValue("float"));
650
+ if (te)
649
651
  return !0;
650
652
  if (x) {
651
- var te = getComputedStyle(x), be = te.getPropertyValue("display");
652
- if (/flex$/.test(be)) {
653
- var ge = te.getPropertyValue("flex-direction") || "row";
653
+ var ne = getComputedStyle(x), we = ne.getPropertyValue("display");
654
+ if (/flex$/.test(we)) {
655
+ var ge = ne.getPropertyValue("flex-direction") || "row";
654
656
  if (ge === "row" || ge === "row-reverse")
655
- return !ut(x);
657
+ return !ft(x);
656
658
  }
657
659
  return !1;
658
660
  }
659
661
  return !0;
660
662
  }
661
- function ut(r) {
662
- if (!r.children || !r.children.length)
663
+ function ft(o) {
664
+ if (!o.children || !o.children.length)
663
665
  return !1;
664
- for (const x of Array.from(r.children)) {
665
- const k = (x.className && x.className.split(" ") || []).filter((ee) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(ee));
666
- if (!k.length)
666
+ for (const x of Array.from(o.children)) {
667
+ const X = (x.className && x.className.split(" ") || []).filter((te) => /^col(-md|-xl|-el){0,1}-([1-9]|10|11|12)$/.test(te));
668
+ if (!X.length)
667
669
  return !1;
668
- for (const ee of k) {
669
- const te = ee.slice(ee.lastIndexOf("-") + 1);
670
- if (parseInt(te, 10) !== 12)
670
+ for (const te of X) {
671
+ const ne = te.slice(te.lastIndexOf("-") + 1);
672
+ if (parseInt(ne, 10) !== 12)
671
673
  return !1;
672
674
  }
673
675
  }
674
676
  return !0;
675
677
  }
676
- function ft(r, x) {
677
- const T = x.getBoundingClientRect();
678
- if (R.style.left = T.left + "px", R.style.top = T.top + "px", ie) {
679
- if (R.style.height = T.height + "px", R.style.width = "4px", r) {
680
- const k = r.getBoundingClientRect();
681
- k.top !== T.top && (R.style.left = k.right + "px", R.style.top = k.top + "px", R.style.height = k.height + "px");
678
+ function dt(o, x) {
679
+ const P = x.getBoundingClientRect();
680
+ if (V.style.left = P.left + "px", V.style.top = P.top + "px", ie) {
681
+ if (V.style.height = P.height + "px", V.style.width = "4px", o) {
682
+ const X = o.getBoundingClientRect();
683
+ X.top !== P.top && (V.style.left = X.right + "px", V.style.top = X.top + "px", V.style.height = X.height + "px");
682
684
  }
683
- } else if (R.style.height = "4px", R.style.width = T.width + "px", D) {
684
- const k = D.getBoundingClientRect();
685
- T.top < k.top && (R.style.display = "none");
685
+ } else if (V.style.height = "4px", V.style.width = P.width + "px", N) {
686
+ const X = N.getBoundingClientRect();
687
+ P.top < X.top && (V.style.display = "none");
686
688
  }
687
- x === e && e && (R.style.display = "none");
689
+ x === e && e && (V.style.display = "none");
688
690
  }
689
- function dt(r) {
690
- c = null;
691
- var x = r.lastElementChild;
691
+ function pt(o) {
692
+ s = null;
693
+ var x = o.lastElementChild;
692
694
  if (x) {
693
- var T = x.getBoundingClientRect();
694
- ie ? (R.style.left = T.right + "px", R.style.top = T.top + "px", R.style.height = T.height + "px", R.style.width = "4px") : (R.style.left = T.left + "px", R.style.top = T.bottom + "px", R.style.height = "4px", R.style.width = T.width + "px"), x === e && e && (R.style.display = "none");
695
+ var P = x.getBoundingClientRect();
696
+ ie ? (V.style.left = P.right + "px", V.style.top = P.top + "px", V.style.height = P.height + "px", V.style.width = "4px") : (V.style.left = P.left + "px", V.style.top = P.bottom + "px", V.style.height = "4px", V.style.width = P.width + "px"), x === e && e && (V.style.display = "none");
695
697
  } else
696
- R.style.display = "none";
698
+ V.style.display = "none";
697
699
  }
698
- function pt(r, x) {
699
- if (!y.mirrorContainer.contains(r) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (D = u(r), !D || !D.contains(r)))
700
+ function mt(o, x) {
701
+ if (!h.mirrorContainer.contains(o) || !window.scrollContainerList || !Array.from(window.scrollContainerList).length || (N = S(o), !N || !N.contains(o)))
700
702
  return;
701
- const T = document.querySelector(".dgComponentSelected"), k = D.getBoundingClientRect();
702
- if (x - 30 < k.top && D.scrollTop > 0) {
703
- let ee = D.scrollTop < 10 ? D.scrollTop : 10;
704
- D.scrollBy(0, -1 * ee), T && D.contains(T) && (se = se + -1 * ee);
703
+ const P = document.querySelector(".dgComponentSelected"), X = N.getBoundingClientRect();
704
+ if (x - 30 < X.top && N.scrollTop > 0) {
705
+ let te = N.scrollTop < 10 ? N.scrollTop : 10;
706
+ N.scrollBy(0, -1 * te), P && N.contains(P) && (se = se + -1 * te);
705
707
  }
706
- if (x + 30 > k.bottom && D.scrollTop < D.scrollHeight - D.clientHeight) {
707
- const ee = D.scrollHeight - D.clientHeight - D.scrollTop;
708
- let te = ee < 10 ? ee : 10;
709
- D.scrollBy(0, te), T && D.contains(T) && (se = se + te);
708
+ if (x + 30 > X.bottom && N.scrollTop < N.scrollHeight - N.clientHeight) {
709
+ const te = N.scrollHeight - N.clientHeight - N.scrollTop;
710
+ let ne = te < 10 ? te : 10;
711
+ N.scrollBy(0, ne), P && N.contains(P) && (se = se + ne);
710
712
  }
711
713
  }
712
- function Qe(r, x, T, k) {
713
- var ee = y.direction === "horizontal", te = y.direction === "mixed", be = x !== r ? we() : ge();
714
- return be;
714
+ function Je(o, x, P, X) {
715
+ var te = h.direction === "horizontal", ne = h.direction === "mixed", we = x !== o ? be() : ge();
716
+ return we;
715
717
  function ge() {
716
- var ue = r.children.length, Ie, xe, fe;
718
+ var ue = o.children.length, Ie, xe, fe;
717
719
  for (Ie = 0; Ie < ue; Ie++)
718
- if (xe = r.children[Ie], fe = xe.getBoundingClientRect(), ee && fe.left + fe.width / 2 > T || !te && !ee && fe.top + fe.height / 2 > k || te && fe.left + fe.width > T && fe.top + fe.height > k)
720
+ if (xe = o.children[Ie], fe = xe.getBoundingClientRect(), te && fe.left + fe.width / 2 > P || !ne && !te && fe.top + fe.height / 2 > X || ne && fe.left + fe.width > P && fe.top + fe.height > X)
719
721
  return xe;
720
722
  return null;
721
723
  }
722
- function we() {
724
+ function be() {
723
725
  var ue = x.getBoundingClientRect();
724
- if (te) {
725
- var Ie = k - ue.top, xe = T - ue.left, fe = ue.bottom - k, ke = ue.right - T, Ve = Math.min(xe, ke, Ie, fe), Xe;
726
- return ie ? Xe = ke < xe : Xe = fe === Ve || ke === Ve || xe === Ve, Pe(Xe);
726
+ if (ne) {
727
+ var Ie = X - ue.top, xe = P - ue.left, fe = ue.bottom - X, Re = ue.right - P, Ve = Math.min(xe, Re, Ie, fe), Xe;
728
+ return ie ? Xe = Re < xe : Xe = fe === Ve || Re === Ve || xe === Ve, Pe(Xe);
727
729
  }
728
- return Pe(ee ? T > ue.left + j(ue) / 2 : k > ue.top + X(ue) / 2);
730
+ return Pe(te ? P > ue.left + $(ue) / 2 : X > ue.top + R(ue) / 2);
729
731
  }
730
732
  function Pe(ue) {
731
- return ue ? $(x) : x;
733
+ return ue ? Y(x) : x;
732
734
  }
733
735
  }
734
- function mt(r, x) {
735
- return typeof y.copy == "boolean" ? y.copy : y.copy(r, x);
736
+ function vt(o, x) {
737
+ return typeof h.copy == "boolean" ? h.copy : h.copy(o, x);
736
738
  }
737
739
  }
738
- function u(d) {
740
+ function S(m) {
739
741
  const G = Array.from(window.scrollContainerList);
740
742
  if (G.length === 1) {
741
- const S = Array.from(window.scrollContainerList)[0];
742
- return document.getElementById(S);
743
+ const u = Array.from(window.scrollContainerList)[0];
744
+ return document.getElementById(u);
743
745
  }
744
- const g = n(G);
745
- for (const S of g)
746
- if (S.contains(d))
747
- return S;
746
+ const Z = f(G);
747
+ for (const u of Z)
748
+ if (u.contains(m))
749
+ return u;
748
750
  return null;
749
751
  }
750
- function n(d) {
752
+ function f(m) {
751
753
  const G = [];
752
- return d.forEach((g) => {
753
- const S = document.getElementById(g);
754
- S && G.push(S);
755
- }), G.sort((g, S) => g.contains(S) ? 1 : S.contains(g) ? -1 : 0), G;
754
+ return m.forEach((Z) => {
755
+ const u = document.getElementById(Z);
756
+ u && G.push(u);
757
+ }), G.sort((Z, u) => Z.contains(u) ? 1 : u.contains(Z) ? -1 : 0), G;
756
758
  }
757
- function o(d, G, g, S) {
758
- var N = {
759
+ function r(m, G, Z, u) {
760
+ var A = {
759
761
  mouseup: "touchend",
760
762
  mousedown: "touchstart",
761
763
  mousemove: "touchmove"
@@ -768,156 +770,156 @@ var tt = { exports: {} };
768
770
  mousedown: "MSPointerDown",
769
771
  mousemove: "MSPointerMove"
770
772
  };
771
- p.navigator.pointerEnabled ? h[G](d, e[g], S) : p.navigator.msPointerEnabled ? h[G](d, t[g], S) : (h[G](d, N[g], S), h[G](d, g, S));
773
+ g.navigator.pointerEnabled ? b[G](m, e[Z], u) : g.navigator.msPointerEnabled ? b[G](m, t[Z], u) : (b[G](m, A[Z], u), b[G](m, Z, u));
772
774
  }
773
- function s(d) {
774
- if (d.touches !== void 0)
775
- return d.touches.length;
776
- if (d.which !== void 0 && d.which !== 0)
777
- return d.which;
778
- if (d.buttons !== void 0)
779
- return d.buttons;
780
- var G = d.button;
775
+ function i(m) {
776
+ if (m.touches !== void 0)
777
+ return m.touches.length;
778
+ if (m.which !== void 0 && m.which !== 0)
779
+ return m.which;
780
+ if (m.buttons !== void 0)
781
+ return m.buttons;
782
+ var G = m.button;
781
783
  if (G !== void 0)
782
784
  return G & 1 ? 1 : G & 2 ? 3 : G & 4 ? 2 : 0;
783
785
  }
784
- function v(d, G, g) {
785
- d = d || {};
786
- var S = d.className || "", N;
787
- return d.className += " gu-hide", N = F.elementFromPoint(G, g), d.className = S, N;
786
+ function y(m, G, Z) {
787
+ m = m || {};
788
+ var u = m.className || "", A;
789
+ return m.className += " gu-hide", A = T.elementFromPoint(G, Z), m.className = u, A;
788
790
  }
789
- function m() {
791
+ function a() {
790
792
  return !1;
791
793
  }
792
- function Y() {
794
+ function F() {
793
795
  return !0;
794
796
  }
795
- function j(d) {
796
- return d.width || d.right - d.left;
797
+ function $(m) {
798
+ return m.width || m.right - m.left;
797
799
  }
798
- function X(d) {
799
- return d.height || d.bottom - d.top;
800
+ function R(m) {
801
+ return m.height || m.bottom - m.top;
800
802
  }
801
- function l(d) {
802
- return d.parentNode === F ? null : d.parentNode;
803
+ function l(m) {
804
+ return m.parentNode === T ? null : m.parentNode;
803
805
  }
804
- function A(d) {
805
- return d.tagName === "INPUT" || d.tagName === "TEXTAREA" || d.tagName === "SELECT" || U(d);
806
+ function E(m) {
807
+ return m.tagName === "INPUT" || m.tagName === "TEXTAREA" || m.tagName === "SELECT" || U(m);
806
808
  }
807
- function U(d) {
808
- return !d || d.contentEditable === "false" ? !1 : d.contentEditable === "true" ? !0 : U(l(d));
809
+ function U(m) {
810
+ return !m || m.contentEditable === "false" ? !1 : m.contentEditable === "true" ? !0 : U(l(m));
809
811
  }
810
- function $(d) {
811
- return d.nextElementSibling || G();
812
+ function Y(m) {
813
+ return m.nextElementSibling || G();
812
814
  function G() {
813
- var g = d;
815
+ var Z = m;
814
816
  do
815
- g = g.nextSibling;
816
- while (g && g.nodeType !== 1);
817
- return g;
817
+ Z = Z.nextSibling;
818
+ while (Z && Z.nodeType !== 1);
819
+ return Z;
818
820
  }
819
821
  }
820
- function re(d) {
821
- return d.targetTouches && d.targetTouches.length ? d.targetTouches[0] : d.changedTouches && d.changedTouches.length ? d.changedTouches[0] : d;
822
+ function re(m) {
823
+ return m.targetTouches && m.targetTouches.length ? m.targetTouches[0] : m.changedTouches && m.changedTouches.length ? m.changedTouches[0] : m;
822
824
  }
823
- function Q(d, G) {
824
- var g = re(G), S = {
825
+ function Q(m, G) {
826
+ var Z = re(G), u = {
825
827
  pageX: "clientX",
826
828
  // IE8
827
829
  pageY: "clientY"
828
830
  // IE8
829
831
  };
830
- return d in S && !(d in g) && S[d] in g && (d = S[d]), g[d];
832
+ return m in u && !(m in Z) && u[m] in Z && (m = u[m]), Z[m];
831
833
  }
832
- P.exports = I;
834
+ w.exports = d;
833
835
  }).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
834
836
  }, { "./classes": 1, "contra/emitter": 5, crossvent: 6 }],
835
- 3: [function(E, P, B) {
836
- P.exports = function(w, h) {
837
- return Array.prototype.slice.call(w, h);
837
+ 3: [function(I, w, B) {
838
+ w.exports = function(C, b) {
839
+ return Array.prototype.slice.call(C, b);
838
840
  };
839
841
  }, {}],
840
- 4: [function(E, P, B) {
841
- var p = E("ticky");
842
- P.exports = function(h, f, F) {
843
- h && p(function() {
844
- h.apply(F || null, f || []);
842
+ 4: [function(I, w, B) {
843
+ var g = I("ticky");
844
+ w.exports = function(b, p, T) {
845
+ b && g(function() {
846
+ b.apply(T || null, p || []);
845
847
  });
846
848
  };
847
849
  }, { ticky: 10 }],
848
- 5: [function(E, P, B) {
849
- var p = E("atoa"), w = E("./debounce");
850
- P.exports = function(f, F) {
851
- var C = F || {}, I = {};
852
- return f === void 0 && (f = {}), f.on = function(u, n) {
853
- return I[u] ? I[u].push(n) : I[u] = [n], f;
854
- }, f.once = function(u, n) {
855
- return n._once = !0, f.on(u, n), f;
856
- }, f.off = function(u, n) {
857
- var o = arguments.length;
858
- if (o === 1)
859
- delete I[u];
860
- else if (o === 0)
861
- I = {};
850
+ 5: [function(I, w, B) {
851
+ var g = I("atoa"), C = I("./debounce");
852
+ w.exports = function(p, T) {
853
+ var O = T || {}, d = {};
854
+ return p === void 0 && (p = {}), p.on = function(S, f) {
855
+ return d[S] ? d[S].push(f) : d[S] = [f], p;
856
+ }, p.once = function(S, f) {
857
+ return f._once = !0, p.on(S, f), p;
858
+ }, p.off = function(S, f) {
859
+ var r = arguments.length;
860
+ if (r === 1)
861
+ delete d[S];
862
+ else if (r === 0)
863
+ d = {};
862
864
  else {
863
- var s = I[u];
864
- if (!s)
865
- return f;
866
- s.splice(s.indexOf(n), 1);
865
+ var i = d[S];
866
+ if (!i)
867
+ return p;
868
+ i.splice(i.indexOf(f), 1);
867
869
  }
868
- return f;
869
- }, f.emit = function() {
870
- var u = p(arguments);
871
- return f.emitterSnapshot(u.shift()).apply(this, u);
872
- }, f.emitterSnapshot = function(u) {
873
- var n = (I[u] || []).slice(0);
870
+ return p;
871
+ }, p.emit = function() {
872
+ var S = g(arguments);
873
+ return p.emitterSnapshot(S.shift()).apply(this, S);
874
+ }, p.emitterSnapshot = function(S) {
875
+ var f = (d[S] || []).slice(0);
874
876
  return function() {
875
- var o = p(arguments), s = this || f;
876
- if (u === "error" && C.throws !== !1 && !n.length)
877
- throw o.length === 1 ? o[0] : o;
878
- return n.forEach(function(m) {
879
- C.async ? w(m, o, s) : m.apply(s, o), m._once && f.off(u, m);
880
- }), f;
877
+ var r = g(arguments), i = this || p;
878
+ if (S === "error" && O.throws !== !1 && !f.length)
879
+ throw r.length === 1 ? r[0] : r;
880
+ return f.forEach(function(a) {
881
+ O.async ? C(a, r, i) : a.apply(i, r), a._once && p.off(S, a);
882
+ }), p;
881
883
  };
882
- }, f;
884
+ }, p;
883
885
  };
884
886
  }, { "./debounce": 4, atoa: 3 }],
885
- 6: [function(E, P, B) {
886
- (function(p) {
887
- var w = E("custom-event"), h = E("./eventmap"), f = p.document, F = u, C = o, I = [];
888
- p.addEventListener || (F = n, C = s), P.exports = {
889
- add: F,
890
- remove: C,
891
- fabricate: v
887
+ 6: [function(I, w, B) {
888
+ (function(g) {
889
+ var C = I("custom-event"), b = I("./eventmap"), p = g.document, T = S, O = r, d = [];
890
+ g.addEventListener || (T = f, O = i), w.exports = {
891
+ add: T,
892
+ remove: O,
893
+ fabricate: y
892
894
  };
893
- function u(l, A, U, $) {
894
- return l.addEventListener(A, U, $);
895
+ function S(l, E, U, Y) {
896
+ return l.addEventListener(E, U, Y);
895
897
  }
896
- function n(l, A, U) {
897
- return l.attachEvent("on" + A, Y(l, A, U));
898
+ function f(l, E, U) {
899
+ return l.attachEvent("on" + E, F(l, E, U));
898
900
  }
899
- function o(l, A, U, $) {
900
- return l.removeEventListener(A, U, $);
901
+ function r(l, E, U, Y) {
902
+ return l.removeEventListener(E, U, Y);
901
903
  }
902
- function s(l, A, U) {
903
- var $ = j(l, A, U);
904
- if ($)
905
- return l.detachEvent("on" + A, $);
904
+ function i(l, E, U) {
905
+ var Y = $(l, E, U);
906
+ if (Y)
907
+ return l.detachEvent("on" + E, Y);
906
908
  }
907
- function v(l, A, U) {
908
- var $ = h.indexOf(A) === -1 ? Q() : re();
909
- l.dispatchEvent ? l.dispatchEvent($) : l.fireEvent("on" + A, $);
909
+ function y(l, E, U) {
910
+ var Y = b.indexOf(E) === -1 ? Q() : re();
911
+ l.dispatchEvent ? l.dispatchEvent(Y) : l.fireEvent("on" + E, Y);
910
912
  function re() {
911
- var d;
912
- return f.createEvent ? (d = f.createEvent("Event"), d.initEvent(A, !0, !0)) : f.createEventObject && (d = f.createEventObject()), d;
913
+ var m;
914
+ return p.createEvent ? (m = p.createEvent("Event"), m.initEvent(E, !0, !0)) : p.createEventObject && (m = p.createEventObject()), m;
913
915
  }
914
916
  function Q() {
915
- return new w(A, { detail: U });
917
+ return new C(E, { detail: U });
916
918
  }
917
919
  }
918
- function m(l, A, U) {
920
+ function a(l, E, U) {
919
921
  return function(re) {
920
- var Q = re || p.event;
922
+ var Q = re || g.event;
921
923
  Q.target = Q.target || Q.srcElement, Q.preventDefault = Q.preventDefault || function() {
922
924
  Q.returnValue = !1;
923
925
  }, Q.stopPropagation = Q.stopPropagation || function() {
@@ -925,368 +927,369 @@ var tt = { exports: {} };
925
927
  }, Q.which = Q.which || Q.keyCode, U.call(l, Q);
926
928
  };
927
929
  }
928
- function Y(l, A, U) {
929
- var $ = j(l, A, U) || m(l, A, U);
930
- return I.push({
931
- wrapper: $,
930
+ function F(l, E, U) {
931
+ var Y = $(l, E, U) || a(l, E, U);
932
+ return d.push({
933
+ wrapper: Y,
932
934
  element: l,
933
- type: A,
935
+ type: E,
934
936
  fn: U
935
- }), $;
937
+ }), Y;
936
938
  }
937
- function j(l, A, U) {
938
- var $ = X(l, A, U);
939
- if ($) {
940
- var re = I[$].wrapper;
941
- return I.splice($, 1), re;
939
+ function $(l, E, U) {
940
+ var Y = R(l, E, U);
941
+ if (Y) {
942
+ var re = d[Y].wrapper;
943
+ return d.splice(Y, 1), re;
942
944
  }
943
945
  }
944
- function X(l, A, U) {
945
- var $, re;
946
- for ($ = 0; $ < I.length; $++)
947
- if (re = I[$], re.element === l && re.type === A && re.fn === U)
948
- return $;
946
+ function R(l, E, U) {
947
+ var Y, re;
948
+ for (Y = 0; Y < d.length; Y++)
949
+ if (re = d[Y], re.element === l && re.type === E && re.fn === U)
950
+ return Y;
949
951
  }
950
952
  }).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
951
953
  }, { "./eventmap": 7, "custom-event": 8 }],
952
- 7: [function(E, P, B) {
953
- (function(p) {
954
- var w = [], h = "", f = /^on/;
955
- for (h in p)
956
- f.test(h) && w.push(h.slice(2));
957
- P.exports = w;
954
+ 7: [function(I, w, B) {
955
+ (function(g) {
956
+ var C = [], b = "", p = /^on/;
957
+ for (b in g)
958
+ p.test(b) && C.push(b.slice(2));
959
+ w.exports = C;
958
960
  }).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
959
961
  }, {}],
960
- 8: [function(E, P, B) {
961
- (function(p) {
962
- var w = p.CustomEvent;
963
- function h() {
962
+ 8: [function(I, w, B) {
963
+ (function(g) {
964
+ var C = g.CustomEvent;
965
+ function b() {
964
966
  try {
965
- var f = new w("cat", { detail: { foo: "bar" } });
966
- return f.type === "cat" && f.detail.foo === "bar";
967
+ var p = new C("cat", { detail: { foo: "bar" } });
968
+ return p.type === "cat" && p.detail.foo === "bar";
967
969
  } catch {
968
970
  }
969
971
  return !1;
970
972
  }
971
- P.exports = h() ? w : (
973
+ w.exports = b() ? C : (
972
974
  // IE >= 9
973
- typeof document < "u" && typeof document.createEvent == "function" ? function(F, C) {
974
- var I = document.createEvent("CustomEvent");
975
- return C ? I.initCustomEvent(F, C.bubbles, C.cancelable, C.detail) : I.initCustomEvent(F, !1, !1, void 0), I;
975
+ typeof document < "u" && typeof document.createEvent == "function" ? function(T, O) {
976
+ var d = document.createEvent("CustomEvent");
977
+ return O ? d.initCustomEvent(T, O.bubbles, O.cancelable, O.detail) : d.initCustomEvent(T, !1, !1, void 0), d;
976
978
  } : (
977
979
  // IE <= 8
978
- function(F, C) {
979
- var I = document.createEventObject();
980
- return I.type = F, C ? (I.bubbles = !!C.bubbles, I.cancelable = !!C.cancelable, I.detail = C.detail) : (I.bubbles = !1, I.cancelable = !1, I.detail = void 0), I;
980
+ function(T, O) {
981
+ var d = document.createEventObject();
982
+ return d.type = T, O ? (d.bubbles = !!O.bubbles, d.cancelable = !!O.cancelable, d.detail = O.detail) : (d.bubbles = !1, d.cancelable = !1, d.detail = void 0), d;
981
983
  }
982
984
  )
983
985
  );
984
986
  }).call(this, typeof Se < "u" ? Se : typeof self < "u" ? self : typeof window < "u" ? window : {});
985
987
  }, {}],
986
- 9: [function(E, P, B) {
987
- var p = P.exports = {}, w, h;
988
- function f() {
988
+ 9: [function(I, w, B) {
989
+ var g = w.exports = {}, C, b;
990
+ function p() {
989
991
  throw new Error("setTimeout has not been defined");
990
992
  }
991
- function F() {
993
+ function T() {
992
994
  throw new Error("clearTimeout has not been defined");
993
995
  }
994
996
  (function() {
995
997
  try {
996
- typeof setTimeout == "function" ? w = setTimeout : w = f;
998
+ typeof setTimeout == "function" ? C = setTimeout : C = p;
997
999
  } catch {
998
- w = f;
1000
+ C = p;
999
1001
  }
1000
1002
  try {
1001
- typeof clearTimeout == "function" ? h = clearTimeout : h = F;
1003
+ typeof clearTimeout == "function" ? b = clearTimeout : b = T;
1002
1004
  } catch {
1003
- h = F;
1005
+ b = T;
1004
1006
  }
1005
1007
  })();
1006
- function C(X) {
1007
- if (w === setTimeout)
1008
- return setTimeout(X, 0);
1009
- if ((w === f || !w) && setTimeout)
1010
- return w = setTimeout, setTimeout(X, 0);
1008
+ function O(R) {
1009
+ if (C === setTimeout)
1010
+ return setTimeout(R, 0);
1011
+ if ((C === p || !C) && setTimeout)
1012
+ return C = setTimeout, setTimeout(R, 0);
1011
1013
  try {
1012
- return w(X, 0);
1014
+ return C(R, 0);
1013
1015
  } catch {
1014
1016
  try {
1015
- return w.call(null, X, 0);
1017
+ return C.call(null, R, 0);
1016
1018
  } catch {
1017
- return w.call(this, X, 0);
1019
+ return C.call(this, R, 0);
1018
1020
  }
1019
1021
  }
1020
1022
  }
1021
- function I(X) {
1022
- if (h === clearTimeout)
1023
- return clearTimeout(X);
1024
- if ((h === F || !h) && clearTimeout)
1025
- return h = clearTimeout, clearTimeout(X);
1023
+ function d(R) {
1024
+ if (b === clearTimeout)
1025
+ return clearTimeout(R);
1026
+ if ((b === T || !b) && clearTimeout)
1027
+ return b = clearTimeout, clearTimeout(R);
1026
1028
  try {
1027
- return h(X);
1029
+ return b(R);
1028
1030
  } catch {
1029
1031
  try {
1030
- return h.call(null, X);
1032
+ return b.call(null, R);
1031
1033
  } catch {
1032
- return h.call(this, X);
1034
+ return b.call(this, R);
1033
1035
  }
1034
1036
  }
1035
1037
  }
1036
- var u = [], n = !1, o, s = -1;
1037
- function v() {
1038
- !n || !o || (n = !1, o.length ? u = o.concat(u) : s = -1, u.length && m());
1038
+ var S = [], f = !1, r, i = -1;
1039
+ function y() {
1040
+ !f || !r || (f = !1, r.length ? S = r.concat(S) : i = -1, S.length && a());
1039
1041
  }
1040
- function m() {
1041
- if (!n) {
1042
- var X = C(v);
1043
- n = !0;
1044
- for (var l = u.length; l; ) {
1045
- for (o = u, u = []; ++s < l; )
1046
- o && o[s].run();
1047
- s = -1, l = u.length;
1042
+ function a() {
1043
+ if (!f) {
1044
+ var R = O(y);
1045
+ f = !0;
1046
+ for (var l = S.length; l; ) {
1047
+ for (r = S, S = []; ++i < l; )
1048
+ r && r[i].run();
1049
+ i = -1, l = S.length;
1048
1050
  }
1049
- o = null, n = !1, I(X);
1051
+ r = null, f = !1, d(R);
1050
1052
  }
1051
1053
  }
1052
- p.nextTick = function(X) {
1054
+ g.nextTick = function(R) {
1053
1055
  var l = new Array(arguments.length - 1);
1054
1056
  if (arguments.length > 1)
1055
- for (var A = 1; A < arguments.length; A++)
1056
- l[A - 1] = arguments[A];
1057
- u.push(new Y(X, l)), u.length === 1 && !n && C(m);
1057
+ for (var E = 1; E < arguments.length; E++)
1058
+ l[E - 1] = arguments[E];
1059
+ S.push(new F(R, l)), S.length === 1 && !f && O(a);
1058
1060
  };
1059
- function Y(X, l) {
1060
- this.fun = X, this.array = l;
1061
+ function F(R, l) {
1062
+ this.fun = R, this.array = l;
1061
1063
  }
1062
- Y.prototype.run = function() {
1064
+ F.prototype.run = function() {
1063
1065
  this.fun.apply(null, this.array);
1064
- }, p.title = "browser", p.browser = !0, p.env = {}, p.argv = [], p.version = "", p.versions = {};
1065
- function j() {
1066
+ }, g.title = "browser", g.browser = !0, g.env = {}, g.argv = [], g.version = "", g.versions = {};
1067
+ function $() {
1066
1068
  }
1067
- p.on = j, p.addListener = j, p.once = j, p.off = j, p.removeListener = j, p.removeAllListeners = j, p.emit = j, p.prependListener = j, p.prependOnceListener = j, p.listeners = function(X) {
1069
+ g.on = $, g.addListener = $, g.once = $, g.off = $, g.removeListener = $, g.removeAllListeners = $, g.emit = $, g.prependListener = $, g.prependOnceListener = $, g.listeners = function(R) {
1068
1070
  return [];
1069
- }, p.binding = function(X) {
1071
+ }, g.binding = function(R) {
1070
1072
  throw new Error("process.binding is not supported");
1071
- }, p.cwd = function() {
1073
+ }, g.cwd = function() {
1072
1074
  return "/";
1073
- }, p.chdir = function(X) {
1075
+ }, g.chdir = function(R) {
1074
1076
  throw new Error("process.chdir is not supported");
1075
- }, p.umask = function() {
1077
+ }, g.umask = function() {
1076
1078
  return 0;
1077
1079
  };
1078
1080
  }, {}],
1079
- 10: [function(E, P, B) {
1080
- (function(p) {
1081
- var w = typeof p == "function", h;
1082
- w ? h = function(f) {
1083
- p(f);
1084
- } : h = function(f) {
1085
- setTimeout(f, 0);
1086
- }, P.exports = h;
1087
- }).call(this, E("timers").setImmediate);
1081
+ 10: [function(I, w, B) {
1082
+ (function(g) {
1083
+ var C = typeof g == "function", b;
1084
+ C ? b = function(p) {
1085
+ g(p);
1086
+ } : b = function(p) {
1087
+ setTimeout(p, 0);
1088
+ }, w.exports = b;
1089
+ }).call(this, I("timers").setImmediate);
1088
1090
  }, { timers: 11 }],
1089
- 11: [function(E, P, B) {
1090
- (function(p, w) {
1091
- var h = E("process/browser.js").nextTick, f = Function.prototype.apply, F = Array.prototype.slice, C = {}, I = 0;
1091
+ 11: [function(I, w, B) {
1092
+ (function(g, C) {
1093
+ var b = I("process/browser.js").nextTick, p = Function.prototype.apply, T = Array.prototype.slice, O = {}, d = 0;
1092
1094
  B.setTimeout = function() {
1093
- return new u(f.call(setTimeout, window, arguments), clearTimeout);
1095
+ return new S(p.call(setTimeout, window, arguments), clearTimeout);
1094
1096
  }, B.setInterval = function() {
1095
- return new u(f.call(setInterval, window, arguments), clearInterval);
1096
- }, B.clearTimeout = B.clearInterval = function(n) {
1097
- n.close();
1097
+ return new S(p.call(setInterval, window, arguments), clearInterval);
1098
+ }, B.clearTimeout = B.clearInterval = function(f) {
1099
+ f.close();
1098
1100
  };
1099
- function u(n, o) {
1100
- this._id = n, this._clearFn = o;
1101
+ function S(f, r) {
1102
+ this._id = f, this._clearFn = r;
1101
1103
  }
1102
- u.prototype.unref = u.prototype.ref = function() {
1103
- }, u.prototype.close = function() {
1104
+ S.prototype.unref = S.prototype.ref = function() {
1105
+ }, S.prototype.close = function() {
1104
1106
  this._clearFn.call(window, this._id);
1105
- }, B.enroll = function(n, o) {
1106
- clearTimeout(n._idleTimeoutId), n._idleTimeout = o;
1107
- }, B.unenroll = function(n) {
1108
- clearTimeout(n._idleTimeoutId), n._idleTimeout = -1;
1109
- }, B._unrefActive = B.active = function(n) {
1110
- clearTimeout(n._idleTimeoutId);
1111
- var o = n._idleTimeout;
1112
- o >= 0 && (n._idleTimeoutId = setTimeout(function() {
1113
- n._onTimeout && n._onTimeout();
1114
- }, o));
1115
- }, B.setImmediate = typeof p == "function" ? p : function(n) {
1116
- var o = I++, s = arguments.length < 2 ? !1 : F.call(arguments, 1);
1117
- return C[o] = !0, h(function() {
1118
- C[o] && (s ? n.apply(null, s) : n.call(null), B.clearImmediate(o));
1119
- }), o;
1120
- }, B.clearImmediate = typeof w == "function" ? w : function(n) {
1121
- delete C[n];
1107
+ }, B.enroll = function(f, r) {
1108
+ clearTimeout(f._idleTimeoutId), f._idleTimeout = r;
1109
+ }, B.unenroll = function(f) {
1110
+ clearTimeout(f._idleTimeoutId), f._idleTimeout = -1;
1111
+ }, B._unrefActive = B.active = function(f) {
1112
+ clearTimeout(f._idleTimeoutId);
1113
+ var r = f._idleTimeout;
1114
+ r >= 0 && (f._idleTimeoutId = setTimeout(function() {
1115
+ f._onTimeout && f._onTimeout();
1116
+ }, r));
1117
+ }, B.setImmediate = typeof g == "function" ? g : function(f) {
1118
+ var r = d++, i = arguments.length < 2 ? !1 : T.call(arguments, 1);
1119
+ return O[r] = !0, b(function() {
1120
+ O[r] && (i ? f.apply(null, i) : f.call(null), B.clearImmediate(r));
1121
+ }), r;
1122
+ }, B.clearImmediate = typeof C == "function" ? C : function(f) {
1123
+ delete O[f];
1122
1124
  };
1123
- }).call(this, E("timers").setImmediate, E("timers").clearImmediate);
1125
+ }).call(this, I("timers").setImmediate, I("timers").clearImmediate);
1124
1126
  }, { "process/browser.js": 9, timers: 11 }]
1125
1127
  }, {}, [2])(2);
1126
1128
  });
1127
- })(tt);
1128
- var En = tt.exports;
1129
- const Je = /* @__PURE__ */ Tn(En);
1130
- function On() {
1131
- let O;
1132
- function Z(n, o, s) {
1133
- const v = {};
1134
- return v.sourceElement = n, v.sourceContainer = s, v.targetContainer = o, v.sourceType = n.getAttribute("data-sourceType") || "move", v.controlType = n.getAttribute("data-controlType"), v.controlTypeName = n.getAttribute("data-controlTypeName"), v.controlCategory = n.getAttribute("data-category"), v.controlFeature = n.getAttribute("data-feature"), v.parentComponentInstance = o.componentInstance, v.controlCategory === "input" ? v.bindingType = "field" : v.controlCategory === "dataCollection" && (v.bindingType = "entity"), n.componentInstance && (v.controlType = n.componentInstance.value.schema.type, v.controlCategory = n.componentInstance.value.schema.category), v;
1129
+ })(nt);
1130
+ var Fn = nt.exports;
1131
+ const Ze = /* @__PURE__ */ On(Fn);
1132
+ function An(D) {
1133
+ let z;
1134
+ function I(r, i, y) {
1135
+ const a = {};
1136
+ return a.sourceElement = r, a.sourceContainer = y, a.targetContainer = i, a.sourceType = r.getAttribute("data-sourceType") || "move", a.controlType = r.getAttribute("data-controlType"), a.controlTypeName = r.getAttribute("data-controlTypeName"), a.controlCategory = r.getAttribute("data-category"), a.controlFeature = r.getAttribute("data-feature"), a.parentComponentInstance = i.componentInstance, a.controlCategory === "input" ? a.bindingType = "field" : a.controlCategory === "dataCollection" && (a.bindingType = "entity"), r.componentInstance && (a.controlType = r.componentInstance.value.schema.type, a.controlCategory = r.componentInstance.value.schema.category), a;
1135
1137
  }
1136
- function E(n, o, s) {
1137
- if (n.contains(o) || o.classList.contains("no-drop"))
1138
+ function w(r, i, y) {
1139
+ if (r.contains(i) || i.classList.contains("no-drop"))
1138
1140
  return !1;
1139
- const v = !0;
1140
- if (n.componentInstance && n.componentInstance.value.getDragScopeElement) {
1141
- const m = n.componentInstance.value.getDragScopeElement();
1142
- if (m && !m.contains(o))
1141
+ const a = !0;
1142
+ if (r.componentInstance && r.componentInstance.value.getDragScopeElement) {
1143
+ const F = r.componentInstance.value.getDragScopeElement();
1144
+ if (F && !F.contains(i))
1143
1145
  return !1;
1144
1146
  }
1145
- if (o.componentInstance && o.componentInstance.value.canAccepts) {
1146
- const m = Z(n, o, s);
1147
- return o.componentInstance.value.canAccepts(m);
1147
+ if (i.componentInstance && i.componentInstance.value.canAccepts) {
1148
+ const F = I(r, i, y);
1149
+ return i.componentInstance.value.canAccepts(F);
1148
1150
  }
1149
- return v;
1151
+ return a;
1150
1152
  }
1151
- function P(n, o) {
1152
- const s = o.getBoundingClientRect(), v = n.getBoundingClientRect(), m = v.top >= s.top, Y = v.top < s.bottom;
1153
- return m && Y;
1153
+ function B(r, i) {
1154
+ const y = i.getBoundingClientRect(), a = r.getBoundingClientRect(), F = a.top >= y.top, $ = a.top < y.bottom;
1155
+ return F && $;
1154
1156
  }
1155
- function B(n, o) {
1156
- const s = n.querySelector(".dgComponentSelected");
1157
- if (!(!s || o === 0) && P(s, n)) {
1158
- const v = s.querySelector(".component-btn-group");
1159
- if (v) {
1160
- const m = v.querySelector("div");
1161
- if (m && m.style.top) {
1162
- const Y = Number.parseFloat(m.style.top);
1163
- m.style.top = Y - o + "px";
1157
+ function g(r, i) {
1158
+ const y = r.querySelector(".dgComponentSelected");
1159
+ if (!(!y || i === 0) && B(y, r)) {
1160
+ const a = y.querySelector(".component-btn-group");
1161
+ if (a) {
1162
+ const F = a.querySelector("div");
1163
+ if (F && F.style.top) {
1164
+ const $ = Number.parseFloat(F.style.top);
1165
+ F.style.top = $ - i + "px";
1164
1166
  }
1165
1167
  }
1166
1168
  }
1167
1169
  }
1168
- function p(n, o, s) {
1169
- n.componentInstance;
1170
- let v = -1;
1171
- if (!o)
1170
+ function C(r, i, y) {
1171
+ r.componentInstance;
1172
+ let a = -1;
1173
+ if (!i)
1172
1174
  return -1;
1173
- if (n.componentInstance.value.contents) {
1174
- if (s && s.componentInstance) {
1175
- if (s.getAttribute("data-noattach"))
1176
- v = Number(s.getAttribute("data-position"));
1175
+ if (r.componentInstance.value.contents) {
1176
+ if (y && y.componentInstance) {
1177
+ if (y.getAttribute("data-noattach"))
1178
+ a = Number(y.getAttribute("data-position"));
1177
1179
  else {
1178
- const m = s.componentInstance.value.schema;
1179
- let Y = { id: m.id };
1180
- m.type === "Component" && (Y = { component: m.id }), v = Ye(n.componentInstance.value.contents, Y), v = v === -1 ? 0 : v;
1180
+ const F = y.componentInstance.value.schema;
1181
+ let $ = { id: F.id };
1182
+ F.type === "Component" && ($ = { component: F.id }), a = Ye(r.componentInstance.value.contents, $), a = a === -1 ? 0 : a;
1181
1183
  }
1182
- v !== -1 && n.componentInstance.value.contents.splice(v, 0, o);
1184
+ a !== -1 && r.componentInstance.value.contents.splice(a, 0, i);
1183
1185
  } else
1184
- n.componentInstance.value.contents.push(o);
1185
- n.componentInstance.value.updateDragAndDropRules();
1186
+ r.componentInstance.value.contents.push(i);
1187
+ r.componentInstance.value.updateDragAndDropRules();
1186
1188
  }
1187
- return v;
1189
+ return a;
1188
1190
  }
1189
- function w(n, o) {
1190
- if (!n.componentInstance.value.contents)
1191
+ function b(r, i) {
1192
+ if (!r.componentInstance.value.contents)
1191
1193
  return -1;
1192
- if (n.componentInstance.value.contents.length === 0)
1194
+ if (r.componentInstance.value.contents.length === 0)
1193
1195
  return 0;
1194
- if (!o || !o.componentInstance)
1195
- return n.componentInstance.value.contents.length;
1196
- if (o.getAttribute("data-noattach"))
1197
- return Number(o.getAttribute("data-position"));
1198
- const s = o.componentInstance.value.schema;
1199
- let v;
1200
- s.type === "Component" ? v = { component: s.id } : v = { id: s.id };
1201
- let m = Ye(n.componentInstance.value.contents, v);
1202
- return m = m === -1 ? 0 : m, m;
1196
+ if (!i || !i.componentInstance)
1197
+ return r.componentInstance.value.contents.length;
1198
+ if (i.getAttribute("data-noattach"))
1199
+ return Number(i.getAttribute("data-position"));
1200
+ const y = i.componentInstance.value.schema;
1201
+ let a;
1202
+ y.type === "Component" ? a = { component: y.id } : a = { id: y.id };
1203
+ let F = Ye(r.componentInstance.value.contents, a);
1204
+ return F = F === -1 ? 0 : F, F;
1203
1205
  }
1204
- function h(n, o, s, v) {
1205
- if (o.componentInstance.value.addNewChildComponentSchema) {
1206
- const m = w(o, v), Y = String(n.getAttribute("data-controltype")), j = n.getAttribute("data-feature"), X = String(n.innerText), l = o.componentInstance.value, A = { componentType: Y, label: X, parentComponentInstance: l, targetPosition: m }, U = j ? JSON.parse(j) : {}, $ = Object.assign(A, U), re = o.componentInstance.value.addNewChildComponentSchema($);
1207
- p(o, re, v);
1206
+ function p(r, i, y, a) {
1207
+ if (i.componentInstance.value.addNewChildComponentSchema) {
1208
+ const F = b(i, a), $ = String(r.getAttribute("data-controltype")), R = r.getAttribute("data-feature"), l = String(r.innerText), E = i.componentInstance.value, U = { componentType: $, label: l, parentComponentInstance: E, targetPosition: F }, Y = R ? JSON.parse(R) : {}, re = Object.assign(U, Y), Q = i.componentInstance.value.addNewChildComponentSchema(re, D);
1209
+ C(i, Q, a);
1208
1210
  }
1209
- o.contains(n) && o.removeChild(n);
1211
+ i.contains(r) && i.removeChild(r);
1210
1212
  }
1211
- function f(n, o, s, v) {
1212
- let m, Y = -1;
1213
- if (n.componentInstance && n.componentInstance.value.triggerBelongedComponentToMoveWhenMoved) {
1214
- const l = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
1215
- l && (n = q(l.elementRef).value.parentElement, s = n.parentElement);
1213
+ function T(r, i, y, a) {
1214
+ let F, $ = -1;
1215
+ if (r.componentInstance && r.componentInstance.value.triggerBelongedComponentToMoveWhenMoved) {
1216
+ const E = r.componentInstance.value.getBelongedComponentInstance(r.componentInstance);
1217
+ E && (r = H(E.elementRef).value.parentElement, y = r.parentElement);
1216
1218
  }
1217
- const j = n.componentInstance && n.componentInstance.value.schema, X = { id: j && j.id };
1218
- Y = Ye(s.componentInstance.value.contents, X), Y !== -1 && s.componentInstance.value.contents && (m = s.componentInstance.value.contents.splice(Y, 1), m = m[0]), p(o, m, v), s.componentInstance && s.componentInstance.value.onChildElementMovedOut && s.componentInstance.value.onChildElementMovedOut(n), o.componentInstance && o.componentInstance.value.onAcceptMovedChildElement && o.componentInstance.value.onAcceptMovedChildElement(n, s);
1219
+ const R = r.componentInstance && r.componentInstance.value.schema;
1220
+ let l = { id: R && R.id };
1221
+ R.type === "component" && (l = { component: R && R.id }), $ = Ye(y.componentInstance.value.contents, l), $ !== -1 && y.componentInstance.value.contents && (F = y.componentInstance.value.contents.splice($, 1), F = F[0]), C(i, F, a), y.componentInstance && y.componentInstance.value.onChildElementMovedOut && y.componentInstance.value.onChildElementMovedOut(r), i.componentInstance && i.componentInstance.value.onAcceptMovedChildElement && i.componentInstance.value.onAcceptMovedChildElement(r, y);
1219
1222
  }
1220
- function F(n, o, s, v) {
1221
- if (!o || n.contains(o))
1223
+ function O(r, i, y, a) {
1224
+ if (!i || r.contains(i))
1222
1225
  return;
1223
- switch (n.getAttribute("data-sourceType")) {
1226
+ switch (r.getAttribute("data-sourceType")) {
1224
1227
  case "control":
1225
1228
  case "field":
1226
1229
  case "entity": {
1227
- h(n, o, s, v);
1230
+ p(r, i, y, a);
1228
1231
  break;
1229
1232
  }
1230
1233
  default:
1231
- s.componentInstance.value.contents ? f(n, o, s, v) : o.contains(n) && o.removeChild(n);
1234
+ y.componentInstance.value.contents ? T(r, i, y, a) : i.contains(r) && i.removeChild(r);
1232
1235
  }
1233
1236
  Oe.value++;
1234
1237
  }
1235
- function C(n) {
1236
- O && O.destroy(), Je && (O = Je([], {
1238
+ function d(r) {
1239
+ z && z.destroy(), Ze && (z = Ze([], {
1237
1240
  // 镜像容器
1238
- mirrorContainer: n,
1241
+ mirrorContainer: r,
1239
1242
  direction: "mixed",
1240
1243
  revertOnSpill: !0,
1241
1244
  // 判断是否可移动
1242
- moves(o, s, v) {
1243
- let m = !0;
1244
- return o.classList.contains("no-drag") && (m = !1), o.componentInstance && (m = !!v.getAttribute("data-dragging-icon")), m;
1245
+ moves(i, y, a) {
1246
+ let F = !0;
1247
+ return i.classList.contains("no-drag") && (F = !1), i.componentInstance && (F = !!a.getAttribute("data-dragging-icon")), F;
1245
1248
  },
1246
1249
  // 判断是否可拷贝
1247
- copy(o) {
1248
- return o.classList.contains("drag-copy");
1250
+ copy(i) {
1251
+ return i.classList.contains("drag-copy");
1249
1252
  },
1250
1253
  // 获取镜像元素的文本内容
1251
- getMirrorText(o) {
1252
- return o.componentInstance && o.componentInstance.value.getDraggingDisplayText ? o.componentInstance.value.getDraggingDisplayText() : o.innerText || "控件";
1254
+ getMirrorText(i) {
1255
+ return i.componentInstance && i.componentInstance.value.getDraggingDisplayText ? i.componentInstance.value.getDraggingDisplayText() : i.innerText || "控件";
1253
1256
  },
1254
1257
  // 判断目标区域是否可接收拖拽的控件
1255
- accepts(o, s, v) {
1256
- const m = E(o, s, v), Y = n.lastElementChild;
1257
- return m ? Y.className = Y.className.replace("undroppable", "") : Y.className.includes("undroppable") || (Y.className += " undroppable"), m;
1258
+ accepts(i, y, a) {
1259
+ const F = w(i, y, a), $ = r.lastElementChild;
1260
+ return F ? $.className = $.className.replace("undroppable", "") : $.className.includes("undroppable") || ($.className += " undroppable"), F;
1258
1261
  }
1259
- }).on("over", (o, s) => {
1260
- s.className += " drag-over";
1261
- }).on("out", (o, s) => {
1262
- s.className = s.className.replace("drag-over", "").replace(" ", "");
1263
- }).on("drop", (o, s, v, m) => {
1264
- F(o, s, v, m);
1265
- }).on("dragend", (o, s) => {
1266
- B(o, s);
1262
+ }).on("over", (i, y) => {
1263
+ y.className += " drag-over";
1264
+ }).on("out", (i, y) => {
1265
+ y.className = y.className.replace("drag-over", "").replace(" ", "");
1266
+ }).on("drop", (i, y, a, F) => {
1267
+ O(i, y, a, F);
1268
+ }).on("dragend", (i, y) => {
1269
+ g(i, y);
1267
1270
  }));
1268
1271
  }
1269
- function I(n, o) {
1270
- if (!n)
1272
+ function S(r, i) {
1273
+ if (!r)
1271
1274
  return;
1272
- if (o.noDragDrop)
1273
- return n;
1274
- const s = n.querySelector(`[data-dragref='${o.id}-container']`) || n;
1275
- O && s && O.containers.push(s);
1275
+ if (i.noDragDrop)
1276
+ return r;
1277
+ const y = r.querySelector(`[data-dragref='${i.id}-container']`) || r;
1278
+ z && y && z.containers.push(y);
1276
1279
  }
1277
- function u() {
1278
- if (!O)
1280
+ function f() {
1281
+ if (!z)
1279
1282
  return;
1280
- const n = document.getElementsByClassName("controlCategory");
1281
- n && (O.containers = O.containers.filter(
1282
- (o) => !o.className.includes("controlCategory")
1283
- ), Array.from(n).forEach((o) => {
1284
- O.containers.push(o);
1283
+ const r = document.getElementsByClassName("controlCategory");
1284
+ r && (z.containers = z.containers.filter(
1285
+ (i) => !i.className.includes("controlCategory")
1286
+ ), Array.from(r).forEach((i) => {
1287
+ z.containers.push(i);
1285
1288
  }));
1286
1289
  }
1287
- return { attachComponents: I, attachToolbox: u, initializeDragula: C };
1290
+ return { attachComponents: S, attachToolbox: f, initializeDragula: d };
1288
1291
  }
1289
- const Fn = {
1292
+ const Nn = {
1290
1293
  id: { type: String, default: "" },
1291
1294
  componentId: { type: String, default: "" },
1292
1295
  type: { type: String, default: "" },
@@ -1301,107 +1304,115 @@ const Fn = {
1301
1304
  */
1302
1305
  modelValue: { type: Object },
1303
1306
  ignore: { type: Boolean, default: !1 }
1304
- }, M = {}, _ = {}, L = {};
1305
- let Ze = !1;
1306
- function An() {
1307
- Ze || (Ze = !0, Ct.registerDesigner(M, _, L), ht.registerDesigner(M, _, L), xt.registerDesigner(M, _, L), wt.registerDesigner(M, _, L), bt.registerDesigner(M, _, L), Pt.registerDesigner(M, _, L), It.registerDesigner(M, _, L), St.registerDesigner(M, _, L), Tt.registerDesigner(M, _, L), Et.registerDesigner(M, _, L), Ot.registerDesigner(M, _, L), Ft.registerDesigner(M, _, L), At.registerDesigner(M, _, L), Nt.registerDesigner(M, _, L), Bt.registerDesigner(M, _, L), Dt.registerDesigner(M, _), Mt.registerDesigner(M, _, L), _t.registerDesigner(M, _, L), Lt.registerDesigner(M, _, L), Rt.registerDesigner(M, _, L), Vt.registerDesigner(M, _, L), kt.registerDesigner(M, _, L), $t.registerDesigner(M, _, L), Xt.registerDesigner(M, _, L), jt.registerDesigner(M, _, L), Yt.registerDesigner(M, _, L), zt.registerDesigner(M, _, L), Ut.registerDesigner(M, _, L), Ht.registerDesigner(M, _, L), Wt.registerDesigner(M, _, L), qt.registerDesigner(M, _, L), Gt.registerDesigner(M, _, L), Kt.registerDesigner(M, _, L), Zt.registerDesigner(M, _, L), en.registerDesigner(M, _, L), Jt.registerDesigner(M, _, L), Qt.registerDesigner(M, _, L), tn.registerDesigner(M, _, L), nn.registerDesigner(M, _, L), on.registerDesigner(M, _, L), rn.registerDesigner(M, _, L), sn.registerDesigner(M, _, L), an.registerDesigner(M, _, L), cn.registerDesigner(M, _, L), ln.registerDesigner(M, _, L), un.registerDesigner(M, _, L), gn.registerDesigner(M, _, L), fn.registerDesigner(M, _, L), dn.registerDesigner(M, _, L), pn.registerDesigner(M, _, L), mn.registerDesigner(M, _, L), vn.registerDesigner(M, _, L), yn.registerDesigner(M, _), hn.registerDesigner(M, _, L), Cn.registerDesigner(M, _, L));
1307
+ }, M = {}, _ = {}, k = {};
1308
+ let et = !1;
1309
+ function Dn() {
1310
+ et || (et = !0, xt.registerDesigner(M, _, k), Ct.registerDesigner(M, _, k), bt.registerDesigner(M, _, k), wt.registerDesigner(M, _, k), Pt.registerDesigner(M, _, k), It.registerDesigner(M, _, k), St.registerDesigner(M, _, k), Tt.registerDesigner(M, _, k), Et.registerDesigner(M, _, k), Ot.registerDesigner(M, _, k), Ft.registerDesigner(M, _, k), At.registerDesigner(M, _, k), Nt.registerDesigner(M, _, k), Dt.registerDesigner(M, _, k), Mt.registerDesigner(M, _, k), Bt.registerDesigner(M, _), _t.registerDesigner(M, _, k), Lt.registerDesigner(M, _, k), kt.registerDesigner(M, _, k), Rt.registerDesigner(M, _, k), Xt.registerDesigner(M, _, k), Vt.registerDesigner(M, _, k), Yt.registerDesigner(M, _, k), $t.registerDesigner(M, _, k), zt.registerDesigner(M, _, k), jt.registerDesigner(M, _, k), Ut.registerDesigner(M, _, k), Ht.registerDesigner(M, _, k), Wt.registerDesigner(M, _, k), qt.registerDesigner(M, _, k), Gt.registerDesigner(M, _, k), Kt.registerDesigner(M, _, k), Qt.registerDesigner(M, _, k), en.registerDesigner(M, _, k), tn.registerDesigner(M, _, k), Zt.registerDesigner(M, _, k), Jt.registerDesigner(M, _, k), nn.registerDesigner(M, _, k), on.registerDesigner(M, _, k), rn.registerDesigner(M, _, k), sn.registerDesigner(M, _, k), an.registerDesigner(M, _, k), cn.registerDesigner(M, _, k), ln.registerDesigner(M, _, k), un.registerDesigner(M, _, k), fn.registerDesigner(M, _, k), yn.registerDesigner(M, _, k), dn.registerDesigner(M, _, k), pn.registerDesigner(M, _, k), mn.registerDesigner(M, _, k), vn.registerDesigner(M, _, k), gn.registerDesigner(M, _, k), hn.registerDesigner(M, _), Cn.registerDesigner(M, _, k), xn.registerDesigner(M, _, k), bn.registerDesigner(M, _, k));
1308
1311
  }
1309
- const Nn = {
1312
+ const Bn = {
1310
1313
  id: { type: String }
1311
- }, Dn = /* @__PURE__ */ Fe({
1314
+ }, Mn = /* @__PURE__ */ Fe({
1312
1315
  name: "FDesignerPlaceholder",
1313
- props: Nn,
1316
+ props: Bn,
1314
1317
  emits: [],
1315
- setup(O) {
1316
- const Z = Te(() => ({
1318
+ setup(D) {
1319
+ const z = Te(() => ({
1317
1320
  "drag-and-drop-alert": !0,
1318
- alert: !0,
1319
- "alert-info": !0,
1320
1321
  "no-drag": !0,
1321
1322
  "w-100": !0
1322
- })), E = Te(() => ({
1323
+ })), I = Te(() => ({
1323
1324
  height: "60px",
1324
1325
  display: "flex",
1325
1326
  "justify-content": "center",
1326
1327
  "align-items": "center",
1327
- margin: 0
1328
+ margin: 0,
1329
+ padding: ".75rem 1.25rem",
1330
+ border: "1px solid transparent",
1331
+ "border-radius": "3px",
1332
+ color: "#315585",
1333
+ "background-color": "#dfedff",
1334
+ "border-color": "#d2e6ff"
1328
1335
  }));
1329
1336
  return () => J("div", {
1330
- class: Z.value,
1331
- style: E.value,
1337
+ class: z.value,
1338
+ style: I.value,
1332
1339
  role: "alert",
1333
1340
  "data-noattach": "true",
1334
1341
  "data-position": "0"
1335
- }, [vt("拖拽组件到这里")]);
1342
+ }, [gt("拖拽组件到这里")]);
1336
1343
  }
1337
1344
  });
1338
- function Bn(O) {
1339
- return typeof O == "function" || Object.prototype.toString.call(O) === "[object Object]" && !yt(O);
1345
+ function _n(D) {
1346
+ return typeof D == "function" || Object.prototype.toString.call(D) === "[object Object]" && !ht(D);
1340
1347
  }
1341
- const je = /* @__PURE__ */ Fe({
1348
+ const ze = /* @__PURE__ */ Fe({
1342
1349
  name: "FDesignerItem",
1343
- props: Fn,
1350
+ props: Nn,
1344
1351
  emits: ["selectionChange"],
1345
- setup(O, Z) {
1346
- const E = q(`${O.modelValue.id}-component`), P = q(O.canMove), B = q(O.canDelete), p = q(!1), w = q(O.modelValue), h = q(O.componentId || ""), f = q(""), F = q(""), C = q(), I = me("canvas-dragula"), u = q(), n = me("design-item-context"), o = {
1347
- designerItemElementRef: C,
1348
- componentInstance: u,
1349
- schema: w.value,
1350
- parent: n,
1351
- setupContext: Z
1352
+ setup(D, z) {
1353
+ const I = H(`${D.modelValue.id}-component`), w = H(D.canMove), B = H(D.canDelete), g = H(!1), C = H(D.modelValue), b = H(D.componentId || ""), p = H(""), T = H(""), O = H(D.customClass), d = H(), S = me("canvas-dragula"), f = H(), r = me("design-item-context"), i = {
1354
+ designerItemElementRef: d,
1355
+ componentInstance: f,
1356
+ schema: C.value,
1357
+ parent: r,
1358
+ setupContext: z
1352
1359
  };
1353
- Ee("design-item-context", o);
1354
- const s = me("useFormSchema"), v = Te(() => {
1355
- const g = O.modelValue.appearance && O.modelValue.appearance.class || "", S = {
1360
+ Ee("design-item-context", i);
1361
+ const y = me("useFormSchema"), a = Te(() => {
1362
+ const u = D.modelValue.appearance && D.modelValue.appearance.class || "";
1363
+ let A = {
1356
1364
  "farris-component": !0,
1357
1365
  // 受position-relative影响,整个容器的高度不能被撑起
1358
- "flex-fill": w.value.id == "root-component",
1359
- "position-relative": P.value && B.value,
1360
- "farris-nested": p.value,
1361
- "can-move": P.value,
1362
- "d-none": C.value && C.value.classList.contains("d-none")
1366
+ "flex-fill": C.value.id == "root-component",
1367
+ "position-relative": w.value && B.value,
1368
+ "farris-nested": g.value,
1369
+ "can-move": w.value,
1370
+ "d-none": d.value && d.value.classList.contains("d-none"),
1371
+ dgComponentSelected: d.value && d.value.classList.contains("dgComponentSelected"),
1372
+ dgComponentFocused: d.value && d.value.classList.contains("dgComponentFocused")
1363
1373
  };
1364
- return S[`farris-component-${w.value.type}`] = !0, g && g.split(" ").reduce((N, e) => (N[e] = !0, N), S), F.value && F.value.split(" ").reduce((N, e) => (N[e] = !0, N), S), S;
1365
- }), m = Te(() => {
1366
- const g = {}, S = O.modelValue.appearance && O.modelValue.appearance.style || "";
1367
- return S && S.split(";").reduce((N, e) => {
1368
- const [t, a] = e.split(":");
1369
- return N[t] = a, N;
1370
- }, g), f.value && f.value.split(";").reduce((N, e) => {
1371
- const [t, a] = e.split(":");
1372
- return t && (N[t] = a), N;
1373
- }, g), g;
1374
+ return A[`farris-component-${C.value.type}`] = !0, A = je(A, u), A = je(A, T.value), A = je(A, O.value), A;
1375
+ }), F = Te(() => {
1376
+ const u = {}, A = D.modelValue.appearance && D.modelValue.appearance.style || "";
1377
+ return A && A.split(";").reduce((e, t) => {
1378
+ const [c, v] = t.split(":");
1379
+ return e[c] = v, e;
1380
+ }, u), p.value && p.value.split(";").reduce((e, t) => {
1381
+ const [c, v] = t.split(":");
1382
+ return c && (e[c] = v), e;
1383
+ }, u), u;
1374
1384
  });
1375
- function Y(g, S) {
1376
- var N, e, t;
1377
- if (g && (g.preventDefault(), g.stopPropagation()), u.value.triggerBelongedComponentToDeleteWhenDeleted) {
1378
- const a = u.value.getBelongedComponentInstance(u);
1379
- if (a && a.parent) {
1380
- const b = q(a == null ? void 0 : a.parent), c = b.value.contents.findIndex((i) => i.id === a.schema.id);
1381
- (e = (N = b.value) == null ? void 0 : N.contents) == null || e.splice(c, 1), (t = b.value) == null || t.updateDragAndDropRules(), Oe.value++;
1385
+ function $(u, A) {
1386
+ var c, v, s;
1387
+ if (u && (u.preventDefault(), u.stopPropagation()), f.value.triggerBelongedComponentToDeleteWhenDeleted) {
1388
+ const n = f.value.getBelongedComponentInstance(f);
1389
+ if (n && n.parent) {
1390
+ const j = H(n == null ? void 0 : n.parent), L = j.value.contents.findIndex((ee) => ee.id === n.schema.id);
1391
+ (v = (c = j.value) == null ? void 0 : c.contents) == null || v.splice(L, 1), (s = j.value) == null || s.updateDragAndDropRules(), Oe.value++;
1382
1392
  }
1383
1393
  return;
1384
1394
  }
1385
- if (n && n.schema.contents) {
1386
- const a = n.schema.contents.findIndex((b) => b.id === S.id);
1387
- n.schema.contents.splice(a, 1), n.componentInstance.value.updateDragAndDropRules(), Oe.value++;
1395
+ let e = r, t = (n) => n.id === A.id;
1396
+ if (A.type === "component" && (e = r == null ? void 0 : r.parent, t = (n) => n.component === A.id), e && e.schema.contents) {
1397
+ const n = e.schema.contents.findIndex(t);
1398
+ e.schema.contents.splice(n, 1), e.componentInstance.value.updateDragAndDropRules(), Oe.value++, z.emit("selectionChange");
1388
1399
  }
1389
1400
  }
1390
- function j(g) {
1401
+ function R(u) {
1391
1402
  return B.value && J("div", {
1392
1403
  role: "button",
1393
1404
  class: "btn component-settings-button",
1394
1405
  title: "删除",
1395
1406
  ref: "removeComponent",
1396
- onClick: (S) => {
1397
- Y(S, g);
1407
+ onClick: (A) => {
1408
+ $(A, u);
1398
1409
  }
1399
1410
  }, [J("i", {
1400
1411
  class: "f-icon f-icon-yxs_delete"
1401
1412
  }, null)]);
1402
1413
  }
1403
- function X() {
1404
- return P.value && J("div", {
1414
+ function l() {
1415
+ return w.value && J("div", {
1405
1416
  role: "button",
1406
1417
  class: "btn component-settings-button",
1407
1418
  title: "移动",
@@ -1411,113 +1422,107 @@ const je = /* @__PURE__ */ Fe({
1411
1422
  class: "cmp_move f-icon f-icon-yxs_move"
1412
1423
  }, null)]);
1413
1424
  }
1414
- function l() {
1415
- return O.customButtons && !!O.customButtons.length && O.customButtons.map((g) => J("div", {
1425
+ function E() {
1426
+ return D.customButtons && !!D.customButtons.length && D.customButtons.map((u) => J("div", {
1416
1427
  role: "button",
1417
- class: `btn component-settings-button ${g.class || ""}`,
1418
- title: g.title,
1419
- ref: g.id
1428
+ class: `btn component-settings-button ${u.class || ""}`,
1429
+ title: u.title,
1430
+ ref: u.id
1420
1431
  }, [J("i", {
1421
- class: g.icon
1432
+ class: u.icon
1422
1433
  }, null)]));
1423
1434
  }
1424
- function A(g) {
1435
+ function U(u) {
1425
1436
  return J("div", {
1426
1437
  class: "component-btn-group",
1427
1438
  "data-noattach": "true"
1428
- }, [J("div", null, [j(g), X(), l()])]);
1439
+ }, [J("div", null, [R(u), l(), E()])]);
1429
1440
  }
1430
- function U(g, S, N, e) {
1431
- Z.emit("selectionChange", g, S, N, e);
1441
+ function Y(u, A, e, t) {
1442
+ z.emit("selectionChange", u, A, e, t);
1432
1443
  }
1433
- function $(g) {
1434
- let S;
1435
- const N = g.type, e = M[N], t = _[N], a = t ? t(g) : {};
1436
- a.customClass = O.ignore ? a.customClass : "", a.componentId = h.value;
1437
- const b = g.contents && g.contents.length === 0;
1438
- return g.contents && !!g.contents.length && e ? J(e, $e({
1439
- ref: u
1440
- }, a), Bn(S = g.contents.map((i) => J(je, {
1441
- key: i.id,
1442
- modelValue: i,
1443
- "onUpdate:modelValue": (z) => i = z,
1444
- componentId: h.value,
1445
- onSelectionChange: U
1446
- }, null))) ? S : {
1447
- default: () => [S]
1448
- }) : e ? b ? J(e, $e({
1449
- ref: u
1450
- }, a), {
1451
- default: () => [J(Dn, null, null)]
1452
- }) : J(e, $e({
1453
- ref: u
1454
- }, a), null) : J("div", null, null);
1444
+ function re(u) {
1445
+ let A;
1446
+ const e = u.type, t = M[e], c = _[e], v = c ? c(u) : {};
1447
+ v.customClass = D.ignore ? v.customClass : "", v.componentId = b.value;
1448
+ const s = u.contents && u.contents.length === 0;
1449
+ return u.contents && !!u.contents.length && t ? J(t, $e({
1450
+ ref: f
1451
+ }, v), _n(A = u.contents.map((j) => J(ze, {
1452
+ key: j.id,
1453
+ modelValue: j,
1454
+ "onUpdate:modelValue": (L) => j = L,
1455
+ componentId: b.value,
1456
+ onSelectionChange: Y
1457
+ }, null))) ? A : {
1458
+ default: () => [A]
1459
+ }) : t ? s ? J(t, $e({
1460
+ ref: f
1461
+ }, v), {
1462
+ default: () => [J(Mn, null, null)]
1463
+ }) : J(t, $e({
1464
+ ref: f
1465
+ }, v), null) : J("div", null, null);
1455
1466
  }
1456
- function re(g) {
1457
- if (g.type === "component-ref") {
1458
- let N = s == null ? void 0 : s.getFormSchema().module.components.find((e) => e.id === g.component);
1459
- if (N)
1460
- return J(je, {
1461
- key: N.id,
1462
- modelValue: N,
1463
- "onUpdate:modelValue": (e) => N = e,
1464
- componentId: N.id,
1465
- onSelectionChange: U
1467
+ function Q(u) {
1468
+ if (u.type === "component-ref") {
1469
+ let e = y == null ? void 0 : y.getFormSchema().module.components.find((t) => t.id === u.component);
1470
+ if (e)
1471
+ return J(ze, {
1472
+ key: e.id,
1473
+ modelValue: e,
1474
+ "onUpdate:modelValue": (t) => e = t,
1475
+ componentId: e.id,
1476
+ onSelectionChange: Y
1466
1477
  }, null);
1467
1478
  }
1468
1479
  }
1469
- ze(() => O.modelValue, (g) => {
1470
- w.value = g, E.value = `${g.id}-component`;
1480
+ Ue(() => D.modelValue, (u) => {
1481
+ C.value = u, I.value = `${u.id}-component`;
1471
1482
  });
1472
- function Q(g) {
1473
- const S = g.target;
1474
- et(S);
1483
+ function m(u) {
1484
+ const A = u.target;
1485
+ tt(A);
1475
1486
  }
1476
- function d() {
1477
- var g, S;
1478
- (S = (g = w.value) == null ? void 0 : g.contents) != null && S.length && C.value && C.value.addEventListener("scroll", Q);
1487
+ function G() {
1488
+ var u, A;
1489
+ (A = (u = C.value) == null ? void 0 : u.contents) != null && A.length && d.value && d.value.addEventListener("scroll", m);
1479
1490
  }
1480
- Ue(() => {
1481
- if (C.value && u.value && u.value.schema) {
1482
- const g = C.value.querySelector(`[data-dragref='${u.value.schema.id}-container']`);
1483
- I && g && I.attachComponents(g, w.value), p.value = u.value.canNested !== void 0 ? u.value.canNested : p.value, B.value = u.value.canDelete !== void 0 ? u.value.canDelete : B.value, P.value = u.value.canMove !== void 0 ? u.value.canMove : P.value, f.value = u.value.styles || "", F.value = u.value.designerClass || "", C.value && (C.value.componentInstance = u, C.value.designItemContext = o);
1491
+ He(() => {
1492
+ if (d.value && f.value && f.value.schema) {
1493
+ const u = d.value.querySelector(`[data-dragref='${f.value.schema.id}-container']`);
1494
+ S && u && S.attachComponents(u, C.value), g.value = f.value.canNested !== void 0 ? f.value.canNested : g.value, B.value = f.value.canDelete !== void 0 ? f.value.canDelete : B.value, w.value = f.value.canMove !== void 0 ? f.value.canMove : w.value, p.value = f.value.styles || "", T.value = f.value.designerClass || "", d.value && (d.value.componentInstance = f, d.value.designItemContext = i);
1484
1495
  }
1485
- d(), Oe.value++;
1486
- }), gt(() => {
1487
- C.value && C.value.removeEventListener("scroll", Q);
1496
+ G(), Oe.value++;
1497
+ }), yt(() => {
1498
+ d.value && d.value.removeEventListener("scroll", m);
1488
1499
  });
1489
- function G(g) {
1490
- Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((N) => N.classList.remove("dgComponentFocused")), g && (g.preventDefault(), g.stopPropagation());
1491
- const S = C.value;
1492
- if (S) {
1493
- const N = document.getElementsByClassName("dgComponentSelected");
1494
- if (!(N && N.length === 1 && N[0] === C.value) && (Array.from(N).forEach((t) => t.classList.remove("dgComponentSelected")), S.classList.add("dgComponentFocused"), Z.emit("selectionChange", w.value.type, w.value, h.value, u.value), u.value.getDraggableDesignItemElement)) {
1495
- const t = u.value.getDraggableDesignItemElement(o);
1496
- t && t.value && t.value.classList.add("dgComponentSelected");
1500
+ function Z(u) {
1501
+ Array.from(document.getElementsByClassName("dgComponentFocused")).forEach((e) => e.classList.remove("dgComponentFocused")), u && (u.preventDefault(), u.stopPropagation());
1502
+ const A = d.value;
1503
+ if (A) {
1504
+ const e = document.getElementsByClassName("dgComponentSelected");
1505
+ if (!(e && e.length === 1 && e[0] === d.value) && (Array.from(e).forEach((c) => c.classList.remove("dgComponentSelected")), A.classList.add("dgComponentFocused"), z.emit("selectionChange", C.value.type, C.value, b.value, f.value), f.value.getDraggableDesignItemElement)) {
1506
+ const c = f.value.getDraggableDesignItemElement(i);
1507
+ c && c.value && c.value.classList.add("dgComponentSelected");
1497
1508
  }
1498
1509
  }
1499
- Q(g);
1510
+ m(u);
1500
1511
  }
1501
- return () => w.value.type === "component-ref" ? re(w.value) : J("div", {
1502
- id: `${w.value.id}-design-item`,
1503
- ref: C,
1504
- class: v.value,
1505
- style: m.value,
1506
- onClick: G
1507
- }, [A(w.value), $(w.value)]);
1512
+ return () => C.value.type === "component-ref" ? Q(C.value) : J("div", {
1513
+ id: `${C.value.id}-design-item`,
1514
+ ref: d,
1515
+ class: a.value,
1516
+ style: F.value,
1517
+ onClick: Z
1518
+ }, [U(C.value), re(C.value)]);
1508
1519
  }
1509
- }), Mn = /* @__PURE__ */ Fe({
1520
+ }), Ln = /* @__PURE__ */ Fe({
1510
1521
  name: "FDesignerCanvas",
1511
- props: Sn,
1522
+ props: En,
1512
1523
  emits: ["init", "selectionChange", "canvasChanged"],
1513
- setup(O, Z) {
1514
- const E = q(), P = q(), B = q(), p = q(), w = q(), h = On(), f = q(O.componentId);
1515
- An(), Ee("canvas-dragula", h), Ee("design-item-context", {
1516
- designerItemElementRef: p,
1517
- componentInstance: w,
1518
- schema: P.value,
1519
- parent: void 0
1520
- }), Ee("designer-host-service", {
1524
+ setup(D, z) {
1525
+ const I = H(), w = H(), B = H(), g = H(), C = H(), b = H(D.componentId), p = {
1521
1526
  eventsEditorUtils: me("eventsEditorUtils"),
1522
1527
  formSchemaUtils: me("useFormSchema"),
1523
1528
  formMetadataConverter: me("formMetadataConverter"),
@@ -1525,21 +1530,29 @@ const je = /* @__PURE__ */ Fe({
1525
1530
  controlCreatorUtils: me("controlCreatorUtils"),
1526
1531
  metadataService: me("Meatdata_Http_Service_Token"),
1527
1532
  schemaService: me("schemaService")
1533
+ };
1534
+ Ee("designer-host-service", p);
1535
+ const T = An(p);
1536
+ Dn(), Ee("canvas-dragula", T), Ee("design-item-context", {
1537
+ designerItemElementRef: g,
1538
+ componentInstance: C,
1539
+ schema: w.value,
1540
+ parent: void 0
1528
1541
  });
1529
- const F = Te(() => ({
1542
+ const O = Te(() => ({
1530
1543
  "d-flex": !0,
1531
1544
  "flex-fill": !0,
1532
1545
  "flex-column": !0
1533
1546
  }));
1534
- Ue(() => {
1535
- B.value && h.initializeDragula(B.value), E.value = O.modelValue, Z.emit("init", h);
1536
- }), ze(Oe, () => {
1537
- et(B.value), Z.emit("canvasChanged");
1547
+ He(() => {
1548
+ B.value && T.initializeDragula(B.value), I.value = D.modelValue, z.emit("init", T);
1549
+ }), Ue(Oe, () => {
1550
+ tt(B.value), z.emit("canvasChanged");
1538
1551
  }, {
1539
1552
  flush: "post"
1540
1553
  });
1541
- function C(I, u, n, o) {
1542
- Z.emit("selectionChange", I, u, n, o);
1554
+ function d(S, f, r, i) {
1555
+ z.emit("selectionChange", S, f, r, i);
1543
1556
  }
1544
1557
  return () => J("div", {
1545
1558
  class: "editorDiv flex-fill h-100"
@@ -1547,155 +1560,155 @@ const je = /* @__PURE__ */ Fe({
1547
1560
  class: "editorPanel d-flex flex-fill flex-column PC"
1548
1561
  }, [J("div", {
1549
1562
  ref: B,
1550
- class: F.value
1551
- }, [E.value && J(je, {
1552
- modelValue: E.value,
1553
- "onUpdate:modelValue": (I) => E.value = I,
1554
- onSelectionChange: C,
1555
- componentId: f.value
1563
+ class: O.value
1564
+ }, [I.value && J(ze, {
1565
+ modelValue: I.value,
1566
+ "onUpdate:modelValue": (S) => I.value = S,
1567
+ onSelectionChange: d,
1568
+ componentId: b.value
1556
1569
  }, null)])])]);
1557
1570
  }
1558
- }), _n = /* @__PURE__ */ Fe({
1571
+ }), kn = /* @__PURE__ */ Fe({
1559
1572
  name: "FFlowNodeItem",
1560
- props: Pn,
1573
+ props: Sn,
1561
1574
  emits: [],
1562
- setup(O, Z) {
1563
- const E = q(O.id), P = q(O.modelValue), B = q(), p = me("use-drawing-bezier-composition"), {
1564
- drawFrom: w,
1565
- eraseDrawingLine: h,
1566
- finishToDraw: f,
1567
- getAncherPointPosition: F,
1568
- isAncherPoint: C
1569
- } = p, I = me("use-bezier-curve-composition"), {
1570
- connect: u
1571
- } = I, n = me("use-connections-composition"), {
1572
- addConnection: o,
1573
- getConnectionsOfNode: s
1574
- } = n;
1575
- new Map(O.connection);
1576
- const v = Te(() => ({
1577
- left: `${O.x}px`,
1578
- top: `${O.y}px`
1575
+ setup(D, z) {
1576
+ const I = H(D.id), w = H(D.modelValue), B = H(), g = me("use-drawing-bezier-composition"), {
1577
+ drawFrom: C,
1578
+ eraseDrawingLine: b,
1579
+ finishToDraw: p,
1580
+ getAncherPointPosition: T,
1581
+ isAncherPoint: O
1582
+ } = g, d = me("use-bezier-curve-composition"), {
1583
+ connect: S
1584
+ } = d, f = me("use-connections-composition"), {
1585
+ addConnection: r,
1586
+ getConnectionsOfNode: i
1587
+ } = f;
1588
+ new Map(D.connection);
1589
+ const y = Te(() => ({
1590
+ left: `${D.x}px`,
1591
+ top: `${D.y}px`
1579
1592
  }));
1580
- function m(l, A) {
1581
- if (C(l) && C(A)) {
1582
- const U = F(l), $ = F(A);
1583
- u(l.id, A.id, U, $);
1584
- const re = l.id, Q = A.id, d = re.split(/(-left-point|-right-point|-top-point|-bottom-point)/, 1)[0], G = Q.split(/(-left-point|-right-point|-top-point|-bottom-point)/, 1)[0];
1585
- o(d, re, G, Q);
1593
+ function a(l, E) {
1594
+ if (O(l) && O(E)) {
1595
+ const U = T(l), Y = T(E);
1596
+ S(l.id, E.id, U, Y);
1597
+ const re = l.id, Q = E.id, m = re.split(/(-left-point|-right-point|-top-point|-bottom-point)/, 1)[0], G = Q.split(/(-left-point|-right-point|-top-point|-bottom-point)/, 1)[0];
1598
+ r(m, re, G, Q);
1586
1599
  }
1587
1600
  }
1588
- function Y(l) {
1589
- var A;
1590
- document.removeEventListener("mouseup", Y), f(l), h(`${(A = B.value) == null ? void 0 : A.id}_curve_to`), m(B.value, l.target);
1601
+ function F(l) {
1602
+ var E;
1603
+ document.removeEventListener("mouseup", F), p(l), b(`${(E = B.value) == null ? void 0 : E.id}_curve_to`), a(B.value, l.target);
1591
1604
  }
1592
- function j(l, A) {
1593
- B.value = document.getElementById(l), w(l, A), document.addEventListener("mouseup", Y), A.stopPropagation();
1605
+ function $(l, E) {
1606
+ B.value = document.getElementById(l), C(l, E), document.addEventListener("mouseup", F), E.stopPropagation();
1594
1607
  }
1595
- ze([() => O.x, () => O.y], () => {
1596
- const l = s(E.value);
1597
- l.length && l.forEach((A) => {
1598
- const U = document.getElementById(A.from), $ = document.getElementById(A.to);
1599
- U && $ && m(U, $);
1608
+ Ue([() => D.x, () => D.y], () => {
1609
+ const l = i(I.value);
1610
+ l.length && l.forEach((E) => {
1611
+ const U = document.getElementById(E.from), Y = document.getElementById(E.to);
1612
+ U && Y && a(U, Y);
1600
1613
  });
1601
1614
  });
1602
- const X = Te(() => ({
1615
+ const R = Te(() => ({
1603
1616
  "node-content": !0
1604
1617
  }));
1605
1618
  return () => J("div", {
1606
- id: E.value,
1619
+ id: I.value,
1607
1620
  class: "br-node",
1608
- style: v.value
1621
+ style: y.value
1609
1622
  }, [J("div", {
1610
- id: `${E.value}-left-point`,
1623
+ id: `${I.value}-left-point`,
1611
1624
  class: "f-flow-ancher circle-left",
1612
- onMousedown: (l) => j(`${E.value}-left-point`, l)
1625
+ onMousedown: (l) => $(`${I.value}-left-point`, l)
1613
1626
  }, null), J("div", {
1614
- id: `${E.value}-top-point`,
1627
+ id: `${I.value}-top-point`,
1615
1628
  class: "f-flow-ancher circle-top",
1616
- onMousedown: (l) => j(`${E.value}-top-point`, l)
1629
+ onMousedown: (l) => $(`${I.value}-top-point`, l)
1617
1630
  }, null), J("div", {
1618
- id: `${E.value}-content`,
1619
- class: X.value,
1631
+ id: `${I.value}-content`,
1632
+ class: R.value,
1620
1633
  style: "min-width:200px;min-height:200px;"
1621
- }, [P.value && J(Mn, {
1622
- modelValue: P.value,
1623
- "onUpdate:modelValue": (l) => P.value = l
1634
+ }, [w.value && J(Ln, {
1635
+ modelValue: w.value,
1636
+ "onUpdate:modelValue": (l) => w.value = l
1624
1637
  }, null)]), J("div", {
1625
- id: `${E.value}-right-point`,
1638
+ id: `${I.value}-right-point`,
1626
1639
  class: "f-flow-ancher circle-right",
1627
- onMousedown: (l) => j(`${E.value}-right-point`, l)
1640
+ onMousedown: (l) => $(`${I.value}-right-point`, l)
1628
1641
  }, null), J("div", {
1629
- id: `${E.value}-bottom-point`,
1642
+ id: `${I.value}-bottom-point`,
1630
1643
  class: "f-flow-ancher circle-bottom",
1631
- onMousedown: (l) => j(`${E.value}-bottom-point`, l)
1644
+ onMousedown: (l) => $(`${I.value}-bottom-point`, l)
1632
1645
  }, null)]);
1633
1646
  }
1634
1647
  });
1635
- function Ln(O) {
1636
- const Z = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map();
1637
- function P(w, h) {
1638
- const f = E.get(w) || [];
1639
- f.filter(
1640
- (C) => h.from === C.from && h.to === C.to
1641
- ).length > 0 || (f.push(h), E.set(w, f));
1648
+ function Rn(D) {
1649
+ const z = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map();
1650
+ function w(C, b) {
1651
+ const p = I.get(C) || [];
1652
+ p.filter(
1653
+ (O) => b.from === O.from && b.to === O.to
1654
+ ).length > 0 || (p.push(b), I.set(C, p));
1642
1655
  }
1643
- function B(w, h, f, F) {
1644
- const C = new Set(Z.get(h) || []);
1645
- C.add(F), Z.set(h, [...C]);
1646
- const I = { from: h, to: F, type: "Curve" };
1647
- P(w, I), P(f, I);
1656
+ function B(C, b, p, T) {
1657
+ const O = new Set(z.get(b) || []);
1658
+ O.add(T), z.set(b, [...O]);
1659
+ const d = { from: b, to: T, type: "Curve" };
1660
+ w(C, d), w(p, d);
1648
1661
  }
1649
- function p(w) {
1650
- return E.get(w) || [];
1662
+ function g(C) {
1663
+ return I.get(C) || [];
1651
1664
  }
1652
- return { addConnection: B, getConnectionsOfNode: p };
1665
+ return { addConnection: B, getConnectionsOfNode: g };
1653
1666
  }
1654
- const $o = /* @__PURE__ */ Fe({
1667
+ const Uo = /* @__PURE__ */ Fe({
1655
1668
  name: "FFlowCanvas",
1656
- props: xn,
1669
+ props: wn,
1657
1670
  emits: [],
1658
- setup(O, Z) {
1659
- const E = q(), P = wn(), B = bn(P), p = Ln();
1660
- Ee("use-bezier-curve-composition", P), Ee("use-connections-composition", p), Ee("use-drawing-bezier-composition", B);
1661
- const w = Te(() => ({
1671
+ setup(D, z) {
1672
+ const I = H(), w = Pn(), B = In(w), g = Rn();
1673
+ Ee("use-bezier-curve-composition", w), Ee("use-connections-composition", g), Ee("use-drawing-bezier-composition", B);
1674
+ const C = Te(() => ({
1662
1675
  transition: "transform 0.2s",
1663
1676
  "background-color": "#F2F3F5",
1664
1677
  height: "100%",
1665
1678
  width: "100%",
1666
1679
  position: "relative"
1667
1680
  }));
1668
- Ue(() => {
1669
- E.value = O.modelValue;
1681
+ He(() => {
1682
+ I.value = D.modelValue;
1670
1683
  });
1671
- const h = q(), f = q(), F = q(), C = q(), I = q();
1672
- function u(s) {
1673
- const v = s.clientX - C.value, m = s.clientY - I.value;
1674
- h.value && h.value.position && (h.value.position.x = f.value + v, h.value.position.y = F.value + m);
1684
+ const b = H(), p = H(), T = H(), O = H(), d = H();
1685
+ function S(i) {
1686
+ const y = i.clientX - O.value, a = i.clientY - d.value;
1687
+ b.value && b.value.position && (b.value.position.x = p.value + y, b.value.position.y = T.value + a);
1675
1688
  }
1676
- function n() {
1677
- document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", n), h.value = void 0, C.value = void 0, I.value = void 0;
1689
+ function f() {
1690
+ document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", f), b.value = void 0, O.value = void 0, d.value = void 0;
1678
1691
  }
1679
- function o(s, v) {
1680
- h.value = s, f.value = s.position.x, F.value = s.position.y, C.value = v.clientX, I.value = v.clientY, document.addEventListener("mousemove", u), document.addEventListener("mouseup", n);
1692
+ function r(i, y) {
1693
+ b.value = i, p.value = i.position.x, T.value = i.position.y, O.value = y.clientX, d.value = y.clientY, document.addEventListener("mousemove", S), document.addEventListener("mouseup", f);
1681
1694
  }
1682
1695
  return () => J("div", {
1683
1696
  class: "f-flow-canvas editorDiv flex-fill h-100"
1684
1697
  }, [J("div", {
1685
1698
  id: "svg-container",
1686
1699
  class: "f-struct-wrapper flex-fill",
1687
- style: w.value
1688
- }, [E.value && E.value.contents.map((s) => J(_n, {
1689
- modelValue: s.content[0],
1690
- "onUpdate:modelValue": (v) => s.content[0] = v,
1691
- id: s.id,
1692
- x: s.position.x,
1693
- y: s.position.y,
1694
- onMousedown: (v) => o(s, v)
1700
+ style: C.value
1701
+ }, [I.value && I.value.contents.map((i) => J(kn, {
1702
+ modelValue: i.content[0],
1703
+ "onUpdate:modelValue": (y) => i.content[0] = y,
1704
+ id: i.id,
1705
+ x: i.position.x,
1706
+ y: i.position.y,
1707
+ onMousedown: (y) => r(i, y)
1695
1708
  }, null))])]);
1696
1709
  }
1697
1710
  });
1698
1711
  export {
1699
- $o as FFlowCanvas,
1700
- xn as flowCanvasProps
1712
+ Uo as FFlowCanvas,
1713
+ wn as flowCanvasProps
1701
1714
  };