voiptime-components 1.8.12 → 1.8.13

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 i, openBlock as s, createElementVNode as o, createStaticVNode as tt, defineComponent as we, computed as x, createBlock as _e, createCommentVNode as O, resolveDynamicComponent as ft, normalizeStyle as Be, useSlots as it, resolveDirective as xt, withDirectives as at, normalizeClass as q, renderSlot as De, Teleport as ot, withModifiers as xe, toDisplayString as A, createTextVNode as Ve, ref as L, onUnmounted as Ge, nextTick as He, watch as ye, onMounted as Ze, createVNode as K, Fragment as oe, renderList as he, provide as ut, unref as z, Transition as rt, withCtx as Me, inject as ct, onBeforeUnmount as Ot, createApp as Nt, h as gt, mergeModels as Lt, useModel as s1, reactive as Wt, toRef as st, toRefs as r1, vShow as qt, TransitionGroup as i1 } from "vue";
1
+ import { createElementBlock as i, openBlock as s, createElementVNode as o, createStaticVNode as tt, defineComponent as we, computed as x, createBlock as _e, createCommentVNode as N, resolveDynamicComponent as ft, normalizeStyle as Be, useSlots as it, resolveDirective as xt, withDirectives as at, normalizeClass as q, renderSlot as De, Teleport as ot, withModifiers as Ve, toDisplayString as E, createTextVNode as ke, ref as L, onUnmounted as Ge, nextTick as He, watch as Me, onMounted as Ze, createVNode as K, Fragment as ne, renderList as he, provide as ut, unref as Z, Transition as rt, withCtx as $e, inject as ct, onBeforeUnmount as Ot, createApp as Nt, h as gt, mergeModels as Lt, useModel as s1, reactive as Wt, toRef as st, toRefs as r1, vShow as qt, TransitionGroup as i1 } from "vue";
2
2
  const M = (n, t) => {
3
3
  const a = n.__vccOpts || n;
4
4
  for (const [e, r] of t)
@@ -2331,7 +2331,7 @@ const ga = /* @__PURE__ */ M(ma, [["render", _a]]), wa = {
2331
2331
  return (r, u) => a.value ? (s(), _e(ft(a.value), {
2332
2332
  key: 0,
2333
2333
  style: Be(e.value)
2334
- }, null, 8, ["style"])) : O("", !0);
2334
+ }, null, 8, ["style"])) : N("", !0);
2335
2335
  }
2336
2336
  }), ka = {}, ba = { class: "vt-loader" };
2337
2337
  function ya(n, t) {
@@ -2386,8 +2386,8 @@ const pt = /* @__PURE__ */ M(ka, [["render", ya]]), Ma = ["disabled", "type", "d
2386
2386
  key: 1,
2387
2387
  name: a.icon,
2388
2388
  class: "vt-button__icon"
2389
- }, null, 8, ["name"])) : O("", !0),
2390
- u.value ? O("", !0) : (s(), i("span", $a, [
2389
+ }, null, 8, ["name"])) : N("", !0),
2390
+ u.value ? N("", !0) : (s(), i("span", $a, [
2391
2391
  De(h.$slots, "default")
2392
2392
  ]))
2393
2393
  ], 10, Ma)), [
@@ -2429,23 +2429,23 @@ const pt = /* @__PURE__ */ M(ka, [["render", ya]]), Ma = ["disabled", "type", "d
2429
2429
  }, [
2430
2430
  o("div", {
2431
2431
  class: q(r.value),
2432
- onClick: v[0] || (v[0] = xe(() => {
2432
+ onClick: v[0] || (v[0] = Ve(() => {
2433
2433
  }, ["stop"]))
2434
2434
  }, [
2435
2435
  C.title || C.showCloseButton ? (s(), i("div", xa, [
2436
- C.title ? (s(), i("h2", Va, A(C.title), 1)) : O("", !0),
2436
+ C.title ? (s(), i("h2", Va, E(C.title), 1)) : N("", !0),
2437
2437
  C.showCloseButton ? (s(), _e(pe, {
2438
2438
  key: 1,
2439
2439
  name: "close",
2440
2440
  class: "vt-modal__close",
2441
2441
  onClick: p
2442
- })) : O("", !0)
2443
- ])) : O("", !0),
2442
+ })) : N("", !0)
2443
+ ])) : N("", !0),
2444
2444
  o("div", Sa, [
2445
2445
  De(C.$slots, "default")
2446
2446
  ])
2447
2447
  ], 2)
2448
- ], 4)) : O("", !0)
2448
+ ], 4)) : N("", !0)
2449
2449
  ]));
2450
2450
  }
2451
2451
  }), La = ["for"], Da = ["id", "name", "value", "checked", "disabled", "required", ".indeterminate"], Je = /* @__PURE__ */ we({
@@ -2532,7 +2532,7 @@ const pt = /* @__PURE__ */ M(ka, [["render", ya]]), Ma = ["disabled", "type", "d
2532
2532
  "stroke-width": "2",
2533
2533
  "stroke-linecap": "round"
2534
2534
  }, null, -1)
2535
- ]), 2)) : O("", !0),
2535
+ ]), 2)) : N("", !0),
2536
2536
  h.isDouble && p.value ? (s(), i("svg", {
2537
2537
  key: 1,
2538
2538
  class: q([
@@ -2561,7 +2561,7 @@ const pt = /* @__PURE__ */ M(ka, [["render", ya]]), Ma = ["disabled", "type", "d
2561
2561
  "stroke-linecap": "round",
2562
2562
  "stroke-linejoin": "round"
2563
2563
  }, null, -1)
2564
- ]), 2)) : O("", !0),
2564
+ ]), 2)) : N("", !0),
2565
2565
  h.indeterminate ? (s(), i("div", {
2566
2566
  key: 2,
2567
2567
  class: q([
@@ -2570,7 +2570,7 @@ const pt = /* @__PURE__ */ M(ka, [["render", ya]]), Ma = ["disabled", "type", "d
2570
2570
  "vt-checkbox__indeterminate-mark--visible": h.indeterminate
2571
2571
  }
2572
2572
  ])
2573
- }, null, 2)) : O("", !0)
2573
+ }, null, 2)) : N("", !0)
2574
2574
  ], 2),
2575
2575
  h.label || h.$slots.label || h.$slots.default ? (s(), i("span", {
2576
2576
  key: 0,
@@ -2583,10 +2583,10 @@ const pt = /* @__PURE__ */ M(ka, [["render", ya]]), Ma = ["disabled", "type", "d
2583
2583
  }, [
2584
2584
  De(h.$slots, "label", {}, () => [
2585
2585
  De(h.$slots, "default", {}, () => [
2586
- Ve(A(h.label), 1)
2586
+ ke(E(h.label), 1)
2587
2587
  ])
2588
2588
  ])
2589
- ], 2)) : O("", !0)
2589
+ ], 2)) : N("", !0)
2590
2590
  ], 10, La));
2591
2591
  }
2592
2592
  }), Dt = (n) => {
@@ -2670,7 +2670,7 @@ function mt(n, t, a = {}) {
2670
2670
  n.value && (U.value = Ha(n.value), U.value.forEach((de) => {
2671
2671
  de.addEventListener("scroll", X, { passive: !0 });
2672
2672
  }), window.addEventListener("resize", X));
2673
- }, ne = () => {
2673
+ }, oe = () => {
2674
2674
  U.value.forEach((de) => {
2675
2675
  de.removeEventListener("scroll", X);
2676
2676
  }), window.removeEventListener("resize", X), U.value = [];
@@ -2684,7 +2684,7 @@ function mt(n, t, a = {}) {
2684
2684
  }, se = () => {
2685
2685
  _.value && (g.value = window.setTimeout(
2686
2686
  () => {
2687
- _.value = !1, $.value = !1, ne(), v == null || v(!1);
2687
+ _.value = !1, $.value = !1, oe(), v == null || v(!1);
2688
2688
  },
2689
2689
  e === "hover" ? p : 0
2690
2690
  ));
@@ -2692,7 +2692,7 @@ function mt(n, t, a = {}) {
2692
2692
  f || (_.value ? se() : re());
2693
2693
  };
2694
2694
  return Ge(() => {
2695
- ne();
2695
+ oe();
2696
2696
  }), {
2697
2697
  // State
2698
2698
  visible: _,
@@ -2707,7 +2707,7 @@ function mt(n, t, a = {}) {
2707
2707
  // Internal methods
2708
2708
  checkParentVisibility: T,
2709
2709
  addScrollListeners: R,
2710
- removeScrollListeners: ne
2710
+ removeScrollListeners: oe
2711
2711
  };
2712
2712
  }
2713
2713
  const Kt = Symbol("VtSelectContext");
@@ -2848,33 +2848,33 @@ const Za = ["for"], za = {
2848
2848
  minlength: (k, F) => String(k).length >= F,
2849
2849
  maxlength: (k, F) => String(k).length <= F,
2850
2850
  min: (k, F) => {
2851
- const Z = Number(k);
2852
- return !isNaN(Z) && Z >= F;
2851
+ const z = Number(k);
2852
+ return !isNaN(z) && z >= F;
2853
2853
  },
2854
2854
  max: (k, F) => {
2855
- const Z = Number(k);
2856
- return !isNaN(Z) && Z <= F;
2855
+ const z = Number(k);
2856
+ return !isNaN(z) && z <= F;
2857
2857
  },
2858
2858
  pattern: (k, F) => new RegExp(F).test(k),
2859
2859
  custom: (k, F) => F(k)
2860
2860
  }, g = (k) => {
2861
- const F = [], Z = String(k || "");
2862
- if (e.required && !$.required(k) && F.push(e.requiredMessage || "Це поле є обов'язковим"), !Z && !e.required) {
2861
+ const F = [], z = String(k || "");
2862
+ if (e.required && !$.required(k) && F.push(e.requiredMessage || "Це поле є обов'язковим"), !z && !e.required) {
2863
2863
  h.value = F, _.value = F.length === 0;
2864
2864
  return;
2865
2865
  }
2866
2866
  switch (e.type) {
2867
2867
  case "email":
2868
- Z && !$.email(Z) && F.push(e.emailMessage || "Введіть коректну email адресу");
2868
+ z && !$.email(z) && F.push(e.emailMessage || "Введіть коректну email адресу");
2869
2869
  break;
2870
2870
  case "url":
2871
- Z && !$.url(Z) && F.push(e.urlMessage || "Введіть коректний URL");
2871
+ z && !$.url(z) && F.push(e.urlMessage || "Введіть коректний URL");
2872
2872
  break;
2873
2873
  case "number":
2874
- Z && !$.number(Z) && F.push(e.numberMessage || "Введіть коректне число");
2874
+ z && !$.number(z) && F.push(e.numberMessage || "Введіть коректне число");
2875
2875
  break;
2876
2876
  }
2877
- e.minlength && Z && !$.minlength(Z, e.minlength) && F.push(e.minlengthMessage || `Мінімальна довжина: ${e.minlength} символів`), e.maxlength && Z && !$.maxlength(Z, e.maxlength) && F.push(e.maxlengthMessage || `Максимальна довжина: ${e.maxlength} символів`), e.type === "number" && Z && $.number(Z) && (e.min !== void 0 && !$.min(Z, e.min) && F.push(e.minMessage || `Мінімальне значення: ${e.min}`), e.max !== void 0 && !$.max(Z, e.max) && F.push(e.maxMessage || `Максимальне значення: ${e.max}`)), e.pattern && Z && !$.pattern(Z, e.pattern) && F.push(e.patternMessage || "Значення не відповідає вимогам формату"), e.customValidator && !$.custom(k, e.customValidator) && F.push(e.customValidatorMessage || "Значення не проходить валідацію"), h.value = F, _.value = F.length === 0, r("validation", { isValid: _.value, errors: F });
2877
+ e.minlength && z && !$.minlength(z, e.minlength) && F.push(e.minlengthMessage || `Мінімальна довжина: ${e.minlength} символів`), e.maxlength && z && !$.maxlength(z, e.maxlength) && F.push(e.maxlengthMessage || `Максимальна довжина: ${e.maxlength} символів`), e.type === "number" && z && $.number(z) && (e.min !== void 0 && !$.min(z, e.min) && F.push(e.minMessage || `Мінімальне значення: ${e.min}`), e.max !== void 0 && !$.max(z, e.max) && F.push(e.maxMessage || `Максимальне значення: ${e.max}`)), e.pattern && z && !$.pattern(z, e.pattern) && F.push(e.patternMessage || "Значення не відповідає вимогам формату"), e.customValidator && !$.custom(k, e.customValidator) && F.push(e.customValidatorMessage || "Значення не проходить валідацію"), h.value = F, _.value = F.length === 0, r("validation", { isValid: _.value, errors: F });
2878
2878
  }, U = x(() => e.type === "textarea"), P = x(() => {
2879
2879
  if (e.type === "password") return null;
2880
2880
  switch (e.type) {
@@ -2913,7 +2913,7 @@ const Za = ["for"], za = {
2913
2913
  return k;
2914
2914
  }
2915
2915
  return k;
2916
- }), ne = x(() => ["email", "url", "password"].includes(e.type) && e.suffixIcon ? e.clearable || e.showPassword : !!e.suffixIcon || e.clearable || e.showPassword), re = x(() => ["email", "url", "password"].includes(e.type) ? null : e.suffixIcon), se = x(
2916
+ }), oe = x(() => ["email", "url", "password"].includes(e.type) && e.suffixIcon ? e.clearable || e.showPassword : !!e.suffixIcon || e.clearable || e.showPassword), re = x(() => ["email", "url", "password"].includes(e.type) ? null : e.suffixIcon), se = x(
2917
2917
  () => e.clearable && !e.disabled && e.modelValue && String(e.modelValue).length > 0
2918
2918
  ), ce = x(() => e.status !== "default" ? e.status : _.value ? "default" : "error"), de = x(() => [
2919
2919
  "vt-input",
@@ -2924,16 +2924,16 @@ const Za = ["for"], za = {
2924
2924
  "vt-input--focused": f.value,
2925
2925
  "vt-input--textarea": U.value,
2926
2926
  "vt-input--has-prefix": j.value,
2927
- "vt-input--has-suffix": ne.value,
2927
+ "vt-input--has-suffix": oe.value,
2928
2928
  "vt-input--invalid": !_.value
2929
2929
  }
2930
2930
  ]), W = x(() => e.type === "password" ? C.value ? "text" : "password" : e.type === "textarea" ? "text" : e.type), D = x(() => e.errorMessage ? e.errorMessage : h.value.length > 0 ? h.value[0] : ""), ae = x(() => e.autosize && typeof e.autosize == "object" && e.autosize.maxRows ? "none" : e.resize), fe = (k) => {
2931
- let Z = k.target.value;
2932
- if (e.type === "number" && Z !== "") {
2933
- const be = Number(Z);
2934
- isNaN(be) || (Z = be);
2931
+ let z = k.target.value;
2932
+ if (e.type === "number" && z !== "") {
2933
+ const ye = Number(z);
2934
+ isNaN(ye) || (z = ye);
2935
2935
  }
2936
- r("update:modelValue", Z), r("input", k), e.validateOnInput && g(Z), U.value && e.autosize && !l.value && He(() => Q());
2936
+ r("update:modelValue", z), r("input", k), e.validateOnInput && g(z), U.value && e.autosize && !l.value && He(() => Q());
2937
2937
  }, S = (k) => {
2938
2938
  if (r("change", k), !e.validateOnInput) {
2939
2939
  const F = k.target;
@@ -2941,7 +2941,7 @@ const Za = ["for"], za = {
2941
2941
  }
2942
2942
  }, B = (k) => {
2943
2943
  f.value = !0, r("focus", k);
2944
- }, Y = (k) => {
2944
+ }, O = (k) => {
2945
2945
  if (f.value = !1, r("blur", k), e.validateOnBlur) {
2946
2946
  const F = k.target;
2947
2947
  g(F.value);
@@ -2958,17 +2958,17 @@ const Za = ["for"], za = {
2958
2958
  if (!p.value || !e.autosize || l.value) return;
2959
2959
  const k = p.value, F = k.style.height;
2960
2960
  k.style.height = "auto";
2961
- let Z = k.scrollHeight;
2961
+ let z = k.scrollHeight;
2962
2962
  if (typeof e.autosize == "object") {
2963
2963
  const Pe = parseInt(getComputedStyle(k).lineHeight), Te = e.autosize.minRows ? e.autosize.minRows * Pe : 0, Re = e.autosize.maxRows ? e.autosize.maxRows * Pe : 1 / 0;
2964
- Z = Math.max(Te, Math.min(Z, Re));
2964
+ z = Math.max(Te, Math.min(z, Re));
2965
2965
  }
2966
- const be = `${Z}px`;
2967
- be !== F && (v.value = be, k.style.height = be);
2966
+ const ye = `${z}px`;
2967
+ ye !== F && (v.value = ye, k.style.height = ye);
2968
2968
  }, ue = (k) => {
2969
2969
  if (!p.value || !(ae.value !== "none")) return;
2970
- const be = p.value.getBoundingClientRect();
2971
- if (k.clientX > be.right - 20 && k.clientY > be.bottom - 20) {
2970
+ const ye = p.value.getBoundingClientRect();
2971
+ if (k.clientX > ye.right - 20 && k.clientY > ye.bottom - 20) {
2972
2972
  l.value = !0;
2973
2973
  const Te = () => {
2974
2974
  l.value = !1, document.removeEventListener("mouseup", Te);
@@ -3001,12 +3001,12 @@ const Za = ["for"], za = {
3001
3001
  isValid: _.value,
3002
3002
  errors: [...h.value]
3003
3003
  })
3004
- }), ye(
3004
+ }), Me(
3005
3005
  () => e.modelValue,
3006
3006
  (k) => {
3007
3007
  U.value && e.autosize && !l.value && He(Q), e.validateOnInput && g(k || "");
3008
3008
  }
3009
- ), ye(
3009
+ ), Me(
3010
3010
  () => [e.required, e.minlength, e.maxlength, e.min, e.max, e.pattern],
3011
3011
  () => {
3012
3012
  e.modelValue !== void 0 && e.modelValue !== "" && g(e.modelValue);
@@ -3025,16 +3025,16 @@ const Za = ["for"], za = {
3025
3025
  class: "vt-input__label",
3026
3026
  for: k.id
3027
3027
  }, [
3028
- Ve(A(k.label) + " ", 1),
3029
- k.required ? (s(), i("span", za, "*")) : O("", !0)
3030
- ], 8, Za)) : O("", !0),
3028
+ ke(E(k.label) + " ", 1),
3029
+ k.required ? (s(), i("span", za, "*")) : N("", !0)
3030
+ ], 8, Za)) : N("", !0),
3031
3031
  o("div", Ya, [
3032
3032
  j.value ? (s(), i("div", Oa, [
3033
3033
  K(pe, {
3034
3034
  name: X.value,
3035
3035
  class: q(R.value)
3036
3036
  }, null, 8, ["name", "class"])
3037
- ])) : O("", !0),
3037
+ ])) : N("", !0),
3038
3038
  U.value ? (s(), i("textarea", {
3039
3039
  key: 1,
3040
3040
  ref_key: "textareaRef",
@@ -3056,12 +3056,12 @@ const Za = ["for"], za = {
3056
3056
  onInput: fe,
3057
3057
  onChange: S,
3058
3058
  onFocus: B,
3059
- onBlur: Y,
3059
+ onBlur: O,
3060
3060
  onMousedown: ue,
3061
- onKeydown: F[0] || (F[0] = (Z) => k.$emit("keydown", Z)),
3062
- onKeyup: F[1] || (F[1] = (Z) => k.$emit("keyup", Z)),
3063
- onKeypress: F[2] || (F[2] = (Z) => k.$emit("keypress", Z)),
3064
- onClick: F[3] || (F[3] = (Z) => k.$emit("click", Z))
3061
+ onKeydown: F[0] || (F[0] = (z) => k.$emit("keydown", z)),
3062
+ onKeyup: F[1] || (F[1] = (z) => k.$emit("keyup", z)),
3063
+ onKeypress: F[2] || (F[2] = (z) => k.$emit("keypress", z)),
3064
+ onClick: F[3] || (F[3] = (z) => k.$emit("click", z))
3065
3065
  }, null, 44, Na)) : (s(), i("input", {
3066
3066
  key: 2,
3067
3067
  ref_key: "inputRef",
@@ -3085,13 +3085,13 @@ const Za = ["for"], za = {
3085
3085
  onInput: fe,
3086
3086
  onChange: S,
3087
3087
  onFocus: B,
3088
- onBlur: Y,
3089
- onKeydown: F[4] || (F[4] = (Z) => k.$emit("keydown", Z)),
3090
- onKeyup: F[5] || (F[5] = (Z) => k.$emit("keyup", Z)),
3091
- onKeypress: F[6] || (F[6] = (Z) => k.$emit("keypress", Z)),
3092
- onClick: F[7] || (F[7] = (Z) => k.$emit("click", Z))
3088
+ onBlur: O,
3089
+ onKeydown: F[4] || (F[4] = (z) => k.$emit("keydown", z)),
3090
+ onKeyup: F[5] || (F[5] = (z) => k.$emit("keyup", z)),
3091
+ onKeypress: F[6] || (F[6] = (z) => k.$emit("keypress", z)),
3092
+ onClick: F[7] || (F[7] = (z) => k.$emit("click", z))
3093
3093
  }, null, 40, Wa)),
3094
- ne.value ? (s(), i("div", qa, [
3094
+ oe.value ? (s(), i("div", qa, [
3095
3095
  se.value ? (s(), i("button", {
3096
3096
  key: 0,
3097
3097
  type: "button",
@@ -3102,7 +3102,7 @@ const Za = ["for"], za = {
3102
3102
  name: "close",
3103
3103
  class: "vt-input__icon"
3104
3104
  })
3105
- ])) : O("", !0),
3105
+ ])) : N("", !0),
3106
3106
  k.showPassword && k.type === "password" ? (s(), i("button", {
3107
3107
  key: 1,
3108
3108
  type: "button",
@@ -3113,25 +3113,25 @@ const Za = ["for"], za = {
3113
3113
  name: C.value ? "eyeOpened" : "eyeClosed",
3114
3114
  class: "vt-input__icon"
3115
3115
  }, null, 8, ["name"])
3116
- ])) : O("", !0),
3116
+ ])) : N("", !0),
3117
3117
  re.value ? (s(), _e(pe, {
3118
3118
  key: 2,
3119
3119
  name: re.value,
3120
3120
  class: "vt-input__icon"
3121
- }, null, 8, ["name"])) : O("", !0)
3122
- ])) : O("", !0)
3121
+ }, null, 8, ["name"])) : N("", !0)
3122
+ ])) : N("", !0)
3123
3123
  ]),
3124
3124
  k.helperText || D.value ? (s(), i("div", Ua, [
3125
- D.value ? (s(), i("span", Ka, A(D.value), 1)) : k.helperText ? (s(), i("span", Xa, A(k.helperText), 1)) : O("", !0)
3126
- ])) : O("", !0),
3125
+ D.value ? (s(), i("span", Ka, E(D.value), 1)) : k.helperText ? (s(), i("span", Xa, E(k.helperText), 1)) : N("", !0)
3126
+ ])) : N("", !0),
3127
3127
  h.value.length > 1 && k.showAllErrors ? (s(), i("div", Qa, [
3128
- (s(!0), i(oe, null, he(h.value, (Z, be) => (s(), i("div", {
3129
- key: be,
3128
+ (s(!0), i(ne, null, he(h.value, (z, ye) => (s(), i("div", {
3129
+ key: ye,
3130
3130
  class: "vt-input__error-item"
3131
3131
  }, [
3132
- o("span", null, A(Z), 1)
3132
+ o("span", null, E(z), 1)
3133
3133
  ]))), 128))
3134
- ])) : O("", !0)
3134
+ ])) : N("", !0)
3135
3135
  ], 2));
3136
3136
  }
3137
3137
  }), Ga = ["for"], Ja = {
@@ -3209,7 +3209,7 @@ const Za = ["for"], za = {
3209
3209
  for (const [d, m] of U.value.entries())
3210
3210
  if (et(d, c, e.valueKey))
3211
3211
  return m;
3212
- }, R = (c) => c.toLowerCase().trim(), ne = (c, d) => {
3212
+ }, R = (c) => c.toLowerCase().trim(), oe = (c, d) => {
3213
3213
  if (!d) return !0;
3214
3214
  const m = R(d);
3215
3215
  if (c.label && typeof c.label == "string" && R(c.label).includes(m) || typeof c.value == "string" && R(c.value).includes(m))
@@ -3226,7 +3226,7 @@ const Za = ["for"], za = {
3226
3226
  for (const [d, m] of $.value.entries())
3227
3227
  g.value.has(d) && c.push(m);
3228
3228
  return c;
3229
- }), se = x(() => !e.filterable || !l.filterQuery.value.trim() || e.allowRemoteFilter ? re.value : re.value.filter((c) => ne(c, l.filterQuery.value))), ce = L(0), de = (c) => {
3229
+ }), se = x(() => !e.filterable || !l.filterQuery.value.trim() || e.allowRemoteFilter ? re.value : re.value.filter((c) => oe(c, l.filterQuery.value))), ce = L(0), de = (c) => {
3230
3230
  const d = c.target;
3231
3231
  if (!d) return;
3232
3232
  const m = d.scrollTop, I = d.scrollHeight, J = d.clientHeight, ge = m + J >= I - 50, ve = Date.now(), Le = !e.loading && se.value.length > 0 && ve - ce.value > Tt;
@@ -3234,8 +3234,8 @@ const Za = ["for"], za = {
3234
3234
  }, W = () => {
3235
3235
  He(() => {
3236
3236
  if (!h.value) return;
3237
- const c = h.value, d = c.scrollHeight, m = c.clientHeight, I = c.scrollTop, J = d <= m, $e = I + m >= d - 10;
3238
- if ((J || $e) && se.value.length > 0 && !e.loading) {
3237
+ const c = h.value, d = c.scrollHeight, m = c.clientHeight, I = c.scrollTop, J = d <= m, xe = I + m >= d - 10;
3238
+ if ((J || xe) && se.value.length > 0 && !e.loading) {
3239
3239
  const ge = Date.now();
3240
3240
  ge - ce.value > Tt && (ce.value = ge, r("scrolled"));
3241
3241
  }
@@ -3246,7 +3246,7 @@ const Za = ["for"], za = {
3246
3246
  dropdownPosition: fe,
3247
3247
  show: S,
3248
3248
  hide: B,
3249
- toggle: Y,
3249
+ toggle: O,
3250
3250
  updatePosition: le
3251
3251
  } = mt(p, f, {
3252
3252
  trigger: "click",
@@ -3279,9 +3279,9 @@ const Za = ["for"], za = {
3279
3279
  if (Q.value) return "";
3280
3280
  const c = ue.value[0];
3281
3281
  return c ? c.label : e.modelValue && typeof e.modelValue == "object" ? e.modelValue.label ? e.modelValue.label : e.modelValue.name ? e.modelValue.name : JSON.stringify(e.modelValue) : e.modelValue !== void 0 && e.modelValue !== null && e.modelValue !== "" && !Array.isArray(e.modelValue) ? String(e.modelValue) : "";
3282
- }), Ee = x(() => !e.clearable || e.disabled ? !1 : Q.value ? ue.value.length > 0 : e.modelValue !== void 0 && e.modelValue !== null && e.modelValue !== "" && (!Array.isArray(e.modelValue) || e.modelValue.length > 0)), ke = x(() => e.status !== "default" ? e.status : l.isValid.value ? "default" : "error"), Ne = x(() => [
3282
+ }), Ee = x(() => !e.clearable || e.disabled ? !1 : Q.value ? ue.value.length > 0 : e.modelValue !== void 0 && e.modelValue !== null && e.modelValue !== "" && (!Array.isArray(e.modelValue) || e.modelValue.length > 0)), be = x(() => e.status !== "default" ? e.status : l.isValid.value ? "default" : "error"), Ne = x(() => [
3283
3283
  "vt-select",
3284
- `vt-select--${ke.value}`,
3284
+ `vt-select--${be.value}`,
3285
3285
  {
3286
3286
  "vt-select--disabled": e.disabled,
3287
3287
  "vt-select--focused": l.isFocused.value,
@@ -3302,12 +3302,12 @@ const Za = ["for"], za = {
3302
3302
  if (!D.value) return;
3303
3303
  const d = c.target;
3304
3304
  (m = u.value) != null && m.contains(d) || (I = f.value) != null && I.contains(d) || B();
3305
- }, Z = (c) => {
3305
+ }, z = (c) => {
3306
3306
  if (!c || c.disabled) return;
3307
3307
  const d = Ea(c, e.modelValue, Q.value, e.valueKey);
3308
3308
  r("update:modelValue", d), r("change", d), Q.value || B(), e.validateOnInput && ee.validate();
3309
- }, be = (c, d) => {
3310
- c.disabled || Z(c);
3309
+ }, ye = (c, d) => {
3310
+ c.disabled || z(c);
3311
3311
  }, Pe = () => {
3312
3312
  const c = Pa(Q.value);
3313
3313
  r("update:modelValue", c), r("change", c), r("clear"), ee.clear();
@@ -3316,7 +3316,7 @@ const Za = ["for"], za = {
3316
3316
  const d = Aa(c, e.modelValue, e.valueKey);
3317
3317
  r("update:modelValue", d), r("change", d), r("remove-tag", c), e.validateOnInput && ee.validate();
3318
3318
  }, Re = () => {
3319
- e.disabled || Y();
3319
+ e.disabled || O();
3320
3320
  }, je = () => {
3321
3321
  l.isFocused.value = !0, r("focus");
3322
3322
  }, Ae = (c) => {
@@ -3327,9 +3327,9 @@ const Za = ["for"], za = {
3327
3327
  }, 100));
3328
3328
  }, Ue = () => {
3329
3329
  l.filterQuery.value = "", r("filter", ""), r("filter-clear");
3330
- }, E = (c) => {
3330
+ }, A = (c) => {
3331
3331
  c.key === "Enter" || c.key === " " ? (c.preventDefault(), Re()) : c.key === "Escape" && D.value && (c.preventDefault(), B());
3332
- }, N = (c) => Ia(c, e.modelValue, Q.value, e.valueKey), te = () => {
3332
+ }, Y = (c) => Ia(c, e.modelValue, Q.value, e.valueKey), te = () => {
3333
3333
  if (!e.collapsedTags || !C.value || ue.value.length === 0) {
3334
3334
  l.visibleCount.value = ue.value.length;
3335
3335
  return;
@@ -3343,8 +3343,8 @@ const Za = ["for"], za = {
3343
3343
  selectValue: x(() => e.modelValue || (Q.value ? [] : void 0)).value,
3344
3344
  multiple: Q.value,
3345
3345
  valueKey: e.valueKey,
3346
- handleOptionClick: Z,
3347
- isOptionSelected: N,
3346
+ handleOptionClick: z,
3347
+ isOptionSelected: Y,
3348
3348
  registerOption: T,
3349
3349
  unregisterOption: j
3350
3350
  };
@@ -3403,30 +3403,30 @@ const Za = ["for"], za = {
3403
3403
  },
3404
3404
  registerOption: T,
3405
3405
  unregisterOption: j
3406
- }), ye(
3406
+ }), Me(
3407
3407
  () => e.modelValue,
3408
3408
  () => {
3409
3409
  e.validateOnInput && ee.validate();
3410
3410
  }
3411
- ), ye(
3411
+ ), Me(
3412
3412
  ue,
3413
3413
  () => {
3414
3414
  te();
3415
3415
  },
3416
3416
  { deep: !0 }
3417
- ), ye(
3417
+ ), Me(
3418
3418
  () => C.value,
3419
3419
  () => {
3420
3420
  C.value && te();
3421
3421
  }
3422
- ), ye(D, async (c) => {
3422
+ ), Me(D, async (c) => {
3423
3423
  c && (await He(), le());
3424
- }), ye(
3424
+ }), Me(
3425
3425
  () => se.value.length,
3426
3426
  async (c, d) => {
3427
3427
  D.value && c > d && (await He(), W());
3428
3428
  }
3429
- ), ye(
3429
+ ), Me(
3430
3430
  () => e.loading,
3431
3431
  (c, d) => {
3432
3432
  d && !c && D.value && W();
@@ -3449,9 +3449,9 @@ const Za = ["for"], za = {
3449
3449
  for: c.id,
3450
3450
  class: "vt-select__label"
3451
3451
  }, [
3452
- Ve(A(c.label) + " ", 1),
3453
- c.required ? (s(), i("span", Ja, "*")) : O("", !0)
3454
- ], 8, Ga)) : O("", !0),
3452
+ ke(E(c.label) + " ", 1),
3453
+ c.required ? (s(), i("span", Ja, "*")) : N("", !0)
3454
+ ], 8, Ga)) : N("", !0),
3455
3455
  o("div", {
3456
3456
  ref_key: "triggerRef",
3457
3457
  ref: p,
@@ -3460,7 +3460,7 @@ const Za = ["for"], za = {
3460
3460
  onBlur: Ae,
3461
3461
  onClick: Re,
3462
3462
  onFocus: je,
3463
- onKeydown: E
3463
+ onKeydown: A
3464
3464
  }, [
3465
3465
  o("div", e3, [
3466
3466
  c.multiple && ue.value.length > 0 ? (s(), i("div", {
@@ -3469,26 +3469,26 @@ const Za = ["for"], za = {
3469
3469
  ref: C,
3470
3470
  class: "vt-select__tags"
3471
3471
  }, [
3472
- (s(!0), i(oe, null, he(ze.value, (I, J) => (s(), i("div", {
3472
+ (s(!0), i(ne, null, he(ze.value, (I, J) => (s(), i("div", {
3473
3473
  key: `tag-${typeof I.value == "object" ? JSON.stringify(I.value) : I.value}-${J}`,
3474
3474
  ref_for: !0,
3475
- ref: ($e) => $e && (v.value[J] = $e),
3475
+ ref: (xe) => xe && (v.value[J] = xe),
3476
3476
  class: "vt-select__tag"
3477
3477
  }, [
3478
- o("span", t3, A(I.label), 1),
3479
- e.disabled ? O("", !0) : (s(), _e(pe, {
3478
+ o("span", t3, E(I.label), 1),
3479
+ e.disabled ? N("", !0) : (s(), _e(pe, {
3480
3480
  key: 0,
3481
3481
  class: "vt-select__tag-close",
3482
3482
  name: "close",
3483
- onClick: xe(($e) => Te(I.value), ["stop"])
3483
+ onClick: Ve((xe) => Te(I.value), ["stop"])
3484
3484
  }, null, 8, ["onClick"]))
3485
3485
  ]))), 128)),
3486
3486
  Ce.value ? at((s(), i("div", n3, [
3487
- o("span", o3, "+" + A(qe.value), 1)
3487
+ o("span", o3, "+" + E(qe.value), 1)
3488
3488
  ])), [
3489
3489
  [m, k.value]
3490
- ]) : O("", !0)
3491
- ], 512)) : !c.multiple && Se.value ? (s(), i("span", l3, A(Se.value), 1)) : (s(), i("span", s3, A(c.placeholder), 1))
3490
+ ]) : N("", !0)
3491
+ ], 512)) : !c.multiple && Se.value ? (s(), i("span", l3, E(Se.value), 1)) : (s(), i("span", s3, E(c.placeholder), 1))
3492
3492
  ]),
3493
3493
  o("div", r3, [
3494
3494
  c.loading ? (s(), _e(pt, {
@@ -3499,36 +3499,36 @@ const Za = ["for"], za = {
3499
3499
  disabled: e.disabled,
3500
3500
  class: "vt-select__clear-btn",
3501
3501
  type: "button",
3502
- onClick: xe(Pe, ["stop"])
3502
+ onClick: Ve(Pe, ["stop"])
3503
3503
  }, [
3504
3504
  K(pe, { name: "close" })
3505
3505
  ], 8, i3)) : (s(), _e(pe, {
3506
3506
  key: 2,
3507
- class: q([{ "vt-select__arrow--open": z(D) }, "vt-select__icon vt-select__arrow"]),
3507
+ class: q([{ "vt-select__arrow--open": Z(D) }, "vt-select__icon vt-select__arrow"]),
3508
3508
  name: "arrowDown"
3509
3509
  }, null, 8, ["class"]))
3510
3510
  ])
3511
3511
  ], 544),
3512
3512
  K(rt, { name: "fade" }, {
3513
- default: Me(() => [
3513
+ default: $e(() => [
3514
3514
  l.validationErrors && l.validationErrors.value.length ? (s(), i("div", a3, [
3515
- (s(!0), i(oe, null, he(l.validationErrors.value, (I, J) => (s(), i("div", {
3515
+ (s(!0), i(ne, null, he(l.validationErrors.value, (I, J) => (s(), i("div", {
3516
3516
  key: `error-${J}`,
3517
3517
  class: "vt-select__error"
3518
- }, A(I), 1))), 128))
3519
- ])) : O("", !0)
3518
+ }, E(I), 1))), 128))
3519
+ ])) : N("", !0)
3520
3520
  ]),
3521
3521
  _: 1
3522
3522
  }),
3523
3523
  o("div", u3, [
3524
3524
  De(c.$slots, "default")
3525
3525
  ]),
3526
- z(D) && z(ae) ? (s(), _e(ot, {
3526
+ Z(D) && Z(ae) ? (s(), _e(ot, {
3527
3527
  key: 1,
3528
3528
  to: "body"
3529
3529
  }, [
3530
3530
  K(rt, { name: "dropdown" }, {
3531
- default: Me(() => [
3531
+ default: $e(() => [
3532
3532
  o("div", {
3533
3533
  ref_key: "dropdownRef",
3534
3534
  ref: f,
@@ -3536,9 +3536,9 @@ const Za = ["for"], za = {
3536
3536
  style: Be(We.value),
3537
3537
  class: "vt-select-dropdown",
3538
3538
  role: "listbox",
3539
- onClick: d[2] || (d[2] = xe(() => {
3539
+ onClick: d[2] || (d[2] = Ve(() => {
3540
3540
  }, ["stop"])),
3541
- onMousedown: d[3] || (d[3] = xe(() => {
3541
+ onMousedown: d[3] || (d[3] = Ve(() => {
3542
3542
  }, ["prevent"]))
3543
3543
  }, [
3544
3544
  c.filterable ? (s(), i("div", d3, [
@@ -3552,9 +3552,9 @@ const Za = ["for"], za = {
3552
3552
  "suffix-icon": "search",
3553
3553
  type: "text"
3554
3554
  }, null, 8, ["modelValue", "placeholder"])
3555
- ])) : O("", !0),
3555
+ ])) : N("", !0),
3556
3556
  se.value.length === 0 ? (s(), i("div", h3, [
3557
- l.filterQuery.value ? (s(), i("span", v3, 'Немає результатів для "' + A(l.filterQuery.value) + '"', 1)) : (s(), i("span", p3, A(c.noDataText), 1))
3557
+ l.filterQuery.value ? (s(), i("span", v3, 'Немає результатів для "' + E(l.filterQuery.value) + '"', 1)) : (s(), i("span", p3, E(c.noDataText), 1))
3558
3558
  ])) : (s(), i("div", {
3559
3559
  key: 2,
3560
3560
  ref_key: "scrollContainerRef",
@@ -3562,44 +3562,44 @@ const Za = ["for"], za = {
3562
3562
  class: "vt-select-dropdown__options",
3563
3563
  onScroll: de
3564
3564
  }, [
3565
- (s(!0), i(oe, null, he(se.value, (I) => (s(), i("div", {
3565
+ (s(!0), i(ne, null, he(se.value, (I) => (s(), i("div", {
3566
3566
  key: `option-${typeof I.value == "object" ? JSON.stringify(I.value) : I.value}`,
3567
3567
  "aria-disabled": I.disabled || !1,
3568
- "aria-selected": N(I.value),
3568
+ "aria-selected": Y(I.value),
3569
3569
  class: q([
3570
3570
  "vt-option",
3571
3571
  {
3572
- "vt-option--selected": N(I.value),
3572
+ "vt-option--selected": Y(I.value),
3573
3573
  "vt-option--disabled": I.disabled || !1
3574
3574
  }
3575
3575
  ]),
3576
3576
  role: "option",
3577
- onClick: (J) => Z(I),
3578
- onMousedown: d[1] || (d[1] = xe(() => {
3577
+ onClick: (J) => z(I),
3578
+ onMousedown: d[1] || (d[1] = Ve(() => {
3579
3579
  }, ["prevent"]))
3580
3580
  }, [
3581
3581
  Q.value ? (s(), _e(Je, {
3582
3582
  key: 0,
3583
- checked: N(I.value),
3583
+ checked: Y(I.value),
3584
3584
  disabled: I.disabled || !1,
3585
3585
  class: "vt-option__checkbox",
3586
3586
  tabindex: "-1",
3587
- onChange: (J) => be(I)
3588
- }, null, 8, ["checked", "disabled", "onChange"])) : O("", !0),
3587
+ onChange: (J) => ye(I)
3588
+ }, null, 8, ["checked", "disabled", "onChange"])) : N("", !0),
3589
3589
  o("span", m3, [
3590
- X(I.value) ? (s(), _e(ft(X(I.value)), { key: 0 })) : (s(), i("span", C3, A(I.label || I.value), 1))
3590
+ X(I.value) ? (s(), _e(ft(X(I.value)), { key: 0 })) : (s(), i("span", C3, E(I.label || I.value), 1))
3591
3591
  ])
3592
3592
  ], 42, f3))), 128)),
3593
3593
  c.loading ? (s(), i("div", _3, [
3594
3594
  K(pt, { class: "vt-select-dropdown__loading-icon" }),
3595
- Ve(" " + A(e.loadingText), 1)
3596
- ])) : O("", !0)
3595
+ ke(" " + E(e.loadingText), 1)
3596
+ ])) : N("", !0)
3597
3597
  ], 544))
3598
3598
  ], 44, c3)
3599
3599
  ]),
3600
3600
  _: 1
3601
3601
  })
3602
- ])) : O("", !0)
3602
+ ])) : N("", !0)
3603
3603
  ], 2);
3604
3604
  };
3605
3605
  }
@@ -3648,13 +3648,13 @@ const Za = ["for"], za = {
3648
3648
  get: () => a.pageSize,
3649
3649
  set: (j) => e("update:pageSize", j)
3650
3650
  }), p = x(() => Math.ceil(a.totalItems / u.value)), f = x(() => a.totalItems === 0 ? 0 : (r.value - 1) * u.value + 1), C = x(() => Math.min(r.value * u.value, a.totalItems)), v = x(() => r.value <= 1), h = x(() => r.value >= p.value), _ = x(() => {
3651
- const j = [], X = p.value, R = r.value, ne = a.maxVisiblePages;
3652
- if (X <= ne)
3651
+ const j = [], X = p.value, R = r.value, oe = a.maxVisiblePages;
3652
+ if (X <= oe)
3653
3653
  for (let re = 1; re <= X; re++)
3654
3654
  j.push(re);
3655
3655
  else {
3656
3656
  j.push(1);
3657
- const re = Math.max(2, R - Math.floor(ne / 2)), se = Math.min(X - 1, R + Math.floor(ne / 2));
3657
+ const re = Math.max(2, R - Math.floor(oe / 2)), se = Math.min(X - 1, R + Math.floor(oe / 2));
3658
3658
  re > 2 && j.push("...");
3659
3659
  for (let ce = re; ce <= se; ce++)
3660
3660
  j.push(ce);
@@ -3677,7 +3677,7 @@ const Za = ["for"], za = {
3677
3677
  }, T = () => {
3678
3678
  e("reloadData", r.value);
3679
3679
  };
3680
- return ye(
3680
+ return Me(
3681
3681
  () => a.totalItems,
3682
3682
  () => {
3683
3683
  r.value > p.value && p.value > 0 && (r.value = p.value, l());
@@ -3696,14 +3696,14 @@ const Za = ["for"], za = {
3696
3696
  class: "vt-pagination__select",
3697
3697
  onChange: P
3698
3698
  }, {
3699
- default: Me(() => [
3700
- (s(!0), i(oe, null, he(j.pageSizeOptions, (R) => (s(), _e(Gt, {
3699
+ default: $e(() => [
3700
+ (s(!0), i(ne, null, he(j.pageSizeOptions, (R) => (s(), _e(Gt, {
3701
3701
  key: R,
3702
3702
  label: R,
3703
3703
  value: R
3704
3704
  }, {
3705
- default: Me(() => [
3706
- Ve(A(R), 1)
3705
+ default: $e(() => [
3706
+ ke(E(R), 1)
3707
3707
  ]),
3708
3708
  _: 2
3709
3709
  }, 1032, ["label", "value"]))), 128))
@@ -3711,7 +3711,7 @@ const Za = ["for"], za = {
3711
3711
  _: 1
3712
3712
  }, 8, ["modelValue"])
3713
3713
  ]),
3714
- o("span", null, A(f.value) + " - " + A(C.value) + " з " + A(j.totalItems), 1)
3714
+ o("span", null, E(f.value) + " - " + E(C.value) + " з " + E(j.totalItems), 1)
3715
3715
  ]),
3716
3716
  o("div", y3, [
3717
3717
  o("button", {
@@ -3721,13 +3721,13 @@ const Za = ["for"], za = {
3721
3721
  }, [
3722
3722
  K(pe, { name: "arrowLeft" })
3723
3723
  ], 10, M3),
3724
- (s(!0), i(oe, null, he(_.value, (R) => (s(), i("button", {
3724
+ (s(!0), i(ne, null, he(_.value, (R) => (s(), i("button", {
3725
3725
  key: R,
3726
3726
  class: q([{
3727
3727
  "vt-pagination__nav-button--active": R === r.value
3728
3728
  }, "vt-pagination__nav-button"]),
3729
- onClick: (ne) => $(R)
3730
- }, A(R), 11, $3))), 128)),
3729
+ onClick: (oe) => $(R)
3730
+ }, E(R), 11, $3))), 128)),
3731
3731
  o("button", {
3732
3732
  class: q({ "vt-pagination__nav-button": !0, "has-items": !h.value }),
3733
3733
  disabled: h.value,
@@ -3744,8 +3744,8 @@ const Za = ["for"], za = {
3744
3744
  tooltipPlacement: "left",
3745
3745
  onClick: T
3746
3746
  }, {
3747
- default: Me(() => X[2] || (X[2] = [
3748
- Ve("Оновити дані ", -1)
3747
+ default: $e(() => X[2] || (X[2] = [
3748
+ ke("Оновити дані ", -1)
3749
3749
  ])),
3750
3750
  _: 1,
3751
3751
  __: [2]
@@ -3830,10 +3830,10 @@ const Za = ["for"], za = {
3830
3830
  }, [
3831
3831
  De(h.$slots, "label", {}, () => [
3832
3832
  De(h.$slots, "default", {}, () => [
3833
- Ve(A(h.label), 1)
3833
+ ke(E(h.label), 1)
3834
3834
  ])
3835
3835
  ])
3836
- ], 2)) : O("", !0)
3836
+ ], 2)) : N("", !0)
3837
3837
  ], 10, S3));
3838
3838
  }
3839
3839
  });
@@ -3936,7 +3936,7 @@ function B3(n, t, a, e) {
3936
3936
  f.value = !1, e != null && e.value && (u.value = e.value.filter((B) => C(B) !== ae)), ce(W, !1);
3937
3937
  return;
3938
3938
  }
3939
- f.value && S || (S && !fe ? u.value.push(W) : !S && fe && (u.value = u.value.filter((B) => C(B) !== ae)), n.selectOnClickRow && D === void 0 && ne(S ? W : null), ce(W, S));
3939
+ f.value && S || (S && !fe ? u.value.push(W) : !S && fe && (u.value = u.value.filter((B) => C(B) !== ae)), n.selectOnClickRow && D === void 0 && oe(S ? W : null), ce(W, S));
3940
3940
  }, P = () => {
3941
3941
  switch (T()) {
3942
3942
  case "none":
@@ -3961,7 +3961,7 @@ function B3(n, t, a, e) {
3961
3961
  f.value = !0, e != null && e.value ? u.value = [...e.value] : u.value = [...t.value], ce(void 0, void 0, !0);
3962
3962
  }, R = () => {
3963
3963
  u.value = [], f.value = !1, p.value = null, ce();
3964
- }, ne = (W) => {
3964
+ }, oe = (W) => {
3965
3965
  const D = p.value;
3966
3966
  p.value = W, a("current-change", {
3967
3967
  currentRow: p.value,
@@ -3978,7 +3978,7 @@ function B3(n, t, a, e) {
3978
3978
  };
3979
3979
  a("selection-change", fe);
3980
3980
  };
3981
- return ye(
3981
+ return Me(
3982
3982
  () => n.defaultSelection,
3983
3983
  (W) => {
3984
3984
  W != null && W.length && (u.value = [...W]);
@@ -3994,7 +3994,7 @@ function B3(n, t, a, e) {
3994
3994
  toggleRowSelection: U,
3995
3995
  toggleAllSelection: P,
3996
3996
  clearSelection: R,
3997
- setCurrentRow: ne,
3997
+ setCurrentRow: oe,
3998
3998
  getSelectionRows: re,
3999
3999
  setSelectionRows: se,
4000
4000
  selectAbsolutelyAll: X
@@ -4083,7 +4083,7 @@ const A3 = (n, t, a = "asc") => {
4083
4083
  });
4084
4084
  const R = (D) => {
4085
4085
  e.disabled || (r("click", D), e.trigger === "click" && P());
4086
- }, ne = () => {
4086
+ }, oe = () => {
4087
4087
  e.trigger === "hover" && (C.value = !0, T(), g());
4088
4088
  }, re = () => {
4089
4089
  e.trigger === "hover" && (C.value = !1, j());
@@ -4115,7 +4115,7 @@ const A3 = (n, t, a = "asc") => {
4115
4115
  ref: u,
4116
4116
  class: "vt-dropdown",
4117
4117
  onClick: R,
4118
- onMouseenter: ne,
4118
+ onMouseenter: oe,
4119
4119
  onMouseleave: re
4120
4120
  }, [
4121
4121
  o("div", {
@@ -4125,7 +4125,7 @@ const A3 = (n, t, a = "asc") => {
4125
4125
  }, [
4126
4126
  De(D.$slots, "default")
4127
4127
  ], 512),
4128
- z(_) && z(l) ? (s(), _e(ot, {
4128
+ Z(_) && Z(l) ? (s(), _e(ot, {
4129
4129
  key: 0,
4130
4130
  to: "body"
4131
4131
  }, [
@@ -4136,12 +4136,12 @@ const A3 = (n, t, a = "asc") => {
4136
4136
  class: "vt-dropdown-menu",
4137
4137
  onMouseenter: se,
4138
4138
  onMouseleave: ce,
4139
- onClick: ae[0] || (ae[0] = xe(() => {
4139
+ onClick: ae[0] || (ae[0] = Ve(() => {
4140
4140
  }, ["stop"]))
4141
4141
  }, [
4142
4142
  De(D.$slots, "dropdown")
4143
4143
  ], 36)
4144
- ])) : O("", !0)
4144
+ ])) : N("", !0)
4145
4145
  ], 544));
4146
4146
  }
4147
4147
  }), yt = /* @__PURE__ */ we({
@@ -4169,7 +4169,7 @@ const A3 = (n, t, a = "asc") => {
4169
4169
  p.icon ? (s(), i("i", {
4170
4170
  key: 0,
4171
4171
  class: q([p.icon, "vt-dropdown-item__icon"])
4172
- }, null, 2)) : O("", !0),
4172
+ }, null, 2)) : N("", !0),
4173
4173
  De(p.$slots, "default")
4174
4174
  ], 2));
4175
4175
  }
@@ -4273,7 +4273,7 @@ const Xe = new j3(), F3 = {
4273
4273
  return a.columnsSelector.forEach((B) => {
4274
4274
  if (B.name === "removed")
4275
4275
  return;
4276
- const Y = B.columns.map((ee) => ee.prop), le = r.value.filter((ee) => Y.includes(ee.prop));
4276
+ const O = B.columns.map((ee) => ee.prop), le = r.value.filter((ee) => O.includes(ee.prop));
4277
4277
  le.length === 0 ? S[B.name] = { checked: !1, indeterminate: !1 } : le.length === B.columns.length ? S[B.name] = { checked: !0, indeterminate: !1 } : S[B.name] = { checked: !1, indeterminate: !0 };
4278
4278
  }), S;
4279
4279
  }), h = x(() => a.columnsSelector.filter((S) => S.name !== "removed")), _ = (S) => S.pinnedLeft || S.pinnedRight, l = (S) => !_(S), $ = () => {
@@ -4281,30 +4281,30 @@ const Xe = new j3(), F3 = {
4281
4281
  let B = -1;
4282
4282
  for (let le = 0; le < S.length; le++)
4283
4283
  S[le].pinnedLeft && (B = le);
4284
- let Y = S.length;
4284
+ let O = S.length;
4285
4285
  for (let le = 0; le < S.length; le++)
4286
4286
  if (S[le].pinnedRight) {
4287
- Y = le;
4287
+ O = le;
4288
4288
  break;
4289
4289
  }
4290
4290
  return {
4291
4291
  minIndex: B + 1,
4292
- maxIndex: Y - 1
4292
+ maxIndex: O - 1
4293
4293
  };
4294
4294
  }, g = (S) => {
4295
4295
  const B = $();
4296
4296
  return !(S < B.minIndex || S > B.maxIndex + 1);
4297
4297
  }, U = (S, B) => {
4298
- const Y = r.value[B];
4299
- if (!l(Y)) {
4298
+ const O = r.value[B];
4299
+ if (!l(O)) {
4300
4300
  S.preventDefault();
4301
4301
  return;
4302
4302
  }
4303
- p.value = B, S.dataTransfer && (S.dataTransfer.effectAllowed = "move", S.dataTransfer.setData("text/plain", Y.prop)), document.body.style.cursor = "grabbing";
4303
+ p.value = B, S.dataTransfer && (S.dataTransfer.effectAllowed = "move", S.dataTransfer.setData("text/plain", O.prop)), document.body.style.cursor = "grabbing";
4304
4304
  }, P = (S, B) => {
4305
4305
  if (p.value === -1) return;
4306
4306
  S.preventDefault();
4307
- const Y = S.currentTarget.getBoundingClientRect(), le = S.clientY, ee = Y.top + Y.height / 2;
4307
+ const O = S.currentTarget.getBoundingClientRect(), le = S.clientY, ee = O.top + O.height / 2;
4308
4308
  let Q = B, ue = "before";
4309
4309
  le < ee ? (Q = B, ue = "before") : (Q = B + 1, ue = "after"), p.value < Q && Q--, g(Q) ? (f.value = B, C.value = ue, S.dataTransfer.dropEffect = "move") : (f.value = -1, S.dataTransfer.dropEffect = "none");
4310
4310
  }, T = () => {
@@ -4316,7 +4316,7 @@ const Xe = new j3(), F3 = {
4316
4316
  R();
4317
4317
  return;
4318
4318
  }
4319
- const Y = S.currentTarget.getBoundingClientRect(), le = S.clientY, ee = Y.top + Y.height / 2;
4319
+ const O = S.currentTarget.getBoundingClientRect(), le = S.clientY, ee = O.top + O.height / 2;
4320
4320
  let Q = B;
4321
4321
  if (le >= ee && (Q = B + 1), p.value < Q && Q--, !g(Q) || Q === p.value) {
4322
4322
  R();
@@ -4328,7 +4328,7 @@ const Xe = new j3(), F3 = {
4328
4328
  R();
4329
4329
  }, R = () => {
4330
4330
  p.value = -1, f.value = -1, C.value = "before", document.body.style.cursor = "";
4331
- }, ne = (S) => {
4331
+ }, oe = (S) => {
4332
4332
  const B = ["vt-columns-selector__panel-item"];
4333
4333
  return p.value === S && B.push("vt-columns-selector__panel-item--dragging"), f.value === S && C.value === "before" && B.push("vt-columns-selector__panel-item--drop-before"), f.value === S && C.value === "after" && B.push("vt-columns-selector__panel-item--drop-after"), B;
4334
4334
  }, re = () => {
@@ -4337,28 +4337,28 @@ const Xe = new j3(), F3 = {
4337
4337
  });
4338
4338
  }, se = (S, B) => {
4339
4339
  if (B)
4340
- r.value.some((Y) => Y.prop === S.prop) || r.value.push({ ...S });
4340
+ r.value.some((O) => O.prop === S.prop) || r.value.push({ ...S });
4341
4341
  else {
4342
4342
  if (_(S))
4343
4343
  return;
4344
- r.value = r.value.filter((Y) => Y.prop !== S.prop);
4344
+ r.value = r.value.filter((O) => O.prop !== S.prop);
4345
4345
  }
4346
4346
  }, ce = (S, B) => {
4347
4347
  if (B)
4348
- S.columns.forEach((Y) => {
4349
- r.value.some((le) => le.prop === Y.prop) || r.value.push({ ...Y });
4348
+ S.columns.forEach((O) => {
4349
+ r.value.some((le) => le.prop === O.prop) || r.value.push({ ...O });
4350
4350
  });
4351
4351
  else {
4352
- const Y = [];
4352
+ const O = [];
4353
4353
  S.columns.forEach((le) => {
4354
4354
  const ee = r.value.find((Q) => Q.prop === le.prop);
4355
- ee && !_(ee) && Y.push(ee);
4355
+ ee && !_(ee) && O.push(ee);
4356
4356
  }), r.value = r.value.filter(
4357
- (le) => !Y.some((ee) => ee.prop === le.prop)
4357
+ (le) => !O.some((ee) => ee.prop === le.prop)
4358
4358
  );
4359
4359
  }
4360
4360
  }, de = (S) => r.value.some((B) => B.prop === S.prop), W = (S) => {
4361
- const B = r.value.find((Y) => Y.prop === S.prop);
4361
+ const B = r.value.find((O) => O.prop === S.prop);
4362
4362
  return !B || !_(B);
4363
4363
  }, D = (S) => {
4364
4364
  u.value.has(S) ? u.value.delete(S) : u.value.add(S);
@@ -4372,10 +4372,10 @@ const Xe = new j3(), F3 = {
4372
4372
  }), (S, B) => (s(), i("div", Z3, [
4373
4373
  o("div", z3, [
4374
4374
  o("div", Y3, [
4375
- (s(!0), i(oe, null, he(r.value, (Y, le) => (s(), i("div", {
4376
- key: Y.prop,
4377
- class: q(ne(le)),
4378
- draggable: l(Y),
4375
+ (s(!0), i(ne, null, he(r.value, (O, le) => (s(), i("div", {
4376
+ key: O.prop,
4377
+ class: q(oe(le)),
4378
+ draggable: l(O),
4379
4379
  onDragstart: (ee) => U(ee, le),
4380
4380
  onDragover: (ee) => P(ee, le),
4381
4381
  onDragleave: T,
@@ -4383,47 +4383,47 @@ const Xe = new j3(), F3 = {
4383
4383
  onDragend: X
4384
4384
  }, [
4385
4385
  K(pe, {
4386
- name: l(Y) ? "columnsMove" : "freeze",
4387
- class: q(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": l(Y) }])
4386
+ name: l(O) ? "columnsMove" : "freeze",
4387
+ class: q(["vt-columns-selector__panel-item-icon", { "vt-columns-selector__panel-item-icon--draggable": l(O) }])
4388
4388
  }, null, 8, ["name", "class"]),
4389
4389
  K(Je, {
4390
- label: Y.label,
4390
+ label: O.label,
4391
4391
  checked: !0,
4392
- disabled: _(Y),
4393
- onChange: (ee) => se(Y, ee),
4394
- onClick: B[0] || (B[0] = xe(() => {
4392
+ disabled: _(O),
4393
+ onChange: (ee) => se(O, ee),
4394
+ onClick: B[0] || (B[0] = Ve(() => {
4395
4395
  }, ["stop"]))
4396
4396
  }, null, 8, ["label", "disabled", "onChange"]),
4397
- _(Y) ? (s(), i("span", N3, "pinned")) : O("", !0)
4397
+ _(O) ? (s(), i("span", N3, "pinned")) : N("", !0)
4398
4398
  ], 42, O3))), 128))
4399
4399
  ]),
4400
4400
  o("div", W3, [
4401
- (s(!0), i(oe, null, he(h.value, (Y) => {
4401
+ (s(!0), i(ne, null, he(h.value, (O) => {
4402
4402
  var le, ee;
4403
4403
  return s(), i("div", {
4404
- key: Y.name,
4404
+ key: O.name,
4405
4405
  class: "vt-columns-selector__group"
4406
4406
  }, [
4407
4407
  o("div", {
4408
4408
  class: "vt-columns-selector__group-header",
4409
- onClick: (Q) => D(Y.name)
4409
+ onClick: (Q) => D(O.name)
4410
4410
  }, [
4411
4411
  K(Je, {
4412
- label: Y.label,
4413
- checked: ((le = v.value[Y.name]) == null ? void 0 : le.checked) || !1,
4414
- indeterminate: ((ee = v.value[Y.name]) == null ? void 0 : ee.indeterminate) || !1,
4415
- onChange: (Q) => ce(Y, Q),
4416
- onClick: B[1] || (B[1] = xe(() => {
4412
+ label: O.label,
4413
+ checked: ((le = v.value[O.name]) == null ? void 0 : le.checked) || !1,
4414
+ indeterminate: ((ee = v.value[O.name]) == null ? void 0 : ee.indeterminate) || !1,
4415
+ onChange: (Q) => ce(O, Q),
4416
+ onClick: B[1] || (B[1] = Ve(() => {
4417
4417
  }, ["stop"]))
4418
4418
  }, null, 8, ["label", "checked", "indeterminate", "onChange"]),
4419
- Y.icon ? (s(), _e(pe, {
4419
+ O.icon ? (s(), _e(pe, {
4420
4420
  key: 0,
4421
- name: Y.icon,
4421
+ name: O.icon,
4422
4422
  class: "vt-columns-selector__group-icon"
4423
- }, null, 8, ["name"])) : O("", !0)
4423
+ }, null, 8, ["name"])) : N("", !0)
4424
4424
  ], 8, q3),
4425
- u.value.has(Y.name) ? (s(), i("div", U3, [
4426
- (s(!0), i(oe, null, he(Y.columns, (Q) => (s(), i("div", {
4425
+ u.value.has(O.name) ? (s(), i("div", U3, [
4426
+ (s(!0), i(ne, null, he(O.columns, (Q) => (s(), i("div", {
4427
4427
  key: Q.prop,
4428
4428
  class: "vt-columns-selector__group-column"
4429
4429
  }, [
@@ -4433,17 +4433,17 @@ const Xe = new j3(), F3 = {
4433
4433
  disabled: !W(Q),
4434
4434
  onChange: (ue) => se(Q, ue)
4435
4435
  }, null, 8, ["label", "checked", "disabled", "onChange"]),
4436
- W(Q) ? O("", !0) : (s(), i("span", K3, " (закріплена) "))
4436
+ W(Q) ? N("", !0) : (s(), i("span", K3, " (закріплена) "))
4437
4437
  ]))), 128))
4438
- ])) : O("", !0)
4438
+ ])) : N("", !0)
4439
4439
  ]);
4440
4440
  }), 128))
4441
4441
  ])
4442
4442
  ]),
4443
4443
  o("div", X3, [
4444
4444
  K(Qe, { onClick: fe }, {
4445
- default: Me(() => B[2] || (B[2] = [
4446
- Ve("Скасувати", -1)
4445
+ default: $e(() => B[2] || (B[2] = [
4446
+ ke("Скасувати", -1)
4447
4447
  ])),
4448
4448
  _: 1,
4449
4449
  __: [2]
@@ -4452,8 +4452,8 @@ const Xe = new j3(), F3 = {
4452
4452
  type: "primary",
4453
4453
  onClick: ae
4454
4454
  }, {
4455
- default: Me(() => B[3] || (B[3] = [
4456
- Ve("Зберегти", -1)
4455
+ default: $e(() => B[3] || (B[3] = [
4456
+ ke("Зберегти", -1)
4457
4457
  ])),
4458
4458
  _: 1,
4459
4459
  __: [3]
@@ -4501,7 +4501,7 @@ const Xe = new j3(), F3 = {
4501
4501
  if (!_.has(P)) {
4502
4502
  let j;
4503
4503
  (T = a.columnsSelector) == null || T.forEach((X) => {
4504
- const R = X.columns.find((ne) => ne.prop === P);
4504
+ const R = X.columns.find((oe) => oe.prop === P);
4505
4505
  R && (j = R);
4506
4506
  }), j || (j = a.allColumns.find((X) => X.prop === P)), j && $.push(j);
4507
4507
  }
@@ -4530,18 +4530,18 @@ const Xe = new j3(), F3 = {
4530
4530
  placement: "bottom-start",
4531
4531
  onCommand: u
4532
4532
  }, {
4533
- dropdown: Me(() => [
4533
+ dropdown: $e(() => [
4534
4534
  K(yt, { command: "pin" }, {
4535
- default: Me(() => [
4535
+ default: $e(() => [
4536
4536
  K(pe, {
4537
4537
  name: r() ? "unfreeze" : "freeze"
4538
4538
  }, null, 8, ["name"]),
4539
- o("div", null, A(r() ? "Розморозити" : "Заморозити"), 1)
4539
+ o("div", null, E(r() ? "Розморозити" : "Заморозити"), 1)
4540
4540
  ]),
4541
4541
  _: 1
4542
4542
  }),
4543
4543
  K(yt, { command: "columns" }, {
4544
- default: Me(() => [
4544
+ default: $e(() => [
4545
4545
  K(pe, { name: "columnInsert" }),
4546
4546
  _[0] || (_[0] = o("div", null, "Колонки", -1))
4547
4547
  ]),
@@ -4549,7 +4549,7 @@ const Xe = new j3(), F3 = {
4549
4549
  __: [0]
4550
4550
  })
4551
4551
  ]),
4552
- default: Me(() => [
4552
+ default: $e(() => [
4553
4553
  o("div", G3, [
4554
4554
  K(pe, { name: "listBullet" })
4555
4555
  ])
@@ -4596,23 +4596,23 @@ const Xe = new j3(), F3 = {
4596
4596
  setup(n, { expose: t, emit: a }) {
4597
4597
  const e = n, r = a, u = s1(n, "columns"), p = L({}), f = L(), C = Wt([]), v = L(e.defaultSort || null), h = x(() => R3(e.data || [], v.value, C)), _ = x(() => u.value !== void 0), l = x(() => e.data && e.data.length > 0), $ = L(!1), g = L(0);
4598
4598
  let U;
4599
- const P = (E, N) => e.rowKey && E[e.rowKey] != null ? String(E[e.rowKey]) : String(N), T = () => {
4599
+ const P = (A, Y) => e.rowKey && A[e.rowKey] != null ? String(A[e.rowKey]) : String(Y), T = () => {
4600
4600
  _.value && u.value ? C.splice(0, C.length, ...u.value) : e.columns && e.columns.length > 0 && C.splice(0, C.length, ...e.columns);
4601
4601
  };
4602
- ye(
4602
+ Me(
4603
4603
  () => u.value,
4604
- (E) => {
4605
- E && _.value && C.splice(0, C.length, ...E);
4604
+ (A) => {
4605
+ A && _.value && C.splice(0, C.length, ...A);
4606
4606
  },
4607
4607
  { deep: !0 }
4608
- ), ye(
4608
+ ), Me(
4609
4609
  () => e.columns,
4610
- (E) => {
4611
- E && !_.value && C.splice(0, C.length, ...E);
4610
+ (A) => {
4611
+ A && !_.value && C.splice(0, C.length, ...A);
4612
4612
  },
4613
4613
  { deep: !0 }
4614
4614
  ), ut("vt-table-columns", C);
4615
- const { sortedColumns: j, getDefaultColumnWidth: X, getStickyOffset: R } = H3(C), { getTableWrapperStyle: ne, getColumnStyle: re, getHeaderStyle: se, getFooterStyle: ce } = T3(e), { onMouseDown: de } = I3(), W = x(() => e.allData || e.data), D = e.selectable ? B3(e, h, r, W) : null, ae = () => ({
4615
+ const { sortedColumns: j, getDefaultColumnWidth: X, getStickyOffset: R } = H3(C), { getTableWrapperStyle: oe, getColumnStyle: re, getHeaderStyle: se, getFooterStyle: ce } = T3(e), { onMouseDown: de } = I3(), W = x(() => e.allData || e.data), D = e.selectable ? B3(e, h, r, W) : null, ae = () => ({
4616
4616
  width: `${wt}px`,
4617
4617
  minWidth: `${wt}px`,
4618
4618
  maxWidth: `${wt}px`,
@@ -4620,29 +4620,29 @@ const Xe = new j3(), F3 = {
4620
4620
  position: "sticky",
4621
4621
  zIndex: 10
4622
4622
  }), fe = () => {
4623
- const E = ae();
4623
+ const A = ae();
4624
4624
  return e.maxHeight ? {
4625
- ...E,
4625
+ ...A,
4626
4626
  top: "0px",
4627
4627
  zIndex: 12
4628
- } : E;
4628
+ } : A;
4629
4629
  }, S = () => {
4630
- const E = ae();
4630
+ const A = ae();
4631
4631
  return e.maxHeight ? {
4632
- ...E,
4632
+ ...A,
4633
4633
  bottom: "0px",
4634
4634
  zIndex: 12
4635
- } : E;
4635
+ } : A;
4636
4636
  }, B = () => {
4637
4637
  if (!f.value || $.value) return;
4638
- const E = f.value, N = E.scrollTop, te = E.scrollHeight, G = E.clientHeight, w = 30;
4638
+ const A = f.value, Y = A.scrollTop, te = A.scrollHeight, G = A.clientHeight, w = 30;
4639
4639
  U && clearTimeout(U), U = setTimeout(() => {
4640
- const d = N - g.value > 1, m = te - N - G <= w, I = te - N - G <= 5;
4641
- g.value = N, d && (m || I) && ($.value = !0, r("infinity-scroll"), setTimeout(() => {
4640
+ const d = Y - g.value > 1, m = te - Y - G <= w, I = te - Y - G <= 5;
4641
+ g.value = Y, d && (m || I) && ($.value = !0, r("infinity-scroll"), setTimeout(() => {
4642
4642
  $.value = !1;
4643
4643
  }, 1e3));
4644
4644
  }, 50);
4645
- }, Y = () => {
4645
+ }, O = () => {
4646
4646
  $.value = !1;
4647
4647
  };
4648
4648
  Ze(() => {
@@ -4650,88 +4650,88 @@ const Xe = new j3(), F3 = {
4650
4650
  }), Ge(() => {
4651
4651
  U && clearTimeout(U), f.value && f.value.removeEventListener("scroll", B);
4652
4652
  });
4653
- const le = (E, N) => {
4654
- P3(E, N, (te) => {
4653
+ const le = (A, Y) => {
4654
+ P3(A, Y, (te) => {
4655
4655
  var G, w;
4656
- ((G = v.value) == null ? void 0 : G.prop) === E.prop && v.value.direction === N ? v.value = null : v.value = te, r("sort-change", {
4657
- column: E,
4656
+ ((G = v.value) == null ? void 0 : G.prop) === A.prop && v.value.direction === Y ? v.value = null : v.value = te, r("sort-change", {
4657
+ column: A,
4658
4658
  direction: ((w = v.value) == null ? void 0 : w.direction) || null,
4659
- prop: E.prop,
4659
+ prop: A.prop,
4660
4660
  sortedData: h.value
4661
4661
  });
4662
4662
  });
4663
- }, ee = (E, N) => {
4663
+ }, ee = (A, Y) => {
4664
4664
  const te = {
4665
- pinnedLeft: N === "left",
4666
- pinnedRight: N === "right"
4665
+ pinnedLeft: Y === "left",
4666
+ pinnedRight: Y === "right"
4667
4667
  };
4668
- ue(E.prop, te), r("column-pin", { column: { ...E, ...te }, position: N });
4669
- }, Q = (E) => {
4670
- C.splice(0, C.length, ...E), _.value && (u.value = [...E]), r("columns-change", [...E]);
4671
- }, ue = (E, N) => {
4672
- const te = C.findIndex((G) => G.prop === E);
4668
+ ue(A.prop, te), r("column-pin", { column: { ...A, ...te }, position: Y });
4669
+ }, Q = (A) => {
4670
+ C.splice(0, C.length, ...A), _.value && (u.value = [...A]), r("columns-change", [...A]);
4671
+ }, ue = (A, Y) => {
4672
+ const te = C.findIndex((G) => G.prop === A);
4673
4673
  if (te !== -1) {
4674
- if (Object.assign(C[te], N), _.value && u.value) {
4675
- const G = u.value.findIndex((w) => w.prop === E);
4674
+ if (Object.assign(C[te], Y), _.value && u.value) {
4675
+ const G = u.value.findIndex((w) => w.prop === A);
4676
4676
  if (G !== -1) {
4677
4677
  const w = [...u.value];
4678
- w[G] = { ...w[G], ...N }, u.value = w;
4678
+ w[G] = { ...w[G], ...Y }, u.value = w;
4679
4679
  }
4680
4680
  }
4681
4681
  r("columns-change", [...C]);
4682
4682
  }
4683
- }, ze = (E, N, te) => {
4684
- r("row-click", { row: E, column: N, event: te }), e.highlightCurrentRow && D && D.setCurrentRow(E);
4685
- }, Se = (E, N, te) => {
4686
- te.stopPropagation(), D && D.toggleRowSelection(N, E);
4687
- }, Ee = (E, N) => {
4688
- N.stopPropagation(), D && D.toggleAllSelection();
4689
- }, ke = (E, N) => {
4690
- E && (p.value[N] = E);
4691
- }, Ne = (E, N) => {
4692
- const te = N.width || X();
4693
- de(E, N, X, (G) => {
4694
- ue(N.prop, { width: G }), r("column-resize", {
4695
- column: { ...N, width: G },
4683
+ }, ze = (A, Y, te) => {
4684
+ r("row-click", { row: A, column: Y, event: te }), e.highlightCurrentRow && D && D.setCurrentRow(A);
4685
+ }, Se = (A, Y, te) => {
4686
+ te.stopPropagation(), D && D.toggleRowSelection(Y, A);
4687
+ }, Ee = (A, Y) => {
4688
+ Y.stopPropagation(), D && D.toggleAllSelection();
4689
+ }, be = (A, Y) => {
4690
+ A && (p.value[Y] = A);
4691
+ }, Ne = (A, Y) => {
4692
+ const te = Y.width || X();
4693
+ de(A, Y, X, (G) => {
4694
+ ue(Y.prop, { width: G }), r("column-resize", {
4695
+ column: { ...Y, width: G },
4696
4696
  width: G,
4697
4697
  oldWidth: te
4698
4698
  });
4699
4699
  });
4700
- }, We = (E, N) => re(E, N, R, X), qe = (E, N) => se(E, N, R, X), Ce = (E, N) => ce(E, N, R, X), k = (E, N) => {
4701
- if (!N || !N.prop) return "";
4702
- const te = E[N.prop];
4700
+ }, We = (A, Y) => re(A, Y, R, X), qe = (A, Y) => se(A, Y, R, X), Ce = (A, Y) => ce(A, Y, R, X), k = (A, Y) => {
4701
+ if (!Y || !Y.prop) return "";
4702
+ const te = A[Y.prop];
4703
4703
  return te == null ? "" : String(te);
4704
4704
  }, F = x(() => {
4705
4705
  if (!e.showSummary || !l.value) return {};
4706
- const E = C;
4706
+ const A = C;
4707
4707
  if (typeof e.summaryMethod == "function") {
4708
- const N = e.summaryMethod({ columns: E, data: h.value });
4709
- return E.reduce(
4710
- (te, G, w) => (te[G.prop] = N[w], te),
4708
+ const Y = e.summaryMethod({ columns: A, data: h.value });
4709
+ return A.reduce(
4710
+ (te, G, w) => (te[G.prop] = Y[w], te),
4711
4711
  {}
4712
4712
  );
4713
4713
  }
4714
- return E.reduce(
4715
- (N, te) => {
4714
+ return A.reduce(
4715
+ (Y, te) => {
4716
4716
  const G = h.value.map((w) => w[te.prop]);
4717
- return N[te.prop] = G.every((w) => typeof w == "number") ? G.reduce((w, c) => w + c, 0) : "", N;
4717
+ return Y[te.prop] = G.every((w) => typeof w == "number") ? G.reduce((w, c) => w + c, 0) : "", Y;
4718
4718
  },
4719
4719
  {}
4720
4720
  );
4721
- }), Z = x(() => e.showSummary && l.value), be = (E, N) => {
4722
- D && D.toggleRowSelection(E, N);
4721
+ }), z = x(() => e.showSummary && l.value), ye = (A, Y) => {
4722
+ D && D.toggleRowSelection(A, Y);
4723
4723
  }, Pe = () => {
4724
4724
  D && D.toggleAllSelection();
4725
4725
  }, Te = () => {
4726
4726
  D && D.selectAbsolutelyAll();
4727
4727
  }, Re = () => {
4728
4728
  D && D.clearSelection();
4729
- }, je = () => D ? D.getSelectionRows() : [], Ae = (E) => {
4730
- D && D.setSelectionRows(E);
4731
- }, Ue = (E, N) => {
4729
+ }, je = () => D ? D.getSelectionRows() : [], Ae = (A) => {
4730
+ D && D.setSelectionRows(A);
4731
+ }, Ue = (A, Y) => {
4732
4732
  if (!e.rowHighlight) return [];
4733
4733
  try {
4734
- const te = e.rowHighlight(E, N);
4734
+ const te = e.rowHighlight(A, Y);
4735
4735
  if (!te) return [];
4736
4736
  const G = [];
4737
4737
  return (te.type !== "custom" || !te.className) && G.push(`vt-table__row--highlight-${te.type}`), te.className && G.push(te.className), G;
@@ -4742,188 +4742,193 @@ const Xe = new j3(), F3 = {
4742
4742
  return Ze(() => {
4743
4743
  T();
4744
4744
  }), t({
4745
- toggleRowSelection: be,
4745
+ toggleRowSelection: ye,
4746
4746
  toggleAllSelection: Pe,
4747
4747
  selectAbsolutelyAll: Te,
4748
4748
  clearSelection: Re,
4749
4749
  getSelectionRows: je,
4750
4750
  setSelectionRows: Ae,
4751
- resetInfinityScroll: Y
4752
- }), (E, N) => {
4751
+ resetInfinityScroll: O
4752
+ }), (A, Y) => {
4753
4753
  var G, w, c, d;
4754
4754
  const te = xt("tooltip");
4755
- return s(), i("div", {
4756
- ref_key: "tableWrapperRef",
4757
- ref: f,
4758
- style: Be(z(ne)()),
4759
- class: "vt-table-wrapper",
4760
- onScroll: B
4761
- }, [
4762
- De(E.$slots, "default"),
4763
- o("table", e2, [
4764
- e.hideHeader ? O("", !0) : (s(), i("thead", t2, [
4765
- o("tr", null, [
4766
- e.selectable ? (s(), i("th", {
4767
- key: 0,
4768
- class: q([{
4769
- "vt-table__th--sticky": e.maxHeight,
4770
- "vt-table__th--pinned-left": !0
4771
- }, "vt-table__th vt-table__th--selection"]),
4772
- style: Be(fe())
4773
- }, [
4774
- o("div", n2, [
4775
- K(Je, {
4776
- checked: (G = z(D)) == null ? void 0 : G.isAllSelected.value,
4777
- indeterminate: (w = z(D)) == null ? void 0 : w.isIndeterminate.value,
4778
- "is-double": (d = (c = z(D)) == null ? void 0 : c.isDoubleCheck) == null ? void 0 : d.value,
4779
- onChange: Ee
4780
- }, null, 8, ["checked", "indeterminate", "is-double"])
4781
- ])
4782
- ], 6)) : O("", !0),
4783
- (s(!0), i(oe, null, he(z(j), (m, I) => (s(), i("th", {
4784
- key: m.prop,
4785
- ref_for: !0,
4786
- ref: (J) => ke(J, m.prop),
4787
- class: q([
4788
- "vt-table__th",
4789
- {
4790
- "vt-table__th--sticky": e.maxHeight,
4791
- "vt-table__th--pinned-left": m.pinnedLeft,
4792
- "vt-table__th--pinned-right": m.pinnedRight,
4793
- "vt-table__th--sortable": m.sortable
4794
- }
4795
- ]),
4796
- style: Be(qe(m, I))
4797
- }, [
4798
- o("div", o2, [
4799
- o("div", l2, A(m.label), 1),
4800
- m.sortable ? (s(), i("div", s2, [
4801
- K(pe, {
4802
- class: q(z(Bt)(m, v.value).asc),
4803
- name: "arrowTop",
4804
- onClick: xe((J) => le(m, "asc"), ["stop"])
4805
- }, null, 8, ["class", "onClick"]),
4806
- K(pe, {
4807
- class: q(z(Bt)(m, v.value).desc),
4808
- name: "arrowDown",
4809
- onClick: xe((J) => le(m, "desc"), ["stop"])
4810
- }, null, 8, ["class", "onClick"])
4811
- ])) : O("", !0),
4812
- m.actionColumn ? (s(), _e(J3, {
4813
- key: 1,
4814
- "all-columns": z(j),
4815
- column: m,
4816
- columnsSelector: e.columnsSelector,
4817
- onPin: ee,
4818
- onUpdateColumns: Q
4819
- }, null, 8, ["all-columns", "column", "columnsSelector"])) : O("", !0)
4820
- ]),
4821
- o("div", {
4822
- "data-resizer": m.prop,
4823
- class: "vt-table__resizer",
4824
- onMousedown: (J) => Ne(J, m)
4825
- }, null, 40, r2)
4826
- ], 6))), 128))
4827
- ])
4828
- ])),
4829
- o("tbody", null, [
4830
- l.value ? (s(!0), i(oe, { key: 1 }, he(h.value, (m, I) => {
4831
- var J, $e, ge;
4832
- return s(), i("tr", {
4833
- key: P(m, I),
4834
- class: q([
4835
- "vt-table__row",
4836
- {
4837
- "vt-table__row--selected": (J = z(D)) == null ? void 0 : J.isRowSelected(m),
4838
- "vt-table__row--current": (($e = z(D)) == null ? void 0 : $e.currentRow.value) === m,
4839
- "vt-table__row--clickable": e.selectOnClickRow || e.highlightCurrentRow
4840
- },
4841
- ...Ue(m, I)
4842
- ]),
4843
- onClick: (ve) => ze(m, z(j)[0], ve)
4844
- }, [
4845
- e.selectable ? (s(), i("td", {
4755
+ return s(), i(ne, null, [
4756
+ ke(E(C) + " ", 1),
4757
+ Y[2] || (Y[2] = o("br", null, null, -1)),
4758
+ ke(" " + E(Z(j)) + " ", 1),
4759
+ o("div", {
4760
+ ref_key: "tableWrapperRef",
4761
+ ref: f,
4762
+ style: Be(Z(oe)()),
4763
+ class: "vt-table-wrapper",
4764
+ onScroll: B
4765
+ }, [
4766
+ De(A.$slots, "default"),
4767
+ o("table", e2, [
4768
+ e.hideHeader ? N("", !0) : (s(), i("thead", t2, [
4769
+ o("tr", null, [
4770
+ e.selectable ? (s(), i("th", {
4846
4771
  key: 0,
4847
4772
  class: q([{
4848
- "vt-table__td--pinned-left": !0
4849
- }, "vt-table__td vt-table__td--selection"]),
4850
- style: Be(ae())
4773
+ "vt-table__th--sticky": e.maxHeight,
4774
+ "vt-table__th--pinned-left": !0
4775
+ }, "vt-table__th vt-table__th--selection"]),
4776
+ style: Be(fe())
4851
4777
  }, [
4852
- o("div", d2, [
4778
+ o("div", n2, [
4853
4779
  K(Je, {
4854
- checked: (ge = z(D)) == null ? void 0 : ge.isRowSelected(m),
4855
- onChange: (ve, Le) => Se(ve, m, Le)
4856
- }, null, 8, ["checked", "onChange"])
4780
+ checked: (G = Z(D)) == null ? void 0 : G.isAllSelected.value,
4781
+ indeterminate: (w = Z(D)) == null ? void 0 : w.isIndeterminate.value,
4782
+ "is-double": (d = (c = Z(D)) == null ? void 0 : c.isDoubleCheck) == null ? void 0 : d.value,
4783
+ onChange: Ee
4784
+ }, null, 8, ["checked", "indeterminate", "is-double"])
4857
4785
  ])
4858
- ], 4)) : O("", !0),
4859
- (s(!0), i(oe, null, he(z(j), (ve, Le) => (s(), i("td", {
4860
- key: `${P(m, I)}-${ve.prop}`,
4786
+ ], 6)) : N("", !0),
4787
+ (s(!0), i(ne, null, he(Z(j), (m, I) => (s(), i("th", {
4788
+ key: m.prop,
4861
4789
  ref_for: !0,
4862
- ref: (Ie) => ke(Ie, ve.prop),
4790
+ ref: (J) => be(J, m.prop),
4863
4791
  class: q([
4864
- "vt-table__td",
4792
+ "vt-table__th",
4865
4793
  {
4866
- "vt-table__td--pinned-left": ve.pinnedLeft,
4867
- "vt-table__td--pinned-right": ve.pinnedRight
4794
+ "vt-table__th--sticky": e.maxHeight,
4795
+ "vt-table__th--pinned-left": m.pinnedLeft,
4796
+ "vt-table__th--pinned-right": m.pinnedRight,
4797
+ "vt-table__th--sortable": m.sortable
4868
4798
  }
4869
4799
  ]),
4870
- style: Be(We(ve, Le))
4800
+ style: Be(qe(m, I))
4871
4801
  }, [
4872
- at((s(), i("div", h2, [
4873
- ve.renderSlot ? (s(), _e(ft(() => z(E3)(ve.renderSlot, { row: m, column: ve, value: m[ve.prop], index: I })), { key: 0 })) : (s(), i("span", v2, A(m[ve.prop]), 1))
4874
- ])), [
4875
- [te, ve.showOverflowTooltip ? k(m, ve) : null]
4802
+ o("div", o2, [
4803
+ o("div", l2, E(m.label), 1),
4804
+ m.sortable ? (s(), i("div", s2, [
4805
+ K(pe, {
4806
+ class: q(Z(Bt)(m, v.value).asc),
4807
+ name: "arrowTop",
4808
+ onClick: Ve((J) => le(m, "asc"), ["stop"])
4809
+ }, null, 8, ["class", "onClick"]),
4810
+ K(pe, {
4811
+ class: q(Z(Bt)(m, v.value).desc),
4812
+ name: "arrowDown",
4813
+ onClick: Ve((J) => le(m, "desc"), ["stop"])
4814
+ }, null, 8, ["class", "onClick"])
4815
+ ])) : N("", !0),
4816
+ m.actionColumn ? (s(), _e(J3, {
4817
+ key: 1,
4818
+ "all-columns": Z(j),
4819
+ column: m,
4820
+ columnsSelector: e.columnsSelector,
4821
+ onPin: ee,
4822
+ onUpdateColumns: Q
4823
+ }, null, 8, ["all-columns", "column", "columnsSelector"])) : N("", !0)
4876
4824
  ]),
4877
4825
  o("div", {
4878
- "data-resizer": ve.prop,
4826
+ "data-resizer": m.prop,
4879
4827
  class: "vt-table__resizer",
4880
- onMousedown: (Ie) => Ne(Ie, ve)
4881
- }, null, 40, p2)
4828
+ onMousedown: (J) => Ne(J, m)
4829
+ }, null, 40, r2)
4882
4830
  ], 6))), 128))
4883
- ], 10, c2);
4884
- }), 128)) : (s(), i("tr", i2, [
4885
- o("td", {
4886
- colspan: z(j).length + (e.selectable ? 1 : 0),
4887
- class: "vt-table__empty-cell"
4888
- }, [
4889
- o("div", u2, [
4890
- K(pe, {
4891
- class: "vt-table__empty-icon",
4892
- name: "empty"
4893
- }),
4894
- N[0] || (N[0] = o("span", { class: "vt-table__empty-text" }, "Немає даних!", -1))
4895
- ])
4896
- ], 8, a2)
4897
- ]))
4898
- ]),
4899
- Z.value ? (s(), i("tfoot", f2, [
4900
- o("tr", null, [
4901
- e.selectable ? (s(), i("td", {
4902
- key: 0,
4903
- class: q([{
4904
- "vt-table__td--pinned-left": !0
4905
- }, "vt-table__td"]),
4906
- style: Be(S())
4907
- }, N[1] || (N[1] = [
4908
- o("div", { class: "vt-table__cell-content vt-table__cell-content--summary" }, null, -1)
4909
- ]), 4)) : O("", !0),
4910
- (s(!0), i(oe, null, he(z(j), (m, I) => (s(), i("td", {
4911
- key: m.prop,
4912
- class: q([
4913
- "vt-table__td",
4914
- {
4915
- "vt-table__td--pinned-left": m.pinnedLeft,
4916
- "vt-table__td--pinned-right": m.pinnedRight
4917
- }
4918
- ]),
4919
- style: Be(Ce(m, I))
4920
- }, [
4921
- o("div", m2, A(F.value[m.prop]), 1)
4922
- ], 6))), 128))
4923
- ])
4924
- ])) : O("", !0)
4925
- ])
4926
- ], 36);
4831
+ ])
4832
+ ])),
4833
+ o("tbody", null, [
4834
+ l.value ? (s(!0), i(ne, { key: 1 }, he(h.value, (m, I) => {
4835
+ var J, xe, ge;
4836
+ return s(), i("tr", {
4837
+ key: P(m, I),
4838
+ class: q([
4839
+ "vt-table__row",
4840
+ {
4841
+ "vt-table__row--selected": (J = Z(D)) == null ? void 0 : J.isRowSelected(m),
4842
+ "vt-table__row--current": ((xe = Z(D)) == null ? void 0 : xe.currentRow.value) === m,
4843
+ "vt-table__row--clickable": e.selectOnClickRow || e.highlightCurrentRow
4844
+ },
4845
+ ...Ue(m, I)
4846
+ ]),
4847
+ onClick: (ve) => ze(m, Z(j)[0], ve)
4848
+ }, [
4849
+ e.selectable ? (s(), i("td", {
4850
+ key: 0,
4851
+ class: q([{
4852
+ "vt-table__td--pinned-left": !0
4853
+ }, "vt-table__td vt-table__td--selection"]),
4854
+ style: Be(ae())
4855
+ }, [
4856
+ o("div", d2, [
4857
+ K(Je, {
4858
+ checked: (ge = Z(D)) == null ? void 0 : ge.isRowSelected(m),
4859
+ onChange: (ve, Le) => Se(ve, m, Le)
4860
+ }, null, 8, ["checked", "onChange"])
4861
+ ])
4862
+ ], 4)) : N("", !0),
4863
+ (s(!0), i(ne, null, he(Z(j), (ve, Le) => (s(), i("td", {
4864
+ key: `${P(m, I)}-${ve.prop}`,
4865
+ ref_for: !0,
4866
+ ref: (Ie) => be(Ie, ve.prop),
4867
+ class: q([
4868
+ "vt-table__td",
4869
+ {
4870
+ "vt-table__td--pinned-left": ve.pinnedLeft,
4871
+ "vt-table__td--pinned-right": ve.pinnedRight
4872
+ }
4873
+ ]),
4874
+ style: Be(We(ve, Le))
4875
+ }, [
4876
+ at((s(), i("div", h2, [
4877
+ ve.renderSlot ? (s(), _e(ft(() => Z(E3)(ve.renderSlot, { row: m, column: ve, value: m[ve.prop], index: I })), { key: 0 })) : (s(), i("span", v2, E(m[ve.prop]), 1))
4878
+ ])), [
4879
+ [te, ve.showOverflowTooltip ? k(m, ve) : null]
4880
+ ]),
4881
+ o("div", {
4882
+ "data-resizer": ve.prop,
4883
+ class: "vt-table__resizer",
4884
+ onMousedown: (Ie) => Ne(Ie, ve)
4885
+ }, null, 40, p2)
4886
+ ], 6))), 128))
4887
+ ], 10, c2);
4888
+ }), 128)) : (s(), i("tr", i2, [
4889
+ o("td", {
4890
+ colspan: Z(j).length + (e.selectable ? 1 : 0),
4891
+ class: "vt-table__empty-cell"
4892
+ }, [
4893
+ o("div", u2, [
4894
+ K(pe, {
4895
+ class: "vt-table__empty-icon",
4896
+ name: "empty"
4897
+ }),
4898
+ Y[0] || (Y[0] = o("span", { class: "vt-table__empty-text" }, "Немає даних!", -1))
4899
+ ])
4900
+ ], 8, a2)
4901
+ ]))
4902
+ ]),
4903
+ z.value ? (s(), i("tfoot", f2, [
4904
+ o("tr", null, [
4905
+ e.selectable ? (s(), i("td", {
4906
+ key: 0,
4907
+ class: q([{
4908
+ "vt-table__td--pinned-left": !0
4909
+ }, "vt-table__td"]),
4910
+ style: Be(S())
4911
+ }, Y[1] || (Y[1] = [
4912
+ o("div", { class: "vt-table__cell-content vt-table__cell-content--summary" }, null, -1)
4913
+ ]), 4)) : N("", !0),
4914
+ (s(!0), i(ne, null, he(Z(j), (m, I) => (s(), i("td", {
4915
+ key: m.prop,
4916
+ class: q([
4917
+ "vt-table__td",
4918
+ {
4919
+ "vt-table__td--pinned-left": m.pinnedLeft,
4920
+ "vt-table__td--pinned-right": m.pinnedRight
4921
+ }
4922
+ ]),
4923
+ style: Be(Ce(m, I))
4924
+ }, [
4925
+ o("div", m2, E(F.value[m.prop]), 1)
4926
+ ], 6))), 128))
4927
+ ])
4928
+ ])) : N("", !0)
4929
+ ])
4930
+ ], 36)
4931
+ ], 64);
4927
4932
  };
4928
4933
  }
4929
4934
  }), _2 = /* @__PURE__ */ we({
@@ -4969,7 +4974,7 @@ const Xe = new j3(), F3 = {
4969
4974
  const p = r();
4970
4975
  e.push(p), u = e.length - 1;
4971
4976
  }
4972
- }), ye(
4977
+ }), Me(
4973
4978
  () => [
4974
4979
  t.width,
4975
4980
  t.minWidth,
@@ -5389,19 +5394,19 @@ const Xe = new j3(), F3 = {
5389
5394
  "vt-timepicker--disabled": e.disabled,
5390
5395
  "vt-timepicker--focused": C.isFocused.value,
5391
5396
  "vt-timepicker--range": h.value,
5392
- "vt-timepicker--open": Y.value
5397
+ "vt-timepicker--open": O.value
5393
5398
  }
5394
- ]), R = L(0), ne = L(0), re = L(0), se = L("AM"), ce = L(0), de = L(0), W = L(0), D = L("AM"), ae = x(() => {
5399
+ ]), R = L(0), oe = L(0), re = L(0), se = L("AM"), ce = L(0), de = L(0), W = L(0), D = L("AM"), ae = x(() => {
5395
5400
  const w = e.use12Hours ? 12 : 23, c = e.use12Hours ? 1 : 0, d = e.disabledHours ? e.disabledHours() : [], m = bt(c, w, e.hourStep, d);
5396
5401
  return e.hideDisabledOptions ? m.filter((I) => !I.disabled) : m;
5397
5402
  }), fe = x(() => {
5398
5403
  const w = e.use12Hours ? se.value === "PM" && R.value !== 12 ? R.value + 12 : se.value === "AM" && R.value === 12 ? 0 : R.value : R.value, c = e.disabledMinutes ? e.disabledMinutes(w) : [], d = bt(0, 59, e.minuteStep, c);
5399
5404
  return e.hideDisabledOptions ? d.filter((m) => !m.disabled) : d;
5400
5405
  }), S = x(() => {
5401
- const w = e.use12Hours ? se.value === "PM" && R.value !== 12 ? R.value + 12 : se.value === "AM" && R.value === 12 ? 0 : R.value : R.value, c = e.disabledSeconds ? e.disabledSeconds(w, ne.value) : [], d = bt(0, 59, e.secondStep, c);
5406
+ const w = e.use12Hours ? se.value === "PM" && R.value !== 12 ? R.value + 12 : se.value === "AM" && R.value === 12 ? 0 : R.value : R.value, c = e.disabledSeconds ? e.disabledSeconds(w, oe.value) : [], d = bt(0, 59, e.secondStep, c);
5402
5407
  return e.hideDisabledOptions ? d.filter((m) => !m.disabled) : d;
5403
5408
  }), B = x(() => ["AM", "PM"]), {
5404
- visible: Y,
5409
+ visible: O,
5405
5410
  parentVisible: le,
5406
5411
  dropdownPosition: ee,
5407
5412
  show: Q,
@@ -5428,7 +5433,7 @@ const Xe = new j3(), F3 = {
5428
5433
  ...ee.value,
5429
5434
  position: "absolute",
5430
5435
  zIndex: 2e3
5431
- })), ke = (w, c, d = !1) => {
5436
+ })), be = (w, c, d = !1) => {
5432
5437
  const m = v.value.get(w);
5433
5438
  m && (m.disconnect(), v.value.delete(w));
5434
5439
  const I = `${-w.clientHeight / 2 + 16}px 0px ${-w.clientHeight / 2 + 16}px 0px`, J = new IntersectionObserver(
@@ -5453,7 +5458,7 @@ const Xe = new j3(), F3 = {
5453
5458
  break;
5454
5459
  }
5455
5460
  const dt = nt.find((Ct) => Ct.value === Ke);
5456
- dt && !dt.disabled && (c === "hour" ? d ? ce.value = Ke : R.value = Ke : c === "minute" ? d ? de.value = Ke : ne.value = Ke : c === "second" && (d ? W.value = Ke : re.value = Ke));
5461
+ dt && !dt.disabled && (c === "hour" ? d ? ce.value = Ke : R.value = Ke : c === "minute" ? d ? de.value = Ke : oe.value = Ke : c === "second" && (d ? W.value = Ke : re.value = Ke));
5457
5462
  }
5458
5463
  }
5459
5464
  },
@@ -5465,29 +5470,29 @@ const Xe = new j3(), F3 = {
5465
5470
  );
5466
5471
  w.querySelectorAll(".vt-timepicker__option").forEach((ge) => J.observe(ge)), v.value.set(w, J);
5467
5472
  }, Ne = () => {
5468
- !Y.value || !f.value || He(() => {
5473
+ !O.value || !f.value || He(() => {
5469
5474
  var d;
5470
5475
  const w = (d = f.value) == null ? void 0 : d.querySelectorAll(".vt-timepicker__options");
5471
5476
  if (!w) return;
5472
5477
  const c = Array.from(w);
5473
5478
  if (h.value) {
5474
- c[0] && ke(c[0], "hour", !1), c[1] && ke(c[1], "minute", !1), e.showSeconds && c[2] && ke(c[2], "second", !1);
5479
+ c[0] && be(c[0], "hour", !1), c[1] && be(c[1], "minute", !1), e.showSeconds && c[2] && be(c[2], "second", !1);
5475
5480
  const m = e.showSeconds ? e.use12Hours ? 4 : 3 : e.use12Hours ? 3 : 2;
5476
- c[m] && ke(c[m], "hour", !0), c[m + 1] && ke(c[m + 1], "minute", !0), e.showSeconds && c[m + 2] && ke(c[m + 2], "second", !0);
5481
+ c[m] && be(c[m], "hour", !0), c[m + 1] && be(c[m + 1], "minute", !0), e.showSeconds && c[m + 2] && be(c[m + 2], "second", !0);
5477
5482
  } else
5478
- c[0] && ke(c[0], "hour", !1), c[1] && ke(c[1], "minute", !1), e.showSeconds && c[2] && ke(c[2], "second", !1);
5483
+ c[0] && be(c[0], "hour", !1), c[1] && be(c[1], "minute", !1), e.showSeconds && c[2] && be(c[2], "second", !1);
5479
5484
  });
5480
5485
  }, We = () => {
5481
5486
  v.value.forEach((w) => w.disconnect()), v.value.clear();
5482
5487
  }, qe = () => {
5483
- Y.value && He(() => {
5488
+ O.value && He(() => {
5484
5489
  var d;
5485
5490
  const w = (d = f.value) == null ? void 0 : d.querySelectorAll(".vt-timepicker__options");
5486
5491
  if (!w) return;
5487
5492
  const c = (m, I, J) => {
5488
- const $e = J.findIndex((ge) => ge.value === I);
5489
- if ($e >= 0) {
5490
- const Le = $e * 32, Ie = m.clientHeight, Ye = Le + 80 - Ie / 2 + 32 / 2;
5493
+ const xe = J.findIndex((ge) => ge.value === I);
5494
+ if (xe >= 0) {
5495
+ const Le = xe * 32, Ie = m.clientHeight, Ye = Le + 80 - Ie / 2 + 32 / 2;
5491
5496
  m.scrollTo({
5492
5497
  top: Math.max(0, Ye),
5493
5498
  behavior: "smooth"
@@ -5496,12 +5501,12 @@ const Xe = new j3(), F3 = {
5496
5501
  };
5497
5502
  if (h.value) {
5498
5503
  const m = Array.from(w);
5499
- m[0] && c(m[0], R.value, ae.value), m[1] && c(m[1], ne.value, fe.value), e.showSeconds && m[2] && c(m[2], re.value, S.value);
5504
+ m[0] && c(m[0], R.value, ae.value), m[1] && c(m[1], oe.value, fe.value), e.showSeconds && m[2] && c(m[2], re.value, S.value);
5500
5505
  const I = e.showSeconds ? e.use12Hours ? 4 : 3 : e.use12Hours ? 3 : 2;
5501
5506
  m[I] && c(m[I], ce.value, ae.value), m[I + 1] && c(m[I + 1], de.value, fe.value), e.showSeconds && m[I + 2] && c(m[I + 2], W.value, S.value);
5502
5507
  } else {
5503
5508
  const m = Array.from(w);
5504
- m[0] && c(m[0], R.value, ae.value), m[1] && c(m[1], ne.value, fe.value), e.showSeconds && m[2] && c(m[2], re.value, S.value);
5509
+ m[0] && c(m[0], R.value, ae.value), m[1] && c(m[1], oe.value, fe.value), e.showSeconds && m[2] && c(m[2], re.value, S.value);
5505
5510
  }
5506
5511
  });
5507
5512
  }, Ce = (w, c, d = !1, m = !1, I) => {
@@ -5510,11 +5515,11 @@ const Xe = new j3(), F3 = {
5510
5515
  d ? D.value = w : se.value = w;
5511
5516
  else {
5512
5517
  const J = w;
5513
- c === "hour" ? d ? ce.value = J : R.value = J : c === "minute" ? d ? de.value = J : ne.value = J : c === "second" && (d ? W.value = J : re.value = J);
5518
+ c === "hour" ? d ? ce.value = J : R.value = J : c === "minute" ? d ? de.value = J : oe.value = J : c === "second" && (d ? W.value = J : re.value = J);
5514
5519
  }
5515
5520
  I && He(() => {
5516
- var $e;
5517
- const J = ($e = I.target) == null ? void 0 : $e.closest(".vt-timepicker__options");
5521
+ var xe;
5522
+ const J = (xe = I.target) == null ? void 0 : xe.closest(".vt-timepicker__options");
5518
5523
  if (J) {
5519
5524
  const ge = I.target, ve = J.getBoundingClientRect(), Le = ge.getBoundingClientRect(), Ie = J.scrollTop + (Le.top - ve.top) - J.clientHeight / 2 + Le.height / 2;
5520
5525
  J.scrollTo({
@@ -5526,24 +5531,24 @@ const Xe = new j3(), F3 = {
5526
5531
  }
5527
5532
  }, k = (w) => {
5528
5533
  var d, m;
5529
- if (!Y.value) return;
5534
+ if (!O.value) return;
5530
5535
  const c = w.target;
5531
5536
  (d = u.value) != null && d.contains(c) || (m = f.value) != null && m.contains(c) || ue();
5532
5537
  }, F = () => {
5533
5538
  e.disabled || ze();
5534
- }, Z = () => {
5539
+ }, z = () => {
5535
5540
  C.isFocused.value = !0, r("focus", u.value);
5536
- }, be = () => {
5541
+ }, ye = () => {
5537
5542
  C.isFocused.value = !1, r("blur", u.value);
5538
5543
  }, Pe = () => {
5539
5544
  const w = (h.value, null);
5540
- r("update:modelValue", w), r("change", w), h.value && (C.startTime.value = null, C.endTime.value = null, C.isSelectingEnd.value = !1), R.value = G.hour, ne.value = G.minute, re.value = G.second, se.value = G.period, ce.value = G.hour, de.value = G.minute, W.value = G.second, D.value = G.period;
5545
+ r("update:modelValue", w), r("change", w), h.value && (C.startTime.value = null, C.endTime.value = null, C.isSelectingEnd.value = !1), R.value = G.hour, oe.value = G.minute, re.value = G.second, se.value = G.period, ce.value = G.hour, de.value = G.minute, W.value = G.second, D.value = G.period;
5541
5546
  }, Te = (w) => _(w), Re = () => {
5542
5547
  if (!e.disabled) {
5543
5548
  if (h.value) {
5544
5549
  let w = R.value, c = ce.value;
5545
5550
  e.use12Hours && (se.value === "PM" && w !== 12 && (w += 12), se.value === "AM" && w === 12 && (w = 0), D.value === "PM" && c !== 12 && (c += 12), D.value === "AM" && c === 12 && (c = 0));
5546
- const d = { hour: w, minute: ne.value, second: re.value }, m = { hour: c, minute: de.value, second: W.value }, I = [Te(d), Te(m)], J = $(I);
5551
+ const d = { hour: w, minute: oe.value, second: re.value }, m = { hour: c, minute: de.value, second: W.value }, I = [Te(d), Te(m)], J = $(I);
5547
5552
  if (!J.isValid) {
5548
5553
  console.warn("Time range validation failed:", J.errors);
5549
5554
  return;
@@ -5552,7 +5557,7 @@ const Xe = new j3(), F3 = {
5552
5557
  } else {
5553
5558
  let w = R.value;
5554
5559
  e.use12Hours && (se.value === "PM" && w !== 12 && (w += 12), se.value === "AM" && w === 12 && (w = 0));
5555
- const c = { hour: w, minute: ne.value, second: re.value }, d = Te(c), m = $(d);
5560
+ const c = { hour: w, minute: oe.value, second: re.value }, d = Te(c), m = $(d);
5556
5561
  if (!m.isValid) {
5557
5562
  console.warn("Time validation failed:", m.errors);
5558
5563
  return;
@@ -5564,7 +5569,7 @@ const Xe = new j3(), F3 = {
5564
5569
  }, je = () => {
5565
5570
  ue();
5566
5571
  }, Ae = (w) => {
5567
- if (Y.value)
5572
+ if (O.value)
5568
5573
  switch (w.key) {
5569
5574
  case "Escape":
5570
5575
  je();
@@ -5590,7 +5595,7 @@ const Xe = new j3(), F3 = {
5590
5595
  ue();
5591
5596
  },
5592
5597
  validate: $
5593
- }), ye(
5598
+ }), Me(
5594
5599
  () => e.modelValue,
5595
5600
  (w) => {
5596
5601
  if (w) {
@@ -5598,7 +5603,7 @@ const Xe = new j3(), F3 = {
5598
5603
  const c = l(w[0]), d = l(w[1]);
5599
5604
  if (c) {
5600
5605
  let m = c.hour;
5601
- e.use12Hours && (se.value = m >= 12 ? "PM" : "AM", m = m === 0 ? 12 : m > 12 ? m - 12 : m), R.value = m, ne.value = c.minute, re.value = c.second;
5606
+ e.use12Hours && (se.value = m >= 12 ? "PM" : "AM", m = m === 0 ? 12 : m > 12 ? m - 12 : m), R.value = m, oe.value = c.minute, re.value = c.second;
5602
5607
  }
5603
5608
  if (d) {
5604
5609
  let m = d.hour;
@@ -5608,7 +5613,7 @@ const Xe = new j3(), F3 = {
5608
5613
  const c = l(w);
5609
5614
  if (c) {
5610
5615
  let d = c.hour;
5611
- e.use12Hours && (se.value = d >= 12 ? "PM" : "AM", d = d === 0 ? 12 : d > 12 ? d - 12 : d), R.value = d, ne.value = c.minute, re.value = c.second;
5616
+ e.use12Hours && (se.value = d >= 12 ? "PM" : "AM", d = d === 0 ? 12 : d > 12 ? d - 12 : d), R.value = d, oe.value = c.minute, re.value = c.second;
5612
5617
  }
5613
5618
  }
5614
5619
  }
@@ -5635,7 +5640,7 @@ const Xe = new j3(), F3 = {
5635
5640
  };
5636
5641
  })();
5637
5642
  return Ze(() => {
5638
- document.addEventListener("click", k), document.addEventListener("keydown", Ae), e.modelValue || (R.value = G.hour, ne.value = G.minute, re.value = G.second, se.value = G.period, ce.value = G.hour, de.value = G.minute, W.value = G.second, D.value = G.period);
5643
+ document.addEventListener("click", k), document.addEventListener("keydown", Ae), e.modelValue || (R.value = G.hour, oe.value = G.minute, re.value = G.second, se.value = G.period, ce.value = G.hour, de.value = G.minute, W.value = G.second, D.value = G.period);
5639
5644
  }), Ge(() => {
5640
5645
  document.removeEventListener("click", k), document.removeEventListener("keydown", Ae), We();
5641
5646
  }), (w, c) => (s(), i("div", {
@@ -5648,29 +5653,29 @@ const Xe = new j3(), F3 = {
5648
5653
  ref: p,
5649
5654
  class: "vt-timepicker__trigger",
5650
5655
  tabindex: "0",
5651
- onBlur: be,
5656
+ onBlur: ye,
5652
5657
  onClick: F,
5653
- onFocus: Z
5658
+ onFocus: z
5654
5659
  }, [
5655
5660
  o("div", S2, [
5656
5661
  o("div", L2, [
5657
5662
  K(pe, { name: "clock" })
5658
5663
  ]),
5659
5664
  P.value ? (s(), i("div", D2, [
5660
- h.value ? (s(), i(oe, { key: 0 }, [
5661
- o("span", null, A(U.value[0]), 1),
5662
- o("span", null, A(e.rangeSeparator), 1),
5663
- o("span", null, A(U.value[1]), 1)
5664
- ], 64)) : (s(), i(oe, { key: 1 }, [
5665
- Ve(A(U.value), 1)
5665
+ h.value ? (s(), i(ne, { key: 0 }, [
5666
+ o("span", null, E(U.value[0]), 1),
5667
+ o("span", null, E(e.rangeSeparator), 1),
5668
+ o("span", null, E(U.value[1]), 1)
5669
+ ], 64)) : (s(), i(ne, { key: 1 }, [
5670
+ ke(E(U.value), 1)
5666
5671
  ], 64))
5667
5672
  ])) : (s(), i("div", H2, [
5668
- h.value ? (s(), i(oe, { key: 0 }, [
5669
- o("span", null, A(e.startPlaceholder), 1),
5670
- o("span", null, A(e.rangeSeparator), 1),
5671
- o("span", null, A(e.endPlaceholder), 1)
5672
- ], 64)) : (s(), i(oe, { key: 1 }, [
5673
- Ve(A(j.value), 1)
5673
+ h.value ? (s(), i(ne, { key: 0 }, [
5674
+ o("span", null, E(e.startPlaceholder), 1),
5675
+ o("span", null, E(e.rangeSeparator), 1),
5676
+ o("span", null, E(e.endPlaceholder), 1)
5677
+ ], 64)) : (s(), i(ne, { key: 1 }, [
5678
+ ke(E(j.value), 1)
5674
5679
  ], 64))
5675
5680
  ])),
5676
5681
  o("div", T2, [
@@ -5679,27 +5684,27 @@ const Xe = new j3(), F3 = {
5679
5684
  disabled: e.disabled,
5680
5685
  class: "vt-input__clear-btn",
5681
5686
  type: "button",
5682
- onClick: xe(Pe, ["stop"])
5687
+ onClick: Ve(Pe, ["stop"])
5683
5688
  }, [
5684
5689
  K(pe, { name: "close" })
5685
- ], 8, I2)) : O("", !0)
5690
+ ], 8, I2)) : N("", !0)
5686
5691
  ])
5687
5692
  ])
5688
5693
  ], 544),
5689
- z(Y) && z(le) ? (s(), _e(ot, {
5694
+ Z(O) && Z(le) ? (s(), _e(ot, {
5690
5695
  key: 0,
5691
5696
  to: "body"
5692
5697
  }, [
5693
5698
  K(rt, { name: "dropdown" }, {
5694
- default: Me(() => [
5699
+ default: $e(() => [
5695
5700
  o("div", {
5696
5701
  ref_key: "dropdownRef",
5697
5702
  ref: f,
5698
5703
  style: Be(Ee.value),
5699
5704
  class: "vt-timepicker__dropdown",
5700
- onClick: c[0] || (c[0] = xe(() => {
5705
+ onClick: c[0] || (c[0] = Ve(() => {
5701
5706
  }, ["stop"])),
5702
- onMousedown: c[1] || (c[1] = xe(() => {
5707
+ onMousedown: c[1] || (c[1] = Ve(() => {
5703
5708
  }, ["prevent"]))
5704
5709
  }, [
5705
5710
  h.value ? (s(), i("div", B2, [
@@ -5708,7 +5713,7 @@ const Xe = new j3(), F3 = {
5708
5713
  o("div", A2, [
5709
5714
  o("div", P2, [
5710
5715
  o("div", R2, [
5711
- (s(!0), i(oe, null, he(ae.value, (d) => (s(), i("button", {
5716
+ (s(!0), i(ne, null, he(ae.value, (d) => (s(), i("button", {
5712
5717
  key: `start-hour-${d.value}`,
5713
5718
  class: q([
5714
5719
  "vt-timepicker__option",
@@ -5719,28 +5724,28 @@ const Xe = new j3(), F3 = {
5719
5724
  ]),
5720
5725
  disabled: d.disabled,
5721
5726
  onClick: (m) => Ce(d.value, "hour", !1, d.disabled, m)
5722
- }, A(d.label), 11, j2))), 128))
5727
+ }, E(d.label), 11, j2))), 128))
5723
5728
  ])
5724
5729
  ]),
5725
5730
  o("div", F2, [
5726
5731
  o("div", Z2, [
5727
- (s(!0), i(oe, null, he(fe.value, (d) => (s(), i("button", {
5732
+ (s(!0), i(ne, null, he(fe.value, (d) => (s(), i("button", {
5728
5733
  key: `start-minute-${d.value}`,
5729
5734
  class: q([
5730
5735
  "vt-timepicker__option",
5731
5736
  {
5732
- "vt-timepicker__option--selected": ne.value === d.value,
5737
+ "vt-timepicker__option--selected": oe.value === d.value,
5733
5738
  "vt-timepicker__option--disabled": d.disabled
5734
5739
  }
5735
5740
  ]),
5736
5741
  disabled: d.disabled,
5737
5742
  onClick: (m) => Ce(d.value, "minute", !1, d.disabled, m)
5738
- }, A(d.label), 11, z2))), 128))
5743
+ }, E(d.label), 11, z2))), 128))
5739
5744
  ])
5740
5745
  ]),
5741
5746
  w.showSeconds ? (s(), i("div", Y2, [
5742
5747
  o("div", O2, [
5743
- (s(!0), i(oe, null, he(S.value, (d) => (s(), i("button", {
5748
+ (s(!0), i(ne, null, he(S.value, (d) => (s(), i("button", {
5744
5749
  key: `start-second-${d.value}`,
5745
5750
  class: q([
5746
5751
  "vt-timepicker__option",
@@ -5751,21 +5756,21 @@ const Xe = new j3(), F3 = {
5751
5756
  ]),
5752
5757
  disabled: d.disabled,
5753
5758
  onClick: (m) => Ce(d.value, "second", !1, d.disabled, m)
5754
- }, A(d.label), 11, N2))), 128))
5759
+ }, E(d.label), 11, N2))), 128))
5755
5760
  ])
5756
- ])) : O("", !0),
5761
+ ])) : N("", !0),
5757
5762
  w.use12Hours ? (s(), i("div", W2, [
5758
5763
  o("div", q2, [
5759
- (s(!0), i(oe, null, he(B.value, (d) => (s(), i("button", {
5764
+ (s(!0), i(ne, null, he(B.value, (d) => (s(), i("button", {
5760
5765
  key: `start-period-${d}`,
5761
5766
  class: q([
5762
5767
  "vt-timepicker__option",
5763
5768
  { "vt-timepicker__option--selected": se.value === d }
5764
5769
  ]),
5765
5770
  onClick: (m) => Ce(d, "period", !1, !1, m)
5766
- }, A(d), 11, U2))), 128))
5771
+ }, E(d), 11, U2))), 128))
5767
5772
  ])
5768
- ])) : O("", !0)
5773
+ ])) : N("", !0)
5769
5774
  ])
5770
5775
  ]),
5771
5776
  o("div", K2, [
@@ -5773,7 +5778,7 @@ const Xe = new j3(), F3 = {
5773
5778
  o("div", X2, [
5774
5779
  o("div", Q2, [
5775
5780
  o("div", G2, [
5776
- (s(!0), i(oe, null, he(ae.value, (d) => (s(), i("button", {
5781
+ (s(!0), i(ne, null, he(ae.value, (d) => (s(), i("button", {
5777
5782
  key: `end-hour-${d.value}`,
5778
5783
  class: q([
5779
5784
  "vt-timepicker__option",
@@ -5784,12 +5789,12 @@ const Xe = new j3(), F3 = {
5784
5789
  ]),
5785
5790
  disabled: d.disabled,
5786
5791
  onClick: (m) => Ce(d.value, "hour", !0, d.disabled, m)
5787
- }, A(d.label), 11, J2))), 128))
5792
+ }, E(d.label), 11, J2))), 128))
5788
5793
  ])
5789
5794
  ]),
5790
5795
  o("div", e5, [
5791
5796
  o("div", t5, [
5792
- (s(!0), i(oe, null, he(fe.value, (d) => (s(), i("button", {
5797
+ (s(!0), i(ne, null, he(fe.value, (d) => (s(), i("button", {
5793
5798
  key: `end-minute-${d.value}`,
5794
5799
  class: q([
5795
5800
  "vt-timepicker__option",
@@ -5800,12 +5805,12 @@ const Xe = new j3(), F3 = {
5800
5805
  ]),
5801
5806
  disabled: d.disabled,
5802
5807
  onClick: (m) => Ce(d.value, "minute", !0, d.disabled, m)
5803
- }, A(d.label), 11, n5))), 128))
5808
+ }, E(d.label), 11, n5))), 128))
5804
5809
  ])
5805
5810
  ]),
5806
5811
  w.showSeconds ? (s(), i("div", o5, [
5807
5812
  o("div", l5, [
5808
- (s(!0), i(oe, null, he(S.value, (d) => (s(), i("button", {
5813
+ (s(!0), i(ne, null, he(S.value, (d) => (s(), i("button", {
5809
5814
  key: `end-second-${d.value}`,
5810
5815
  class: q([
5811
5816
  "vt-timepicker__option",
@@ -5816,25 +5821,25 @@ const Xe = new j3(), F3 = {
5816
5821
  ]),
5817
5822
  disabled: d.disabled,
5818
5823
  onClick: (m) => Ce(d.value, "second", !0, d.disabled, m)
5819
- }, A(d.label), 11, s5))), 128))
5824
+ }, E(d.label), 11, s5))), 128))
5820
5825
  ])
5821
- ])) : O("", !0),
5826
+ ])) : N("", !0),
5822
5827
  w.use12Hours ? (s(), i("div", r5, [
5823
5828
  o("div", i5, [
5824
- (s(!0), i(oe, null, he(B.value, (d) => (s(), i("button", {
5829
+ (s(!0), i(ne, null, he(B.value, (d) => (s(), i("button", {
5825
5830
  key: `end-period-${d}`,
5826
5831
  class: q(["vt-timepicker__option", { "vt-timepicker__option--selected": D.value === d }]),
5827
5832
  onClick: (m) => Ce(d, "period", !0, !1, m)
5828
- }, A(d), 11, a5))), 128))
5833
+ }, E(d), 11, a5))), 128))
5829
5834
  ])
5830
- ])) : O("", !0)
5835
+ ])) : N("", !0)
5831
5836
  ])
5832
5837
  ])
5833
5838
  ])) : (s(), i("div", u5, [
5834
5839
  o("div", c5, [
5835
5840
  o("div", d5, [
5836
5841
  o("div", h5, [
5837
- (s(!0), i(oe, null, he(ae.value, (d) => (s(), i("button", {
5842
+ (s(!0), i(ne, null, he(ae.value, (d) => (s(), i("button", {
5838
5843
  key: `hour-${d.value}`,
5839
5844
  class: q([
5840
5845
  "vt-timepicker__option",
@@ -5845,28 +5850,28 @@ const Xe = new j3(), F3 = {
5845
5850
  ]),
5846
5851
  disabled: d.disabled,
5847
5852
  onClick: (m) => Ce(d.value, "hour", !1, d.disabled, m)
5848
- }, A(d.label), 11, v5))), 128))
5853
+ }, E(d.label), 11, v5))), 128))
5849
5854
  ])
5850
5855
  ]),
5851
5856
  o("div", p5, [
5852
5857
  o("div", f5, [
5853
- (s(!0), i(oe, null, he(fe.value, (d) => (s(), i("button", {
5858
+ (s(!0), i(ne, null, he(fe.value, (d) => (s(), i("button", {
5854
5859
  key: `minute-${d.value}`,
5855
5860
  class: q([
5856
5861
  "vt-timepicker__option",
5857
5862
  {
5858
- "vt-timepicker__option--selected": ne.value === d.value,
5863
+ "vt-timepicker__option--selected": oe.value === d.value,
5859
5864
  "vt-timepicker__option--disabled": d.disabled
5860
5865
  }
5861
5866
  ]),
5862
5867
  disabled: d.disabled,
5863
5868
  onClick: (m) => Ce(d.value, "minute", !1, d.disabled, m)
5864
- }, A(d.label), 11, m5))), 128))
5869
+ }, E(d.label), 11, m5))), 128))
5865
5870
  ])
5866
5871
  ]),
5867
5872
  w.showSeconds ? (s(), i("div", C5, [
5868
5873
  o("div", _5, [
5869
- (s(!0), i(oe, null, he(S.value, (d) => (s(), i("button", {
5874
+ (s(!0), i(ne, null, he(S.value, (d) => (s(), i("button", {
5870
5875
  key: `second-${d.value}`,
5871
5876
  class: q([
5872
5877
  "vt-timepicker__option",
@@ -5877,24 +5882,24 @@ const Xe = new j3(), F3 = {
5877
5882
  ]),
5878
5883
  disabled: d.disabled,
5879
5884
  onClick: (m) => Ce(d.value, "second", !1, d.disabled, m)
5880
- }, A(d.label), 11, g5))), 128))
5885
+ }, E(d.label), 11, g5))), 128))
5881
5886
  ])
5882
- ])) : O("", !0),
5887
+ ])) : N("", !0),
5883
5888
  w.use12Hours ? (s(), i("div", w5, [
5884
5889
  o("div", k5, [
5885
- (s(!0), i(oe, null, he(B.value, (d) => (s(), i("button", {
5890
+ (s(!0), i(ne, null, he(B.value, (d) => (s(), i("button", {
5886
5891
  key: `period-${d}`,
5887
5892
  class: q(["vt-timepicker__option", { "vt-timepicker__option--selected": se.value === d }]),
5888
5893
  onClick: (m) => Ce(d, "period", !1, !1, m)
5889
- }, A(d), 11, b5))), 128))
5894
+ }, E(d), 11, b5))), 128))
5890
5895
  ])
5891
- ])) : O("", !0)
5896
+ ])) : N("", !0)
5892
5897
  ])
5893
5898
  ])),
5894
5899
  o("div", y5, [
5895
5900
  K(Qe, { onClick: je }, {
5896
- default: Me(() => c[4] || (c[4] = [
5897
- Ve("Скасувати", -1)
5901
+ default: $e(() => c[4] || (c[4] = [
5902
+ ke("Скасувати", -1)
5898
5903
  ])),
5899
5904
  _: 1,
5900
5905
  __: [4]
@@ -5903,8 +5908,8 @@ const Xe = new j3(), F3 = {
5903
5908
  type: "primary",
5904
5909
  onClick: Re
5905
5910
  }, {
5906
- default: Me(() => c[5] || (c[5] = [
5907
- Ve("OK", -1)
5911
+ default: $e(() => c[5] || (c[5] = [
5912
+ ke("OK", -1)
5908
5913
  ])),
5909
5914
  _: 1,
5910
5915
  __: [5]
@@ -5914,7 +5919,7 @@ const Xe = new j3(), F3 = {
5914
5919
  ]),
5915
5920
  _: 1
5916
5921
  })
5917
- ])) : O("", !0)
5922
+ ])) : N("", !0)
5918
5923
  ], 2));
5919
5924
  }
5920
5925
  }), M5 = { class: "vt-datepicker__input" }, $5 = { class: "vt-datepicker__icon" }, x5 = {
@@ -6000,7 +6005,7 @@ const Xe = new j3(), F3 = {
6000
6005
  parsedValue: j,
6001
6006
  displayText: X,
6002
6007
  hasDisplayValue: R,
6003
- formatOutput: ne,
6008
+ formatOutput: oe,
6004
6009
  validate: re
6005
6010
  } = M2($, g, U, P), {
6006
6011
  calendarDates: se,
@@ -6012,7 +6017,7 @@ const Xe = new j3(), F3 = {
6012
6017
  isSameDate: fe,
6013
6018
  navigateMonth: S,
6014
6019
  navigateYear: B,
6015
- navigateDecade: Y
6020
+ navigateDecade: O
6016
6021
  } = At(l.currentDate), {
6017
6022
  calendarDates: le,
6018
6023
  isDateInCurrentMonth: ee,
@@ -6030,7 +6035,7 @@ const Xe = new j3(), F3 = {
6030
6035
  return "date";
6031
6036
  }
6032
6037
  }, Se = x(() => e.type === "datetime" || e.type === "datetimerange"), Ee = x(() => Se.value), {
6033
- visible: ke,
6038
+ visible: be,
6034
6039
  parentVisible: Ne,
6035
6040
  dropdownPosition: We,
6036
6041
  show: qe,
@@ -6047,7 +6052,7 @@ const Xe = new j3(), F3 = {
6047
6052
  onVisibleChange: (y) => {
6048
6053
  y && He(() => F());
6049
6054
  }
6050
- }), Z = x(() => e.clearable && !e.disabled && R.value), be = x(() => T.value ? l.isSelectingEnd.value ? e.endPlaceholder : e.startPlaceholder : e.placeholder), Pe = x(() => [
6055
+ }), z = x(() => e.clearable && !e.disabled && R.value), ye = x(() => T.value ? l.isSelectingEnd.value ? e.endPlaceholder : e.startPlaceholder : e.placeholder), Pe = x(() => [
6051
6056
  "vt-datepicker",
6052
6057
  `vt-datepicker--${e.size}`,
6053
6058
  `vt-datepicker--${e.type}`,
@@ -6055,7 +6060,7 @@ const Xe = new j3(), F3 = {
6055
6060
  "vt-datepicker--disabled": e.disabled,
6056
6061
  "vt-datepicker--focused": l.isFocused.value,
6057
6062
  "vt-datepicker--range": T.value,
6058
- "vt-datepicker--open": ke.value,
6063
+ "vt-datepicker--open": be.value,
6059
6064
  "vt-datepicker--with-time": Ee.value
6060
6065
  }
6061
6066
  ]), Te = x(() => ({
@@ -6096,7 +6101,7 @@ const Xe = new j3(), F3 = {
6096
6101
  return me >= Fe && me <= lt;
6097
6102
  }
6098
6103
  return !1;
6099
- }, E = (y, V) => {
6104
+ }, A = (y, V) => {
6100
6105
  if (T.value) {
6101
6106
  if (l.startDate.value && l.endDate.value) {
6102
6107
  const b = V.getFullYear(), H = l.startDate.value.getMonth(), ie = l.startDate.value.getFullYear(), me = l.endDate.value.getMonth(), Fe = l.endDate.value.getFullYear();
@@ -6110,16 +6115,16 @@ const Xe = new j3(), F3 = {
6110
6115
  const b = j.value;
6111
6116
  return b ? b.getFullYear() === V.getFullYear() && b.getMonth() === y : !1;
6112
6117
  }
6113
- }, N = (y, V) => {
6118
+ }, Y = (y, V) => {
6114
6119
  if (!T.value) return !1;
6115
6120
  const b = V.getFullYear(), H = new Date(b, y, 1);
6116
6121
  if (l.startDate.value && l.endDate.value) {
6117
6122
  const ie = new Date(l.startDate.value.getFullYear(), l.startDate.value.getMonth(), 1), me = new Date(l.endDate.value.getFullYear(), l.endDate.value.getMonth(), 1);
6118
- return H >= ie && H <= me && !E(y, V);
6123
+ return H >= ie && H <= me && !A(y, V);
6119
6124
  }
6120
6125
  if (l.startDate.value && l.isSelectingEnd.value && l.hoverDate.value) {
6121
6126
  const ie = new Date(l.startDate.value.getFullYear(), l.startDate.value.getMonth(), 1), me = new Date(l.hoverDate.value.getFullYear(), l.hoverDate.value.getMonth(), 1), Fe = ie <= me ? ie : me, lt = ie <= me ? me : ie;
6122
- return H >= Fe && H <= lt && !E(y, V);
6127
+ return H >= Fe && H <= lt && !A(y, V);
6123
6128
  }
6124
6129
  return !1;
6125
6130
  }, te = (y) => {
@@ -6164,7 +6169,7 @@ const Xe = new j3(), F3 = {
6164
6169
  ...e.showSeconds && { second: "2-digit" }
6165
6170
  }) : "", d = (y) => {
6166
6171
  var b, H;
6167
- if (!ke.value) return;
6172
+ if (!be.value) return;
6168
6173
  const V = y.target;
6169
6174
  (b = u.value) != null && b.contains(V) || (H = f.value) != null && H.contains(V) || Ce();
6170
6175
  }, m = () => {
@@ -6173,7 +6178,7 @@ const Xe = new j3(), F3 = {
6173
6178
  l.isFocused.value = !0, r("focus", u.value);
6174
6179
  }, J = () => {
6175
6180
  l.isFocused.value = !1, r("blur", u.value);
6176
- }, $e = () => {
6181
+ }, xe = () => {
6177
6182
  r("update:modelValue", null), r("change", null), l.startDate.value = null, l.endDate.value = null, l.isSelectingEnd.value = !1, l.hoverDate.value = null, l.startTime.value = h(), l.endTime.value = _();
6178
6183
  }, ge = (y, V = !1, b = !1) => {
6179
6184
  if (!(e.disabled || !y) && je(y, V, b))
@@ -6185,7 +6190,7 @@ const Xe = new j3(), F3 = {
6185
6190
  if (ie >= H ? l.endDate.value = ie : (l.endDate.value = H, l.startDate.value = ie), Se.value && (l.endTime.value = "23:59:59"), l.isSelectingEnd.value = !1, l.hoverDate.value = null, !Se.value) {
6186
6191
  const me = [l.startDate.value, l.endDate.value];
6187
6192
  try {
6188
- const Fe = ne(me);
6193
+ const Fe = oe(me);
6189
6194
  r("update:modelValue", Fe), r("change", Fe);
6190
6195
  } catch (Fe) {
6191
6196
  console.warn("Error formatting output:", Fe);
@@ -6197,7 +6202,7 @@ const Xe = new j3(), F3 = {
6197
6202
  l.startDate.value = new Date(y), l.startTime.value = "00:00:00";
6198
6203
  else
6199
6204
  try {
6200
- const H = ne(new Date(y));
6205
+ const H = oe(new Date(y));
6201
6206
  r("update:modelValue", H), r("change", H), Ce();
6202
6207
  } catch (H) {
6203
6208
  console.warn("Error formatting single date output:", H);
@@ -6210,7 +6215,7 @@ const Xe = new j3(), F3 = {
6210
6215
  if (V ? l.endTime.value = y : l.startTime.value = y, !T.value && l.startDate.value && l.startTime.value) {
6211
6216
  const b = w(l.startDate.value, l.startTime.value);
6212
6217
  try {
6213
- const H = ne(b);
6218
+ const H = oe(b);
6214
6219
  r("update:modelValue", H), r("change", H);
6215
6220
  } catch (H) {
6216
6221
  console.warn("Error formatting datetime output:", H);
@@ -6221,7 +6226,7 @@ const Xe = new j3(), F3 = {
6221
6226
  if (T.value && l.startDate.value && l.endDate.value) {
6222
6227
  const y = w(l.startDate.value, l.startTime.value || "00:00:00"), V = w(l.endDate.value, l.endTime.value || "23:59:59"), b = [y, V];
6223
6228
  try {
6224
- const H = ne(b);
6229
+ const H = oe(b);
6225
6230
  r("update:modelValue", H), r("change", H);
6226
6231
  } catch (H) {
6227
6232
  console.warn("Error formatting datetime range output:", H);
@@ -6229,7 +6234,7 @@ const Xe = new j3(), F3 = {
6229
6234
  } else if (!T.value && l.startDate.value) {
6230
6235
  const y = w(l.startDate.value, l.startTime.value || "00:00:00");
6231
6236
  try {
6232
- const V = ne(y);
6237
+ const V = oe(y);
6233
6238
  r("update:modelValue", V), r("change", V);
6234
6239
  } catch (V) {
6235
6240
  console.warn("Error formatting datetime output:", V);
@@ -6268,19 +6273,19 @@ const Xe = new j3(), F3 = {
6268
6273
  }, l1 = () => {
6269
6274
  T.value && l.isSelectingEnd.value && (l.hoverDate.value = null);
6270
6275
  }, Vt = () => {
6271
- l.viewMode.value === "year" ? (Y("prev"), ue("prev")) : l.viewMode.value === "month" ? (B("prev"), Q("prev")) : (S("prev"), l.rightCurrentDate.value = new Date(
6276
+ l.viewMode.value === "year" ? (O("prev"), ue("prev")) : l.viewMode.value === "month" ? (B("prev"), Q("prev")) : (S("prev"), l.rightCurrentDate.value = new Date(
6272
6277
  l.currentDate.value.getFullYear(),
6273
6278
  l.currentDate.value.getMonth() + 1,
6274
6279
  1
6275
6280
  ));
6276
6281
  }, St = () => {
6277
- l.viewMode.value === "year" ? (Y("next"), ue("next")) : l.viewMode.value === "month" ? (B("next"), Q("next")) : (S("next"), l.rightCurrentDate.value = new Date(
6282
+ l.viewMode.value === "year" ? (O("next"), ue("next")) : l.viewMode.value === "month" ? (B("next"), Q("next")) : (S("next"), l.rightCurrentDate.value = new Date(
6278
6283
  l.currentDate.value.getFullYear(),
6279
6284
  l.currentDate.value.getMonth() + 1,
6280
6285
  1
6281
6286
  ));
6282
6287
  };
6283
- return ye(
6288
+ return Me(
6284
6289
  () => e.modelValue,
6285
6290
  (y) => {
6286
6291
  if (y) {
@@ -6301,13 +6306,13 @@ const Xe = new j3(), F3 = {
6301
6306
  l.startDate.value = null, l.endDate.value = null, l.isSelectingEnd.value = !1, l.hoverDate.value = null, l.startTime.value = h(), l.endTime.value = _();
6302
6307
  },
6303
6308
  { immediate: !0 }
6304
- ), ye(
6309
+ ), Me(
6305
6310
  () => e.type,
6306
6311
  (y) => {
6307
6312
  l.viewMode.value = ze(y), l.startTime.value = h(), l.endTime.value = _();
6308
6313
  },
6309
6314
  { immediate: !0 }
6310
- ), ye(
6315
+ ), Me(
6311
6316
  () => l.currentDate.value,
6312
6317
  (y) => {
6313
6318
  Re.value && (l.rightCurrentDate.value = new Date(y.getFullYear(), y.getMonth() + 1, 1));
@@ -6356,50 +6361,50 @@ const Xe = new j3(), F3 = {
6356
6361
  name: Se.value ? "clock" : "calendar"
6357
6362
  }, null, 8, ["name"])
6358
6363
  ]),
6359
- z(R) ? (s(), i("div", x5, [
6360
- z(T) ? (s(), i(oe, { key: 0 }, [
6361
- o("span", null, A(z(X)[0]), 1),
6362
- o("span", V5, A(e.rangeSeparator), 1),
6363
- o("span", null, A(z(X)[1]), 1)
6364
- ], 64)) : (s(), i(oe, { key: 1 }, [
6365
- Ve(A(z(X)), 1)
6364
+ Z(R) ? (s(), i("div", x5, [
6365
+ Z(T) ? (s(), i(ne, { key: 0 }, [
6366
+ o("span", null, E(Z(X)[0]), 1),
6367
+ o("span", V5, E(e.rangeSeparator), 1),
6368
+ o("span", null, E(Z(X)[1]), 1)
6369
+ ], 64)) : (s(), i(ne, { key: 1 }, [
6370
+ ke(E(Z(X)), 1)
6366
6371
  ], 64))
6367
6372
  ])) : (s(), i("div", S5, [
6368
- z(T) ? (s(), i(oe, { key: 0 }, [
6369
- o("span", null, A(e.startPlaceholder), 1),
6370
- o("span", L5, A(e.rangeSeparator), 1),
6371
- o("span", null, A(e.endPlaceholder), 1)
6372
- ], 64)) : (s(), i(oe, { key: 1 }, [
6373
- Ve(A(be.value), 1)
6373
+ Z(T) ? (s(), i(ne, { key: 0 }, [
6374
+ o("span", null, E(e.startPlaceholder), 1),
6375
+ o("span", L5, E(e.rangeSeparator), 1),
6376
+ o("span", null, E(e.endPlaceholder), 1)
6377
+ ], 64)) : (s(), i(ne, { key: 1 }, [
6378
+ ke(E(ye.value), 1)
6374
6379
  ], 64))
6375
6380
  ])),
6376
6381
  o("div", D5, [
6377
- Z.value ? (s(), i("button", {
6382
+ z.value ? (s(), i("button", {
6378
6383
  key: 0,
6379
6384
  disabled: e.disabled,
6380
6385
  class: "vt-datepicker__clear",
6381
6386
  type: "button",
6382
- onClick: xe($e, ["stop"])
6387
+ onClick: Ve(xe, ["stop"])
6383
6388
  }, [
6384
6389
  K(pe, { name: "close" })
6385
- ], 8, H5)) : O("", !0)
6390
+ ], 8, H5)) : N("", !0)
6386
6391
  ])
6387
6392
  ])
6388
6393
  ], 544),
6389
- z(ke) && z(Ne) ? (s(), _e(ot, {
6394
+ Z(be) && Z(Ne) ? (s(), _e(ot, {
6390
6395
  key: 0,
6391
6396
  to: "body"
6392
6397
  }, [
6393
6398
  K(rt, { name: "dropdown" }, {
6394
- default: Me(() => [
6399
+ default: $e(() => [
6395
6400
  o("div", {
6396
6401
  ref_key: "dropdownRef",
6397
6402
  ref: f,
6398
6403
  style: Be(Te.value),
6399
6404
  class: "vt-datepicker__dropdown",
6400
- onClick: V[10] || (V[10] = xe(() => {
6405
+ onClick: V[10] || (V[10] = Ve(() => {
6401
6406
  }, ["stop"])),
6402
- onMousedown: V[11] || (V[11] = xe(() => {
6407
+ onMousedown: V[11] || (V[11] = Ve(() => {
6403
6408
  }, ["prevent"]))
6404
6409
  }, [
6405
6410
  o("div", {
@@ -6427,7 +6432,7 @@ const Xe = new j3(), F3 = {
6427
6432
  type: "time",
6428
6433
  onChange: V[1] || (V[1] = (b) => Ie(b, !1))
6429
6434
  }, null, 8, ["modelValue", "disabled-hours", "disabled-minutes", "disabled-seconds", "hide-disabled-options", "hour-step", "minute-step", "second-step", "show-seconds", "use12-hours"])
6430
- ])) : O("", !0),
6435
+ ])) : N("", !0),
6431
6436
  o("div", E5, [
6432
6437
  o("button", {
6433
6438
  class: "vt-datepicker__nav-btn",
@@ -6439,30 +6444,30 @@ const Xe = new j3(), F3 = {
6439
6444
  o("button", {
6440
6445
  class: "vt-datepicker__header-btn",
6441
6446
  onClick: V[2] || (V[2] = (b) => l.viewMode.value = "month")
6442
- }, A(l.currentDate.value.toLocaleString("default", { month: "long", year: "numeric" })), 1)
6447
+ }, E(l.currentDate.value.toLocaleString("default", { month: "long", year: "numeric" })), 1)
6443
6448
  ]),
6444
6449
  V[12] || (V[12] = o("div", { class: "vt-datepicker__nav-spacer" }, null, -1))
6445
6450
  ]),
6446
6451
  o("div", P5, [
6447
6452
  o("div", R5, [
6448
6453
  o("div", j5, [
6449
- (s(!0), i(oe, null, he(z(kt), (b, H) => (s(), i("span", {
6454
+ (s(!0), i(ne, null, he(Z(kt), (b, H) => (s(), i("span", {
6450
6455
  key: `${H}_${b}`,
6451
6456
  class: "vt-datepicker__weekday"
6452
- }, A(b), 1))), 128))
6457
+ }, E(b), 1))), 128))
6453
6458
  ]),
6454
6459
  o("div", F5, [
6455
- (s(!0), i(oe, null, he(z(se), (b) => (s(), i("button", {
6460
+ (s(!0), i(ne, null, he(Z(se), (b) => (s(), i("button", {
6456
6461
  key: b.getTime(),
6457
6462
  class: q([
6458
6463
  "vt-datepicker__date",
6459
6464
  {
6460
6465
  "vt-datepicker__date--selected": Ae(b, !0, !1),
6461
- "vt-datepicker__date--other-month": !z(D)(b),
6462
- "vt-datepicker__date--today": z(ae)(b),
6466
+ "vt-datepicker__date--other-month": !Z(D)(b),
6467
+ "vt-datepicker__date--today": Z(ae)(b),
6463
6468
  "vt-datepicker__date--in-range": Ue(b, !0, !1) && !Ae(b, !0, !1),
6464
- "vt-datepicker__date--range-start": z(T) && l.startDate.value && z(fe)(b, l.startDate.value) && z(D)(b),
6465
- "vt-datepicker__date--range-end": z(T) && l.endDate.value && z(fe)(b, l.endDate.value) && z(D)(b),
6469
+ "vt-datepicker__date--range-start": Z(T) && l.startDate.value && Z(fe)(b, l.startDate.value) && Z(D)(b),
6470
+ "vt-datepicker__date--range-end": Z(T) && l.endDate.value && Z(fe)(b, l.endDate.value) && Z(D)(b),
6466
6471
  "vt-datepicker__date--disabled": !je(b, !0, !1)
6467
6472
  }
6468
6473
  ]),
@@ -6470,7 +6475,7 @@ const Xe = new j3(), F3 = {
6470
6475
  onClick: (H) => ge(b, !0, !1),
6471
6476
  onMouseenter: (H) => ve(b, !0, !1),
6472
6477
  onMouseleave: Le
6473
- }, A(b.getDate()), 43, Z5))), 128))
6478
+ }, E(b.getDate()), 43, Z5))), 128))
6474
6479
  ])
6475
6480
  ])
6476
6481
  ])
@@ -6496,14 +6501,14 @@ const Xe = new j3(), F3 = {
6496
6501
  type: "time",
6497
6502
  onChange: V[4] || (V[4] = (b) => Ie(b, !0))
6498
6503
  }, null, 8, ["modelValue", "disabled-hours", "disabled-minutes", "disabled-seconds", "hide-disabled-options", "hour-step", "minute-step", "second-step", "show-seconds", "use12-hours"])
6499
- ])) : O("", !0),
6504
+ ])) : N("", !0),
6500
6505
  o("div", O5, [
6501
6506
  V[13] || (V[13] = o("div", { class: "vt-datepicker__nav-spacer" }, null, -1)),
6502
6507
  o("div", N5, [
6503
6508
  o("button", {
6504
6509
  class: "vt-datepicker__header-btn",
6505
6510
  onClick: V[5] || (V[5] = (b) => l.viewMode.value = "month")
6506
- }, A(l.rightCurrentDate.value.toLocaleString("default", { month: "long", year: "numeric" })), 1)
6511
+ }, E(l.rightCurrentDate.value.toLocaleString("default", { month: "long", year: "numeric" })), 1)
6507
6512
  ]),
6508
6513
  o("button", {
6509
6514
  class: "vt-datepicker__nav-btn",
@@ -6515,23 +6520,23 @@ const Xe = new j3(), F3 = {
6515
6520
  o("div", W5, [
6516
6521
  o("div", q5, [
6517
6522
  o("div", U5, [
6518
- (s(!0), i(oe, null, he(z(kt), (b, H) => (s(), i("span", {
6523
+ (s(!0), i(ne, null, he(Z(kt), (b, H) => (s(), i("span", {
6519
6524
  key: `${H}_${b}`,
6520
6525
  class: "vt-datepicker__weekday"
6521
- }, A(b), 1))), 128))
6526
+ }, E(b), 1))), 128))
6522
6527
  ]),
6523
6528
  o("div", K5, [
6524
- (s(!0), i(oe, null, he(z(le), (b) => (s(), i("button", {
6529
+ (s(!0), i(ne, null, he(Z(le), (b) => (s(), i("button", {
6525
6530
  key: b.getTime(),
6526
6531
  class: q([
6527
6532
  "vt-datepicker__date",
6528
6533
  {
6529
6534
  "vt-datepicker__date--selected": Ae(b, !1, !0),
6530
- "vt-datepicker__date--other-month": !z(ee)(b),
6531
- "vt-datepicker__date--today": z(ae)(b),
6535
+ "vt-datepicker__date--other-month": !Z(ee)(b),
6536
+ "vt-datepicker__date--today": Z(ae)(b),
6532
6537
  "vt-datepicker__date--in-range": Ue(b, !1, !0) && !Ae(b, !1, !0),
6533
- "vt-datepicker__date--range-start": z(T) && l.startDate.value && z(fe)(b, l.startDate.value) && z(ee)(b),
6534
- "vt-datepicker__date--range-end": z(T) && l.endDate.value && z(fe)(b, l.endDate.value) && z(ee)(b),
6538
+ "vt-datepicker__date--range-start": Z(T) && l.startDate.value && Z(fe)(b, l.startDate.value) && Z(ee)(b),
6539
+ "vt-datepicker__date--range-end": Z(T) && l.endDate.value && Z(fe)(b, l.endDate.value) && Z(ee)(b),
6535
6540
  "vt-datepicker__date--disabled": !je(b, !1, !0)
6536
6541
  }
6537
6542
  ]),
@@ -6539,7 +6544,7 @@ const Xe = new j3(), F3 = {
6539
6544
  onClick: (H) => ge(b, !1, !0),
6540
6545
  onMouseenter: (H) => ve(b, !1, !0),
6541
6546
  onMouseleave: Le
6542
- }, A(b.getDate()), 43, X5))), 128))
6547
+ }, E(b.getDate()), 43, X5))), 128))
6543
6548
  ])
6544
6549
  ])
6545
6550
  ])
@@ -6565,7 +6570,7 @@ const Xe = new j3(), F3 = {
6565
6570
  type: "time",
6566
6571
  onChange: V[7] || (V[7] = (b) => Ie(b, !1))
6567
6572
  }, null, 8, ["modelValue", "disabled-hours", "disabled-minutes", "disabled-seconds", "hide-disabled-options", "hour-step", "minute-step", "second-step", "show-seconds", "use12-hours"])
6568
- ])) : O("", !0),
6573
+ ])) : N("", !0),
6569
6574
  o("div", J5, [
6570
6575
  o("button", {
6571
6576
  class: "vt-datepicker__nav-btn",
@@ -6578,11 +6583,11 @@ const Xe = new j3(), F3 = {
6578
6583
  key: 0,
6579
6584
  class: "vt-datepicker__header-btn",
6580
6585
  onClick: V[8] || (V[8] = (b) => l.viewMode.value = "month")
6581
- }, A(l.currentDate.value.toLocaleString("default", { month: "long", year: "numeric" })), 1)) : l.viewMode.value === "month" ? (s(), i("button", {
6586
+ }, E(l.currentDate.value.toLocaleString("default", { month: "long", year: "numeric" })), 1)) : l.viewMode.value === "month" ? (s(), i("button", {
6582
6587
  key: 1,
6583
6588
  class: "vt-datepicker__header-btn",
6584
6589
  onClick: V[9] || (V[9] = (b) => l.viewMode.value = "year")
6585
- }, A(l.currentDate.value.getFullYear()), 1)) : (s(), i("span", t6, A(z(W)), 1))
6590
+ }, E(l.currentDate.value.getFullYear()), 1)) : (s(), i("span", t6, E(Z(W)), 1))
6586
6591
  ]),
6587
6592
  o("button", {
6588
6593
  class: "vt-datepicker__nav-btn",
@@ -6594,47 +6599,47 @@ const Xe = new j3(), F3 = {
6594
6599
  o("div", n6, [
6595
6600
  l.viewMode.value === "date" ? (s(), i("div", o6, [
6596
6601
  o("div", l6, [
6597
- (s(!0), i(oe, null, he(z(kt), (b, H) => (s(), i("span", {
6602
+ (s(!0), i(ne, null, he(Z(kt), (b, H) => (s(), i("span", {
6598
6603
  key: `${H}_${b}`,
6599
6604
  class: "vt-datepicker__weekday"
6600
- }, A(b), 1))), 128))
6605
+ }, E(b), 1))), 128))
6601
6606
  ]),
6602
6607
  o("div", s6, [
6603
- (s(!0), i(oe, null, he(z(se), (b) => (s(), i("button", {
6608
+ (s(!0), i(ne, null, he(Z(se), (b) => (s(), i("button", {
6604
6609
  key: b.getTime(),
6605
6610
  class: q([
6606
6611
  "vt-datepicker__date",
6607
6612
  {
6608
6613
  "vt-datepicker__date--selected": Ae(b),
6609
- "vt-datepicker__date--other-month": !z(D)(b),
6610
- "vt-datepicker__date--today": z(ae)(b),
6614
+ "vt-datepicker__date--other-month": !Z(D)(b),
6615
+ "vt-datepicker__date--today": Z(ae)(b),
6611
6616
  "vt-datepicker__date--in-range": Ue(b) && !Ae(b),
6612
- "vt-datepicker__date--range-start": z(T) && l.startDate.value && z(fe)(b, l.startDate.value),
6613
- "vt-datepicker__date--range-end": z(T) && l.endDate.value && z(fe)(b, l.endDate.value)
6617
+ "vt-datepicker__date--range-start": Z(T) && l.startDate.value && Z(fe)(b, l.startDate.value),
6618
+ "vt-datepicker__date--range-end": Z(T) && l.endDate.value && Z(fe)(b, l.endDate.value)
6614
6619
  }
6615
6620
  ]),
6616
6621
  onClick: (H) => ge(b),
6617
6622
  onMouseenter: (H) => ve(b),
6618
6623
  onMouseleave: Le
6619
- }, A(b.getDate()), 43, r6))), 128))
6624
+ }, E(b.getDate()), 43, r6))), 128))
6620
6625
  ])
6621
6626
  ])) : l.viewMode.value === "month" ? (s(), i("div", i6, [
6622
- (s(!0), i(oe, null, he(z(ce), (b, H) => (s(), i("button", {
6627
+ (s(!0), i(ne, null, he(Z(ce), (b, H) => (s(), i("button", {
6623
6628
  key: b.name,
6624
6629
  class: q([
6625
6630
  "vt-datepicker__month",
6626
6631
  {
6627
- "vt-datepicker__month--selected": E(H, l.currentDate.value),
6632
+ "vt-datepicker__month--selected": A(H, l.currentDate.value),
6628
6633
  "vt-datepicker__month--current": H === l.currentDate.value.getMonth(),
6629
- "vt-datepicker__month--in-range": N(H, l.currentDate.value)
6634
+ "vt-datepicker__month--in-range": Y(H, l.currentDate.value)
6630
6635
  }
6631
6636
  ]),
6632
6637
  onClick: (ie) => nt(H, !1),
6633
6638
  onMouseenter: (ie) => dt(H, l.currentDate.value),
6634
6639
  onMouseleave: Ct
6635
- }, A(b.name), 43, a6))), 128))
6640
+ }, E(b.name), 43, a6))), 128))
6636
6641
  ])) : (s(), i("div", u6, [
6637
- (s(!0), i(oe, null, he(z(de), (b) => (s(), i("button", {
6642
+ (s(!0), i(ne, null, he(Z(de), (b) => (s(), i("button", {
6638
6643
  key: b.year,
6639
6644
  class: q([
6640
6645
  "vt-datepicker__year",
@@ -6647,36 +6652,36 @@ const Xe = new j3(), F3 = {
6647
6652
  onClick: (H) => n1(b.year),
6648
6653
  onMouseenter: (H) => o1(b.year),
6649
6654
  onMouseleave: l1
6650
- }, A(b.year), 43, c6))), 128))
6655
+ }, E(b.year), 43, c6))), 128))
6651
6656
  ]))
6652
6657
  ])
6653
6658
  ]))
6654
6659
  ], 2),
6655
6660
  Ee.value ? (s(), i("div", d6, [
6656
6661
  K(Qe, { onClick: Ke }, {
6657
- default: Me(() => V[14] || (V[14] = [
6658
- Ve("Скасувати", -1)
6662
+ default: $e(() => V[14] || (V[14] = [
6663
+ ke("Скасувати", -1)
6659
6664
  ])),
6660
6665
  _: 1,
6661
6666
  __: [14]
6662
6667
  }),
6663
6668
  K(Qe, {
6664
- disabled: !l.startDate.value || z(T) && !l.endDate.value,
6669
+ disabled: !l.startDate.value || Z(T) && !l.endDate.value,
6665
6670
  type: "primary",
6666
6671
  onClick: Ye
6667
6672
  }, {
6668
- default: Me(() => V[15] || (V[15] = [
6669
- Ve(" OK ", -1)
6673
+ default: $e(() => V[15] || (V[15] = [
6674
+ ke(" OK ", -1)
6670
6675
  ])),
6671
6676
  _: 1,
6672
6677
  __: [15]
6673
6678
  }, 8, ["disabled"])
6674
- ])) : O("", !0)
6679
+ ])) : N("", !0)
6675
6680
  ], 36)
6676
6681
  ]),
6677
6682
  _: 1
6678
6683
  })
6679
- ])) : O("", !0)
6684
+ ])) : N("", !0)
6680
6685
  ], 2));
6681
6686
  }
6682
6687
  }), v6 = { class: "v-collapse" }, p6 = /* @__PURE__ */ we({
@@ -6746,7 +6751,7 @@ const Xe = new j3(), F3 = {
6746
6751
  isActive: u.value,
6747
6752
  title: _.title
6748
6753
  }, () => [
6749
- Ve(A(_.title), 1)
6754
+ ke(E(_.title), 1)
6750
6755
  ])
6751
6756
  ]),
6752
6757
  o("div", {
@@ -6762,7 +6767,7 @@ const Xe = new j3(), F3 = {
6762
6767
  onAfterEnter: v,
6763
6768
  onAfterLeave: h
6764
6769
  }, {
6765
- default: Me(() => [
6770
+ default: $e(() => [
6766
6771
  at(o("div", m6, [
6767
6772
  o("div", C6, [
6768
6773
  De(_.$slots, "default")
@@ -6783,12 +6788,12 @@ const Xe = new j3(), F3 = {
6783
6788
  emits: ["update:modelValue", "tab-change", "tab-remove", "tab-add"],
6784
6789
  setup(n, { emit: t }) {
6785
6790
  const a = n, e = t, r = it(), u = L(a.modelValue), p = L([]);
6786
- ye(
6791
+ Me(
6787
6792
  () => a.modelValue,
6788
6793
  (_) => {
6789
6794
  u.value = _;
6790
6795
  }
6791
- ), ye(u, (_) => {
6796
+ ), Me(u, (_) => {
6792
6797
  _ !== a.modelValue && (e("update:modelValue", _), e("tab-change", _));
6793
6798
  });
6794
6799
  const f = (_) => {
@@ -6812,7 +6817,7 @@ const Xe = new j3(), F3 = {
6812
6817
  selectTab: v
6813
6818
  }), (_, l) => (s(), i("div", g6, [
6814
6819
  o("div", w6, [
6815
- (s(!0), i(oe, null, he(p.value, ($) => (s(), i("div", {
6820
+ (s(!0), i(ne, null, he(p.value, ($) => (s(), i("div", {
6816
6821
  key: $.name,
6817
6822
  class: q([{
6818
6823
  "is-active": u.value === $.name,
@@ -6823,21 +6828,21 @@ const Xe = new j3(), F3 = {
6823
6828
  h($) ? (s(), _e(ft(h($)), {
6824
6829
  key: 0,
6825
6830
  "is-active": u.value === $.name
6826
- }, null, 8, ["is-active"])) : (s(), i(oe, { key: 1 }, [
6831
+ }, null, 8, ["is-active"])) : (s(), i(ne, { key: 1 }, [
6827
6832
  $.icon ? (s(), _e(pe, {
6828
6833
  key: 0,
6829
6834
  name: $.icon,
6830
6835
  class: "vt-tab-icon"
6831
- }, null, 8, ["name"])) : O("", !0),
6832
- $.label ? (s(), i("span", b6, A($.label), 1)) : O("", !0)
6836
+ }, null, 8, ["name"])) : N("", !0),
6837
+ $.label ? (s(), i("span", b6, E($.label), 1)) : N("", !0)
6833
6838
  ], 64)),
6834
6839
  $.closable ? (s(), i("span", {
6835
6840
  key: 2,
6836
6841
  class: "vt-tabs__close",
6837
- onClick: xe((g) => C($.name), ["stop"])
6842
+ onClick: Ve((g) => C($.name), ["stop"])
6838
6843
  }, [
6839
6844
  K(pe, { name: "close" })
6840
- ], 8, y6)) : O("", !0)
6845
+ ], 8, y6)) : N("", !0)
6841
6846
  ], 10, k6))), 128))
6842
6847
  ]),
6843
6848
  o("div", M6, [
@@ -7043,8 +7048,8 @@ const Xe = new j3(), F3 = {
7043
7048
  name: "vt-message",
7044
7049
  tag: "div"
7045
7050
  }, {
7046
- default: Me(() => [
7047
- (s(!0), i(oe, null, he(a.value, (v) => (s(), i("div", {
7051
+ default: $e(() => [
7052
+ (s(!0), i(ne, null, he(a.value, (v) => (s(), i("div", {
7048
7053
  key: v.id,
7049
7054
  class: q([
7050
7055
  "vt-message-item",
@@ -7063,7 +7068,7 @@ const Xe = new j3(), F3 = {
7063
7068
  key: 0,
7064
7069
  class: "vt-message-text",
7065
7070
  innerHTML: v.message
7066
- }, null, 8, T6)) : (s(), i("div", I6, A(v.message), 1))
7071
+ }, null, 8, T6)) : (s(), i("div", I6, E(v.message), 1))
7067
7072
  ]),
7068
7073
  v.showClose ? (s(), i("button", {
7069
7074
  key: 0,
@@ -7072,7 +7077,7 @@ const Xe = new j3(), F3 = {
7072
7077
  onClick: (h) => p(v.id)
7073
7078
  }, [
7074
7079
  K(pe, { name: "close" })
7075
- ], 8, B6)) : O("", !0)
7080
+ ], 8, B6)) : N("", !0)
7076
7081
  ], 2))), 128))
7077
7082
  ]),
7078
7083
  _: 1