voiptime-components 1.10.1 → 1.10.2

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,4 +1,4 @@
1
- import { createElementBlock as u, openBlock as l, createElementVNode as s, createStaticVNode as Ye, defineComponent as ke, computed as x, createBlock as we, createCommentVNode as q, resolveDynamicComponent as f1, normalizeStyle as Ee, useSlots as a1, resolveDirective as x1, withDirectives as o1, normalizeClass as G, renderSlot as De, Teleport as s1, withModifiers as Se, toDisplayString as Z, createTextVNode as xe, ref as H, onUnmounted as Je, nextTick as Te, watch as Me, onMounted as Oe, createVNode as ee, Fragment as le, renderList as ve, provide as u1, unref as z, Transition as i1, withCtx as Le, inject as c1, onBeforeUnmount as U1, createApp as K1, h as g1, mergeModels as H1, useModel as at, reactive as L1, toRef as r1, toRefs as ut, vShow as X1, TransitionGroup as ct } from "vue";
1
+ import { createElementBlock as u, openBlock as l, createElementVNode as s, createStaticVNode as Ye, defineComponent as ke, computed as x, createBlock as we, createCommentVNode as q, resolveDynamicComponent as f1, normalizeStyle as Ee, useSlots as a1, resolveDirective as x1, withDirectives as o1, normalizeClass as G, renderSlot as De, Teleport as s1, withModifiers as Se, toDisplayString as Z, createTextVNode as xe, ref as H, onUnmounted as Je, nextTick as Te, watch as ye, onMounted as Oe, createVNode as ee, Fragment as le, renderList as pe, provide as u1, unref as z, Transition as i1, withCtx as Le, inject as c1, onBeforeUnmount as U1, createApp as K1, h as g1, mergeModels as H1, useModel as at, reactive as L1, toRef as r1, toRefs as ut, vShow as X1, TransitionGroup as ct } from "vue";
2
2
  const y = (n, e) => {
3
3
  const r = n.__vccOpts || n;
4
4
  for (const [t, i] of e)
@@ -11,7 +11,7 @@ const y = (n, e) => {
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  };
14
- function pt(n, e) {
14
+ function vt(n, e) {
15
15
  return l(), u("svg", ht, e[0] || (e[0] = [
16
16
  s("circle", {
17
17
  cx: "10",
@@ -29,7 +29,7 @@ function pt(n, e) {
29
29
  }, null, -1)
30
30
  ]));
31
31
  }
32
- const vt = /* @__PURE__ */ y(dt, [["render", pt]]), ft = {}, Ct = {
32
+ const pt = /* @__PURE__ */ y(dt, [["render", vt]]), ft = {}, Ct = {
33
33
  width: "20",
34
34
  height: "20",
35
35
  viewBox: "0 0 20 20",
@@ -306,7 +306,7 @@ function hn(n, e) {
306
306
  }, null, -1)
307
307
  ]));
308
308
  }
309
- const pn = /* @__PURE__ */ y(cn, [["render", hn]]), vn = {}, fn = {
309
+ const vn = /* @__PURE__ */ y(cn, [["render", hn]]), pn = {}, fn = {
310
310
  fill: "none",
311
311
  height: "20",
312
312
  viewBox: "0 0 21 20",
@@ -324,7 +324,7 @@ function Cn(n, e) {
324
324
  }, null, -1)
325
325
  ]));
326
326
  }
327
- const mn = /* @__PURE__ */ y(vn, [["render", Cn]]), _n = {}, gn = {
327
+ const mn = /* @__PURE__ */ y(pn, [["render", Cn]]), _n = {}, gn = {
328
328
  width: "20",
329
329
  height: "20",
330
330
  viewBox: "0 0 20 20",
@@ -572,7 +572,7 @@ function co(n, e) {
572
572
  }, null, -1)
573
573
  ]));
574
574
  }
575
- const ho = /* @__PURE__ */ y(ao, [["render", co]]), po = {}, vo = {
575
+ const ho = /* @__PURE__ */ y(ao, [["render", co]]), vo = {}, po = {
576
576
  width: "40",
577
577
  height: "40",
578
578
  viewBox: "0 0 40 40",
@@ -580,7 +580,7 @@ const ho = /* @__PURE__ */ y(ao, [["render", co]]), po = {}, vo = {
580
580
  xmlns: "http://www.w3.org/2000/svg"
581
581
  };
582
582
  function fo(n, e) {
583
- return l(), u("svg", vo, e[0] || (e[0] = [
583
+ return l(), u("svg", po, e[0] || (e[0] = [
584
584
  s("circle", {
585
585
  cx: "20",
586
586
  cy: "20",
@@ -593,7 +593,7 @@ function fo(n, e) {
593
593
  }, null, -1)
594
594
  ]));
595
595
  }
596
- const Co = /* @__PURE__ */ y(po, [["render", fo]]), mo = {}, _o = {
596
+ const Co = /* @__PURE__ */ y(vo, [["render", fo]]), mo = {}, _o = {
597
597
  width: "20",
598
598
  height: "20",
599
599
  viewBox: "0 0 21 20",
@@ -794,7 +794,7 @@ const cs = /* @__PURE__ */ y(is, [["render", us]]), ds = {}, hs = {
794
794
  width: "20",
795
795
  xmlns: "http://www.w3.org/2000/svg"
796
796
  };
797
- function ps(n, e) {
797
+ function vs(n, e) {
798
798
  return l(), u("svg", hs, e[0] || (e[0] = [
799
799
  s("path", {
800
800
  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",
@@ -826,7 +826,7 @@ function ps(n, e) {
826
826
  }, null, -1)
827
827
  ]));
828
828
  }
829
- const vs = /* @__PURE__ */ y(ds, [["render", ps]]), fs = {}, Cs = {
829
+ const ps = /* @__PURE__ */ y(ds, [["render", vs]]), fs = {}, Cs = {
830
830
  width: "20",
831
831
  height: "20",
832
832
  viewBox: "0 0 20 20",
@@ -1116,7 +1116,7 @@ function dl(n, e) {
1116
1116
  }, null, -1)
1117
1117
  ]));
1118
1118
  }
1119
- const hl = /* @__PURE__ */ y(ul, [["render", dl]]), pl = {}, vl = {
1119
+ const hl = /* @__PURE__ */ y(ul, [["render", dl]]), vl = {}, pl = {
1120
1120
  width: "20",
1121
1121
  height: "20",
1122
1122
  viewBox: "0 0 20 20",
@@ -1124,7 +1124,7 @@ const hl = /* @__PURE__ */ y(ul, [["render", dl]]), pl = {}, vl = {
1124
1124
  xmlns: "http://www.w3.org/2000/svg"
1125
1125
  };
1126
1126
  function fl(n, e) {
1127
- return l(), u("svg", vl, e[0] || (e[0] = [
1127
+ return l(), u("svg", pl, e[0] || (e[0] = [
1128
1128
  s("path", {
1129
1129
  "fill-rule": "evenodd",
1130
1130
  "clip-rule": "evenodd",
@@ -1141,7 +1141,7 @@ function fl(n, e) {
1141
1141
  }, null, -1)
1142
1142
  ]));
1143
1143
  }
1144
- const Cl = /* @__PURE__ */ y(pl, [["render", fl]]), ml = {}, _l = {
1144
+ const Cl = /* @__PURE__ */ y(vl, [["render", fl]]), ml = {}, _l = {
1145
1145
  fill: "none",
1146
1146
  height: "20",
1147
1147
  viewBox: "0 0 20 20",
@@ -1436,7 +1436,7 @@ const cr = /* @__PURE__ */ y(ir, [["render", ur]]), dr = {}, hr = {
1436
1436
  width: "20",
1437
1437
  xmlns: "http://www.w3.org/2000/svg"
1438
1438
  };
1439
- function pr(n, e) {
1439
+ function vr(n, e) {
1440
1440
  return l(), u("svg", hr, e[0] || (e[0] = [
1441
1441
  s("path", {
1442
1442
  d: "M5.10938 6.41406L9.00209 9.00921L12.8948 6.41406",
@@ -1458,7 +1458,7 @@ function pr(n, e) {
1458
1458
  }, null, -1)
1459
1459
  ]));
1460
1460
  }
1461
- const vr = /* @__PURE__ */ y(dr, [["render", pr]]), fr = {}, Cr = {
1461
+ const pr = /* @__PURE__ */ y(dr, [["render", vr]]), fr = {}, Cr = {
1462
1462
  fill: "none",
1463
1463
  height: "20",
1464
1464
  viewBox: "0 0 20 20",
@@ -1789,7 +1789,7 @@ function di(n, e) {
1789
1789
  }, null, -1)
1790
1790
  ]));
1791
1791
  }
1792
- const hi = /* @__PURE__ */ y(ui, [["render", di]]), pi = {}, vi = {
1792
+ const hi = /* @__PURE__ */ y(ui, [["render", di]]), vi = {}, pi = {
1793
1793
  fill: "none",
1794
1794
  height: "20",
1795
1795
  viewBox: "0 0 21 20",
@@ -1797,7 +1797,7 @@ const hi = /* @__PURE__ */ y(ui, [["render", di]]), pi = {}, vi = {
1797
1797
  xmlns: "http://www.w3.org/2000/svg"
1798
1798
  };
1799
1799
  function fi(n, e) {
1800
- return l(), u("svg", vi, e[0] || (e[0] = [
1800
+ return l(), u("svg", pi, e[0] || (e[0] = [
1801
1801
  s("path", {
1802
1802
  d: "M13.277 2C11.904 2 10.5873 2.52678 9.61647 3.46447C8.64563 4.40215 8.10022 5.67392 8.10022 7C8.10494 7.67799 8.24558 8.34867 8.51437 8.975L7.45312 11.375L10.2227 11.0375C10.8828 11.5032 11.6478 11.8114 12.4549 11.9367C13.262 12.0619 14.0884 12.0008 14.8664 11.7583C15.6443 11.5158 16.3518 11.0988 16.9308 10.5414C17.5098 9.98402 17.9439 9.30212 18.1976 8.55152C18.4513 7.80093 18.5173 7.00298 18.3902 6.22301C18.2632 5.44303 17.9467 4.7032 17.4667 4.06408C16.9867 3.42496 16.3568 2.90473 15.6286 2.54596C14.9003 2.1872 14.0945 2.0001 13.277 2Z",
1803
1803
  stroke: "currentColor",
@@ -1814,7 +1814,7 @@ function fi(n, e) {
1814
1814
  }, null, -1)
1815
1815
  ]));
1816
1816
  }
1817
- const Ci = /* @__PURE__ */ y(pi, [["render", fi]]), mi = {}, _i = {
1817
+ const Ci = /* @__PURE__ */ y(vi, [["render", fi]]), mi = {}, _i = {
1818
1818
  width: "20",
1819
1819
  height: "20",
1820
1820
  viewBox: "0 0 24 24",
@@ -2110,7 +2110,7 @@ const ca = /* @__PURE__ */ y(ia, [["render", ua]]), da = {}, ha = {
2110
2110
  fill: "none",
2111
2111
  xmlns: "http://www.w3.org/2000/svg"
2112
2112
  };
2113
- function pa(n, e) {
2113
+ function va(n, e) {
2114
2114
  return l(), u("svg", ha, e[0] || (e[0] = [
2115
2115
  s("path", {
2116
2116
  d: "M2.5 3H1M21 3H19.5M6.5 7H5.5C4.086 7 3.379 7 2.94 6.56C2.5 6.122 2.5 5.415 2.5 4C2.5 2.585 2.5 1.879 2.94 1.44C3.378 1 4.085 1 5.5 1H6.5C7.914 1 8.621 1 9.06 1.44C9.5 1.879 9.5 2.586 9.5 4C9.5 5.414 9.5 6.121 9.06 6.56C8.622 7 7.915 7 6.5 7Z",
@@ -2132,7 +2132,7 @@ function pa(n, e) {
2132
2132
  }, null, -1)
2133
2133
  ]));
2134
2134
  }
2135
- const va = /* @__PURE__ */ y(da, [["render", pa]]), fa = {}, Ca = {
2135
+ const pa = /* @__PURE__ */ y(da, [["render", va]]), fa = {}, Ca = {
2136
2136
  width: "20",
2137
2137
  height: "20",
2138
2138
  viewBox: "0 0 20 20",
@@ -2370,7 +2370,7 @@ function o3(n, e) {
2370
2370
  }
2371
2371
  const s3 = /* @__PURE__ */ y(t3, [["render", o3]]), l3 = {
2372
2372
  // actions icons
2373
- circleChecked: vt,
2373
+ circleChecked: pt,
2374
2374
  circleClose: _t,
2375
2375
  close: bt,
2376
2376
  delete: xt,
@@ -2383,7 +2383,7 @@ const s3 = /* @__PURE__ */ y(t3, [["render", o3]]), l3 = {
2383
2383
  paperClip: en,
2384
2384
  plusRound: sn,
2385
2385
  prompt: un,
2386
- prompter: pn,
2386
+ prompter: vn,
2387
2387
  reply: mn,
2388
2388
  save: kn,
2389
2389
  star: Mn,
@@ -2413,7 +2413,7 @@ const s3 = /* @__PURE__ */ y(t3, [["render", o3]]), l3 = {
2413
2413
  transferCall: rs,
2414
2414
  volumeCall: cs,
2415
2415
  // files icons
2416
- emptyImg: vs,
2416
+ emptyImg: ps,
2417
2417
  fileChoose: _s,
2418
2418
  fileDoc: bs,
2419
2419
  fileSign: xs,
@@ -2443,7 +2443,7 @@ const s3 = /* @__PURE__ */ y(t3, [["render", o3]]), l3 = {
2443
2443
  emailDraft: nr,
2444
2444
  email: rr,
2445
2445
  emailIncoming: cr,
2446
- emailNew: vr,
2446
+ emailNew: pr,
2447
2447
  emailOutgoing: _r,
2448
2448
  emailQueue: br,
2449
2449
  emailSpam: xr,
@@ -2473,7 +2473,7 @@ const s3 = /* @__PURE__ */ y(t3, [["render", o3]]), l3 = {
2473
2473
  // scenario icons
2474
2474
  anketBlock: ra,
2475
2475
  iframBlock: ca,
2476
- infoBlock: va,
2476
+ infoBlock: pa,
2477
2477
  proposalBlock: _a,
2478
2478
  // table icons
2479
2479
  columnInsert: ba,
@@ -2509,7 +2509,7 @@ const s3 = /* @__PURE__ */ y(t3, [["render", o3]]), l3 = {
2509
2509
  function a3(n, e) {
2510
2510
  return l(), u("span", i3);
2511
2511
  }
2512
- const v1 = /* @__PURE__ */ y(r3, [["render", a3]]), u3 = ["disabled", "type", "data-placement"], c3 = {
2512
+ const p1 = /* @__PURE__ */ y(r3, [["render", a3]]), u3 = ["disabled", "type", "data-placement"], c3 = {
2513
2513
  key: 2,
2514
2514
  class: "vt-button__content"
2515
2515
  }, Ge = /* @__PURE__ */ ke({
@@ -2530,7 +2530,7 @@ const v1 = /* @__PURE__ */ y(r3, [["render", a3]]), u3 = ["disabled", "type", "d
2530
2530
  var m, o;
2531
2531
  const h = i.default ? i.default({}) : null;
2532
2532
  return ((o = (m = h == null ? void 0 : h[0]) == null ? void 0 : m.children) == null ? void 0 : o.toString()) ?? "";
2533
- }), v = x(() => [
2533
+ }), p = x(() => [
2534
2534
  "vt-button",
2535
2535
  `vt-button--${r.type}`,
2536
2536
  {
@@ -2539,19 +2539,19 @@ const v1 = /* @__PURE__ */ y(r3, [["render", a3]]), u3 = ["disabled", "type", "d
2539
2539
  "vt-button--disabled": r.disabled || r.loading,
2540
2540
  "vt-button--loading": r.loading
2541
2541
  }
2542
- ]), f = x(() => c.value && r.tooltip ? d.value : null), p = (h) => {
2542
+ ]), f = x(() => c.value && r.tooltip ? d.value : null), v = (h) => {
2543
2543
  !r.disabled && !r.loading && t("click", h);
2544
2544
  };
2545
2545
  return (h, m) => {
2546
2546
  const o = x1("tooltip");
2547
2547
  return o1((l(), u("button", {
2548
- class: G(v.value),
2548
+ class: G(p.value),
2549
2549
  disabled: r.disabled || r.loading,
2550
2550
  type: r.htmlType,
2551
2551
  "data-placement": r.tooltipPlacement,
2552
- onClick: p
2552
+ onClick: v
2553
2553
  }, [
2554
- r.loading ? (l(), we(v1, {
2554
+ r.loading ? (l(), we(p1, {
2555
2555
  key: 0,
2556
2556
  class: "vt-button__icon"
2557
2557
  })) : r.icon ? (l(), we(fe, {
@@ -2573,7 +2573,7 @@ const v1 = /* @__PURE__ */ y(r3, [["render", a3]]), u3 = ["disabled", "type", "d
2573
2573
  }, h3 = {
2574
2574
  key: 0,
2575
2575
  class: "vt-modal__title"
2576
- }, p3 = { class: "vt-modal__body" }, Q1 = /* @__PURE__ */ ke({
2576
+ }, v3 = { class: "vt-modal__body" }, Q1 = /* @__PURE__ */ ke({
2577
2577
  __name: "VModal",
2578
2578
  props: {
2579
2579
  modelValue: { type: Boolean },
@@ -2589,19 +2589,19 @@ const v1 = /* @__PURE__ */ y(r3, [["render", a3]]), u3 = ["disabled", "type", "d
2589
2589
  zIndex: r.zIndex
2590
2590
  })), d = () => {
2591
2591
  t("update:modelValue", !1), t("close");
2592
- }, v = () => {
2592
+ }, p = () => {
2593
2593
  r.closeOnBackdropClick && d();
2594
2594
  };
2595
- return (f, p) => (l(), we(s1, { to: "body" }, [
2595
+ return (f, v) => (l(), we(s1, { to: "body" }, [
2596
2596
  f.modelValue ? (l(), u("div", {
2597
2597
  key: 0,
2598
2598
  style: Ee(c.value),
2599
2599
  class: "vt-modal__backdrop",
2600
- onClick: v
2600
+ onClick: p
2601
2601
  }, [
2602
2602
  s("div", {
2603
2603
  class: G(i.value),
2604
- onClick: p[0] || (p[0] = Se(() => {
2604
+ onClick: v[0] || (v[0] = Se(() => {
2605
2605
  }, ["stop"]))
2606
2606
  }, [
2607
2607
  f.title || f.showCloseButton ? (l(), u("div", d3, [
@@ -2613,14 +2613,14 @@ const v1 = /* @__PURE__ */ y(r3, [["render", a3]]), u3 = ["disabled", "type", "d
2613
2613
  onClick: d
2614
2614
  })) : q("", !0)
2615
2615
  ])) : q("", !0),
2616
- s("div", p3, [
2616
+ s("div", v3, [
2617
2617
  De(f.$slots, "default")
2618
2618
  ])
2619
2619
  ], 2)
2620
2620
  ], 4)) : q("", !0)
2621
2621
  ]));
2622
2622
  }
2623
- }), v3 = ["for"], f3 = ["id", "name", "value", "checked", "disabled", "required", ".indeterminate"], e1 = /* @__PURE__ */ ke({
2623
+ }), p3 = ["for"], f3 = ["id", "name", "value", "checked", "disabled", "required", ".indeterminate"], e1 = /* @__PURE__ */ ke({
2624
2624
  __name: "VCheckbox",
2625
2625
  props: {
2626
2626
  modelValue: { type: Boolean, default: void 0 },
@@ -2638,13 +2638,13 @@ const v1 = /* @__PURE__ */ y(r3, [["render", a3]]), u3 = ["disabled", "type", "d
2638
2638
  },
2639
2639
  emits: ["update:modelValue", "change", "focus", "blur"],
2640
2640
  setup(n, { emit: e }) {
2641
- const r = n, t = e, i = () => `vt-checkbox-${Math.random().toString(36).substr(2, 9)}`, c = x(() => r.id || i()), d = x(() => r.modelValue ?? r.checked), v = (h) => {
2641
+ const r = n, t = e, i = () => `vt-checkbox-${Math.random().toString(36).substr(2, 9)}`, c = x(() => r.id || i()), d = x(() => r.modelValue ?? r.checked), p = (h) => {
2642
2642
  if (r.disabled) return;
2643
2643
  const o = h.target.checked;
2644
2644
  t("update:modelValue", o), t("change", o, h);
2645
2645
  }, f = (h) => {
2646
2646
  t("focus", h);
2647
- }, p = (h) => {
2647
+ }, v = (h) => {
2648
2648
  t("blur", h);
2649
2649
  };
2650
2650
  return (h, m) => (l(), u("label", {
@@ -2669,9 +2669,9 @@ const v1 = /* @__PURE__ */ y(r3, [["render", a3]]), u3 = ["disabled", "type", "d
2669
2669
  ".indeterminate": h.indeterminate,
2670
2670
  type: "checkbox",
2671
2671
  class: "vt-checkbox__input",
2672
- onChange: v,
2672
+ onChange: p,
2673
2673
  onFocus: f,
2674
- onBlur: p
2674
+ onBlur: v
2675
2675
  }, null, 40, f3),
2676
2676
  s("div", {
2677
2677
  class: G([
@@ -2759,7 +2759,7 @@ const v1 = /* @__PURE__ */ y(r3, [["render", a3]]), u3 = ["disabled", "type", "d
2759
2759
  ])
2760
2760
  ])
2761
2761
  ], 2)) : q("", !0)
2762
- ], 10, v3));
2762
+ ], 10, p3));
2763
2763
  }
2764
2764
  }), T1 = (n) => {
2765
2765
  if (!n) return !1;
@@ -2769,8 +2769,8 @@ const v1 = /* @__PURE__ */ y(r3, [["render", a3]]), u3 = ["disabled", "type", "d
2769
2769
  if (!(e.top < r && e.bottom > 0 && e.left < t && e.right > 0)) return !1;
2770
2770
  let c = n.parentElement;
2771
2771
  for (; c && c !== document.body; ) {
2772
- const d = c.getBoundingClientRect(), v = window.getComputedStyle(c);
2773
- if ((v.overflow === "hidden" || v.overflowY === "hidden" || v.overflowX === "hidden") && (e.top >= d.bottom || e.bottom <= d.top || e.left >= d.right || e.right <= d.left))
2772
+ const d = c.getBoundingClientRect(), p = window.getComputedStyle(c);
2773
+ if ((p.overflow === "hidden" || p.overflowY === "hidden" || p.overflowX === "hidden") && (e.top >= d.bottom || e.bottom <= d.top || e.left >= d.right || e.right <= d.left))
2774
2774
  return !1;
2775
2775
  c = c.parentElement;
2776
2776
  }
@@ -2817,9 +2817,9 @@ function C1(n, e, r = {}) {
2817
2817
  placement: i = "bottom-start",
2818
2818
  showTimeout: c = 250,
2819
2819
  hideTimeout: d = 150,
2820
- disabled: v = !1,
2820
+ disabled: p = !1,
2821
2821
  hideOnClick: f = !0,
2822
- onVisibleChange: p,
2822
+ onVisibleChange: v,
2823
2823
  onScroll: h
2824
2824
  } = r, m = H(!1), o = H(!0), b = H(!1), _ = H(null), F = H([]), B = H({
2825
2825
  top: "0px",
@@ -2828,7 +2828,7 @@ function C1(n, e, r = {}) {
2828
2828
  }), L = () => {
2829
2829
  if (!n.value) return;
2830
2830
  const de = T1(n.value);
2831
- o.value !== de && (o.value = de, !de && m.value ? (b.value = !0, m.value = !1, p == null || p(!1)) : de && b.value && !m.value && (b.value = !1, m.value = !0, A(), p == null || p(!0)));
2831
+ o.value !== de && (o.value = de, !de && m.value ? (b.value = !0, m.value = !1, v == null || v(!1)) : de && b.value && !m.value && (b.value = !1, m.value = !0, A(), v == null || v(!0)));
2832
2832
  }, A = async () => {
2833
2833
  if (await Te(), !n.value || !e.value) return;
2834
2834
  const de = n.value.getBoundingClientRect(), I = e.value.getBoundingClientRect(), U = m3(de, I, i);
@@ -2847,21 +2847,21 @@ function C1(n, e, r = {}) {
2847
2847
  de.removeEventListener("scroll", J);
2848
2848
  }), window.removeEventListener("resize", J), F.value = [];
2849
2849
  }, V = () => {
2850
- v || m.value || !n.value || !T1(n.value) || (_.value = window.setTimeout(
2850
+ p || m.value || !n.value || !T1(n.value) || (_.value = window.setTimeout(
2851
2851
  async () => {
2852
- m.value = !0, o.value = !0, b.value = !1, await A(), j(), p == null || p(!0);
2852
+ m.value = !0, o.value = !0, b.value = !1, await A(), j(), v == null || v(!0);
2853
2853
  },
2854
2854
  t === "hover" ? c : 0
2855
2855
  ));
2856
2856
  }, Q = () => {
2857
2857
  m.value && (_.value = window.setTimeout(
2858
2858
  () => {
2859
- m.value = !1, b.value = !1, T(), p == null || p(!1);
2859
+ m.value = !1, b.value = !1, T(), v == null || v(!1);
2860
2860
  },
2861
2861
  t === "hover" ? d : 0
2862
2862
  ));
2863
2863
  }, ne = () => {
2864
- v || (m.value ? Q() : V());
2864
+ p || (m.value ? Q() : V());
2865
2865
  };
2866
2866
  return Je(() => {
2867
2867
  T();
@@ -2920,14 +2920,14 @@ function y3(n, e, r, t) {
2920
2920
  };
2921
2921
  }
2922
2922
  function $3(n, e, r) {
2923
- var v;
2923
+ var p;
2924
2924
  if (!n || !e.length) return r;
2925
2925
  const t = n.offsetWidth, i = 100;
2926
2926
  let c = 0, d = 0;
2927
2927
  for (let f = 0; f < e.length && f < r; f++) {
2928
- const p = ((v = e[f]) == null ? void 0 : v.offsetWidth) || 0;
2929
- if (c + p + i <= t)
2930
- c += p, d++;
2928
+ const v = ((p = e[f]) == null ? void 0 : p.offsetWidth) || 0;
2929
+ if (c + v + i <= t)
2930
+ c += v, d++;
2931
2931
  else
2932
2932
  break;
2933
2933
  }
@@ -3006,7 +3006,7 @@ const x3 = ["for"], L3 = {
3006
3006
  },
3007
3007
  emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "validation", "keydown", "keyup", "keypress", "click"],
3008
3008
  setup(n, { expose: e, emit: r }) {
3009
- const t = n, i = r, c = H(), d = H(), v = H(!1), f = H(!1), p = H(), h = H([]), m = H(!0), o = H(!1), b = {
3009
+ const t = n, i = r, c = H(), d = H(), p = H(!1), f = H(!1), v = H(), h = H([]), m = H(!0), o = H(!1), b = {
3010
3010
  email: (g) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(g),
3011
3011
  url: (g) => {
3012
3012
  try {
@@ -3094,7 +3094,7 @@ const x3 = ["for"], L3 = {
3094
3094
  `vt-input--${ne.value}`,
3095
3095
  {
3096
3096
  "vt-input--disabled": t.disabled,
3097
- "vt-input--focused": v.value,
3097
+ "vt-input--focused": p.value,
3098
3098
  "vt-input--textarea": F.value,
3099
3099
  "vt-input--has-prefix": A.value,
3100
3100
  "vt-input--has-suffix": T.value,
@@ -3103,8 +3103,8 @@ const x3 = ["for"], L3 = {
3103
3103
  ]), I = x(() => t.type === "password" ? f.value ? "text" : "password" : t.type === "textarea" ? "text" : t.type), U = x(() => t.errorMessage ? t.errorMessage : h.value.length > 0 ? h.value[0] : ""), he = x(() => t.autosize && typeof t.autosize == "object" && t.autosize.maxRows ? "none" : t.resize), Ce = (g) => {
3104
3104
  let N = g.target.value;
3105
3105
  if (t.type === "number" && N !== "") {
3106
- const $e = Number(N);
3107
- isNaN($e) || (N = $e);
3106
+ const Me = Number(N);
3107
+ isNaN(Me) || (N = Me);
3108
3108
  }
3109
3109
  i("update:modelValue", N), i("input", g), t.validateOnInput && _(N), F.value && t.autosize && !o.value && Te(() => te());
3110
3110
  }, D = (g) => {
@@ -3113,9 +3113,9 @@ const x3 = ["for"], L3 = {
3113
3113
  _(O.value);
3114
3114
  }
3115
3115
  }, R = (g) => {
3116
- v.value = !0, i("focus", g);
3116
+ p.value = !0, i("focus", g);
3117
3117
  }, Y = (g) => {
3118
- if (v.value = !1, i("blur", g), t.validateOnBlur) {
3118
+ if (p.value = !1, i("blur", g), t.validateOnBlur) {
3119
3119
  const O = g.target;
3120
3120
  _(O.value);
3121
3121
  }
@@ -3136,12 +3136,12 @@ const x3 = ["for"], L3 = {
3136
3136
  const Pe = parseInt(getComputedStyle(g).lineHeight), Be = t.autosize.minRows ? t.autosize.minRows * Pe : 0, je = t.autosize.maxRows ? t.autosize.maxRows * Pe : 1 / 0;
3137
3137
  N = Math.max(Be, Math.min(N, je));
3138
3138
  }
3139
- const $e = `${N}px`;
3140
- $e !== O && (p.value = $e, g.style.height = $e);
3139
+ const Me = `${N}px`;
3140
+ Me !== O && (v.value = Me, g.style.height = Me);
3141
3141
  }, ce = (g) => {
3142
3142
  if (!d.value || !(he.value !== "none")) return;
3143
- const $e = d.value.getBoundingClientRect();
3144
- if (g.clientX > $e.right - 20 && g.clientY > $e.bottom - 20) {
3143
+ const Me = d.value.getBoundingClientRect();
3144
+ if (g.clientX > Me.right - 20 && g.clientY > Me.bottom - 20) {
3145
3145
  o.value = !0;
3146
3146
  const Be = () => {
3147
3147
  o.value = !1, document.removeEventListener("mouseup", Be);
@@ -3174,12 +3174,12 @@ const x3 = ["for"], L3 = {
3174
3174
  isValid: m.value,
3175
3175
  errors: [...h.value]
3176
3176
  })
3177
- }), Me(
3177
+ }), ye(
3178
3178
  () => t.modelValue,
3179
3179
  (g) => {
3180
3180
  F.value && t.autosize && !o.value && Te(te), t.validateOnInput && _(g || "");
3181
3181
  }
3182
- ), Me(
3182
+ ), ye(
3183
3183
  () => [t.required, t.minlength, t.maxlength, t.min, t.max, t.pattern],
3184
3184
  () => {
3185
3185
  t.modelValue !== void 0 && t.modelValue !== "" && _(t.modelValue);
@@ -3224,7 +3224,7 @@ const x3 = ["for"], L3 = {
3224
3224
  id: g.id,
3225
3225
  tabindex: g.tabindex,
3226
3226
  autocomplete: g.autocomplete,
3227
- style: Ee({ resize: he.value, height: p.value }),
3227
+ style: Ee({ resize: he.value, height: v.value }),
3228
3228
  class: "vt-input__field vt-input__textarea",
3229
3229
  onInput: Ce,
3230
3230
  onChange: D,
@@ -3298,8 +3298,8 @@ const x3 = ["for"], L3 = {
3298
3298
  U.value ? (l(), u("span", B3, Z(U.value), 1)) : g.helperText ? (l(), u("span", E3, Z(g.helperText), 1)) : q("", !0)
3299
3299
  ])) : q("", !0),
3300
3300
  h.value.length > 1 && g.showAllErrors ? (l(), u("div", A3, [
3301
- (l(!0), u(le, null, ve(h.value, (N, $e) => (l(), u("div", {
3302
- key: $e,
3301
+ (l(!0), u(le, null, pe(h.value, (N, Me) => (l(), u("div", {
3302
+ key: Me,
3303
3303
  class: "vt-input__error-item"
3304
3304
  }, [
3305
3305
  s("span", null, Z(N), 1)
@@ -3366,7 +3366,7 @@ const x3 = ["for"], L3 = {
3366
3366
  },
3367
3367
  emits: ["update:modelValue", "change", "clear", "focus", "blur", "visible-change", "validation", "scrolled", "remove-tag", "filter", "filter-clear"],
3368
3368
  setup(n, { expose: e, emit: r }) {
3369
- const t = n, i = r, c = H(), d = H(), v = H(), f = H(), p = H([]), h = H(), m = H(), o = {
3369
+ const t = n, i = r, c = H(), d = H(), p = H(), f = H(), v = H([]), h = H(), m = H(), o = {
3370
3370
  isFocused: H(!1),
3371
3371
  validationErrors: H([]),
3372
3372
  isValid: H(!0),
@@ -3421,7 +3421,7 @@ const x3 = ["for"], L3 = {
3421
3421
  hide: R,
3422
3422
  toggle: Y,
3423
3423
  updatePosition: re
3424
- } = C1(d, v, {
3424
+ } = C1(d, p, {
3425
3425
  trigger: "click",
3426
3426
  placement: "bottom-start",
3427
3427
  showTimeout: 250,
@@ -3452,9 +3452,9 @@ const x3 = ["for"], L3 = {
3452
3452
  if (te.value) return "";
3453
3453
  const a = ce.value[0];
3454
3454
  return a ? a.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) : "";
3455
- }), Ie = x(() => !t.clearable || t.disabled ? !1 : te.value ? ce.value.length > 0 : t.modelValue !== void 0 && t.modelValue !== null && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0)), ye = x(() => t.status !== "default" ? t.status : o.isValid.value ? "default" : "error"), Qe = x(() => [
3455
+ }), Ie = x(() => !t.clearable || t.disabled ? !1 : te.value ? ce.value.length > 0 : t.modelValue !== void 0 && t.modelValue !== null && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0)), $e = x(() => t.status !== "default" ? t.status : o.isValid.value ? "default" : "error"), Qe = x(() => [
3456
3456
  "vt-select",
3457
- `vt-select--${ye.value}`,
3457
+ `vt-select--${$e.value}`,
3458
3458
  {
3459
3459
  "vt-select--disabled": t.disabled,
3460
3460
  "vt-select--focused": o.isFocused.value,
@@ -3474,12 +3474,12 @@ const x3 = ["for"], L3 = {
3474
3474
  var X, W;
3475
3475
  if (!U.value) return;
3476
3476
  const C = a.target;
3477
- (X = c.value) != null && X.contains(C) || (W = v.value) != null && W.contains(C) || R();
3477
+ (X = c.value) != null && X.contains(C) || (W = p.value) != null && W.contains(C) || R();
3478
3478
  }, N = (a) => {
3479
3479
  if (!a || a.disabled) return;
3480
3480
  const C = w3(a, t.modelValue, te.value, t.valueKey);
3481
3481
  i("update:modelValue", C), i("change", C), te.value || R(), t.validateOnInput && oe.validate();
3482
- }, $e = (a, C) => {
3482
+ }, Me = (a, C) => {
3483
3483
  a.disabled || N(a);
3484
3484
  }, Pe = () => {
3485
3485
  const a = b3(te.value);
@@ -3494,9 +3494,9 @@ const x3 = ["for"], L3 = {
3494
3494
  o.isFocused.value = !0, i("focus");
3495
3495
  }, Ae = (a) => {
3496
3496
  var C;
3497
- a != null && a.relatedTarget && ((C = v.value) != null && C.contains(a.relatedTarget)) || (o.isFocused.value = !1, i("blur"), setTimeout(() => {
3497
+ a != null && a.relatedTarget && ((C = p.value) != null && C.contains(a.relatedTarget)) || (o.isFocused.value = !1, i("blur"), setTimeout(() => {
3498
3498
  var X;
3499
- (X = v.value) != null && X.contains(document.activeElement) || R();
3499
+ (X = p.value) != null && X.contains(document.activeElement) || R();
3500
3500
  }, 100));
3501
3501
  }, P = (a) => {
3502
3502
  const C = a.target.value;
@@ -3505,14 +3505,14 @@ const x3 = ["for"], L3 = {
3505
3505
  o.filterQuery.value = "", i("filter", ""), i("filter-clear");
3506
3506
  }, ie = (a) => {
3507
3507
  a.key === "Enter" || a.key === " " ? (a.preventDefault(), je()) : a.key === "Escape" && U.value && (a.preventDefault(), R());
3508
- }, pe = (a) => _3(a, t.modelValue, te.value, t.valueKey), se = () => {
3508
+ }, ve = (a) => _3(a, t.modelValue, te.value, t.valueKey), se = () => {
3509
3509
  if (!t.collapsedTags || !f.value || ce.value.length === 0) {
3510
3510
  o.visibleCount.value = ce.value.length;
3511
3511
  return;
3512
3512
  }
3513
3513
  Te(() => {
3514
3514
  if (!f.value) return;
3515
- const a = $3(f.value, p.value, ce.value.length);
3515
+ const a = $3(f.value, v.value, ce.value.length);
3516
3516
  o.visibleCount.value = a;
3517
3517
  });
3518
3518
  }, k = {
@@ -3520,7 +3520,7 @@ const x3 = ["for"], L3 = {
3520
3520
  multiple: te.value,
3521
3521
  valueKey: t.valueKey,
3522
3522
  handleOptionClick: N,
3523
- isOptionSelected: pe,
3523
+ isOptionSelected: ve,
3524
3524
  registerOption: L,
3525
3525
  unregisterOption: A
3526
3526
  };
@@ -3579,30 +3579,30 @@ const x3 = ["for"], L3 = {
3579
3579
  },
3580
3580
  registerOption: L,
3581
3581
  unregisterOption: A
3582
- }), Me(
3582
+ }), ye(
3583
3583
  () => t.modelValue,
3584
3584
  () => {
3585
3585
  t.validateOnInput && oe.validate();
3586
3586
  }
3587
- ), Me(
3587
+ ), ye(
3588
3588
  ce,
3589
3589
  () => {
3590
3590
  se();
3591
3591
  },
3592
3592
  { deep: !0 }
3593
- ), Me(
3593
+ ), ye(
3594
3594
  () => f.value,
3595
3595
  () => {
3596
3596
  f.value && se();
3597
3597
  }
3598
- ), Me(U, async (a) => {
3598
+ ), ye(U, async (a) => {
3599
3599
  a && (await Te(), re());
3600
- }), Me(
3600
+ }), ye(
3601
3601
  () => Q.value.length,
3602
3602
  async (a, C) => {
3603
3603
  U.value && a > C && (await Te(), I());
3604
3604
  }
3605
- ), Me(
3605
+ ), ye(
3606
3606
  () => t.loading,
3607
3607
  (a, C) => {
3608
3608
  C && !a && U.value && I();
@@ -3645,10 +3645,10 @@ const x3 = ["for"], L3 = {
3645
3645
  ref: f,
3646
3646
  class: "vt-select__tags"
3647
3647
  }, [
3648
- (l(!0), u(le, null, ve(ze.value, (W, _e) => (l(), u("div", {
3648
+ (l(!0), u(le, null, pe(ze.value, (W, _e) => (l(), u("div", {
3649
3649
  key: `tag-${typeof W.value == "object" ? JSON.stringify(W.value) : W.value}-${_e}`,
3650
3650
  ref_for: !0,
3651
- ref: (ue) => ue && (p.value[_e] = ue),
3651
+ ref: (ue) => ue && (v.value[_e] = ue),
3652
3652
  class: "vt-select__tag"
3653
3653
  }, [
3654
3654
  s("span", Z3, Z(W.label), 1),
@@ -3672,7 +3672,7 @@ const x3 = ["for"], L3 = {
3672
3672
  ])) : (l(), u("span", N3, Z(a.placeholder), 1))
3673
3673
  ]),
3674
3674
  s("div", W3, [
3675
- a.loading ? (l(), we(v1, {
3675
+ a.loading ? (l(), we(p1, {
3676
3676
  key: 0,
3677
3677
  class: "vt-select__loading"
3678
3678
  })) : Ie.value ? (l(), u("button", {
@@ -3693,7 +3693,7 @@ const x3 = ["for"], L3 = {
3693
3693
  ee(i1, { name: "fade" }, {
3694
3694
  default: Le(() => [
3695
3695
  o.validationErrors && o.validationErrors.value.length ? (l(), u("div", U3, [
3696
- (l(!0), u(le, null, ve(o.validationErrors.value, (W, _e) => (l(), u("div", {
3696
+ (l(!0), u(le, null, pe(o.validationErrors.value, (W, _e) => (l(), u("div", {
3697
3697
  key: `error-${_e}`,
3698
3698
  class: "vt-select__error"
3699
3699
  }, Z(W), 1))), 128))
@@ -3712,7 +3712,7 @@ const x3 = ["for"], L3 = {
3712
3712
  default: Le(() => [
3713
3713
  s("div", {
3714
3714
  ref_key: "dropdownRef",
3715
- ref: v,
3715
+ ref: p,
3716
3716
  "aria-multiselectable": a.multiple,
3717
3717
  style: Ee(qe.value),
3718
3718
  class: "vt-select-dropdown",
@@ -3744,14 +3744,14 @@ const x3 = ["for"], L3 = {
3744
3744
  class: "vt-select-dropdown__options",
3745
3745
  onScroll: de
3746
3746
  }, [
3747
- (l(!0), u(le, null, ve(Q.value, (W) => (l(), u("div", {
3747
+ (l(!0), u(le, null, pe(Q.value, (W) => (l(), u("div", {
3748
3748
  key: `option-${typeof W.value == "object" ? JSON.stringify(W.value) : W.value}`,
3749
3749
  "aria-disabled": W.disabled || !1,
3750
- "aria-selected": pe(W.value),
3750
+ "aria-selected": ve(W.value),
3751
3751
  class: G([
3752
3752
  "vt-option",
3753
3753
  {
3754
- "vt-option--selected": pe(W.value),
3754
+ "vt-option--selected": ve(W.value),
3755
3755
  "vt-option--disabled": W.disabled || !1
3756
3756
  }
3757
3757
  ]),
@@ -3762,18 +3762,18 @@ const x3 = ["for"], L3 = {
3762
3762
  }, [
3763
3763
  te.value ? (l(), we(e1, {
3764
3764
  key: 0,
3765
- checked: pe(W.value),
3765
+ checked: ve(W.value),
3766
3766
  disabled: W.disabled || !1,
3767
3767
  class: "vt-option__checkbox",
3768
3768
  tabindex: "-1",
3769
- onChange: (_e) => $e(W)
3769
+ onChange: (_e) => Me(W)
3770
3770
  }, null, 8, ["checked", "disabled", "onChange"])) : q("", !0),
3771
3771
  s("span", n2, [
3772
3772
  J(W.value) ? (l(), we(f1(J(W.value)), { key: 0 })) : (l(), u("span", o2, Z(W.label || W.value), 1))
3773
3773
  ])
3774
3774
  ], 42, t2))), 128)),
3775
3775
  a.loading ? (l(), u("div", s2, [
3776
- ee(v1, { class: "vt-select-dropdown__loading-icon" }),
3776
+ ee(p1, { class: "vt-select-dropdown__loading-icon" }),
3777
3777
  xe(" " + Z(t.loadingText), 1)
3778
3778
  ])) : q("", !0)
3779
3779
  ], 544))
@@ -3808,11 +3808,11 @@ const x3 = ["for"], L3 = {
3808
3808
  }
3809
3809
  }), U1(() => {
3810
3810
  i && i.unregisterOption(r.value);
3811
- }), (d, v) => (l(), u("div", l2, [
3811
+ }), (d, p) => (l(), u("div", l2, [
3812
3812
  De(d.$slots, "default")
3813
3813
  ]));
3814
3814
  }
3815
- }), r2 = { class: "vt-pagination" }, i2 = { class: "vt-pagination__info" }, a2 = { class: "vt-pagination__rows-per-page" }, u2 = { class: "vt-pagination__navigation" }, c2 = ["disabled"], d2 = ["onClick"], h2 = ["disabled"], p2 = /* @__PURE__ */ ke({
3815
+ }), r2 = { class: "vt-pagination" }, i2 = { class: "vt-pagination__info" }, a2 = { class: "vt-pagination__rows-per-page" }, u2 = { class: "vt-pagination__navigation" }, c2 = ["disabled"], d2 = ["onClick"], h2 = ["disabled"], v2 = /* @__PURE__ */ ke({
3816
3816
  __name: "VPagination",
3817
3817
  props: {
3818
3818
  totalItems: {},
@@ -3829,7 +3829,7 @@ const x3 = ["for"], L3 = {
3829
3829
  }), c = x({
3830
3830
  get: () => r.pageSize,
3831
3831
  set: (A) => t("update:pageSize", A)
3832
- }), d = x(() => Math.ceil(r.totalItems / c.value)), v = x(() => r.totalItems === 0 ? 0 : (i.value - 1) * c.value + 1), f = x(() => Math.min(i.value * c.value, r.totalItems)), p = x(() => i.value <= 1), h = x(() => i.value >= d.value), m = x(() => {
3832
+ }), d = x(() => Math.ceil(r.totalItems / c.value)), p = x(() => r.totalItems === 0 ? 0 : (i.value - 1) * c.value + 1), f = x(() => Math.min(i.value * c.value, r.totalItems)), v = x(() => i.value <= 1), h = x(() => i.value >= d.value), m = x(() => {
3833
3833
  const A = [], J = d.value, j = i.value, T = r.maxVisiblePages;
3834
3834
  if (J <= T)
3835
3835
  for (let V = 1; V <= J; V++)
@@ -3851,7 +3851,7 @@ const x3 = ["for"], L3 = {
3851
3851
  }, b = (A) => {
3852
3852
  typeof A == "number" && A !== i.value && (i.value = A, o());
3853
3853
  }, _ = () => {
3854
- p.value || (i.value--, o());
3854
+ v.value || (i.value--, o());
3855
3855
  }, F = () => {
3856
3856
  h.value || (i.value++, o());
3857
3857
  }, B = () => {
@@ -3859,7 +3859,7 @@ const x3 = ["for"], L3 = {
3859
3859
  }, L = () => {
3860
3860
  t("reloadData", i.value);
3861
3861
  };
3862
- return Me(
3862
+ return ye(
3863
3863
  () => r.totalItems,
3864
3864
  () => {
3865
3865
  i.value > d.value && d.value > 0 && (i.value = d.value, o());
@@ -3879,7 +3879,7 @@ const x3 = ["for"], L3 = {
3879
3879
  onChange: B
3880
3880
  }, {
3881
3881
  default: Le(() => [
3882
- (l(!0), u(le, null, ve(A.pageSizeOptions, (j) => (l(), we(tt, {
3882
+ (l(!0), u(le, null, pe(A.pageSizeOptions, (j) => (l(), we(tt, {
3883
3883
  key: j,
3884
3884
  label: j,
3885
3885
  value: j
@@ -3893,17 +3893,17 @@ const x3 = ["for"], L3 = {
3893
3893
  _: 1
3894
3894
  }, 8, ["modelValue"])
3895
3895
  ]),
3896
- s("span", null, Z(v.value) + " - " + Z(f.value) + " з " + Z(A.totalItems), 1)
3896
+ s("span", null, Z(p.value) + " - " + Z(f.value) + " з " + Z(A.totalItems), 1)
3897
3897
  ]),
3898
3898
  s("div", u2, [
3899
3899
  s("button", {
3900
- class: G({ "vt-pagination__nav-button": !0, "has-items": !p.value }),
3901
- disabled: p.value,
3900
+ class: G({ "vt-pagination__nav-button": !0, "has-items": !v.value }),
3901
+ disabled: v.value,
3902
3902
  onClick: _
3903
3903
  }, [
3904
3904
  ee(fe, { name: "arrowLeft" })
3905
3905
  ], 10, c2),
3906
- (l(!0), u(le, null, ve(m.value, (j) => (l(), u("button", {
3906
+ (l(!0), u(le, null, pe(m.value, (j) => (l(), u("button", {
3907
3907
  key: j,
3908
3908
  class: G([{
3909
3909
  "vt-pagination__nav-button--active": j === i.value
@@ -3935,7 +3935,7 @@ const x3 = ["for"], L3 = {
3935
3935
  ])
3936
3936
  ]));
3937
3937
  }
3938
- }), v2 = ["for"], f2 = ["id", "checked", "disabled", "name", "required", "value"], C2 = /* @__PURE__ */ ke({
3938
+ }), p2 = ["for"], f2 = ["id", "checked", "disabled", "name", "required", "value"], C2 = /* @__PURE__ */ ke({
3939
3939
  __name: "VRadiobox",
3940
3940
  props: {
3941
3941
  modelValue: { default: void 0 },
@@ -3951,12 +3951,12 @@ const x3 = ["for"], L3 = {
3951
3951
  },
3952
3952
  emits: ["update:modelValue", "change", "focus", "blur"],
3953
3953
  setup(n, { emit: e }) {
3954
- const r = n, t = e, i = () => `vt-radiobox-${Math.random().toString(36).substr(2, 9)}`, c = x(() => r.id || i()), d = x(() => r.modelValue !== void 0 ? r.modelValue === r.value : r.checked), v = (h) => {
3954
+ const r = n, t = e, i = () => `vt-radiobox-${Math.random().toString(36).substr(2, 9)}`, c = x(() => r.id || i()), d = x(() => r.modelValue !== void 0 ? r.modelValue === r.value : r.checked), p = (h) => {
3955
3955
  if (r.disabled) return;
3956
3956
  h.target.checked && (t("update:modelValue", r.value), t("change", r.value, h));
3957
3957
  }, f = (h) => {
3958
3958
  t("focus", h);
3959
- }, p = (h) => {
3959
+ }, v = (h) => {
3960
3960
  t("blur", h);
3961
3961
  };
3962
3962
  return (h, m) => (l(), u("label", {
@@ -3979,8 +3979,8 @@ const x3 = ["for"], L3 = {
3979
3979
  value: h.value,
3980
3980
  class: "vt-radiobox__input",
3981
3981
  type: "radio",
3982
- onBlur: p,
3983
- onChange: v,
3982
+ onBlur: v,
3983
+ onChange: p,
3984
3984
  onFocus: f
3985
3985
  }, null, 40, f2),
3986
3986
  s("div", {
@@ -4016,34 +4016,34 @@ const x3 = ["for"], L3 = {
4016
4016
  ])
4017
4017
  ])
4018
4018
  ], 2)) : q("", !0)
4019
- ], 10, v2));
4019
+ ], 10, p2));
4020
4020
  }
4021
4021
  });
4022
4022
  function m2(n) {
4023
4023
  const e = x(() => {
4024
- const i = n.filter((v) => v.pinnedLeft), c = n.filter((v) => v.pinnedRight), d = n.filter((v) => !v.pinnedLeft && !v.pinnedRight);
4024
+ const i = n.filter((p) => p.pinnedLeft), c = n.filter((p) => p.pinnedRight), d = n.filter((p) => !p.pinnedLeft && !p.pinnedRight);
4025
4025
  return [...i, ...d, ...c];
4026
4026
  }), r = () => {
4027
- const i = e.value.length, c = e.value.filter((h) => h.width || h.minWidth), d = c.reduce((h, m) => h + (m.width || m.minWidth || 0), 0), v = i - c.length;
4028
- if (v === 0) return 150;
4029
- const p = Math.max(800 - d, v * 80);
4030
- return Math.max(Math.floor(p / v), 120);
4027
+ const i = e.value.length, c = e.value.filter((h) => h.width || h.minWidth), d = c.reduce((h, m) => h + (m.width || m.minWidth || 0), 0), p = i - c.length;
4028
+ if (p === 0) return 150;
4029
+ const v = Math.max(800 - d, p * 80);
4030
+ return Math.max(Math.floor(v / p), 120);
4031
4031
  };
4032
4032
  return {
4033
4033
  sortedColumns: e,
4034
4034
  getDefaultColumnWidth: r,
4035
4035
  getStickyOffset: (i, c, d = !1) => {
4036
- const v = e.value;
4036
+ const p = e.value;
4037
4037
  let f = 0;
4038
4038
  if (i === "left") {
4039
4039
  d && (f += 50);
4040
- for (let p = 0; p < c; p++) {
4041
- const h = v[p];
4040
+ for (let v = 0; v < c; v++) {
4041
+ const h = p[v];
4042
4042
  h.pinnedLeft && (f += h.width || h.minWidth || r());
4043
4043
  }
4044
4044
  } else
4045
- for (let p = v.length - 1; p > c; p--) {
4046
- const h = v[p];
4045
+ for (let v = p.length - 1; v > c; v--) {
4046
+ const h = p[v];
4047
4047
  h.pinnedRight && (f += h.width || h.minWidth || r());
4048
4048
  }
4049
4049
  return f;
@@ -4054,28 +4054,28 @@ function _2(n) {
4054
4054
  const e = () => {
4055
4055
  const c = {};
4056
4056
  return n.maxHeight && (c.maxHeight = `${n.maxHeight}px`), c;
4057
- }, r = (c, d, v, f) => {
4058
- const p = {};
4057
+ }, r = (c, d, p, f) => {
4058
+ const v = {};
4059
4059
  if (c.width)
4060
- p.width = `${c.width}px`, p.minWidth = `${c.width}px`, p.maxWidth = `${c.width}px`;
4060
+ v.width = `${c.width}px`, v.minWidth = `${c.width}px`, v.maxWidth = `${c.width}px`;
4061
4061
  else if (c.minWidth)
4062
- p.minWidth = `${c.minWidth}px`, p.width = `${c.minWidth}px`, p.maxWidth = "none";
4062
+ v.minWidth = `${c.minWidth}px`, v.width = `${c.minWidth}px`, v.maxWidth = "none";
4063
4063
  else {
4064
4064
  const h = f();
4065
- p.width = `${h}px`, p.minWidth = "80px", p.maxWidth = "none";
4065
+ v.width = `${h}px`, v.minWidth = "80px", v.maxWidth = "none";
4066
4066
  }
4067
- return c.pinnedLeft ? (p.position = "sticky", p.left = `${v("left", d, n.selectable)}px`, p.zIndex = "10") : c.pinnedRight && (p.position = "sticky", p.right = `${v("right", d, !1)}px`, p.zIndex = "10"), p;
4067
+ return c.pinnedLeft ? (v.position = "sticky", v.left = `${p("left", d, n.selectable)}px`, v.zIndex = "10") : c.pinnedRight && (v.position = "sticky", v.right = `${p("right", d, !1)}px`, v.zIndex = "10"), v;
4068
4068
  };
4069
4069
  return {
4070
4070
  getTableWrapperStyle: e,
4071
4071
  getColumnStyle: r,
4072
- getHeaderStyle: (c, d, v, f) => {
4073
- const p = r(c, d, v, f);
4074
- return n.maxHeight && (p.position = "sticky", p.top = "0", c.pinnedLeft || c.pinnedRight ? p.zIndex = "12" : p.zIndex = "11"), p;
4072
+ getHeaderStyle: (c, d, p, f) => {
4073
+ const v = r(c, d, p, f);
4074
+ return n.maxHeight && (v.position = "sticky", v.top = "0", c.pinnedLeft || c.pinnedRight ? v.zIndex = "12" : v.zIndex = "11"), v;
4075
4075
  },
4076
- getFooterStyle: (c, d, v, f) => {
4077
- const p = r(c, d, v, f);
4078
- return n.maxHeight && (p.position = "sticky", p.bottom = "0", c.pinnedLeft || c.pinnedRight ? p.zIndex = "12" : p.zIndex = "11"), p;
4076
+ getFooterStyle: (c, d, p, f) => {
4077
+ const v = r(c, d, p, f);
4078
+ return n.maxHeight && (v.position = "sticky", v.bottom = "0", c.pinnedLeft || c.pinnedRight ? v.zIndex = "12" : v.zIndex = "11"), v;
4079
4079
  }
4080
4080
  };
4081
4081
  }
@@ -4088,40 +4088,40 @@ function g2() {
4088
4088
  return {
4089
4089
  onMouseDown: (t, i, c, d) => {
4090
4090
  t.preventDefault(), t.stopPropagation(), n.value.resizingCol = i, n.value.startX = t.clientX, n.value.startWidth = i.width || i.minWidth || c(i.prop);
4091
- const v = (p) => {
4091
+ const p = (v) => {
4092
4092
  const { resizingCol: h, startX: m, startWidth: o } = n.value;
4093
4093
  if (!h) return;
4094
4094
  document.querySelectorAll(`[data-resizer="${h.prop}"]`).forEach((L) => {
4095
4095
  L.classList.add("vt-table__resizer--active");
4096
4096
  });
4097
- const b = p.clientX - m, _ = h.minWidth || 50, F = h.maxWidth || 1e3, B = Math.max(Math.min(o + b, F), _);
4097
+ const b = v.clientX - m, _ = h.minWidth || 50, F = h.maxWidth || 1e3, B = Math.max(Math.min(o + b, F), _);
4098
4098
  h.width = B;
4099
4099
  }, f = () => {
4100
- const { resizingCol: p } = n.value;
4101
- document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", f), document.body.style.cursor = "", document.body.style.userSelect = "", document.body.classList.remove("vt-table-resizing"), p && (document.querySelectorAll(`[data-resizer="${p.prop}"]`).forEach((h) => {
4100
+ const { resizingCol: v } = n.value;
4101
+ document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", f), document.body.style.cursor = "", document.body.style.userSelect = "", document.body.classList.remove("vt-table-resizing"), v && (document.querySelectorAll(`[data-resizer="${v.prop}"]`).forEach((h) => {
4102
4102
  h.classList.remove("vt-table__resizer--active");
4103
- }), d && p.width && d(p.width)), n.value.resizingCol = null;
4103
+ }), d && v.width && d(v.width)), n.value.resizingCol = null;
4104
4104
  };
4105
- document.addEventListener("mousemove", v), document.addEventListener("mouseup", f), document.body.style.cursor = e, document.body.style.userSelect = "none", document.body.classList.add("vt-table-resizing");
4105
+ document.addEventListener("mousemove", p), document.addEventListener("mouseup", f), document.body.style.cursor = e, document.body.style.userSelect = "none", document.body.classList.add("vt-table-resizing");
4106
4106
  },
4107
4107
  resizeState: n
4108
4108
  };
4109
4109
  }
4110
4110
  function w2(n, e, r, t) {
4111
4111
  var de;
4112
- const i = n.selectionKey || "id", c = H([]), d = H(null), v = H(!1);
4112
+ const i = n.selectionKey || "id", c = H([]), d = H(null), p = H(!1);
4113
4113
  (de = n.defaultSelection) != null && de.length && (c.value = [...n.defaultSelection]);
4114
- const f = (I) => I[i], p = (I) => v.value ? !0 : c.value.some((U) => f(U) === f(I)), h = x(() => e.value.filter((I) => p(I)).length), m = x(() => e.value.length > 0 && h.value === e.value.length), o = x(() => {
4115
- if (v.value) return !1;
4114
+ const f = (I) => I[i], v = (I) => p.value ? !0 : c.value.some((U) => f(U) === f(I)), h = x(() => e.value.filter((I) => v(I)).length), m = x(() => e.value.length > 0 && h.value === e.value.length), o = x(() => {
4115
+ if (p.value) return !1;
4116
4116
  const I = h.value;
4117
4117
  return I > 0 && I < e.value.length;
4118
- }), b = x(() => v.value ? !0 : m.value && !o.value), _ = x(() => n.isAllSelect && v.value), F = (I, U) => {
4118
+ }), b = x(() => p.value ? !0 : m.value && !o.value), _ = x(() => n.isAllSelect && p.value), F = (I, U) => {
4119
4119
  const he = f(I), Ce = c.value.some((R) => f(R) === f(I)), D = U !== void 0 ? U : !Ce;
4120
- if (v.value && !D) {
4121
- v.value = !1, t != null && t.value && (c.value = t.value.filter((R) => f(R) !== he)), ne(I, !1);
4120
+ if (p.value && !D) {
4121
+ p.value = !1, t != null && t.value && (c.value = t.value.filter((R) => f(R) !== he)), ne(I, !1);
4122
4122
  return;
4123
4123
  }
4124
- v.value && D || (D && !Ce ? c.value.push(I) : !D && Ce && (c.value = c.value.filter((R) => f(R) !== he)), n.selectOnClickRow && U === void 0 && T(D ? I : null), ne(I, D));
4124
+ p.value && D || (D && !Ce ? c.value.push(I) : !D && Ce && (c.value = c.value.filter((R) => f(R) !== he)), n.selectOnClickRow && U === void 0 && T(D ? I : null), ne(I, D));
4125
4125
  }, B = () => {
4126
4126
  switch (L()) {
4127
4127
  case "none":
@@ -4135,17 +4135,17 @@ function w2(n, e, r, t) {
4135
4135
  j();
4136
4136
  break;
4137
4137
  }
4138
- }, L = () => v.value ? "absoluteAll" : m.value ? "allVisible" : h.value > 0 ? "partial" : "none", A = () => {
4138
+ }, L = () => p.value ? "absoluteAll" : m.value ? "allVisible" : h.value > 0 ? "partial" : "none", A = () => {
4139
4139
  const I = [], U = new Set(c.value.map((he) => f(he)));
4140
4140
  c.value.forEach((he) => {
4141
4141
  I.push(he);
4142
4142
  }), e.value.forEach((he) => {
4143
4143
  U.has(f(he)) || I.push(he);
4144
- }), c.value = I, v.value = !1, ne();
4144
+ }), c.value = I, p.value = !1, ne();
4145
4145
  }, J = () => {
4146
- n.isAllSelect ? (v.value = !0, t != null && t.value ? c.value = [...t.value] : c.value = [...e.value], ne(void 0, void 0, !0)) : A();
4146
+ n.isAllSelect ? (p.value = !0, t != null && t.value ? c.value = [...t.value] : c.value = [...e.value], ne(void 0, void 0, !0)) : A();
4147
4147
  }, j = () => {
4148
- c.value = [], v.value = !1, d.value = null, ne();
4148
+ c.value = [], p.value = !1, d.value = null, ne();
4149
4149
  }, T = (I) => {
4150
4150
  const U = d.value;
4151
4151
  d.value = I, r("current-change", {
@@ -4153,17 +4153,17 @@ function w2(n, e, r, t) {
4153
4153
  oldCurrentRow: U
4154
4154
  });
4155
4155
  }, V = () => [...c.value], Q = (I) => {
4156
- c.value = [...I], v.value = !1, ne();
4156
+ c.value = [...I], p.value = !1, ne();
4157
4157
  }, ne = (I, U, he = !1) => {
4158
4158
  const Ce = {
4159
4159
  selection: [...c.value],
4160
4160
  row: I,
4161
4161
  selected: U,
4162
- isAllSelected: he || v.value
4162
+ isAllSelected: he || p.value
4163
4163
  };
4164
4164
  r("selection-change", Ce);
4165
4165
  };
4166
- return Me(
4166
+ return ye(
4167
4167
  () => n.defaultSelection,
4168
4168
  (I) => {
4169
4169
  I != null && I.length && (c.value = [...I]);
@@ -4171,11 +4171,11 @@ function w2(n, e, r, t) {
4171
4171
  ), {
4172
4172
  selectedRows: c,
4173
4173
  currentRow: d,
4174
- isRowSelected: p,
4174
+ isRowSelected: v,
4175
4175
  isAllSelected: b,
4176
4176
  isIndeterminate: o,
4177
4177
  isDoubleCheck: _,
4178
- isFullSelection: v,
4178
+ isFullSelection: p,
4179
4179
  toggleRowSelection: F,
4180
4180
  toggleAllSelection: B,
4181
4181
  clearSelection: j,
@@ -4213,8 +4213,8 @@ const k2 = (n, e, r = "asc") => {
4213
4213
  if (!(t != null && t.sortable)) return [...n];
4214
4214
  const i = t.sortMethod || k2;
4215
4215
  return [...n].sort((c, d) => {
4216
- const v = c[t.prop], f = d[t.prop];
4217
- return i(v, f, e.direction);
4216
+ const p = c[t.prop], f = d[t.prop];
4217
+ return i(p, f, e.direction);
4218
4218
  });
4219
4219
  }, nt = Symbol("dropdown-context"), ot = /* @__PURE__ */ ke({
4220
4220
  __name: "VDropdown",
@@ -4231,9 +4231,9 @@ const k2 = (n, e, r = "asc") => {
4231
4231
  },
4232
4232
  emits: ["visible-change", "click", "command"],
4233
4233
  setup(n, { expose: e, emit: r }) {
4234
- const t = n, i = r, c = H(), d = H(), v = H(), f = H(!1), p = H(!1), h = H(null), { visible: m, parentVisible: o, dropdownPosition: b, show: _, hide: F, toggle: B } = C1(
4234
+ const t = n, i = r, c = H(), d = H(), p = H(), f = H(!1), v = H(!1), h = H(null), { visible: m, parentVisible: o, dropdownPosition: b, show: _, hide: F, toggle: B } = C1(
4235
4235
  d,
4236
- v,
4236
+ p,
4237
4237
  {
4238
4238
  trigger: t.trigger,
4239
4239
  placement: t.placement,
@@ -4247,7 +4247,7 @@ const k2 = (n, e, r = "asc") => {
4247
4247
  h.value && (clearTimeout(h.value), h.value = null);
4248
4248
  }, A = () => {
4249
4249
  L(), h.value = setTimeout(() => {
4250
- !f.value && !p.value && F();
4250
+ !f.value && !v.value && F();
4251
4251
  }, t.hideTimeout);
4252
4252
  };
4253
4253
  u1(nt, {
@@ -4263,14 +4263,14 @@ const k2 = (n, e, r = "asc") => {
4263
4263
  }, V = () => {
4264
4264
  t.trigger === "hover" && (f.value = !1, A());
4265
4265
  }, Q = () => {
4266
- t.trigger === "hover" && (p.value = !0, L());
4266
+ t.trigger === "hover" && (v.value = !0, L());
4267
4267
  }, ne = () => {
4268
- t.trigger === "hover" && (p.value = !1, A());
4268
+ t.trigger === "hover" && (v.value = !1, A());
4269
4269
  }, de = (U) => {
4270
4270
  var Ce, D;
4271
4271
  if (!m.value) return;
4272
4272
  const he = U.target;
4273
- (Ce = c.value) != null && Ce.contains(he) || (D = v.value) != null && D.contains(he) || F();
4273
+ (Ce = c.value) != null && Ce.contains(he) || (D = p.value) != null && D.contains(he) || F();
4274
4274
  }, I = x(() => ({
4275
4275
  ...b.value,
4276
4276
  position: "absolute",
@@ -4306,7 +4306,7 @@ const k2 = (n, e, r = "asc") => {
4306
4306
  }, [
4307
4307
  s("div", {
4308
4308
  ref_key: "menuRef",
4309
- ref: v,
4309
+ ref: p,
4310
4310
  style: Ee(I.value),
4311
4311
  class: "vt-dropdown-menu",
4312
4312
  onMouseenter: Q,
@@ -4334,7 +4334,7 @@ const k2 = (n, e, r = "asc") => {
4334
4334
  const c = (d) => {
4335
4335
  r.disabled || (console.log("VDropdownItem click:", r.command), t("click", d), r.command !== void 0 && i && (console.log("Calling handleCommand with:", r.command), i.handleCommand(r.command)));
4336
4336
  };
4337
- return (d, v) => (l(), u("li", {
4337
+ return (d, p) => (l(), u("li", {
4338
4338
  class: G(["vt-dropdown-item", {
4339
4339
  "is-disabled": d.disabled,
4340
4340
  "vt-dropdown-item--divided": d.divided
@@ -4389,13 +4389,13 @@ class $2 {
4389
4389
  }
4390
4390
  });
4391
4391
  this.inheritFromParentApp(d, this.parentApp), d.mount(t);
4392
- const v = {
4392
+ const p = {
4393
4393
  id: r,
4394
4394
  app: d,
4395
4395
  container: t,
4396
4396
  isOpen: i
4397
4397
  };
4398
- return this.modalStack.push(v), r;
4398
+ return this.modalStack.push(p), r;
4399
4399
  }
4400
4400
  close() {
4401
4401
  if (this.modalStack.length > 0) {
@@ -4468,7 +4468,7 @@ const Xe = new $2(), M2 = {
4468
4468
  },
4469
4469
  emits: ["update-columns"],
4470
4470
  setup(n, { emit: e }) {
4471
- const r = n, t = e, i = H([]), c = H(/* @__PURE__ */ new Set()), d = H(-1), v = H(-1), f = H("before"), p = x(() => {
4471
+ const r = n, t = e, i = H([]), c = H(/* @__PURE__ */ new Set()), d = H(-1), p = H(-1), f = H("before"), v = x(() => {
4472
4472
  const D = {};
4473
4473
  return r.columnsSelector.forEach((R) => {
4474
4474
  if (R.name === "removed")
@@ -4506,13 +4506,13 @@ const Xe = new $2(), M2 = {
4506
4506
  D.preventDefault();
4507
4507
  const Y = D.currentTarget.getBoundingClientRect(), re = D.clientY, oe = Y.top + Y.height / 2;
4508
4508
  let te = R, ce = "before";
4509
- re < oe ? (te = R, ce = "before") : (te = R + 1, ce = "after"), d.value < te && te--, _(te) ? (v.value = R, f.value = ce, D.dataTransfer.dropEffect = "move") : (v.value = -1, D.dataTransfer.dropEffect = "none");
4509
+ re < oe ? (te = R, ce = "before") : (te = R + 1, ce = "after"), d.value < te && te--, _(te) ? (p.value = R, f.value = ce, D.dataTransfer.dropEffect = "move") : (p.value = -1, D.dataTransfer.dropEffect = "none");
4510
4510
  }, L = () => {
4511
4511
  setTimeout(() => {
4512
- d.value === -1 && (v.value = -1);
4512
+ d.value === -1 && (p.value = -1);
4513
4513
  }, 50);
4514
4514
  }, A = (D, R) => {
4515
- if (D.preventDefault(), d.value === -1 || v.value === -1) {
4515
+ if (D.preventDefault(), d.value === -1 || p.value === -1) {
4516
4516
  j();
4517
4517
  return;
4518
4518
  }
@@ -4527,10 +4527,10 @@ const Xe = new $2(), M2 = {
4527
4527
  }, J = () => {
4528
4528
  j();
4529
4529
  }, j = () => {
4530
- d.value = -1, v.value = -1, f.value = "before", document.body.style.cursor = "";
4530
+ d.value = -1, p.value = -1, f.value = "before", document.body.style.cursor = "";
4531
4531
  }, T = (D) => {
4532
4532
  const R = ["vt-columns-selector__panel-item"];
4533
- return d.value === D && R.push("vt-columns-selector__panel-item--dragging"), v.value === D && f.value === "before" && R.push("vt-columns-selector__panel-item--drop-before"), v.value === D && f.value === "after" && R.push("vt-columns-selector__panel-item--drop-after"), R;
4533
+ return d.value === D && R.push("vt-columns-selector__panel-item--dragging"), p.value === D && f.value === "before" && R.push("vt-columns-selector__panel-item--drop-before"), p.value === D && f.value === "after" && R.push("vt-columns-selector__panel-item--drop-after"), R;
4534
4534
  }, V = () => {
4535
4535
  i.value = [...r.columns.map((D) => ({ ...D }))], r.columnsSelector.forEach((D) => {
4536
4536
  D.name !== "removed" && c.value.add(D.name);
@@ -4572,7 +4572,7 @@ const Xe = new $2(), M2 = {
4572
4572
  }), (D, R) => (l(), u("div", x2, [
4573
4573
  s("div", L2, [
4574
4574
  s("div", V2, [
4575
- (l(!0), u(le, null, ve(i.value, (Y, re) => (l(), u("div", {
4575
+ (l(!0), u(le, null, pe(i.value, (Y, re) => (l(), u("div", {
4576
4576
  key: Y.prop,
4577
4577
  class: G(T(re)),
4578
4578
  draggable: o(Y),
@@ -4598,7 +4598,7 @@ const Xe = new $2(), M2 = {
4598
4598
  ], 42, S2))), 128))
4599
4599
  ]),
4600
4600
  s("div", H2, [
4601
- (l(!0), u(le, null, ve(h.value, (Y) => {
4601
+ (l(!0), u(le, null, pe(h.value, (Y) => {
4602
4602
  var re, oe;
4603
4603
  return l(), u("div", {
4604
4604
  key: Y.name,
@@ -4610,8 +4610,8 @@ const Xe = new $2(), M2 = {
4610
4610
  }, [
4611
4611
  ee(e1, {
4612
4612
  label: Y.label,
4613
- checked: ((re = p.value[Y.name]) == null ? void 0 : re.checked) || !1,
4614
- indeterminate: ((oe = p.value[Y.name]) == null ? void 0 : oe.indeterminate) || !1,
4613
+ checked: ((re = v.value[Y.name]) == null ? void 0 : re.checked) || !1,
4614
+ indeterminate: ((oe = v.value[Y.name]) == null ? void 0 : oe.indeterminate) || !1,
4615
4615
  onChange: (te) => ne(Y, te),
4616
4616
  onClick: R[1] || (R[1] = Se(() => {
4617
4617
  }, ["stop"]))
@@ -4623,7 +4623,7 @@ const Xe = new $2(), M2 = {
4623
4623
  }, null, 8, ["name"])) : q("", !0)
4624
4624
  ], 8, T2),
4625
4625
  c.value.has(Y.name) ? (l(), u("div", I2, [
4626
- (l(!0), u(le, null, ve(Y.columns, (te) => (l(), u("div", {
4626
+ (l(!0), u(le, null, pe(Y.columns, (te) => (l(), u("div", {
4627
4627
  key: te.prop,
4628
4628
  class: "vt-columns-selector__group-column"
4629
4629
  }, [
@@ -4676,7 +4676,7 @@ const Xe = new $2(), M2 = {
4676
4676
  console.log("Executing pin command"), d();
4677
4677
  break;
4678
4678
  case "columns":
4679
- console.log("Executing columns command"), p();
4679
+ console.log("Executing columns command"), v();
4680
4680
  break;
4681
4681
  default:
4682
4682
  console.warn("Unknown command:", h);
@@ -4684,7 +4684,7 @@ const Xe = new $2(), M2 = {
4684
4684
  }, d = () => {
4685
4685
  const h = i();
4686
4686
  console.log("handlePin called, isPinned:", h), h ? t("pin", r.column, "none") : t("pin", r.column, "left");
4687
- }, v = (h) => ({
4687
+ }, p = (h) => ({
4688
4688
  name: "removed",
4689
4689
  label: "Видалені колонки",
4690
4690
  order: 999,
@@ -4707,8 +4707,8 @@ const Xe = new $2(), M2 = {
4707
4707
  }
4708
4708
  });
4709
4709
  const _ = [...r.columnsSelector || []];
4710
- return b.length > 0 && _.push(v(b)), _;
4711
- }, p = () => {
4710
+ return b.length > 0 && _.push(p(b)), _;
4711
+ }, v = () => {
4712
4712
  console.log("handleToggleVisibility called");
4713
4713
  const h = f(r.allColumns);
4714
4714
  Xe.open({
@@ -4795,16 +4795,16 @@ const Xe = new $2(), M2 = {
4795
4795
  }),
4796
4796
  emits: /* @__PURE__ */ H1(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
4797
4797
  setup(n, { expose: e, emit: r }) {
4798
- const t = n, i = r, c = at(n, "columns"), d = H({}), v = H(), f = L1([]), p = H(t.defaultSort || null), h = x(() => y2(t.data || [], p.value, f)), m = x(() => c.value !== void 0), o = x(() => t.data && t.data.length > 0), b = H(!1), _ = H(0);
4798
+ const t = n, i = r, c = at(n, "columns"), d = H({}), p = H(), f = L1([]), v = H(t.defaultSort || null), h = x(() => y2(t.data || [], v.value, f)), m = x(() => c.value !== void 0), o = x(() => t.data && t.data.length > 0), b = H(!1), _ = H(0);
4799
4799
  let F;
4800
4800
  const B = (P, K) => t.rowKey && P[t.rowKey] != null ? String(P[t.rowKey]) : String(K);
4801
- Me(
4801
+ ye(
4802
4802
  () => c.value,
4803
4803
  (P) => {
4804
4804
  P && m.value && (f.length = 0, f.push(...P));
4805
4805
  },
4806
4806
  { deep: !0 }
4807
- ), Me(
4807
+ ), ye(
4808
4808
  () => t.columns,
4809
4809
  (P) => {
4810
4810
  P && !m.value && (f.length = 0, f.push(...P));
@@ -4833,10 +4833,10 @@ const Xe = new $2(), M2 = {
4833
4833
  zIndex: 12
4834
4834
  } : P;
4835
4835
  }, D = () => {
4836
- if (!v.value || b.value) return;
4837
- const P = v.value, K = P.scrollTop, ie = P.scrollHeight, pe = P.clientHeight, se = 30;
4836
+ if (!p.value || b.value) return;
4837
+ const P = p.value, K = P.scrollTop, ie = P.scrollHeight, ve = P.clientHeight, se = 30;
4838
4838
  F && clearTimeout(F), F = setTimeout(() => {
4839
- const $ = K - _.value > 1, a = ie - K - pe <= se, C = ie - K - pe <= 5;
4839
+ const $ = K - _.value > 1, a = ie - K - ve <= se, C = ie - K - ve <= 5;
4840
4840
  _.value = K, $ && (a || C) && (b.value = !0, i("infinity-scroll"), setTimeout(() => {
4841
4841
  b.value = !1;
4842
4842
  }, 1e3));
@@ -4845,16 +4845,16 @@ const Xe = new $2(), M2 = {
4845
4845
  b.value = !1;
4846
4846
  };
4847
4847
  Oe(() => {
4848
- v.value && v.value.addEventListener("scroll", D);
4848
+ p.value && p.value.addEventListener("scroll", D);
4849
4849
  }), Je(() => {
4850
- F && clearTimeout(F), v.value && v.value.removeEventListener("scroll", D);
4850
+ F && clearTimeout(F), p.value && p.value.removeEventListener("scroll", D);
4851
4851
  });
4852
4852
  const Y = (P, K) => {
4853
4853
  b2(P, K, (ie) => {
4854
- var pe, se;
4855
- ((pe = p.value) == null ? void 0 : pe.prop) === P.prop && p.value.direction === K ? p.value = null : p.value = ie, i("sort-change", {
4854
+ var ve, se;
4855
+ ((ve = v.value) == null ? void 0 : ve.prop) === P.prop && v.value.direction === K ? v.value = null : v.value = ie, i("sort-change", {
4856
4856
  column: P,
4857
- direction: ((se = p.value) == null ? void 0 : se.direction) || null,
4857
+ direction: ((se = v.value) == null ? void 0 : se.direction) || null,
4858
4858
  prop: P.prop,
4859
4859
  sortedData: h.value
4860
4860
  });
@@ -4868,13 +4868,13 @@ const Xe = new $2(), M2 = {
4868
4868
  }, oe = (P) => {
4869
4869
  f.splice(0, f.length, ...P), m.value && (c.value = [...P]), i("columns-change", [...P]);
4870
4870
  }, te = (P, K) => {
4871
- const ie = f.findIndex((pe) => pe.prop === P);
4871
+ const ie = f.findIndex((ve) => ve.prop === P);
4872
4872
  if (ie !== -1) {
4873
4873
  if (Object.assign(f[ie], K), m.value && c.value) {
4874
- const pe = c.value.findIndex((se) => se.prop === P);
4875
- if (pe !== -1) {
4874
+ const ve = c.value.findIndex((se) => se.prop === P);
4875
+ if (ve !== -1) {
4876
4876
  const se = [...c.value];
4877
- se[pe] = { ...se[pe], ...K }, c.value = se;
4877
+ se[ve] = { ...se[ve], ...K }, c.value = se;
4878
4878
  }
4879
4879
  }
4880
4880
  i("columns-change", [...f]);
@@ -4887,12 +4887,12 @@ const Xe = new $2(), M2 = {
4887
4887
  K.stopPropagation(), I && I.toggleAllSelection();
4888
4888
  }, Ie = (P, K) => {
4889
4889
  P && (d.value[K] = P);
4890
- }, ye = (P, K) => {
4890
+ }, $e = (P, K) => {
4891
4891
  const ie = K.width || A();
4892
- ne(P, K, A, (pe) => {
4893
- te(K.prop, { width: pe }), i("column-resize", {
4894
- column: { ...K, width: pe },
4895
- width: pe,
4892
+ ne(P, K, A, (ve) => {
4893
+ te(K.prop, { width: ve }), i("column-resize", {
4894
+ column: { ...K, width: ve },
4895
+ width: ve,
4896
4896
  oldWidth: ie
4897
4897
  });
4898
4898
  });
@@ -4906,20 +4906,20 @@ const Xe = new $2(), M2 = {
4906
4906
  if (typeof t.summaryMethod == "function") {
4907
4907
  const K = t.summaryMethod({ columns: P, data: h.value });
4908
4908
  return P.reduce(
4909
- (ie, pe, se) => (ie[pe.prop] = K[se], ie),
4909
+ (ie, ve, se) => (ie[ve.prop] = K[se], ie),
4910
4910
  {}
4911
4911
  );
4912
4912
  }
4913
4913
  return P.reduce(
4914
4914
  (K, ie) => {
4915
- const pe = h.value.map((se) => se[ie.prop]);
4916
- return K[ie.prop] = pe.every((se) => typeof se == "number") ? pe.reduce((se, k) => se + k, 0) : "", K;
4915
+ const ve = h.value.map((se) => se[ie.prop]);
4916
+ return K[ie.prop] = ve.every((se) => typeof se == "number") ? ve.reduce((se, k) => se + k, 0) : "", K;
4917
4917
  },
4918
4918
  {}
4919
4919
  );
4920
4920
  }), O = x(() => t.showSummary && o.value), N = (P, K) => {
4921
4921
  I && I.toggleRowSelection(P, K);
4922
- }, $e = () => {
4922
+ }, Me = () => {
4923
4923
  I && I.toggleAllSelection();
4924
4924
  }, Pe = () => {
4925
4925
  I && I.selectAbsolutelyAll();
@@ -4932,26 +4932,26 @@ const Xe = new $2(), M2 = {
4932
4932
  try {
4933
4933
  const ie = t.rowHighlight(P, K);
4934
4934
  if (!ie) return [];
4935
- const pe = [];
4936
- return (ie.type !== "custom" || !ie.className) && pe.push(`vt-table__row--highlight-${ie.type}`), ie.className && pe.push(ie.className), pe;
4935
+ const ve = [];
4936
+ return (ie.type !== "custom" || !ie.className) && ve.push(`vt-table__row--highlight-${ie.type}`), ie.className && ve.push(ie.className), ve;
4937
4937
  } catch (ie) {
4938
4938
  return console.warn("Помилка у функції підсвічування рядків:", ie), [];
4939
4939
  }
4940
4940
  };
4941
4941
  return e({
4942
4942
  toggleRowSelection: N,
4943
- toggleAllSelection: $e,
4943
+ toggleAllSelection: Me,
4944
4944
  selectAbsolutelyAll: Pe,
4945
4945
  clearSelection: Be,
4946
4946
  getSelectionRows: je,
4947
4947
  setSelectionRows: Re,
4948
4948
  resetInfinityScroll: R
4949
4949
  }), (P, K) => {
4950
- var pe, se, k, $;
4950
+ var ve, se, k, $;
4951
4951
  const ie = x1("tooltip");
4952
4952
  return l(), u("div", {
4953
4953
  ref_key: "tableWrapperRef",
4954
- ref: v,
4954
+ ref: p,
4955
4955
  style: Ee(z(j)()),
4956
4956
  class: "vt-table-wrapper",
4957
4957
  onScroll: D
@@ -4970,14 +4970,14 @@ const Xe = new $2(), M2 = {
4970
4970
  }, [
4971
4971
  s("div", F2, [
4972
4972
  ee(e1, {
4973
- checked: (pe = z(I)) == null ? void 0 : pe.isAllSelected.value,
4973
+ checked: (ve = z(I)) == null ? void 0 : ve.isAllSelected.value,
4974
4974
  indeterminate: (se = z(I)) == null ? void 0 : se.isIndeterminate.value,
4975
4975
  "is-double": t.isAllSelect && (($ = (k = z(I)) == null ? void 0 : k.isDoubleCheck) == null ? void 0 : $.value),
4976
4976
  onChange: He
4977
4977
  }, null, 8, ["checked", "indeterminate", "is-double"])
4978
4978
  ])
4979
4979
  ], 6)) : q("", !0),
4980
- (l(!0), u(le, null, ve(z(L), (a, C) => (l(), u("th", {
4980
+ (l(!0), u(le, null, pe(z(L), (a, C) => (l(), u("th", {
4981
4981
  key: a.prop,
4982
4982
  ref_for: !0,
4983
4983
  ref: (X) => Ie(X, a.prop),
@@ -5000,12 +5000,12 @@ const Xe = new $2(), M2 = {
5000
5000
  ]),
5001
5001
  a.sortable ? (l(), u("div", Y2, [
5002
5002
  ee(fe, {
5003
- class: G(z(A1)(a, p.value).asc),
5003
+ class: G(z(A1)(a, v.value).asc),
5004
5004
  name: "arrowTop",
5005
5005
  onClick: Se((X) => Y(a, "asc"), ["stop"])
5006
5006
  }, null, 8, ["class", "onClick"]),
5007
5007
  ee(fe, {
5008
- class: G(z(A1)(a, p.value).desc),
5008
+ class: G(z(A1)(a, v.value).desc),
5009
5009
  name: "arrowDown",
5010
5010
  onClick: Se((X) => Y(a, "desc"), ["stop"])
5011
5011
  }, null, 8, ["class", "onClick"])
@@ -5022,13 +5022,13 @@ const Xe = new $2(), M2 = {
5022
5022
  s("div", {
5023
5023
  "data-resizer": a.prop,
5024
5024
  class: "vt-table__resizer",
5025
- onMousedown: (X) => ye(X, a)
5025
+ onMousedown: (X) => $e(X, a)
5026
5026
  }, null, 40, N2)
5027
5027
  ], 6))), 128))
5028
5028
  ])
5029
5029
  ])),
5030
5030
  s("tbody", null, [
5031
- o.value ? (l(!0), u(le, { key: 1 }, ve(h.value, (a, C) => {
5031
+ o.value ? (l(!0), u(le, { key: 1 }, pe(h.value, (a, C) => {
5032
5032
  var X, W, _e;
5033
5033
  return l(), u("tr", {
5034
5034
  key: B(a, C),
@@ -5057,7 +5057,7 @@ const Xe = new $2(), M2 = {
5057
5057
  }, null, 8, ["checked", "onChange"])
5058
5058
  ])
5059
5059
  ], 4)) : q("", !0),
5060
- (l(!0), u(le, null, ve(z(L), (ue, be) => (l(), u("td", {
5060
+ (l(!0), u(le, null, pe(z(L), (ue, be) => (l(), u("td", {
5061
5061
  key: `${B(a, C)}-${ue.prop}`,
5062
5062
  ref_for: !0,
5063
5063
  ref: (Ve) => Ie(Ve, ue.prop),
@@ -5084,7 +5084,7 @@ const Xe = new $2(), M2 = {
5084
5084
  s("div", {
5085
5085
  "data-resizer": ue.prop,
5086
5086
  class: "vt-table__resizer",
5087
- onMousedown: (Ve) => ye(Ve, ue)
5087
+ onMousedown: (Ve) => $e(Ve, ue)
5088
5088
  }, null, 40, J2)
5089
5089
  ], 6))), 128))
5090
5090
  ], 10, K2);
@@ -5114,7 +5114,7 @@ const Xe = new $2(), M2 = {
5114
5114
  }, K[1] || (K[1] = [
5115
5115
  s("div", { class: "vt-table__cell-content vt-table__cell-content--summary" }, null, -1)
5116
5116
  ]), 4)) : q("", !0),
5117
- (l(!0), u(le, null, ve(z(L), (a, C) => (l(), u("td", {
5117
+ (l(!0), u(le, null, pe(z(L), (a, C) => (l(), u("td", {
5118
5118
  key: a.prop,
5119
5119
  class: G([
5120
5120
  "vt-table__td",
@@ -5174,10 +5174,10 @@ const Xe = new $2(), M2 = {
5174
5174
  return Oe(() => {
5175
5175
  Te(() => {
5176
5176
  if (!t) return;
5177
- const d = i(), v = t.findIndex((f) => f.prop === e.prop && f.label === e.label);
5178
- v !== -1 ? t[v] = { ...t[v], ...d } : (t.push(d), c = t.length - 1);
5177
+ const d = i(), p = t.findIndex((f) => f.prop === e.prop && f.label === e.label);
5178
+ p !== -1 ? t[p] = { ...t[p], ...d } : (t.push(d), c = t.length - 1);
5179
5179
  });
5180
- }), Me(
5180
+ }), ye(
5181
5181
  () => [
5182
5182
  e.width,
5183
5183
  e.minWidth,
@@ -5192,11 +5192,11 @@ const Xe = new $2(), M2 = {
5192
5192
  ],
5193
5193
  () => {
5194
5194
  if (t && c !== -1) {
5195
- const d = t.findIndex((v) => v.prop === e.prop);
5195
+ const d = t.findIndex((p) => p.prop === e.prop);
5196
5196
  if (d !== -1) {
5197
- const v = t[d], f = {
5197
+ const p = t[d], f = {
5198
5198
  ...i(),
5199
- renderSlot: v.renderSlot
5199
+ renderSlot: p.renderSlot
5200
5200
  // Зберігаємо існуючий renderSlot
5201
5201
  };
5202
5202
  t[d] = f;
@@ -5206,10 +5206,10 @@ const Xe = new $2(), M2 = {
5206
5206
  { deep: !0 }
5207
5207
  ), Je(() => {
5208
5208
  if (t) {
5209
- const d = t.findIndex((v) => v.prop === e.prop);
5209
+ const d = t.findIndex((p) => p.prop === e.prop);
5210
5210
  d > -1 && t.splice(d, 1);
5211
5211
  }
5212
- }), (d, v) => null;
5212
+ }), (d, p) => null;
5213
5213
  }
5214
5214
  }), P0 = {
5215
5215
  yyyy: {
@@ -5306,11 +5306,11 @@ const Xe = new $2(), M2 = {
5306
5306
  }, a5 = () => {
5307
5307
  const n = (i, c) => {
5308
5308
  if (!i || !(i instanceof Date) || isNaN(i.getTime())) return "";
5309
- const d = i.getFullYear(), v = i.getMonth(), f = i.getDate(), p = i.getHours(), h = p > 12 ? p - 12 : p === 0 ? 12 : p, m = i.getMinutes(), o = i.getSeconds(), b = i.getTime();
5309
+ const d = i.getFullYear(), p = i.getMonth(), f = i.getDate(), v = i.getHours(), h = v > 12 ? v - 12 : v === 0 ? 12 : v, m = i.getMinutes(), o = i.getSeconds(), b = i.getTime();
5310
5310
  let _ = c;
5311
- _ = _.replace(/yyyy/g, String(d)), _ = _.replace(/yy/g, String(d).slice(-2)), _ = _.replace(/MMMM/g, s5[v]), _ = _.replace(/MMM/g, st[v]), _ = _.replace(/MM/g, String(v + 1).padStart(2, "0")), _ = _.replace(/M/g, String(v + 1));
5311
+ _ = _.replace(/yyyy/g, String(d)), _ = _.replace(/yy/g, String(d).slice(-2)), _ = _.replace(/MMMM/g, s5[p]), _ = _.replace(/MMM/g, st[p]), _ = _.replace(/MM/g, String(p + 1).padStart(2, "0")), _ = _.replace(/M/g, String(p + 1));
5312
5312
  const F = r(i);
5313
- return _ = _.replace(/WW/g, String(F).padStart(2, "0")), _ = _.replace(/W/g, String(F)), _ = _.replace(/dd/g, String(f).padStart(2, "0")), _ = _.replace(/d/g, String(f)), _ = _.replace(/HH/g, String(p).padStart(2, "0")), _ = _.replace(/H/g, String(p)), _ = _.replace(/hh/g, String(h).padStart(2, "0")), _ = _.replace(/h/g, String(h)), _ = _.replace(/mm/g, String(m).padStart(2, "0")), _ = _.replace(/m/g, String(m)), _ = _.replace(/ss/g, String(o).padStart(2, "0")), _ = _.replace(/s/g, String(o)), _ = _.replace(/A/g, p >= 12 ? "PM" : "AM"), _ = _.replace(/a/g, p >= 12 ? "pm" : "am"), _ = _.replace(/timestamp/g, String(b)), _ = _.replace(/\[([^\]]+)\]/g, "$1"), _;
5313
+ return _ = _.replace(/WW/g, String(F).padStart(2, "0")), _ = _.replace(/W/g, String(F)), _ = _.replace(/dd/g, String(f).padStart(2, "0")), _ = _.replace(/d/g, String(f)), _ = _.replace(/HH/g, String(v).padStart(2, "0")), _ = _.replace(/H/g, String(v)), _ = _.replace(/hh/g, String(h).padStart(2, "0")), _ = _.replace(/h/g, String(h)), _ = _.replace(/mm/g, String(m).padStart(2, "0")), _ = _.replace(/m/g, String(m)), _ = _.replace(/ss/g, String(o).padStart(2, "0")), _ = _.replace(/s/g, String(o)), _ = _.replace(/A/g, v >= 12 ? "PM" : "AM"), _ = _.replace(/a/g, v >= 12 ? "pm" : "am"), _ = _.replace(/timestamp/g, String(b)), _ = _.replace(/\[([^\]]+)\]/g, "$1"), _;
5314
5314
  }, e = (i) => {
5315
5315
  if (!i) return null;
5316
5316
  if (i instanceof Date)
@@ -5328,18 +5328,18 @@ const Xe = new $2(), M2 = {
5328
5328
  getDefaultFormat: (i) => l5[i] || "yyyy-MM-dd"
5329
5329
  };
5330
5330
  }, u5 = (n, e, r, t, i) => {
5331
- const { formatDate: c, parseDate: d, getDefaultFormat: v } = a5(), f = x(() => ["datetimerange", "daterange", "monthrange", "yearrange"].includes(e.value)), p = x(() => r.value || v(e.value)), h = x(() => t.value || v(e.value)), m = x(() => n.value ? f.value ? Array.isArray(n.value) && n.value.length === 2 ? [d(n.value[0]), d(n.value[1])] : [null, null] : d(n.value) : f.value ? [null, null] : null), o = x(() => {
5331
+ const { formatDate: c, parseDate: d, getDefaultFormat: p } = a5(), f = x(() => ["datetimerange", "daterange", "monthrange", "yearrange"].includes(e.value)), v = x(() => r.value || p(e.value)), h = x(() => t.value || p(e.value)), m = x(() => n.value ? f.value ? Array.isArray(n.value) && n.value.length === 2 ? [d(n.value[0]), d(n.value[1])] : [null, null] : d(n.value) : f.value ? [null, null] : null), o = x(() => {
5332
5332
  if (f.value) {
5333
5333
  const [B, L] = m.value;
5334
5334
  if (B && L) {
5335
- const A = c(B, p.value), J = c(L, p.value);
5335
+ const A = c(B, v.value), J = c(L, v.value);
5336
5336
  return [A, J];
5337
5337
  } else if (B)
5338
- return [c(B, p.value), ""];
5338
+ return [c(B, v.value), ""];
5339
5339
  return ["", ""];
5340
5340
  } else {
5341
5341
  const B = m.value;
5342
- return B ? c(B, p.value) : "";
5342
+ return B ? c(B, v.value) : "";
5343
5343
  }
5344
5344
  }), b = x(() => {
5345
5345
  if (f.value) {
@@ -5350,7 +5350,7 @@ const Xe = new $2(), M2 = {
5350
5350
  });
5351
5351
  return {
5352
5352
  isRange: f,
5353
- displayFormat: p,
5353
+ displayFormat: v,
5354
5354
  outputFormat: h,
5355
5355
  parsedValue: m,
5356
5356
  displayText: o,
@@ -5465,8 +5465,8 @@ const Xe = new $2(), M2 = {
5465
5465
  const i = n.match(t);
5466
5466
  if (i) {
5467
5467
  let c = parseInt(i[1]);
5468
- const d = parseInt(i[2]), v = (e = i[4]) == null ? void 0 : e.toUpperCase();
5469
- return v && (v === "PM" && c !== 12 && (c += 12), v === "AM" && c === 12 && (c = 0)), c * 60 + d;
5468
+ const d = parseInt(i[2]), p = (e = i[4]) == null ? void 0 : e.toUpperCase();
5469
+ return p && (p === "PM" && c !== 12 && (c += 12), p === "AM" && c === 12 && (c = 0)), c * 60 + d;
5470
5470
  }
5471
5471
  }
5472
5472
  }
@@ -5474,9 +5474,9 @@ const Xe = new $2(), M2 = {
5474
5474
  }, d5 = (n, e, r = 0, t = "HH:mm:ss", i = !1) => {
5475
5475
  let c = n;
5476
5476
  i && (c = n === 0 ? 12 : n > 12 ? n - 12 : n);
5477
- const d = c.toString().padStart(2, "0"), v = e.toString().padStart(2, "0"), f = r.toString().padStart(2, "0");
5478
- let p = t;
5479
- return p = p.replace(/HH/g, n.toString().padStart(2, "0")), p = p.replace(/H/g, n.toString()), p = p.replace(/hh/g, d), p = p.replace(/h/g, c.toString()), p = p.replace(/mm/g, v), p = p.replace(/m/g, e.toString()), p = p.replace(/ss/g, f), p = p.replace(/s/g, r.toString()), p = p.replace(/A/g, n >= 12 ? "PM" : "AM"), p = p.replace(/a/g, n >= 12 ? "pm" : "am"), p;
5477
+ const d = c.toString().padStart(2, "0"), p = e.toString().padStart(2, "0"), f = r.toString().padStart(2, "0");
5478
+ let v = t;
5479
+ return v = v.replace(/HH/g, n.toString().padStart(2, "0")), v = v.replace(/H/g, n.toString()), v = v.replace(/hh/g, d), v = v.replace(/h/g, c.toString()), v = v.replace(/mm/g, p), v = v.replace(/m/g, e.toString()), v = v.replace(/ss/g, f), v = v.replace(/s/g, r.toString()), v = v.replace(/A/g, n >= 12 ? "PM" : "AM"), v = v.replace(/a/g, n >= 12 ? "pm" : "am"), v;
5480
5480
  }, h5 = (n) => {
5481
5481
  if (!n) return null;
5482
5482
  const e = [
@@ -5493,8 +5493,8 @@ const Xe = new $2(), M2 = {
5493
5493
  const t = n.match(r);
5494
5494
  if (t) {
5495
5495
  let i = parseInt(t[1]);
5496
- const c = parseInt(t[2]), d = t[3] ? parseInt(t[3]) : 0, v = t[4] ? t[4].toUpperCase() : void 0;
5497
- return v && (v === "PM" && i !== 12 && (i += 12), v === "AM" && i === 12 && (i = 0)), { hour: i, minute: c, second: d, period: v };
5496
+ const c = parseInt(t[2]), d = t[3] ? parseInt(t[3]) : 0, p = t[4] ? t[4].toUpperCase() : void 0;
5497
+ return p && (p === "PM" && i !== 12 && (i += 12), p === "AM" && i === 12 && (i = 0)), { hour: i, minute: c, second: d, period: p };
5498
5498
  }
5499
5499
  }
5500
5500
  return null;
@@ -5507,7 +5507,7 @@ const Xe = new $2(), M2 = {
5507
5507
  disabled: t.includes(c)
5508
5508
  });
5509
5509
  return i;
5510
- }, p5 = { class: "vt-timepicker__input" }, v5 = { class: "vt-timepicker__icon" }, f5 = {
5510
+ }, v5 = { class: "vt-timepicker__input" }, p5 = { class: "vt-timepicker__icon" }, f5 = {
5511
5511
  key: 0,
5512
5512
  class: "vt-timepicker__text"
5513
5513
  }, C5 = {
@@ -5537,7 +5537,7 @@ const Xe = new $2(), M2 = {
5537
5537
  }, o6 = { class: "vt-timepicker__options" }, s6 = ["disabled", "onClick"], l6 = {
5538
5538
  key: 1,
5539
5539
  class: "vt-timepicker__column"
5540
- }, r6 = { class: "vt-timepicker__options" }, i6 = ["onClick"], a6 = { class: "vt-timepicker__actions" }, p1 = /* @__PURE__ */ ke({
5540
+ }, r6 = { class: "vt-timepicker__options" }, i6 = ["onClick"], a6 = { class: "vt-timepicker__actions" }, v1 = /* @__PURE__ */ ke({
5541
5541
  __name: "VTimePicker",
5542
5542
  props: {
5543
5543
  modelValue: {},
@@ -5562,12 +5562,12 @@ const Xe = new $2(), M2 = {
5562
5562
  },
5563
5563
  emits: ["update:modelValue", "change", "blur", "focus", "open-change"],
5564
5564
  setup(n, { expose: e, emit: r }) {
5565
- const t = n, i = r, c = H(), d = H(), v = H(), f = {
5565
+ const t = n, i = r, c = H(), d = H(), p = H(), f = {
5566
5566
  isFocused: H(!1),
5567
5567
  startTime: H(null),
5568
5568
  endTime: H(null),
5569
5569
  isSelectingEnd: H(!1)
5570
- }, p = H(/* @__PURE__ */ new Map()), h = x(() => t.type === "timerange"), m = (k) => {
5570
+ }, v = H(/* @__PURE__ */ new Map()), h = x(() => t.type === "timerange"), m = (k) => {
5571
5571
  if (!k) return "";
5572
5572
  const { hour: $, minute: a, second: C } = k, X = t.format || (t.showSeconds ? t.use12Hours ? h1["12h"] : h1["24h"] : t.use12Hours ? h1["12h_no_seconds"] : h1["24h_no_seconds"]);
5573
5573
  return d5($, a, C, X, t.use12Hours);
@@ -5616,7 +5616,7 @@ const Xe = new $2(), M2 = {
5616
5616
  hide: ce,
5617
5617
  toggle: ze,
5618
5618
  updatePosition: He
5619
- } = C1(d, v, {
5619
+ } = C1(d, p, {
5620
5620
  trigger: "click",
5621
5621
  placement: "bottom-start",
5622
5622
  showTimeout: 0,
@@ -5636,9 +5636,9 @@ const Xe = new $2(), M2 = {
5636
5636
  ...oe.value,
5637
5637
  position: "absolute",
5638
5638
  zIndex: 2e3
5639
- })), ye = (k, $, a = !1) => {
5640
- const C = p.value.get(k);
5641
- C && (C.disconnect(), p.value.delete(k));
5639
+ })), $e = (k, $, a = !1) => {
5640
+ const C = v.value.get(k);
5641
+ C && (C.disconnect(), v.value.delete(k));
5642
5642
  const X = `${-k.clientHeight / 2 + 16}px 0px ${-k.clientHeight / 2 + 16}px 0px`, W = new IntersectionObserver(
5643
5643
  (ue) => {
5644
5644
  var Ze;
@@ -5671,26 +5671,26 @@ const Xe = new $2(), M2 = {
5671
5671
  threshold: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1]
5672
5672
  }
5673
5673
  );
5674
- k.querySelectorAll(".vt-timepicker__option").forEach((ue) => W.observe(ue)), p.value.set(k, W);
5674
+ k.querySelectorAll(".vt-timepicker__option").forEach((ue) => W.observe(ue)), v.value.set(k, W);
5675
5675
  }, Qe = () => {
5676
- !Y.value || !v.value || Te(() => {
5676
+ !Y.value || !p.value || Te(() => {
5677
5677
  var a;
5678
- const k = (a = v.value) == null ? void 0 : a.querySelectorAll(".vt-timepicker__options");
5678
+ const k = (a = p.value) == null ? void 0 : a.querySelectorAll(".vt-timepicker__options");
5679
5679
  if (!k) return;
5680
5680
  const $ = Array.from(k);
5681
5681
  if (h.value) {
5682
- $[0] && ye($[0], "hour", !1), $[1] && ye($[1], "minute", !1), t.showSeconds && $[2] && ye($[2], "second", !1);
5682
+ $[0] && $e($[0], "hour", !1), $[1] && $e($[1], "minute", !1), t.showSeconds && $[2] && $e($[2], "second", !1);
5683
5683
  const C = t.showSeconds ? t.use12Hours ? 4 : 3 : t.use12Hours ? 3 : 2;
5684
- $[C] && ye($[C], "hour", !0), $[C + 1] && ye($[C + 1], "minute", !0), t.showSeconds && $[C + 2] && ye($[C + 2], "second", !0);
5684
+ $[C] && $e($[C], "hour", !0), $[C + 1] && $e($[C + 1], "minute", !0), t.showSeconds && $[C + 2] && $e($[C + 2], "second", !0);
5685
5685
  } else
5686
- $[0] && ye($[0], "hour", !1), $[1] && ye($[1], "minute", !1), t.showSeconds && $[2] && ye($[2], "second", !1);
5686
+ $[0] && $e($[0], "hour", !1), $[1] && $e($[1], "minute", !1), t.showSeconds && $[2] && $e($[2], "second", !1);
5687
5687
  });
5688
5688
  }, qe = () => {
5689
- p.value.forEach((k) => k.disconnect()), p.value.clear();
5689
+ v.value.forEach((k) => k.disconnect()), v.value.clear();
5690
5690
  }, Ue = () => {
5691
5691
  Y.value && Te(() => {
5692
5692
  var a;
5693
- const k = (a = v.value) == null ? void 0 : a.querySelectorAll(".vt-timepicker__options");
5693
+ const k = (a = p.value) == null ? void 0 : a.querySelectorAll(".vt-timepicker__options");
5694
5694
  if (!k) return;
5695
5695
  const $ = (C, X, W) => {
5696
5696
  const _e = W.findIndex((ue) => ue.value === X);
@@ -5736,12 +5736,12 @@ const Xe = new $2(), M2 = {
5736
5736
  var a, C;
5737
5737
  if (!Y.value) return;
5738
5738
  const $ = k.target;
5739
- (a = c.value) != null && a.contains($) || (C = v.value) != null && C.contains($) || ce();
5739
+ (a = c.value) != null && a.contains($) || (C = p.value) != null && C.contains($) || ce();
5740
5740
  }, O = () => {
5741
5741
  t.disabled || ze();
5742
5742
  }, N = () => {
5743
5743
  f.isFocused.value = !0, i("focus", c.value);
5744
- }, $e = () => {
5744
+ }, Me = () => {
5745
5745
  f.isFocused.value = !1, i("blur", c.value);
5746
5746
  }, Pe = () => {
5747
5747
  const k = (h.value, null);
@@ -5798,7 +5798,7 @@ const Xe = new $2(), M2 = {
5798
5798
  ce();
5799
5799
  },
5800
5800
  validate: b
5801
- }), Me(
5801
+ }), ye(
5802
5802
  () => t.modelValue,
5803
5803
  (k) => {
5804
5804
  if (k) {
@@ -5856,12 +5856,12 @@ const Xe = new $2(), M2 = {
5856
5856
  ref: d,
5857
5857
  class: "vt-timepicker__trigger",
5858
5858
  tabindex: "0",
5859
- onBlur: $e,
5859
+ onBlur: Me,
5860
5860
  onClick: O,
5861
5861
  onFocus: N
5862
5862
  }, [
5863
- s("div", p5, [
5864
- s("div", v5, [
5863
+ s("div", v5, [
5864
+ s("div", p5, [
5865
5865
  ee(fe, { name: "clock" })
5866
5866
  ]),
5867
5867
  B.value ? (l(), u("div", f5, [
@@ -5902,7 +5902,7 @@ const Xe = new $2(), M2 = {
5902
5902
  default: Le(() => [
5903
5903
  s("div", {
5904
5904
  ref_key: "dropdownRef",
5905
- ref: v,
5905
+ ref: p,
5906
5906
  style: Ee(Ie.value),
5907
5907
  class: "vt-timepicker__dropdown",
5908
5908
  onClick: $[0] || ($[0] = Se(() => {
@@ -5916,7 +5916,7 @@ const Xe = new $2(), M2 = {
5916
5916
  s("div", k5, [
5917
5917
  s("div", b5, [
5918
5918
  s("div", y5, [
5919
- (l(!0), u(le, null, ve(he.value, (a) => (l(), u("button", {
5919
+ (l(!0), u(le, null, pe(he.value, (a) => (l(), u("button", {
5920
5920
  key: `start-hour-${a.value}`,
5921
5921
  class: G([
5922
5922
  "vt-timepicker__option",
@@ -5932,7 +5932,7 @@ const Xe = new $2(), M2 = {
5932
5932
  ]),
5933
5933
  s("div", M5, [
5934
5934
  s("div", x5, [
5935
- (l(!0), u(le, null, ve(Ce.value, (a) => (l(), u("button", {
5935
+ (l(!0), u(le, null, pe(Ce.value, (a) => (l(), u("button", {
5936
5936
  key: `start-minute-${a.value}`,
5937
5937
  class: G([
5938
5938
  "vt-timepicker__option",
@@ -5948,7 +5948,7 @@ const Xe = new $2(), M2 = {
5948
5948
  ]),
5949
5949
  k.showSeconds ? (l(), u("div", V5, [
5950
5950
  s("div", S5, [
5951
- (l(!0), u(le, null, ve(D.value, (a) => (l(), u("button", {
5951
+ (l(!0), u(le, null, pe(D.value, (a) => (l(), u("button", {
5952
5952
  key: `start-second-${a.value}`,
5953
5953
  class: G([
5954
5954
  "vt-timepicker__option",
@@ -5964,7 +5964,7 @@ const Xe = new $2(), M2 = {
5964
5964
  ])) : q("", !0),
5965
5965
  k.use12Hours ? (l(), u("div", H5, [
5966
5966
  s("div", T5, [
5967
- (l(!0), u(le, null, ve(R.value, (a) => (l(), u("button", {
5967
+ (l(!0), u(le, null, pe(R.value, (a) => (l(), u("button", {
5968
5968
  key: `start-period-${a}`,
5969
5969
  class: G([
5970
5970
  "vt-timepicker__option",
@@ -5981,7 +5981,7 @@ const Xe = new $2(), M2 = {
5981
5981
  s("div", E5, [
5982
5982
  s("div", A5, [
5983
5983
  s("div", P5, [
5984
- (l(!0), u(le, null, ve(he.value, (a) => (l(), u("button", {
5984
+ (l(!0), u(le, null, pe(he.value, (a) => (l(), u("button", {
5985
5985
  key: `end-hour-${a.value}`,
5986
5986
  class: G([
5987
5987
  "vt-timepicker__option",
@@ -5997,7 +5997,7 @@ const Xe = new $2(), M2 = {
5997
5997
  ]),
5998
5998
  s("div", R5, [
5999
5999
  s("div", Z5, [
6000
- (l(!0), u(le, null, ve(Ce.value, (a) => (l(), u("button", {
6000
+ (l(!0), u(le, null, pe(Ce.value, (a) => (l(), u("button", {
6001
6001
  key: `end-minute-${a.value}`,
6002
6002
  class: G([
6003
6003
  "vt-timepicker__option",
@@ -6013,7 +6013,7 @@ const Xe = new $2(), M2 = {
6013
6013
  ]),
6014
6014
  k.showSeconds ? (l(), u("div", z5, [
6015
6015
  s("div", O5, [
6016
- (l(!0), u(le, null, ve(D.value, (a) => (l(), u("button", {
6016
+ (l(!0), u(le, null, pe(D.value, (a) => (l(), u("button", {
6017
6017
  key: `end-second-${a.value}`,
6018
6018
  class: G([
6019
6019
  "vt-timepicker__option",
@@ -6029,7 +6029,7 @@ const Xe = new $2(), M2 = {
6029
6029
  ])) : q("", !0),
6030
6030
  k.use12Hours ? (l(), u("div", N5, [
6031
6031
  s("div", W5, [
6032
- (l(!0), u(le, null, ve(R.value, (a) => (l(), u("button", {
6032
+ (l(!0), u(le, null, pe(R.value, (a) => (l(), u("button", {
6033
6033
  key: `end-period-${a}`,
6034
6034
  class: G(["vt-timepicker__option", { "vt-timepicker__option--selected": U.value === a }]),
6035
6035
  onClick: (C) => ge(a, "period", !0, !1, C)
@@ -6042,7 +6042,7 @@ const Xe = new $2(), M2 = {
6042
6042
  s("div", K5, [
6043
6043
  s("div", X5, [
6044
6044
  s("div", Q5, [
6045
- (l(!0), u(le, null, ve(he.value, (a) => (l(), u("button", {
6045
+ (l(!0), u(le, null, pe(he.value, (a) => (l(), u("button", {
6046
6046
  key: `hour-${a.value}`,
6047
6047
  class: G([
6048
6048
  "vt-timepicker__option",
@@ -6058,7 +6058,7 @@ const Xe = new $2(), M2 = {
6058
6058
  ]),
6059
6059
  s("div", J5, [
6060
6060
  s("div", e6, [
6061
- (l(!0), u(le, null, ve(Ce.value, (a) => (l(), u("button", {
6061
+ (l(!0), u(le, null, pe(Ce.value, (a) => (l(), u("button", {
6062
6062
  key: `minute-${a.value}`,
6063
6063
  class: G([
6064
6064
  "vt-timepicker__option",
@@ -6074,7 +6074,7 @@ const Xe = new $2(), M2 = {
6074
6074
  ]),
6075
6075
  k.showSeconds ? (l(), u("div", n6, [
6076
6076
  s("div", o6, [
6077
- (l(!0), u(le, null, ve(D.value, (a) => (l(), u("button", {
6077
+ (l(!0), u(le, null, pe(D.value, (a) => (l(), u("button", {
6078
6078
  key: `second-${a.value}`,
6079
6079
  class: G([
6080
6080
  "vt-timepicker__option",
@@ -6090,7 +6090,7 @@ const Xe = new $2(), M2 = {
6090
6090
  ])) : q("", !0),
6091
6091
  k.use12Hours ? (l(), u("div", l6, [
6092
6092
  s("div", r6, [
6093
- (l(!0), u(le, null, ve(R.value, (a) => (l(), u("button", {
6093
+ (l(!0), u(le, null, pe(R.value, (a) => (l(), u("button", {
6094
6094
  key: `period-${a}`,
6095
6095
  class: G(["vt-timepicker__option", { "vt-timepicker__option--selected": Q.value === a }]),
6096
6096
  onClick: (C) => ge(a, "period", !1, !1, C)
@@ -6128,10 +6128,10 @@ const Xe = new $2(), M2 = {
6128
6128
  }), u6 = { class: "vt-datepicker__input" }, c6 = { class: "vt-datepicker__icon" }, d6 = {
6129
6129
  key: 0,
6130
6130
  class: "vt-datepicker__text"
6131
- }, h6 = { class: "vt-datepicker__separator" }, p6 = {
6131
+ }, h6 = { class: "vt-datepicker__separator" }, v6 = {
6132
6132
  key: 1,
6133
6133
  class: "vt-datepicker__placeholder"
6134
- }, v6 = { class: "vt-datepicker__separator" }, f6 = { class: "vt-datepicker__suffix" }, C6 = ["disabled"], m6 = {
6134
+ }, p6 = { class: "vt-datepicker__separator" }, f6 = { class: "vt-datepicker__suffix" }, C6 = ["disabled"], m6 = {
6135
6135
  key: 0,
6136
6136
  class: "vt-datepicker__dual-calendar"
6137
6137
  }, _6 = { class: "vt-datepicker__calendar-panel" }, g6 = {
@@ -6189,7 +6189,7 @@ const Xe = new $2(), M2 = {
6189
6189
  },
6190
6190
  emits: ["update:modelValue", "change", "blur", "focus", "calendar-change", "panel-change", "open-change"],
6191
6191
  setup(n, { expose: e, emit: r }) {
6192
- const t = n, i = r, c = H(), d = H(), v = H(), f = H(), p = H(), h = () => (t.type === "datetime" || t.type === "datetimerange", "00:00:00"), m = () => "23:59:59", o = {
6192
+ const t = n, i = r, c = H(), d = H(), p = H(), f = H(), v = H(), h = () => (t.type === "datetime" || t.type === "datetimerange", "00:00:00"), m = () => "23:59:59", o = {
6193
6193
  isFocused: H(!1),
6194
6194
  currentDate: H(/* @__PURE__ */ new Date()),
6195
6195
  rightCurrentDate: H(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() + 1, 1)),
@@ -6238,14 +6238,14 @@ const Xe = new $2(), M2 = {
6238
6238
  return "date";
6239
6239
  }
6240
6240
  }, He = x(() => t.type === "datetime" || t.type === "datetimerange"), Ie = x(() => He.value), {
6241
- visible: ye,
6241
+ visible: $e,
6242
6242
  parentVisible: Qe,
6243
6243
  dropdownPosition: qe,
6244
6244
  show: Ue,
6245
6245
  hide: ge,
6246
6246
  toggle: g,
6247
6247
  updatePosition: O
6248
- } = C1(d, v, {
6248
+ } = C1(d, p, {
6249
6249
  trigger: "click",
6250
6250
  placement: "bottom-start",
6251
6251
  showTimeout: 0,
@@ -6255,7 +6255,7 @@ const Xe = new $2(), M2 = {
6255
6255
  onVisibleChange: (M) => {
6256
6256
  M && Te(() => O());
6257
6257
  }
6258
- }), N = x(() => t.clearable && !t.disabled && j.value), $e = x(() => L.value ? o.isSelectingEnd.value ? t.endPlaceholder : t.startPlaceholder : t.placeholder), Pe = x(() => [
6258
+ }), N = x(() => t.clearable && !t.disabled && j.value), Me = x(() => L.value ? o.isSelectingEnd.value ? t.endPlaceholder : t.startPlaceholder : t.placeholder), Pe = x(() => [
6259
6259
  "vt-datepicker",
6260
6260
  `vt-datepicker--${t.size}`,
6261
6261
  `vt-datepicker--${t.type}`,
@@ -6263,7 +6263,7 @@ const Xe = new $2(), M2 = {
6263
6263
  "vt-datepicker--disabled": t.disabled,
6264
6264
  "vt-datepicker--focused": o.isFocused.value,
6265
6265
  "vt-datepicker--range": L.value,
6266
- "vt-datepicker--open": ye.value,
6266
+ "vt-datepicker--open": $e.value,
6267
6267
  "vt-datepicker--with-time": Ie.value
6268
6268
  }
6269
6269
  ]), Be = x(() => ({
@@ -6330,7 +6330,7 @@ const Xe = new $2(), M2 = {
6330
6330
  return E >= Fe && E <= l1 && !K(M, S);
6331
6331
  }
6332
6332
  return !1;
6333
- }, pe = (M) => {
6333
+ }, ve = (M) => {
6334
6334
  if (L.value)
6335
6335
  return o.startDate.value && o.endDate.value ? M === o.startDate.value.getFullYear() || M === o.endDate.value.getFullYear() : o.startDate.value ? o.startDate.value.getFullYear() === M : !1;
6336
6336
  {
@@ -6341,11 +6341,11 @@ const Xe = new $2(), M2 = {
6341
6341
  if (!L.value) return !1;
6342
6342
  if (o.startDate.value && o.endDate.value) {
6343
6343
  const S = o.startDate.value.getFullYear(), w = o.endDate.value.getFullYear();
6344
- return M >= S && M <= w && !pe(M);
6344
+ return M >= S && M <= w && !ve(M);
6345
6345
  }
6346
6346
  if (o.startDate.value && o.isSelectingEnd.value && o.hoverDate.value) {
6347
6347
  const S = o.startDate.value.getFullYear(), w = o.hoverDate.value.getFullYear(), E = Math.min(S, w), ae = Math.max(S, w);
6348
- return M >= E && M <= ae && !pe(M);
6348
+ return M >= E && M <= ae && !ve(M);
6349
6349
  }
6350
6350
  return !1;
6351
6351
  }, k = (M, S) => {
@@ -6372,9 +6372,9 @@ const Xe = new $2(), M2 = {
6372
6372
  ...t.showSeconds && { second: "2-digit" }
6373
6373
  }) : "", a = (M) => {
6374
6374
  var w, E;
6375
- if (!ye.value) return;
6375
+ if (!$e.value) return;
6376
6376
  const S = M.target;
6377
- (w = c.value) != null && w.contains(S) || (E = v.value) != null && E.contains(S) || ge();
6377
+ (w = c.value) != null && w.contains(S) || (E = p.value) != null && E.contains(S) || ge();
6378
6378
  }, C = () => {
6379
6379
  t.disabled || g();
6380
6380
  }, X = () => {
@@ -6488,7 +6488,7 @@ const Xe = new $2(), M2 = {
6488
6488
  1
6489
6489
  ));
6490
6490
  };
6491
- return Me(
6491
+ return ye(
6492
6492
  () => t.modelValue,
6493
6493
  (M) => {
6494
6494
  if (M) {
@@ -6509,13 +6509,13 @@ const Xe = new $2(), M2 = {
6509
6509
  o.startDate.value = null, o.endDate.value = null, o.isSelectingEnd.value = !1, o.hoverDate.value = null, o.startTime.value = h(), o.endTime.value = m();
6510
6510
  },
6511
6511
  { immediate: !0 }
6512
- ), Me(
6512
+ ), ye(
6513
6513
  () => t.type,
6514
6514
  (M) => {
6515
6515
  o.viewMode.value = ze(M), o.startTime.value = h(), o.endTime.value = m();
6516
6516
  },
6517
6517
  { immediate: !0 }
6518
- ), Me(
6518
+ ), ye(
6519
6519
  () => o.currentDate.value,
6520
6520
  (M) => {
6521
6521
  je.value && (o.rightCurrentDate.value = new Date(M.getFullYear(), M.getMonth() + 1, 1));
@@ -6572,13 +6572,13 @@ const Xe = new $2(), M2 = {
6572
6572
  ], 64)) : (l(), u(le, { key: 1 }, [
6573
6573
  xe(Z(z(J)), 1)
6574
6574
  ], 64))
6575
- ])) : (l(), u("div", p6, [
6575
+ ])) : (l(), u("div", v6, [
6576
6576
  z(L) ? (l(), u(le, { key: 0 }, [
6577
6577
  s("span", null, Z(t.startPlaceholder), 1),
6578
- s("span", v6, Z(t.rangeSeparator), 1),
6578
+ s("span", p6, Z(t.rangeSeparator), 1),
6579
6579
  s("span", null, Z(t.endPlaceholder), 1)
6580
6580
  ], 64)) : (l(), u(le, { key: 1 }, [
6581
- xe(Z($e.value), 1)
6581
+ xe(Z(Me.value), 1)
6582
6582
  ], 64))
6583
6583
  ])),
6584
6584
  s("div", f6, [
@@ -6594,7 +6594,7 @@ const Xe = new $2(), M2 = {
6594
6594
  ])
6595
6595
  ])
6596
6596
  ], 544),
6597
- z(ye) && z(Qe) ? (l(), we(s1, {
6597
+ z($e) && z(Qe) ? (l(), we(s1, {
6598
6598
  key: 0,
6599
6599
  to: "body"
6600
6600
  }, [
@@ -6602,7 +6602,7 @@ const Xe = new $2(), M2 = {
6602
6602
  default: Le(() => [
6603
6603
  s("div", {
6604
6604
  ref_key: "dropdownRef",
6605
- ref: v,
6605
+ ref: p,
6606
6606
  style: Ee(Be.value),
6607
6607
  class: "vt-datepicker__dropdown",
6608
6608
  onClick: S[10] || (S[10] = Se(() => {
@@ -6616,7 +6616,7 @@ const Xe = new $2(), M2 = {
6616
6616
  je.value ? (l(), u("div", m6, [
6617
6617
  s("div", _6, [
6618
6618
  Ie.value ? (l(), u("div", g6, [
6619
- ee(p1, {
6619
+ ee(v1, {
6620
6620
  ref_key: "startTimePickerRef",
6621
6621
  ref: f,
6622
6622
  modelValue: o.startTime.value,
@@ -6654,13 +6654,13 @@ const Xe = new $2(), M2 = {
6654
6654
  s("div", b6, [
6655
6655
  s("div", y6, [
6656
6656
  s("div", $6, [
6657
- (l(!0), u(le, null, ve(z(k1), (w, E) => (l(), u("span", {
6657
+ (l(!0), u(le, null, pe(z(k1), (w, E) => (l(), u("span", {
6658
6658
  key: `${E}_${w}`,
6659
6659
  class: "vt-datepicker__weekday"
6660
6660
  }, Z(w), 1))), 128))
6661
6661
  ]),
6662
6662
  s("div", M6, [
6663
- (l(!0), u(le, null, ve(z(Q), (w) => (l(), u("button", {
6663
+ (l(!0), u(le, null, pe(z(Q), (w) => (l(), u("button", {
6664
6664
  key: w.getTime(),
6665
6665
  class: G([
6666
6666
  "vt-datepicker__date",
@@ -6685,9 +6685,9 @@ const Xe = new $2(), M2 = {
6685
6685
  ]),
6686
6686
  s("div", L6, [
6687
6687
  Ie.value ? (l(), u("div", V6, [
6688
- ee(p1, {
6688
+ ee(v1, {
6689
6689
  ref_key: "endTimePickerRef",
6690
- ref: p,
6690
+ ref: v,
6691
6691
  modelValue: o.endTime.value,
6692
6692
  "onUpdate:modelValue": S[3] || (S[3] = (w) => o.endTime.value = w),
6693
6693
  clearable: !1,
@@ -6723,13 +6723,13 @@ const Xe = new $2(), M2 = {
6723
6723
  s("div", H6, [
6724
6724
  s("div", T6, [
6725
6725
  s("div", I6, [
6726
- (l(!0), u(le, null, ve(z(k1), (w, E) => (l(), u("span", {
6726
+ (l(!0), u(le, null, pe(z(k1), (w, E) => (l(), u("span", {
6727
6727
  key: `${E}_${w}`,
6728
6728
  class: "vt-datepicker__weekday"
6729
6729
  }, Z(w), 1))), 128))
6730
6730
  ]),
6731
6731
  s("div", B6, [
6732
- (l(!0), u(le, null, ve(z(re), (w) => (l(), u("button", {
6732
+ (l(!0), u(le, null, pe(z(re), (w) => (l(), u("button", {
6733
6733
  key: w.getTime(),
6734
6734
  class: G([
6735
6735
  "vt-datepicker__date",
@@ -6754,7 +6754,7 @@ const Xe = new $2(), M2 = {
6754
6754
  ])
6755
6755
  ])) : (l(), u("div", A6, [
6756
6756
  Ie.value ? (l(), u("div", P6, [
6757
- ee(p1, {
6757
+ ee(v1, {
6758
6758
  ref_key: "startTimePickerRef",
6759
6759
  ref: f,
6760
6760
  modelValue: o.startTime.value,
@@ -6802,13 +6802,13 @@ const Xe = new $2(), M2 = {
6802
6802
  s("div", F6, [
6803
6803
  o.viewMode.value === "date" ? (l(), u("div", z6, [
6804
6804
  s("div", O6, [
6805
- (l(!0), u(le, null, ve(z(k1), (w, E) => (l(), u("span", {
6805
+ (l(!0), u(le, null, pe(z(k1), (w, E) => (l(), u("span", {
6806
6806
  key: `${E}_${w}`,
6807
6807
  class: "vt-datepicker__weekday"
6808
6808
  }, Z(w), 1))), 128))
6809
6809
  ]),
6810
6810
  s("div", Y6, [
6811
- (l(!0), u(le, null, ve(z(Q), (w) => (l(), u("button", {
6811
+ (l(!0), u(le, null, pe(z(Q), (w) => (l(), u("button", {
6812
6812
  key: w.getTime(),
6813
6813
  class: G([
6814
6814
  "vt-datepicker__date",
@@ -6827,7 +6827,7 @@ const Xe = new $2(), M2 = {
6827
6827
  }, Z(w.getDate()), 43, N6))), 128))
6828
6828
  ])
6829
6829
  ])) : o.viewMode.value === "month" ? (l(), u("div", W6, [
6830
- (l(!0), u(le, null, ve(z(ne), (w, E) => (l(), u("button", {
6830
+ (l(!0), u(le, null, pe(z(ne), (w, E) => (l(), u("button", {
6831
6831
  key: w.name,
6832
6832
  class: G([
6833
6833
  "vt-datepicker__month",
@@ -6842,12 +6842,12 @@ const Xe = new $2(), M2 = {
6842
6842
  onMouseleave: m1
6843
6843
  }, Z(w.name), 43, q6))), 128))
6844
6844
  ])) : (l(), u("div", U6, [
6845
- (l(!0), u(le, null, ve(z(de), (w) => (l(), u("button", {
6845
+ (l(!0), u(le, null, pe(z(de), (w) => (l(), u("button", {
6846
6846
  key: w.year,
6847
6847
  class: G([
6848
6848
  "vt-datepicker__year",
6849
6849
  {
6850
- "vt-datepicker__year--selected": pe(w.year),
6850
+ "vt-datepicker__year--selected": ve(w.year),
6851
6851
  "vt-datepicker__year--current": w.year === o.currentDate.value.getFullYear(),
6852
6852
  "vt-datepicker__year--in-range": se(w.year)
6853
6853
  }
@@ -6895,7 +6895,7 @@ const Xe = new $2(), M2 = {
6895
6895
  },
6896
6896
  emits: ["update:modelValue", "change"],
6897
6897
  setup(n, { emit: e }) {
6898
- const r = n, t = e, { modelValue: i, accordion: c } = ut(r), v = L1({
6898
+ const r = n, t = e, { modelValue: i, accordion: c } = ut(r), p = L1({
6899
6899
  get activeNames() {
6900
6900
  return i.value;
6901
6901
  },
@@ -6903,15 +6903,15 @@ const Xe = new $2(), M2 = {
6903
6903
  return c.value;
6904
6904
  },
6905
6905
  toggle: (f) => {
6906
- const p = [...i.value], h = p.indexOf(f);
6906
+ const v = [...i.value], h = v.indexOf(f);
6907
6907
  if (c.value) {
6908
6908
  const m = h > -1 ? [] : [f];
6909
6909
  t("update:modelValue", m), t("change", m);
6910
6910
  } else
6911
- h > -1 ? p.splice(h, 1) : p.push(f), t("update:modelValue", p), t("change", p);
6911
+ h > -1 ? v.splice(h, 1) : v.push(f), t("update:modelValue", v), t("change", v);
6912
6912
  }
6913
6913
  });
6914
- return u1("collapseContext", v), (f, p) => (l(), u("div", G6, [
6914
+ return u1("collapseContext", p), (f, v) => (l(), u("div", G6, [
6915
6915
  De(f.$slots, "default")
6916
6916
  ]));
6917
6917
  }
@@ -6929,13 +6929,13 @@ const Xe = new $2(), M2 = {
6929
6929
  throw new Error("VCollapseItem must be used within VCollapse");
6930
6930
  const c = x(() => i.activeNames.includes(r.name)), d = () => {
6931
6931
  r.disabled || (i.toggle(r.name), t("toggle", r.name));
6932
- }, v = (m) => {
6932
+ }, p = (m) => {
6933
6933
  const o = m;
6934
6934
  o.style.height = "0", o.style.overflow = "hidden", o.offsetHeight, o.style.height = o.scrollHeight + "px";
6935
6935
  }, f = (m) => {
6936
6936
  const o = m;
6937
6937
  o.style.height = o.scrollHeight + "px", o.style.overflow = "hidden", o.offsetHeight, o.style.height = "0";
6938
- }, p = (m) => {
6938
+ }, v = (m) => {
6939
6939
  const o = m;
6940
6940
  o.style.height = "auto", o.style.overflow = "visible";
6941
6941
  }, h = (m) => {
@@ -6965,9 +6965,9 @@ const Xe = new $2(), M2 = {
6965
6965
  ], 2),
6966
6966
  ee(i1, {
6967
6967
  name: "collapse",
6968
- onEnter: v,
6968
+ onEnter: p,
6969
6969
  onLeave: f,
6970
- onAfterEnter: p,
6970
+ onAfterEnter: v,
6971
6971
  onAfterLeave: h
6972
6972
  }, {
6973
6973
  default: Le(() => [
@@ -6991,19 +6991,19 @@ const Xe = new $2(), M2 = {
6991
6991
  emits: ["update:modelValue", "tab-change", "tab-remove", "tab-add"],
6992
6992
  setup(n, { emit: e }) {
6993
6993
  const r = n, t = e, i = a1(), c = H(r.modelValue), d = H([]);
6994
- Me(
6994
+ ye(
6995
6995
  () => r.modelValue,
6996
6996
  (m) => {
6997
6997
  c.value = m;
6998
6998
  }
6999
- ), Me(c, (m) => {
6999
+ ), ye(c, (m) => {
7000
7000
  m !== r.modelValue && (t("update:modelValue", m), t("tab-change", m));
7001
7001
  });
7002
- const v = (m) => {
7002
+ const p = (m) => {
7003
7003
  d.value.push(m), c.value || (c.value = m.name);
7004
7004
  }, f = (m) => {
7005
7005
  d.value = d.value.filter((o) => o.name !== m), t("tab-remove", m), c.value === m && d.value.length > 0 && (c.value = d.value[0].name);
7006
- }, p = (m) => {
7006
+ }, v = (m) => {
7007
7007
  c.value = m;
7008
7008
  }, h = (m) => {
7009
7009
  var _;
@@ -7015,18 +7015,18 @@ const Xe = new $2(), M2 = {
7015
7015
  };
7016
7016
  return u1("VTabsContext", {
7017
7017
  currentValue: c,
7018
- addTab: v,
7018
+ addTab: p,
7019
7019
  removeTab: f,
7020
- selectTab: p
7020
+ selectTab: v
7021
7021
  }), (m, o) => (l(), u("div", s0, [
7022
7022
  s("div", l0, [
7023
- (l(!0), u(le, null, ve(d.value, (b) => (l(), u("div", {
7023
+ (l(!0), u(le, null, pe(d.value, (b) => (l(), u("div", {
7024
7024
  key: b.name,
7025
7025
  class: G([{
7026
7026
  "is-active": c.value === b.name,
7027
7027
  "is-disabled": b.disabled
7028
7028
  }, "vt-tabs__nav-item"]),
7029
- onClick: (_) => !b.disabled && p(b.name)
7029
+ onClick: (_) => !b.disabled && v(b.name)
7030
7030
  }, [
7031
7031
  h(b) ? (l(), we(f1(h(b)), {
7032
7032
  key: 0,
@@ -7153,30 +7153,30 @@ const Xe = new $2(), M2 = {
7153
7153
  return r.appendChild(t), r;
7154
7154
  }, M1 = (n, e, r) => {
7155
7155
  const t = e.getBoundingClientRect(), i = n.getBoundingClientRect(), c = window.pageXOffset || document.documentElement.scrollLeft, d = window.pageYOffset || document.documentElement.scrollTop;
7156
- let v = 0, f = 0;
7156
+ let p = 0, f = 0;
7157
7157
  switch (r) {
7158
7158
  case "top":
7159
- v = t.top + d - i.height - 8, f = t.left + c + (t.width - i.width) / 2;
7159
+ p = t.top + d - i.height - 8, f = t.left + c + (t.width - i.width) / 2;
7160
7160
  break;
7161
7161
  case "bottom":
7162
- v = t.bottom + d + 8, f = t.left + c + (t.width - i.width) / 2;
7162
+ p = t.bottom + d + 8, f = t.left + c + (t.width - i.width) / 2;
7163
7163
  break;
7164
7164
  case "left":
7165
- v = t.top + d + (t.height - i.height) / 2, f = t.left + c - i.width - 8;
7165
+ p = t.top + d + (t.height - i.height) / 2, f = t.left + c - i.width - 8;
7166
7166
  break;
7167
7167
  case "right":
7168
- v = t.top + d + (t.height - i.height) / 2, f = t.right + c + 8;
7168
+ p = t.top + d + (t.height - i.height) / 2, f = t.right + c + 8;
7169
7169
  break;
7170
7170
  }
7171
- const p = window.innerWidth, h = window.innerHeight;
7172
- f < 8 ? f = 8 : f + i.width > p - 8 && (f = p - i.width - 8), v < d + 8 ? r === "top" ? v = t.bottom + d + 8 : v = d + 8 : v + i.height > d + h - 8 && (r === "bottom" ? v = t.top + d - i.height - 8 : v = d + h - i.height - 8), n.style.top = `${v}px`, n.style.left = `${f}px`;
7171
+ const v = window.innerWidth, h = window.innerHeight;
7172
+ f < 8 ? f = 8 : f + i.width > v - 8 && (f = v - i.width - 8), p < d + 8 ? r === "top" ? p = t.bottom + d + 8 : p = d + 8 : p + i.height > d + h - 8 && (r === "bottom" ? p = t.top + d - i.height - 8 : p = d + h - i.height - 8), n.style.top = `${p}px`, n.style.left = `${f}px`;
7173
7173
  }, F1 = (n, e, r) => {
7174
7174
  n.parentElement || document.body.appendChild(n), n.style.visibility = "visible", M1(n, e, r), requestAnimationFrame(() => {
7175
7175
  n.style.opacity = "1";
7176
7176
  });
7177
7177
  }, z1 = (n) => {
7178
7178
  n.style.opacity = "0", n.style.visibility = "hidden";
7179
- }, O1 = (n) => n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight, Y1 = (n) => !!n.closest(".vt-table, table"), p0 = {
7179
+ }, O1 = (n) => n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight, Y1 = (n) => !!n.closest(".vt-table, table"), v0 = {
7180
7180
  mounted(n, e) {
7181
7181
  var f;
7182
7182
  const r = (f = e.value) == null ? void 0 : f.trim();
@@ -7187,10 +7187,10 @@ const Xe = new $2(), M2 = {
7187
7187
  (Y1(n) ? O1(n) : !0) && F1(i, n, t);
7188
7188
  }, d = () => {
7189
7189
  z1(i);
7190
- }, v = () => {
7190
+ }, p = () => {
7191
7191
  i.style.opacity === "1" && M1(i, n, t);
7192
7192
  };
7193
- n.__mouseenterHandler = c, n.__mouseleaveHandler = d, n.__scrollHandler = v, n.addEventListener("mouseenter", c), n.addEventListener("mouseleave", d), window.addEventListener("scroll", v, !0), window.addEventListener("resize", v);
7193
+ n.__mouseenterHandler = c, n.__mouseleaveHandler = d, n.__scrollHandler = p, n.addEventListener("mouseenter", c), n.addEventListener("mouseleave", d), window.addEventListener("scroll", p, !0), window.addEventListener("resize", p);
7194
7194
  },
7195
7195
  updated(n, e) {
7196
7196
  var t;
@@ -7202,18 +7202,18 @@ const Xe = new $2(), M2 = {
7202
7202
  n.__tooltipEl = c;
7203
7203
  const d = () => {
7204
7204
  (Y1(n) ? O1(n) : !0) && F1(c, n, i);
7205
- }, v = () => {
7205
+ }, p = () => {
7206
7206
  z1(c);
7207
7207
  }, f = () => {
7208
7208
  c.style.opacity === "1" && M1(c, n, i);
7209
7209
  };
7210
- n.__mouseenterHandler = d, n.__mouseleaveHandler = v, n.__scrollHandler = f, n.addEventListener("mouseenter", d), n.addEventListener("mouseleave", v), window.addEventListener("scroll", f, !0), window.addEventListener("resize", f);
7210
+ n.__mouseenterHandler = d, n.__mouseleaveHandler = p, n.__scrollHandler = f, n.addEventListener("mouseenter", d), n.addEventListener("mouseleave", p), window.addEventListener("scroll", f, !0), window.addEventListener("resize", f);
7211
7211
  }
7212
7212
  },
7213
7213
  beforeUnmount(n) {
7214
7214
  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);
7215
7215
  }
7216
- }, v0 = {
7216
+ }, p0 = {
7217
7217
  mounted(n, e) {
7218
7218
  z(e.value) && N1(n);
7219
7219
  },
@@ -7244,63 +7244,63 @@ const f0 = { class: "vt-message-container" }, C0 = { class: "vt-message-icon" },
7244
7244
  setup(n, { expose: e }) {
7245
7245
  const r = H([]);
7246
7246
  let t = 0;
7247
- const i = (v) => ({
7247
+ const i = (p) => ({
7248
7248
  success: "checkCircle",
7249
7249
  danger: "alertCircle",
7250
7250
  warning: "alertTriangle",
7251
7251
  primary: "infoCircle"
7252
- })[v] || "infoCircle", c = (v) => {
7253
- const f = ++t, p = {
7252
+ })[p] || "infoCircle", c = (p) => {
7253
+ const f = ++t, v = {
7254
7254
  id: f,
7255
- message: v.message || "",
7256
- type: v.type || "primary",
7257
- showClose: v.showClose || !1,
7258
- duration: v.duration !== void 0 ? v.duration : 3e3,
7259
- dangerouslyUseHTMLString: v.dangerouslyUseHTMLString || !1
7255
+ message: p.message || "",
7256
+ type: p.type || "primary",
7257
+ showClose: p.showClose || !1,
7258
+ duration: p.duration !== void 0 ? p.duration : 3e3,
7259
+ dangerouslyUseHTMLString: p.dangerouslyUseHTMLString || !1
7260
7260
  };
7261
- return r.value.push(p), p.duration && p.duration > 0 && setTimeout(() => {
7261
+ return r.value.push(v), v.duration && v.duration > 0 && setTimeout(() => {
7262
7262
  d(f);
7263
- }, p.duration), f;
7264
- }, d = (v) => {
7265
- const f = r.value.findIndex((p) => p.id === v);
7263
+ }, v.duration), f;
7264
+ }, d = (p) => {
7265
+ const f = r.value.findIndex((v) => v.id === p);
7266
7266
  f > -1 && r.value.splice(f, 1);
7267
7267
  };
7268
7268
  return e({
7269
7269
  addMessage: c,
7270
7270
  removeMessage: d
7271
- }), (v, f) => (l(), we(s1, { to: "body" }, [
7271
+ }), (p, f) => (l(), we(s1, { to: "body" }, [
7272
7272
  s("div", f0, [
7273
7273
  ee(ct, {
7274
7274
  name: "vt-message",
7275
7275
  tag: "div"
7276
7276
  }, {
7277
7277
  default: Le(() => [
7278
- (l(!0), u(le, null, ve(r.value, (p) => (l(), u("div", {
7279
- key: p.id,
7278
+ (l(!0), u(le, null, pe(r.value, (v) => (l(), u("div", {
7279
+ key: v.id,
7280
7280
  class: G([
7281
7281
  "vt-message-item",
7282
- `vt-message-item--${p.type}`,
7283
- { "vt-message-item--closable": p.showClose }
7282
+ `vt-message-item--${v.type}`,
7283
+ { "vt-message-item--closable": v.showClose }
7284
7284
  ])
7285
7285
  }, [
7286
7286
  s("div", C0, [
7287
7287
  ee(fe, {
7288
- color: p.type === "primary" ? "#00475A" : "",
7289
- name: i(p.type)
7288
+ color: v.type === "primary" ? "#00475A" : "",
7289
+ name: i(v.type)
7290
7290
  }, null, 8, ["color", "name"])
7291
7291
  ]),
7292
7292
  s("div", m0, [
7293
- p.dangerouslyUseHTMLString ? (l(), u("div", {
7293
+ v.dangerouslyUseHTMLString ? (l(), u("div", {
7294
7294
  key: 0,
7295
7295
  class: "vt-message-text",
7296
- innerHTML: p.message
7297
- }, null, 8, _0)) : (l(), u("div", g0, Z(p.message), 1))
7296
+ innerHTML: v.message
7297
+ }, null, 8, _0)) : (l(), u("div", g0, Z(v.message), 1))
7298
7298
  ]),
7299
- p.showClose ? (l(), u("button", {
7299
+ v.showClose ? (l(), u("button", {
7300
7300
  key: 0,
7301
7301
  class: "vt-message-close",
7302
7302
  type: "button",
7303
- onClick: (h) => d(p.id)
7303
+ onClick: (h) => d(v.id)
7304
7304
  }, [
7305
7305
  ee(fe, { name: "close" })
7306
7306
  ], 8, w0)) : q("", !0)
@@ -7441,12 +7441,12 @@ function S0(n, e) {
7441
7441
  };
7442
7442
  }
7443
7443
  function D0(n, e, r, t) {
7444
- const i = S0(n, e), c = H(!1), d = H(!1), v = H(!1), f = { t: 0 };
7445
- let p = [];
7444
+ const i = S0(n, e), c = H(!1), d = H(!1), p = H(!1), f = { t: 0 };
7445
+ let v = [];
7446
7446
  const h = H([]);
7447
7447
  async function m(b) {
7448
7448
  const _ = ++f.t;
7449
- v.value = !0;
7449
+ p.value = !0;
7450
7450
  const F = [];
7451
7451
  for (const B of r)
7452
7452
  try {
@@ -7463,11 +7463,17 @@ function D0(n, e, r, t) {
7463
7463
  const A = B;
7464
7464
  F.push({ $message: (L == null ? void 0 : L.message) || "Validator error", $validator: A.$validatorName || A.name || "validator" });
7465
7465
  }
7466
- if (p.length)
7467
- for (const B of p)
7466
+ if (v.length)
7467
+ for (const B of v)
7468
7468
  F.push({ $message: B.$message, $validator: B.$validator || "external" });
7469
- _ === f.t && (h.value = F, v.value = !1);
7469
+ _ === f.t && (h.value = F, p.value = !1);
7470
7470
  }
7471
+ ye(
7472
+ () => i.value,
7473
+ () => {
7474
+ c.value = !0, m(i.value);
7475
+ }
7476
+ );
7471
7477
  const o = L1({
7472
7478
  get $model() {
7473
7479
  return i.value;
@@ -7482,7 +7488,7 @@ function D0(n, e, r, t) {
7482
7488
  return d.value;
7483
7489
  },
7484
7490
  get $pending() {
7485
- return v.value;
7491
+ return p.value;
7486
7492
  },
7487
7493
  get $invalid() {
7488
7494
  return h.value && h.value.length > 0;
@@ -7498,24 +7504,24 @@ function D0(n, e, r, t) {
7498
7504
  c.value = !0, d.value = !0;
7499
7505
  },
7500
7506
  $reset() {
7501
- c.value = !1, d.value = !1, h.value = [], v.value = !1;
7507
+ c.value = !1, d.value = !1, h.value = [], p.value = !1;
7502
7508
  },
7503
7509
  async $validate() {
7504
7510
  return c.value = !0, await m(i.value), !h.value.length;
7505
7511
  }
7506
7512
  });
7507
7513
  return o.$setExternalResults = (b) => {
7508
- p = b || [], o.$validate();
7514
+ v = b || [], o.$validate();
7509
7515
  }, o.$clearExternalResults = () => {
7510
- p = [], o.$validate();
7516
+ v = [], o.$validate();
7511
7517
  }, o;
7512
7518
  }
7513
7519
  function q0(n, e, r) {
7514
7520
  const t = { silentErrors: !!(r != null && r.silentErrors) }, i = typeof n == "function" ? n() : n;
7515
- function c(p, h = "") {
7516
- const m = {}, o = Object.keys(p || {});
7521
+ function c(v, h = "") {
7522
+ const m = {}, o = Object.keys(v || {});
7517
7523
  for (const T of o) {
7518
- const V = p[T], Q = h ? `${h}.${T}` : T;
7524
+ const V = v[T], Q = h ? `${h}.${T}` : T;
7519
7525
  if (typeof V == "function" || Array.isArray(V) && V.length > 0 && typeof V[0] == "function") {
7520
7526
  const ne = Array.isArray(V) ? V : [V];
7521
7527
  m[T] = D0(e, Q, ne, t);
@@ -7568,15 +7574,15 @@ function q0(n, e, r) {
7568
7574
  if (Array.isArray(T)) {
7569
7575
  for (const V of T)
7570
7576
  if (V.$property) {
7571
- const Q = V.$property, ne = v(f, Q);
7577
+ const Q = V.$property, ne = p(f, Q);
7572
7578
  ne && ne.$setExternalResults && ne.$setExternalResults([{ $message: V.$message, $validator: V.$validator }]);
7573
7579
  } else if (V.path && Array.isArray(V.path)) {
7574
- const Q = V.path.join("."), ne = v(f, Q);
7580
+ const Q = V.path.join("."), ne = p(f, Q);
7575
7581
  ne && ne.$setExternalResults && ne.$setExternalResults([{ $message: V.$message, $validator: V.$validator }]);
7576
7582
  }
7577
7583
  } else if (typeof T == "object")
7578
7584
  for (const V of Object.keys(T)) {
7579
- const Q = v(f, V);
7585
+ const Q = p(f, V);
7580
7586
  if (Q && Q.$setExternalResults) {
7581
7587
  const ne = Array.isArray(T[V]) ? T[V].map((de) => ({ $message: de })) : [{ $message: T[V] }];
7582
7588
  Q.$setExternalResults(ne);
@@ -7593,17 +7599,17 @@ function q0(n, e, r) {
7593
7599
  };
7594
7600
  return Object.assign(m, j), m;
7595
7601
  }
7596
- function d(p, h) {
7597
- if (!(!p || typeof p != "object"))
7598
- for (const m of Object.keys(p)) {
7602
+ function d(v, h) {
7603
+ if (!(!v || typeof v != "object"))
7604
+ for (const m of Object.keys(v)) {
7599
7605
  if (m.startsWith("$")) continue;
7600
- const o = p[m];
7606
+ const o = v[m];
7601
7607
  o && typeof o == "object" && (typeof o.$validate == "function" && typeof o.$model < "u" ? h(o) : d(o, h));
7602
7608
  }
7603
7609
  }
7604
- function v(p, h) {
7610
+ function p(v, h) {
7605
7611
  const m = h.split(".");
7606
- let o = p;
7612
+ let o = v;
7607
7613
  for (const b of m) {
7608
7614
  if (!o) return;
7609
7615
  o = o[b];
@@ -7623,7 +7629,7 @@ const U0 = {
7623
7629
  }, H0 = {
7624
7630
  install(n, e = {}) {
7625
7631
  const { prefix: r = "V", modal: t = !0, message: i = !0 } = e;
7626
- n.component(`${r}Button`, Ge), n.component(`${r}Icon`, fe), n.component(`${r}Loader`, v1), n.component(`${r}Modal`, Q1), n.component(`${r}Pagination`, p2), n.component(`${r}Checkbox`, e1), n.component(`${r}Radiobox`, C2), n.component(`${r}Table`, n5), n.component(`${r}TableColumn`, o5), n.component(`${r}Dropdown`, ot), n.component(`${r}DropdownItem`, y1), n.component(`${r}Input`, J1), n.component(`${r}Select`, et), n.component(`${r}Option`, tt), n.component(`${r}DatePicker`, Q6), n.component(`${r}TimePicker`, p1), n.component(`${r}Collapse`, J6), n.component(`${r}CollapseItem`, o0), n.component(`${r}Tabs`, c0), n.component(`${r}TabItem`, h0), n.directive("tooltip", p0), n.directive("loader", v0), t && n.use(M2), i && n.use(y0);
7632
+ n.component(`${r}Button`, Ge), n.component(`${r}Icon`, fe), n.component(`${r}Loader`, p1), n.component(`${r}Modal`, Q1), n.component(`${r}Pagination`, v2), n.component(`${r}Checkbox`, e1), n.component(`${r}Radiobox`, C2), n.component(`${r}Table`, n5), n.component(`${r}TableColumn`, o5), n.component(`${r}Dropdown`, ot), n.component(`${r}DropdownItem`, y1), n.component(`${r}Input`, J1), n.component(`${r}Select`, et), n.component(`${r}Option`, tt), n.component(`${r}DatePicker`, Q6), n.component(`${r}TimePicker`, v1), n.component(`${r}Collapse`, J6), n.component(`${r}CollapseItem`, o0), n.component(`${r}Tabs`, c0), n.component(`${r}TabItem`, h0), n.directive("tooltip", v0), n.directive("loader", p0), t && n.use(M2), i && n.use(y0);
7627
7633
  }
7628
7634
  }, K0 = H0.install;
7629
7635
  export {
@@ -7643,20 +7649,20 @@ export {
7643
7649
  y1 as VDropdownItem,
7644
7650
  fe as VIcon,
7645
7651
  J1 as VInput,
7646
- v1 as VLoader,
7652
+ p1 as VLoader,
7647
7653
  q1 as VMessage,
7648
7654
  y0 as VMessagePlugin,
7649
7655
  Q1 as VModal,
7650
7656
  M2 as VModalPlugin,
7651
7657
  tt as VOption,
7652
- p2 as VPagination,
7658
+ v2 as VPagination,
7653
7659
  C2 as VRadiobox,
7654
7660
  et as VSelect,
7655
7661
  h0 as VTabItem,
7656
7662
  n5 as VTable,
7657
7663
  o5 as VTableColumn,
7658
7664
  c0 as VTabs,
7659
- p1 as VTimePicker,
7665
+ v1 as VTimePicker,
7660
7666
  G1 as VtSelectContextKey,
7661
7667
  j0 as WEEKDAY_NAMES,
7662
7668
  k1 as WEEKDAY_NAMES_SHORT,
@@ -7667,7 +7673,7 @@ export {
7667
7673
  K0 as install,
7668
7674
  P1 as isValidDate,
7669
7675
  $1 as isValidTimeString,
7670
- v0 as loaderDirective,
7676
+ p0 as loaderDirective,
7671
7677
  Y0 as maxLength,
7672
7678
  We as messageManager,
7673
7679
  O0 as minLength,
@@ -7677,7 +7683,7 @@ export {
7677
7683
  h5 as parseTimeString,
7678
7684
  $0 as required,
7679
7685
  N0 as sameAs,
7680
- p0 as tooltipDirective,
7686
+ v0 as tooltipDirective,
7681
7687
  W0 as uniqueAsync,
7682
7688
  q0 as useValidate,
7683
7689
  i5 as validateDateValue,