voiptime-components 1.7.4 → 1.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,10 +1,10 @@
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 ue, computed as k, createBlock as ie, createCommentVNode as j, resolveDynamicComponent as Xe, normalizeStyle as pe, useSlots as Qe, resolveDirective as Ge, withDirectives as Ae, normalizeClass as A, renderSlot as ve, Teleport as Je, withModifiers as me, toDisplayString as Q, watch as fe, Fragment as ce, renderList as he, vModelSelect as k1, createVNode as X, withCtx as we, createTextVNode as ge, ref as I, onUnmounted as Ie, nextTick as Ce, provide as e1, onMounted as _e, unref as oe, inject as t1, createApp as b1, h as qe, mergeModels as l1, useModel as y1, reactive as x1, Transition as r1, onBeforeUnmount as $1 } from "vue";
2
2
  const w = (n, e) => {
3
3
  const o = n.__vccOpts || n;
4
4
  for (const [t, l] of e)
5
5
  o[t] = l;
6
6
  return o;
7
- }, $1 = {}, L1 = {
7
+ }, M1 = {}, L1 = {
8
8
  width: "20",
9
9
  height: "20",
10
10
  viewBox: "0 0 20 20",
@@ -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 S1 = /* @__PURE__ */ w(M1, [["render", V1]]), I1 = {}, B1 = {
33
33
  width: "20",
34
34
  height: "20",
35
35
  viewBox: "0 0 20 20",
36
36
  fill: "none",
37
37
  xmlns: "http://www.w3.org/2000/svg"
38
38
  };
39
- function B1(n, e) {
40
- return s(), a("svg", H1, e[0] || (e[0] = [
39
+ function H1(n, e) {
40
+ return s(), a("svg", B1, e[0] || (e[0] = [
41
41
  r("circle", {
42
42
  cx: "10",
43
43
  cy: "10",
@@ -61,7 +61,7 @@ function B1(n, e) {
61
61
  }, null, -1)
62
62
  ]));
63
63
  }
64
- const E1 = /* @__PURE__ */ w(I1, [["render", B1]]), T1 = {}, j1 = {
64
+ const E1 = /* @__PURE__ */ w(I1, [["render", H1]]), T1 = {}, j1 = {
65
65
  width: "20",
66
66
  height: "20",
67
67
  viewBox: "0 0 20 20",
@@ -104,7 +104,7 @@ const P1 = /* @__PURE__ */ w(R1, [["render", W1]]), A1 = {}, Z1 = {
104
104
  width: "20",
105
105
  xmlns: "http://www.w3.org/2000/svg"
106
106
  };
107
- function N1(n, e) {
107
+ function F1(n, e) {
108
108
  return s(), a("svg", Z1, e[0] || (e[0] = [
109
109
  r("path", {
110
110
  d: "M12.5 10L10 12.5M10 12.5L7.5 10M10 12.5L10 4",
@@ -121,7 +121,7 @@ function N1(n, e) {
121
121
  }, null, -1)
122
122
  ]));
123
123
  }
124
- const F1 = /* @__PURE__ */ w(A1, [["render", N1]]), q1 = {}, K1 = {
124
+ const N1 = /* @__PURE__ */ w(A1, [["render", F1]]), q1 = {}, K1 = {
125
125
  width: "20",
126
126
  height: "20",
127
127
  viewBox: "0 0 20 20",
@@ -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 yt = /* @__PURE__ */ w(_t, [["render", bt]]), xt = {}, $t = {
288
288
  width: "20",
289
289
  height: "20",
290
290
  viewBox: "0 0 20 20",
291
291
  fill: "none",
292
292
  xmlns: "http://www.w3.org/2000/svg"
293
293
  };
294
- function $t(n, e) {
295
- return s(), a("svg", Mt, e[0] || (e[0] = [
294
+ function Mt(n, e) {
295
+ return s(), a("svg", $t, e[0] || (e[0] = [
296
296
  r("path", {
297
297
  d: "M6.25065 8.33073L8.33398 10.4141L6.25065 12.4974M10.0007 12.4974H13.334M5.00065 4.16406H15.0007C15.4427 4.16406 15.8666 4.33966 16.1792 4.65222C16.4917 4.96478 16.6673 5.3887 16.6673 5.83073V14.1641C16.6673 14.6061 16.4917 15.03 16.1792 15.3426C15.8666 15.6551 15.4427 15.8307 15.0007 15.8307H5.00065C4.55862 15.8307 4.1347 15.6551 3.82214 15.3426C3.50958 15.03 3.33398 14.6061 3.33398 14.1641V5.83073C3.33398 5.3887 3.50958 4.96478 3.82214 4.65222C4.1347 4.33966 4.55862 4.16406 5.00065 4.16406Z",
298
298
  stroke: "currentColor",
@@ -302,7 +302,7 @@ function $t(n, e) {
302
302
  }, null, -1)
303
303
  ]));
304
304
  }
305
- const Lt = /* @__PURE__ */ w(xt, [["render", $t]]), Vt = {}, St = {
305
+ const Lt = /* @__PURE__ */ w(xt, [["render", Mt]]), Vt = {}, St = {
306
306
  width: "20",
307
307
  height: "20",
308
308
  viewBox: "0 0 20 20",
@@ -336,7 +336,7 @@ function It(n, e) {
336
336
  }, null, -1)
337
337
  ]));
338
338
  }
339
- const Ht = /* @__PURE__ */ w(Vt, [["render", It]]), Bt = {}, Et = {
339
+ const Bt = /* @__PURE__ */ w(Vt, [["render", It]]), Ht = {}, Et = {
340
340
  fill: "none",
341
341
  height: "20",
342
342
  viewBox: "0 0 21 20",
@@ -354,7 +354,7 @@ function Tt(n, e) {
354
354
  }, null, -1)
355
355
  ]));
356
356
  }
357
- const jt = /* @__PURE__ */ w(Bt, [["render", Tt]]), zt = {}, Ot = {
357
+ const jt = /* @__PURE__ */ w(Ht, [["render", Tt]]), zt = {}, Ot = {
358
358
  width: "20",
359
359
  height: "20",
360
360
  viewBox: "0 0 20 20",
@@ -387,7 +387,7 @@ function At(n, e) {
387
387
  }, null, -1)
388
388
  ]));
389
389
  }
390
- const Zt = /* @__PURE__ */ w(Wt, [["render", At]]), Nt = {}, Ft = {
390
+ const Zt = /* @__PURE__ */ w(Wt, [["render", At]]), Ft = {}, Nt = {
391
391
  width: "20",
392
392
  height: "20",
393
393
  viewBox: "0 0 20 20",
@@ -395,7 +395,7 @@ const Zt = /* @__PURE__ */ w(Wt, [["render", At]]), Nt = {}, Ft = {
395
395
  xmlns: "http://www.w3.org/2000/svg"
396
396
  };
397
397
  function qt(n, e) {
398
- return s(), a("svg", Ft, e[0] || (e[0] = [
398
+ return s(), a("svg", Nt, e[0] || (e[0] = [
399
399
  r("path", {
400
400
  d: "M9 6.5L12.8182 10L9 13.5",
401
401
  stroke: "currentColor",
@@ -410,7 +410,7 @@ function qt(n, e) {
410
410
  }, null, -1)
411
411
  ]));
412
412
  }
413
- const Kt = /* @__PURE__ */ w(Nt, [["render", qt]]), Ut = {}, Yt = {
413
+ const Kt = /* @__PURE__ */ w(Ft, [["render", qt]]), Ut = {}, Yt = {
414
414
  width: "20",
415
415
  height: "20",
416
416
  viewBox: "0 0 20 20",
@@ -583,7 +583,7 @@ const bn = /* @__PURE__ */ w(gn, [["render", kn]]), yn = {}, xn = {
583
583
  fill: "none",
584
584
  xmlns: "http://www.w3.org/2000/svg"
585
585
  };
586
- function Mn(n, e) {
586
+ function $n(n, e) {
587
587
  return s(), a("svg", xn, e[0] || (e[0] = [
588
588
  r("path", {
589
589
  d: "M8.60352 6L12.6035 10L8.60352 14",
@@ -594,7 +594,7 @@ function Mn(n, e) {
594
594
  }, null, -1)
595
595
  ]));
596
596
  }
597
- const $n = /* @__PURE__ */ w(yn, [["render", Mn]]), Ln = {}, Vn = {
597
+ const Mn = /* @__PURE__ */ w(yn, [["render", $n]]), Ln = {}, Vn = {
598
598
  width: "20",
599
599
  height: "20",
600
600
  viewBox: "0 0 20 20",
@@ -612,7 +612,7 @@ function Sn(n, e) {
612
612
  }, null, -1)
613
613
  ]));
614
614
  }
615
- const In = /* @__PURE__ */ w(Ln, [["render", Sn]]), Hn = {}, Bn = {
615
+ const In = /* @__PURE__ */ w(Ln, [["render", Sn]]), Bn = {}, Hn = {
616
616
  fill: "none",
617
617
  height: "20",
618
618
  viewBox: "0 0 20 20",
@@ -620,7 +620,7 @@ const In = /* @__PURE__ */ w(Ln, [["render", Sn]]), Hn = {}, Bn = {
620
620
  xmlns: "http://www.w3.org/2000/svg"
621
621
  };
622
622
  function En(n, e) {
623
- return s(), a("svg", Bn, e[0] || (e[0] = [
623
+ return s(), a("svg", Hn, e[0] || (e[0] = [
624
624
  r("path", {
625
625
  d: "M2 8.36287C2 5.36357 2 3.86353 3.09365 2.93216C4.18729 2.0008 5.94679 2 9.46667 2H10.1457C13.0094 2 15.5096 2 16.504 2.6347C16.7886 2.81604 17.0416 3.03238 17.2551 3.27496C18 4.12281 18 5.3429 18 7.78465V9.80884C18 12.1655 18 13.2798 18 13.2798C18 13.2798 17.9068 15.3029 17.5 16C17.0932 16.6971 16 17.7068 14.8 17.9072C13.6 18.1076 11.7305 17.8652 10.1457 17.8926C9.30684 17.9072 8.3873 17.9072 7.42958 17.9072C5.85016 17.9072 5.05958 17.9072 4.42886 17.7068C3.41427 17.3838 2.61402 16.7022 2.23542 15.8377C2 15.3 2 14.6263 2 13.2798V8.36287Z",
626
626
  stroke: "currentColor",
@@ -651,7 +651,7 @@ function En(n, e) {
651
651
  }, null, -1)
652
652
  ]));
653
653
  }
654
- const Tn = /* @__PURE__ */ w(Hn, [["render", En]]), jn = {}, zn = {
654
+ const Tn = /* @__PURE__ */ w(Bn, [["render", En]]), jn = {}, zn = {
655
655
  fill: "none",
656
656
  height: "20",
657
657
  viewBox: "0 0 20 20",
@@ -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",
@@ -887,7 +887,7 @@ function xo(n, e) {
887
887
  }, null, -1)
888
888
  ]));
889
889
  }
890
- const Mo = /* @__PURE__ */ w(bo, [["render", xo]]), $o = {}, Lo = {
890
+ const $o = /* @__PURE__ */ w(bo, [["render", xo]]), Mo = {}, Lo = {
891
891
  width: "20",
892
892
  height: "20",
893
893
  viewBox: "0 0 20 20",
@@ -919,15 +919,15 @@ function Vo(n, e) {
919
919
  }, null, -1)
920
920
  ]));
921
921
  }
922
- const So = /* @__PURE__ */ w($o, [["render", Vo]]), Io = {}, Ho = {
922
+ const So = /* @__PURE__ */ w(Mo, [["render", Vo]]), Io = {}, Bo = {
923
923
  width: "20",
924
924
  height: "20",
925
925
  viewBox: "0 0 20 20",
926
926
  fill: "none",
927
927
  xmlns: "http://www.w3.org/2000/svg"
928
928
  };
929
- function Bo(n, e) {
930
- return s(), a("svg", Ho, e[0] || (e[0] = [
929
+ function Ho(n, e) {
930
+ return s(), a("svg", Bo, e[0] || (e[0] = [
931
931
  r("path", {
932
932
  "fill-rule": "evenodd",
933
933
  "clip-rule": "evenodd",
@@ -944,7 +944,7 @@ function Bo(n, e) {
944
944
  }, null, -1)
945
945
  ]));
946
946
  }
947
- const Eo = /* @__PURE__ */ w(Io, [["render", Bo]]), To = {}, jo = {
947
+ const Eo = /* @__PURE__ */ w(Io, [["render", Ho]]), To = {}, jo = {
948
948
  fill: "none",
949
949
  height: "20",
950
950
  viewBox: "0 0 20 20",
@@ -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",
@@ -1209,15 +1209,15 @@ function bl(n, e) {
1209
1209
  }, null, -1)
1210
1210
  ]));
1211
1211
  }
1212
- const yl = /* @__PURE__ */ w(_l, [["render", bl]]), xl = {}, Ml = {
1212
+ const yl = /* @__PURE__ */ w(_l, [["render", bl]]), xl = {}, $l = {
1213
1213
  fill: "none",
1214
1214
  height: "20",
1215
1215
  viewBox: "0 0 20 20",
1216
1216
  width: "20",
1217
1217
  xmlns: "http://www.w3.org/2000/svg"
1218
1218
  };
1219
- function $l(n, e) {
1220
- return s(), a("svg", Ml, e[0] || (e[0] = [
1219
+ function Ml(n, e) {
1220
+ return s(), a("svg", $l, e[0] || (e[0] = [
1221
1221
  r("path", {
1222
1222
  d: "M5.10938 6.41406L9.00209 9.00921L12.8948 6.41406",
1223
1223
  stroke: "currentColor",
@@ -1240,7 +1240,7 @@ function $l(n, e) {
1240
1240
  }, null, -1)
1241
1241
  ]));
1242
1242
  }
1243
- const Ll = /* @__PURE__ */ w(xl, [["render", $l]]), Vl = {}, Sl = {
1243
+ const Ll = /* @__PURE__ */ w(xl, [["render", Ml]]), Vl = {}, Sl = {
1244
1244
  fill: "none",
1245
1245
  height: "20",
1246
1246
  viewBox: "0 0 20 20",
@@ -1274,7 +1274,7 @@ function Il(n, e) {
1274
1274
  }, null, -1)
1275
1275
  ]));
1276
1276
  }
1277
- const Hl = /* @__PURE__ */ w(Vl, [["render", Il]]), Bl = {}, El = {
1277
+ const Bl = /* @__PURE__ */ w(Vl, [["render", Il]]), Hl = {}, El = {
1278
1278
  fill: "none",
1279
1279
  height: "20",
1280
1280
  viewBox: "0 0 20 20",
@@ -1305,7 +1305,7 @@ function Tl(n, e) {
1305
1305
  }, null, -1)
1306
1306
  ]));
1307
1307
  }
1308
- const jl = /* @__PURE__ */ w(Bl, [["render", Tl]]), zl = {}, Ol = {
1308
+ const jl = /* @__PURE__ */ w(Hl, [["render", Tl]]), zl = {}, Ol = {
1309
1309
  fill: "none",
1310
1310
  height: "24",
1311
1311
  viewBox: "0 0 25 24",
@@ -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",
@@ -1542,7 +1542,7 @@ function xr(n, e) {
1542
1542
  }, null, -1)
1543
1543
  ]));
1544
1544
  }
1545
- const Mr = /* @__PURE__ */ w(br, [["render", xr]]), $r = {}, Lr = {
1545
+ const $r = /* @__PURE__ */ w(br, [["render", xr]]), Mr = {}, Lr = {
1546
1546
  width: "20",
1547
1547
  height: "20",
1548
1548
  viewBox: "0 0 20 20",
@@ -1570,15 +1570,15 @@ function Vr(n, e) {
1570
1570
  }, null, -1)
1571
1571
  ]));
1572
1572
  }
1573
- const Sr = /* @__PURE__ */ w($r, [["render", Vr]]), Ir = {}, Hr = {
1573
+ const Sr = /* @__PURE__ */ w(Mr, [["render", Vr]]), Ir = {}, Br = {
1574
1574
  width: "20",
1575
1575
  height: "20",
1576
1576
  viewBox: "0 0 20 20",
1577
1577
  fill: "none",
1578
1578
  xmlns: "http://www.w3.org/2000/svg"
1579
1579
  };
1580
- function Br(n, e) {
1581
- return s(), a("svg", Hr, e[0] || (e[0] = [
1580
+ function Hr(n, e) {
1581
+ return s(), a("svg", Br, e[0] || (e[0] = [
1582
1582
  r("path", {
1583
1583
  d: "M14.5833 1.83594C15.7533 1.83594 16.3392 1.83594 16.7592 2.11677C16.9412 2.2384 17.0975 2.39471 17.2192 2.57677C17.5 2.99677 17.5 3.5826 17.5 4.7526V15.4193C17.5 16.5893 17.5 17.1751 17.2192 17.5951C17.0975 17.7772 16.9412 17.9335 16.7592 18.0551C16.3392 18.3359 15.7533 18.3359 14.5833 18.3359C13.4133 18.3359 12.8275 18.3359 12.4075 18.0551C12.2254 17.9335 12.0691 17.7772 11.9475 17.5951C11.6667 17.1751 11.6667 16.5893 11.6667 15.4193V4.7526C11.6667 3.5826 11.6667 2.99677 11.9475 2.57677C12.0691 2.39471 12.2254 2.2384 12.4075 2.11677C12.8275 1.83594 13.4133 1.83594 14.5833 1.83594ZM5.41667 1.83594C6.58667 1.83594 7.1725 1.83594 7.5925 2.11677C7.77456 2.2384 7.93087 2.39471 8.0525 2.57677C8.33333 2.99677 8.33333 3.5826 8.33333 4.7526V15.4193C8.33333 16.5893 8.33333 17.1751 8.0525 17.5951C7.93087 17.7772 7.77456 17.9335 7.5925 18.0551C7.1725 18.3359 6.58667 18.3359 5.41667 18.3359C4.24667 18.3359 3.66083 18.3359 3.24083 18.0551C3.05877 17.9335 2.90246 17.7772 2.78083 17.5951C2.5 17.1751 2.5 16.5893 2.5 15.4193V4.7526C2.5 3.5826 2.5 2.99677 2.78083 2.57677C2.90246 2.39471 3.05877 2.2384 3.24083 2.11677C3.66083 1.83594 4.24667 1.83594 5.41667 1.83594Z",
1584
1584
  stroke: "currentColor",
@@ -1588,7 +1588,7 @@ function Br(n, e) {
1588
1588
  }, null, -1)
1589
1589
  ]));
1590
1590
  }
1591
- const Er = /* @__PURE__ */ w(Ir, [["render", Br]]), Tr = {}, jr = {
1591
+ const Er = /* @__PURE__ */ w(Ir, [["render", Hr]]), Tr = {}, jr = {
1592
1592
  width: "20",
1593
1593
  height: "20",
1594
1594
  viewBox: "0 0 20 20",
@@ -1636,7 +1636,7 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1636
1636
  circleClose: E1,
1637
1637
  close: O1,
1638
1638
  delete: P1,
1639
- download: F1,
1639
+ download: N1,
1640
1640
  edit: Y1,
1641
1641
  forward: J1,
1642
1642
  goTo: ot,
@@ -1646,7 +1646,7 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1646
1646
  pause: gt,
1647
1647
  plusRound: yt,
1648
1648
  prompt: Lt,
1649
- prompter: Ht,
1649
+ prompter: Bt,
1650
1650
  reply: jt,
1651
1651
  save: Dt,
1652
1652
  star: Zt,
@@ -1659,7 +1659,7 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1659
1659
  arrowDown: fn,
1660
1660
  arrowLeft: wn,
1661
1661
  arrowReload: bn,
1662
- arrowRight: $n,
1662
+ arrowRight: Mn,
1663
1663
  arrowTop: In,
1664
1664
  // files icons
1665
1665
  emptyImg: Tn,
@@ -1674,13 +1674,13 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1674
1674
  filterMultiselect: po,
1675
1675
  filterNew: Co,
1676
1676
  filterReset: ko,
1677
- filterSave: Mo,
1677
+ filterSave: $o,
1678
1678
  // input icons
1679
1679
  alertCircle: So,
1680
1680
  alertTriangle: Eo,
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,
@@ -1691,7 +1691,7 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1691
1691
  emailIncoming: gl,
1692
1692
  emailNew: yl,
1693
1693
  emailOutgoing: Ll,
1694
- emailQueue: Hl,
1694
+ emailQueue: Bl,
1695
1695
  emailSpam: jl,
1696
1696
  // others icons
1697
1697
  ivr: Dl,
@@ -1705,12 +1705,12 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1705
1705
  empty: pr,
1706
1706
  excel: Cr,
1707
1707
  freeze: kr,
1708
- listAdd: Mr,
1708
+ listAdd: $r,
1709
1709
  tableSettings: Sr,
1710
1710
  twoColumns: Er,
1711
1711
  twoRows: Or,
1712
1712
  unfreeze: Pr
1713
- }, oe = /* @__PURE__ */ de({
1713
+ }, le = /* @__PURE__ */ ue({
1714
1714
  __name: "VIcon",
1715
1715
  props: {
1716
1716
  name: {},
@@ -1719,24 +1719,24 @@ const Pr = /* @__PURE__ */ w(Rr, [["render", Wr]]), Ar = {
1719
1719
  color: { default: "currentColor" }
1720
1720
  },
1721
1721
  setup(n) {
1722
- const e = n, o = x(() => Ar[e.name]), t = x(() => ({
1722
+ const e = n, o = k(() => Ar[e.name]), t = k(() => ({
1723
1723
  ...e.width && { width: typeof e.width == "number" ? `${e.width}px` : e.width },
1724
1724
  ...e.height && { height: typeof e.height == "number" ? `${e.height}px` : e.height },
1725
1725
  color: e.color
1726
1726
  }));
1727
1727
  return (l, i) => o.value ? (s(), ie(Xe(o.value), {
1728
1728
  key: 0,
1729
- style: fe(t.value)
1729
+ style: pe(t.value)
1730
1730
  }, null, 8, ["style"])) : j("", !0);
1731
1731
  }
1732
- }), 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
- }, We = /* @__PURE__ */ de({
1739
+ }, We = /* @__PURE__ */ ue({
1740
1740
  __name: "VButton",
1741
1741
  props: {
1742
1742
  type: { default: "default" },
@@ -1750,11 +1750,11 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1750
1750
  },
1751
1751
  emits: ["click"],
1752
1752
  setup(n, { emit: e }) {
1753
- const o = n, t = e, l = Qe(), i = x(() => !!(o.icon && o.shape)), c = x(() => {
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()) ?? "";
1757
- }), p = x(() => [
1753
+ const o = n, t = e, l = Qe(), i = k(() => !!(o.icon && o.shape)), c = k(() => {
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
+ }), p = k(() => [
1758
1758
  "vt-button",
1759
1759
  `vt-button--${o.type}`,
1760
1760
  {
@@ -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 = k(() => 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,
@@ -1778,13 +1778,13 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1778
1778
  o.loading ? (s(), ie(je, {
1779
1779
  key: 0,
1780
1780
  class: "vt-button__icon"
1781
- })) : o.icon ? (s(), ie(oe, {
1781
+ })) : o.icon ? (s(), ie(le, {
1782
1782
  key: 1,
1783
1783
  name: o.icon,
1784
1784
  class: "vt-button__icon"
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" }, v1 = /* @__PURE__ */ ue({
1801
1801
  __name: "VModal",
1802
1802
  props: {
1803
1803
  modelValue: { type: Boolean },
@@ -1809,7 +1809,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1809
1809
  },
1810
1810
  emits: ["update:modelValue", "close"],
1811
1811
  setup(n, { emit: e }) {
1812
- const o = n, t = e, l = x(() => ["vt-modal__container", `vt-modal__container--${o.size}`]), i = x(() => ({
1812
+ const o = n, t = e, l = k(() => ["vt-modal__container", `vt-modal__container--${o.size}`]), i = k(() => ({
1813
1813
  zIndex: o.zIndex
1814
1814
  })), c = () => {
1815
1815
  t("update:modelValue", !1), t("close");
@@ -1820,17 +1820,17 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1820
1820
  v.modelValue ? (s(), a("div", {
1821
1821
  key: 0,
1822
1822
  class: "vt-modal__backdrop",
1823
- style: fe(i.value),
1823
+ style: pe(i.value),
1824
1824
  onClick: p
1825
1825
  }, [
1826
1826
  r("div", {
1827
- class: Y(l.value),
1827
+ class: A(l.value),
1828
1828
  onClick: f[0] || (f[0] = me(() => {
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),
1833
- v.showCloseButton ? (s(), ie(oe, {
1832
+ v.title ? (s(), a("h2", Yr, Q(v.title), 1)) : j("", !0),
1833
+ v.showCloseButton ? (s(), ie(le, {
1834
1834
  key: 1,
1835
1835
  name: "close",
1836
1836
  class: "vt-modal__close",
@@ -1838,13 +1838,13 @@ 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)
1845
1845
  ]));
1846
1846
  }
1847
- }), Qr = { class: "vt-pagination" }, Gr = { class: "vt-pagination__info" }, Jr = { class: "vt-pagination__rows-per-page" }, es = ["value"], ts = { class: "vt-pagination__navigation" }, ns = ["disabled"], os = ["onClick"], ls = ["disabled"], rs = /* @__PURE__ */ de({
1847
+ }), Qr = { class: "vt-pagination" }, Gr = { class: "vt-pagination__info" }, Jr = { class: "vt-pagination__rows-per-page" }, es = ["value"], ts = { class: "vt-pagination__navigation" }, ns = ["disabled"], os = ["onClick"], ls = ["disabled"], rs = /* @__PURE__ */ ue({
1848
1848
  __name: "VPagination",
1849
1849
  props: {
1850
1850
  totalItems: {},
@@ -1855,24 +1855,24 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1855
1855
  },
1856
1856
  emits: ["update:currentPage", "update:pageSize", "pageChange", "reloadData"],
1857
1857
  setup(n, { emit: e }) {
1858
- const o = n, t = e, l = x({
1858
+ const o = n, t = e, l = k({
1859
1859
  get: () => o.currentPage,
1860
1860
  set: (B) => t("update:currentPage", B)
1861
- }), i = x({
1861
+ }), i = k({
1862
1862
  get: () => o.pageSize,
1863
1863
  set: (B) => t("update:pageSize", B)
1864
- }), c = x(() => Math.ceil(o.totalItems / i.value)), p = x(() => o.totalItems === 0 ? 0 : (l.value - 1) * i.value + 1), v = x(() => Math.min(l.value * i.value, o.totalItems)), f = x(() => l.value <= 1), 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 = k(() => Math.ceil(o.totalItems / i.value)), p = k(() => o.totalItems === 0 ? 0 : (l.value - 1) * i.value + 1), v = k(() => Math.min(l.value * i.value, o.totalItems)), f = k(() => l.value <= 1), u = k(() => l.value >= c.value), g = k(() => {
1865
+ 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 U = G; U <= te; U++)
1874
+ B.push(U);
1875
+ te < R - 1 && B.push("..."), R > 1 && B.push(R);
1876
1876
  }
1877
1877
  return B;
1878
1878
  }), C = () => {
@@ -1882,16 +1882,16 @@ 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
+ }, K = () => {
1892
1892
  t("reloadData", l.value);
1893
1893
  };
1894
- return ce(
1894
+ return fe(
1895
1895
  () => o.totalItems,
1896
1896
  () => {
1897
1897
  l.value > c.value && c.value > 0 && (l.value = c.value, C());
@@ -1906,40 +1906,40 @@ 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
- (s(!0), a(he, null, pe(B.pageSizeOptions, (O) => (s(), a("option", {
1912
+ (s(!0), a(ce, null, he(B.pageSizeOptions, (O) => (s(), a("option", {
1913
1913
  key: O,
1914
1914
  value: O
1915
- }, G(O), 9, es))), 128))
1915
+ }, Q(O), 9, es))), 128))
1916
1916
  ], 544), [
1917
1917
  [k1, 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
- X(oe, { name: "arrowLeft" })
1928
+ X(le, { name: "arrowLeft" })
1929
1929
  ], 10, ns),
1930
- (s(!0), a(he, null, pe(_.value, (O) => (s(), a("button", {
1930
+ (s(!0), a(ce, null, he(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
- X(oe, { name: "arrowRight" })
1942
+ X(le, { name: "arrowRight" })
1943
1943
  ], 10, ls)
1944
1944
  ]),
1945
1945
  r("div", null, [
@@ -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: K
1952
1952
  }, {
1953
1953
  default: we(() => R[2] || (R[2] = [
1954
- xe("Оновити дані ", -1)
1954
+ ge("Оновити дані ", -1)
1955
1955
  ])),
1956
1956
  _: 1,
1957
1957
  __: [2]
@@ -1959,7 +1959,7 @@ const je = /* @__PURE__ */ w(Zr, [["render", Fr]]), qr = ["disabled", "type", "d
1959
1959
  ])
1960
1960
  ]));
1961
1961
  }
1962
- }), ss = ["for"], is = ["id", "name", "value", "checked", "disabled", "required", ".indeterminate"], Me = /* @__PURE__ */ de({
1962
+ }), ss = ["for"], is = ["id", "name", "value", "checked", "disabled", "required", ".indeterminate"], $e = /* @__PURE__ */ ue({
1963
1963
  __name: "VCheckbox",
1964
1964
  props: {
1965
1965
  modelValue: { type: Boolean, default: void 0 },
@@ -1977,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 = k(() => o.id || l()), c = k(() => 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,36 +2073,119 @@ 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__ */ ue({
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 = k(() => o.id || l()), c = k(() => 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) {
2105
- 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 = () => {
2187
+ function cs(n) {
2188
+ const e = k(() => [...n].sort((l, i) => l.pinnedLeft && !i.pinnedLeft ? -1 : !l.pinnedLeft && i.pinnedLeft || l.pinnedRight && !i.pinnedRight ? 1 : !l.pinnedRight && i.pinnedRight ? -1 : 0)), o = () => {
2106
2189
  const l = e.value.length, i = e.value.filter((p) => p.width || p.minWidth);
2107
2190
  return l - i.length === 0, 150;
2108
2191
  };
@@ -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,8 +2244,8 @@ function us(n) {
2161
2244
  }
2162
2245
  };
2163
2246
  }
2164
- function ds() {
2165
- const n = H({
2247
+ function ps() {
2248
+ const n = I({
2166
2249
  resizingCol: null,
2167
2250
  startX: 0,
2168
2251
  startWidth: 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((K) => {
2260
+ K.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;
2194
- 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(() => {
2275
+ function fs(n, e, o, t) {
2276
+ var N;
2277
+ const l = n.selectionKey || "id", i = I([]), c = I(null), p = I(!1);
2278
+ (N = n.defaultSelection) != null && N.length && (i.value = [...n.defaultSelection]);
2279
+ const v = (E) => E[l], f = (E) => p.value ? !0 : i.value.some((L) => v(L) === v(E)), u = k(() => e.value.filter((E) => f(E)).length), g = k(() => e.value.length > 0 && u.value === e.value.length), C = k(() => {
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) => {
2201
- const N = v(E), re = i.value.some((b) => v(b) === v(E)), m = L !== void 0 ? L : !re;
2283
+ }), z = k(() => p.value ? !0 : g.value && !C.value), Z = k(() => p.value), D = (E, L) => {
2284
+ const Y = v(E), ne = i.value.some((b) => v(b) === v(E)), m = L !== void 0 ? L : !ne;
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) !== Y)), U(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 && !ne ? i.value.push(E) : !m && ne && (i.value = i.value.filter((b) => v(b) !== Y)), n.selectOnClickRow && L === void 0 && ee(m ? E : null), U(E, m));
2290
+ }, F = () => {
2291
+ switch (K()) {
2209
2292
  case "none":
2210
2293
  case "partial":
2211
2294
  B();
@@ -2217,35 +2300,35 @@ 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 = () => {
2221
- const E = [], L = new Set(i.value.map((N) => v(N)));
2222
- i.value.forEach((N) => {
2223
- E.push(N);
2224
- }), e.value.forEach((N) => {
2225
- L.has(v(N)) || E.push(N);
2226
- }), i.value = E, p.value = !1, q();
2303
+ }, K = () => p.value ? "absoluteAll" : g.value ? "allVisible" : u.value > 0 ? "partial" : "none", B = () => {
2304
+ const E = [], L = new Set(i.value.map((Y) => v(Y)));
2305
+ i.value.forEach((Y) => {
2306
+ E.push(Y);
2307
+ }), e.value.forEach((Y) => {
2308
+ L.has(v(Y)) || E.push(Y);
2309
+ }), i.value = E, p.value = !1, U();
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], U(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, U();
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) => {
2240
- const re = {
2320
+ }, G = () => [...i.value], te = (E) => {
2321
+ i.value = [...E], p.value = !1, U();
2322
+ }, U = (E, L, Y = !1) => {
2323
+ const ne = {
2241
2324
  selection: [...i.value],
2242
2325
  row: E,
2243
2326
  selected: L,
2244
- isAllSelected: N || p.value
2327
+ isAllSelected: Y || p.value
2245
2328
  };
2246
- o("selection-change", re);
2329
+ o("selection-change", ne);
2247
2330
  };
2248
- return ce(
2331
+ return fe(
2249
2332
  () => n.defaultSelection,
2250
2333
  (E) => {
2251
2334
  E != null && E.length && (i.value = [...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,7 +2360,7 @@ 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;
@@ -2288,7 +2371,7 @@ const ps = (n, e, o = "asc") => {
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
+ }, s1 = (n) => n instanceof Date ? !isNaN(n.getTime()) : typeof n == "string" && /\d{4}-\d{2}-\d{2}|\//.test(n) ? !isNaN(new Date(n).getTime()) : !1, Cs = (n, e, o) => {
2292
2375
  n.sortable && o({
2293
2376
  prop: n.prop,
2294
2377
  direction: e
@@ -2299,11 +2382,11 @@ const ps = (n, e, o = "asc") => {
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);
@@ -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":
@@ -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 = I(!1), C = I(!0), z = I(!1), Z = I(null), D = I([]), F = I({
2372
2455
  top: "0px",
2373
2456
  left: "0px",
2374
2457
  transformOrigin: "center top"
2375
- }), U = () => {
2458
+ }), K = () => {
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 N = a1(n.value);
2461
+ C.value !== N && (C.value = N, !N && g.value ? (z.value = !0, g.value = !1, f == null || f(!1)) : N && z.value && !g.value && (z.value = !1, g.value = !0, B(), f == null || f(!0)));
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 Ce(), !n.value || !e.value) return;
2464
+ const N = n.value.getBoundingClientRect(), E = e.value.getBoundingClientRect(), L = _s(N, E, l);
2465
+ F.value = {
2383
2466
  ...L,
2384
- minWidth: `${ee.width}px`
2467
+ minWidth: `${N.width}px`
2385
2468
  };
2386
2469
  }, R = () => {
2387
- (_.value || z.value) && (U(), _.value && B(), d == null || d());
2470
+ (g.value || z.value) && (K(), 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((N) => {
2473
+ N.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((N) => {
2477
+ N.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 || !a1(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
+ }, U = () => {
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: U,
2425
2508
  updatePosition: B,
2426
2509
  // Internal methods
2427
- checkParentVisibility: U,
2510
+ checkParentVisibility: K,
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 C1 = Symbol("dropdown-context"), w1 = /* @__PURE__ */ ue({
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 = I(), c = I(), p = I(), v = I(!1), f = I(!1), u = I(null), { visible: g, parentVisible: C, dropdownPosition: z, show: Z, hide: D, toggle: F } = m1(
2448
2531
  c,
2449
2532
  p,
2450
2533
  {
@@ -2456,10 +2539,10 @@ 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
+ ), K = () => {
2543
+ u.value && (clearTimeout(u.value), u.value = null);
2461
2544
  }, B = () => {
2462
- U(), d.value = setTimeout(() => {
2545
+ K(), u.value = setTimeout(() => {
2463
2546
  !v.value && !f.value && D();
2464
2547
  }, t.hideTimeout);
2465
2548
  };
@@ -2470,69 +2553,69 @@ const C1 = Symbol("dropdown-context"), w1 = /* @__PURE__ */ de({
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, K(), 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, K());
2563
+ }, U = () => {
2481
2564
  t.trigger === "hover" && (f.value = !1, B());
2482
- }, ee = (L) => {
2483
- var re, m;
2484
- if (!_.value) return;
2485
- const N = L.target;
2486
- (re = i.value) != null && re.contains(N) || (m = p.value) != null && m.contains(N) || D();
2487
- }, E = x(() => ({
2565
+ }, N = (L) => {
2566
+ var ne, m;
2567
+ if (!g.value) return;
2568
+ const Y = L.target;
2569
+ (ne = i.value) != null && ne.contains(Y) || (m = p.value) != null && m.contains(Y) || D();
2570
+ }, E = k(() => ({
2488
2571
  ...z.value,
2489
2572
  position: "absolute",
2490
2573
  zIndex: 2e3,
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", N);
2499
2582
  }), Ie(() => {
2500
- document.removeEventListener("click", ee), U();
2501
- }), (L, N) => (s(), a("div", {
2583
+ document.removeEventListener("click", N), K();
2584
+ }), (L, Y) => (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
+ oe(g) && oe(C) ? (s(), ie(Je, {
2517
2600
  key: 0,
2518
2601
  to: "body"
2519
2602
  }, [
2520
2603
  r("div", {
2521
2604
  ref_key: "menuRef",
2522
2605
  ref: p,
2523
- style: fe(E.value),
2606
+ style: pe(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: U,
2610
+ onClick: Y[0] || (Y[0] = me(() => {
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));
2534
2617
  }
2535
- }), Ue = /* @__PURE__ */ de({
2618
+ }), Ue = /* @__PURE__ */ ue({
2536
2619
  __name: "VDropdownItem",
2537
2620
  props: {
2538
2621
  command: {},
@@ -2548,7 +2631,7 @@ const C1 = Symbol("dropdown-context"), w1 = /* @__PURE__ */ de({
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,24 +2639,24 @@ 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 = I(!0), i = this.baseZIndex + this.modalStack.length * 10, c = b1({
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(
@@ -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" }, $s = { class: "vt-columns-selector__panel" }, Ms = ["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
+ }, Bs = {
2649
2732
  key: 0,
2650
2733
  class: "vt-columns-selector__pinned-note"
2651
- }, Ss = { class: "vt-modal__content-button" }, Is = /* @__PURE__ */ de({
2734
+ }, Hs = { class: "vt-modal__content-button" }, Es = /* @__PURE__ */ ue({
2652
2735
  __name: "VTableColumnSelector",
2653
2736
  props: {
2654
2737
  columns: {},
@@ -2656,46 +2739,46 @@ const ye = new ws(), gs = {
2656
2739
  },
2657
2740
  emits: ["update-columns"],
2658
2741
  setup(n, { emit: e }) {
2659
- const o = n, t = e, l = H([]), i = H(/* @__PURE__ */ new Set()), c = H(-1), p = H(-1), v = H("before"), f = x(() => {
2742
+ const o = n, t = e, l = I([]), i = I(/* @__PURE__ */ new Set()), c = I(-1), p = I(-1), v = I("before"), f = k(() => {
2660
2743
  const m = {};
2661
2744
  return o.columnsSelector.forEach((b) => {
2662
2745
  if (b.name === "removed")
2663
2746
  return;
2664
- const y = b.columns.map((T) => T.prop), S = l.value.filter((T) => y.includes(T.prop));
2747
+ const x = b.columns.map((T) => T.prop), S = l.value.filter((T) => x.includes(T.prop));
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 = k(() => 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++)
2671
2754
  m[S].pinnedLeft && (b = S);
2672
- let y = m.length;
2755
+ let x = m.length;
2673
2756
  for (let S = 0; S < m.length; S++)
2674
2757
  if (m[S].pinnedRight) {
2675
- y = S;
2758
+ x = S;
2676
2759
  break;
2677
2760
  }
2678
2761
  return {
2679
2762
  minIndex: b + 1,
2680
- maxIndex: y - 1
2763
+ maxIndex: x - 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) => {
2686
- const y = l.value[b];
2687
- if (!C(y)) {
2769
+ const x = l.value[b];
2770
+ if (!C(x)) {
2688
2771
  m.preventDefault();
2689
2772
  return;
2690
2773
  }
2691
- 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) => {
2774
+ c.value = b, m.dataTransfer && (m.dataTransfer.effectAllowed = "move", m.dataTransfer.setData("text/plain", x.prop)), document.body.style.cursor = "grabbing";
2775
+ }, F = (m, b) => {
2693
2776
  if (c.value === -1) return;
2694
2777
  m.preventDefault();
2695
- 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 = () => {
2778
+ const x = m.currentTarget.getBoundingClientRect(), S = m.clientY, T = x.top + x.height / 2;
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
+ }, K = () => {
2699
2782
  setTimeout(() => {
2700
2783
  c.value === -1 && (p.value = -1);
2701
2784
  }, 50);
@@ -2704,144 +2787,144 @@ const ye = new ws(), gs = {
2704
2787
  O();
2705
2788
  return;
2706
2789
  }
2707
- 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) {
2790
+ const x = m.currentTarget.getBoundingClientRect(), S = m.clientY, T = x.top + x.height / 2;
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
- l.value.some((y) => y.prop === m.prop) || l.value.push({ ...m });
2811
+ l.value.some((x) => x.prop === m.prop) || l.value.push({ ...m });
2729
2812
  else {
2730
- if (_(m))
2813
+ if (g(m))
2731
2814
  return;
2732
- l.value = l.value.filter((y) => y.prop !== m.prop);
2815
+ l.value = l.value.filter((x) => x.prop !== m.prop);
2733
2816
  }
2734
- }, q = (m, b) => {
2817
+ }, U = (m, b) => {
2735
2818
  if (b)
2736
- m.columns.forEach((y) => {
2737
- l.value.some((S) => S.prop === y.prop) || l.value.push({ ...y });
2819
+ m.columns.forEach((x) => {
2820
+ l.value.some((S) => S.prop === x.prop) || l.value.push({ ...x });
2738
2821
  });
2739
2822
  else {
2740
- const y = [];
2823
+ const x = [];
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) && x.push(T);
2744
2827
  }), l.value = l.value.filter(
2745
- (S) => !y.some((T) => T.prop === S.prop)
2828
+ (S) => !x.some((T) => T.prop === S.prop)
2746
2829
  );
2747
2830
  }
2748
- }, ee = (m) => l.value.some((b) => b.prop === m.prop), E = (m) => {
2749
- const b = l.value.find((y) => y.prop === m.prop);
2750
- return !b || !_(b);
2831
+ }, N = (m) => l.value.some((b) => b.prop === m.prop), E = (m) => {
2832
+ const b = l.value.find((x) => x.prop === m.prop);
2833
+ return !b || !g(b);
2751
2834
  }, L = (m) => {
2752
2835
  i.value.has(m) ? i.value.delete(m) : i.value.add(m);
2753
- }, N = () => {
2754
- t("update-columns", [...l.value]), ye.close();
2755
- }, re = () => {
2756
- ye.close();
2836
+ }, Y = () => {
2837
+ t("update-columns", [...l.value]), xe.close();
2838
+ }, ne = () => {
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, [
2763
- (s(!0), a(he, null, pe(l.value, (y, S) => (s(), a("div", {
2764
- key: y.prop,
2765
- class: Y(te(S)),
2766
- draggable: C(y),
2841
+ return _e(() => {
2842
+ G();
2843
+ }), (m, b) => (s(), a("div", ys, [
2844
+ r("div", xs, [
2845
+ r("div", $s, [
2846
+ (s(!0), a(ce, null, he(l.value, (x, S) => (s(), a("div", {
2847
+ key: x.prop,
2848
+ class: A(ee(S)),
2849
+ draggable: C(x),
2767
2850
  onDragstart: (T) => D(T, S),
2768
- onDragover: (T) => Z(T, S),
2769
- onDragleave: U,
2851
+ onDragover: (T) => F(T, S),
2852
+ onDragleave: K,
2770
2853
  onDrop: (T) => B(T, S),
2771
2854
  onDragend: R
2772
2855
  }, [
2773
- X(oe, {
2774
- name: C(y) ? "columnsMove" : "freeze",
2775
- class: Y(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": C(y) }])
2856
+ X(le, {
2857
+ name: C(x) ? "columnsMove" : "freeze",
2858
+ class: A(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": C(x) }])
2776
2859
  }, null, 8, ["name", "class"]),
2777
- X(Me, {
2778
- label: y.label,
2860
+ X($e, {
2861
+ label: x.label,
2779
2862
  checked: !0,
2780
- disabled: _(y),
2781
- onChange: (T) => J(y, T),
2863
+ disabled: g(x),
2864
+ onChange: (T) => te(x, T),
2782
2865
  onClick: b[0] || (b[0] = me(() => {
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(x) ? (s(), a("span", Ls, "pinned")) : j("", !0)
2869
+ ], 42, Ms))), 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(ce, null, he(u.value, (x) => {
2790
2873
  var S, T;
2791
2874
  return s(), a("div", {
2792
- key: y.name,
2875
+ key: x.name,
2793
2876
  class: "vt-columns-selector__group"
2794
2877
  }, [
2795
2878
  r("div", {
2796
2879
  class: "vt-columns-selector__group-header",
2797
- onClick: (F) => L(y.name)
2880
+ onClick: (q) => L(x.name)
2798
2881
  }, [
2799
- X(Me, {
2800
- label: y.label,
2801
- checked: ((S = f.value[y.name]) == null ? void 0 : S.checked) || !1,
2802
- indeterminate: ((T = f.value[y.name]) == null ? void 0 : T.indeterminate) || !1,
2803
- onChange: (F) => q(y, F),
2882
+ X($e, {
2883
+ label: x.label,
2884
+ checked: ((S = f.value[x.name]) == null ? void 0 : S.checked) || !1,
2885
+ indeterminate: ((T = f.value[x.name]) == null ? void 0 : T.indeterminate) || !1,
2886
+ onChange: (q) => U(x, q),
2804
2887
  onClick: b[1] || (b[1] = me(() => {
2805
2888
  }, ["stop"]))
2806
2889
  }, null, 8, ["label", "checked", "indeterminate", "onChange"]),
2807
- y.icon ? (s(), ie(oe, {
2890
+ x.icon ? (s(), ie(le, {
2808
2891
  key: 0,
2809
- name: y.icon,
2892
+ name: x.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(x.name) ? (s(), a("div", Is, [
2897
+ (s(!0), a(ce, null, he(x.columns, (q) => (s(), a("div", {
2898
+ key: q.prop,
2816
2899
  class: "vt-columns-selector__group-column"
2817
2900
  }, [
2818
- X(Me, {
2819
- label: F.label,
2820
- checked: ee(F),
2821
- disabled: !E(F),
2822
- onChange: (se) => J(F, se)
2901
+ X($e, {
2902
+ label: q.label,
2903
+ checked: N(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", Bs, " (закріплена) "))
2825
2908
  ]))), 128))
2826
2909
  ])) : j("", !0)
2827
2910
  ]);
2828
2911
  }), 128))
2829
2912
  ])
2830
2913
  ]),
2831
- r("div", Ss, [
2832
- X(We, { onClick: re }, {
2914
+ r("div", Hs, [
2915
+ X(We, { onClick: ne }, {
2833
2916
  default: we(() => b[2] || (b[2] = [
2834
- xe("Скасувати", -1)
2917
+ ge("Скасувати", -1)
2835
2918
  ])),
2836
2919
  _: 1,
2837
2920
  __: [2]
2838
2921
  }),
2839
2922
  X(We, {
2840
2923
  type: "primary",
2841
- onClick: N
2924
+ onClick: Y
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__ */ ue({
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((K) => C.add(K.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 K;
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
+ (K = o.columnsSelector) == null || K.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(w1, {
2917
3000
  trigger: "click",
2918
3001
  placement: "bottom-start",
2919
3002
  onCommand: i
@@ -2921,40 +3004,40 @@ const ye = new ws(), gs = {
2921
3004
  dropdown: we(() => [
2922
3005
  X(Ue, { command: "pin" }, {
2923
3006
  default: we(() => [
2924
- X(oe, {
3007
+ X(le, {
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
- X(oe, { name: "columnInsert" }),
2934
- _[0] || (_[0] = r("div", null, "Колонки", -1))
3016
+ X(le, { name: "columnInsert" }),
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, [
2942
- X(oe, { name: "listBullet" })
3024
+ r("div", Ts, [
3025
+ X(le, { 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__ */ ue({
2958
3041
  __name: "VTable",
2959
3042
  props: /* @__PURE__ */ l1({
2960
3043
  data: {},
@@ -2982,331 +3065,331 @@ const ye = new ws(), gs = {
2982
3065
  }),
2983
3066
  emits: /* @__PURE__ */ l1(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
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 = y1(n, "columns"), c = I({}), p = I(), v = x1([]), f = I(t.defaultSort || null), u = k(() => ws(t.data || [], f.value, v)), g = k(() => i.value !== void 0), C = k(() => t.data && t.data.length > 0), z = I(!1), Z = I(0);
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), K = () => {
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
- ce(
3073
+ fe(
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
- ), ce(
3079
+ ), fe(
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
3085
  ), 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 = () => ({
3086
+ const { sortedColumns: B, getDefaultColumnWidth: R, getStickyOffset: O } = cs(v), { getTableWrapperStyle: ee, getColumnStyle: G, getHeaderStyle: te, getFooterStyle: U } = hs(t), { onMouseDown: N } = ps(), E = k(() => t.allData || t.data), L = t.selectable ? fs(t, u, l, E) : null, Y = () => ({
3004
3087
  width: `${Ke}px`,
3005
3088
  minWidth: `${Ke}px`,
3006
3089
  maxWidth: `${Ke}px`,
3007
3090
  left: "0px",
3008
3091
  position: "sticky",
3009
3092
  zIndex: 10
3010
- }), re = () => {
3011
- const g = N();
3093
+ }), ne = () => {
3094
+ const _ = Y();
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 _ = Y();
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, y = 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, H = W - V - d <= y, de = W - V - d <= 5;
3112
+ Z.value = V, P && (H || de) && (z.value = !0, l("infinity-scroll"), setTimeout(() => {
3030
3113
  z.value = !1;
3031
3114
  }, 1e3));
3032
3115
  }, 50);
3033
- }, y = () => {
3116
+ }, x = () => {
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,
3046
- direction: ((k = f.value) == null ? void 0 : k.direction) || null,
3047
- prop: g.prop,
3048
- sortedData: d.value
3124
+ const S = (_, V) => {
3125
+ Cs(_, V, (W) => {
3126
+ var d, y;
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: _,
3129
+ direction: ((y = f.value) == null ? void 0 : y.direction) || null,
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) {
3065
- const k = [...i.value];
3066
- k[u] = { ...k[u], ...V }, i.value = k;
3145
+ if (Object.assign(v[W], V), g.value && i.value) {
3146
+ const d = i.value.findIndex((y) => y.prop === _);
3147
+ if (d !== -1) {
3148
+ const y = [...i.value];
3149
+ y[d] = { ...y[d], ...V }, i.value = y;
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
+ }, Be = (_, 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
+ N(_, 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
+ }, He = (_, V) => G(_, V, O, R), Re = (_, V) => te(_, V, O, R), Ee = (_, V) => U(_, 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
- }, M = x(() => {
3175
+ }, $ = k(() => {
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, y) => (W[d.prop] = V[y], 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((y) => y[W.prop]);
3188
+ return V[W.prop] = d.every((y) => typeof y == "number") ? d.reduce((y, J) => y + J, 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
+ }), M = k(() => 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
+ K();
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
- resetInfinityScroll: y
3140
- }), (g, V) => {
3141
- var u, k, K, P;
3222
+ resetInfinityScroll: x
3223
+ }), (_, V) => {
3224
+ var d, y, J, 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: pe(oe(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
- style: fe(re())
3243
+ style: pe(ne())
3161
3244
  }, [
3162
- r("div", js, [
3163
- X(Me, {
3164
- checked: (u = ne(L)) == null ? void 0 : u.isAllSelected.value,
3165
- 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,
3245
+ r("div", Rs, [
3246
+ X($e, {
3247
+ checked: (d = oe(L)) == null ? void 0 : d.isAllSelected.value,
3248
+ indeterminate: (y = oe(L)) == null ? void 0 : y.isIndeterminate.value,
3249
+ "is-double": (P = (J = oe(L)) == null ? void 0 : J.isDoubleCheck) == null ? void 0 : P.value,
3167
3250
  onChange: Oe
3168
3251
  }, null, 8, ["checked", "indeterminate", "is-double"])
3169
3252
  ])
3170
3253
  ], 6)) : j("", !0),
3171
- (s(!0), a(he, null, pe(ne(B), (I, ue) => (s(), a("th", {
3172
- key: I.prop,
3254
+ (s(!0), a(ce, null, he(oe(B), (H, de) => (s(), a("th", {
3255
+ key: H.prop,
3173
3256
  ref_for: !0,
3174
- ref: (be) => He(be, I.prop),
3175
- class: Y([
3257
+ ref: (ye) => Be(ye, H.prop),
3258
+ class: A([
3176
3259
  "vt-table__th",
3177
3260
  {
3178
3261
  "vt-table__th--sticky": t.maxHeight,
3179
- "vt-table__th--pinned-left": I.pinnedLeft,
3180
- "vt-table__th--pinned-right": I.pinnedRight,
3181
- "vt-table__th--sortable": I.sortable
3262
+ "vt-table__th--pinned-left": H.pinnedLeft,
3263
+ "vt-table__th--pinned-right": H.pinnedRight,
3264
+ "vt-table__th--sortable": H.sortable
3182
3265
  }
3183
3266
  ]),
3184
- style: fe(Re(I, ue))
3267
+ style: pe(Re(H, de))
3185
3268
  }, [
3186
- r("div", zs, [
3187
- r("div", Os, G(I.label), 1),
3188
- I.sortable ? (s(), a("div", Rs, [
3189
- X(oe, {
3190
- class: Y(ne(i1)(I, f.value).asc),
3269
+ r("div", Ds, [
3270
+ r("div", Ws, Q(H.label), 1),
3271
+ H.sortable ? (s(), a("div", Ps, [
3272
+ X(le, {
3273
+ class: A(oe(i1)(H, f.value).asc),
3191
3274
  name: "arrowTop",
3192
- onClick: me((be) => S(I, "asc"), ["stop"])
3275
+ onClick: me((ye) => S(H, "asc"), ["stop"])
3193
3276
  }, null, 8, ["class", "onClick"]),
3194
- X(oe, {
3195
- class: Y(ne(i1)(I, f.value).desc),
3277
+ X(le, {
3278
+ class: A(oe(i1)(H, f.value).desc),
3196
3279
  name: "arrowDown",
3197
- onClick: me((be) => S(I, "desc"), ["stop"])
3280
+ onClick: me((ye) => S(H, "desc"), ["stop"])
3198
3281
  }, null, 8, ["class", "onClick"])
3199
3282
  ])) : j("", !0),
3200
- I.actionColumn ? (s(), ie(Bs, {
3283
+ H.actionColumn ? (s(), ie(js, {
3201
3284
  key: 1,
3202
- "all-columns": ne(B),
3203
- column: I,
3285
+ "all-columns": oe(B),
3286
+ column: H,
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
- "data-resizer": I.prop,
3293
+ "data-resizer": H.prop,
3211
3294
  class: "vt-table__resizer",
3212
- onMousedown: (be) => Ve(be, I)
3213
- }, null, 40, Ds)
3295
+ onMousedown: (ye) => Ve(ye, H)
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(ce, { key: 1 }, he(u.value, (H, de) => {
3302
+ var ye, n1, o1;
3220
3303
  return s(), a("tr", {
3221
- key: Z(I, ue),
3222
- class: Y([
3304
+ key: F(H, de),
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 = oe(L)) == null ? void 0 : ye.isRowSelected(H),
3309
+ "vt-table__row--current": ((n1 = oe(L)) == null ? void 0 : n1.currentRow.value) === H,
3227
3310
  "vt-table__row--clickable": t.selectOnClickRow || t.highlightCurrentRow
3228
3311
  },
3229
- ...Se(I, ue)
3312
+ ...Se(H, de)
3230
3313
  ]),
3231
- onClick: (le) => Le(I, ne(B)[0], le)
3314
+ onClick: (re) => Le(H, oe(B)[0], re)
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
- style: fe(N())
3321
+ style: pe(Y())
3239
3322
  }, [
3240
- r("div", Ns, [
3241
- X(Me, {
3242
- checked: (o1 = ne(L)) == null ? void 0 : o1.isRowSelected(I),
3243
- onChange: (le, Ne) => ze(le, I, Ne)
3323
+ r("div", Ks, [
3324
+ X($e, {
3325
+ checked: (o1 = oe(L)) == null ? void 0 : o1.isRowSelected(H),
3326
+ onChange: (re, Fe) => ze(re, H, 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(ce, null, he(oe(B), (re, Fe) => (s(), a("td", {
3331
+ key: `${F(H, de)}-${re.prop}`,
3249
3332
  ref_for: !0,
3250
- ref: (Fe) => He(Fe, le.prop),
3251
- class: Y([
3333
+ ref: (Ne) => Be(Ne, re.prop),
3334
+ class: A([
3252
3335
  "vt-table__td",
3253
3336
  {
3254
- "vt-table__td--pinned-left": le.pinnedLeft,
3255
- "vt-table__td--pinned-right": le.pinnedRight
3337
+ "vt-table__td--pinned-left": re.pinnedLeft,
3338
+ "vt-table__td--pinned-right": re.pinnedRight
3256
3339
  }
3257
3340
  ]),
3258
- style: fe(Be(le, Ne))
3341
+ style: pe(He(re, 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
+ re.renderSlot ? (s(), ie(Xe(() => oe(vs)(re.renderSlot, { row: H, column: re, value: H[re.prop], index: de })), { key: 0 })) : (s(), a("span", Ys, Q(H[re.prop]), 1))
3262
3345
  ])), [
3263
- [W, le.showOverflowTooltip ? h(I, le) : null]
3346
+ [W, re.showOverflowTooltip ? h(H, re) : null]
3264
3347
  ]),
3265
3348
  r("div", {
3266
- "data-resizer": le.prop,
3349
+ "data-resizer": re.prop,
3267
3350
  class: "vt-table__resizer",
3268
- onMousedown: (Fe) => Ve(Fe, le)
3269
- }, null, 40, Ks)
3351
+ onMousedown: (Ne) => Ve(Ne, re)
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
- colspan: ne(B).length + (t.selectable ? 1 : 0),
3357
+ colspan: oe(B).length + (t.selectable ? 1 : 0),
3275
3358
  class: "vt-table__empty-cell"
3276
3359
  }, [
3277
- r("div", As, [
3278
- X(oe, {
3360
+ r("div", Ns, [
3361
+ X(le, {
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
+ M.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
- style: fe(m())
3377
+ style: pe(m())
3295
3378
  }, V[1] || (V[1] = [
3296
3379
  r("div", { class: "vt-table__cell-content vt-table__cell-content--summary" }, null, -1)
3297
3380
  ]), 4)) : j("", !0),
3298
- (s(!0), a(he, null, pe(ne(B), (I, ue) => (s(), a("td", {
3299
- key: I.prop,
3300
- class: Y([
3381
+ (s(!0), a(ce, null, he(oe(B), (H, de) => (s(), a("td", {
3382
+ key: H.prop,
3383
+ class: A([
3301
3384
  "vt-table__td",
3302
3385
  {
3303
- "vt-table__td--pinned-left": I.pinnedLeft,
3304
- "vt-table__td--pinned-right": I.pinnedRight
3386
+ "vt-table__td--pinned-left": H.pinnedLeft,
3387
+ "vt-table__td--pinned-right": H.pinnedRight
3305
3388
  }
3306
3389
  ]),
3307
- style: fe(Ee(I, ue))
3390
+ style: pe(Ee(H, de))
3308
3391
  }, [
3309
- r("div", Ys, G(M.value[I.prop]), 1)
3392
+ r("div", Gs, Q($.value[H.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__ */ ue({
3318
3401
  __name: "VTableColumn",
3319
3402
  props: {
3320
3403
  prop: {},
@@ -3352,12 +3435,12 @@ 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;
3359
3442
  }
3360
- }), ce(
3443
+ }), fe(
3361
3444
  () => [
3362
3445
  e.width,
3363
3446
  e.minWidth,
@@ -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
+ }, g1 = /* @__PURE__ */ ue({
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 = I(), c = I(), p = I(!1), v = I(!1), f = I(), u = I([]), g = I(!0), C = I(!1), z = {
3464
3547
  email: (h) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h),
3465
3548
  url: (h) => {
3466
3549
  try {
@@ -3471,37 +3554,37 @@ const ye = new ws(), gs = {
3471
3554
  },
3472
3555
  number: (h) => !isNaN(Number(h)) && isFinite(Number(h)),
3473
3556
  required: (h) => h !== "" && h !== null && h !== void 0,
3474
- minlength: (h, M) => String(h).length >= M,
3475
- maxlength: (h, M) => String(h).length <= M,
3476
- min: (h, M) => {
3477
- const $ = Number(h);
3478
- return !isNaN($) && $ >= M;
3557
+ minlength: (h, $) => String(h).length >= $,
3558
+ maxlength: (h, $) => String(h).length <= $,
3559
+ min: (h, $) => {
3560
+ const M = Number(h);
3561
+ return !isNaN(M) && M >= $;
3479
3562
  },
3480
- max: (h, M) => {
3481
- const $ = Number(h);
3482
- return !isNaN($) && $ <= M;
3563
+ max: (h, $) => {
3564
+ const M = Number(h);
3565
+ return !isNaN(M) && M <= $;
3483
3566
  },
3484
- pattern: (h, M) => new RegExp(M).test(h),
3485
- custom: (h, M) => M(h)
3486
- }, A = (h) => {
3487
- const M = [], $ = String(h || "");
3488
- if (t.required && !z.required(h) && M.push(t.requiredMessage || "Це поле є обов'язковим"), !$ && !t.required) {
3489
- d.value = M, _.value = M.length === 0;
3567
+ pattern: (h, $) => new RegExp($).test(h),
3568
+ custom: (h, $) => $(h)
3569
+ }, Z = (h) => {
3570
+ const $ = [], M = String(h || "");
3571
+ if (t.required && !z.required(h) && $.push(t.requiredMessage || "Це поле є обов'язковим"), !M && !t.required) {
3572
+ u.value = $, g.value = $.length === 0;
3490
3573
  return;
3491
3574
  }
3492
3575
  switch (t.type) {
3493
3576
  case "email":
3494
- $ && !z.email($) && M.push(t.emailMessage || "Введіть коректну email адресу");
3577
+ M && !z.email(M) && $.push(t.emailMessage || "Введіть коректну email адресу");
3495
3578
  break;
3496
3579
  case "url":
3497
- $ && !z.url($) && M.push(t.urlMessage || "Введіть коректний URL");
3580
+ M && !z.url(M) && $.push(t.urlMessage || "Введіть коректний URL");
3498
3581
  break;
3499
3582
  case "number":
3500
- $ && !z.number($) && M.push(t.numberMessage || "Введіть коректне число");
3583
+ M && !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 && M && !z.minlength(M, t.minlength) && $.push(t.minlengthMessage || `Мінімальна довжина: ${t.minlength} символів`), t.maxlength && M && !z.maxlength(M, t.maxlength) && $.push(t.maxlengthMessage || `Максимальна довжина: ${t.maxlength} символів`), t.type === "number" && M && z.number(M) && (t.min !== void 0 && !z.min(M, t.min) && $.push(t.minMessage || `Мінімальне значення: ${t.min}`), t.max !== void 0 && !z.max(M, t.max) && $.push(t.maxMessage || `Максимальне значення: ${t.max}`)), t.pattern && M && !z.pattern(M, t.pattern) && $.push(t.patternMessage || "Значення не відповідає вимогам формату"), t.customValidator && !z.custom(h, t.customValidator) && $.push(t.customValidatorMessage || "Значення не проходить валідацію"), u.value = $, g.value = $.length === 0, l("validation", { isValid: g.value, errors: $ });
3587
+ }, D = k(() => t.type === "textarea"), F = k(() => {
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
+ }), K = k(() => {
3598
+ if (t.prefixIcon || F.value) return null;
3516
3599
  switch (t.status) {
3517
3600
  case "error":
3518
3601
  return "alertCircle";
@@ -3521,14 +3604,14 @@ 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 = k(() => !!t.prefixIcon || !!F.value || !!K.value), R = k(() => t.prefixIcon || F.value || K.value), O = k(() => {
3610
+ const h = "vt-input__icon", $ = t.status !== "default" ? t.status : g.value ? "default" : "error";
3528
3611
  if (t.prefixIcon)
3529
3612
  return h;
3530
- if (U.value)
3531
- switch (M) {
3613
+ if (K.value)
3614
+ switch ($) {
3532
3615
  case "error":
3533
3616
  return `${h} vt-input__icon--error`;
3534
3617
  case "warning":
@@ -3539,67 +3622,67 @@ 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 = k(() => ["email", "url", "password"].includes(t.type) && t.suffixIcon ? t.clearable || t.showPassword : !!t.suffixIcon || t.clearable || t.showPassword), G = k(() => ["email", "url", "password"].includes(t.type) ? null : t.suffixIcon), te = k(
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
+ ), U = k(() => t.status !== "default" ? t.status : g.value ? "default" : "error"), N = k(() => [
3545
3628
  "vt-input",
3546
3629
  t.size ? `vt-input--${t.size}` : "vt-input--medium",
3547
- `vt-input--${q.value}`,
3630
+ `vt-input--${U.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) => {
3557
- let $ = h.target.value;
3558
- if (t.type === "number" && $ !== "") {
3559
- const ae = Number($);
3560
- isNaN(ae) || ($ = ae);
3639
+ ]), E = k(() => t.type === "password" ? v.value ? "text" : "password" : t.type === "textarea" ? "text" : t.type), L = k(() => t.errorMessage ? t.errorMessage : u.value.length > 0 ? u.value[0] : ""), Y = k(() => t.autosize && typeof t.autosize == "object" && t.autosize.maxRows ? "none" : t.resize), ne = (h) => {
3640
+ let M = h.target.value;
3641
+ if (t.type === "number" && M !== "") {
3642
+ const ae = Number(M);
3643
+ isNaN(ae) || (M = ae);
3561
3644
  }
3562
- l("update:modelValue", $), l("input", h), t.validateOnInput && A($), D.value && t.autosize && !C.value && ve(() => F());
3645
+ l("update:modelValue", M), l("input", h), t.validateOnInput && Z(M), D.value && t.autosize && !C.value && Ce(() => q());
3563
3646
  }, m = (h) => {
3564
3647
  if (l("change", h), !t.validateOnInput) {
3565
- const M = h.target;
3566
- A(M.value);
3648
+ const $ = h.target;
3649
+ Z($.value);
3567
3650
  }
3568
3651
  }, b = (h) => {
3569
3652
  p.value = !0, l("focus", h);
3570
- }, y = (h) => {
3653
+ }, x = (h) => {
3571
3654
  if (p.value = !1, l("blur", h), t.validateOnBlur) {
3572
- const M = h.target;
3573
- A(M.value);
3655
+ const $ = h.target;
3656
+ Z($.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, Ce(() => {
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
- const h = c.value, M = h.style.height;
3668
+ const h = c.value, $ = h.style.height;
3586
3669
  h.style.height = "auto";
3587
- let $ = h.scrollHeight;
3670
+ let M = 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
+ M = Math.max(be, Math.min(M, Te));
3591
3674
  }
3592
- const ae = `${$}px`;
3593
- ae !== M && (f.value = ae, h.style.height = ae);
3675
+ const ae = `${M}px`;
3676
+ ae !== $ && (f.value = ae, h.style.height = ae);
3594
3677
  }, se = (h) => {
3595
- if (!c.value || !(N.value !== "none")) return;
3678
+ if (!c.value || !(Y.value !== "none")) return;
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
- }), ce(
3713
+ }), fe(
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 && Ce(q), t.validateOnInput && Z(h || "");
3634
3717
  }
3635
- ), ce(
3718
+ ), fe(
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
- }), (h, M) => (s(), a("div", {
3647
- class: Y(ee.value)
3729
+ }), (h, $) => (s(), a("div", {
3730
+ class: A(N.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, [
3659
- X(oe, {
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, [
3742
+ X(le, {
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", {
@@ -3677,18 +3760,18 @@ const ye = new ws(), gs = {
3677
3760
  id: h.id,
3678
3761
  tabindex: h.tabindex,
3679
3762
  autocomplete: h.autocomplete,
3680
- style: fe({ resize: N.value, height: f.value }),
3763
+ style: pe({ resize: Y.value, height: f.value }),
3681
3764
  class: "vt-input__field vt-input__textarea",
3682
- onInput: re,
3765
+ onInput: ne,
3683
3766
  onChange: m,
3684
3767
  onFocus: b,
3685
- onBlur: y,
3768
+ onBlur: x,
3686
3769
  onMousedown: se,
3687
- onKeydown: M[0] || (M[0] = ($) => h.$emit("keydown", $)),
3688
- onKeyup: M[1] || (M[1] = ($) => h.$emit("keyup", $)),
3689
- onKeypress: M[2] || (M[2] = ($) => h.$emit("keypress", $)),
3690
- onClick: M[3] || (M[3] = ($) => h.$emit("click", $))
3691
- }, null, 44, ni)) : (s(), a("input", {
3770
+ onKeydown: $[0] || ($[0] = (M) => h.$emit("keydown", M)),
3771
+ onKeyup: $[1] || ($[1] = (M) => h.$emit("keyup", M)),
3772
+ onKeypress: $[2] || ($[2] = (M) => h.$emit("keypress", M)),
3773
+ onClick: $[3] || ($[3] = (M) => h.$emit("click", M))
3774
+ }, null, 44, ri)) : (s(), a("input", {
3692
3775
  key: 2,
3693
3776
  ref_key: "inputRef",
3694
3777
  ref: i,
@@ -3708,23 +3791,23 @@ const ye = new ws(), gs = {
3708
3791
  tabindex: h.tabindex,
3709
3792
  autocomplete: h.autocomplete,
3710
3793
  class: "vt-input__field",
3711
- onInput: re,
3794
+ onInput: ne,
3712
3795
  onChange: m,
3713
3796
  onFocus: b,
3714
- onBlur: y,
3715
- onKeydown: M[4] || (M[4] = ($) => h.$emit("keydown", $)),
3716
- onKeyup: M[5] || (M[5] = ($) => h.$emit("keyup", $)),
3717
- onKeypress: M[6] || (M[6] = ($) => h.$emit("keypress", $)),
3718
- 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", {
3797
+ onBlur: x,
3798
+ onKeydown: $[4] || ($[4] = (M) => h.$emit("keydown", M)),
3799
+ onKeyup: $[5] || ($[5] = (M) => h.$emit("keyup", M)),
3800
+ onKeypress: $[6] || ($[6] = (M) => h.$emit("keypress", M)),
3801
+ onClick: $[7] || ($[7] = (M) => h.$emit("click", M))
3802
+ }, 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",
3725
3808
  onClick: S
3726
3809
  }, [
3727
- X(oe, {
3810
+ X(le, {
3728
3811
  name: "close",
3729
3812
  class: "vt-input__icon"
3730
3813
  })
@@ -3735,69 +3818,69 @@ const ye = new ws(), gs = {
3735
3818
  class: "vt-input__password-btn",
3736
3819
  onClick: T
3737
3820
  }, [
3738
- X(oe, {
3821
+ X(le, {
3739
3822
  name: v.value ? "eyeOpened" : "eyeClosed",
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(le, {
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(ce, null, he(u.value, (M, 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(M), 1)
3759
3842
  ]))), 128))
3760
3843
  ])) : j("", !0)
3761
3844
  ], 2));
3762
3845
  }
3763
3846
  }), _1 = Symbol("VtSelectContext");
3764
- function $e(n, e, o) {
3847
+ function Me(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
3850
  function u1(n, e, o) {
3768
- return e.find((t) => $e(t.value, n, o));
3851
+ return e.find((t) => Me(t.value, n, o));
3769
3852
  }
3770
- function ui(n, e, o, t) {
3771
- return o ? Array.isArray(e) ? e.some((l) => $e(l, n, t)) : !1 : $e(e, n, t);
3853
+ function hi(n, e, o, t) {
3854
+ return o ? Array.isArray(e) ? e.some((l) => Me(l, n, t)) : !1 : Me(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
3859
  return Array.isArray(n) ? n.map((i) => u1(i, e, t)).filter(Boolean) : [];
3777
3860
  const l = u1(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
- return l.some((c) => $e(c, n.value, t)) ? l.filter((c) => !$e(c, n.value, t)) : [...l, n.value];
3866
+ return l.some((c) => Me(c, n.value, t)) ? l.filter((c) => !Me(c, n.value, t)) : [...l, n.value];
3784
3867
  }
3785
3868
  return n.value;
3786
3869
  }
3787
- function hi(n, e, o) {
3788
- return Array.isArray(e) ? e.filter((t) => !$e(t, n, o)) : e;
3870
+ function vi(n, e, o) {
3871
+ return Array.isArray(e) ? e.filter((t) => !Me(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
+ }, $i = { class: "vt-select__tag-text" }, Mi = {
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
+ }, Bi = {
3834
3917
  "aria-hidden": "true",
3835
3918
  style: { display: "none" }
3836
- }, Si = ["aria-multiselectable"], Ii = {
3919
+ }, Hi = ["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__ */ ue({
3849
3932
  __name: "VSelect",
3850
3933
  props: {
3851
3934
  modelValue: {},
@@ -3877,233 +3960,212 @@ 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 = {
3881
- isFocused: H(!1),
3882
- validationErrors: H([]),
3883
- isValid: H(!0),
3884
- visibleCount: H(0),
3885
- 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) => {
3897
- 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))
3963
+ const t = n, l = o, i = I(), c = I(), p = I(), v = I(), f = I([]), u = I(), g = I(), C = {
3964
+ isFocused: I(!1),
3965
+ validationErrors: I([]),
3966
+ isValid: I(!0),
3967
+ visibleCount: I(0),
3968
+ filterQuery: I("")
3969
+ }, z = I(/* @__PURE__ */ new Map()), Z = I(/* @__PURE__ */ new Set()), D = I(/* @__PURE__ */ new Map()), F = (d) => t.valueKey && typeof d == "object" && d !== null ? String(d[t.valueKey]) : typeof d == "object" ? JSON.stringify(d) : String(d), K = (d, y) => {
3970
+ const J = F(d.value);
3971
+ z.value.set(J, d), Z.value.add(J), y && D.value.set(d.value, y);
3972
+ }, B = (d) => {
3973
+ const y = F(d);
3974
+ Z.value.delete(y), D.value.delete(d);
3975
+ }, R = (d) => {
3976
+ for (const [y, J] of D.value.entries())
3977
+ if (Me(y, d, t.valueKey))
3978
+ return J;
3979
+ }, O = (d) => d.toLowerCase().trim(), ee = (d, y) => {
3980
+ if (!y) return !0;
3981
+ const J = O(y);
3982
+ if (d.label && typeof d.label == "string" && O(d.label).includes(J) || typeof d.value == "string" && O(d.value).includes(J))
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");
3903
- for (const I of P)
3904
- if (O(I).includes(K))
3984
+ if (typeof d.value == "object" && d.value !== null) {
3985
+ const P = Object.values(d.value).filter((H) => typeof H == "string");
3986
+ for (const H of P)
3987
+ if (O(H).includes(J))
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,
3916
- dropdownPosition: E,
3917
- show: L,
3918
- hide: N,
3919
- toggle: re,
3920
- updatePosition: m
3921
- } = m1(c, p, {
3922
- trigger: "click",
3923
- placement: "bottom-start",
3924
- showTimeout: 250,
3925
- hideTimeout: 150,
3926
- disabled: t.disabled,
3927
- hideOnClick: !1,
3928
- onVisibleChange: (u) => {
3929
- u ? ve(async () => {
3930
- await m(), y.init(), t.filterable && _.value && _.value.focus(), setTimeout(() => {
3931
- y.checkIfNeedMoreData();
3932
- }, 300);
3933
- }) : (y.cleanup(), C.filterQuery.value && De(), t.validateOnBlur && b.validate()), l("visible-change", u);
3934
- }
3935
- }), b = {
3936
- validate() {
3937
- const u = fi(
3938
- t.modelValue,
3939
- S.value,
3940
- t.required || !1,
3941
- t.requiredMessage
3942
- );
3943
- C.validationErrors.value = u.errors, C.isValid.value = u.isValid, l("validation", { isValid: C.isValid.value, errors: u.errors });
3944
- },
3945
- clear() {
3946
- C.validationErrors.value = [], C.isValid.value = !0, l("validation", { isValid: !0, errors: [] });
3947
- }
3948
- }, y = {
3991
+ }, G = k(() => {
3992
+ const d = [];
3993
+ for (const [y, J] of z.value.entries())
3994
+ Z.value.has(y) && d.push(J);
3995
+ return d;
3996
+ }), te = k(() => !t.filterable || !C.filterQuery.value.trim() || t.allowRemoteFilter ? G.value : G.value.filter((d) => ee(d, C.filterQuery.value))), U = {
3949
3997
  observer: null,
3950
3998
  sentinelElement: null,
3951
- scrollTimeoutId: null,
3952
3999
  lastEmitTime: 0,
3953
- emitCooldown: 500,
3954
- // мінімальний інтервал між емітами
3955
- isInitialized: !1,
4000
+ cooldown: 400,
3956
4001
  init() {
3957
- this.cleanup(), this.initIntersectionObserver(), this.initScrollFallback(), this.isInitialized = !0, ve(() => {
3958
- this.checkIfNeedMoreData();
3959
- });
4002
+ this.cleanup(), u.value && (this.createSentinel(), this.initObserver());
3960
4003
  },
3961
- initIntersectionObserver() {
3962
- d.value && (this.sentinelElement = document.createElement("div"), this.sentinelElement.style.cssText = `
3963
- height: 1px;
3964
- background: transparent;
3965
- pointer-events: none;
3966
- position: absolute;
3967
- bottom: 0;
3968
- 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) => {
3972
- k.isIntersecting && this.canEmit() && this.emitScrolled("intersection-observer");
4004
+ createSentinel() {
4005
+ !u.value || this.sentinelElement || (this.sentinelElement = document.createElement("div"), this.sentinelElement.style.cssText = `
4006
+ height: 20px;
4007
+ width: 100%;
4008
+ background: transparent;
4009
+ pointer-events: none;
4010
+ flex-shrink: 0;
4011
+ display: flex;
4012
+ align-items: center;
4013
+ justify-content: center;
4014
+ font-size: 12px;
4015
+ color: #999;
4016
+ `, this.sentinelElement.setAttribute("data-load-more-trigger", "true"), this.sentinelElement.textContent = "", u.value.appendChild(this.sentinelElement));
4017
+ },
4018
+ initObserver() {
4019
+ !this.sentinelElement || !u.value || (this.observer = new IntersectionObserver(
4020
+ (d) => {
4021
+ d.forEach((y) => {
4022
+ y.isIntersecting && this.canEmit() && this.emitScrolled();
3973
4023
  });
3974
4024
  },
3975
4025
  {
3976
- root: d.value,
3977
- rootMargin: "100px",
3978
- // Тригерить за 100px до кінця
4026
+ root: u.value,
4027
+ rootMargin: "50px",
4028
+ // Тригерить за 50px до показу sentinel
3979
4029
  threshold: 0
3980
4030
  }
3981
4031
  ), this.observer.observe(this.sentinelElement));
3982
4032
  },
3983
- initScrollFallback() {
3984
- d.value && d.value.addEventListener("scroll", this.handleScrollFallback, {
3985
- passive: !0
3986
- });
3987
- },
3988
- handleScrollFallback: (u) => {
3989
- y.scrollTimeoutId && clearTimeout(y.scrollTimeoutId), y.scrollTimeoutId = setTimeout(() => {
3990
- const k = u.target;
3991
- 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");
3994
- }, 200);
3995
- },
3996
4033
  canEmit() {
3997
- const u = Date.now();
3998
- return !t.loading && J.value.length > 0 && u - this.lastEmitTime > this.emitCooldown;
4034
+ const d = Date.now();
4035
+ return !t.loading && te.value.length > 0 && d - this.lastEmitTime > this.cooldown;
3999
4036
  },
4000
- emitScrolled(u) {
4001
- console.log(`Scroll triggered by: ${u}, options count: ${J.value.length}`), this.lastEmitTime = Date.now(), l("scrolled");
4037
+ emitScrolled() {
4038
+ console.log("Sentinel triggered scroll - options count:", te.value.length), this.lastEmitTime = Date.now(), l("scrolled");
4002
4039
  },
4040
+ // Переміщуємо sentinel після додавання нових опцій
4003
4041
  updateSentinel() {
4004
- this.sentinelElement && d.value && d.value.appendChild(this.sentinelElement);
4005
- },
4006
- 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"));
4010
- },
4011
- // Метод для ручного тригеру (корисно для дебагу)
4012
- triggerManually() {
4013
- this.canEmit() && this.emitScrolled("manual-trigger");
4042
+ !this.sentinelElement || !u.value || u.value.appendChild(this.sentinelElement);
4014
4043
  },
4015
4044
  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;
4045
+ this.observer && (this.observer.disconnect(), this.observer = null), this.sentinelElement && (this.sentinelElement.remove(), this.sentinelElement = null);
4017
4046
  }
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(() => {
4047
+ }, {
4048
+ visible: N,
4049
+ parentVisible: E,
4050
+ dropdownPosition: L,
4051
+ show: Y,
4052
+ hide: ne,
4053
+ toggle: m,
4054
+ updatePosition: b
4055
+ } = m1(c, p, {
4056
+ trigger: "click",
4057
+ placement: "bottom-start",
4058
+ showTimeout: 250,
4059
+ hideTimeout: 150,
4060
+ disabled: t.disabled,
4061
+ hideOnClick: !1,
4062
+ onVisibleChange: (d) => {
4063
+ d ? Ce(async () => {
4064
+ await b(), U.init(), t.filterable && g.value && g.value.focus();
4065
+ }) : (U.cleanup(), C.filterQuery.value && De(), t.validateOnBlur && x.validate()), l("visible-change", d);
4066
+ }
4067
+ }), x = {
4068
+ validate() {
4069
+ const d = Ci(
4070
+ t.modelValue,
4071
+ S.value,
4072
+ t.required || !1,
4073
+ t.requiredMessage
4074
+ );
4075
+ C.validationErrors.value = d.errors, C.isValid.value = d.isValid, l("validation", { isValid: C.isValid.value, errors: d.errors });
4076
+ },
4077
+ clear() {
4078
+ C.validationErrors.value = [], C.isValid.value = !0, l("validation", { isValid: !0, errors: [] });
4079
+ }
4080
+ }, S = k(() => t.multiple), T = k(() => G.value.length ? pi(t.modelValue, G.value, S.value, t.valueKey) : []), q = k(() => !t.multiple || T.value.length === 0 ? [] : t.collapsedTags ? T.value.slice(0, C.visibleCount.value) : T.value), se = k(() => {
4019
4081
  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) : "";
4022
- }), 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(() => [
4082
+ const d = T.value[0];
4083
+ return d ? d.label : t.modelValue && typeof t.modelValue == "object" ? t.modelValue.label ? t.modelValue.label : t.modelValue.name ? t.modelValue.name : JSON.stringify(t.modelValue) : t.modelValue !== void 0 && t.modelValue !== null && t.modelValue !== "" && !Array.isArray(t.modelValue) ? String(t.modelValue) : "";
4084
+ }), Le = k(() => !t.clearable || t.disabled ? !1 : S.value ? T.value.length > 0 : t.modelValue !== void 0 && t.modelValue !== null && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0)), ze = k(() => t.status !== "default" ? t.status : C.isValid.value ? "default" : "error"), Oe = k(() => [
4023
4085
  "vt-select",
4024
4086
  `vt-select--${ze.value}`,
4025
4087
  {
4026
4088
  "vt-select--disabled": t.disabled,
4027
4089
  "vt-select--focused": C.isFocused.value,
4028
4090
  "vt-select--multiple": S.value,
4029
- "vt-select--open": q.value
4091
+ "vt-select--open": N.value
4030
4092
  }
4031
- ]), He = x(() => ({
4032
- ...E.value,
4093
+ ]), Be = k(() => ({
4094
+ ...L.value,
4033
4095
  position: "absolute",
4034
4096
  zIndex: 2e3,
4035
4097
  maxHeight: `${t.maxHeight}px`
4036
- })), 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
- 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);
4048
- l("update:modelValue", k), l("change", k), S.value || N(), t.validateOnInput && b.validate();
4049
- }, M = (u, k) => {
4050
- u.disabled || h(u);
4051
- }, $ = () => {
4052
- const u = pi(S.value);
4053
- l("update:modelValue", u), l("change", u), l("clear"), b.clear();
4054
- }, ae = (u) => {
4098
+ })), Ve = k(() => T.value.length - C.visibleCount.value), He = k(() => t.collapsedTags && t.multiple && T.value.length > 0 && C.visibleCount.value < T.value.length), Re = k(() => {
4099
+ if (!He.value) return "";
4100
+ const d = T.value.slice(C.visibleCount.value);
4101
+ return gi(Ve.value, d);
4102
+ }), Ee = (d) => {
4103
+ var J, P;
4104
+ if (!N.value) return;
4105
+ const y = d.target;
4106
+ (J = i.value) != null && J.contains(y) || (P = p.value) != null && P.contains(y) || ne();
4107
+ }, h = (d) => {
4108
+ if (!d || d.disabled) return;
4109
+ const y = fi(d, t.modelValue, S.value, t.valueKey);
4110
+ l("update:modelValue", y), l("change", y), S.value || ne(), t.validateOnInput && x.validate();
4111
+ }, $ = (d, y) => {
4112
+ d.disabled || h(d);
4113
+ }, M = () => {
4114
+ const d = mi(S.value);
4115
+ l("update:modelValue", d), l("change", d), l("clear"), x.clear();
4116
+ }, ae = (d) => {
4055
4117
  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();
4118
+ const y = vi(d, t.modelValue, t.valueKey);
4119
+ l("update:modelValue", y), l("change", y), l("remove-tag", d), t.validateOnInput && x.validate();
4060
4120
  }, ke = () => {
4121
+ t.disabled || m();
4122
+ }, be = () => {
4061
4123
  C.isFocused.value = !0, l("focus");
4062
- }, Te = (u) => {
4063
- 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();
4124
+ }, Te = (d) => {
4125
+ var y;
4126
+ d != null && d.relatedTarget && ((y = p.value) != null && y.contains(d.relatedTarget)) || (C.isFocused.value = !1, l("blur"), setTimeout(() => {
4127
+ var J;
4128
+ (J = p.value) != null && J.contains(document.activeElement) || ne();
4067
4129
  }, 100));
4068
4130
  }, De = () => {
4069
4131
  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 = () => {
4132
+ }, Ze = (d) => {
4133
+ d.key === "Enter" || d.key === " " ? (d.preventDefault(), ke()) : d.key === "Escape" && N.value && (d.preventDefault(), ne());
4134
+ }, Se = (d) => hi(d, t.modelValue, S.value, t.valueKey), _ = () => {
4073
4135
  if (!t.collapsedTags || !v.value || T.value.length === 0) {
4074
4136
  C.visibleCount.value = T.value.length;
4075
4137
  return;
4076
4138
  }
4077
- ve(() => {
4139
+ Ce(() => {
4078
4140
  if (!v.value) return;
4079
- const u = vi(v.value, f.value, T.value.length);
4080
- C.visibleCount.value = u;
4141
+ const d = wi(v.value, f.value, T.value.length);
4142
+ C.visibleCount.value = d;
4081
4143
  });
4082
4144
  }, V = {
4083
- selectValue: x(() => t.modelValue || (S.value ? [] : void 0)).value,
4145
+ selectValue: k(() => t.modelValue || (S.value ? [] : void 0)).value,
4084
4146
  multiple: S.value,
4085
4147
  valueKey: t.valueKey,
4086
4148
  handleOptionClick: h,
4087
4149
  isOptionSelected: Se,
4088
- registerOption: U,
4150
+ registerOption: K,
4089
4151
  unregisterOption: B
4090
4152
  };
4091
4153
  return e1(_1, V), e({
4092
4154
  ...{
4093
4155
  focus() {
4094
- q.value || L();
4156
+ N.value || Y();
4095
4157
  },
4096
4158
  blur() {
4097
- N();
4159
+ ne();
4098
4160
  },
4099
4161
  clear() {
4100
- $();
4162
+ M();
4101
4163
  },
4102
4164
  validate() {
4103
- return b.validate(), C.isValid.value;
4165
+ return x.validate(), C.isValid.value;
4104
4166
  },
4105
4167
  clearValidation() {
4106
- b.clear();
4168
+ x.clear();
4107
4169
  },
4108
4170
  getSelectedOptions() {
4109
4171
  return T.value;
@@ -4114,8 +4176,8 @@ const Ci = ["for"], wi = {
4114
4176
  errors: [...C.validationErrors.value]
4115
4177
  };
4116
4178
  },
4117
- setFilter(u) {
4118
- C.filterQuery.value = u, l("filter", u);
4179
+ setFilter(d) {
4180
+ C.filterQuery.value = d, l("filter", d);
4119
4181
  },
4120
4182
  clearFilter() {
4121
4183
  De();
@@ -4123,127 +4185,112 @@ const Ci = ["for"], wi = {
4123
4185
  getFilterQuery() {
4124
4186
  return C.filterQuery.value;
4125
4187
  },
4126
- // Нові методи для роботи зі скролом
4127
- checkScroll() {
4128
- y.checkIfNeedMoreData();
4129
- },
4130
- triggerScroll() {
4131
- y.triggerManually();
4188
+ // Метод для оновлення sentinel після завантаження нових опцій
4189
+ updateScrollSentinel() {
4190
+ U.updateSentinel();
4132
4191
  },
4133
4192
  getScrollInfo() {
4134
- if (!d.value) return null;
4135
- const { scrollTop: u, scrollHeight: k, clientHeight: K } = d.value;
4193
+ if (!u.value) return null;
4194
+ const { scrollTop: d, scrollHeight: y, clientHeight: J } = u.value;
4136
4195
  return {
4137
- scrollTop: u,
4138
- scrollHeight: k,
4139
- clientHeight: K,
4140
- isNearBottom: k - u - K <= 100,
4141
- canScroll: k > K,
4142
- optionsCount: J.value.length,
4143
- isLoading: t.loading
4196
+ scrollTop: d,
4197
+ scrollHeight: y,
4198
+ clientHeight: J,
4199
+ optionsCount: te.value.length,
4200
+ isLoading: t.loading,
4201
+ hasSentinel: !!U.sentinelElement,
4202
+ hasObserver: !!U.observer
4144
4203
  };
4145
4204
  }
4146
4205
  },
4147
- registerOption: U,
4206
+ registerOption: K,
4148
4207
  unregisterOption: B
4149
- }), ce(
4208
+ }), fe(
4209
+ () => te.value.length,
4210
+ (d, y) => {
4211
+ N.value && d > y && U.sentinelElement && Ce(() => {
4212
+ U.updateSentinel();
4213
+ });
4214
+ }
4215
+ ), fe(
4150
4216
  () => t.modelValue,
4151
4217
  () => {
4152
- t.validateOnInput && b.validate();
4218
+ t.validateOnInput && x.validate();
4153
4219
  }
4154
- ), ce(
4220
+ ), fe(
4155
4221
  T,
4156
4222
  () => {
4157
- g();
4223
+ _();
4158
4224
  },
4159
4225
  { deep: !0 }
4160
- ), ce(
4226
+ ), fe(
4161
4227
  () => v.value,
4162
4228
  () => {
4163
- v.value && g();
4164
- }
4165
- ), ce(q, async (u) => {
4166
- u && (await ve(), m());
4167
- }), ce(
4168
- J,
4169
- (u, k) => {
4170
- q.value && y.isInitialized && ve(() => {
4171
- y.updateSentinel(), u.length > 0 && setTimeout(() => {
4172
- y.checkIfNeedMoreData();
4173
- }, 100);
4174
- });
4175
- },
4176
- { flush: "post" }
4177
- ), ce(
4178
- () => t.loading,
4179
- (u, k) => {
4180
- k && !u && q.value && y.isInitialized && ve(() => {
4181
- y.updateSentinel(), setTimeout(() => {
4182
- y.checkIfNeedMoreData();
4183
- }, 200);
4184
- });
4229
+ v.value && _();
4185
4230
  }
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);
4231
+ ), fe(N, async (d) => {
4232
+ d && (await Ce(), b());
4233
+ }), _e(() => {
4234
+ t.modelValue !== void 0 && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0) && x.validate(), Ce(() => {
4235
+ _();
4236
+ }), window.addEventListener("resize", _), document.addEventListener("click", Ee);
4190
4237
  }), Ie(() => {
4191
- y.cleanup(), document.removeEventListener("click", Ee), window.removeEventListener("resize", g);
4192
- }), (u, k) => {
4193
- const K = Ge("tooltip");
4238
+ U.cleanup(), document.removeEventListener("click", Ee), window.removeEventListener("resize", _);
4239
+ }), (d, y) => {
4240
+ const J = Ge("tooltip");
4194
4241
  return s(), a("div", {
4195
4242
  ref_key: "selectRef",
4196
4243
  ref: i,
4197
- class: Y(Oe.value)
4244
+ class: A(Oe.value)
4198
4245
  }, [
4199
- u.label ? (s(), a("label", {
4246
+ d.label ? (s(), a("label", {
4200
4247
  key: 0,
4201
- for: u.id,
4248
+ for: d.id,
4202
4249
  class: "vt-select__label"
4203
4250
  }, [
4204
- xe(G(u.label) + " ", 1),
4205
- u.required ? (s(), a("span", wi, "*")) : j("", !0)
4206
- ], 8, Ci)) : j("", !0),
4251
+ ge(Q(d.label) + " ", 1),
4252
+ d.required ? (s(), a("span", ki, "*")) : j("", !0)
4253
+ ], 8, _i)) : j("", !0),
4207
4254
  r("div", {
4208
4255
  ref_key: "triggerRef",
4209
4256
  ref: c,
4210
4257
  class: "vt-select__container",
4211
4258
  tabindex: "0",
4212
4259
  onBlur: Te,
4213
- onClick: _e,
4214
- onFocus: ke,
4260
+ onClick: ke,
4261
+ onFocus: be,
4215
4262
  onKeydown: Ze
4216
4263
  }, [
4217
- r("div", gi, [
4218
- u.multiple && T.value.length > 0 ? (s(), a("div", {
4264
+ r("div", bi, [
4265
+ d.multiple && T.value.length > 0 ? (s(), a("div", {
4219
4266
  key: 0,
4220
4267
  ref_key: "containerRef",
4221
4268
  ref: v,
4222
4269
  class: "vt-select__tags"
4223
4270
  }, [
4224
- (s(!0), a(he, null, pe(F.value, (P, I) => (s(), a("div", {
4225
- key: `tag-${typeof P.value == "object" ? JSON.stringify(P.value) : P.value}-${I}`,
4271
+ (s(!0), a(ce, null, he(q.value, (P, H) => (s(), a("div", {
4272
+ key: `tag-${typeof P.value == "object" ? JSON.stringify(P.value) : P.value}-${H}`,
4226
4273
  ref_for: !0,
4227
- ref: (ue) => ue && (f.value[I] = ue),
4274
+ ref: (de) => de && (f.value[H] = de),
4228
4275
  class: "vt-select__tag"
4229
4276
  }, [
4230
- r("span", _i, G(P.label), 1),
4231
- t.disabled ? j("", !0) : (s(), ie(oe, {
4277
+ r("span", yi, Q(P.label), 1),
4278
+ t.disabled ? j("", !0) : (s(), ie(le, {
4232
4279
  key: 0,
4233
4280
  class: "vt-select__tag-close",
4234
4281
  name: "close",
4235
- onClick: me((ue) => ae(P.value), ["stop"])
4282
+ onClick: me((de) => ae(P.value), ["stop"])
4236
4283
  }, null, 8, ["onClick"]))
4237
4284
  ]))), 128)),
4238
- Be.value ? Ae((s(), a("div", ki, [
4239
- r("span", bi, "+" + G(Ve.value), 1)
4285
+ He.value ? Ae((s(), a("div", xi, [
4286
+ r("span", $i, "+" + Q(Ve.value), 1)
4240
4287
  ])), [
4241
- [K, Re.value]
4288
+ [J, Re.value]
4242
4289
  ]) : j("", !0)
4243
- ], 512)) : !u.multiple && se.value ? (s(), a("span", yi, G(se.value), 1)) : (s(), a("span", xi, G(u.placeholder), 1))
4290
+ ], 512)) : !d.multiple && se.value ? (s(), a("span", Mi, Q(se.value), 1)) : (s(), a("span", Li, Q(d.placeholder), 1))
4244
4291
  ]),
4245
- r("div", Mi, [
4246
- u.loading ? (s(), ie(je, {
4292
+ r("div", Vi, [
4293
+ d.loading ? (s(), ie(je, {
4247
4294
  key: 0,
4248
4295
  class: "vt-select__loading"
4249
4296
  })) : Le.value ? (s(), a("button", {
@@ -4251,31 +4298,31 @@ const Ci = ["for"], wi = {
4251
4298
  disabled: t.disabled,
4252
4299
  class: "vt-select__clear-btn",
4253
4300
  type: "button",
4254
- onClick: me($, ["stop"])
4301
+ onClick: me(M, ["stop"])
4255
4302
  }, [
4256
- X(oe, { name: "close" })
4257
- ], 8, $i)) : (s(), ie(oe, {
4303
+ X(le, { name: "close" })
4304
+ ], 8, Si)) : (s(), ie(le, {
4258
4305
  key: 2,
4259
- class: Y([{ "vt-select__arrow--open": ne(q) }, "vt-select__icon vt-select__arrow"]),
4306
+ class: A([{ "vt-select__arrow--open": oe(N) }, "vt-select__icon vt-select__arrow"]),
4260
4307
  name: "arrowDown"
4261
4308
  }, null, 8, ["class"]))
4262
4309
  ])
4263
4310
  ], 544),
4264
4311
  X(r1, { name: "fade" }, {
4265
4312
  default: we(() => [
4266
- C.validationErrors && C.validationErrors.value.length ? (s(), a("div", Li, [
4267
- (s(!0), a(he, null, pe(C.validationErrors.value, (P, I) => (s(), a("div", {
4268
- key: `error-${I}`,
4313
+ C.validationErrors && C.validationErrors.value.length ? (s(), a("div", Ii, [
4314
+ (s(!0), a(ce, null, he(C.validationErrors.value, (P, H) => (s(), a("div", {
4315
+ key: `error-${H}`,
4269
4316
  class: "vt-select__error"
4270
- }, G(P), 1))), 128))
4317
+ }, Q(P), 1))), 128))
4271
4318
  ])) : j("", !0)
4272
4319
  ]),
4273
4320
  _: 1
4274
4321
  }),
4275
- r("div", Vi, [
4276
- Ce(u.$slots, "default")
4322
+ r("div", Bi, [
4323
+ ve(d.$slots, "default")
4277
4324
  ]),
4278
- ne(q) && ne(ee) ? (s(), ie(Je, {
4325
+ oe(N) && oe(E) ? (s(), ie(Je, {
4279
4326
  key: 1,
4280
4327
  to: "body"
4281
4328
  }, [
@@ -4284,43 +4331,43 @@ const Ci = ["for"], wi = {
4284
4331
  r("div", {
4285
4332
  ref_key: "dropdownRef",
4286
4333
  ref: p,
4287
- "aria-multiselectable": u.multiple,
4288
- style: fe(He.value),
4334
+ "aria-multiselectable": d.multiple,
4335
+ style: pe(Be.value),
4289
4336
  class: "vt-select-dropdown",
4290
4337
  role: "listbox",
4291
- onClick: k[2] || (k[2] = me(() => {
4338
+ onClick: y[2] || (y[2] = me(() => {
4292
4339
  }, ["stop"])),
4293
- onMousedown: k[3] || (k[3] = me(() => {
4340
+ onMousedown: y[3] || (y[3] = me(() => {
4294
4341
  }, ["prevent"]))
4295
4342
  }, [
4296
- u.filterable ? (s(), a("div", Ii, [
4343
+ d.filterable ? (s(), a("div", Ei, [
4297
4344
  X(g1, {
4298
4345
  ref_key: "filterInputRef",
4299
- ref: _,
4346
+ ref: g,
4300
4347
  modelValue: C.filterQuery.value,
4301
- "onUpdate:modelValue": k[0] || (k[0] = (P) => C.filterQuery.value = P),
4302
- placeholder: u.filterPlaceholder,
4348
+ "onUpdate:modelValue": y[0] || (y[0] = (P) => C.filterQuery.value = P),
4349
+ placeholder: d.filterPlaceholder,
4303
4350
  clearable: "",
4304
4351
  "suffix-icon": "search",
4305
4352
  type: "text"
4306
4353
  }, null, 8, ["modelValue", "placeholder"])
4307
4354
  ])) : j("", !0),
4308
- u.loading ? (s(), a("div", Hi, [
4355
+ d.loading ? (s(), a("div", Ti, [
4309
4356
  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))
4357
+ ge(" " + Q(d.loadingText), 1)
4358
+ ])) : te.value.length === 0 ? (s(), a("div", ji, [
4359
+ C.filterQuery.value ? (s(), a("span", zi, 'Немає результатів для "' + Q(C.filterQuery.value) + '"', 1)) : (s(), a("span", Oi, Q(d.noDataText), 1))
4313
4360
  ])) : (s(), a("div", {
4314
4361
  key: 3,
4315
4362
  ref_key: "scrollContainerRef",
4316
- ref: d,
4363
+ ref: u,
4317
4364
  class: "vt-select-dropdown__options"
4318
4365
  }, [
4319
- (s(!0), a(he, null, pe(J.value, (P) => (s(), a("div", {
4366
+ (s(!0), a(ce, null, he(te.value, (P) => (s(), a("div", {
4320
4367
  key: `option-${typeof P.value == "object" ? JSON.stringify(P.value) : P.value}`,
4321
4368
  "aria-disabled": P.disabled || !1,
4322
4369
  "aria-selected": Se(P.value),
4323
- class: Y([
4370
+ class: A([
4324
4371
  "vt-option",
4325
4372
  {
4326
4373
  "vt-option--selected": Se(P.value),
@@ -4328,28 +4375,28 @@ const Ci = ["for"], wi = {
4328
4375
  }
4329
4376
  ]),
4330
4377
  role: "option",
4331
- onClick: (I) => h(P),
4332
- onMousedown: k[1] || (k[1] = me(() => {
4378
+ onClick: (H) => h(P),
4379
+ onMousedown: y[1] || (y[1] = me(() => {
4333
4380
  }, ["prevent"]))
4334
4381
  }, [
4335
- S.value ? (s(), ie(Me, {
4382
+ S.value ? (s(), ie($e, {
4336
4383
  key: 0,
4337
4384
  checked: Se(P.value),
4338
4385
  disabled: P.disabled || !1,
4339
4386
  class: "vt-option__checkbox",
4340
4387
  tabindex: "-1",
4341
- onChange: (I) => M(P)
4388
+ onChange: (H) => $(P)
4342
4389
  }, 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))
4390
+ r("span", Di, [
4391
+ R(P.value) ? (s(), ie(Xe(R(P.value)), { key: 0 })) : (s(), a("span", Wi, Q(P.label || P.value), 1))
4345
4392
  ])
4346
- ], 42, ji))), 128)),
4347
- u.loading ? (s(), a("div", Ri, [
4393
+ ], 42, Ri))), 128)),
4394
+ d.loading ? (s(), a("div", Pi, [
4348
4395
  X(je, { class: "vt-select-dropdown__loading-icon" }),
4349
- xe(" " + G(t.loadingText), 1)
4396
+ ge(" " + Q(t.loadingText), 1)
4350
4397
  ])) : j("", !0)
4351
4398
  ], 512))
4352
- ], 44, Si)
4399
+ ], 44, Hi)
4353
4400
  ]),
4354
4401
  _: 1
4355
4402
  })
@@ -4357,7 +4404,7 @@ const Ci = ["for"], wi = {
4357
4404
  ], 2);
4358
4405
  };
4359
4406
  }
4360
- }), Wi = { style: { display: "none" } }, Pi = /* @__PURE__ */ de({
4407
+ }), Zi = { style: { display: "none" } }, Fi = /* @__PURE__ */ ue({
4361
4408
  __name: "VOption",
4362
4409
  props: {
4363
4410
  label: {},
@@ -4368,20 +4415,20 @@ const Ci = ["for"], wi = {
4368
4415
  setup(n, { emit: e }) {
4369
4416
  const o = n, t = Qe(), l = t1(_1);
4370
4417
  l || console.warn("VOption повинен використовуватися всередині VSelect");
4371
- const i = x(() => ({
4418
+ const i = k(() => ({
4372
4419
  label: o.label,
4373
4420
  value: o.value,
4374
4421
  disabled: o.disabled || !1
4375
4422
  }));
4376
- return ge(() => {
4423
+ return _e(() => {
4377
4424
  if (l) {
4378
4425
  const c = t.default ? () => t.default() : null;
4379
4426
  l.registerOption(i.value, c);
4380
4427
  }
4381
- }), M1(() => {
4428
+ }), $1(() => {
4382
4429
  l && l.unregisterOption(o.value);
4383
- }), (c, p) => (s(), a("div", Wi, [
4384
- Ce(c.$slots, "default")
4430
+ }), (c, p) => (s(), a("div", Zi, [
4431
+ ve(c.$slots, "default")
4385
4432
  ]));
4386
4433
  }
4387
4434
  }), d1 = (n, e) => {
@@ -4467,15 +4514,15 @@ const Ci = ["for"], wi = {
4467
4514
  p = t.top + c + (t.height - l.height) / 2, v = t.right + i + 8;
4468
4515
  break;
4469
4516
  }
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`;
4517
+ const f = window.innerWidth, u = window.innerHeight;
4518
+ v < 8 ? v = 8 : v + l.width > f - 8 && (v = f - l.width - 8), p < c + 8 ? o === "top" ? p = t.bottom + c + 8 : p = c + 8 : p + l.height > c + u - 8 && (o === "bottom" ? p = t.top + c - l.height - 8 : p = c + u - l.height - 8), n.style.top = `${p}px`, n.style.left = `${v}px`;
4472
4519
  }, c1 = (n, e, o) => {
4473
4520
  n.parentElement || document.body.appendChild(n), n.style.visibility = "visible", Ye(n, e, o), requestAnimationFrame(() => {
4474
4521
  n.style.opacity = "1";
4475
4522
  });
4476
4523
  }, h1 = (n) => {
4477
4524
  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 = {
4525
+ }, p1 = (n) => n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight, f1 = (n) => !!n.closest(".vt-table, table"), Ni = {
4479
4526
  mounted(n, e) {
4480
4527
  var v;
4481
4528
  const o = (v = e.value) == null ? void 0 : v.trim();
@@ -4512,39 +4559,40 @@ const Ci = ["for"], wi = {
4512
4559
  beforeUnmount(n) {
4513
4560
  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
4561
  }
4515
- }, Fi = {
4562
+ }, Ui = {
4516
4563
  sortable: !0,
4517
4564
  actionColumn: !1,
4518
4565
  showOverflowTooltip: !0,
4519
4566
  visible: !0,
4520
4567
  pinnedLeft: !1,
4521
4568
  pinnedRight: !1
4522
- }, Zi = {
4569
+ }, qi = {
4523
4570
  install(n, e = {}) {
4524
4571
  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);
4572
+ n.component(`${o}Button`, We), n.component(`${o}Icon`, le), n.component(`${o}Loader`, je), n.component(`${o}Modal`, v1), n.component(`${o}Pagination`, rs), n.component(`${o}Checkbox`, $e), n.component(`${o}Radiobox`, ds), n.component(`${o}Table`, Js), n.component(`${o}TableColumn`, ei), n.component(`${o}Dropdown`, w1), n.component(`${o}DropdownItem`, Ue), n.component(`${o}Input`, g1), n.component(`${o}Select`, Ai), n.component(`${o}Option`, Fi), n.directive("tooltip", Ni), t && n.use(bs);
4526
4573
  }
4527
- }, qi = Zi.install;
4574
+ }, Yi = qi.install;
4528
4575
  export {
4529
- Fi as DEFAULT_COLUMN_CONFIG,
4576
+ Ui as DEFAULT_COLUMN_CONFIG,
4530
4577
  C1 as DropdownContextKey,
4531
4578
  We as VButton,
4532
- Me as VCheckbox,
4579
+ $e as VCheckbox,
4533
4580
  w1 as VDropdown,
4534
4581
  Ue as VDropdownItem,
4535
- oe as VIcon,
4582
+ le as VIcon,
4536
4583
  g1 as VInput,
4537
4584
  je as VLoader,
4538
4585
  v1 as VModal,
4539
- gs as VModalPlugin,
4540
- Pi as VOption,
4586
+ bs as VModalPlugin,
4587
+ Fi as VOption,
4541
4588
  rs as VPagination,
4542
- Di as VSelect,
4543
- Xs as VTable,
4544
- Qs as VTableColumn,
4589
+ ds as VRadiobox,
4590
+ Ai as VSelect,
4591
+ Js as VTable,
4592
+ ei as VTableColumn,
4545
4593
  _1 as VtSelectContextKey,
4546
- Zi as default,
4547
- qi as install,
4548
- ye as modalManager,
4549
- Ai as tooltipDirective
4594
+ qi as default,
4595
+ Yi as install,
4596
+ xe as modalManager,
4597
+ Ni as tooltipDirective
4550
4598
  };