@web-utils/component 2.15.0 → 2.20.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.
@@ -1,22 +1,22 @@
1
1
  var Fe = Object.defineProperty, ke = Object.defineProperties;
2
2
  var He = Object.getOwnPropertyDescriptors;
3
- var J = Object.getOwnPropertySymbols;
3
+ var G = Object.getOwnPropertySymbols;
4
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) => {
5
+ var J = (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
- 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]);
7
+ Pe.call(t, s) && J(e, s, t[s]);
8
+ if (G)
9
+ for (var s of G(t))
10
+ We.call(t, s) && J(e, s, t[s]);
11
11
  return e;
12
12
  }, b = (e, t) => ke(e, He(t));
13
- import w from "lodash-es";
13
+ import { noop as je, identity as Qe, last as Z, once as Ke, debounce as qe } from "lodash-es";
14
14
  import { isPromise as Oe } from "@web-utils/core";
15
15
  import { n as f } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
16
- import je from "vue";
16
+ import Ue from "vue";
17
17
  const S = process.env.NODE_ENV === "production" ? (
18
18
  /* istanbul ignore next */
19
- w
19
+ je
20
20
  ) : function(t, s) {
21
21
  if (!t()) {
22
22
  const n = ["[Vue-TreeSelect Warning]"].concat(s());
@@ -28,7 +28,7 @@ function N(e) {
28
28
  s.type === "mousedown" && s.button === 0 && e.call(this, s, ...n);
29
29
  };
30
30
  }
31
- function Qe(e, t) {
31
+ function Ye(e, t) {
32
32
  const s = e.getBoundingClientRect(), n = t.getBoundingClientRect(), i = t.offsetHeight / 3;
33
33
  n.bottom + i > s.bottom ? e.scrollTop = Math.min(
34
34
  t.offsetTop + t.clientHeight - e.offsetHeight + i,
@@ -39,32 +39,32 @@ function ye(e, t) {
39
39
  const s = e.indexOf(t);
40
40
  s !== -1 && e.splice(s, 1);
41
41
  }
42
- let q;
43
- const D = [], Ke = 100;
44
- function qe() {
45
- q = setInterval(() => {
46
- D.forEach(Ee);
47
- }, Ke);
42
+ let K;
43
+ const T = [], Xe = 100;
44
+ function Ge() {
45
+ K = setInterval(() => {
46
+ T.forEach(Ee);
47
+ }, Xe);
48
48
  }
49
- function Ue() {
50
- clearInterval(q), q = null;
49
+ function Je() {
50
+ clearInterval(K), K = null;
51
51
  }
52
52
  function Ee(e) {
53
53
  const { $el: t, listener: s, lastWidth: n, lastHeight: i } = e, o = t.offsetWidth, r = t.offsetHeight;
54
54
  (n !== o || i !== r) && (e.lastWidth = o, e.lastHeight = r, s({ width: o, height: r }));
55
55
  }
56
- function Ye(e, t) {
56
+ function Ze(e, t) {
57
57
  const s = {
58
58
  $el: e,
59
59
  listener: t,
60
60
  lastWidth: null,
61
61
  lastHeight: null
62
62
  }, n = () => {
63
- ye(D, s), D.length || Ue();
63
+ ye(T, s), T.length || Je();
64
64
  };
65
- return D.push(s), Ee(s), qe(), n;
65
+ return T.push(s), Ee(s), Ge(), n;
66
66
  }
67
- function Xe(e, t) {
67
+ function et(e, t) {
68
68
  const s = document.createElement("_"), n = s.appendChild(document.createElement("_")), i = s.appendChild(document.createElement("_")), o = n.appendChild(document.createElement("_"));
69
69
  let r, c;
70
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;
@@ -83,22 +83,22 @@ function Xe(e, t) {
83
83
  function Ne(e, t) {
84
84
  const s = document.documentMode === 9;
85
85
  let n = !0;
86
- const r = (s ? Ye : Xe)(e, (...c) => n || t(...c));
86
+ const r = (s ? Ze : et)(e, (...c) => n || t(...c));
87
87
  return n = !1, r;
88
88
  }
89
- function Ge(e) {
89
+ function tt(e) {
90
90
  const t = [];
91
91
  let s = e.parentNode;
92
92
  for (; s && s.nodeName !== "BODY" && s.nodeType === document.ELEMENT_NODE; )
93
- Je(s) && t.push(s), s = s.parentNode;
93
+ st(s) && t.push(s), s = s.parentNode;
94
94
  return t.push(window), t;
95
95
  }
96
- function Je(e) {
96
+ function st(e) {
97
97
  const { overflow: t, overflowX: s, overflowY: n } = getComputedStyle(e);
98
98
  return /(auto|scroll|overlay)/.test(t + n + s);
99
99
  }
100
100
  function be(e, t) {
101
- const s = Ge(e);
101
+ const s = tt(e);
102
102
  return window.addEventListener("resize", t, { passive: !0 }), s.forEach((n) => {
103
103
  n.addEventListener("scroll", t, { passive: !0 });
104
104
  }), function() {
@@ -114,14 +114,14 @@ const g = () => /* @__PURE__ */ Object.create(null);
114
114
  function we(e) {
115
115
  return e == null || typeof e != "object" ? !1 : Object.getPrototypeOf(e) === Object.prototype;
116
116
  }
117
- function Ze(e, t, s) {
118
- we(s) ? (e[t] || (e[t] = {}), U(e[t], s)) : e[t] = s;
117
+ function nt(e, t, s) {
118
+ we(s) ? (e[t] || (e[t] = {}), q(e[t], s)) : e[t] = s;
119
119
  }
120
- function U(e, t) {
120
+ function q(e, t) {
121
121
  if (we(t)) {
122
122
  const s = Object.keys(t);
123
123
  for (let n = 0, i = s.length; n < i; n++)
124
- Ze(e, s[n], t[s[n]]);
124
+ nt(e, s[n], t[s[n]]);
125
125
  }
126
126
  return e;
127
127
  }
@@ -133,7 +133,7 @@ function Ce(e, t, s) {
133
133
  if (t.call(s, e[n], n, e))
134
134
  return e[n];
135
135
  }
136
- function B(e, t) {
136
+ function V(e, t) {
137
137
  if (e.length !== t.length)
138
138
  return !0;
139
139
  for (let s = 0; s < e.length; s++)
@@ -141,7 +141,7 @@ function B(e, t) {
141
141
  return !0;
142
142
  return !1;
143
143
  }
144
- function et(e, t) {
144
+ function it(e, t) {
145
145
  const s = t.length, n = e.length;
146
146
  if (n > s)
147
147
  return !1;
@@ -157,7 +157,7 @@ function et(e, t) {
157
157
  }
158
158
  return !0;
159
159
  }
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 = {
160
+ const E = null, U = 0, Le = 1, Me = 2, $ = "ALL_CHILDREN", w = "ALL_DESCENDANTS", C = "LEAF_CHILDREN", L = "LEAF_DESCENDANTS", rt = "LOAD_ROOT_OPTIONS", ot = "LOAD_CHILDREN_OPTIONS", lt = "ASYNC_SEARCH", B = "ALL", x = "BRANCH_PRIORITY", z = "LEAF_PRIORITY", F = "ALL_WITH_INDETERMINATE", ee = "ORDER_SELECTED", te = "LEVEL", se = "INDEX", h = {
161
161
  BACKSPACE: 8,
162
162
  ENTER: 13,
163
163
  ESCAPE: 27,
@@ -168,7 +168,7 @@ const E = null, Y = 0, Le = 1, Me = 2, $ = "ALL_CHILDREN", C = "ALL_DESCENDANTS"
168
168
  ARROW_RIGHT: 39,
169
169
  ARROW_DOWN: 40,
170
170
  DELETE: 46
171
- }, it = process.env.NODE_ENV === "testing" ? (
171
+ }, at = process.env.NODE_ENV === "testing" ? (
172
172
  /* to speed up unit testing */
173
173
  10
174
174
  ) : (
@@ -187,28 +187,28 @@ function xe(e, t) {
187
187
  s++;
188
188
  } while (!0);
189
189
  }
190
- function rt(e, t) {
190
+ function ct(e, t) {
191
191
  return e.level === t.level ? xe(e, t) : e.level - t.level;
192
192
  }
193
- function H() {
193
+ function k() {
194
194
  return {
195
195
  isLoaded: !1,
196
196
  isLoading: !1,
197
197
  loadingError: ""
198
198
  };
199
199
  }
200
- function ot(e) {
200
+ function ut(e) {
201
201
  return typeof e == "string" ? e : typeof e == "number" && !$e(e) ? `${e}` : "";
202
202
  }
203
203
  function re(e, t, s) {
204
- return e ? et(t, s) : O(s, t);
204
+ return e ? it(t, s) : O(s, t);
205
205
  }
206
- function P(e) {
206
+ function H(e) {
207
207
  return e.message || /* istanbul ignore next */
208
208
  String(e);
209
209
  }
210
- let lt = 0;
211
- const at = {
210
+ let ht = 0;
211
+ const dt = {
212
212
  provide() {
213
213
  return {
214
214
  // Enable access to the instance of root component of vue-treeselect
@@ -439,7 +439,7 @@ const at = {
439
439
  */
440
440
  instanceId: {
441
441
  // Add two trailing "$" to distinguish from explictly specified ids.
442
- default: () => `${lt++}$$`,
442
+ default: () => `${ht++}$$`,
443
443
  type: [String, Number]
444
444
  },
445
445
  /**
@@ -535,7 +535,7 @@ const at = {
535
535
  */
536
536
  normalizer: {
537
537
  type: Function,
538
- default: w
538
+ default: Qe
539
539
  },
540
540
  /**
541
541
  * By default (`auto`), the menu will open below the control. If there is not
@@ -645,7 +645,7 @@ const at = {
645
645
  type: String,
646
646
  default: $,
647
647
  validator(e) {
648
- return O([$, C, L, M], e);
648
+ return O([$, w, C, L], e);
649
649
  }
650
650
  },
651
651
  /**
@@ -694,9 +694,9 @@ const at = {
694
694
  */
695
695
  valueConsistsOf: {
696
696
  type: String,
697
- default: T,
697
+ default: x,
698
698
  validator(e) {
699
- return O([z, T, F, k], e);
699
+ return O([B, x, z, F], e);
700
700
  }
701
701
  },
702
702
  /**
@@ -750,7 +750,7 @@ const at = {
750
750
  selectedNodeMap: g()
751
751
  },
752
752
  // States of root options.
753
- rootOptionsStates: H(),
753
+ rootOptionsStates: k(),
754
754
  localSearch: {
755
755
  // Has user entered any query to search local options?
756
756
  active: !1,
@@ -778,19 +778,19 @@ const at = {
778
778
  */
779
779
  internalValue() {
780
780
  let e;
781
- if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === z)
781
+ if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === B)
782
782
  e = this.forest.selectedNodeIds.slice();
783
- else if (this.valueConsistsOf === T)
783
+ else if (this.valueConsistsOf === x)
784
784
  e = this.forest.selectedNodeIds.filter((t) => {
785
785
  const s = this.getNode(t);
786
786
  return s.isRootNode ? !0 : !this.isSelected(s.parentNode);
787
787
  });
788
- else if (this.valueConsistsOf === F)
788
+ else if (this.valueConsistsOf === z)
789
789
  e = this.forest.selectedNodeIds.filter((t) => {
790
790
  const s = this.getNode(t);
791
791
  return s.isLeaf ? !0 : s.children.length === 0;
792
792
  });
793
- else if (this.valueConsistsOf === k) {
793
+ else if (this.valueConsistsOf === F) {
794
794
  const t = [];
795
795
  e = this.forest.selectedNodeIds.slice(), this.selectedNodes.forEach((s) => {
796
796
  s.ancestors.forEach((n) => {
@@ -798,7 +798,7 @@ const at = {
798
798
  });
799
799
  }), e.push(...t);
800
800
  }
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;
801
+ return this.sortValueBy === te ? e.sort((t, s) => ct(this.getNode(t), this.getNode(s))) : this.sortValueBy === se && e.sort((t, s) => xe(this.getNode(t), this.getNode(s))), e;
802
802
  },
803
803
  /**
804
804
  * Has any option been selected?
@@ -869,7 +869,7 @@ const at = {
869
869
  this.initialize();
870
870
  },
871
871
  internalValue(e, t) {
872
- B(e, t) && this.$emit("input", this.getValue(), this.getInstanceId());
872
+ V(e, t) && this.$emit("input", this.getValue(), this.getInstanceId());
873
873
  },
874
874
  matchKeys() {
875
875
  this.initialize();
@@ -889,7 +889,7 @@ const at = {
889
889
  },
890
890
  value() {
891
891
  const e = this.extractCheckedNodeIdsFromValue();
892
- B(e, this.internalValue) && this.fixSelectedNodeIds(e);
892
+ V(e, this.internalValue) && this.fixSelectedNodeIds(e);
893
893
  }
894
894
  },
895
895
  methods: {
@@ -974,9 +974,9 @@ const at = {
974
974
  },
975
975
  fixSelectedNodeIds(e) {
976
976
  let t = [];
977
- if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === z)
977
+ if (this.single || this.flat || this.disableBranchNodes || this.valueConsistsOf === B)
978
978
  t = e;
979
- else if (this.valueConsistsOf === T)
979
+ else if (this.valueConsistsOf === x)
980
980
  e.forEach((n) => {
981
981
  t.push(n);
982
982
  const i = this.getNode(n);
@@ -984,13 +984,13 @@ const at = {
984
984
  t.push(o.id);
985
985
  });
986
986
  });
987
- else if (this.valueConsistsOf === F) {
987
+ else if (this.valueConsistsOf === z) {
988
988
  const n = g(), i = e.slice();
989
989
  for (; i.length; ) {
990
990
  const o = i.shift(), r = this.getNode(o);
991
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));
992
992
  }
993
- } else if (this.valueConsistsOf === k) {
993
+ } else if (this.valueConsistsOf === F) {
994
994
  const n = g(), i = e.filter((o) => {
995
995
  const r = this.getNode(o);
996
996
  return r.isLeaf || r.children.length === 0;
@@ -1000,7 +1000,7 @@ const at = {
1000
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));
1001
1001
  }
1002
1002
  }
1003
- B(this.forest.selectedNodeIds, t) && (this.forest.selectedNodeIds = t), this.buildForestState();
1003
+ V(this.forest.selectedNodeIds, t) && (this.forest.selectedNodeIds = t), this.buildForestState();
1004
1004
  },
1005
1005
  keepDataOfSelectedNodes(e) {
1006
1006
  this.forest.selectedNodeIds.forEach((t) => {
@@ -1072,9 +1072,9 @@ const at = {
1072
1072
  this.localSearch.active = !0, this.localSearch.noResults = !0, this.traverseAllNodesDFS((i) => {
1073
1073
  i.isBranch && (i.isExpandedOnSearch = !1, i.showAllChildrenOnSearch = !1, i.isMatched = !1, i.hasMatchedDescendants = !1, this.$set(this.localSearch.countMap, i.id, {
1074
1074
  [$]: 0,
1075
+ [w]: 0,
1075
1076
  [C]: 0,
1076
- [L]: 0,
1077
- [M]: 0
1077
+ [L]: 0
1078
1078
  }));
1079
1079
  });
1080
1080
  const s = e.trim().toLocaleLowerCase(), n = s.replace(/\s+/g, " ").split(" ");
@@ -1083,7 +1083,7 @@ const at = {
1083
1083
  (o) => re(!1, o, i.nestedSearchLabel)
1084
1084
  ) : i.isMatched = this.matchKeys.some(
1085
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);
1086
+ ), 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);
1087
1087
  }), t();
1088
1088
  },
1089
1089
  handleRemoteSearch() {
@@ -1093,7 +1093,7 @@ const at = {
1093
1093
  if ((e === "" || this.cacheOptions) && t.isLoaded)
1094
1094
  return s();
1095
1095
  this.callLoadOptionsProp({
1096
- action: nt,
1096
+ action: lt,
1097
1097
  args: { searchQuery: e },
1098
1098
  isPending() {
1099
1099
  return t.isLoading;
@@ -1105,7 +1105,7 @@ const at = {
1105
1105
  t.isLoaded = !0, t.options = n, this.trigger.searchQuery === e && s();
1106
1106
  },
1107
1107
  fail: (n) => {
1108
- t.loadingError = P(n);
1108
+ t.loadingError = H(n);
1109
1109
  },
1110
1110
  end: () => {
1111
1111
  t.isLoading = !1;
@@ -1113,7 +1113,7 @@ const at = {
1113
1113
  });
1114
1114
  },
1115
1115
  getRemoteSearchEntry() {
1116
- const { searchQuery: e } = this.trigger, t = this.remoteSearch[e] || b(_({}, H()), {
1116
+ const { searchQuery: e } = this.trigger, t = this.remoteSearch[e] || b(_({}, k()), {
1117
1117
  options: []
1118
1118
  });
1119
1119
  if (this.$watch(
@@ -1151,7 +1151,7 @@ const at = {
1151
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) {
1152
1152
  const n = () => {
1153
1153
  const i = this.getMenu(), o = i.querySelector(`.vue-treeselect__option[data-id="${e.id}"]`);
1154
- o && Qe(i, o);
1154
+ o && Ye(i, o);
1155
1155
  };
1156
1156
  this.getMenu() ? n() : this.$nextTick(n);
1157
1157
  }
@@ -1185,7 +1185,7 @@ const at = {
1185
1185
  highlightLastOption() {
1186
1186
  if (!this.hasVisibleOptions)
1187
1187
  return;
1188
- const e = w(this.visibleOptionIds);
1188
+ const e = Z(this.visibleOptionIds);
1189
1189
  this.setCurrentHighlightedOption(this.getNode(e));
1190
1190
  },
1191
1191
  resetSearchQuery() {
@@ -1211,7 +1211,7 @@ const at = {
1211
1211
  }), this.forest.selectedNodeMap = e;
1212
1212
  const t = g();
1213
1213
  this.multiple && (this.traverseAllNodesByIndex((s) => {
1214
- t[s.id] = Y;
1214
+ t[s.id] = U;
1215
1215
  }), this.selectedNodes.forEach((s) => {
1216
1216
  t[s.id] = Me, !this.flat && !this.disableBranchNodes && s.ancestors.forEach((n) => {
1217
1217
  this.isSelected(n) || (t[n.id] = Le);
@@ -1224,26 +1224,26 @@ const at = {
1224
1224
  normalize(e, t, s) {
1225
1225
  let n = t.map((i) => [this.enhancedNormalizer(i), i]).map(([i, o], r) => {
1226
1226
  this.checkDuplication(i), this.verifyNodeShape(i);
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) {
1227
+ 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, Be = !!i.isNew, A = this.matchKeys.reduce((u, M) => b(_({}, u), {
1228
+ [M]: ut(i[M]).toLocaleLowerCase()
1229
+ }), {}), ze = p ? A.label : `${e.nestedSearchLabel} ${A.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", A), this.$set(l, "nestedSearchLabel", ze), this.$set(l, "isDisabled", X), this.$set(l, "isNew", Be), 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) {
1231
1231
  const u = Array.isArray(a);
1232
- this.$set(l, "childrenStates", b(_({}, H()), {
1232
+ this.$set(l, "childrenStates", b(_({}, k()), {
1233
1233
  isLoaded: u
1234
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", {
1235
1235
  [$]: 0,
1236
+ [w]: 0,
1236
1237
  [C]: 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;
1238
+ [L]: 0
1239
+ }), this.$set(l, "children", u ? this.normalize(l, a, s) : []), m === !0 && l.ancestors.forEach((M) => {
1240
+ M.isExpanded = !0;
1241
1241
  }), !u && typeof this.loadOptions != "function" ? S(
1242
1242
  () => !1,
1243
1243
  () => 'Unloaded branch node detected. "loadOptions" prop is required to load its children.'
1244
1244
  ) : !u && l.isExpanded && this.loadChildrenOptions(l);
1245
1245
  }
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]) {
1246
+ 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]) {
1247
1247
  const u = s[c];
1248
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));
1249
1249
  }
@@ -1257,7 +1257,7 @@ const at = {
1257
1257
  },
1258
1258
  loadRootOptions() {
1259
1259
  this.callLoadOptionsProp({
1260
- action: tt,
1260
+ action: rt,
1261
1261
  isPending: () => this.rootOptionsStates.isLoading,
1262
1262
  start: () => {
1263
1263
  this.rootOptionsStates.isLoading = !0, this.rootOptionsStates.loadingError = "";
@@ -1268,7 +1268,7 @@ const at = {
1268
1268
  });
1269
1269
  },
1270
1270
  fail: (e) => {
1271
- this.rootOptionsStates.loadingError = P(e);
1271
+ this.rootOptionsStates.loadingError = H(e);
1272
1272
  },
1273
1273
  end: () => {
1274
1274
  this.rootOptionsStates.isLoading = !1;
@@ -1278,7 +1278,7 @@ const at = {
1278
1278
  loadChildrenOptions(e) {
1279
1279
  const { id: t, raw: s } = e;
1280
1280
  this.callLoadOptionsProp({
1281
- action: st,
1281
+ action: ot,
1282
1282
  args: {
1283
1283
  // We always pass the raw node instead of the normalized node to any
1284
1284
  // callback provided by the user of this component.
@@ -1294,7 +1294,7 @@ const at = {
1294
1294
  this.getNode(t).childrenStates.isLoaded = !0;
1295
1295
  },
1296
1296
  fail: (n) => {
1297
- this.getNode(t).childrenStates.loadingError = P(n);
1297
+ this.getNode(t).childrenStates.loadingError = H(n);
1298
1298
  },
1299
1299
  end: () => {
1300
1300
  this.getNode(t).childrenStates.isLoading = !1;
@@ -1305,7 +1305,7 @@ const at = {
1305
1305
  if (!this.loadOptions || s())
1306
1306
  return;
1307
1307
  n();
1308
- const c = w((a, m) => {
1308
+ const c = Ke((a, m) => {
1309
1309
  a ? o(a) : i(m), r();
1310
1310
  }), d = this.loadOptions(b(_({
1311
1311
  id: this.getInstanceId(),
@@ -1338,7 +1338,7 @@ const at = {
1338
1338
  if (this.disabled || e.isDisabled)
1339
1339
  return;
1340
1340
  this.single && this.clear();
1341
- const t = this.multiple && !this.flat ? this.forest.checkedStateMap[e.id] === Y : !this.isSelected(e);
1341
+ const t = this.multiple && !this.flat ? this.forest.checkedStateMap[e.id] === U : !this.isSelected(e);
1342
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));
1343
1343
  },
1344
1344
  clear() {
@@ -1404,7 +1404,7 @@ const at = {
1404
1404
  return;
1405
1405
  if (this.single)
1406
1406
  return this.clear();
1407
- const e = w(this.internalValue), t = this.getNode(e);
1407
+ const e = Z(this.internalValue), t = this.getNode(e);
1408
1408
  this.select(t);
1409
1409
  },
1410
1410
  saveMenuScrollPosition() {
@@ -1426,10 +1426,10 @@ const at = {
1426
1426
  this.toggleClickOutsideEvent(!1);
1427
1427
  }
1428
1428
  };
1429
- function ct(e) {
1429
+ function pt(e) {
1430
1430
  return typeof e == "string" ? e : e != null && !$e(e) ? JSON.stringify(e) : "";
1431
1431
  }
1432
- const ut = {
1432
+ const ft = {
1433
1433
  name: "VueTreeSelectHiddenFields",
1434
1434
  functional: !0,
1435
1435
  inject: ["instance"],
@@ -1439,7 +1439,7 @@ const ut = {
1439
1439
  } = t.injections;
1440
1440
  if (!n.name || n.disabled || !n.hasValue)
1441
1441
  return null;
1442
- let i = n.internalValue.map(ct);
1442
+ let i = n.internalValue.map(pt);
1443
1443
  return n.multiple && n.joinValues && (i = [i.join(n.delimiter)]), i.map((o, r) => s("input", {
1444
1444
  attrs: {
1445
1445
  type: "hidden",
@@ -1452,47 +1452,47 @@ const ut = {
1452
1452
  }));
1453
1453
  }
1454
1454
  };
1455
- let ht, dt;
1455
+ let mt, gt;
1456
1456
  const oe = {};
1457
- var pt = /* @__PURE__ */ f(
1458
- ut,
1459
- ht,
1460
- dt,
1461
- !1,
1457
+ var _t = /* @__PURE__ */ f(
1462
1458
  ft,
1459
+ mt,
1460
+ gt,
1461
+ !1,
1462
+ vt,
1463
1463
  null,
1464
1464
  null,
1465
1465
  null
1466
1466
  );
1467
- function ft(e) {
1467
+ function vt(e) {
1468
1468
  for (let t in oe)
1469
1469
  this[t] = oe[t];
1470
1470
  }
1471
- const mt = /* @__PURE__ */ function() {
1472
- return pt.exports;
1471
+ const St = /* @__PURE__ */ function() {
1472
+ return _t.exports;
1473
1473
  }();
1474
- function gt(e) {
1474
+ function Ot(e) {
1475
1475
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1476
1476
  }
1477
- function X() {
1478
- return X = Object.assign ? Object.assign.bind() : function(e) {
1477
+ function Y() {
1478
+ return Y = Object.assign ? Object.assign.bind() : function(e) {
1479
1479
  for (var t, s = 1; s < arguments.length; s++)
1480
1480
  for (var n in t = arguments[s], t)
1481
1481
  Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1482
1482
  return e;
1483
- }, X.apply(this, arguments);
1483
+ }, Y.apply(this, arguments);
1484
1484
  }
1485
- var _t = ["attrs", "props", "domProps"], vt = ["class", "style", "directives"], St = ["on", "nativeOn"], Ot = function(e) {
1485
+ var yt = ["attrs", "props", "domProps"], Et = ["class", "style", "directives"], Nt = ["on", "nativeOn"], bt = function(e) {
1486
1486
  return e.reduce(function(t, s) {
1487
1487
  for (var n in s)
1488
1488
  if (!t[n])
1489
1489
  t[n] = s[n];
1490
- else if (_t.indexOf(n) !== -1)
1491
- t[n] = X({}, t[n], s[n]);
1492
- else if (vt.indexOf(n) !== -1) {
1490
+ else if (yt.indexOf(n) !== -1)
1491
+ t[n] = Y({}, t[n], s[n]);
1492
+ else if (Et.indexOf(n) !== -1) {
1493
1493
  var i = t[n] instanceof Array ? t[n] : [t[n]], o = s[n] instanceof Array ? s[n] : [s[n]];
1494
1494
  t[n] = [].concat(i, o);
1495
- } else if (St.indexOf(n) !== -1)
1495
+ } else if (Nt.indexOf(n) !== -1)
1496
1496
  for (var r in s[n])
1497
1497
  if (t[n][r]) {
1498
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]];
@@ -1501,17 +1501,17 @@ var _t = ["attrs", "props", "domProps"], vt = ["class", "style", "directives"],
1501
1501
  t[n][r] = s[n][r];
1502
1502
  else if (n === "hook")
1503
1503
  for (var a in s[n])
1504
- t[n][a] = t[n][a] ? yt(t[n][a], s[n][a]) : s[n][a];
1504
+ t[n][a] = t[n][a] ? $t(t[n][a], s[n][a]) : s[n][a];
1505
1505
  else
1506
1506
  t[n] = s[n];
1507
1507
  return t;
1508
1508
  }, {});
1509
- }, yt = function(e, t) {
1509
+ }, $t = function(e, t) {
1510
1510
  return function() {
1511
1511
  e && e.apply(this, arguments), t && t.apply(this, arguments);
1512
1512
  };
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 = {
1513
+ }, wt = bt;
1514
+ const D = /* @__PURE__ */ Ot(wt), Ct = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.ARROW_UP, h.ARROW_RIGHT, h.ARROW_DOWN], Lt = {
1515
1515
  name: "VueTreeSelectInput",
1516
1516
  inject: ["instance"],
1517
1517
  data: () => ({
@@ -1540,7 +1540,7 @@ const R = /* @__PURE__ */ gt(Et), Nt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
1540
1540
  }
1541
1541
  },
1542
1542
  created() {
1543
- this.debouncedCallback = w(this.updateSearchQuery, it, {
1543
+ this.debouncedCallback = qe(this.updateSearchQuery, at, {
1544
1544
  leading: !0,
1545
1545
  trailing: !0
1546
1546
  });
@@ -1591,7 +1591,7 @@ const R = /* @__PURE__ */ gt(Et), Nt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
1591
1591
  e.keyCode
1592
1592
  );
1593
1593
  if (!(e.ctrlKey || e.shiftKey || e.altKey || e.metaKey)) {
1594
- if (!t.menu.isOpen && O(Nt, s))
1594
+ if (!t.menu.isOpen && O(Ct, s))
1595
1595
  return e.preventDefault(), t.openMenu();
1596
1596
  switch (s) {
1597
1597
  case h.BACKSPACE: {
@@ -1653,18 +1653,18 @@ const R = /* @__PURE__ */ gt(Et), Nt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
1653
1653
  const e = this.$createElement, {
1654
1654
  instance: t
1655
1655
  } = this, s = {}, n = [];
1656
- return t.searchable && !t.disabled && (n.push(this.renderInput()), this.needAutoSize && n.push(this.renderSizer())), t.searchable || U(s, {
1656
+ return t.searchable && !t.disabled && (n.push(this.renderInput()), this.needAutoSize && n.push(this.renderSizer())), t.searchable || q(s, {
1657
1657
  on: {
1658
1658
  focus: this.onFocus,
1659
1659
  blur: this.onBlur,
1660
1660
  keydown: this.onKeyDown
1661
1661
  },
1662
1662
  ref: "input"
1663
- }), !t.searchable && !t.disabled && U(s, {
1663
+ }), !t.searchable && !t.disabled && q(s, {
1664
1664
  attrs: {
1665
1665
  tabIndex: t.tabIndex
1666
1666
  }
1667
- }), e("div", R([{
1667
+ }), e("div", D([{
1668
1668
  class: "vue-treeselect__input-container"
1669
1669
  }, s]), [n]);
1670
1670
  },
@@ -1715,25 +1715,25 @@ const R = /* @__PURE__ */ gt(Et), Nt = [h.ENTER, h.END, h.HOME, h.ARROW_LEFT, h.
1715
1715
  return this.renderInputContainer();
1716
1716
  }
1717
1717
  };
1718
- let $t, wt;
1718
+ let Mt, xt;
1719
1719
  const le = {};
1720
- var Ct = /* @__PURE__ */ f(
1721
- bt,
1722
- $t,
1723
- wt,
1724
- !1,
1720
+ var Tt = /* @__PURE__ */ f(
1725
1721
  Lt,
1722
+ Mt,
1723
+ xt,
1724
+ !1,
1725
+ Dt,
1726
1726
  null,
1727
1727
  null,
1728
1728
  null
1729
1729
  );
1730
- function Lt(e) {
1730
+ function Dt(e) {
1731
1731
  for (let t in le)
1732
1732
  this[t] = le[t];
1733
1733
  }
1734
1734
  const Te = /* @__PURE__ */ function() {
1735
- return Ct.exports;
1736
- }(), Mt = {
1735
+ return Tt.exports;
1736
+ }(), Rt = {
1737
1737
  name: "VueTreeSelectPlaceholder",
1738
1738
  inject: ["instance"],
1739
1739
  render() {
@@ -1749,25 +1749,25 @@ const Te = /* @__PURE__ */ function() {
1749
1749
  }, [t.placeholder]);
1750
1750
  }
1751
1751
  };
1752
- let xt, Tt;
1752
+ let It, At;
1753
1753
  const ae = {};
1754
- var Dt = /* @__PURE__ */ f(
1755
- Mt,
1756
- xt,
1757
- Tt,
1758
- !1,
1754
+ var Vt = /* @__PURE__ */ f(
1759
1755
  Rt,
1756
+ It,
1757
+ At,
1758
+ !1,
1759
+ Bt,
1760
1760
  null,
1761
1761
  null,
1762
1762
  null
1763
1763
  );
1764
- function Rt(e) {
1764
+ function Bt(e) {
1765
1765
  for (let t in ae)
1766
1766
  this[t] = ae[t];
1767
1767
  }
1768
1768
  const De = /* @__PURE__ */ function() {
1769
- return Dt.exports;
1770
- }(), It = {
1769
+ return Vt.exports;
1770
+ }(), zt = {
1771
1771
  name: "VueTreeSelectSingleValue",
1772
1772
  inject: ["instance"],
1773
1773
  methods: {
@@ -1794,26 +1794,26 @@ const De = /* @__PURE__ */ function() {
1794
1794
  })]);
1795
1795
  }
1796
1796
  };
1797
- let At, Vt;
1797
+ let Ft, kt;
1798
1798
  const ce = {};
1799
- var Bt = /* @__PURE__ */ f(
1800
- It,
1801
- At,
1802
- Vt,
1803
- !1,
1799
+ var Ht = /* @__PURE__ */ f(
1804
1800
  zt,
1801
+ Ft,
1802
+ kt,
1803
+ !1,
1804
+ Pt,
1805
1805
  null,
1806
1806
  null,
1807
1807
  null
1808
1808
  );
1809
- function zt(e) {
1809
+ function Pt(e) {
1810
1810
  for (let t in ce)
1811
1811
  this[t] = ce[t];
1812
1812
  }
1813
- const Ft = /* @__PURE__ */ function() {
1814
- return Bt.exports;
1813
+ const Wt = /* @__PURE__ */ function() {
1814
+ return Ht.exports;
1815
1815
  }();
1816
- var kt = function() {
1816
+ var jt = function() {
1817
1817
  var e = this, t = e.$createElement, s = e._self._c || t;
1818
1818
  return s("svg", {
1819
1819
  attrs: {
@@ -1825,27 +1825,27 @@ var kt = function() {
1825
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"
1826
1826
  }
1827
1827
  })]);
1828
- }, Ht = [];
1829
- const Pt = {
1828
+ }, Qt = [];
1829
+ const Kt = {
1830
1830
  name: "VueTreeSelectDelete"
1831
1831
  }, ue = {};
1832
- var Wt = /* @__PURE__ */ f(
1833
- Pt,
1834
- kt,
1835
- Ht,
1836
- !1,
1832
+ var qt = /* @__PURE__ */ f(
1833
+ Kt,
1837
1834
  jt,
1835
+ Qt,
1836
+ !1,
1837
+ Ut,
1838
1838
  null,
1839
1839
  null,
1840
1840
  null
1841
1841
  );
1842
- function jt(e) {
1842
+ function Ut(e) {
1843
1843
  for (let t in ue)
1844
1844
  this[t] = ue[t];
1845
1845
  }
1846
1846
  const Re = /* @__PURE__ */ function() {
1847
- return Wt.exports;
1848
- }(), Qt = {
1847
+ return qt.exports;
1848
+ }(), Yt = {
1849
1849
  name: "VueTreeSelectMultiValueItem",
1850
1850
  inject: ["instance"],
1851
1851
  props: {
@@ -1888,25 +1888,25 @@ const Re = /* @__PURE__ */ function() {
1888
1888
  }, [e(Re)])])]);
1889
1889
  }
1890
1890
  };
1891
- let Kt, qt;
1891
+ let Xt, Gt;
1892
1892
  const he = {};
1893
- var Ut = /* @__PURE__ */ f(
1894
- Qt,
1895
- Kt,
1896
- qt,
1897
- !1,
1893
+ var Jt = /* @__PURE__ */ f(
1898
1894
  Yt,
1895
+ Xt,
1896
+ Gt,
1897
+ !1,
1898
+ Zt,
1899
1899
  null,
1900
1900
  null,
1901
1901
  null
1902
1902
  );
1903
- function Yt(e) {
1903
+ function Zt(e) {
1904
1904
  for (let t in he)
1905
1905
  this[t] = he[t];
1906
1906
  }
1907
- const Xt = /* @__PURE__ */ function() {
1908
- return Ut.exports;
1909
- }(), Gt = {
1907
+ const es = /* @__PURE__ */ function() {
1908
+ return Jt.exports;
1909
+ }(), ts = {
1910
1910
  name: "VueTreeSelectMultiValue",
1911
1911
  inject: ["instance"],
1912
1912
  methods: {
@@ -1914,7 +1914,7 @@ const Xt = /* @__PURE__ */ function() {
1914
1914
  const e = this.$createElement, {
1915
1915
  instance: t
1916
1916
  } = this;
1917
- return t.internalValue.slice(0, t.limit).map(t.getNode).map((s) => e(Xt, {
1917
+ return t.internalValue.slice(0, t.limit).map(t.getNode).map((s) => e(es, {
1918
1918
  key: `multi-value-item-${s.id}`,
1919
1919
  attrs: {
1920
1920
  node: s
@@ -1937,7 +1937,7 @@ const Xt = /* @__PURE__ */ function() {
1937
1937
  const e = arguments[0], {
1938
1938
  renderValueContainer: t
1939
1939
  } = this.$parent;
1940
- return t(e("transition-group", R([{
1940
+ return t(e("transition-group", D([{
1941
1941
  class: "vue-treeselect__multi-value"
1942
1942
  }, {
1943
1943
  props: {
@@ -1953,26 +1953,26 @@ const Xt = /* @__PURE__ */ function() {
1953
1953
  })]));
1954
1954
  }
1955
1955
  };
1956
- let Jt, Zt;
1956
+ let ss, ns;
1957
1957
  const de = {};
1958
- var es = /* @__PURE__ */ f(
1959
- Gt,
1960
- Jt,
1961
- Zt,
1962
- !1,
1958
+ var is = /* @__PURE__ */ f(
1963
1959
  ts,
1960
+ ss,
1961
+ ns,
1962
+ !1,
1963
+ rs,
1964
1964
  null,
1965
1965
  null,
1966
1966
  null
1967
1967
  );
1968
- function ts(e) {
1968
+ function rs(e) {
1969
1969
  for (let t in de)
1970
1970
  this[t] = de[t];
1971
1971
  }
1972
- const ss = /* @__PURE__ */ function() {
1973
- return es.exports;
1972
+ const os = /* @__PURE__ */ function() {
1973
+ return is.exports;
1974
1974
  }();
1975
- var ns = function() {
1975
+ var ls = function() {
1976
1976
  var e = this, t = e.$createElement, s = e._self._c || t;
1977
1977
  return s("svg", {
1978
1978
  attrs: {
@@ -1984,27 +1984,27 @@ var ns = function() {
1984
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"
1985
1985
  }
1986
1986
  })]);
1987
- }, is = [];
1988
- const rs = {
1987
+ }, as = [];
1988
+ const cs = {
1989
1989
  name: "VueTreeSelectArrow"
1990
1990
  }, pe = {};
1991
- var os = /* @__PURE__ */ f(
1992
- rs,
1993
- ns,
1994
- is,
1995
- !1,
1991
+ var us = /* @__PURE__ */ f(
1992
+ cs,
1996
1993
  ls,
1994
+ as,
1995
+ !1,
1996
+ hs,
1997
1997
  null,
1998
1998
  null,
1999
1999
  null
2000
2000
  );
2001
- function ls(e) {
2001
+ function hs(e) {
2002
2002
  for (let t in pe)
2003
2003
  this[t] = pe[t];
2004
2004
  }
2005
2005
  const Ie = /* @__PURE__ */ function() {
2006
- return os.exports;
2007
- }(), as = {
2006
+ return us.exports;
2007
+ }(), ds = {
2008
2008
  name: "VueTreeSelectControl",
2009
2009
  inject: ["instance"],
2010
2010
  computed: {
@@ -2101,7 +2101,7 @@ const Ie = /* @__PURE__ */ function() {
2101
2101
  render() {
2102
2102
  const e = arguments[0], {
2103
2103
  instance: t
2104
- } = this, s = t.single ? Ft : ss;
2104
+ } = this, s = t.single ? Wt : os;
2105
2105
  return e("div", {
2106
2106
  class: "vue-treeselect__control",
2107
2107
  on: {
@@ -2112,25 +2112,25 @@ const Ie = /* @__PURE__ */ function() {
2112
2112
  }), this.renderX(), this.renderArrow()]);
2113
2113
  }
2114
2114
  };
2115
- let cs, us;
2115
+ let ps, fs;
2116
2116
  const fe = {};
2117
- var hs = /* @__PURE__ */ f(
2118
- as,
2119
- cs,
2120
- us,
2121
- !1,
2117
+ var ms = /* @__PURE__ */ f(
2122
2118
  ds,
2119
+ ps,
2120
+ fs,
2121
+ !1,
2122
+ gs,
2123
2123
  null,
2124
2124
  null,
2125
2125
  null
2126
2126
  );
2127
- function ds(e) {
2127
+ function gs(e) {
2128
2128
  for (let t in fe)
2129
2129
  this[t] = fe[t];
2130
2130
  }
2131
- const ps = /* @__PURE__ */ function() {
2132
- return hs.exports;
2133
- }(), fs = {
2131
+ const _s = /* @__PURE__ */ function() {
2132
+ return ms.exports;
2133
+ }(), vs = {
2134
2134
  name: "VueTreeSelectTip",
2135
2135
  functional: !0,
2136
2136
  props: {
@@ -2159,26 +2159,26 @@ const ps = /* @__PURE__ */ function() {
2159
2159
  }, [i])]);
2160
2160
  }
2161
2161
  };
2162
- let ms, gs;
2162
+ let Ss, Os;
2163
2163
  const me = {};
2164
- var _s = /* @__PURE__ */ f(
2165
- fs,
2166
- ms,
2167
- gs,
2168
- !1,
2164
+ var ys = /* @__PURE__ */ f(
2169
2165
  vs,
2166
+ Ss,
2167
+ Os,
2168
+ !1,
2169
+ Es,
2170
2170
  null,
2171
2171
  null,
2172
2172
  null
2173
2173
  );
2174
- function vs(e) {
2174
+ function Es(e) {
2175
2175
  for (let t in me)
2176
2176
  this[t] = me[t];
2177
2177
  }
2178
2178
  const v = /* @__PURE__ */ function() {
2179
- return _s.exports;
2179
+ return ys.exports;
2180
2180
  }();
2181
- let W, j, Q;
2181
+ let P, W, j;
2182
2182
  const Ae = {
2183
2183
  name: "VueTreeSelectOption",
2184
2184
  inject: ["instance"],
@@ -2255,15 +2255,15 @@ const Ae = {
2255
2255
  on: {
2256
2256
  mousedown: this.handleMouseDownOnArrow
2257
2257
  }
2258
- }, [e("transition", R([{}, n]), [e(Ie, {
2258
+ }, [e("transition", D([{}, n]), [e(Ie, {
2259
2259
  class: i
2260
2260
  })])]);
2261
2261
  }
2262
2262
  return (
2263
2263
  /* node.isLeaf && */
2264
- t.hasBranchNodes ? (W || (W = e("div", {
2264
+ t.hasBranchNodes ? (P || (P = e("div", {
2265
2265
  class: "vue-treeselect__option-arrow-placeholder"
2266
- }, [" "])), W) : null
2266
+ }, [" "])), P) : null
2267
2267
  );
2268
2268
  },
2269
2269
  renderLabelContainer(e) {
@@ -2292,16 +2292,16 @@ const Ae = {
2292
2292
  "vue-treeselect__checkbox": !0,
2293
2293
  "vue-treeselect__checkbox--checked": n === Me,
2294
2294
  "vue-treeselect__checkbox--indeterminate": n === Le,
2295
- "vue-treeselect__checkbox--unchecked": n === Y,
2295
+ "vue-treeselect__checkbox--unchecked": n === U,
2296
2296
  "vue-treeselect__checkbox--disabled": s.isDisabled
2297
2297
  };
2298
- return j || (j = e("span", {
2298
+ return W || (W = e("span", {
2299
2299
  class: "vue-treeselect__check-mark"
2300
- })), Q || (Q = e("span", {
2300
+ })), j || (j = e("span", {
2301
2301
  class: "vue-treeselect__minus-mark"
2302
2302
  })), e("span", {
2303
2303
  class: i
2304
- }, [j, Q]);
2304
+ }, [W, j]);
2305
2305
  },
2306
2306
  renderLabel() {
2307
2307
  const e = this.$createElement, {
@@ -2417,33 +2417,33 @@ const Ae = {
2417
2417
  };
2418
2418
  return e("div", {
2419
2419
  class: n
2420
- }, [this.renderOption(), t.isBranch && e("transition", R([{}, i]), [this.renderSubOptionsList()])]);
2420
+ }, [this.renderOption(), t.isBranch && e("transition", D([{}, i]), [this.renderSubOptionsList()])]);
2421
2421
  }
2422
2422
  };
2423
- let Ss, Os;
2423
+ let Ns, bs;
2424
2424
  const ge = {};
2425
- var ys = /* @__PURE__ */ f(
2425
+ var $s = /* @__PURE__ */ f(
2426
2426
  Ae,
2427
- Ss,
2428
- Os,
2427
+ Ns,
2428
+ bs,
2429
2429
  !1,
2430
- Es,
2430
+ ws,
2431
2431
  null,
2432
2432
  null,
2433
2433
  null
2434
2434
  );
2435
- function Es(e) {
2435
+ function ws(e) {
2436
2436
  for (let t in ge)
2437
2437
  this[t] = ge[t];
2438
2438
  }
2439
- const Ns = /* @__PURE__ */ function() {
2440
- return ys.exports;
2441
- }(), bs = {
2439
+ const Cs = /* @__PURE__ */ function() {
2440
+ return $s.exports;
2441
+ }(), Ls = {
2442
2442
  top: "top",
2443
2443
  bottom: "bottom",
2444
2444
  above: "top",
2445
2445
  below: "bottom"
2446
- }, $s = {
2446
+ }, Ms = {
2447
2447
  name: "VueTreeSelectMenu",
2448
2448
  inject: ["instance"],
2449
2449
  computed: {
@@ -2531,7 +2531,7 @@ const Ns = /* @__PURE__ */ function() {
2531
2531
  } = this;
2532
2532
  return e("div", {
2533
2533
  class: "vue-treeselect__list"
2534
- }, [t.forest.normalizedOptions.map((s) => e(Ns, {
2534
+ }, [t.forest.normalizedOptions.map((s) => e(Cs, {
2535
2535
  attrs: {
2536
2536
  node: s
2537
2537
  },
@@ -2633,7 +2633,7 @@ const Ns = /* @__PURE__ */ function() {
2633
2633
  if (!e.menu.isOpen)
2634
2634
  return;
2635
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();
2636
+ a ? e.openDirection !== "auto" ? e.menu.placement = Ls[e.openDirection] : m || !p ? e.menu.placement = "bottom" : e.menu.placement = "top" : e.closeMenu();
2637
2637
  },
2638
2638
  setupMenuSizeWatcher() {
2639
2639
  const {
@@ -2671,25 +2671,25 @@ const Ns = /* @__PURE__ */ function() {
2671
2671
  }, [this.renderMenu()])]);
2672
2672
  }
2673
2673
  };
2674
- let ws, Cs;
2674
+ let xs, Ts;
2675
2675
  const _e = {};
2676
- var Ls = /* @__PURE__ */ f(
2677
- $s,
2678
- ws,
2679
- Cs,
2680
- !1,
2676
+ var Ds = /* @__PURE__ */ f(
2681
2677
  Ms,
2678
+ xs,
2679
+ Ts,
2680
+ !1,
2681
+ Rs,
2682
2682
  null,
2683
2683
  null,
2684
2684
  null
2685
2685
  );
2686
- function Ms(e) {
2686
+ function Rs(e) {
2687
2687
  for (let t in _e)
2688
2688
  this[t] = _e[t];
2689
2689
  }
2690
2690
  const Ve = /* @__PURE__ */ function() {
2691
- return Ls.exports;
2692
- }(), xs = {
2691
+ return Ds.exports;
2692
+ }(), Is = {
2693
2693
  name: "VueTreeSelectPortalTarget",
2694
2694
  inject: ["instance"],
2695
2695
  watch: {
@@ -2773,8 +2773,8 @@ const Ve = /* @__PURE__ */ function() {
2773
2773
  this.removeHandlers();
2774
2774
  }
2775
2775
  };
2776
- let K;
2777
- const Ts = {
2776
+ let Q;
2777
+ const As = {
2778
2778
  name: "VueTreeSelectMenuPortal",
2779
2779
  created() {
2780
2780
  this.portalTarget = null;
@@ -2788,10 +2788,10 @@ const Ts = {
2788
2788
  methods: {
2789
2789
  setup() {
2790
2790
  const e = document.createElement("div");
2791
- document.body.appendChild(e), this.portalTarget = new je(_({
2791
+ document.body.appendChild(e), this.portalTarget = new Ue(_({
2792
2792
  el: e,
2793
2793
  parent: this
2794
- }, xs));
2794
+ }, Is));
2795
2795
  },
2796
2796
  teardown() {
2797
2797
  document.body.removeChild(this.portalTarget.$el), this.portalTarget.$el.innerHTML = "", this.portalTarget.$destroy(), this.portalTarget = null;
@@ -2799,32 +2799,32 @@ const Ts = {
2799
2799
  },
2800
2800
  render() {
2801
2801
  const e = arguments[0];
2802
- return K || (K = e("div", {
2802
+ return Q || (Q = e("div", {
2803
2803
  class: "vue-treeselect__menu-placeholder"
2804
- })), K;
2804
+ })), Q;
2805
2805
  }
2806
2806
  };
2807
- let Ds, Rs;
2807
+ let Vs, Bs;
2808
2808
  const ve = {};
2809
- var Is = /* @__PURE__ */ f(
2810
- Ts,
2811
- Ds,
2812
- Rs,
2813
- !1,
2809
+ var zs = /* @__PURE__ */ f(
2814
2810
  As,
2811
+ Vs,
2812
+ Bs,
2813
+ !1,
2814
+ Fs,
2815
2815
  null,
2816
2816
  null,
2817
2817
  null
2818
2818
  );
2819
- function As(e) {
2819
+ function Fs(e) {
2820
2820
  for (let t in ve)
2821
2821
  this[t] = ve[t];
2822
2822
  }
2823
- const Vs = /* @__PURE__ */ function() {
2824
- return Is.exports;
2825
- }(), Bs = {
2823
+ const ks = /* @__PURE__ */ function() {
2824
+ return zs.exports;
2825
+ }(), Hs = {
2826
2826
  name: "VueTreeSelect",
2827
- mixins: [at],
2827
+ mixins: [dt],
2828
2828
  computed: {
2829
2829
  wrapperClass() {
2830
2830
  return {
@@ -2848,34 +2848,34 @@ const Vs = /* @__PURE__ */ function() {
2848
2848
  return e("div", {
2849
2849
  ref: "wrapper",
2850
2850
  class: this.wrapperClass
2851
- }, [e(mt), e(ps, {
2851
+ }, [e(St), e(_s, {
2852
2852
  ref: "control"
2853
- }), this.appendToBody ? e(Vs, {
2853
+ }), this.appendToBody ? e(ks, {
2854
2854
  ref: "portal"
2855
2855
  }) : e(Ve, {
2856
2856
  ref: "menu"
2857
2857
  })]);
2858
2858
  }
2859
2859
  };
2860
- let zs, Fs;
2860
+ let Ps, Ws;
2861
2861
  const Se = {};
2862
- var ks = /* @__PURE__ */ f(
2863
- Bs,
2864
- zs,
2865
- Fs,
2866
- !1,
2862
+ var js = /* @__PURE__ */ f(
2867
2863
  Hs,
2864
+ Ps,
2865
+ Ws,
2866
+ !1,
2867
+ Qs,
2868
2868
  null,
2869
2869
  null,
2870
2870
  null
2871
2871
  );
2872
- function Hs(e) {
2872
+ function Qs(e) {
2873
2873
  for (let t in Se)
2874
2874
  this[t] = Se[t];
2875
2875
  }
2876
- const qs = /* @__PURE__ */ function() {
2877
- return ks.exports;
2876
+ const Gs = /* @__PURE__ */ function() {
2877
+ return js.exports;
2878
2878
  }();
2879
2879
  export {
2880
- qs as default
2880
+ Gs as default
2881
2881
  };