voiptime-components 1.11.5 → 1.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createElementBlock as u, openBlock as r, createElementVNode as s, createStaticVNode as Fe, defineComponent as ke, computed as V, createBlock as we, createCommentVNode as U, resolveDynamicComponent as g1, normalizeStyle as Ee, useSlots as c1, resolveDirective as L1, withDirectives as r1, normalizeClass as Q, renderSlot as Se, Teleport as l1, withModifiers as Le, toDisplayString as R, createTextVNode as Me, ref as H, onUnmounted as t1, nextTick as Te, watch as ye, onMounted as Ze, createVNode as ne, Fragment as ie, renderList as fe, provide as d1, unref as Y, Transition as u1, withCtx as xe, inject as h1, onBeforeUnmount as K1, createApp as X1, h as k1, mergeModels as T1, useModel as ft, reactive as S1, toRef as a1, toRefs as Ct, vShow as Q1, TransitionGroup as mt, isRef as C1 } from "vue";
1
+ import { createElementBlock as u, openBlock as r, createElementVNode as s, createStaticVNode as Fe, defineComponent as ke, computed as V, createBlock as we, createCommentVNode as W, resolveDynamicComponent as g1, normalizeStyle as Ee, useSlots as c1, resolveDirective as L1, withDirectives as r1, normalizeClass as Q, renderSlot as Se, Teleport as l1, withModifiers as Le, toDisplayString as R, createTextVNode as Me, ref as H, onUnmounted as t1, nextTick as Te, watch as ye, onMounted as Ze, createVNode as ne, Fragment as ie, renderList as fe, provide as d1, unref as z, Transition as u1, withCtx as xe, inject as h1, onBeforeUnmount as K1, createApp as X1, h as k1, mergeModels as T1, useModel as ft, reactive as S1, toRef as a1, toRefs as Ct, vShow as Q1, TransitionGroup as mt, isRef as C1 } from "vue";
2
2
  const M = (n, e) => {
3
3
  const l = n.__vccOpts || n;
4
4
  for (const [t, i] of e)
@@ -2519,7 +2519,7 @@ const f3 = /* @__PURE__ */ M(h3, [["render", v3]]), C3 = {
2519
2519
  return (i, c) => l.value ? (r(), we(g1(l.value), {
2520
2520
  key: 0,
2521
2521
  style: Ee(t.value)
2522
- }, null, 8, ["style"])) : U("", !0);
2522
+ }, null, 8, ["style"])) : W("", !0);
2523
2523
  }
2524
2524
  }), m3 = {}, g3 = { class: "vt-loader" };
2525
2525
  function _3(n, e) {
@@ -2543,9 +2543,9 @@ const m1 = /* @__PURE__ */ M(m3, [["render", _3]]), w3 = ["disabled", "type", "d
2543
2543
  emits: ["click"],
2544
2544
  setup(n, { emit: e }) {
2545
2545
  const l = n, t = e, i = c1(), c = V(() => !!(l.icon && l.shape)), h = V(() => {
2546
- var _, m;
2546
+ var _, g;
2547
2547
  const d = i.default ? i.default({}) : null;
2548
- return ((m = (_ = d == null ? void 0 : d[0]) == null ? void 0 : _.children) == null ? void 0 : m.toString()) ?? "";
2548
+ return ((g = (_ = d == null ? void 0 : d[0]) == null ? void 0 : _.children) == null ? void 0 : g.toString()) ?? "";
2549
2549
  }), v = V(() => [
2550
2550
  "vt-button",
2551
2551
  `vt-button--${l.type}`,
@@ -2559,7 +2559,7 @@ const m1 = /* @__PURE__ */ M(m3, [["render", _3]]), w3 = ["disabled", "type", "d
2559
2559
  !l.disabled && !l.loading && t("click", d);
2560
2560
  };
2561
2561
  return (d, _) => {
2562
- const m = L1("tooltip");
2562
+ const g = L1("tooltip");
2563
2563
  return r1((r(), u("button", {
2564
2564
  class: Q(v.value),
2565
2565
  disabled: l.disabled || l.loading,
@@ -2574,12 +2574,12 @@ const m1 = /* @__PURE__ */ M(m3, [["render", _3]]), w3 = ["disabled", "type", "d
2574
2574
  key: 1,
2575
2575
  name: l.icon,
2576
2576
  class: "vt-button__icon"
2577
- }, null, 8, ["name"])) : U("", !0),
2578
- c.value ? U("", !0) : (r(), u("span", k3, [
2577
+ }, null, 8, ["name"])) : W("", !0),
2578
+ c.value ? W("", !0) : (r(), u("span", k3, [
2579
2579
  Se(d.$slots, "default")
2580
2580
  ]))
2581
2581
  ], 10, w3)), [
2582
- [m, f.value]
2582
+ [g, f.value]
2583
2583
  ]);
2584
2584
  };
2585
2585
  }
@@ -2621,19 +2621,19 @@ const m1 = /* @__PURE__ */ M(m3, [["render", _3]]), w3 = ["disabled", "type", "d
2621
2621
  }, ["stop"]))
2622
2622
  }, [
2623
2623
  f.title || f.showCloseButton ? (r(), u("div", b3, [
2624
- f.title ? (r(), u("h2", y3, R(f.title), 1)) : U("", !0),
2624
+ f.title ? (r(), u("h2", y3, R(f.title), 1)) : W("", !0),
2625
2625
  f.showCloseButton ? (r(), we(me, {
2626
2626
  key: 1,
2627
2627
  class: "vt-modal__close",
2628
2628
  name: "close",
2629
2629
  onClick: h
2630
- })) : U("", !0)
2631
- ])) : U("", !0),
2630
+ })) : W("", !0)
2631
+ ])) : W("", !0),
2632
2632
  s("div", $3, [
2633
2633
  Se(f.$slots, "default")
2634
2634
  ])
2635
2635
  ], 2)
2636
- ], 4)) : U("", !0)
2636
+ ], 4)) : W("", !0)
2637
2637
  ]));
2638
2638
  }
2639
2639
  }), M3 = ["for"], x3 = ["id", "name", "value", "checked", "disabled", "required", ".indeterminate"], n1 = /* @__PURE__ */ ke({
@@ -2656,8 +2656,8 @@ const m1 = /* @__PURE__ */ M(m3, [["render", _3]]), w3 = ["disabled", "type", "d
2656
2656
  setup(n, { emit: e }) {
2657
2657
  const l = n, t = e, i = () => `vt-checkbox-${Math.random().toString(36).substr(2, 9)}`, c = V(() => l.id || i()), h = V(() => l.modelValue ?? l.checked), v = (d) => {
2658
2658
  if (l.disabled) return;
2659
- const m = d.target.checked;
2660
- t("update:modelValue", m), t("change", m, d);
2659
+ const g = d.target.checked;
2660
+ t("update:modelValue", g), t("change", g, d);
2661
2661
  }, f = (d) => {
2662
2662
  t("focus", d);
2663
2663
  }, p = (d) => {
@@ -2720,7 +2720,7 @@ const m1 = /* @__PURE__ */ M(m3, [["render", _3]]), w3 = ["disabled", "type", "d
2720
2720
  "stroke-width": "2",
2721
2721
  "stroke-linecap": "round"
2722
2722
  }, null, -1)
2723
- ]), 2)) : U("", !0),
2723
+ ]), 2)) : W("", !0),
2724
2724
  d.isDouble && h.value ? (r(), u("svg", {
2725
2725
  key: 1,
2726
2726
  class: Q([
@@ -2749,7 +2749,7 @@ const m1 = /* @__PURE__ */ M(m3, [["render", _3]]), w3 = ["disabled", "type", "d
2749
2749
  "stroke-linecap": "round",
2750
2750
  "stroke-linejoin": "round"
2751
2751
  }, null, -1)
2752
- ]), 2)) : U("", !0),
2752
+ ]), 2)) : W("", !0),
2753
2753
  d.indeterminate ? (r(), u("div", {
2754
2754
  key: 2,
2755
2755
  class: Q([
@@ -2758,7 +2758,7 @@ const m1 = /* @__PURE__ */ M(m3, [["render", _3]]), w3 = ["disabled", "type", "d
2758
2758
  "vt-checkbox__indeterminate-mark--visible": d.indeterminate
2759
2759
  }
2760
2760
  ])
2761
- }, null, 2)) : U("", !0)
2761
+ }, null, 2)) : W("", !0)
2762
2762
  ], 2),
2763
2763
  d.label || d.$slots.label || d.$slots.default ? (r(), u("span", {
2764
2764
  key: 0,
@@ -2774,7 +2774,7 @@ const m1 = /* @__PURE__ */ M(m3, [["render", _3]]), w3 = ["disabled", "type", "d
2774
2774
  Me(R(d.label), 1)
2775
2775
  ])
2776
2776
  ])
2777
- ], 2)) : U("", !0)
2777
+ ], 2)) : W("", !0)
2778
2778
  ], 10, M3));
2779
2779
  }
2780
2780
  }), I1 = (n) => {
@@ -2837,35 +2837,35 @@ function _1(n, e, l = {}) {
2837
2837
  hideOnClick: f = !0,
2838
2838
  onVisibleChange: p,
2839
2839
  onScroll: d
2840
- } = l, _ = H(!1), m = H(!0), b = H(!1), o = H(null), O = H([]), B = H({
2840
+ } = l, _ = H(!1), g = H(!0), b = H(!1), o = H(null), q = H([]), A = H({
2841
2841
  top: "0px",
2842
2842
  left: "0px",
2843
2843
  transformOrigin: "center top"
2844
- }), F = () => {
2844
+ }), U = () => {
2845
2845
  if (!n.value) return;
2846
2846
  const oe = I1(n.value);
2847
- m.value !== oe && (m.value = oe, !oe && _.value ? (b.value = !0, _.value = !1, p == null || p(!1)) : oe && b.value && !_.value && (b.value = !1, _.value = !0, j(), p == null || p(!0)));
2848
- }, j = async () => {
2847
+ g.value !== oe && (g.value = oe, !oe && _.value ? (b.value = !0, _.value = !1, p == null || p(!1)) : oe && b.value && !_.value && (b.value = !1, _.value = !0, I(), p == null || p(!0)));
2848
+ }, I = async () => {
2849
2849
  if (await Te(), !n.value || !e.value) return;
2850
2850
  const oe = n.value.getBoundingClientRect(), T = e.value.getBoundingClientRect(), G = L3(oe, T, i);
2851
- B.value = {
2851
+ A.value = {
2852
2852
  ...G,
2853
2853
  minWidth: `${oe.width}px`
2854
2854
  };
2855
- }, I = () => {
2856
- (_.value || b.value) && (F(), _.value && j(), d == null || d());
2855
+ }, B = () => {
2856
+ (_.value || b.value) && (U(), _.value && I(), d == null || d());
2857
2857
  }, P = () => {
2858
- n.value && (O.value = V3(n.value), O.value.forEach((oe) => {
2859
- oe.addEventListener("scroll", I, { passive: !0 });
2860
- }), window.addEventListener("resize", I));
2858
+ n.value && (q.value = V3(n.value), q.value.forEach((oe) => {
2859
+ oe.addEventListener("scroll", B, { passive: !0 });
2860
+ }), window.addEventListener("resize", B));
2861
2861
  }, re = () => {
2862
- O.value.forEach((oe) => {
2863
- oe.removeEventListener("scroll", I);
2864
- }), window.removeEventListener("resize", I), O.value = [];
2862
+ q.value.forEach((oe) => {
2863
+ oe.removeEventListener("scroll", B);
2864
+ }), window.removeEventListener("resize", B), q.value = [];
2865
2865
  }, E = () => {
2866
2866
  v || _.value || !n.value || !I1(n.value) || (o.value = window.setTimeout(
2867
2867
  async () => {
2868
- _.value = !0, m.value = !0, b.value = !1, await j(), P(), p == null || p(!0);
2868
+ _.value = !0, g.value = !0, b.value = !1, await I(), P(), p == null || p(!0);
2869
2869
  },
2870
2870
  t === "hover" ? c : 0
2871
2871
  ));
@@ -2884,16 +2884,16 @@ function _1(n, e, l = {}) {
2884
2884
  }), {
2885
2885
  // State
2886
2886
  visible: _,
2887
- parentVisible: m,
2887
+ parentVisible: g,
2888
2888
  wasVisibleBeforeHiding: b,
2889
- dropdownPosition: B,
2889
+ dropdownPosition: A,
2890
2890
  // Methods
2891
2891
  show: E,
2892
2892
  hide: L,
2893
2893
  toggle: ee,
2894
- updatePosition: j,
2894
+ updatePosition: I,
2895
2895
  // Internal methods
2896
- checkParentVisibility: F,
2896
+ checkParentVisibility: U,
2897
2897
  addScrollListeners: P,
2898
2898
  removeScrollListeners: re
2899
2899
  };
@@ -3022,7 +3022,7 @@ const P3 = ["for"], j3 = {
3022
3022
  },
3023
3023
  emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "validation", "keydown", "keyup", "keypress", "click"],
3024
3024
  setup(n, { expose: e, emit: l }) {
3025
- const t = n, i = l, c = H(), h = H(), v = H(!1), f = H(!1), p = H(), d = H([]), _ = H(!0), m = H(!1), b = {
3025
+ const t = n, i = l, c = H(), h = H(), v = H(!1), f = H(!1), p = H(), d = H([]), _ = H(!0), g = H(!1), b = {
3026
3026
  email: (k) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k),
3027
3027
  url: (k) => {
3028
3028
  try {
@@ -3033,37 +3033,37 @@ const P3 = ["for"], j3 = {
3033
3033
  },
3034
3034
  number: (k) => !isNaN(Number(k)) && isFinite(Number(k)),
3035
3035
  required: (k) => k !== "" && k !== null && k !== void 0,
3036
- minlength: (k, N) => String(k).length >= N,
3037
- maxlength: (k, N) => String(k).length <= N,
3038
- min: (k, N) => {
3039
- const q = Number(k);
3040
- return !isNaN(q) && q >= N;
3036
+ minlength: (k, O) => String(k).length >= O,
3037
+ maxlength: (k, O) => String(k).length <= O,
3038
+ min: (k, O) => {
3039
+ const N = Number(k);
3040
+ return !isNaN(N) && N >= O;
3041
3041
  },
3042
- max: (k, N) => {
3043
- const q = Number(k);
3044
- return !isNaN(q) && q <= N;
3042
+ max: (k, O) => {
3043
+ const N = Number(k);
3044
+ return !isNaN(N) && N <= O;
3045
3045
  },
3046
- pattern: (k, N) => new RegExp(N).test(k),
3047
- custom: (k, N) => N(k)
3046
+ pattern: (k, O) => new RegExp(O).test(k),
3047
+ custom: (k, O) => O(k)
3048
3048
  }, o = (k) => {
3049
- const N = [], q = String(k || "");
3050
- if (t.required && !b.required(k) && N.push(t.requiredMessage || "Це поле є обов'язковим"), !q && !t.required) {
3051
- d.value = N, _.value = N.length === 0;
3049
+ const O = [], N = String(k || "");
3050
+ if (t.required && !b.required(k) && O.push(t.requiredMessage || "Це поле є обов'язковим"), !N && !t.required) {
3051
+ d.value = O, _.value = O.length === 0;
3052
3052
  return;
3053
3053
  }
3054
3054
  switch (t.type) {
3055
3055
  case "email":
3056
- q && !b.email(q) && N.push(t.emailMessage || "Введіть коректну email адресу");
3056
+ N && !b.email(N) && O.push(t.emailMessage || "Введіть коректну email адресу");
3057
3057
  break;
3058
3058
  case "url":
3059
- q && !b.url(q) && N.push(t.urlMessage || "Введіть коректний URL");
3059
+ N && !b.url(N) && O.push(t.urlMessage || "Введіть коректний URL");
3060
3060
  break;
3061
3061
  case "number":
3062
- q && !b.number(q) && N.push(t.numberMessage || "Введіть коректне число");
3062
+ N && !b.number(N) && O.push(t.numberMessage || "Введіть коректне число");
3063
3063
  break;
3064
3064
  }
3065
- t.minlength && q && !b.minlength(q, t.minlength) && N.push(t.minlengthMessage || `Мінімальна довжина: ${t.minlength} символів`), t.maxlength && q && !b.maxlength(q, t.maxlength) && N.push(t.maxlengthMessage || `Максимальна довжина: ${t.maxlength} символів`), t.type === "number" && q && b.number(q) && (t.min !== void 0 && !b.min(q, t.min) && N.push(t.minMessage || `Мінімальне значення: ${t.min}`), t.max !== void 0 && !b.max(q, t.max) && N.push(t.maxMessage || `Максимальне значення: ${t.max}`)), t.pattern && q && !b.pattern(q, t.pattern) && N.push(t.patternMessage || "Значення не відповідає вимогам формату"), t.customValidator && !b.custom(k, t.customValidator) && N.push(t.customValidatorMessage || "Значення не проходить валідацію"), d.value = N, _.value = N.length === 0, i("validation", { isValid: _.value, errors: N });
3066
- }, O = V(() => t.type === "textarea"), B = V(() => {
3065
+ t.minlength && N && !b.minlength(N, t.minlength) && O.push(t.minlengthMessage || `Мінімальна довжина: ${t.minlength} символів`), t.maxlength && N && !b.maxlength(N, t.maxlength) && O.push(t.maxlengthMessage || `Максимальна довжина: ${t.maxlength} символів`), t.type === "number" && N && b.number(N) && (t.min !== void 0 && !b.min(N, t.min) && O.push(t.minMessage || `Мінімальне значення: ${t.min}`), t.max !== void 0 && !b.max(N, t.max) && O.push(t.maxMessage || `Максимальне значення: ${t.max}`)), t.pattern && N && !b.pattern(N, t.pattern) && O.push(t.patternMessage || "Значення не відповідає вимогам формату"), t.customValidator && !b.custom(k, t.customValidator) && O.push(t.customValidatorMessage || "Значення не проходить валідацію"), d.value = O, _.value = O.length === 0, i("validation", { isValid: _.value, errors: O });
3066
+ }, q = V(() => t.type === "textarea"), A = V(() => {
3067
3067
  if (t.type === "password") return null;
3068
3068
  switch (t.type) {
3069
3069
  case "email":
@@ -3073,8 +3073,8 @@ const P3 = ["for"], j3 = {
3073
3073
  default:
3074
3074
  return null;
3075
3075
  }
3076
- }), F = V(() => {
3077
- if (t.prefixIcon || B.value) return null;
3076
+ }), U = V(() => {
3077
+ if (t.prefixIcon || A.value) return null;
3078
3078
  if (t.errorMessage) return "alertCircle";
3079
3079
  switch (t.status) {
3080
3080
  case "error":
@@ -3086,12 +3086,12 @@ const P3 = ["for"], j3 = {
3086
3086
  default:
3087
3087
  return _.value ? null : "alertCircle";
3088
3088
  }
3089
- }), j = V(() => !!t.prefixIcon || !!B.value || !!F.value), I = V(() => t.prefixIcon || B.value || F.value), P = V(() => {
3090
- const k = "vt-input__icon", N = t.status !== "default" ? t.status : _.value ? "default" : "error";
3089
+ }), I = V(() => !!t.prefixIcon || !!A.value || !!U.value), B = V(() => t.prefixIcon || A.value || U.value), P = V(() => {
3090
+ const k = "vt-input__icon", O = t.status !== "default" ? t.status : _.value ? "default" : "error";
3091
3091
  if (t.prefixIcon)
3092
3092
  return k;
3093
- if (F.value)
3094
- switch (N) {
3093
+ if (U.value)
3094
+ switch (O) {
3095
3095
  case "error":
3096
3096
  return `${k} vt-input__icon--error`;
3097
3097
  case "warning":
@@ -3111,29 +3111,29 @@ const P3 = ["for"], j3 = {
3111
3111
  {
3112
3112
  "vt-input--disabled": t.disabled,
3113
3113
  "vt-input--focused": v.value,
3114
- "vt-input--textarea": O.value,
3115
- "vt-input--has-prefix": j.value,
3114
+ "vt-input--textarea": q.value,
3115
+ "vt-input--has-prefix": I.value,
3116
3116
  "vt-input--has-suffix": re.value,
3117
3117
  "vt-input--invalid": !!t.errorMessage || !_.value
3118
3118
  }
3119
3119
  ]), T = V(() => t.type === "password" ? f.value ? "text" : "password" : t.type === "textarea" ? "text" : t.type), G = V(() => t.errorMessage ? t.errorMessage : d.value.length > 0 ? d.value[0] : ""), ve = V(() => t.autosize && typeof t.autosize == "object" && t.autosize.maxRows ? "none" : t.resize), Ce = (k) => {
3120
- let q = k.target.value;
3121
- if (t.type === "number" && q !== "") {
3122
- const $e = Number(q);
3123
- isNaN($e) || (q = $e);
3120
+ let N = k.target.value;
3121
+ if (t.type === "number" && N !== "") {
3122
+ const $e = Number(N);
3123
+ isNaN($e) || (N = $e);
3124
3124
  }
3125
- i("update:modelValue", q), i("input", k), t.validateOnInput && o(q), O.value && t.autosize && !m.value && Te(() => se());
3125
+ i("update:modelValue", N), i("input", k), t.validateOnInput && o(N), q.value && t.autosize && !g.value && Te(() => se());
3126
3126
  }, D = (k) => {
3127
3127
  if (i("change", k), !t.validateOnInput) {
3128
- const N = k.target;
3129
- o(N.value);
3128
+ const O = k.target;
3129
+ o(O.value);
3130
3130
  }
3131
- }, A = (k) => {
3131
+ }, j = (k) => {
3132
3132
  v.value = !0, i("focus", k);
3133
- }, W = (k) => {
3133
+ }, Y = (k) => {
3134
3134
  if (v.value = !1, i("blur", k), t.validateOnBlur) {
3135
- const N = k.target;
3136
- o(N.value);
3135
+ const O = k.target;
3136
+ o(O.value);
3137
3137
  }
3138
3138
  }, ae = () => {
3139
3139
  var k;
@@ -3144,23 +3144,23 @@ const P3 = ["for"], j3 = {
3144
3144
  (k = c.value) == null || k.focus();
3145
3145
  });
3146
3146
  }, se = () => {
3147
- if (!h.value || !t.autosize || m.value) return;
3148
- const k = h.value, N = k.style.height;
3147
+ if (!h.value || !t.autosize || g.value) return;
3148
+ const k = h.value, O = k.style.height;
3149
3149
  k.style.height = "auto";
3150
- let q = k.scrollHeight;
3150
+ let N = k.scrollHeight;
3151
3151
  if (typeof t.autosize == "object") {
3152
3152
  const De = parseInt(getComputedStyle(k).lineHeight), Be = t.autosize.minRows ? t.autosize.minRows * De : 0, Re = t.autosize.maxRows ? t.autosize.maxRows * De : 1 / 0;
3153
- q = Math.max(Be, Math.min(q, Re));
3153
+ N = Math.max(Be, Math.min(N, Re));
3154
3154
  }
3155
- const $e = `${q}px`;
3156
- $e !== N && (p.value = $e, k.style.height = $e);
3155
+ const $e = `${N}px`;
3156
+ $e !== O && (p.value = $e, k.style.height = $e);
3157
3157
  }, le = (k) => {
3158
3158
  if (!h.value || !(ve.value !== "none")) return;
3159
3159
  const $e = h.value.getBoundingClientRect();
3160
3160
  if (k.clientX > $e.right - 20 && k.clientY > $e.bottom - 20) {
3161
- m.value = !0;
3161
+ g.value = !0;
3162
3162
  const Be = () => {
3163
- m.value = !1, document.removeEventListener("mouseup", Be);
3163
+ g.value = !1, document.removeEventListener("mouseup", Be);
3164
3164
  };
3165
3165
  document.addEventListener("mouseup", Be);
3166
3166
  }
@@ -3193,7 +3193,7 @@ const P3 = ["for"], j3 = {
3193
3193
  }), ye(
3194
3194
  () => t.modelValue,
3195
3195
  (k) => {
3196
- O.value && t.autosize && !m.value && Te(se), t.validateOnInput && o(k || "");
3196
+ q.value && t.autosize && !g.value && Te(se), t.validateOnInput && o(k || "");
3197
3197
  }
3198
3198
  ), ye(
3199
3199
  () => [t.required, t.minlength, t.maxlength, t.min, t.max, t.pattern],
@@ -3202,11 +3202,11 @@ const P3 = ["for"], j3 = {
3202
3202
  },
3203
3203
  { immediate: !0 }
3204
3204
  ), Ze(() => {
3205
- O.value && t.autosize && se(), t.modelValue !== void 0 && t.modelValue !== "" && o(t.modelValue);
3205
+ q.value && t.autosize && se(), t.modelValue !== void 0 && t.modelValue !== "" && o(t.modelValue);
3206
3206
  }), Ze(() => {
3207
- O.value && t.autosize;
3207
+ q.value && t.autosize;
3208
3208
  }), t1(() => {
3209
- }), (k, N) => (r(), u("div", {
3209
+ }), (k, O) => (r(), u("div", {
3210
3210
  class: Q(oe.value)
3211
3211
  }, [
3212
3212
  k.label ? (r(), u("label", {
@@ -3215,16 +3215,16 @@ const P3 = ["for"], j3 = {
3215
3215
  for: k.id
3216
3216
  }, [
3217
3217
  Me(R(k.label) + " ", 1),
3218
- k.required ? (r(), u("span", j3, "*")) : U("", !0)
3219
- ], 8, P3)) : U("", !0),
3218
+ k.required ? (r(), u("span", j3, "*")) : W("", !0)
3219
+ ], 8, P3)) : W("", !0),
3220
3220
  s("div", R3, [
3221
- j.value ? (r(), u("div", Z3, [
3221
+ I.value ? (r(), u("div", Z3, [
3222
3222
  ne(me, {
3223
- name: I.value,
3223
+ name: B.value,
3224
3224
  class: Q(P.value)
3225
3225
  }, null, 8, ["name", "class"])
3226
- ])) : U("", !0),
3227
- O.value ? (r(), u("textarea", {
3226
+ ])) : W("", !0),
3227
+ q.value ? (r(), u("textarea", {
3228
3228
  key: 1,
3229
3229
  ref_key: "textareaRef",
3230
3230
  ref: h,
@@ -3244,13 +3244,13 @@ const P3 = ["for"], j3 = {
3244
3244
  class: "vt-input__field vt-input__textarea",
3245
3245
  onInput: Ce,
3246
3246
  onChange: D,
3247
- onFocus: A,
3248
- onBlur: W,
3247
+ onFocus: j,
3248
+ onBlur: Y,
3249
3249
  onMousedown: le,
3250
- onKeydown: N[0] || (N[0] = (q) => k.$emit("keydown", q)),
3251
- onKeyup: N[1] || (N[1] = (q) => k.$emit("keyup", q)),
3252
- onKeypress: N[2] || (N[2] = (q) => k.$emit("keypress", q)),
3253
- onClick: N[3] || (N[3] = (q) => k.$emit("click", q))
3250
+ onKeydown: O[0] || (O[0] = (N) => k.$emit("keydown", N)),
3251
+ onKeyup: O[1] || (O[1] = (N) => k.$emit("keyup", N)),
3252
+ onKeypress: O[2] || (O[2] = (N) => k.$emit("keypress", N)),
3253
+ onClick: O[3] || (O[3] = (N) => k.$emit("click", N))
3254
3254
  }, null, 44, F3)) : (r(), u("input", {
3255
3255
  key: 2,
3256
3256
  ref_key: "inputRef",
@@ -3273,12 +3273,12 @@ const P3 = ["for"], j3 = {
3273
3273
  class: "vt-input__field",
3274
3274
  onInput: Ce,
3275
3275
  onChange: D,
3276
- onFocus: A,
3277
- onBlur: W,
3278
- onKeydown: N[4] || (N[4] = (q) => k.$emit("keydown", q)),
3279
- onKeyup: N[5] || (N[5] = (q) => k.$emit("keyup", q)),
3280
- onKeypress: N[6] || (N[6] = (q) => k.$emit("keypress", q)),
3281
- onClick: N[7] || (N[7] = (q) => k.$emit("click", q))
3276
+ onFocus: j,
3277
+ onBlur: Y,
3278
+ onKeydown: O[4] || (O[4] = (N) => k.$emit("keydown", N)),
3279
+ onKeyup: O[5] || (O[5] = (N) => k.$emit("keyup", N)),
3280
+ onKeypress: O[6] || (O[6] = (N) => k.$emit("keypress", N)),
3281
+ onClick: O[7] || (O[7] = (N) => k.$emit("click", N))
3282
3282
  }, null, 40, z3)),
3283
3283
  re.value ? (r(), u("div", O3, [
3284
3284
  L.value ? (r(), u("button", {
@@ -3291,7 +3291,7 @@ const P3 = ["for"], j3 = {
3291
3291
  name: "close",
3292
3292
  class: "vt-input__icon"
3293
3293
  })
3294
- ])) : U("", !0),
3294
+ ])) : W("", !0),
3295
3295
  k.showPassword && k.type === "password" ? (r(), u("button", {
3296
3296
  key: 1,
3297
3297
  type: "button",
@@ -3302,25 +3302,25 @@ const P3 = ["for"], j3 = {
3302
3302
  name: f.value ? "eyeOpened" : "eyeClosed",
3303
3303
  class: "vt-input__icon"
3304
3304
  }, null, 8, ["name"])
3305
- ])) : U("", !0),
3305
+ ])) : W("", !0),
3306
3306
  E.value ? (r(), we(me, {
3307
3307
  key: 2,
3308
3308
  name: E.value,
3309
3309
  class: "vt-input__icon"
3310
- }, null, 8, ["name"])) : U("", !0)
3311
- ])) : U("", !0)
3310
+ }, null, 8, ["name"])) : W("", !0)
3311
+ ])) : W("", !0)
3312
3312
  ]),
3313
3313
  k.helperText || G.value ? (r(), u("div", Y3, [
3314
- G.value ? (r(), u("span", N3, R(G.value), 1)) : k.helperText ? (r(), u("span", W3, R(k.helperText), 1)) : U("", !0)
3315
- ])) : U("", !0),
3314
+ G.value ? (r(), u("span", N3, R(G.value), 1)) : k.helperText ? (r(), u("span", W3, R(k.helperText), 1)) : W("", !0)
3315
+ ])) : W("", !0),
3316
3316
  d.value.length > 1 && k.showAllErrors ? (r(), u("div", q3, [
3317
- (r(!0), u(ie, null, fe(d.value, (q, $e) => (r(), u("div", {
3317
+ (r(!0), u(ie, null, fe(d.value, (N, $e) => (r(), u("div", {
3318
3318
  key: $e,
3319
3319
  class: "vt-input__error-item"
3320
3320
  }, [
3321
- s("span", null, R(q), 1)
3321
+ s("span", null, R(N), 1)
3322
3322
  ]))), 128))
3323
- ])) : U("", !0)
3323
+ ])) : W("", !0)
3324
3324
  ], 2));
3325
3325
  }
3326
3326
  }), U3 = ["for"], K3 = {
@@ -3382,20 +3382,20 @@ const P3 = ["for"], j3 = {
3382
3382
  },
3383
3383
  emits: ["update:modelValue", "change", "clear", "focus", "blur", "visible-change", "validation", "scrolled", "remove-tag", "filter", "filter-clear"],
3384
3384
  setup(n, { expose: e, emit: l }) {
3385
- const t = n, i = l, c = H(), h = H(), v = H(), f = H(), p = H([]), d = H(), _ = H(), m = {
3385
+ const t = n, i = l, c = H(), h = H(), v = H(), f = H(), p = H([]), d = H(), _ = H(), g = {
3386
3386
  isFocused: H(!1),
3387
3387
  validationErrors: H([]),
3388
3388
  isValid: H(!0),
3389
3389
  visibleCount: H(0),
3390
3390
  filterQuery: H("")
3391
- }, b = H(/* @__PURE__ */ new Map()), o = H(/* @__PURE__ */ new Set()), O = H(/* @__PURE__ */ new Map()), B = (a) => t.valueKey && typeof a == "object" && a !== null ? String(a[t.valueKey]) : typeof a == "object" ? JSON.stringify(a) : String(a), F = (a, C) => {
3392
- const K = B(a.value);
3393
- b.value.set(K, a), o.value.add(K), C && O.value.set(a.value, C);
3394
- }, j = (a) => {
3395
- const C = B(a);
3396
- o.value.delete(C), O.value.delete(a);
3391
+ }, b = H(/* @__PURE__ */ new Map()), o = H(/* @__PURE__ */ new Set()), q = H(/* @__PURE__ */ new Map()), A = (a) => t.valueKey && typeof a == "object" && a !== null ? String(a[t.valueKey]) : typeof a == "object" ? JSON.stringify(a) : String(a), U = (a, C) => {
3392
+ const K = A(a.value);
3393
+ b.value.set(K, a), o.value.add(K), C && q.value.set(a.value, C);
3397
3394
  }, I = (a) => {
3398
- for (const [C, K] of O.value.entries())
3395
+ const C = A(a);
3396
+ o.value.delete(C), q.value.delete(a);
3397
+ }, B = (a) => {
3398
+ for (const [C, K] of q.value.entries())
3399
3399
  if (o1(C, a, t.valueKey))
3400
3400
  return K;
3401
3401
  }, P = (a) => a.toLowerCase().trim(), re = (a, C) => {
@@ -3404,8 +3404,8 @@ const P3 = ["for"], j3 = {
3404
3404
  if (a.label && typeof a.label == "string" && P(a.label).includes(K) || typeof a.value == "string" && P(a.value).includes(K))
3405
3405
  return !0;
3406
3406
  if (typeof a.value == "object" && a.value !== null) {
3407
- const z = Object.values(a.value).filter((ge) => typeof ge == "string");
3408
- for (const ge of z)
3407
+ const F = Object.values(a.value).filter((ge) => typeof ge == "string");
3408
+ for (const ge of F)
3409
3409
  if (P(ge).includes(K))
3410
3410
  return !0;
3411
3411
  }
@@ -3415,15 +3415,15 @@ const P3 = ["for"], j3 = {
3415
3415
  for (const [C, K] of b.value.entries())
3416
3416
  o.value.has(C) && a.push(K);
3417
3417
  return a;
3418
- }), L = V(() => !t.filterable || !m.filterQuery.value.trim() || t.allowRemoteFilter ? E.value : E.value.filter((a) => re(a, m.filterQuery.value))), ee = H(0), oe = (a) => {
3418
+ }), L = V(() => !t.filterable || !g.filterQuery.value.trim() || t.allowRemoteFilter ? E.value : E.value.filter((a) => re(a, g.filterQuery.value))), ee = H(0), oe = (a) => {
3419
3419
  const C = a.target;
3420
3420
  if (!C) return;
3421
- const K = C.scrollTop, z = C.scrollHeight, ge = C.clientHeight, Ve = K + ge >= z - 50, He = Date.now(), We = !t.loading && L.value.length > 0 && He - ee.value > E1;
3421
+ const K = C.scrollTop, F = C.scrollHeight, ge = C.clientHeight, Ve = K + ge >= F - 50, He = Date.now(), We = !t.loading && L.value.length > 0 && He - ee.value > E1;
3422
3422
  Ve && We && (ee.value = He, i("scrolled"));
3423
3423
  }, T = () => {
3424
3424
  Te(() => {
3425
3425
  if (!d.value) return;
3426
- const a = d.value, C = a.scrollHeight, K = a.clientHeight, z = a.scrollTop, ge = C <= K, pe = z + K >= C - 10;
3426
+ const a = d.value, C = a.scrollHeight, K = a.clientHeight, F = a.scrollTop, ge = C <= K, pe = F + K >= C - 10;
3427
3427
  if ((ge || pe) && L.value.length > 0 && !t.loading) {
3428
3428
  const Ve = Date.now();
3429
3429
  Ve - ee.value > E1 && (ee.value = Ve, i("scrolled"));
@@ -3434,8 +3434,8 @@ const P3 = ["for"], j3 = {
3434
3434
  parentVisible: ve,
3435
3435
  dropdownPosition: Ce,
3436
3436
  show: D,
3437
- hide: A,
3438
- toggle: W,
3437
+ hide: j,
3438
+ toggle: Y,
3439
3439
  updatePosition: ae
3440
3440
  } = _1(h, v, {
3441
3441
  trigger: "click",
@@ -3449,7 +3449,7 @@ const P3 = ["for"], j3 = {
3449
3449
  await ae(), t.filterable && _.value && _.value.focus(), setTimeout(() => {
3450
3450
  T();
3451
3451
  }, 100);
3452
- }) : (m.filterQuery.value && X(), t.validateOnBlur && ce.validate()), i("visible-change", a);
3452
+ }) : (g.filterQuery.value && X(), t.validateOnBlur && ce.validate()), i("visible-change", a);
3453
3453
  }
3454
3454
  }), ce = {
3455
3455
  validate() {
@@ -3459,21 +3459,21 @@ const P3 = ["for"], j3 = {
3459
3459
  t.required || !1,
3460
3460
  t.requiredMessage
3461
3461
  );
3462
- m.validationErrors.value = a.errors, m.isValid.value = a.isValid, i("validation", { isValid: m.isValid.value, errors: a.errors });
3462
+ g.validationErrors.value = a.errors, g.isValid.value = a.isValid, i("validation", { isValid: g.isValid.value, errors: a.errors });
3463
3463
  },
3464
3464
  clear() {
3465
- m.validationErrors.value = [], m.isValid.value = !0, i("validation", { isValid: !0, errors: [] });
3465
+ g.validationErrors.value = [], g.isValid.value = !0, i("validation", { isValid: !0, errors: [] });
3466
3466
  }
3467
- }, se = V(() => t.multiple), le = V(() => E.value.length ? D3(t.modelValue, E.value, se.value, t.valueKey) : []), je = V(() => !t.multiple || le.value.length === 0 ? [] : t.collapsedTags ? le.value.slice(0, m.visibleCount.value) : le.value), ze = V(() => {
3467
+ }, se = V(() => t.multiple), le = V(() => E.value.length ? D3(t.modelValue, E.value, se.value, t.valueKey) : []), je = V(() => !t.multiple || le.value.length === 0 ? [] : t.collapsedTags ? le.value.slice(0, g.visibleCount.value) : le.value), ze = V(() => {
3468
3468
  if (se.value) return "";
3469
3469
  const a = le.value[0];
3470
3470
  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) : "";
3471
- }), Oe = V(() => !t.clearable || t.disabled ? !1 : se.value ? le.value.length > 0 : t.modelValue !== void 0 && t.modelValue !== null && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0)), _e = V(() => t.status !== "default" ? t.status : m.isValid.value ? "default" : "error"), Ae = V(() => [
3471
+ }), Oe = V(() => !t.clearable || t.disabled ? !1 : se.value ? le.value.length > 0 : t.modelValue !== void 0 && t.modelValue !== null && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0)), _e = V(() => t.status !== "default" ? t.status : g.isValid.value ? "default" : "error"), Ae = V(() => [
3472
3472
  "vt-select",
3473
3473
  `vt-select--${_e.value}`,
3474
3474
  {
3475
3475
  "vt-select--disabled": t.disabled,
3476
- "vt-select--focused": m.isFocused.value,
3476
+ "vt-select--focused": g.isFocused.value,
3477
3477
  "vt-select--multiple": se.value,
3478
3478
  "vt-select--open": G.value
3479
3479
  }
@@ -3482,21 +3482,21 @@ const P3 = ["for"], j3 = {
3482
3482
  position: "absolute",
3483
3483
  zIndex: 2e3,
3484
3484
  maxHeight: `${t.maxHeight}px`
3485
- })), Ne = V(() => le.value.length - m.visibleCount.value), be = V(() => t.collapsedTags && t.multiple && le.value.length > 0 && m.visibleCount.value < le.value.length), k = V(() => {
3485
+ })), Ne = V(() => le.value.length - g.visibleCount.value), be = V(() => t.collapsedTags && t.multiple && le.value.length > 0 && g.visibleCount.value < le.value.length), k = V(() => {
3486
3486
  if (!be.value) return "";
3487
- const a = le.value.slice(m.visibleCount.value);
3487
+ const a = le.value.slice(g.visibleCount.value);
3488
3488
  return A3(Ne.value, a);
3489
- }), N = (a) => {
3490
- var K, z;
3489
+ }), O = (a) => {
3490
+ var K, F;
3491
3491
  if (!G.value) return;
3492
3492
  const C = a.target;
3493
- (K = c.value) != null && K.contains(C) || (z = v.value) != null && z.contains(C) || A();
3494
- }, q = (a) => {
3493
+ (K = c.value) != null && K.contains(C) || (F = v.value) != null && F.contains(C) || j();
3494
+ }, N = (a) => {
3495
3495
  if (!a || a.disabled) return;
3496
3496
  const C = H3(a, t.modelValue, se.value, t.valueKey);
3497
- i("update:modelValue", C), i("change", C), se.value || A(), t.validateOnInput && ce.validate();
3497
+ i("update:modelValue", C), i("change", C), se.value || j(), t.validateOnInput && ce.validate();
3498
3498
  }, $e = (a, C) => {
3499
- a.disabled || q(a);
3499
+ a.disabled || N(a);
3500
3500
  }, De = () => {
3501
3501
  const a = I3(se.value);
3502
3502
  i("update:modelValue", a), i("change", a), i("clear"), ce.clear();
@@ -3505,40 +3505,40 @@ const P3 = ["for"], j3 = {
3505
3505
  const C = T3(a, t.modelValue, t.valueKey);
3506
3506
  i("update:modelValue", C), i("change", C), i("remove-tag", a), t.validateOnInput && ce.validate();
3507
3507
  }, Re = () => {
3508
- t.disabled || W();
3508
+ t.disabled || Y();
3509
3509
  }, Qe = () => {
3510
- m.isFocused.value = !0, i("focus");
3510
+ g.isFocused.value = !0, i("focus");
3511
3511
  }, Ge = (a) => {
3512
3512
  var C;
3513
- a != null && a.relatedTarget && ((C = v.value) != null && C.contains(a.relatedTarget)) || (m.isFocused.value = !1, i("blur"), setTimeout(() => {
3513
+ a != null && a.relatedTarget && ((C = v.value) != null && C.contains(a.relatedTarget)) || (g.isFocused.value = !1, i("blur"), setTimeout(() => {
3514
3514
  var K;
3515
- (K = v.value) != null && K.contains(document.activeElement) || A();
3515
+ (K = v.value) != null && K.contains(document.activeElement) || j();
3516
3516
  }, 100));
3517
3517
  }, Z = (a) => {
3518
3518
  const C = a.target.value;
3519
- m.filterQuery.value = C, i("filter", C), t.allowRemoteFilter && console.log("Remote filter query:", C);
3519
+ g.filterQuery.value = C, i("filter", C), t.allowRemoteFilter && console.log("Remote filter query:", C);
3520
3520
  }, X = () => {
3521
- m.filterQuery.value = "", i("filter", ""), i("filter-clear");
3521
+ g.filterQuery.value = "", i("filter", ""), i("filter-clear");
3522
3522
  }, ue = (a) => {
3523
- a.key === "Enter" || a.key === " " ? (a.preventDefault(), Re()) : a.key === "Escape" && G.value && (a.preventDefault(), A());
3523
+ a.key === "Enter" || a.key === " " ? (a.preventDefault(), Re()) : a.key === "Escape" && G.value && (a.preventDefault(), j());
3524
3524
  }, de = (a) => S3(a, t.modelValue, se.value, t.valueKey), te = () => {
3525
3525
  if (!t.collapsedTags || !f.value || le.value.length === 0) {
3526
- m.visibleCount.value = le.value.length;
3526
+ g.visibleCount.value = le.value.length;
3527
3527
  return;
3528
3528
  }
3529
3529
  Te(() => {
3530
3530
  if (!f.value) return;
3531
3531
  const a = E3(f.value, p.value, le.value.length);
3532
- m.visibleCount.value = a;
3532
+ g.visibleCount.value = a;
3533
3533
  });
3534
3534
  }, y = {
3535
3535
  selectValue: V(() => t.modelValue || (se.value ? [] : void 0)).value,
3536
3536
  multiple: se.value,
3537
3537
  valueKey: t.valueKey,
3538
- handleOptionClick: q,
3538
+ handleOptionClick: N,
3539
3539
  isOptionSelected: de,
3540
- registerOption: F,
3541
- unregisterOption: j
3540
+ registerOption: U,
3541
+ unregisterOption: I
3542
3542
  };
3543
3543
  return d1(J1, y), e({
3544
3544
  ...{
@@ -3546,13 +3546,13 @@ const P3 = ["for"], j3 = {
3546
3546
  G.value || D();
3547
3547
  },
3548
3548
  blur() {
3549
- A();
3549
+ j();
3550
3550
  },
3551
3551
  clear() {
3552
3552
  De();
3553
3553
  },
3554
3554
  validate() {
3555
- return ce.validate(), m.isValid.value;
3555
+ return ce.validate(), g.isValid.value;
3556
3556
  },
3557
3557
  clearValidation() {
3558
3558
  ce.clear();
@@ -3562,18 +3562,18 @@ const P3 = ["for"], j3 = {
3562
3562
  },
3563
3563
  getValidationState() {
3564
3564
  return {
3565
- isValid: m.isValid.value,
3566
- errors: [...m.validationErrors.value]
3565
+ isValid: g.isValid.value,
3566
+ errors: [...g.validationErrors.value]
3567
3567
  };
3568
3568
  },
3569
3569
  setFilter(a) {
3570
- m.filterQuery.value = a, i("filter", a);
3570
+ g.filterQuery.value = a, i("filter", a);
3571
3571
  },
3572
3572
  clearFilter() {
3573
3573
  X();
3574
3574
  },
3575
3575
  getFilterQuery() {
3576
- return m.filterQuery.value;
3576
+ return g.filterQuery.value;
3577
3577
  },
3578
3578
  // Методи для роботи зі скролом
3579
3579
  checkInitialScroll() {
@@ -3581,20 +3581,20 @@ const P3 = ["for"], j3 = {
3581
3581
  },
3582
3582
  getScrollInfo() {
3583
3583
  if (!d.value) return null;
3584
- const { scrollTop: a, scrollHeight: C, clientHeight: K } = d.value, z = C - (a + K), ge = z <= 50;
3584
+ const { scrollTop: a, scrollHeight: C, clientHeight: K } = d.value, F = C - (a + K), ge = F <= 50;
3585
3585
  return {
3586
3586
  scrollTop: a,
3587
3587
  scrollHeight: C,
3588
3588
  clientHeight: K,
3589
- distanceFromBottom: z,
3589
+ distanceFromBottom: F,
3590
3590
  nearBottom: ge,
3591
3591
  optionsCount: L.value.length,
3592
3592
  isLoading: t.loading
3593
3593
  };
3594
3594
  }
3595
3595
  },
3596
- registerOption: F,
3597
- unregisterOption: j
3596
+ registerOption: U,
3597
+ unregisterOption: I
3598
3598
  }), ye(
3599
3599
  () => t.modelValue,
3600
3600
  () => {
@@ -3626,9 +3626,9 @@ const P3 = ["for"], j3 = {
3626
3626
  ), Ze(() => {
3627
3627
  t.modelValue !== void 0 && t.modelValue !== "" && (!Array.isArray(t.modelValue) || t.modelValue.length > 0) && ce.validate(), Te(() => {
3628
3628
  te();
3629
- }), window.addEventListener("resize", te), document.addEventListener("click", N);
3629
+ }), window.addEventListener("resize", te), document.addEventListener("click", O);
3630
3630
  }), t1(() => {
3631
- document.removeEventListener("click", N), window.removeEventListener("resize", te);
3631
+ document.removeEventListener("click", O), window.removeEventListener("resize", te);
3632
3632
  }), (a, C) => {
3633
3633
  const K = L1("tooltip");
3634
3634
  return r(), u("div", {
@@ -3642,8 +3642,8 @@ const P3 = ["for"], j3 = {
3642
3642
  class: "vt-select__label"
3643
3643
  }, [
3644
3644
  Me(R(a.label) + " ", 1),
3645
- a.required ? (r(), u("span", K3, "*")) : U("", !0)
3646
- ], 8, U3)) : U("", !0),
3645
+ a.required ? (r(), u("span", K3, "*")) : W("", !0)
3646
+ ], 8, U3)) : W("", !0),
3647
3647
  s("div", {
3648
3648
  ref_key: "triggerRef",
3649
3649
  ref: h,
@@ -3661,25 +3661,25 @@ const P3 = ["for"], j3 = {
3661
3661
  ref: f,
3662
3662
  class: "vt-select__tags"
3663
3663
  }, [
3664
- (r(!0), u(ie, null, fe(je.value, (z, ge) => (r(), u("div", {
3665
- key: `tag-${typeof z.value == "object" ? JSON.stringify(z.value) : z.value}-${ge}`,
3664
+ (r(!0), u(ie, null, fe(je.value, (F, ge) => (r(), u("div", {
3665
+ key: `tag-${typeof F.value == "object" ? JSON.stringify(F.value) : F.value}-${ge}`,
3666
3666
  ref_for: !0,
3667
3667
  ref: (pe) => pe && (p.value[ge] = pe),
3668
3668
  class: "vt-select__tag"
3669
3669
  }, [
3670
- s("span", Q3, R(z.label), 1),
3671
- t.disabled ? U("", !0) : (r(), we(me, {
3670
+ s("span", Q3, R(F.label), 1),
3671
+ t.disabled ? W("", !0) : (r(), we(me, {
3672
3672
  key: 0,
3673
3673
  class: "vt-select__tag-close",
3674
3674
  name: "close",
3675
- onClick: Le((pe) => Be(z.value), ["stop"])
3675
+ onClick: Le((pe) => Be(F.value), ["stop"])
3676
3676
  }, null, 8, ["onClick"]))
3677
3677
  ]))), 128)),
3678
3678
  be.value ? r1((r(), u("div", G3, [
3679
3679
  s("span", J3, "+" + R(Ne.value), 1)
3680
3680
  ])), [
3681
3681
  [K, k.value]
3682
- ]) : U("", !0)
3682
+ ]) : W("", !0)
3683
3683
  ], 512)) : !a.multiple && ze.value ? (r(), u("span", e2, [
3684
3684
  a.$slots.selected && le.value[0] ? Se(a.$slots, "selected", {
3685
3685
  key: 0,
@@ -3701,26 +3701,26 @@ const P3 = ["for"], j3 = {
3701
3701
  ne(me, { name: "close" })
3702
3702
  ], 8, s2)) : (r(), we(me, {
3703
3703
  key: 2,
3704
- class: Q([{ "vt-select__arrow--open": Y(G) }, "vt-select__icon vt-select__arrow"]),
3704
+ class: Q([{ "vt-select__arrow--open": z(G) }, "vt-select__icon vt-select__arrow"]),
3705
3705
  name: "arrowDown"
3706
3706
  }, null, 8, ["class"]))
3707
3707
  ])
3708
3708
  ], 544),
3709
3709
  ne(u1, { name: "fade" }, {
3710
3710
  default: xe(() => [
3711
- m.validationErrors && m.validationErrors.value.length ? (r(), u("div", r2, [
3712
- (r(!0), u(ie, null, fe(m.validationErrors.value, (z, ge) => (r(), u("div", {
3711
+ g.validationErrors && g.validationErrors.value.length ? (r(), u("div", r2, [
3712
+ (r(!0), u(ie, null, fe(g.validationErrors.value, (F, ge) => (r(), u("div", {
3713
3713
  key: `error-${ge}`,
3714
3714
  class: "vt-select__error"
3715
- }, R(z), 1))), 128))
3716
- ])) : U("", !0)
3715
+ }, R(F), 1))), 128))
3716
+ ])) : W("", !0)
3717
3717
  ]),
3718
3718
  _: 1
3719
3719
  }),
3720
3720
  s("div", l2, [
3721
3721
  Se(a.$slots, "default")
3722
3722
  ]),
3723
- Y(G) && Y(ve) ? (r(), we(l1, {
3723
+ z(G) && z(ve) ? (r(), we(l1, {
3724
3724
  key: 1,
3725
3725
  to: "body"
3726
3726
  }, [
@@ -3742,17 +3742,17 @@ const P3 = ["for"], j3 = {
3742
3742
  ne(et, {
3743
3743
  ref_key: "filterInputRef",
3744
3744
  ref: _,
3745
- modelValue: m.filterQuery.value,
3746
- "onUpdate:modelValue": C[0] || (C[0] = (z) => m.filterQuery.value = z),
3745
+ modelValue: g.filterQuery.value,
3746
+ "onUpdate:modelValue": C[0] || (C[0] = (F) => g.filterQuery.value = F),
3747
3747
  placeholder: a.filterPlaceholder,
3748
3748
  clearable: "",
3749
3749
  "suffix-icon": "search",
3750
3750
  type: "text",
3751
3751
  onInput: Z
3752
3752
  }, null, 8, ["modelValue", "placeholder"])
3753
- ])) : U("", !0),
3753
+ ])) : W("", !0),
3754
3754
  L.value.length === 0 ? (r(), u("div", u2, [
3755
- m.filterQuery.value ? (r(), u("span", c2, 'Немає результатів для "' + R(m.filterQuery.value) + '"', 1)) : (r(), u("span", d2, R(a.noDataText), 1))
3755
+ g.filterQuery.value ? (r(), u("span", c2, 'Немає результатів для "' + R(g.filterQuery.value) + '"', 1)) : (r(), u("span", d2, R(a.noDataText), 1))
3756
3756
  ])) : (r(), u("div", {
3757
3757
  key: 2,
3758
3758
  ref_key: "scrollContainerRef",
@@ -3760,44 +3760,44 @@ const P3 = ["for"], j3 = {
3760
3760
  class: "vt-select-dropdown__options",
3761
3761
  onScroll: oe
3762
3762
  }, [
3763
- (r(!0), u(ie, null, fe(L.value, (z) => (r(), u("div", {
3764
- key: `option-${typeof z.value == "object" ? JSON.stringify(z.value) : z.value}`,
3765
- "aria-disabled": z.disabled || !1,
3766
- "aria-selected": de(z.value),
3763
+ (r(!0), u(ie, null, fe(L.value, (F) => (r(), u("div", {
3764
+ key: `option-${typeof F.value == "object" ? JSON.stringify(F.value) : F.value}`,
3765
+ "aria-disabled": F.disabled || !1,
3766
+ "aria-selected": de(F.value),
3767
3767
  class: Q([
3768
3768
  "vt-option",
3769
3769
  {
3770
- "vt-option--selected": de(z.value),
3771
- "vt-option--disabled": z.disabled || !1
3770
+ "vt-option--selected": de(F.value),
3771
+ "vt-option--disabled": F.disabled || !1
3772
3772
  }
3773
3773
  ]),
3774
3774
  role: "option",
3775
- onClick: (ge) => q(z),
3775
+ onClick: (ge) => N(F),
3776
3776
  onMousedown: C[1] || (C[1] = Le(() => {
3777
3777
  }, ["prevent"]))
3778
3778
  }, [
3779
3779
  se.value ? (r(), we(n1, {
3780
3780
  key: 0,
3781
- checked: de(z.value),
3782
- disabled: z.disabled || !1,
3781
+ checked: de(F.value),
3782
+ disabled: F.disabled || !1,
3783
3783
  class: "vt-option__checkbox",
3784
3784
  tabindex: "-1",
3785
- onChange: (ge) => $e(z)
3786
- }, null, 8, ["checked", "disabled", "onChange"])) : U("", !0),
3785
+ onChange: (ge) => $e(F)
3786
+ }, null, 8, ["checked", "disabled", "onChange"])) : W("", !0),
3787
3787
  s("span", p2, [
3788
- I(z.value) ? (r(), we(g1(I(z.value)), { key: 0 })) : (r(), u("span", v2, R(z.label || z.value), 1))
3788
+ B(F.value) ? (r(), we(g1(B(F.value)), { key: 0 })) : (r(), u("span", v2, R(F.label || F.value), 1))
3789
3789
  ])
3790
3790
  ], 42, h2))), 128)),
3791
3791
  a.loading ? (r(), u("div", f2, [
3792
3792
  ne(m1, { class: "vt-select-dropdown__loading-icon" }),
3793
3793
  Me(" " + R(t.loadingText), 1)
3794
- ])) : U("", !0)
3794
+ ])) : W("", !0)
3795
3795
  ], 544))
3796
3796
  ], 44, i2)
3797
3797
  ]),
3798
3798
  _: 1
3799
3799
  })
3800
- ])) : U("", !0)
3800
+ ])) : W("", !0)
3801
3801
  ], 2);
3802
3802
  };
3803
3803
  }
@@ -3841,61 +3841,61 @@ const P3 = ["for"], j3 = {
3841
3841
  setup(n, { emit: e }) {
3842
3842
  const l = n, t = e, i = V({
3843
3843
  get: () => l.currentPage,
3844
- set: (j) => t("update:currentPage", j)
3844
+ set: (I) => t("update:currentPage", I)
3845
3845
  }), c = V({
3846
3846
  get: () => l.pageSize,
3847
- set: (j) => t("update:pageSize", j)
3847
+ set: (I) => t("update:pageSize", I)
3848
3848
  }), h = V(() => Math.ceil(l.totalItems / c.value)), v = V(() => l.totalItems === 0 ? 0 : (i.value - 1) * c.value + 1), f = V(() => Math.min(i.value * c.value, l.totalItems)), p = V(() => i.value <= 1), d = V(() => i.value >= h.value), _ = V(() => {
3849
- const j = [], I = h.value, P = i.value, re = l.maxVisiblePages;
3850
- if (I <= re)
3851
- for (let E = 1; E <= I; E++)
3852
- j.push(E);
3849
+ const I = [], B = h.value, P = i.value, re = l.maxVisiblePages;
3850
+ if (B <= re)
3851
+ for (let E = 1; E <= B; E++)
3852
+ I.push(E);
3853
3853
  else {
3854
- j.push(1);
3855
- const E = Math.max(2, P - Math.floor(re / 2)), L = Math.min(I - 1, P + Math.floor(re / 2));
3856
- E > 2 && j.push("...");
3854
+ I.push(1);
3855
+ const E = Math.max(2, P - Math.floor(re / 2)), L = Math.min(B - 1, P + Math.floor(re / 2));
3856
+ E > 2 && I.push("...");
3857
3857
  for (let ee = E; ee <= L; ee++)
3858
- j.push(ee);
3859
- L < I - 1 && j.push("..."), I > 1 && j.push(I);
3858
+ I.push(ee);
3859
+ L < B - 1 && I.push("..."), B > 1 && I.push(B);
3860
3860
  }
3861
- return j;
3862
- }), m = () => {
3861
+ return I;
3862
+ }), g = () => {
3863
3863
  t("pageChange", {
3864
3864
  page: i.value,
3865
3865
  pageSize: c.value
3866
3866
  });
3867
- }, b = (j) => {
3868
- typeof j == "number" && j !== i.value && (i.value = j, m());
3867
+ }, b = (I) => {
3868
+ typeof I == "number" && I !== i.value && (i.value = I, g());
3869
3869
  }, o = () => {
3870
- p.value || (i.value--, m());
3871
- }, O = () => {
3872
- d.value || (i.value++, m());
3873
- }, B = () => {
3874
- i.value = 1, m();
3875
- }, F = () => {
3870
+ p.value || (i.value--, g());
3871
+ }, q = () => {
3872
+ d.value || (i.value++, g());
3873
+ }, A = () => {
3874
+ i.value = 1, g();
3875
+ }, U = () => {
3876
3876
  t("reloadData", i.value);
3877
3877
  };
3878
3878
  return ye(
3879
3879
  () => l.totalItems,
3880
3880
  () => {
3881
- i.value > h.value && h.value > 0 && (i.value = h.value, m());
3881
+ i.value > h.value && h.value > 0 && (i.value = h.value, g());
3882
3882
  }
3883
- ), (j, I) => (r(), u("div", m2, [
3883
+ ), (I, B) => (r(), u("div", m2, [
3884
3884
  s("div", g2, [
3885
3885
  s("div", _2, [
3886
- I[1] || (I[1] = s("label", {
3886
+ B[1] || (B[1] = s("label", {
3887
3887
  class: "vt-pagination__label",
3888
3888
  for: "rowsSelect"
3889
3889
  }, "Рядків на сторінку:", -1)),
3890
3890
  ne(tt, {
3891
3891
  id: "rowsSelect",
3892
3892
  modelValue: c.value,
3893
- "onUpdate:modelValue": I[0] || (I[0] = (P) => c.value = P),
3893
+ "onUpdate:modelValue": B[0] || (B[0] = (P) => c.value = P),
3894
3894
  class: "vt-pagination__select",
3895
- onChange: B
3895
+ onChange: A
3896
3896
  }, {
3897
3897
  default: xe(() => [
3898
- (r(!0), u(ie, null, fe(j.pageSizeOptions, (P) => (r(), we(nt, {
3898
+ (r(!0), u(ie, null, fe(I.pageSizeOptions, (P) => (r(), we(nt, {
3899
3899
  key: P,
3900
3900
  label: P,
3901
3901
  value: P
@@ -3909,7 +3909,7 @@ const P3 = ["for"], j3 = {
3909
3909
  _: 1
3910
3910
  }, 8, ["modelValue"])
3911
3911
  ]),
3912
- s("span", null, R(v.value) + " - " + R(f.value) + " з " + R(j.totalItems), 1)
3912
+ s("span", null, R(v.value) + " - " + R(f.value) + " з " + R(I.totalItems), 1)
3913
3913
  ]),
3914
3914
  s("div", w2, [
3915
3915
  s("button", {
@@ -3929,7 +3929,7 @@ const P3 = ["for"], j3 = {
3929
3929
  s("button", {
3930
3930
  class: Q({ "vt-pagination__nav-button": !0, "has-items": !d.value }),
3931
3931
  disabled: d.value,
3932
- onClick: O
3932
+ onClick: q
3933
3933
  }, [
3934
3934
  ne(me, { name: "arrowRight" })
3935
3935
  ], 10, y2)
@@ -3940,9 +3940,9 @@ const P3 = ["for"], j3 = {
3940
3940
  shape: "circle",
3941
3941
  tooltip: "",
3942
3942
  tooltipPlacement: "left",
3943
- onClick: F
3943
+ onClick: U
3944
3944
  }, {
3945
- default: xe(() => I[2] || (I[2] = [
3945
+ default: xe(() => B[2] || (B[2] = [
3946
3946
  Me("Оновити дані ", -1)
3947
3947
  ])),
3948
3948
  _: 1,
@@ -4031,7 +4031,7 @@ const P3 = ["for"], j3 = {
4031
4031
  Me(R(d.label), 1)
4032
4032
  ])
4033
4033
  ])
4034
- ], 2)) : U("", !0)
4034
+ ], 2)) : W("", !0)
4035
4035
  ], 10, M2));
4036
4036
  }
4037
4037
  });
@@ -4105,13 +4105,13 @@ function D2() {
4105
4105
  onMouseDown: (t, i, c, h) => {
4106
4106
  t.preventDefault(), t.stopPropagation(), n.value.resizingCol = i, n.value.startX = t.clientX, n.value.startWidth = i.width || i.minWidth || c(i.prop);
4107
4107
  const v = (p) => {
4108
- const { resizingCol: d, startX: _, startWidth: m } = n.value;
4108
+ const { resizingCol: d, startX: _, startWidth: g } = n.value;
4109
4109
  if (!d) return;
4110
- document.querySelectorAll(`[data-resizer="${d.prop}"]`).forEach((F) => {
4111
- F.classList.add("vt-table__resizer--active");
4110
+ document.querySelectorAll(`[data-resizer="${d.prop}"]`).forEach((U) => {
4111
+ U.classList.add("vt-table__resizer--active");
4112
4112
  });
4113
- const b = p.clientX - _, o = d.minWidth || 50, O = d.maxWidth || 1e3, B = Math.max(Math.min(m + b, O), o);
4114
- d.width = B;
4113
+ const b = p.clientX - _, o = d.minWidth || 50, q = d.maxWidth || 1e3, A = Math.max(Math.min(g + b, q), o);
4114
+ d.width = A;
4115
4115
  }, f = () => {
4116
4116
  const { resizingCol: p } = n.value;
4117
4117
  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((d) => {
@@ -4127,39 +4127,39 @@ function H2(n, e, l, t) {
4127
4127
  var oe;
4128
4128
  const i = n.selectionKey || "id", c = H([]), h = H(null), v = H(!1);
4129
4129
  (oe = n.defaultSelection) != null && oe.length && (c.value = [...n.defaultSelection]);
4130
- const f = (T) => T[i], p = (T) => v.value ? !0 : c.value.some((G) => f(G) === f(T)), d = V(() => e.value.filter((T) => p(T)).length), _ = V(() => e.value.length > 0 && d.value === e.value.length), m = V(() => {
4130
+ const f = (T) => T[i], p = (T) => v.value ? !0 : c.value.some((G) => f(G) === f(T)), d = V(() => e.value.filter((T) => p(T)).length), _ = V(() => e.value.length > 0 && d.value === e.value.length), g = V(() => {
4131
4131
  if (v.value) return !1;
4132
4132
  const T = d.value;
4133
4133
  return T > 0 && T < e.value.length;
4134
- }), b = V(() => v.value ? !0 : _.value && !m.value), o = V(() => n.isAllSelect && v.value), O = (T, G) => {
4135
- const ve = f(T), Ce = c.value.some((A) => f(A) === f(T)), D = G !== void 0 ? G : !Ce;
4134
+ }), b = V(() => v.value ? !0 : _.value && !g.value), o = V(() => n.isAllSelect && v.value), q = (T, G) => {
4135
+ const ve = f(T), Ce = c.value.some((j) => f(j) === f(T)), D = G !== void 0 ? G : !Ce;
4136
4136
  if (v.value && !D) {
4137
- v.value = !1, t != null && t.value && (c.value = t.value.filter((A) => f(A) !== ve)), ee(T, !1);
4137
+ v.value = !1, t != null && t.value && (c.value = t.value.filter((j) => f(j) !== ve)), ee(T, !1);
4138
4138
  return;
4139
4139
  }
4140
- v.value && D || (D && !Ce ? c.value.push(T) : !D && Ce && (c.value = c.value.filter((A) => f(A) !== ve)), n.selectOnClickRow && G === void 0 && re(D ? T : null), ee(T, D));
4141
- }, B = () => {
4142
- switch (F()) {
4140
+ v.value && D || (D && !Ce ? c.value.push(T) : !D && Ce && (c.value = c.value.filter((j) => f(j) !== ve)), n.selectOnClickRow && G === void 0 && re(D ? T : null), ee(T, D));
4141
+ }, A = () => {
4142
+ switch (U()) {
4143
4143
  case "none":
4144
4144
  case "partial":
4145
- j();
4145
+ I();
4146
4146
  break;
4147
4147
  case "allVisible":
4148
- n.isAllSelect ? I() : P();
4148
+ n.isAllSelect ? B() : P();
4149
4149
  break;
4150
4150
  case "absoluteAll":
4151
4151
  P();
4152
4152
  break;
4153
4153
  }
4154
- }, F = () => v.value ? "absoluteAll" : _.value ? "allVisible" : d.value > 0 ? "partial" : "none", j = () => {
4154
+ }, U = () => v.value ? "absoluteAll" : _.value ? "allVisible" : d.value > 0 ? "partial" : "none", I = () => {
4155
4155
  const T = [], G = new Set(c.value.map((ve) => f(ve)));
4156
4156
  c.value.forEach((ve) => {
4157
4157
  T.push(ve);
4158
4158
  }), e.value.forEach((ve) => {
4159
4159
  G.has(f(ve)) || T.push(ve);
4160
4160
  }), c.value = T, v.value = !1, ee();
4161
- }, I = () => {
4162
- n.isAllSelect ? (v.value = !0, t != null && t.value ? c.value = [...t.value] : c.value = [...e.value], ee(void 0, void 0, !0)) : j();
4161
+ }, B = () => {
4162
+ n.isAllSelect ? (v.value = !0, t != null && t.value ? c.value = [...t.value] : c.value = [...e.value], ee(void 0, void 0, !0)) : I();
4163
4163
  }, P = () => {
4164
4164
  c.value = [], v.value = !1, h.value = null, ee();
4165
4165
  }, re = (T) => {
@@ -4189,16 +4189,16 @@ function H2(n, e, l, t) {
4189
4189
  currentRow: h,
4190
4190
  isRowSelected: p,
4191
4191
  isAllSelected: b,
4192
- isIndeterminate: m,
4192
+ isIndeterminate: g,
4193
4193
  isDoubleCheck: o,
4194
4194
  isFullSelection: v,
4195
- toggleRowSelection: O,
4196
- toggleAllSelection: B,
4195
+ toggleRowSelection: q,
4196
+ toggleAllSelection: A,
4197
4197
  clearSelection: P,
4198
4198
  setCurrentRow: re,
4199
4199
  getSelectionRows: E,
4200
4200
  setSelectionRows: L,
4201
- selectAbsolutelyAll: I
4201
+ selectAbsolutelyAll: B
4202
4202
  };
4203
4203
  }
4204
4204
  const T2 = (n, e, l = "asc") => {
@@ -4247,7 +4247,7 @@ const T2 = (n, e, l = "asc") => {
4247
4247
  },
4248
4248
  emits: ["visible-change", "click", "command"],
4249
4249
  setup(n, { expose: e, emit: l }) {
4250
- const t = n, i = l, c = H(), h = H(), v = H(), f = H(!1), p = H(!1), d = H(null), { visible: _, parentVisible: m, dropdownPosition: b, show: o, hide: O, toggle: B } = _1(
4250
+ const t = n, i = l, c = H(), h = H(), v = H(), f = H(!1), p = H(!1), d = H(null), { visible: _, parentVisible: g, dropdownPosition: b, show: o, hide: q, toggle: A } = _1(
4251
4251
  h,
4252
4252
  v,
4253
4253
  {
@@ -4259,34 +4259,34 @@ const T2 = (n, e, l = "asc") => {
4259
4259
  hideOnClick: t.hideOnClick,
4260
4260
  onVisibleChange: (G) => i("visible-change", G)
4261
4261
  }
4262
- ), F = () => {
4262
+ ), U = () => {
4263
4263
  d.value && (clearTimeout(d.value), d.value = null);
4264
- }, j = () => {
4265
- F(), d.value = setTimeout(() => {
4266
- !f.value && !p.value && O();
4264
+ }, I = () => {
4265
+ U(), d.value = setTimeout(() => {
4266
+ !f.value && !p.value && q();
4267
4267
  }, t.hideTimeout);
4268
4268
  };
4269
4269
  d1(ot, {
4270
4270
  handleCommand: (G) => {
4271
- i("command", G), t.hideOnClick && O();
4271
+ i("command", G), t.hideOnClick && q();
4272
4272
  },
4273
4273
  hideOnClick: t.hideOnClick
4274
4274
  });
4275
4275
  const P = (G) => {
4276
- t.disabled || (i("click", G), t.trigger === "click" && B());
4276
+ t.disabled || (i("click", G), t.trigger === "click" && A());
4277
4277
  }, re = () => {
4278
- t.trigger === "hover" && (f.value = !0, F(), o());
4278
+ t.trigger === "hover" && (f.value = !0, U(), o());
4279
4279
  }, E = () => {
4280
- t.trigger === "hover" && (f.value = !1, j());
4280
+ t.trigger === "hover" && (f.value = !1, I());
4281
4281
  }, L = () => {
4282
- t.trigger === "hover" && (p.value = !0, F());
4282
+ t.trigger === "hover" && (p.value = !0, U());
4283
4283
  }, ee = () => {
4284
- t.trigger === "hover" && (p.value = !1, j());
4284
+ t.trigger === "hover" && (p.value = !1, I());
4285
4285
  }, oe = (G) => {
4286
4286
  var Ce, D;
4287
4287
  if (!_.value) return;
4288
4288
  const ve = G.target;
4289
- (Ce = c.value) != null && Ce.contains(ve) || (D = v.value) != null && D.contains(ve) || O();
4289
+ (Ce = c.value) != null && Ce.contains(ve) || (D = v.value) != null && D.contains(ve) || q();
4290
4290
  }, T = V(() => ({
4291
4291
  ...b.value,
4292
4292
  position: "absolute",
@@ -4295,12 +4295,12 @@ const T2 = (n, e, l = "asc") => {
4295
4295
  }));
4296
4296
  return e({
4297
4297
  show: o,
4298
- hide: O,
4298
+ hide: q,
4299
4299
  visible: _
4300
4300
  }), Ze(() => {
4301
4301
  document.addEventListener("click", oe);
4302
4302
  }), t1(() => {
4303
- document.removeEventListener("click", oe), F();
4303
+ document.removeEventListener("click", oe), U();
4304
4304
  }), (G, ve) => (r(), u("div", {
4305
4305
  ref_key: "dropdownRef",
4306
4306
  ref: c,
@@ -4316,7 +4316,7 @@ const T2 = (n, e, l = "asc") => {
4316
4316
  }, [
4317
4317
  Se(G.$slots, "default")
4318
4318
  ], 512),
4319
- Y(_) && Y(m) ? (r(), we(l1, {
4319
+ z(_) && z(g) ? (r(), we(l1, {
4320
4320
  key: 0,
4321
4321
  to: "body"
4322
4322
  }, [
@@ -4332,7 +4332,7 @@ const T2 = (n, e, l = "asc") => {
4332
4332
  }, [
4333
4333
  Se(G.$slots, "dropdown")
4334
4334
  ], 36)
4335
- ])) : U("", !0)
4335
+ ])) : W("", !0)
4336
4336
  ], 544));
4337
4337
  }
4338
4338
  }), M1 = /* @__PURE__ */ ke({
@@ -4360,7 +4360,7 @@ const T2 = (n, e, l = "asc") => {
4360
4360
  h.icon ? (r(), u("i", {
4361
4361
  key: 0,
4362
4362
  class: Q([h.icon, "vt-dropdown-item__icon"])
4363
- }, null, 2)) : U("", !0),
4363
+ }, null, 2)) : W("", !0),
4364
4364
  Se(h.$slots, "default")
4365
4365
  ], 2));
4366
4366
  }
@@ -4486,96 +4486,96 @@ const Xe = new E2(), A2 = {
4486
4486
  setup(n, { emit: e }) {
4487
4487
  const l = n, t = e, i = H([]), c = H(/* @__PURE__ */ new Set()), h = H(-1), v = H(-1), f = H("before"), p = V(() => {
4488
4488
  const D = {};
4489
- return l.columnsSelector.forEach((A) => {
4490
- if (A.name === "removed")
4489
+ return l.columnsSelector.forEach((j) => {
4490
+ if (j.name === "removed")
4491
4491
  return;
4492
- const W = A.columns.map((ce) => ce.prop), ae = i.value.filter((ce) => W.includes(ce.prop));
4493
- ae.length === 0 ? D[A.name] = { checked: !1, indeterminate: !1 } : ae.length === A.columns.length ? D[A.name] = { checked: !0, indeterminate: !1 } : D[A.name] = { checked: !1, indeterminate: !0 };
4492
+ const Y = j.columns.map((ce) => ce.prop), ae = i.value.filter((ce) => Y.includes(ce.prop));
4493
+ ae.length === 0 ? D[j.name] = { checked: !1, indeterminate: !1 } : ae.length === j.columns.length ? D[j.name] = { checked: !0, indeterminate: !1 } : D[j.name] = { checked: !1, indeterminate: !0 };
4494
4494
  }), D;
4495
- }), d = V(() => l.columnsSelector.filter((D) => D.name !== "removed")), _ = (D) => D.pinnedLeft || D.pinnedRight, m = (D) => !_(D), b = () => {
4495
+ }), d = V(() => l.columnsSelector.filter((D) => D.name !== "removed")), _ = (D) => D.pinnedLeft || D.pinnedRight, g = (D) => !_(D), b = () => {
4496
4496
  const D = i.value;
4497
- let A = -1;
4497
+ let j = -1;
4498
4498
  for (let ae = 0; ae < D.length; ae++)
4499
- D[ae].pinnedLeft && (A = ae);
4500
- let W = D.length;
4499
+ D[ae].pinnedLeft && (j = ae);
4500
+ let Y = D.length;
4501
4501
  for (let ae = 0; ae < D.length; ae++)
4502
4502
  if (D[ae].pinnedRight) {
4503
- W = ae;
4503
+ Y = ae;
4504
4504
  break;
4505
4505
  }
4506
4506
  return {
4507
- minIndex: A + 1,
4508
- maxIndex: W - 1
4507
+ minIndex: j + 1,
4508
+ maxIndex: Y - 1
4509
4509
  };
4510
4510
  }, o = (D) => {
4511
- const A = b();
4512
- return !(D < A.minIndex || D > A.maxIndex + 1);
4513
- }, O = (D, A) => {
4514
- const W = i.value[A];
4515
- if (!m(W)) {
4511
+ const j = b();
4512
+ return !(D < j.minIndex || D > j.maxIndex + 1);
4513
+ }, q = (D, j) => {
4514
+ const Y = i.value[j];
4515
+ if (!g(Y)) {
4516
4516
  D.preventDefault();
4517
4517
  return;
4518
4518
  }
4519
- h.value = A, D.dataTransfer && (D.dataTransfer.effectAllowed = "move", D.dataTransfer.setData("text/plain", W.prop)), document.body.style.cursor = "grabbing";
4520
- }, B = (D, A) => {
4519
+ h.value = j, D.dataTransfer && (D.dataTransfer.effectAllowed = "move", D.dataTransfer.setData("text/plain", Y.prop)), document.body.style.cursor = "grabbing";
4520
+ }, A = (D, j) => {
4521
4521
  if (h.value === -1) return;
4522
4522
  D.preventDefault();
4523
- const W = D.currentTarget.getBoundingClientRect(), ae = D.clientY, ce = W.top + W.height / 2;
4524
- let se = A, le = "before";
4525
- ae < ce ? (se = A, le = "before") : (se = A + 1, le = "after"), h.value < se && se--, o(se) ? (v.value = A, f.value = le, D.dataTransfer.dropEffect = "move") : (v.value = -1, D.dataTransfer.dropEffect = "none");
4526
- }, F = () => {
4523
+ const Y = D.currentTarget.getBoundingClientRect(), ae = D.clientY, ce = Y.top + Y.height / 2;
4524
+ let se = j, le = "before";
4525
+ ae < ce ? (se = j, le = "before") : (se = j + 1, le = "after"), h.value < se && se--, o(se) ? (v.value = j, f.value = le, D.dataTransfer.dropEffect = "move") : (v.value = -1, D.dataTransfer.dropEffect = "none");
4526
+ }, U = () => {
4527
4527
  setTimeout(() => {
4528
4528
  h.value === -1 && (v.value = -1);
4529
4529
  }, 50);
4530
- }, j = (D, A) => {
4530
+ }, I = (D, j) => {
4531
4531
  if (D.preventDefault(), h.value === -1 || v.value === -1) {
4532
4532
  P();
4533
4533
  return;
4534
4534
  }
4535
- const W = D.currentTarget.getBoundingClientRect(), ae = D.clientY, ce = W.top + W.height / 2;
4536
- let se = A;
4537
- if (ae >= ce && (se = A + 1), h.value < se && se--, !o(se) || se === h.value) {
4535
+ const Y = D.currentTarget.getBoundingClientRect(), ae = D.clientY, ce = Y.top + Y.height / 2;
4536
+ let se = j;
4537
+ if (ae >= ce && (se = j + 1), h.value < se && se--, !o(se) || se === h.value) {
4538
4538
  P();
4539
4539
  return;
4540
4540
  }
4541
4541
  const le = [...i.value], [je] = le.splice(h.value, 1);
4542
4542
  le.splice(se, 0, je), i.value = le, P();
4543
- }, I = () => {
4543
+ }, B = () => {
4544
4544
  P();
4545
4545
  }, P = () => {
4546
4546
  h.value = -1, v.value = -1, f.value = "before", document.body.style.cursor = "";
4547
4547
  }, re = (D) => {
4548
- const A = ["vt-columns-selector__panel-item"];
4549
- return h.value === D && A.push("vt-columns-selector__panel-item--dragging"), v.value === D && f.value === "before" && A.push("vt-columns-selector__panel-item--drop-before"), v.value === D && f.value === "after" && A.push("vt-columns-selector__panel-item--drop-after"), A;
4548
+ const j = ["vt-columns-selector__panel-item"];
4549
+ return h.value === D && j.push("vt-columns-selector__panel-item--dragging"), v.value === D && f.value === "before" && j.push("vt-columns-selector__panel-item--drop-before"), v.value === D && f.value === "after" && j.push("vt-columns-selector__panel-item--drop-after"), j;
4550
4550
  }, E = () => {
4551
4551
  i.value = [...l.columns.map((D) => ({ ...D }))], l.columnsSelector.forEach((D) => {
4552
4552
  D.name !== "removed" && c.value.add(D.name);
4553
4553
  });
4554
- }, L = (D, A) => {
4555
- if (A)
4556
- i.value.some((W) => W.prop === D.prop) || i.value.push({ ...D });
4554
+ }, L = (D, j) => {
4555
+ if (j)
4556
+ i.value.some((Y) => Y.prop === D.prop) || i.value.push({ ...D });
4557
4557
  else {
4558
4558
  if (_(D))
4559
4559
  return;
4560
- i.value = i.value.filter((W) => W.prop !== D.prop);
4560
+ i.value = i.value.filter((Y) => Y.prop !== D.prop);
4561
4561
  }
4562
- }, ee = (D, A) => {
4563
- if (A)
4564
- D.columns.forEach((W) => {
4565
- i.value.some((ae) => ae.prop === W.prop) || i.value.push({ ...W });
4562
+ }, ee = (D, j) => {
4563
+ if (j)
4564
+ D.columns.forEach((Y) => {
4565
+ i.value.some((ae) => ae.prop === Y.prop) || i.value.push({ ...Y });
4566
4566
  });
4567
4567
  else {
4568
- const W = [];
4568
+ const Y = [];
4569
4569
  D.columns.forEach((ae) => {
4570
4570
  const ce = i.value.find((se) => se.prop === ae.prop);
4571
- ce && !_(ce) && W.push(ce);
4571
+ ce && !_(ce) && Y.push(ce);
4572
4572
  }), i.value = i.value.filter(
4573
- (ae) => !W.some((ce) => ce.prop === ae.prop)
4573
+ (ae) => !Y.some((ce) => ce.prop === ae.prop)
4574
4574
  );
4575
4575
  }
4576
- }, oe = (D) => i.value.some((A) => A.prop === D.prop), T = (D) => {
4577
- const A = i.value.find((W) => W.prop === D.prop);
4578
- return !A || !_(A);
4576
+ }, oe = (D) => i.value.some((j) => j.prop === D.prop), T = (D) => {
4577
+ const j = i.value.find((Y) => Y.prop === D.prop);
4578
+ return !j || !_(j);
4579
4579
  }, G = (D) => {
4580
4580
  c.value.has(D) ? c.value.delete(D) : c.value.add(D);
4581
4581
  }, ve = () => {
@@ -4585,61 +4585,61 @@ const Xe = new E2(), A2 = {
4585
4585
  };
4586
4586
  return Ze(() => {
4587
4587
  E();
4588
- }), (D, A) => (r(), u("div", P2, [
4588
+ }), (D, j) => (r(), u("div", P2, [
4589
4589
  s("div", j2, [
4590
4590
  s("div", R2, [
4591
- (r(!0), u(ie, null, fe(i.value, (W, ae) => (r(), u("div", {
4592
- key: W.prop,
4591
+ (r(!0), u(ie, null, fe(i.value, (Y, ae) => (r(), u("div", {
4592
+ key: Y.prop,
4593
4593
  class: Q(re(ae)),
4594
- draggable: m(W),
4595
- onDragstart: (ce) => O(ce, ae),
4596
- onDragover: (ce) => B(ce, ae),
4597
- onDragleave: F,
4598
- onDrop: (ce) => j(ce, ae),
4599
- onDragend: I
4594
+ draggable: g(Y),
4595
+ onDragstart: (ce) => q(ce, ae),
4596
+ onDragover: (ce) => A(ce, ae),
4597
+ onDragleave: U,
4598
+ onDrop: (ce) => I(ce, ae),
4599
+ onDragend: B
4600
4600
  }, [
4601
4601
  ne(me, {
4602
- name: m(W) ? "columnsMove" : "freeze",
4603
- class: Q(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": m(W) }])
4602
+ name: g(Y) ? "columnsMove" : "freeze",
4603
+ class: Q(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": g(Y) }])
4604
4604
  }, null, 8, ["name", "class"]),
4605
4605
  ne(n1, {
4606
- label: W.label,
4606
+ label: Y.label,
4607
4607
  checked: !0,
4608
- disabled: _(W),
4609
- onChange: (ce) => L(W, ce),
4610
- onClick: A[0] || (A[0] = Le(() => {
4608
+ disabled: _(Y),
4609
+ onChange: (ce) => L(Y, ce),
4610
+ onClick: j[0] || (j[0] = Le(() => {
4611
4611
  }, ["stop"]))
4612
4612
  }, null, 8, ["label", "disabled", "onChange"]),
4613
- _(W) ? (r(), u("span", F2, "pinned")) : U("", !0)
4613
+ _(Y) ? (r(), u("span", F2, "pinned")) : W("", !0)
4614
4614
  ], 42, Z2))), 128))
4615
4615
  ]),
4616
4616
  s("div", z2, [
4617
- (r(!0), u(ie, null, fe(d.value, (W) => {
4617
+ (r(!0), u(ie, null, fe(d.value, (Y) => {
4618
4618
  var ae, ce;
4619
4619
  return r(), u("div", {
4620
- key: W.name,
4620
+ key: Y.name,
4621
4621
  class: "vt-columns-selector__group"
4622
4622
  }, [
4623
4623
  s("div", {
4624
4624
  class: "vt-columns-selector__group-header",
4625
- onClick: (se) => G(W.name)
4625
+ onClick: (se) => G(Y.name)
4626
4626
  }, [
4627
4627
  ne(n1, {
4628
- label: W.label,
4629
- checked: ((ae = p.value[W.name]) == null ? void 0 : ae.checked) || !1,
4630
- indeterminate: ((ce = p.value[W.name]) == null ? void 0 : ce.indeterminate) || !1,
4631
- onChange: (se) => ee(W, se),
4632
- onClick: A[1] || (A[1] = Le(() => {
4628
+ label: Y.label,
4629
+ checked: ((ae = p.value[Y.name]) == null ? void 0 : ae.checked) || !1,
4630
+ indeterminate: ((ce = p.value[Y.name]) == null ? void 0 : ce.indeterminate) || !1,
4631
+ onChange: (se) => ee(Y, se),
4632
+ onClick: j[1] || (j[1] = Le(() => {
4633
4633
  }, ["stop"]))
4634
4634
  }, null, 8, ["label", "checked", "indeterminate", "onChange"]),
4635
- W.icon ? (r(), we(me, {
4635
+ Y.icon ? (r(), we(me, {
4636
4636
  key: 0,
4637
- name: W.icon,
4637
+ name: Y.icon,
4638
4638
  class: "vt-columns-selector__group-icon"
4639
- }, null, 8, ["name"])) : U("", !0)
4639
+ }, null, 8, ["name"])) : W("", !0)
4640
4640
  ], 8, O2),
4641
- c.value.has(W.name) ? (r(), u("div", Y2, [
4642
- (r(!0), u(ie, null, fe(W.columns, (se) => (r(), u("div", {
4641
+ c.value.has(Y.name) ? (r(), u("div", Y2, [
4642
+ (r(!0), u(ie, null, fe(Y.columns, (se) => (r(), u("div", {
4643
4643
  key: se.prop,
4644
4644
  class: "vt-columns-selector__group-column"
4645
4645
  }, [
@@ -4649,16 +4649,16 @@ const Xe = new E2(), A2 = {
4649
4649
  disabled: !T(se),
4650
4650
  onChange: (le) => L(se, le)
4651
4651
  }, null, 8, ["label", "checked", "disabled", "onChange"]),
4652
- T(se) ? U("", !0) : (r(), u("span", N2, " (закріплена) "))
4652
+ T(se) ? W("", !0) : (r(), u("span", N2, " (закріплена) "))
4653
4653
  ]))), 128))
4654
- ])) : U("", !0)
4654
+ ])) : W("", !0)
4655
4655
  ]);
4656
4656
  }), 128))
4657
4657
  ])
4658
4658
  ]),
4659
4659
  s("div", W2, [
4660
4660
  ne(e1, { onClick: Ce }, {
4661
- default: xe(() => A[2] || (A[2] = [
4661
+ default: xe(() => j[2] || (j[2] = [
4662
4662
  Me("Скасувати", -1)
4663
4663
  ])),
4664
4664
  _: 1,
@@ -4668,7 +4668,7 @@ const Xe = new E2(), A2 = {
4668
4668
  type: "primary",
4669
4669
  onClick: ve
4670
4670
  }, {
4671
- default: xe(() => A[3] || (A[3] = [
4671
+ default: xe(() => j[3] || (j[3] = [
4672
4672
  Me("Зберегти", -1)
4673
4673
  ])),
4674
4674
  _: 1,
@@ -4706,20 +4706,20 @@ const Xe = new E2(), A2 = {
4706
4706
  order: 999,
4707
4707
  columns: d
4708
4708
  }), f = (d) => {
4709
- var O;
4710
- const _ = new Set(d.map((B) => B.prop)), m = /* @__PURE__ */ new Set();
4711
- (O = l.columnsSelector) == null || O.forEach((B) => {
4712
- B.columns.forEach((F) => m.add(F.prop));
4713
- }), l.allColumns.forEach((B) => m.add(B.prop));
4709
+ var q;
4710
+ const _ = new Set(d.map((A) => A.prop)), g = /* @__PURE__ */ new Set();
4711
+ (q = l.columnsSelector) == null || q.forEach((A) => {
4712
+ A.columns.forEach((U) => g.add(U.prop));
4713
+ }), l.allColumns.forEach((A) => g.add(A.prop));
4714
4714
  const b = [];
4715
- m.forEach((B) => {
4716
- var F;
4717
- if (!_.has(B)) {
4718
- let j;
4719
- (F = l.columnsSelector) == null || F.forEach((I) => {
4720
- const P = I.columns.find((re) => re.prop === B);
4721
- P && (j = P);
4722
- }), j || (j = l.allColumns.find((I) => I.prop === B)), j && b.push(j);
4715
+ g.forEach((A) => {
4716
+ var U;
4717
+ if (!_.has(A)) {
4718
+ let I;
4719
+ (U = l.columnsSelector) == null || U.forEach((B) => {
4720
+ const P = B.columns.find((re) => re.prop === A);
4721
+ P && (I = P);
4722
+ }), I || (I = l.allColumns.find((B) => B.prop === A)), I && b.push(I);
4723
4723
  }
4724
4724
  });
4725
4725
  const o = [...l.columnsSelector || []];
@@ -4811,9 +4811,9 @@ const Xe = new E2(), A2 = {
4811
4811
  }),
4812
4812
  emits: /* @__PURE__ */ T1(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
4813
4813
  setup(n, { expose: e, emit: l }) {
4814
- const t = n, i = l, c = ft(n, "columns"), h = H({}), v = H(), f = S1([]), p = H(t.defaultSort || null), d = V(() => B2(t.data || [], p.value, f)), _ = V(() => c.value !== void 0), m = V(() => t.data && t.data.length > 0), b = H(!1), o = H(0);
4815
- let O;
4816
- const B = (Z, X) => t.rowKey && Z[t.rowKey] != null ? String(Z[t.rowKey]) : String(X);
4814
+ const t = n, i = l, c = ft(n, "columns"), h = H({}), v = H(), f = S1([]), p = H(t.defaultSort || null), d = V(() => B2(t.data || [], p.value, f)), _ = V(() => c.value !== void 0), g = V(() => t.data && t.data.length > 0), b = H(!1), o = H(0);
4815
+ let q;
4816
+ const A = (Z, X) => t.rowKey && Z[t.rowKey] != null ? String(Z[t.rowKey]) : String(X);
4817
4817
  ye(
4818
4818
  () => c.value,
4819
4819
  (Z) => {
@@ -4827,7 +4827,7 @@ const Xe = new E2(), A2 = {
4827
4827
  },
4828
4828
  { deep: !0 }
4829
4829
  ), d1("vt-table-columns", f);
4830
- const { sortedColumns: F, getDefaultColumnWidth: j, getStickyOffset: I } = L2(f), { getTableWrapperStyle: P, getColumnStyle: re, getHeaderStyle: E, getFooterStyle: L } = S2(t), { onMouseDown: ee } = D2(), oe = V(() => t.allData || t.data), T = t.selectable ? H2(t, d, i, oe) : null, G = () => ({
4830
+ const { sortedColumns: U, getDefaultColumnWidth: I, getStickyOffset: B } = L2(f), { getTableWrapperStyle: P, getColumnStyle: re, getHeaderStyle: E, getFooterStyle: L } = S2(t), { onMouseDown: ee } = D2(), oe = V(() => t.allData || t.data), T = t.selectable ? H2(t, d, i, oe) : null, G = () => ({
4831
4831
  width: `${b1}px`,
4832
4832
  minWidth: `${b1}px`,
4833
4833
  maxWidth: `${b1}px`,
@@ -4851,21 +4851,21 @@ const Xe = new E2(), A2 = {
4851
4851
  }, D = () => {
4852
4852
  if (!v.value || b.value) return;
4853
4853
  const Z = v.value, X = Z.scrollTop, ue = Z.scrollHeight, de = Z.clientHeight, te = 30;
4854
- O && clearTimeout(O), O = setTimeout(() => {
4854
+ q && clearTimeout(q), q = setTimeout(() => {
4855
4855
  const x = X - o.value > 1, a = ue - X - de <= te, C = ue - X - de <= 5;
4856
4856
  o.value = X, x && (a || C) && (b.value = !0, i("infinity-scroll"), setTimeout(() => {
4857
4857
  b.value = !1;
4858
4858
  }, 1e3));
4859
4859
  }, 50);
4860
- }, A = () => {
4860
+ }, j = () => {
4861
4861
  b.value = !1;
4862
4862
  };
4863
4863
  Ze(() => {
4864
4864
  v.value && v.value.addEventListener("scroll", D);
4865
4865
  }), t1(() => {
4866
- O && clearTimeout(O), v.value && v.value.removeEventListener("scroll", D);
4866
+ q && clearTimeout(q), v.value && v.value.removeEventListener("scroll", D);
4867
4867
  });
4868
- const W = (Z, X) => {
4868
+ const Y = (Z, X) => {
4869
4869
  I2(Z, X, (ue) => {
4870
4870
  var de, te;
4871
4871
  ((de = p.value) == null ? void 0 : de.prop) === Z.prop && p.value.direction === X ? p.value = null : p.value = ue, i("sort-change", {
@@ -4904,20 +4904,20 @@ const Xe = new E2(), A2 = {
4904
4904
  }, Oe = (Z, X) => {
4905
4905
  Z && (h.value[X] = Z);
4906
4906
  }, _e = (Z, X) => {
4907
- const ue = X.width || j();
4908
- ee(Z, X, j, (de) => {
4907
+ const ue = X.width || I();
4908
+ ee(Z, X, I, (de) => {
4909
4909
  se(X.prop, { width: de }), i("column-resize", {
4910
4910
  column: { ...X, width: de },
4911
4911
  width: de,
4912
4912
  oldWidth: ue
4913
4913
  });
4914
4914
  });
4915
- }, Ae = (Z, X) => re(Z, X, I, j), Ye = (Z, X) => E(Z, X, I, j), Ne = (Z, X) => L(Z, X, I, j), be = (Z, X) => {
4915
+ }, Ae = (Z, X) => re(Z, X, B, I), Ye = (Z, X) => E(Z, X, B, I), Ne = (Z, X) => L(Z, X, B, I), be = (Z, X) => {
4916
4916
  if (!X || !X.prop) return "";
4917
4917
  const ue = Z[X.prop];
4918
4918
  return ue == null ? "" : String(ue);
4919
4919
  }, k = V(() => {
4920
- if (!t.showSummary || !m.value) return {};
4920
+ if (!t.showSummary || !g.value) return {};
4921
4921
  const Z = f;
4922
4922
  if (typeof t.summaryMethod == "function") {
4923
4923
  const X = t.summaryMethod({ columns: Z, data: d.value });
@@ -4933,7 +4933,7 @@ const Xe = new E2(), A2 = {
4933
4933
  },
4934
4934
  {}
4935
4935
  );
4936
- }), N = V(() => t.showSummary && m.value), q = (Z, X) => {
4936
+ }), O = V(() => t.showSummary && g.value), N = (Z, X) => {
4937
4937
  T && T.toggleRowSelection(Z, X);
4938
4938
  }, $e = () => {
4939
4939
  T && T.toggleAllSelection();
@@ -4955,26 +4955,26 @@ const Xe = new E2(), A2 = {
4955
4955
  }
4956
4956
  };
4957
4957
  return e({
4958
- toggleRowSelection: q,
4958
+ toggleRowSelection: N,
4959
4959
  toggleAllSelection: $e,
4960
4960
  selectAbsolutelyAll: De,
4961
4961
  clearSelection: Be,
4962
4962
  getSelectionRows: Re,
4963
4963
  setSelectionRows: Qe,
4964
- resetInfinityScroll: A
4964
+ resetInfinityScroll: j
4965
4965
  }), (Z, X) => {
4966
4966
  var de, te, y, x;
4967
4967
  const ue = L1("tooltip");
4968
4968
  return r(), u("div", {
4969
4969
  ref_key: "tableWrapperRef",
4970
4970
  ref: v,
4971
- style: Ee(Y(P)()),
4971
+ style: Ee(z(P)()),
4972
4972
  class: "vt-table-wrapper",
4973
4973
  onScroll: D
4974
4974
  }, [
4975
4975
  Se(Z.$slots, "default"),
4976
4976
  s("table", X2, [
4977
- t.hideHeader ? U("", !0) : (r(), u("thead", Q2, [
4977
+ t.hideHeader ? W("", !0) : (r(), u("thead", Q2, [
4978
4978
  s("tr", null, [
4979
4979
  t.selectable ? (r(), u("th", {
4980
4980
  key: 0,
@@ -4986,14 +4986,14 @@ const Xe = new E2(), A2 = {
4986
4986
  }, [
4987
4987
  s("div", G2, [
4988
4988
  ne(n1, {
4989
- checked: (de = Y(T)) == null ? void 0 : de.isAllSelected.value,
4990
- indeterminate: (te = Y(T)) == null ? void 0 : te.isIndeterminate.value,
4991
- "is-double": t.isAllSelect && ((x = (y = Y(T)) == null ? void 0 : y.isDoubleCheck) == null ? void 0 : x.value),
4989
+ checked: (de = z(T)) == null ? void 0 : de.isAllSelected.value,
4990
+ indeterminate: (te = z(T)) == null ? void 0 : te.isIndeterminate.value,
4991
+ "is-double": t.isAllSelect && ((x = (y = z(T)) == null ? void 0 : y.isDoubleCheck) == null ? void 0 : x.value),
4992
4992
  onChange: ze
4993
4993
  }, null, 8, ["checked", "indeterminate", "is-double"])
4994
4994
  ])
4995
- ], 6)) : U("", !0),
4996
- (r(!0), u(ie, null, fe(Y(F), (a, C) => (r(), u("th", {
4995
+ ], 6)) : W("", !0),
4996
+ (r(!0), u(ie, null, fe(z(U), (a, C) => (r(), u("th", {
4997
4997
  key: a.prop,
4998
4998
  ref_for: !0,
4999
4999
  ref: (K) => Oe(K, a.prop),
@@ -5016,24 +5016,24 @@ const Xe = new E2(), A2 = {
5016
5016
  ]),
5017
5017
  a.sortable ? (r(), u("div", t5, [
5018
5018
  ne(me, {
5019
- class: Q(Y(P1)(a, p.value).asc),
5019
+ class: Q(z(P1)(a, p.value).asc),
5020
5020
  name: "arrowTop",
5021
- onClick: Le((K) => W(a, "asc"), ["stop"])
5021
+ onClick: Le((K) => Y(a, "asc"), ["stop"])
5022
5022
  }, null, 8, ["class", "onClick"]),
5023
5023
  ne(me, {
5024
- class: Q(Y(P1)(a, p.value).desc),
5024
+ class: Q(z(P1)(a, p.value).desc),
5025
5025
  name: "arrowDown",
5026
- onClick: Le((K) => W(a, "desc"), ["stop"])
5026
+ onClick: Le((K) => Y(a, "desc"), ["stop"])
5027
5027
  }, null, 8, ["class", "onClick"])
5028
- ])) : U("", !0),
5028
+ ])) : W("", !0),
5029
5029
  a.actionColumn ? (r(), we(K2, {
5030
5030
  key: 1,
5031
- "all-columns": Y(F),
5031
+ "all-columns": z(U),
5032
5032
  column: a,
5033
5033
  columnsSelector: t.columnsSelector,
5034
5034
  onPin: ae,
5035
5035
  onUpdateColumns: ce
5036
- }, null, 8, ["all-columns", "column", "columnsSelector"])) : U("", !0)
5036
+ }, null, 8, ["all-columns", "column", "columnsSelector"])) : W("", !0)
5037
5037
  ]),
5038
5038
  s("div", {
5039
5039
  "data-resizer": a.prop,
@@ -5044,20 +5044,20 @@ const Xe = new E2(), A2 = {
5044
5044
  ])
5045
5045
  ])),
5046
5046
  s("tbody", null, [
5047
- m.value ? (r(!0), u(ie, { key: 1 }, fe(d.value, (a, C) => {
5048
- var K, z, ge;
5047
+ g.value ? (r(!0), u(ie, { key: 1 }, fe(d.value, (a, C) => {
5048
+ var K, F, ge;
5049
5049
  return r(), u("tr", {
5050
- key: B(a, C),
5050
+ key: A(a, C),
5051
5051
  class: Q([
5052
5052
  "vt-table__row",
5053
5053
  {
5054
- "vt-table__row--selected": (K = Y(T)) == null ? void 0 : K.isRowSelected(a),
5055
- "vt-table__row--current": ((z = Y(T)) == null ? void 0 : z.currentRow.value) === a,
5054
+ "vt-table__row--selected": (K = z(T)) == null ? void 0 : K.isRowSelected(a),
5055
+ "vt-table__row--current": ((F = z(T)) == null ? void 0 : F.currentRow.value) === a,
5056
5056
  "vt-table__row--clickable": t.selectOnClickRow || t.highlightCurrentRow
5057
5057
  },
5058
5058
  ...Ge(a, C)
5059
5059
  ]),
5060
- onClick: (pe) => le(a, Y(F)[0], pe)
5060
+ onClick: (pe) => le(a, z(U)[0], pe)
5061
5061
  }, [
5062
5062
  t.selectable ? (r(), u("td", {
5063
5063
  key: 0,
@@ -5068,13 +5068,13 @@ const Xe = new E2(), A2 = {
5068
5068
  }, [
5069
5069
  s("div", i5, [
5070
5070
  ne(n1, {
5071
- checked: (ge = Y(T)) == null ? void 0 : ge.isRowSelected(a),
5071
+ checked: (ge = z(T)) == null ? void 0 : ge.isRowSelected(a),
5072
5072
  onChange: (pe, Ve) => je(pe, a, Ve)
5073
5073
  }, null, 8, ["checked", "onChange"])
5074
5074
  ])
5075
- ], 4)) : U("", !0),
5076
- (r(!0), u(ie, null, fe(Y(F), (pe, Ve) => (r(), u("td", {
5077
- key: `${B(a, C)}-${pe.prop}`,
5075
+ ], 4)) : W("", !0),
5076
+ (r(!0), u(ie, null, fe(z(U), (pe, Ve) => (r(), u("td", {
5077
+ key: `${A(a, C)}-${pe.prop}`,
5078
5078
  ref_for: !0,
5079
5079
  ref: (He) => Oe(He, pe.prop),
5080
5080
  class: Q([
@@ -5106,7 +5106,7 @@ const Xe = new E2(), A2 = {
5106
5106
  ], 10, l5);
5107
5107
  }), 128)) : (r(), u("tr", o5, [
5108
5108
  s("td", {
5109
- colspan: Y(F).length + (t.selectable ? 1 : 0),
5109
+ colspan: z(U).length + (t.selectable ? 1 : 0),
5110
5110
  class: "vt-table__empty-cell"
5111
5111
  }, [
5112
5112
  s("div", r5, [
@@ -5119,7 +5119,7 @@ const Xe = new E2(), A2 = {
5119
5119
  ], 8, s5)
5120
5120
  ]))
5121
5121
  ]),
5122
- N.value ? (r(), u("tfoot", d5, [
5122
+ O.value ? (r(), u("tfoot", d5, [
5123
5123
  s("tr", null, [
5124
5124
  t.selectable ? (r(), u("td", {
5125
5125
  key: 0,
@@ -5129,8 +5129,8 @@ const Xe = new E2(), A2 = {
5129
5129
  style: Ee(Ce())
5130
5130
  }, X[1] || (X[1] = [
5131
5131
  s("div", { class: "vt-table__cell-content vt-table__cell-content--summary" }, null, -1)
5132
- ]), 4)) : U("", !0),
5133
- (r(!0), u(ie, null, fe(Y(F), (a, C) => (r(), u("td", {
5132
+ ]), 4)) : W("", !0),
5133
+ (r(!0), u(ie, null, fe(z(U), (a, C) => (r(), u("td", {
5134
5134
  key: a.prop,
5135
5135
  class: Q([
5136
5136
  "vt-table__td",
@@ -5144,7 +5144,7 @@ const Xe = new E2(), A2 = {
5144
5144
  s("div", h5, R(k.value[a.prop]), 1)
5145
5145
  ], 6))), 128))
5146
5146
  ])
5147
- ])) : U("", !0)
5147
+ ])) : W("", !0)
5148
5148
  ])
5149
5149
  ], 36);
5150
5150
  };
@@ -5322,11 +5322,11 @@ const Xe = new E2(), A2 = {
5322
5322
  }, _5 = () => {
5323
5323
  const n = (i, c) => {
5324
5324
  if (!i || !(i instanceof Date) || isNaN(i.getTime())) return "";
5325
- const h = i.getFullYear(), v = i.getMonth(), f = i.getDate(), p = i.getHours(), d = p > 12 ? p - 12 : p === 0 ? 12 : p, _ = i.getMinutes(), m = i.getSeconds(), b = i.getTime();
5325
+ const h = i.getFullYear(), v = i.getMonth(), f = i.getDate(), p = i.getHours(), d = p > 12 ? p - 12 : p === 0 ? 12 : p, _ = i.getMinutes(), g = i.getSeconds(), b = i.getTime();
5326
5326
  let o = c;
5327
5327
  o = o.replace(/yyyy/g, String(h)), o = o.replace(/yy/g, String(h).slice(-2)), o = o.replace(/MMMM/g, f5[v]), o = o.replace(/MMM/g, rt[v]), o = o.replace(/MM/g, String(v + 1).padStart(2, "0")), o = o.replace(/M/g, String(v + 1));
5328
- const O = l(i);
5329
- return o = o.replace(/WW/g, String(O).padStart(2, "0")), o = o.replace(/W/g, String(O)), o = o.replace(/dd/g, String(f).padStart(2, "0")), o = o.replace(/d/g, String(f)), o = o.replace(/HH/g, String(p).padStart(2, "0")), o = o.replace(/H/g, String(p)), o = o.replace(/hh/g, String(d).padStart(2, "0")), o = o.replace(/h/g, String(d)), o = o.replace(/mm/g, String(_).padStart(2, "0")), o = o.replace(/m/g, String(_)), o = o.replace(/ss/g, String(m).padStart(2, "0")), o = o.replace(/s/g, String(m)), o = o.replace(/A/g, p >= 12 ? "PM" : "AM"), o = o.replace(/a/g, p >= 12 ? "pm" : "am"), o = o.replace(/timestamp/g, String(b)), o = o.replace(/\[([^\]]+)\]/g, "$1"), o;
5328
+ const q = l(i);
5329
+ return o = o.replace(/WW/g, String(q).padStart(2, "0")), o = o.replace(/W/g, String(q)), o = o.replace(/dd/g, String(f).padStart(2, "0")), o = o.replace(/d/g, String(f)), o = o.replace(/HH/g, String(p).padStart(2, "0")), o = o.replace(/H/g, String(p)), o = o.replace(/hh/g, String(d).padStart(2, "0")), o = o.replace(/h/g, String(d)), o = o.replace(/mm/g, String(_).padStart(2, "0")), o = o.replace(/m/g, String(_)), o = o.replace(/ss/g, String(g).padStart(2, "0")), o = o.replace(/s/g, String(g)), o = o.replace(/A/g, p >= 12 ? "PM" : "AM"), o = o.replace(/a/g, p >= 12 ? "pm" : "am"), o = o.replace(/timestamp/g, String(b)), o = o.replace(/\[([^\]]+)\]/g, "$1"), o;
5330
5330
  }, e = (i) => {
5331
5331
  if (!i) return null;
5332
5332
  if (i instanceof Date)
@@ -5344,64 +5344,64 @@ const Xe = new E2(), A2 = {
5344
5344
  getDefaultFormat: (i) => C5[i] || "yyyy-MM-dd"
5345
5345
  };
5346
5346
  }, w5 = (n, e, l, t, i) => {
5347
- const { formatDate: c, parseDate: h, getDefaultFormat: v } = _5(), f = V(() => ["datetimerange", "daterange", "monthrange", "yearrange"].includes(e.value)), p = V(() => l.value || v(e.value)), d = V(() => t.value || v(e.value)), _ = V(() => n.value ? f.value ? Array.isArray(n.value) && n.value.length === 2 ? [h(n.value[0]), h(n.value[1])] : [null, null] : h(n.value) : f.value ? [null, null] : null), m = V(() => {
5347
+ const { formatDate: c, parseDate: h, getDefaultFormat: v } = _5(), f = V(() => ["datetimerange", "daterange", "monthrange", "yearrange"].includes(e.value)), p = V(() => l.value || v(e.value)), d = V(() => t.value || v(e.value)), _ = V(() => n.value ? f.value ? Array.isArray(n.value) && n.value.length === 2 ? [h(n.value[0]), h(n.value[1])] : [null, null] : h(n.value) : f.value ? [null, null] : null), g = V(() => {
5348
5348
  if (f.value) {
5349
- const [B, F] = _.value;
5350
- if (B && F) {
5351
- const j = c(B, p.value), I = c(F, p.value);
5352
- return [j, I];
5353
- } else if (B)
5354
- return [c(B, p.value), ""];
5349
+ const [A, U] = _.value;
5350
+ if (A && U) {
5351
+ const I = c(A, p.value), B = c(U, p.value);
5352
+ return [I, B];
5353
+ } else if (A)
5354
+ return [c(A, p.value), ""];
5355
5355
  return ["", ""];
5356
5356
  } else {
5357
- const B = _.value;
5358
- return B ? c(B, p.value) : "";
5357
+ const A = _.value;
5358
+ return A ? c(A, p.value) : "";
5359
5359
  }
5360
5360
  }), b = V(() => {
5361
5361
  if (f.value) {
5362
- const [B, F] = m.value;
5363
- return B || F;
5362
+ const [A, U] = g.value;
5363
+ return A || U;
5364
5364
  } else
5365
- return !!m.value;
5365
+ return !!g.value;
5366
5366
  });
5367
5367
  return {
5368
5368
  isRange: f,
5369
5369
  displayFormat: p,
5370
5370
  outputFormat: d,
5371
5371
  parsedValue: _,
5372
- displayText: m,
5372
+ displayText: g,
5373
5373
  hasDisplayValue: b,
5374
- formatOutput: (B) => {
5375
- if (Array.isArray(B)) {
5376
- const F = B[0], j = B[1] || B[0] || /* @__PURE__ */ new Date();
5377
- return t.value === "timestamp" ? [F.getTime(), j.getTime()] : t.value ? [c(F, d.value), c(j, d.value)] : [F, j];
5374
+ formatOutput: (A) => {
5375
+ if (Array.isArray(A)) {
5376
+ const U = A[0], I = A[1] || A[0] || /* @__PURE__ */ new Date();
5377
+ return t.value === "timestamp" ? [U.getTime(), I.getTime()] : t.value ? [c(U, d.value), c(I, d.value)] : [U, I];
5378
5378
  } else
5379
- return t.value === "timestamp" ? B.getTime() : t.value ? c(B, d.value) : B;
5379
+ return t.value === "timestamp" ? A.getTime() : t.value ? c(A, d.value) : A;
5380
5380
  },
5381
- validate: (B = !1) => g5(n.value, e.value, B),
5381
+ validate: (A = !1) => g5(n.value, e.value, A),
5382
5382
  formatDate: c,
5383
5383
  parseDate: h
5384
5384
  };
5385
5385
  }, R1 = (n) => {
5386
5386
  const e = V(() => {
5387
- const b = n.value.getFullYear(), o = n.value.getMonth(), O = new Date(b, o, 1), B = new Date(O);
5388
- B.setDate(B.getDate() - O.getDay());
5389
- const F = [], j = new Date(B);
5390
- for (let I = 0; I < 42; I++)
5391
- F.push(new Date(j)), j.setDate(j.getDate() + 1);
5392
- return F;
5387
+ const b = n.value.getFullYear(), o = n.value.getMonth(), q = new Date(b, o, 1), A = new Date(q);
5388
+ A.setDate(A.getDate() - q.getDay());
5389
+ const U = [], I = new Date(A);
5390
+ for (let B = 0; B < 42; B++)
5391
+ U.push(new Date(I)), I.setDate(I.getDate() + 1);
5392
+ return U;
5393
5393
  }), l = V(() => rt.map((b, o) => ({
5394
5394
  name: b,
5395
5395
  index: o,
5396
5396
  value: new Date(n.value.getFullYear(), o, 1)
5397
5397
  }))), t = V(() => {
5398
- const b = n.value.getFullYear(), o = Math.floor(b / 10) * 10, O = [];
5399
- for (let B = o; B < o + 10; B++)
5400
- O.push({
5401
- year: B,
5402
- value: new Date(B, 0, 1)
5398
+ const b = n.value.getFullYear(), o = Math.floor(b / 10) * 10, q = [];
5399
+ for (let A = o; A < o + 10; A++)
5400
+ q.push({
5401
+ year: A,
5402
+ value: new Date(A, 0, 1)
5403
5403
  });
5404
- return O;
5404
+ return q;
5405
5405
  }), i = V(() => {
5406
5406
  const b = n.value.getFullYear(), o = Math.floor(b / 10) * 10;
5407
5407
  return `${o} - ${o + 9}`;
@@ -5587,11 +5587,11 @@ const Xe = new E2(), A2 = {
5587
5587
  if (!y) return "";
5588
5588
  const { hour: x, minute: a, second: C } = y, K = t.format || (t.showSeconds ? t.use12Hours ? v1["12h"] : v1["24h"] : t.use12Hours ? v1["12h_no_seconds"] : v1["24h_no_seconds"]);
5589
5589
  return b5(x, a, C, K, t.use12Hours);
5590
- }, m = (y) => y ? y instanceof Date ? {
5590
+ }, g = (y) => y ? y instanceof Date ? {
5591
5591
  hour: y.getHours(),
5592
5592
  minute: y.getMinutes(),
5593
5593
  second: y.getSeconds()
5594
- } : typeof y == "string" && x1(y) ? y5(y) : null : null, b = (y, x = !1) => k5(y, t.type, x), o = V(() => t.modelValue ? d.value ? Array.isArray(t.modelValue) && t.modelValue.length === 2 ? [m(t.modelValue[0]), m(t.modelValue[1])] : [null, null] : m(t.modelValue) : d.value ? [null, null] : null), O = V(() => {
5594
+ } : typeof y == "string" && x1(y) ? y5(y) : null : null, b = (y, x = !1) => k5(y, t.type, x), o = V(() => t.modelValue ? d.value ? Array.isArray(t.modelValue) && t.modelValue.length === 2 ? [g(t.modelValue[0]), g(t.modelValue[1])] : [null, null] : g(t.modelValue) : d.value ? [null, null] : null), q = V(() => {
5595
5595
  if (d.value) {
5596
5596
  const [y, x] = o.value;
5597
5597
  return y && x ? [_(y), _(x)] : y ? [_(y), ""] : ["", ""];
@@ -5599,13 +5599,13 @@ const Xe = new E2(), A2 = {
5599
5599
  const y = o.value;
5600
5600
  return y ? _(y) : "";
5601
5601
  }
5602
- }), B = V(() => {
5602
+ }), A = V(() => {
5603
5603
  if (d.value) {
5604
- const [y, x] = O.value;
5604
+ const [y, x] = q.value;
5605
5605
  return y || x;
5606
5606
  } else
5607
- return !!O.value;
5608
- }), F = V(() => t.clearable && !t.disabled && B.value), j = V(() => d.value ? f.isSelectingEnd.value ? t.endPlaceholder : t.startPlaceholder : t.placeholder), I = V(() => [
5607
+ return !!q.value;
5608
+ }), U = V(() => t.clearable && !t.disabled && A.value), I = V(() => d.value ? f.isSelectingEnd.value ? t.endPlaceholder : t.startPlaceholder : t.placeholder), B = V(() => [
5609
5609
  "vt-timepicker",
5610
5610
  `vt-timepicker--${t.size}`,
5611
5611
  `vt-timepicker--${t.type}`,
@@ -5613,7 +5613,7 @@ const Xe = new E2(), A2 = {
5613
5613
  "vt-timepicker--disabled": t.disabled,
5614
5614
  "vt-timepicker--focused": f.isFocused.value,
5615
5615
  "vt-timepicker--range": d.value,
5616
- "vt-timepicker--open": W.value
5616
+ "vt-timepicker--open": Y.value
5617
5617
  }
5618
5618
  ]), P = H(0), re = H(0), E = H(0), L = H("AM"), ee = H(0), oe = H(0), T = H(0), G = H("AM"), ve = V(() => {
5619
5619
  const y = t.use12Hours ? 12 : 23, x = t.use12Hours ? 1 : 0, a = t.disabledHours ? t.disabledHours() : [], C = $1(x, y, t.hourStep, a);
@@ -5624,8 +5624,8 @@ const Xe = new E2(), A2 = {
5624
5624
  }), D = V(() => {
5625
5625
  const y = t.use12Hours ? L.value === "PM" && P.value !== 12 ? P.value + 12 : L.value === "AM" && P.value === 12 ? 0 : P.value : P.value, x = t.disabledSeconds ? t.disabledSeconds(y, re.value) : [], a = $1(0, 59, t.secondStep, x);
5626
5626
  return t.hideDisabledOptions ? a.filter((C) => !C.disabled) : a;
5627
- }), A = V(() => ["AM", "PM"]), {
5628
- visible: W,
5627
+ }), j = V(() => ["AM", "PM"]), {
5628
+ visible: Y,
5629
5629
  parentVisible: ae,
5630
5630
  dropdownPosition: ce,
5631
5631
  show: se,
@@ -5655,7 +5655,7 @@ const Xe = new E2(), A2 = {
5655
5655
  })), _e = (y, x, a = !1) => {
5656
5656
  const C = p.value.get(y);
5657
5657
  C && (C.disconnect(), p.value.delete(y));
5658
- const K = `${-y.clientHeight / 2 + 16}px 0px ${-y.clientHeight / 2 + 16}px 0px`, z = new IntersectionObserver(
5658
+ const K = `${-y.clientHeight / 2 + 16}px 0px ${-y.clientHeight / 2 + 16}px 0px`, F = new IntersectionObserver(
5659
5659
  (pe) => {
5660
5660
  var We;
5661
5661
  let Ve = null, He = 0;
@@ -5687,9 +5687,9 @@ const Xe = new E2(), A2 = {
5687
5687
  threshold: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1]
5688
5688
  }
5689
5689
  );
5690
- y.querySelectorAll(".vt-timepicker__option").forEach((pe) => z.observe(pe)), p.value.set(y, z);
5690
+ y.querySelectorAll(".vt-timepicker__option").forEach((pe) => F.observe(pe)), p.value.set(y, F);
5691
5691
  }, Ae = () => {
5692
- !W.value || !v.value || Te(() => {
5692
+ !Y.value || !v.value || Te(() => {
5693
5693
  var a;
5694
5694
  const y = (a = v.value) == null ? void 0 : a.querySelectorAll(".vt-timepicker__options");
5695
5695
  if (!y) return;
@@ -5704,12 +5704,12 @@ const Xe = new E2(), A2 = {
5704
5704
  }, Ye = () => {
5705
5705
  p.value.forEach((y) => y.disconnect()), p.value.clear();
5706
5706
  }, Ne = () => {
5707
- W.value && Te(() => {
5707
+ Y.value && Te(() => {
5708
5708
  var a;
5709
5709
  const y = (a = v.value) == null ? void 0 : a.querySelectorAll(".vt-timepicker__options");
5710
5710
  if (!y) return;
5711
- const x = (C, K, z) => {
5712
- const ge = z.findIndex((pe) => pe.value === K);
5711
+ const x = (C, K, F) => {
5712
+ const ge = F.findIndex((pe) => pe.value === K);
5713
5713
  if (ge >= 0) {
5714
5714
  const He = ge * 32, We = C.clientHeight, qe = He + 80 - We / 2 + 32 / 2;
5715
5715
  C.scrollTo({
@@ -5733,15 +5733,15 @@ const Xe = new E2(), A2 = {
5733
5733
  if (x === "period")
5734
5734
  a ? G.value = y : L.value = y;
5735
5735
  else {
5736
- const z = y;
5737
- x === "hour" ? a ? ee.value = z : P.value = z : x === "minute" ? a ? oe.value = z : re.value = z : x === "second" && (a ? T.value = z : E.value = z);
5736
+ const F = y;
5737
+ x === "hour" ? a ? ee.value = F : P.value = F : x === "minute" ? a ? oe.value = F : re.value = F : x === "second" && (a ? T.value = F : E.value = F);
5738
5738
  }
5739
5739
  K && Te(() => {
5740
5740
  var ge;
5741
- const z = (ge = K.target) == null ? void 0 : ge.closest(".vt-timepicker__options");
5742
- if (z) {
5743
- const pe = K.target, Ve = z.getBoundingClientRect(), He = pe.getBoundingClientRect(), We = z.scrollTop + (He.top - Ve.top) - z.clientHeight / 2 + He.height / 2;
5744
- z.scrollTo({
5741
+ const F = (ge = K.target) == null ? void 0 : ge.closest(".vt-timepicker__options");
5742
+ if (F) {
5743
+ const pe = K.target, Ve = F.getBoundingClientRect(), He = pe.getBoundingClientRect(), We = F.scrollTop + (He.top - Ve.top) - F.clientHeight / 2 + He.height / 2;
5744
+ F.scrollTo({
5745
5745
  top: We,
5746
5746
  behavior: "smooth"
5747
5747
  });
@@ -5750,12 +5750,12 @@ const Xe = new E2(), A2 = {
5750
5750
  }
5751
5751
  }, k = (y) => {
5752
5752
  var a, C;
5753
- if (!W.value) return;
5753
+ if (!Y.value) return;
5754
5754
  const x = y.target;
5755
5755
  (a = c.value) != null && a.contains(x) || (C = v.value) != null && C.contains(x) || le();
5756
- }, N = () => {
5756
+ }, O = () => {
5757
5757
  t.disabled || je();
5758
- }, q = () => {
5758
+ }, N = () => {
5759
5759
  f.isFocused.value = !0, i("focus", c.value);
5760
5760
  }, $e = () => {
5761
5761
  f.isFocused.value = !1, i("blur", c.value);
@@ -5767,9 +5767,9 @@ const Xe = new E2(), A2 = {
5767
5767
  if (d.value) {
5768
5768
  let y = P.value, x = ee.value;
5769
5769
  t.use12Hours && (L.value === "PM" && y !== 12 && (y += 12), L.value === "AM" && y === 12 && (y = 0), G.value === "PM" && x !== 12 && (x += 12), G.value === "AM" && x === 12 && (x = 0));
5770
- const a = { hour: y, minute: re.value, second: E.value }, C = { hour: x, minute: oe.value, second: T.value }, K = [Be(a), Be(C)], z = b(K);
5771
- if (!z.isValid) {
5772
- console.warn("Time range validation failed:", z.errors);
5770
+ const a = { hour: y, minute: re.value, second: E.value }, C = { hour: x, minute: oe.value, second: T.value }, K = [Be(a), Be(C)], F = b(K);
5771
+ if (!F.isValid) {
5772
+ console.warn("Time range validation failed:", F.errors);
5773
5773
  return;
5774
5774
  }
5775
5775
  i("update:modelValue", K), i("change", K);
@@ -5788,7 +5788,7 @@ const Xe = new E2(), A2 = {
5788
5788
  }, Qe = () => {
5789
5789
  le();
5790
5790
  }, Ge = (y) => {
5791
- if (W.value)
5791
+ if (Y.value)
5792
5792
  switch (y.key) {
5793
5793
  case "Escape":
5794
5794
  Qe();
@@ -5819,7 +5819,7 @@ const Xe = new E2(), A2 = {
5819
5819
  (y) => {
5820
5820
  if (y) {
5821
5821
  if (d.value && Array.isArray(y)) {
5822
- const x = m(y[0]), a = m(y[1]);
5822
+ const x = g(y[0]), a = g(y[1]);
5823
5823
  if (x) {
5824
5824
  let C = x.hour;
5825
5825
  t.use12Hours && (L.value = C >= 12 ? "PM" : "AM", C = C === 0 ? 12 : C > 12 ? C - 12 : C), P.value = C, re.value = x.minute, E.value = x.second;
@@ -5829,7 +5829,7 @@ const Xe = new E2(), A2 = {
5829
5829
  t.use12Hours && (G.value = C >= 12 ? "PM" : "AM", C = C === 0 ? 12 : C > 12 ? C - 12 : C), ee.value = C, oe.value = a.minute, T.value = a.second;
5830
5830
  }
5831
5831
  } else if (!d.value) {
5832
- const x = m(y);
5832
+ const x = g(y);
5833
5833
  if (x) {
5834
5834
  let a = x.hour;
5835
5835
  t.use12Hours && (L.value = a >= 12 ? "PM" : "AM", a = a === 0 ? 12 : a > 12 ? a - 12 : a), P.value = a, re.value = x.minute, E.value = x.second;
@@ -5865,7 +5865,7 @@ const Xe = new E2(), A2 = {
5865
5865
  }), (y, x) => (r(), u("div", {
5866
5866
  ref_key: "timePickerRef",
5867
5867
  ref: c,
5868
- class: Q(I.value)
5868
+ class: Q(B.value)
5869
5869
  }, [
5870
5870
  s("div", {
5871
5871
  ref_key: "triggerRef",
@@ -5873,20 +5873,20 @@ const Xe = new E2(), A2 = {
5873
5873
  class: "vt-timepicker__trigger",
5874
5874
  tabindex: "0",
5875
5875
  onBlur: $e,
5876
- onClick: N,
5877
- onFocus: q
5876
+ onClick: O,
5877
+ onFocus: N
5878
5878
  }, [
5879
5879
  s("div", $5, [
5880
5880
  s("div", M5, [
5881
5881
  ne(me, { name: "clock" })
5882
5882
  ]),
5883
- B.value ? (r(), u("div", x5, [
5883
+ A.value ? (r(), u("div", x5, [
5884
5884
  d.value ? (r(), u(ie, { key: 0 }, [
5885
- s("span", null, R(O.value[0]), 1),
5885
+ s("span", null, R(q.value[0]), 1),
5886
5886
  s("span", null, R(t.rangeSeparator), 1),
5887
- s("span", null, R(O.value[1]), 1)
5887
+ s("span", null, R(q.value[1]), 1)
5888
5888
  ], 64)) : (r(), u(ie, { key: 1 }, [
5889
- Me(R(O.value), 1)
5889
+ Me(R(q.value), 1)
5890
5890
  ], 64))
5891
5891
  ])) : (r(), u("div", V5, [
5892
5892
  d.value ? (r(), u(ie, { key: 0 }, [
@@ -5894,11 +5894,11 @@ const Xe = new E2(), A2 = {
5894
5894
  s("span", null, R(t.rangeSeparator), 1),
5895
5895
  s("span", null, R(t.endPlaceholder), 1)
5896
5896
  ], 64)) : (r(), u(ie, { key: 1 }, [
5897
- Me(R(j.value), 1)
5897
+ Me(R(I.value), 1)
5898
5898
  ], 64))
5899
5899
  ])),
5900
5900
  s("div", L5, [
5901
- F.value ? (r(), u("button", {
5901
+ U.value ? (r(), u("button", {
5902
5902
  key: 0,
5903
5903
  disabled: t.disabled,
5904
5904
  class: "vt-input__clear-btn",
@@ -5906,11 +5906,11 @@ const Xe = new E2(), A2 = {
5906
5906
  onClick: Le(De, ["stop"])
5907
5907
  }, [
5908
5908
  ne(me, { name: "close" })
5909
- ], 8, S5)) : U("", !0)
5909
+ ], 8, S5)) : W("", !0)
5910
5910
  ])
5911
5911
  ])
5912
5912
  ], 544),
5913
- Y(W) && Y(ae) ? (r(), we(l1, {
5913
+ z(Y) && z(ae) ? (r(), we(l1, {
5914
5914
  key: 0,
5915
5915
  to: "body"
5916
5916
  }, [
@@ -5977,10 +5977,10 @@ const Xe = new E2(), A2 = {
5977
5977
  onClick: (C) => be(a.value, "second", !1, a.disabled, C)
5978
5978
  }, R(a.label), 11, F5))), 128))
5979
5979
  ])
5980
- ])) : U("", !0),
5980
+ ])) : W("", !0),
5981
5981
  y.use12Hours ? (r(), u("div", z5, [
5982
5982
  s("div", O5, [
5983
- (r(!0), u(ie, null, fe(A.value, (a) => (r(), u("button", {
5983
+ (r(!0), u(ie, null, fe(j.value, (a) => (r(), u("button", {
5984
5984
  key: `start-period-${a}`,
5985
5985
  class: Q([
5986
5986
  "vt-timepicker__option",
@@ -5989,7 +5989,7 @@ const Xe = new E2(), A2 = {
5989
5989
  onClick: (C) => be(a, "period", !1, !1, C)
5990
5990
  }, R(a), 11, Y5))), 128))
5991
5991
  ])
5992
- ])) : U("", !0)
5992
+ ])) : W("", !0)
5993
5993
  ])
5994
5994
  ]),
5995
5995
  s("div", N5, [
@@ -6042,16 +6042,16 @@ const Xe = new E2(), A2 = {
6042
6042
  onClick: (C) => be(a.value, "second", !0, a.disabled, C)
6043
6043
  }, R(a.label), 11, t6))), 128))
6044
6044
  ])
6045
- ])) : U("", !0),
6045
+ ])) : W("", !0),
6046
6046
  y.use12Hours ? (r(), u("div", n6, [
6047
6047
  s("div", o6, [
6048
- (r(!0), u(ie, null, fe(A.value, (a) => (r(), u("button", {
6048
+ (r(!0), u(ie, null, fe(j.value, (a) => (r(), u("button", {
6049
6049
  key: `end-period-${a}`,
6050
6050
  class: Q(["vt-timepicker__option", { "vt-timepicker__option--selected": G.value === a }]),
6051
6051
  onClick: (C) => be(a, "period", !0, !1, C)
6052
6052
  }, R(a), 11, s6))), 128))
6053
6053
  ])
6054
- ])) : U("", !0)
6054
+ ])) : W("", !0)
6055
6055
  ])
6056
6056
  ])
6057
6057
  ])) : (r(), u("div", r6, [
@@ -6103,16 +6103,16 @@ const Xe = new E2(), A2 = {
6103
6103
  onClick: (C) => be(a.value, "second", !1, a.disabled, C)
6104
6104
  }, R(a.label), 11, f6))), 128))
6105
6105
  ])
6106
- ])) : U("", !0),
6106
+ ])) : W("", !0),
6107
6107
  y.use12Hours ? (r(), u("div", C6, [
6108
6108
  s("div", m6, [
6109
- (r(!0), u(ie, null, fe(A.value, (a) => (r(), u("button", {
6109
+ (r(!0), u(ie, null, fe(j.value, (a) => (r(), u("button", {
6110
6110
  key: `period-${a}`,
6111
6111
  class: Q(["vt-timepicker__option", { "vt-timepicker__option--selected": L.value === a }]),
6112
6112
  onClick: (C) => be(a, "period", !1, !1, C)
6113
6113
  }, R(a), 11, g6))), 128))
6114
6114
  ])
6115
- ])) : U("", !0)
6115
+ ])) : W("", !0)
6116
6116
  ])
6117
6117
  ])),
6118
6118
  s("div", _6, [
@@ -6138,7 +6138,7 @@ const Xe = new E2(), A2 = {
6138
6138
  ]),
6139
6139
  _: 1
6140
6140
  })
6141
- ])) : U("", !0)
6141
+ ])) : W("", !0)
6142
6142
  ], 2));
6143
6143
  }
6144
6144
  }), w6 = { class: "vt-datepicker__input" }, k6 = { class: "vt-datepicker__icon" }, b6 = {
@@ -6207,50 +6207,50 @@ const Xe = new E2(), A2 = {
6207
6207
  },
6208
6208
  emits: ["update:modelValue", "change", "blur", "focus", "calendar-change", "panel-change", "open-change"],
6209
6209
  setup(n, { expose: e, emit: l }) {
6210
- const t = n, i = l, c = H(), h = H(), v = H(), f = H(), p = H(), d = (g, $, w) => {
6210
+ const t = n, i = l, c = H(), h = H(), v = H(), f = H(), p = H(), d = (m, $, w) => {
6211
6211
  if (t.use12Hours) {
6212
- const S = g >= 12 ? "PM" : "AM", J = g % 12 || 12;
6212
+ const S = m >= 12 ? "PM" : "AM", J = m % 12 || 12;
6213
6213
  return t.showSeconds ? `${String(J).padStart(2, "0")}:${String($).padStart(2, "0")}:${String(w).padStart(2, "0")} ${S}` : `${String(J).padStart(2, "0")}:${String($).padStart(2, "0")} ${S}`;
6214
6214
  } else
6215
- return t.showSeconds ? `${String(g).padStart(2, "0")}:${String($).padStart(2, "0")}:${String(w).padStart(2, "0")}` : `${String(g).padStart(2, "0")}:${String($).padStart(2, "0")}`;
6216
- }, _ = (g) => g instanceof Date ? g : typeof g == "number" ? new Date(g) : null, m = () => {
6215
+ return t.showSeconds ? `${String(m).padStart(2, "0")}:${String($).padStart(2, "0")}:${String(w).padStart(2, "0")}` : `${String(m).padStart(2, "0")}:${String($).padStart(2, "0")}`;
6216
+ }, _ = (m) => m instanceof Date ? m : typeof m == "number" ? new Date(m) : null, g = () => {
6217
6217
  if (t.modelValue) {
6218
6218
  if (t.type === "datetimerange" && Array.isArray(t.modelValue)) {
6219
- const g = _(t.modelValue[0]);
6220
- if (g)
6221
- return d(g.getHours(), g.getMinutes(), g.getSeconds());
6219
+ const m = _(t.modelValue[0]);
6220
+ if (m)
6221
+ return d(m.getHours(), m.getMinutes(), m.getSeconds());
6222
6222
  }
6223
6223
  if (t.type === "datetime") {
6224
- const g = _(t.modelValue);
6225
- if (g)
6226
- return d(g.getHours(), g.getMinutes(), g.getSeconds());
6224
+ const m = _(t.modelValue);
6225
+ if (m)
6226
+ return d(m.getHours(), m.getMinutes(), m.getSeconds());
6227
6227
  }
6228
6228
  }
6229
6229
  if (t.type === "datetimerange")
6230
6230
  return d(0, 0, 0);
6231
6231
  if (t.type === "datetime") {
6232
- const g = /* @__PURE__ */ new Date();
6233
- return d(g.getHours(), g.getMinutes(), g.getSeconds());
6232
+ const m = /* @__PURE__ */ new Date();
6233
+ return d(m.getHours(), m.getMinutes(), m.getSeconds());
6234
6234
  }
6235
6235
  return d(0, 0, 0);
6236
6236
  }, b = () => {
6237
6237
  if (t.modelValue) {
6238
6238
  if (t.type === "datetimerange" && Array.isArray(t.modelValue)) {
6239
- const g = _(t.modelValue[1]);
6240
- if (g)
6241
- return d(g.getHours(), g.getMinutes(), g.getSeconds());
6239
+ const m = _(t.modelValue[1]);
6240
+ if (m)
6241
+ return d(m.getHours(), m.getMinutes(), m.getSeconds());
6242
6242
  }
6243
6243
  if (t.type === "datetime") {
6244
- const g = _(t.modelValue);
6245
- if (g)
6246
- return d(g.getHours(), g.getMinutes(), g.getSeconds());
6244
+ const m = _(t.modelValue);
6245
+ if (m)
6246
+ return d(m.getHours(), m.getMinutes(), m.getSeconds());
6247
6247
  }
6248
6248
  }
6249
6249
  if (t.type === "datetimerange")
6250
6250
  return d(23, 59, 59);
6251
6251
  if (t.type === "datetime") {
6252
- const g = /* @__PURE__ */ new Date();
6253
- return d(g.getHours(), g.getMinutes(), g.getSeconds());
6252
+ const m = /* @__PURE__ */ new Date();
6253
+ return d(m.getHours(), m.getMinutes(), m.getSeconds());
6254
6254
  }
6255
6255
  return d(23, 59, 59);
6256
6256
  }, o = {
@@ -6263,26 +6263,26 @@ const Xe = new E2(), A2 = {
6263
6263
  isSelectingEnd: H(!1),
6264
6264
  hoverDate: H(null),
6265
6265
  // Time state for datetime types
6266
- startTime: H(m()),
6266
+ startTime: H(g()),
6267
6267
  endTime: H(b())
6268
- }, O = a1(t, "modelValue"), B = a1(t, "type"), F = a1(t, "format"), j = a1(t, "valueFormat");
6268
+ }, q = a1(t, "modelValue"), A = a1(t, "type"), U = a1(t, "format"), I = a1(t, "valueFormat");
6269
6269
  a1(t, "rangeSeparator");
6270
6270
  const {
6271
- isRange: I,
6271
+ isRange: B,
6272
6272
  parsedValue: P,
6273
6273
  displayText: re,
6274
6274
  hasDisplayValue: E,
6275
6275
  formatOutput: L,
6276
6276
  validate: ee
6277
- } = w5(O, B, F, j), {
6277
+ } = w5(q, A, U, I), {
6278
6278
  calendarDates: oe,
6279
6279
  monthsInYear: T,
6280
6280
  yearsInDecade: G,
6281
6281
  decadeRange: ve,
6282
6282
  isDateInCurrentMonth: Ce,
6283
6283
  isToday: D,
6284
- isSameDate: A,
6285
- navigateMonth: W,
6284
+ isSameDate: j,
6285
+ navigateMonth: Y,
6286
6286
  navigateYear: ae,
6287
6287
  navigateDecade: ce
6288
6288
  } = R1(o.currentDate), {
@@ -6290,8 +6290,8 @@ const Xe = new E2(), A2 = {
6290
6290
  isDateInCurrentMonth: le,
6291
6291
  navigateYear: je,
6292
6292
  navigateDecade: ze
6293
- } = R1(o.rightCurrentDate), Oe = (g) => {
6294
- switch (g) {
6293
+ } = R1(o.rightCurrentDate), Oe = (m) => {
6294
+ switch (m) {
6295
6295
  case "year":
6296
6296
  case "yearrange":
6297
6297
  return "year";
@@ -6302,38 +6302,38 @@ const Xe = new E2(), A2 = {
6302
6302
  return "date";
6303
6303
  }
6304
6304
  }, _e = V(() => t.type === "datetime" || t.type === "datetimerange"), Ae = V(() => _e.value), Ye = V(() => () => {
6305
- const g = /* @__PURE__ */ new Date();
6305
+ const m = /* @__PURE__ */ new Date();
6306
6306
  let $ = [];
6307
6307
  if (t.disabledHours && ($ = [...t.disabledHours()]), t.previousDateDisabled) {
6308
- const w = g.getHours();
6308
+ const w = m.getHours();
6309
6309
  for (let S = 0; S < w; S++)
6310
6310
  $.includes(S) || $.push(S);
6311
6311
  }
6312
6312
  return $;
6313
- }), Ne = V(() => (g) => {
6313
+ }), Ne = V(() => (m) => {
6314
6314
  const $ = /* @__PURE__ */ new Date();
6315
6315
  let w = [];
6316
- if (t.disabledMinutes && (w = [...t.disabledMinutes(g)]), t.previousDateDisabled) {
6316
+ if (t.disabledMinutes && (w = [...t.disabledMinutes(m)]), t.previousDateDisabled) {
6317
6317
  const S = $.getHours(), J = $.getMinutes();
6318
- if (g === S)
6318
+ if (m === S)
6319
6319
  for (let he = 0; he < J; he++)
6320
6320
  w.includes(he) || w.push(he);
6321
6321
  }
6322
6322
  return w;
6323
- }), be = V(() => (g, $) => {
6323
+ }), be = V(() => (m, $) => {
6324
6324
  const w = /* @__PURE__ */ new Date();
6325
6325
  let S = [];
6326
- if (t.disabledSeconds && (S = [...t.disabledSeconds(g, $)]), t.previousDateDisabled) {
6326
+ if (t.disabledSeconds && (S = [...t.disabledSeconds(m, $)]), t.previousDateDisabled) {
6327
6327
  const J = w.getHours(), he = w.getMinutes(), Ie = w.getSeconds();
6328
- if (g === J && $ === he)
6328
+ if (m === J && $ === he)
6329
6329
  for (let Ue = 0; Ue < Ie; Ue++)
6330
6330
  S.includes(Ue) || S.push(Ue);
6331
6331
  }
6332
6332
  return S;
6333
6333
  }), {
6334
6334
  visible: k,
6335
- parentVisible: N,
6336
- dropdownPosition: q,
6335
+ parentVisible: O,
6336
+ dropdownPosition: N,
6337
6337
  show: $e,
6338
6338
  hide: De,
6339
6339
  toggle: Be,
@@ -6345,125 +6345,125 @@ const Xe = new E2(), A2 = {
6345
6345
  hideTimeout: 150,
6346
6346
  disabled: t.disabled,
6347
6347
  hideOnClick: !1,
6348
- onVisibleChange: (g) => {
6349
- g && Te(() => Re());
6348
+ onVisibleChange: (m) => {
6349
+ m && Te(() => Re());
6350
6350
  }
6351
- }), Qe = V(() => t.clearable && !t.disabled && E.value), Ge = V(() => I.value ? o.isSelectingEnd.value ? t.endPlaceholder : t.startPlaceholder : t.placeholder), Z = V(() => [
6351
+ }), Qe = V(() => t.clearable && !t.disabled && E.value), Ge = V(() => B.value ? o.isSelectingEnd.value ? t.endPlaceholder : t.startPlaceholder : t.placeholder), Z = V(() => [
6352
6352
  "vt-datepicker",
6353
6353
  `vt-datepicker--${t.size}`,
6354
6354
  `vt-datepicker--${t.type}`,
6355
6355
  {
6356
6356
  "vt-datepicker--disabled": t.disabled,
6357
6357
  "vt-datepicker--focused": o.isFocused.value,
6358
- "vt-datepicker--range": I.value,
6358
+ "vt-datepicker--range": B.value,
6359
6359
  "vt-datepicker--open": k.value,
6360
6360
  "vt-datepicker--with-time": Ae.value
6361
6361
  }
6362
6362
  ]), X = V(() => ({
6363
- ...q.value,
6363
+ ...N.value,
6364
6364
  position: "absolute",
6365
6365
  zIndex: 2e3
6366
- })), ue = V(() => (t.type === "daterange" || t.type === "datetimerange") && o.viewMode.value === "date"), de = (g, $ = !1, w = !1) => {
6367
- if ((t.type === "daterange" || t.type === "datetimerange") && ($ && !Ce(g) || w && !le(g)))
6366
+ })), ue = V(() => (t.type === "daterange" || t.type === "datetimerange") && o.viewMode.value === "date"), de = (m, $ = !1, w = !1) => {
6367
+ if ((t.type === "daterange" || t.type === "datetimerange") && ($ && !Ce(m) || w && !le(m)))
6368
6368
  return !1;
6369
6369
  if (t.previousDateDisabled) {
6370
6370
  const S = /* @__PURE__ */ new Date();
6371
6371
  S.setHours(0, 0, 0, 0);
6372
- const J = new Date(g);
6372
+ const J = new Date(m);
6373
6373
  if (J.setHours(0, 0, 0, 0), J < S)
6374
6374
  return !1;
6375
6375
  }
6376
6376
  if (t.maxDateRange && (t.type === "daterange" || t.type === "datetimerange") && o.startDate.value && o.isSelectingEnd.value) {
6377
6377
  const S = new Date(o.startDate.value);
6378
6378
  S.setHours(0, 0, 0, 0);
6379
- const J = new Date(g);
6379
+ const J = new Date(m);
6380
6380
  J.setHours(0, 0, 0, 0);
6381
6381
  const he = Math.abs(J.getTime() - S.getTime());
6382
6382
  if (Math.ceil(he / (1e3 * 60 * 60 * 24)) > t.maxDateRange)
6383
6383
  return !1;
6384
6384
  }
6385
6385
  return !0;
6386
- }, te = (g, $ = !1, w = !1) => {
6387
- if ((t.type === "daterange" || t.type === "datetimerange") && ($ && !Ce(g) || w && !le(g)))
6386
+ }, te = (m, $ = !1, w = !1) => {
6387
+ if ((t.type === "daterange" || t.type === "datetimerange") && ($ && !Ce(m) || w && !le(m)))
6388
6388
  return !1;
6389
- if (I.value) {
6389
+ if (B.value) {
6390
6390
  if (o.startDate.value && o.endDate.value) {
6391
- const S = new Date(o.startDate.value), J = new Date(o.endDate.value), he = new Date(g);
6391
+ const S = new Date(o.startDate.value), J = new Date(o.endDate.value), he = new Date(m);
6392
6392
  return S.setHours(0, 0, 0, 0), J.setHours(0, 0, 0, 0), he.setHours(0, 0, 0, 0), he.getTime() === S.getTime() || he.getTime() === J.getTime();
6393
6393
  } else if (o.startDate.value) {
6394
- const S = new Date(o.startDate.value), J = new Date(g);
6394
+ const S = new Date(o.startDate.value), J = new Date(m);
6395
6395
  return S.setHours(0, 0, 0, 0), J.setHours(0, 0, 0, 0), J.getTime() === S.getTime();
6396
6396
  }
6397
6397
  return !1;
6398
6398
  } else {
6399
6399
  const S = o.startDate.value || P.value;
6400
6400
  if (!S) return !1;
6401
- const J = new Date(S), he = new Date(g);
6401
+ const J = new Date(S), he = new Date(m);
6402
6402
  return J.setHours(0, 0, 0, 0), he.setHours(0, 0, 0, 0), he.getTime() === J.getTime();
6403
6403
  }
6404
- }, y = (g, $ = !1, w = !1) => {
6405
- if (!I.value || (t.type === "daterange" || t.type === "datetimerange") && ($ && !Ce(g) || w && !le(g)))
6404
+ }, y = (m, $ = !1, w = !1) => {
6405
+ if (!B.value || (t.type === "daterange" || t.type === "datetimerange") && ($ && !Ce(m) || w && !le(m)))
6406
6406
  return !1;
6407
6407
  if (o.startDate.value && o.endDate.value) {
6408
6408
  const S = new Date(o.startDate.value), J = new Date(o.endDate.value);
6409
6409
  S.setHours(0, 0, 0, 0), J.setHours(0, 0, 0, 0);
6410
- const he = new Date(g);
6410
+ const he = new Date(m);
6411
6411
  return he.setHours(0, 0, 0, 0), he >= S && he <= J;
6412
6412
  }
6413
6413
  if (o.startDate.value && o.isSelectingEnd.value && o.hoverDate.value) {
6414
- const S = new Date(o.startDate.value), J = new Date(o.hoverDate.value), he = new Date(g);
6414
+ const S = new Date(o.startDate.value), J = new Date(o.hoverDate.value), he = new Date(m);
6415
6415
  S.setHours(0, 0, 0, 0), J.setHours(0, 0, 0, 0), he.setHours(0, 0, 0, 0);
6416
6416
  const Ie = S <= J ? S : J, Ue = S <= J ? J : S;
6417
6417
  return he >= Ie && he <= Ue;
6418
6418
  }
6419
6419
  return !1;
6420
- }, x = (g, $) => {
6421
- if (I.value) {
6420
+ }, x = (m, $) => {
6421
+ if (B.value) {
6422
6422
  if (o.startDate.value && o.endDate.value) {
6423
6423
  const w = $.getFullYear(), S = o.startDate.value.getMonth(), J = o.startDate.value.getFullYear(), he = o.endDate.value.getMonth(), Ie = o.endDate.value.getFullYear();
6424
- return w === J && g === S || w === Ie && g === he;
6424
+ return w === J && m === S || w === Ie && m === he;
6425
6425
  } else if (o.startDate.value) {
6426
6426
  const w = o.startDate.value.getMonth(), S = o.startDate.value.getFullYear();
6427
- return $.getFullYear() === S && g === w;
6427
+ return $.getFullYear() === S && m === w;
6428
6428
  }
6429
6429
  return !1;
6430
6430
  } else {
6431
6431
  const w = P.value;
6432
- return w ? w.getFullYear() === $.getFullYear() && w.getMonth() === g : !1;
6432
+ return w ? w.getFullYear() === $.getFullYear() && w.getMonth() === m : !1;
6433
6433
  }
6434
- }, a = (g, $) => {
6435
- if (!I.value) return !1;
6436
- const w = $.getFullYear(), S = new Date(w, g, 1);
6434
+ }, a = (m, $) => {
6435
+ if (!B.value) return !1;
6436
+ const w = $.getFullYear(), S = new Date(w, m, 1);
6437
6437
  if (o.startDate.value && o.endDate.value) {
6438
6438
  const J = new Date(o.startDate.value.getFullYear(), o.startDate.value.getMonth(), 1), he = new Date(o.endDate.value.getFullYear(), o.endDate.value.getMonth(), 1);
6439
- return S >= J && S <= he && !x(g, $);
6439
+ return S >= J && S <= he && !x(m, $);
6440
6440
  }
6441
6441
  if (o.startDate.value && o.isSelectingEnd.value && o.hoverDate.value) {
6442
6442
  const J = new Date(o.startDate.value.getFullYear(), o.startDate.value.getMonth(), 1), he = new Date(o.hoverDate.value.getFullYear(), o.hoverDate.value.getMonth(), 1), Ie = J <= he ? J : he, Ue = J <= he ? he : J;
6443
- return S >= Ie && S <= Ue && !x(g, $);
6443
+ return S >= Ie && S <= Ue && !x(m, $);
6444
6444
  }
6445
6445
  return !1;
6446
- }, C = (g) => {
6447
- if (I.value)
6448
- return o.startDate.value && o.endDate.value ? g === o.startDate.value.getFullYear() || g === o.endDate.value.getFullYear() : o.startDate.value ? o.startDate.value.getFullYear() === g : !1;
6446
+ }, C = (m) => {
6447
+ if (B.value)
6448
+ 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;
6449
6449
  {
6450
6450
  const $ = P.value;
6451
- return $ ? $.getFullYear() === g : !1;
6451
+ return $ ? $.getFullYear() === m : !1;
6452
6452
  }
6453
- }, K = (g) => {
6454
- if (!I.value) return !1;
6453
+ }, K = (m) => {
6454
+ if (!B.value) return !1;
6455
6455
  if (o.startDate.value && o.endDate.value) {
6456
6456
  const $ = o.startDate.value.getFullYear(), w = o.endDate.value.getFullYear();
6457
- return g >= $ && g <= w && !C(g);
6457
+ return m >= $ && m <= w && !C(m);
6458
6458
  }
6459
6459
  if (o.startDate.value && o.isSelectingEnd.value && o.hoverDate.value) {
6460
6460
  const $ = o.startDate.value.getFullYear(), w = o.hoverDate.value.getFullYear(), S = Math.min($, w), J = Math.max($, w);
6461
- return g >= S && g <= J && !C(g);
6461
+ return m >= S && m <= J && !C(m);
6462
6462
  }
6463
6463
  return !1;
6464
- }, z = (g, $) => {
6464
+ }, F = (m, $) => {
6465
6465
  var S;
6466
- const w = new Date(g);
6466
+ const w = new Date(m);
6467
6467
  if ($ && typeof $ == "string") {
6468
6468
  const J = $.match(/(\d{1,2}):(\d{2})(?::(\d{2}))?\s?(AM|PM)?/i);
6469
6469
  if (J) {
@@ -6473,20 +6473,20 @@ const Xe = new E2(), A2 = {
6473
6473
  }
6474
6474
  }
6475
6475
  return w;
6476
- }, ge = (g) => g ? t.use12Hours ? g.toLocaleTimeString("en-US", {
6476
+ }, ge = (m) => m ? t.use12Hours ? m.toLocaleTimeString("en-US", {
6477
6477
  hour12: !0,
6478
6478
  hour: "2-digit",
6479
6479
  minute: "2-digit",
6480
6480
  ...t.showSeconds && { second: "2-digit" }
6481
- }) : g.toLocaleTimeString("en-GB", {
6481
+ }) : m.toLocaleTimeString("en-GB", {
6482
6482
  hour12: !1,
6483
6483
  hour: "2-digit",
6484
6484
  minute: "2-digit",
6485
6485
  ...t.showSeconds && { second: "2-digit" }
6486
- }) : "", pe = (g) => {
6486
+ }) : "", pe = (m) => {
6487
6487
  var w, S;
6488
6488
  if (!k.value) return;
6489
- const $ = g.target;
6489
+ const $ = m.target;
6490
6490
  (w = c.value) != null && w.contains($) || (S = v.value) != null && S.contains($) || De();
6491
6491
  }, Ve = () => {
6492
6492
  t.disabled || Be();
@@ -6495,14 +6495,14 @@ const Xe = new E2(), A2 = {
6495
6495
  }, We = () => {
6496
6496
  o.isFocused.value = !1, i("blur", c.value);
6497
6497
  }, qe = () => {
6498
- i("update:modelValue", null), i("change", null), o.startDate.value = null, o.endDate.value = null, o.isSelectingEnd.value = !1, o.hoverDate.value = null, o.startTime.value = m(), o.endTime.value = b();
6499
- }, Pe = (g, $ = !1, w = !1) => {
6500
- if (!(t.disabled || !g) && de(g, $, w))
6501
- if (I.value) {
6498
+ i("update:modelValue", null), i("change", null), o.startDate.value = null, o.endDate.value = null, o.isSelectingEnd.value = !1, o.hoverDate.value = null, o.startTime.value = g(), o.endTime.value = b();
6499
+ }, Pe = (m, $ = !1, w = !1) => {
6500
+ if (!(t.disabled || !m) && de(m, $, w))
6501
+ if (B.value) {
6502
6502
  if (!o.startDate.value || o.startDate.value && o.endDate.value)
6503
- o.startDate.value = new Date(g), o.endDate.value = null, o.isSelectingEnd.value = !0, o.hoverDate.value = null, _e.value && (o.startTime.value = "00:00:00", o.endTime.value = null);
6503
+ o.startDate.value = new Date(m), o.endDate.value = null, o.isSelectingEnd.value = !0, o.hoverDate.value = null, _e.value && (o.startTime.value = "00:00:00", o.endTime.value = null);
6504
6504
  else if (o.startDate.value && !o.endDate.value) {
6505
- const S = new Date(o.startDate.value), J = new Date(g);
6505
+ const S = new Date(o.startDate.value), J = new Date(m);
6506
6506
  if (J >= S ? o.endDate.value = J : (o.endDate.value = S, o.startDate.value = J), _e.value && (o.endTime.value = "23:59:59"), o.isSelectingEnd.value = !1, o.hoverDate.value = null, !_e.value) {
6507
6507
  const he = [o.startDate.value, o.endDate.value];
6508
6508
  try {
@@ -6515,21 +6515,21 @@ const Xe = new E2(), A2 = {
6515
6515
  }
6516
6516
  }
6517
6517
  } else if (_e.value)
6518
- o.startDate.value = new Date(g), o.startTime.value = "00:00:00";
6518
+ o.startDate.value = new Date(m), o.startTime.value = "00:00:00";
6519
6519
  else
6520
6520
  try {
6521
- const S = L(new Date(g));
6521
+ const S = L(new Date(m));
6522
6522
  i("update:modelValue", S), i("change", S), De();
6523
6523
  } catch (S) {
6524
6524
  console.warn("Error formatting single date output:", S);
6525
6525
  }
6526
- }, Je = (g, $ = !1, w = !1) => {
6527
- (t.type === "daterange" || t.type === "datetimerange") && ($ && !Ce(g) || w && !le(g)) || I.value && o.isSelectingEnd.value && o.startDate.value && (o.hoverDate.value = new Date(g));
6526
+ }, Je = (m, $ = !1, w = !1) => {
6527
+ (t.type === "daterange" || t.type === "datetimerange") && ($ && !Ce(m) || w && !le(m)) || B.value && o.isSelectingEnd.value && o.startDate.value && (o.hoverDate.value = new Date(m));
6528
6528
  }, s1 = () => {
6529
- I.value && o.isSelectingEnd.value && (o.hoverDate.value = null);
6530
- }, i1 = (g, $ = !1) => {
6531
- if ($ ? o.endTime.value = g : o.startTime.value = g, !I.value && o.startDate.value && o.startTime.value) {
6532
- const w = z(o.startDate.value, o.startTime.value);
6529
+ B.value && o.isSelectingEnd.value && (o.hoverDate.value = null);
6530
+ }, i1 = (m, $ = !1) => {
6531
+ if ($ ? o.endTime.value = m : o.startTime.value = m, !B.value && o.startDate.value && o.startTime.value) {
6532
+ const w = F(o.startDate.value, o.startTime.value);
6533
6533
  try {
6534
6534
  const S = L(w);
6535
6535
  i("update:modelValue", S), i("change", S);
@@ -6539,18 +6539,18 @@ const Xe = new E2(), A2 = {
6539
6539
  }
6540
6540
  }, it = () => {
6541
6541
  if (_e.value) {
6542
- if (I.value && o.startDate.value && o.endDate.value) {
6543
- const g = z(o.startDate.value, o.startTime.value || "00:00:00"), $ = z(o.endDate.value, o.endTime.value || "23:59:59"), w = [g, $];
6542
+ if (B.value && o.startDate.value && o.endDate.value) {
6543
+ const m = F(o.startDate.value, o.startTime.value || "00:00:00"), $ = F(o.endDate.value, o.endTime.value || "23:59:59"), w = [m, $];
6544
6544
  try {
6545
6545
  const S = L(w);
6546
6546
  i("update:modelValue", S), i("change", S);
6547
6547
  } catch (S) {
6548
6548
  console.warn("Error formatting datetime range output:", S);
6549
6549
  }
6550
- } else if (!I.value && o.startDate.value) {
6551
- const g = z(o.startDate.value, o.startTime.value || "00:00:00");
6550
+ } else if (!B.value && o.startDate.value) {
6551
+ const m = F(o.startDate.value, o.startTime.value || "00:00:00");
6552
6552
  try {
6553
- const $ = L(g);
6553
+ const $ = L(m);
6554
6554
  i("update:modelValue", $), i("change", $);
6555
6555
  } catch ($) {
6556
6556
  console.warn("Error formatting datetime output:", $);
@@ -6560,42 +6560,42 @@ const Xe = new E2(), A2 = {
6560
6560
  De();
6561
6561
  }, at = () => {
6562
6562
  De();
6563
- }, ut = (g, $ = !1) => {
6563
+ }, ut = (m, $ = !1) => {
6564
6564
  const w = $ ? o.rightCurrentDate.value : o.currentDate.value;
6565
6565
  if (t.type === "month" || t.type === "monthrange") {
6566
- const S = new Date(w.getFullYear(), g, 1);
6566
+ const S = new Date(w.getFullYear(), m, 1);
6567
6567
  Pe(S);
6568
6568
  } else {
6569
- const S = new Date(w.getFullYear(), g, 1);
6569
+ const S = new Date(w.getFullYear(), m, 1);
6570
6570
  $ ? o.rightCurrentDate.value = S : o.currentDate.value = S, o.viewMode.value = "date";
6571
6571
  }
6572
- }, ct = (g, $) => {
6573
- if (I.value && o.isSelectingEnd.value && o.startDate.value) {
6572
+ }, ct = (m, $) => {
6573
+ if (B.value && o.isSelectingEnd.value && o.startDate.value) {
6574
6574
  const w = $.getFullYear();
6575
- o.hoverDate.value = new Date(w, g, 1);
6575
+ o.hoverDate.value = new Date(w, m, 1);
6576
6576
  }
6577
6577
  }, dt = () => {
6578
- I.value && o.isSelectingEnd.value && (o.hoverDate.value = null);
6579
- }, ht = (g) => {
6578
+ B.value && o.isSelectingEnd.value && (o.hoverDate.value = null);
6579
+ }, ht = (m) => {
6580
6580
  if (t.type === "year" || t.type === "yearrange") {
6581
- const $ = new Date(g, 0, 1);
6581
+ const $ = new Date(m, 0, 1);
6582
6582
  Pe($);
6583
6583
  } else {
6584
- const $ = new Date(g, o.currentDate.value.getMonth(), 1), w = new Date(g, o.rightCurrentDate.value.getMonth(), 1);
6584
+ const $ = new Date(m, o.currentDate.value.getMonth(), 1), w = new Date(m, o.rightCurrentDate.value.getMonth(), 1);
6585
6585
  o.currentDate.value = $, o.rightCurrentDate.value = w, o.viewMode.value = t.type === "month" || t.type === "monthrange" ? "month" : "date";
6586
6586
  }
6587
- }, pt = (g) => {
6588
- I.value && o.isSelectingEnd.value && o.startDate.value && (o.hoverDate.value = new Date(g, 0, 1));
6587
+ }, pt = (m) => {
6588
+ B.value && o.isSelectingEnd.value && o.startDate.value && (o.hoverDate.value = new Date(m, 0, 1));
6589
6589
  }, vt = () => {
6590
- I.value && o.isSelectingEnd.value && (o.hoverDate.value = null);
6590
+ B.value && o.isSelectingEnd.value && (o.hoverDate.value = null);
6591
6591
  }, D1 = () => {
6592
- o.viewMode.value === "year" ? (ce("prev"), ze("prev")) : o.viewMode.value === "month" ? (ae("prev"), je("prev")) : (W("prev"), o.rightCurrentDate.value = new Date(
6592
+ o.viewMode.value === "year" ? (ce("prev"), ze("prev")) : o.viewMode.value === "month" ? (ae("prev"), je("prev")) : (Y("prev"), o.rightCurrentDate.value = new Date(
6593
6593
  o.currentDate.value.getFullYear(),
6594
6594
  o.currentDate.value.getMonth() + 1,
6595
6595
  1
6596
6596
  ));
6597
6597
  }, H1 = () => {
6598
- o.viewMode.value === "year" ? (ce("next"), ze("next")) : o.viewMode.value === "month" ? (ae("next"), je("next")) : (W("next"), o.rightCurrentDate.value = new Date(
6598
+ o.viewMode.value === "year" ? (ce("next"), ze("next")) : o.viewMode.value === "month" ? (ae("next"), je("next")) : (Y("next"), o.rightCurrentDate.value = new Date(
6599
6599
  o.currentDate.value.getFullYear(),
6600
6600
  o.currentDate.value.getMonth() + 1,
6601
6601
  1
@@ -6603,35 +6603,35 @@ const Xe = new E2(), A2 = {
6603
6603
  };
6604
6604
  return ye(
6605
6605
  () => t.modelValue,
6606
- (g) => {
6607
- if (g) {
6608
- if (I.value && Array.isArray(g) && g.length === 2)
6606
+ (m) => {
6607
+ if (m) {
6608
+ if (B.value && Array.isArray(m) && m.length === 2)
6609
6609
  try {
6610
- o.startDate.value = g[0] instanceof Date ? new Date(g[0]) : new Date(g[0]), o.endDate.value = g[1] instanceof Date ? new Date(g[1]) : new Date(g[1]), _e.value && (o.startTime.value = ge(o.startDate.value), o.endTime.value = ge(o.endDate.value));
6610
+ o.startDate.value = m[0] instanceof Date ? new Date(m[0]) : new Date(m[0]), o.endDate.value = m[1] instanceof Date ? new Date(m[1]) : new Date(m[1]), _e.value && (o.startTime.value = ge(o.startDate.value), o.endTime.value = ge(o.endDate.value));
6611
6611
  } catch {
6612
- console.warn("Invalid date format in modelValue:", g), o.startDate.value = null, o.endDate.value = null;
6612
+ console.warn("Invalid date format in modelValue:", m), o.startDate.value = null, o.endDate.value = null;
6613
6613
  }
6614
- else if (!I.value && g !== null)
6614
+ else if (!B.value && m !== null)
6615
6615
  try {
6616
6616
  let $ = null;
6617
- g instanceof Date ? $ = g : (typeof g == "string" || typeof g == "number") && ($ = new Date(g)), $ && !isNaN($.getTime()) ? (o.startDate.value = $, _e.value && (o.startTime.value = ge($))) : o.startDate.value = null;
6617
+ m instanceof Date ? $ = m : (typeof m == "string" || typeof m == "number") && ($ = new Date(m)), $ && !isNaN($.getTime()) ? (o.startDate.value = $, _e.value && (o.startTime.value = ge($))) : o.startDate.value = null;
6618
6618
  } catch {
6619
- console.warn("Invalid date format in modelValue:", g), o.startDate.value = null;
6619
+ console.warn("Invalid date format in modelValue:", m), o.startDate.value = null;
6620
6620
  }
6621
6621
  } else
6622
- o.startDate.value = null, o.endDate.value = null, o.isSelectingEnd.value = !1, o.hoverDate.value = null, o.startTime.value = m(), o.endTime.value = b();
6622
+ o.startDate.value = null, o.endDate.value = null, o.isSelectingEnd.value = !1, o.hoverDate.value = null, o.startTime.value = g(), o.endTime.value = b();
6623
6623
  },
6624
6624
  { immediate: !0 }
6625
6625
  ), ye(
6626
6626
  () => t.type,
6627
- (g) => {
6628
- o.viewMode.value = Oe(g), o.startTime.value = m(), o.endTime.value = b();
6627
+ (m) => {
6628
+ o.viewMode.value = Oe(m), o.startTime.value = g(), o.endTime.value = b();
6629
6629
  },
6630
6630
  { immediate: !0 }
6631
6631
  ), ye(
6632
6632
  () => o.currentDate.value,
6633
- (g) => {
6634
- ue.value && (o.rightCurrentDate.value = new Date(g.getFullYear(), g.getMonth() + 1, 1));
6633
+ (m) => {
6634
+ ue.value && (o.rightCurrentDate.value = new Date(m.getFullYear(), m.getMonth() + 1, 1));
6635
6635
  }
6636
6636
  ), Ze(() => {
6637
6637
  document.addEventListener("click", pe), o.viewMode.value = Oe(t.type), (t.type === "daterange" || t.type === "datetimerange") && (o.rightCurrentDate.value = new Date(
@@ -6643,12 +6643,12 @@ const Xe = new E2(), A2 = {
6643
6643
  document.removeEventListener("click", pe);
6644
6644
  }), e({
6645
6645
  focus: () => {
6646
- var g;
6647
- (g = h.value) == null || g.focus();
6646
+ var m;
6647
+ (m = h.value) == null || m.focus();
6648
6648
  },
6649
6649
  blur: () => {
6650
- var g;
6651
- (g = h.value) == null || g.blur();
6650
+ var m;
6651
+ (m = h.value) == null || m.blur();
6652
6652
  },
6653
6653
  open: () => {
6654
6654
  t.disabled || $e();
@@ -6657,7 +6657,7 @@ const Xe = new E2(), A2 = {
6657
6657
  De();
6658
6658
  },
6659
6659
  validate: ee
6660
- }), (g, $) => (r(), u("div", {
6660
+ }), (m, $) => (r(), u("div", {
6661
6661
  ref_key: "datePickerRef",
6662
6662
  ref: c,
6663
6663
  class: Q(Z.value)
@@ -6677,16 +6677,16 @@ const Xe = new E2(), A2 = {
6677
6677
  name: _e.value ? "clock" : "calendar"
6678
6678
  }, null, 8, ["name"])
6679
6679
  ]),
6680
- Y(E) ? (r(), u("div", b6, [
6681
- Y(I) ? (r(), u(ie, { key: 0 }, [
6682
- s("span", null, R(Y(re)[0]), 1),
6680
+ z(E) ? (r(), u("div", b6, [
6681
+ z(B) ? (r(), u(ie, { key: 0 }, [
6682
+ s("span", null, R(z(re)[0]), 1),
6683
6683
  s("span", y6, R(t.rangeSeparator), 1),
6684
- s("span", null, R(Y(re)[1]), 1)
6684
+ s("span", null, R(z(re)[1]), 1)
6685
6685
  ], 64)) : (r(), u(ie, { key: 1 }, [
6686
- Me(R(Y(re)), 1)
6686
+ Me(R(z(re)), 1)
6687
6687
  ], 64))
6688
6688
  ])) : (r(), u("div", $6, [
6689
- Y(I) ? (r(), u(ie, { key: 0 }, [
6689
+ z(B) ? (r(), u(ie, { key: 0 }, [
6690
6690
  s("span", null, R(t.startPlaceholder), 1),
6691
6691
  s("span", M6, R(t.rangeSeparator), 1),
6692
6692
  s("span", null, R(t.endPlaceholder), 1)
@@ -6703,11 +6703,11 @@ const Xe = new E2(), A2 = {
6703
6703
  onClick: Le(qe, ["stop"])
6704
6704
  }, [
6705
6705
  ne(me, { name: "close" })
6706
- ], 8, V6)) : U("", !0)
6706
+ ], 8, V6)) : W("", !0)
6707
6707
  ])
6708
6708
  ])
6709
6709
  ], 544),
6710
- Y(k) && Y(N) ? (r(), we(l1, {
6710
+ z(k) && z(O) ? (r(), we(l1, {
6711
6711
  key: 0,
6712
6712
  to: "body"
6713
6713
  }, [
@@ -6748,7 +6748,7 @@ const Xe = new E2(), A2 = {
6748
6748
  type: "time",
6749
6749
  onChange: $[1] || ($[1] = (w) => i1(w, !1))
6750
6750
  }, null, 8, ["modelValue", "disabled-hours", "disabled-minutes", "disabled-seconds", "hide-disabled-options", "hour-step", "minute-step", "second-step", "show-seconds", "use12-hours"])
6751
- ])) : U("", !0),
6751
+ ])) : W("", !0),
6752
6752
  s("div", H6, [
6753
6753
  s("button", {
6754
6754
  class: "vt-datepicker__nav-btn",
@@ -6767,23 +6767,23 @@ const Xe = new E2(), A2 = {
6767
6767
  s("div", I6, [
6768
6768
  s("div", B6, [
6769
6769
  s("div", E6, [
6770
- (r(!0), u(ie, null, fe(Y(y1), (w, S) => (r(), u("span", {
6770
+ (r(!0), u(ie, null, fe(z(y1), (w, S) => (r(), u("span", {
6771
6771
  key: `${S}_${w}`,
6772
6772
  class: "vt-datepicker__weekday"
6773
6773
  }, R(w), 1))), 128))
6774
6774
  ]),
6775
6775
  s("div", A6, [
6776
- (r(!0), u(ie, null, fe(Y(oe), (w) => (r(), u("button", {
6776
+ (r(!0), u(ie, null, fe(z(oe), (w) => (r(), u("button", {
6777
6777
  key: w.getTime(),
6778
6778
  class: Q([
6779
6779
  "vt-datepicker__date",
6780
6780
  {
6781
6781
  "vt-datepicker__date--selected": te(w, !0, !1),
6782
- "vt-datepicker__date--other-month": !Y(Ce)(w),
6783
- "vt-datepicker__date--today": Y(D)(w),
6782
+ "vt-datepicker__date--other-month": !z(Ce)(w),
6783
+ "vt-datepicker__date--today": z(D)(w),
6784
6784
  "vt-datepicker__date--in-range": y(w, !0, !1) && !te(w, !0, !1),
6785
- "vt-datepicker__date--range-start": Y(I) && o.startDate.value && Y(A)(w, o.startDate.value) && Y(Ce)(w),
6786
- "vt-datepicker__date--range-end": Y(I) && o.endDate.value && Y(A)(w, o.endDate.value) && Y(Ce)(w),
6785
+ "vt-datepicker__date--range-start": z(B) && o.startDate.value && z(j)(w, o.startDate.value) && z(Ce)(w),
6786
+ "vt-datepicker__date--range-end": z(B) && o.endDate.value && z(j)(w, o.endDate.value) && z(Ce)(w),
6787
6787
  "vt-datepicker__date--disabled": !de(w, !0, !1)
6788
6788
  }
6789
6789
  ]),
@@ -6817,7 +6817,7 @@ const Xe = new E2(), A2 = {
6817
6817
  type: "time",
6818
6818
  onChange: $[4] || ($[4] = (w) => i1(w, !0))
6819
6819
  }, null, 8, ["modelValue", "disabled-hours", "disabled-minutes", "disabled-seconds", "hide-disabled-options", "hour-step", "minute-step", "second-step", "show-seconds", "use12-hours"])
6820
- ])) : U("", !0),
6820
+ ])) : W("", !0),
6821
6821
  s("div", Z6, [
6822
6822
  $[13] || ($[13] = s("div", { class: "vt-datepicker__nav-spacer" }, null, -1)),
6823
6823
  s("div", F6, [
@@ -6836,23 +6836,23 @@ const Xe = new E2(), A2 = {
6836
6836
  s("div", z6, [
6837
6837
  s("div", O6, [
6838
6838
  s("div", Y6, [
6839
- (r(!0), u(ie, null, fe(Y(y1), (w, S) => (r(), u("span", {
6839
+ (r(!0), u(ie, null, fe(z(y1), (w, S) => (r(), u("span", {
6840
6840
  key: `${S}_${w}`,
6841
6841
  class: "vt-datepicker__weekday"
6842
6842
  }, R(w), 1))), 128))
6843
6843
  ]),
6844
6844
  s("div", N6, [
6845
- (r(!0), u(ie, null, fe(Y(se), (w) => (r(), u("button", {
6845
+ (r(!0), u(ie, null, fe(z(se), (w) => (r(), u("button", {
6846
6846
  key: w.getTime(),
6847
6847
  class: Q([
6848
6848
  "vt-datepicker__date",
6849
6849
  {
6850
6850
  "vt-datepicker__date--selected": te(w, !1, !0),
6851
- "vt-datepicker__date--other-month": !Y(le)(w),
6852
- "vt-datepicker__date--today": Y(D)(w),
6851
+ "vt-datepicker__date--other-month": !z(le)(w),
6852
+ "vt-datepicker__date--today": z(D)(w),
6853
6853
  "vt-datepicker__date--in-range": y(w, !1, !0) && !te(w, !1, !0),
6854
- "vt-datepicker__date--range-start": Y(I) && o.startDate.value && Y(A)(w, o.startDate.value) && Y(le)(w),
6855
- "vt-datepicker__date--range-end": Y(I) && o.endDate.value && Y(A)(w, o.endDate.value) && Y(le)(w),
6854
+ "vt-datepicker__date--range-start": z(B) && o.startDate.value && z(j)(w, o.startDate.value) && z(le)(w),
6855
+ "vt-datepicker__date--range-end": z(B) && o.endDate.value && z(j)(w, o.endDate.value) && z(le)(w),
6856
6856
  "vt-datepicker__date--disabled": !de(w, !1, !0)
6857
6857
  }
6858
6858
  ]),
@@ -6886,7 +6886,7 @@ const Xe = new E2(), A2 = {
6886
6886
  type: "time",
6887
6887
  onChange: $[7] || ($[7] = (w) => i1(w, !1))
6888
6888
  }, null, 8, ["modelValue", "disabled-hours", "disabled-minutes", "disabled-seconds", "hide-disabled-options", "hour-step", "minute-step", "second-step", "show-seconds", "use12-hours"])
6889
- ])) : U("", !0),
6889
+ ])) : W("", !0),
6890
6890
  s("div", K6, [
6891
6891
  s("button", {
6892
6892
  class: "vt-datepicker__nav-btn",
@@ -6903,7 +6903,7 @@ const Xe = new E2(), A2 = {
6903
6903
  key: 1,
6904
6904
  class: "vt-datepicker__header-btn",
6905
6905
  onClick: $[9] || ($[9] = (w) => o.viewMode.value = "year")
6906
- }, R(o.currentDate.value.getFullYear()), 1)) : (r(), u("span", Q6, R(Y(ve)), 1))
6906
+ }, R(o.currentDate.value.getFullYear()), 1)) : (r(), u("span", Q6, R(z(ve)), 1))
6907
6907
  ]),
6908
6908
  s("button", {
6909
6909
  class: "vt-datepicker__nav-btn",
@@ -6915,23 +6915,23 @@ const Xe = new E2(), A2 = {
6915
6915
  s("div", G6, [
6916
6916
  o.viewMode.value === "date" ? (r(), u("div", J6, [
6917
6917
  s("div", e0, [
6918
- (r(!0), u(ie, null, fe(Y(y1), (w, S) => (r(), u("span", {
6918
+ (r(!0), u(ie, null, fe(z(y1), (w, S) => (r(), u("span", {
6919
6919
  key: `${S}_${w}`,
6920
6920
  class: "vt-datepicker__weekday"
6921
6921
  }, R(w), 1))), 128))
6922
6922
  ]),
6923
6923
  s("div", t0, [
6924
- (r(!0), u(ie, null, fe(Y(oe), (w) => (r(), u("button", {
6924
+ (r(!0), u(ie, null, fe(z(oe), (w) => (r(), u("button", {
6925
6925
  key: w.getTime(),
6926
6926
  class: Q([
6927
6927
  "vt-datepicker__date",
6928
6928
  {
6929
6929
  "vt-datepicker__date--selected": te(w),
6930
- "vt-datepicker__date--other-month": !Y(Ce)(w),
6931
- "vt-datepicker__date--today": Y(D)(w),
6930
+ "vt-datepicker__date--other-month": !z(Ce)(w),
6931
+ "vt-datepicker__date--today": z(D)(w),
6932
6932
  "vt-datepicker__date--in-range": y(w) && !te(w),
6933
- "vt-datepicker__date--range-start": Y(I) && o.startDate.value && Y(A)(w, o.startDate.value),
6934
- "vt-datepicker__date--range-end": Y(I) && o.endDate.value && Y(A)(w, o.endDate.value),
6933
+ "vt-datepicker__date--range-start": z(B) && o.startDate.value && z(j)(w, o.startDate.value),
6934
+ "vt-datepicker__date--range-end": z(B) && o.endDate.value && z(j)(w, o.endDate.value),
6935
6935
  "vt-datepicker__date--disabled": !de(w, !1, !0)
6936
6936
  }
6937
6937
  ]),
@@ -6941,7 +6941,7 @@ const Xe = new E2(), A2 = {
6941
6941
  }, R(w.getDate()), 43, n0))), 128))
6942
6942
  ])
6943
6943
  ])) : o.viewMode.value === "month" ? (r(), u("div", o0, [
6944
- (r(!0), u(ie, null, fe(Y(T), (w, S) => (r(), u("button", {
6944
+ (r(!0), u(ie, null, fe(z(T), (w, S) => (r(), u("button", {
6945
6945
  key: w.name,
6946
6946
  class: Q([
6947
6947
  "vt-datepicker__month",
@@ -6956,7 +6956,7 @@ const Xe = new E2(), A2 = {
6956
6956
  onMouseleave: dt
6957
6957
  }, R(w.name), 43, s0))), 128))
6958
6958
  ])) : (r(), u("div", r0, [
6959
- (r(!0), u(ie, null, fe(Y(G), (w) => (r(), u("button", {
6959
+ (r(!0), u(ie, null, fe(z(G), (w) => (r(), u("button", {
6960
6960
  key: w.year,
6961
6961
  class: Q([
6962
6962
  "vt-datepicker__year",
@@ -6983,7 +6983,7 @@ const Xe = new E2(), A2 = {
6983
6983
  __: [14]
6984
6984
  }),
6985
6985
  ne(e1, {
6986
- disabled: !o.startDate.value || Y(I) && !o.endDate.value,
6986
+ disabled: !o.startDate.value || z(B) && !o.endDate.value,
6987
6987
  type: "primary",
6988
6988
  onClick: it
6989
6989
  }, {
@@ -6993,12 +6993,12 @@ const Xe = new E2(), A2 = {
6993
6993
  _: 1,
6994
6994
  __: [15]
6995
6995
  }, 8, ["disabled"])
6996
- ])) : U("", !0)
6996
+ ])) : W("", !0)
6997
6997
  ], 36)
6998
6998
  ]),
6999
6999
  _: 1
7000
7000
  })
7001
- ])) : U("", !0)
7001
+ ])) : W("", !0)
7002
7002
  ], 2));
7003
7003
  }
7004
7004
  }), u0 = { class: "v-collapse" }, c0 = /* @__PURE__ */ ke({
@@ -7044,19 +7044,19 @@ const Xe = new E2(), A2 = {
7044
7044
  const c = V(() => i.activeNames.includes(l.name)), h = () => {
7045
7045
  l.disabled || (i.toggle(l.name), t("toggle", l.name));
7046
7046
  }, v = (_) => {
7047
- const m = _;
7048
- m.style.height = "0", m.style.overflow = "hidden", m.offsetHeight, m.style.height = m.scrollHeight + "px";
7047
+ const g = _;
7048
+ g.style.height = "0", g.style.overflow = "hidden", g.offsetHeight, g.style.height = g.scrollHeight + "px";
7049
7049
  }, f = (_) => {
7050
- const m = _;
7051
- m.style.height = m.scrollHeight + "px", m.style.overflow = "hidden", m.offsetHeight, m.style.height = "0";
7050
+ const g = _;
7051
+ g.style.height = g.scrollHeight + "px", g.style.overflow = "hidden", g.offsetHeight, g.style.height = "0";
7052
7052
  }, p = (_) => {
7053
- const m = _;
7054
- m.style.height = "auto", m.style.overflow = "visible";
7053
+ const g = _;
7054
+ g.style.height = "auto", g.style.overflow = "visible";
7055
7055
  }, d = (_) => {
7056
- const m = _;
7057
- m.style.height = "0", m.style.overflow = "hidden";
7056
+ const g = _;
7057
+ g.style.height = "0", g.style.overflow = "hidden";
7058
7058
  };
7059
- return (_, m) => (r(), u("div", {
7059
+ return (_, g) => (r(), u("div", {
7060
7060
  class: Q([{ "is-active": c.value, "is-disabled": _.disabled }, "v-collapse-item"])
7061
7061
  }, [
7062
7062
  s("div", {
@@ -7116,14 +7116,14 @@ const Xe = new E2(), A2 = {
7116
7116
  const v = (_) => {
7117
7117
  h.value.push(_), c.value || (c.value = _.name);
7118
7118
  }, f = (_) => {
7119
- h.value = h.value.filter((m) => m.name !== _), t("tab-remove", _), c.value === _ && h.value.length > 0 && (c.value = h.value[0].name);
7119
+ h.value = h.value.filter((g) => g.name !== _), t("tab-remove", _), c.value === _ && h.value.length > 0 && (c.value = h.value[0].name);
7120
7120
  }, p = (_) => {
7121
7121
  c.value = _;
7122
7122
  }, d = (_) => {
7123
7123
  var o;
7124
- const b = (((o = i.default) == null ? void 0 : o.call(i)) || []).find((O) => {
7125
- var B;
7126
- return ((B = O.props) == null ? void 0 : B.name) === _.name;
7124
+ const b = (((o = i.default) == null ? void 0 : o.call(i)) || []).find((q) => {
7125
+ var A;
7126
+ return ((A = q.props) == null ? void 0 : A.name) === _.name;
7127
7127
  });
7128
7128
  return b && b.children && typeof b.children == "object" && "title" in b.children ? b.children.title : null;
7129
7129
  };
@@ -7132,7 +7132,7 @@ const Xe = new E2(), A2 = {
7132
7132
  addTab: v,
7133
7133
  removeTab: f,
7134
7134
  selectTab: p
7135
- }), (_, m) => (r(), u("div", f0, [
7135
+ }), (_, g) => (r(), u("div", f0, [
7136
7136
  s("div", C0, [
7137
7137
  (r(!0), u(ie, null, fe(h.value, (b) => (r(), u("div", {
7138
7138
  key: b.name,
@@ -7150,8 +7150,8 @@ const Xe = new E2(), A2 = {
7150
7150
  key: 0,
7151
7151
  name: b.icon,
7152
7152
  class: "vt-tab-icon"
7153
- }, null, 8, ["name"])) : U("", !0),
7154
- b.label ? (r(), u("span", g0, R(b.label), 1)) : U("", !0)
7153
+ }, null, 8, ["name"])) : W("", !0),
7154
+ b.label ? (r(), u("span", g0, R(b.label), 1)) : W("", !0)
7155
7155
  ], 64)),
7156
7156
  b.closable ? (r(), u("span", {
7157
7157
  key: 2,
@@ -7159,7 +7159,7 @@ const Xe = new E2(), A2 = {
7159
7159
  onClick: Le((o) => f(b.name), ["stop"])
7160
7160
  }, [
7161
7161
  ne(me, { name: "close" })
7162
- ], 8, _0)) : U("", !0)
7162
+ ], 8, _0)) : W("", !0)
7163
7163
  ], 10, m0))), 128))
7164
7164
  ]),
7165
7165
  s("div", w0, [
@@ -7329,10 +7329,10 @@ const Xe = new E2(), A2 = {
7329
7329
  }
7330
7330
  }, M0 = {
7331
7331
  mounted(n, e) {
7332
- Y(e.value) && W1(n);
7332
+ z(e.value) && W1(n);
7333
7333
  },
7334
7334
  updated(n, e) {
7335
- const l = Y(e.value), t = Y(e.oldValue);
7335
+ const l = z(e.value), t = z(e.oldValue);
7336
7336
  l !== t && (l ? W1(n) : q1(n));
7337
7337
  },
7338
7338
  unmounted(n) {
@@ -7417,7 +7417,7 @@ const x0 = { class: "vt-message-container" }, V0 = { class: "vt-message-icon" },
7417
7417
  onClick: (d) => h(p.id)
7418
7418
  }, [
7419
7419
  ne(me, { name: "close" })
7420
- ], 8, H0)) : U("", !0)
7420
+ ], 8, H0)) : W("", !0)
7421
7421
  ], 2))), 128))
7422
7422
  ]),
7423
7423
  _: 1
@@ -7562,58 +7562,58 @@ function F0(n, e) {
7562
7562
  }
7563
7563
  function z0(n, e, l, t) {
7564
7564
  const i = F0(n, e), c = H(!1), h = H(!1), v = H(!1), f = { t: 0 };
7565
- let p = [];
7566
- const d = H([]);
7567
- async function _(b) {
7568
- const o = ++f.t;
7565
+ let p = !1, d = [];
7566
+ const _ = H([]);
7567
+ async function g(o) {
7568
+ const q = ++f.t;
7569
7569
  v.value = !0;
7570
- const O = [];
7571
- for (const B of l)
7570
+ const A = [];
7571
+ for (const U of l)
7572
7572
  try {
7573
- const F = B, j = F.$async ? await B(b) : B(b), I = await Promise.resolve(j);
7574
- if (I !== !0) {
7575
- if (typeof I == "string")
7576
- O.push({
7577
- $message: I,
7578
- $validator: F.$validatorName || F.name || "validator",
7579
- $params: F.$params
7580
- });
7581
- else if (I === !1) {
7582
- const P = typeof F.$message == "function" ? F.$message(F.$params) : F.$message || "Невалідне поле";
7583
- O.push({
7573
+ const I = U, B = I.$async ? await U(o) : U(o), P = await Promise.resolve(B);
7574
+ if (P !== !0) {
7575
+ if (typeof P == "string")
7576
+ A.push({
7584
7577
  $message: P,
7585
- $validator: F.$validatorName || F.name || "validator",
7586
- $params: F.$params
7578
+ $validator: I.$validatorName || I.name || "validator",
7579
+ $params: I.$params
7580
+ });
7581
+ else if (P === !1) {
7582
+ const re = typeof I.$message == "function" ? I.$message(I.$params) : I.$message || "Невалідне поле";
7583
+ A.push({
7584
+ $message: re,
7585
+ $validator: I.$validatorName || I.name || "validator",
7586
+ $params: I.$params
7587
7587
  });
7588
7588
  }
7589
7589
  }
7590
- } catch (F) {
7591
- const j = B;
7592
- O.push({
7593
- $message: (F == null ? void 0 : F.message) || "Validator error",
7594
- $validator: j.$validatorName || j.name || "validator"
7590
+ } catch (I) {
7591
+ const B = U;
7592
+ A.push({
7593
+ $message: (I == null ? void 0 : I.message) || "Validator error",
7594
+ $validator: B.$validatorName || B.name || "validator"
7595
7595
  });
7596
7596
  }
7597
- if (p.length)
7598
- for (const B of p)
7599
- O.push({ $message: B.$message, $validator: B.$validator || "external" });
7600
- o === f.t && (d.value = O, v.value = !1);
7597
+ if (d.length)
7598
+ for (const U of d)
7599
+ A.push({ $message: U.$message, $validator: U.$validator || "external" });
7600
+ q === f.t && (_.value = A, v.value = !1);
7601
7601
  }
7602
7602
  ye(
7603
7603
  () => {
7604
- const b = C1(n) ? n.value : n;
7605
- return lt(b, e);
7604
+ const o = C1(n) ? n.value : n;
7605
+ return lt(o, e);
7606
7606
  },
7607
7607
  () => {
7608
- c.value = !0, _(i.value);
7608
+ p || (c.value = !0, g(i.value));
7609
7609
  }
7610
7610
  );
7611
- const m = S1({
7611
+ const b = S1({
7612
7612
  get $model() {
7613
7613
  return i.value;
7614
7614
  },
7615
- set $model(b) {
7616
- i.value = b, c.value = !0, m.$validate();
7615
+ set $model(o) {
7616
+ i.value = o, c.value = !0, b.$validate();
7617
7617
  },
7618
7618
  get $dirty() {
7619
7619
  return c.value;
@@ -7625,81 +7625,83 @@ function z0(n, e, l, t) {
7625
7625
  return v.value;
7626
7626
  },
7627
7627
  get $invalid() {
7628
- return d.value && d.value.length > 0;
7628
+ return _.value && _.value.length > 0;
7629
7629
  },
7630
7630
  get $error() {
7631
- return m.$dirty && m.$invalid;
7631
+ return b.$dirty && b.$invalid;
7632
7632
  },
7633
7633
  get $errors() {
7634
- return t.silentErrors ? [] : d.value.map((b) => ({ ...b }));
7634
+ return t.silentErrors ? [] : _.value.map((o) => ({ ...o }));
7635
7635
  },
7636
7636
  $params: l.length ? l[0].$params || {} : void 0,
7637
7637
  $touch() {
7638
7638
  c.value = !0, h.value = !0;
7639
7639
  },
7640
7640
  $reset() {
7641
- c.value = !1, h.value = !1, d.value = [], v.value = !1;
7641
+ p = !0, c.value = !1, h.value = !1, _.value = [], v.value = !1, queueMicrotask(() => {
7642
+ p = !1;
7643
+ });
7642
7644
  },
7643
7645
  async $validate() {
7644
- return c.value = !0, await _(i.value), !d.value.length;
7646
+ return c.value = !0, await g(i.value), !_.value.length;
7645
7647
  }
7646
7648
  });
7647
- return m.$setExternalResults = (b) => {
7648
- p = b || [], m.$validate();
7649
- }, m.$clearExternalResults = () => {
7650
- p = [], m.$validate();
7651
- }, m;
7649
+ return b.$setExternalResults = (o) => {
7650
+ d = o || [], b.$validate();
7651
+ }, b.$clearExternalResults = () => {
7652
+ d = [], b.$validate();
7653
+ }, b;
7652
7654
  }
7653
7655
  function r4(n, e, l) {
7654
7656
  const t = { silentErrors: !!(l != null && l.silentErrors) }, i = typeof n == "function" ? n() : n, c = (C1(e), e);
7655
7657
  function h(d, _ = "") {
7656
- const m = {}, b = Object.keys(d || {});
7658
+ const g = {}, b = Object.keys(d || {});
7657
7659
  for (const E of b) {
7658
7660
  const L = d[E], ee = _ ? `${_}.${E}` : E;
7659
7661
  if (typeof L == "function" || Array.isArray(L) && L.length > 0 && typeof L[0] == "function") {
7660
7662
  const oe = Array.isArray(L) ? L : [L];
7661
- m[E] = z0(c, ee, oe, t);
7662
- } else typeof L == "object" && L !== null ? typeof L == "object" && Array.isArray(L) === !1 && (m[E] = h(L, ee)) : m[E] = h({}, ee);
7663
+ g[E] = z0(c, ee, oe, t);
7664
+ } else typeof L == "object" && L !== null ? typeof L == "object" && Array.isArray(L) === !1 && (g[E] = h(L, ee)) : g[E] = h({}, ee);
7663
7665
  }
7664
7666
  const o = async () => {
7665
7667
  const E = [];
7666
- for (const L of Object.keys(m)) {
7668
+ for (const L of Object.keys(g)) {
7667
7669
  if (L.startsWith("$")) continue;
7668
- const ee = m[L];
7670
+ const ee = g[L];
7669
7671
  ee && typeof ee.$validate == "function" && E.push(await ee.$validate());
7670
7672
  }
7671
7673
  return E.every(Boolean);
7672
- }, O = () => {
7673
- for (const E of Object.keys(m)) {
7674
+ }, q = () => {
7675
+ for (const E of Object.keys(g)) {
7674
7676
  if (E.startsWith("$")) continue;
7675
- const L = m[E];
7677
+ const L = g[E];
7676
7678
  L && typeof L.$touch == "function" && L.$touch();
7677
7679
  }
7678
- }, B = () => {
7679
- for (const E of Object.keys(m)) {
7680
+ }, A = () => {
7681
+ for (const E of Object.keys(g)) {
7680
7682
  if (E.startsWith("$")) continue;
7681
- const L = m[E];
7683
+ const L = g[E];
7682
7684
  L && typeof L.$reset == "function" && L.$reset();
7683
7685
  }
7684
- }, F = V(() => Object.keys(m).some((E) => {
7685
- const L = m[E];
7686
+ }, U = V(() => Object.keys(g).some((E) => {
7687
+ const L = g[E];
7686
7688
  return L && L.$dirty;
7687
- })), j = V(() => Object.keys(m).some((E) => {
7688
- const L = m[E];
7689
+ })), I = V(() => Object.keys(g).some((E) => {
7690
+ const L = g[E];
7689
7691
  return L && L.$invalid;
7690
- })), I = V(() => Object.keys(m).some((E) => {
7691
- const L = m[E];
7692
+ })), B = V(() => Object.keys(g).some((E) => {
7693
+ const L = g[E];
7692
7694
  return L && L.$error;
7693
- })), P = V(() => Object.keys(m).some((E) => {
7694
- const L = m[E];
7695
+ })), P = V(() => Object.keys(g).some((E) => {
7696
+ const L = g[E];
7695
7697
  return L && L.$pending;
7696
7698
  })), re = {
7697
7699
  $validate: o,
7698
- $touch: O,
7699
- $reset: B,
7700
- $anyDirty: F,
7701
- $anyInvalid: j,
7702
- $anyError: I,
7700
+ $touch: q,
7701
+ $reset: A,
7702
+ $anyDirty: U,
7703
+ $anyInvalid: I,
7704
+ $anyError: B,
7703
7705
  $pending: P,
7704
7706
  $silentErrors: t.silentErrors,
7705
7707
  $externalResults: [],
@@ -7731,20 +7733,20 @@ function r4(n, e, l) {
7731
7733
  });
7732
7734
  }
7733
7735
  };
7734
- return Object.assign(m, re), m;
7736
+ return Object.assign(g, re), g;
7735
7737
  }
7736
7738
  function v(d, _) {
7737
7739
  if (!(!d || typeof d != "object"))
7738
- for (const m of Object.keys(d)) {
7739
- if (m.startsWith("$")) continue;
7740
- const b = d[m];
7740
+ for (const g of Object.keys(d)) {
7741
+ if (g.startsWith("$")) continue;
7742
+ const b = d[g];
7741
7743
  b && typeof b == "object" && (typeof b.$validate == "function" && typeof b.$model < "u" ? _(b) : v(b, _));
7742
7744
  }
7743
7745
  }
7744
7746
  function f(d, _) {
7745
- const m = _.split(".");
7747
+ const g = _.split(".");
7746
7748
  let b = d;
7747
- for (const o of m) {
7749
+ for (const o of g) {
7748
7750
  if (!b) return;
7749
7751
  b = b[o];
7750
7752
  }