st-comp 0.0.279 → 0.0.281

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 (229) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +13 -14
  3. package/es/CustomFunction.cjs +2 -2
  4. package/es/CustomFunction.js +377 -376
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +294 -294
  7. package/es/Kline.cjs +1 -1
  8. package/es/Kline.js +19 -19
  9. package/es/KlineBasic.cjs +1 -1
  10. package/es/KlineBasic.js +260 -260
  11. package/es/KlineConfig.cjs +1 -1
  12. package/es/KlineConfig.js +579 -553
  13. package/es/KlineNew.cjs +1 -1
  14. package/es/KlineNew.js +17 -17
  15. package/es/KlinePlus.cjs +2 -2
  16. package/es/KlinePlus.js +23 -24
  17. package/es/MonacoEditor.cjs +1 -1
  18. package/es/MonacoEditor.js +30 -29
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +517 -425
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +3 -3
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +43 -43
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +898 -866
  27. package/es/VarSelectDialog.cjs +3 -3
  28. package/es/VarSelectDialog.js +110 -109
  29. package/es/VarietyAiHelper.cjs +7 -7
  30. package/es/VarietyAiHelper.js +615 -464
  31. package/es/VarietyAutoComplete.cjs +1 -1
  32. package/es/VarietyAutoComplete.js +11 -11
  33. package/es/VarietySearch.cjs +18 -18
  34. package/es/VarietySearch.js +3079 -2913
  35. package/es/{VarietySelect-41daac7b.js → VarietySelect-3fc0f0ce.js} +5 -5
  36. package/es/{VarietySelect-d58eee29.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
  37. package/es/VarietyTextCopy.cjs +3 -3
  38. package/es/VarietyTextCopy.js +51 -51
  39. package/es/VirtualTable.cjs +13 -1
  40. package/es/VirtualTable.js +1927 -2259
  41. package/es/_baseClone-f8e5d3ba.cjs +1 -0
  42. package/es/_baseClone-fb6a3947.js +210 -0
  43. package/es/base-d987e5c9.cjs +5 -0
  44. package/es/base-dd156b8e.js +790 -0
  45. package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
  46. package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
  47. package/es/clamp-17c4d8aa.cjs +1 -0
  48. package/es/clamp-c7512966.js +10 -0
  49. package/es/config-provider-06d8207f.js +86 -0
  50. package/es/config-provider-bb61bd3e.cjs +1 -0
  51. package/es/debounce-0a98a9c6.js +57 -0
  52. package/es/debounce-37b17615.cjs +1 -0
  53. package/es/dropdown-8fa21bfd.cjs +1 -0
  54. package/es/dropdown-bcf8d198.js +178 -0
  55. package/es/el-autocomplete-13b9e372.cjs +1 -0
  56. package/es/el-autocomplete-419bfbcf.js +434 -0
  57. package/es/el-button-ee9fe159.js +343 -0
  58. package/es/el-button-fac5e058.cjs +1 -0
  59. package/es/el-checkbox-6cf1a71c.cjs +1 -0
  60. package/es/el-checkbox-b5ac7f04.js +566 -0
  61. package/es/el-dialog-060b3735.js +252 -0
  62. package/es/el-dialog-54aebacd.cjs +1 -0
  63. package/es/el-divider-3f0320be.cjs +1 -0
  64. package/es/el-divider-c5d72961.js +51 -0
  65. package/es/el-empty-552baf04.js +159 -0
  66. package/es/el-empty-58bc2a10.cjs +1 -0
  67. package/es/el-form-item-2be6b683.js +1265 -0
  68. package/es/el-form-item-758dfefa.cjs +12 -0
  69. package/es/el-input-7fe53030.cjs +1 -0
  70. package/es/el-input-d23f5442.js +761 -0
  71. package/es/el-input-number-484fb184.js +390 -0
  72. package/es/el-input-number-f0f4eedb.cjs +1 -0
  73. package/es/el-loading-9d3e405c.js +190 -0
  74. package/es/el-loading-fafaaa7b.cjs +1 -0
  75. package/es/el-menu-item-0ac22681.js +824 -0
  76. package/es/el-menu-item-c91ae430.cjs +1 -0
  77. package/es/el-message-box-568a0aa6.js +481 -0
  78. package/es/el-message-box-ceacb54e.cjs +1 -0
  79. package/es/el-overlay-9f36e73c.cjs +1 -0
  80. package/es/el-overlay-cb5c85aa.js +444 -0
  81. package/es/el-popconfirm-4a8cd35c.cjs +1 -0
  82. package/es/el-popconfirm-6f8e65c8.js +190 -0
  83. package/es/el-popper-0454c8e8.js +2235 -0
  84. package/es/el-popper-acd0ff35.cjs +1 -0
  85. package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
  86. package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
  87. package/es/el-segmented-64dc7258.js +168 -0
  88. package/es/el-segmented-eb3c8e65.cjs +1 -0
  89. package/es/el-select-a573c78b.js +1535 -0
  90. package/es/el-select-c317294a.cjs +1 -0
  91. package/es/el-table-column-1c443963.js +3651 -0
  92. package/es/el-table-column-f555115d.cjs +14 -0
  93. package/es/el-tag-2d8a3fe7.js +77 -0
  94. package/es/el-tag-dca1292c.cjs +1 -0
  95. package/es/el-text-649c986a.cjs +1 -0
  96. package/es/el-text-761e6717.js +84 -0
  97. package/es/index-11181b5f.cjs +1 -0
  98. package/es/index-21a3dc89.cjs +1 -0
  99. package/es/index-33e039e3.cjs +1 -0
  100. package/es/index-3806160e.js +710 -0
  101. package/es/{index-a9246d17.cjs → index-4614e8e9.cjs} +109 -109
  102. package/es/{index-44a382a5.js → index-53beef02.js} +12 -12
  103. package/es/index-5cada1ed.cjs +1 -0
  104. package/es/index-6a36e1fc.cjs +1 -0
  105. package/es/{index-eb96e074.js → index-6a52dc7c.js} +235 -236
  106. package/es/index-71ba4c28.cjs +1 -0
  107. package/es/index-78dab605.js +141 -0
  108. package/es/index-798fec2d.cjs +1 -0
  109. package/es/index-9573f74b.js +372 -0
  110. package/es/index-a181f161.js +429 -0
  111. package/es/{index-a33b2fb8.js → index-ab0ad219.js} +5090 -5090
  112. package/es/index-beb5cb7d.cjs +1 -0
  113. package/es/index-c09fc6f5.js +131 -0
  114. package/es/index-ceae4c47.cjs +1 -0
  115. package/es/index-d372e68f.cjs +5 -0
  116. package/es/index-d9379af4.js +413 -0
  117. package/es/index-dddacf80.js +47 -0
  118. package/es/index-de9ad85c.js +12 -0
  119. package/es/index-e2e58ea9.js +468 -0
  120. package/es/index-f5474dcc.cjs +3 -0
  121. package/es/{python-a3db9620.cjs → python-60e79979.cjs} +1 -1
  122. package/es/{python-8a1664e6.js → python-673bf8b8.js} +32 -31
  123. package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
  124. package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
  125. package/es/scroll-07bade1e.cjs +1 -0
  126. package/es/scroll-70271cb1.js +35 -0
  127. package/es/style.css +1 -1
  128. package/es/toNumber-b47ceb68.cjs +1 -0
  129. package/es/toNumber-f077c66a.js +31 -0
  130. package/es/use-form-item-76516e50.cjs +2 -0
  131. package/es/use-form-item-784142b4.js +422 -0
  132. package/es/use-global-config-7ff9a1c2.cjs +1 -0
  133. package/es/use-global-config-9a4ccf33.js +71 -0
  134. package/es/validator-1926345b.cjs +1 -0
  135. package/es/{validator-c60a8956.js → validator-a66ec4f8.js} +1 -1
  136. package/es/vnode-6f7b84f0.cjs +1 -0
  137. package/es/vnode-8ee9bf4e.js +12 -0
  138. package/es/{zh-cn-b59a0910.js → zh-cn-51c2e528.js} +36 -33
  139. package/es/zh-cn-ad12d9f5.cjs +1 -0
  140. package/lib/bundle.js +1 -1
  141. package/lib/bundle.umd.cjs +265 -246
  142. package/lib/{index-62fa175a.js → index-7282d3be.js} +52335 -50156
  143. package/lib/{python-4a48fa39.js → python-418be57d.js} +1 -1
  144. package/lib/style.css +1 -1
  145. package/package.json +1 -1
  146. package/es/_initCloneObject-5e73c9c8.js +0 -81
  147. package/es/_initCloneObject-a5832933.cjs +0 -1
  148. package/es/base-a5af3db3.js +0 -288
  149. package/es/base-ef747d02.cjs +0 -5
  150. package/es/config-provider-06ea6b42.cjs +0 -1
  151. package/es/config-provider-88b637a8.js +0 -59
  152. package/es/dayjs.min-2c20abe6.cjs +0 -1
  153. package/es/dayjs.min-8313b006.js +0 -299
  154. package/es/debounce-62f5b6e8.cjs +0 -1
  155. package/es/debounce-8d53f4dd.js +0 -83
  156. package/es/dropdown-4ce4c3e2.cjs +0 -1
  157. package/es/dropdown-72fbc15d.js +0 -178
  158. package/es/el-autocomplete-6cafcdf1.js +0 -329
  159. package/es/el-autocomplete-e0857c5b.cjs +0 -1
  160. package/es/el-button-613e0bb2.cjs +0 -1
  161. package/es/el-button-94d3de38.js +0 -272
  162. package/es/el-checkbox-6d4cb393.js +0 -459
  163. package/es/el-checkbox-e90762df.cjs +0 -1
  164. package/es/el-dialog-02942e22.cjs +0 -1
  165. package/es/el-dialog-5e30161f.js +0 -276
  166. package/es/el-divider-4713d74c.cjs +0 -1
  167. package/es/el-divider-4e059794.js +0 -45
  168. package/es/el-empty-1697ded8.cjs +0 -1
  169. package/es/el-empty-33cb66f1.js +0 -183
  170. package/es/el-form-item-44f060d8.cjs +0 -12
  171. package/es/el-form-item-9e8969ea.js +0 -1269
  172. package/es/el-input-342b2def.js +0 -531
  173. package/es/el-input-9a9a7f7f.cjs +0 -1
  174. package/es/el-input-number-65c847d6.cjs +0 -1
  175. package/es/el-input-number-c22b803a.js +0 -311
  176. package/es/el-loading-8179b497.cjs +0 -1
  177. package/es/el-loading-bcc51e3d.js +0 -203
  178. package/es/el-menu-item-339baf6d.js +0 -768
  179. package/es/el-menu-item-83186444.cjs +0 -1
  180. package/es/el-message-box-035b699c.js +0 -489
  181. package/es/el-message-box-c62d3217.cjs +0 -1
  182. package/es/el-overlay-3e17604b.js +0 -324
  183. package/es/el-overlay-8f1da9e8.cjs +0 -1
  184. package/es/el-popconfirm-4e32ec1b.cjs +0 -1
  185. package/es/el-popconfirm-f8a86e2c.js +0 -162
  186. package/es/el-popper-a4f3ae4d.cjs +0 -1
  187. package/es/el-popper-fbd0dcea.js +0 -2094
  188. package/es/el-segmented-56bd58a8.js +0 -142
  189. package/es/el-segmented-833ac177.cjs +0 -1
  190. package/es/el-select-44fa547d.js +0 -1256
  191. package/es/el-select-70806166.cjs +0 -1
  192. package/es/el-table-column-3e2cdfca.cjs +0 -14
  193. package/es/el-table-column-b74a857d.js +0 -3432
  194. package/es/el-tag-66c83156.js +0 -117
  195. package/es/el-tag-9c2f329f.cjs +0 -1
  196. package/es/el-text-034bd3f4.js +0 -67
  197. package/es/el-text-6b2374bb.cjs +0 -1
  198. package/es/index-00f6ca75.cjs +0 -1
  199. package/es/index-185792a7.cjs +0 -1
  200. package/es/index-1e2a38ab.js +0 -113
  201. package/es/index-2e331d74.js +0 -10
  202. package/es/index-3153c1db.cjs +0 -1
  203. package/es/index-5216d5f5.js +0 -406
  204. package/es/index-5c0dd943.cjs +0 -1
  205. package/es/index-657047bb.js +0 -513
  206. package/es/index-870b6c9d.cjs +0 -1
  207. package/es/index-8c2d7e05.js +0 -368
  208. package/es/index-960806da.js +0 -314
  209. package/es/index-9780a537.cjs +0 -1
  210. package/es/index-9d16cea8.cjs +0 -1
  211. package/es/index-ac8dc53d.cjs +0 -1
  212. package/es/index-bb833443.cjs +0 -1
  213. package/es/index-c5f2d372.js +0 -326
  214. package/es/index-c6584658.js +0 -163
  215. package/es/index-d77a7336.js +0 -204
  216. package/es/index-eea0bcb3.cjs +0 -1
  217. package/es/index-f034b910.js +0 -60
  218. package/es/index-f1c702f6.cjs +0 -1
  219. package/es/index-f58b2920.cjs +0 -1
  220. package/es/scroll-679bd6bf.js +0 -35
  221. package/es/scroll-b108dabd.cjs +0 -1
  222. package/es/use-form-common-props-ac666630.cjs +0 -1
  223. package/es/use-form-common-props-ed72e914.js +0 -364
  224. package/es/use-global-config-23472471.cjs +0 -1
  225. package/es/use-global-config-ee406d58.js +0 -72
  226. package/es/validator-366dbf39.cjs +0 -1
  227. package/es/vnode-5ddb7ed1.js +0 -14
  228. package/es/vnode-b906ae6d.cjs +0 -1
  229. package/es/zh-cn-c21d12d8.cjs +0 -1
@@ -0,0 +1,1535 @@
1
+ import { y as kt, m as j, F as yl, b as Dt, c as H, t as Sl, k as Y, u as ge, Q as je, R as Ol, N as ht, T as wl, i as De, s as Cl, B as fe, U as El, V as Tl, l as Vl, a as Il, w as kl, n as Mt } from "./base-dd156b8e.js";
2
+ import { b as yt, e as Dl, u as Ml, U as ve, C as Rt, _ as Ne, g as St, a as K, E as Rl } from "./el-popper-0454c8e8.js";
3
+ import { g as A, a as $t, u as $l } from "./index-a181f161.js";
4
+ import { shallowRef as Ll, ref as R, computed as p, watch as U, inject as Le, getCurrentInstance as Fe, toRaw as Bl, defineComponent as he, unref as Ge, reactive as me, toRefs as Xe, onBeforeUnmount as Lt, nextTick as q, withDirectives as Be, openBlock as m, createElementBlock as D, mergeProps as Re, toHandlerKey as Bt, withModifiers as oe, renderSlot as P, createElementVNode as N, toDisplayString as X, vShow as Ye, provide as Nt, onMounted as Je, isVNode as Nl, normalizeClass as O, normalizeStyle as $e, createCommentVNode as z, useSlots as Fl, watchEffect as Pl, resolveComponent as J, resolveDirective as Wl, createVNode as ee, withCtx as W, Fragment as pe, renderList as Me, createTextVNode as Ot, createBlock as G, resolveDynamicComponent as Ue } from "vue";
5
+ import { c as x } from "./castArray-18eb6a41.js";
6
+ import { i as le, u as zl, m as Hl } from "./index-9573f74b.js";
7
+ import { u as te, h as Al, i as wt, t as Kl, d as Gl, f as Ul, g as jl, V as Ql, e as ql } from "./use-form-item-784142b4.js";
8
+ import { f as Xl } from "./vnode-8ee9bf4e.js";
9
+ import { t as Yl, g as Jl, E as Zl } from "./index-6a52dc7c.js";
10
+ import { s as Ct, E as xl } from "./index-d9379af4.js";
11
+ import { t as Et, E as _l } from "./index-c09fc6f5.js";
12
+ import { s as en } from "./scroll-70271cb1.js";
13
+ import { u as tn, a as ln } from "./index-dddacf80.js";
14
+ import { b as nn } from "./el-tag-2d8a3fe7.js";
15
+ import { t as on } from "./toNumber-f077c66a.js";
16
+ import { c as an } from "./clamp-c7512966.js";
17
+ var Tt = 1 / 0, sn = 17976931348623157e292;
18
+ function rn(e) {
19
+ if (!e)
20
+ return e === 0 ? e : 0;
21
+ if (e = on(e), e === Tt || e === -Tt) {
22
+ var n = e < 0 ? -1 : 1;
23
+ return n * sn;
24
+ }
25
+ return e === e ? e : 0;
26
+ }
27
+ function un(e) {
28
+ var n = rn(e), a = n % 1;
29
+ return n === n ? a ? n - a : n : 0;
30
+ }
31
+ function dn(e, n, a, u) {
32
+ for (var r = e.length, d = a + (u ? 1 : -1); u ? d-- : ++d < r; )
33
+ if (n(e[d], d, e))
34
+ return d;
35
+ return -1;
36
+ }
37
+ var cn = Math.max, pn = Math.min;
38
+ function fn(e, n, a) {
39
+ var u = e == null ? 0 : e.length;
40
+ if (!u)
41
+ return -1;
42
+ var r = u - 1;
43
+ return a !== void 0 && (r = un(a), r = a < 0 ? cn(u + r, 0) : pn(r, u - 1)), dn(e, nn(n), r, !0);
44
+ }
45
+ const Z = /* @__PURE__ */ new Map();
46
+ if (kt) {
47
+ let e;
48
+ document.addEventListener("mousedown", (n) => e = n), document.addEventListener("mouseup", (n) => {
49
+ if (e) {
50
+ for (const a of Z.values())
51
+ for (const { documentHandler: u } of a)
52
+ u(n, e);
53
+ e = void 0;
54
+ }
55
+ });
56
+ }
57
+ function Vt(e, n) {
58
+ let a = [];
59
+ return j(n.arg) ? a = n.arg : yl(n.arg) && a.push(n.arg), function(u, r) {
60
+ const d = n.instance.popperRef, f = u.target, l = r == null ? void 0 : r.target, E = !n || !n.instance, v = !f || !l, g = e.contains(f) || e.contains(l), T = e === f, C = a.length && a.some((y) => y == null ? void 0 : y.contains(f)) || a.length && a.includes(l), b = d && (d.contains(f) || d.contains(l));
61
+ E || v || g || T || C || b || n.value(u, r);
62
+ };
63
+ }
64
+ const vn = {
65
+ beforeMount(e, n) {
66
+ Z.has(e) || Z.set(e, []), Z.get(e).push({
67
+ documentHandler: Vt(e, n),
68
+ bindingFn: n.value
69
+ });
70
+ },
71
+ updated(e, n) {
72
+ Z.has(e) || Z.set(e, []);
73
+ const a = Z.get(e), u = a.findIndex((d) => d.bindingFn === n.oldValue), r = {
74
+ documentHandler: Vt(e, n),
75
+ bindingFn: n.value
76
+ };
77
+ u >= 0 ? a.splice(u, 1, r) : a.push(r);
78
+ },
79
+ unmounted(e) {
80
+ Z.delete(e);
81
+ }
82
+ };
83
+ function gn() {
84
+ const e = Ll(), n = R(0), a = p(() => ({ minWidth: `${Math.max(n.value, 11)}px` }));
85
+ return te(e, () => {
86
+ var r;
87
+ n.value = ((r = e.value) == null ? void 0 : r.getBoundingClientRect().width) ?? 0;
88
+ }), {
89
+ calculatorRef: e,
90
+ calculatorWidth: n,
91
+ inputStyle: a
92
+ };
93
+ }
94
+ const mn = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"), Ft = Symbol("ElSelectGroup"), Pe = Symbol("ElSelect"), Qe = {
95
+ label: "label",
96
+ value: "value",
97
+ disabled: "disabled",
98
+ options: "options"
99
+ };
100
+ function bn(e) {
101
+ const n = R({
102
+ ...Qe,
103
+ ...e.props
104
+ });
105
+ let a = { ...e.props };
106
+ return U(() => e.props, (l) => {
107
+ le(l, a) || (n.value = {
108
+ ...Qe,
109
+ ...l
110
+ }, a = { ...l });
111
+ }, { deep: !0 }), {
112
+ aliasProps: n,
113
+ getLabel: (l) => A(l, n.value.label),
114
+ getValue: (l) => A(l, n.value.value),
115
+ getDisabled: (l) => A(l, n.value.disabled),
116
+ getOptions: (l) => A(l, n.value.options)
117
+ };
118
+ }
119
+ const hn = Dt({
120
+ /**
121
+ * @description the name attribute of select input
122
+ */
123
+ name: String,
124
+ /**
125
+ * @description native input id
126
+ */
127
+ id: String,
128
+ /**
129
+ * @description binding value
130
+ */
131
+ modelValue: {
132
+ type: H([
133
+ Array,
134
+ String,
135
+ Number,
136
+ Boolean,
137
+ Object
138
+ ]),
139
+ default: void 0
140
+ },
141
+ /**
142
+ * @description the autocomplete attribute of select input
143
+ */
144
+ autocomplete: {
145
+ type: String,
146
+ default: "off"
147
+ },
148
+ /**
149
+ * @description for non-filterable Select, this prop decides if the option menu pops up when the input is focused
150
+ */
151
+ automaticDropdown: Boolean,
152
+ /**
153
+ * @description size of Input
154
+ */
155
+ size: Al,
156
+ /**
157
+ * @description tooltip theme, built-in theme: `dark` / `light`
158
+ */
159
+ effect: {
160
+ type: H(String),
161
+ default: "light"
162
+ },
163
+ /**
164
+ * @description whether Select is disabled
165
+ */
166
+ disabled: {
167
+ type: Boolean,
168
+ default: void 0
169
+ },
170
+ /**
171
+ * @description whether select can be cleared
172
+ */
173
+ clearable: Boolean,
174
+ /**
175
+ * @description whether Select is filterable
176
+ */
177
+ filterable: Boolean,
178
+ /**
179
+ * @description whether creating new items is allowed. To use this, `filterable` must be true
180
+ */
181
+ allowCreate: Boolean,
182
+ /**
183
+ * @description whether Select is loading data from server
184
+ */
185
+ loading: Boolean,
186
+ /**
187
+ * @description custom class name for Select's dropdown
188
+ */
189
+ popperClass: {
190
+ type: H([
191
+ String,
192
+ Array,
193
+ Object,
194
+ Boolean
195
+ ]),
196
+ default: ""
197
+ },
198
+ /**
199
+ * @description custom style for Select's dropdown
200
+ */
201
+ popperStyle: {
202
+ type: H([
203
+ String,
204
+ Array,
205
+ Object,
206
+ Boolean
207
+ ]),
208
+ default: void 0
209
+ },
210
+ /**
211
+ * @description [popper.js](https://popper.js.org/docs/v2/) parameters
212
+ */
213
+ popperOptions: {
214
+ type: H(Object),
215
+ default: () => ({})
216
+ },
217
+ /**
218
+ * @description whether options are loaded from server
219
+ */
220
+ remote: Boolean,
221
+ /**
222
+ * @description debounce delay during remote search, in milliseconds
223
+ */
224
+ debounce: {
225
+ type: Number,
226
+ default: 300
227
+ },
228
+ /**
229
+ * @description displayed text while loading data from server, default is 'Loading'
230
+ */
231
+ loadingText: String,
232
+ /**
233
+ * @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data'
234
+ */
235
+ noMatchText: String,
236
+ /**
237
+ * @description displayed text when there is no options, you can also use slot `empty`, default is 'No data'
238
+ */
239
+ noDataText: String,
240
+ /**
241
+ * @description function that gets called when the input value changes. Its parameter is the current input value. To use this, `filterable` must be true
242
+ */
243
+ remoteMethod: { type: H(Function) },
244
+ /**
245
+ * @description custom filter method, the first parameter is the current input value. To use this, `filterable` must be true
246
+ */
247
+ filterMethod: { type: H(Function) },
248
+ /**
249
+ * @description whether multiple-select is activated
250
+ */
251
+ multiple: Boolean,
252
+ /**
253
+ * @description maximum number of options user can select when `multiple` is `true`. No limit when set to 0
254
+ */
255
+ multipleLimit: {
256
+ type: Number,
257
+ default: 0
258
+ },
259
+ /**
260
+ * @description placeholder, default is 'Select'
261
+ */
262
+ placeholder: { type: String },
263
+ /**
264
+ * @description select first matching option on enter key. Use with `filterable` or `remote`
265
+ */
266
+ defaultFirstOption: Boolean,
267
+ /**
268
+ * @description when `multiple` and `filter` is true, whether to reserve current keyword after selecting an option
269
+ */
270
+ reserveKeyword: {
271
+ type: Boolean,
272
+ default: !0
273
+ },
274
+ /**
275
+ * @description unique identity key name for value, required when value is an object
276
+ */
277
+ valueKey: {
278
+ type: String,
279
+ default: "value"
280
+ },
281
+ /**
282
+ * @description whether to collapse tags to a text when multiple selecting
283
+ */
284
+ collapseTags: Boolean,
285
+ /**
286
+ * @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true
287
+ */
288
+ collapseTagsTooltip: Boolean,
289
+ /**
290
+ * @description configuration object for the collapse-tags tooltip. To use this, `collapse-tags` and `collapse-tags-tooltip` must be true
291
+ */
292
+ tagTooltip: {
293
+ type: H(Object),
294
+ default: () => ({})
295
+ },
296
+ /**
297
+ * @description the max tags number to be shown. To use this, `collapse-tags` must be true
298
+ */
299
+ maxCollapseTags: {
300
+ type: Number,
301
+ default: 1
302
+ },
303
+ /**
304
+ * @description whether select dropdown is teleported, if `true` it will be teleported to where `append-to` sets
305
+ */
306
+ teleported: yt.teleported,
307
+ /**
308
+ * @description when select dropdown is inactive and `persistent` is `false`, select dropdown will be destroyed
309
+ */
310
+ persistent: {
311
+ type: Boolean,
312
+ default: !0
313
+ },
314
+ /**
315
+ * @description custom clear icon component
316
+ */
317
+ clearIcon: {
318
+ type: wt,
319
+ default: Yl
320
+ },
321
+ /**
322
+ * @description whether the width of the dropdown is the same as the input
323
+ */
324
+ fitInputWidth: Boolean,
325
+ /**
326
+ * @description custom suffix icon component
327
+ */
328
+ suffixIcon: {
329
+ type: wt,
330
+ default: Jl
331
+ },
332
+ /**
333
+ * @description tag type
334
+ */
335
+ tagType: {
336
+ ...Et.type,
337
+ default: "info"
338
+ },
339
+ /**
340
+ * @description tag effect
341
+ */
342
+ tagEffect: {
343
+ ...Et.effect,
344
+ default: "light"
345
+ },
346
+ /**
347
+ * @description whether to trigger form validation
348
+ */
349
+ validateEvent: {
350
+ type: Boolean,
351
+ default: !0
352
+ },
353
+ /**
354
+ * @description in remote search method show suffix icon
355
+ */
356
+ remoteShowSuffix: Boolean,
357
+ /**
358
+ * @description determines whether the arrow is displayed
359
+ */
360
+ showArrow: {
361
+ type: Boolean,
362
+ default: !0
363
+ },
364
+ /**
365
+ * @description offset of the dropdown
366
+ */
367
+ offset: {
368
+ type: Number,
369
+ default: 12
370
+ },
371
+ /**
372
+ * @description position of dropdown
373
+ */
374
+ placement: {
375
+ type: H(String),
376
+ values: Dl,
377
+ default: "bottom-start"
378
+ },
379
+ /**
380
+ * @description list of possible positions for dropdown
381
+ */
382
+ fallbackPlacements: {
383
+ type: H(Array),
384
+ default: [
385
+ "bottom-start",
386
+ "top-start",
387
+ "right",
388
+ "left"
389
+ ]
390
+ },
391
+ /**
392
+ * @description tabindex for input
393
+ */
394
+ tabindex: {
395
+ type: [String, Number],
396
+ default: 0
397
+ },
398
+ /**
399
+ * @description which element the selection dropdown appends to
400
+ */
401
+ appendTo: yt.appendTo,
402
+ options: { type: H(Array) },
403
+ props: {
404
+ type: H(Object),
405
+ default: () => Qe
406
+ },
407
+ ...zl,
408
+ ...Ml(["ariaLabel"])
409
+ }), yn = {
410
+ [ve]: (e) => !0,
411
+ [Rt]: (e) => !0,
412
+ "popup-scroll": Ct.scroll,
413
+ "end-reached": Ct["end-reached"],
414
+ "remove-tag": (e) => !0,
415
+ "visible-change": (e) => !0,
416
+ focus: (e) => e instanceof FocusEvent,
417
+ blur: (e) => e instanceof FocusEvent,
418
+ clear: () => !0
419
+ }, qe = "ElOption", Sn = Dt({
420
+ /**
421
+ * @description value of option
422
+ */
423
+ value: {
424
+ type: [
425
+ String,
426
+ Number,
427
+ Boolean,
428
+ Object
429
+ ],
430
+ required: !0
431
+ },
432
+ /**
433
+ * @description label of option, same as `value` if omitted
434
+ */
435
+ label: { type: [String, Number] },
436
+ created: Boolean,
437
+ /**
438
+ * @description whether option is disabled
439
+ */
440
+ disabled: Boolean
441
+ });
442
+ function On(e, n) {
443
+ const a = Le(Pe);
444
+ a || Sl(qe, "usage: <el-select><el-option /></el-select/>");
445
+ const u = Le(Ft, { disabled: !1 }), r = p(() => g(x(a.props.modelValue), e.value)), d = p(() => {
446
+ if (a.props.multiple) {
447
+ const b = x(a.props.modelValue ?? []);
448
+ return !r.value && b.length >= a.props.multipleLimit && a.props.multipleLimit > 0;
449
+ } else
450
+ return !1;
451
+ }), f = p(() => e.label ?? (Y(e.value) ? "" : e.value)), l = p(() => e.value || e.label || ""), E = p(() => e.disabled || n.groupDisabled || d.value), v = Fe(), g = (b = [], y) => {
452
+ if (Y(e.value)) {
453
+ const w = a.props.valueKey;
454
+ return b && b.some((h) => Bl(A(h, w)) === A(y, w));
455
+ } else
456
+ return b && b.includes(y);
457
+ }, T = () => {
458
+ E.value || (a.states.hoveringIndex = a.optionsArray.indexOf(v.proxy));
459
+ }, C = (b) => {
460
+ n.visible = new RegExp(mn(b), "i").test(String(f.value)) || e.created;
461
+ };
462
+ return U(() => f.value, () => {
463
+ !e.created && !a.props.remote && a.setSelected();
464
+ }), U(() => e.value, (b, y) => {
465
+ const { remote: w, valueKey: h } = a.props;
466
+ if ((w ? b !== y : !le(b, y)) && (a.onOptionDestroy(y, v.proxy), a.onOptionCreate(v.proxy)), !e.created && !w) {
467
+ if (h && Y(b) && Y(y) && b[h] === y[h])
468
+ return;
469
+ a.setSelected();
470
+ }
471
+ }), U(() => u.disabled, () => {
472
+ n.groupDisabled = u.disabled;
473
+ }, { immediate: !0 }), {
474
+ select: a,
475
+ currentLabel: f,
476
+ currentValue: l,
477
+ itemSelected: r,
478
+ isDisabled: E,
479
+ hoverItem: T,
480
+ updateOption: C
481
+ };
482
+ }
483
+ var wn = he({
484
+ name: qe,
485
+ componentName: qe,
486
+ props: Sn,
487
+ setup(e) {
488
+ const n = ge("select"), a = $t(), u = p(() => [
489
+ n.be("dropdown", "item"),
490
+ n.is("disabled", Ge(E)),
491
+ n.is("selected", Ge(l)),
492
+ n.is("hovering", Ge(b))
493
+ ]), r = me({
494
+ index: -1,
495
+ groupDisabled: !1,
496
+ visible: !0,
497
+ hover: !1
498
+ }), d = je ? null : "mousemove", { currentLabel: f, itemSelected: l, isDisabled: E, select: v, hoverItem: g, updateOption: T } = On(e, r), { visible: C, hover: b } = Xe(r), y = Fe().proxy;
499
+ v.onOptionCreate(y), Lt(() => {
500
+ const M = y.value;
501
+ q(() => {
502
+ const { selected: c } = v.states, i = c.some((V) => V.value === y.value);
503
+ v.states.cachedOptions.get(M) === y && !i && v.states.cachedOptions.delete(M);
504
+ }), v.onOptionDestroy(M, y);
505
+ });
506
+ function w() {
507
+ E.value || v.handleOptionSelect(y);
508
+ }
509
+ return {
510
+ ns: n,
511
+ id: a,
512
+ containerKls: u,
513
+ currentLabel: f,
514
+ itemSelected: l,
515
+ isDisabled: E,
516
+ select: v,
517
+ visible: C,
518
+ hover: b,
519
+ states: r,
520
+ mouseMoveEventName: d,
521
+ hoverItem: g,
522
+ handleMousedown: (M) => {
523
+ let c = M.target;
524
+ const i = M.currentTarget;
525
+ for (; c && c !== i; ) {
526
+ if (Ol(c))
527
+ return;
528
+ c = c.parentElement;
529
+ }
530
+ M.preventDefault();
531
+ },
532
+ updateOption: T,
533
+ selectOptionClick: w
534
+ };
535
+ }
536
+ });
537
+ const Cn = [
538
+ "id",
539
+ "aria-disabled",
540
+ "aria-selected"
541
+ ];
542
+ function En(e, n, a, u, r, d) {
543
+ return Be((m(), D("li", Re({
544
+ id: e.id,
545
+ class: e.containerKls,
546
+ role: "option",
547
+ "aria-disabled": e.isDisabled || void 0,
548
+ "aria-selected": e.itemSelected
549
+ }, { [Bt(e.mouseMoveEventName)]: n[0] || (n[0] = (...f) => e.hoverItem && e.hoverItem(...f)) }, {
550
+ onMousedown: n[1] || (n[1] = (...f) => e.handleMousedown && e.handleMousedown(...f)),
551
+ onClick: n[2] || (n[2] = oe((...f) => e.selectOptionClick && e.selectOptionClick(...f), ["stop"]))
552
+ }), [P(e.$slots, "default", {}, () => [N("span", null, X(e.currentLabel), 1)])], 16, Cn)), [[Ye, e.visible]]);
553
+ }
554
+ var Ze = /* @__PURE__ */ Ne(wn, [["render", En]]), Tn = he({
555
+ name: "ElOptionGroup",
556
+ componentName: "ElOptionGroup",
557
+ props: {
558
+ /**
559
+ * @description name of the group
560
+ */
561
+ label: String,
562
+ /**
563
+ * @description whether to disable all options in this group
564
+ */
565
+ disabled: Boolean
566
+ },
567
+ setup(e) {
568
+ const n = ge("select"), a = R(), u = Fe(), r = R([]);
569
+ Nt(Ft, me({ ...Xe(e) }));
570
+ const d = p(() => r.value.some((v) => v.visible === !0)), f = (v) => {
571
+ var g;
572
+ return v.type.name === "ElOption" && !!((g = v.component) != null && g.proxy);
573
+ }, l = (v) => {
574
+ const g = x(v), T = [];
575
+ return g.forEach((C) => {
576
+ var b;
577
+ Nl(C) && (f(C) ? T.push(C.component.proxy) : j(C.children) && C.children.length ? T.push(...l(C.children)) : (b = C.component) != null && b.subTree && T.push(...l(C.component.subTree)));
578
+ }), T;
579
+ }, E = () => {
580
+ r.value = l(u.subTree);
581
+ };
582
+ return Je(() => {
583
+ E();
584
+ }), Kl(a, E, {
585
+ attributes: !0,
586
+ subtree: !0,
587
+ childList: !0
588
+ }), {
589
+ groupRef: a,
590
+ visible: d,
591
+ ns: n
592
+ };
593
+ }
594
+ });
595
+ function Vn(e, n, a, u, r, d) {
596
+ return Be((m(), D("ul", {
597
+ ref: "groupRef",
598
+ class: O(e.ns.be("group", "wrap"))
599
+ }, [N("li", { class: O(e.ns.be("group", "title")) }, X(e.label), 3), N("li", null, [N("ul", { class: O(e.ns.b("group")) }, [P(e.$slots, "default")], 2)])], 2)), [[Ye, e.visible]]);
600
+ }
601
+ var xe = /* @__PURE__ */ Ne(Tn, [["render", Vn]]), In = he({
602
+ name: "ElSelectDropdown",
603
+ componentName: "ElSelectDropdown",
604
+ setup() {
605
+ const e = Le(Pe), n = ge("select"), a = p(() => e.props.popperClass), u = p(() => e.props.multiple), r = p(() => e.props.fitInputWidth), d = R("");
606
+ function f() {
607
+ var E;
608
+ const l = (E = e.selectRef) == null ? void 0 : E.offsetWidth;
609
+ l ? d.value = `${l - 2}px` : d.value = "";
610
+ }
611
+ return Je(() => {
612
+ f(), te(e.selectRef, f);
613
+ }), {
614
+ ns: n,
615
+ minWidth: d,
616
+ popperClass: a,
617
+ isMultiple: u,
618
+ isFitInputWidth: r
619
+ };
620
+ }
621
+ });
622
+ function kn(e, n, a, u, r, d) {
623
+ return m(), D("div", {
624
+ class: O([
625
+ e.ns.b("dropdown"),
626
+ e.ns.is("multiple", e.isMultiple),
627
+ e.popperClass
628
+ ]),
629
+ style: $e({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
630
+ }, [
631
+ e.$slots.header ? (m(), D("div", {
632
+ key: 0,
633
+ class: O(e.ns.be("dropdown", "header"))
634
+ }, [P(e.$slots, "header")], 2)) : z("v-if", !0),
635
+ P(e.$slots, "default"),
636
+ e.$slots.footer ? (m(), D("div", {
637
+ key: 1,
638
+ class: O(e.ns.be("dropdown", "footer"))
639
+ }, [P(e.$slots, "footer")], 2)) : z("v-if", !0)
640
+ ], 6);
641
+ }
642
+ var Dn = /* @__PURE__ */ Ne(In, [["render", kn]]);
643
+ const Mn = (e, n) => {
644
+ const { t: a } = $l(), u = Fl(), r = $t(), d = ge("select"), f = ge("input"), l = me({
645
+ inputValue: "",
646
+ options: /* @__PURE__ */ new Map(),
647
+ cachedOptions: /* @__PURE__ */ new Map(),
648
+ optionValues: [],
649
+ selected: [],
650
+ selectionWidth: 0,
651
+ collapseItemWidth: 0,
652
+ selectedLabel: "",
653
+ hoveringIndex: -1,
654
+ previousQuery: null,
655
+ inputHovering: !1,
656
+ menuVisibleOnFocus: !1,
657
+ isBeforeHide: !1
658
+ }), E = R(), v = R(), g = R(), T = R(), C = R(), b = R(), y = R(), w = R(), h = R(), M = R(), c = R(), i = R(!1), V = R(), Q = R(!1), { form: $, formItem: F } = Gl(), { inputId: ye } = Ul(e, { formItemContext: F }), { valueOnClear: Se, isEmptyValue: Oe } = Hl(e), { isComposing: ne, handleCompositionStart: we, handleCompositionUpdate: L, handleCompositionEnd: ae } = tn({ afterComposition: (t) => it(t) }), se = jl(), { wrapperRef: _e, isFocused: We, handleBlur: Pt } = ln(C, {
659
+ disabled: se,
660
+ afterFocus() {
661
+ e.automaticDropdown && !i.value && (i.value = !0, l.menuVisibleOnFocus = !0);
662
+ },
663
+ beforeBlur(t) {
664
+ var o, s;
665
+ return ((o = g.value) == null ? void 0 : o.isFocusInsideContent(t)) || ((s = T.value) == null ? void 0 : s.isFocusInsideContent(t));
666
+ },
667
+ afterBlur() {
668
+ var t;
669
+ i.value = !1, l.menuVisibleOnFocus = !1, e.validateEvent && ((t = F == null ? void 0 : F.validate) == null || t.call(F, "blur").catch(ht));
670
+ }
671
+ }), ze = p(() => j(e.modelValue) ? e.modelValue.length > 0 : !Oe(e.modelValue)), Wt = p(() => ($ == null ? void 0 : $.statusIcon) ?? !1), zt = p(() => e.clearable && !se.value && ze.value && (We.value || l.inputHovering)), et = p(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), Ht = p(() => d.is("reverse", !!(et.value && i.value))), He = p(() => (F == null ? void 0 : F.validateState) || ""), At = p(() => He.value && Ql[He.value]), Kt = p(() => e.remote ? e.debounce : 0), Gt = p(() => e.remote && !l.inputValue && l.options.size === 0), Ut = p(() => e.loading ? e.loadingText || a("el.select.loading") : e.filterable && l.inputValue && l.options.size > 0 && ie.value === 0 ? e.noMatchText || a("el.select.noMatch") : l.options.size === 0 ? e.noDataText || a("el.select.noData") : null), ie = p(() => B.value.filter((t) => t.visible).length), B = p(() => {
672
+ const t = Array.from(l.options.values()), o = [];
673
+ return l.optionValues.forEach((s) => {
674
+ const S = t.findIndex((I) => I.value === s);
675
+ S > -1 && o.push(t[S]);
676
+ }), o.length >= t.length ? o : t;
677
+ }), jt = p(() => Array.from(l.cachedOptions.values())), Qt = p(() => {
678
+ const t = B.value.filter((o) => !o.created).some((o) => o.currentLabel === l.inputValue);
679
+ return e.filterable && e.allowCreate && l.inputValue !== "" && !t;
680
+ }), tt = () => {
681
+ e.filterable && fe(e.filterMethod) || e.filterable && e.remote && fe(e.remoteMethod) || B.value.forEach((t) => {
682
+ var o;
683
+ (o = t.updateOption) == null || o.call(t, l.inputValue);
684
+ });
685
+ }, lt = ql(), qt = p(() => ["small"].includes(lt.value) ? "small" : "default"), nt = p({
686
+ get() {
687
+ return i.value && (e.loading || !Gt.value || e.remote && !!u.empty) && (!Q.value || !wl(l.previousQuery) || l.options.size > 0);
688
+ },
689
+ set(t) {
690
+ i.value = t;
691
+ }
692
+ }), Xt = p(() => {
693
+ if (e.multiple && !De(e.modelValue))
694
+ return x(e.modelValue).length === 0 && !l.inputValue;
695
+ const t = j(e.modelValue) ? e.modelValue[0] : e.modelValue;
696
+ return e.filterable || De(t) ? !l.inputValue : !0;
697
+ }), Yt = p(() => {
698
+ const t = e.placeholder ?? a("el.select.placeholder");
699
+ return e.multiple || !ze.value ? t : l.selectedLabel;
700
+ }), Jt = je ? null : "mouseenter";
701
+ U(() => e.modelValue, (t, o) => {
702
+ e.multiple && e.filterable && !e.reserveKeyword && (l.inputValue = "", Ce("")), Ee(), !le(t, o) && e.validateEvent && (F == null || F.validate("change").catch(ht));
703
+ }, {
704
+ flush: "post",
705
+ deep: !0
706
+ }), U(() => i.value, (t) => {
707
+ t ? Ce(l.inputValue) : (l.inputValue = "", l.previousQuery = null, l.isBeforeHide = !0, l.menuVisibleOnFocus = !1);
708
+ }), U(() => l.options.entries(), () => {
709
+ kt && (Ee(), e.defaultFirstOption && (e.filterable || e.remote) && ie.value && ot());
710
+ }, { flush: "post" }), U([() => l.hoveringIndex, B], ([t]) => {
711
+ Cl(t) && t > -1 ? V.value = B.value[t] || {} : V.value = {}, B.value.forEach((o) => {
712
+ o.hover = V.value === o;
713
+ });
714
+ }), Pl(() => {
715
+ l.isBeforeHide || tt();
716
+ });
717
+ const Ce = (t) => {
718
+ l.previousQuery === t || ne.value || (l.previousQuery = t, e.filterable && fe(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && fe(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && ie.value ? q(ot) : q(Zt));
719
+ }, ot = () => {
720
+ const t = B.value.filter((S) => S.visible && !S.disabled && !S.states.groupDisabled), o = t.find((S) => S.created), s = t[0];
721
+ l.hoveringIndex = pt(B.value.map((S) => S.value), o || s);
722
+ }, Ee = () => {
723
+ if (e.multiple)
724
+ l.selectedLabel = "";
725
+ else {
726
+ const o = Ae(j(e.modelValue) ? e.modelValue[0] : e.modelValue);
727
+ l.selectedLabel = o.currentLabel, l.selected = [o];
728
+ return;
729
+ }
730
+ const t = [];
731
+ De(e.modelValue) || x(e.modelValue).forEach((o) => {
732
+ t.push(Ae(o));
733
+ }), l.selected = t;
734
+ }, Ae = (t) => {
735
+ let o;
736
+ const s = El(t);
737
+ for (let I = l.cachedOptions.size - 1; I >= 0; I--) {
738
+ const k = jt.value[I];
739
+ if (s ? A(k.value, e.valueKey) === A(t, e.valueKey) : k.value === t) {
740
+ o = {
741
+ index: B.value.filter((_) => !_.created).indexOf(k),
742
+ value: t,
743
+ currentLabel: k.currentLabel,
744
+ get isDisabled() {
745
+ return k.isDisabled;
746
+ }
747
+ };
748
+ break;
749
+ }
750
+ }
751
+ if (o)
752
+ return o;
753
+ const S = l.selected.find((I) => s ? A(I.value, e.valueKey) === A(t, e.valueKey) : I.value === t);
754
+ return {
755
+ index: -1,
756
+ value: t,
757
+ currentLabel: s ? t.label : S ? S.currentLabel : t ?? ""
758
+ };
759
+ }, Zt = () => {
760
+ const t = l.selected.length;
761
+ if (t > 0) {
762
+ const o = l.selected[t - 1];
763
+ l.hoveringIndex = B.value.findIndex((s) => Ve(o) === Ve(s));
764
+ } else
765
+ l.hoveringIndex = -1;
766
+ }, xt = () => {
767
+ l.selectionWidth = Number.parseFloat(window.getComputedStyle(v.value).width);
768
+ }, _t = () => {
769
+ l.collapseItemWidth = M.value.getBoundingClientRect().width;
770
+ }, Ke = () => {
771
+ var t, o;
772
+ (o = (t = g.value) == null ? void 0 : t.updatePopper) == null || o.call(t);
773
+ }, at = () => {
774
+ var t, o;
775
+ (o = (t = T.value) == null ? void 0 : t.updatePopper) == null || o.call(t);
776
+ }, st = () => {
777
+ l.inputValue.length > 0 && !i.value && (i.value = !0), Ce(l.inputValue);
778
+ }, it = (t) => {
779
+ if (l.inputValue = t.target.value, e.remote)
780
+ Q.value = !0, rt();
781
+ else
782
+ return st();
783
+ }, rt = Tl(() => {
784
+ st(), Q.value = !1;
785
+ }, Kt), re = (t) => {
786
+ le(e.modelValue, t) || n(Rt, t);
787
+ }, el = (t) => fn(t, (o) => {
788
+ const s = l.cachedOptions.get(o);
789
+ return !(s != null && s.disabled) && !(s != null && s.states.groupDisabled);
790
+ }), ut = (t) => {
791
+ const o = St(t);
792
+ if (e.multiple && o !== K.delete && t.target.value.length <= 0) {
793
+ const s = x(e.modelValue).slice(), S = el(s);
794
+ if (S < 0)
795
+ return;
796
+ const I = s[S];
797
+ s.splice(S, 1), n(ve, s), re(s), n("remove-tag", I);
798
+ }
799
+ }, tl = (t, o) => {
800
+ const s = l.selected.indexOf(o);
801
+ if (s > -1 && !se.value) {
802
+ const S = x(e.modelValue).slice();
803
+ S.splice(s, 1), n(ve, S), re(S), n("remove-tag", o.value);
804
+ }
805
+ t.stopPropagation(), Te();
806
+ }, dt = (t) => {
807
+ t.stopPropagation();
808
+ const o = e.multiple ? [] : Se.value;
809
+ if (e.multiple)
810
+ for (const s of l.selected)
811
+ s.isDisabled && o.push(s.value);
812
+ n(ve, o), re(o), l.hoveringIndex = -1, i.value = !1, n("clear"), Te();
813
+ }, ct = (t) => {
814
+ if (e.multiple) {
815
+ const o = x(e.modelValue ?? []).slice(), s = pt(o, t);
816
+ s > -1 ? o.splice(s, 1) : (e.multipleLimit <= 0 || o.length < e.multipleLimit) && o.push(t.value), n(ve, o), re(o), t.created && Ce(""), e.filterable && (t.created || !e.reserveKeyword) && (l.inputValue = "");
817
+ } else
818
+ !le(e.modelValue, t.value) && n("update:modelValue", t.value), re(t.value), i.value = !1;
819
+ Te(), !i.value && q(() => {
820
+ ue(t);
821
+ });
822
+ }, pt = (t, o) => De(o) ? -1 : Y(o.value) ? t.findIndex((s) => le(A(s, e.valueKey), Ve(o))) : t.indexOf(o.value), ue = (t) => {
823
+ var S, I, k, _, bt;
824
+ const o = j(t) ? t[t.length - 1] : t;
825
+ let s = null;
826
+ if (!Vl(o == null ? void 0 : o.value)) {
827
+ const ce = B.value.filter((hl) => hl.value === o.value);
828
+ ce.length > 0 && (s = ce[0].$el);
829
+ }
830
+ if (g.value && s) {
831
+ const ce = (_ = (k = (I = (S = g.value) == null ? void 0 : S.popperRef) == null ? void 0 : I.contentRef) == null ? void 0 : k.querySelector) == null ? void 0 : _.call(k, `.${d.be("dropdown", "wrap")}`);
832
+ ce && en(ce, s);
833
+ }
834
+ (bt = c.value) == null || bt.handleScroll();
835
+ }, ll = (t) => {
836
+ l.options.set(t.value, t), l.cachedOptions.set(t.value, t);
837
+ }, nl = (t, o) => {
838
+ l.options.get(t) === o && l.options.delete(t);
839
+ }, ol = p(() => {
840
+ var t, o;
841
+ return (o = (t = g.value) == null ? void 0 : t.popperRef) == null ? void 0 : o.contentRef;
842
+ }), al = () => {
843
+ l.isBeforeHide = !1, q(() => {
844
+ var t;
845
+ (t = c.value) == null || t.update(), ue(l.selected);
846
+ });
847
+ }, Te = () => {
848
+ var t;
849
+ (t = C.value) == null || t.focus();
850
+ }, sl = () => {
851
+ var t;
852
+ if (i.value) {
853
+ i.value = !1, q(() => {
854
+ var o;
855
+ return (o = C.value) == null ? void 0 : o.blur();
856
+ });
857
+ return;
858
+ }
859
+ (t = C.value) == null || t.blur();
860
+ }, il = (t) => {
861
+ dt(t);
862
+ }, rl = (t) => {
863
+ if (i.value = !1, We.value) {
864
+ const o = new FocusEvent("blur", t);
865
+ q(() => Pt(o));
866
+ }
867
+ }, ft = () => {
868
+ l.inputValue.length > 0 ? l.inputValue = "" : i.value = !1;
869
+ }, vt = (t) => {
870
+ var o;
871
+ se.value || e.filterable && i.value && t && !((o = y.value) != null && o.contains(t.target)) || (je && (l.inputHovering = !0), l.menuVisibleOnFocus ? l.menuVisibleOnFocus = !1 : i.value = !i.value);
872
+ }, gt = () => {
873
+ if (!i.value)
874
+ vt();
875
+ else {
876
+ const t = B.value[l.hoveringIndex];
877
+ t && !t.isDisabled && ct(t);
878
+ }
879
+ }, Ve = (t) => Y(t.value) ? A(t.value, e.valueKey) : t.value, ul = p(() => B.value.filter((t) => t.visible).every((t) => t.isDisabled)), dl = p(() => e.multiple ? e.collapseTags ? l.selected.slice(0, e.maxCollapseTags) : l.selected : []), cl = p(() => e.multiple ? e.collapseTags ? l.selected.slice(e.maxCollapseTags) : [] : []), Ie = (t) => {
880
+ if (!i.value) {
881
+ i.value = !0;
882
+ return;
883
+ }
884
+ if (!(l.options.size === 0 || ie.value === 0 || ne.value) && !ul.value) {
885
+ t === "next" ? (l.hoveringIndex++, l.hoveringIndex === l.options.size && (l.hoveringIndex = 0)) : t === "prev" && (l.hoveringIndex--, l.hoveringIndex < 0 && (l.hoveringIndex = l.options.size - 1));
886
+ const o = B.value[l.hoveringIndex];
887
+ (o.isDisabled || !o.visible) && Ie(t), q(() => ue(V.value));
888
+ }
889
+ }, mt = (t, o, s, S) => {
890
+ for (let I = o; I >= 0 && I < S; I += s) {
891
+ const k = t[I];
892
+ if (!(k != null && k.isDisabled) && (k != null && k.visible))
893
+ return I;
894
+ }
895
+ return null;
896
+ }, ke = (t, o) => {
897
+ const s = l.options.size;
898
+ if (s === 0)
899
+ return;
900
+ const S = an(t, 0, s - 1), I = B.value, k = o === "up" ? -1 : 1, _ = mt(I, S, k, s) ?? mt(I, S - k, -k, s);
901
+ _ != null && (l.hoveringIndex = _, q(() => ue(V.value)));
902
+ }, pl = (t) => {
903
+ const o = St(t);
904
+ let s = !0;
905
+ switch (o) {
906
+ case K.up:
907
+ Ie("prev");
908
+ break;
909
+ case K.down:
910
+ Ie("next");
911
+ break;
912
+ case K.enter:
913
+ case K.numpadEnter:
914
+ ne.value || gt();
915
+ break;
916
+ case K.esc:
917
+ ft();
918
+ break;
919
+ case K.backspace:
920
+ s = !1, ut(t);
921
+ return;
922
+ case K.home:
923
+ if (!i.value)
924
+ return;
925
+ ke(0, "down");
926
+ break;
927
+ case K.end:
928
+ if (!i.value)
929
+ return;
930
+ ke(l.options.size - 1, "up");
931
+ break;
932
+ case K.pageUp:
933
+ if (!i.value)
934
+ return;
935
+ ke(l.hoveringIndex - 10, "up");
936
+ break;
937
+ case K.pageDown:
938
+ if (!i.value)
939
+ return;
940
+ ke(l.hoveringIndex + 10, "down");
941
+ break;
942
+ default:
943
+ s = !1;
944
+ break;
945
+ }
946
+ s && (t.preventDefault(), t.stopPropagation());
947
+ }, fl = () => {
948
+ if (!v.value)
949
+ return 0;
950
+ const t = window.getComputedStyle(v.value);
951
+ return Number.parseFloat(t.gap || "6px");
952
+ }, vl = p(() => {
953
+ const t = fl(), o = e.filterable ? t + 11 : 0;
954
+ return { maxWidth: `${M.value && e.maxCollapseTags === 1 ? l.selectionWidth - l.collapseItemWidth - t - o : l.selectionWidth - o}px` };
955
+ }), gl = p(() => ({ maxWidth: `${l.selectionWidth}px` })), ml = (t) => {
956
+ n("popup-scroll", t);
957
+ }, bl = (t) => {
958
+ n("end-reached", t);
959
+ };
960
+ te(v, xt), te(_e, Ke), te(h, at), te(M, _t);
961
+ let de;
962
+ return U(() => nt.value, (t) => {
963
+ t ? de = te(w, Ke).stop : (de == null || de(), de = void 0), n("visible-change", t);
964
+ }), Je(() => {
965
+ Ee();
966
+ }), {
967
+ inputId: ye,
968
+ contentId: r,
969
+ nsSelect: d,
970
+ nsInput: f,
971
+ states: l,
972
+ isFocused: We,
973
+ expanded: i,
974
+ optionsArray: B,
975
+ hoverOption: V,
976
+ selectSize: lt,
977
+ filteredOptionsCount: ie,
978
+ updateTooltip: Ke,
979
+ updateTagTooltip: at,
980
+ debouncedOnInputChange: rt,
981
+ onInput: it,
982
+ deletePrevTag: ut,
983
+ deleteTag: tl,
984
+ deleteSelected: dt,
985
+ handleOptionSelect: ct,
986
+ scrollToOption: ue,
987
+ hasModelValue: ze,
988
+ shouldShowPlaceholder: Xt,
989
+ currentPlaceholder: Yt,
990
+ mouseEnterEventName: Jt,
991
+ needStatusIcon: Wt,
992
+ showClearBtn: zt,
993
+ iconComponent: et,
994
+ iconReverse: Ht,
995
+ validateState: He,
996
+ validateIcon: At,
997
+ showNewOption: Qt,
998
+ updateOptions: tt,
999
+ collapseTagSize: qt,
1000
+ setSelected: Ee,
1001
+ selectDisabled: se,
1002
+ emptyText: Ut,
1003
+ handleCompositionStart: we,
1004
+ handleCompositionUpdate: L,
1005
+ handleCompositionEnd: ae,
1006
+ handleKeydown: pl,
1007
+ onOptionCreate: ll,
1008
+ onOptionDestroy: nl,
1009
+ handleMenuEnter: al,
1010
+ focus: Te,
1011
+ blur: sl,
1012
+ handleClearClick: il,
1013
+ handleClickOutside: rl,
1014
+ handleEsc: ft,
1015
+ toggleMenu: vt,
1016
+ selectOption: gt,
1017
+ getValueKey: Ve,
1018
+ navigateOptions: Ie,
1019
+ dropdownMenuVisible: nt,
1020
+ showTagList: dl,
1021
+ collapseTagList: cl,
1022
+ popupScroll: ml,
1023
+ getOption: Ae,
1024
+ endReached: bl,
1025
+ tagStyle: vl,
1026
+ collapseTagStyle: gl,
1027
+ popperRef: ol,
1028
+ inputRef: C,
1029
+ tooltipRef: g,
1030
+ tagTooltipRef: T,
1031
+ prefixRef: b,
1032
+ suffixRef: y,
1033
+ selectRef: E,
1034
+ wrapperRef: _e,
1035
+ selectionRef: v,
1036
+ scrollbarRef: c,
1037
+ menuRef: w,
1038
+ tagMenuRef: h,
1039
+ collapseItemRef: M
1040
+ };
1041
+ };
1042
+ var Rn = he({
1043
+ name: "ElOptions",
1044
+ setup(e, { slots: n }) {
1045
+ const a = Le(Pe);
1046
+ let u = [];
1047
+ return () => {
1048
+ var l, E;
1049
+ const r = (l = n.default) == null ? void 0 : l.call(n), d = [];
1050
+ function f(v) {
1051
+ j(v) && v.forEach((g) => {
1052
+ var C, b, y, w;
1053
+ const T = (C = (g == null ? void 0 : g.type) || {}) == null ? void 0 : C.name;
1054
+ T === "ElOptionGroup" ? f(!Il(g.children) && !j(g.children) && fe((b = g.children) == null ? void 0 : b.default) ? (y = g.children) == null ? void 0 : y.default() : g.children) : T === "ElOption" ? d.push((w = g.props) == null ? void 0 : w.value) : j(g.children) && f(g.children);
1055
+ });
1056
+ }
1057
+ return r.length && f((E = r[0]) == null ? void 0 : E.children), le(d, u) || (u = d, a && (a.states.optionValues = d)), r;
1058
+ };
1059
+ }
1060
+ });
1061
+ const It = "ElSelect", be = /* @__PURE__ */ new WeakMap(), $n = (e) => (...n) => {
1062
+ var r, d;
1063
+ const a = n[0];
1064
+ if (!a || a.includes('Slot "default" invoked outside of the render function') && ((r = n[2]) != null && r.includes("ElTreeSelect")))
1065
+ return;
1066
+ const u = (d = be.get(e)) == null ? void 0 : d.originalWarnHandler;
1067
+ if (u) {
1068
+ u(...n);
1069
+ return;
1070
+ }
1071
+ console.warn(...n);
1072
+ }, Ln = (e) => {
1073
+ let n = be.get(e);
1074
+ return n || (n = {
1075
+ originalWarnHandler: e.config.warnHandler,
1076
+ handler: $n(e),
1077
+ count: 0
1078
+ }, be.set(e, n)), n;
1079
+ };
1080
+ var Bn = he({
1081
+ name: It,
1082
+ componentName: It,
1083
+ components: {
1084
+ ElSelectMenu: Dn,
1085
+ ElOption: Ze,
1086
+ ElOptions: Rn,
1087
+ ElOptionGroup: xe,
1088
+ ElTag: _l,
1089
+ ElScrollbar: xl,
1090
+ ElTooltip: Rl,
1091
+ ElIcon: Zl
1092
+ },
1093
+ directives: { ClickOutside: vn },
1094
+ props: hn,
1095
+ emits: yn,
1096
+ setup(e, { emit: n, slots: a }) {
1097
+ const u = Fe(), r = Ln(u.appContext);
1098
+ r.count += 1, u.appContext.config.warnHandler = r.handler;
1099
+ const d = p(() => {
1100
+ const { modelValue: c, multiple: i } = e, V = i ? [] : void 0;
1101
+ return j(c) ? i ? c : V : i ? V : c;
1102
+ }), f = me({
1103
+ ...Xe(e),
1104
+ modelValue: d
1105
+ }), l = Mn(f, n), { calculatorRef: E, inputStyle: v } = gn(), { getLabel: g, getValue: T, getOptions: C, getDisabled: b } = bn(e), y = (c) => ({
1106
+ label: g(c),
1107
+ value: T(c),
1108
+ disabled: b(c)
1109
+ }), w = (c) => c.reduce((i, V) => (i.push(V), V.children && V.children.length > 0 && i.push(...w(V.children)), i), []), h = (c) => {
1110
+ Xl(c || []).forEach((i) => {
1111
+ var V;
1112
+ if (Y(i) && (i.type.name === "ElOption" || i.type.name === "ElTree")) {
1113
+ const Q = i.type.name;
1114
+ if (Q === "ElTree")
1115
+ w(((V = i.props) == null ? void 0 : V.data) || []).forEach(($) => {
1116
+ $.currentLabel = $.label ?? (Y($.value) ? "" : $.value), l.onOptionCreate($);
1117
+ });
1118
+ else if (Q === "ElOption") {
1119
+ const $ = { ...i.props };
1120
+ $.currentLabel = $.label ?? (Y($.value) ? "" : $.value), l.onOptionCreate($);
1121
+ }
1122
+ }
1123
+ });
1124
+ };
1125
+ U(() => {
1126
+ var c;
1127
+ return [e.persistent || l.expanded.value || !a.default || (c = a.default) == null ? void 0 : c.call(a), d.value];
1128
+ }, () => {
1129
+ var c;
1130
+ e.persistent || l.expanded.value || a.default && (l.states.options.clear(), h((c = a.default) == null ? void 0 : c.call(a)));
1131
+ }, { immediate: !0 }), Nt(Pe, me({
1132
+ props: f,
1133
+ states: l.states,
1134
+ selectRef: l.selectRef,
1135
+ optionsArray: l.optionsArray,
1136
+ setSelected: l.setSelected,
1137
+ handleOptionSelect: l.handleOptionSelect,
1138
+ onOptionCreate: l.onOptionCreate,
1139
+ onOptionDestroy: l.onOptionDestroy
1140
+ }));
1141
+ const M = p(() => e.multiple ? l.states.selected.map((c) => c.currentLabel) : l.states.selectedLabel);
1142
+ return Lt(() => {
1143
+ const c = be.get(u.appContext);
1144
+ c && (c.count -= 1, c.count <= 0 && (u.appContext.config.warnHandler = c.originalWarnHandler, be.delete(u.appContext)));
1145
+ }), {
1146
+ ...l,
1147
+ modelValue: d,
1148
+ selectedLabel: M,
1149
+ calculatorRef: E,
1150
+ inputStyle: v,
1151
+ getLabel: g,
1152
+ getValue: T,
1153
+ getOptions: C,
1154
+ getDisabled: b,
1155
+ getOptionProps: y
1156
+ };
1157
+ }
1158
+ });
1159
+ const Nn = [
1160
+ "id",
1161
+ "value",
1162
+ "name",
1163
+ "disabled",
1164
+ "autocomplete",
1165
+ "tabindex",
1166
+ "readonly",
1167
+ "aria-activedescendant",
1168
+ "aria-controls",
1169
+ "aria-expanded",
1170
+ "aria-label"
1171
+ ], Fn = ["textContent"], Pn = { key: 1 };
1172
+ function Wn(e, n, a, u, r, d) {
1173
+ const f = J("el-tag"), l = J("el-tooltip"), E = J("el-icon"), v = J("el-option"), g = J("el-option-group"), T = J("el-options"), C = J("el-scrollbar"), b = J("el-select-menu"), y = Wl("click-outside");
1174
+ return Be((m(), D("div", Re({
1175
+ ref: "selectRef",
1176
+ class: [e.nsSelect.b(), e.nsSelect.m(e.selectSize)]
1177
+ }, { [Bt(e.mouseEnterEventName)]: n[11] || (n[11] = (w) => e.states.inputHovering = !0) }, { onMouseleave: n[12] || (n[12] = (w) => e.states.inputHovering = !1) }), [ee(l, {
1178
+ ref: "tooltipRef",
1179
+ visible: e.dropdownMenuVisible,
1180
+ placement: e.placement,
1181
+ teleported: e.teleported,
1182
+ "popper-class": [e.nsSelect.e("popper"), e.popperClass],
1183
+ "popper-style": e.popperStyle,
1184
+ "popper-options": e.popperOptions,
1185
+ "fallback-placements": e.fallbackPlacements,
1186
+ effect: e.effect,
1187
+ pure: "",
1188
+ trigger: "click",
1189
+ transition: `${e.nsSelect.namespace.value}-zoom-in-top`,
1190
+ "stop-popper-mouse-event": !1,
1191
+ "gpu-acceleration": !1,
1192
+ persistent: e.persistent,
1193
+ "append-to": e.appendTo,
1194
+ "show-arrow": e.showArrow,
1195
+ offset: e.offset,
1196
+ onBeforeShow: e.handleMenuEnter,
1197
+ onHide: n[10] || (n[10] = (w) => e.states.isBeforeHide = !1)
1198
+ }, {
1199
+ default: W(() => {
1200
+ var w;
1201
+ return [N("div", {
1202
+ ref: "wrapperRef",
1203
+ class: O([
1204
+ e.nsSelect.e("wrapper"),
1205
+ e.nsSelect.is("focused", e.isFocused),
1206
+ e.nsSelect.is("hovering", e.states.inputHovering),
1207
+ e.nsSelect.is("filterable", e.filterable),
1208
+ e.nsSelect.is("disabled", e.selectDisabled)
1209
+ ]),
1210
+ onClick: n[7] || (n[7] = oe((...h) => e.toggleMenu && e.toggleMenu(...h), ["prevent"]))
1211
+ }, [
1212
+ e.$slots.prefix ? (m(), D("div", {
1213
+ key: 0,
1214
+ ref: "prefixRef",
1215
+ class: O(e.nsSelect.e("prefix"))
1216
+ }, [P(e.$slots, "prefix")], 2)) : z("v-if", !0),
1217
+ N("div", {
1218
+ ref: "selectionRef",
1219
+ class: O([e.nsSelect.e("selection"), e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length)])
1220
+ }, [
1221
+ e.multiple ? P(e.$slots, "tag", {
1222
+ key: 0,
1223
+ data: e.states.selected,
1224
+ deleteTag: e.deleteTag,
1225
+ selectDisabled: e.selectDisabled
1226
+ }, () => {
1227
+ var h, M, c, i, V, Q, $, F, ye, Se, Oe, ne, we;
1228
+ return [(m(!0), D(pe, null, Me(e.showTagList, (L) => (m(), D("div", {
1229
+ key: e.getValueKey(L),
1230
+ class: O(e.nsSelect.e("selected-item"))
1231
+ }, [ee(f, {
1232
+ closable: !e.selectDisabled && !L.isDisabled,
1233
+ size: e.collapseTagSize,
1234
+ type: e.tagType,
1235
+ effect: e.tagEffect,
1236
+ "disable-transitions": "",
1237
+ style: $e(e.tagStyle),
1238
+ onClose: (ae) => e.deleteTag(ae, L)
1239
+ }, {
1240
+ default: W(() => [N("span", { class: O(e.nsSelect.e("tags-text")) }, [P(e.$slots, "label", {
1241
+ index: L.index,
1242
+ label: L.currentLabel,
1243
+ value: L.value
1244
+ }, () => [Ot(X(L.currentLabel), 1)])], 2)]),
1245
+ _: 2
1246
+ }, 1032, [
1247
+ "closable",
1248
+ "size",
1249
+ "type",
1250
+ "effect",
1251
+ "style",
1252
+ "onClose"
1253
+ ])], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (m(), G(l, {
1254
+ key: 0,
1255
+ ref: "tagTooltipRef",
1256
+ disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip,
1257
+ "fallback-placements": ((h = e.tagTooltip) == null ? void 0 : h.fallbackPlacements) ?? [
1258
+ "bottom",
1259
+ "top",
1260
+ "right",
1261
+ "left"
1262
+ ],
1263
+ effect: ((M = e.tagTooltip) == null ? void 0 : M.effect) ?? e.effect,
1264
+ placement: ((c = e.tagTooltip) == null ? void 0 : c.placement) ?? "bottom",
1265
+ "popper-class": ((i = e.tagTooltip) == null ? void 0 : i.popperClass) ?? e.popperClass,
1266
+ "popper-style": ((V = e.tagTooltip) == null ? void 0 : V.popperStyle) ?? e.popperStyle,
1267
+ teleported: ((Q = e.tagTooltip) == null ? void 0 : Q.teleported) ?? e.teleported,
1268
+ "append-to": (($ = e.tagTooltip) == null ? void 0 : $.appendTo) ?? e.appendTo,
1269
+ "popper-options": ((F = e.tagTooltip) == null ? void 0 : F.popperOptions) ?? e.popperOptions,
1270
+ transition: (ye = e.tagTooltip) == null ? void 0 : ye.transition,
1271
+ "show-after": (Se = e.tagTooltip) == null ? void 0 : Se.showAfter,
1272
+ "hide-after": (Oe = e.tagTooltip) == null ? void 0 : Oe.hideAfter,
1273
+ "auto-close": (ne = e.tagTooltip) == null ? void 0 : ne.autoClose,
1274
+ offset: (we = e.tagTooltip) == null ? void 0 : we.offset
1275
+ }, {
1276
+ default: W(() => [N("div", {
1277
+ ref: "collapseItemRef",
1278
+ class: O(e.nsSelect.e("selected-item"))
1279
+ }, [ee(f, {
1280
+ closable: !1,
1281
+ size: e.collapseTagSize,
1282
+ type: e.tagType,
1283
+ effect: e.tagEffect,
1284
+ "disable-transitions": "",
1285
+ style: $e(e.collapseTagStyle)
1286
+ }, {
1287
+ default: W(() => [N("span", { class: O(e.nsSelect.e("tags-text")) }, " + " + X(e.states.selected.length - e.maxCollapseTags), 3)]),
1288
+ _: 1
1289
+ }, 8, [
1290
+ "size",
1291
+ "type",
1292
+ "effect",
1293
+ "style"
1294
+ ])], 2)]),
1295
+ content: W(() => [N("div", {
1296
+ ref: "tagMenuRef",
1297
+ class: O(e.nsSelect.e("selection"))
1298
+ }, [(m(!0), D(pe, null, Me(e.collapseTagList, (L) => (m(), D("div", {
1299
+ key: e.getValueKey(L),
1300
+ class: O(e.nsSelect.e("selected-item"))
1301
+ }, [ee(f, {
1302
+ class: "in-tooltip",
1303
+ closable: !e.selectDisabled && !L.isDisabled,
1304
+ size: e.collapseTagSize,
1305
+ type: e.tagType,
1306
+ effect: e.tagEffect,
1307
+ "disable-transitions": "",
1308
+ onClose: (ae) => e.deleteTag(ae, L)
1309
+ }, {
1310
+ default: W(() => [N("span", { class: O(e.nsSelect.e("tags-text")) }, [P(e.$slots, "label", {
1311
+ index: L.index,
1312
+ label: L.currentLabel,
1313
+ value: L.value
1314
+ }, () => [Ot(X(L.currentLabel), 1)])], 2)]),
1315
+ _: 2
1316
+ }, 1032, [
1317
+ "closable",
1318
+ "size",
1319
+ "type",
1320
+ "effect",
1321
+ "onClose"
1322
+ ])], 2))), 128))], 2)]),
1323
+ _: 3
1324
+ }, 8, [
1325
+ "disabled",
1326
+ "fallback-placements",
1327
+ "effect",
1328
+ "placement",
1329
+ "popper-class",
1330
+ "popper-style",
1331
+ "teleported",
1332
+ "append-to",
1333
+ "popper-options",
1334
+ "transition",
1335
+ "show-after",
1336
+ "hide-after",
1337
+ "auto-close",
1338
+ "offset"
1339
+ ])) : z("v-if", !0)];
1340
+ }) : z("v-if", !0),
1341
+ N("div", { class: O([
1342
+ e.nsSelect.e("selected-item"),
1343
+ e.nsSelect.e("input-wrapper"),
1344
+ e.nsSelect.is("hidden", !e.filterable || e.selectDisabled || e.multiple && !e.states.inputValue && !e.isFocused)
1345
+ ]) }, [N("input", {
1346
+ id: e.inputId,
1347
+ ref: "inputRef",
1348
+ value: e.states.inputValue,
1349
+ type: "text",
1350
+ name: e.name,
1351
+ class: O([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]),
1352
+ disabled: e.selectDisabled,
1353
+ autocomplete: e.autocomplete,
1354
+ style: $e(e.inputStyle),
1355
+ tabindex: e.tabindex,
1356
+ role: "combobox",
1357
+ readonly: !e.filterable,
1358
+ spellcheck: "false",
1359
+ "aria-activedescendant": ((w = e.hoverOption) == null ? void 0 : w.id) || "",
1360
+ "aria-controls": e.contentId,
1361
+ "aria-expanded": e.dropdownMenuVisible,
1362
+ "aria-label": e.ariaLabel,
1363
+ "aria-autocomplete": "none",
1364
+ "aria-haspopup": "listbox",
1365
+ onKeydown: n[0] || (n[0] = (...h) => e.handleKeydown && e.handleKeydown(...h)),
1366
+ onCompositionstart: n[1] || (n[1] = (...h) => e.handleCompositionStart && e.handleCompositionStart(...h)),
1367
+ onCompositionupdate: n[2] || (n[2] = (...h) => e.handleCompositionUpdate && e.handleCompositionUpdate(...h)),
1368
+ onCompositionend: n[3] || (n[3] = (...h) => e.handleCompositionEnd && e.handleCompositionEnd(...h)),
1369
+ onInput: n[4] || (n[4] = (...h) => e.onInput && e.onInput(...h)),
1370
+ onChange: n[5] || (n[5] = oe(() => {
1371
+ }, ["stop"])),
1372
+ onClick: n[6] || (n[6] = oe((...h) => e.toggleMenu && e.toggleMenu(...h), ["stop"]))
1373
+ }, null, 46, Nn), e.filterable ? (m(), D("span", {
1374
+ key: 0,
1375
+ ref: "calculatorRef",
1376
+ "aria-hidden": "true",
1377
+ class: O(e.nsSelect.e("input-calculator")),
1378
+ textContent: X(e.states.inputValue)
1379
+ }, null, 10, Fn)) : z("v-if", !0)], 2),
1380
+ e.shouldShowPlaceholder ? (m(), D("div", {
1381
+ key: 1,
1382
+ class: O([
1383
+ e.nsSelect.e("selected-item"),
1384
+ e.nsSelect.e("placeholder"),
1385
+ e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue)
1386
+ ])
1387
+ }, [e.hasModelValue ? P(e.$slots, "label", {
1388
+ key: 0,
1389
+ index: e.getOption(e.modelValue).index,
1390
+ label: e.currentPlaceholder,
1391
+ value: e.modelValue
1392
+ }, () => [N("span", null, X(e.currentPlaceholder), 1)]) : (m(), D("span", Pn, X(e.currentPlaceholder), 1))], 2)) : z("v-if", !0)
1393
+ ], 2),
1394
+ N("div", {
1395
+ ref: "suffixRef",
1396
+ class: O(e.nsSelect.e("suffix"))
1397
+ }, [
1398
+ e.iconComponent && !e.showClearBtn ? (m(), G(E, {
1399
+ key: 0,
1400
+ class: O([
1401
+ e.nsSelect.e("caret"),
1402
+ e.nsSelect.e("icon"),
1403
+ e.iconReverse
1404
+ ])
1405
+ }, {
1406
+ default: W(() => [(m(), G(Ue(e.iconComponent)))]),
1407
+ _: 1
1408
+ }, 8, ["class"])) : z("v-if", !0),
1409
+ e.showClearBtn && e.clearIcon ? (m(), G(E, {
1410
+ key: 1,
1411
+ class: O([
1412
+ e.nsSelect.e("caret"),
1413
+ e.nsSelect.e("icon"),
1414
+ e.nsSelect.e("clear")
1415
+ ]),
1416
+ onClick: e.handleClearClick
1417
+ }, {
1418
+ default: W(() => [(m(), G(Ue(e.clearIcon)))]),
1419
+ _: 1
1420
+ }, 8, ["class", "onClick"])) : z("v-if", !0),
1421
+ e.validateState && e.validateIcon && e.needStatusIcon ? (m(), G(E, {
1422
+ key: 2,
1423
+ class: O([
1424
+ e.nsInput.e("icon"),
1425
+ e.nsInput.e("validateIcon"),
1426
+ e.nsInput.is("loading", e.validateState === "validating")
1427
+ ])
1428
+ }, {
1429
+ default: W(() => [(m(), G(Ue(e.validateIcon)))]),
1430
+ _: 1
1431
+ }, 8, ["class"])) : z("v-if", !0)
1432
+ ], 2)
1433
+ ], 2)];
1434
+ }),
1435
+ content: W(() => [ee(b, { ref: "menuRef" }, {
1436
+ default: W(() => [
1437
+ e.$slots.header ? (m(), D("div", {
1438
+ key: 0,
1439
+ class: O(e.nsSelect.be("dropdown", "header")),
1440
+ onClick: n[8] || (n[8] = oe(() => {
1441
+ }, ["stop"]))
1442
+ }, [P(e.$slots, "header")], 2)) : z("v-if", !0),
1443
+ Be(ee(C, {
1444
+ id: e.contentId,
1445
+ ref: "scrollbarRef",
1446
+ tag: "ul",
1447
+ "wrap-class": e.nsSelect.be("dropdown", "wrap"),
1448
+ "view-class": e.nsSelect.be("dropdown", "list"),
1449
+ class: O([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]),
1450
+ role: "listbox",
1451
+ "aria-label": e.ariaLabel,
1452
+ "aria-orientation": "vertical",
1453
+ onScroll: e.popupScroll,
1454
+ onEndReached: e.endReached
1455
+ }, {
1456
+ default: W(() => [e.showNewOption ? (m(), G(v, {
1457
+ key: 0,
1458
+ value: e.states.inputValue,
1459
+ created: !0
1460
+ }, null, 8, ["value"])) : z("v-if", !0), ee(T, null, {
1461
+ default: W(() => [P(e.$slots, "default", {}, () => [(m(!0), D(pe, null, Me(e.options, (w, h) => {
1462
+ var M;
1463
+ return m(), D(pe, { key: h }, [(M = e.getOptions(w)) != null && M.length ? (m(), G(g, {
1464
+ key: 0,
1465
+ label: e.getLabel(w),
1466
+ disabled: e.getDisabled(w)
1467
+ }, {
1468
+ default: W(() => [(m(!0), D(pe, null, Me(e.getOptions(w), (c) => (m(), G(v, Re({ key: e.getValue(c) }, { ref_for: !0 }, e.getOptionProps(c)), null, 16))), 128))]),
1469
+ _: 2
1470
+ }, 1032, ["label", "disabled"])) : (m(), G(v, Re({
1471
+ key: 1,
1472
+ ref_for: !0
1473
+ }, e.getOptionProps(w)), null, 16))], 64);
1474
+ }), 128))])]),
1475
+ _: 3
1476
+ })]),
1477
+ _: 3
1478
+ }, 8, [
1479
+ "id",
1480
+ "wrap-class",
1481
+ "view-class",
1482
+ "class",
1483
+ "aria-label",
1484
+ "onScroll",
1485
+ "onEndReached"
1486
+ ]), [[Ye, e.states.options.size > 0 && !e.loading]]),
1487
+ e.$slots.loading && e.loading ? (m(), D("div", {
1488
+ key: 1,
1489
+ class: O(e.nsSelect.be("dropdown", "loading"))
1490
+ }, [P(e.$slots, "loading")], 2)) : e.loading || e.filteredOptionsCount === 0 ? (m(), D("div", {
1491
+ key: 2,
1492
+ class: O(e.nsSelect.be("dropdown", "empty"))
1493
+ }, [P(e.$slots, "empty", {}, () => [N("span", null, X(e.emptyText), 1)])], 2)) : z("v-if", !0),
1494
+ e.$slots.footer ? (m(), D("div", {
1495
+ key: 3,
1496
+ class: O(e.nsSelect.be("dropdown", "footer")),
1497
+ onClick: n[9] || (n[9] = oe(() => {
1498
+ }, ["stop"]))
1499
+ }, [P(e.$slots, "footer")], 2)) : z("v-if", !0)
1500
+ ]),
1501
+ _: 3
1502
+ }, 512)]),
1503
+ _: 3
1504
+ }, 8, [
1505
+ "visible",
1506
+ "placement",
1507
+ "teleported",
1508
+ "popper-class",
1509
+ "popper-style",
1510
+ "popper-options",
1511
+ "fallback-placements",
1512
+ "effect",
1513
+ "transition",
1514
+ "persistent",
1515
+ "append-to",
1516
+ "show-arrow",
1517
+ "offset",
1518
+ "onBeforeShow"
1519
+ ])], 16)), [[
1520
+ y,
1521
+ e.handleClickOutside,
1522
+ e.popperRef
1523
+ ]]);
1524
+ }
1525
+ var zn = /* @__PURE__ */ Ne(Bn, [["render", Wn]]);
1526
+ const lo = kl(zn, {
1527
+ Option: Ze,
1528
+ OptionGroup: xe
1529
+ }), no = Mt(Ze);
1530
+ Mt(xe);
1531
+ export {
1532
+ vn as C,
1533
+ no as E,
1534
+ lo as a
1535
+ };