voiptime-components 1.7.4 → 1.7.5

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 Y, renderSlot as Ce, Teleport as Je, withModifiers as me, toDisplayString as G, watch as ce, Fragment as he, renderList as pe, vModelSelect as k1, createVNode as X, withCtx as we, createTextVNode as xe, ref as H, onUnmounted as Ie, nextTick as ve, provide as e1, onMounted as ge, unref as ne, inject as t1, createApp as b1, h as qe, mergeModels as l1, useModel as y1, reactive as x1, Transition as r1, onBeforeUnmount as M1 } from "vue";
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";
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
- }, $1 = {}, L1 = {
7
+ }, $t = {}, Lt = {
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 V1(n, e) {
15
- return s(), a("svg", L1, e[0] || (e[0] = [
14
+ function Vt(n, e) {
15
+ return s(), a("svg", Lt, e[0] || (e[0] = [
16
16
  r("circle", {
17
17
  cx: "10",
18
18
  cy: "10",
@@ -29,15 +29,15 @@ function V1(n, e) {
29
29
  }, null, -1)
30
30
  ]));
31
31
  }
32
- const S1 = /* @__PURE__ */ w($1, [["render", V1]]), I1 = {}, H1 = {
32
+ const St = /* @__PURE__ */ w($t, [["render", Vt]]), It = {}, Ht = {
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 B1(n, e) {
40
- return s(), a("svg", H1, e[0] || (e[0] = [
39
+ function Bt(n, e) {
40
+ return s(), a("svg", Ht, e[0] || (e[0] = [
41
41
  r("circle", {
42
42
  cx: "10",
43
43
  cy: "10",
@@ -61,15 +61,15 @@ function B1(n, e) {
61
61
  }, null, -1)
62
62
  ]));
63
63
  }
64
- const E1 = /* @__PURE__ */ w(I1, [["render", B1]]), T1 = {}, j1 = {
64
+ const Et = /* @__PURE__ */ w(It, [["render", Bt]]), Tt = {}, jt = {
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 z1(n, e) {
72
- return s(), a("svg", j1, e[0] || (e[0] = [
71
+ function zt(n, e) {
72
+ return s(), a("svg", jt, 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 z1(n, e) {
79
79
  }, null, -1)
80
80
  ]));
81
81
  }
82
- const O1 = /* @__PURE__ */ w(T1, [["render", z1]]), R1 = {}, D1 = {
82
+ const Ot = /* @__PURE__ */ w(Tt, [["render", zt]]), Rt = {}, Dt = {
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 W1(n, e) {
90
- return s(), a("svg", D1, e[0] || (e[0] = [
89
+ function Wt(n, e) {
90
+ return s(), a("svg", Dt, 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 W1(n, e) {
97
97
  }, null, -1)
98
98
  ]));
99
99
  }
100
- const P1 = /* @__PURE__ */ w(R1, [["render", W1]]), A1 = {}, Z1 = {
100
+ const Pt = /* @__PURE__ */ w(Rt, [["render", Wt]]), At = {}, Zt = {
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 N1(n, e) {
108
- return s(), a("svg", Z1, e[0] || (e[0] = [
107
+ function Ft(n, e) {
108
+ return s(), a("svg", Zt, 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 N1(n, e) {
121
121
  }, null, -1)
122
122
  ]));
123
123
  }
124
- const F1 = /* @__PURE__ */ w(A1, [["render", N1]]), q1 = {}, K1 = {
124
+ const Nt = /* @__PURE__ */ w(At, [["render", Ft]]), qt = {}, Kt = {
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 U1(n, e) {
132
- return s(), a("svg", K1, e[0] || (e[0] = [
131
+ function Ut(n, e) {
132
+ return s(), a("svg", Kt, 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 U1(n, e) {
142
142
  }, null, -1)
143
143
  ]));
144
144
  }
145
- const Y1 = /* @__PURE__ */ w(q1, [["render", U1]]), X1 = {}, Q1 = {
145
+ const Yt = /* @__PURE__ */ w(qt, [["render", Ut]]), Xt = {}, Qt = {
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 G1(n, e) {
153
- return s(), a("svg", Q1, e[0] || (e[0] = [
152
+ function Gt(n, e) {
153
+ return s(), a("svg", Qt, 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 G1(n, e) {
160
160
  }, null, -1)
161
161
  ]));
162
162
  }
163
- const J1 = /* @__PURE__ */ w(X1, [["render", G1]]), et = {}, tt = {
163
+ const Jt = /* @__PURE__ */ w(Xt, [["render", Gt]]), e1 = {}, t1 = {
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 nt(n, e) {
171
- return s(), a("svg", tt, e[0] || (e[0] = [
170
+ function n1(n, e) {
171
+ return s(), a("svg", t1, 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 nt(n, e) {
178
178
  }, null, -1)
179
179
  ]));
180
180
  }
181
- const ot = /* @__PURE__ */ w(et, [["render", nt]]), lt = {}, rt = {
181
+ const o1 = /* @__PURE__ */ w(e1, [["render", n1]]), l1 = {}, r1 = {
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 st(n, e) {
189
- return s(), a("svg", rt, e[0] || (e[0] = [
188
+ function s1(n, e) {
189
+ return s(), a("svg", r1, e[0] || (e[0] = [
190
190
  r("path", {
191
191
  "fill-rule": "evenodd",
192
192
  "clip-rule": "evenodd",
@@ -195,15 +195,15 @@ function st(n, e) {
195
195
  }, null, -1)
196
196
  ]));
197
197
  }
198
- const it = /* @__PURE__ */ w(lt, [["render", st]]), at = {}, ut = {
198
+ const i1 = /* @__PURE__ */ w(l1, [["render", s1]]), a1 = {}, u1 = {
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 dt(n, e) {
206
- return s(), a("svg", ut, e[0] || (e[0] = [
205
+ function d1(n, e) {
206
+ return s(), a("svg", u1, e[0] || (e[0] = [
207
207
  r("path", {
208
208
  "fill-rule": "evenodd",
209
209
  "clip-rule": "evenodd",
@@ -212,15 +212,15 @@ function dt(n, e) {
212
212
  }, null, -1)
213
213
  ]));
214
214
  }
215
- const ct = /* @__PURE__ */ w(at, [["render", dt]]), ht = {}, pt = {
215
+ const c1 = /* @__PURE__ */ w(a1, [["render", d1]]), h1 = {}, p1 = {
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 ft(n, e) {
223
- return s(), a("svg", pt, e[0] || (e[0] = [
222
+ function f1(n, e) {
223
+ return s(), a("svg", p1, 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 ft(n, e) {
230
230
  }, null, -1)
231
231
  ]));
232
232
  }
233
- const vt = /* @__PURE__ */ w(ht, [["render", ft]]), mt = {}, Ct = {
233
+ const v1 = /* @__PURE__ */ w(h1, [["render", f1]]), m1 = {}, C1 = {
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 wt(n, e) {
241
- return s(), a("svg", Ct, e[0] || (e[0] = [
240
+ function w1(n, e) {
241
+ return s(), a("svg", C1, 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 wt(n, e) {
260
260
  }, null, -1)
261
261
  ]));
262
262
  }
263
- const gt = /* @__PURE__ */ w(mt, [["render", wt]]), _t = {}, kt = {
263
+ const g1 = /* @__PURE__ */ w(m1, [["render", w1]]), _1 = {}, k1 = {
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 bt(n, e) {
271
- return s(), a("svg", kt, e[0] || (e[0] = [
270
+ function b1(n, e) {
271
+ return s(), a("svg", k1, 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 bt(n, e) {
284
284
  }, null, -1)
285
285
  ]));
286
286
  }
287
- const yt = /* @__PURE__ */ w(_t, [["render", bt]]), xt = {}, Mt = {
287
+ const y1 = /* @__PURE__ */ w(_1, [["render", b1]]), x1 = {}, M1 = {
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 $t(n, e) {
295
- return s(), a("svg", Mt, e[0] || (e[0] = [
294
+ function $1(n, e) {
295
+ return s(), a("svg", M1, 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 $t(n, e) {
302
302
  }, null, -1)
303
303
  ]));
304
304
  }
305
- const Lt = /* @__PURE__ */ w(xt, [["render", $t]]), Vt = {}, St = {
305
+ const L1 = /* @__PURE__ */ w(x1, [["render", $1]]), V1 = {}, S1 = {
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 It(n, e) {
313
- return s(), a("svg", St, e[0] || (e[0] = [
312
+ function I1(n, e) {
313
+ return s(), a("svg", S1, 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 It(n, e) {
336
336
  }, null, -1)
337
337
  ]));
338
338
  }
339
- const Ht = /* @__PURE__ */ w(Vt, [["render", It]]), Bt = {}, Et = {
339
+ const H1 = /* @__PURE__ */ w(V1, [["render", I1]]), B1 = {}, E1 = {
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 Tt(n, e) {
347
- return s(), a("svg", Et, e[0] || (e[0] = [
346
+ function T1(n, e) {
347
+ return s(), a("svg", E1, 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 Tt(n, e) {
354
354
  }, null, -1)
355
355
  ]));
356
356
  }
357
- const jt = /* @__PURE__ */ w(Bt, [["render", Tt]]), zt = {}, Ot = {
357
+ const j1 = /* @__PURE__ */ w(B1, [["render", T1]]), z1 = {}, O1 = {
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 Rt(n, e) {
365
- return s(), a("svg", Ot, e[0] || (e[0] = [
364
+ function R1(n, e) {
365
+ return s(), a("svg", O1, 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 Rt(n, e) {
371
371
  }, null, -1)
372
372
  ]));
373
373
  }
374
- const Dt = /* @__PURE__ */ w(zt, [["render", Rt]]), Wt = {}, Pt = {
374
+ const D1 = /* @__PURE__ */ w(z1, [["render", R1]]), W1 = {}, P1 = {
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 At(n, e) {
382
- return s(), a("svg", Pt, e[0] || (e[0] = [
381
+ function A1(n, e) {
382
+ return s(), a("svg", P1, 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 At(n, e) {
387
387
  }, null, -1)
388
388
  ]));
389
389
  }
390
- const Zt = /* @__PURE__ */ w(Wt, [["render", At]]), Nt = {}, Ft = {
390
+ const Z1 = /* @__PURE__ */ w(W1, [["render", A1]]), F1 = {}, N1 = {
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 qt(n, e) {
398
- return s(), a("svg", Ft, e[0] || (e[0] = [
397
+ function q1(n, e) {
398
+ return s(), a("svg", N1, 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 qt(n, e) {
410
410
  }, null, -1)
411
411
  ]));
412
412
  }
413
- const Kt = /* @__PURE__ */ w(Nt, [["render", qt]]), Ut = {}, Yt = {
413
+ const K1 = /* @__PURE__ */ w(F1, [["render", q1]]), U1 = {}, Y1 = {
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 Xt(n, e) {
421
- return s(), a("svg", Yt, e[0] || (e[0] = [
420
+ function X1(n, e) {
421
+ return s(), a("svg", Y1, 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 Xt(n, e) {
451
451
  }, null, -1)
452
452
  ]));
453
453
  }
454
- const Qt = /* @__PURE__ */ w(Ut, [["render", Xt]]), Gt = {}, Jt = {
454
+ const Q1 = /* @__PURE__ */ w(U1, [["render", X1]]), G1 = {}, J1 = {
455
455
  width: "20",
456
456
  height: "20",
457
457
  viewBox: "0 0 20 20",
@@ -459,7 +459,7 @@ const Qt = /* @__PURE__ */ w(Ut, [["render", Xt]]), Gt = {}, Jt = {
459
459
  xmlns: "http://www.w3.org/2000/svg"
460
460
  };
461
461
  function en(n, e) {
462
- return s(), a("svg", Jt, e[0] || (e[0] = [
462
+ return s(), a("svg", J1, 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(Gt, [["render", en]]), nn = {}, on = {
479
+ const tn = /* @__PURE__ */ w(G1, [["render", en]]), nn = {}, on = {
480
480
  width: "20",
481
481
  height: "20",
482
482
  viewBox: "0 0 20 20",
@@ -708,15 +708,15 @@ function Pn(n, e) {
708
708
  }, null, -1)
709
709
  ]));
710
710
  }
711
- const An = /* @__PURE__ */ w(Dn, [["render", Pn]]), Zn = {}, Nn = {
711
+ const An = /* @__PURE__ */ w(Dn, [["render", Pn]]), Zn = {}, Fn = {
712
712
  width: "20",
713
713
  height: "20",
714
714
  viewBox: "0 0 20 20",
715
715
  fill: "none",
716
716
  xmlns: "http://www.w3.org/2000/svg"
717
717
  };
718
- function Fn(n, e) {
719
- return s(), a("svg", Nn, e[0] || (e[0] = [
718
+ function Nn(n, e) {
719
+ return s(), a("svg", Fn, e[0] || (e[0] = [
720
720
  r("path", {
721
721
  d: "M9.4676 15.1809L5.5026 16.5026V9.41927L1.76927 5.3126C1.49048 5.00588 1.33598 4.60627 1.33594 4.19177V2.33594H14.6693V4.14594C14.6692 4.58793 14.4935 5.01178 14.1809 5.32427L10.5026 9.0026V10.2526",
722
722
  stroke: "currentColor",
@@ -733,7 +733,7 @@ function Fn(n, e) {
733
733
  }, null, -1)
734
734
  ]));
735
735
  }
736
- const qn = /* @__PURE__ */ w(Zn, [["render", Fn]]), Kn = {}, Un = {
736
+ const qn = /* @__PURE__ */ w(Zn, [["render", Nn]]), Kn = {}, Un = {
737
737
  width: "20",
738
738
  height: "20",
739
739
  viewBox: "0 0 20 20",
@@ -981,7 +981,7 @@ const Po = /* @__PURE__ */ w(Ro, [["render", Wo]]), Ao = {}, Zo = {
981
981
  fill: "none",
982
982
  xmlns: "http://www.w3.org/2000/svg"
983
983
  };
984
- function No(n, e) {
984
+ function Fo(n, e) {
985
985
  return s(), a("svg", Zo, e[0] || (e[0] = [
986
986
  r("path", {
987
987
  d: "M1.66406 8.33594C1.66406 8.33594 4.58073 11.6693 9.9974 11.6693C15.4141 11.6693 18.3307 8.33594 18.3307 8.33594M3.33073 9.70677L1.66406 11.6693M18.3307 11.6693L16.6674 9.70927M7.42573 11.4026L6.66406 13.7526M12.5499 11.4093L13.3307 13.7526",
@@ -992,7 +992,7 @@ function No(n, e) {
992
992
  }, null, -1)
993
993
  ]));
994
994
  }
995
- const Fo = /* @__PURE__ */ w(Ao, [["render", No]]), qo = {}, Ko = {
995
+ const No = /* @__PURE__ */ w(Ao, [["render", Fo]]), qo = {}, Ko = {
996
996
  width: "20",
997
997
  height: "20",
998
998
  viewBox: "0 0 20 20",
@@ -1362,7 +1362,7 @@ function Al(n, e) {
1362
1362
  }, null, -1)
1363
1363
  ]));
1364
1364
  }
1365
- const Zl = /* @__PURE__ */ w(Wl, [["render", Al]]), Nl = {}, Fl = {
1365
+ const Zl = /* @__PURE__ */ w(Wl, [["render", Al]]), Fl = {}, Nl = {
1366
1366
  fill: "none",
1367
1367
  height: "20",
1368
1368
  viewBox: "0 0 21 20",
@@ -1370,7 +1370,7 @@ const Zl = /* @__PURE__ */ w(Wl, [["render", Al]]), Nl = {}, Fl = {
1370
1370
  xmlns: "http://www.w3.org/2000/svg"
1371
1371
  };
1372
1372
  function ql(n, e) {
1373
- return s(), a("svg", Fl, e[0] || (e[0] = [
1373
+ return s(), a("svg", Nl, e[0] || (e[0] = [
1374
1374
  r("path", {
1375
1375
  d: "M8.89323 17.7057H7.85156C6.52548 17.7057 5.25371 17.1789 4.31603 16.2413C3.37835 15.3036 2.85156 14.0318 2.85156 12.7057V7.28906C2.85156 5.96298 3.37835 4.69121 4.31603 3.75353C5.25371 2.81585 6.52548 2.28906 7.85156 2.28906H13.2682C14.5943 2.28906 15.8661 2.81585 16.8038 3.75353C17.7414 4.69121 18.2682 5.96298 18.2682 7.28906V8.33073",
1376
1376
  stroke: "currentColor",
@@ -1386,7 +1386,7 @@ function ql(n, e) {
1386
1386
  }, null, -1)
1387
1387
  ]));
1388
1388
  }
1389
- const Kl = /* @__PURE__ */ w(Nl, [["render", ql]]), Ul = {}, Yl = {
1389
+ const Kl = /* @__PURE__ */ w(Fl, [["render", ql]]), Ul = {}, Yl = {
1390
1390
  fill: "none",
1391
1391
  height: "20",
1392
1392
  viewBox: "0 0 21 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: S1,
1636
- circleClose: E1,
1637
- close: O1,
1638
- delete: P1,
1639
- download: F1,
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: Ht,
1650
- reply: jt,
1651
- save: Dt,
1652
- star: Zt,
1653
- start: Kt,
1654
- statusChange2: Qt,
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,
1655
1655
  statusChange: tn,
1656
1656
  stop: rn,
1657
1657
  usersGroup: dn,
@@ -1680,7 +1680,7 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1680
1680
  alertTriangle: Eo,
1681
1681
  calendar: Oo,
1682
1682
  checkCircle: Po,
1683
- eyeClosed: Fo,
1683
+ eyeClosed: No,
1684
1684
  eyeOpened: Yo,
1685
1685
  search: Jo,
1686
1686
  url: ol,
@@ -1729,11 +1729,11 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1729
1729
  style: fe(t.value)
1730
1730
  }, null, 8, ["style"])) : j("", !0);
1731
1731
  }
1732
- }), Zr = {}, Nr = { class: "vt-loader" };
1733
- function Fr(n, e) {
1734
- return s(), a("span", Nr);
1732
+ }), Zr = {}, Fr = { class: "vt-loader" };
1733
+ function Nr(n, e) {
1734
+ return s(), a("span", Fr);
1735
1735
  }
1736
- const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "data-placement"], Kr = {
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
1739
  }, We = /* @__PURE__ */ de({
@@ -1751,9 +1751,9 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1751
1751
  emits: ["click"],
1752
1752
  setup(n, { emit: e }) {
1753
1753
  const o = n, t = e, l = Qe(), i = x(() => !!(o.icon && o.shape)), c = x(() => {
1754
- var _, C;
1755
- const d = l.default ? l.default({}) : null;
1756
- return ((C = (_ = d == null ? void 0 : d[0]) == null ? void 0 : _.children) == null ? void 0 : C.toString()) ?? "";
1754
+ var g, C;
1755
+ const u = l.default ? l.default({}) : null;
1756
+ return ((C = (g = u == null ? void 0 : u[0]) == null ? void 0 : g.children) == null ? void 0 : C.toString()) ?? "";
1757
1757
  }), p = x(() => [
1758
1758
  "vt-button",
1759
1759
  `vt-button--${o.type}`,
@@ -1763,13 +1763,13 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), 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 = (d) => {
1767
- !o.disabled && !o.loading && t("click", d);
1766
+ ]), v = x(() => i.value && o.tooltip ? c.value : null), f = (u) => {
1767
+ !o.disabled && !o.loading && t("click", u);
1768
1768
  };
1769
- return (d, _) => {
1769
+ return (u, g) => {
1770
1770
  const C = Ge("tooltip");
1771
1771
  return Ae((s(), a("button", {
1772
- class: Y(p.value),
1772
+ class: A(p.value),
1773
1773
  disabled: o.disabled || o.loading,
1774
1774
  type: o.htmlType,
1775
1775
  "data-placement": o.tooltipPlacement,
@@ -1784,7 +1784,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1784
1784
  class: "vt-button__icon"
1785
1785
  }, null, 8, ["name"])) : j("", !0),
1786
1786
  i.value ? j("", !0) : (s(), a("span", Kr, [
1787
- Ce(d.$slots, "default")
1787
+ ve(u.$slots, "default")
1788
1788
  ]))
1789
1789
  ], 10, qr)), [
1790
1790
  [C, v.value]
@@ -1797,7 +1797,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1797
1797
  }, Yr = {
1798
1798
  key: 0,
1799
1799
  class: "vt-modal__title"
1800
- }, Xr = { class: "vt-modal__content" }, v1 = /* @__PURE__ */ de({
1800
+ }, Xr = { class: "vt-modal__content" }, vt = /* @__PURE__ */ de({
1801
1801
  __name: "VModal",
1802
1802
  props: {
1803
1803
  modelValue: { type: Boolean },
@@ -1824,12 +1824,12 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1824
1824
  onClick: p
1825
1825
  }, [
1826
1826
  r("div", {
1827
- class: Y(l.value),
1828
- onClick: f[0] || (f[0] = me(() => {
1827
+ class: A(l.value),
1828
+ onClick: f[0] || (f[0] = Ce(() => {
1829
1829
  }, ["stop"]))
1830
1830
  }, [
1831
1831
  v.title || v.showCloseButton ? (s(), a("div", Ur, [
1832
- v.title ? (s(), a("h2", Yr, G(v.title), 1)) : j("", !0),
1832
+ v.title ? (s(), a("h2", Yr, Q(v.title), 1)) : j("", !0),
1833
1833
  v.showCloseButton ? (s(), ie(oe, {
1834
1834
  key: 1,
1835
1835
  name: "close",
@@ -1838,7 +1838,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1838
1838
  })) : j("", !0)
1839
1839
  ])) : j("", !0),
1840
1840
  r("div", Xr, [
1841
- Ce(v.$slots, "default")
1841
+ ve(v.$slots, "default")
1842
1842
  ])
1843
1843
  ], 2)
1844
1844
  ], 4)) : j("", !0)
@@ -1861,18 +1861,18 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1861
1861
  }), i = x({
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), d = x(() => l.value >= c.value), _ = x(() => {
1865
- const B = [], R = c.value, O = l.value, te = o.maxVisiblePages;
1866
- if (R <= te)
1867
- for (let Q = 1; Q <= R; Q++)
1868
- B.push(Q);
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(() => {
1865
+ const B = [], R = c.value, O = l.value, ee = o.maxVisiblePages;
1866
+ if (R <= ee)
1867
+ for (let G = 1; G <= R; G++)
1868
+ B.push(G);
1869
1869
  else {
1870
1870
  B.push(1);
1871
- const Q = Math.max(2, O - Math.floor(te / 2)), J = Math.min(R - 1, O + Math.floor(te / 2));
1872
- Q > 2 && B.push("...");
1873
- for (let q = Q; q <= J; q++)
1874
- B.push(q);
1875
- J < R - 1 && B.push("..."), R > 1 && B.push(R);
1871
+ const G = Math.max(2, O - Math.floor(ee / 2)), te = Math.min(R - 1, O + Math.floor(ee / 2));
1872
+ G > 2 && B.push("...");
1873
+ for (let K = G; K <= te; K++)
1874
+ B.push(K);
1875
+ te < R - 1 && B.push("..."), R > 1 && B.push(R);
1876
1876
  }
1877
1877
  return B;
1878
1878
  }), C = () => {
@@ -1882,13 +1882,13 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1882
1882
  });
1883
1883
  }, z = (B) => {
1884
1884
  typeof B == "number" && B !== l.value && (l.value = B, C());
1885
- }, A = () => {
1885
+ }, Z = () => {
1886
1886
  f.value || (l.value--, C());
1887
1887
  }, D = () => {
1888
- d.value || (l.value++, C());
1889
- }, Z = () => {
1888
+ u.value || (l.value++, C());
1889
+ }, F = () => {
1890
1890
  l.value = 1, C();
1891
- }, U = () => {
1891
+ }, Y = () => {
1892
1892
  t("reloadData", l.value);
1893
1893
  };
1894
1894
  return ce(
@@ -1906,38 +1906,38 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1906
1906
  Ae(r("select", {
1907
1907
  id: "rowsSelect",
1908
1908
  "onUpdate:modelValue": R[0] || (R[0] = (O) => i.value = O),
1909
- onChange: Z,
1909
+ onChange: F,
1910
1910
  class: "vt-pagination__select"
1911
1911
  }, [
1912
1912
  (s(!0), a(he, null, pe(B.pageSizeOptions, (O) => (s(), a("option", {
1913
1913
  key: O,
1914
1914
  value: O
1915
- }, G(O), 9, es))), 128))
1915
+ }, Q(O), 9, es))), 128))
1916
1916
  ], 544), [
1917
- [k1, i.value]
1917
+ [kt, i.value]
1918
1918
  ])
1919
1919
  ]),
1920
- r("span", null, G(p.value) + " - " + G(v.value) + " з " + G(B.totalItems), 1)
1920
+ r("span", null, Q(p.value) + " - " + Q(v.value) + " з " + Q(B.totalItems), 1)
1921
1921
  ]),
1922
1922
  r("div", ts, [
1923
1923
  r("button", {
1924
- onClick: A,
1924
+ onClick: Z,
1925
1925
  disabled: f.value,
1926
- class: Y({ "vt-pagination__nav-button": !0, "has-items": !f.value })
1926
+ class: A({ "vt-pagination__nav-button": !0, "has-items": !f.value })
1927
1927
  }, [
1928
1928
  X(oe, { name: "arrowLeft" })
1929
1929
  ], 10, ns),
1930
- (s(!0), a(he, null, pe(_.value, (O) => (s(), a("button", {
1930
+ (s(!0), a(he, null, pe(g.value, (O) => (s(), a("button", {
1931
1931
  key: O,
1932
- onClick: (te) => z(O),
1933
- class: Y(["vt-pagination__nav-button", {
1932
+ onClick: (ee) => z(O),
1933
+ class: A(["vt-pagination__nav-button", {
1934
1934
  "vt-pagination__nav-button--active": O === l.value
1935
1935
  }])
1936
- }, G(O), 11, os))), 128)),
1936
+ }, Q(O), 11, os))), 128)),
1937
1937
  r("button", {
1938
1938
  onClick: D,
1939
- disabled: d.value,
1940
- class: Y({ "vt-pagination__nav-button": !0, "has-items": !d.value })
1939
+ disabled: u.value,
1940
+ class: A({ "vt-pagination__nav-button": !0, "has-items": !u.value })
1941
1941
  }, [
1942
1942
  X(oe, { name: "arrowRight" })
1943
1943
  ], 10, ls)
@@ -1948,10 +1948,10 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1948
1948
  shape: "circle",
1949
1949
  tooltip: "",
1950
1950
  tooltipPlacement: "left",
1951
- onClick: U
1951
+ onClick: Y
1952
1952
  }, {
1953
1953
  default: we(() => R[2] || (R[2] = [
1954
- xe("Оновити дані ", -1)
1954
+ ge("Оновити дані ", -1)
1955
1955
  ])),
1956
1956
  _: 1,
1957
1957
  __: [2]
@@ -1977,35 +1977,35 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), 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 = (d) => {
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) => {
1981
1981
  if (o.disabled) return;
1982
- const C = d.target.checked;
1983
- t("update:modelValue", C), t("change", C, d);
1984
- }, v = (d) => {
1985
- t("focus", d);
1986
- }, f = (d) => {
1987
- t("blur", d);
1982
+ const C = u.target.checked;
1983
+ t("update:modelValue", C), t("change", C, u);
1984
+ }, v = (u) => {
1985
+ t("focus", u);
1986
+ }, f = (u) => {
1987
+ t("blur", u);
1988
1988
  };
1989
- return (d, _) => (s(), a("label", {
1990
- class: Y([
1989
+ return (u, g) => (s(), a("label", {
1990
+ class: A([
1991
1991
  "vt-checkbox",
1992
- `vt-checkbox--${d.size}`,
1993
- `vt-checkbox--${d.variant}`,
1992
+ `vt-checkbox--${u.size}`,
1993
+ `vt-checkbox--${u.variant}`,
1994
1994
  {
1995
- "vt-checkbox--disabled": d.disabled,
1996
- "vt-checkbox--double": d.isDouble
1995
+ "vt-checkbox--disabled": u.disabled,
1996
+ "vt-checkbox--double": u.isDouble
1997
1997
  }
1998
1998
  ]),
1999
1999
  for: i.value
2000
2000
  }, [
2001
2001
  r("input", {
2002
2002
  id: i.value,
2003
- name: d.name,
2004
- value: d.value,
2003
+ name: u.name,
2004
+ value: u.value,
2005
2005
  checked: c.value,
2006
- disabled: d.disabled,
2007
- required: d.required,
2008
- ".indeterminate": d.indeterminate,
2006
+ disabled: u.disabled,
2007
+ required: u.required,
2008
+ ".indeterminate": u.indeterminate,
2009
2009
  type: "checkbox",
2010
2010
  class: "vt-checkbox__input",
2011
2011
  onChange: p,
@@ -2013,19 +2013,19 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
2013
2013
  onBlur: f
2014
2014
  }, null, 40, is),
2015
2015
  r("div", {
2016
- class: Y([
2016
+ class: A([
2017
2017
  "vt-checkbox__box",
2018
2018
  {
2019
- "vt-checkbox__box--checked": c.value && !d.indeterminate && !d.isDouble,
2020
- "vt-checkbox__box--indeterminate": d.indeterminate,
2021
- "vt-checkbox__box--double": d.isDouble && c.value,
2022
- "vt-checkbox__box--disabled": d.disabled
2019
+ "vt-checkbox__box--checked": c.value && !u.indeterminate && !u.isDouble,
2020
+ "vt-checkbox__box--indeterminate": u.indeterminate,
2021
+ "vt-checkbox__box--double": u.isDouble && c.value,
2022
+ "vt-checkbox__box--disabled": u.disabled
2023
2023
  }
2024
2024
  ])
2025
2025
  }, [
2026
- !d.indeterminate && !d.isDouble ? (s(), a("svg", {
2026
+ !u.indeterminate && !u.isDouble ? (s(), a("svg", {
2027
2027
  key: 0,
2028
- class: Y([
2028
+ class: A([
2029
2029
  "vt-checkbox__checkmark",
2030
2030
  {
2031
2031
  "vt-checkbox__checkmark--checked": c.value
@@ -2036,7 +2036,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
2036
2036
  viewBox: "0 0 10 9",
2037
2037
  fill: "none",
2038
2038
  xmlns: "http://www.w3.org/2000/svg"
2039
- }, _[0] || (_[0] = [
2039
+ }, g[0] || (g[0] = [
2040
2040
  r("path", {
2041
2041
  d: "M1 5L3.58264 7.58264C3.80112 7.80112 4.16348 7.77113 4.34306 7.51971L9 1",
2042
2042
  stroke: "currentColor",
@@ -2044,9 +2044,9 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
2044
2044
  "stroke-linecap": "round"
2045
2045
  }, null, -1)
2046
2046
  ]), 2)) : j("", !0),
2047
- d.isDouble && c.value ? (s(), a("svg", {
2047
+ u.isDouble && c.value ? (s(), a("svg", {
2048
2048
  key: 1,
2049
- class: Y([
2049
+ class: A([
2050
2050
  "vt-checkbox__checkmark",
2051
2051
  {
2052
2052
  "vt-checkbox__checkmark--checked": c.value
@@ -2057,7 +2057,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
2057
2057
  viewBox: "0 0 13 6",
2058
2058
  fill: "none",
2059
2059
  xmlns: "http://www.w3.org/2000/svg"
2060
- }, _[1] || (_[1] = [
2060
+ }, g[1] || (g[1] = [
2061
2061
  r("path", {
2062
2062
  d: "M6 3L8.25 5L12 1",
2063
2063
  stroke: "currentColor",
@@ -2073,35 +2073,118 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
2073
2073
  "stroke-linejoin": "round"
2074
2074
  }, null, -1)
2075
2075
  ]), 2)) : j("", !0),
2076
- d.indeterminate ? (s(), a("div", {
2076
+ u.indeterminate ? (s(), a("div", {
2077
2077
  key: 2,
2078
- class: Y([
2078
+ class: A([
2079
2079
  "vt-checkbox__indeterminate-mark",
2080
2080
  {
2081
- "vt-checkbox__indeterminate-mark--visible": d.indeterminate
2081
+ "vt-checkbox__indeterminate-mark--visible": u.indeterminate
2082
2082
  }
2083
2083
  ])
2084
2084
  }, null, 2)) : j("", !0)
2085
2085
  ], 2),
2086
- d.label || d.$slots.label || d.$slots.default ? (s(), a("span", {
2086
+ u.label || u.$slots.label || u.$slots.default ? (s(), a("span", {
2087
2087
  key: 0,
2088
- class: Y([
2088
+ class: A([
2089
2089
  "vt-checkbox__label",
2090
2090
  {
2091
- "vt-checkbox__label--disabled": d.disabled
2091
+ "vt-checkbox__label--disabled": u.disabled
2092
2092
  }
2093
2093
  ])
2094
2094
  }, [
2095
- Ce(d.$slots, "label", {}, () => [
2096
- Ce(d.$slots, "default", {}, () => [
2097
- xe(G(d.label), 1)
2095
+ ve(u.$slots, "label", {}, () => [
2096
+ ve(u.$slots, "default", {}, () => [
2097
+ ge(Q(u.label), 1)
2098
2098
  ])
2099
2099
  ])
2100
2100
  ], 2)) : j("", !0)
2101
2101
  ], 10, ss));
2102
2102
  }
2103
+ }), as = ["for"], us = ["id", "checked", "disabled", "name", "required", "value"], ds = /* @__PURE__ */ de({
2104
+ __name: "VRadiobox",
2105
+ props: {
2106
+ modelValue: { default: void 0 },
2107
+ value: {},
2108
+ checked: { type: Boolean, default: !1 },
2109
+ disabled: { type: Boolean, default: !1 },
2110
+ label: {},
2111
+ name: {},
2112
+ id: {},
2113
+ size: { default: "medium" },
2114
+ variant: { default: "primary" },
2115
+ required: { type: Boolean, default: !1 }
2116
+ },
2117
+ emits: ["update:modelValue", "change", "focus", "blur"],
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) => {
2120
+ if (o.disabled) return;
2121
+ u.target.checked && (t("update:modelValue", o.value), t("change", o.value, u));
2122
+ }, v = (u) => {
2123
+ t("focus", u);
2124
+ }, f = (u) => {
2125
+ t("blur", u);
2126
+ };
2127
+ return (u, g) => (s(), a("label", {
2128
+ class: A([
2129
+ "vt-radiobox",
2130
+ `vt-radiobox--${u.size}`,
2131
+ `vt-radiobox--${u.variant}`,
2132
+ {
2133
+ "vt-radiobox--disabled": u.disabled
2134
+ }
2135
+ ]),
2136
+ for: i.value
2137
+ }, [
2138
+ r("input", {
2139
+ id: i.value,
2140
+ checked: c.value,
2141
+ disabled: u.disabled,
2142
+ name: u.name,
2143
+ required: u.required,
2144
+ value: u.value,
2145
+ class: "vt-radiobox__input",
2146
+ type: "radio",
2147
+ onBlur: f,
2148
+ onChange: p,
2149
+ onFocus: v
2150
+ }, null, 40, us),
2151
+ r("div", {
2152
+ class: A([
2153
+ "vt-radiobox__circle",
2154
+ {
2155
+ "vt-radiobox__circle--checked": c.value,
2156
+ "vt-radiobox__circle--disabled": u.disabled
2157
+ }
2158
+ ])
2159
+ }, [
2160
+ r("div", {
2161
+ class: A([
2162
+ "vt-radiobox__dot",
2163
+ {
2164
+ "vt-radiobox__dot--checked": c.value
2165
+ }
2166
+ ])
2167
+ }, null, 2)
2168
+ ], 2),
2169
+ u.label || u.$slots.label || u.$slots.default ? (s(), a("span", {
2170
+ key: 0,
2171
+ class: A([
2172
+ "vt-radiobox__label",
2173
+ {
2174
+ "vt-radiobox__label--disabled": u.disabled
2175
+ }
2176
+ ])
2177
+ }, [
2178
+ ve(u.$slots, "label", {}, () => [
2179
+ ve(u.$slots, "default", {}, () => [
2180
+ ge(Q(u.label), 1)
2181
+ ])
2182
+ ])
2183
+ ], 2)) : j("", !0)
2184
+ ], 10, as));
2185
+ }
2103
2186
  });
2104
- function as(n) {
2187
+ function cs(n) {
2105
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 = () => {
2106
2189
  const l = e.value.length, i = e.value.filter((p) => p.width || p.minWidth);
2107
2190
  return l - i.length === 0, 150;
@@ -2115,19 +2198,19 @@ function as(n) {
2115
2198
  if (l === "left") {
2116
2199
  c && (v += 45);
2117
2200
  for (let f = 0; f < i; f++) {
2118
- const d = p[f];
2119
- d.pinnedLeft && (v += d.width || d.minWidth || o());
2201
+ const u = p[f];
2202
+ u.pinnedLeft && (v += u.width || u.minWidth || o());
2120
2203
  }
2121
2204
  } else
2122
2205
  for (let f = p.length - 1; f > i; f--) {
2123
- const d = p[f];
2124
- d.pinnedRight && (v += d.width || d.minWidth || o());
2206
+ const u = p[f];
2207
+ u.pinnedRight && (v += u.width || u.minWidth || o());
2125
2208
  }
2126
2209
  return v;
2127
2210
  }
2128
2211
  };
2129
2212
  }
2130
- function us(n) {
2213
+ function hs(n) {
2131
2214
  const e = () => {
2132
2215
  const i = {};
2133
2216
  return n.maxHeight && (i.maxHeight = `${n.maxHeight}px`), i.overflowX = "auto", i;
@@ -2140,11 +2223,11 @@ function us(n) {
2140
2223
  else if (i.minWidth)
2141
2224
  f.width = `${i.minWidth}px`, f.minWidth = `${i.minWidth}px`, f.maxWidth = "none", f.flexGrow = "1";
2142
2225
  else if (i.maxWidth) {
2143
- const d = Math.min(v(), i.maxWidth);
2144
- f.width = `${d}px`, f.minWidth = "80px", f.maxWidth = `${i.maxWidth}px`, f.flexShrink = "1";
2226
+ const u = Math.min(v(), i.maxWidth);
2227
+ f.width = `${u}px`, f.minWidth = "80px", f.maxWidth = `${i.maxWidth}px`, f.flexShrink = "1";
2145
2228
  } else {
2146
- const d = v();
2147
- f.width = `${d}px`, f.minWidth = "120px", f.maxWidth = "none", f.flexGrow = "1";
2229
+ const u = v();
2230
+ f.width = `${u}px`, f.minWidth = "120px", f.maxWidth = "none", f.flexGrow = "1";
2148
2231
  }
2149
2232
  return i.pinnedLeft ? (f.position = "sticky", f.left = `${p("left", c, n.selectable)}px`, f.zIndex = "10") : i.pinnedRight && (f.position = "sticky", f.right = `${p("right", c, !1)}px`, f.zIndex = "10"), f;
2150
2233
  };
@@ -2161,7 +2244,7 @@ function us(n) {
2161
2244
  }
2162
2245
  };
2163
2246
  }
2164
- function ds() {
2247
+ function ps() {
2165
2248
  const n = H({
2166
2249
  resizingCol: null,
2167
2250
  startX: 0,
@@ -2171,17 +2254,17 @@ function ds() {
2171
2254
  onMouseDown: (t, l, i, c) => {
2172
2255
  t.preventDefault(), t.stopPropagation(), n.value.resizingCol = l, n.value.startX = t.clientX, n.value.startWidth = l.width || l.minWidth || i(l.prop);
2173
2256
  const p = (f) => {
2174
- const { resizingCol: d, startX: _, startWidth: C } = n.value;
2175
- if (!d) return;
2176
- document.querySelectorAll(`[data-resizer="${d.prop}"]`).forEach((U) => {
2177
- U.classList.add("vt-table__resizer--active");
2257
+ const { resizingCol: u, startX: g, startWidth: C } = n.value;
2258
+ if (!u) return;
2259
+ document.querySelectorAll(`[data-resizer="${u.prop}"]`).forEach((Y) => {
2260
+ Y.classList.add("vt-table__resizer--active");
2178
2261
  });
2179
- const z = f.clientX - _, A = d.minWidth || 50, D = d.maxWidth || 1e3, Z = Math.max(Math.min(C + z, D), A);
2180
- d.width = Z;
2262
+ const z = f.clientX - g, Z = u.minWidth || 50, D = u.maxWidth || 1e3, F = Math.max(Math.min(C + z, D), Z);
2263
+ u.width = F;
2181
2264
  }, v = () => {
2182
2265
  const { resizingCol: f } = n.value;
2183
- document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", v), document.body.style.cursor = "", document.body.style.userSelect = "", document.body.classList.remove("vt-table-resizing"), f && (document.querySelectorAll(`[data-resizer="${f.prop}"]`).forEach((d) => {
2184
- d.classList.remove("vt-table__resizer--active");
2266
+ document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", v), document.body.style.cursor = "", document.body.style.userSelect = "", document.body.classList.remove("vt-table-resizing"), f && (document.querySelectorAll(`[data-resizer="${f.prop}"]`).forEach((u) => {
2267
+ u.classList.remove("vt-table__resizer--active");
2185
2268
  }), c && f.width && c(f.width)), n.value.resizingCol = null;
2186
2269
  };
2187
2270
  document.addEventListener("mousemove", p), document.addEventListener("mouseup", v), document.body.style.cursor = e, document.body.style.userSelect = "none", document.body.classList.add("vt-table-resizing");
@@ -2189,23 +2272,23 @@ function ds() {
2189
2272
  resizeState: n
2190
2273
  };
2191
2274
  }
2192
- function cs(n, e, o, t) {
2193
- var ee;
2275
+ function fs(n, e, o, t) {
2276
+ var J;
2194
2277
  const l = n.selectionKey || "id", i = H([]), c = H(null), p = H(!1);
2195
- (ee = n.defaultSelection) != null && ee.length && (i.value = [...n.defaultSelection]);
2196
- const v = (E) => E[l], f = (E) => p.value ? !0 : i.value.some((L) => v(L) === v(E)), d = x(() => e.value.filter((E) => f(E)).length), _ = x(() => e.value.length > 0 && d.value === e.value.length), C = x(() => {
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(() => {
2197
2280
  if (p.value) return !1;
2198
- const E = d.value;
2281
+ const E = u.value;
2199
2282
  return E > 0 && E < e.value.length;
2200
- }), z = x(() => p.value ? !0 : _.value && !C.value), A = x(() => p.value), D = (E, L) => {
2283
+ }), z = x(() => p.value ? !0 : g.value && !C.value), Z = x(() => p.value), D = (E, L) => {
2201
2284
  const N = v(E), re = i.value.some((b) => v(b) === v(E)), m = L !== void 0 ? L : !re;
2202
2285
  if (p.value && !m) {
2203
- p.value = !1, t != null && t.value && (i.value = t.value.filter((b) => v(b) !== N)), q(E, !1);
2286
+ p.value = !1, t != null && t.value && (i.value = t.value.filter((b) => v(b) !== N)), K(E, !1);
2204
2287
  return;
2205
2288
  }
2206
- 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 && te(m ? E : null), q(E, m));
2207
- }, Z = () => {
2208
- switch (U()) {
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));
2290
+ }, F = () => {
2291
+ switch (Y()) {
2209
2292
  case "none":
2210
2293
  case "partial":
2211
2294
  B();
@@ -2217,26 +2300,26 @@ function cs(n, e, o, t) {
2217
2300
  O();
2218
2301
  break;
2219
2302
  }
2220
- }, U = () => p.value ? "absoluteAll" : _.value ? "allVisible" : d.value > 0 ? "partial" : "none", B = () => {
2303
+ }, Y = () => p.value ? "absoluteAll" : g.value ? "allVisible" : u.value > 0 ? "partial" : "none", B = () => {
2221
2304
  const E = [], L = new Set(i.value.map((N) => v(N)));
2222
2305
  i.value.forEach((N) => {
2223
2306
  E.push(N);
2224
2307
  }), e.value.forEach((N) => {
2225
2308
  L.has(v(N)) || E.push(N);
2226
- }), i.value = E, p.value = !1, q();
2309
+ }), i.value = E, p.value = !1, K();
2227
2310
  }, R = () => {
2228
- p.value = !0, t != null && t.value ? i.value = [...t.value] : i.value = [...e.value], q(void 0, void 0, !0);
2311
+ p.value = !0, t != null && t.value ? i.value = [...t.value] : i.value = [...e.value], K(void 0, void 0, !0);
2229
2312
  }, O = () => {
2230
- i.value = [], p.value = !1, c.value = null, q();
2231
- }, te = (E) => {
2313
+ i.value = [], p.value = !1, c.value = null, K();
2314
+ }, ee = (E) => {
2232
2315
  const L = c.value;
2233
2316
  c.value = E, o("current-change", {
2234
2317
  currentRow: c.value,
2235
2318
  oldCurrentRow: L
2236
2319
  });
2237
- }, Q = () => [...i.value], J = (E) => {
2238
- i.value = [...E], p.value = !1, q();
2239
- }, q = (E, L, N = !1) => {
2320
+ }, G = () => [...i.value], te = (E) => {
2321
+ i.value = [...E], p.value = !1, K();
2322
+ }, K = (E, L, N = !1) => {
2240
2323
  const re = {
2241
2324
  selection: [...i.value],
2242
2325
  row: E,
@@ -2256,18 +2339,18 @@ function cs(n, e, o, t) {
2256
2339
  isRowSelected: f,
2257
2340
  isAllSelected: z,
2258
2341
  isIndeterminate: C,
2259
- isDoubleCheck: A,
2342
+ isDoubleCheck: Z,
2260
2343
  isFullSelection: p,
2261
2344
  toggleRowSelection: D,
2262
- toggleAllSelection: Z,
2345
+ toggleAllSelection: F,
2263
2346
  clearSelection: O,
2264
- setCurrentRow: te,
2265
- getSelectionRows: Q,
2266
- setSelectionRows: J,
2347
+ setCurrentRow: ee,
2348
+ getSelectionRows: G,
2349
+ setSelectionRows: te,
2267
2350
  selectAbsolutelyAll: R
2268
2351
  };
2269
2352
  }
2270
- function hs(n, e) {
2353
+ function vs(n, e) {
2271
2354
  if (!n)
2272
2355
  return String(e.value ?? "");
2273
2356
  try {
@@ -2277,38 +2360,38 @@ function hs(n, e) {
2277
2360
  return console.error("Error rendering table slot:", o), String(e.value ?? "");
2278
2361
  }
2279
2362
  }
2280
- const ps = (n, e, o = "asc") => {
2363
+ const ms = (n, e, o = "asc") => {
2281
2364
  if (n == null && e == null) return 0;
2282
2365
  if (n == null) return o === "asc" ? 1 : -1;
2283
2366
  if (e == null) return o === "asc" ? -1 : 1;
2284
2367
  if (n === e) return 0;
2285
2368
  let t = 0;
2286
2369
  const l = Number(n), i = Number(e);
2287
- 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, {
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, {
2288
2371
  numeric: !0,
2289
2372
  sensitivity: "base"
2290
2373
  }), o === "desc" ? -t : t;
2291
- }, 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, fs = (n, e, o) => {
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) => {
2292
2375
  n.sortable && o({
2293
2376
  prop: n.prop,
2294
2377
  direction: e
2295
2378
  });
2296
- }, i1 = (n, e) => {
2379
+ }, it = (n, e) => {
2297
2380
  const o = (e == null ? void 0 : e.prop) === n.prop, t = e == null ? void 0 : e.direction;
2298
2381
  return {
2299
2382
  asc: ["vt-th__sort-icon", o && t === "asc" && "vt-th__sortable-active"].filter(Boolean).join(" "),
2300
2383
  desc: ["vt-th__sort-icon", o && t === "desc" && "vt-th__sortable-active"].filter(Boolean).join(" ")
2301
2384
  };
2302
- }, vs = (n, e, o) => {
2385
+ }, ws = (n, e, o) => {
2303
2386
  if (!e) return [...n];
2304
2387
  const t = o.find((i) => i.prop === e.prop);
2305
2388
  if (!(t != null && t.sortable)) return [...n];
2306
- const l = t.sortMethod || ps;
2389
+ const l = t.sortMethod || ms;
2307
2390
  return [...n].sort((i, c) => {
2308
2391
  const p = i[t.prop], v = c[t.prop];
2309
2392
  return l(p, v, e.direction);
2310
2393
  });
2311
- }, a1 = (n) => {
2394
+ }, at = (n) => {
2312
2395
  if (!n) return !1;
2313
2396
  const e = n.getBoundingClientRect();
2314
2397
  if (e.width === 0 && e.height === 0) return !1;
@@ -2322,7 +2405,7 @@ const ps = (n, e, o = "asc") => {
2322
2405
  i = i.parentElement;
2323
2406
  }
2324
2407
  return !0;
2325
- }, ms = (n) => {
2408
+ }, gs = (n) => {
2326
2409
  const e = [];
2327
2410
  let o = n.parentElement;
2328
2411
  for (; o && o !== document.body; ) {
@@ -2330,7 +2413,7 @@ const ps = (n, e, o = "asc") => {
2330
2413
  (["scroll", "auto"].includes(l) || ["scroll", "auto"].includes(i) || o.scrollHeight > o.clientHeight || o.scrollWidth > o.clientWidth) && e.push(o), o = o.parentElement;
2331
2414
  }
2332
2415
  return e.push(window), e;
2333
- }, Cs = (n, e, o) => {
2416
+ }, _s = (n, e, o) => {
2334
2417
  let t = 0, l = 0;
2335
2418
  switch (o) {
2336
2419
  case "bottom":
@@ -2358,7 +2441,7 @@ const ps = (n, e, o = "asc") => {
2358
2441
  transformOrigin: "center top"
2359
2442
  };
2360
2443
  };
2361
- function m1(n, e, o = {}) {
2444
+ function mt(n, e, o = {}) {
2362
2445
  const {
2363
2446
  trigger: t = "click",
2364
2447
  placement: l = "bottom-start",
@@ -2367,69 +2450,69 @@ function m1(n, e, o = {}) {
2367
2450
  disabled: p = !1,
2368
2451
  hideOnClick: v = !0,
2369
2452
  onVisibleChange: f,
2370
- onScroll: d
2371
- } = o, _ = H(!1), C = H(!0), z = H(!1), A = H(null), D = H([]), Z = H({
2453
+ onScroll: u
2454
+ } = o, g = H(!1), C = H(!0), z = H(!1), Z = H(null), D = H([]), F = H({
2372
2455
  top: "0px",
2373
2456
  left: "0px",
2374
2457
  transformOrigin: "center top"
2375
- }), U = () => {
2458
+ }), Y = () => {
2376
2459
  if (!n.value) return;
2377
- const ee = a1(n.value);
2378
- C.value !== ee && (C.value = ee, !ee && _.value ? (z.value = !0, _.value = !1, f == null || f(!1)) : ee && z.value && !_.value && (z.value = !1, _.value = !0, B(), f == null || f(!0)));
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)));
2379
2462
  }, B = async () => {
2380
- if (await ve(), !n.value || !e.value) return;
2381
- const ee = n.value.getBoundingClientRect(), E = e.value.getBoundingClientRect(), L = Cs(ee, E, l);
2382
- Z.value = {
2463
+ if (await me(), !n.value || !e.value) return;
2464
+ const J = n.value.getBoundingClientRect(), E = e.value.getBoundingClientRect(), L = _s(J, E, l);
2465
+ F.value = {
2383
2466
  ...L,
2384
- minWidth: `${ee.width}px`
2467
+ minWidth: `${J.width}px`
2385
2468
  };
2386
2469
  }, R = () => {
2387
- (_.value || z.value) && (U(), _.value && B(), d == null || d());
2470
+ (g.value || z.value) && (Y(), g.value && B(), u == null || u());
2388
2471
  }, O = () => {
2389
- n.value && (D.value = ms(n.value), D.value.forEach((ee) => {
2390
- ee.addEventListener("scroll", R, { passive: !0 });
2472
+ n.value && (D.value = gs(n.value), D.value.forEach((J) => {
2473
+ J.addEventListener("scroll", R, { passive: !0 });
2391
2474
  }), window.addEventListener("resize", R));
2392
- }, te = () => {
2393
- D.value.forEach((ee) => {
2394
- ee.removeEventListener("scroll", R);
2475
+ }, ee = () => {
2476
+ D.value.forEach((J) => {
2477
+ J.removeEventListener("scroll", R);
2395
2478
  }), window.removeEventListener("resize", R), D.value = [];
2396
- }, Q = () => {
2397
- p || _.value || !n.value || !a1(n.value) || (A.value = window.setTimeout(
2479
+ }, G = () => {
2480
+ p || g.value || !n.value || !at(n.value) || (Z.value = window.setTimeout(
2398
2481
  async () => {
2399
- _.value = !0, C.value = !0, z.value = !1, await B(), O(), f == null || f(!0);
2482
+ g.value = !0, C.value = !0, z.value = !1, await B(), O(), f == null || f(!0);
2400
2483
  },
2401
2484
  t === "hover" ? i : 0
2402
2485
  ));
2403
- }, J = () => {
2404
- _.value && (A.value = window.setTimeout(
2486
+ }, te = () => {
2487
+ g.value && (Z.value = window.setTimeout(
2405
2488
  () => {
2406
- _.value = !1, z.value = !1, te(), f == null || f(!1);
2489
+ g.value = !1, z.value = !1, ee(), f == null || f(!1);
2407
2490
  },
2408
2491
  t === "hover" ? c : 0
2409
2492
  ));
2410
- }, q = () => {
2411
- p || (_.value ? J() : Q());
2493
+ }, K = () => {
2494
+ p || (g.value ? te() : G());
2412
2495
  };
2413
2496
  return Ie(() => {
2414
- te();
2497
+ ee();
2415
2498
  }), {
2416
2499
  // State
2417
- visible: _,
2500
+ visible: g,
2418
2501
  parentVisible: C,
2419
2502
  wasVisibleBeforeHiding: z,
2420
- dropdownPosition: Z,
2503
+ dropdownPosition: F,
2421
2504
  // Methods
2422
- show: Q,
2423
- hide: J,
2424
- toggle: q,
2505
+ show: G,
2506
+ hide: te,
2507
+ toggle: K,
2425
2508
  updatePosition: B,
2426
2509
  // Internal methods
2427
- checkParentVisibility: U,
2510
+ checkParentVisibility: Y,
2428
2511
  addScrollListeners: O,
2429
- removeScrollListeners: te
2512
+ removeScrollListeners: ee
2430
2513
  };
2431
2514
  }
2432
- const C1 = Symbol("dropdown-context"), w1 = /* @__PURE__ */ de({
2515
+ const Ct = Symbol("dropdown-context"), wt = /* @__PURE__ */ de({
2433
2516
  __name: "VDropdown",
2434
2517
  props: {
2435
2518
  trigger: { default: "hover" },
@@ -2444,7 +2527,7 @@ const C1 = Symbol("dropdown-context"), w1 = /* @__PURE__ */ de({
2444
2527
  },
2445
2528
  emits: ["visible-change", "click", "command"],
2446
2529
  setup(n, { expose: e, emit: o }) {
2447
- const t = n, l = o, i = H(), c = H(), p = H(), v = H(!1), f = H(!1), d = H(null), { visible: _, parentVisible: C, dropdownPosition: z, show: A, hide: D, toggle: Z } = m1(
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(
2448
2531
  c,
2449
2532
  p,
2450
2533
  {
@@ -2456,32 +2539,32 @@ const C1 = Symbol("dropdown-context"), w1 = /* @__PURE__ */ de({
2456
2539
  hideOnClick: t.hideOnClick,
2457
2540
  onVisibleChange: (L) => l("visible-change", L)
2458
2541
  }
2459
- ), U = () => {
2460
- d.value && (clearTimeout(d.value), d.value = null);
2542
+ ), Y = () => {
2543
+ u.value && (clearTimeout(u.value), u.value = null);
2461
2544
  }, B = () => {
2462
- U(), d.value = setTimeout(() => {
2545
+ Y(), u.value = setTimeout(() => {
2463
2546
  !v.value && !f.value && D();
2464
2547
  }, t.hideTimeout);
2465
2548
  };
2466
- e1(C1, {
2549
+ et(Ct, {
2467
2550
  handleCommand: (L) => {
2468
2551
  l("command", L), t.hideOnClick && D();
2469
2552
  },
2470
2553
  hideOnClick: t.hideOnClick
2471
2554
  });
2472
2555
  const O = (L) => {
2473
- t.disabled || (l("click", L), t.trigger === "click" && Z());
2474
- }, te = () => {
2475
- t.trigger === "hover" && (v.value = !0, U(), A());
2476
- }, Q = () => {
2556
+ t.disabled || (l("click", L), t.trigger === "click" && F());
2557
+ }, ee = () => {
2558
+ t.trigger === "hover" && (v.value = !0, Y(), Z());
2559
+ }, G = () => {
2477
2560
  t.trigger === "hover" && (v.value = !1, B());
2478
- }, J = () => {
2479
- t.trigger === "hover" && (f.value = !0, U());
2480
- }, q = () => {
2561
+ }, te = () => {
2562
+ t.trigger === "hover" && (f.value = !0, Y());
2563
+ }, K = () => {
2481
2564
  t.trigger === "hover" && (f.value = !1, B());
2482
- }, ee = (L) => {
2565
+ }, J = (L) => {
2483
2566
  var re, m;
2484
- if (!_.value) return;
2567
+ if (!g.value) return;
2485
2568
  const N = L.target;
2486
2569
  (re = i.value) != null && re.contains(N) || (m = p.value) != null && m.contains(N) || D();
2487
2570
  }, E = x(() => ({
@@ -2491,29 +2574,29 @@ const C1 = Symbol("dropdown-context"), w1 = /* @__PURE__ */ de({
2491
2574
  maxHeight: typeof t.maxHeight == "number" ? `${t.maxHeight}px` : `${t.maxHeight}px`
2492
2575
  }));
2493
2576
  return e({
2494
- show: A,
2577
+ show: Z,
2495
2578
  hide: D,
2496
- visible: _
2497
- }), ge(() => {
2498
- document.addEventListener("click", ee);
2579
+ visible: g
2580
+ }), _e(() => {
2581
+ document.addEventListener("click", J);
2499
2582
  }), Ie(() => {
2500
- document.removeEventListener("click", ee), U();
2583
+ document.removeEventListener("click", J), Y();
2501
2584
  }), (L, N) => (s(), a("div", {
2502
2585
  ref_key: "dropdownRef",
2503
2586
  ref: i,
2504
2587
  class: "vt-dropdown",
2505
2588
  onClick: O,
2506
- onMouseenter: te,
2507
- onMouseleave: Q
2589
+ onMouseenter: ee,
2590
+ onMouseleave: G
2508
2591
  }, [
2509
2592
  r("div", {
2510
2593
  ref_key: "triggerRef",
2511
2594
  ref: c,
2512
2595
  class: "vt-dropdown__trigger"
2513
2596
  }, [
2514
- Ce(L.$slots, "default")
2597
+ ve(L.$slots, "default")
2515
2598
  ], 512),
2516
- ne(_) && ne(C) ? (s(), ie(Je, {
2599
+ ne(g) && ne(C) ? (s(), ie(Je, {
2517
2600
  key: 0,
2518
2601
  to: "body"
2519
2602
  }, [
@@ -2522,12 +2605,12 @@ const C1 = Symbol("dropdown-context"), w1 = /* @__PURE__ */ de({
2522
2605
  ref: p,
2523
2606
  style: fe(E.value),
2524
2607
  class: "vt-dropdown-menu",
2525
- onMouseenter: J,
2526
- onMouseleave: q,
2527
- onClick: N[0] || (N[0] = me(() => {
2608
+ onMouseenter: te,
2609
+ onMouseleave: K,
2610
+ onClick: N[0] || (N[0] = Ce(() => {
2528
2611
  }, ["stop"]))
2529
2612
  }, [
2530
- Ce(L.$slots, "dropdown")
2613
+ ve(L.$slots, "dropdown")
2531
2614
  ], 36)
2532
2615
  ])) : j("", !0)
2533
2616
  ], 544));
@@ -2542,13 +2625,13 @@ const C1 = Symbol("dropdown-context"), w1 = /* @__PURE__ */ de({
2542
2625
  },
2543
2626
  emits: ["click"],
2544
2627
  setup(n, { emit: e }) {
2545
- const o = n, t = e, l = t1(C1);
2628
+ const o = n, t = e, l = tt(Ct);
2546
2629
  l || console.warn("VDropdownItem must be used within VDropdown");
2547
2630
  const i = (c) => {
2548
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)));
2549
2632
  };
2550
2633
  return (c, p) => (s(), a("li", {
2551
- class: Y(["vt-dropdown-item", {
2634
+ class: A(["vt-dropdown-item", {
2552
2635
  "is-disabled": c.disabled,
2553
2636
  "vt-dropdown-item--divided": c.divided
2554
2637
  }]),
@@ -2556,28 +2639,28 @@ const C1 = Symbol("dropdown-context"), w1 = /* @__PURE__ */ de({
2556
2639
  }, [
2557
2640
  c.icon ? (s(), a("i", {
2558
2641
  key: 0,
2559
- class: Y([c.icon, "vt-dropdown-item__icon"])
2642
+ class: A([c.icon, "vt-dropdown-item__icon"])
2560
2643
  }, null, 2)) : j("", !0),
2561
- Ce(c.$slots, "default")
2644
+ ve(c.$slots, "default")
2562
2645
  ], 2));
2563
2646
  }
2564
2647
  });
2565
- class ws {
2648
+ class ks {
2566
2649
  constructor() {
2567
2650
  this.modalStack = [], this.baseZIndex = 1e3;
2568
2651
  }
2569
2652
  open(e = {}) {
2570
2653
  const o = `modal-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, t = document.createElement("div");
2571
2654
  t.setAttribute("data-vt-modal", o), document.body.appendChild(t);
2572
- const l = H(!0), i = this.baseZIndex + this.modalStack.length * 10, c = b1({
2655
+ const l = H(!0), i = this.baseZIndex + this.modalStack.length * 10, c = bt({
2573
2656
  setup() {
2574
2657
  const v = () => {
2575
2658
  l.value = !1, setTimeout(() => {
2576
- ye.closeById(o);
2659
+ xe.closeById(o);
2577
2660
  }, 100);
2578
2661
  };
2579
2662
  return () => qe(
2580
- v1,
2663
+ vt,
2581
2664
  {
2582
2665
  modelValue: l.value,
2583
2666
  "onUpdate:modelValue": v,
@@ -2631,24 +2714,24 @@ class ws {
2631
2714
  recalculateZIndices() {
2632
2715
  }
2633
2716
  }
2634
- const ye = new ws(), gs = {
2717
+ const xe = new ks(), bs = {
2635
2718
  install(n) {
2636
- n.config.globalProperties.$modal = ye, n.config.globalProperties.$modalStack = {
2637
- closeAll: () => ye.closeAll(),
2638
- getCount: () => ye.getOpenModalsCount(),
2639
- closeById: (e) => ye.closeById(e)
2719
+ n.config.globalProperties.$modal = xe, n.config.globalProperties.$modalStack = {
2720
+ closeAll: () => xe.closeAll(),
2721
+ getCount: () => xe.getOpenModalsCount(),
2722
+ closeById: (e) => xe.closeById(e)
2640
2723
  };
2641
2724
  }
2642
- }, _s = { class: "vt-columns-selector-body" }, ks = { class: "vt-columns-selector" }, bs = { class: "vt-columns-selector__panel" }, ys = ["draggable", "onDragstart", "onDragover", "onDrop"], xs = {
2725
+ }, ys = { class: "vt-columns-selector-body" }, xs = { class: "vt-columns-selector" }, Ms = { class: "vt-columns-selector__panel" }, $s = ["draggable", "onDragstart", "onDragover", "onDrop"], Ls = {
2643
2726
  key: 0,
2644
2727
  class: "vt-columns-selector__panel-item-pinned"
2645
- }, Ms = { class: "vt-columns-selector__available" }, $s = ["onClick"], Ls = {
2728
+ }, Vs = { class: "vt-columns-selector__available" }, Ss = ["onClick"], Is = {
2646
2729
  key: 0,
2647
2730
  class: "vt-columns-selector__group-columns"
2648
- }, Vs = {
2731
+ }, Hs = {
2649
2732
  key: 0,
2650
2733
  class: "vt-columns-selector__pinned-note"
2651
- }, Ss = { class: "vt-modal__content-button" }, Is = /* @__PURE__ */ de({
2734
+ }, Bs = { class: "vt-modal__content-button" }, Es = /* @__PURE__ */ de({
2652
2735
  __name: "VTableColumnSelector",
2653
2736
  props: {
2654
2737
  columns: {},
@@ -2664,7 +2747,7 @@ const ye = new ws(), gs = {
2664
2747
  const y = b.columns.map((T) => T.prop), S = l.value.filter((T) => y.includes(T.prop));
2665
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 };
2666
2749
  }), m;
2667
- }), d = x(() => o.columnsSelector.filter((m) => m.name !== "removed")), _ = (m) => m.pinnedLeft || m.pinnedRight, C = (m) => !_(m), z = () => {
2750
+ }), u = x(() => o.columnsSelector.filter((m) => m.name !== "removed")), g = (m) => m.pinnedLeft || m.pinnedRight, C = (m) => !g(m), z = () => {
2668
2751
  const m = l.value;
2669
2752
  let b = -1;
2670
2753
  for (let S = 0; S < m.length; S++)
@@ -2679,7 +2762,7 @@ const ye = new ws(), gs = {
2679
2762
  minIndex: b + 1,
2680
2763
  maxIndex: y - 1
2681
2764
  };
2682
- }, A = (m) => {
2765
+ }, Z = (m) => {
2683
2766
  const b = z();
2684
2767
  return !(m < b.minIndex || m > b.maxIndex + 1);
2685
2768
  }, D = (m, b) => {
@@ -2689,13 +2772,13 @@ const ye = new ws(), gs = {
2689
2772
  return;
2690
2773
  }
2691
2774
  c.value = b, m.dataTransfer && (m.dataTransfer.effectAllowed = "move", m.dataTransfer.setData("text/plain", y.prop)), document.body.style.cursor = "grabbing";
2692
- }, Z = (m, b) => {
2775
+ }, F = (m, b) => {
2693
2776
  if (c.value === -1) return;
2694
2777
  m.preventDefault();
2695
2778
  const y = m.currentTarget.getBoundingClientRect(), S = m.clientY, T = y.top + y.height / 2;
2696
- let F = b, se = "before";
2697
- S < T ? (F = b, se = "before") : (F = b + 1, se = "after"), c.value < F && F--, A(F) ? (p.value = b, v.value = se, m.dataTransfer.dropEffect = "move") : (p.value = -1, m.dataTransfer.dropEffect = "none");
2698
- }, U = () => {
2779
+ let q = b, se = "before";
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 = () => {
2699
2782
  setTimeout(() => {
2700
2783
  c.value === -1 && (p.value = -1);
2701
2784
  }, 50);
@@ -2705,33 +2788,33 @@ const ye = new ws(), gs = {
2705
2788
  return;
2706
2789
  }
2707
2790
  const y = m.currentTarget.getBoundingClientRect(), S = m.clientY, T = y.top + y.height / 2;
2708
- let F = b;
2709
- if (S >= T && (F = b + 1), c.value < F && F--, !A(F) || F === c.value) {
2791
+ let q = b;
2792
+ if (S >= T && (q = b + 1), c.value < q && q--, !Z(q) || q === c.value) {
2710
2793
  O();
2711
2794
  return;
2712
2795
  }
2713
2796
  const se = [...l.value], [Le] = se.splice(c.value, 1);
2714
- se.splice(F, 0, Le), l.value = se, O();
2797
+ se.splice(q, 0, Le), l.value = se, O();
2715
2798
  }, R = () => {
2716
2799
  O();
2717
2800
  }, O = () => {
2718
2801
  c.value = -1, p.value = -1, v.value = "before", document.body.style.cursor = "";
2719
- }, te = (m) => {
2802
+ }, ee = (m) => {
2720
2803
  const b = ["vt-columns-selector__panel-item"];
2721
2804
  return c.value === m && b.push("vt-columns-selector__panel-item--dragging"), p.value === m && v.value === "before" && b.push("vt-columns-selector__panel-item--drop-before"), p.value === m && v.value === "after" && b.push("vt-columns-selector__panel-item--drop-after"), b;
2722
- }, Q = () => {
2805
+ }, G = () => {
2723
2806
  l.value = [...o.columns.map((m) => ({ ...m }))], o.columnsSelector.forEach((m) => {
2724
2807
  m.name !== "removed" && i.value.add(m.name);
2725
2808
  });
2726
- }, J = (m, b) => {
2809
+ }, te = (m, b) => {
2727
2810
  if (b)
2728
2811
  l.value.some((y) => y.prop === m.prop) || l.value.push({ ...m });
2729
2812
  else {
2730
- if (_(m))
2813
+ if (g(m))
2731
2814
  return;
2732
2815
  l.value = l.value.filter((y) => y.prop !== m.prop);
2733
2816
  }
2734
- }, q = (m, b) => {
2817
+ }, K = (m, b) => {
2735
2818
  if (b)
2736
2819
  m.columns.forEach((y) => {
2737
2820
  l.value.some((S) => S.prop === y.prop) || l.value.push({ ...y });
@@ -2739,54 +2822,54 @@ const ye = new ws(), gs = {
2739
2822
  else {
2740
2823
  const y = [];
2741
2824
  m.columns.forEach((S) => {
2742
- const T = l.value.find((F) => F.prop === S.prop);
2743
- T && !_(T) && y.push(T);
2825
+ const T = l.value.find((q) => q.prop === S.prop);
2826
+ T && !g(T) && y.push(T);
2744
2827
  }), l.value = l.value.filter(
2745
2828
  (S) => !y.some((T) => T.prop === S.prop)
2746
2829
  );
2747
2830
  }
2748
- }, ee = (m) => l.value.some((b) => b.prop === m.prop), E = (m) => {
2831
+ }, J = (m) => l.value.some((b) => b.prop === m.prop), E = (m) => {
2749
2832
  const b = l.value.find((y) => y.prop === m.prop);
2750
- return !b || !_(b);
2833
+ return !b || !g(b);
2751
2834
  }, L = (m) => {
2752
2835
  i.value.has(m) ? i.value.delete(m) : i.value.add(m);
2753
2836
  }, N = () => {
2754
- t("update-columns", [...l.value]), ye.close();
2837
+ t("update-columns", [...l.value]), xe.close();
2755
2838
  }, re = () => {
2756
- ye.close();
2839
+ xe.close();
2757
2840
  };
2758
- return ge(() => {
2759
- Q();
2760
- }), (m, b) => (s(), a("div", _s, [
2761
- r("div", ks, [
2762
- r("div", bs, [
2841
+ return _e(() => {
2842
+ G();
2843
+ }), (m, b) => (s(), a("div", ys, [
2844
+ r("div", xs, [
2845
+ r("div", Ms, [
2763
2846
  (s(!0), a(he, null, pe(l.value, (y, S) => (s(), a("div", {
2764
2847
  key: y.prop,
2765
- class: Y(te(S)),
2848
+ class: A(ee(S)),
2766
2849
  draggable: C(y),
2767
2850
  onDragstart: (T) => D(T, S),
2768
- onDragover: (T) => Z(T, S),
2769
- onDragleave: U,
2851
+ onDragover: (T) => F(T, S),
2852
+ onDragleave: Y,
2770
2853
  onDrop: (T) => B(T, S),
2771
2854
  onDragend: R
2772
2855
  }, [
2773
2856
  X(oe, {
2774
2857
  name: C(y) ? "columnsMove" : "freeze",
2775
- class: Y(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": C(y) }])
2858
+ class: A(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": C(y) }])
2776
2859
  }, null, 8, ["name", "class"]),
2777
2860
  X(Me, {
2778
2861
  label: y.label,
2779
2862
  checked: !0,
2780
- disabled: _(y),
2781
- onChange: (T) => J(y, T),
2782
- onClick: b[0] || (b[0] = me(() => {
2863
+ disabled: g(y),
2864
+ onChange: (T) => te(y, T),
2865
+ onClick: b[0] || (b[0] = Ce(() => {
2783
2866
  }, ["stop"]))
2784
2867
  }, null, 8, ["label", "disabled", "onChange"]),
2785
- _(y) ? (s(), a("span", xs, "pinned")) : j("", !0)
2786
- ], 42, ys))), 128))
2868
+ g(y) ? (s(), a("span", Ls, "pinned")) : j("", !0)
2869
+ ], 42, $s))), 128))
2787
2870
  ]),
2788
- r("div", Ms, [
2789
- (s(!0), a(he, null, pe(d.value, (y) => {
2871
+ r("div", Vs, [
2872
+ (s(!0), a(he, null, pe(u.value, (y) => {
2790
2873
  var S, T;
2791
2874
  return s(), a("div", {
2792
2875
  key: y.name,
@@ -2794,14 +2877,14 @@ const ye = new ws(), gs = {
2794
2877
  }, [
2795
2878
  r("div", {
2796
2879
  class: "vt-columns-selector__group-header",
2797
- onClick: (F) => L(y.name)
2880
+ onClick: (q) => L(y.name)
2798
2881
  }, [
2799
2882
  X(Me, {
2800
2883
  label: y.label,
2801
2884
  checked: ((S = f.value[y.name]) == null ? void 0 : S.checked) || !1,
2802
2885
  indeterminate: ((T = f.value[y.name]) == null ? void 0 : T.indeterminate) || !1,
2803
- onChange: (F) => q(y, F),
2804
- onClick: b[1] || (b[1] = me(() => {
2886
+ onChange: (q) => K(y, q),
2887
+ onClick: b[1] || (b[1] = Ce(() => {
2805
2888
  }, ["stop"]))
2806
2889
  }, null, 8, ["label", "checked", "indeterminate", "onChange"]),
2807
2890
  y.icon ? (s(), ie(oe, {
@@ -2809,29 +2892,29 @@ const ye = new ws(), gs = {
2809
2892
  name: y.icon,
2810
2893
  class: "vt-columns-selector__group-icon"
2811
2894
  }, null, 8, ["name"])) : j("", !0)
2812
- ], 8, $s),
2813
- i.value.has(y.name) ? (s(), a("div", Ls, [
2814
- (s(!0), a(he, null, pe(y.columns, (F) => (s(), a("div", {
2815
- key: F.prop,
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", {
2898
+ key: q.prop,
2816
2899
  class: "vt-columns-selector__group-column"
2817
2900
  }, [
2818
2901
  X(Me, {
2819
- label: F.label,
2820
- checked: ee(F),
2821
- disabled: !E(F),
2822
- onChange: (se) => J(F, se)
2902
+ label: q.label,
2903
+ checked: J(q),
2904
+ disabled: !E(q),
2905
+ onChange: (se) => te(q, se)
2823
2906
  }, null, 8, ["label", "checked", "disabled", "onChange"]),
2824
- E(F) ? j("", !0) : (s(), a("span", Vs, " (закріплена) "))
2907
+ E(q) ? j("", !0) : (s(), a("span", Hs, " (закріплена) "))
2825
2908
  ]))), 128))
2826
2909
  ])) : j("", !0)
2827
2910
  ]);
2828
2911
  }), 128))
2829
2912
  ])
2830
2913
  ]),
2831
- r("div", Ss, [
2914
+ r("div", Bs, [
2832
2915
  X(We, { onClick: re }, {
2833
2916
  default: we(() => b[2] || (b[2] = [
2834
- xe("Скасувати", -1)
2917
+ ge("Скасувати", -1)
2835
2918
  ])),
2836
2919
  _: 1,
2837
2920
  __: [2]
@@ -2841,7 +2924,7 @@ const ye = new ws(), gs = {
2841
2924
  onClick: N
2842
2925
  }, {
2843
2926
  default: we(() => b[3] || (b[3] = [
2844
- xe("Зберегти", -1)
2927
+ ge("Зберегти", -1)
2845
2928
  ])),
2846
2929
  _: 1,
2847
2930
  __: [3]
@@ -2849,7 +2932,7 @@ const ye = new ws(), gs = {
2849
2932
  ])
2850
2933
  ]));
2851
2934
  }
2852
- }), Hs = { class: "vt-table-header-actions" }, Bs = /* @__PURE__ */ de({
2935
+ }), Ts = { class: "vt-table-header-actions" }, js = /* @__PURE__ */ de({
2853
2936
  __name: "ColumnActions",
2854
2937
  props: {
2855
2938
  column: {},
@@ -2858,8 +2941,8 @@ const ye = new ws(), gs = {
2858
2941
  },
2859
2942
  emits: ["pin", "update-columns"],
2860
2943
  setup(n, { emit: e }) {
2861
- const o = n, t = e, l = () => !!(o.column.pinnedLeft || o.column.pinnedRight), i = (d) => {
2862
- switch (console.log("ColumnActions - Command received:", d, typeof d), String(d)) {
2944
+ const o = n, t = e, l = () => !!(o.column.pinnedLeft || o.column.pinnedRight), i = (u) => {
2945
+ switch (console.log("ColumnActions - Command received:", u, typeof u), String(u)) {
2863
2946
  case "pin":
2864
2947
  console.log("Executing pin command"), c();
2865
2948
  break;
@@ -2867,53 +2950,53 @@ const ye = new ws(), gs = {
2867
2950
  console.log("Executing columns command"), f();
2868
2951
  break;
2869
2952
  default:
2870
- console.warn("Unknown command:", d);
2953
+ console.warn("Unknown command:", u);
2871
2954
  }
2872
2955
  }, c = () => {
2873
- const d = l();
2874
- console.log("handlePin called, isPinned:", d), d ? t("pin", o.column, "none") : t("pin", o.column, "left");
2875
- }, p = (d) => ({
2956
+ const u = l();
2957
+ console.log("handlePin called, isPinned:", u), u ? t("pin", o.column, "none") : t("pin", o.column, "left");
2958
+ }, p = (u) => ({
2876
2959
  name: "removed",
2877
2960
  label: "Видалені колонки",
2878
2961
  order: 999,
2879
- columns: d
2880
- }), v = (d) => {
2962
+ columns: u
2963
+ }), v = (u) => {
2881
2964
  var D;
2882
- const _ = new Set(d.map((Z) => Z.prop)), C = /* @__PURE__ */ new Set();
2883
- (D = o.columnsSelector) == null || D.forEach((Z) => {
2884
- Z.columns.forEach((U) => C.add(U.prop));
2885
- }), o.allColumns.forEach((Z) => C.add(Z.prop));
2965
+ const g = new Set(u.map((F) => F.prop)), C = /* @__PURE__ */ new Set();
2966
+ (D = o.columnsSelector) == null || D.forEach((F) => {
2967
+ F.columns.forEach((Y) => C.add(Y.prop));
2968
+ }), o.allColumns.forEach((F) => C.add(F.prop));
2886
2969
  const z = [];
2887
- C.forEach((Z) => {
2888
- var U;
2889
- if (!_.has(Z)) {
2970
+ C.forEach((F) => {
2971
+ var Y;
2972
+ if (!g.has(F)) {
2890
2973
  let B;
2891
- (U = o.columnsSelector) == null || U.forEach((R) => {
2892
- const O = R.columns.find((te) => te.prop === Z);
2974
+ (Y = o.columnsSelector) == null || Y.forEach((R) => {
2975
+ const O = R.columns.find((ee) => ee.prop === F);
2893
2976
  O && (B = O);
2894
- }), B || (B = o.allColumns.find((R) => R.prop === Z)), B && z.push(B);
2977
+ }), B || (B = o.allColumns.find((R) => R.prop === F)), B && z.push(B);
2895
2978
  }
2896
2979
  });
2897
- const A = [...o.columnsSelector || []];
2898
- return z.length > 0 && A.push(p(z)), A;
2980
+ const Z = [...o.columnsSelector || []];
2981
+ return z.length > 0 && Z.push(p(z)), Z;
2899
2982
  }, f = () => {
2900
2983
  console.log("handleToggleVisibility called");
2901
- const d = v(o.allColumns);
2902
- ye.open({
2903
- component: Is,
2984
+ const u = v(o.allColumns);
2985
+ xe.open({
2986
+ component: Es,
2904
2987
  title: "Управління колонками таблиці",
2905
2988
  props: {
2906
2989
  columns: o.allColumns,
2907
- columnsSelector: d,
2908
- "onUpdate-columns": (_) => {
2909
- t("update-columns", _);
2990
+ columnsSelector: u,
2991
+ "onUpdate-columns": (g) => {
2992
+ t("update-columns", g);
2910
2993
  }
2911
2994
  },
2912
2995
  size: "large",
2913
2996
  closeOnBackdropClick: !1
2914
2997
  });
2915
2998
  };
2916
- return (d, _) => (s(), ie(w1, {
2999
+ return (u, g) => (s(), ie(wt, {
2917
3000
  trigger: "click",
2918
3001
  placement: "bottom-start",
2919
3002
  onCommand: i
@@ -2924,39 +3007,39 @@ const ye = new ws(), gs = {
2924
3007
  X(oe, {
2925
3008
  name: l() ? "unfreeze" : "freeze"
2926
3009
  }, null, 8, ["name"]),
2927
- r("div", null, G(l() ? "Розморозити" : "Заморозити"), 1)
3010
+ r("div", null, Q(l() ? "Розморозити" : "Заморозити"), 1)
2928
3011
  ]),
2929
3012
  _: 1
2930
3013
  }),
2931
3014
  X(Ue, { command: "columns" }, {
2932
3015
  default: we(() => [
2933
3016
  X(oe, { name: "columnInsert" }),
2934
- _[0] || (_[0] = r("div", null, "Колонки", -1))
3017
+ g[0] || (g[0] = r("div", null, "Колонки", -1))
2935
3018
  ]),
2936
3019
  _: 1,
2937
3020
  __: [0]
2938
3021
  })
2939
3022
  ]),
2940
3023
  default: we(() => [
2941
- r("div", Hs, [
3024
+ r("div", Ts, [
2942
3025
  X(oe, { name: "listBullet" })
2943
3026
  ])
2944
3027
  ]),
2945
3028
  _: 1
2946
3029
  }));
2947
3030
  }
2948
- }), Es = { class: "vt-table" }, Ts = { key: 0 }, js = { class: "vt-th__content" }, zs = { class: "vt-th__content" }, Os = { class: "vt-th__label" }, Rs = {
3031
+ }), zs = { class: "vt-table" }, Os = { key: 0 }, Rs = { class: "vt-th__content" }, Ds = { class: "vt-th__content" }, Ws = { class: "vt-th__label" }, Ps = {
2949
3032
  key: 0,
2950
3033
  class: "vt-th__sortable"
2951
- }, Ds = ["data-resizer", "onMousedown"], Ws = {
3034
+ }, As = ["data-resizer", "onMousedown"], Zs = {
2952
3035
  key: 0,
2953
3036
  class: "vt-table__empty-row"
2954
- }, Ps = ["colspan"], As = { class: "vt-table__empty-content" }, Zs = ["onClick"], Ns = { class: "vt-table__cell-content" }, Fs = { class: "vt-table__cell-content vt-table__cell-content--ellipsis" }, qs = { key: 1 }, Ks = ["data-resizer", "onMousedown"], Us = {
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 = {
2955
3038
  key: 1,
2956
3039
  class: "vt-table__summary"
2957
- }, Ys = { class: "vt-table__cell-content vt-table__cell-content--summary" }, Ke = 50, Xs = /* @__PURE__ */ de({
3040
+ }, Gs = { class: "vt-table__cell-content vt-table__cell-content--summary" }, Ke = 50, Js = /* @__PURE__ */ de({
2958
3041
  __name: "VTable",
2959
- props: /* @__PURE__ */ l1({
3042
+ props: /* @__PURE__ */ lt({
2960
3043
  data: {},
2961
3044
  maxHeight: { default: void 0 },
2962
3045
  rowKey: { default: "id" },
@@ -2980,27 +3063,27 @@ const ye = new ws(), gs = {
2980
3063
  },
2981
3064
  columnsModifiers: {}
2982
3065
  }),
2983
- 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"]),
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"]),
2984
3067
  setup(n, { expose: e, emit: o }) {
2985
- const t = n, l = o, i = y1(n, "columns"), c = H({}), p = H(), v = x1([]), f = H(t.defaultSort || null), d = x(() => vs(t.data || [], f.value, v)), _ = x(() => i.value !== void 0), C = x(() => t.data && t.data.length > 0), z = H(!1), A = H(0);
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);
2986
3069
  let D;
2987
- const Z = (g, V) => t.rowKey && g[t.rowKey] != null ? String(g[t.rowKey]) : String(V), U = () => {
2988
- _.value && i.value ? v.splice(0, v.length, ...i.value) : t.columns && t.columns.length > 0 && v.splice(0, v.length, ...t.columns);
3070
+ const F = (_, V) => t.rowKey && _[t.rowKey] != null ? String(_[t.rowKey]) : String(V), Y = () => {
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);
2989
3072
  };
2990
3073
  ce(
2991
3074
  () => i.value,
2992
- (g) => {
2993
- g && _.value && v.splice(0, v.length, ...g);
3075
+ (_) => {
3076
+ _ && g.value && v.splice(0, v.length, ..._);
2994
3077
  },
2995
3078
  { deep: !0 }
2996
3079
  ), ce(
2997
3080
  () => t.columns,
2998
- (g) => {
2999
- g && !_.value && v.splice(0, v.length, ...g);
3081
+ (_) => {
3082
+ _ && !g.value && v.splice(0, v.length, ..._);
3000
3083
  },
3001
3084
  { deep: !0 }
3002
- ), e1("vt-table-columns", v);
3003
- const { sortedColumns: B, getDefaultColumnWidth: R, getStickyOffset: O } = as(v), { getTableWrapperStyle: te, getColumnStyle: Q, getHeaderStyle: J, getFooterStyle: q } = us(t), { onMouseDown: ee } = ds(), E = x(() => t.allData || t.data), L = t.selectable ? cs(t, d, l, E) : null, N = () => ({
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 = () => ({
3004
3087
  width: `${Ke}px`,
3005
3088
  minWidth: `${Ke}px`,
3006
3089
  maxWidth: `${Ke}px`,
@@ -3008,162 +3091,162 @@ const ye = new ws(), gs = {
3008
3091
  position: "sticky",
3009
3092
  zIndex: 10
3010
3093
  }), re = () => {
3011
- const g = N();
3094
+ const _ = N();
3012
3095
  return t.maxHeight ? {
3013
- ...g,
3096
+ ..._,
3014
3097
  top: "0px",
3015
3098
  zIndex: 11
3016
- } : g;
3099
+ } : _;
3017
3100
  }, m = () => {
3018
- const g = N();
3101
+ const _ = N();
3019
3102
  return t.maxHeight ? {
3020
- ...g,
3103
+ ..._,
3021
3104
  bottom: "0px",
3022
3105
  zIndex: 11
3023
- } : g;
3106
+ } : _;
3024
3107
  }, b = () => {
3025
3108
  if (!p.value || z.value) return;
3026
- const g = p.value, V = g.scrollTop, W = g.scrollHeight, u = g.clientHeight, k = 30;
3109
+ const _ = p.value, V = _.scrollTop, W = _.scrollHeight, d = _.clientHeight, k = 30;
3027
3110
  D && clearTimeout(D), D = setTimeout(() => {
3028
- const P = V - A.value > 1, I = W - V - u <= k, ue = W - V - u <= 5;
3029
- A.value = V, P && (I || ue) && (z.value = !0, l("infinity-scroll"), 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(() => {
3030
3113
  z.value = !1;
3031
3114
  }, 1e3));
3032
3115
  }, 50);
3033
3116
  }, y = () => {
3034
3117
  z.value = !1;
3035
3118
  };
3036
- ge(() => {
3119
+ _e(() => {
3037
3120
  p.value && p.value.addEventListener("scroll", b);
3038
3121
  }), Ie(() => {
3039
3122
  D && clearTimeout(D), p.value && p.value.removeEventListener("scroll", b);
3040
3123
  });
3041
- const S = (g, V) => {
3042
- fs(g, V, (W) => {
3043
- var u, k;
3044
- ((u = f.value) == null ? void 0 : u.prop) === g.prop && f.value.direction === V ? f.value = null : f.value = W, l("sort-change", {
3045
- column: g,
3124
+ const S = (_, V) => {
3125
+ Cs(_, V, (W) => {
3126
+ var d, k;
3127
+ ((d = f.value) == null ? void 0 : d.prop) === _.prop && f.value.direction === V ? f.value = null : f.value = W, l("sort-change", {
3128
+ column: _,
3046
3129
  direction: ((k = f.value) == null ? void 0 : k.direction) || null,
3047
- prop: g.prop,
3048
- sortedData: d.value
3130
+ prop: _.prop,
3131
+ sortedData: u.value
3049
3132
  });
3050
3133
  });
3051
- }, T = (g, V) => {
3134
+ }, T = (_, V) => {
3052
3135
  const W = {
3053
3136
  pinnedLeft: V === "left",
3054
3137
  pinnedRight: V === "right"
3055
3138
  };
3056
- se(g.prop, W), l("column-pin", { column: { ...g, ...W }, position: V });
3057
- }, F = (g) => {
3058
- v.splice(0, v.length, ...g), _.value && (i.value = [...g]), l("columns-change", [...g]);
3059
- }, se = (g, V) => {
3060
- const W = v.findIndex((u) => u.prop === g);
3139
+ se(_.prop, W), l("column-pin", { column: { ..._, ...W }, position: V });
3140
+ }, q = (_) => {
3141
+ v.splice(0, v.length, ..._), g.value && (i.value = [..._]), l("columns-change", [..._]);
3142
+ }, se = (_, V) => {
3143
+ const W = v.findIndex((d) => d.prop === _);
3061
3144
  if (W !== -1) {
3062
- if (Object.assign(v[W], V), _.value && i.value) {
3063
- const u = i.value.findIndex((k) => k.prop === g);
3064
- if (u !== -1) {
3145
+ if (Object.assign(v[W], V), g.value && i.value) {
3146
+ const d = i.value.findIndex((k) => k.prop === _);
3147
+ if (d !== -1) {
3065
3148
  const k = [...i.value];
3066
- k[u] = { ...k[u], ...V }, i.value = k;
3149
+ k[d] = { ...k[d], ...V }, i.value = k;
3067
3150
  }
3068
3151
  }
3069
3152
  l("columns-change", [...v]);
3070
3153
  }
3071
- }, Le = (g, V, W) => {
3072
- l("row-click", { row: g, column: V, event: W }), t.highlightCurrentRow && L && L.setCurrentRow(g);
3073
- }, ze = (g, V, W) => {
3074
- W.stopPropagation(), L && L.toggleRowSelection(V, g);
3075
- }, Oe = (g, V) => {
3154
+ }, Le = (_, V, W) => {
3155
+ l("row-click", { row: _, column: V, event: W }), t.highlightCurrentRow && L && L.setCurrentRow(_);
3156
+ }, ze = (_, V, W) => {
3157
+ W.stopPropagation(), L && L.toggleRowSelection(V, _);
3158
+ }, Oe = (_, V) => {
3076
3159
  V.stopPropagation(), L && L.toggleAllSelection();
3077
- }, He = (g, V) => {
3078
- g && (c.value[V] = g);
3079
- }, Ve = (g, V) => {
3160
+ }, He = (_, V) => {
3161
+ _ && (c.value[V] = _);
3162
+ }, Ve = (_, V) => {
3080
3163
  const W = V.width || R();
3081
- ee(g, V, R, (u) => {
3082
- se(V.prop, { width: u }), l("column-resize", {
3083
- column: { ...V, width: u },
3084
- width: u,
3164
+ J(_, V, R, (d) => {
3165
+ se(V.prop, { width: d }), l("column-resize", {
3166
+ column: { ...V, width: d },
3167
+ width: d,
3085
3168
  oldWidth: W
3086
3169
  });
3087
3170
  });
3088
- }, Be = (g, V) => Q(g, V, O, R), Re = (g, V) => J(g, V, O, R), Ee = (g, V) => q(g, V, O, R), h = (g, V) => {
3171
+ }, Be = (_, V) => G(_, V, O, R), Re = (_, V) => te(_, V, O, R), Ee = (_, V) => K(_, V, O, R), h = (_, V) => {
3089
3172
  if (!V || !V.prop) return "";
3090
- const W = g[V.prop];
3173
+ const W = _[V.prop];
3091
3174
  return W == null ? "" : String(W);
3092
3175
  }, M = x(() => {
3093
3176
  if (!t.showSummary || !C.value) return {};
3094
- const g = v;
3177
+ const _ = v;
3095
3178
  if (typeof t.summaryMethod == "function") {
3096
- const V = t.summaryMethod({ columns: g, data: d.value });
3097
- return g.reduce(
3098
- (W, u, k) => (W[u.prop] = V[k], W),
3179
+ const V = t.summaryMethod({ columns: _, data: u.value });
3180
+ return _.reduce(
3181
+ (W, d, k) => (W[d.prop] = V[k], W),
3099
3182
  {}
3100
3183
  );
3101
3184
  }
3102
- return g.reduce(
3185
+ return _.reduce(
3103
3186
  (V, W) => {
3104
- const u = d.value.map((k) => k[W.prop]);
3105
- return V[W.prop] = u.every((k) => typeof k == "number") ? u.reduce((k, K) => k + K, 0) : "", V;
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;
3106
3189
  },
3107
3190
  {}
3108
3191
  );
3109
- }), $ = x(() => t.showSummary && C.value), ae = (g, V) => {
3110
- L && L.toggleRowSelection(g, V);
3111
- }, _e = () => {
3112
- L && L.toggleAllSelection();
3192
+ }), $ = x(() => t.showSummary && C.value), ae = (_, V) => {
3193
+ L && L.toggleRowSelection(_, V);
3113
3194
  }, ke = () => {
3195
+ L && L.toggleAllSelection();
3196
+ }, be = () => {
3114
3197
  L && L.selectAbsolutelyAll();
3115
3198
  }, Te = () => {
3116
3199
  L && L.clearSelection();
3117
- }, De = () => L ? L.getSelectionRows() : [], Ze = (g) => {
3118
- L && L.setSelectionRows(g);
3119
- }, Se = (g, V) => {
3200
+ }, De = () => L ? L.getSelectionRows() : [], Ze = (_) => {
3201
+ L && L.setSelectionRows(_);
3202
+ }, Se = (_, V) => {
3120
3203
  if (!t.rowHighlight) return [];
3121
3204
  try {
3122
- const W = t.rowHighlight(g, V);
3205
+ const W = t.rowHighlight(_, V);
3123
3206
  if (!W) return [];
3124
- const u = [];
3125
- return (W.type !== "custom" || !W.className) && u.push(`vt-table__row--highlight-${W.type}`), W.className && u.push(W.className), u;
3207
+ const d = [];
3208
+ return (W.type !== "custom" || !W.className) && d.push(`vt-table__row--highlight-${W.type}`), W.className && d.push(W.className), d;
3126
3209
  } catch (W) {
3127
3210
  return console.warn("Помилка у функції підсвічування рядків:", W), [];
3128
3211
  }
3129
3212
  };
3130
- return ge(() => {
3131
- U();
3213
+ return _e(() => {
3214
+ Y();
3132
3215
  }), e({
3133
3216
  toggleRowSelection: ae,
3134
- toggleAllSelection: _e,
3135
- selectAbsolutelyAll: ke,
3217
+ toggleAllSelection: ke,
3218
+ selectAbsolutelyAll: be,
3136
3219
  clearSelection: Te,
3137
3220
  getSelectionRows: De,
3138
3221
  setSelectionRows: Ze,
3139
3222
  resetInfinityScroll: y
3140
- }), (g, V) => {
3141
- var u, k, K, P;
3223
+ }), (_, V) => {
3224
+ var d, k, U, P;
3142
3225
  const W = Ge("tooltip");
3143
3226
  return s(), a("div", {
3144
3227
  ref_key: "tableWrapperRef",
3145
3228
  ref: p,
3146
- style: fe(ne(te)()),
3229
+ style: fe(ne(ee)()),
3147
3230
  class: "vt-table-wrapper",
3148
3231
  onScroll: b
3149
3232
  }, [
3150
- Ce(g.$slots, "default"),
3151
- r("table", Es, [
3152
- t.hideHeader ? j("", !0) : (s(), a("thead", Ts, [
3233
+ ve(_.$slots, "default"),
3234
+ r("table", zs, [
3235
+ t.hideHeader ? j("", !0) : (s(), a("thead", Os, [
3153
3236
  r("tr", null, [
3154
3237
  t.selectable ? (s(), a("th", {
3155
3238
  key: 0,
3156
- class: Y([{
3239
+ class: A([{
3157
3240
  "vt-table__th--sticky": t.maxHeight,
3158
3241
  "vt-table__th--pinned-left": !0
3159
3242
  }, "vt-table__th vt-table__th--selection"]),
3160
3243
  style: fe(re())
3161
3244
  }, [
3162
- r("div", js, [
3245
+ r("div", Rs, [
3163
3246
  X(Me, {
3164
- checked: (u = ne(L)) == null ? void 0 : u.isAllSelected.value,
3247
+ checked: (d = ne(L)) == null ? void 0 : d.isAllSelected.value,
3165
3248
  indeterminate: (k = ne(L)) == null ? void 0 : k.isIndeterminate.value,
3166
- "is-double": (P = (K = ne(L)) == null ? void 0 : K.isDoubleCheck) == null ? void 0 : P.value,
3249
+ "is-double": (P = (U = ne(L)) == null ? void 0 : U.isDoubleCheck) == null ? void 0 : P.value,
3167
3250
  onChange: Oe
3168
3251
  }, null, 8, ["checked", "indeterminate", "is-double"])
3169
3252
  ])
@@ -3171,8 +3254,8 @@ const ye = new ws(), gs = {
3171
3254
  (s(!0), a(he, null, pe(ne(B), (I, ue) => (s(), a("th", {
3172
3255
  key: I.prop,
3173
3256
  ref_for: !0,
3174
- ref: (be) => He(be, I.prop),
3175
- class: Y([
3257
+ ref: (ye) => He(ye, I.prop),
3258
+ class: A([
3176
3259
  "vt-table__th",
3177
3260
  {
3178
3261
  "vt-table__th--sticky": t.maxHeight,
@@ -3183,47 +3266,47 @@ const ye = new ws(), gs = {
3183
3266
  ]),
3184
3267
  style: fe(Re(I, ue))
3185
3268
  }, [
3186
- r("div", zs, [
3187
- r("div", Os, G(I.label), 1),
3188
- I.sortable ? (s(), a("div", Rs, [
3269
+ r("div", Ds, [
3270
+ r("div", Ws, Q(I.label), 1),
3271
+ I.sortable ? (s(), a("div", Ps, [
3189
3272
  X(oe, {
3190
- class: Y(ne(i1)(I, f.value).asc),
3273
+ class: A(ne(it)(I, f.value).asc),
3191
3274
  name: "arrowTop",
3192
- onClick: me((be) => S(I, "asc"), ["stop"])
3275
+ onClick: Ce((ye) => S(I, "asc"), ["stop"])
3193
3276
  }, null, 8, ["class", "onClick"]),
3194
3277
  X(oe, {
3195
- class: Y(ne(i1)(I, f.value).desc),
3278
+ class: A(ne(it)(I, f.value).desc),
3196
3279
  name: "arrowDown",
3197
- onClick: me((be) => S(I, "desc"), ["stop"])
3280
+ onClick: Ce((ye) => S(I, "desc"), ["stop"])
3198
3281
  }, null, 8, ["class", "onClick"])
3199
3282
  ])) : j("", !0),
3200
- I.actionColumn ? (s(), ie(Bs, {
3283
+ I.actionColumn ? (s(), ie(js, {
3201
3284
  key: 1,
3202
3285
  "all-columns": ne(B),
3203
3286
  column: I,
3204
3287
  columnsSelector: t.columnsSelector,
3205
3288
  onPin: T,
3206
- onUpdateColumns: F
3289
+ onUpdateColumns: q
3207
3290
  }, null, 8, ["all-columns", "column", "columnsSelector"])) : j("", !0)
3208
3291
  ]),
3209
3292
  r("div", {
3210
3293
  "data-resizer": I.prop,
3211
3294
  class: "vt-table__resizer",
3212
- onMousedown: (be) => Ve(be, I)
3213
- }, null, 40, Ds)
3295
+ onMousedown: (ye) => Ve(ye, I)
3296
+ }, null, 40, As)
3214
3297
  ], 6))), 128))
3215
3298
  ])
3216
3299
  ])),
3217
3300
  r("tbody", null, [
3218
- C.value ? (s(!0), a(he, { key: 1 }, pe(d.value, (I, ue) => {
3219
- var be, n1, o1;
3301
+ C.value ? (s(!0), a(he, { key: 1 }, pe(u.value, (I, ue) => {
3302
+ var ye, nt, ot;
3220
3303
  return s(), a("tr", {
3221
- key: Z(I, ue),
3222
- class: Y([
3304
+ key: F(I, ue),
3305
+ class: A([
3223
3306
  "vt-table__row",
3224
3307
  {
3225
- "vt-table__row--selected": (be = ne(L)) == null ? void 0 : be.isRowSelected(I),
3226
- "vt-table__row--current": ((n1 = ne(L)) == null ? void 0 : n1.currentRow.value) === I,
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,
3227
3310
  "vt-table__row--clickable": t.selectOnClickRow || t.highlightCurrentRow
3228
3311
  },
3229
3312
  ...Se(I, ue)
@@ -3232,63 +3315,63 @@ const ye = new ws(), gs = {
3232
3315
  }, [
3233
3316
  t.selectable ? (s(), a("td", {
3234
3317
  key: 0,
3235
- class: Y([{
3318
+ class: A([{
3236
3319
  "vt-table__td--pinned-left": !0
3237
3320
  }, "vt-table__td vt-table__td--selection"]),
3238
3321
  style: fe(N())
3239
3322
  }, [
3240
- r("div", Ns, [
3323
+ r("div", Ks, [
3241
3324
  X(Me, {
3242
- checked: (o1 = ne(L)) == null ? void 0 : o1.isRowSelected(I),
3243
- onChange: (le, Ne) => ze(le, I, Ne)
3325
+ checked: (ot = ne(L)) == null ? void 0 : ot.isRowSelected(I),
3326
+ onChange: (le, Fe) => ze(le, I, Fe)
3244
3327
  }, null, 8, ["checked", "onChange"])
3245
3328
  ])
3246
3329
  ], 4)) : j("", !0),
3247
- (s(!0), a(he, null, pe(ne(B), (le, Ne) => (s(), a("td", {
3248
- key: `${Z(I, ue)}-${le.prop}`,
3330
+ (s(!0), a(he, null, pe(ne(B), (le, Fe) => (s(), a("td", {
3331
+ key: `${F(I, ue)}-${le.prop}`,
3249
3332
  ref_for: !0,
3250
- ref: (Fe) => He(Fe, le.prop),
3251
- class: Y([
3333
+ ref: (Ne) => He(Ne, le.prop),
3334
+ class: A([
3252
3335
  "vt-table__td",
3253
3336
  {
3254
3337
  "vt-table__td--pinned-left": le.pinnedLeft,
3255
3338
  "vt-table__td--pinned-right": le.pinnedRight
3256
3339
  }
3257
3340
  ]),
3258
- style: fe(Be(le, Ne))
3341
+ style: fe(Be(le, Fe))
3259
3342
  }, [
3260
- Ae((s(), a("div", Fs, [
3261
- le.renderSlot ? (s(), ie(Xe(() => ne(hs)(le.renderSlot, { row: I, column: le, value: I[le.prop], index: ue })), { key: 0 })) : (s(), a("span", qs, G(I[le.prop]), 1))
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))
3262
3345
  ])), [
3263
3346
  [W, le.showOverflowTooltip ? h(I, le) : null]
3264
3347
  ]),
3265
3348
  r("div", {
3266
3349
  "data-resizer": le.prop,
3267
3350
  class: "vt-table__resizer",
3268
- onMousedown: (Fe) => Ve(Fe, le)
3269
- }, null, 40, Ks)
3351
+ onMousedown: (Ne) => Ve(Ne, le)
3352
+ }, null, 40, Xs)
3270
3353
  ], 6))), 128))
3271
- ], 10, Zs);
3272
- }), 128)) : (s(), a("tr", Ws, [
3354
+ ], 10, qs);
3355
+ }), 128)) : (s(), a("tr", Zs, [
3273
3356
  r("td", {
3274
3357
  colspan: ne(B).length + (t.selectable ? 1 : 0),
3275
3358
  class: "vt-table__empty-cell"
3276
3359
  }, [
3277
- r("div", As, [
3360
+ r("div", Ns, [
3278
3361
  X(oe, {
3279
3362
  class: "vt-table__empty-icon",
3280
3363
  name: "empty"
3281
3364
  }),
3282
3365
  V[0] || (V[0] = r("span", { class: "vt-table__empty-text" }, "Немає даних!", -1))
3283
3366
  ])
3284
- ], 8, Ps)
3367
+ ], 8, Fs)
3285
3368
  ]))
3286
3369
  ]),
3287
- $.value ? (s(), a("tfoot", Us, [
3370
+ $.value ? (s(), a("tfoot", Qs, [
3288
3371
  r("tr", null, [
3289
3372
  t.selectable ? (s(), a("td", {
3290
3373
  key: 0,
3291
- class: Y([{
3374
+ class: A([{
3292
3375
  "vt-table__td--pinned-left": !0
3293
3376
  }, "vt-table__td"]),
3294
3377
  style: fe(m())
@@ -3297,7 +3380,7 @@ const ye = new ws(), gs = {
3297
3380
  ]), 4)) : j("", !0),
3298
3381
  (s(!0), a(he, null, pe(ne(B), (I, ue) => (s(), a("td", {
3299
3382
  key: I.prop,
3300
- class: Y([
3383
+ class: A([
3301
3384
  "vt-table__td",
3302
3385
  {
3303
3386
  "vt-table__td--pinned-left": I.pinnedLeft,
@@ -3306,7 +3389,7 @@ const ye = new ws(), gs = {
3306
3389
  ]),
3307
3390
  style: fe(Ee(I, ue))
3308
3391
  }, [
3309
- r("div", Ys, G(M.value[I.prop]), 1)
3392
+ r("div", Gs, Q(M.value[I.prop]), 1)
3310
3393
  ], 6))), 128))
3311
3394
  ])
3312
3395
  ])) : j("", !0)
@@ -3314,7 +3397,7 @@ const ye = new ws(), gs = {
3314
3397
  ], 36);
3315
3398
  };
3316
3399
  }
3317
- }), Qs = /* @__PURE__ */ de({
3400
+ }), ei = /* @__PURE__ */ de({
3318
3401
  __name: "VTableColumn",
3319
3402
  props: {
3320
3403
  prop: {},
@@ -3332,7 +3415,7 @@ const ye = new ws(), gs = {
3332
3415
  sortMethod: {}
3333
3416
  },
3334
3417
  setup(n) {
3335
- const e = n, o = Qe(), t = t1("vt-table-columns");
3418
+ const e = n, o = Qe(), t = tt("vt-table-columns");
3336
3419
  t || console.error(
3337
3420
  "VTableColumn: не знайдено контекст таблиці. Переконайтеся, що компонент використовується всередині VTable."
3338
3421
  );
@@ -3352,7 +3435,7 @@ const ye = new ws(), gs = {
3352
3435
  renderSlot: o[e.prop] ?? o.default ?? o.slot
3353
3436
  });
3354
3437
  let i = -1;
3355
- return ge(() => {
3438
+ return _e(() => {
3356
3439
  if (t) {
3357
3440
  const c = l();
3358
3441
  t.push(c), i = t.length - 1;
@@ -3391,28 +3474,28 @@ const ye = new ws(), gs = {
3391
3474
  }
3392
3475
  }), (c, p) => null;
3393
3476
  }
3394
- }), Gs = ["for"], Js = {
3477
+ }), ti = ["for"], ni = {
3395
3478
  key: 0,
3396
3479
  class: "vt-input__required"
3397
- }, ei = { class: "vt-input__container" }, ti = {
3480
+ }, oi = { class: "vt-input__container" }, li = {
3398
3481
  key: 0,
3399
3482
  class: "vt-input__prefix"
3400
- }, ni = ["value", "placeholder", "disabled", "rows", "cols", "maxlength", "minlength", "required", "name", "id", "tabindex", "autocomplete"], oi = ["type", "value", "placeholder", "disabled", "maxlength", "minlength", "min", "max", "step", "required", "pattern", "name", "id", "tabindex", "autocomplete"], li = {
3483
+ }, ri = ["value", "placeholder", "disabled", "rows", "cols", "maxlength", "minlength", "required", "name", "id", "tabindex", "autocomplete"], si = ["type", "value", "placeholder", "disabled", "maxlength", "minlength", "min", "max", "step", "required", "pattern", "name", "id", "tabindex", "autocomplete"], ii = {
3401
3484
  key: 3,
3402
3485
  class: "vt-input__suffix"
3403
- }, ri = {
3486
+ }, ai = {
3404
3487
  key: 1,
3405
3488
  class: "vt-input__help"
3406
- }, si = {
3489
+ }, ui = {
3407
3490
  key: 0,
3408
3491
  class: "vt-input__error"
3409
- }, ii = {
3492
+ }, di = {
3410
3493
  key: 1,
3411
3494
  class: "vt-input__helper"
3412
- }, ai = {
3495
+ }, ci = {
3413
3496
  key: 2,
3414
3497
  class: "vt-input__errors"
3415
- }, g1 = /* @__PURE__ */ de({
3498
+ }, gt = /* @__PURE__ */ de({
3416
3499
  __name: "VInput",
3417
3500
  props: {
3418
3501
  modelValue: {},
@@ -3460,7 +3543,7 @@ const ye = new ws(), gs = {
3460
3543
  },
3461
3544
  emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "validation", "keydown", "keyup", "keypress", "click"],
3462
3545
  setup(n, { expose: e, emit: o }) {
3463
- const t = n, l = o, i = H(), c = H(), p = H(!1), v = H(!1), f = H(), d = H([]), _ = H(!0), C = H(!1), z = {
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 = {
3464
3547
  email: (h) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h),
3465
3548
  url: (h) => {
3466
3549
  try {
@@ -3483,10 +3566,10 @@ const ye = new ws(), gs = {
3483
3566
  },
3484
3567
  pattern: (h, M) => new RegExp(M).test(h),
3485
3568
  custom: (h, M) => M(h)
3486
- }, A = (h) => {
3569
+ }, Z = (h) => {
3487
3570
  const M = [], $ = String(h || "");
3488
3571
  if (t.required && !z.required(h) && M.push(t.requiredMessage || "Це поле є обов'язковим"), !$ && !t.required) {
3489
- d.value = M, _.value = M.length === 0;
3572
+ u.value = M, g.value = M.length === 0;
3490
3573
  return;
3491
3574
  }
3492
3575
  switch (t.type) {
@@ -3500,8 +3583,8 @@ const ye = new ws(), gs = {
3500
3583
  $ && !z.number($) && M.push(t.numberMessage || "Введіть коректне число");
3501
3584
  break;
3502
3585
  }
3503
- 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 || "Значення не проходить валідацію"), d.value = M, _.value = M.length === 0, l("validation", { isValid: _.value, errors: M });
3504
- }, D = x(() => t.type === "textarea"), Z = x(() => {
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(() => {
3505
3588
  if (t.type === "password") return null;
3506
3589
  switch (t.type) {
3507
3590
  case "email":
@@ -3511,8 +3594,8 @@ const ye = new ws(), gs = {
3511
3594
  default:
3512
3595
  return null;
3513
3596
  }
3514
- }), U = x(() => {
3515
- if (t.prefixIcon || Z.value) return null;
3597
+ }), Y = x(() => {
3598
+ if (t.prefixIcon || F.value) return null;
3516
3599
  switch (t.status) {
3517
3600
  case "error":
3518
3601
  return "alertCircle";
@@ -3521,13 +3604,13 @@ const ye = new ws(), gs = {
3521
3604
  case "success":
3522
3605
  return "checkCircle";
3523
3606
  default:
3524
- return _.value ? null : "alertCircle";
3607
+ return g.value ? null : "alertCircle";
3525
3608
  }
3526
- }), B = x(() => !!t.prefixIcon || !!Z.value || !!U.value), R = x(() => t.prefixIcon || Z.value || U.value), O = x(() => {
3527
- const h = "vt-input__icon", M = t.status !== "default" ? t.status : _.value ? "default" : "error";
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";
3528
3611
  if (t.prefixIcon)
3529
3612
  return h;
3530
- if (U.value)
3613
+ if (Y.value)
3531
3614
  switch (M) {
3532
3615
  case "error":
3533
3616
  return `${h} vt-input__icon--error`;
@@ -3539,55 +3622,55 @@ const ye = new ws(), gs = {
3539
3622
  return h;
3540
3623
  }
3541
3624
  return h;
3542
- }), te = x(() => ["email", "url", "password"].includes(t.type) && t.suffixIcon ? t.clearable || t.showPassword : !!t.suffixIcon || t.clearable || t.showPassword), Q = x(() => ["email", "url", "password"].includes(t.type) ? null : t.suffixIcon), J = x(
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(
3543
3626
  () => t.clearable && !t.disabled && t.modelValue && String(t.modelValue).length > 0
3544
- ), q = x(() => t.status !== "default" ? t.status : _.value ? "default" : "error"), ee = x(() => [
3627
+ ), K = x(() => t.status !== "default" ? t.status : g.value ? "default" : "error"), J = x(() => [
3545
3628
  "vt-input",
3546
3629
  t.size ? `vt-input--${t.size}` : "vt-input--medium",
3547
- `vt-input--${q.value}`,
3630
+ `vt-input--${K.value}`,
3548
3631
  {
3549
3632
  "vt-input--disabled": t.disabled,
3550
3633
  "vt-input--focused": p.value,
3551
3634
  "vt-input--textarea": D.value,
3552
3635
  "vt-input--has-prefix": B.value,
3553
- "vt-input--has-suffix": te.value,
3554
- "vt-input--invalid": !_.value
3636
+ "vt-input--has-suffix": ee.value,
3637
+ "vt-input--invalid": !g.value
3555
3638
  }
3556
- ]), E = x(() => t.type === "password" ? v.value ? "text" : "password" : t.type === "textarea" ? "text" : t.type), L = x(() => t.errorMessage ? t.errorMessage : d.value.length > 0 ? d.value[0] : ""), N = x(() => t.autosize && typeof t.autosize == "object" && t.autosize.maxRows ? "none" : t.resize), re = (h) => {
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) => {
3557
3640
  let $ = h.target.value;
3558
3641
  if (t.type === "number" && $ !== "") {
3559
3642
  const ae = Number($);
3560
3643
  isNaN(ae) || ($ = ae);
3561
3644
  }
3562
- l("update:modelValue", $), l("input", h), t.validateOnInput && A($), D.value && t.autosize && !C.value && ve(() => F());
3645
+ l("update:modelValue", $), l("input", h), t.validateOnInput && Z($), D.value && t.autosize && !C.value && me(() => q());
3563
3646
  }, m = (h) => {
3564
3647
  if (l("change", h), !t.validateOnInput) {
3565
3648
  const M = h.target;
3566
- A(M.value);
3649
+ Z(M.value);
3567
3650
  }
3568
3651
  }, b = (h) => {
3569
3652
  p.value = !0, l("focus", h);
3570
3653
  }, y = (h) => {
3571
3654
  if (p.value = !1, l("blur", h), t.validateOnBlur) {
3572
3655
  const M = h.target;
3573
- A(M.value);
3656
+ Z(M.value);
3574
3657
  }
3575
3658
  }, S = () => {
3576
3659
  var h;
3577
- l("update:modelValue", ""), l("clear"), (h = i.value) == null || h.focus(), d.value = [], _.value = !0, l("validation", { isValid: !0, errors: [] });
3660
+ l("update:modelValue", ""), l("clear"), (h = i.value) == null || h.focus(), u.value = [], g.value = !0, l("validation", { isValid: !0, errors: [] });
3578
3661
  }, T = () => {
3579
- v.value = !v.value, ve(() => {
3662
+ v.value = !v.value, me(() => {
3580
3663
  var h;
3581
3664
  (h = i.value) == null || h.focus();
3582
3665
  });
3583
- }, F = () => {
3666
+ }, q = () => {
3584
3667
  if (!c.value || !t.autosize || C.value) return;
3585
3668
  const h = c.value, M = h.style.height;
3586
3669
  h.style.height = "auto";
3587
3670
  let $ = h.scrollHeight;
3588
3671
  if (typeof t.autosize == "object") {
3589
- const _e = parseInt(getComputedStyle(h).lineHeight), ke = t.autosize.minRows ? t.autosize.minRows * _e : 0, Te = t.autosize.maxRows ? t.autosize.maxRows * _e : 1 / 0;
3590
- $ = Math.max(ke, Math.min($, Te));
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));
3591
3674
  }
3592
3675
  const ae = `${$}px`;
3593
3676
  ae !== M && (f.value = ae, h.style.height = ae);
@@ -3596,10 +3679,10 @@ const ye = new ws(), gs = {
3596
3679
  const ae = c.value.getBoundingClientRect();
3597
3680
  if (h.clientX > ae.right - 20 && h.clientY > ae.bottom - 20) {
3598
3681
  C.value = !0;
3599
- const ke = () => {
3600
- C.value = !1, document.removeEventListener("mouseup", ke);
3682
+ const be = () => {
3683
+ C.value = !1, document.removeEventListener("mouseup", be);
3601
3684
  };
3602
- document.addEventListener("mouseup", ke);
3685
+ document.addEventListener("mouseup", be);
3603
3686
  }
3604
3687
  };
3605
3688
  return e({
@@ -3618,47 +3701,47 @@ const ye = new ws(), gs = {
3618
3701
  clear: () => {
3619
3702
  S();
3620
3703
  },
3621
- validate: () => (A(t.modelValue || ""), _.value),
3704
+ validate: () => (Z(t.modelValue || ""), g.value),
3622
3705
  clearValidation: () => {
3623
- d.value = [], _.value = !0, l("validation", { isValid: !0, errors: [] });
3706
+ u.value = [], g.value = !0, l("validation", { isValid: !0, errors: [] });
3624
3707
  },
3625
3708
  getInputElement: () => i.value || null,
3626
3709
  getValidationState: () => ({
3627
- isValid: _.value,
3628
- errors: [...d.value]
3710
+ isValid: g.value,
3711
+ errors: [...u.value]
3629
3712
  })
3630
3713
  }), ce(
3631
3714
  () => t.modelValue,
3632
3715
  (h) => {
3633
- D.value && t.autosize && !C.value && ve(F), t.validateOnInput && A(h || "");
3716
+ D.value && t.autosize && !C.value && me(q), t.validateOnInput && Z(h || "");
3634
3717
  }
3635
3718
  ), ce(
3636
3719
  () => [t.required, t.minlength, t.maxlength, t.min, t.max, t.pattern],
3637
3720
  () => {
3638
- t.modelValue !== void 0 && t.modelValue !== "" && A(t.modelValue);
3721
+ t.modelValue !== void 0 && t.modelValue !== "" && Z(t.modelValue);
3639
3722
  },
3640
3723
  { immediate: !0 }
3641
- ), ge(() => {
3642
- D.value && t.autosize && F(), t.modelValue !== void 0 && t.modelValue !== "" && A(t.modelValue);
3643
- }), ge(() => {
3724
+ ), _e(() => {
3725
+ D.value && t.autosize && q(), t.modelValue !== void 0 && t.modelValue !== "" && Z(t.modelValue);
3726
+ }), _e(() => {
3644
3727
  D.value && t.autosize;
3645
3728
  }), Ie(() => {
3646
3729
  }), (h, M) => (s(), a("div", {
3647
- class: Y(ee.value)
3730
+ class: A(J.value)
3648
3731
  }, [
3649
3732
  h.label ? (s(), a("label", {
3650
3733
  key: 0,
3651
3734
  class: "vt-input__label",
3652
3735
  for: h.id
3653
3736
  }, [
3654
- xe(G(h.label) + " ", 1),
3655
- h.required ? (s(), a("span", Js, "*")) : j("", !0)
3656
- ], 8, Gs)) : j("", !0),
3657
- r("div", ei, [
3658
- B.value ? (s(), a("div", ti, [
3737
+ ge(Q(h.label) + " ", 1),
3738
+ h.required ? (s(), a("span", ni, "*")) : j("", !0)
3739
+ ], 8, ti)) : j("", !0),
3740
+ r("div", oi, [
3741
+ B.value ? (s(), a("div", li, [
3659
3742
  X(oe, {
3660
3743
  name: R.value,
3661
- class: Y(O.value)
3744
+ class: A(O.value)
3662
3745
  }, null, 8, ["name", "class"])
3663
3746
  ])) : j("", !0),
3664
3747
  D.value ? (s(), a("textarea", {
@@ -3688,7 +3771,7 @@ const ye = new ws(), gs = {
3688
3771
  onKeyup: M[1] || (M[1] = ($) => h.$emit("keyup", $)),
3689
3772
  onKeypress: M[2] || (M[2] = ($) => h.$emit("keypress", $)),
3690
3773
  onClick: M[3] || (M[3] = ($) => h.$emit("click", $))
3691
- }, null, 44, ni)) : (s(), a("input", {
3774
+ }, null, 44, ri)) : (s(), a("input", {
3692
3775
  key: 2,
3693
3776
  ref_key: "inputRef",
3694
3777
  ref: i,
@@ -3716,9 +3799,9 @@ const ye = new ws(), gs = {
3716
3799
  onKeyup: M[5] || (M[5] = ($) => h.$emit("keyup", $)),
3717
3800
  onKeypress: M[6] || (M[6] = ($) => h.$emit("keypress", $)),
3718
3801
  onClick: M[7] || (M[7] = ($) => h.$emit("click", $))
3719
- }, null, 40, oi)),
3720
- te.value ? (s(), a("div", li, [
3721
- J.value ? (s(), a("button", {
3802
+ }, null, 40, si)),
3803
+ ee.value ? (s(), a("div", ii, [
3804
+ te.value ? (s(), a("button", {
3722
3805
  key: 0,
3723
3806
  type: "button",
3724
3807
  class: "vt-input__clear-btn",
@@ -3740,64 +3823,64 @@ const ye = new ws(), gs = {
3740
3823
  class: "vt-input__icon"
3741
3824
  }, null, 8, ["name"])
3742
3825
  ])) : j("", !0),
3743
- Q.value ? (s(), ie(oe, {
3826
+ G.value ? (s(), ie(oe, {
3744
3827
  key: 2,
3745
- name: Q.value,
3828
+ name: G.value,
3746
3829
  class: "vt-input__icon"
3747
3830
  }, null, 8, ["name"])) : j("", !0)
3748
3831
  ])) : j("", !0)
3749
3832
  ]),
3750
- h.helperText || L.value ? (s(), a("div", ri, [
3751
- L.value ? (s(), a("span", si, G(L.value), 1)) : h.helperText ? (s(), a("span", ii, G(h.helperText), 1)) : j("", !0)
3833
+ h.helperText || L.value ? (s(), a("div", ai, [
3834
+ L.value ? (s(), a("span", ui, Q(L.value), 1)) : h.helperText ? (s(), a("span", di, Q(h.helperText), 1)) : j("", !0)
3752
3835
  ])) : j("", !0),
3753
- d.value.length > 1 && h.showAllErrors ? (s(), a("div", ai, [
3754
- (s(!0), a(he, null, pe(d.value, ($, ae) => (s(), a("div", {
3836
+ u.value.length > 1 && h.showAllErrors ? (s(), a("div", ci, [
3837
+ (s(!0), a(he, null, pe(u.value, ($, ae) => (s(), a("div", {
3755
3838
  key: ae,
3756
3839
  class: "vt-input__error-item"
3757
3840
  }, [
3758
- r("span", null, G($), 1)
3841
+ r("span", null, Q($), 1)
3759
3842
  ]))), 128))
3760
3843
  ])) : j("", !0)
3761
3844
  ], 2));
3762
3845
  }
3763
- }), _1 = Symbol("VtSelectContext");
3846
+ }), _t = Symbol("VtSelectContext");
3764
3847
  function $e(n, e, o) {
3765
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;
3766
3849
  }
3767
- function u1(n, e, o) {
3850
+ function ut(n, e, o) {
3768
3851
  return e.find((t) => $e(t.value, n, o));
3769
3852
  }
3770
- function ui(n, e, o, t) {
3853
+ function hi(n, e, o, t) {
3771
3854
  return o ? Array.isArray(e) ? e.some((l) => $e(l, n, t)) : !1 : $e(e, n, t);
3772
3855
  }
3773
- function di(n, e, o, t) {
3856
+ function pi(n, e, o, t) {
3774
3857
  if (!e.length) return [];
3775
3858
  if (o)
3776
- return Array.isArray(n) ? n.map((i) => u1(i, e, t)).filter(Boolean) : [];
3777
- const l = u1(n, e, t);
3859
+ return Array.isArray(n) ? n.map((i) => ut(i, e, t)).filter(Boolean) : [];
3860
+ const l = ut(n, e, t);
3778
3861
  return l ? [l] : [];
3779
3862
  }
3780
- function ci(n, e, o, t) {
3863
+ function fi(n, e, o, t) {
3781
3864
  if (o) {
3782
3865
  const l = Array.isArray(e) ? e : [];
3783
3866
  return l.some((c) => $e(c, n.value, t)) ? l.filter((c) => !$e(c, n.value, t)) : [...l, n.value];
3784
3867
  }
3785
3868
  return n.value;
3786
3869
  }
3787
- function hi(n, e, o) {
3870
+ function vi(n, e, o) {
3788
3871
  return Array.isArray(e) ? e.filter((t) => !$e(t, n, o)) : e;
3789
3872
  }
3790
- function pi(n) {
3873
+ function mi(n) {
3791
3874
  return n ? [] : void 0;
3792
3875
  }
3793
- function fi(n, e, o, t) {
3876
+ function Ci(n, e, o, t) {
3794
3877
  const l = [];
3795
3878
  return o && (e ? !Array.isArray(n) || n.length === 0 : n == null || n === "") && l.push(t || "Це поле є обов'язковим"), {
3796
3879
  isValid: l.length === 0,
3797
3880
  errors: l
3798
3881
  };
3799
3882
  }
3800
- function vi(n, e, o) {
3883
+ function wi(n, e, o) {
3801
3884
  var p;
3802
3885
  if (!n || !e.length) return o;
3803
3886
  const t = n.offsetWidth, l = 100;
@@ -3811,41 +3894,41 @@ function vi(n, e, o) {
3811
3894
  }
3812
3895
  return Math.max(1, c);
3813
3896
  }
3814
- function mi(n, e) {
3897
+ function gi(n, e) {
3815
3898
  const o = e.map((t) => t.label).join(", ");
3816
3899
  return `Ще ${n}: ${o}`;
3817
3900
  }
3818
- const Ci = ["for"], wi = {
3901
+ const _i = ["for"], ki = {
3819
3902
  key: 0,
3820
3903
  class: "vt-select__required"
3821
- }, gi = { class: "vt-select__field" }, _i = { class: "vt-select__tag-text" }, ki = {
3904
+ }, bi = { class: "vt-select__field" }, yi = { class: "vt-select__tag-text" }, xi = {
3822
3905
  key: 0,
3823
3906
  class: "vt-select__tag vt-select__tag--collapsed"
3824
- }, bi = { class: "vt-select__tag-text" }, yi = {
3907
+ }, Mi = { class: "vt-select__tag-text" }, $i = {
3825
3908
  key: 1,
3826
3909
  class: "vt-select__display-text"
3827
- }, xi = {
3910
+ }, Li = {
3828
3911
  key: 2,
3829
3912
  class: "vt-select__placeholder"
3830
- }, Mi = { class: "vt-select__suffix" }, $i = ["disabled"], Li = {
3913
+ }, Vi = { class: "vt-select__suffix" }, Si = ["disabled"], Ii = {
3831
3914
  key: 0,
3832
3915
  class: "vt-select__help"
3833
- }, Vi = {
3916
+ }, Hi = {
3834
3917
  "aria-hidden": "true",
3835
3918
  style: { display: "none" }
3836
- }, Si = ["aria-multiselectable"], Ii = {
3919
+ }, Bi = ["aria-multiselectable"], Ei = {
3837
3920
  key: 0,
3838
3921
  class: "vt-select-dropdown__search"
3839
- }, Hi = {
3922
+ }, Ti = {
3840
3923
  key: 1,
3841
3924
  class: "vt-select-dropdown__loading"
3842
- }, Bi = {
3925
+ }, ji = {
3843
3926
  key: 2,
3844
3927
  class: "vt-select-dropdown__empty"
3845
- }, Ei = { key: 0 }, Ti = { key: 1 }, ji = ["aria-disabled", "aria-selected", "onClick"], zi = { class: "vt-option__text" }, Oi = { key: 1 }, Ri = {
3928
+ }, zi = { key: 0 }, Oi = { key: 1 }, Ri = ["aria-disabled", "aria-selected", "onClick"], Di = { class: "vt-option__text" }, Wi = { key: 1 }, Pi = {
3846
3929
  key: 0,
3847
3930
  class: "vt-select-dropdown__loading-more"
3848
- }, Di = /* @__PURE__ */ de({
3931
+ }, Ai = /* @__PURE__ */ de({
3849
3932
  __name: "VSelect",
3850
3933
  props: {
3851
3934
  modelValue: {},
@@ -3877,70 +3960,70 @@ const Ci = ["for"], wi = {
3877
3960
  },
3878
3961
  emits: ["update:modelValue", "change", "clear", "focus", "blur", "visible-change", "validation", "scrolled", "remove-tag", "filter", "filter-clear"],
3879
3962
  setup(n, { expose: e, emit: o }) {
3880
- const t = n, l = o, i = H(), c = H(), p = H(), v = H(), f = H([]), d = H(), _ = H(), C = {
3963
+ const t = n, l = o, i = H(), c = H(), p = H(), v = H(), f = H([]), u = H(), g = H(), C = {
3881
3964
  isFocused: H(!1),
3882
3965
  validationErrors: H([]),
3883
3966
  isValid: H(!0),
3884
3967
  visibleCount: H(0),
3885
3968
  filterQuery: H("")
3886
- }, z = H(/* @__PURE__ */ new Map()), A = H(/* @__PURE__ */ new Set()), D = H(/* @__PURE__ */ new Map()), Z = (u) => t.valueKey && typeof u == "object" && u !== null ? String(u[t.valueKey]) : typeof u == "object" ? JSON.stringify(u) : String(u), U = (u, k) => {
3887
- const K = Z(u.value);
3888
- z.value.set(K, u), A.value.add(K), k && D.value.set(u.value, k);
3889
- }, B = (u) => {
3890
- const k = Z(u);
3891
- A.value.delete(k), D.value.delete(u);
3892
- }, R = (u) => {
3893
- for (const [k, K] of D.value.entries())
3894
- if ($e(k, u, t.valueKey))
3895
- return K;
3896
- }, O = (u) => u.toLowerCase().trim(), te = (u, k) => {
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);
3972
+ }, B = (d) => {
3973
+ const k = F(d);
3974
+ Z.value.delete(k), D.value.delete(d);
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) => {
3897
3980
  if (!k) return !0;
3898
- const K = O(k);
3899
- if (u.label && typeof u.label == "string" && O(u.label).includes(K) || typeof u.value == "string" && O(u.value).includes(K))
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))
3900
3983
  return !0;
3901
- if (typeof u.value == "object" && u.value !== null) {
3902
- const P = Object.values(u.value).filter((I) => typeof I == "string");
3984
+ if (typeof d.value == "object" && d.value !== null) {
3985
+ const P = Object.values(d.value).filter((I) => typeof I == "string");
3903
3986
  for (const I of P)
3904
- if (O(I).includes(K))
3987
+ if (O(I).includes(U))
3905
3988
  return !0;
3906
3989
  }
3907
3990
  return !1;
3908
- }, Q = x(() => {
3909
- const u = [];
3910
- for (const [k, K] of z.value.entries())
3911
- A.value.has(k) && u.push(K);
3912
- return u;
3913
- }), J = x(() => !t.filterable || !C.filterQuery.value.trim() || t.allowRemoteFilter ? Q.value : Q.value.filter((u) => te(u, C.filterQuery.value))), {
3914
- visible: q,
3915
- parentVisible: ee,
3991
+ }, G = x(() => {
3992
+ const d = [];
3993
+ for (const [k, U] of z.value.entries())
3994
+ Z.value.has(k) && d.push(U);
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,
3916
3999
  dropdownPosition: E,
3917
4000
  show: L,
3918
4001
  hide: N,
3919
4002
  toggle: re,
3920
4003
  updatePosition: m
3921
- } = m1(c, p, {
4004
+ } = mt(c, p, {
3922
4005
  trigger: "click",
3923
4006
  placement: "bottom-start",
3924
4007
  showTimeout: 250,
3925
4008
  hideTimeout: 150,
3926
4009
  disabled: t.disabled,
3927
4010
  hideOnClick: !1,
3928
- onVisibleChange: (u) => {
3929
- u ? ve(async () => {
3930
- await m(), y.init(), t.filterable && _.value && _.value.focus(), setTimeout(() => {
4011
+ onVisibleChange: (d) => {
4012
+ d ? me(async () => {
4013
+ await m(), y.init(), t.filterable && g.value && g.value.focus(), setTimeout(() => {
3931
4014
  y.checkIfNeedMoreData();
3932
4015
  }, 300);
3933
- }) : (y.cleanup(), C.filterQuery.value && De(), t.validateOnBlur && b.validate()), l("visible-change", u);
4016
+ }) : (y.cleanup(), C.filterQuery.value && De(), t.validateOnBlur && b.validate()), l("visible-change", d);
3934
4017
  }
3935
4018
  }), b = {
3936
4019
  validate() {
3937
- const u = fi(
4020
+ const d = Ci(
3938
4021
  t.modelValue,
3939
4022
  S.value,
3940
4023
  t.required || !1,
3941
4024
  t.requiredMessage
3942
4025
  );
3943
- C.validationErrors.value = u.errors, C.isValid.value = u.isValid, l("validation", { isValid: C.isValid.value, errors: u.errors });
4026
+ C.validationErrors.value = d.errors, C.isValid.value = d.isValid, l("validation", { isValid: C.isValid.value, errors: d.errors });
3944
4027
  },
3945
4028
  clear() {
3946
4029
  C.validationErrors.value = [], C.isValid.value = !0, l("validation", { isValid: !0, errors: [] });
@@ -3954,26 +4037,26 @@ const Ci = ["for"], wi = {
3954
4037
  // мінімальний інтервал між емітами
3955
4038
  isInitialized: !1,
3956
4039
  init() {
3957
- this.cleanup(), this.initIntersectionObserver(), this.initScrollFallback(), this.isInitialized = !0, ve(() => {
4040
+ this.cleanup(), this.initIntersectionObserver(), this.initScrollFallback(), this.isInitialized = !0, me(() => {
3958
4041
  this.checkIfNeedMoreData();
3959
4042
  });
3960
4043
  },
3961
4044
  initIntersectionObserver() {
3962
- d.value && (this.sentinelElement = document.createElement("div"), this.sentinelElement.style.cssText = `
4045
+ u.value && (this.sentinelElement = document.createElement("div"), this.sentinelElement.style.cssText = `
3963
4046
  height: 1px;
3964
4047
  background: transparent;
3965
4048
  pointer-events: none;
3966
4049
  position: absolute;
3967
4050
  bottom: 0;
3968
4051
  width: 100%;
3969
- `, this.sentinelElement.setAttribute("data-scroll-sentinel", "true"), d.value.appendChild(this.sentinelElement), this.observer = new IntersectionObserver(
3970
- (u) => {
3971
- u.forEach((k) => {
4052
+ `, this.sentinelElement.setAttribute("data-scroll-sentinel", "true"), u.value.appendChild(this.sentinelElement), this.observer = new IntersectionObserver(
4053
+ (d) => {
4054
+ d.forEach((k) => {
3972
4055
  k.isIntersecting && this.canEmit() && this.emitScrolled("intersection-observer");
3973
4056
  });
3974
4057
  },
3975
4058
  {
3976
- root: d.value,
4059
+ root: u.value,
3977
4060
  rootMargin: "100px",
3978
4061
  // Тригерить за 100px до кінця
3979
4062
  threshold: 0
@@ -3981,44 +4064,44 @@ const Ci = ["for"], wi = {
3981
4064
  ), this.observer.observe(this.sentinelElement));
3982
4065
  },
3983
4066
  initScrollFallback() {
3984
- d.value && d.value.addEventListener("scroll", this.handleScrollFallback, {
4067
+ u.value && u.value.addEventListener("scroll", this.handleScrollFallback, {
3985
4068
  passive: !0
3986
4069
  });
3987
4070
  },
3988
- handleScrollFallback: (u) => {
4071
+ handleScrollFallback: (d) => {
3989
4072
  y.scrollTimeoutId && clearTimeout(y.scrollTimeoutId), y.scrollTimeoutId = setTimeout(() => {
3990
- const k = u.target;
4073
+ const k = d.target;
3991
4074
  if (!k || !y.canEmit()) return;
3992
- const { scrollTop: K, scrollHeight: P, clientHeight: I } = k;
3993
- P - K - I <= 80 && J.value.length > 0 && y.emitScrolled("scroll-fallback");
4075
+ const { scrollTop: U, scrollHeight: P, clientHeight: I } = k;
4076
+ P - U - I <= 80 && te.value.length > 0 && y.emitScrolled("scroll-fallback");
3994
4077
  }, 200);
3995
4078
  },
3996
4079
  canEmit() {
3997
- const u = Date.now();
3998
- return !t.loading && J.value.length > 0 && u - this.lastEmitTime > this.emitCooldown;
4080
+ const d = Date.now();
4081
+ return !t.loading && te.value.length > 0 && d - this.lastEmitTime > this.emitCooldown;
3999
4082
  },
4000
- emitScrolled(u) {
4001
- console.log(`Scroll triggered by: ${u}, options count: ${J.value.length}`), this.lastEmitTime = Date.now(), l("scrolled");
4083
+ emitScrolled(d) {
4084
+ this.lastEmitTime = Date.now(), l("scrolled");
4002
4085
  },
4003
4086
  updateSentinel() {
4004
- this.sentinelElement && d.value && d.value.appendChild(this.sentinelElement);
4087
+ this.sentinelElement && u.value && u.value.appendChild(this.sentinelElement);
4005
4088
  },
4006
4089
  checkIfNeedMoreData() {
4007
- if (!d.value || !this.canEmit()) return;
4008
- const { scrollHeight: u, clientHeight: k } = d.value;
4009
- u <= k && J.value.length > 0 && (console.log("Container height exceeds content, triggering initial load"), this.emitScrolled("initial-check"));
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");
4010
4093
  },
4011
4094
  // Метод для ручного тригеру (корисно для дебагу)
4012
4095
  triggerManually() {
4013
4096
  this.canEmit() && this.emitScrolled("manual-trigger");
4014
4097
  },
4015
4098
  cleanup() {
4016
- this.observer && (this.observer.disconnect(), this.observer = null), this.sentinelElement && (this.sentinelElement.remove(), this.sentinelElement = null), d.value && this.isInitialized && d.value.removeEventListener("scroll", this.handleScrollFallback), this.scrollTimeoutId && (clearTimeout(this.scrollTimeoutId), this.scrollTimeoutId = null), this.isInitialized = !1;
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;
4017
4100
  }
4018
- }, S = x(() => t.multiple), T = x(() => Q.value.length ? di(t.modelValue, Q.value, S.value, t.valueKey) : []), F = x(() => !t.multiple || T.value.length === 0 ? [] : t.collapsedTags ? T.value.slice(0, C.visibleCount.value) : T.value), se = x(() => {
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(() => {
4019
4102
  if (S.value) return "";
4020
- const u = T.value[0];
4021
- return u ? u.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) : "";
4103
+ const d = T.value[0];
4104
+ 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) : "";
4022
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(() => [
4023
4106
  "vt-select",
4024
4107
  `vt-select--${ze.value}`,
@@ -4026,7 +4109,7 @@ const Ci = ["for"], wi = {
4026
4109
  "vt-select--disabled": t.disabled,
4027
4110
  "vt-select--focused": C.isFocused.value,
4028
4111
  "vt-select--multiple": S.value,
4029
- "vt-select--open": q.value
4112
+ "vt-select--open": K.value
4030
4113
  }
4031
4114
  ]), He = x(() => ({
4032
4115
  ...E.value,
@@ -4035,49 +4118,49 @@ const Ci = ["for"], wi = {
4035
4118
  maxHeight: `${t.maxHeight}px`
4036
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(() => {
4037
4120
  if (!Be.value) return "";
4038
- const u = T.value.slice(C.visibleCount.value);
4039
- return mi(Ve.value, u);
4040
- }), Ee = (u) => {
4041
- var K, P;
4042
- if (!q.value) return;
4043
- const k = u.target;
4044
- (K = i.value) != null && K.contains(k) || (P = p.value) != null && P.contains(k) || N();
4045
- }, h = (u) => {
4046
- if (!u || u.disabled) return;
4047
- const k = ci(u, t.modelValue, S.value, t.valueKey);
4121
+ const d = T.value.slice(C.visibleCount.value);
4122
+ return gi(Ve.value, d);
4123
+ }), 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();
4128
+ }, h = (d) => {
4129
+ if (!d || d.disabled) return;
4130
+ const k = fi(d, t.modelValue, S.value, t.valueKey);
4048
4131
  l("update:modelValue", k), l("change", k), S.value || N(), t.validateOnInput && b.validate();
4049
- }, M = (u, k) => {
4050
- u.disabled || h(u);
4132
+ }, M = (d, k) => {
4133
+ d.disabled || h(d);
4051
4134
  }, $ = () => {
4052
- const u = pi(S.value);
4053
- l("update:modelValue", u), l("change", u), l("clear"), b.clear();
4054
- }, ae = (u) => {
4135
+ const d = mi(S.value);
4136
+ l("update:modelValue", d), l("change", d), l("clear"), b.clear();
4137
+ }, ae = (d) => {
4055
4138
  if (!S.value) return;
4056
- const k = hi(u, t.modelValue, t.valueKey);
4057
- l("update:modelValue", k), l("change", k), l("remove-tag", u), t.validateOnInput && b.validate();
4058
- }, _e = () => {
4059
- t.disabled || re();
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();
4060
4141
  }, ke = () => {
4142
+ t.disabled || re();
4143
+ }, be = () => {
4061
4144
  C.isFocused.value = !0, l("focus");
4062
- }, Te = (u) => {
4145
+ }, Te = (d) => {
4063
4146
  var k;
4064
- u != null && u.relatedTarget && ((k = p.value) != null && k.contains(u.relatedTarget)) || (C.isFocused.value = !1, l("blur"), setTimeout(() => {
4065
- var K;
4066
- (K = p.value) != null && K.contains(document.activeElement) || N();
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();
4067
4150
  }, 100));
4068
4151
  }, De = () => {
4069
4152
  C.filterQuery.value = "", l("filter", ""), l("filter-clear");
4070
- }, Ze = (u) => {
4071
- u.key === "Enter" || u.key === " " ? (u.preventDefault(), _e()) : u.key === "Escape" && q.value && (u.preventDefault(), N());
4072
- }, Se = (u) => ui(u, t.modelValue, S.value, t.valueKey), g = () => {
4153
+ }, Ze = (d) => {
4154
+ d.key === "Enter" || d.key === " " ? (d.preventDefault(), ke()) : d.key === "Escape" && K.value && (d.preventDefault(), N());
4155
+ }, Se = (d) => hi(d, t.modelValue, S.value, t.valueKey), _ = () => {
4073
4156
  if (!t.collapsedTags || !v.value || T.value.length === 0) {
4074
4157
  C.visibleCount.value = T.value.length;
4075
4158
  return;
4076
4159
  }
4077
- ve(() => {
4160
+ me(() => {
4078
4161
  if (!v.value) return;
4079
- const u = vi(v.value, f.value, T.value.length);
4080
- C.visibleCount.value = u;
4162
+ const d = wi(v.value, f.value, T.value.length);
4163
+ C.visibleCount.value = d;
4081
4164
  });
4082
4165
  }, V = {
4083
4166
  selectValue: x(() => t.modelValue || (S.value ? [] : void 0)).value,
@@ -4085,13 +4168,13 @@ const Ci = ["for"], wi = {
4085
4168
  valueKey: t.valueKey,
4086
4169
  handleOptionClick: h,
4087
4170
  isOptionSelected: Se,
4088
- registerOption: U,
4171
+ registerOption: Y,
4089
4172
  unregisterOption: B
4090
4173
  };
4091
- return e1(_1, V), e({
4174
+ return et(_t, V), e({
4092
4175
  ...{
4093
4176
  focus() {
4094
- q.value || L();
4177
+ K.value || L();
4095
4178
  },
4096
4179
  blur() {
4097
4180
  N();
@@ -4114,8 +4197,8 @@ const Ci = ["for"], wi = {
4114
4197
  errors: [...C.validationErrors.value]
4115
4198
  };
4116
4199
  },
4117
- setFilter(u) {
4118
- C.filterQuery.value = u, l("filter", u);
4200
+ setFilter(d) {
4201
+ C.filterQuery.value = d, l("filter", d);
4119
4202
  },
4120
4203
  clearFilter() {
4121
4204
  De();
@@ -4131,20 +4214,20 @@ const Ci = ["for"], wi = {
4131
4214
  y.triggerManually();
4132
4215
  },
4133
4216
  getScrollInfo() {
4134
- if (!d.value) return null;
4135
- const { scrollTop: u, scrollHeight: k, clientHeight: K } = d.value;
4217
+ if (!u.value) return null;
4218
+ const { scrollTop: d, scrollHeight: k, clientHeight: U } = u.value;
4136
4219
  return {
4137
- scrollTop: u,
4220
+ scrollTop: d,
4138
4221
  scrollHeight: k,
4139
- clientHeight: K,
4140
- isNearBottom: k - u - K <= 100,
4141
- canScroll: k > K,
4142
- optionsCount: J.value.length,
4222
+ clientHeight: U,
4223
+ isNearBottom: k - d - U <= 100,
4224
+ canScroll: k > U,
4225
+ optionsCount: te.value.length,
4143
4226
  isLoading: t.loading
4144
4227
  };
4145
4228
  }
4146
4229
  },
4147
- registerOption: U,
4230
+ registerOption: Y,
4148
4231
  unregisterOption: B
4149
4232
  }), ce(
4150
4233
  () => t.modelValue,
@@ -4154,21 +4237,21 @@ const Ci = ["for"], wi = {
4154
4237
  ), ce(
4155
4238
  T,
4156
4239
  () => {
4157
- g();
4240
+ _();
4158
4241
  },
4159
4242
  { deep: !0 }
4160
4243
  ), ce(
4161
4244
  () => v.value,
4162
4245
  () => {
4163
- v.value && g();
4246
+ v.value && _();
4164
4247
  }
4165
- ), ce(q, async (u) => {
4166
- u && (await ve(), m());
4248
+ ), ce(K, async (d) => {
4249
+ d && (await me(), m());
4167
4250
  }), ce(
4168
- J,
4169
- (u, k) => {
4170
- q.value && y.isInitialized && ve(() => {
4171
- y.updateSentinel(), u.length > 0 && setTimeout(() => {
4251
+ te,
4252
+ (d, k) => {
4253
+ K.value && y.isInitialized && me(() => {
4254
+ y.updateSentinel(), d.length > 0 && setTimeout(() => {
4172
4255
  y.checkIfNeedMoreData();
4173
4256
  }, 100);
4174
4257
  });
@@ -4176,74 +4259,74 @@ const Ci = ["for"], wi = {
4176
4259
  { flush: "post" }
4177
4260
  ), ce(
4178
4261
  () => t.loading,
4179
- (u, k) => {
4180
- k && !u && q.value && y.isInitialized && ve(() => {
4262
+ (d, k) => {
4263
+ k && !d && K.value && y.isInitialized && me(() => {
4181
4264
  y.updateSentinel(), setTimeout(() => {
4182
4265
  y.checkIfNeedMoreData();
4183
4266
  }, 200);
4184
4267
  });
4185
4268
  }
4186
- ), ge(() => {
4187
- t.modelValue !== void 0 && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0) && b.validate(), ve(() => {
4188
- g();
4189
- }), window.addEventListener("resize", g), document.addEventListener("click", Ee);
4269
+ ), _e(() => {
4270
+ t.modelValue !== void 0 && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0) && b.validate(), me(() => {
4271
+ _();
4272
+ }), window.addEventListener("resize", _), document.addEventListener("click", Ee);
4190
4273
  }), Ie(() => {
4191
- y.cleanup(), document.removeEventListener("click", Ee), window.removeEventListener("resize", g);
4192
- }), (u, k) => {
4193
- const K = Ge("tooltip");
4274
+ y.cleanup(), document.removeEventListener("click", Ee), window.removeEventListener("resize", _);
4275
+ }), (d, k) => {
4276
+ const U = Ge("tooltip");
4194
4277
  return s(), a("div", {
4195
4278
  ref_key: "selectRef",
4196
4279
  ref: i,
4197
- class: Y(Oe.value)
4280
+ class: A(Oe.value)
4198
4281
  }, [
4199
- u.label ? (s(), a("label", {
4282
+ d.label ? (s(), a("label", {
4200
4283
  key: 0,
4201
- for: u.id,
4284
+ for: d.id,
4202
4285
  class: "vt-select__label"
4203
4286
  }, [
4204
- xe(G(u.label) + " ", 1),
4205
- u.required ? (s(), a("span", wi, "*")) : j("", !0)
4206
- ], 8, Ci)) : j("", !0),
4287
+ ge(Q(d.label) + " ", 1),
4288
+ d.required ? (s(), a("span", ki, "*")) : j("", !0)
4289
+ ], 8, _i)) : j("", !0),
4207
4290
  r("div", {
4208
4291
  ref_key: "triggerRef",
4209
4292
  ref: c,
4210
4293
  class: "vt-select__container",
4211
4294
  tabindex: "0",
4212
4295
  onBlur: Te,
4213
- onClick: _e,
4214
- onFocus: ke,
4296
+ onClick: ke,
4297
+ onFocus: be,
4215
4298
  onKeydown: Ze
4216
4299
  }, [
4217
- r("div", gi, [
4218
- u.multiple && T.value.length > 0 ? (s(), a("div", {
4300
+ r("div", bi, [
4301
+ d.multiple && T.value.length > 0 ? (s(), a("div", {
4219
4302
  key: 0,
4220
4303
  ref_key: "containerRef",
4221
4304
  ref: v,
4222
4305
  class: "vt-select__tags"
4223
4306
  }, [
4224
- (s(!0), a(he, null, pe(F.value, (P, I) => (s(), a("div", {
4307
+ (s(!0), a(he, null, pe(q.value, (P, I) => (s(), a("div", {
4225
4308
  key: `tag-${typeof P.value == "object" ? JSON.stringify(P.value) : P.value}-${I}`,
4226
4309
  ref_for: !0,
4227
4310
  ref: (ue) => ue && (f.value[I] = ue),
4228
4311
  class: "vt-select__tag"
4229
4312
  }, [
4230
- r("span", _i, G(P.label), 1),
4313
+ r("span", yi, Q(P.label), 1),
4231
4314
  t.disabled ? j("", !0) : (s(), ie(oe, {
4232
4315
  key: 0,
4233
4316
  class: "vt-select__tag-close",
4234
4317
  name: "close",
4235
- onClick: me((ue) => ae(P.value), ["stop"])
4318
+ onClick: Ce((ue) => ae(P.value), ["stop"])
4236
4319
  }, null, 8, ["onClick"]))
4237
4320
  ]))), 128)),
4238
- Be.value ? Ae((s(), a("div", ki, [
4239
- r("span", bi, "+" + G(Ve.value), 1)
4321
+ Be.value ? Ae((s(), a("div", xi, [
4322
+ r("span", Mi, "+" + Q(Ve.value), 1)
4240
4323
  ])), [
4241
- [K, Re.value]
4324
+ [U, Re.value]
4242
4325
  ]) : j("", !0)
4243
- ], 512)) : !u.multiple && se.value ? (s(), a("span", yi, G(se.value), 1)) : (s(), a("span", xi, G(u.placeholder), 1))
4326
+ ], 512)) : !d.multiple && se.value ? (s(), a("span", $i, Q(se.value), 1)) : (s(), a("span", Li, Q(d.placeholder), 1))
4244
4327
  ]),
4245
- r("div", Mi, [
4246
- u.loading ? (s(), ie(je, {
4328
+ r("div", Vi, [
4329
+ d.loading ? (s(), ie(je, {
4247
4330
  key: 0,
4248
4331
  class: "vt-select__loading"
4249
4332
  })) : Le.value ? (s(), a("button", {
@@ -4251,76 +4334,76 @@ const Ci = ["for"], wi = {
4251
4334
  disabled: t.disabled,
4252
4335
  class: "vt-select__clear-btn",
4253
4336
  type: "button",
4254
- onClick: me($, ["stop"])
4337
+ onClick: Ce($, ["stop"])
4255
4338
  }, [
4256
4339
  X(oe, { name: "close" })
4257
- ], 8, $i)) : (s(), ie(oe, {
4340
+ ], 8, Si)) : (s(), ie(oe, {
4258
4341
  key: 2,
4259
- class: Y([{ "vt-select__arrow--open": ne(q) }, "vt-select__icon vt-select__arrow"]),
4342
+ class: A([{ "vt-select__arrow--open": ne(K) }, "vt-select__icon vt-select__arrow"]),
4260
4343
  name: "arrowDown"
4261
4344
  }, null, 8, ["class"]))
4262
4345
  ])
4263
4346
  ], 544),
4264
- X(r1, { name: "fade" }, {
4347
+ X(rt, { name: "fade" }, {
4265
4348
  default: we(() => [
4266
- C.validationErrors && C.validationErrors.value.length ? (s(), a("div", Li, [
4349
+ C.validationErrors && C.validationErrors.value.length ? (s(), a("div", Ii, [
4267
4350
  (s(!0), a(he, null, pe(C.validationErrors.value, (P, I) => (s(), a("div", {
4268
4351
  key: `error-${I}`,
4269
4352
  class: "vt-select__error"
4270
- }, G(P), 1))), 128))
4353
+ }, Q(P), 1))), 128))
4271
4354
  ])) : j("", !0)
4272
4355
  ]),
4273
4356
  _: 1
4274
4357
  }),
4275
- r("div", Vi, [
4276
- Ce(u.$slots, "default")
4358
+ r("div", Hi, [
4359
+ ve(d.$slots, "default")
4277
4360
  ]),
4278
- ne(q) && ne(ee) ? (s(), ie(Je, {
4361
+ ne(K) && ne(J) ? (s(), ie(Je, {
4279
4362
  key: 1,
4280
4363
  to: "body"
4281
4364
  }, [
4282
- X(r1, { name: "dropdown" }, {
4365
+ X(rt, { name: "dropdown" }, {
4283
4366
  default: we(() => [
4284
4367
  r("div", {
4285
4368
  ref_key: "dropdownRef",
4286
4369
  ref: p,
4287
- "aria-multiselectable": u.multiple,
4370
+ "aria-multiselectable": d.multiple,
4288
4371
  style: fe(He.value),
4289
4372
  class: "vt-select-dropdown",
4290
4373
  role: "listbox",
4291
- onClick: k[2] || (k[2] = me(() => {
4374
+ onClick: k[2] || (k[2] = Ce(() => {
4292
4375
  }, ["stop"])),
4293
- onMousedown: k[3] || (k[3] = me(() => {
4376
+ onMousedown: k[3] || (k[3] = Ce(() => {
4294
4377
  }, ["prevent"]))
4295
4378
  }, [
4296
- u.filterable ? (s(), a("div", Ii, [
4297
- X(g1, {
4379
+ d.filterable ? (s(), a("div", Ei, [
4380
+ X(gt, {
4298
4381
  ref_key: "filterInputRef",
4299
- ref: _,
4382
+ ref: g,
4300
4383
  modelValue: C.filterQuery.value,
4301
4384
  "onUpdate:modelValue": k[0] || (k[0] = (P) => C.filterQuery.value = P),
4302
- placeholder: u.filterPlaceholder,
4385
+ placeholder: d.filterPlaceholder,
4303
4386
  clearable: "",
4304
4387
  "suffix-icon": "search",
4305
4388
  type: "text"
4306
4389
  }, null, 8, ["modelValue", "placeholder"])
4307
4390
  ])) : j("", !0),
4308
- u.loading ? (s(), a("div", Hi, [
4391
+ d.loading ? (s(), a("div", Ti, [
4309
4392
  X(je, { class: "vt-select-dropdown__loading-icon" }),
4310
- xe(" " + G(u.loadingText), 1)
4311
- ])) : J.value.length === 0 ? (s(), a("div", Bi, [
4312
- C.filterQuery.value ? (s(), a("span", Ei, 'Немає результатів для "' + G(C.filterQuery.value) + '"', 1)) : (s(), a("span", Ti, G(u.noDataText), 1))
4393
+ ge(" " + Q(d.loadingText), 1)
4394
+ ])) : te.value.length === 0 ? (s(), a("div", ji, [
4395
+ C.filterQuery.value ? (s(), a("span", zi, 'Немає результатів для "' + Q(C.filterQuery.value) + '"', 1)) : (s(), a("span", Oi, Q(d.noDataText), 1))
4313
4396
  ])) : (s(), a("div", {
4314
4397
  key: 3,
4315
4398
  ref_key: "scrollContainerRef",
4316
- ref: d,
4399
+ ref: u,
4317
4400
  class: "vt-select-dropdown__options"
4318
4401
  }, [
4319
- (s(!0), a(he, null, pe(J.value, (P) => (s(), a("div", {
4402
+ (s(!0), a(he, null, pe(te.value, (P) => (s(), a("div", {
4320
4403
  key: `option-${typeof P.value == "object" ? JSON.stringify(P.value) : P.value}`,
4321
4404
  "aria-disabled": P.disabled || !1,
4322
4405
  "aria-selected": Se(P.value),
4323
- class: Y([
4406
+ class: A([
4324
4407
  "vt-option",
4325
4408
  {
4326
4409
  "vt-option--selected": Se(P.value),
@@ -4329,7 +4412,7 @@ const Ci = ["for"], wi = {
4329
4412
  ]),
4330
4413
  role: "option",
4331
4414
  onClick: (I) => h(P),
4332
- onMousedown: k[1] || (k[1] = me(() => {
4415
+ onMousedown: k[1] || (k[1] = Ce(() => {
4333
4416
  }, ["prevent"]))
4334
4417
  }, [
4335
4418
  S.value ? (s(), ie(Me, {
@@ -4340,16 +4423,16 @@ const Ci = ["for"], wi = {
4340
4423
  tabindex: "-1",
4341
4424
  onChange: (I) => M(P)
4342
4425
  }, null, 8, ["checked", "disabled", "onChange"])) : j("", !0),
4343
- r("span", zi, [
4344
- R(P.value) ? (s(), ie(Xe(R(P.value)), { key: 0 })) : (s(), a("span", Oi, G(P.label || P.value), 1))
4426
+ r("span", Di, [
4427
+ R(P.value) ? (s(), ie(Xe(R(P.value)), { key: 0 })) : (s(), a("span", Wi, Q(P.label || P.value), 1))
4345
4428
  ])
4346
- ], 42, ji))), 128)),
4347
- u.loading ? (s(), a("div", Ri, [
4429
+ ], 42, Ri))), 128)),
4430
+ d.loading ? (s(), a("div", Pi, [
4348
4431
  X(je, { class: "vt-select-dropdown__loading-icon" }),
4349
- xe(" " + G(t.loadingText), 1)
4432
+ ge(" " + Q(t.loadingText), 1)
4350
4433
  ])) : j("", !0)
4351
4434
  ], 512))
4352
- ], 44, Si)
4435
+ ], 44, Bi)
4353
4436
  ]),
4354
4437
  _: 1
4355
4438
  })
@@ -4357,7 +4440,7 @@ const Ci = ["for"], wi = {
4357
4440
  ], 2);
4358
4441
  };
4359
4442
  }
4360
- }), Wi = { style: { display: "none" } }, Pi = /* @__PURE__ */ de({
4443
+ }), Zi = { style: { display: "none" } }, Fi = /* @__PURE__ */ de({
4361
4444
  __name: "VOption",
4362
4445
  props: {
4363
4446
  label: {},
@@ -4366,25 +4449,25 @@ const Ci = ["for"], wi = {
4366
4449
  },
4367
4450
  emits: ["click"],
4368
4451
  setup(n, { emit: e }) {
4369
- const o = n, t = Qe(), l = t1(_1);
4452
+ const o = n, t = Qe(), l = tt(_t);
4370
4453
  l || console.warn("VOption повинен використовуватися всередині VSelect");
4371
4454
  const i = x(() => ({
4372
4455
  label: o.label,
4373
4456
  value: o.value,
4374
4457
  disabled: o.disabled || !1
4375
4458
  }));
4376
- return ge(() => {
4459
+ return _e(() => {
4377
4460
  if (l) {
4378
4461
  const c = t.default ? () => t.default() : null;
4379
4462
  l.registerOption(i.value, c);
4380
4463
  }
4381
- }), M1(() => {
4464
+ }), Mt(() => {
4382
4465
  l && l.unregisterOption(o.value);
4383
- }), (c, p) => (s(), a("div", Wi, [
4384
- Ce(c.$slots, "default")
4466
+ }), (c, p) => (s(), a("div", Zi, [
4467
+ ve(c.$slots, "default")
4385
4468
  ]));
4386
4469
  }
4387
- }), d1 = (n, e) => {
4470
+ }), dt = (n, e) => {
4388
4471
  const o = document.createElement("div");
4389
4472
  o.className = `vt-tooltip vt-tooltip--${e}`, o.innerText = n, Object.assign(o.style, {
4390
4473
  position: "absolute",
@@ -4467,25 +4550,25 @@ const Ci = ["for"], wi = {
4467
4550
  p = t.top + c + (t.height - l.height) / 2, v = t.right + i + 8;
4468
4551
  break;
4469
4552
  }
4470
- const f = window.innerWidth, d = window.innerHeight;
4471
- 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 + d - 8 && (o === "bottom" ? p = t.top + c - l.height - 8 : p = c + d - l.height - 8), n.style.top = `${p}px`, n.style.left = `${v}px`;
4472
- }, c1 = (n, e, o) => {
4553
+ const f = window.innerWidth, u = window.innerHeight;
4554
+ 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) => {
4473
4556
  n.parentElement || document.body.appendChild(n), n.style.visibility = "visible", Ye(n, e, o), requestAnimationFrame(() => {
4474
4557
  n.style.opacity = "1";
4475
4558
  });
4476
- }, h1 = (n) => {
4559
+ }, ht = (n) => {
4477
4560
  n.style.opacity = "0", n.style.visibility = "hidden";
4478
- }, p1 = (n) => n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight, f1 = (n) => !!n.closest(".vt-table, table"), Ai = {
4561
+ }, pt = (n) => n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight, ft = (n) => !!n.closest(".vt-table, table"), Ni = {
4479
4562
  mounted(n, e) {
4480
4563
  var v;
4481
4564
  const o = (v = e.value) == null ? void 0 : v.trim();
4482
4565
  if (!o) return;
4483
- const t = n.dataset.placement || "top", l = d1(o, t);
4566
+ const t = n.dataset.placement || "top", l = dt(o, t);
4484
4567
  n.__tooltipEl = l;
4485
4568
  const i = () => {
4486
- (f1(n) ? p1(n) : !0) && c1(l, n, t);
4569
+ (ft(n) ? pt(n) : !0) && ct(l, n, t);
4487
4570
  }, c = () => {
4488
- h1(l);
4571
+ ht(l);
4489
4572
  }, p = () => {
4490
4573
  l.style.opacity === "1" && Ye(l, n, t);
4491
4574
  };
@@ -4497,12 +4580,12 @@ const Ci = ["for"], wi = {
4497
4580
  if (n.__tooltipEl)
4498
4581
  o ? n.__tooltipEl.firstChild.textContent = o : (n.__tooltipEl.parentElement && n.__tooltipEl.parentElement.removeChild(n.__tooltipEl), delete n.__tooltipEl);
4499
4582
  else if (o) {
4500
- const l = n.dataset.placement || "top", i = d1(o, l);
4583
+ const l = n.dataset.placement || "top", i = dt(o, l);
4501
4584
  n.__tooltipEl = i;
4502
4585
  const c = () => {
4503
- (f1(n) ? p1(n) : !0) && c1(i, n, l);
4586
+ (ft(n) ? pt(n) : !0) && ct(i, n, l);
4504
4587
  }, p = () => {
4505
- h1(i);
4588
+ ht(i);
4506
4589
  }, v = () => {
4507
4590
  i.style.opacity === "1" && Ye(i, n, l);
4508
4591
  };
@@ -4512,39 +4595,40 @@ const Ci = ["for"], wi = {
4512
4595
  beforeUnmount(n) {
4513
4596
  n.__tooltipEl && n.__tooltipEl.parentElement && (n.__tooltipEl.parentElement.removeChild(n.__tooltipEl), delete n.__tooltipEl), n.__mouseenterHandler && (n.removeEventListener("mouseenter", n.__mouseenterHandler), delete n.__mouseenterHandler), n.__mouseleaveHandler && (n.removeEventListener("mouseleave", n.__mouseleaveHandler), delete n.__mouseleaveHandler), n.__scrollHandler && (window.removeEventListener("scroll", n.__scrollHandler, !0), window.removeEventListener("resize", n.__scrollHandler), delete n.__scrollHandler);
4514
4597
  }
4515
- }, Fi = {
4598
+ }, Ui = {
4516
4599
  sortable: !0,
4517
4600
  actionColumn: !1,
4518
4601
  showOverflowTooltip: !0,
4519
4602
  visible: !0,
4520
4603
  pinnedLeft: !1,
4521
4604
  pinnedRight: !1
4522
- }, Zi = {
4605
+ }, qi = {
4523
4606
  install(n, e = {}) {
4524
4607
  const { prefix: o = "V", modal: t = !0 } = e;
4525
- n.component(`${o}Button`, We), n.component(`${o}Icon`, oe), n.component(`${o}Loader`, je), n.component(`${o}Modal`, v1), n.component(`${o}Pagination`, rs), n.component(`${o}Checkbox`, Me), n.component(`${o}Table`, Xs), n.component(`${o}TableColumn`, Qs), n.component(`${o}Dropdown`, w1), n.component(`${o}DropdownItem`, Ue), n.component(`${o}Input`, g1), n.component(`${o}Select`, Di), n.component(`${o}Option`, Pi), n.directive("tooltip", Ai), t && n.use(gs);
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);
4526
4609
  }
4527
- }, qi = Zi.install;
4610
+ }, Yi = qi.install;
4528
4611
  export {
4529
- Fi as DEFAULT_COLUMN_CONFIG,
4530
- C1 as DropdownContextKey,
4612
+ Ui as DEFAULT_COLUMN_CONFIG,
4613
+ Ct as DropdownContextKey,
4531
4614
  We as VButton,
4532
4615
  Me as VCheckbox,
4533
- w1 as VDropdown,
4616
+ wt as VDropdown,
4534
4617
  Ue as VDropdownItem,
4535
4618
  oe as VIcon,
4536
- g1 as VInput,
4619
+ gt as VInput,
4537
4620
  je as VLoader,
4538
- v1 as VModal,
4539
- gs as VModalPlugin,
4540
- Pi as VOption,
4621
+ vt as VModal,
4622
+ bs as VModalPlugin,
4623
+ Fi as VOption,
4541
4624
  rs as VPagination,
4542
- Di as VSelect,
4543
- Xs as VTable,
4544
- Qs as VTableColumn,
4545
- _1 as VtSelectContextKey,
4546
- Zi as default,
4547
- qi as install,
4548
- ye as modalManager,
4549
- Ai as tooltipDirective
4625
+ ds as VRadiobox,
4626
+ Ai as VSelect,
4627
+ Js as VTable,
4628
+ ei as VTableColumn,
4629
+ _t as VtSelectContextKey,
4630
+ qi as default,
4631
+ Yi as install,
4632
+ xe as modalManager,
4633
+ Ni as tooltipDirective
4550
4634
  };