@farris/ui-vue 1.2.8 → 1.3.0

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