@gct-paas/core-web 0.1.5-dev.5 → 0.1.5-dev.7

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 (204) hide show
  1. package/dist/_plugin-vue_export-helper-BBfAJeJ1.js +1 -0
  2. package/dist/{icon-next-picker-CShmDJI0.js → icon-next-picker-y8hJhkCi.js} +1 -1
  3. package/dist/index.min.css +1 -1
  4. package/dist/loader.esm.min.js +1 -1
  5. package/dist/{monaco-editor-B8f_I6sY.js → monaco-editor-5qU4ukgX.js} +1 -1
  6. package/es/components/FullScreen/full-screen.vue.d.ts +30 -0
  7. package/es/components/FullScreen/full-screen.vue.mjs +5 -0
  8. package/es/components/FullScreen/full-screen.vue_vue_type_script_setup_true_lang.mjs +44 -0
  9. package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +2 -2
  10. package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +3 -3
  11. package/es/components/I18nSelect/src/{i18n-select-btn.vue_vue_type_style_index_0_scoped_d0fab479_lang.css → i18n-select-btn.vue_vue_type_style_index_0_scoped_8e75ca4b_lang.css} +13 -13
  12. package/es/components/app-full-screen-container/app-full-screen-container.css +77 -0
  13. package/es/components/app-full-screen-container/app-full-screen-container.d.ts +26 -0
  14. package/es/components/app-full-screen-container/app-full-screen-container.mjs +83 -0
  15. package/es/components/app-popover/app-popover-component.css +100 -0
  16. package/es/components/app-popover/app-popover-component.d.ts +13 -0
  17. package/es/components/app-popover/app-popover-component.mjs +160 -0
  18. package/es/components/field-cascader/index.d.ts +2 -0
  19. package/es/components/field-cascader/index.mjs +1 -0
  20. package/es/components/field-cascader/src/FieldCascader.vue.d.ts +87 -0
  21. package/es/components/field-cascader/src/FieldCascader.vue.mjs +6 -0
  22. package/es/components/field-cascader/src/FieldCascader.vue_vue_type_script_setup_true_lang.mjs +115 -0
  23. package/es/components/field-cascader/src/FieldCascader.vue_vue_type_style_index_0_lang.css +69 -0
  24. package/es/components/field-cascader/src/SearchInput.vue.d.ts +11 -0
  25. package/es/components/field-cascader/src/SearchInput.vue.mjs +7 -0
  26. package/es/components/field-cascader/src/SearchInput.vue_vue_type_script_setup_true_lang.mjs +38 -0
  27. package/es/components/field-cascader/src/SearchInput.vue_vue_type_style_index_0_scoped_512c4b38_lang.css +9 -0
  28. package/es/components/field-cascader/src/hooks.d.ts +129 -0
  29. package/es/components/field-cascader/src/hooks.mjs +163 -0
  30. package/es/components/field-tree-select/field-sort-popover.vue.d.ts +129 -0
  31. package/es/components/field-tree-select/field-sort-popover.vue.mjs +7 -0
  32. package/es/components/field-tree-select/field-sort-popover.vue_vue_type_script_setup_true_lang.mjs +206 -0
  33. package/es/components/field-tree-select/field-sort-popover.vue_vue_type_style_index_0_scoped_c1811778_lang.css +136 -0
  34. package/es/components/field-tree-select/field-tree-select.vue.d.ts +119 -0
  35. package/es/components/field-tree-select/field-tree-select.vue.mjs +7 -0
  36. package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs +338 -0
  37. package/es/components/field-tree-select/field-tree-select.vue_vue_type_style_index_0_scoped_898030d3_lang.css +147 -0
  38. package/es/components/field-tree-select/index.d.ts +307 -0
  39. package/es/components/field-tree-select/index.mjs +7 -0
  40. package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +1 -1
  41. package/es/components/index.d.ts +6 -1
  42. package/es/components/index.mjs +7 -0
  43. package/es/components/number-range/number-range.vue.d.ts +85 -0
  44. package/es/components/number-range/number-range.vue.mjs +7 -0
  45. package/es/components/number-range/number-range.vue_vue_type_script_setup_true_lang.mjs +91 -0
  46. package/es/components/number-range/number-range.vue_vue_type_style_index_0_scoped_283a5280_lang.css +8 -0
  47. package/es/components/overlay-scrollbars/gct-overlay-scrollbars.css +72 -0
  48. package/es/components/overlay-scrollbars/gct-overlay-scrollbars.d.ts +75 -0
  49. package/es/components/overlay-scrollbars/gct-overlay-scrollbars.mjs +87 -0
  50. package/es/components/serial-number/index.d.ts +2 -0
  51. package/es/components/serial-number/index.mjs +1 -0
  52. package/es/components/serial-number/serial-number-container.vue.d.ts +23 -0
  53. package/es/components/serial-number/serial-number-container.vue.mjs +7 -0
  54. package/es/components/serial-number/serial-number-container.vue_vue_type_script_setup_true_name_serial-number-container_lang.mjs +219 -0
  55. package/es/components/serial-number/serial-number-container.vue_vue_type_style_index_0_scoped_35a73b4c_lang.css +30 -0
  56. package/es/components/serial-number/serial-number-item.vue.d.ts +22 -0
  57. package/es/components/serial-number/serial-number-item.vue.mjs +8 -0
  58. package/es/components/serial-number/serial-number-item.vue_vue_type_script_setup_true_lang.mjs +452 -0
  59. package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_0_scoped_7baf8e25_lang.css +67 -0
  60. package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_1_lang.css +51 -0
  61. package/es/create-app-vue.mjs +5 -3
  62. package/es/index.mjs +19 -1
  63. package/es/modules/color-picker/index.d.ts +2 -2
  64. package/es/modules/color-picker/index.mjs +1 -0
  65. package/es/modules/color-picker/src/ColorPicker.vue.mjs +1 -1
  66. package/es/modules/color-picker/src/color-editor.vue.d.ts +9 -0
  67. package/es/modules/color-picker/src/color-editor.vue.mjs +7 -0
  68. package/es/modules/color-picker/src/color-editor.vue_vue_type_script_setup_true_name_color-editor_lang.mjs +31 -0
  69. package/es/modules/color-picker/src/color-editor.vue_vue_type_style_index_0_scoped_7b102f87_lang.css +5 -0
  70. package/es/modules/formula-editor/interface/i-formula-editor-options/i-formula-editor-options.d.ts +2 -0
  71. package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.d.ts +0 -1
  72. package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.mjs +1 -20
  73. package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.d.ts +8 -0
  74. package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +14 -0
  75. package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +4 -10
  76. package/es/modules/gct-form/editor/gct-form-action/index.mjs +1 -1
  77. package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.css +2 -2
  78. package/es/modules/gct-form/editor/gct-form-color/gct-form-color.d.ts +1 -4
  79. package/es/modules/gct-form/editor/gct-form-color/gct-form-color.mjs +9 -10
  80. package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.css +25 -22
  81. package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.mjs +1 -1
  82. package/es/modules/gct-form/index.d.ts +2 -0
  83. package/es/modules/gct-form/index.mjs +12 -1
  84. package/es/modules/gct-form/interface/i-controller/form-item-basic/form-item-basic.controller.d.ts +6 -0
  85. package/es/modules/gct-form/interface/i-editor/i-select-editor.d.ts +1 -1
  86. package/es/modules/gct-form/interface/i-form/i-form-edit-item.d.ts +0 -8
  87. package/es/modules/gct-form/interface/i-form/i-form-item-basic.d.ts +8 -0
  88. package/es/modules/gct-form/utils/index.d.ts +18 -0
  89. package/es/modules/gct-form/utils/index.mjs +37 -0
  90. package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.mjs +2 -1
  91. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.model.mjs +25 -0
  92. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/index.mjs +1 -0
  93. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.model.mjs +25 -0
  94. package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/index.mjs +1 -0
  95. package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.model.mjs +25 -0
  96. package/es/modules/gct-form/widgets/gct-form/gct-form-group/index.mjs +1 -0
  97. package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.model.mjs +21 -0
  98. package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/index.mjs +1 -0
  99. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.css +13 -6
  100. package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.model.mjs +23 -0
  101. package/es/modules/gct-form/widgets/gct-form/gct-form-item/index.mjs +1 -0
  102. package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.model.mjs +20 -0
  103. package/es/modules/gct-form/widgets/gct-form/gct-form-line/index.mjs +1 -0
  104. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.model.mjs +16 -0
  105. package/es/modules/gct-form/widgets/gct-form/gct-form-tab/index.mjs +1 -0
  106. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.model.mjs +24 -0
  107. package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/index.mjs +1 -0
  108. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.model.mjs +25 -0
  109. package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/index.mjs +1 -0
  110. package/es/modules/gct-form/widgets/gct-form/gct-form.css +1 -3
  111. package/es/modules/gct-form/widgets/gct-form/index.d.ts +3 -3
  112. package/es/modules/gct-form/widgets/gct-form/index.mjs +9 -0
  113. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
  114. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
  115. package/es/modules/global-modal/src/BasicModal.vue.d.ts +4 -0
  116. package/es/modules/global-modal/src/BasicModal.vue_vue_type_script_setup_true_name_BasicModal_lang.mjs +1 -0
  117. package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +1 -0
  118. package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +11 -6
  119. package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +3 -0
  120. package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_style_index_0_lang.css +67 -0
  121. package/es/modules/personnel-selection/components/index.d.ts +3 -0
  122. package/es/modules/personnel-selection/components/personnel-select-tree/personnel-select-tree.d.ts +22 -0
  123. package/es/modules/personnel-selection/components/variable/check-variable/check-variable.d.ts +19 -0
  124. package/es/modules/personnel-selection/components/variable/index.d.ts +3 -0
  125. package/es/modules/personnel-selection/components/variable/list-variable/list-variable.d.ts +19 -0
  126. package/es/modules/personnel-selection/components/variable/tree-select-variable/tree-select-variable.d.ts +19 -0
  127. package/es/modules/personnel-selection/components/variable-select-pane/variable-select-pane.d.ts +21 -0
  128. package/es/modules/personnel-selection/constants/index.d.ts +16 -0
  129. package/es/modules/personnel-selection/controller/index.d.ts +2 -0
  130. package/es/modules/personnel-selection/controller/tab-item/tab-item.controller.d.ts +18 -0
  131. package/es/modules/personnel-selection/controller/variable-item/variable-item.controller.d.ts +17 -0
  132. package/es/modules/personnel-selection/editors/index.d.ts +1 -0
  133. package/es/modules/personnel-selection/editors/personnel-selection-editor/personnel-selection-editor.d.ts +2 -0
  134. package/es/modules/personnel-selection/enums/index.d.ts +31 -0
  135. package/es/modules/personnel-selection/index.d.ts +3 -0
  136. package/es/modules/personnel-selection/interface/controller/index.d.ts +3 -0
  137. package/es/modules/personnel-selection/interface/controller/tab-item/i-tab-item.controller.d.ts +86 -0
  138. package/es/modules/personnel-selection/interface/controller/tab-item/i-variable-tab-item.controller.d.ts +11 -0
  139. package/es/modules/personnel-selection/interface/controller/variable/i-variable-item.controller.d.ts +53 -0
  140. package/es/modules/personnel-selection/interface/data/i-data-node.d.ts +42 -0
  141. package/es/modules/personnel-selection/interface/index.d.ts +6 -0
  142. package/es/modules/personnel-selection/interface/options/index.d.ts +3 -0
  143. package/es/modules/personnel-selection/interface/options/personnel-selection-options/personnel-selection-options.d.ts +45 -0
  144. package/es/modules/personnel-selection/interface/options/select-area-options/select-area-options.d.ts +18 -0
  145. package/es/modules/personnel-selection/interface/options/select-region-options/select-region-options.d.ts +18 -0
  146. package/es/modules/personnel-selection/interface/providers/i-tab-item.provider.d.ts +51 -0
  147. package/es/modules/personnel-selection/interface/providers/i-variable-item.provider.d.ts +51 -0
  148. package/es/modules/personnel-selection/interface/state/i-tab-item.state.d.ts +27 -0
  149. package/es/modules/personnel-selection/interface/state/i-variable-item.state.d.ts +18 -0
  150. package/es/modules/personnel-selection/interface/state/index.d.ts +2 -0
  151. package/es/modules/personnel-selection/interface/store/i-variable-inst-store.d.ts +37 -0
  152. package/es/modules/personnel-selection/interface/store/i-variable-plugin-manage-store.d.ts +44 -0
  153. package/es/modules/personnel-selection/interface/store/i-variable-store.d.ts +29 -0
  154. package/es/modules/personnel-selection/interface/store/i-view-plugin-manage-store.d.ts +44 -0
  155. package/es/modules/personnel-selection/interface/store/i-view-store.d.ts +29 -0
  156. package/es/modules/personnel-selection/interface/store/i-view-tabs-store.d.ts +54 -0
  157. package/es/modules/personnel-selection/interface/store/index.d.ts +11 -0
  158. package/es/modules/personnel-selection/plugins/index.d.ts +23 -0
  159. package/es/modules/personnel-selection/plugins/tab-item/personnel-select-tab-item/personnel-select-tab-item.controller.d.ts +12 -0
  160. package/es/modules/personnel-selection/plugins/tab-item/variable-tab-item/variable-tab-item.controller.d.ts +14 -0
  161. package/es/modules/personnel-selection/plugins/variable-item/check-variable-item/check-variable-item.controller.d.ts +12 -0
  162. package/es/modules/personnel-selection/plugins/variable-item/list-variable-item/list-variable-item.controller.d.ts +12 -0
  163. package/es/modules/personnel-selection/plugins/variable-item/tree-select-variable-item/tree-select-variable-item.controller.d.ts +12 -0
  164. package/es/modules/personnel-selection/props/index.d.ts +75 -0
  165. package/es/modules/personnel-selection/state/index.d.ts +2 -0
  166. package/es/modules/personnel-selection/state/tab-item.state.d.ts +15 -0
  167. package/es/modules/personnel-selection/state/variable-item.state.d.ts +4 -0
  168. package/es/modules/personnel-selection/store/index.d.ts +1 -0
  169. package/es/modules/personnel-selection/store/variable/variable-inst.d.ts +10 -0
  170. package/es/modules/personnel-selection/store/variable/variable-plugin-manage.d.ts +10 -0
  171. package/es/modules/personnel-selection/store/variable/variable-store.d.ts +5 -0
  172. package/es/modules/personnel-selection/store/view/view-plugin-manage.d.ts +10 -0
  173. package/es/modules/personnel-selection/store/view/view-store.d.ts +11 -0
  174. package/es/modules/personnel-selection/store/view/view-tabs.d.ts +10 -0
  175. package/es/modules/personnel-selection/use/index.d.ts +40 -0
  176. package/es/modules/personnel-selection/utils/index.d.ts +1 -0
  177. package/es/modules/personnel-selection/views/index.d.ts +12 -0
  178. package/es/modules/personnel-selection/views/personnel-selection-view/personnel-selection-view.d.ts +181 -0
  179. package/es/modules/personnel-selection/widgets/index.d.ts +2 -0
  180. package/es/modules/personnel-selection/widgets/personnel-select-area/personnel-select-area.d.ts +1 -0
  181. package/es/modules/personnel-selection/widgets/personnel-select-region/personnel-select-region.d.ts +2 -0
  182. package/es/modules/picture-cropper/src/CopperFreeModal.vue.d.ts +2 -2
  183. package/es/modules/picture-cropper/src/CopperFreeModal.vue.mjs +2 -2
  184. package/es/modules/picture-cropper/src/{CopperFreeModal.vue_vue_type_style_index_0_scoped_488ed4c7_lang.css → CopperFreeModal.vue_vue_type_style_index_0_scoped_9069f48a_lang.css} +10 -10
  185. package/es/modules/picture-cropper/src/CopperModal.vue.d.ts +2 -2
  186. package/es/modules/picture-cropper/src/CopperModal.vue.mjs +2 -2
  187. package/es/modules/picture-cropper/src/{CopperModal.vue_vue_type_style_index_0_scoped_ee086999_lang.css → CopperModal.vue_vue_type_style_index_0_scoped_f1134678_lang.css} +14 -14
  188. package/es/modules/picture-cropper/src/CropperAvatar.vue.d.ts +2 -2
  189. package/es/modules/picture-cropper/src/CropperAvatar.vue.mjs +2 -2
  190. package/es/modules/picture-cropper/src/{CropperAvatar.vue_vue_type_style_index_0_scoped_b1cbaaf1_lang.css → CropperAvatar.vue_vue_type_style_index_0_scoped_ef939ff0_lang.css} +7 -7
  191. package/es/modules/picture-cropper/src/CropperFree.vue.d.ts +2 -2
  192. package/es/modules/picture-cropper/src/CropperFree.vue.mjs +2 -2
  193. package/es/modules/picture-cropper/src/{CropperFree.vue_vue_type_style_index_0_scoped_bab12130_lang.css → CropperFree.vue_vue_type_style_index_0_scoped_7a51c6b9_lang.css} +16 -16
  194. package/es/utils/index.d.ts +1 -0
  195. package/es/utils/index.mjs +1 -0
  196. package/es/utils/model-entity/model-entity.d.ts +28 -0
  197. package/es/utils/model-entity/model-entity.mjs +47 -0
  198. package/es/utils/overlay-controller/overlay-controller.d.ts +16 -1
  199. package/es/utils/overlay-controller/overlay-controller.mjs +18 -0
  200. package/es/utils/with-install.d.ts +1 -0
  201. package/es/utils/with-install.mjs +1 -1
  202. package/package.json +13 -9
  203. package/dist/_plugin-vue_export-helper-4vvM2fiX.js +0 -1
  204. /package/es/modules/gct-table/editor/{gct-table-date/gct-table-date.css → gct-table-text/gct-table-text.css} +0 -0
@@ -0,0 +1,47 @@
1
+ import { t } from "@gct-paas/core";
2
+ //#region src/utils/model-entity/model-entity.ts
3
+ /**
4
+ * 校验特定配置中的:最小值是否大于最大值 (逻辑互斥校验)
5
+ * @param rule - 校验规则对象
6
+ * @param value - 当前字段的值 (此处不使用,为了兼容框架的 validator 签名)
7
+ * @param formData - 表单全局数据
8
+ */
9
+ function validateLengthRange(_rule, _value, formData) {
10
+ const { minValue, maxValue } = formData.specificConfig || {};
11
+ if (typeof minValue === "number" && typeof maxValue === "number" && minValue > maxValue) return Promise.reject(/* @__PURE__ */ new Error("MinValue cannot be greater than MaxValue"));
12
+ return Promise.resolve();
13
+ }
14
+ /**
15
+ * 校验默认值的【字符】是否符合配置的范围限制
16
+ * @param rule - 校验规则对象
17
+ * @param value - 当前输入的值 (字符串)
18
+ * @param formData - 表单全局数据
19
+ * @param maxObj - 备用的最大值配置对象 (可选)
20
+ */
21
+ function validateFieldDefaultForLength(_rule, value, formData, maxObj) {
22
+ if (!value) return Promise.resolve();
23
+ const { minValue, maxValue: configMaxValue } = formData.specificConfig || {};
24
+ const maxValue = configMaxValue ?? maxObj?.end;
25
+ const currentLength = value.length;
26
+ if (typeof minValue === "number" && currentLength < minValue) return Promise.reject(`${t("sys.model.minLengthDefault")}${minValue}`);
27
+ if (typeof maxValue === "number" && currentLength > maxValue) return Promise.reject(`${t("sys.model.maxLengthDefault")}${maxValue}`);
28
+ return Promise.resolve();
29
+ }
30
+ /**
31
+ * 校验默认值的【数值大小】是否符合配置的范围限制
32
+ * @param rule - 校验规则对象
33
+ * @param value - 当前输入的数值
34
+ * @param formData - 表单全局数据
35
+ * @param maxObj - 备用的最大值配置对象 (可选)
36
+ */
37
+ function validateFieldDefaultForValue(_rule, value, formData, maxObj) {
38
+ if (value == null || value === "") return Promise.resolve();
39
+ const { minValue, maxValue: configMaxValue } = formData.specificConfig || {};
40
+ const maxValue = configMaxValue ?? maxObj?.end;
41
+ const numericValue = Number(value);
42
+ if (typeof minValue === "number" && numericValue < minValue) return Promise.reject(`${t("sys.model.minNumDefault")}${minValue}`);
43
+ if (typeof maxValue === "number" && numericValue > maxValue) return Promise.reject(`${t("sys.model.maxNumDefault")}${maxValue}`);
44
+ return Promise.resolve();
45
+ }
46
+ //#endregion
47
+ export { validateFieldDefaultForLength, validateFieldDefaultForValue, validateLengthRange };
@@ -1,4 +1,5 @@
1
- import { IModalData, IModalOptions, IOverlayContainer, IOverlayController } from '@gct-paas/core';
1
+ import { IAppFullScreenContainerOptions, IModalData, IModalOptions, IOverlayContainer, IOverlayController, IOverlayPopoverContainer, IPopoverOptions } from '@gct-paas/core';
2
+ import { Placement, Strategy, Middleware, Platform } from '@floating-ui/dom';
2
3
  /**
3
4
  * 用不同呈现方式绘制组件的通用工具类
4
5
  *
@@ -11,6 +12,20 @@ import { IModalData, IModalOptions, IOverlayContainer, IOverlayController } from
11
12
  export declare class OverlayController implements IOverlayController {
12
13
  modal<T = IModalData>(component: unknown, props?: IParams, opts?: IModalOptions): Promise<T>;
13
14
  createModal(component: unknown, props?: IParams, opts?: IModalOptions): IOverlayContainer;
15
+ popover<T = void>(element: HTMLElement, component: unknown, props?: IParams, opts?: IPopoverOptions<Partial<{
16
+ placement?: Placement | undefined;
17
+ strategy?: Strategy | undefined;
18
+ middleware?: (Middleware | null | undefined | false)[] | undefined;
19
+ platform?: Platform | undefined;
20
+ }>>): Promise<T>;
21
+ createPopover(component: unknown, props?: IParams, opts?: IPopoverOptions<Partial<{
22
+ placement?: Placement | undefined;
23
+ strategy?: Strategy | undefined;
24
+ middleware?: (Middleware | null | undefined | false)[] | undefined;
25
+ platform?: Platform | undefined;
26
+ }>>): IOverlayPopoverContainer;
27
+ fullScreen<T = IModalData>(component: unknown, props?: IParams, opts?: IAppFullScreenContainerOptions): Promise<T>;
28
+ createFullScreen(component: unknown, props?: IParams, opts?: IAppFullScreenContainerOptions): IOverlayContainer;
14
29
  }
15
30
  /**
16
31
  * 唯一界面绘制控制器
@@ -1,4 +1,6 @@
1
1
  import { createModal } from "../../components/app-modal/app-modal-component.mjs";
2
+ import { createPopover } from "../../components/app-popover/app-popover-component.mjs";
3
+ import { createAppFullScreenContainer } from "../../components/app-full-screen-container/app-full-screen-container.mjs";
2
4
  import { h, resolveComponent } from "vue";
3
5
  import { isFunction, isString } from "lodash-es";
4
6
  //#region src/utils/overlay-controller/overlay-controller.ts
@@ -23,6 +25,22 @@ var OverlayController = class {
23
25
  createModal(component, props, opts) {
24
26
  return createModal(isFunction(component) ? component : () => h(resolveComponentOrStr(component), { ...props }), opts);
25
27
  }
28
+ popover(element, component, props, opts) {
29
+ const popover = this.createPopover(component, props, opts);
30
+ popover.present(element);
31
+ return popover.onWillDismiss();
32
+ }
33
+ createPopover(component, props, opts) {
34
+ return createPopover(isFunction(component) ? component : () => h(resolveComponentOrStr(component), { ...props }), opts);
35
+ }
36
+ fullScreen(component, props, opts) {
37
+ const fullContainer = this.createFullScreen(component, props, opts);
38
+ fullContainer.present();
39
+ return fullContainer.onWillDismiss();
40
+ }
41
+ createFullScreen(component, props, opts) {
42
+ return createAppFullScreenContainer(isFunction(component) ? component : () => h(resolveComponentOrStr(component), { ...props }), opts);
43
+ }
26
44
  };
27
45
  /**
28
46
  * 唯一界面绘制控制器
@@ -9,6 +9,7 @@ export type WithInstall<T> = T & {
9
9
  } & EventShim;
10
10
  export type CustomComponent = Component & {
11
11
  displayName?: string;
12
+ __name?: string;
12
13
  };
13
14
  export declare const withInstall: <T extends CustomComponent>(component: T, alias?: string) => WithInstall<T>;
14
15
  export {};
@@ -1,7 +1,7 @@
1
1
  //#region src/utils/with-install.ts
2
2
  var withInstall = (component, alias) => {
3
3
  component.install = (app) => {
4
- const compName = component.name || component.displayName;
4
+ const compName = component.name || component.displayName || component.__name;
5
5
  if (!compName) return;
6
6
  app.component(compName, component);
7
7
  if (alias) app.config.globalProperties[alias] = component;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/core-web",
3
- "version": "0.1.5-dev.5",
3
+ "version": "0.1.5-dev.7",
4
4
  "type": "module",
5
5
  "description": "paas 平台网页端核心包",
6
6
  "loader": "dist/loader.esm.min.js",
@@ -32,7 +32,8 @@
32
32
  "author": "gct",
33
33
  "dependencies": {
34
34
  "@ant-design/icons-vue": "^6.1.0",
35
- "@gct-paas/api": "0.1.4-dev.0",
35
+ "@floating-ui/dom": "^1.7.6",
36
+ "@gct-paas/api": "0.1.4-dev.1",
36
37
  "@gct-paas/flow": "0.0.1-dev.1",
37
38
  "@gct-paas/platform-icons": "^0.0.2",
38
39
  "@icon-park/vue-next": "^1.4.2",
@@ -46,25 +47,28 @@
46
47
  "monaco-editor": "^0.55.1",
47
48
  "overlayscrollbars": "^2.14.0",
48
49
  "overlayscrollbars-vue": "^0.5.9",
50
+ "pinia": "^3.0.4",
49
51
  "qx-util": "^0.4.8",
50
52
  "react-dnd-html5-backend": "^16.0.1",
53
+ "sortablejs": "^1.15.6",
51
54
  "sql-formatter": "^15.7.2",
52
55
  "vue": "^3.5.30",
53
56
  "vue3-dnd": "^2.1.0",
54
57
  "vuedraggable": "^4.1.0",
55
58
  "wujie": "^1.0.29",
56
59
  "wujie-vue3": "^1.0.29",
57
- "@gct-paas/core": "0.1.5-dev.5",
58
- "@gct-paas/core-components": "0.1.5-dev.5",
59
- "@gct-paas/scss": "0.1.5-dev.5"
60
+ "@gct-paas/core": "0.1.5-dev.7",
61
+ "@gct-paas/scss": "0.1.5-dev.7",
62
+ "@gct-paas/core-components": "0.1.5-dev.7"
60
63
  },
61
64
  "peerDependencies": {
62
- "@gct-paas/api": "0.1.4-dev.0",
65
+ "@gct-paas/api": "0.1.4-dev.1",
66
+ "@types/sortablejs": "^1.15.1",
63
67
  "vant": ">=4",
64
68
  "vue": ">=3",
65
- "@gct-paas/core": "0.1.5-dev.5",
66
- "@gct-paas/core-components": "0.1.5-dev.5",
67
- "@gct-paas/scss": "0.1.5-dev.5"
69
+ "@gct-paas/core": "0.1.5-dev.7",
70
+ "@gct-paas/core-components": "0.1.5-dev.7",
71
+ "@gct-paas/scss": "0.1.5-dev.7"
68
72
  },
69
73
  "scripts": {
70
74
  "dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
@@ -1 +0,0 @@
1
- import{i as e,n as t,r,t as n}from"./chunk-lEgNpoW5.js";import{Modal as o,OverlayContainer as i,useNamespace as a}from"@gct-paas/core";import*as s from"vue";import{computed as c,createVNode as u,defineComponent as l,h as d,isVNode as f,provide as h,reactive as g,ref as p,resolveComponent as v}from"vue";import{isFunction as m,isString as y}from"lodash-es";import{ConfigProvider as b,message as O}from"ant-design-vue";function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function D(e,t,r){return(t=function(e){var t=function(e){if("object"!=w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==w(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S=class{info(e,t){return new Promise(r=>{O.info(e,null==t?void 0:t.duration,r)})}success(e,t){return new Promise(r=>{O.success(e,null==t?void 0:t.duration,r)})}warning(e,t){return new Promise(r=>{O.warning(e,null==t?void 0:t.duration,r)})}error(e,t){return new Promise(r=>{O.error(e,null==t?void 0:t.duration,r)})}};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){I(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){P(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function x(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(r,[].concat(o,n))}}}function R(e){return{}.toString.call(e).includes("Object")}function A(e){return"function"==typeof e}var M=x(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),_=function(e,t){return R(t)||M("changeType"),Object.keys(t).some(function(t){return r=e,n=t,!Object.prototype.hasOwnProperty.call(r,n);var r,n})&&M("changeField"),t},k=function(e){A(e)||M("selectorType")},L=function(e){A(e)||R(e)||M("handlerType"),R(e)&&Object.values(e).some(function(e){return!A(e)})&&M("handlersType")},H=function(e){var t;e||M("initialIsRequired"),R(e)||M("initialType"),t=e,Object.keys(t).length||M("initialContent")};function U(e,t){return A(t)?t(e.current):t}function F(e,t){return e.current=N(N({},e.current),t),t}function q(e,t,r){return A(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])}),r}var B,V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};H(e),L(t);var r={current:e},n=x(q)(r,t),o=x(F)(r),i=x(_)(e),a=x(U)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return k(e),e(r.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(n,o,i,a)(e)}]},W={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},z=(B=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=B.length?B.apply(this,n):function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.apply(t,[].concat(n,o))}})(W),G=function(e){var t;return e||z("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||z("configType"),e.urls?(console.warn(W.deprecation),{paths:{vs:e.urls.monacoBase}}):e};function X(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],X(e[r],t[r]))}),C(C({},e),t)}var $={type:"cancelation",msg:"operation is manually canceled"};function Y(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n($):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var K,J=["monaco"],Q=function(e){if(Array.isArray(e))return e}(K=V({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o,i,a=[],s=!0,c=!1;try{for(o=(t=t.call(e)).next,!2;!(s=(r=o.call(t)).done)&&(a.push(r.value),2!==a.length);s=!0);}catch(e){c=!0,n=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw n}}return a}}(K)||function(e){if(e){if("string"==typeof e)return T(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,2):void 0}}(K)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),Z=Q[0],ee=Q[1];function te(e){return document.body.appendChild(e)}function re(e){var t,r,n=Z(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function ne(){var e=Z(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var r=t.m||t;oe(r),e.resolve(r)},function(t){e.reject(t)})}function oe(e){Z().monaco||ee({monaco:e})}var ie=new Promise(function(e,t){return ee({resolve:e,reject:t})}),ae={config:function(e){var t=G(e),r=t.monaco,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,J);ee(function(e){return{config:X(e.config,n),monaco:r}})},init:function(){var e=Z(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(ee({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Y(ie);if(window.monaco&&window.monaco.editor)return oe(window.monaco),e.resolve(window.monaco),Y(ie);!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(te,re)(ne)}return Y(ie)},__getMonacoInstance:function(){return Z(function(e){return e.monaco})}},se=new class{constructor(){D(this,"_monacoInstance",null),D(this,"_loadingPromise",null),this._configureLoader()}_configureLoader(){ae.config({paths:{vs:location.origin+"/extras/monaco-editor/0.55.1/min/vs"}})}async loadMonaco(){if(this._monacoInstance)return this._monacoInstance;if(this._loadingPromise)return this._loadingPromise;this._loadingPromise=ae.init();try{return this._monacoInstance=await this._loadingPromise,console.info("✓ Monaco Editor loaded successfully"),this._monacoInstance}catch(e){throw console.error("✗ Failed to load Monaco Editor:",e),this._loadingPromise=null,e}}getMonaco(){return this._monacoInstance}isMonacoLoaded(){return null!==this._monacoInstance}async createMonacoEditor(e,t){return(await this.loadMonaco()).editor.create(e,t)}async createMonacoDiffEditor(e,t){return(await this.loadMonaco()).editor.createDiffEditor(e,t)}async createMonacoModel(e,t,r){return(await this.loadMonaco()).editor.createModel(e,t,r)}},ce=/* @__PURE__ */t({Vue:()=>s,Vue2:()=>{},del:()=>fe,install:()=>le,isVue2:()=>!1,isVue3:()=>!0,set:()=>de});import*as ue from"vue";function le(){}function de(e,t,r){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,r),r):(e[t]=r,r)}function fe(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}r(ce,ue);var he=Symbol.for("DndContextType");function ge(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var pe="function"==typeof Symbol&&Symbol.observable||"@@observable",ve=function(){return Math.random().toString(36).substring(7).split("").join(".")},me={INIT:"@@redux/INIT"+ve(),REPLACE:"@@redux/REPLACE"+ve(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ve()}};function ye(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(ge(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(ge(1));return r(ye)(e,t)}if("function"!=typeof e)throw new Error(ge(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(ge(3));return i}function d(e){if("function"!=typeof e)throw new Error(ge(4));if(c)throw new Error(ge(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(ge(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(ge(7));if(void 0===e.type)throw new Error(ge(8));if(c)throw new Error(ge(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++)(0,t[r])();return e}return f({type:me.INIT}),(n={dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ge(10));o=e,f({type:me.REPLACE})}})[pe]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ge(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[pe]=function(){return this},e},n}function be(e,t,...r){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=/* @__PURE__ */new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,function(){return r[n++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function Oe(e){return"object"==typeof e}var we="dnd-core/INIT_COORDS",De="dnd-core/BEGIN_DRAG",Se="dnd-core/PUBLISH_DRAG_SOURCE",Te="dnd-core/HOVER",Ie="dnd-core/DROP",Ee="dnd-core/END_DRAG";function Ce(e,t){return{type:we,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Pe={type:we,payload:{clientOffset:null,sourceClientOffset:null}};function je(e){return function(t=[],r={publishSource:!0}){const{publishSource:n=!0,clientOffset:o,getSourceClientOffset:i}=r,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Ce(o)),function(e,t,r){be(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){be(r.getSource(e),"Expected sourceIds to be registered.")})}(t,a,s);const c=function(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,a);if(null==c)return void e.dispatch(Pe);let u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){be("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(c)}e.dispatch(Ce(o,u));const l=s.getSource(c).beginDrag(a,c);return null!=l?(function(e){be(Oe(e),"Item must be an object.")}(l),s.pinSource(c),{type:De,payload:{itemType:s.getSourceType(c),item:l,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!n}}):void 0}}function Ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Ne(e,t,r[t])})}return e}function Re(e){return function(t={}){const r=e.getMonitor(),n=e.getRegistry();!function(e){be(e.isDragging(),"Cannot call drop while not dragging."),be(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r),function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r).forEach((o,i)=>{const a={type:Ie,payload:{dropResult:xe({},t,Ae(o,i,n,r))}};e.dispatch(a)})}}function Ae(e,t,r,n){const o=r.getTarget(e);let i=o?o.drop(n,e):void 0;return function(e){be(void 0===e||Oe(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:n.getDropResult()),i}function Me(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){be(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const n=t.getSourceId();return null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource()),{type:Ee}}}function _e(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function ke(e){return function(t,{clientOffset:r}={}){!function(e){be(Array.isArray(e),"Expected targetIds to be an array.")}(t);const n=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,r){for(let n=e.length-1;n>=0;n--){const o=e[n];_e(t.getTargetType(o),r)||e.splice(n,1)}}(n,i,o.getItemType()),function(e,t,r){be(t.isDragging(),"Cannot call hover while not dragging."),be(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const t=e[n];be(e.lastIndexOf(t)===n,"Expected targetIds to be unique in the passed array."),be(r.getTarget(t),"Expected targetIds to be registered.")}}(n,o,i),function(e,t,r){e.forEach(function(e){r.getTarget(e).hover(t,e)})}(n,o,i),{type:Te,payload:{targetIds:n,clientOffset:r||null}}}}function Le(e){return function(){if(e.getMonitor().isDragging())return{type:Se}}}var He=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,r=function(e){return{beginDrag:je(e),publishDragSource:Le(e),hover:ke(e),drop:Re(e),endDrag:Me(e)}}(this);return Object.keys(r).reduce((n,o)=>{const i=r[o];var a;return n[o]=(a=i,(...r)=>{const n=a.apply(e,r);void 0!==n&&t(n)}),n},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function Ue(e,t){return{x:e.x-t.x,y:e.y-t.y}}var Fe=[],qe=[];Fe.__IS_NONE__=!0,qe.__IS_ALL__=!0;var Be=class{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;be("function"==typeof e,"listener must be a function."),be(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),o=t.stateId;try{o===n||o===n+1&&!function(e,t){return e!==Fe&&(e===qe||void 0===t||(r=t,n=e,r.filter(e=>n.indexOf(e)>-1)).length>0);var r,n}(t.dirtyHandlerIds,r)||e()}finally{n=o}})}subscribeToOffsetChange(e){be("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return be(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return be(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&_e(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return be(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const n=this.registry.getTargetType(e),o=this.getItemType();if(o&&!_e(n,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return r?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?Ue((i=n,{x:(o=t).x+i.x,y:o.y+i.y}),r):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?Ue(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},Ve="undefined"!=typeof global?global:self,We=Ve.MutationObserver||Ve.WebKitMutationObserver;function ze(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}var Ge,Xe="function"==typeof We?function(e){let t=1;const r=new We(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:ze,$e=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},Ye=new class{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Xe(this.flush),this.requestErrorThrow=ze(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},Ke=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new $e(this.onError,e=>t[t.length]=e);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(Ye.registerPendingError),Je="dnd-core/ADD_SOURCE",Qe="dnd-core/ADD_TARGET",Ze="dnd-core/REMOVE_SOURCE",et="dnd-core/REMOVE_TARGET";function tt(e,t){t&&Array.isArray(e)?e.forEach(e=>tt(e,!1)):be("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Ge||(Ge={}));var rt=0;function nt(e){switch(e[0]){case"S":return Ge.SOURCE;case"T":return Ge.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function ot(e,t){const r=e.entries();let n=!1;do{const{done:e,value:[,o]}=r.next();if(o===t)return!0;n=!!e}while(!n);return!1}var it=class{addSource(e,t){tt(e),function(e){be("function"==typeof e.canDrag,"Expected canDrag to be a function."),be("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),be("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(Ge.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Je,payload:{sourceId:e}}}(r)),r}addTarget(e,t){tt(e,!0),function(e){be("function"==typeof e.canDrop,"Expected canDrop to be a function."),be("function"==typeof e.hover,"Expected hover to be a function."),be("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(Ge.TARGET,e,t);return this.store.dispatch(function(e){return{type:Qe,payload:{targetId:e}}}(r)),r}containsHandler(e){return ot(this.dragSources,e)||ot(this.dropTargets,e)}getSource(e,t=!1){return be(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return be(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return be(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return be(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return nt(e)===Ge.SOURCE}isTargetId(e){return nt(e)===Ge.TARGET}removeSource(e){var t;be(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Ze,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Ye.enqueueTask(Ke.create(t))}removeTarget(e){be(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:et,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);be(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){be(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=function(e){const t=(rt++).toString();switch(e){case Ge.SOURCE:return`S${t}`;case Ge.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(n,t),e===Ge.SOURCE?this.dragSources.set(n,r):e===Ge.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=/* @__PURE__ */new Map,this.dragSources=/* @__PURE__ */new Map,this.dropTargets=/* @__PURE__ */new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},at=(e,t)=>e===t;function st(e=Fe,t){switch(t.type){case Te:break;case Je:case Qe:case et:case Ze:return Fe;default:return qe}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,o=function(e,t){const r=/* @__PURE__ */new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);const o=[];return r.forEach((e,t)=>{1===e&&o.push(t)}),o}(r,n);if(!(o.length>0)&&function(e,t,r=at){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(r,n))return Fe;const i=n[n.length-1],a=r[r.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function ct(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ut={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function lt(e=ut,t){const{payload:r}=t;switch(t.type){case we:case De:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Te:return n=e.clientOffset,o=r.clientOffset,!n&&!o||n&&o&&n.x===o.x&&n.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){ct(e,t,r[t])})}return e}({},e,{clientOffset:r.clientOffset});case Ee:case Ie:return ut;default:return e}var n,o}function dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){dt(e,t,r[t])})}return e}var ht={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function gt(e=ht,t){const{payload:r}=t;switch(t.type){case De:return ft({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Se:return ft({},e,{isSourcePublic:!0});case Te:return ft({},e,{targetIds:r.targetIds});case et:return-1===e.targetIds.indexOf(r.targetId)?e:ft({},e,{targetIds:(n=e.targetIds,o=r.targetId,n.filter(e=>e!==o))});case Ie:return ft({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Ee:return ft({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,o}function pt(e=0,t){switch(t.type){case Je:case Qe:return e+1;case Ze:case et:return e-1;default:return e}}function vt(e=0){return e+1}function mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){mt(e,t,r[t])})}return e}function bt(e={},t){return{dirtyHandlerIds:st(e.dirtyHandlerIds,{type:t.type,payload:yt({},t.payload,{prevTargetIds:(r=e,n=[],"dragOperation.targetIds".split(".").reduce((e,t)=>e&&e[t]?e[t]:n||null,r))})}),dragOffset:lt(e.dragOffset,t),refCount:pt(e.refCount,t),dragOperation:gt(e.dragOperation,t),stateId:vt(e.stateId)};var r,n}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var wt=0,Dt=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function St(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tt(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=t;return o[Dt]||(o[Dt]=function(e,t,r={},n=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return ye(bt,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),i=new He(o,new Be(o,new it(o))),a=e(i,t,r);return i.receiveBackend(a),i}(e,t,r,n)),o[Dt]}function Tt(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:window}var It=(0,ce.defineComponent)({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(e,t){var r,n,o,i,a=t.slots,s=(o=function(e){return function(e){return"manager"in e&&e.manager}(e)?[e.manager,!1]:[St(e.backend,e.context,e.options,e.debugMode),!e.context]}(e),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(o,i)||function(e,t){if(e){if("string"==typeof e)return Ot(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ot(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1];return u&&++wt,(0,ce.onUnmounted)(function(){if(u){var e=Tt();0===--wt&&(e[Dt]=null)}}),r=c,(0,ce.provide)(he,r),function(){var e;return null!==(n=null===(e=a.default)||void 0===e?void 0:e.call(a))&&void 0!==n?n:null}}});(0,ce.defineComponent)({props:{connect:{type:Function,required:!0},src:{type:String,required:!0}},setup:function(e){return(0,ce.watchEffect)(function(){if("undefined"!=typeof Image){var t=!1,r=new Image;return r.src=e.src,r.onload=function(){e.connect(r),t=!0},function(){t&&e.connect(null)}}}),function(){return null}}});var Et=!1,Ct=!1,Pt=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.sourceId=e},t.getHandlerId=function(){return this.sourceId},t.canDrag=function(){be(!Et,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Et=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Et=!1}},t.isDragging=function(){if(!this.sourceId)return!1;be(!Ct,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ct=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Ct=!1}},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},t.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},t.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.getSourceId=function(){return this.internalMonitor.getSourceId()},t.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},t.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},t.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}(),jt=!1,Nt=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.targetId=e},t.getHandlerId=function(){return this.targetId},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.canDrop=function(){if(!this.targetId)return!1;be(!jt,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return jt=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{jt=!1}},t.isOver=function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();function xt(e){return function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((t=r)&&t.__v_skip&&function(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}(),!function(e){return!!(r=e)&&!0===r.__v_isVNode&&"symbol"!=((t=e.type)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t);var t,r}(r)){var o=r;return e(o,n),o}}}function Rt(e){var t={};return Object.keys(e).forEach(function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var o=xt(n);t[r]=function(){return o}}}),t}function At(e,t,r,n){let o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<i.length;c++){const a=i[c];if(!s(a))return!1;const u=e[a],l=t[a];if(o=r?r.call(n,u,l,a):void 0,!1===o||void 0===o&&u!==l)return!1}return!0}function Mt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var _t=/* @__PURE__ */function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=Rt({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,r.dragPreviewNode=e,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,r,n=e.prototype;return n.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},n.reconnect=function(){var e=this.reconnectDragSource();this.reconnectDragPreview(e)},n.reconnectDragSource=function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t},n.reconnectDragPreview=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)},n.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},n.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},n.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},n.didDragSourceOptionsChange=function(){return!At(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},n.didDragPreviewOptionsChange=function(){return!At(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},n.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},n.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},n.clearDragSource=function(){this.dragSourceNode=null},n.clearDragPreview=function(){this.dragPreviewNode=null},t=e,(r=[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}])&&Mt(t.prototype,r),e}();function kt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Lt=/* @__PURE__ */function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=Rt({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,(0,ce.isRef)(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r,n=e.prototype;return n.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)},n.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},n.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},n.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},n.didOptionsChange=function(){return!At(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},n.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},n.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},t=e,(r=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}])&&kt(t.prototype,r),e}(),Ht=/* @__PURE__ */function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=r,this.connector=n}var t=e.prototype;return t.beginDrag=function(){var e,t=this.spec,r=this.monitor;return null!=(e="object"==typeof t.item?t.item:"function"==typeof t.item?t.item(r):{})?e:null},t.canDrag=function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)},t.isDragging=function(e,t){var r=this.spec,n=this.monitor,o=r.isDragging;return o?o(n):t===e.getSourceId()},t.endDrag=function(){var e=this.spec,t=this.monitor,r=this.connector,n=e.end;n&&n(t.getItem(),t),r.reconnect()},e}();function Ut(){var e=(0,ce.inject)(he);return be(null!=e,"Expected drag drop context"),e}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qt(e,t,r){var n=Ut(),o=function(e,t,r){var n=(0,ce.computed)(function(){return new Ht((0,ce.unref)(e),(0,ce.unref)(t),(0,ce.unref)(r))});return(0,ce.watchEffect)(function(){n.value.spec=(0,ce.unref)(e)}),n}(e,t,r),i=function(e){return(0,ce.computed)(function(){var t=(0,ce.unref)(e).type;return be(null!=t,"spec.type must be defined"),t})}(e);(0,ce.watchEffect)(function(e){if(null!=(0,ce.unref)(i)){var a=(u=function(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}((0,ce.unref)(i),(0,ce.unref)(o),(0,ce.unref)(n)),l=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(u,l)||function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ft(e,t):void 0}}(u,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],c=a[1];(0,ce.unref)(t).receiveHandlerId(s),(0,ce.unref)(r).receiveHandlerId(s),e(c)}var u,l})}function Bt(e){return(0,ce.computed)(function(){return"function"==typeof e?e():e})}var Vt=/* @__PURE__ */e(/* @__PURE__ */n((e,t)=>{t.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!==o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!==o--;){var a=i[o];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}})());function Wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zt(e,t,r){var n,o,i=(n=function(e,t,r){var n=(0,ce.ref)((0,ce.unref)(t)((0,ce.unref)(e))),o=function(){var o=(0,ce.unref)(t)((0,ce.unref)(e));(0,Vt.default)(n.value,o)||(n.value=o,r&&r())};return(0,ce.watchEffect)(o),[n,o]}(e,t,r),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(n,o)||function(e,t){if(e){if("string"==typeof e)return Wt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wt(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1];return(0,ce.watchEffect)(function(t){var r=(0,ce.unref)(e).getHandlerId();null!=r&&t((0,ce.unref)(e).subscribeToStateChange(s,{handlerIds:[r]}))}),a}function Gt(e,t,r){return zt(t,e||function(){return{}},function(){return(0,ce.unref)(r).reconnect()})}function Xt(e,t){var r=(0,ce.reactive)({el:null,options:(0,ce.unref)(t)});return(0,ce.watchEffect)(function(){e(r)},{flush:"post"}),function(e,n){de(r,"el",e);var o=(0,ce.unref)(t)||n;return(0,Vt.default)(r.options,o)||de(r,"options",o),(0,ce.unref)(e)}}function $t(e,t){return Xt(function(t){(0,ce.unref)(e).hooks.dragSource()(t.el,t.options)},(0,ce.computed)(function(){return(0,ce.unref)(t).options}))}function Yt(e,t){return Xt(function(t){(0,ce.unref)(e).hooks.dragPreview()(t.el,t.options)},(0,ce.computed)(function(){return(0,ce.unref)(t).previewOptions}))}function Kt(e){var t,r=Bt(e),n=(t=Ut(),(0,ce.computed)(function(){return new Pt((0,ce.unref)(t))})),o=function(e,t){var r=Ut(),n=(0,ce.computed)(function(){return new _t((0,ce.unref)(r).getBackend())});return(0,ce.watchEffect)(function(t){n.value.dragSourceOptions=(0,ce.unref)(e)||null,(0,ce.unref)(n).reconnect(),t(function(){n.value.disconnectDragSource()})}),(0,ce.watchEffect)(function(e){n.value.dragPreviewOptions=(0,ce.unref)(t)||null,(0,ce.unref)(n).reconnect(),e(function(){n.value.disconnectDragPreview()})}),n}((0,ce.computed)(function(){return(0,ce.unref)(r).options}),(0,ce.computed)(function(){return(0,ce.unref)(r).previewOptions}));return qt(r,n,o),[Gt((0,ce.computed)(function(){return(0,ce.unref)(r).collect||function(){return{}}}),n,o),$t(o,r),Yt(o,r)]}var Jt=/* @__PURE__ */function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=r}var t=e.prototype;return t.canDrop=function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)},t.hover=function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)},t.drop=function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)},e}();function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Zt(e,t,r){var n=Ut(),o=function(e,t){var r=(0,ce.computed)(function(){return new Jt((0,ce.unref)(e),(0,ce.unref)(t))});return(0,ce.watchEffect)(function(){r.value.spec=(0,ce.unref)(e)}),r}(e,t),i=function(e){return(0,ce.computed)(function(){var t=(0,ce.unref)(e).accept;return be(null!=t,"accept must be defined"),Array.isArray(t)?t:[t]})}(e);(0,ce.watchEffect)(function(e){var a,s,c=(a=function(e,t,r){var n=(0,ce.unref)(r).getRegistry(),o=n.addTarget((0,ce.unref)(e),(0,ce.unref)(t));return[o,function(){return n.removeTarget(o)}]}(i,o,n),s=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(a,s)||function(e,t){if(e){if("string"==typeof e)return Qt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qt(e,t):void 0}}(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];(0,ce.unref)(t).receiveHandlerId(u),(0,ce.unref)(r).receiveHandlerId(u),e(l)})}function er(e,t){return Xt(function(t){(0,ce.unref)(e).hooks.dropTarget()(t.el,t.options)},(0,ce.computed)(function(){return(0,ce.unref)(t).options}))}function tr(e){var t,r=Bt(e),n=(t=Ut(),(0,ce.computed)(function(){return new Nt((0,ce.unref)(t))})),o=function(e){var t=Ut(),r=(0,ce.computed)(function(){return new Lt((0,ce.unref)(t).getBackend())});return(0,ce.watchEffect)(function(t){r.value.dropTargetOptions=(0,ce.unref)(e)||null,r.value.reconnect(),t(function(){return r.value.disconnectDropTarget()})}),r}((0,ce.computed)(function(){return(0,ce.unref)(r).options}));return Zt(r,n,o),[Gt((0,ce.computed)(function(){return(0,ce.unref)(r).collect||function(){return{}}}),n,o),er(o,r)]}function rr(e){let t=null;return()=>(null==t&&(t=e()),t)}var nr=class{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=/* @__PURE__ */new Set,n=e=>r.add(e);e.forEach(n),t.forEach(n);const o=[];return r.forEach(e=>o.push(e)),o}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,n;return this.entered=(r=this.entered.filter(this.isNodeInDocument),n=e,r.filter(e=>e!==n)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},or=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(r=>{const n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},ir=/* @__PURE__ */t({FILE:()=>ar,HTML:()=>ur,TEXT:()=>cr,URL:()=>sr}),ar="__NATIVE_FILE__",sr="__NATIVE_URL__",cr="__NATIVE_TEXT__",ur="__NATIVE_HTML__";function lr(e,t,r){const n=t.reduce((t,r)=>t||e.getData(r),"");return null!=n?n:r}var dr={[ar]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[ur]:{exposeProperties:{html:(e,t)=>lr(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[sr]:{exposeProperties:{urls:(e,t)=>lr(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[cr]:{exposeProperties:{text:(e,t)=>lr(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function fr(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(dr).filter(e=>{const r=dr[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}var hr=rr(()=>/firefox/i.test(navigator.userAgent)),gr=rr(()=>Boolean(window.safari)),pr=class{interpolate(e){const{xs:t,ys:r,c1s:n,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return r[a];let s,c=0,u=i.length-1;for(;c<=u;){s=Math.floor(.5*(c+u));const n=t[s];if(n<e)c=s+1;else{if(!(n>e))return r[s];u=s-1}}a=Math.max(0,u);const l=e-t[a],d=l*l;return r[a]+n[a]*l+o[a]*d+i[a]*l*d}constructor(e,t){const{length:r}=e,n=[];for(let h=0;h<r;h++)n.push(h);n.sort((t,r)=>e[t]<e[r]?-1:1);const o=[],i=[],a=[];let s,c;for(let h=0;h<r-1;h++)s=e[h+1]-e[h],c=t[h+1]-t[h],i.push(s),o.push(c),a.push(c/s);const u=[a[0]];for(let h=0;h<i.length-1;h++){const e=a[h],t=a[h+1];if(e*t<=0)u.push(0);else{s=i[h];const r=i[h+1],n=s+r;u.push(3*n/((n+r)/e+(n+s)/t))}}u.push(a[a.length-1]);const l=[],d=[];let f;for(let h=0;h<u.length-1;h++){f=a[h];const e=u[h],t=1/i[h],r=e+u[h+1]-f-f;l.push((f-e-r)*t),d.push(r*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=d}};function vr(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function mr(e){return{x:e.clientX,y:e.clientY}}var yr=class{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Or(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){br(e,t,r[t])})}return e}var wr=class{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const n=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Or({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Or({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(ir).some(t=>ir[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=dr[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new or(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=/* @__PURE__ */new Map,this.sourcePreviewNodeOptions=/* @__PURE__ */new Map,this.sourceNodes=/* @__PURE__ */new Map,this.sourceNodeOptions=/* @__PURE__ */new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&vr(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=mr(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:n}=e,o=fr(n);if(this.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=function(e,t,r,n,o){const i=function(e){var t;return"IMG"===e.nodeName&&(hr()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=vr(i?e:t),s={x:r.x-a.x,y:r.y-a.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:d}=n,{dragPreviewWidth:f,dragPreviewHeight:h}=function(e,t,r,n){let o=e?t.width:r,i=e?t.height:n;return gr()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,c,u),{offsetX:g,offsetY:p}=o,v=0===p||p;return{x:0===g||g?g:new pr([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(l),y:v?p:(()=>{let e=new pr([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(d);return gr()&&i&&(e+=(window.devicePixelRatio-1)*h),e})()}}(t,o,r,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});n.setDragImage(o,c.x,c.y)}}try{null==n||n.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,n=fr(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:mr(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=mr(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):fr(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:mr(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new yr(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new nr(this.isNodeInDocument)}},Dr=function(e,t,r){return new wr(e,t,r)},Sr={"zh-CN":()=>import("./zh_CN-DY_wA21D.js"),"en-US":()=>import("./en_US-CuX-vrWy.js"),"pt-PT":()=>import("./pt_PT-C0ALlHDr.js"),"tr-TR":()=>import("./tr_TR-Cm3P61iH.js"),"zh-TW":()=>import("./zh_TW-A1Y7MG2g.js"),"ja-JP":()=>import("./ja_JP-CgXnA74i.js"),"vi-VN":()=>import("./vi_VN-BZ_iPKuE.js"),"de-GE":()=>import("./de_DE-BY1He8Sf.js"),"fr-FR":()=>import("./fr_FR-C4TFcMTv.js"),"es-ES":()=>import("./es_ES-BqHRjpc9.js"),"ru-RU":()=>import("./ru_RU-D39vUeFW.js")},Tr=p({locale:""});function Ir(){if(Tr.value.locale!==_gct.i18n.global.locale){const e=Sr[_gct.i18n.global.locale];e&&e().then(e=>{Tr.value=e.default})}return{getAntdLocale:Tr}}var Er=g({});function Cr(){return{themeVars:Er,setPrimaryColor:function(e){Er.primaryColor=e,b.config({theme:{primaryColor:e}})}}}function Pr(e,t,r={}){const n=r.minValue??10,o=p(e),i=g({offset:"offsetWidth",client:"clientX",clientMove:0,rowType:t,offsetWidth:2e3});function a(e){const t=e-i.clientMove;o.value=s(s(o.value)+t),i.clientMove=e}function s(e){return"right"===i.rowType||"bottom"===i.rowType?i.offsetWidth-e:e}return{moveDomDown:function(e,t,r){const n=t,o=e;i.offsetWidth=n[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.onmousemove=e=>{a(e[i.client]??0)},document.onmouseup=()=>{document.onmouseup=null,document.onmousemove=null,null==r||r()}},moveMobileDomDown:function(e,t,r){const n=t,o=e.touches[0];o&&(i.offsetWidth=n[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.ontouchmove=e=>{a(e.touches[0][i.client]??0)},document.ontouchend=()=>{document.ontouchend=null,document.ontouchmove=null,null==r||r()})},start:c({get:()=>o.value<n?n:o.value>i.offsetWidth-n?i.offsetWidth-n:o.value,set(e){o.value=e}})}}var jr=/* @__PURE__ */l({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const r=a("modal"),n=p(!1),i=p(!!e.opts.defaultFullscreen),s=()=>{i.value=!i.value},c=p({});e.opts&&Object.assign(c.value,e.opts);let l=null;const g=new o({dismiss:e=>{n.value=!1,l=e,t.emit("dismiss",l)},setOptions(e){Object.assign(c.value,e)}});h("modal",g);const m=e=>g.dismiss(e);t.expose({present:()=>{n.value=!0},dismiss:m});const y=p(!1),O=async()=>{if(g.ok)try{y.value=!0;const e=await g.ok();y.value=!1,!e||!0!==e.ok&&!0!==e.close||m(e)}finally{y.value=!1}else console.warn("打开模态未实现ok方法")},w=async()=>{g.cancel&&!1===await g.cancel()||m()},{getAntdLocale:D}=Ir();return()=>{var e,o;let a;const l=null===(e=(o=t.slots).default)||void 0===e?void 0:e.call(o);return l&&l.length>0&&(l[0].props.modal=g),u(b,{locale:D.value},{default:()=>{return[u(It,{backend:Dr},(e=a=d(v("a-modal"),{visible:n.value,class:[r.b(),c.value.placement&&r.m(c.value.placement),c.value.modalClass,r.is("hidden-footer",!1===c.value.showFooter),r.is("hidden-close-btn",!1===c.value.showCloseBtn),r.is("hidden-cancel-btn",!1===c.value.showCancelBtn),r.is("full-screen",i.value)],centered:!0,onOk:O,confirmLoading:y.value,onCancel:w,okText:"确认",okButtonProps:{disabled:g.state.okDisabled},...c.value},[!1!==c.value.canFullscreen?u("div",{class:r.e("full-screen"),onClick:s},[u("i",{class:"iconfont "+(i.value?"icon-tuichuquanping":"icon-quanping")},null)]):null,l]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!f(e)?a:{default:()=>[a]}))];var e}})}}}),Nr=class{async modal(e,t,r){const n=this.createModal(e,t,r);return n.present(),n.onWillDismiss()}createModal(e,t,r){return function(e,t){return new i(jr,e,t)}(m(e)?e:()=>d(function(e){return y(e)?v(e):e}(e),{...t}),r)}},xr=new Nr,Rr=(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e),Ar={VS:"vs",BLACK:"hc-black",DARK:"vs-dark"},Mr={JS:"javascript",SQL:"sql",PWSH:"powershell",JAVA:"java",C_SHARP:"csharp",JSON:"json"},_r=class{constructor(){D(this,"value",void 0),D(this,"title",void 0),D(this,"language",void 0),D(this,"theme",void 0),D(this,"readonly",void 0)}},kr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};export{Rr as a,Pr as c,tr as d,Kt as f,D as g,S as h,Ar as i,Cr as l,ae as m,Mr as n,Nr as o,se as p,_r as r,xr as s,kr as t,Ir as u};