voiptime-components 1.7.5 → 1.7.6

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.
package/dist/index.es.js CHANGED
@@ -1,18 +1,18 @@
1
- import { createElementBlock as a, openBlock as s, createElementVNode as r, createStaticVNode as Pe, defineComponent as de, computed as x, createBlock as ie, createCommentVNode as j, resolveDynamicComponent as Xe, normalizeStyle as fe, useSlots as Qe, resolveDirective as Ge, withDirectives as Ae, normalizeClass as A, renderSlot as ve, Teleport as Je, withModifiers as Ce, toDisplayString as Q, watch as ce, Fragment as he, renderList as pe, vModelSelect as kt, createVNode as X, withCtx as we, createTextVNode as ge, ref as H, onUnmounted as Ie, nextTick as me, provide as et, onMounted as _e, unref as ne, inject as tt, createApp as bt, h as qe, mergeModels as lt, useModel as yt, reactive as xt, Transition as rt, onBeforeUnmount as Mt } from "vue";
1
+ import { createElementBlock as a, openBlock as s, createElementVNode as r, createStaticVNode as Pe, defineComponent as ue, computed as k, createBlock as ie, createCommentVNode as j, resolveDynamicComponent as Xe, normalizeStyle as pe, useSlots as Qe, resolveDirective as Ge, withDirectives as Ae, normalizeClass as A, renderSlot as ve, Teleport as Je, withModifiers as me, toDisplayString as Q, watch as fe, Fragment as ce, renderList as he, vModelSelect as k1, createVNode as X, withCtx as we, createTextVNode as ge, ref as I, onUnmounted as Ie, nextTick as Ce, provide as e1, onMounted as _e, unref as oe, inject as t1, createApp as b1, h as qe, mergeModels as l1, useModel as y1, reactive as x1, Transition as r1, onBeforeUnmount as $1 } from "vue";
2
2
  const w = (n, e) => {
3
3
  const o = n.__vccOpts || n;
4
4
  for (const [t, l] of e)
5
5
  o[t] = l;
6
6
  return o;
7
- }, $t = {}, Lt = {
7
+ }, M1 = {}, L1 = {
8
8
  width: "20",
9
9
  height: "20",
10
10
  viewBox: "0 0 20 20",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  };
14
- function Vt(n, e) {
15
- return s(), a("svg", Lt, e[0] || (e[0] = [
14
+ function V1(n, e) {
15
+ return s(), a("svg", L1, e[0] || (e[0] = [
16
16
  r("circle", {
17
17
  cx: "10",
18
18
  cy: "10",
@@ -29,15 +29,15 @@ function Vt(n, e) {
29
29
  }, null, -1)
30
30
  ]));
31
31
  }
32
- const St = /* @__PURE__ */ w($t, [["render", Vt]]), It = {}, Ht = {
32
+ const S1 = /* @__PURE__ */ w(M1, [["render", V1]]), I1 = {}, B1 = {
33
33
  width: "20",
34
34
  height: "20",
35
35
  viewBox: "0 0 20 20",
36
36
  fill: "none",
37
37
  xmlns: "http://www.w3.org/2000/svg"
38
38
  };
39
- function Bt(n, e) {
40
- return s(), a("svg", Ht, e[0] || (e[0] = [
39
+ function H1(n, e) {
40
+ return s(), a("svg", B1, e[0] || (e[0] = [
41
41
  r("circle", {
42
42
  cx: "10",
43
43
  cy: "10",
@@ -61,15 +61,15 @@ function Bt(n, e) {
61
61
  }, null, -1)
62
62
  ]));
63
63
  }
64
- const Et = /* @__PURE__ */ w(It, [["render", Bt]]), Tt = {}, jt = {
64
+ const E1 = /* @__PURE__ */ w(I1, [["render", H1]]), T1 = {}, j1 = {
65
65
  width: "20",
66
66
  height: "20",
67
67
  viewBox: "0 0 20 20",
68
68
  fill: "none",
69
69
  xmlns: "http://www.w3.org/2000/svg"
70
70
  };
71
- function zt(n, e) {
72
- return s(), a("svg", jt, e[0] || (e[0] = [
71
+ function z1(n, e) {
72
+ return s(), a("svg", j1, e[0] || (e[0] = [
73
73
  r("path", {
74
74
  d: "M6 14L10 10M10 10L14 6M10 10L6 6M10 10L14 14",
75
75
  stroke: "currentColor",
@@ -79,15 +79,15 @@ function zt(n, e) {
79
79
  }, null, -1)
80
80
  ]));
81
81
  }
82
- const Ot = /* @__PURE__ */ w(Tt, [["render", zt]]), Rt = {}, Dt = {
82
+ const O1 = /* @__PURE__ */ w(T1, [["render", z1]]), R1 = {}, D1 = {
83
83
  width: "20",
84
84
  height: "20",
85
85
  viewBox: "0 0 20 20",
86
86
  fill: "none",
87
87
  xmlns: "http://www.w3.org/2000/svg"
88
88
  };
89
- function Wt(n, e) {
90
- return s(), a("svg", Dt, e[0] || (e[0] = [
89
+ function W1(n, e) {
90
+ return s(), a("svg", D1, e[0] || (e[0] = [
91
91
  r("path", {
92
92
  d: "M3 5.33333H17M3.875 5.33333L4.75 15.3333C4.75 15.7754 4.93437 16.1993 5.26256 16.5118C5.59075 16.8244 6.03587 17 6.5 17H13.5C13.9641 17 14.4092 16.8244 14.7374 16.5118C15.0656 16.1993 15.25 15.7754 15.25 15.3333L16.125 5.33333M7.375 5.33333V2.83333C7.375 2.61232 7.46719 2.40036 7.63128 2.24408C7.79538 2.0878 8.01794 2 8.25 2H11.75C11.9821 2 12.2046 2.0878 12.3687 2.24408C12.5328 2.40036 12.625 2.61232 12.625 2.83333V5.33333M8.25 9.5L11.75 12.8333M11.75 9.5L8.25 12.8333",
93
93
  stroke: "currentColor",
@@ -97,15 +97,15 @@ function Wt(n, e) {
97
97
  }, null, -1)
98
98
  ]));
99
99
  }
100
- const Pt = /* @__PURE__ */ w(Rt, [["render", Wt]]), At = {}, Zt = {
100
+ const P1 = /* @__PURE__ */ w(R1, [["render", W1]]), A1 = {}, Z1 = {
101
101
  fill: "none",
102
102
  height: "20",
103
103
  viewBox: "0 0 20 20",
104
104
  width: "20",
105
105
  xmlns: "http://www.w3.org/2000/svg"
106
106
  };
107
- function Ft(n, e) {
108
- return s(), a("svg", Zt, e[0] || (e[0] = [
107
+ function F1(n, e) {
108
+ return s(), a("svg", Z1, e[0] || (e[0] = [
109
109
  r("path", {
110
110
  d: "M12.5 10L10 12.5M10 12.5L7.5 10M10 12.5L10 4",
111
111
  stroke: "currentColor",
@@ -121,15 +121,15 @@ function Ft(n, e) {
121
121
  }, null, -1)
122
122
  ]));
123
123
  }
124
- const Nt = /* @__PURE__ */ w(At, [["render", Ft]]), qt = {}, Kt = {
124
+ const N1 = /* @__PURE__ */ w(A1, [["render", F1]]), q1 = {}, K1 = {
125
125
  width: "20",
126
126
  height: "20",
127
127
  viewBox: "0 0 20 20",
128
128
  fill: "none",
129
129
  xmlns: "http://www.w3.org/2000/svg"
130
130
  };
131
- function Ut(n, e) {
132
- return s(), a("svg", Kt, e[0] || (e[0] = [
131
+ function U1(n, e) {
132
+ return s(), a("svg", K1, e[0] || (e[0] = [
133
133
  r("path", {
134
134
  d: "M11.6822 3.72047L3.9739 11.4286C3.81664 11.5859 3.71629 11.7911 3.68872 12.0117L3.19824 15.9373C3.11738 16.5844 3.66764 17.1345 4.31476 17.0535L8.2407 16.5619C8.46128 16.5343 8.66637 16.434 8.82356 16.2768L16.531 8.56942C16.9215 8.1789 16.9215 7.54574 16.531 7.15521L13.0964 3.72049C12.7059 3.32995 12.0727 3.32994 11.6822 3.72047Z",
135
135
  stroke: "currentColor",
@@ -142,15 +142,15 @@ function Ut(n, e) {
142
142
  }, null, -1)
143
143
  ]));
144
144
  }
145
- const Yt = /* @__PURE__ */ w(qt, [["render", Ut]]), Xt = {}, Qt = {
145
+ const Y1 = /* @__PURE__ */ w(q1, [["render", U1]]), X1 = {}, Q1 = {
146
146
  fill: "none",
147
147
  height: "20",
148
148
  viewBox: "0 0 21 20",
149
149
  width: "21",
150
150
  xmlns: "http://www.w3.org/2000/svg"
151
151
  };
152
- function Gt(n, e) {
153
- return s(), a("svg", Qt, e[0] || (e[0] = [
152
+ function G1(n, e) {
153
+ return s(), a("svg", Q1, e[0] || (e[0] = [
154
154
  r("path", {
155
155
  d: "M2.64344 16.5675C3.26864 9.06464 9.52064 7.18893 12.6466 7.81417V3.4375L18.2734 10.0025L12.6466 16.5675V12.1908C9.52064 11.5656 4.51904 12.8161 2.64344 16.5675Z",
156
156
  stroke: "currentColor",
@@ -160,15 +160,15 @@ function Gt(n, e) {
160
160
  }, null, -1)
161
161
  ]));
162
162
  }
163
- const Jt = /* @__PURE__ */ w(Xt, [["render", Gt]]), e1 = {}, t1 = {
163
+ const J1 = /* @__PURE__ */ w(X1, [["render", G1]]), et = {}, tt = {
164
164
  width: "20",
165
165
  height: "20",
166
166
  viewBox: "0 0 20 20",
167
167
  fill: "none",
168
168
  xmlns: "http://www.w3.org/2000/svg"
169
169
  };
170
- function n1(n, e) {
171
- return s(), a("svg", t1, e[0] || (e[0] = [
170
+ function nt(n, e) {
171
+ return s(), a("svg", tt, e[0] || (e[0] = [
172
172
  r("path", {
173
173
  d: "M9.69565 4.21739H3V17H15.7826V10.3043M15.7826 4.21739L9.08696 10.913M12.7391 3H17V7.26087",
174
174
  stroke: "currentColor",
@@ -178,15 +178,15 @@ function n1(n, e) {
178
178
  }, null, -1)
179
179
  ]));
180
180
  }
181
- const o1 = /* @__PURE__ */ w(e1, [["render", n1]]), l1 = {}, r1 = {
181
+ const ot = /* @__PURE__ */ w(et, [["render", nt]]), lt = {}, rt = {
182
182
  width: "21",
183
183
  height: "20",
184
184
  viewBox: "0 0 21 20",
185
185
  fill: "none",
186
186
  xmlns: "http://www.w3.org/2000/svg"
187
187
  };
188
- function s1(n, e) {
189
- return s(), a("svg", r1, e[0] || (e[0] = [
188
+ function st(n, e) {
189
+ return s(), a("svg", rt, e[0] || (e[0] = [
190
190
  r("path", {
191
191
  "fill-rule": "evenodd",
192
192
  "clip-rule": "evenodd",
@@ -195,15 +195,15 @@ function s1(n, e) {
195
195
  }, null, -1)
196
196
  ]));
197
197
  }
198
- const i1 = /* @__PURE__ */ w(l1, [["render", s1]]), a1 = {}, u1 = {
198
+ const it = /* @__PURE__ */ w(lt, [["render", st]]), at = {}, ut = {
199
199
  width: "20",
200
200
  height: "20",
201
201
  viewBox: "0 0 20 20",
202
202
  fill: "none",
203
203
  xmlns: "http://www.w3.org/2000/svg"
204
204
  };
205
- function d1(n, e) {
206
- return s(), a("svg", u1, e[0] || (e[0] = [
205
+ function dt(n, e) {
206
+ return s(), a("svg", ut, e[0] || (e[0] = [
207
207
  r("path", {
208
208
  "fill-rule": "evenodd",
209
209
  "clip-rule": "evenodd",
@@ -212,15 +212,15 @@ function d1(n, e) {
212
212
  }, null, -1)
213
213
  ]));
214
214
  }
215
- const c1 = /* @__PURE__ */ w(a1, [["render", d1]]), h1 = {}, p1 = {
215
+ const ct = /* @__PURE__ */ w(at, [["render", dt]]), ht = {}, pt = {
216
216
  fill: "none",
217
217
  height: "20",
218
218
  viewBox: "0 0 20 20",
219
219
  width: "20",
220
220
  xmlns: "http://www.w3.org/2000/svg"
221
221
  };
222
- function f1(n, e) {
223
- return s(), a("svg", p1, e[0] || (e[0] = [
222
+ function ft(n, e) {
223
+ return s(), a("svg", pt, e[0] || (e[0] = [
224
224
  r("path", {
225
225
  d: "M12.6464 5.83144L7.15803 11.3198C6.99884 11.4735 6.87187 11.6574 6.78453 11.8608C6.69718 12.0641 6.6512 12.2828 6.64928 12.5041C6.64735 12.7254 6.68952 12.9449 6.77332 13.1497C6.85713 13.3545 6.98088 13.5406 7.13737 13.6971C7.29386 13.8536 7.47994 13.9773 7.68477 14.0611C7.8896 14.1449 8.10906 14.1871 8.33036 14.1852C8.55166 14.1833 8.77036 14.1373 8.9737 14.0499C9.17704 13.9626 9.36095 13.8356 9.51469 13.6764L14.8597 8.1881C15.4669 7.55943 15.8029 6.71742 15.7953 5.84343C15.7877 4.96944 15.4371 4.1334 14.8191 3.51537C14.2011 2.89735 13.365 2.54678 12.491 2.53919C11.617 2.53159 10.775 2.86758 10.1464 3.47477L4.80053 8.96227C3.86277 9.90003 3.33594 11.1719 3.33594 12.4981C3.33594 13.8243 3.86277 15.0962 4.80053 16.0339C5.73829 16.9717 7.01017 17.4985 8.33636 17.4985C9.66256 17.4985 10.9344 16.9717 11.8722 16.0339L17.0864 10.8314",
226
226
  stroke: "currentColor",
@@ -230,15 +230,15 @@ function f1(n, e) {
230
230
  }, null, -1)
231
231
  ]));
232
232
  }
233
- const v1 = /* @__PURE__ */ w(h1, [["render", f1]]), m1 = {}, C1 = {
233
+ const vt = /* @__PURE__ */ w(ht, [["render", ft]]), mt = {}, Ct = {
234
234
  width: "20",
235
235
  height: "20",
236
236
  viewBox: "0 0 20 20",
237
237
  fill: "none",
238
238
  xmlns: "http://www.w3.org/2000/svg"
239
239
  };
240
- function w1(n, e) {
241
- return s(), a("svg", C1, e[0] || (e[0] = [
240
+ function wt(n, e) {
241
+ return s(), a("svg", Ct, e[0] || (e[0] = [
242
242
  r("path", {
243
243
  d: "M12.6797 13L12.6797 7",
244
244
  stroke: "currentColor",
@@ -260,15 +260,15 @@ function w1(n, e) {
260
260
  }, null, -1)
261
261
  ]));
262
262
  }
263
- const g1 = /* @__PURE__ */ w(m1, [["render", w1]]), _1 = {}, k1 = {
263
+ const gt = /* @__PURE__ */ w(mt, [["render", wt]]), _t = {}, kt = {
264
264
  width: "20",
265
265
  height: "20",
266
266
  viewBox: "0 0 20 20",
267
267
  fill: "none",
268
268
  xmlns: "http://www.w3.org/2000/svg"
269
269
  };
270
- function b1(n, e) {
271
- return s(), a("svg", k1, e[0] || (e[0] = [
270
+ function bt(n, e) {
271
+ return s(), a("svg", kt, e[0] || (e[0] = [
272
272
  r("path", {
273
273
  d: "M10.002 18C14.4204 18 18.002 14.4184 18.002 10C18.002 5.5816 14.4204 2 10.002 2C5.58355 2 2.00195 5.5816 2.00195 10C2.00195 14.4184 5.58355 18 10.002 18Z",
274
274
  stroke: "currentColor",
@@ -284,15 +284,15 @@ function b1(n, e) {
284
284
  }, null, -1)
285
285
  ]));
286
286
  }
287
- const y1 = /* @__PURE__ */ w(_1, [["render", b1]]), x1 = {}, M1 = {
287
+ const yt = /* @__PURE__ */ w(_t, [["render", bt]]), xt = {}, $t = {
288
288
  width: "20",
289
289
  height: "20",
290
290
  viewBox: "0 0 20 20",
291
291
  fill: "none",
292
292
  xmlns: "http://www.w3.org/2000/svg"
293
293
  };
294
- function $1(n, e) {
295
- return s(), a("svg", M1, e[0] || (e[0] = [
294
+ function Mt(n, e) {
295
+ return s(), a("svg", $t, e[0] || (e[0] = [
296
296
  r("path", {
297
297
  d: "M6.25065 8.33073L8.33398 10.4141L6.25065 12.4974M10.0007 12.4974H13.334M5.00065 4.16406H15.0007C15.4427 4.16406 15.8666 4.33966 16.1792 4.65222C16.4917 4.96478 16.6673 5.3887 16.6673 5.83073V14.1641C16.6673 14.6061 16.4917 15.03 16.1792 15.3426C15.8666 15.6551 15.4427 15.8307 15.0007 15.8307H5.00065C4.55862 15.8307 4.1347 15.6551 3.82214 15.3426C3.50958 15.03 3.33398 14.6061 3.33398 14.1641V5.83073C3.33398 5.3887 3.50958 4.96478 3.82214 4.65222C4.1347 4.33966 4.55862 4.16406 5.00065 4.16406Z",
298
298
  stroke: "currentColor",
@@ -302,15 +302,15 @@ function $1(n, e) {
302
302
  }, null, -1)
303
303
  ]));
304
304
  }
305
- const L1 = /* @__PURE__ */ w(x1, [["render", $1]]), V1 = {}, S1 = {
305
+ const Lt = /* @__PURE__ */ w(xt, [["render", Mt]]), Vt = {}, St = {
306
306
  width: "20",
307
307
  height: "20",
308
308
  viewBox: "0 0 20 20",
309
309
  fill: "none",
310
310
  xmlns: "http://www.w3.org/2000/svg"
311
311
  };
312
- function I1(n, e) {
313
- return s(), a("svg", S1, e[0] || (e[0] = [
312
+ function It(n, e) {
313
+ return s(), a("svg", St, e[0] || (e[0] = [
314
314
  r("path", {
315
315
  d: "M6.05738 3.37705C6.15102 2.92527 6.54523 2.5 7.08383 2.5C7.62242 2.5 8.01598 2.92494 8.10995 3.37673C8.2049 3.83506 8.44391 4.52649 9.0421 5.12494C9.63996 5.72274 10.3315 5.96205 10.7895 6.05699C11.241 6.15095 11.6667 6.54479 11.6667 7.08333C11.6667 7.62188 11.2417 8.01571 10.7898 8.10967C10.3315 8.20461 9.64029 8.44426 9.0421 9.04271C8.44424 9.64083 8.20523 10.3316 8.11027 10.7893C8.01631 11.2414 7.62243 11.6667 7.0835 11.6667C6.54523 11.6667 6.15102 11.2421 6.05705 10.7899C5.9621 10.3316 5.72243 9.63985 5.12424 9.04173C4.52638 8.44327 3.83488 8.20429 3.37715 8.10935C2.92564 8.01571 2.50098 7.62286 2.5 7.0853C2.49902 6.54577 2.92466 6.15095 3.37748 6.05699C3.8352 5.96205 4.52671 5.72307 5.12457 5.12461C5.72243 4.52616 5.9621 3.83473 6.05738 3.37705Z",
316
316
  stroke: "currentColor",
@@ -336,15 +336,15 @@ function I1(n, e) {
336
336
  }, null, -1)
337
337
  ]));
338
338
  }
339
- const H1 = /* @__PURE__ */ w(V1, [["render", I1]]), B1 = {}, E1 = {
339
+ const Bt = /* @__PURE__ */ w(Vt, [["render", It]]), Ht = {}, Et = {
340
340
  fill: "none",
341
341
  height: "20",
342
342
  viewBox: "0 0 21 20",
343
343
  width: "21",
344
344
  xmlns: "http://www.w3.org/2000/svg"
345
345
  };
346
- function T1(n, e) {
347
- return s(), a("svg", E1, e[0] || (e[0] = [
346
+ function Tt(n, e) {
347
+ return s(), a("svg", Et, e[0] || (e[0] = [
348
348
  r("path", {
349
349
  d: "M18.7266 16.5625C18.1016 9.0625 11.8516 7.1875 8.72656 7.8125V3.4375L3.10156 10L8.72656 16.5625V12.1875C11.8516 11.5625 16.8516 12.8125 18.7266 16.5625Z",
350
350
  stroke: "currentColor",
@@ -354,15 +354,15 @@ function T1(n, e) {
354
354
  }, null, -1)
355
355
  ]));
356
356
  }
357
- const j1 = /* @__PURE__ */ w(B1, [["render", T1]]), z1 = {}, O1 = {
357
+ const jt = /* @__PURE__ */ w(Ht, [["render", Tt]]), zt = {}, Ot = {
358
358
  width: "20",
359
359
  height: "20",
360
360
  viewBox: "0 0 20 20",
361
361
  fill: "none",
362
362
  xmlns: "http://www.w3.org/2000/svg"
363
363
  };
364
- function R1(n, e) {
365
- return s(), a("svg", O1, e[0] || (e[0] = [
364
+ function Rt(n, e) {
365
+ return s(), a("svg", Ot, e[0] || (e[0] = [
366
366
  r("path", {
367
367
  d: "M6.5 3H4C3.44772 3 3 3.44772 3 4V16C3 16.5523 3.44772 17 4 17H6.5M6.5 3H12.096C12.3552 3 12.6042 3.1006 12.7906 3.2806L16.6946 7.04995C16.8898 7.2384 17 7.49805 17 7.76935V16C17 16.5523 16.5523 17 16 17H13.5M6.5 3V6.34483C6.5 6.89711 6.94772 7.34483 7.5 7.34483H11M6.5 17V14.6207C6.5 14.0684 6.94772 13.6207 7.5 13.6207H12.5C13.0523 13.6207 13.5 14.0684 13.5 14.6207V17M6.5 17H13.5",
368
368
  stroke: "currentColor",
@@ -371,15 +371,15 @@ function R1(n, e) {
371
371
  }, null, -1)
372
372
  ]));
373
373
  }
374
- const D1 = /* @__PURE__ */ w(z1, [["render", R1]]), W1 = {}, P1 = {
374
+ const Dt = /* @__PURE__ */ w(zt, [["render", Rt]]), Wt = {}, Pt = {
375
375
  fill: "none",
376
376
  height: "20",
377
377
  viewBox: "0 0 20 20",
378
378
  width: "20",
379
379
  xmlns: "http://www.w3.org/2000/svg"
380
380
  };
381
- function A1(n, e) {
382
- return s(), a("svg", P1, e[0] || (e[0] = [
381
+ function At(n, e) {
382
+ return s(), a("svg", Pt, e[0] || (e[0] = [
383
383
  r("path", {
384
384
  d: "M9.99707 1.75C10.0585 1.7502 10.1253 1.76596 10.2109 1.82617C10.2655 1.86456 10.3244 1.92947 10.373 2.06152L12.0225 7.4873L12.1846 8.01855H17.8496C17.9517 8.01855 18.0056 8.04477 18.0508 8.08301C18.155 8.17127 18.2046 8.25195 18.2305 8.32227C18.2492 8.37335 18.2615 8.44959 18.2324 8.5752C18.2224 8.61828 18.2038 8.66002 18.1221 8.71387L18.1123 8.71973L18.1025 8.72754L13.9639 11.6484L13.5186 11.9629L13.6797 12.4834L15.3066 17.7314L15.3115 17.7471L15.3174 17.7627C15.3551 17.8678 15.3398 17.9083 15.3281 17.9336C15.2757 18.0476 15.2119 18.1188 15.1396 18.1689C15.073 18.2151 14.9934 18.2455 14.8799 18.25C14.8342 18.2518 14.7814 18.2434 14.6982 18.1758L14.6885 18.168L14.6777 18.1602L10.4531 14.9551L10 14.6104L9.54688 14.9551L5.32227 18.1602L5.31152 18.168L5.30176 18.1758C5.21998 18.2422 5.16597 18.2518 5.11719 18.25C5.00442 18.2458 4.92723 18.2156 4.86328 18.1709C4.78988 18.1195 4.72559 18.047 4.67285 17.9326C4.66158 17.9081 4.6456 17.8677 4.68359 17.7607L4.69336 17.7314L6.32031 12.4834L6.48145 11.9629L6.03613 11.6484L1.89746 8.72754L1.88867 8.7207L1.87891 8.71484L1.82812 8.6748C1.78728 8.63758 1.77496 8.60601 1.76758 8.57422C1.73882 8.45027 1.75029 8.37401 1.76953 8.32129C1.79553 8.25023 1.84562 8.1698 1.94922 8.08203C1.99372 8.04435 2.04629 8.01833 2.14746 8.01855H7.81543L7.97754 7.4873L9.62402 2.06738C9.67456 1.93103 9.73646 1.86338 9.79297 1.82324C9.8758 1.7645 9.93873 1.74988 9.99707 1.75Z",
385
385
  stroke: "currentColor",
@@ -387,15 +387,15 @@ function A1(n, e) {
387
387
  }, null, -1)
388
388
  ]));
389
389
  }
390
- const Z1 = /* @__PURE__ */ w(W1, [["render", A1]]), F1 = {}, N1 = {
390
+ const Zt = /* @__PURE__ */ w(Wt, [["render", At]]), Ft = {}, Nt = {
391
391
  width: "20",
392
392
  height: "20",
393
393
  viewBox: "0 0 20 20",
394
394
  fill: "none",
395
395
  xmlns: "http://www.w3.org/2000/svg"
396
396
  };
397
- function q1(n, e) {
398
- return s(), a("svg", N1, e[0] || (e[0] = [
397
+ function qt(n, e) {
398
+ return s(), a("svg", Nt, e[0] || (e[0] = [
399
399
  r("path", {
400
400
  d: "M9 6.5L12.8182 10L9 13.5",
401
401
  stroke: "currentColor",
@@ -410,15 +410,15 @@ function q1(n, e) {
410
410
  }, null, -1)
411
411
  ]));
412
412
  }
413
- const K1 = /* @__PURE__ */ w(F1, [["render", q1]]), U1 = {}, Y1 = {
413
+ const Kt = /* @__PURE__ */ w(Ft, [["render", qt]]), Ut = {}, Yt = {
414
414
  width: "20",
415
415
  height: "20",
416
416
  viewBox: "0 0 20 20",
417
417
  fill: "none",
418
418
  xmlns: "http://www.w3.org/2000/svg"
419
419
  };
420
- function X1(n, e) {
421
- return s(), a("svg", Y1, e[0] || (e[0] = [
420
+ function Xt(n, e) {
421
+ return s(), a("svg", Yt, e[0] || (e[0] = [
422
422
  r("path", {
423
423
  d: "M5 10.0026V8.33594C5 7.00986 5.52678 5.73809 6.46447 4.8004C7.40215 3.86272 8.67392 3.33594 10 3.33594C11.3261 3.33594 12.5979 3.86272 13.5355 4.8004C14.4732 5.73809 15 7.00986 15 8.33594V10.0026",
424
424
  stroke: "currentColor",
@@ -451,7 +451,7 @@ function X1(n, e) {
451
451
  }, null, -1)
452
452
  ]));
453
453
  }
454
- const Q1 = /* @__PURE__ */ w(U1, [["render", X1]]), G1 = {}, J1 = {
454
+ const Qt = /* @__PURE__ */ w(Ut, [["render", Xt]]), Gt = {}, Jt = {
455
455
  width: "20",
456
456
  height: "20",
457
457
  viewBox: "0 0 20 20",
@@ -459,7 +459,7 @@ const Q1 = /* @__PURE__ */ w(U1, [["render", X1]]), G1 = {}, J1 = {
459
459
  xmlns: "http://www.w3.org/2000/svg"
460
460
  };
461
461
  function en(n, e) {
462
- return s(), a("svg", J1, e[0] || (e[0] = [
462
+ return s(), a("svg", Jt, e[0] || (e[0] = [
463
463
  r("path", {
464
464
  d: "M5.00065 10.0026V8.33594C5.00065 7.00985 5.52744 5.73809 6.46512 4.8004C7.4028 3.86272 8.67457 3.33594 10.0007 3.33594C11.3267 3.33594 12.5985 3.86272 13.5362 4.8004C14.4739 5.73809 15.0007 7.00985 15.0007 8.33594V10.0026M3.33398 15.0026C3.33398 15.4446 3.50958 15.8686 3.82214 16.1811C4.1347 16.4937 4.55862 16.6693 5.00065 16.6693C5.44268 16.6693 5.8666 16.4937 6.17916 16.1811C6.49172 15.8686 6.66732 15.4446 6.66732 15.0026C6.66732 14.5606 6.49172 14.1367 6.17916 13.8241C5.8666 13.5115 5.44268 13.3359 5.00065 13.3359C4.55862 13.3359 4.1347 13.5115 3.82214 13.8241C3.50958 14.1367 3.33398 14.5606 3.33398 15.0026ZM13.334 15.0026C13.334 15.4446 13.5096 15.8686 13.8221 16.1811C14.1347 16.4937 14.5586 16.6693 15.0007 16.6693C15.4427 16.6693 15.8666 16.4937 16.1792 16.1811C16.4917 15.8686 16.6673 15.4446 16.6673 15.0026C16.6673 14.5606 16.4917 14.1367 16.1792 13.8241C15.8666 13.5115 15.4427 13.3359 15.0007 13.3359C14.5586 13.3359 14.1347 13.5115 13.8221 13.8241C13.5096 14.1367 13.334 14.5606 13.334 15.0026Z",
465
465
  stroke: "currentColor",
@@ -476,7 +476,7 @@ function en(n, e) {
476
476
  }, null, -1)
477
477
  ]));
478
478
  }
479
- const tn = /* @__PURE__ */ w(G1, [["render", en]]), nn = {}, on = {
479
+ const tn = /* @__PURE__ */ w(Gt, [["render", en]]), nn = {}, on = {
480
480
  width: "20",
481
481
  height: "20",
482
482
  viewBox: "0 0 20 20",
@@ -583,7 +583,7 @@ const bn = /* @__PURE__ */ w(gn, [["render", kn]]), yn = {}, xn = {
583
583
  fill: "none",
584
584
  xmlns: "http://www.w3.org/2000/svg"
585
585
  };
586
- function Mn(n, e) {
586
+ function $n(n, e) {
587
587
  return s(), a("svg", xn, e[0] || (e[0] = [
588
588
  r("path", {
589
589
  d: "M8.60352 6L12.6035 10L8.60352 14",
@@ -594,7 +594,7 @@ function Mn(n, e) {
594
594
  }, null, -1)
595
595
  ]));
596
596
  }
597
- const $n = /* @__PURE__ */ w(yn, [["render", Mn]]), Ln = {}, Vn = {
597
+ const Mn = /* @__PURE__ */ w(yn, [["render", $n]]), Ln = {}, Vn = {
598
598
  width: "20",
599
599
  height: "20",
600
600
  viewBox: "0 0 20 20",
@@ -612,7 +612,7 @@ function Sn(n, e) {
612
612
  }, null, -1)
613
613
  ]));
614
614
  }
615
- const In = /* @__PURE__ */ w(Ln, [["render", Sn]]), Hn = {}, Bn = {
615
+ const In = /* @__PURE__ */ w(Ln, [["render", Sn]]), Bn = {}, Hn = {
616
616
  fill: "none",
617
617
  height: "20",
618
618
  viewBox: "0 0 20 20",
@@ -620,7 +620,7 @@ const In = /* @__PURE__ */ w(Ln, [["render", Sn]]), Hn = {}, Bn = {
620
620
  xmlns: "http://www.w3.org/2000/svg"
621
621
  };
622
622
  function En(n, e) {
623
- return s(), a("svg", Bn, e[0] || (e[0] = [
623
+ return s(), a("svg", Hn, e[0] || (e[0] = [
624
624
  r("path", {
625
625
  d: "M2 8.36287C2 5.36357 2 3.86353 3.09365 2.93216C4.18729 2.0008 5.94679 2 9.46667 2H10.1457C13.0094 2 15.5096 2 16.504 2.6347C16.7886 2.81604 17.0416 3.03238 17.2551 3.27496C18 4.12281 18 5.3429 18 7.78465V9.80884C18 12.1655 18 13.2798 18 13.2798C18 13.2798 17.9068 15.3029 17.5 16C17.0932 16.6971 16 17.7068 14.8 17.9072C13.6 18.1076 11.7305 17.8652 10.1457 17.8926C9.30684 17.9072 8.3873 17.9072 7.42958 17.9072C5.85016 17.9072 5.05958 17.9072 4.42886 17.7068C3.41427 17.3838 2.61402 16.7022 2.23542 15.8377C2 15.3 2 14.6263 2 13.2798V8.36287Z",
626
626
  stroke: "currentColor",
@@ -651,7 +651,7 @@ function En(n, e) {
651
651
  }, null, -1)
652
652
  ]));
653
653
  }
654
- const Tn = /* @__PURE__ */ w(Hn, [["render", En]]), jn = {}, zn = {
654
+ const Tn = /* @__PURE__ */ w(Bn, [["render", En]]), jn = {}, zn = {
655
655
  fill: "none",
656
656
  height: "20",
657
657
  viewBox: "0 0 20 20",
@@ -887,7 +887,7 @@ function xo(n, e) {
887
887
  }, null, -1)
888
888
  ]));
889
889
  }
890
- const Mo = /* @__PURE__ */ w(bo, [["render", xo]]), $o = {}, Lo = {
890
+ const $o = /* @__PURE__ */ w(bo, [["render", xo]]), Mo = {}, Lo = {
891
891
  width: "20",
892
892
  height: "20",
893
893
  viewBox: "0 0 20 20",
@@ -919,15 +919,15 @@ function Vo(n, e) {
919
919
  }, null, -1)
920
920
  ]));
921
921
  }
922
- const So = /* @__PURE__ */ w($o, [["render", Vo]]), Io = {}, Ho = {
922
+ const So = /* @__PURE__ */ w(Mo, [["render", Vo]]), Io = {}, Bo = {
923
923
  width: "20",
924
924
  height: "20",
925
925
  viewBox: "0 0 20 20",
926
926
  fill: "none",
927
927
  xmlns: "http://www.w3.org/2000/svg"
928
928
  };
929
- function Bo(n, e) {
930
- return s(), a("svg", Ho, e[0] || (e[0] = [
929
+ function Ho(n, e) {
930
+ return s(), a("svg", Bo, e[0] || (e[0] = [
931
931
  r("path", {
932
932
  "fill-rule": "evenodd",
933
933
  "clip-rule": "evenodd",
@@ -944,7 +944,7 @@ function Bo(n, e) {
944
944
  }, null, -1)
945
945
  ]));
946
946
  }
947
- const Eo = /* @__PURE__ */ w(Io, [["render", Bo]]), To = {}, jo = {
947
+ const Eo = /* @__PURE__ */ w(Io, [["render", Ho]]), To = {}, jo = {
948
948
  fill: "none",
949
949
  height: "20",
950
950
  viewBox: "0 0 20 20",
@@ -1209,15 +1209,15 @@ function bl(n, e) {
1209
1209
  }, null, -1)
1210
1210
  ]));
1211
1211
  }
1212
- const yl = /* @__PURE__ */ w(_l, [["render", bl]]), xl = {}, Ml = {
1212
+ const yl = /* @__PURE__ */ w(_l, [["render", bl]]), xl = {}, $l = {
1213
1213
  fill: "none",
1214
1214
  height: "20",
1215
1215
  viewBox: "0 0 20 20",
1216
1216
  width: "20",
1217
1217
  xmlns: "http://www.w3.org/2000/svg"
1218
1218
  };
1219
- function $l(n, e) {
1220
- return s(), a("svg", Ml, e[0] || (e[0] = [
1219
+ function Ml(n, e) {
1220
+ return s(), a("svg", $l, e[0] || (e[0] = [
1221
1221
  r("path", {
1222
1222
  d: "M5.10938 6.41406L9.00209 9.00921L12.8948 6.41406",
1223
1223
  stroke: "currentColor",
@@ -1240,7 +1240,7 @@ function $l(n, e) {
1240
1240
  }, null, -1)
1241
1241
  ]));
1242
1242
  }
1243
- const Ll = /* @__PURE__ */ w(xl, [["render", $l]]), Vl = {}, Sl = {
1243
+ const Ll = /* @__PURE__ */ w(xl, [["render", Ml]]), Vl = {}, Sl = {
1244
1244
  fill: "none",
1245
1245
  height: "20",
1246
1246
  viewBox: "0 0 20 20",
@@ -1274,7 +1274,7 @@ function Il(n, e) {
1274
1274
  }, null, -1)
1275
1275
  ]));
1276
1276
  }
1277
- const Hl = /* @__PURE__ */ w(Vl, [["render", Il]]), Bl = {}, El = {
1277
+ const Bl = /* @__PURE__ */ w(Vl, [["render", Il]]), Hl = {}, El = {
1278
1278
  fill: "none",
1279
1279
  height: "20",
1280
1280
  viewBox: "0 0 20 20",
@@ -1305,7 +1305,7 @@ function Tl(n, e) {
1305
1305
  }, null, -1)
1306
1306
  ]));
1307
1307
  }
1308
- const jl = /* @__PURE__ */ w(Bl, [["render", Tl]]), zl = {}, Ol = {
1308
+ const jl = /* @__PURE__ */ w(Hl, [["render", Tl]]), zl = {}, Ol = {
1309
1309
  fill: "none",
1310
1310
  height: "24",
1311
1311
  viewBox: "0 0 25 24",
@@ -1542,7 +1542,7 @@ function xr(n, e) {
1542
1542
  }, null, -1)
1543
1543
  ]));
1544
1544
  }
1545
- const Mr = /* @__PURE__ */ w(br, [["render", xr]]), $r = {}, Lr = {
1545
+ const $r = /* @__PURE__ */ w(br, [["render", xr]]), Mr = {}, Lr = {
1546
1546
  width: "20",
1547
1547
  height: "20",
1548
1548
  viewBox: "0 0 20 20",
@@ -1570,15 +1570,15 @@ function Vr(n, e) {
1570
1570
  }, null, -1)
1571
1571
  ]));
1572
1572
  }
1573
- const Sr = /* @__PURE__ */ w($r, [["render", Vr]]), Ir = {}, Hr = {
1573
+ const Sr = /* @__PURE__ */ w(Mr, [["render", Vr]]), Ir = {}, Br = {
1574
1574
  width: "20",
1575
1575
  height: "20",
1576
1576
  viewBox: "0 0 20 20",
1577
1577
  fill: "none",
1578
1578
  xmlns: "http://www.w3.org/2000/svg"
1579
1579
  };
1580
- function Br(n, e) {
1581
- return s(), a("svg", Hr, e[0] || (e[0] = [
1580
+ function Hr(n, e) {
1581
+ return s(), a("svg", Br, e[0] || (e[0] = [
1582
1582
  r("path", {
1583
1583
  d: "M14.5833 1.83594C15.7533 1.83594 16.3392 1.83594 16.7592 2.11677C16.9412 2.2384 17.0975 2.39471 17.2192 2.57677C17.5 2.99677 17.5 3.5826 17.5 4.7526V15.4193C17.5 16.5893 17.5 17.1751 17.2192 17.5951C17.0975 17.7772 16.9412 17.9335 16.7592 18.0551C16.3392 18.3359 15.7533 18.3359 14.5833 18.3359C13.4133 18.3359 12.8275 18.3359 12.4075 18.0551C12.2254 17.9335 12.0691 17.7772 11.9475 17.5951C11.6667 17.1751 11.6667 16.5893 11.6667 15.4193V4.7526C11.6667 3.5826 11.6667 2.99677 11.9475 2.57677C12.0691 2.39471 12.2254 2.2384 12.4075 2.11677C12.8275 1.83594 13.4133 1.83594 14.5833 1.83594ZM5.41667 1.83594C6.58667 1.83594 7.1725 1.83594 7.5925 2.11677C7.77456 2.2384 7.93087 2.39471 8.0525 2.57677C8.33333 2.99677 8.33333 3.5826 8.33333 4.7526V15.4193C8.33333 16.5893 8.33333 17.1751 8.0525 17.5951C7.93087 17.7772 7.77456 17.9335 7.5925 18.0551C7.1725 18.3359 6.58667 18.3359 5.41667 18.3359C4.24667 18.3359 3.66083 18.3359 3.24083 18.0551C3.05877 17.9335 2.90246 17.7772 2.78083 17.5951C2.5 17.1751 2.5 16.5893 2.5 15.4193V4.7526C2.5 3.5826 2.5 2.99677 2.78083 2.57677C2.90246 2.39471 3.05877 2.2384 3.24083 2.11677C3.66083 1.83594 4.24667 1.83594 5.41667 1.83594Z",
1584
1584
  stroke: "currentColor",
@@ -1588,7 +1588,7 @@ function Br(n, e) {
1588
1588
  }, null, -1)
1589
1589
  ]));
1590
1590
  }
1591
- const Er = /* @__PURE__ */ w(Ir, [["render", Br]]), Tr = {}, jr = {
1591
+ const Er = /* @__PURE__ */ w(Ir, [["render", Hr]]), Tr = {}, jr = {
1592
1592
  width: "20",
1593
1593
  height: "20",
1594
1594
  viewBox: "0 0 20 20",
@@ -1632,26 +1632,26 @@ function Wr(n, e) {
1632
1632
  }
1633
1633
  const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1634
1634
  // actions icons
1635
- circleChecked: St,
1636
- circleClose: Et,
1637
- close: Ot,
1638
- delete: Pt,
1639
- download: Nt,
1640
- edit: Yt,
1641
- forward: Jt,
1642
- goTo: o1,
1643
- listBulletHorizontal: i1,
1644
- listBullet: c1,
1645
- paperClip: v1,
1646
- pause: g1,
1647
- plusRound: y1,
1648
- prompt: L1,
1649
- prompter: H1,
1650
- reply: j1,
1651
- save: D1,
1652
- star: Z1,
1653
- start: K1,
1654
- statusChange2: Q1,
1635
+ circleChecked: S1,
1636
+ circleClose: E1,
1637
+ close: O1,
1638
+ delete: P1,
1639
+ download: N1,
1640
+ edit: Y1,
1641
+ forward: J1,
1642
+ goTo: ot,
1643
+ listBulletHorizontal: it,
1644
+ listBullet: ct,
1645
+ paperClip: vt,
1646
+ pause: gt,
1647
+ plusRound: yt,
1648
+ prompt: Lt,
1649
+ prompter: Bt,
1650
+ reply: jt,
1651
+ save: Dt,
1652
+ star: Zt,
1653
+ start: Kt,
1654
+ statusChange2: Qt,
1655
1655
  statusChange: tn,
1656
1656
  stop: rn,
1657
1657
  usersGroup: dn,
@@ -1659,7 +1659,7 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1659
1659
  arrowDown: fn,
1660
1660
  arrowLeft: wn,
1661
1661
  arrowReload: bn,
1662
- arrowRight: $n,
1662
+ arrowRight: Mn,
1663
1663
  arrowTop: In,
1664
1664
  // files icons
1665
1665
  emptyImg: Tn,
@@ -1674,7 +1674,7 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1674
1674
  filterMultiselect: po,
1675
1675
  filterNew: Co,
1676
1676
  filterReset: ko,
1677
- filterSave: Mo,
1677
+ filterSave: $o,
1678
1678
  // input icons
1679
1679
  alertCircle: So,
1680
1680
  alertTriangle: Eo,
@@ -1691,7 +1691,7 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1691
1691
  emailIncoming: gl,
1692
1692
  emailNew: yl,
1693
1693
  emailOutgoing: Ll,
1694
- emailQueue: Hl,
1694
+ emailQueue: Bl,
1695
1695
  emailSpam: jl,
1696
1696
  // others icons
1697
1697
  ivr: Dl,
@@ -1705,12 +1705,12 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1705
1705
  empty: pr,
1706
1706
  excel: Cr,
1707
1707
  freeze: kr,
1708
- listAdd: Mr,
1708
+ listAdd: $r,
1709
1709
  tableSettings: Sr,
1710
1710
  twoColumns: Er,
1711
1711
  twoRows: Or,
1712
1712
  unfreeze: Pr
1713
- }, oe = /* @__PURE__ */ de({
1713
+ }, le = /* @__PURE__ */ ue({
1714
1714
  __name: "VIcon",
1715
1715
  props: {
1716
1716
  name: {},
@@ -1719,14 +1719,14 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1719
1719
  color: { default: "currentColor" }
1720
1720
  },
1721
1721
  setup(n) {
1722
- const e = n, o = x(() => Ar[e.name]), t = x(() => ({
1722
+ const e = n, o = k(() => Ar[e.name]), t = k(() => ({
1723
1723
  ...e.width && { width: typeof e.width == "number" ? `${e.width}px` : e.width },
1724
1724
  ...e.height && { height: typeof e.height == "number" ? `${e.height}px` : e.height },
1725
1725
  color: e.color
1726
1726
  }));
1727
1727
  return (l, i) => o.value ? (s(), ie(Xe(o.value), {
1728
1728
  key: 0,
1729
- style: fe(t.value)
1729
+ style: pe(t.value)
1730
1730
  }, null, 8, ["style"])) : j("", !0);
1731
1731
  }
1732
1732
  }), Zr = {}, Fr = { class: "vt-loader" };
@@ -1736,7 +1736,7 @@ function Nr(n, e) {
1736
1736
  const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "data-placement"], Kr = {
1737
1737
  key: 2,
1738
1738
  class: "vt-button__content"
1739
- }, We = /* @__PURE__ */ de({
1739
+ }, We = /* @__PURE__ */ ue({
1740
1740
  __name: "VButton",
1741
1741
  props: {
1742
1742
  type: { default: "default" },
@@ -1750,11 +1750,11 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1750
1750
  },
1751
1751
  emits: ["click"],
1752
1752
  setup(n, { emit: e }) {
1753
- const o = n, t = e, l = Qe(), i = x(() => !!(o.icon && o.shape)), c = x(() => {
1753
+ const o = n, t = e, l = Qe(), i = k(() => !!(o.icon && o.shape)), c = k(() => {
1754
1754
  var g, C;
1755
1755
  const u = l.default ? l.default({}) : null;
1756
1756
  return ((C = (g = u == null ? void 0 : u[0]) == null ? void 0 : g.children) == null ? void 0 : C.toString()) ?? "";
1757
- }), p = x(() => [
1757
+ }), p = k(() => [
1758
1758
  "vt-button",
1759
1759
  `vt-button--${o.type}`,
1760
1760
  {
@@ -1763,7 +1763,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1763
1763
  "vt-button--disabled": o.disabled || o.loading,
1764
1764
  "vt-button--loading": o.loading
1765
1765
  }
1766
- ]), v = x(() => i.value && o.tooltip ? c.value : null), f = (u) => {
1766
+ ]), v = k(() => i.value && o.tooltip ? c.value : null), f = (u) => {
1767
1767
  !o.disabled && !o.loading && t("click", u);
1768
1768
  };
1769
1769
  return (u, g) => {
@@ -1778,7 +1778,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1778
1778
  o.loading ? (s(), ie(je, {
1779
1779
  key: 0,
1780
1780
  class: "vt-button__icon"
1781
- })) : o.icon ? (s(), ie(oe, {
1781
+ })) : o.icon ? (s(), ie(le, {
1782
1782
  key: 1,
1783
1783
  name: o.icon,
1784
1784
  class: "vt-button__icon"
@@ -1797,7 +1797,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1797
1797
  }, Yr = {
1798
1798
  key: 0,
1799
1799
  class: "vt-modal__title"
1800
- }, Xr = { class: "vt-modal__content" }, vt = /* @__PURE__ */ de({
1800
+ }, Xr = { class: "vt-modal__content" }, v1 = /* @__PURE__ */ ue({
1801
1801
  __name: "VModal",
1802
1802
  props: {
1803
1803
  modelValue: { type: Boolean },
@@ -1809,7 +1809,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1809
1809
  },
1810
1810
  emits: ["update:modelValue", "close"],
1811
1811
  setup(n, { emit: e }) {
1812
- const o = n, t = e, l = x(() => ["vt-modal__container", `vt-modal__container--${o.size}`]), i = x(() => ({
1812
+ const o = n, t = e, l = k(() => ["vt-modal__container", `vt-modal__container--${o.size}`]), i = k(() => ({
1813
1813
  zIndex: o.zIndex
1814
1814
  })), c = () => {
1815
1815
  t("update:modelValue", !1), t("close");
@@ -1820,17 +1820,17 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1820
1820
  v.modelValue ? (s(), a("div", {
1821
1821
  key: 0,
1822
1822
  class: "vt-modal__backdrop",
1823
- style: fe(i.value),
1823
+ style: pe(i.value),
1824
1824
  onClick: p
1825
1825
  }, [
1826
1826
  r("div", {
1827
1827
  class: A(l.value),
1828
- onClick: f[0] || (f[0] = Ce(() => {
1828
+ onClick: f[0] || (f[0] = me(() => {
1829
1829
  }, ["stop"]))
1830
1830
  }, [
1831
1831
  v.title || v.showCloseButton ? (s(), a("div", Ur, [
1832
1832
  v.title ? (s(), a("h2", Yr, Q(v.title), 1)) : j("", !0),
1833
- v.showCloseButton ? (s(), ie(oe, {
1833
+ v.showCloseButton ? (s(), ie(le, {
1834
1834
  key: 1,
1835
1835
  name: "close",
1836
1836
  class: "vt-modal__close",
@@ -1844,7 +1844,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1844
1844
  ], 4)) : j("", !0)
1845
1845
  ]));
1846
1846
  }
1847
- }), Qr = { class: "vt-pagination" }, Gr = { class: "vt-pagination__info" }, Jr = { class: "vt-pagination__rows-per-page" }, es = ["value"], ts = { class: "vt-pagination__navigation" }, ns = ["disabled"], os = ["onClick"], ls = ["disabled"], rs = /* @__PURE__ */ de({
1847
+ }), Qr = { class: "vt-pagination" }, Gr = { class: "vt-pagination__info" }, Jr = { class: "vt-pagination__rows-per-page" }, es = ["value"], ts = { class: "vt-pagination__navigation" }, ns = ["disabled"], os = ["onClick"], ls = ["disabled"], rs = /* @__PURE__ */ ue({
1848
1848
  __name: "VPagination",
1849
1849
  props: {
1850
1850
  totalItems: {},
@@ -1855,13 +1855,13 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1855
1855
  },
1856
1856
  emits: ["update:currentPage", "update:pageSize", "pageChange", "reloadData"],
1857
1857
  setup(n, { emit: e }) {
1858
- const o = n, t = e, l = x({
1858
+ const o = n, t = e, l = k({
1859
1859
  get: () => o.currentPage,
1860
1860
  set: (B) => t("update:currentPage", B)
1861
- }), i = x({
1861
+ }), i = k({
1862
1862
  get: () => o.pageSize,
1863
1863
  set: (B) => t("update:pageSize", B)
1864
- }), c = x(() => Math.ceil(o.totalItems / i.value)), p = x(() => o.totalItems === 0 ? 0 : (l.value - 1) * i.value + 1), v = x(() => Math.min(l.value * i.value, o.totalItems)), f = x(() => l.value <= 1), u = x(() => l.value >= c.value), g = x(() => {
1864
+ }), c = k(() => Math.ceil(o.totalItems / i.value)), p = k(() => o.totalItems === 0 ? 0 : (l.value - 1) * i.value + 1), v = k(() => Math.min(l.value * i.value, o.totalItems)), f = k(() => l.value <= 1), u = k(() => l.value >= c.value), g = k(() => {
1865
1865
  const B = [], R = c.value, O = l.value, ee = o.maxVisiblePages;
1866
1866
  if (R <= ee)
1867
1867
  for (let G = 1; G <= R; G++)
@@ -1870,8 +1870,8 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1870
1870
  B.push(1);
1871
1871
  const G = Math.max(2, O - Math.floor(ee / 2)), te = Math.min(R - 1, O + Math.floor(ee / 2));
1872
1872
  G > 2 && B.push("...");
1873
- for (let K = G; K <= te; K++)
1874
- B.push(K);
1873
+ for (let U = G; U <= te; U++)
1874
+ B.push(U);
1875
1875
  te < R - 1 && B.push("..."), R > 1 && B.push(R);
1876
1876
  }
1877
1877
  return B;
@@ -1888,10 +1888,10 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1888
1888
  u.value || (l.value++, C());
1889
1889
  }, F = () => {
1890
1890
  l.value = 1, C();
1891
- }, Y = () => {
1891
+ }, K = () => {
1892
1892
  t("reloadData", l.value);
1893
1893
  };
1894
- return ce(
1894
+ return fe(
1895
1895
  () => o.totalItems,
1896
1896
  () => {
1897
1897
  l.value > c.value && c.value > 0 && (l.value = c.value, C());
@@ -1909,12 +1909,12 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1909
1909
  onChange: F,
1910
1910
  class: "vt-pagination__select"
1911
1911
  }, [
1912
- (s(!0), a(he, null, pe(B.pageSizeOptions, (O) => (s(), a("option", {
1912
+ (s(!0), a(ce, null, he(B.pageSizeOptions, (O) => (s(), a("option", {
1913
1913
  key: O,
1914
1914
  value: O
1915
1915
  }, Q(O), 9, es))), 128))
1916
1916
  ], 544), [
1917
- [kt, i.value]
1917
+ [k1, i.value]
1918
1918
  ])
1919
1919
  ]),
1920
1920
  r("span", null, Q(p.value) + " - " + Q(v.value) + " з " + Q(B.totalItems), 1)
@@ -1925,9 +1925,9 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1925
1925
  disabled: f.value,
1926
1926
  class: A({ "vt-pagination__nav-button": !0, "has-items": !f.value })
1927
1927
  }, [
1928
- X(oe, { name: "arrowLeft" })
1928
+ X(le, { name: "arrowLeft" })
1929
1929
  ], 10, ns),
1930
- (s(!0), a(he, null, pe(g.value, (O) => (s(), a("button", {
1930
+ (s(!0), a(ce, null, he(g.value, (O) => (s(), a("button", {
1931
1931
  key: O,
1932
1932
  onClick: (ee) => z(O),
1933
1933
  class: A(["vt-pagination__nav-button", {
@@ -1939,7 +1939,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1939
1939
  disabled: u.value,
1940
1940
  class: A({ "vt-pagination__nav-button": !0, "has-items": !u.value })
1941
1941
  }, [
1942
- X(oe, { name: "arrowRight" })
1942
+ X(le, { name: "arrowRight" })
1943
1943
  ], 10, ls)
1944
1944
  ]),
1945
1945
  r("div", null, [
@@ -1948,7 +1948,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1948
1948
  shape: "circle",
1949
1949
  tooltip: "",
1950
1950
  tooltipPlacement: "left",
1951
- onClick: Y
1951
+ onClick: K
1952
1952
  }, {
1953
1953
  default: we(() => R[2] || (R[2] = [
1954
1954
  ge("Оновити дані ", -1)
@@ -1959,7 +1959,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1959
1959
  ])
1960
1960
  ]));
1961
1961
  }
1962
- }), ss = ["for"], is = ["id", "name", "value", "checked", "disabled", "required", ".indeterminate"], Me = /* @__PURE__ */ de({
1962
+ }), ss = ["for"], is = ["id", "name", "value", "checked", "disabled", "required", ".indeterminate"], $e = /* @__PURE__ */ ue({
1963
1963
  __name: "VCheckbox",
1964
1964
  props: {
1965
1965
  modelValue: { type: Boolean, default: void 0 },
@@ -1977,7 +1977,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
1977
1977
  },
1978
1978
  emits: ["update:modelValue", "change", "focus", "blur"],
1979
1979
  setup(n, { emit: e }) {
1980
- const o = n, t = e, l = () => `vt-checkbox-${Math.random().toString(36).substr(2, 9)}`, i = x(() => o.id || l()), c = x(() => o.modelValue ?? o.checked), p = (u) => {
1980
+ const o = n, t = e, l = () => `vt-checkbox-${Math.random().toString(36).substr(2, 9)}`, i = k(() => o.id || l()), c = k(() => o.modelValue ?? o.checked), p = (u) => {
1981
1981
  if (o.disabled) return;
1982
1982
  const C = u.target.checked;
1983
1983
  t("update:modelValue", C), t("change", C, u);
@@ -2100,7 +2100,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
2100
2100
  ], 2)) : j("", !0)
2101
2101
  ], 10, ss));
2102
2102
  }
2103
- }), as = ["for"], us = ["id", "checked", "disabled", "name", "required", "value"], ds = /* @__PURE__ */ de({
2103
+ }), as = ["for"], us = ["id", "checked", "disabled", "name", "required", "value"], ds = /* @__PURE__ */ ue({
2104
2104
  __name: "VRadiobox",
2105
2105
  props: {
2106
2106
  modelValue: { default: void 0 },
@@ -2116,7 +2116,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
2116
2116
  },
2117
2117
  emits: ["update:modelValue", "change", "focus", "blur"],
2118
2118
  setup(n, { emit: e }) {
2119
- const o = n, t = e, l = () => `vt-radiobox-${Math.random().toString(36).substr(2, 9)}`, i = x(() => o.id || l()), c = x(() => o.modelValue !== void 0 ? o.modelValue === o.value : o.checked), p = (u) => {
2119
+ const o = n, t = e, l = () => `vt-radiobox-${Math.random().toString(36).substr(2, 9)}`, i = k(() => o.id || l()), c = k(() => o.modelValue !== void 0 ? o.modelValue === o.value : o.checked), p = (u) => {
2120
2120
  if (o.disabled) return;
2121
2121
  u.target.checked && (t("update:modelValue", o.value), t("change", o.value, u));
2122
2122
  }, v = (u) => {
@@ -2185,7 +2185,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Nr]]), qr = ["disabled", "type", "d
2185
2185
  }
2186
2186
  });
2187
2187
  function cs(n) {
2188
- const e = x(() => [...n].sort((l, i) => l.pinnedLeft && !i.pinnedLeft ? -1 : !l.pinnedLeft && i.pinnedLeft || l.pinnedRight && !i.pinnedRight ? 1 : !l.pinnedRight && i.pinnedRight ? -1 : 0)), o = () => {
2188
+ const e = k(() => [...n].sort((l, i) => l.pinnedLeft && !i.pinnedLeft ? -1 : !l.pinnedLeft && i.pinnedLeft || l.pinnedRight && !i.pinnedRight ? 1 : !l.pinnedRight && i.pinnedRight ? -1 : 0)), o = () => {
2189
2189
  const l = e.value.length, i = e.value.filter((p) => p.width || p.minWidth);
2190
2190
  return l - i.length === 0, 150;
2191
2191
  };
@@ -2245,7 +2245,7 @@ function hs(n) {
2245
2245
  };
2246
2246
  }
2247
2247
  function ps() {
2248
- const n = H({
2248
+ const n = I({
2249
2249
  resizingCol: null,
2250
2250
  startX: 0,
2251
2251
  startWidth: 0
@@ -2256,8 +2256,8 @@ function ps() {
2256
2256
  const p = (f) => {
2257
2257
  const { resizingCol: u, startX: g, startWidth: C } = n.value;
2258
2258
  if (!u) return;
2259
- document.querySelectorAll(`[data-resizer="${u.prop}"]`).forEach((Y) => {
2260
- Y.classList.add("vt-table__resizer--active");
2259
+ document.querySelectorAll(`[data-resizer="${u.prop}"]`).forEach((K) => {
2260
+ K.classList.add("vt-table__resizer--active");
2261
2261
  });
2262
2262
  const z = f.clientX - g, Z = u.minWidth || 50, D = u.maxWidth || 1e3, F = Math.max(Math.min(C + z, D), Z);
2263
2263
  u.width = F;
@@ -2273,22 +2273,22 @@ function ps() {
2273
2273
  };
2274
2274
  }
2275
2275
  function fs(n, e, o, t) {
2276
- var J;
2277
- const l = n.selectionKey || "id", i = H([]), c = H(null), p = H(!1);
2278
- (J = n.defaultSelection) != null && J.length && (i.value = [...n.defaultSelection]);
2279
- const v = (E) => E[l], f = (E) => p.value ? !0 : i.value.some((L) => v(L) === v(E)), u = x(() => e.value.filter((E) => f(E)).length), g = x(() => e.value.length > 0 && u.value === e.value.length), C = x(() => {
2276
+ var N;
2277
+ const l = n.selectionKey || "id", i = I([]), c = I(null), p = I(!1);
2278
+ (N = n.defaultSelection) != null && N.length && (i.value = [...n.defaultSelection]);
2279
+ const v = (E) => E[l], f = (E) => p.value ? !0 : i.value.some((L) => v(L) === v(E)), u = k(() => e.value.filter((E) => f(E)).length), g = k(() => e.value.length > 0 && u.value === e.value.length), C = k(() => {
2280
2280
  if (p.value) return !1;
2281
2281
  const E = u.value;
2282
2282
  return E > 0 && E < e.value.length;
2283
- }), z = x(() => p.value ? !0 : g.value && !C.value), Z = x(() => p.value), D = (E, L) => {
2284
- const N = v(E), re = i.value.some((b) => v(b) === v(E)), m = L !== void 0 ? L : !re;
2283
+ }), z = k(() => p.value ? !0 : g.value && !C.value), Z = k(() => p.value), D = (E, L) => {
2284
+ const Y = v(E), ne = i.value.some((b) => v(b) === v(E)), m = L !== void 0 ? L : !ne;
2285
2285
  if (p.value && !m) {
2286
- p.value = !1, t != null && t.value && (i.value = t.value.filter((b) => v(b) !== N)), K(E, !1);
2286
+ p.value = !1, t != null && t.value && (i.value = t.value.filter((b) => v(b) !== Y)), U(E, !1);
2287
2287
  return;
2288
2288
  }
2289
- p.value && m || (m && !re ? i.value.push(E) : !m && re && (i.value = i.value.filter((b) => v(b) !== N)), n.selectOnClickRow && L === void 0 && ee(m ? E : null), K(E, m));
2289
+ p.value && m || (m && !ne ? i.value.push(E) : !m && ne && (i.value = i.value.filter((b) => v(b) !== Y)), n.selectOnClickRow && L === void 0 && ee(m ? E : null), U(E, m));
2290
2290
  }, F = () => {
2291
- switch (Y()) {
2291
+ switch (K()) {
2292
2292
  case "none":
2293
2293
  case "partial":
2294
2294
  B();
@@ -2300,17 +2300,17 @@ function fs(n, e, o, t) {
2300
2300
  O();
2301
2301
  break;
2302
2302
  }
2303
- }, Y = () => p.value ? "absoluteAll" : g.value ? "allVisible" : u.value > 0 ? "partial" : "none", B = () => {
2304
- const E = [], L = new Set(i.value.map((N) => v(N)));
2305
- i.value.forEach((N) => {
2306
- E.push(N);
2307
- }), e.value.forEach((N) => {
2308
- L.has(v(N)) || E.push(N);
2309
- }), i.value = E, p.value = !1, K();
2303
+ }, K = () => p.value ? "absoluteAll" : g.value ? "allVisible" : u.value > 0 ? "partial" : "none", B = () => {
2304
+ const E = [], L = new Set(i.value.map((Y) => v(Y)));
2305
+ i.value.forEach((Y) => {
2306
+ E.push(Y);
2307
+ }), e.value.forEach((Y) => {
2308
+ L.has(v(Y)) || E.push(Y);
2309
+ }), i.value = E, p.value = !1, U();
2310
2310
  }, R = () => {
2311
- p.value = !0, t != null && t.value ? i.value = [...t.value] : i.value = [...e.value], K(void 0, void 0, !0);
2311
+ p.value = !0, t != null && t.value ? i.value = [...t.value] : i.value = [...e.value], U(void 0, void 0, !0);
2312
2312
  }, O = () => {
2313
- i.value = [], p.value = !1, c.value = null, K();
2313
+ i.value = [], p.value = !1, c.value = null, U();
2314
2314
  }, ee = (E) => {
2315
2315
  const L = c.value;
2316
2316
  c.value = E, o("current-change", {
@@ -2318,17 +2318,17 @@ function fs(n, e, o, t) {
2318
2318
  oldCurrentRow: L
2319
2319
  });
2320
2320
  }, G = () => [...i.value], te = (E) => {
2321
- i.value = [...E], p.value = !1, K();
2322
- }, K = (E, L, N = !1) => {
2323
- const re = {
2321
+ i.value = [...E], p.value = !1, U();
2322
+ }, U = (E, L, Y = !1) => {
2323
+ const ne = {
2324
2324
  selection: [...i.value],
2325
2325
  row: E,
2326
2326
  selected: L,
2327
- isAllSelected: N || p.value
2327
+ isAllSelected: Y || p.value
2328
2328
  };
2329
- o("selection-change", re);
2329
+ o("selection-change", ne);
2330
2330
  };
2331
- return ce(
2331
+ return fe(
2332
2332
  () => n.defaultSelection,
2333
2333
  (E) => {
2334
2334
  E != null && E.length && (i.value = [...E]);
@@ -2367,16 +2367,16 @@ const ms = (n, e, o = "asc") => {
2367
2367
  if (n === e) return 0;
2368
2368
  let t = 0;
2369
2369
  const l = Number(n), i = Number(e);
2370
- return !isNaN(l) && !isNaN(i) ? t = l - i : st(n) && st(e) ? t = new Date(n).getTime() - new Date(e).getTime() : typeof n == "boolean" && typeof e == "boolean" ? t = n === e ? 0 : n ? -1 : 1 : t = String(n).localeCompare(String(e), void 0, {
2370
+ return !isNaN(l) && !isNaN(i) ? t = l - i : s1(n) && s1(e) ? t = new Date(n).getTime() - new Date(e).getTime() : typeof n == "boolean" && typeof e == "boolean" ? t = n === e ? 0 : n ? -1 : 1 : t = String(n).localeCompare(String(e), void 0, {
2371
2371
  numeric: !0,
2372
2372
  sensitivity: "base"
2373
2373
  }), o === "desc" ? -t : t;
2374
- }, st = (n) => n instanceof Date ? !isNaN(n.getTime()) : typeof n == "string" && /\d{4}-\d{2}-\d{2}|\//.test(n) ? !isNaN(new Date(n).getTime()) : !1, Cs = (n, e, o) => {
2374
+ }, s1 = (n) => n instanceof Date ? !isNaN(n.getTime()) : typeof n == "string" && /\d{4}-\d{2}-\d{2}|\//.test(n) ? !isNaN(new Date(n).getTime()) : !1, Cs = (n, e, o) => {
2375
2375
  n.sortable && o({
2376
2376
  prop: n.prop,
2377
2377
  direction: e
2378
2378
  });
2379
- }, it = (n, e) => {
2379
+ }, i1 = (n, e) => {
2380
2380
  const o = (e == null ? void 0 : e.prop) === n.prop, t = e == null ? void 0 : e.direction;
2381
2381
  return {
2382
2382
  asc: ["vt-th__sort-icon", o && t === "asc" && "vt-th__sortable-active"].filter(Boolean).join(" "),
@@ -2391,7 +2391,7 @@ const ms = (n, e, o = "asc") => {
2391
2391
  const p = i[t.prop], v = c[t.prop];
2392
2392
  return l(p, v, e.direction);
2393
2393
  });
2394
- }, at = (n) => {
2394
+ }, a1 = (n) => {
2395
2395
  if (!n) return !1;
2396
2396
  const e = n.getBoundingClientRect();
2397
2397
  if (e.width === 0 && e.height === 0) return !1;
@@ -2441,7 +2441,7 @@ const ms = (n, e, o = "asc") => {
2441
2441
  transformOrigin: "center top"
2442
2442
  };
2443
2443
  };
2444
- function mt(n, e, o = {}) {
2444
+ function m1(n, e, o = {}) {
2445
2445
  const {
2446
2446
  trigger: t = "click",
2447
2447
  placement: l = "bottom-start",
@@ -2451,33 +2451,33 @@ function mt(n, e, o = {}) {
2451
2451
  hideOnClick: v = !0,
2452
2452
  onVisibleChange: f,
2453
2453
  onScroll: u
2454
- } = o, g = H(!1), C = H(!0), z = H(!1), Z = H(null), D = H([]), F = H({
2454
+ } = o, g = I(!1), C = I(!0), z = I(!1), Z = I(null), D = I([]), F = I({
2455
2455
  top: "0px",
2456
2456
  left: "0px",
2457
2457
  transformOrigin: "center top"
2458
- }), Y = () => {
2458
+ }), K = () => {
2459
2459
  if (!n.value) return;
2460
- const J = at(n.value);
2461
- C.value !== J && (C.value = J, !J && g.value ? (z.value = !0, g.value = !1, f == null || f(!1)) : J && z.value && !g.value && (z.value = !1, g.value = !0, B(), f == null || f(!0)));
2460
+ const N = a1(n.value);
2461
+ C.value !== N && (C.value = N, !N && g.value ? (z.value = !0, g.value = !1, f == null || f(!1)) : N && z.value && !g.value && (z.value = !1, g.value = !0, B(), f == null || f(!0)));
2462
2462
  }, B = async () => {
2463
- if (await me(), !n.value || !e.value) return;
2464
- const J = n.value.getBoundingClientRect(), E = e.value.getBoundingClientRect(), L = _s(J, E, l);
2463
+ if (await Ce(), !n.value || !e.value) return;
2464
+ const N = n.value.getBoundingClientRect(), E = e.value.getBoundingClientRect(), L = _s(N, E, l);
2465
2465
  F.value = {
2466
2466
  ...L,
2467
- minWidth: `${J.width}px`
2467
+ minWidth: `${N.width}px`
2468
2468
  };
2469
2469
  }, R = () => {
2470
- (g.value || z.value) && (Y(), g.value && B(), u == null || u());
2470
+ (g.value || z.value) && (K(), g.value && B(), u == null || u());
2471
2471
  }, O = () => {
2472
- n.value && (D.value = gs(n.value), D.value.forEach((J) => {
2473
- J.addEventListener("scroll", R, { passive: !0 });
2472
+ n.value && (D.value = gs(n.value), D.value.forEach((N) => {
2473
+ N.addEventListener("scroll", R, { passive: !0 });
2474
2474
  }), window.addEventListener("resize", R));
2475
2475
  }, ee = () => {
2476
- D.value.forEach((J) => {
2477
- J.removeEventListener("scroll", R);
2476
+ D.value.forEach((N) => {
2477
+ N.removeEventListener("scroll", R);
2478
2478
  }), window.removeEventListener("resize", R), D.value = [];
2479
2479
  }, G = () => {
2480
- p || g.value || !n.value || !at(n.value) || (Z.value = window.setTimeout(
2480
+ p || g.value || !n.value || !a1(n.value) || (Z.value = window.setTimeout(
2481
2481
  async () => {
2482
2482
  g.value = !0, C.value = !0, z.value = !1, await B(), O(), f == null || f(!0);
2483
2483
  },
@@ -2490,7 +2490,7 @@ function mt(n, e, o = {}) {
2490
2490
  },
2491
2491
  t === "hover" ? c : 0
2492
2492
  ));
2493
- }, K = () => {
2493
+ }, U = () => {
2494
2494
  p || (g.value ? te() : G());
2495
2495
  };
2496
2496
  return Ie(() => {
@@ -2504,15 +2504,15 @@ function mt(n, e, o = {}) {
2504
2504
  // Methods
2505
2505
  show: G,
2506
2506
  hide: te,
2507
- toggle: K,
2507
+ toggle: U,
2508
2508
  updatePosition: B,
2509
2509
  // Internal methods
2510
- checkParentVisibility: Y,
2510
+ checkParentVisibility: K,
2511
2511
  addScrollListeners: O,
2512
2512
  removeScrollListeners: ee
2513
2513
  };
2514
2514
  }
2515
- const Ct = Symbol("dropdown-context"), wt = /* @__PURE__ */ de({
2515
+ const C1 = Symbol("dropdown-context"), w1 = /* @__PURE__ */ ue({
2516
2516
  __name: "VDropdown",
2517
2517
  props: {
2518
2518
  trigger: { default: "hover" },
@@ -2527,7 +2527,7 @@ const Ct = Symbol("dropdown-context"), wt = /* @__PURE__ */ de({
2527
2527
  },
2528
2528
  emits: ["visible-change", "click", "command"],
2529
2529
  setup(n, { expose: e, emit: o }) {
2530
- const t = n, l = o, i = H(), c = H(), p = H(), v = H(!1), f = H(!1), u = H(null), { visible: g, parentVisible: C, dropdownPosition: z, show: Z, hide: D, toggle: F } = mt(
2530
+ const t = n, l = o, i = I(), c = I(), p = I(), v = I(!1), f = I(!1), u = I(null), { visible: g, parentVisible: C, dropdownPosition: z, show: Z, hide: D, toggle: F } = m1(
2531
2531
  c,
2532
2532
  p,
2533
2533
  {
@@ -2539,14 +2539,14 @@ const Ct = Symbol("dropdown-context"), wt = /* @__PURE__ */ de({
2539
2539
  hideOnClick: t.hideOnClick,
2540
2540
  onVisibleChange: (L) => l("visible-change", L)
2541
2541
  }
2542
- ), Y = () => {
2542
+ ), K = () => {
2543
2543
  u.value && (clearTimeout(u.value), u.value = null);
2544
2544
  }, B = () => {
2545
- Y(), u.value = setTimeout(() => {
2545
+ K(), u.value = setTimeout(() => {
2546
2546
  !v.value && !f.value && D();
2547
2547
  }, t.hideTimeout);
2548
2548
  };
2549
- et(Ct, {
2549
+ e1(C1, {
2550
2550
  handleCommand: (L) => {
2551
2551
  l("command", L), t.hideOnClick && D();
2552
2552
  },
@@ -2555,19 +2555,19 @@ const Ct = Symbol("dropdown-context"), wt = /* @__PURE__ */ de({
2555
2555
  const O = (L) => {
2556
2556
  t.disabled || (l("click", L), t.trigger === "click" && F());
2557
2557
  }, ee = () => {
2558
- t.trigger === "hover" && (v.value = !0, Y(), Z());
2558
+ t.trigger === "hover" && (v.value = !0, K(), Z());
2559
2559
  }, G = () => {
2560
2560
  t.trigger === "hover" && (v.value = !1, B());
2561
2561
  }, te = () => {
2562
- t.trigger === "hover" && (f.value = !0, Y());
2563
- }, K = () => {
2562
+ t.trigger === "hover" && (f.value = !0, K());
2563
+ }, U = () => {
2564
2564
  t.trigger === "hover" && (f.value = !1, B());
2565
- }, J = (L) => {
2566
- var re, m;
2565
+ }, N = (L) => {
2566
+ var ne, m;
2567
2567
  if (!g.value) return;
2568
- const N = L.target;
2569
- (re = i.value) != null && re.contains(N) || (m = p.value) != null && m.contains(N) || D();
2570
- }, E = x(() => ({
2568
+ const Y = L.target;
2569
+ (ne = i.value) != null && ne.contains(Y) || (m = p.value) != null && m.contains(Y) || D();
2570
+ }, E = k(() => ({
2571
2571
  ...z.value,
2572
2572
  position: "absolute",
2573
2573
  zIndex: 2e3,
@@ -2578,10 +2578,10 @@ const Ct = Symbol("dropdown-context"), wt = /* @__PURE__ */ de({
2578
2578
  hide: D,
2579
2579
  visible: g
2580
2580
  }), _e(() => {
2581
- document.addEventListener("click", J);
2581
+ document.addEventListener("click", N);
2582
2582
  }), Ie(() => {
2583
- document.removeEventListener("click", J), Y();
2584
- }), (L, N) => (s(), a("div", {
2583
+ document.removeEventListener("click", N), K();
2584
+ }), (L, Y) => (s(), a("div", {
2585
2585
  ref_key: "dropdownRef",
2586
2586
  ref: i,
2587
2587
  class: "vt-dropdown",
@@ -2596,18 +2596,18 @@ const Ct = Symbol("dropdown-context"), wt = /* @__PURE__ */ de({
2596
2596
  }, [
2597
2597
  ve(L.$slots, "default")
2598
2598
  ], 512),
2599
- ne(g) && ne(C) ? (s(), ie(Je, {
2599
+ oe(g) && oe(C) ? (s(), ie(Je, {
2600
2600
  key: 0,
2601
2601
  to: "body"
2602
2602
  }, [
2603
2603
  r("div", {
2604
2604
  ref_key: "menuRef",
2605
2605
  ref: p,
2606
- style: fe(E.value),
2606
+ style: pe(E.value),
2607
2607
  class: "vt-dropdown-menu",
2608
2608
  onMouseenter: te,
2609
- onMouseleave: K,
2610
- onClick: N[0] || (N[0] = Ce(() => {
2609
+ onMouseleave: U,
2610
+ onClick: Y[0] || (Y[0] = me(() => {
2611
2611
  }, ["stop"]))
2612
2612
  }, [
2613
2613
  ve(L.$slots, "dropdown")
@@ -2615,7 +2615,7 @@ const Ct = Symbol("dropdown-context"), wt = /* @__PURE__ */ de({
2615
2615
  ])) : j("", !0)
2616
2616
  ], 544));
2617
2617
  }
2618
- }), Ue = /* @__PURE__ */ de({
2618
+ }), Ue = /* @__PURE__ */ ue({
2619
2619
  __name: "VDropdownItem",
2620
2620
  props: {
2621
2621
  command: {},
@@ -2625,7 +2625,7 @@ const Ct = Symbol("dropdown-context"), wt = /* @__PURE__ */ de({
2625
2625
  },
2626
2626
  emits: ["click"],
2627
2627
  setup(n, { emit: e }) {
2628
- const o = n, t = e, l = tt(Ct);
2628
+ const o = n, t = e, l = t1(C1);
2629
2629
  l || console.warn("VDropdownItem must be used within VDropdown");
2630
2630
  const i = (c) => {
2631
2631
  o.disabled || (console.log("VDropdownItem click:", o.command), t("click", c), o.command !== void 0 && l && (console.log("Calling handleCommand with:", o.command), l.handleCommand(o.command)));
@@ -2652,7 +2652,7 @@ class ks {
2652
2652
  open(e = {}) {
2653
2653
  const o = `modal-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, t = document.createElement("div");
2654
2654
  t.setAttribute("data-vt-modal", o), document.body.appendChild(t);
2655
- const l = H(!0), i = this.baseZIndex + this.modalStack.length * 10, c = bt({
2655
+ const l = I(!0), i = this.baseZIndex + this.modalStack.length * 10, c = b1({
2656
2656
  setup() {
2657
2657
  const v = () => {
2658
2658
  l.value = !1, setTimeout(() => {
@@ -2660,7 +2660,7 @@ class ks {
2660
2660
  }, 100);
2661
2661
  };
2662
2662
  return () => qe(
2663
- vt,
2663
+ v1,
2664
2664
  {
2665
2665
  modelValue: l.value,
2666
2666
  "onUpdate:modelValue": v,
@@ -2722,16 +2722,16 @@ const xe = new ks(), bs = {
2722
2722
  closeById: (e) => xe.closeById(e)
2723
2723
  };
2724
2724
  }
2725
- }, ys = { class: "vt-columns-selector-body" }, xs = { class: "vt-columns-selector" }, Ms = { class: "vt-columns-selector__panel" }, $s = ["draggable", "onDragstart", "onDragover", "onDrop"], Ls = {
2725
+ }, ys = { class: "vt-columns-selector-body" }, xs = { class: "vt-columns-selector" }, $s = { class: "vt-columns-selector__panel" }, Ms = ["draggable", "onDragstart", "onDragover", "onDrop"], Ls = {
2726
2726
  key: 0,
2727
2727
  class: "vt-columns-selector__panel-item-pinned"
2728
2728
  }, Vs = { class: "vt-columns-selector__available" }, Ss = ["onClick"], Is = {
2729
2729
  key: 0,
2730
2730
  class: "vt-columns-selector__group-columns"
2731
- }, Hs = {
2731
+ }, Bs = {
2732
2732
  key: 0,
2733
2733
  class: "vt-columns-selector__pinned-note"
2734
- }, Bs = { class: "vt-modal__content-button" }, Es = /* @__PURE__ */ de({
2734
+ }, Hs = { class: "vt-modal__content-button" }, Es = /* @__PURE__ */ ue({
2735
2735
  __name: "VTableColumnSelector",
2736
2736
  props: {
2737
2737
  columns: {},
@@ -2739,46 +2739,46 @@ const xe = new ks(), bs = {
2739
2739
  },
2740
2740
  emits: ["update-columns"],
2741
2741
  setup(n, { emit: e }) {
2742
- const o = n, t = e, l = H([]), i = H(/* @__PURE__ */ new Set()), c = H(-1), p = H(-1), v = H("before"), f = x(() => {
2742
+ const o = n, t = e, l = I([]), i = I(/* @__PURE__ */ new Set()), c = I(-1), p = I(-1), v = I("before"), f = k(() => {
2743
2743
  const m = {};
2744
2744
  return o.columnsSelector.forEach((b) => {
2745
2745
  if (b.name === "removed")
2746
2746
  return;
2747
- const y = b.columns.map((T) => T.prop), S = l.value.filter((T) => y.includes(T.prop));
2747
+ const x = b.columns.map((T) => T.prop), S = l.value.filter((T) => x.includes(T.prop));
2748
2748
  S.length === 0 ? m[b.name] = { checked: !1, indeterminate: !1 } : S.length === b.columns.length ? m[b.name] = { checked: !0, indeterminate: !1 } : m[b.name] = { checked: !1, indeterminate: !0 };
2749
2749
  }), m;
2750
- }), u = x(() => o.columnsSelector.filter((m) => m.name !== "removed")), g = (m) => m.pinnedLeft || m.pinnedRight, C = (m) => !g(m), z = () => {
2750
+ }), u = k(() => o.columnsSelector.filter((m) => m.name !== "removed")), g = (m) => m.pinnedLeft || m.pinnedRight, C = (m) => !g(m), z = () => {
2751
2751
  const m = l.value;
2752
2752
  let b = -1;
2753
2753
  for (let S = 0; S < m.length; S++)
2754
2754
  m[S].pinnedLeft && (b = S);
2755
- let y = m.length;
2755
+ let x = m.length;
2756
2756
  for (let S = 0; S < m.length; S++)
2757
2757
  if (m[S].pinnedRight) {
2758
- y = S;
2758
+ x = S;
2759
2759
  break;
2760
2760
  }
2761
2761
  return {
2762
2762
  minIndex: b + 1,
2763
- maxIndex: y - 1
2763
+ maxIndex: x - 1
2764
2764
  };
2765
2765
  }, Z = (m) => {
2766
2766
  const b = z();
2767
2767
  return !(m < b.minIndex || m > b.maxIndex + 1);
2768
2768
  }, D = (m, b) => {
2769
- const y = l.value[b];
2770
- if (!C(y)) {
2769
+ const x = l.value[b];
2770
+ if (!C(x)) {
2771
2771
  m.preventDefault();
2772
2772
  return;
2773
2773
  }
2774
- c.value = b, m.dataTransfer && (m.dataTransfer.effectAllowed = "move", m.dataTransfer.setData("text/plain", y.prop)), document.body.style.cursor = "grabbing";
2774
+ c.value = b, m.dataTransfer && (m.dataTransfer.effectAllowed = "move", m.dataTransfer.setData("text/plain", x.prop)), document.body.style.cursor = "grabbing";
2775
2775
  }, F = (m, b) => {
2776
2776
  if (c.value === -1) return;
2777
2777
  m.preventDefault();
2778
- const y = m.currentTarget.getBoundingClientRect(), S = m.clientY, T = y.top + y.height / 2;
2778
+ const x = m.currentTarget.getBoundingClientRect(), S = m.clientY, T = x.top + x.height / 2;
2779
2779
  let q = b, se = "before";
2780
2780
  S < T ? (q = b, se = "before") : (q = b + 1, se = "after"), c.value < q && q--, Z(q) ? (p.value = b, v.value = se, m.dataTransfer.dropEffect = "move") : (p.value = -1, m.dataTransfer.dropEffect = "none");
2781
- }, Y = () => {
2781
+ }, K = () => {
2782
2782
  setTimeout(() => {
2783
2783
  c.value === -1 && (p.value = -1);
2784
2784
  }, 50);
@@ -2787,7 +2787,7 @@ const xe = new ks(), bs = {
2787
2787
  O();
2788
2788
  return;
2789
2789
  }
2790
- const y = m.currentTarget.getBoundingClientRect(), S = m.clientY, T = y.top + y.height / 2;
2790
+ const x = m.currentTarget.getBoundingClientRect(), S = m.clientY, T = x.top + x.height / 2;
2791
2791
  let q = b;
2792
2792
  if (S >= T && (q = b + 1), c.value < q && q--, !Z(q) || q === c.value) {
2793
2793
  O();
@@ -2808,111 +2808,111 @@ const xe = new ks(), bs = {
2808
2808
  });
2809
2809
  }, te = (m, b) => {
2810
2810
  if (b)
2811
- l.value.some((y) => y.prop === m.prop) || l.value.push({ ...m });
2811
+ l.value.some((x) => x.prop === m.prop) || l.value.push({ ...m });
2812
2812
  else {
2813
2813
  if (g(m))
2814
2814
  return;
2815
- l.value = l.value.filter((y) => y.prop !== m.prop);
2815
+ l.value = l.value.filter((x) => x.prop !== m.prop);
2816
2816
  }
2817
- }, K = (m, b) => {
2817
+ }, U = (m, b) => {
2818
2818
  if (b)
2819
- m.columns.forEach((y) => {
2820
- l.value.some((S) => S.prop === y.prop) || l.value.push({ ...y });
2819
+ m.columns.forEach((x) => {
2820
+ l.value.some((S) => S.prop === x.prop) || l.value.push({ ...x });
2821
2821
  });
2822
2822
  else {
2823
- const y = [];
2823
+ const x = [];
2824
2824
  m.columns.forEach((S) => {
2825
2825
  const T = l.value.find((q) => q.prop === S.prop);
2826
- T && !g(T) && y.push(T);
2826
+ T && !g(T) && x.push(T);
2827
2827
  }), l.value = l.value.filter(
2828
- (S) => !y.some((T) => T.prop === S.prop)
2828
+ (S) => !x.some((T) => T.prop === S.prop)
2829
2829
  );
2830
2830
  }
2831
- }, J = (m) => l.value.some((b) => b.prop === m.prop), E = (m) => {
2832
- const b = l.value.find((y) => y.prop === m.prop);
2831
+ }, N = (m) => l.value.some((b) => b.prop === m.prop), E = (m) => {
2832
+ const b = l.value.find((x) => x.prop === m.prop);
2833
2833
  return !b || !g(b);
2834
2834
  }, L = (m) => {
2835
2835
  i.value.has(m) ? i.value.delete(m) : i.value.add(m);
2836
- }, N = () => {
2836
+ }, Y = () => {
2837
2837
  t("update-columns", [...l.value]), xe.close();
2838
- }, re = () => {
2838
+ }, ne = () => {
2839
2839
  xe.close();
2840
2840
  };
2841
2841
  return _e(() => {
2842
2842
  G();
2843
2843
  }), (m, b) => (s(), a("div", ys, [
2844
2844
  r("div", xs, [
2845
- r("div", Ms, [
2846
- (s(!0), a(he, null, pe(l.value, (y, S) => (s(), a("div", {
2847
- key: y.prop,
2845
+ r("div", $s, [
2846
+ (s(!0), a(ce, null, he(l.value, (x, S) => (s(), a("div", {
2847
+ key: x.prop,
2848
2848
  class: A(ee(S)),
2849
- draggable: C(y),
2849
+ draggable: C(x),
2850
2850
  onDragstart: (T) => D(T, S),
2851
2851
  onDragover: (T) => F(T, S),
2852
- onDragleave: Y,
2852
+ onDragleave: K,
2853
2853
  onDrop: (T) => B(T, S),
2854
2854
  onDragend: R
2855
2855
  }, [
2856
- X(oe, {
2857
- name: C(y) ? "columnsMove" : "freeze",
2858
- class: A(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": C(y) }])
2856
+ X(le, {
2857
+ name: C(x) ? "columnsMove" : "freeze",
2858
+ class: A(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": C(x) }])
2859
2859
  }, null, 8, ["name", "class"]),
2860
- X(Me, {
2861
- label: y.label,
2860
+ X($e, {
2861
+ label: x.label,
2862
2862
  checked: !0,
2863
- disabled: g(y),
2864
- onChange: (T) => te(y, T),
2865
- onClick: b[0] || (b[0] = Ce(() => {
2863
+ disabled: g(x),
2864
+ onChange: (T) => te(x, T),
2865
+ onClick: b[0] || (b[0] = me(() => {
2866
2866
  }, ["stop"]))
2867
2867
  }, null, 8, ["label", "disabled", "onChange"]),
2868
- g(y) ? (s(), a("span", Ls, "pinned")) : j("", !0)
2869
- ], 42, $s))), 128))
2868
+ g(x) ? (s(), a("span", Ls, "pinned")) : j("", !0)
2869
+ ], 42, Ms))), 128))
2870
2870
  ]),
2871
2871
  r("div", Vs, [
2872
- (s(!0), a(he, null, pe(u.value, (y) => {
2872
+ (s(!0), a(ce, null, he(u.value, (x) => {
2873
2873
  var S, T;
2874
2874
  return s(), a("div", {
2875
- key: y.name,
2875
+ key: x.name,
2876
2876
  class: "vt-columns-selector__group"
2877
2877
  }, [
2878
2878
  r("div", {
2879
2879
  class: "vt-columns-selector__group-header",
2880
- onClick: (q) => L(y.name)
2880
+ onClick: (q) => L(x.name)
2881
2881
  }, [
2882
- X(Me, {
2883
- label: y.label,
2884
- checked: ((S = f.value[y.name]) == null ? void 0 : S.checked) || !1,
2885
- indeterminate: ((T = f.value[y.name]) == null ? void 0 : T.indeterminate) || !1,
2886
- onChange: (q) => K(y, q),
2887
- onClick: b[1] || (b[1] = Ce(() => {
2882
+ X($e, {
2883
+ label: x.label,
2884
+ checked: ((S = f.value[x.name]) == null ? void 0 : S.checked) || !1,
2885
+ indeterminate: ((T = f.value[x.name]) == null ? void 0 : T.indeterminate) || !1,
2886
+ onChange: (q) => U(x, q),
2887
+ onClick: b[1] || (b[1] = me(() => {
2888
2888
  }, ["stop"]))
2889
2889
  }, null, 8, ["label", "checked", "indeterminate", "onChange"]),
2890
- y.icon ? (s(), ie(oe, {
2890
+ x.icon ? (s(), ie(le, {
2891
2891
  key: 0,
2892
- name: y.icon,
2892
+ name: x.icon,
2893
2893
  class: "vt-columns-selector__group-icon"
2894
2894
  }, null, 8, ["name"])) : j("", !0)
2895
2895
  ], 8, Ss),
2896
- i.value.has(y.name) ? (s(), a("div", Is, [
2897
- (s(!0), a(he, null, pe(y.columns, (q) => (s(), a("div", {
2896
+ i.value.has(x.name) ? (s(), a("div", Is, [
2897
+ (s(!0), a(ce, null, he(x.columns, (q) => (s(), a("div", {
2898
2898
  key: q.prop,
2899
2899
  class: "vt-columns-selector__group-column"
2900
2900
  }, [
2901
- X(Me, {
2901
+ X($e, {
2902
2902
  label: q.label,
2903
- checked: J(q),
2903
+ checked: N(q),
2904
2904
  disabled: !E(q),
2905
2905
  onChange: (se) => te(q, se)
2906
2906
  }, null, 8, ["label", "checked", "disabled", "onChange"]),
2907
- E(q) ? j("", !0) : (s(), a("span", Hs, " (закріплена) "))
2907
+ E(q) ? j("", !0) : (s(), a("span", Bs, " (закріплена) "))
2908
2908
  ]))), 128))
2909
2909
  ])) : j("", !0)
2910
2910
  ]);
2911
2911
  }), 128))
2912
2912
  ])
2913
2913
  ]),
2914
- r("div", Bs, [
2915
- X(We, { onClick: re }, {
2914
+ r("div", Hs, [
2915
+ X(We, { onClick: ne }, {
2916
2916
  default: we(() => b[2] || (b[2] = [
2917
2917
  ge("Скасувати", -1)
2918
2918
  ])),
@@ -2921,7 +2921,7 @@ const xe = new ks(), bs = {
2921
2921
  }),
2922
2922
  X(We, {
2923
2923
  type: "primary",
2924
- onClick: N
2924
+ onClick: Y
2925
2925
  }, {
2926
2926
  default: we(() => b[3] || (b[3] = [
2927
2927
  ge("Зберегти", -1)
@@ -2932,7 +2932,7 @@ const xe = new ks(), bs = {
2932
2932
  ])
2933
2933
  ]));
2934
2934
  }
2935
- }), Ts = { class: "vt-table-header-actions" }, js = /* @__PURE__ */ de({
2935
+ }), Ts = { class: "vt-table-header-actions" }, js = /* @__PURE__ */ ue({
2936
2936
  __name: "ColumnActions",
2937
2937
  props: {
2938
2938
  column: {},
@@ -2964,14 +2964,14 @@ const xe = new ks(), bs = {
2964
2964
  var D;
2965
2965
  const g = new Set(u.map((F) => F.prop)), C = /* @__PURE__ */ new Set();
2966
2966
  (D = o.columnsSelector) == null || D.forEach((F) => {
2967
- F.columns.forEach((Y) => C.add(Y.prop));
2967
+ F.columns.forEach((K) => C.add(K.prop));
2968
2968
  }), o.allColumns.forEach((F) => C.add(F.prop));
2969
2969
  const z = [];
2970
2970
  C.forEach((F) => {
2971
- var Y;
2971
+ var K;
2972
2972
  if (!g.has(F)) {
2973
2973
  let B;
2974
- (Y = o.columnsSelector) == null || Y.forEach((R) => {
2974
+ (K = o.columnsSelector) == null || K.forEach((R) => {
2975
2975
  const O = R.columns.find((ee) => ee.prop === F);
2976
2976
  O && (B = O);
2977
2977
  }), B || (B = o.allColumns.find((R) => R.prop === F)), B && z.push(B);
@@ -2996,7 +2996,7 @@ const xe = new ks(), bs = {
2996
2996
  closeOnBackdropClick: !1
2997
2997
  });
2998
2998
  };
2999
- return (u, g) => (s(), ie(wt, {
2999
+ return (u, g) => (s(), ie(w1, {
3000
3000
  trigger: "click",
3001
3001
  placement: "bottom-start",
3002
3002
  onCommand: i
@@ -3004,7 +3004,7 @@ const xe = new ks(), bs = {
3004
3004
  dropdown: we(() => [
3005
3005
  X(Ue, { command: "pin" }, {
3006
3006
  default: we(() => [
3007
- X(oe, {
3007
+ X(le, {
3008
3008
  name: l() ? "unfreeze" : "freeze"
3009
3009
  }, null, 8, ["name"]),
3010
3010
  r("div", null, Q(l() ? "Розморозити" : "Заморозити"), 1)
@@ -3013,7 +3013,7 @@ const xe = new ks(), bs = {
3013
3013
  }),
3014
3014
  X(Ue, { command: "columns" }, {
3015
3015
  default: we(() => [
3016
- X(oe, { name: "columnInsert" }),
3016
+ X(le, { name: "columnInsert" }),
3017
3017
  g[0] || (g[0] = r("div", null, "Колонки", -1))
3018
3018
  ]),
3019
3019
  _: 1,
@@ -3022,7 +3022,7 @@ const xe = new ks(), bs = {
3022
3022
  ]),
3023
3023
  default: we(() => [
3024
3024
  r("div", Ts, [
3025
- X(oe, { name: "listBullet" })
3025
+ X(le, { name: "listBullet" })
3026
3026
  ])
3027
3027
  ]),
3028
3028
  _: 1
@@ -3037,9 +3037,9 @@ const xe = new ks(), bs = {
3037
3037
  }, Fs = ["colspan"], Ns = { class: "vt-table__empty-content" }, qs = ["onClick"], Ks = { class: "vt-table__cell-content" }, Us = { class: "vt-table__cell-content vt-table__cell-content--ellipsis" }, Ys = { key: 1 }, Xs = ["data-resizer", "onMousedown"], Qs = {
3038
3038
  key: 1,
3039
3039
  class: "vt-table__summary"
3040
- }, Gs = { class: "vt-table__cell-content vt-table__cell-content--summary" }, Ke = 50, Js = /* @__PURE__ */ de({
3040
+ }, Gs = { class: "vt-table__cell-content vt-table__cell-content--summary" }, Ke = 50, Js = /* @__PURE__ */ ue({
3041
3041
  __name: "VTable",
3042
- props: /* @__PURE__ */ lt({
3042
+ props: /* @__PURE__ */ l1({
3043
3043
  data: {},
3044
3044
  maxHeight: { default: void 0 },
3045
3045
  rowKey: { default: "id" },
@@ -3063,42 +3063,42 @@ const xe = new ks(), bs = {
3063
3063
  },
3064
3064
  columnsModifiers: {}
3065
3065
  }),
3066
- emits: /* @__PURE__ */ lt(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
3066
+ emits: /* @__PURE__ */ l1(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
3067
3067
  setup(n, { expose: e, emit: o }) {
3068
- const t = n, l = o, i = yt(n, "columns"), c = H({}), p = H(), v = xt([]), f = H(t.defaultSort || null), u = x(() => ws(t.data || [], f.value, v)), g = x(() => i.value !== void 0), C = x(() => t.data && t.data.length > 0), z = H(!1), Z = H(0);
3068
+ const t = n, l = o, i = y1(n, "columns"), c = I({}), p = I(), v = x1([]), f = I(t.defaultSort || null), u = k(() => ws(t.data || [], f.value, v)), g = k(() => i.value !== void 0), C = k(() => t.data && t.data.length > 0), z = I(!1), Z = I(0);
3069
3069
  let D;
3070
- const F = (_, V) => t.rowKey && _[t.rowKey] != null ? String(_[t.rowKey]) : String(V), Y = () => {
3070
+ const F = (_, V) => t.rowKey && _[t.rowKey] != null ? String(_[t.rowKey]) : String(V), K = () => {
3071
3071
  g.value && i.value ? v.splice(0, v.length, ...i.value) : t.columns && t.columns.length > 0 && v.splice(0, v.length, ...t.columns);
3072
3072
  };
3073
- ce(
3073
+ fe(
3074
3074
  () => i.value,
3075
3075
  (_) => {
3076
3076
  _ && g.value && v.splice(0, v.length, ..._);
3077
3077
  },
3078
3078
  { deep: !0 }
3079
- ), ce(
3079
+ ), fe(
3080
3080
  () => t.columns,
3081
3081
  (_) => {
3082
3082
  _ && !g.value && v.splice(0, v.length, ..._);
3083
3083
  },
3084
3084
  { deep: !0 }
3085
- ), et("vt-table-columns", v);
3086
- const { sortedColumns: B, getDefaultColumnWidth: R, getStickyOffset: O } = cs(v), { getTableWrapperStyle: ee, getColumnStyle: G, getHeaderStyle: te, getFooterStyle: K } = hs(t), { onMouseDown: J } = ps(), E = x(() => t.allData || t.data), L = t.selectable ? fs(t, u, l, E) : null, N = () => ({
3085
+ ), e1("vt-table-columns", v);
3086
+ const { sortedColumns: B, getDefaultColumnWidth: R, getStickyOffset: O } = cs(v), { getTableWrapperStyle: ee, getColumnStyle: G, getHeaderStyle: te, getFooterStyle: U } = hs(t), { onMouseDown: N } = ps(), E = k(() => t.allData || t.data), L = t.selectable ? fs(t, u, l, E) : null, Y = () => ({
3087
3087
  width: `${Ke}px`,
3088
3088
  minWidth: `${Ke}px`,
3089
3089
  maxWidth: `${Ke}px`,
3090
3090
  left: "0px",
3091
3091
  position: "sticky",
3092
3092
  zIndex: 10
3093
- }), re = () => {
3094
- const _ = N();
3093
+ }), ne = () => {
3094
+ const _ = Y();
3095
3095
  return t.maxHeight ? {
3096
3096
  ..._,
3097
3097
  top: "0px",
3098
3098
  zIndex: 11
3099
3099
  } : _;
3100
3100
  }, m = () => {
3101
- const _ = N();
3101
+ const _ = Y();
3102
3102
  return t.maxHeight ? {
3103
3103
  ..._,
3104
3104
  bottom: "0px",
@@ -3106,14 +3106,14 @@ const xe = new ks(), bs = {
3106
3106
  } : _;
3107
3107
  }, b = () => {
3108
3108
  if (!p.value || z.value) return;
3109
- const _ = p.value, V = _.scrollTop, W = _.scrollHeight, d = _.clientHeight, k = 30;
3109
+ const _ = p.value, V = _.scrollTop, W = _.scrollHeight, d = _.clientHeight, y = 30;
3110
3110
  D && clearTimeout(D), D = setTimeout(() => {
3111
- const P = V - Z.value > 1, I = W - V - d <= k, ue = W - V - d <= 5;
3112
- Z.value = V, P && (I || ue) && (z.value = !0, l("infinity-scroll"), setTimeout(() => {
3111
+ const P = V - Z.value > 1, H = W - V - d <= y, de = W - V - d <= 5;
3112
+ Z.value = V, P && (H || de) && (z.value = !0, l("infinity-scroll"), setTimeout(() => {
3113
3113
  z.value = !1;
3114
3114
  }, 1e3));
3115
3115
  }, 50);
3116
- }, y = () => {
3116
+ }, x = () => {
3117
3117
  z.value = !1;
3118
3118
  };
3119
3119
  _e(() => {
@@ -3123,10 +3123,10 @@ const xe = new ks(), bs = {
3123
3123
  });
3124
3124
  const S = (_, V) => {
3125
3125
  Cs(_, V, (W) => {
3126
- var d, k;
3126
+ var d, y;
3127
3127
  ((d = f.value) == null ? void 0 : d.prop) === _.prop && f.value.direction === V ? f.value = null : f.value = W, l("sort-change", {
3128
3128
  column: _,
3129
- direction: ((k = f.value) == null ? void 0 : k.direction) || null,
3129
+ direction: ((y = f.value) == null ? void 0 : y.direction) || null,
3130
3130
  prop: _.prop,
3131
3131
  sortedData: u.value
3132
3132
  });
@@ -3143,10 +3143,10 @@ const xe = new ks(), bs = {
3143
3143
  const W = v.findIndex((d) => d.prop === _);
3144
3144
  if (W !== -1) {
3145
3145
  if (Object.assign(v[W], V), g.value && i.value) {
3146
- const d = i.value.findIndex((k) => k.prop === _);
3146
+ const d = i.value.findIndex((y) => y.prop === _);
3147
3147
  if (d !== -1) {
3148
- const k = [...i.value];
3149
- k[d] = { ...k[d], ...V }, i.value = k;
3148
+ const y = [...i.value];
3149
+ y[d] = { ...y[d], ...V }, i.value = y;
3150
3150
  }
3151
3151
  }
3152
3152
  l("columns-change", [...v]);
@@ -3157,39 +3157,39 @@ const xe = new ks(), bs = {
3157
3157
  W.stopPropagation(), L && L.toggleRowSelection(V, _);
3158
3158
  }, Oe = (_, V) => {
3159
3159
  V.stopPropagation(), L && L.toggleAllSelection();
3160
- }, He = (_, V) => {
3160
+ }, Be = (_, V) => {
3161
3161
  _ && (c.value[V] = _);
3162
3162
  }, Ve = (_, V) => {
3163
3163
  const W = V.width || R();
3164
- J(_, V, R, (d) => {
3164
+ N(_, V, R, (d) => {
3165
3165
  se(V.prop, { width: d }), l("column-resize", {
3166
3166
  column: { ...V, width: d },
3167
3167
  width: d,
3168
3168
  oldWidth: W
3169
3169
  });
3170
3170
  });
3171
- }, Be = (_, V) => G(_, V, O, R), Re = (_, V) => te(_, V, O, R), Ee = (_, V) => K(_, V, O, R), h = (_, V) => {
3171
+ }, He = (_, V) => G(_, V, O, R), Re = (_, V) => te(_, V, O, R), Ee = (_, V) => U(_, V, O, R), h = (_, V) => {
3172
3172
  if (!V || !V.prop) return "";
3173
3173
  const W = _[V.prop];
3174
3174
  return W == null ? "" : String(W);
3175
- }, M = x(() => {
3175
+ }, $ = k(() => {
3176
3176
  if (!t.showSummary || !C.value) return {};
3177
3177
  const _ = v;
3178
3178
  if (typeof t.summaryMethod == "function") {
3179
3179
  const V = t.summaryMethod({ columns: _, data: u.value });
3180
3180
  return _.reduce(
3181
- (W, d, k) => (W[d.prop] = V[k], W),
3181
+ (W, d, y) => (W[d.prop] = V[y], W),
3182
3182
  {}
3183
3183
  );
3184
3184
  }
3185
3185
  return _.reduce(
3186
3186
  (V, W) => {
3187
- const d = u.value.map((k) => k[W.prop]);
3188
- return V[W.prop] = d.every((k) => typeof k == "number") ? d.reduce((k, U) => k + U, 0) : "", V;
3187
+ const d = u.value.map((y) => y[W.prop]);
3188
+ return V[W.prop] = d.every((y) => typeof y == "number") ? d.reduce((y, J) => y + J, 0) : "", V;
3189
3189
  },
3190
3190
  {}
3191
3191
  );
3192
- }), $ = x(() => t.showSummary && C.value), ae = (_, V) => {
3192
+ }), M = k(() => t.showSummary && C.value), ae = (_, V) => {
3193
3193
  L && L.toggleRowSelection(_, V);
3194
3194
  }, ke = () => {
3195
3195
  L && L.toggleAllSelection();
@@ -3211,7 +3211,7 @@ const xe = new ks(), bs = {
3211
3211
  }
3212
3212
  };
3213
3213
  return _e(() => {
3214
- Y();
3214
+ K();
3215
3215
  }), e({
3216
3216
  toggleRowSelection: ae,
3217
3217
  toggleAllSelection: ke,
@@ -3219,14 +3219,14 @@ const xe = new ks(), bs = {
3219
3219
  clearSelection: Te,
3220
3220
  getSelectionRows: De,
3221
3221
  setSelectionRows: Ze,
3222
- resetInfinityScroll: y
3222
+ resetInfinityScroll: x
3223
3223
  }), (_, V) => {
3224
- var d, k, U, P;
3224
+ var d, y, J, P;
3225
3225
  const W = Ge("tooltip");
3226
3226
  return s(), a("div", {
3227
3227
  ref_key: "tableWrapperRef",
3228
3228
  ref: p,
3229
- style: fe(ne(ee)()),
3229
+ style: pe(oe(ee)()),
3230
3230
  class: "vt-table-wrapper",
3231
3231
  onScroll: b
3232
3232
  }, [
@@ -3240,125 +3240,125 @@ const xe = new ks(), bs = {
3240
3240
  "vt-table__th--sticky": t.maxHeight,
3241
3241
  "vt-table__th--pinned-left": !0
3242
3242
  }, "vt-table__th vt-table__th--selection"]),
3243
- style: fe(re())
3243
+ style: pe(ne())
3244
3244
  }, [
3245
3245
  r("div", Rs, [
3246
- X(Me, {
3247
- checked: (d = ne(L)) == null ? void 0 : d.isAllSelected.value,
3248
- indeterminate: (k = ne(L)) == null ? void 0 : k.isIndeterminate.value,
3249
- "is-double": (P = (U = ne(L)) == null ? void 0 : U.isDoubleCheck) == null ? void 0 : P.value,
3246
+ X($e, {
3247
+ checked: (d = oe(L)) == null ? void 0 : d.isAllSelected.value,
3248
+ indeterminate: (y = oe(L)) == null ? void 0 : y.isIndeterminate.value,
3249
+ "is-double": (P = (J = oe(L)) == null ? void 0 : J.isDoubleCheck) == null ? void 0 : P.value,
3250
3250
  onChange: Oe
3251
3251
  }, null, 8, ["checked", "indeterminate", "is-double"])
3252
3252
  ])
3253
3253
  ], 6)) : j("", !0),
3254
- (s(!0), a(he, null, pe(ne(B), (I, ue) => (s(), a("th", {
3255
- key: I.prop,
3254
+ (s(!0), a(ce, null, he(oe(B), (H, de) => (s(), a("th", {
3255
+ key: H.prop,
3256
3256
  ref_for: !0,
3257
- ref: (ye) => He(ye, I.prop),
3257
+ ref: (ye) => Be(ye, H.prop),
3258
3258
  class: A([
3259
3259
  "vt-table__th",
3260
3260
  {
3261
3261
  "vt-table__th--sticky": t.maxHeight,
3262
- "vt-table__th--pinned-left": I.pinnedLeft,
3263
- "vt-table__th--pinned-right": I.pinnedRight,
3264
- "vt-table__th--sortable": I.sortable
3262
+ "vt-table__th--pinned-left": H.pinnedLeft,
3263
+ "vt-table__th--pinned-right": H.pinnedRight,
3264
+ "vt-table__th--sortable": H.sortable
3265
3265
  }
3266
3266
  ]),
3267
- style: fe(Re(I, ue))
3267
+ style: pe(Re(H, de))
3268
3268
  }, [
3269
3269
  r("div", Ds, [
3270
- r("div", Ws, Q(I.label), 1),
3271
- I.sortable ? (s(), a("div", Ps, [
3272
- X(oe, {
3273
- class: A(ne(it)(I, f.value).asc),
3270
+ r("div", Ws, Q(H.label), 1),
3271
+ H.sortable ? (s(), a("div", Ps, [
3272
+ X(le, {
3273
+ class: A(oe(i1)(H, f.value).asc),
3274
3274
  name: "arrowTop",
3275
- onClick: Ce((ye) => S(I, "asc"), ["stop"])
3275
+ onClick: me((ye) => S(H, "asc"), ["stop"])
3276
3276
  }, null, 8, ["class", "onClick"]),
3277
- X(oe, {
3278
- class: A(ne(it)(I, f.value).desc),
3277
+ X(le, {
3278
+ class: A(oe(i1)(H, f.value).desc),
3279
3279
  name: "arrowDown",
3280
- onClick: Ce((ye) => S(I, "desc"), ["stop"])
3280
+ onClick: me((ye) => S(H, "desc"), ["stop"])
3281
3281
  }, null, 8, ["class", "onClick"])
3282
3282
  ])) : j("", !0),
3283
- I.actionColumn ? (s(), ie(js, {
3283
+ H.actionColumn ? (s(), ie(js, {
3284
3284
  key: 1,
3285
- "all-columns": ne(B),
3286
- column: I,
3285
+ "all-columns": oe(B),
3286
+ column: H,
3287
3287
  columnsSelector: t.columnsSelector,
3288
3288
  onPin: T,
3289
3289
  onUpdateColumns: q
3290
3290
  }, null, 8, ["all-columns", "column", "columnsSelector"])) : j("", !0)
3291
3291
  ]),
3292
3292
  r("div", {
3293
- "data-resizer": I.prop,
3293
+ "data-resizer": H.prop,
3294
3294
  class: "vt-table__resizer",
3295
- onMousedown: (ye) => Ve(ye, I)
3295
+ onMousedown: (ye) => Ve(ye, H)
3296
3296
  }, null, 40, As)
3297
3297
  ], 6))), 128))
3298
3298
  ])
3299
3299
  ])),
3300
3300
  r("tbody", null, [
3301
- C.value ? (s(!0), a(he, { key: 1 }, pe(u.value, (I, ue) => {
3302
- var ye, nt, ot;
3301
+ C.value ? (s(!0), a(ce, { key: 1 }, he(u.value, (H, de) => {
3302
+ var ye, n1, o1;
3303
3303
  return s(), a("tr", {
3304
- key: F(I, ue),
3304
+ key: F(H, de),
3305
3305
  class: A([
3306
3306
  "vt-table__row",
3307
3307
  {
3308
- "vt-table__row--selected": (ye = ne(L)) == null ? void 0 : ye.isRowSelected(I),
3309
- "vt-table__row--current": ((nt = ne(L)) == null ? void 0 : nt.currentRow.value) === I,
3308
+ "vt-table__row--selected": (ye = oe(L)) == null ? void 0 : ye.isRowSelected(H),
3309
+ "vt-table__row--current": ((n1 = oe(L)) == null ? void 0 : n1.currentRow.value) === H,
3310
3310
  "vt-table__row--clickable": t.selectOnClickRow || t.highlightCurrentRow
3311
3311
  },
3312
- ...Se(I, ue)
3312
+ ...Se(H, de)
3313
3313
  ]),
3314
- onClick: (le) => Le(I, ne(B)[0], le)
3314
+ onClick: (re) => Le(H, oe(B)[0], re)
3315
3315
  }, [
3316
3316
  t.selectable ? (s(), a("td", {
3317
3317
  key: 0,
3318
3318
  class: A([{
3319
3319
  "vt-table__td--pinned-left": !0
3320
3320
  }, "vt-table__td vt-table__td--selection"]),
3321
- style: fe(N())
3321
+ style: pe(Y())
3322
3322
  }, [
3323
3323
  r("div", Ks, [
3324
- X(Me, {
3325
- checked: (ot = ne(L)) == null ? void 0 : ot.isRowSelected(I),
3326
- onChange: (le, Fe) => ze(le, I, Fe)
3324
+ X($e, {
3325
+ checked: (o1 = oe(L)) == null ? void 0 : o1.isRowSelected(H),
3326
+ onChange: (re, Fe) => ze(re, H, Fe)
3327
3327
  }, null, 8, ["checked", "onChange"])
3328
3328
  ])
3329
3329
  ], 4)) : j("", !0),
3330
- (s(!0), a(he, null, pe(ne(B), (le, Fe) => (s(), a("td", {
3331
- key: `${F(I, ue)}-${le.prop}`,
3330
+ (s(!0), a(ce, null, he(oe(B), (re, Fe) => (s(), a("td", {
3331
+ key: `${F(H, de)}-${re.prop}`,
3332
3332
  ref_for: !0,
3333
- ref: (Ne) => He(Ne, le.prop),
3333
+ ref: (Ne) => Be(Ne, re.prop),
3334
3334
  class: A([
3335
3335
  "vt-table__td",
3336
3336
  {
3337
- "vt-table__td--pinned-left": le.pinnedLeft,
3338
- "vt-table__td--pinned-right": le.pinnedRight
3337
+ "vt-table__td--pinned-left": re.pinnedLeft,
3338
+ "vt-table__td--pinned-right": re.pinnedRight
3339
3339
  }
3340
3340
  ]),
3341
- style: fe(Be(le, Fe))
3341
+ style: pe(He(re, Fe))
3342
3342
  }, [
3343
3343
  Ae((s(), a("div", Us, [
3344
- le.renderSlot ? (s(), ie(Xe(() => ne(vs)(le.renderSlot, { row: I, column: le, value: I[le.prop], index: ue })), { key: 0 })) : (s(), a("span", Ys, Q(I[le.prop]), 1))
3344
+ re.renderSlot ? (s(), ie(Xe(() => oe(vs)(re.renderSlot, { row: H, column: re, value: H[re.prop], index: de })), { key: 0 })) : (s(), a("span", Ys, Q(H[re.prop]), 1))
3345
3345
  ])), [
3346
- [W, le.showOverflowTooltip ? h(I, le) : null]
3346
+ [W, re.showOverflowTooltip ? h(H, re) : null]
3347
3347
  ]),
3348
3348
  r("div", {
3349
- "data-resizer": le.prop,
3349
+ "data-resizer": re.prop,
3350
3350
  class: "vt-table__resizer",
3351
- onMousedown: (Ne) => Ve(Ne, le)
3351
+ onMousedown: (Ne) => Ve(Ne, re)
3352
3352
  }, null, 40, Xs)
3353
3353
  ], 6))), 128))
3354
3354
  ], 10, qs);
3355
3355
  }), 128)) : (s(), a("tr", Zs, [
3356
3356
  r("td", {
3357
- colspan: ne(B).length + (t.selectable ? 1 : 0),
3357
+ colspan: oe(B).length + (t.selectable ? 1 : 0),
3358
3358
  class: "vt-table__empty-cell"
3359
3359
  }, [
3360
3360
  r("div", Ns, [
3361
- X(oe, {
3361
+ X(le, {
3362
3362
  class: "vt-table__empty-icon",
3363
3363
  name: "empty"
3364
3364
  }),
@@ -3367,29 +3367,29 @@ const xe = new ks(), bs = {
3367
3367
  ], 8, Fs)
3368
3368
  ]))
3369
3369
  ]),
3370
- $.value ? (s(), a("tfoot", Qs, [
3370
+ M.value ? (s(), a("tfoot", Qs, [
3371
3371
  r("tr", null, [
3372
3372
  t.selectable ? (s(), a("td", {
3373
3373
  key: 0,
3374
3374
  class: A([{
3375
3375
  "vt-table__td--pinned-left": !0
3376
3376
  }, "vt-table__td"]),
3377
- style: fe(m())
3377
+ style: pe(m())
3378
3378
  }, V[1] || (V[1] = [
3379
3379
  r("div", { class: "vt-table__cell-content vt-table__cell-content--summary" }, null, -1)
3380
3380
  ]), 4)) : j("", !0),
3381
- (s(!0), a(he, null, pe(ne(B), (I, ue) => (s(), a("td", {
3382
- key: I.prop,
3381
+ (s(!0), a(ce, null, he(oe(B), (H, de) => (s(), a("td", {
3382
+ key: H.prop,
3383
3383
  class: A([
3384
3384
  "vt-table__td",
3385
3385
  {
3386
- "vt-table__td--pinned-left": I.pinnedLeft,
3387
- "vt-table__td--pinned-right": I.pinnedRight
3386
+ "vt-table__td--pinned-left": H.pinnedLeft,
3387
+ "vt-table__td--pinned-right": H.pinnedRight
3388
3388
  }
3389
3389
  ]),
3390
- style: fe(Ee(I, ue))
3390
+ style: pe(Ee(H, de))
3391
3391
  }, [
3392
- r("div", Gs, Q(M.value[I.prop]), 1)
3392
+ r("div", Gs, Q($.value[H.prop]), 1)
3393
3393
  ], 6))), 128))
3394
3394
  ])
3395
3395
  ])) : j("", !0)
@@ -3397,7 +3397,7 @@ const xe = new ks(), bs = {
3397
3397
  ], 36);
3398
3398
  };
3399
3399
  }
3400
- }), ei = /* @__PURE__ */ de({
3400
+ }), ei = /* @__PURE__ */ ue({
3401
3401
  __name: "VTableColumn",
3402
3402
  props: {
3403
3403
  prop: {},
@@ -3415,7 +3415,7 @@ const xe = new ks(), bs = {
3415
3415
  sortMethod: {}
3416
3416
  },
3417
3417
  setup(n) {
3418
- const e = n, o = Qe(), t = tt("vt-table-columns");
3418
+ const e = n, o = Qe(), t = t1("vt-table-columns");
3419
3419
  t || console.error(
3420
3420
  "VTableColumn: не знайдено контекст таблиці. Переконайтеся, що компонент використовується всередині VTable."
3421
3421
  );
@@ -3440,7 +3440,7 @@ const xe = new ks(), bs = {
3440
3440
  const c = l();
3441
3441
  t.push(c), i = t.length - 1;
3442
3442
  }
3443
- }), ce(
3443
+ }), fe(
3444
3444
  () => [
3445
3445
  e.width,
3446
3446
  e.minWidth,
@@ -3495,7 +3495,7 @@ const xe = new ks(), bs = {
3495
3495
  }, ci = {
3496
3496
  key: 2,
3497
3497
  class: "vt-input__errors"
3498
- }, gt = /* @__PURE__ */ de({
3498
+ }, g1 = /* @__PURE__ */ ue({
3499
3499
  __name: "VInput",
3500
3500
  props: {
3501
3501
  modelValue: {},
@@ -3543,7 +3543,7 @@ const xe = new ks(), bs = {
3543
3543
  },
3544
3544
  emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "validation", "keydown", "keyup", "keypress", "click"],
3545
3545
  setup(n, { expose: e, emit: o }) {
3546
- const t = n, l = o, i = H(), c = H(), p = H(!1), v = H(!1), f = H(), u = H([]), g = H(!0), C = H(!1), z = {
3546
+ const t = n, l = o, i = I(), c = I(), p = I(!1), v = I(!1), f = I(), u = I([]), g = I(!0), C = I(!1), z = {
3547
3547
  email: (h) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h),
3548
3548
  url: (h) => {
3549
3549
  try {
@@ -3554,37 +3554,37 @@ const xe = new ks(), bs = {
3554
3554
  },
3555
3555
  number: (h) => !isNaN(Number(h)) && isFinite(Number(h)),
3556
3556
  required: (h) => h !== "" && h !== null && h !== void 0,
3557
- minlength: (h, M) => String(h).length >= M,
3558
- maxlength: (h, M) => String(h).length <= M,
3559
- min: (h, M) => {
3560
- const $ = Number(h);
3561
- return !isNaN($) && $ >= M;
3557
+ minlength: (h, $) => String(h).length >= $,
3558
+ maxlength: (h, $) => String(h).length <= $,
3559
+ min: (h, $) => {
3560
+ const M = Number(h);
3561
+ return !isNaN(M) && M >= $;
3562
3562
  },
3563
- max: (h, M) => {
3564
- const $ = Number(h);
3565
- return !isNaN($) && $ <= M;
3563
+ max: (h, $) => {
3564
+ const M = Number(h);
3565
+ return !isNaN(M) && M <= $;
3566
3566
  },
3567
- pattern: (h, M) => new RegExp(M).test(h),
3568
- custom: (h, M) => M(h)
3567
+ pattern: (h, $) => new RegExp($).test(h),
3568
+ custom: (h, $) => $(h)
3569
3569
  }, Z = (h) => {
3570
- const M = [], $ = String(h || "");
3571
- if (t.required && !z.required(h) && M.push(t.requiredMessage || "Це поле є обов'язковим"), !$ && !t.required) {
3572
- u.value = M, g.value = M.length === 0;
3570
+ const $ = [], M = String(h || "");
3571
+ if (t.required && !z.required(h) && $.push(t.requiredMessage || "Це поле є обов'язковим"), !M && !t.required) {
3572
+ u.value = $, g.value = $.length === 0;
3573
3573
  return;
3574
3574
  }
3575
3575
  switch (t.type) {
3576
3576
  case "email":
3577
- $ && !z.email($) && M.push(t.emailMessage || "Введіть коректну email адресу");
3577
+ M && !z.email(M) && $.push(t.emailMessage || "Введіть коректну email адресу");
3578
3578
  break;
3579
3579
  case "url":
3580
- $ && !z.url($) && M.push(t.urlMessage || "Введіть коректний URL");
3580
+ M && !z.url(M) && $.push(t.urlMessage || "Введіть коректний URL");
3581
3581
  break;
3582
3582
  case "number":
3583
- $ && !z.number($) && M.push(t.numberMessage || "Введіть коректне число");
3583
+ M && !z.number(M) && $.push(t.numberMessage || "Введіть коректне число");
3584
3584
  break;
3585
3585
  }
3586
- t.minlength && $ && !z.minlength($, t.minlength) && M.push(t.minlengthMessage || `Мінімальна довжина: ${t.minlength} символів`), t.maxlength && $ && !z.maxlength($, t.maxlength) && M.push(t.maxlengthMessage || `Максимальна довжина: ${t.maxlength} символів`), t.type === "number" && $ && z.number($) && (t.min !== void 0 && !z.min($, t.min) && M.push(t.minMessage || `Мінімальне значення: ${t.min}`), t.max !== void 0 && !z.max($, t.max) && M.push(t.maxMessage || `Максимальне значення: ${t.max}`)), t.pattern && $ && !z.pattern($, t.pattern) && M.push(t.patternMessage || "Значення не відповідає вимогам формату"), t.customValidator && !z.custom(h, t.customValidator) && M.push(t.customValidatorMessage || "Значення не проходить валідацію"), u.value = M, g.value = M.length === 0, l("validation", { isValid: g.value, errors: M });
3587
- }, D = x(() => t.type === "textarea"), F = x(() => {
3586
+ t.minlength && M && !z.minlength(M, t.minlength) && $.push(t.minlengthMessage || `Мінімальна довжина: ${t.minlength} символів`), t.maxlength && M && !z.maxlength(M, t.maxlength) && $.push(t.maxlengthMessage || `Максимальна довжина: ${t.maxlength} символів`), t.type === "number" && M && z.number(M) && (t.min !== void 0 && !z.min(M, t.min) && $.push(t.minMessage || `Мінімальне значення: ${t.min}`), t.max !== void 0 && !z.max(M, t.max) && $.push(t.maxMessage || `Максимальне значення: ${t.max}`)), t.pattern && M && !z.pattern(M, t.pattern) && $.push(t.patternMessage || "Значення не відповідає вимогам формату"), t.customValidator && !z.custom(h, t.customValidator) && $.push(t.customValidatorMessage || "Значення не проходить валідацію"), u.value = $, g.value = $.length === 0, l("validation", { isValid: g.value, errors: $ });
3587
+ }, D = k(() => t.type === "textarea"), F = k(() => {
3588
3588
  if (t.type === "password") return null;
3589
3589
  switch (t.type) {
3590
3590
  case "email":
@@ -3594,7 +3594,7 @@ const xe = new ks(), bs = {
3594
3594
  default:
3595
3595
  return null;
3596
3596
  }
3597
- }), Y = x(() => {
3597
+ }), K = k(() => {
3598
3598
  if (t.prefixIcon || F.value) return null;
3599
3599
  switch (t.status) {
3600
3600
  case "error":
@@ -3606,12 +3606,12 @@ const xe = new ks(), bs = {
3606
3606
  default:
3607
3607
  return g.value ? null : "alertCircle";
3608
3608
  }
3609
- }), B = x(() => !!t.prefixIcon || !!F.value || !!Y.value), R = x(() => t.prefixIcon || F.value || Y.value), O = x(() => {
3610
- const h = "vt-input__icon", M = t.status !== "default" ? t.status : g.value ? "default" : "error";
3609
+ }), B = k(() => !!t.prefixIcon || !!F.value || !!K.value), R = k(() => t.prefixIcon || F.value || K.value), O = k(() => {
3610
+ const h = "vt-input__icon", $ = t.status !== "default" ? t.status : g.value ? "default" : "error";
3611
3611
  if (t.prefixIcon)
3612
3612
  return h;
3613
- if (Y.value)
3614
- switch (M) {
3613
+ if (K.value)
3614
+ switch ($) {
3615
3615
  case "error":
3616
3616
  return `${h} vt-input__icon--error`;
3617
3617
  case "warning":
@@ -3622,12 +3622,12 @@ const xe = new ks(), bs = {
3622
3622
  return h;
3623
3623
  }
3624
3624
  return h;
3625
- }), ee = x(() => ["email", "url", "password"].includes(t.type) && t.suffixIcon ? t.clearable || t.showPassword : !!t.suffixIcon || t.clearable || t.showPassword), G = x(() => ["email", "url", "password"].includes(t.type) ? null : t.suffixIcon), te = x(
3625
+ }), ee = k(() => ["email", "url", "password"].includes(t.type) && t.suffixIcon ? t.clearable || t.showPassword : !!t.suffixIcon || t.clearable || t.showPassword), G = k(() => ["email", "url", "password"].includes(t.type) ? null : t.suffixIcon), te = k(
3626
3626
  () => t.clearable && !t.disabled && t.modelValue && String(t.modelValue).length > 0
3627
- ), K = x(() => t.status !== "default" ? t.status : g.value ? "default" : "error"), J = x(() => [
3627
+ ), U = k(() => t.status !== "default" ? t.status : g.value ? "default" : "error"), N = k(() => [
3628
3628
  "vt-input",
3629
3629
  t.size ? `vt-input--${t.size}` : "vt-input--medium",
3630
- `vt-input--${K.value}`,
3630
+ `vt-input--${U.value}`,
3631
3631
  {
3632
3632
  "vt-input--disabled": t.disabled,
3633
3633
  "vt-input--focused": p.value,
@@ -3636,46 +3636,46 @@ const xe = new ks(), bs = {
3636
3636
  "vt-input--has-suffix": ee.value,
3637
3637
  "vt-input--invalid": !g.value
3638
3638
  }
3639
- ]), E = x(() => t.type === "password" ? v.value ? "text" : "password" : t.type === "textarea" ? "text" : t.type), L = x(() => t.errorMessage ? t.errorMessage : u.value.length > 0 ? u.value[0] : ""), N = x(() => t.autosize && typeof t.autosize == "object" && t.autosize.maxRows ? "none" : t.resize), re = (h) => {
3640
- let $ = h.target.value;
3641
- if (t.type === "number" && $ !== "") {
3642
- const ae = Number($);
3643
- isNaN(ae) || ($ = ae);
3639
+ ]), E = k(() => t.type === "password" ? v.value ? "text" : "password" : t.type === "textarea" ? "text" : t.type), L = k(() => t.errorMessage ? t.errorMessage : u.value.length > 0 ? u.value[0] : ""), Y = k(() => t.autosize && typeof t.autosize == "object" && t.autosize.maxRows ? "none" : t.resize), ne = (h) => {
3640
+ let M = h.target.value;
3641
+ if (t.type === "number" && M !== "") {
3642
+ const ae = Number(M);
3643
+ isNaN(ae) || (M = ae);
3644
3644
  }
3645
- l("update:modelValue", $), l("input", h), t.validateOnInput && Z($), D.value && t.autosize && !C.value && me(() => q());
3645
+ l("update:modelValue", M), l("input", h), t.validateOnInput && Z(M), D.value && t.autosize && !C.value && Ce(() => q());
3646
3646
  }, m = (h) => {
3647
3647
  if (l("change", h), !t.validateOnInput) {
3648
- const M = h.target;
3649
- Z(M.value);
3648
+ const $ = h.target;
3649
+ Z($.value);
3650
3650
  }
3651
3651
  }, b = (h) => {
3652
3652
  p.value = !0, l("focus", h);
3653
- }, y = (h) => {
3653
+ }, x = (h) => {
3654
3654
  if (p.value = !1, l("blur", h), t.validateOnBlur) {
3655
- const M = h.target;
3656
- Z(M.value);
3655
+ const $ = h.target;
3656
+ Z($.value);
3657
3657
  }
3658
3658
  }, S = () => {
3659
3659
  var h;
3660
3660
  l("update:modelValue", ""), l("clear"), (h = i.value) == null || h.focus(), u.value = [], g.value = !0, l("validation", { isValid: !0, errors: [] });
3661
3661
  }, T = () => {
3662
- v.value = !v.value, me(() => {
3662
+ v.value = !v.value, Ce(() => {
3663
3663
  var h;
3664
3664
  (h = i.value) == null || h.focus();
3665
3665
  });
3666
3666
  }, q = () => {
3667
3667
  if (!c.value || !t.autosize || C.value) return;
3668
- const h = c.value, M = h.style.height;
3668
+ const h = c.value, $ = h.style.height;
3669
3669
  h.style.height = "auto";
3670
- let $ = h.scrollHeight;
3670
+ let M = h.scrollHeight;
3671
3671
  if (typeof t.autosize == "object") {
3672
3672
  const ke = parseInt(getComputedStyle(h).lineHeight), be = t.autosize.minRows ? t.autosize.minRows * ke : 0, Te = t.autosize.maxRows ? t.autosize.maxRows * ke : 1 / 0;
3673
- $ = Math.max(be, Math.min($, Te));
3673
+ M = Math.max(be, Math.min(M, Te));
3674
3674
  }
3675
- const ae = `${$}px`;
3676
- ae !== M && (f.value = ae, h.style.height = ae);
3675
+ const ae = `${M}px`;
3676
+ ae !== $ && (f.value = ae, h.style.height = ae);
3677
3677
  }, se = (h) => {
3678
- if (!c.value || !(N.value !== "none")) return;
3678
+ if (!c.value || !(Y.value !== "none")) return;
3679
3679
  const ae = c.value.getBoundingClientRect();
3680
3680
  if (h.clientX > ae.right - 20 && h.clientY > ae.bottom - 20) {
3681
3681
  C.value = !0;
@@ -3710,12 +3710,12 @@ const xe = new ks(), bs = {
3710
3710
  isValid: g.value,
3711
3711
  errors: [...u.value]
3712
3712
  })
3713
- }), ce(
3713
+ }), fe(
3714
3714
  () => t.modelValue,
3715
3715
  (h) => {
3716
- D.value && t.autosize && !C.value && me(q), t.validateOnInput && Z(h || "");
3716
+ D.value && t.autosize && !C.value && Ce(q), t.validateOnInput && Z(h || "");
3717
3717
  }
3718
- ), ce(
3718
+ ), fe(
3719
3719
  () => [t.required, t.minlength, t.maxlength, t.min, t.max, t.pattern],
3720
3720
  () => {
3721
3721
  t.modelValue !== void 0 && t.modelValue !== "" && Z(t.modelValue);
@@ -3726,8 +3726,8 @@ const xe = new ks(), bs = {
3726
3726
  }), _e(() => {
3727
3727
  D.value && t.autosize;
3728
3728
  }), Ie(() => {
3729
- }), (h, M) => (s(), a("div", {
3730
- class: A(J.value)
3729
+ }), (h, $) => (s(), a("div", {
3730
+ class: A(N.value)
3731
3731
  }, [
3732
3732
  h.label ? (s(), a("label", {
3733
3733
  key: 0,
@@ -3739,7 +3739,7 @@ const xe = new ks(), bs = {
3739
3739
  ], 8, ti)) : j("", !0),
3740
3740
  r("div", oi, [
3741
3741
  B.value ? (s(), a("div", li, [
3742
- X(oe, {
3742
+ X(le, {
3743
3743
  name: R.value,
3744
3744
  class: A(O.value)
3745
3745
  }, null, 8, ["name", "class"])
@@ -3760,17 +3760,17 @@ const xe = new ks(), bs = {
3760
3760
  id: h.id,
3761
3761
  tabindex: h.tabindex,
3762
3762
  autocomplete: h.autocomplete,
3763
- style: fe({ resize: N.value, height: f.value }),
3763
+ style: pe({ resize: Y.value, height: f.value }),
3764
3764
  class: "vt-input__field vt-input__textarea",
3765
- onInput: re,
3765
+ onInput: ne,
3766
3766
  onChange: m,
3767
3767
  onFocus: b,
3768
- onBlur: y,
3768
+ onBlur: x,
3769
3769
  onMousedown: se,
3770
- onKeydown: M[0] || (M[0] = ($) => h.$emit("keydown", $)),
3771
- onKeyup: M[1] || (M[1] = ($) => h.$emit("keyup", $)),
3772
- onKeypress: M[2] || (M[2] = ($) => h.$emit("keypress", $)),
3773
- onClick: M[3] || (M[3] = ($) => h.$emit("click", $))
3770
+ onKeydown: $[0] || ($[0] = (M) => h.$emit("keydown", M)),
3771
+ onKeyup: $[1] || ($[1] = (M) => h.$emit("keyup", M)),
3772
+ onKeypress: $[2] || ($[2] = (M) => h.$emit("keypress", M)),
3773
+ onClick: $[3] || ($[3] = (M) => h.$emit("click", M))
3774
3774
  }, null, 44, ri)) : (s(), a("input", {
3775
3775
  key: 2,
3776
3776
  ref_key: "inputRef",
@@ -3791,14 +3791,14 @@ const xe = new ks(), bs = {
3791
3791
  tabindex: h.tabindex,
3792
3792
  autocomplete: h.autocomplete,
3793
3793
  class: "vt-input__field",
3794
- onInput: re,
3794
+ onInput: ne,
3795
3795
  onChange: m,
3796
3796
  onFocus: b,
3797
- onBlur: y,
3798
- onKeydown: M[4] || (M[4] = ($) => h.$emit("keydown", $)),
3799
- onKeyup: M[5] || (M[5] = ($) => h.$emit("keyup", $)),
3800
- onKeypress: M[6] || (M[6] = ($) => h.$emit("keypress", $)),
3801
- onClick: M[7] || (M[7] = ($) => h.$emit("click", $))
3797
+ onBlur: x,
3798
+ onKeydown: $[4] || ($[4] = (M) => h.$emit("keydown", M)),
3799
+ onKeyup: $[5] || ($[5] = (M) => h.$emit("keyup", M)),
3800
+ onKeypress: $[6] || ($[6] = (M) => h.$emit("keypress", M)),
3801
+ onClick: $[7] || ($[7] = (M) => h.$emit("click", M))
3802
3802
  }, null, 40, si)),
3803
3803
  ee.value ? (s(), a("div", ii, [
3804
3804
  te.value ? (s(), a("button", {
@@ -3807,7 +3807,7 @@ const xe = new ks(), bs = {
3807
3807
  class: "vt-input__clear-btn",
3808
3808
  onClick: S
3809
3809
  }, [
3810
- X(oe, {
3810
+ X(le, {
3811
3811
  name: "close",
3812
3812
  class: "vt-input__icon"
3813
3813
  })
@@ -3818,12 +3818,12 @@ const xe = new ks(), bs = {
3818
3818
  class: "vt-input__password-btn",
3819
3819
  onClick: T
3820
3820
  }, [
3821
- X(oe, {
3821
+ X(le, {
3822
3822
  name: v.value ? "eyeOpened" : "eyeClosed",
3823
3823
  class: "vt-input__icon"
3824
3824
  }, null, 8, ["name"])
3825
3825
  ])) : j("", !0),
3826
- G.value ? (s(), ie(oe, {
3826
+ G.value ? (s(), ie(le, {
3827
3827
  key: 2,
3828
3828
  name: G.value,
3829
3829
  class: "vt-input__icon"
@@ -3834,41 +3834,41 @@ const xe = new ks(), bs = {
3834
3834
  L.value ? (s(), a("span", ui, Q(L.value), 1)) : h.helperText ? (s(), a("span", di, Q(h.helperText), 1)) : j("", !0)
3835
3835
  ])) : j("", !0),
3836
3836
  u.value.length > 1 && h.showAllErrors ? (s(), a("div", ci, [
3837
- (s(!0), a(he, null, pe(u.value, ($, ae) => (s(), a("div", {
3837
+ (s(!0), a(ce, null, he(u.value, (M, ae) => (s(), a("div", {
3838
3838
  key: ae,
3839
3839
  class: "vt-input__error-item"
3840
3840
  }, [
3841
- r("span", null, Q($), 1)
3841
+ r("span", null, Q(M), 1)
3842
3842
  ]))), 128))
3843
3843
  ])) : j("", !0)
3844
3844
  ], 2));
3845
3845
  }
3846
- }), _t = Symbol("VtSelectContext");
3847
- function $e(n, e, o) {
3846
+ }), _1 = Symbol("VtSelectContext");
3847
+ function Me(n, e, o) {
3848
3848
  return o && typeof n == "object" && typeof e == "object" ? (n == null ? void 0 : n[o]) === (e == null ? void 0 : e[o]) : typeof n == "object" && typeof e == "object" ? JSON.stringify(n) === JSON.stringify(e) : n === e;
3849
3849
  }
3850
- function ut(n, e, o) {
3851
- return e.find((t) => $e(t.value, n, o));
3850
+ function u1(n, e, o) {
3851
+ return e.find((t) => Me(t.value, n, o));
3852
3852
  }
3853
3853
  function hi(n, e, o, t) {
3854
- return o ? Array.isArray(e) ? e.some((l) => $e(l, n, t)) : !1 : $e(e, n, t);
3854
+ return o ? Array.isArray(e) ? e.some((l) => Me(l, n, t)) : !1 : Me(e, n, t);
3855
3855
  }
3856
3856
  function pi(n, e, o, t) {
3857
3857
  if (!e.length) return [];
3858
3858
  if (o)
3859
- return Array.isArray(n) ? n.map((i) => ut(i, e, t)).filter(Boolean) : [];
3860
- const l = ut(n, e, t);
3859
+ return Array.isArray(n) ? n.map((i) => u1(i, e, t)).filter(Boolean) : [];
3860
+ const l = u1(n, e, t);
3861
3861
  return l ? [l] : [];
3862
3862
  }
3863
3863
  function fi(n, e, o, t) {
3864
3864
  if (o) {
3865
3865
  const l = Array.isArray(e) ? e : [];
3866
- return l.some((c) => $e(c, n.value, t)) ? l.filter((c) => !$e(c, n.value, t)) : [...l, n.value];
3866
+ return l.some((c) => Me(c, n.value, t)) ? l.filter((c) => !Me(c, n.value, t)) : [...l, n.value];
3867
3867
  }
3868
3868
  return n.value;
3869
3869
  }
3870
3870
  function vi(n, e, o) {
3871
- return Array.isArray(e) ? e.filter((t) => !$e(t, n, o)) : e;
3871
+ return Array.isArray(e) ? e.filter((t) => !Me(t, n, o)) : e;
3872
3872
  }
3873
3873
  function mi(n) {
3874
3874
  return n ? [] : void 0;
@@ -3904,7 +3904,7 @@ const _i = ["for"], ki = {
3904
3904
  }, bi = { class: "vt-select__field" }, yi = { class: "vt-select__tag-text" }, xi = {
3905
3905
  key: 0,
3906
3906
  class: "vt-select__tag vt-select__tag--collapsed"
3907
- }, Mi = { class: "vt-select__tag-text" }, $i = {
3907
+ }, $i = { class: "vt-select__tag-text" }, Mi = {
3908
3908
  key: 1,
3909
3909
  class: "vt-select__display-text"
3910
3910
  }, Li = {
@@ -3913,10 +3913,10 @@ const _i = ["for"], ki = {
3913
3913
  }, Vi = { class: "vt-select__suffix" }, Si = ["disabled"], Ii = {
3914
3914
  key: 0,
3915
3915
  class: "vt-select__help"
3916
- }, Hi = {
3916
+ }, Bi = {
3917
3917
  "aria-hidden": "true",
3918
3918
  style: { display: "none" }
3919
- }, Bi = ["aria-multiselectable"], Ei = {
3919
+ }, Hi = ["aria-multiselectable"], Ei = {
3920
3920
  key: 0,
3921
3921
  class: "vt-select-dropdown__search"
3922
3922
  }, Ti = {
@@ -3928,7 +3928,7 @@ const _i = ["for"], ki = {
3928
3928
  }, zi = { key: 0 }, Oi = { key: 1 }, Ri = ["aria-disabled", "aria-selected", "onClick"], Di = { class: "vt-option__text" }, Wi = { key: 1 }, Pi = {
3929
3929
  key: 0,
3930
3930
  class: "vt-select-dropdown__loading-more"
3931
- }, Ai = /* @__PURE__ */ de({
3931
+ }, Ai = /* @__PURE__ */ ue({
3932
3932
  __name: "VSelect",
3933
3933
  props: {
3934
3934
  modelValue: {},
@@ -3960,233 +3960,212 @@ const _i = ["for"], ki = {
3960
3960
  },
3961
3961
  emits: ["update:modelValue", "change", "clear", "focus", "blur", "visible-change", "validation", "scrolled", "remove-tag", "filter", "filter-clear"],
3962
3962
  setup(n, { expose: e, emit: o }) {
3963
- const t = n, l = o, i = H(), c = H(), p = H(), v = H(), f = H([]), u = H(), g = H(), C = {
3964
- isFocused: H(!1),
3965
- validationErrors: H([]),
3966
- isValid: H(!0),
3967
- visibleCount: H(0),
3968
- filterQuery: H("")
3969
- }, z = H(/* @__PURE__ */ new Map()), Z = H(/* @__PURE__ */ new Set()), D = H(/* @__PURE__ */ new Map()), F = (d) => t.valueKey && typeof d == "object" && d !== null ? String(d[t.valueKey]) : typeof d == "object" ? JSON.stringify(d) : String(d), Y = (d, k) => {
3970
- const U = F(d.value);
3971
- z.value.set(U, d), Z.value.add(U), k && D.value.set(d.value, k);
3963
+ const t = n, l = o, i = I(), c = I(), p = I(), v = I(), f = I([]), u = I(), g = I(), C = {
3964
+ isFocused: I(!1),
3965
+ validationErrors: I([]),
3966
+ isValid: I(!0),
3967
+ visibleCount: I(0),
3968
+ filterQuery: I("")
3969
+ }, z = I(/* @__PURE__ */ new Map()), Z = I(/* @__PURE__ */ new Set()), D = I(/* @__PURE__ */ new Map()), F = (d) => t.valueKey && typeof d == "object" && d !== null ? String(d[t.valueKey]) : typeof d == "object" ? JSON.stringify(d) : String(d), K = (d, y) => {
3970
+ const J = F(d.value);
3971
+ z.value.set(J, d), Z.value.add(J), y && D.value.set(d.value, y);
3972
3972
  }, B = (d) => {
3973
- const k = F(d);
3974
- Z.value.delete(k), D.value.delete(d);
3973
+ const y = F(d);
3974
+ Z.value.delete(y), D.value.delete(d);
3975
3975
  }, R = (d) => {
3976
- for (const [k, U] of D.value.entries())
3977
- if ($e(k, d, t.valueKey))
3978
- return U;
3979
- }, O = (d) => d.toLowerCase().trim(), ee = (d, k) => {
3980
- if (!k) return !0;
3981
- const U = O(k);
3982
- if (d.label && typeof d.label == "string" && O(d.label).includes(U) || typeof d.value == "string" && O(d.value).includes(U))
3976
+ for (const [y, J] of D.value.entries())
3977
+ if (Me(y, d, t.valueKey))
3978
+ return J;
3979
+ }, O = (d) => d.toLowerCase().trim(), ee = (d, y) => {
3980
+ if (!y) return !0;
3981
+ const J = O(y);
3982
+ if (d.label && typeof d.label == "string" && O(d.label).includes(J) || typeof d.value == "string" && O(d.value).includes(J))
3983
3983
  return !0;
3984
3984
  if (typeof d.value == "object" && d.value !== null) {
3985
- const P = Object.values(d.value).filter((I) => typeof I == "string");
3986
- for (const I of P)
3987
- if (O(I).includes(U))
3985
+ const P = Object.values(d.value).filter((H) => typeof H == "string");
3986
+ for (const H of P)
3987
+ if (O(H).includes(J))
3988
3988
  return !0;
3989
3989
  }
3990
3990
  return !1;
3991
- }, G = x(() => {
3991
+ }, G = k(() => {
3992
3992
  const d = [];
3993
- for (const [k, U] of z.value.entries())
3994
- Z.value.has(k) && d.push(U);
3993
+ for (const [y, J] of z.value.entries())
3994
+ Z.value.has(y) && d.push(J);
3995
3995
  return d;
3996
- }), te = x(() => !t.filterable || !C.filterQuery.value.trim() || t.allowRemoteFilter ? G.value : G.value.filter((d) => ee(d, C.filterQuery.value))), {
3997
- visible: K,
3998
- parentVisible: J,
3999
- dropdownPosition: E,
4000
- show: L,
4001
- hide: N,
4002
- toggle: re,
4003
- updatePosition: m
4004
- } = mt(c, p, {
4005
- trigger: "click",
4006
- placement: "bottom-start",
4007
- showTimeout: 250,
4008
- hideTimeout: 150,
4009
- disabled: t.disabled,
4010
- hideOnClick: !1,
4011
- onVisibleChange: (d) => {
4012
- d ? me(async () => {
4013
- await m(), y.init(), t.filterable && g.value && g.value.focus(), setTimeout(() => {
4014
- y.checkIfNeedMoreData();
4015
- }, 300);
4016
- }) : (y.cleanup(), C.filterQuery.value && De(), t.validateOnBlur && b.validate()), l("visible-change", d);
4017
- }
4018
- }), b = {
4019
- validate() {
4020
- const d = Ci(
4021
- t.modelValue,
4022
- S.value,
4023
- t.required || !1,
4024
- t.requiredMessage
4025
- );
4026
- C.validationErrors.value = d.errors, C.isValid.value = d.isValid, l("validation", { isValid: C.isValid.value, errors: d.errors });
4027
- },
4028
- clear() {
4029
- C.validationErrors.value = [], C.isValid.value = !0, l("validation", { isValid: !0, errors: [] });
4030
- }
4031
- }, y = {
3996
+ }), te = k(() => !t.filterable || !C.filterQuery.value.trim() || t.allowRemoteFilter ? G.value : G.value.filter((d) => ee(d, C.filterQuery.value))), U = {
4032
3997
  observer: null,
4033
3998
  sentinelElement: null,
4034
- scrollTimeoutId: null,
4035
3999
  lastEmitTime: 0,
4036
- emitCooldown: 500,
4037
- // мінімальний інтервал між емітами
4038
- isInitialized: !1,
4000
+ cooldown: 400,
4039
4001
  init() {
4040
- this.cleanup(), this.initIntersectionObserver(), this.initScrollFallback(), this.isInitialized = !0, me(() => {
4041
- this.checkIfNeedMoreData();
4042
- });
4002
+ this.cleanup(), u.value && (this.createSentinel(), this.initObserver());
4043
4003
  },
4044
- initIntersectionObserver() {
4045
- u.value && (this.sentinelElement = document.createElement("div"), this.sentinelElement.style.cssText = `
4046
- height: 1px;
4047
- background: transparent;
4048
- pointer-events: none;
4049
- position: absolute;
4050
- bottom: 0;
4051
- width: 100%;
4052
- `, this.sentinelElement.setAttribute("data-scroll-sentinel", "true"), u.value.appendChild(this.sentinelElement), this.observer = new IntersectionObserver(
4004
+ createSentinel() {
4005
+ !u.value || this.sentinelElement || (this.sentinelElement = document.createElement("div"), this.sentinelElement.style.cssText = `
4006
+ height: 20px;
4007
+ width: 100%;
4008
+ background: transparent;
4009
+ pointer-events: none;
4010
+ flex-shrink: 0;
4011
+ display: flex;
4012
+ align-items: center;
4013
+ justify-content: center;
4014
+ font-size: 12px;
4015
+ color: #999;
4016
+ `, this.sentinelElement.setAttribute("data-load-more-trigger", "true"), this.sentinelElement.textContent = "", u.value.appendChild(this.sentinelElement));
4017
+ },
4018
+ initObserver() {
4019
+ !this.sentinelElement || !u.value || (this.observer = new IntersectionObserver(
4053
4020
  (d) => {
4054
- d.forEach((k) => {
4055
- k.isIntersecting && this.canEmit() && this.emitScrolled("intersection-observer");
4021
+ d.forEach((y) => {
4022
+ y.isIntersecting && this.canEmit() && this.emitScrolled();
4056
4023
  });
4057
4024
  },
4058
4025
  {
4059
4026
  root: u.value,
4060
- rootMargin: "100px",
4061
- // Тригерить за 100px до кінця
4027
+ rootMargin: "50px",
4028
+ // Тригерить за 50px до показу sentinel
4062
4029
  threshold: 0
4063
4030
  }
4064
4031
  ), this.observer.observe(this.sentinelElement));
4065
4032
  },
4066
- initScrollFallback() {
4067
- u.value && u.value.addEventListener("scroll", this.handleScrollFallback, {
4068
- passive: !0
4069
- });
4070
- },
4071
- handleScrollFallback: (d) => {
4072
- y.scrollTimeoutId && clearTimeout(y.scrollTimeoutId), y.scrollTimeoutId = setTimeout(() => {
4073
- const k = d.target;
4074
- if (!k || !y.canEmit()) return;
4075
- const { scrollTop: U, scrollHeight: P, clientHeight: I } = k;
4076
- P - U - I <= 80 && te.value.length > 0 && y.emitScrolled("scroll-fallback");
4077
- }, 200);
4078
- },
4079
4033
  canEmit() {
4080
4034
  const d = Date.now();
4081
- return !t.loading && te.value.length > 0 && d - this.lastEmitTime > this.emitCooldown;
4035
+ return !t.loading && te.value.length > 0 && d - this.lastEmitTime > this.cooldown;
4082
4036
  },
4083
- emitScrolled(d) {
4084
- this.lastEmitTime = Date.now(), l("scrolled");
4037
+ emitScrolled() {
4038
+ console.log("Sentinel triggered scroll - options count:", te.value.length), this.lastEmitTime = Date.now(), l("scrolled");
4085
4039
  },
4040
+ // Переміщуємо sentinel після додавання нових опцій
4086
4041
  updateSentinel() {
4087
- this.sentinelElement && u.value && u.value.appendChild(this.sentinelElement);
4088
- },
4089
- checkIfNeedMoreData() {
4090
- if (!u.value || !this.canEmit()) return;
4091
- const { scrollHeight: d, clientHeight: k } = u.value;
4092
- d <= k && te.value.length > 0 && this.emitScrolled("initial-check");
4093
- },
4094
- // Метод для ручного тригеру (корисно для дебагу)
4095
- triggerManually() {
4096
- this.canEmit() && this.emitScrolled("manual-trigger");
4042
+ !this.sentinelElement || !u.value || u.value.appendChild(this.sentinelElement);
4097
4043
  },
4098
4044
  cleanup() {
4099
- this.observer && (this.observer.disconnect(), this.observer = null), this.sentinelElement && (this.sentinelElement.remove(), this.sentinelElement = null), u.value && this.isInitialized && u.value.removeEventListener("scroll", this.handleScrollFallback), this.scrollTimeoutId && (clearTimeout(this.scrollTimeoutId), this.scrollTimeoutId = null), this.isInitialized = !1;
4045
+ this.observer && (this.observer.disconnect(), this.observer = null), this.sentinelElement && (this.sentinelElement.remove(), this.sentinelElement = null);
4100
4046
  }
4101
- }, S = x(() => t.multiple), T = x(() => G.value.length ? pi(t.modelValue, G.value, S.value, t.valueKey) : []), q = x(() => !t.multiple || T.value.length === 0 ? [] : t.collapsedTags ? T.value.slice(0, C.visibleCount.value) : T.value), se = x(() => {
4047
+ }, {
4048
+ visible: N,
4049
+ parentVisible: E,
4050
+ dropdownPosition: L,
4051
+ show: Y,
4052
+ hide: ne,
4053
+ toggle: m,
4054
+ updatePosition: b
4055
+ } = m1(c, p, {
4056
+ trigger: "click",
4057
+ placement: "bottom-start",
4058
+ showTimeout: 250,
4059
+ hideTimeout: 150,
4060
+ disabled: t.disabled,
4061
+ hideOnClick: !1,
4062
+ onVisibleChange: (d) => {
4063
+ d ? Ce(async () => {
4064
+ await b(), U.init(), t.filterable && g.value && g.value.focus();
4065
+ }) : (U.cleanup(), C.filterQuery.value && De(), t.validateOnBlur && x.validate()), l("visible-change", d);
4066
+ }
4067
+ }), x = {
4068
+ validate() {
4069
+ const d = Ci(
4070
+ t.modelValue,
4071
+ S.value,
4072
+ t.required || !1,
4073
+ t.requiredMessage
4074
+ );
4075
+ C.validationErrors.value = d.errors, C.isValid.value = d.isValid, l("validation", { isValid: C.isValid.value, errors: d.errors });
4076
+ },
4077
+ clear() {
4078
+ C.validationErrors.value = [], C.isValid.value = !0, l("validation", { isValid: !0, errors: [] });
4079
+ }
4080
+ }, S = k(() => t.multiple), T = k(() => G.value.length ? pi(t.modelValue, G.value, S.value, t.valueKey) : []), q = k(() => !t.multiple || T.value.length === 0 ? [] : t.collapsedTags ? T.value.slice(0, C.visibleCount.value) : T.value), se = k(() => {
4102
4081
  if (S.value) return "";
4103
4082
  const d = T.value[0];
4104
4083
  return d ? d.label : t.modelValue && typeof t.modelValue == "object" ? t.modelValue.label ? t.modelValue.label : t.modelValue.name ? t.modelValue.name : JSON.stringify(t.modelValue) : t.modelValue !== void 0 && t.modelValue !== null && t.modelValue !== "" && !Array.isArray(t.modelValue) ? String(t.modelValue) : "";
4105
- }), Le = x(() => !t.clearable || t.disabled ? !1 : S.value ? T.value.length > 0 : t.modelValue !== void 0 && t.modelValue !== null && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0)), ze = x(() => t.status !== "default" ? t.status : C.isValid.value ? "default" : "error"), Oe = x(() => [
4084
+ }), Le = k(() => !t.clearable || t.disabled ? !1 : S.value ? T.value.length > 0 : t.modelValue !== void 0 && t.modelValue !== null && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0)), ze = k(() => t.status !== "default" ? t.status : C.isValid.value ? "default" : "error"), Oe = k(() => [
4106
4085
  "vt-select",
4107
4086
  `vt-select--${ze.value}`,
4108
4087
  {
4109
4088
  "vt-select--disabled": t.disabled,
4110
4089
  "vt-select--focused": C.isFocused.value,
4111
4090
  "vt-select--multiple": S.value,
4112
- "vt-select--open": K.value
4091
+ "vt-select--open": N.value
4113
4092
  }
4114
- ]), He = x(() => ({
4115
- ...E.value,
4093
+ ]), Be = k(() => ({
4094
+ ...L.value,
4116
4095
  position: "absolute",
4117
4096
  zIndex: 2e3,
4118
4097
  maxHeight: `${t.maxHeight}px`
4119
- })), Ve = x(() => T.value.length - C.visibleCount.value), Be = x(() => t.collapsedTags && t.multiple && T.value.length > 0 && C.visibleCount.value < T.value.length), Re = x(() => {
4120
- if (!Be.value) return "";
4098
+ })), Ve = k(() => T.value.length - C.visibleCount.value), He = k(() => t.collapsedTags && t.multiple && T.value.length > 0 && C.visibleCount.value < T.value.length), Re = k(() => {
4099
+ if (!He.value) return "";
4121
4100
  const d = T.value.slice(C.visibleCount.value);
4122
4101
  return gi(Ve.value, d);
4123
4102
  }), Ee = (d) => {
4124
- var U, P;
4125
- if (!K.value) return;
4126
- const k = d.target;
4127
- (U = i.value) != null && U.contains(k) || (P = p.value) != null && P.contains(k) || N();
4103
+ var J, P;
4104
+ if (!N.value) return;
4105
+ const y = d.target;
4106
+ (J = i.value) != null && J.contains(y) || (P = p.value) != null && P.contains(y) || ne();
4128
4107
  }, h = (d) => {
4129
4108
  if (!d || d.disabled) return;
4130
- const k = fi(d, t.modelValue, S.value, t.valueKey);
4131
- l("update:modelValue", k), l("change", k), S.value || N(), t.validateOnInput && b.validate();
4132
- }, M = (d, k) => {
4109
+ const y = fi(d, t.modelValue, S.value, t.valueKey);
4110
+ l("update:modelValue", y), l("change", y), S.value || ne(), t.validateOnInput && x.validate();
4111
+ }, $ = (d, y) => {
4133
4112
  d.disabled || h(d);
4134
- }, $ = () => {
4113
+ }, M = () => {
4135
4114
  const d = mi(S.value);
4136
- l("update:modelValue", d), l("change", d), l("clear"), b.clear();
4115
+ l("update:modelValue", d), l("change", d), l("clear"), x.clear();
4137
4116
  }, ae = (d) => {
4138
4117
  if (!S.value) return;
4139
- const k = vi(d, t.modelValue, t.valueKey);
4140
- l("update:modelValue", k), l("change", k), l("remove-tag", d), t.validateOnInput && b.validate();
4118
+ const y = vi(d, t.modelValue, t.valueKey);
4119
+ l("update:modelValue", y), l("change", y), l("remove-tag", d), t.validateOnInput && x.validate();
4141
4120
  }, ke = () => {
4142
- t.disabled || re();
4121
+ t.disabled || m();
4143
4122
  }, be = () => {
4144
4123
  C.isFocused.value = !0, l("focus");
4145
4124
  }, Te = (d) => {
4146
- var k;
4147
- d != null && d.relatedTarget && ((k = p.value) != null && k.contains(d.relatedTarget)) || (C.isFocused.value = !1, l("blur"), setTimeout(() => {
4148
- var U;
4149
- (U = p.value) != null && U.contains(document.activeElement) || N();
4125
+ var y;
4126
+ d != null && d.relatedTarget && ((y = p.value) != null && y.contains(d.relatedTarget)) || (C.isFocused.value = !1, l("blur"), setTimeout(() => {
4127
+ var J;
4128
+ (J = p.value) != null && J.contains(document.activeElement) || ne();
4150
4129
  }, 100));
4151
4130
  }, De = () => {
4152
4131
  C.filterQuery.value = "", l("filter", ""), l("filter-clear");
4153
4132
  }, Ze = (d) => {
4154
- d.key === "Enter" || d.key === " " ? (d.preventDefault(), ke()) : d.key === "Escape" && K.value && (d.preventDefault(), N());
4133
+ d.key === "Enter" || d.key === " " ? (d.preventDefault(), ke()) : d.key === "Escape" && N.value && (d.preventDefault(), ne());
4155
4134
  }, Se = (d) => hi(d, t.modelValue, S.value, t.valueKey), _ = () => {
4156
4135
  if (!t.collapsedTags || !v.value || T.value.length === 0) {
4157
4136
  C.visibleCount.value = T.value.length;
4158
4137
  return;
4159
4138
  }
4160
- me(() => {
4139
+ Ce(() => {
4161
4140
  if (!v.value) return;
4162
4141
  const d = wi(v.value, f.value, T.value.length);
4163
4142
  C.visibleCount.value = d;
4164
4143
  });
4165
4144
  }, V = {
4166
- selectValue: x(() => t.modelValue || (S.value ? [] : void 0)).value,
4145
+ selectValue: k(() => t.modelValue || (S.value ? [] : void 0)).value,
4167
4146
  multiple: S.value,
4168
4147
  valueKey: t.valueKey,
4169
4148
  handleOptionClick: h,
4170
4149
  isOptionSelected: Se,
4171
- registerOption: Y,
4150
+ registerOption: K,
4172
4151
  unregisterOption: B
4173
4152
  };
4174
- return et(_t, V), e({
4153
+ return e1(_1, V), e({
4175
4154
  ...{
4176
4155
  focus() {
4177
- K.value || L();
4156
+ N.value || Y();
4178
4157
  },
4179
4158
  blur() {
4180
- N();
4159
+ ne();
4181
4160
  },
4182
4161
  clear() {
4183
- $();
4162
+ M();
4184
4163
  },
4185
4164
  validate() {
4186
- return b.validate(), C.isValid.value;
4165
+ return x.validate(), C.isValid.value;
4187
4166
  },
4188
4167
  clearValidation() {
4189
- b.clear();
4168
+ x.clear();
4190
4169
  },
4191
4170
  getSelectedOptions() {
4192
4171
  return T.value;
@@ -4206,74 +4185,59 @@ const _i = ["for"], ki = {
4206
4185
  getFilterQuery() {
4207
4186
  return C.filterQuery.value;
4208
4187
  },
4209
- // Нові методи для роботи зі скролом
4210
- checkScroll() {
4211
- y.checkIfNeedMoreData();
4212
- },
4213
- triggerScroll() {
4214
- y.triggerManually();
4188
+ // Метод для оновлення sentinel після завантаження нових опцій
4189
+ updateScrollSentinel() {
4190
+ U.updateSentinel();
4215
4191
  },
4216
4192
  getScrollInfo() {
4217
4193
  if (!u.value) return null;
4218
- const { scrollTop: d, scrollHeight: k, clientHeight: U } = u.value;
4194
+ const { scrollTop: d, scrollHeight: y, clientHeight: J } = u.value;
4219
4195
  return {
4220
4196
  scrollTop: d,
4221
- scrollHeight: k,
4222
- clientHeight: U,
4223
- isNearBottom: k - d - U <= 100,
4224
- canScroll: k > U,
4197
+ scrollHeight: y,
4198
+ clientHeight: J,
4225
4199
  optionsCount: te.value.length,
4226
- isLoading: t.loading
4200
+ isLoading: t.loading,
4201
+ hasSentinel: !!U.sentinelElement,
4202
+ hasObserver: !!U.observer
4227
4203
  };
4228
4204
  }
4229
4205
  },
4230
- registerOption: Y,
4206
+ registerOption: K,
4231
4207
  unregisterOption: B
4232
- }), ce(
4208
+ }), fe(
4209
+ () => te.value.length,
4210
+ (d, y) => {
4211
+ N.value && d > y && U.sentinelElement && Ce(() => {
4212
+ U.updateSentinel();
4213
+ });
4214
+ }
4215
+ ), fe(
4233
4216
  () => t.modelValue,
4234
4217
  () => {
4235
- t.validateOnInput && b.validate();
4218
+ t.validateOnInput && x.validate();
4236
4219
  }
4237
- ), ce(
4220
+ ), fe(
4238
4221
  T,
4239
4222
  () => {
4240
4223
  _();
4241
4224
  },
4242
4225
  { deep: !0 }
4243
- ), ce(
4226
+ ), fe(
4244
4227
  () => v.value,
4245
4228
  () => {
4246
4229
  v.value && _();
4247
4230
  }
4248
- ), ce(K, async (d) => {
4249
- d && (await me(), m());
4250
- }), ce(
4251
- te,
4252
- (d, k) => {
4253
- K.value && y.isInitialized && me(() => {
4254
- y.updateSentinel(), d.length > 0 && setTimeout(() => {
4255
- y.checkIfNeedMoreData();
4256
- }, 100);
4257
- });
4258
- },
4259
- { flush: "post" }
4260
- ), ce(
4261
- () => t.loading,
4262
- (d, k) => {
4263
- k && !d && K.value && y.isInitialized && me(() => {
4264
- y.updateSentinel(), setTimeout(() => {
4265
- y.checkIfNeedMoreData();
4266
- }, 200);
4267
- });
4268
- }
4269
- ), _e(() => {
4270
- t.modelValue !== void 0 && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0) && b.validate(), me(() => {
4231
+ ), fe(N, async (d) => {
4232
+ d && (await Ce(), b());
4233
+ }), _e(() => {
4234
+ t.modelValue !== void 0 && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0) && x.validate(), Ce(() => {
4271
4235
  _();
4272
4236
  }), window.addEventListener("resize", _), document.addEventListener("click", Ee);
4273
4237
  }), Ie(() => {
4274
- y.cleanup(), document.removeEventListener("click", Ee), window.removeEventListener("resize", _);
4275
- }), (d, k) => {
4276
- const U = Ge("tooltip");
4238
+ U.cleanup(), document.removeEventListener("click", Ee), window.removeEventListener("resize", _);
4239
+ }), (d, y) => {
4240
+ const J = Ge("tooltip");
4277
4241
  return s(), a("div", {
4278
4242
  ref_key: "selectRef",
4279
4243
  ref: i,
@@ -4304,26 +4268,26 @@ const _i = ["for"], ki = {
4304
4268
  ref: v,
4305
4269
  class: "vt-select__tags"
4306
4270
  }, [
4307
- (s(!0), a(he, null, pe(q.value, (P, I) => (s(), a("div", {
4308
- key: `tag-${typeof P.value == "object" ? JSON.stringify(P.value) : P.value}-${I}`,
4271
+ (s(!0), a(ce, null, he(q.value, (P, H) => (s(), a("div", {
4272
+ key: `tag-${typeof P.value == "object" ? JSON.stringify(P.value) : P.value}-${H}`,
4309
4273
  ref_for: !0,
4310
- ref: (ue) => ue && (f.value[I] = ue),
4274
+ ref: (de) => de && (f.value[H] = de),
4311
4275
  class: "vt-select__tag"
4312
4276
  }, [
4313
4277
  r("span", yi, Q(P.label), 1),
4314
- t.disabled ? j("", !0) : (s(), ie(oe, {
4278
+ t.disabled ? j("", !0) : (s(), ie(le, {
4315
4279
  key: 0,
4316
4280
  class: "vt-select__tag-close",
4317
4281
  name: "close",
4318
- onClick: Ce((ue) => ae(P.value), ["stop"])
4282
+ onClick: me((de) => ae(P.value), ["stop"])
4319
4283
  }, null, 8, ["onClick"]))
4320
4284
  ]))), 128)),
4321
- Be.value ? Ae((s(), a("div", xi, [
4322
- r("span", Mi, "+" + Q(Ve.value), 1)
4285
+ He.value ? Ae((s(), a("div", xi, [
4286
+ r("span", $i, "+" + Q(Ve.value), 1)
4323
4287
  ])), [
4324
- [U, Re.value]
4288
+ [J, Re.value]
4325
4289
  ]) : j("", !0)
4326
- ], 512)) : !d.multiple && se.value ? (s(), a("span", $i, Q(se.value), 1)) : (s(), a("span", Li, Q(d.placeholder), 1))
4290
+ ], 512)) : !d.multiple && se.value ? (s(), a("span", Mi, Q(se.value), 1)) : (s(), a("span", Li, Q(d.placeholder), 1))
4327
4291
  ]),
4328
4292
  r("div", Vi, [
4329
4293
  d.loading ? (s(), ie(je, {
@@ -4334,54 +4298,54 @@ const _i = ["for"], ki = {
4334
4298
  disabled: t.disabled,
4335
4299
  class: "vt-select__clear-btn",
4336
4300
  type: "button",
4337
- onClick: Ce($, ["stop"])
4301
+ onClick: me(M, ["stop"])
4338
4302
  }, [
4339
- X(oe, { name: "close" })
4340
- ], 8, Si)) : (s(), ie(oe, {
4303
+ X(le, { name: "close" })
4304
+ ], 8, Si)) : (s(), ie(le, {
4341
4305
  key: 2,
4342
- class: A([{ "vt-select__arrow--open": ne(K) }, "vt-select__icon vt-select__arrow"]),
4306
+ class: A([{ "vt-select__arrow--open": oe(N) }, "vt-select__icon vt-select__arrow"]),
4343
4307
  name: "arrowDown"
4344
4308
  }, null, 8, ["class"]))
4345
4309
  ])
4346
4310
  ], 544),
4347
- X(rt, { name: "fade" }, {
4311
+ X(r1, { name: "fade" }, {
4348
4312
  default: we(() => [
4349
4313
  C.validationErrors && C.validationErrors.value.length ? (s(), a("div", Ii, [
4350
- (s(!0), a(he, null, pe(C.validationErrors.value, (P, I) => (s(), a("div", {
4351
- key: `error-${I}`,
4314
+ (s(!0), a(ce, null, he(C.validationErrors.value, (P, H) => (s(), a("div", {
4315
+ key: `error-${H}`,
4352
4316
  class: "vt-select__error"
4353
4317
  }, Q(P), 1))), 128))
4354
4318
  ])) : j("", !0)
4355
4319
  ]),
4356
4320
  _: 1
4357
4321
  }),
4358
- r("div", Hi, [
4322
+ r("div", Bi, [
4359
4323
  ve(d.$slots, "default")
4360
4324
  ]),
4361
- ne(K) && ne(J) ? (s(), ie(Je, {
4325
+ oe(N) && oe(E) ? (s(), ie(Je, {
4362
4326
  key: 1,
4363
4327
  to: "body"
4364
4328
  }, [
4365
- X(rt, { name: "dropdown" }, {
4329
+ X(r1, { name: "dropdown" }, {
4366
4330
  default: we(() => [
4367
4331
  r("div", {
4368
4332
  ref_key: "dropdownRef",
4369
4333
  ref: p,
4370
4334
  "aria-multiselectable": d.multiple,
4371
- style: fe(He.value),
4335
+ style: pe(Be.value),
4372
4336
  class: "vt-select-dropdown",
4373
4337
  role: "listbox",
4374
- onClick: k[2] || (k[2] = Ce(() => {
4338
+ onClick: y[2] || (y[2] = me(() => {
4375
4339
  }, ["stop"])),
4376
- onMousedown: k[3] || (k[3] = Ce(() => {
4340
+ onMousedown: y[3] || (y[3] = me(() => {
4377
4341
  }, ["prevent"]))
4378
4342
  }, [
4379
4343
  d.filterable ? (s(), a("div", Ei, [
4380
- X(gt, {
4344
+ X(g1, {
4381
4345
  ref_key: "filterInputRef",
4382
4346
  ref: g,
4383
4347
  modelValue: C.filterQuery.value,
4384
- "onUpdate:modelValue": k[0] || (k[0] = (P) => C.filterQuery.value = P),
4348
+ "onUpdate:modelValue": y[0] || (y[0] = (P) => C.filterQuery.value = P),
4385
4349
  placeholder: d.filterPlaceholder,
4386
4350
  clearable: "",
4387
4351
  "suffix-icon": "search",
@@ -4399,7 +4363,7 @@ const _i = ["for"], ki = {
4399
4363
  ref: u,
4400
4364
  class: "vt-select-dropdown__options"
4401
4365
  }, [
4402
- (s(!0), a(he, null, pe(te.value, (P) => (s(), a("div", {
4366
+ (s(!0), a(ce, null, he(te.value, (P) => (s(), a("div", {
4403
4367
  key: `option-${typeof P.value == "object" ? JSON.stringify(P.value) : P.value}`,
4404
4368
  "aria-disabled": P.disabled || !1,
4405
4369
  "aria-selected": Se(P.value),
@@ -4411,17 +4375,17 @@ const _i = ["for"], ki = {
4411
4375
  }
4412
4376
  ]),
4413
4377
  role: "option",
4414
- onClick: (I) => h(P),
4415
- onMousedown: k[1] || (k[1] = Ce(() => {
4378
+ onClick: (H) => h(P),
4379
+ onMousedown: y[1] || (y[1] = me(() => {
4416
4380
  }, ["prevent"]))
4417
4381
  }, [
4418
- S.value ? (s(), ie(Me, {
4382
+ S.value ? (s(), ie($e, {
4419
4383
  key: 0,
4420
4384
  checked: Se(P.value),
4421
4385
  disabled: P.disabled || !1,
4422
4386
  class: "vt-option__checkbox",
4423
4387
  tabindex: "-1",
4424
- onChange: (I) => M(P)
4388
+ onChange: (H) => $(P)
4425
4389
  }, null, 8, ["checked", "disabled", "onChange"])) : j("", !0),
4426
4390
  r("span", Di, [
4427
4391
  R(P.value) ? (s(), ie(Xe(R(P.value)), { key: 0 })) : (s(), a("span", Wi, Q(P.label || P.value), 1))
@@ -4432,7 +4396,7 @@ const _i = ["for"], ki = {
4432
4396
  ge(" " + Q(t.loadingText), 1)
4433
4397
  ])) : j("", !0)
4434
4398
  ], 512))
4435
- ], 44, Bi)
4399
+ ], 44, Hi)
4436
4400
  ]),
4437
4401
  _: 1
4438
4402
  })
@@ -4440,7 +4404,7 @@ const _i = ["for"], ki = {
4440
4404
  ], 2);
4441
4405
  };
4442
4406
  }
4443
- }), Zi = { style: { display: "none" } }, Fi = /* @__PURE__ */ de({
4407
+ }), Zi = { style: { display: "none" } }, Fi = /* @__PURE__ */ ue({
4444
4408
  __name: "VOption",
4445
4409
  props: {
4446
4410
  label: {},
@@ -4449,9 +4413,9 @@ const _i = ["for"], ki = {
4449
4413
  },
4450
4414
  emits: ["click"],
4451
4415
  setup(n, { emit: e }) {
4452
- const o = n, t = Qe(), l = tt(_t);
4416
+ const o = n, t = Qe(), l = t1(_1);
4453
4417
  l || console.warn("VOption повинен використовуватися всередині VSelect");
4454
- const i = x(() => ({
4418
+ const i = k(() => ({
4455
4419
  label: o.label,
4456
4420
  value: o.value,
4457
4421
  disabled: o.disabled || !1
@@ -4461,13 +4425,13 @@ const _i = ["for"], ki = {
4461
4425
  const c = t.default ? () => t.default() : null;
4462
4426
  l.registerOption(i.value, c);
4463
4427
  }
4464
- }), Mt(() => {
4428
+ }), $1(() => {
4465
4429
  l && l.unregisterOption(o.value);
4466
4430
  }), (c, p) => (s(), a("div", Zi, [
4467
4431
  ve(c.$slots, "default")
4468
4432
  ]));
4469
4433
  }
4470
- }), dt = (n, e) => {
4434
+ }), d1 = (n, e) => {
4471
4435
  const o = document.createElement("div");
4472
4436
  o.className = `vt-tooltip vt-tooltip--${e}`, o.innerText = n, Object.assign(o.style, {
4473
4437
  position: "absolute",
@@ -4552,23 +4516,23 @@ const _i = ["for"], ki = {
4552
4516
  }
4553
4517
  const f = window.innerWidth, u = window.innerHeight;
4554
4518
  v < 8 ? v = 8 : v + l.width > f - 8 && (v = f - l.width - 8), p < c + 8 ? o === "top" ? p = t.bottom + c + 8 : p = c + 8 : p + l.height > c + u - 8 && (o === "bottom" ? p = t.top + c - l.height - 8 : p = c + u - l.height - 8), n.style.top = `${p}px`, n.style.left = `${v}px`;
4555
- }, ct = (n, e, o) => {
4519
+ }, c1 = (n, e, o) => {
4556
4520
  n.parentElement || document.body.appendChild(n), n.style.visibility = "visible", Ye(n, e, o), requestAnimationFrame(() => {
4557
4521
  n.style.opacity = "1";
4558
4522
  });
4559
- }, ht = (n) => {
4523
+ }, h1 = (n) => {
4560
4524
  n.style.opacity = "0", n.style.visibility = "hidden";
4561
- }, pt = (n) => n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight, ft = (n) => !!n.closest(".vt-table, table"), Ni = {
4525
+ }, p1 = (n) => n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight, f1 = (n) => !!n.closest(".vt-table, table"), Ni = {
4562
4526
  mounted(n, e) {
4563
4527
  var v;
4564
4528
  const o = (v = e.value) == null ? void 0 : v.trim();
4565
4529
  if (!o) return;
4566
- const t = n.dataset.placement || "top", l = dt(o, t);
4530
+ const t = n.dataset.placement || "top", l = d1(o, t);
4567
4531
  n.__tooltipEl = l;
4568
4532
  const i = () => {
4569
- (ft(n) ? pt(n) : !0) && ct(l, n, t);
4533
+ (f1(n) ? p1(n) : !0) && c1(l, n, t);
4570
4534
  }, c = () => {
4571
- ht(l);
4535
+ h1(l);
4572
4536
  }, p = () => {
4573
4537
  l.style.opacity === "1" && Ye(l, n, t);
4574
4538
  };
@@ -4580,12 +4544,12 @@ const _i = ["for"], ki = {
4580
4544
  if (n.__tooltipEl)
4581
4545
  o ? n.__tooltipEl.firstChild.textContent = o : (n.__tooltipEl.parentElement && n.__tooltipEl.parentElement.removeChild(n.__tooltipEl), delete n.__tooltipEl);
4582
4546
  else if (o) {
4583
- const l = n.dataset.placement || "top", i = dt(o, l);
4547
+ const l = n.dataset.placement || "top", i = d1(o, l);
4584
4548
  n.__tooltipEl = i;
4585
4549
  const c = () => {
4586
- (ft(n) ? pt(n) : !0) && ct(i, n, l);
4550
+ (f1(n) ? p1(n) : !0) && c1(i, n, l);
4587
4551
  }, p = () => {
4588
- ht(i);
4552
+ h1(i);
4589
4553
  }, v = () => {
4590
4554
  i.style.opacity === "1" && Ye(i, n, l);
4591
4555
  };
@@ -4605,20 +4569,20 @@ const _i = ["for"], ki = {
4605
4569
  }, qi = {
4606
4570
  install(n, e = {}) {
4607
4571
  const { prefix: o = "V", modal: t = !0 } = e;
4608
- n.component(`${o}Button`, We), n.component(`${o}Icon`, oe), n.component(`${o}Loader`, je), n.component(`${o}Modal`, vt), n.component(`${o}Pagination`, rs), n.component(`${o}Checkbox`, Me), n.component(`${o}Radiobox`, ds), n.component(`${o}Table`, Js), n.component(`${o}TableColumn`, ei), n.component(`${o}Dropdown`, wt), n.component(`${o}DropdownItem`, Ue), n.component(`${o}Input`, gt), n.component(`${o}Select`, Ai), n.component(`${o}Option`, Fi), n.directive("tooltip", Ni), t && n.use(bs);
4572
+ n.component(`${o}Button`, We), n.component(`${o}Icon`, le), n.component(`${o}Loader`, je), n.component(`${o}Modal`, v1), n.component(`${o}Pagination`, rs), n.component(`${o}Checkbox`, $e), n.component(`${o}Radiobox`, ds), n.component(`${o}Table`, Js), n.component(`${o}TableColumn`, ei), n.component(`${o}Dropdown`, w1), n.component(`${o}DropdownItem`, Ue), n.component(`${o}Input`, g1), n.component(`${o}Select`, Ai), n.component(`${o}Option`, Fi), n.directive("tooltip", Ni), t && n.use(bs);
4609
4573
  }
4610
4574
  }, Yi = qi.install;
4611
4575
  export {
4612
4576
  Ui as DEFAULT_COLUMN_CONFIG,
4613
- Ct as DropdownContextKey,
4577
+ C1 as DropdownContextKey,
4614
4578
  We as VButton,
4615
- Me as VCheckbox,
4616
- wt as VDropdown,
4579
+ $e as VCheckbox,
4580
+ w1 as VDropdown,
4617
4581
  Ue as VDropdownItem,
4618
- oe as VIcon,
4619
- gt as VInput,
4582
+ le as VIcon,
4583
+ g1 as VInput,
4620
4584
  je as VLoader,
4621
- vt as VModal,
4585
+ v1 as VModal,
4622
4586
  bs as VModalPlugin,
4623
4587
  Fi as VOption,
4624
4588
  rs as VPagination,
@@ -4626,7 +4590,7 @@ export {
4626
4590
  Ai as VSelect,
4627
4591
  Js as VTable,
4628
4592
  ei as VTableColumn,
4629
- _t as VtSelectContextKey,
4593
+ _1 as VtSelectContextKey,
4630
4594
  qi as default,
4631
4595
  Yi as install,
4632
4596
  xe as modalManager,