@web-utils/component 2.13.0 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/address-input/index.mjs +9 -9
  2. package/address-input/style.css +1 -1
  3. package/affix/index.mjs +1 -1
  4. package/affix/style.css +1 -1
  5. package/aside-menu/index.mjs +20 -20
  6. package/aside-menu/style.css +1 -1
  7. package/avatar/index.mjs +1 -1
  8. package/avatar/style.css +1 -1
  9. package/awesome-button/index.mjs +1 -1
  10. package/base.css +1 -1
  11. package/capsule-tab/index.mjs +10 -10
  12. package/capsule-tab/style.css +1 -1
  13. package/card/index.mjs +23 -23
  14. package/card/style.css +1 -1
  15. package/carousel/index.mjs +5 -5
  16. package/carousel/style.css +1 -1
  17. package/chat/index.mjs +2 -2
  18. package/chat/style.css +1 -1
  19. package/chunk-file-uploader/index.mjs +3 -3
  20. package/chunk-file-uploader/style.css +1 -1
  21. package/chunks/{FormTemp.a70cc55d.mjs → FormTemp.FX8xmbVB.mjs} +4 -4
  22. package/chunks/{confirmable-mixin.d89088b0.mjs → confirmable-mixin.rTUMhoRH.mjs} +25 -24
  23. package/chunks/{dataformat.504544b2.mjs → dataformat.X_61lMA7.mjs} +1 -1
  24. package/chunks/{dic.9277cfae.mjs → dic.6tk91Dmq.mjs} +1 -1
  25. package/chunks/{event.67cfd4fb.mjs → event.NHA7rYFE.mjs} +3 -3
  26. package/chunks/{form-input-mixin.4632ad36.mjs → form-input-mixin.IKogWBfn.mjs} +2 -2
  27. package/chunks/{form-item-mixin.ad148e7b.mjs → form-item-mixin.BilKDUlK.mjs} +1 -1
  28. package/chunks/{init.7338d214.mjs → init.Ac4dKUJB.mjs} +3 -3
  29. package/code-mirror-editor/index.mjs +36 -36
  30. package/code-mirror-editor/style.css +1 -1
  31. package/color-picker/index.mjs +1 -1
  32. package/comment/index.mjs +18 -18
  33. package/comment/style.css +1 -1
  34. package/confirm-button/index.mjs +2 -2
  35. package/confirmable/index.mjs +2 -2
  36. package/context-menu/index.mjs +9 -9
  37. package/context-menu/style.css +1 -1
  38. package/count-up/index.mjs +1 -1
  39. package/custom-scrollbar/index.mjs +6 -6
  40. package/data-box/index.mjs +8 -8
  41. package/data-box/style.css +1 -1
  42. package/data-card/index.mjs +19 -19
  43. package/data-card/style.css +1 -1
  44. package/data-cardtext/index.mjs +22 -22
  45. package/data-cardtext/style.css +1 -1
  46. package/data-display/index.mjs +24 -24
  47. package/data-display/style.css +1 -1
  48. package/data-icons/index.mjs +13 -13
  49. package/data-icons/style.css +1 -1
  50. package/data-imgtext/index.mjs +18 -18
  51. package/data-imgtext/style.css +1 -1
  52. package/data-operatext/index.mjs +28 -28
  53. package/data-operatext/style.css +1 -1
  54. package/data-panel/index.mjs +15 -15
  55. package/data-panel/style.css +1 -1
  56. package/data-pay/index.mjs +7 -7
  57. package/data-pay/style.css +1 -1
  58. package/data-price/index.mjs +5 -5
  59. package/data-price/style.css +1 -1
  60. package/data-progress/index.mjs +16 -16
  61. package/data-progress/style.css +1 -1
  62. package/data-rotate/index.mjs +7 -7
  63. package/data-rotate/style.css +1 -1
  64. package/data-table-picker/index.mjs +2 -2
  65. package/data-tabs/index.mjs +6 -6
  66. package/data-tabs/style.css +1 -1
  67. package/dialog-form/index.mjs +47 -47
  68. package/dialog-form/style.css +1 -1
  69. package/dynamic-table/index.mjs +15 -15
  70. package/dynamic-table/style.css +1 -1
  71. package/e-charts/index.mjs +7 -7
  72. package/e-charts/style.css +1 -1
  73. package/easy-popup/index.mjs +15 -15
  74. package/easy-popup/style.css +1 -1
  75. package/editable-progress/index.mjs +1 -1
  76. package/editable-progress/style.css +1 -1
  77. package/editable-tree/index.mjs +5 -5
  78. package/editable-tree/style.css +1 -1
  79. package/egd-collapse/index.mjs +1 -1
  80. package/egd-collapse-item/index.mjs +1 -1
  81. package/element-dialog/index.mjs +8 -8
  82. package/element-dialog/style.css +1 -1
  83. package/empty-view/index.mjs +9 -9
  84. package/empty-view/style.css +1 -1
  85. package/error-view/index.mjs +13 -13
  86. package/error-view/style.css +1 -1
  87. package/flex-column/index.mjs +2 -2
  88. package/flex-item/index.mjs +2 -2
  89. package/flex-row/index.mjs +2 -2
  90. package/flex-scroller/index.mjs +5 -5
  91. package/flex-scroller/style.css +1 -1
  92. package/flow/index.mjs +2 -2
  93. package/flow/style.css +1 -1
  94. package/flow-designer/index.mjs +31 -31
  95. package/flow-designer/style.css +1 -1
  96. package/flow-node/index.mjs +2 -2
  97. package/flow-viewer/index.mjs +4 -4
  98. package/flow-viewer/style.css +1 -1
  99. package/form-block/index.mjs +16 -16
  100. package/form-block/style.css +1 -1
  101. package/form-button/index.mjs +1 -1
  102. package/form-cascader/index.mjs +4 -4
  103. package/form-checkbox-group/index.mjs +6 -6
  104. package/form-checkbox-group/style.css +1 -1
  105. package/form-date-picker/index.mjs +4 -4
  106. package/form-holder/index.mjs +2 -2
  107. package/form-input/index.mjs +3 -3
  108. package/form-input-email/index.mjs +3 -3
  109. package/form-input-id-card/index.mjs +3 -3
  110. package/form-input-number/index.mjs +8 -8
  111. package/form-input-number/style.css +1 -1
  112. package/form-input-phone-number/index.mjs +3 -3
  113. package/form-input-tag/index.mjs +3 -3
  114. package/form-input-time/index.mjs +3 -3
  115. package/form-item/index.mjs +18 -18
  116. package/form-item/style.css +1 -1
  117. package/form-item-config-provider/index.mjs +1 -1
  118. package/form-item-group/index.mjs +4 -4
  119. package/form-item-group/style.css +1 -1
  120. package/form-radio-group/index.mjs +37 -37
  121. package/form-radio-group/style.css +1 -1
  122. package/form-select/index.mjs +4 -4
  123. package/form-switch/index.mjs +3 -3
  124. package/form-textarea/index.mjs +3 -3
  125. package/form-view/index.mjs +7 -7
  126. package/form-view/style.css +1 -1
  127. package/fy-array/index.mjs +9 -9
  128. package/fy-array/style.css +1 -1
  129. package/fy-article/index.mjs +7 -7
  130. package/fy-article/style.css +1 -1
  131. package/fy-cascader/index.mjs +2 -2
  132. package/fy-checkbox/index.mjs +6 -6
  133. package/fy-checkbox/style.css +1 -1
  134. package/fy-code/index.mjs +2 -2
  135. package/fy-curd/index.mjs +9 -9
  136. package/fy-curd/style.css +1 -1
  137. package/fy-date/index.mjs +8 -8
  138. package/fy-date/style.css +1 -1
  139. package/fy-draggable/index.mjs +2 -2
  140. package/fy-draggable/style.css +1 -1
  141. package/fy-dynamic/index.mjs +7 -7
  142. package/fy-dynamic/style.css +1 -1
  143. package/fy-empty/index.mjs +10 -10
  144. package/fy-empty/style.css +1 -1
  145. package/fy-form/index.mjs +42 -42
  146. package/fy-form/style.css +1 -1
  147. package/fy-form-design/index.mjs +3 -3
  148. package/fy-form-design/style.css +1 -1
  149. package/fy-input/index.mjs +2 -2
  150. package/fy-input-color/index.mjs +2 -2
  151. package/fy-input-icon/index.mjs +5 -5
  152. package/fy-input-icon/style.css +1 -1
  153. package/fy-input-map/index.mjs +8 -8
  154. package/fy-input-map/style.css +1 -1
  155. package/fy-input-number/index.mjs +2 -2
  156. package/fy-input-table/index.mjs +2 -2
  157. package/fy-input-table/style.css +1 -1
  158. package/fy-input-tree/index.mjs +6 -6
  159. package/fy-input-tree/style.css +1 -1
  160. package/fy-progress/index.mjs +1 -1
  161. package/fy-radio/index.mjs +6 -6
  162. package/fy-radio/style.css +1 -1
  163. package/fy-rate/index.mjs +4 -4
  164. package/fy-rate/style.css +1 -1
  165. package/fy-select/index.mjs +27 -27
  166. package/fy-select/style.css +1 -1
  167. package/fy-slider/index.mjs +3 -3
  168. package/fy-switch/index.mjs +2 -2
  169. package/fy-tabs/index.mjs +1 -1
  170. package/fy-time/index.mjs +2 -2
  171. package/fy-title/index.mjs +14 -14
  172. package/fy-title/style.css +1 -1
  173. package/fy-tree/index.mjs +3 -3
  174. package/fy-tree/style.css +1 -1
  175. package/fy-u-editor/index.mjs +14 -14
  176. package/fy-u-editor/style.css +1 -1
  177. package/fy-upload/index.mjs +17 -17
  178. package/fy-upload/style.css +1 -1
  179. package/guide-steps/index.mjs +12 -12
  180. package/guide-steps/style.css +1 -1
  181. package/highlight-j-s/index.mjs +1 -1
  182. package/highlight-j-s/style.css +1 -1
  183. package/icon-card/index.mjs +9 -9
  184. package/icon-card/style.css +1 -1
  185. package/icon-temp/index.mjs +16 -16
  186. package/icon-temp/style.css +1 -1
  187. package/iframe-window/index.mjs +5 -5
  188. package/iframe-window/style.css +1 -1
  189. package/image-cropper/index.mjs +10 -10
  190. package/image-cropper/style.css +1 -1
  191. package/image-preview/index.mjs +7 -7
  192. package/image-preview/style.css +1 -1
  193. package/image-viewer/index.mjs +5 -5
  194. package/image-viewer/style.css +1 -1
  195. package/input-number/index.mjs +2 -2
  196. package/input-number/style.css +1 -1
  197. package/input-number-range/index.mjs +7 -7
  198. package/input-number-range/style.css +1 -1
  199. package/keep-view-alive/index.mjs +1 -1
  200. package/keyboard/index.mjs +12 -12
  201. package/keyboard/style.css +1 -1
  202. package/license/index.mjs +2 -2
  203. package/loading-view/index.mjs +5 -5
  204. package/loading-view/style.css +1 -1
  205. package/login/index.mjs +4 -4
  206. package/login/style.css +1 -1
  207. package/monaco-editor/index.mjs +2 -2
  208. package/name-avatar/index.mjs +6 -6
  209. package/name-avatar/style.css +1 -1
  210. package/nav-bar/index.mjs +8 -8
  211. package/nav-bar/style.css +1 -1
  212. package/not-implement/index.mjs +15 -15
  213. package/not-implement/style.css +1 -1
  214. package/notice/index.mjs +1 -1
  215. package/notice/style.css +1 -1
  216. package/package.json +5 -2
  217. package/page/index.mjs +8 -8
  218. package/page/style.css +1 -1
  219. package/page-header/index.mjs +6 -6
  220. package/page-header/style.css +1 -1
  221. package/page-index/index.mjs +19 -19
  222. package/page-index/style.css +1 -1
  223. package/page-index-top/index.mjs +1 -1
  224. package/page-skeleton/index.mjs +21 -21
  225. package/page-skeleton/style.css +1 -1
  226. package/page-skeleton-new/index.mjs +3 -3
  227. package/page-skeleton-new/style.css +1 -1
  228. package/pageable-table/index.mjs +12 -12
  229. package/pageable-table/style.css +1 -1
  230. package/pageable-view/index.mjs +28 -28
  231. package/pageable-view/style.css +1 -1
  232. package/photo-swipe/index.mjs +1 -1
  233. package/present-view/index.mjs +7 -7
  234. package/present-view/style.css +1 -1
  235. package/queue/index.mjs +4 -4
  236. package/queue/style.css +1 -1
  237. package/record-video/index.mjs +14 -14
  238. package/record-video/style.css +1 -1
  239. package/resize-observer/index.mjs +6 -6
  240. package/resize-observer/style.css +1 -1
  241. package/search/index.mjs +6 -6
  242. package/search/style.css +1 -1
  243. package/search-popover/index.mjs +6 -6
  244. package/search-popover/style.css +1 -1
  245. package/sign/index.mjs +31 -31
  246. package/sign/style.css +1 -1
  247. package/sign-panel/index.mjs +5 -5
  248. package/sign-panel/style.css +1 -1
  249. package/skeleton/index.mjs +10 -10
  250. package/skeleton/style.css +1 -1
  251. package/split-pane/index.mjs +18 -18
  252. package/split-pane/style.css +1 -1
  253. package/stateful/index.mjs +12 -12
  254. package/stateful/style.css +1 -1
  255. package/static-pageable-table/index.mjs +9 -9
  256. package/static-pageable-table/style.css +1 -1
  257. package/swiper/index.mjs +7 -7
  258. package/swiper/style.css +1 -1
  259. package/tab/index.mjs +2 -2
  260. package/tab/style.css +1 -1
  261. package/tab-item/index.mjs +2 -2
  262. package/table-column/index.mjs +1 -1
  263. package/table-view/index.mjs +6 -6
  264. package/table-view/style.css +1 -1
  265. package/tag-render/index.mjs +29 -29
  266. package/tag-render/style.css +1 -1
  267. package/text-ellipsis/index.mjs +8 -8
  268. package/text-ellipsis/style.css +1 -1
  269. package/tinymce-editor/index.mjs +70 -70
  270. package/tinymce-editor/style.css +1 -1
  271. package/toolbar/index.mjs +1 -1
  272. package/toolbar/style.css +1 -1
  273. package/toolbar-button/index.mjs +6 -6
  274. package/toolbar-button/style.css +1 -1
  275. package/verify/index.mjs +10 -10
  276. package/verify/style.css +1 -1
  277. package/vue-cron/index.mjs +1 -1
  278. package/vue-cron/style.css +1 -1
  279. package/vue-qr-code/index.mjs +1 -1
  280. package/vue-quill-editor/index.mjs +3 -3
  281. package/vue-quill-editor/style.css +1 -1
  282. package/vue-tags-input/index.mjs +1 -1
  283. package/vue-tags-input/style.css +1 -1
  284. package/vue-tree-select/index.mjs +364 -369
  285. package/vue-tree-select/style.css +1 -1
  286. package/vue-video-player/index.mjs +25 -25
  287. package/vue-video-player/style.css +1 -1
  288. package/watermark/index.mjs +11 -11
  289. package/watermark/style.css +1 -1
  290. package/web-types.json +27 -3
  291. package/x-input-tag/index.mjs +13 -13
  292. package/x-input-tag/style.css +1 -1
  293. /package/chunks/{form-pick-mixin.61ad06b2.mjs → form-pick-mixin.y-qhZJi6.mjs} +0 -0
  294. /package/chunks/{index.57f871af.mjs → index.LGsb2aDq.mjs} +0 -0
  295. /package/chunks/{input-number-mixin.41a066be.mjs → input-number-mixin.GE2zr_3s.mjs} +0 -0
  296. /package/chunks/{json-beautifier.21cfffea.mjs → json-beautifier.fUZFSW5j.mjs} +0 -0
  297. /package/chunks/{packages.1fc9ccba.mjs → packages.v6r2Hr7E.mjs} +0 -0
  298. /package/chunks/{permission.ce5d2121.mjs → permission.E9kZbW48.mjs} +0 -0
  299. /package/chunks/{slot.4b391395.mjs → slot.j1uMmBnG.mjs} +0 -0
  300. /package/chunks/{tab-mixin.e2b9c6a4.mjs → tab-mixin.tM9jcRT8.mjs} +0 -0
  301. /package/chunks/{util.c5724c4a.mjs → util.C2Bhx22L.mjs} +0 -0
  302. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → vueComponentNormalizer.JwmUNtgn.mjs} +0 -0
@@ -1,27 +1,22 @@
1
- var ke = Object.defineProperty, He = Object.defineProperties;
2
- var Pe = Object.getOwnPropertyDescriptors;
3
- var G = Object.getOwnPropertySymbols;
4
- var We = Object.prototype.hasOwnProperty, je = Object.prototype.propertyIsEnumerable;
5
- var J = (e, t, s) => t in e ? ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, _ = (e, t) => {
1
+ var Fe = Object.defineProperty, ke = Object.defineProperties;
2
+ var He = Object.getOwnPropertyDescriptors;
3
+ var J = Object.getOwnPropertySymbols;
4
+ var Pe = Object.prototype.hasOwnProperty, We = Object.prototype.propertyIsEnumerable;
5
+ var Z = (e, t, s) => t in e ? Fe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, _ = (e, t) => {
6
6
  for (var s in t || (t = {}))
7
- We.call(t, s) && J(e, s, t[s]);
8
- if (G)
9
- for (var s of G(t))
10
- je.call(t, s) && J(e, s, t[s]);
7
+ Pe.call(t, s) && Z(e, s, t[s]);
8
+ if (J)
9
+ for (var s of J(t))
10
+ We.call(t, s) && Z(e, s, t[s]);
11
11
  return e;
12
- }, b = (e, t) => He(e, Pe(t));
13
- import Qe from "lodash/noop";
14
- import Ke from "lodash/debounce";
15
- import { isPromise as ye } from "@web-utils/core";
16
- import qe from "lodash/once";
17
- import Ue from "lodash/identity";
18
- import Z from "lodash/constant";
19
- import ee from "lodash/last";
20
- import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
21
- import Ye from "vue";
12
+ }, b = (e, t) => ke(e, He(t));
13
+ import w from "lodash-es";
14
+ import { isPromise as Oe } from "@web-utils/core";
15
+ import { n as f } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
16
+ import je from "vue";
22
17
  const S = process.env.NODE_ENV === "production" ? (
23
18
  /* istanbul ignore next */
24
- Qe
19
+ w
25
20
  ) : function(t, s) {
26
21
  if (!t()) {
27
22
  const n = ["[Vue-TreeSelect Warning]"].concat(s());
@@ -33,43 +28,43 @@ function N(e) {
33
28
  s.type === "mousedown" && s.button === 0 && e.call(this, s, ...n);
34
29
  };
35
30
  }
36
- function Xe(e, t) {
31
+ function Qe(e, t) {
37
32
  const s = e.getBoundingClientRect(), n = t.getBoundingClientRect(), i = t.offsetHeight / 3;
38
33
  n.bottom + i > s.bottom ? e.scrollTop = Math.min(
39
34
  t.offsetTop + t.clientHeight - e.offsetHeight + i,
40
35
  e.scrollHeight
41
36
  ) : n.top - i < s.top && (e.scrollTop = Math.max(t.offsetTop - i, 0));
42
37
  }
43
- function Ee(e, t) {
38
+ function ye(e, t) {
44
39
  const s = e.indexOf(t);
45
40
  s !== -1 && e.splice(s, 1);
46
41
  }
47
- let K;
48
- const T = [], Ge = 100;
49
- function Je() {
50
- K = setInterval(() => {
51
- T.forEach(Ne);
52
- }, Ge);
42
+ let q;
43
+ const D = [], Ke = 100;
44
+ function qe() {
45
+ q = setInterval(() => {
46
+ D.forEach(Ee);
47
+ }, Ke);
53
48
  }
54
- function Ze() {
55
- clearInterval(K), K = null;
49
+ function Ue() {
50
+ clearInterval(q), q = null;
56
51
  }
57
- function Ne(e) {
52
+ function Ee(e) {
58
53
  const { $el: t, listener: s, lastWidth: n, lastHeight: i } = e, o = t.offsetWidth, r = t.offsetHeight;
59
54
  (n !== o || i !== r) && (e.lastWidth = o, e.lastHeight = r, s({ width: o, height: r }));
60
55
  }
61
- function et(e, t) {
56
+ function Ye(e, t) {
62
57
  const s = {
63
58
  $el: e,
64
59
  listener: t,
65
60
  lastWidth: null,
66
61
  lastHeight: null
67
62
  }, n = () => {
68
- Ee(T, s), T.length || Ze();
63
+ ye(D, s), D.length || Ue();
69
64
  };
70
- return T.push(s), Ne(s), Je(), n;
65
+ return D.push(s), Ee(s), qe(), n;
71
66
  }
72
- function tt(e, t) {
67
+ function Xe(e, t) {
73
68
  const s = document.createElement("_"), n = s.appendChild(document.createElement("_")), i = s.appendChild(document.createElement("_")), o = n.appendChild(document.createElement("_"));
74
69
  let r, c;
75
70
  return n.style.cssText = s.style.cssText = "height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1", o.style.cssText = i.style.cssText = "display:block;height:100%;transition:0s;width:100%", o.style.width = o.style.height = "200%", e.appendChild(s), d(), m;
@@ -85,25 +80,25 @@ function tt(e, t) {
85
80
  a(), e.removeChild(s);
86
81
  }
87
82
  }
88
- function be(e, t) {
83
+ function Ne(e, t) {
89
84
  const s = document.documentMode === 9;
90
85
  let n = !0;
91
- const r = (s ? et : tt)(e, (...c) => n || t(...c));
86
+ const r = (s ? Ye : Xe)(e, (...c) => n || t(...c));
92
87
  return n = !1, r;
93
88
  }
94
- function st(e) {
89
+ function Ge(e) {
95
90
  const t = [];
96
91
  let s = e.parentNode;
97
92
  for (; s && s.nodeName !== "BODY" && s.nodeType === document.ELEMENT_NODE; )
98
- nt(s) && t.push(s), s = s.parentNode;
93
+ Je(s) && t.push(s), s = s.parentNode;
99
94
  return t.push(window), t;
100
95
  }
101
- function nt(e) {
96
+ function Je(e) {
102
97
  const { overflow: t, overflowX: s, overflowY: n } = getComputedStyle(e);
103
98
  return /(auto|scroll|overlay)/.test(t + n + s);
104
99
  }
105
- function $e(e, t) {
106
- const s = st(e);
100
+ function be(e, t) {
101
+ const s = Ge(e);
107
102
  return window.addEventListener("resize", t, { passive: !0 }), s.forEach((n) => {
108
103
  n.addEventListener("scroll", t, { passive: !0 });
109
104
  }), function() {
@@ -112,33 +107,33 @@ function $e(e, t) {
112
107
  });
113
108
  };
114
109
  }
115
- function we(e) {
110
+ function $e(e) {
116
111
  return Number.isNaN(e);
117
112
  }
118
113
  const g = () => /* @__PURE__ */ Object.create(null);
119
- function Ce(e) {
114
+ function we(e) {
120
115
  return e == null || typeof e != "object" ? !1 : Object.getPrototypeOf(e) === Object.prototype;
121
116
  }
122
- function it(e, t, s) {
123
- Ce(s) ? (e[t] || (e[t] = {}), q(e[t], s)) : e[t] = s;
117
+ function Ze(e, t, s) {
118
+ we(s) ? (e[t] || (e[t] = {}), U(e[t], s)) : e[t] = s;
124
119
  }
125
- function q(e, t) {
126
- if (Ce(t)) {
120
+ function U(e, t) {
121
+ if (we(t)) {
127
122
  const s = Object.keys(t);
128
123
  for (let n = 0, i = s.length; n < i; n++)
129
- it(e, s[n], t[s[n]]);
124
+ Ze(e, s[n], t[s[n]]);
130
125
  }
131
126
  return e;
132
127
  }
133
128
  function O(e, t) {
134
129
  return e.indexOf(t) !== -1;
135
130
  }
136
- function Le(e, t, s) {
131
+ function Ce(e, t, s) {
137
132
  for (let n = 0, i = e.length; n < i; n++)
138
133
  if (t.call(s, e[n], n, e))
139
134
  return e[n];
140
135
  }
141
- function V(e, t) {
136
+ function B(e, t) {
142
137
  if (e.length !== t.length)
143
138
  return !0;
144
139
  for (let s = 0; s < e.length; s++)
@@ -146,7 +141,7 @@ function V(e, t) {
146
141
  return !0;
147
142
  return !1;
148
143
  }
149
- function rt(e, t) {
144
+ function et(e, t) {
150
145
  const s = t.length, n = e.length;
151
146
  if (n > s)
152
147
  return !1;
@@ -162,7 +157,7 @@ function rt(e, t) {
162
157
  }
163
158
  return !0;
164
159
  }
165
- const E = null, U = 0, Me = 1, xe = 2, $ = "ALL_CHILDREN", w = "ALL_DESCENDANTS", C = "LEAF_CHILDREN", L = "LEAF_DESCENDANTS", ot = "LOAD_ROOT_OPTIONS", lt = "LOAD_CHILDREN_OPTIONS", at = "ASYNC_SEARCH", B = "ALL", x = "BRANCH_PRIORITY", z = "LEAF_PRIORITY", F = "ALL_WITH_INDETERMINATE", te = "ORDER_SELECTED", se = "LEVEL", ne = "INDEX", h = {
160
+ const E = null, Y = 0, Le = 1, Me = 2, $ = "ALL_CHILDREN", C = "ALL_DESCENDANTS", L = "LEAF_CHILDREN", M = "LEAF_DESCENDANTS", tt = "LOAD_ROOT_OPTIONS", st = "LOAD_CHILDREN_OPTIONS", nt = "ASYNC_SEARCH", z = "ALL", T = "BRANCH_PRIORITY", F = "LEAF_PRIORITY", k = "ALL_WITH_INDETERMINATE", ee = "ORDER_SELECTED", te = "LEVEL", se = "INDEX", h = {
166
161
  BACKSPACE: 8,
167
162
  ENTER: 13,
168
163
  ESCAPE: 27,
@@ -173,14 +168,14 @@ const E = null, U = 0, Me = 1, xe = 2, $ = "ALL_CHILDREN", w = "ALL_DESCENDANTS"
173
168
  ARROW_RIGHT: 39,
174
169
  ARROW_DOWN: 40,
175
170
  DELETE: 46
176
- }, ct = process.env.NODE_ENV === "testing" ? (
171
+ }, it = process.env.NODE_ENV === "testing" ? (
177
172
  /* to speed up unit testing */
178
173
  10
179
174
  ) : (
180
175
  /* istanbul ignore next */
181
176
  200
182
- ), ie = 5, re = 40;
183
- function Te(e, t) {
177
+ ), ne = 5, ie = 40;
178
+ function xe(e, t) {
184
179
  let s = 0;
185
180
  do {
186
181
  if (e.level < s)
@@ -192,28 +187,28 @@ function Te(e, t) {
192
187
  s++;
193
188
  } while (!0);
194
189
  }
195
- function ut(e, t) {
196
- return e.level === t.level ? Te(e, t) : e.level - t.level;
190
+ function rt(e, t) {
191
+ return e.level === t.level ? xe(e, t) : e.level - t.level;
197
192
  }
198
- function k() {
193
+ function H() {
199
194
  return {
200
195
  isLoaded: !1,
201
196
  isLoading: !1,
202
197
  loadingError: ""
203
198
  };
204
199
  }
205
- function ht(e) {
206
- return typeof e == "string" ? e : typeof e == "number" && !we(e) ? `${e}` : "";
200
+ function ot(e) {
201
+ return typeof e == "string" ? e : typeof e == "number" && !$e(e) ? `${e}` : "";
207
202
  }
208
- function oe(e, t, s) {
209
- return e ? rt(t, s) : O(s, t);
203
+ function re(e, t, s) {
204
+ return e ? et(t, s) : O(s, t);
210
205
  }
211
- function H(e) {
206
+ function P(e) {
212
207
  return e.message || /* istanbul ignore next */
213
208
  String(e);
214
209
  }
215
- let dt = 0;
216
- const pt = {
210
+ let lt = 0;
211
+ const at = {
217
212
  provide() {
218
213
  return {
219
214
  // Enable access to the instance of root component of vue-treeselect
@@ -314,7 +309,7 @@ const pt = {
314
309
  */
315
310
  beforeClearAll: {
316
311
  type: Function,
317
- default: Z(!0)
312
+ default: () => !0
318
313
  },
319
314
  /**
320
315
  * Show branch nodes before leaf nodes?
@@ -444,7 +439,7 @@ const pt = {
444
439
  */
445
440
  instanceId: {
446
441
  // Add two trailing "$" to distinguish from explictly specified ids.
447
- default: () => `${dt++}$$`,
442
+ default: () => `${lt++}$$`,
448
443
  type: [String, Number]
449
444
  },
450
445
  /**
@@ -491,7 +486,7 @@ const pt = {
491
486
  */
492
487
  matchKeys: {
493
488
  type: Array,
494
- default: Z(["label"])
489
+ default: () => ["label"]
495
490
  },
496
491
  /**
497
492
  * Sets `maxHeight` style value of the menu.
@@ -540,7 +535,7 @@ const pt = {
540
535
  */
541
536
  normalizer: {
542
537
  type: Function,
543
- default: Ue
538
+ default: w
544
539
  },
545
540
  /**
546
541
  * By default (`auto`), the menu will open below the control. If there is not
@@ -650,7 +645,7 @@ const pt = {
650
645
  type: String,
651
646
  default: $,
652
647
  validator(e) {
653
- return O([$, w, C, L], e);
648
+ return O([$, C, L, M], e);
654
649
  }
655
650
  },
656
651
  /**
@@ -669,9 +664,9 @@ const pt = {
669
664
  */
670
665
  sortValueBy: {
671
666
  type: String,
672
- default: te,
667
+ default: ee,
673
668
  validator(e) {
674
- return O([te, se, ne], e);
669
+ return O([ee, te, se], e);
675
670
  }
676
671
  },
677
672
  /**
@@ -699,9 +694,9 @@ const pt = {
699
694
  */
700
695
  valueConsistsOf: {
701
696
  type: String,
702
- default: x,
697
+ default: T,
703
698
  validator(e) {
704
- return O([B, x, z, F], e);
699
+ return O([z, T, F, k], e);
705
700
  }
706
701
  },
707
702
  /**
@@ -755,7 +750,7 @@ const pt = {
755
750
  selectedNodeMap: g()
756
751
  },
757
752
  // States of root options.
758
- rootOptionsStates: k(),
753
+ rootOptionsStates: H(),
759
754
  localSearch: {
760
755
  // Has user entered any query to search local options?
761
756
  active: !1,
@@ -783,19 +778,19 @@ const pt = {
783
778
  */
784
779
  internalValue() {
785
780
  let e;
786
- if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === B)
781
+ if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === z)
787
782
  e = this.forest.selectedNodeIds.slice();
788
- else if (this.valueConsistsOf === x)
783
+ else if (this.valueConsistsOf === T)
789
784
  e = this.forest.selectedNodeIds.filter((t) => {
790
785
  const s = this.getNode(t);
791
786
  return s.isRootNode ? !0 : !this.isSelected(s.parentNode);
792
787
  });
793
- else if (this.valueConsistsOf === z)
788
+ else if (this.valueConsistsOf === F)
794
789
  e = this.forest.selectedNodeIds.filter((t) => {
795
790
  const s = this.getNode(t);
796
791
  return s.isLeaf ? !0 : s.children.length === 0;
797
792
  });
798
- else if (this.valueConsistsOf === F) {
793
+ else if (this.valueConsistsOf === k) {
799
794
  const t = [];
800
795
  e = this.forest.selectedNodeIds.slice(), this.selectedNodes.forEach((s) => {
801
796
  s.ancestors.forEach((n) => {
@@ -803,7 +798,7 @@ const pt = {
803
798
  });
804
799
  }), e.push(...t);
805
800
  }
806
- return this.sortValueBy === se ? e.sort((t, s) => ut(this.getNode(t), this.getNode(s))) : this.sortValueBy === ne && e.sort((t, s) => Te(this.getNode(t), this.getNode(s))), e;
801
+ return this.sortValueBy === te ? e.sort((t, s) => rt(this.getNode(t), this.getNode(s))) : this.sortValueBy === se && e.sort((t, s) => xe(this.getNode(t), this.getNode(s))), e;
807
802
  },
808
803
  /**
809
804
  * Has any option been selected?
@@ -874,7 +869,7 @@ const pt = {
874
869
  this.initialize();
875
870
  },
876
871
  internalValue(e, t) {
877
- V(e, t) && this.$emit("input", this.getValue(), this.getInstanceId());
872
+ B(e, t) && this.$emit("input", this.getValue(), this.getInstanceId());
878
873
  },
879
874
  matchKeys() {
880
875
  this.initialize();
@@ -894,7 +889,7 @@ const pt = {
894
889
  },
895
890
  value() {
896
891
  const e = this.extractCheckedNodeIdsFromValue();
897
- V(e, this.internalValue) && this.fixSelectedNodeIds(e);
892
+ B(e, this.internalValue) && this.fixSelectedNodeIds(e);
898
893
  }
899
894
  },
900
895
  methods: {
@@ -972,16 +967,16 @@ const pt = {
972
967
  if (this.valueFormat === "id")
973
968
  return t;
974
969
  const s = this.multiple ? Array.isArray(this.value) ? this.value : [] : this.value ? [this.value] : [];
975
- return Le(
970
+ return Ce(
976
971
  s,
977
972
  (i) => i && this.enhancedNormalizer(i).id === e
978
973
  ) || t;
979
974
  },
980
975
  fixSelectedNodeIds(e) {
981
976
  let t = [];
982
- if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === B)
977
+ if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === z)
983
978
  t = e;
984
- else if (this.valueConsistsOf === x)
979
+ else if (this.valueConsistsOf === T)
985
980
  e.forEach((n) => {
986
981
  t.push(n);
987
982
  const i = this.getNode(n);
@@ -989,13 +984,13 @@ const pt = {
989
984
  t.push(o.id);
990
985
  });
991
986
  });
992
- else if (this.valueConsistsOf === z) {
987
+ else if (this.valueConsistsOf === F) {
993
988
  const n = g(), i = e.slice();
994
989
  for (; i.length; ) {
995
990
  const o = i.shift(), r = this.getNode(o);
996
991
  t.push(o), !r.isRootNode && (r.parentNode.id in n || (n[r.parentNode.id] = r.parentNode.children.length), --n[r.parentNode.id] === 0 && i.push(r.parentNode.id));
997
992
  }
998
- } else if (this.valueConsistsOf === F) {
993
+ } else if (this.valueConsistsOf === k) {
999
994
  const n = g(), i = e.filter((o) => {
1000
995
  const r = this.getNode(o);
1001
996
  return r.isLeaf || r.children.length === 0;
@@ -1005,7 +1000,7 @@ const pt = {
1005
1000
  t.push(o), !r.isRootNode && (r.parentNode.id in n || (n[r.parentNode.id] = r.parentNode.children.length), --n[r.parentNode.id] === 0 && i.push(r.parentNode.id));
1006
1001
  }
1007
1002
  }
1008
- V(this.forest.selectedNodeIds, t) && (this.forest.selectedNodeIds = t), this.buildForestState();
1003
+ B(this.forest.selectedNodeIds, t) && (this.forest.selectedNodeIds = t), this.buildForestState();
1009
1004
  },
1010
1005
  keepDataOfSelectedNodes(e) {
1011
1006
  this.forest.selectedNodeIds.forEach((t) => {
@@ -1077,18 +1072,18 @@ const pt = {
1077
1072
  this.localSearch.active = !0, this.localSearch.noResults = !0, this.traverseAllNodesDFS((i) => {
1078
1073
  i.isBranch && (i.isExpandedOnSearch = !1, i.showAllChildrenOnSearch = !1, i.isMatched = !1, i.hasMatchedDescendants = !1, this.$set(this.localSearch.countMap, i.id, {
1079
1074
  [$]: 0,
1080
- [w]: 0,
1081
1075
  [C]: 0,
1082
- [L]: 0
1076
+ [L]: 0,
1077
+ [M]: 0
1083
1078
  }));
1084
1079
  });
1085
1080
  const s = e.trim().toLocaleLowerCase(), n = s.replace(/\s+/g, " ").split(" ");
1086
1081
  this.traverseAllNodesDFS((i) => {
1087
1082
  this.searchNested && n.length > 1 ? i.isMatched = n.every(
1088
- (o) => oe(!1, o, i.nestedSearchLabel)
1083
+ (o) => re(!1, o, i.nestedSearchLabel)
1089
1084
  ) : i.isMatched = this.matchKeys.some(
1090
- (o) => oe(!this.disableFuzzyMatching, s, i.lowerCased[o])
1091
- ), i.isMatched && (this.localSearch.noResults = !1, i.ancestors.forEach((o) => this.localSearch.countMap[o.id][w]++), i.isLeaf && i.ancestors.forEach((o) => this.localSearch.countMap[o.id][L]++), i.parentNode !== E && (this.localSearch.countMap[i.parentNode.id][$] += 1, i.isLeaf && (this.localSearch.countMap[i.parentNode.id][C] += 1))), (i.isMatched || i.isBranch && i.isExpandedOnSearch) && i.parentNode !== E && (i.parentNode.isExpandedOnSearch = !0, i.parentNode.hasMatchedDescendants = !0);
1085
+ (o) => re(!this.disableFuzzyMatching, s, i.lowerCased[o])
1086
+ ), i.isMatched && (this.localSearch.noResults = !1, i.ancestors.forEach((o) => this.localSearch.countMap[o.id][C]++), i.isLeaf && i.ancestors.forEach((o) => this.localSearch.countMap[o.id][M]++), i.parentNode !== E && (this.localSearch.countMap[i.parentNode.id][$] += 1, i.isLeaf && (this.localSearch.countMap[i.parentNode.id][L] += 1))), (i.isMatched || i.isBranch && i.isExpandedOnSearch) && i.parentNode !== E && (i.parentNode.isExpandedOnSearch = !0, i.parentNode.hasMatchedDescendants = !0);
1092
1087
  }), t();
1093
1088
  },
1094
1089
  handleRemoteSearch() {
@@ -1098,7 +1093,7 @@ const pt = {
1098
1093
  if ((e === "" || this.cacheOptions) && t.isLoaded)
1099
1094
  return s();
1100
1095
  this.callLoadOptionsProp({
1101
- action: at,
1096
+ action: nt,
1102
1097
  args: { searchQuery: e },
1103
1098
  isPending() {
1104
1099
  return t.isLoading;
@@ -1110,7 +1105,7 @@ const pt = {
1110
1105
  t.isLoaded = !0, t.options = n, this.trigger.searchQuery === e && s();
1111
1106
  },
1112
1107
  fail: (n) => {
1113
- t.loadingError = H(n);
1108
+ t.loadingError = P(n);
1114
1109
  },
1115
1110
  end: () => {
1116
1111
  t.isLoading = !1;
@@ -1118,7 +1113,7 @@ const pt = {
1118
1113
  });
1119
1114
  },
1120
1115
  getRemoteSearchEntry() {
1121
- const { searchQuery: e } = this.trigger, t = this.remoteSearch[e] || b(_({}, k()), {
1116
+ const { searchQuery: e } = this.trigger, t = this.remoteSearch[e] || b(_({}, H()), {
1122
1117
  options: []
1123
1118
  });
1124
1119
  if (this.$watch(
@@ -1156,7 +1151,7 @@ const pt = {
1156
1151
  if (s != null && s in this.forest.nodeMap && (this.forest.nodeMap[s].isHighlighted = !1), this.menu.current = e.id, e.isHighlighted = !0, this.menu.isOpen && t) {
1157
1152
  const n = () => {
1158
1153
  const i = this.getMenu(), o = i.querySelector(`.vue-treeselect__option[data-id="${e.id}"]`);
1159
- o && Xe(i, o);
1154
+ o && Qe(i, o);
1160
1155
  };
1161
1156
  this.getMenu() ? n() : this.$nextTick(n);
1162
1157
  }
@@ -1190,7 +1185,7 @@ const pt = {
1190
1185
  highlightLastOption() {
1191
1186
  if (!this.hasVisibleOptions)
1192
1187
  return;
1193
- const e = ee(this.visibleOptionIds);
1188
+ const e = w(this.visibleOptionIds);
1194
1189
  this.setCurrentHighlightedOption(this.getNode(e));
1195
1190
  },
1196
1191
  resetSearchQuery() {
@@ -1216,10 +1211,10 @@ const pt = {
1216
1211
  }), this.forest.selectedNodeMap = e;
1217
1212
  const t = g();
1218
1213
  this.multiple && (this.traverseAllNodesByIndex((s) => {
1219
- t[s.id] = U;
1214
+ t[s.id] = Y;
1220
1215
  }), this.selectedNodes.forEach((s) => {
1221
- t[s.id] = xe, !this.flat && !this.disableBranchNodes && s.ancestors.forEach((n) => {
1222
- this.isSelected(n) || (t[n.id] = Me);
1216
+ t[s.id] = Me, !this.flat && !this.disableBranchNodes && s.ancestors.forEach((n) => {
1217
+ this.isSelected(n) || (t[n.id] = Le);
1223
1218
  });
1224
1219
  })), this.forest.checkedStateMap = t;
1225
1220
  },
@@ -1229,26 +1224,26 @@ const pt = {
1229
1224
  normalize(e, t, s) {
1230
1225
  let n = t.map((i) => [this.enhancedNormalizer(i), i]).map(([i, o], r) => {
1231
1226
  this.checkDuplication(i), this.verifyNodeShape(i);
1232
- const { id: c, label: d, children: a, isDefaultExpanded: m } = i, p = e === E, y = p ? 0 : e.level + 1, R = Array.isArray(a) || a === null, I = !R, X = !!i.isDisabled || !this.flat && !p && e.isDisabled, ze = !!i.isNew, A = this.matchKeys.reduce((u, M) => b(_({}, u), {
1233
- [M]: ht(i[M]).toLocaleLowerCase()
1234
- }), {}), Fe = p ? A.label : `${e.nestedSearchLabel} ${A.label}`, l = this.$set(this.forest.nodeMap, c, g());
1235
- if (this.$set(l, "id", c), this.$set(l, "label", d), this.$set(l, "level", y), this.$set(l, "ancestors", p ? [] : [e].concat(e.ancestors)), this.$set(l, "index", (p ? [] : e.index).concat(r)), this.$set(l, "parentNode", e), this.$set(l, "lowerCased", A), this.$set(l, "nestedSearchLabel", Fe), this.$set(l, "isDisabled", X), this.$set(l, "isNew", ze), this.$set(l, "isMatched", !1), this.$set(l, "isHighlighted", !1), this.$set(l, "isBranch", R), this.$set(l, "isLeaf", I), this.$set(l, "isRootNode", p), this.$set(l, "raw", o), R) {
1227
+ const { id: c, label: d, children: a, isDefaultExpanded: m } = i, p = e === E, y = p ? 0 : e.level + 1, I = Array.isArray(a) || a === null, A = !I, G = !!i.isDisabled || !this.flat && !p && e.isDisabled, Be = !!i.isNew, V = this.matchKeys.reduce((u, x) => b(_({}, u), {
1228
+ [x]: ot(i[x]).toLocaleLowerCase()
1229
+ }), {}), ze = p ? V.label : `${e.nestedSearchLabel} ${V.label}`, l = this.$set(this.forest.nodeMap, c, g());
1230
+ if (this.$set(l, "id", c), this.$set(l, "label", d), this.$set(l, "level", y), this.$set(l, "ancestors", p ? [] : [e].concat(e.ancestors)), this.$set(l, "index", (p ? [] : e.index).concat(r)), this.$set(l, "parentNode", e), this.$set(l, "lowerCased", V), this.$set(l, "nestedSearchLabel", ze), this.$set(l, "isDisabled", G), this.$set(l, "isNew", Be), this.$set(l, "isMatched", !1), this.$set(l, "isHighlighted", !1), this.$set(l, "isBranch", I), this.$set(l, "isLeaf", A), this.$set(l, "isRootNode", p), this.$set(l, "raw", o), I) {
1236
1231
  const u = Array.isArray(a);
1237
- this.$set(l, "childrenStates", b(_({}, k()), {
1232
+ this.$set(l, "childrenStates", b(_({}, H()), {
1238
1233
  isLoaded: u
1239
1234
  })), this.$set(l, "isExpanded", typeof m == "boolean" ? m : y < this.defaultExpandLevel), this.$set(l, "hasMatchedDescendants", !1), this.$set(l, "hasDisabledDescendants", !1), this.$set(l, "isExpandedOnSearch", !1), this.$set(l, "showAllChildrenOnSearch", !1), this.$set(l, "count", {
1240
1235
  [$]: 0,
1241
- [w]: 0,
1242
1236
  [C]: 0,
1243
- [L]: 0
1244
- }), this.$set(l, "children", u ? this.normalize(l, a, s) : []), m === !0 && l.ancestors.forEach((M) => {
1245
- M.isExpanded = !0;
1237
+ [L]: 0,
1238
+ [M]: 0
1239
+ }), this.$set(l, "children", u ? this.normalize(l, a, s) : []), m === !0 && l.ancestors.forEach((x) => {
1240
+ x.isExpanded = !0;
1246
1241
  }), !u && typeof this.loadOptions != "function" ? S(
1247
1242
  () => !1,
1248
1243
  () => 'Unloaded branch node detected. "loadOptions" prop is required to load its children.'
1249
1244
  ) : !u && l.isExpanded && this.loadChildrenOptions(l);
1250
1245
  }
1251
- if (l.ancestors.forEach((u) => u.count[w]++), I && l.ancestors.forEach((u) => u.count[L]++), p || (e.count[$] += 1, I && (e.count[C] += 1), X && (e.hasDisabledDescendants = !0)), s && s[c]) {
1246
+ if (l.ancestors.forEach((u) => u.count[C]++), A && l.ancestors.forEach((u) => u.count[M]++), p || (e.count[$] += 1, A && (e.count[L] += 1), G && (e.hasDisabledDescendants = !0)), s && s[c]) {
1252
1247
  const u = s[c];
1253
1248
  l.isMatched = u.isMatched, l.showAllChildrenOnSearch = u.showAllChildrenOnSearch, l.isHighlighted = u.isHighlighted, u.isBranch && l.isBranch && (l.isExpanded = u.isExpanded, l.isExpandedOnSearch = u.isExpandedOnSearch, u.childrenStates.isLoaded && !l.childrenStates.isLoaded ? l.isExpanded = !1 : l.childrenStates = _({}, u.childrenStates));
1254
1249
  }
@@ -1262,7 +1257,7 @@ const pt = {
1262
1257
  },
1263
1258
  loadRootOptions() {
1264
1259
  this.callLoadOptionsProp({
1265
- action: ot,
1260
+ action: tt,
1266
1261
  isPending: () => this.rootOptionsStates.isLoading,
1267
1262
  start: () => {
1268
1263
  this.rootOptionsStates.isLoading = !0, this.rootOptionsStates.loadingError = "";
@@ -1273,7 +1268,7 @@ const pt = {
1273
1268
  });
1274
1269
  },
1275
1270
  fail: (e) => {
1276
- this.rootOptionsStates.loadingError = H(e);
1271
+ this.rootOptionsStates.loadingError = P(e);
1277
1272
  },
1278
1273
  end: () => {
1279
1274
  this.rootOptionsStates.isLoading = !1;
@@ -1283,7 +1278,7 @@ const pt = {
1283
1278
  loadChildrenOptions(e) {
1284
1279
  const { id: t, raw: s } = e;
1285
1280
  this.callLoadOptionsProp({
1286
- action: lt,
1281
+ action: st,
1287
1282
  args: {
1288
1283
  // We always pass the raw node instead of the normalized node to any
1289
1284
  // callback provided by the user of this component.
@@ -1299,7 +1294,7 @@ const pt = {
1299
1294
  this.getNode(t).childrenStates.isLoaded = !0;
1300
1295
  },
1301
1296
  fail: (n) => {
1302
- this.getNode(t).childrenStates.loadingError = H(n);
1297
+ this.getNode(t).childrenStates.loadingError = P(n);
1303
1298
  },
1304
1299
  end: () => {
1305
1300
  this.getNode(t).childrenStates.isLoading = !1;
@@ -1310,7 +1305,7 @@ const pt = {
1310
1305
  if (!this.loadOptions || s())
1311
1306
  return;
1312
1307
  n();
1313
- const c = qe((a, m) => {
1308
+ const c = w((a, m) => {
1314
1309
  a ? o(a) : i(m), r();
1315
1310
  }), d = this.loadOptions(b(_({
1316
1311
  id: this.getInstanceId(),
@@ -1319,7 +1314,7 @@ const pt = {
1319
1314
  }, t), {
1320
1315
  callback: c
1321
1316
  }));
1322
- ye(d) && d.then(() => {
1317
+ Oe(d) && d.then(() => {
1323
1318
  c();
1324
1319
  }, (a) => {
1325
1320
  c(a);
@@ -1343,7 +1338,7 @@ const pt = {
1343
1338
  if (this.disabled || e.isDisabled)
1344
1339
  return;
1345
1340
  this.single && this.clear();
1346
- const t = this.multiple && !this.flat ? this.forest.checkedStateMap[e.id] === U : !this.isSelected(e);
1341
+ const t = this.multiple && !this.flat ? this.forest.checkedStateMap[e.id] === Y : !this.isSelected(e);
1347
1342
  t ? this._selectNode(e) : this._deselectNode(e), this.buildForestState(), t ? this.$emit("select", e.raw, this.getInstanceId()) : this.$emit("deselect", e.raw, this.getInstanceId()), this.localSearch.active && t && (this.single || this.clearOnSelect) && this.resetSearchQuery(), this.single && this.closeOnSelect && (this.closeMenu(), this.searchable && (this._blurOnSelect = !0));
1348
1343
  },
1349
1344
  clear() {
@@ -1402,14 +1397,14 @@ const pt = {
1402
1397
  this.forest.selectedNodeIds.push(e.id), this.forest.selectedNodeMap[e.id] = !0;
1403
1398
  },
1404
1399
  removeValue(e) {
1405
- Ee(this.forest.selectedNodeIds, e.id), delete this.forest.selectedNodeMap[e.id];
1400
+ ye(this.forest.selectedNodeIds, e.id), delete this.forest.selectedNodeMap[e.id];
1406
1401
  },
1407
1402
  removeLastValue() {
1408
1403
  if (!this.hasValue)
1409
1404
  return;
1410
1405
  if (this.single)
1411
1406
  return this.clear();
1412
- const e = ee(this.internalValue), t = this.getNode(e);
1407
+ const e = w(this.internalValue), t = this.getNode(e);
1413
1408
  this.select(t);
1414
1409
  },
1415
1410
  saveMenuScrollPosition() {
@@ -1431,10 +1426,10 @@ const pt = {
1431
1426
  this.toggleClickOutsideEvent(!1);
1432
1427
  }
1433
1428
  };
1434
- function ft(e) {
1435
- return typeof e == "string" ? e : e != null && !we(e) ? JSON.stringify(e) : "";
1429
+ function ct(e) {
1430
+ return typeof e == "string" ? e : e != null && !$e(e) ? JSON.stringify(e) : "";
1436
1431
  }
1437
- const mt = {
1432
+ const ut = {
1438
1433
  name: "VueTreeSelectHiddenFields",
1439
1434
  functional: !0,
1440
1435
  inject: ["instance"],
@@ -1444,7 +1439,7 @@ const mt = {
1444
1439
  } = t.injections;
1445
1440
  if (!n.name || n.disabled || !n.hasValue)
1446
1441
  return null;
1447
- let i = n.internalValue.map(ft);
1442
+ let i = n.internalValue.map(ct);
1448
1443
  return n.multiple && n.joinValues && (i = [i.join(n.delimiter)]), i.map((o, r) => s("input", {
1449
1444
  attrs: {
1450
1445
  type: "hidden",
@@ -1457,47 +1452,47 @@ const mt = {
1457
1452
  }));
1458
1453
  }
1459
1454
  };
1460
- let gt, _t;
1461
- const le = {};
1462
- var vt = /* @__PURE__ */ f(
1463
- mt,
1464
- gt,
1465
- _t,
1455
+ let ht, dt;
1456
+ const oe = {};
1457
+ var pt = /* @__PURE__ */ f(
1458
+ ut,
1459
+ ht,
1460
+ dt,
1466
1461
  !1,
1467
- St,
1462
+ ft,
1468
1463
  null,
1469
1464
  null,
1470
1465
  null
1471
1466
  );
1472
- function St(e) {
1473
- for (let t in le)
1474
- this[t] = le[t];
1467
+ function ft(e) {
1468
+ for (let t in oe)
1469
+ this[t] = oe[t];
1475
1470
  }
1476
- const Ot = /* @__PURE__ */ function() {
1477
- return vt.exports;
1471
+ const mt = /* @__PURE__ */ function() {
1472
+ return pt.exports;
1478
1473
  }();
1479
- function yt(e) {
1474
+ function gt(e) {
1480
1475
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1481
1476
  }
1482
- function Y() {
1483
- return Y = Object.assign ? Object.assign.bind() : function(e) {
1477
+ function X() {
1478
+ return X = Object.assign ? Object.assign.bind() : function(e) {
1484
1479
  for (var t, s = 1; s < arguments.length; s++)
1485
1480
  for (var n in t = arguments[s], t)
1486
1481
  Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1487
1482
  return e;
1488
- }, Y.apply(this, arguments);
1483
+ }, X.apply(this, arguments);
1489
1484
  }
1490
- var Et = ["attrs", "props", "domProps"], Nt = ["class", "style", "directives"], bt = ["on", "nativeOn"], $t = function(e) {
1485
+ var _t = ["attrs", "props", "domProps"], vt = ["class", "style", "directives"], St = ["on", "nativeOn"], Ot = function(e) {
1491
1486
  return e.reduce(function(t, s) {
1492
1487
  for (var n in s)
1493
1488
  if (!t[n])
1494
1489
  t[n] = s[n];
1495
- else if (Et.indexOf(n) !== -1)
1496
- t[n] = Y({}, t[n], s[n]);
1497
- else if (Nt.indexOf(n) !== -1) {
1490
+ else if (_t.indexOf(n) !== -1)
1491
+ t[n] = X({}, t[n], s[n]);
1492
+ else if (vt.indexOf(n) !== -1) {
1498
1493
  var i = t[n] instanceof Array ? t[n] : [t[n]], o = s[n] instanceof Array ? s[n] : [s[n]];
1499
1494
  t[n] = [].concat(i, o);
1500
- } else if (bt.indexOf(n) !== -1)
1495
+ } else if (St.indexOf(n) !== -1)
1501
1496
  for (var r in s[n])
1502
1497
  if (t[n][r]) {
1503
1498
  var c = t[n][r] instanceof Array ? t[n][r] : [t[n][r]], d = s[n][r] instanceof Array ? s[n][r] : [s[n][r]];
@@ -1506,21 +1501,21 @@ var Et = ["attrs", "props", "domProps"], Nt = ["class", "style", "directives"],
1506
1501
  t[n][r] = s[n][r];
1507
1502
  else if (n === "hook")
1508
1503
  for (var a in s[n])
1509
- t[n][a] = t[n][a] ? wt(t[n][a], s[n][a]) : s[n][a];
1504
+ t[n][a] = t[n][a] ? yt(t[n][a], s[n][a]) : s[n][a];
1510
1505
  else
1511
1506
  t[n] = s[n];
1512
1507
  return t;
1513
1508
  }, {});
1514
- }, wt = function(e, t) {
1509
+ }, yt = function(e, t) {
1515
1510
  return function() {
1516
1511
  e && e.apply(this, arguments), t && t.apply(this, arguments);
1517
1512
  };
1518
- }, Ct = $t;
1519
- const D = /* @__PURE__ */ yt(Ct), Lt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.ARROW_UP, h.ARROW_RIGHT, h.ARROW_DOWN], Mt = {
1513
+ }, Et = Ot;
1514
+ const R = /* @__PURE__ */ gt(Et), Nt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.ARROW_UP, h.ARROW_RIGHT, h.ARROW_DOWN], bt = {
1520
1515
  name: "VueTreeSelectInput",
1521
1516
  inject: ["instance"],
1522
1517
  data: () => ({
1523
- inputWidth: ie,
1518
+ inputWidth: ne,
1524
1519
  value: ""
1525
1520
  }),
1526
1521
  computed: {
@@ -1545,7 +1540,7 @@ const D = /* @__PURE__ */ yt(Ct), Lt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
1545
1540
  }
1546
1541
  },
1547
1542
  created() {
1548
- this.debouncedCallback = Ke(this.updateSearchQuery, ct, {
1543
+ this.debouncedCallback = w(this.updateSearchQuery, it, {
1549
1544
  leading: !0,
1550
1545
  trailing: !0
1551
1546
  });
@@ -1596,7 +1591,7 @@ const D = /* @__PURE__ */ yt(Ct), Lt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
1596
1591
  e.keyCode
1597
1592
  );
1598
1593
  if (!(e.ctrlKey || e.shiftKey || e.altKey || e.metaKey)) {
1599
- if (!t.menu.isOpen && O(Lt, s))
1594
+ if (!t.menu.isOpen && O(Nt, s))
1600
1595
  return e.preventDefault(), t.openMenu();
1601
1596
  switch (s) {
1602
1597
  case h.BACKSPACE: {
@@ -1658,18 +1653,18 @@ const D = /* @__PURE__ */ yt(Ct), Lt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
1658
1653
  const e = this.$createElement, {
1659
1654
  instance: t
1660
1655
  } = this, s = {}, n = [];
1661
- return t.searchable && !t.disabled && (n.push(this.renderInput()), this.needAutoSize && n.push(this.renderSizer())), t.searchable || q(s, {
1656
+ return t.searchable && !t.disabled && (n.push(this.renderInput()), this.needAutoSize && n.push(this.renderSizer())), t.searchable || U(s, {
1662
1657
  on: {
1663
1658
  focus: this.onFocus,
1664
1659
  blur: this.onBlur,
1665
1660
  keydown: this.onKeyDown
1666
1661
  },
1667
1662
  ref: "input"
1668
- }), !t.searchable && !t.disabled && q(s, {
1663
+ }), !t.searchable && !t.disabled && U(s, {
1669
1664
  attrs: {
1670
1665
  tabIndex: t.tabIndex
1671
1666
  }
1672
- }), e("div", D([{
1667
+ }), e("div", R([{
1673
1668
  class: "vue-treeselect__input-container"
1674
1669
  }, s]), [n]);
1675
1670
  },
@@ -1707,7 +1702,7 @@ const D = /* @__PURE__ */ yt(Ct), Lt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
1707
1702
  }, [this.value]);
1708
1703
  },
1709
1704
  updateInputWidth() {
1710
- this.inputWidth = Math.max(ie, this.$refs.sizer.scrollWidth + 15);
1705
+ this.inputWidth = Math.max(ne, this.$refs.sizer.scrollWidth + 15);
1711
1706
  },
1712
1707
  updateSearchQuery() {
1713
1708
  const {
@@ -1720,25 +1715,25 @@ const D = /* @__PURE__ */ yt(Ct), Lt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
1720
1715
  return this.renderInputContainer();
1721
1716
  }
1722
1717
  };
1723
- let xt, Tt;
1724
- const ae = {};
1725
- var Dt = /* @__PURE__ */ f(
1726
- Mt,
1727
- xt,
1728
- Tt,
1718
+ let $t, wt;
1719
+ const le = {};
1720
+ var Ct = /* @__PURE__ */ f(
1721
+ bt,
1722
+ $t,
1723
+ wt,
1729
1724
  !1,
1730
- Rt,
1725
+ Lt,
1731
1726
  null,
1732
1727
  null,
1733
1728
  null
1734
1729
  );
1735
- function Rt(e) {
1736
- for (let t in ae)
1737
- this[t] = ae[t];
1730
+ function Lt(e) {
1731
+ for (let t in le)
1732
+ this[t] = le[t];
1738
1733
  }
1739
- const De = /* @__PURE__ */ function() {
1740
- return Dt.exports;
1741
- }(), It = {
1734
+ const Te = /* @__PURE__ */ function() {
1735
+ return Ct.exports;
1736
+ }(), Mt = {
1742
1737
  name: "VueTreeSelectPlaceholder",
1743
1738
  inject: ["instance"],
1744
1739
  render() {
@@ -1754,25 +1749,25 @@ const De = /* @__PURE__ */ function() {
1754
1749
  }, [t.placeholder]);
1755
1750
  }
1756
1751
  };
1757
- let At, Vt;
1758
- const ce = {};
1759
- var Bt = /* @__PURE__ */ f(
1760
- It,
1761
- At,
1762
- Vt,
1752
+ let xt, Tt;
1753
+ const ae = {};
1754
+ var Dt = /* @__PURE__ */ f(
1755
+ Mt,
1756
+ xt,
1757
+ Tt,
1763
1758
  !1,
1764
- zt,
1759
+ Rt,
1765
1760
  null,
1766
1761
  null,
1767
1762
  null
1768
1763
  );
1769
- function zt(e) {
1770
- for (let t in ce)
1771
- this[t] = ce[t];
1764
+ function Rt(e) {
1765
+ for (let t in ae)
1766
+ this[t] = ae[t];
1772
1767
  }
1773
- const Re = /* @__PURE__ */ function() {
1774
- return Bt.exports;
1775
- }(), Ft = {
1768
+ const De = /* @__PURE__ */ function() {
1769
+ return Dt.exports;
1770
+ }(), It = {
1776
1771
  name: "VueTreeSelectSingleValue",
1777
1772
  inject: ["instance"],
1778
1773
  methods: {
@@ -1794,31 +1789,31 @@ const Re = /* @__PURE__ */ function() {
1794
1789
  } = this, n = t.hasValue && !t.trigger.searchQuery;
1795
1790
  return s([n && e("div", {
1796
1791
  class: "vue-treeselect__single-value"
1797
- }, [this.renderSingleValueLabel()]), e(Re), e(De, {
1792
+ }, [this.renderSingleValueLabel()]), e(De), e(Te, {
1798
1793
  ref: "input"
1799
1794
  })]);
1800
1795
  }
1801
1796
  };
1802
- let kt, Ht;
1803
- const ue = {};
1804
- var Pt = /* @__PURE__ */ f(
1805
- Ft,
1806
- kt,
1807
- Ht,
1797
+ let At, Vt;
1798
+ const ce = {};
1799
+ var Bt = /* @__PURE__ */ f(
1800
+ It,
1801
+ At,
1802
+ Vt,
1808
1803
  !1,
1809
- Wt,
1804
+ zt,
1810
1805
  null,
1811
1806
  null,
1812
1807
  null
1813
1808
  );
1814
- function Wt(e) {
1815
- for (let t in ue)
1816
- this[t] = ue[t];
1809
+ function zt(e) {
1810
+ for (let t in ce)
1811
+ this[t] = ce[t];
1817
1812
  }
1818
- const jt = /* @__PURE__ */ function() {
1819
- return Pt.exports;
1813
+ const Ft = /* @__PURE__ */ function() {
1814
+ return Bt.exports;
1820
1815
  }();
1821
- var Qt = function() {
1816
+ var kt = function() {
1822
1817
  var e = this, t = e.$createElement, s = e._self._c || t;
1823
1818
  return s("svg", {
1824
1819
  attrs: {
@@ -1830,27 +1825,27 @@ var Qt = function() {
1830
1825
  d: "M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z"
1831
1826
  }
1832
1827
  })]);
1833
- }, Kt = [];
1834
- const qt = {
1828
+ }, Ht = [];
1829
+ const Pt = {
1835
1830
  name: "VueTreeSelectDelete"
1836
- }, he = {};
1837
- var Ut = /* @__PURE__ */ f(
1838
- qt,
1839
- Qt,
1840
- Kt,
1831
+ }, ue = {};
1832
+ var Wt = /* @__PURE__ */ f(
1833
+ Pt,
1834
+ kt,
1835
+ Ht,
1841
1836
  !1,
1842
- Yt,
1837
+ jt,
1843
1838
  null,
1844
1839
  null,
1845
1840
  null
1846
1841
  );
1847
- function Yt(e) {
1848
- for (let t in he)
1849
- this[t] = he[t];
1842
+ function jt(e) {
1843
+ for (let t in ue)
1844
+ this[t] = ue[t];
1850
1845
  }
1851
- const Ie = /* @__PURE__ */ function() {
1852
- return Ut.exports;
1853
- }(), Xt = {
1846
+ const Re = /* @__PURE__ */ function() {
1847
+ return Wt.exports;
1848
+ }(), Qt = {
1854
1849
  name: "VueTreeSelectMultiValueItem",
1855
1850
  inject: ["instance"],
1856
1851
  props: {
@@ -1890,28 +1885,28 @@ const Ie = /* @__PURE__ */ function() {
1890
1885
  class: "vue-treeselect__multi-value-label"
1891
1886
  }, [o]), e("span", {
1892
1887
  class: "vue-treeselect__icon vue-treeselect__value-remove"
1893
- }, [e(Ie)])])]);
1888
+ }, [e(Re)])])]);
1894
1889
  }
1895
1890
  };
1896
- let Gt, Jt;
1897
- const de = {};
1898
- var Zt = /* @__PURE__ */ f(
1899
- Xt,
1900
- Gt,
1901
- Jt,
1891
+ let Kt, qt;
1892
+ const he = {};
1893
+ var Ut = /* @__PURE__ */ f(
1894
+ Qt,
1895
+ Kt,
1896
+ qt,
1902
1897
  !1,
1903
- es,
1898
+ Yt,
1904
1899
  null,
1905
1900
  null,
1906
1901
  null
1907
1902
  );
1908
- function es(e) {
1909
- for (let t in de)
1910
- this[t] = de[t];
1903
+ function Yt(e) {
1904
+ for (let t in he)
1905
+ this[t] = he[t];
1911
1906
  }
1912
- const ts = /* @__PURE__ */ function() {
1913
- return Zt.exports;
1914
- }(), ss = {
1907
+ const Xt = /* @__PURE__ */ function() {
1908
+ return Ut.exports;
1909
+ }(), Gt = {
1915
1910
  name: "VueTreeSelectMultiValue",
1916
1911
  inject: ["instance"],
1917
1912
  methods: {
@@ -1919,7 +1914,7 @@ const ts = /* @__PURE__ */ function() {
1919
1914
  const e = this.$createElement, {
1920
1915
  instance: t
1921
1916
  } = this;
1922
- return t.internalValue.slice(0, t.limit).map(t.getNode).map((s) => e(ts, {
1917
+ return t.internalValue.slice(0, t.limit).map(t.getNode).map((s) => e(Xt, {
1923
1918
  key: `multi-value-item-${s.id}`,
1924
1919
  attrs: {
1925
1920
  node: s
@@ -1942,7 +1937,7 @@ const ts = /* @__PURE__ */ function() {
1942
1937
  const e = arguments[0], {
1943
1938
  renderValueContainer: t
1944
1939
  } = this.$parent;
1945
- return t(e("transition-group", D([{
1940
+ return t(e("transition-group", R([{
1946
1941
  class: "vue-treeselect__multi-value"
1947
1942
  }, {
1948
1943
  props: {
@@ -1950,34 +1945,34 @@ const ts = /* @__PURE__ */ function() {
1950
1945
  name: "vue-treeselect__multi-value-item--transition",
1951
1946
  appear: !0
1952
1947
  }
1953
- }]), [this.renderMultiValueItems(), this.renderExceedLimitTip(), e(Re, {
1948
+ }]), [this.renderMultiValueItems(), this.renderExceedLimitTip(), e(De, {
1954
1949
  key: "placeholder"
1955
- }), e(De, {
1950
+ }), e(Te, {
1956
1951
  ref: "input",
1957
1952
  key: "input"
1958
1953
  })]));
1959
1954
  }
1960
1955
  };
1961
- let ns, is;
1962
- const pe = {};
1963
- var rs = /* @__PURE__ */ f(
1964
- ss,
1965
- ns,
1966
- is,
1956
+ let Jt, Zt;
1957
+ const de = {};
1958
+ var es = /* @__PURE__ */ f(
1959
+ Gt,
1960
+ Jt,
1961
+ Zt,
1967
1962
  !1,
1968
- os,
1963
+ ts,
1969
1964
  null,
1970
1965
  null,
1971
1966
  null
1972
1967
  );
1973
- function os(e) {
1974
- for (let t in pe)
1975
- this[t] = pe[t];
1968
+ function ts(e) {
1969
+ for (let t in de)
1970
+ this[t] = de[t];
1976
1971
  }
1977
- const ls = /* @__PURE__ */ function() {
1978
- return rs.exports;
1972
+ const ss = /* @__PURE__ */ function() {
1973
+ return es.exports;
1979
1974
  }();
1980
- var as = function() {
1975
+ var ns = function() {
1981
1976
  var e = this, t = e.$createElement, s = e._self._c || t;
1982
1977
  return s("svg", {
1983
1978
  attrs: {
@@ -1989,27 +1984,27 @@ var as = function() {
1989
1984
  d: "M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z"
1990
1985
  }
1991
1986
  })]);
1992
- }, cs = [];
1993
- const us = {
1987
+ }, is = [];
1988
+ const rs = {
1994
1989
  name: "VueTreeSelectArrow"
1995
- }, fe = {};
1996
- var hs = /* @__PURE__ */ f(
1997
- us,
1998
- as,
1999
- cs,
1990
+ }, pe = {};
1991
+ var os = /* @__PURE__ */ f(
1992
+ rs,
1993
+ ns,
1994
+ is,
2000
1995
  !1,
2001
- ds,
1996
+ ls,
2002
1997
  null,
2003
1998
  null,
2004
1999
  null
2005
2000
  );
2006
- function ds(e) {
2007
- for (let t in fe)
2008
- this[t] = fe[t];
2001
+ function ls(e) {
2002
+ for (let t in pe)
2003
+ this[t] = pe[t];
2009
2004
  }
2010
- const Ae = /* @__PURE__ */ function() {
2011
- return hs.exports;
2012
- }(), ps = {
2005
+ const Ie = /* @__PURE__ */ function() {
2006
+ return os.exports;
2007
+ }(), as = {
2013
2008
  name: "VueTreeSelectControl",
2014
2009
  inject: ["instance"],
2015
2010
  computed: {
@@ -2059,7 +2054,7 @@ const Ae = /* @__PURE__ */ function() {
2059
2054
  on: {
2060
2055
  mousedown: this.handleMouseDownOnX
2061
2056
  }
2062
- }, [e(Ie, {
2057
+ }, [e(Re, {
2063
2058
  class: "vue-treeselect__x"
2064
2059
  })]) : null;
2065
2060
  },
@@ -2075,7 +2070,7 @@ const Ae = /* @__PURE__ */ function() {
2075
2070
  on: {
2076
2071
  mousedown: this.handleMouseDownOnArrow
2077
2072
  }
2078
- }, [e(Ae, {
2073
+ }, [e(Ie, {
2079
2074
  class: s
2080
2075
  })]) : null;
2081
2076
  },
@@ -2086,7 +2081,7 @@ const Ae = /* @__PURE__ */ function() {
2086
2081
  } = this, n = s.beforeClearAll(), i = (o) => {
2087
2082
  o && s.clear();
2088
2083
  };
2089
- ye(n) ? n.then(i) : setTimeout(() => i(n), 0);
2084
+ Oe(n) ? n.then(i) : setTimeout(() => i(n), 0);
2090
2085
  }),
2091
2086
  handleMouseDownOnArrow: N(function(t) {
2092
2087
  t.preventDefault(), t.stopPropagation();
@@ -2106,7 +2101,7 @@ const Ae = /* @__PURE__ */ function() {
2106
2101
  render() {
2107
2102
  const e = arguments[0], {
2108
2103
  instance: t
2109
- } = this, s = t.single ? jt : ls;
2104
+ } = this, s = t.single ? Ft : ss;
2110
2105
  return e("div", {
2111
2106
  class: "vue-treeselect__control",
2112
2107
  on: {
@@ -2117,25 +2112,25 @@ const Ae = /* @__PURE__ */ function() {
2117
2112
  }), this.renderX(), this.renderArrow()]);
2118
2113
  }
2119
2114
  };
2120
- let fs, ms;
2121
- const me = {};
2122
- var gs = /* @__PURE__ */ f(
2123
- ps,
2124
- fs,
2125
- ms,
2115
+ let cs, us;
2116
+ const fe = {};
2117
+ var hs = /* @__PURE__ */ f(
2118
+ as,
2119
+ cs,
2120
+ us,
2126
2121
  !1,
2127
- _s,
2122
+ ds,
2128
2123
  null,
2129
2124
  null,
2130
2125
  null
2131
2126
  );
2132
- function _s(e) {
2133
- for (let t in me)
2134
- this[t] = me[t];
2127
+ function ds(e) {
2128
+ for (let t in fe)
2129
+ this[t] = fe[t];
2135
2130
  }
2136
- const vs = /* @__PURE__ */ function() {
2137
- return gs.exports;
2138
- }(), Ss = {
2131
+ const ps = /* @__PURE__ */ function() {
2132
+ return hs.exports;
2133
+ }(), fs = {
2139
2134
  name: "VueTreeSelectTip",
2140
2135
  functional: !0,
2141
2136
  props: {
@@ -2164,27 +2159,27 @@ const vs = /* @__PURE__ */ function() {
2164
2159
  }, [i])]);
2165
2160
  }
2166
2161
  };
2167
- let Os, ys;
2168
- const ge = {};
2169
- var Es = /* @__PURE__ */ f(
2170
- Ss,
2171
- Os,
2172
- ys,
2162
+ let ms, gs;
2163
+ const me = {};
2164
+ var _s = /* @__PURE__ */ f(
2165
+ fs,
2166
+ ms,
2167
+ gs,
2173
2168
  !1,
2174
- Ns,
2169
+ vs,
2175
2170
  null,
2176
2171
  null,
2177
2172
  null
2178
2173
  );
2179
- function Ns(e) {
2180
- for (let t in ge)
2181
- this[t] = ge[t];
2174
+ function vs(e) {
2175
+ for (let t in me)
2176
+ this[t] = me[t];
2182
2177
  }
2183
2178
  const v = /* @__PURE__ */ function() {
2184
- return Es.exports;
2179
+ return _s.exports;
2185
2180
  }();
2186
- let P, W, j;
2187
- const Ve = {
2181
+ let W, j, Q;
2182
+ const Ae = {
2188
2183
  name: "VueTreeSelectOption",
2189
2184
  inject: ["instance"],
2190
2185
  props: {
@@ -2260,15 +2255,15 @@ const Ve = {
2260
2255
  on: {
2261
2256
  mousedown: this.handleMouseDownOnArrow
2262
2257
  }
2263
- }, [e("transition", D([{}, n]), [e(Ae, {
2258
+ }, [e("transition", R([{}, n]), [e(Ie, {
2264
2259
  class: i
2265
2260
  })])]);
2266
2261
  }
2267
2262
  return (
2268
2263
  /* node.isLeaf && */
2269
- t.hasBranchNodes ? (P || (P = e("div", {
2264
+ t.hasBranchNodes ? (W || (W = e("div", {
2270
2265
  class: "vue-treeselect__option-arrow-placeholder"
2271
- }, [" "])), P) : null
2266
+ }, [" "])), W) : null
2272
2267
  );
2273
2268
  },
2274
2269
  renderLabelContainer(e) {
@@ -2295,18 +2290,18 @@ const Ve = {
2295
2290
  node: s
2296
2291
  } = this, n = t.forest.checkedStateMap[s.id], i = {
2297
2292
  "vue-treeselect__checkbox": !0,
2298
- "vue-treeselect__checkbox--checked": n === xe,
2299
- "vue-treeselect__checkbox--indeterminate": n === Me,
2300
- "vue-treeselect__checkbox--unchecked": n === U,
2293
+ "vue-treeselect__checkbox--checked": n === Me,
2294
+ "vue-treeselect__checkbox--indeterminate": n === Le,
2295
+ "vue-treeselect__checkbox--unchecked": n === Y,
2301
2296
  "vue-treeselect__checkbox--disabled": s.isDisabled
2302
2297
  };
2303
- return W || (W = e("span", {
2298
+ return j || (j = e("span", {
2304
2299
  class: "vue-treeselect__check-mark"
2305
- })), j || (j = e("span", {
2300
+ })), Q || (Q = e("span", {
2306
2301
  class: "vue-treeselect__minus-mark"
2307
2302
  })), e("span", {
2308
2303
  class: i
2309
- }, [W, j]);
2304
+ }, [j, Q]);
2310
2305
  },
2311
2306
  renderLabel() {
2312
2307
  const e = this.$createElement, {
@@ -2329,7 +2324,7 @@ const Ve = {
2329
2324
  const e = this.$createElement, {
2330
2325
  node: t
2331
2326
  } = this;
2332
- return t.childrenStates.isLoaded ? t.children.map((s) => e(Ve, {
2327
+ return t.childrenStates.isLoaded ? t.children.map((s) => e(Ae, {
2333
2328
  attrs: {
2334
2329
  node: s
2335
2330
  },
@@ -2422,33 +2417,33 @@ const Ve = {
2422
2417
  };
2423
2418
  return e("div", {
2424
2419
  class: n
2425
- }, [this.renderOption(), t.isBranch && e("transition", D([{}, i]), [this.renderSubOptionsList()])]);
2420
+ }, [this.renderOption(), t.isBranch && e("transition", R([{}, i]), [this.renderSubOptionsList()])]);
2426
2421
  }
2427
2422
  };
2428
- let bs, $s;
2429
- const _e = {};
2430
- var ws = /* @__PURE__ */ f(
2431
- Ve,
2432
- bs,
2433
- $s,
2423
+ let Ss, Os;
2424
+ const ge = {};
2425
+ var ys = /* @__PURE__ */ f(
2426
+ Ae,
2427
+ Ss,
2428
+ Os,
2434
2429
  !1,
2435
- Cs,
2430
+ Es,
2436
2431
  null,
2437
2432
  null,
2438
2433
  null
2439
2434
  );
2440
- function Cs(e) {
2441
- for (let t in _e)
2442
- this[t] = _e[t];
2435
+ function Es(e) {
2436
+ for (let t in ge)
2437
+ this[t] = ge[t];
2443
2438
  }
2444
- const Ls = /* @__PURE__ */ function() {
2445
- return ws.exports;
2446
- }(), Ms = {
2439
+ const Ns = /* @__PURE__ */ function() {
2440
+ return ys.exports;
2441
+ }(), bs = {
2447
2442
  top: "top",
2448
2443
  bottom: "bottom",
2449
2444
  above: "top",
2450
2445
  below: "bottom"
2451
- }, xs = {
2446
+ }, $s = {
2452
2447
  name: "VueTreeSelectMenu",
2453
2448
  inject: ["instance"],
2454
2449
  computed: {
@@ -2536,7 +2531,7 @@ const Ls = /* @__PURE__ */ function() {
2536
2531
  } = this;
2537
2532
  return e("div", {
2538
2533
  class: "vue-treeselect__list"
2539
- }, [t.forest.normalizedOptions.map((s) => e(Ls, {
2534
+ }, [t.forest.normalizedOptions.map((s) => e(Ns, {
2540
2535
  attrs: {
2541
2536
  node: s
2542
2537
  },
@@ -2637,15 +2632,15 @@ const Ls = /* @__PURE__ */ function() {
2637
2632
  } = this;
2638
2633
  if (!e.menu.isOpen)
2639
2634
  return;
2640
- const t = e.getMenu(), s = e.getControl(), n = t.getBoundingClientRect(), i = s.getBoundingClientRect(), o = n.height, r = window.innerHeight, c = i.top, d = window.innerHeight - i.bottom, a = i.top >= 0 && i.top <= r || i.top < 0 && i.bottom > 0, m = d > o + re, p = c > o + re;
2641
- a ? e.openDirection !== "auto" ? e.menu.placement = Ms[e.openDirection] : m || !p ? e.menu.placement = "bottom" : e.menu.placement = "top" : e.closeMenu();
2635
+ const t = e.getMenu(), s = e.getControl(), n = t.getBoundingClientRect(), i = s.getBoundingClientRect(), o = n.height, r = window.innerHeight, c = i.top, d = window.innerHeight - i.bottom, a = i.top >= 0 && i.top <= r || i.top < 0 && i.bottom > 0, m = d > o + ie, p = c > o + ie;
2636
+ a ? e.openDirection !== "auto" ? e.menu.placement = bs[e.openDirection] : m || !p ? e.menu.placement = "bottom" : e.menu.placement = "top" : e.closeMenu();
2642
2637
  },
2643
2638
  setupMenuSizeWatcher() {
2644
2639
  const {
2645
2640
  instance: e
2646
2641
  } = this, t = e.getMenu();
2647
2642
  this.menuSizeWatcher || (this.menuSizeWatcher = {
2648
- remove: be(t, this.adjustMenuOpenDirection)
2643
+ remove: Ne(t, this.adjustMenuOpenDirection)
2649
2644
  });
2650
2645
  },
2651
2646
  setupMenuResizeAndScrollEventListeners() {
@@ -2653,7 +2648,7 @@ const Ls = /* @__PURE__ */ function() {
2653
2648
  instance: e
2654
2649
  } = this, t = e.getControl();
2655
2650
  this.menuResizeAndScrollEventListeners || (this.menuResizeAndScrollEventListeners = {
2656
- remove: $e(t, this.adjustMenuOpenDirection)
2651
+ remove: be(t, this.adjustMenuOpenDirection)
2657
2652
  });
2658
2653
  },
2659
2654
  removeMenuSizeWatcher() {
@@ -2676,25 +2671,25 @@ const Ls = /* @__PURE__ */ function() {
2676
2671
  }, [this.renderMenu()])]);
2677
2672
  }
2678
2673
  };
2679
- let Ts, Ds;
2680
- const ve = {};
2681
- var Rs = /* @__PURE__ */ f(
2682
- xs,
2683
- Ts,
2684
- Ds,
2674
+ let ws, Cs;
2675
+ const _e = {};
2676
+ var Ls = /* @__PURE__ */ f(
2677
+ $s,
2678
+ ws,
2679
+ Cs,
2685
2680
  !1,
2686
- Is,
2681
+ Ms,
2687
2682
  null,
2688
2683
  null,
2689
2684
  null
2690
2685
  );
2691
- function Is(e) {
2692
- for (let t in ve)
2693
- this[t] = ve[t];
2686
+ function Ms(e) {
2687
+ for (let t in _e)
2688
+ this[t] = _e[t];
2694
2689
  }
2695
- const Be = /* @__PURE__ */ function() {
2696
- return Rs.exports;
2697
- }(), As = {
2690
+ const Ve = /* @__PURE__ */ function() {
2691
+ return Ls.exports;
2692
+ }(), xs = {
2698
2693
  name: "VueTreeSelectPortalTarget",
2699
2694
  inject: ["instance"],
2700
2695
  watch: {
@@ -2726,7 +2721,7 @@ const Be = /* @__PURE__ */ function() {
2726
2721
  instance: e
2727
2722
  } = this, t = e.getControl();
2728
2723
  this.controlResizeAndScrollEventListeners || (this.controlResizeAndScrollEventListeners = {
2729
- remove: $e(t, this.updateMenuContainerOffset)
2724
+ remove: be(t, this.updateMenuContainerOffset)
2730
2725
  });
2731
2726
  },
2732
2727
  setupControlSizeWatcher() {
@@ -2734,7 +2729,7 @@ const Be = /* @__PURE__ */ function() {
2734
2729
  instance: e
2735
2730
  } = this, t = e.getControl();
2736
2731
  this.controlSizeWatcher || (this.controlSizeWatcher = {
2737
- remove: be(t, () => {
2732
+ remove: Ne(t, () => {
2738
2733
  this.updateWidth(), this.updateMenuContainerOffset();
2739
2734
  })
2740
2735
  });
@@ -2754,7 +2749,7 @@ const Be = /* @__PURE__ */ function() {
2754
2749
  updateMenuContainerOffset() {
2755
2750
  const {
2756
2751
  instance: e
2757
- } = this, t = e.getControl(), s = this.$el, n = t.getBoundingClientRect(), i = s.getBoundingClientRect(), o = e.menu.placement === "bottom" ? n.height : 0, r = `${Math.round(n.left - i.left)}px`, c = `${Math.round(n.top - i.top + o)}px`, d = this.$refs.menu.$refs["menu-container"].style, m = Le(["transform", "webkitTransform", "MozTransform", "msTransform"], (p) => p in document.body.style);
2752
+ } = this, t = e.getControl(), s = this.$el, n = t.getBoundingClientRect(), i = s.getBoundingClientRect(), o = e.menu.placement === "bottom" ? n.height : 0, r = `${Math.round(n.left - i.left)}px`, c = `${Math.round(n.top - i.top + o)}px`, d = this.$refs.menu.$refs["menu-container"].style, m = Ce(["transform", "webkitTransform", "MozTransform", "msTransform"], (p) => p in document.body.style);
2758
2753
  d[m] = `translate(${r}, ${c})`;
2759
2754
  }
2760
2755
  },
@@ -2770,7 +2765,7 @@ const Be = /* @__PURE__ */ function() {
2770
2765
  attrs: {
2771
2766
  "data-instance-id": t.getInstanceId()
2772
2767
  }
2773
- }, [e(Be, {
2768
+ }, [e(Ve, {
2774
2769
  ref: "menu"
2775
2770
  })]);
2776
2771
  },
@@ -2778,8 +2773,8 @@ const Be = /* @__PURE__ */ function() {
2778
2773
  this.removeHandlers();
2779
2774
  }
2780
2775
  };
2781
- let Q;
2782
- const Vs = {
2776
+ let K;
2777
+ const Ts = {
2783
2778
  name: "VueTreeSelectMenuPortal",
2784
2779
  created() {
2785
2780
  this.portalTarget = null;
@@ -2793,10 +2788,10 @@ const Vs = {
2793
2788
  methods: {
2794
2789
  setup() {
2795
2790
  const e = document.createElement("div");
2796
- document.body.appendChild(e), this.portalTarget = new Ye(_({
2791
+ document.body.appendChild(e), this.portalTarget = new je(_({
2797
2792
  el: e,
2798
2793
  parent: this
2799
- }, As));
2794
+ }, xs));
2800
2795
  },
2801
2796
  teardown() {
2802
2797
  document.body.removeChild(this.portalTarget.$el), this.portalTarget.$el.innerHTML = "", this.portalTarget.$destroy(), this.portalTarget = null;
@@ -2804,32 +2799,32 @@ const Vs = {
2804
2799
  },
2805
2800
  render() {
2806
2801
  const e = arguments[0];
2807
- return Q || (Q = e("div", {
2802
+ return K || (K = e("div", {
2808
2803
  class: "vue-treeselect__menu-placeholder"
2809
- })), Q;
2804
+ })), K;
2810
2805
  }
2811
2806
  };
2812
- let Bs, zs;
2813
- const Se = {};
2814
- var Fs = /* @__PURE__ */ f(
2815
- Vs,
2816
- Bs,
2817
- zs,
2807
+ let Ds, Rs;
2808
+ const ve = {};
2809
+ var Is = /* @__PURE__ */ f(
2810
+ Ts,
2811
+ Ds,
2812
+ Rs,
2818
2813
  !1,
2819
- ks,
2814
+ As,
2820
2815
  null,
2821
2816
  null,
2822
2817
  null
2823
2818
  );
2824
- function ks(e) {
2825
- for (let t in Se)
2826
- this[t] = Se[t];
2819
+ function As(e) {
2820
+ for (let t in ve)
2821
+ this[t] = ve[t];
2827
2822
  }
2828
- const Hs = /* @__PURE__ */ function() {
2829
- return Fs.exports;
2830
- }(), Ps = {
2823
+ const Vs = /* @__PURE__ */ function() {
2824
+ return Is.exports;
2825
+ }(), Bs = {
2831
2826
  name: "VueTreeSelect",
2832
- mixins: [pt],
2827
+ mixins: [at],
2833
2828
  computed: {
2834
2829
  wrapperClass() {
2835
2830
  return {
@@ -2853,34 +2848,34 @@ const Hs = /* @__PURE__ */ function() {
2853
2848
  return e("div", {
2854
2849
  ref: "wrapper",
2855
2850
  class: this.wrapperClass
2856
- }, [e(Ot), e(vs, {
2851
+ }, [e(mt), e(ps, {
2857
2852
  ref: "control"
2858
- }), this.appendToBody ? e(Hs, {
2853
+ }), this.appendToBody ? e(Vs, {
2859
2854
  ref: "portal"
2860
- }) : e(Be, {
2855
+ }) : e(Ve, {
2861
2856
  ref: "menu"
2862
2857
  })]);
2863
2858
  }
2864
2859
  };
2865
- let Ws, js;
2866
- const Oe = {};
2867
- var Qs = /* @__PURE__ */ f(
2868
- Ps,
2869
- Ws,
2870
- js,
2860
+ let zs, Fs;
2861
+ const Se = {};
2862
+ var ks = /* @__PURE__ */ f(
2863
+ Bs,
2864
+ zs,
2865
+ Fs,
2871
2866
  !1,
2872
- Ks,
2867
+ Hs,
2873
2868
  null,
2874
2869
  null,
2875
2870
  null
2876
2871
  );
2877
- function Ks(e) {
2878
- for (let t in Oe)
2879
- this[t] = Oe[t];
2872
+ function Hs(e) {
2873
+ for (let t in Se)
2874
+ this[t] = Se[t];
2880
2875
  }
2881
- const nn = /* @__PURE__ */ function() {
2882
- return Qs.exports;
2876
+ const qs = /* @__PURE__ */ function() {
2877
+ return ks.exports;
2883
2878
  }();
2884
2879
  export {
2885
- nn as default
2880
+ qs as default
2886
2881
  };