voiptime-components 1.9.7 → 1.9.8

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 a, openBlock as s, createElementVNode as l, createStaticVNode as tt, defineComponent as ke, computed as x, createBlock as we, createCommentVNode as O, resolveDynamicComponent as at, normalizeStyle as Ee, useSlots as ut, resolveDirective as xt, withDirectives as ot, normalizeClass as U, renderSlot as Te, ref as L, onMounted as ze, nextTick as He, Teleport as lt, withModifiers as Le, toDisplayString as E, createTextVNode as xe, onUnmounted as Ge, watch as $e, createVNode as Q, Fragment as ne, renderList as pe, provide as ct, unref as j, Transition as it, withCtx as Ve, inject as dt, onBeforeUnmount as Wt, createApp as qt, h as gt, mergeModels as Lt, useModel as i1, reactive as Ut, toRef as rt, toRefs as a1, vShow as Kt, TransitionGroup as u1 } from "vue";
1
+ import { createElementBlock as a, openBlock as s, createElementVNode as l, createStaticVNode as tt, defineComponent as ke, computed as x, createBlock as we, createCommentVNode as O, resolveDynamicComponent as ft, normalizeStyle as Ee, useSlots as at, resolveDirective as xt, withDirectives as ot, normalizeClass as U, renderSlot as Te, ref as L, onMounted as ze, nextTick as He, Teleport as lt, withModifiers as Le, toDisplayString as E, createTextVNode as xe, onUnmounted as Ge, watch as $e, createVNode as Q, Fragment as ne, renderList as pe, provide as ut, unref as j, Transition as it, withCtx as Ve, inject as ct, onBeforeUnmount as Wt, createApp as qt, h as gt, mergeModels as Lt, useModel as i1, reactive as Ut, toRef as rt, toRefs as a1, vShow as Kt, TransitionGroup as u1 } from "vue";
2
2
  const M = (n, t) => {
3
3
  const u = n.__vccOpts || n;
4
4
  for (const [e, i] of t)
@@ -2328,7 +2328,7 @@ const ka = /* @__PURE__ */ M(_a, [["render", wa]]), ba = {
2328
2328
  ...t.height && { height: typeof t.height == "number" ? `${t.height}px` : t.height },
2329
2329
  color: t.color
2330
2330
  }));
2331
- return (i, c) => u.value ? (s(), we(at(u.value), {
2331
+ return (i, c) => u.value ? (s(), we(ft(u.value), {
2332
2332
  key: 0,
2333
2333
  style: Ee(e.value)
2334
2334
  }, null, 8, ["style"])) : O("", !0);
@@ -2337,7 +2337,7 @@ const ka = /* @__PURE__ */ M(_a, [["render", wa]]), ba = {
2337
2337
  function $a(n, t) {
2338
2338
  return s(), a("span", Ma);
2339
2339
  }
2340
- const ft = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "data-placement"], Va = {
2340
+ const pt = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "data-placement"], Va = {
2341
2341
  key: 2,
2342
2342
  class: "vt-button__content"
2343
2343
  }, Xe = /* @__PURE__ */ ke({
@@ -2354,10 +2354,10 @@ const ft = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "d
2354
2354
  },
2355
2355
  emits: ["click"],
2356
2356
  setup(n, { emit: t }) {
2357
- const u = n, e = t, i = ut(), c = x(() => !!(u.icon && u.shape)), h = x(() => {
2357
+ const u = n, e = t, i = at(), c = x(() => !!(u.icon && u.shape)), h = x(() => {
2358
2358
  var C, o;
2359
- const v = i.default ? i.default({}) : null;
2360
- return ((o = (C = v == null ? void 0 : v[0]) == null ? void 0 : C.children) == null ? void 0 : o.toString()) ?? "";
2359
+ const d = i.default ? i.default({}) : null;
2360
+ return ((o = (C = d == null ? void 0 : d[0]) == null ? void 0 : C.children) == null ? void 0 : o.toString()) ?? "";
2361
2361
  }), p = x(() => [
2362
2362
  "vt-button",
2363
2363
  `vt-button--${u.type}`,
@@ -2367,19 +2367,19 @@ const ft = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "d
2367
2367
  "vt-button--disabled": u.disabled || u.loading,
2368
2368
  "vt-button--loading": u.loading
2369
2369
  }
2370
- ]), m = x(() => c.value && u.tooltip ? h.value : null), d = (v) => {
2371
- !u.disabled && !u.loading && e("click", v);
2370
+ ]), m = x(() => c.value && u.tooltip ? h.value : null), v = (d) => {
2371
+ !u.disabled && !u.loading && e("click", d);
2372
2372
  };
2373
- return (v, C) => {
2373
+ return (d, C) => {
2374
2374
  const o = xt("tooltip");
2375
2375
  return ot((s(), a("button", {
2376
2376
  class: U(p.value),
2377
2377
  disabled: u.disabled || u.loading,
2378
2378
  type: u.htmlType,
2379
2379
  "data-placement": u.tooltipPlacement,
2380
- onClick: d
2380
+ onClick: v
2381
2381
  }, [
2382
- u.loading ? (s(), we(ft, {
2382
+ u.loading ? (s(), we(pt, {
2383
2383
  key: 0,
2384
2384
  class: "vt-button__icon"
2385
2385
  })) : u.icon ? (s(), we(fe, {
@@ -2388,7 +2388,7 @@ const ft = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "d
2388
2388
  class: "vt-button__icon"
2389
2389
  }, null, 8, ["name"])) : O("", !0),
2390
2390
  c.value ? O("", !0) : (s(), a("span", Va, [
2391
- Te(v.$slots, "default")
2391
+ Te(d.$slots, "default")
2392
2392
  ]))
2393
2393
  ], 10, xa)), [
2394
2394
  [o, m.value]
@@ -2401,10 +2401,7 @@ const ft = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "d
2401
2401
  }, La = {
2402
2402
  key: 0,
2403
2403
  class: "vt-modal__title"
2404
- }, Da = { class: "vt-modal__content" }, Ha = {
2405
- key: 1,
2406
- class: "vt-modal__footer"
2407
- }, Qt = /* @__PURE__ */ ke({
2404
+ }, Da = { class: "vt-modal__content" }, Ha = ["innerHTML"], Qt = /* @__PURE__ */ ke({
2408
2405
  __name: "VModal",
2409
2406
  props: {
2410
2407
  modelValue: { type: Boolean },
@@ -2418,18 +2415,18 @@ const ft = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "d
2418
2415
  setup(n, { emit: t }) {
2419
2416
  const u = n, e = t, i = x(() => ["vt-modal__container", `vt-modal__container--${u.size}`]), c = x(() => ({
2420
2417
  zIndex: u.zIndex
2421
- })), h = L(null), p = () => {
2418
+ })), h = L(""), p = () => {
2422
2419
  e("update:modelValue", !1), e("close");
2423
2420
  }, m = () => {
2424
2421
  u.closeOnBackdropClick && p();
2425
2422
  };
2426
2423
  return ze(() => {
2427
2424
  He(() => {
2428
- const d = document.querySelector(".vt-modal__content"), v = d == null ? void 0 : d.querySelector(".modal-footer");
2429
- v && (h.value = v, d == null || d.appendChild(h.value));
2425
+ const v = document.querySelector(".vt-modal__content"), d = v == null ? void 0 : v.querySelector('[ref="modalFooter"]');
2426
+ d && (h.value = d.outerHTML, d.remove());
2430
2427
  });
2431
- }), (d, v) => (s(), we(lt, { to: "body" }, [
2432
- d.modelValue ? (s(), a("div", {
2428
+ }), (v, d) => (s(), we(lt, { to: "body" }, [
2429
+ v.modelValue ? (s(), a("div", {
2433
2430
  key: 0,
2434
2431
  style: Ee(c.value),
2435
2432
  class: "vt-modal__backdrop",
@@ -2437,12 +2434,12 @@ const ft = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "d
2437
2434
  }, [
2438
2435
  l("div", {
2439
2436
  class: U(i.value),
2440
- onClick: v[0] || (v[0] = Le(() => {
2437
+ onClick: d[0] || (d[0] = Le(() => {
2441
2438
  }, ["stop"]))
2442
2439
  }, [
2443
- d.title || d.showCloseButton ? (s(), a("div", Sa, [
2444
- d.title ? (s(), a("h2", La, E(d.title), 1)) : O("", !0),
2445
- d.showCloseButton ? (s(), we(fe, {
2440
+ v.title || v.showCloseButton ? (s(), a("div", Sa, [
2441
+ v.title ? (s(), a("h2", La, E(v.title), 1)) : O("", !0),
2442
+ v.showCloseButton ? (s(), we(fe, {
2446
2443
  key: 1,
2447
2444
  class: "vt-modal__close",
2448
2445
  name: "close",
@@ -2450,11 +2447,13 @@ const ft = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "d
2450
2447
  })) : O("", !0)
2451
2448
  ])) : O("", !0),
2452
2449
  l("div", Da, [
2453
- Te(d.$slots, "default")
2450
+ Te(v.$slots, "default")
2454
2451
  ]),
2455
- h.value ? (s(), a("div", Ha, [
2456
- (s(), we(at(h.value)))
2457
- ])) : O("", !0)
2452
+ h.value ? (s(), a("div", {
2453
+ key: 1,
2454
+ class: "vt-modal__footer",
2455
+ innerHTML: h.value
2456
+ }, null, 8, Ha)) : O("", !0)
2458
2457
  ], 2)
2459
2458
  ], 4)) : O("", !0)
2460
2459
  ]));
@@ -2477,53 +2476,53 @@ const ft = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "d
2477
2476
  },
2478
2477
  emits: ["update:modelValue", "change", "focus", "blur"],
2479
2478
  setup(n, { emit: t }) {
2480
- const u = n, e = t, i = () => `vt-checkbox-${Math.random().toString(36).substr(2, 9)}`, c = x(() => u.id || i()), h = x(() => u.modelValue ?? u.checked), p = (v) => {
2479
+ const u = n, e = t, i = () => `vt-checkbox-${Math.random().toString(36).substr(2, 9)}`, c = x(() => u.id || i()), h = x(() => u.modelValue ?? u.checked), p = (d) => {
2481
2480
  if (u.disabled) return;
2482
- const o = v.target.checked;
2483
- e("update:modelValue", o), e("change", o, v);
2484
- }, m = (v) => {
2485
- e("focus", v);
2486
- }, d = (v) => {
2487
- e("blur", v);
2481
+ const o = d.target.checked;
2482
+ e("update:modelValue", o), e("change", o, d);
2483
+ }, m = (d) => {
2484
+ e("focus", d);
2485
+ }, v = (d) => {
2486
+ e("blur", d);
2488
2487
  };
2489
- return (v, C) => (s(), a("label", {
2488
+ return (d, C) => (s(), a("label", {
2490
2489
  class: U([
2491
2490
  "vt-checkbox",
2492
- `vt-checkbox--${v.size}`,
2493
- `vt-checkbox--${v.variant}`,
2491
+ `vt-checkbox--${d.size}`,
2492
+ `vt-checkbox--${d.variant}`,
2494
2493
  {
2495
- "vt-checkbox--disabled": v.disabled,
2496
- "vt-checkbox--double": v.isDouble
2494
+ "vt-checkbox--disabled": d.disabled,
2495
+ "vt-checkbox--double": d.isDouble
2497
2496
  }
2498
2497
  ]),
2499
2498
  for: c.value
2500
2499
  }, [
2501
2500
  l("input", {
2502
2501
  id: c.value,
2503
- name: v.name,
2504
- value: v.value,
2502
+ name: d.name,
2503
+ value: d.value,
2505
2504
  checked: h.value,
2506
- disabled: v.disabled,
2507
- required: v.required,
2508
- ".indeterminate": v.indeterminate,
2505
+ disabled: d.disabled,
2506
+ required: d.required,
2507
+ ".indeterminate": d.indeterminate,
2509
2508
  type: "checkbox",
2510
2509
  class: "vt-checkbox__input",
2511
2510
  onChange: p,
2512
2511
  onFocus: m,
2513
- onBlur: d
2512
+ onBlur: v
2514
2513
  }, null, 40, Ia),
2515
2514
  l("div", {
2516
2515
  class: U([
2517
2516
  "vt-checkbox__box",
2518
2517
  {
2519
- "vt-checkbox__box--checked": h.value && !v.indeterminate && !v.isDouble,
2520
- "vt-checkbox__box--indeterminate": v.indeterminate,
2521
- "vt-checkbox__box--double": v.isDouble && h.value,
2522
- "vt-checkbox__box--disabled": v.disabled
2518
+ "vt-checkbox__box--checked": h.value && !d.indeterminate && !d.isDouble,
2519
+ "vt-checkbox__box--indeterminate": d.indeterminate,
2520
+ "vt-checkbox__box--double": d.isDouble && h.value,
2521
+ "vt-checkbox__box--disabled": d.disabled
2523
2522
  }
2524
2523
  ])
2525
2524
  }, [
2526
- !v.indeterminate && !v.isDouble ? (s(), a("svg", {
2525
+ !d.indeterminate && !d.isDouble ? (s(), a("svg", {
2527
2526
  key: 0,
2528
2527
  class: U([
2529
2528
  "vt-checkbox__checkmark",
@@ -2544,7 +2543,7 @@ const ft = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "d
2544
2543
  "stroke-linecap": "round"
2545
2544
  }, null, -1)
2546
2545
  ]), 2)) : O("", !0),
2547
- v.isDouble && h.value ? (s(), a("svg", {
2546
+ d.isDouble && h.value ? (s(), a("svg", {
2548
2547
  key: 1,
2549
2548
  class: U([
2550
2549
  "vt-checkbox__checkmark",
@@ -2573,28 +2572,28 @@ const ft = /* @__PURE__ */ M(ya, [["render", $a]]), xa = ["disabled", "type", "d
2573
2572
  "stroke-linejoin": "round"
2574
2573
  }, null, -1)
2575
2574
  ]), 2)) : O("", !0),
2576
- v.indeterminate ? (s(), a("div", {
2575
+ d.indeterminate ? (s(), a("div", {
2577
2576
  key: 2,
2578
2577
  class: U([
2579
2578
  "vt-checkbox__indeterminate-mark",
2580
2579
  {
2581
- "vt-checkbox__indeterminate-mark--visible": v.indeterminate
2580
+ "vt-checkbox__indeterminate-mark--visible": d.indeterminate
2582
2581
  }
2583
2582
  ])
2584
2583
  }, null, 2)) : O("", !0)
2585
2584
  ], 2),
2586
- v.label || v.$slots.label || v.$slots.default ? (s(), a("span", {
2585
+ d.label || d.$slots.label || d.$slots.default ? (s(), a("span", {
2587
2586
  key: 0,
2588
2587
  class: U([
2589
2588
  "vt-checkbox__label",
2590
2589
  {
2591
- "vt-checkbox__label--disabled": v.disabled
2590
+ "vt-checkbox__label--disabled": d.disabled
2592
2591
  }
2593
2592
  ])
2594
2593
  }, [
2595
- Te(v.$slots, "label", {}, () => [
2596
- Te(v.$slots, "default", {}, () => [
2597
- xe(E(v.label), 1)
2594
+ Te(d.$slots, "label", {}, () => [
2595
+ Te(d.$slots, "default", {}, () => [
2596
+ xe(E(d.label), 1)
2598
2597
  ])
2599
2598
  ])
2600
2599
  ], 2)) : O("", !0)
@@ -2658,8 +2657,8 @@ function mt(n, t, u = {}) {
2658
2657
  hideTimeout: h = 150,
2659
2658
  disabled: p = !1,
2660
2659
  hideOnClick: m = !0,
2661
- onVisibleChange: d,
2662
- onScroll: v
2660
+ onVisibleChange: v,
2661
+ onScroll: d
2663
2662
  } = u, C = L(!1), o = L(!0), $ = L(!1), _ = L(null), K = L([]), A = L({
2664
2663
  top: "0px",
2665
2664
  left: "0px",
@@ -2667,7 +2666,7 @@ function mt(n, t, u = {}) {
2667
2666
  }), H = () => {
2668
2667
  if (!n.value) return;
2669
2668
  const he = Dt(n.value);
2670
- o.value !== he && (o.value = he, !he && C.value ? ($.value = !0, C.value = !1, d == null || d(!1)) : he && $.value && !C.value && ($.value = !1, C.value = !0, R(), d == null || d(!0)));
2669
+ o.value !== he && (o.value = he, !he && C.value ? ($.value = !0, C.value = !1, v == null || v(!1)) : he && $.value && !C.value && ($.value = !1, C.value = !0, R(), v == null || v(!0)));
2671
2670
  }, R = async () => {
2672
2671
  if (await He(), !n.value || !t.value) return;
2673
2672
  const he = n.value.getBoundingClientRect(), D = t.value.getBoundingClientRect(), N = Ea(he, D, i);
@@ -2676,7 +2675,7 @@ function mt(n, t, u = {}) {
2676
2675
  minWidth: `${he.width}px`
2677
2676
  };
2678
2677
  }, G = () => {
2679
- (C.value || $.value) && (H(), C.value && R(), v == null || v());
2678
+ (C.value || $.value) && (H(), C.value && R(), d == null || d());
2680
2679
  }, P = () => {
2681
2680
  n.value && (K.value = Ba(n.value), K.value.forEach((he) => {
2682
2681
  he.addEventListener("scroll", G, { passive: !0 });
@@ -2688,14 +2687,14 @@ function mt(n, t, u = {}) {
2688
2687
  }, re = () => {
2689
2688
  p || C.value || !n.value || !Dt(n.value) || (_.value = window.setTimeout(
2690
2689
  async () => {
2691
- C.value = !0, o.value = !0, $.value = !1, await R(), P(), d == null || d(!0);
2690
+ C.value = !0, o.value = !0, $.value = !1, await R(), P(), v == null || v(!0);
2692
2691
  },
2693
2692
  e === "hover" ? c : 0
2694
2693
  ));
2695
2694
  }, oe = () => {
2696
2695
  C.value && (_.value = window.setTimeout(
2697
2696
  () => {
2698
- C.value = !1, $.value = !1, te(), d == null || d(!1);
2697
+ C.value = !1, $.value = !1, te(), v == null || v(!1);
2699
2698
  },
2700
2699
  e === "hover" ? h : 0
2701
2700
  ));
@@ -2764,9 +2763,9 @@ function za(n, t, u) {
2764
2763
  const e = n.offsetWidth, i = 100;
2765
2764
  let c = 0, h = 0;
2766
2765
  for (let m = 0; m < t.length && m < u; m++) {
2767
- const d = ((p = t[m]) == null ? void 0 : p.offsetWidth) || 0;
2768
- if (c + d + i <= e)
2769
- c += d, h++;
2766
+ const v = ((p = t[m]) == null ? void 0 : p.offsetWidth) || 0;
2767
+ if (c + v + i <= e)
2768
+ c += v, h++;
2770
2769
  else
2771
2770
  break;
2772
2771
  }
@@ -2845,7 +2844,7 @@ const Oa = ["for"], Na = {
2845
2844
  },
2846
2845
  emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "validation", "keydown", "keyup", "keypress", "click"],
2847
2846
  setup(n, { expose: t, emit: u }) {
2848
- const e = n, i = u, c = L(), h = L(), p = L(!1), m = L(!1), d = L(), v = L([]), C = L(!0), o = L(!1), $ = {
2847
+ const e = n, i = u, c = L(), h = L(), p = L(!1), m = L(!1), v = L(), d = L([]), C = L(!0), o = L(!1), $ = {
2849
2848
  email: (g) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(g),
2850
2849
  url: (g) => {
2851
2850
  try {
@@ -2871,7 +2870,7 @@ const Oa = ["for"], Na = {
2871
2870
  }, _ = (g) => {
2872
2871
  const F = [], z = String(g || "");
2873
2872
  if (e.required && !$.required(g) && F.push(e.requiredMessage || "Це поле є обов'язковим"), !z && !e.required) {
2874
- v.value = F, C.value = F.length === 0;
2873
+ d.value = F, C.value = F.length === 0;
2875
2874
  return;
2876
2875
  }
2877
2876
  switch (e.type) {
@@ -2885,7 +2884,7 @@ const Oa = ["for"], Na = {
2885
2884
  z && !$.number(z) && F.push(e.numberMessage || "Введіть коректне число");
2886
2885
  break;
2887
2886
  }
2888
- 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(g, e.customValidator) && F.push(e.customValidatorMessage || "Значення не проходить валідацію"), v.value = F, C.value = F.length === 0, i("validation", { isValid: C.value, errors: F });
2887
+ 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(g, e.customValidator) && F.push(e.customValidatorMessage || "Значення не проходить валідацію"), d.value = F, C.value = F.length === 0, i("validation", { isValid: C.value, errors: F });
2889
2888
  }, K = x(() => e.type === "textarea"), A = x(() => {
2890
2889
  if (e.type === "password") return null;
2891
2890
  switch (e.type) {
@@ -2938,7 +2937,7 @@ const Oa = ["for"], Na = {
2938
2937
  "vt-input--has-suffix": te.value,
2939
2938
  "vt-input--invalid": !C.value
2940
2939
  }
2941
- ]), D = x(() => e.type === "password" ? m.value ? "text" : "password" : e.type === "textarea" ? "text" : e.type), N = x(() => e.errorMessage ? e.errorMessage : v.value.length > 0 ? v.value[0] : ""), ue = x(() => e.autosize && typeof e.autosize == "object" && e.autosize.maxRows ? "none" : e.resize), me = (g) => {
2940
+ ]), D = x(() => e.type === "password" ? m.value ? "text" : "password" : e.type === "textarea" ? "text" : e.type), N = x(() => e.errorMessage ? e.errorMessage : d.value.length > 0 ? d.value[0] : ""), ue = x(() => e.autosize && typeof e.autosize == "object" && e.autosize.maxRows ? "none" : e.resize), me = (g) => {
2942
2941
  let z = g.target.value;
2943
2942
  if (e.type === "number" && z !== "") {
2944
2943
  const Me = Number(z);
@@ -2959,7 +2958,7 @@ const Oa = ["for"], Na = {
2959
2958
  }
2960
2959
  }, le = () => {
2961
2960
  var g;
2962
- i("update:modelValue", ""), i("clear"), (g = c.value) == null || g.focus(), v.value = [], C.value = !0, i("validation", { isValid: !0, errors: [] });
2961
+ i("update:modelValue", ""), i("clear"), (g = c.value) == null || g.focus(), d.value = [], C.value = !0, i("validation", { isValid: !0, errors: [] });
2963
2962
  }, J = () => {
2964
2963
  m.value = !m.value, He(() => {
2965
2964
  var g;
@@ -2975,7 +2974,7 @@ const Oa = ["for"], Na = {
2975
2974
  z = Math.max(Be, Math.min(z, Re));
2976
2975
  }
2977
2976
  const Me = `${z}px`;
2978
- Me !== F && (d.value = Me, g.style.height = Me);
2977
+ Me !== F && (v.value = Me, g.style.height = Me);
2979
2978
  }, ce = (g) => {
2980
2979
  if (!h.value || !(ue.value !== "none")) return;
2981
2980
  const Me = h.value.getBoundingClientRect();
@@ -3005,12 +3004,12 @@ const Oa = ["for"], Na = {
3005
3004
  },
3006
3005
  validate: () => (_(e.modelValue || ""), C.value),
3007
3006
  clearValidation: () => {
3008
- v.value = [], C.value = !0, i("validation", { isValid: !0, errors: [] });
3007
+ d.value = [], C.value = !0, i("validation", { isValid: !0, errors: [] });
3009
3008
  },
3010
3009
  getInputElement: () => c.value || null,
3011
3010
  getValidationState: () => ({
3012
3011
  isValid: C.value,
3013
- errors: [...v.value]
3012
+ errors: [...d.value]
3014
3013
  })
3015
3014
  }), $e(
3016
3015
  () => e.modelValue,
@@ -3062,7 +3061,7 @@ const Oa = ["for"], Na = {
3062
3061
  id: g.id,
3063
3062
  tabindex: g.tabindex,
3064
3063
  autocomplete: g.autocomplete,
3065
- style: Ee({ resize: ue.value, height: d.value }),
3064
+ style: Ee({ resize: ue.value, height: v.value }),
3066
3065
  class: "vt-input__field vt-input__textarea",
3067
3066
  onInput: me,
3068
3067
  onChange: S,
@@ -3135,8 +3134,8 @@ const Oa = ["for"], Na = {
3135
3134
  g.helperText || N.value ? (s(), a("div", Xa, [
3136
3135
  N.value ? (s(), a("span", Ga, E(N.value), 1)) : g.helperText ? (s(), a("span", Ja, E(g.helperText), 1)) : O("", !0)
3137
3136
  ])) : O("", !0),
3138
- v.value.length > 1 && g.showAllErrors ? (s(), a("div", e3, [
3139
- (s(!0), a(ne, null, pe(v.value, (z, Me) => (s(), a("div", {
3137
+ d.value.length > 1 && g.showAllErrors ? (s(), a("div", e3, [
3138
+ (s(!0), a(ne, null, pe(d.value, (z, Me) => (s(), a("div", {
3140
3139
  key: Me,
3141
3140
  class: "vt-input__error-item"
3142
3141
  }, [
@@ -3204,7 +3203,7 @@ const Oa = ["for"], Na = {
3204
3203
  },
3205
3204
  emits: ["update:modelValue", "change", "clear", "focus", "blur", "visible-change", "validation", "scrolled", "remove-tag", "filter", "filter-clear"],
3206
3205
  setup(n, { expose: t, emit: u }) {
3207
- const e = n, i = u, c = L(), h = L(), p = L(), m = L(), d = L([]), v = L(), C = L(), o = {
3206
+ const e = n, i = u, c = L(), h = L(), p = L(), m = L(), v = L([]), d = L(), C = L(), o = {
3208
3207
  isFocused: L(!1),
3209
3208
  validationErrors: L([]),
3210
3209
  isValid: L(!0),
@@ -3244,8 +3243,8 @@ const Oa = ["for"], Na = {
3244
3243
  be && Fe && (ve.value = Se, i("scrolled"));
3245
3244
  }, D = () => {
3246
3245
  He(() => {
3247
- if (!v.value) return;
3248
- const r = v.value, f = r.scrollHeight, q = r.clientHeight, Y = r.scrollTop, _e = f <= q, ae = Y + q >= f - 10;
3246
+ if (!d.value) return;
3247
+ const r = d.value, f = r.scrollHeight, q = r.clientHeight, Y = r.scrollTop, _e = f <= q, ae = Y + q >= f - 10;
3249
3248
  if ((_e || ae) && oe.value.length > 0 && !e.loading) {
3250
3249
  const be = Date.now();
3251
3250
  be - ve.value > Tt && (ve.value = be, i("scrolled"));
@@ -3350,7 +3349,7 @@ const Oa = ["for"], Na = {
3350
3349
  }
3351
3350
  He(() => {
3352
3351
  if (!m.value) return;
3353
- const r = za(m.value, d.value, ce.value.length);
3352
+ const r = za(m.value, v.value, ce.value.length);
3354
3353
  o.visibleCount.value = r;
3355
3354
  });
3356
3355
  }, k = {
@@ -3362,7 +3361,7 @@ const Oa = ["for"], Na = {
3362
3361
  registerOption: H,
3363
3362
  unregisterOption: R
3364
3363
  };
3365
- return ct(Xt, k), t({
3364
+ return ut(Xt, k), t({
3366
3365
  ...{
3367
3366
  focus() {
3368
3367
  N.value || S();
@@ -3402,8 +3401,8 @@ const Oa = ["for"], Na = {
3402
3401
  D();
3403
3402
  },
3404
3403
  getScrollInfo() {
3405
- if (!v.value) return null;
3406
- const { scrollTop: r, scrollHeight: f, clientHeight: q } = v.value, Y = f - (r + q), _e = Y <= 50;
3404
+ if (!d.value) return null;
3405
+ const { scrollTop: r, scrollHeight: f, clientHeight: q } = d.value, Y = f - (r + q), _e = Y <= 50;
3407
3406
  return {
3408
3407
  scrollTop: r,
3409
3408
  scrollHeight: f,
@@ -3486,7 +3485,7 @@ const Oa = ["for"], Na = {
3486
3485
  (s(!0), a(ne, null, pe(Ye.value, (Y, _e) => (s(), a("div", {
3487
3486
  key: `tag-${typeof Y.value == "object" ? JSON.stringify(Y.value) : Y.value}-${_e}`,
3488
3487
  ref_for: !0,
3489
- ref: (ae) => ae && (d.value[_e] = ae),
3488
+ ref: (ae) => ae && (v.value[_e] = ae),
3490
3489
  class: "vt-select__tag"
3491
3490
  }, [
3492
3491
  l("span", l3, E(Y.label), 1),
@@ -3505,7 +3504,7 @@ const Oa = ["for"], Na = {
3505
3504
  ], 512)) : !r.multiple && De.value ? (s(), a("span", i3, E(De.value), 1)) : (s(), a("span", a3, E(r.placeholder), 1))
3506
3505
  ]),
3507
3506
  l("div", u3, [
3508
- r.loading ? (s(), we(ft, {
3507
+ r.loading ? (s(), we(pt, {
3509
3508
  key: 0,
3510
3509
  class: "vt-select__loading"
3511
3510
  })) : Ie.value ? (s(), a("button", {
@@ -3573,7 +3572,7 @@ const Oa = ["for"], Na = {
3573
3572
  ])) : (s(), a("div", {
3574
3573
  key: 2,
3575
3574
  ref_key: "scrollContainerRef",
3576
- ref: v,
3575
+ ref: d,
3577
3576
  class: "vt-select-dropdown__options",
3578
3577
  onScroll: he
3579
3578
  }, [
@@ -3602,11 +3601,11 @@ const Oa = ["for"], Na = {
3602
3601
  onChange: (_e) => Me(Y)
3603
3602
  }, null, 8, ["checked", "disabled", "onChange"])) : O("", !0),
3604
3603
  l("span", g3, [
3605
- G(Y.value) ? (s(), we(at(G(Y.value)), { key: 0 })) : (s(), a("span", w3, E(Y.label || Y.value), 1))
3604
+ G(Y.value) ? (s(), we(ft(G(Y.value)), { key: 0 })) : (s(), a("span", w3, E(Y.label || Y.value), 1))
3606
3605
  ])
3607
3606
  ], 42, _3))), 128)),
3608
3607
  r.loading ? (s(), a("div", k3, [
3609
- Q(ft, { class: "vt-select-dropdown__loading-icon" }),
3608
+ Q(pt, { class: "vt-select-dropdown__loading-icon" }),
3610
3609
  xe(" " + E(e.loadingText), 1)
3611
3610
  ])) : O("", !0)
3612
3611
  ], 544))
@@ -3627,7 +3626,7 @@ const Oa = ["for"], Na = {
3627
3626
  },
3628
3627
  emits: ["click"],
3629
3628
  setup(n, { emit: t }) {
3630
- const u = n, e = ut(), i = dt(Xt);
3629
+ const u = n, e = at(), i = ct(Xt);
3631
3630
  i || console.warn("VOption повинен використовуватися всередині VSelect");
3632
3631
  const c = x(() => ({
3633
3632
  label: u.label,
@@ -3662,7 +3661,7 @@ const Oa = ["for"], Na = {
3662
3661
  }), c = x({
3663
3662
  get: () => u.pageSize,
3664
3663
  set: (R) => e("update:pageSize", R)
3665
- }), h = x(() => Math.ceil(u.totalItems / c.value)), p = x(() => u.totalItems === 0 ? 0 : (i.value - 1) * c.value + 1), m = x(() => Math.min(i.value * c.value, u.totalItems)), d = x(() => i.value <= 1), v = x(() => i.value >= h.value), C = x(() => {
3664
+ }), h = x(() => Math.ceil(u.totalItems / c.value)), p = x(() => u.totalItems === 0 ? 0 : (i.value - 1) * c.value + 1), m = x(() => Math.min(i.value * c.value, u.totalItems)), v = x(() => i.value <= 1), d = x(() => i.value >= h.value), C = x(() => {
3666
3665
  const R = [], G = h.value, P = i.value, te = u.maxVisiblePages;
3667
3666
  if (G <= te)
3668
3667
  for (let re = 1; re <= G; re++)
@@ -3684,9 +3683,9 @@ const Oa = ["for"], Na = {
3684
3683
  }, $ = (R) => {
3685
3684
  typeof R == "number" && R !== i.value && (i.value = R, o());
3686
3685
  }, _ = () => {
3687
- d.value || (i.value--, o());
3686
+ v.value || (i.value--, o());
3688
3687
  }, K = () => {
3689
- v.value || (i.value++, o());
3688
+ d.value || (i.value++, o());
3690
3689
  }, A = () => {
3691
3690
  i.value = 1, o();
3692
3691
  }, H = () => {
@@ -3730,8 +3729,8 @@ const Oa = ["for"], Na = {
3730
3729
  ]),
3731
3730
  l("div", x3, [
3732
3731
  l("button", {
3733
- class: U({ "vt-pagination__nav-button": !0, "has-items": !d.value }),
3734
- disabled: d.value,
3732
+ class: U({ "vt-pagination__nav-button": !0, "has-items": !v.value }),
3733
+ disabled: v.value,
3735
3734
  onClick: _
3736
3735
  }, [
3737
3736
  Q(fe, { name: "arrowLeft" })
@@ -3744,8 +3743,8 @@ const Oa = ["for"], Na = {
3744
3743
  onClick: (te) => $(P)
3745
3744
  }, E(P), 11, S3))), 128)),
3746
3745
  l("button", {
3747
- class: U({ "vt-pagination__nav-button": !0, "has-items": !v.value }),
3748
- disabled: v.value,
3746
+ class: U({ "vt-pagination__nav-button": !0, "has-items": !d.value }),
3747
+ disabled: d.value,
3749
3748
  onClick: K
3750
3749
  }, [
3751
3750
  Q(fe, { name: "arrowRight" })
@@ -3784,21 +3783,21 @@ const Oa = ["for"], Na = {
3784
3783
  },
3785
3784
  emits: ["update:modelValue", "change", "focus", "blur"],
3786
3785
  setup(n, { emit: t }) {
3787
- const u = n, e = t, i = () => `vt-radiobox-${Math.random().toString(36).substr(2, 9)}`, c = x(() => u.id || i()), h = x(() => u.modelValue !== void 0 ? u.modelValue === u.value : u.checked), p = (v) => {
3786
+ const u = n, e = t, i = () => `vt-radiobox-${Math.random().toString(36).substr(2, 9)}`, c = x(() => u.id || i()), h = x(() => u.modelValue !== void 0 ? u.modelValue === u.value : u.checked), p = (d) => {
3788
3787
  if (u.disabled) return;
3789
- v.target.checked && (e("update:modelValue", u.value), e("change", u.value, v));
3790
- }, m = (v) => {
3791
- e("focus", v);
3792
- }, d = (v) => {
3793
- e("blur", v);
3788
+ d.target.checked && (e("update:modelValue", u.value), e("change", u.value, d));
3789
+ }, m = (d) => {
3790
+ e("focus", d);
3791
+ }, v = (d) => {
3792
+ e("blur", d);
3794
3793
  };
3795
- return (v, C) => (s(), a("label", {
3794
+ return (d, C) => (s(), a("label", {
3796
3795
  class: U([
3797
3796
  "vt-radiobox",
3798
- `vt-radiobox--${v.size}`,
3799
- `vt-radiobox--${v.variant}`,
3797
+ `vt-radiobox--${d.size}`,
3798
+ `vt-radiobox--${d.variant}`,
3800
3799
  {
3801
- "vt-radiobox--disabled": v.disabled
3800
+ "vt-radiobox--disabled": d.disabled
3802
3801
  }
3803
3802
  ]),
3804
3803
  for: c.value
@@ -3806,13 +3805,13 @@ const Oa = ["for"], Na = {
3806
3805
  l("input", {
3807
3806
  id: c.value,
3808
3807
  checked: h.value,
3809
- disabled: v.disabled,
3810
- name: v.name,
3811
- required: v.required,
3812
- value: v.value,
3808
+ disabled: d.disabled,
3809
+ name: d.name,
3810
+ required: d.required,
3811
+ value: d.value,
3813
3812
  class: "vt-radiobox__input",
3814
3813
  type: "radio",
3815
- onBlur: d,
3814
+ onBlur: v,
3816
3815
  onChange: p,
3817
3816
  onFocus: m
3818
3817
  }, null, 40, T3),
@@ -3821,7 +3820,7 @@ const Oa = ["for"], Na = {
3821
3820
  "vt-radiobox__circle",
3822
3821
  {
3823
3822
  "vt-radiobox__circle--checked": h.value,
3824
- "vt-radiobox__circle--disabled": v.disabled
3823
+ "vt-radiobox__circle--disabled": d.disabled
3825
3824
  }
3826
3825
  ])
3827
3826
  }, [
@@ -3834,18 +3833,18 @@ const Oa = ["for"], Na = {
3834
3833
  ])
3835
3834
  }, null, 2)
3836
3835
  ], 2),
3837
- v.label || v.$slots.label || v.$slots.default ? (s(), a("span", {
3836
+ d.label || d.$slots.label || d.$slots.default ? (s(), a("span", {
3838
3837
  key: 0,
3839
3838
  class: U([
3840
3839
  "vt-radiobox__label",
3841
3840
  {
3842
- "vt-radiobox__label--disabled": v.disabled
3841
+ "vt-radiobox__label--disabled": d.disabled
3843
3842
  }
3844
3843
  ])
3845
3844
  }, [
3846
- Te(v.$slots, "label", {}, () => [
3847
- Te(v.$slots, "default", {}, () => [
3848
- xe(E(v.label), 1)
3845
+ Te(d.$slots, "label", {}, () => [
3846
+ Te(d.$slots, "default", {}, () => [
3847
+ xe(E(d.label), 1)
3849
3848
  ])
3850
3849
  ])
3851
3850
  ], 2)) : O("", !0)
@@ -3857,10 +3856,10 @@ function B3(n) {
3857
3856
  const i = n.filter((p) => p.pinnedLeft), c = n.filter((p) => p.pinnedRight), h = n.filter((p) => !p.pinnedLeft && !p.pinnedRight);
3858
3857
  return [...i, ...h, ...c];
3859
3858
  }), u = () => {
3860
- const i = t.value.length, c = t.value.filter((v) => v.width || v.minWidth), h = c.reduce((v, C) => v + (C.width || C.minWidth || 0), 0), p = i - c.length;
3859
+ const i = t.value.length, c = t.value.filter((d) => d.width || d.minWidth), h = c.reduce((d, C) => d + (C.width || C.minWidth || 0), 0), p = i - c.length;
3861
3860
  if (p === 0) return 150;
3862
- const d = Math.max(800 - h, p * 80);
3863
- return Math.max(Math.floor(d / p), 120);
3861
+ const v = Math.max(800 - h, p * 80);
3862
+ return Math.max(Math.floor(v / p), 120);
3864
3863
  };
3865
3864
  return {
3866
3865
  sortedColumns: t,
@@ -3870,14 +3869,14 @@ function B3(n) {
3870
3869
  let m = 0;
3871
3870
  if (i === "left") {
3872
3871
  h && (m += 50);
3873
- for (let d = 0; d < c; d++) {
3874
- const v = p[d];
3875
- v.pinnedLeft && (m += v.width || v.minWidth || u());
3872
+ for (let v = 0; v < c; v++) {
3873
+ const d = p[v];
3874
+ d.pinnedLeft && (m += d.width || d.minWidth || u());
3876
3875
  }
3877
3876
  } else
3878
- for (let d = p.length - 1; d > c; d--) {
3879
- const v = p[d];
3880
- v.pinnedRight && (m += v.width || v.minWidth || u());
3877
+ for (let v = p.length - 1; v > c; v--) {
3878
+ const d = p[v];
3879
+ d.pinnedRight && (m += d.width || d.minWidth || u());
3881
3880
  }
3882
3881
  return m;
3883
3882
  }
@@ -3888,27 +3887,27 @@ function E3(n) {
3888
3887
  const c = {};
3889
3888
  return n.maxHeight && (c.maxHeight = `${n.maxHeight}px`), c;
3890
3889
  }, u = (c, h, p, m) => {
3891
- const d = {};
3890
+ const v = {};
3892
3891
  if (c.width)
3893
- d.width = `${c.width}px`, d.minWidth = `${c.width}px`, d.maxWidth = `${c.width}px`;
3892
+ v.width = `${c.width}px`, v.minWidth = `${c.width}px`, v.maxWidth = `${c.width}px`;
3894
3893
  else if (c.minWidth)
3895
- d.minWidth = `${c.minWidth}px`, d.width = `${c.minWidth}px`, d.maxWidth = "none";
3894
+ v.minWidth = `${c.minWidth}px`, v.width = `${c.minWidth}px`, v.maxWidth = "none";
3896
3895
  else {
3897
- const v = m();
3898
- d.width = `${v}px`, d.minWidth = "80px", d.maxWidth = "none";
3896
+ const d = m();
3897
+ v.width = `${d}px`, v.minWidth = "80px", v.maxWidth = "none";
3899
3898
  }
3900
- return c.pinnedLeft ? (d.position = "sticky", d.left = `${p("left", h, n.selectable)}px`, d.zIndex = "10") : c.pinnedRight && (d.position = "sticky", d.right = `${p("right", h, !1)}px`, d.zIndex = "10"), d;
3899
+ return c.pinnedLeft ? (v.position = "sticky", v.left = `${p("left", h, n.selectable)}px`, v.zIndex = "10") : c.pinnedRight && (v.position = "sticky", v.right = `${p("right", h, !1)}px`, v.zIndex = "10"), v;
3901
3900
  };
3902
3901
  return {
3903
3902
  getTableWrapperStyle: t,
3904
3903
  getColumnStyle: u,
3905
3904
  getHeaderStyle: (c, h, p, m) => {
3906
- const d = u(c, h, p, m);
3907
- return n.maxHeight && (d.position = "sticky", d.top = "0", c.pinnedLeft || c.pinnedRight ? d.zIndex = "12" : d.zIndex = "11"), d;
3905
+ const v = u(c, h, p, m);
3906
+ return n.maxHeight && (v.position = "sticky", v.top = "0", c.pinnedLeft || c.pinnedRight ? v.zIndex = "12" : v.zIndex = "11"), v;
3908
3907
  },
3909
3908
  getFooterStyle: (c, h, p, m) => {
3910
- const d = u(c, h, p, m);
3911
- return n.maxHeight && (d.position = "sticky", d.bottom = "0", c.pinnedLeft || c.pinnedRight ? d.zIndex = "12" : d.zIndex = "11"), d;
3909
+ const v = u(c, h, p, m);
3910
+ return n.maxHeight && (v.position = "sticky", v.bottom = "0", c.pinnedLeft || c.pinnedRight ? v.zIndex = "12" : v.zIndex = "11"), v;
3912
3911
  }
3913
3912
  };
3914
3913
  }
@@ -3921,19 +3920,19 @@ function A3() {
3921
3920
  return {
3922
3921
  onMouseDown: (e, i, c, h) => {
3923
3922
  e.preventDefault(), e.stopPropagation(), n.value.resizingCol = i, n.value.startX = e.clientX, n.value.startWidth = i.width || i.minWidth || c(i.prop);
3924
- const p = (d) => {
3925
- const { resizingCol: v, startX: C, startWidth: o } = n.value;
3926
- if (!v) return;
3927
- document.querySelectorAll(`[data-resizer="${v.prop}"]`).forEach((H) => {
3923
+ const p = (v) => {
3924
+ const { resizingCol: d, startX: C, startWidth: o } = n.value;
3925
+ if (!d) return;
3926
+ document.querySelectorAll(`[data-resizer="${d.prop}"]`).forEach((H) => {
3928
3927
  H.classList.add("vt-table__resizer--active");
3929
3928
  });
3930
- const $ = d.clientX - C, _ = v.minWidth || 50, K = v.maxWidth || 1e3, A = Math.max(Math.min(o + $, K), _);
3931
- v.width = A;
3929
+ const $ = v.clientX - C, _ = d.minWidth || 50, K = d.maxWidth || 1e3, A = Math.max(Math.min(o + $, K), _);
3930
+ d.width = A;
3932
3931
  }, m = () => {
3933
- const { resizingCol: d } = n.value;
3934
- document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", m), document.body.style.cursor = "", document.body.style.userSelect = "", document.body.classList.remove("vt-table-resizing"), d && (document.querySelectorAll(`[data-resizer="${d.prop}"]`).forEach((v) => {
3935
- v.classList.remove("vt-table__resizer--active");
3936
- }), h && d.width && h(d.width)), n.value.resizingCol = null;
3932
+ const { resizingCol: v } = n.value;
3933
+ document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", m), document.body.style.cursor = "", document.body.style.userSelect = "", document.body.classList.remove("vt-table-resizing"), v && (document.querySelectorAll(`[data-resizer="${v.prop}"]`).forEach((d) => {
3934
+ d.classList.remove("vt-table__resizer--active");
3935
+ }), h && v.width && h(v.width)), n.value.resizingCol = null;
3937
3936
  };
3938
3937
  document.addEventListener("mousemove", p), document.addEventListener("mouseup", m), document.body.style.cursor = t, document.body.style.userSelect = "none", document.body.classList.add("vt-table-resizing");
3939
3938
  },
@@ -3944,9 +3943,9 @@ function P3(n, t, u, e) {
3944
3943
  var he;
3945
3944
  const i = n.selectionKey || "id", c = L([]), h = L(null), p = L(!1);
3946
3945
  (he = n.defaultSelection) != null && he.length && (c.value = [...n.defaultSelection]);
3947
- const m = (D) => D[i], d = (D) => p.value ? !0 : c.value.some((N) => m(N) === m(D)), v = x(() => t.value.filter((D) => d(D)).length), C = x(() => t.value.length > 0 && v.value === t.value.length), o = x(() => {
3946
+ const m = (D) => D[i], v = (D) => p.value ? !0 : c.value.some((N) => m(N) === m(D)), d = x(() => t.value.filter((D) => v(D)).length), C = x(() => t.value.length > 0 && d.value === t.value.length), o = x(() => {
3948
3947
  if (p.value) return !1;
3949
- const D = v.value;
3948
+ const D = d.value;
3950
3949
  return D > 0 && D < t.value.length;
3951
3950
  }), $ = x(() => p.value ? !0 : C.value && !o.value), _ = x(() => n.isAllSelect && p.value), K = (D, N) => {
3952
3951
  const ue = m(D), me = c.value.some((B) => m(B) === m(D)), S = N !== void 0 ? N : !me;
@@ -3968,7 +3967,7 @@ function P3(n, t, u, e) {
3968
3967
  P();
3969
3968
  break;
3970
3969
  }
3971
- }, H = () => p.value ? "absoluteAll" : C.value ? "allVisible" : v.value > 0 ? "partial" : "none", R = () => {
3970
+ }, H = () => p.value ? "absoluteAll" : C.value ? "allVisible" : d.value > 0 ? "partial" : "none", R = () => {
3972
3971
  const D = [], N = new Set(c.value.map((ue) => m(ue)));
3973
3972
  c.value.forEach((ue) => {
3974
3973
  D.push(ue);
@@ -4004,7 +4003,7 @@ function P3(n, t, u, e) {
4004
4003
  ), {
4005
4004
  selectedRows: c,
4006
4005
  currentRow: h,
4007
- isRowSelected: d,
4006
+ isRowSelected: v,
4008
4007
  isAllSelected: $,
4009
4008
  isIndeterminate: o,
4010
4009
  isDoubleCheck: _,
@@ -4064,7 +4063,7 @@ const R3 = (n, t, u = "asc") => {
4064
4063
  },
4065
4064
  emits: ["visible-change", "click", "command"],
4066
4065
  setup(n, { expose: t, emit: u }) {
4067
- const e = n, i = u, c = L(), h = L(), p = L(), m = L(!1), d = L(!1), v = L(null), { visible: C, parentVisible: o, dropdownPosition: $, show: _, hide: K, toggle: A } = mt(
4066
+ const e = n, i = u, c = L(), h = L(), p = L(), m = L(!1), v = L(!1), d = L(null), { visible: C, parentVisible: o, dropdownPosition: $, show: _, hide: K, toggle: A } = mt(
4068
4067
  h,
4069
4068
  p,
4070
4069
  {
@@ -4077,13 +4076,13 @@ const R3 = (n, t, u = "asc") => {
4077
4076
  onVisibleChange: (N) => i("visible-change", N)
4078
4077
  }
4079
4078
  ), H = () => {
4080
- v.value && (clearTimeout(v.value), v.value = null);
4079
+ d.value && (clearTimeout(d.value), d.value = null);
4081
4080
  }, R = () => {
4082
- H(), v.value = setTimeout(() => {
4083
- !m.value && !d.value && K();
4081
+ H(), d.value = setTimeout(() => {
4082
+ !m.value && !v.value && K();
4084
4083
  }, e.hideTimeout);
4085
4084
  };
4086
- ct(t1, {
4085
+ ut(t1, {
4087
4086
  handleCommand: (N) => {
4088
4087
  i("command", N), e.hideOnClick && K();
4089
4088
  },
@@ -4096,9 +4095,9 @@ const R3 = (n, t, u = "asc") => {
4096
4095
  }, re = () => {
4097
4096
  e.trigger === "hover" && (m.value = !1, R());
4098
4097
  }, oe = () => {
4099
- e.trigger === "hover" && (d.value = !0, H());
4098
+ e.trigger === "hover" && (v.value = !0, H());
4100
4099
  }, ve = () => {
4101
- e.trigger === "hover" && (d.value = !1, R());
4100
+ e.trigger === "hover" && (v.value = !1, R());
4102
4101
  }, he = (N) => {
4103
4102
  var me, S;
4104
4103
  if (!C.value) return;
@@ -4162,7 +4161,7 @@ const R3 = (n, t, u = "asc") => {
4162
4161
  },
4163
4162
  emits: ["click"],
4164
4163
  setup(n, { emit: t }) {
4165
- const u = n, e = t, i = dt(t1);
4164
+ const u = n, e = t, i = ct(t1);
4166
4165
  i || console.warn("VDropdownItem must be used within VDropdown");
4167
4166
  const c = (h) => {
4168
4167
  u.disabled || (console.log("VDropdownItem click:", u.command), e("click", h), u.command !== void 0 && i && (console.log("Calling handleCommand with:", u.command), i.handleCommand(u.command)));
@@ -4276,7 +4275,7 @@ const Qe = new Z3(), z3 = {
4276
4275
  },
4277
4276
  emits: ["update-columns"],
4278
4277
  setup(n, { emit: t }) {
4279
- const u = n, e = t, i = L([]), c = L(/* @__PURE__ */ new Set()), h = L(-1), p = L(-1), m = L("before"), d = x(() => {
4278
+ const u = n, e = t, i = L([]), c = L(/* @__PURE__ */ new Set()), h = L(-1), p = L(-1), m = L("before"), v = x(() => {
4280
4279
  const S = {};
4281
4280
  return u.columnsSelector.forEach((B) => {
4282
4281
  if (B.name === "removed")
@@ -4284,7 +4283,7 @@ const Qe = new Z3(), z3 = {
4284
4283
  const Z = B.columns.map((J) => J.prop), le = i.value.filter((J) => Z.includes(J.prop));
4285
4284
  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 };
4286
4285
  }), S;
4287
- }), v = x(() => u.columnsSelector.filter((S) => S.name !== "removed")), C = (S) => S.pinnedLeft || S.pinnedRight, o = (S) => !C(S), $ = () => {
4286
+ }), d = x(() => u.columnsSelector.filter((S) => S.name !== "removed")), C = (S) => S.pinnedLeft || S.pinnedRight, o = (S) => !C(S), $ = () => {
4288
4287
  const S = i.value;
4289
4288
  let B = -1;
4290
4289
  for (let le = 0; le < S.length; le++)
@@ -4406,7 +4405,7 @@ const Qe = new Z3(), z3 = {
4406
4405
  ], 42, W3))), 128))
4407
4406
  ]),
4408
4407
  l("div", U3, [
4409
- (s(!0), a(ne, null, pe(v.value, (Z) => {
4408
+ (s(!0), a(ne, null, pe(d.value, (Z) => {
4410
4409
  var le, J;
4411
4410
  return s(), a("div", {
4412
4411
  key: Z.name,
@@ -4418,8 +4417,8 @@ const Qe = new Z3(), z3 = {
4418
4417
  }, [
4419
4418
  Q(Je, {
4420
4419
  label: Z.label,
4421
- checked: ((le = d.value[Z.name]) == null ? void 0 : le.checked) || !1,
4422
- indeterminate: ((J = d.value[Z.name]) == null ? void 0 : J.indeterminate) || !1,
4420
+ checked: ((le = v.value[Z.name]) == null ? void 0 : le.checked) || !1,
4421
+ indeterminate: ((J = v.value[Z.name]) == null ? void 0 : J.indeterminate) || !1,
4423
4422
  onChange: (X) => ve(Z, X),
4424
4423
  onClick: B[1] || (B[1] = Le(() => {
4425
4424
  }, ["stop"]))
@@ -4478,28 +4477,28 @@ const Qe = new Z3(), z3 = {
4478
4477
  },
4479
4478
  emits: ["pin", "update-columns"],
4480
4479
  setup(n, { emit: t }) {
4481
- const u = n, e = t, i = () => !!(u.column.pinnedLeft || u.column.pinnedRight), c = (v) => {
4482
- switch (console.log("ColumnActions - Command received:", v, typeof v), String(v)) {
4480
+ const u = n, e = t, i = () => !!(u.column.pinnedLeft || u.column.pinnedRight), c = (d) => {
4481
+ switch (console.log("ColumnActions - Command received:", d, typeof d), String(d)) {
4483
4482
  case "pin":
4484
4483
  console.log("Executing pin command"), h();
4485
4484
  break;
4486
4485
  case "columns":
4487
- console.log("Executing columns command"), d();
4486
+ console.log("Executing columns command"), v();
4488
4487
  break;
4489
4488
  default:
4490
- console.warn("Unknown command:", v);
4489
+ console.warn("Unknown command:", d);
4491
4490
  }
4492
4491
  }, h = () => {
4493
- const v = i();
4494
- console.log("handlePin called, isPinned:", v), v ? e("pin", u.column, "none") : e("pin", u.column, "left");
4495
- }, p = (v) => ({
4492
+ const d = i();
4493
+ console.log("handlePin called, isPinned:", d), d ? e("pin", u.column, "none") : e("pin", u.column, "left");
4494
+ }, p = (d) => ({
4496
4495
  name: "removed",
4497
4496
  label: "Видалені колонки",
4498
4497
  order: 999,
4499
- columns: v
4500
- }), m = (v) => {
4498
+ columns: d
4499
+ }), m = (d) => {
4501
4500
  var K;
4502
- const C = new Set(v.map((A) => A.prop)), o = /* @__PURE__ */ new Set();
4501
+ const C = new Set(d.map((A) => A.prop)), o = /* @__PURE__ */ new Set();
4503
4502
  (K = u.columnsSelector) == null || K.forEach((A) => {
4504
4503
  A.columns.forEach((H) => o.add(H.prop));
4505
4504
  }), u.allColumns.forEach((A) => o.add(A.prop));
@@ -4516,15 +4515,15 @@ const Qe = new Z3(), z3 = {
4516
4515
  });
4517
4516
  const _ = [...u.columnsSelector || []];
4518
4517
  return $.length > 0 && _.push(p($)), _;
4519
- }, d = () => {
4518
+ }, v = () => {
4520
4519
  console.log("handleToggleVisibility called");
4521
- const v = m(u.allColumns);
4520
+ const d = m(u.allColumns);
4522
4521
  Qe.open({
4523
4522
  component: J3,
4524
4523
  title: "Управління колонками таблиці",
4525
4524
  props: {
4526
4525
  columns: u.allColumns,
4527
- columnsSelector: v,
4526
+ columnsSelector: d,
4528
4527
  "onUpdate-columns": (C) => {
4529
4528
  e("update-columns", C);
4530
4529
  }
@@ -4533,7 +4532,7 @@ const Qe = new Z3(), z3 = {
4533
4532
  closeOnBackdropClick: !1
4534
4533
  });
4535
4534
  };
4536
- return (v, C) => (s(), we(n1, {
4535
+ return (d, C) => (s(), we(n1, {
4537
4536
  trigger: "click",
4538
4537
  placement: "bottom-start",
4539
4538
  onCommand: c
@@ -4603,7 +4602,7 @@ const Qe = new Z3(), z3 = {
4603
4602
  }),
4604
4603
  emits: /* @__PURE__ */ Lt(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
4605
4604
  setup(n, { expose: t, emit: u }) {
4606
- const e = n, i = u, c = i1(n, "columns"), h = L({}), p = L(), m = Ut([]), d = L(e.defaultSort || null), v = x(() => F3(e.data || [], d.value, m)), C = x(() => c.value !== void 0), o = x(() => e.data && e.data.length > 0), $ = L(!1), _ = L(0);
4605
+ const e = n, i = u, c = i1(n, "columns"), h = L({}), p = L(), m = Ut([]), v = L(e.defaultSort || null), d = x(() => F3(e.data || [], v.value, m)), C = x(() => c.value !== void 0), o = x(() => e.data && e.data.length > 0), $ = L(!1), _ = L(0);
4607
4606
  let K;
4608
4607
  const A = (I, W) => e.rowKey && I[e.rowKey] != null ? String(I[e.rowKey]) : String(W);
4609
4608
  $e(
@@ -4618,8 +4617,8 @@ const Qe = new Z3(), z3 = {
4618
4617
  I && !C.value && (m.length = 0, m.push(...I));
4619
4618
  },
4620
4619
  { deep: !0 }
4621
- ), ct("vt-table-columns", m);
4622
- const { sortedColumns: H, getDefaultColumnWidth: R, getStickyOffset: G } = B3(m), { getTableWrapperStyle: P, getColumnStyle: te, getHeaderStyle: re, getFooterStyle: oe } = E3(e), { onMouseDown: ve } = A3(), he = x(() => e.allData || e.data), D = e.selectable ? P3(e, v, i, he) : null, N = () => ({
4620
+ ), ut("vt-table-columns", m);
4621
+ const { sortedColumns: H, getDefaultColumnWidth: R, getStickyOffset: G } = B3(m), { getTableWrapperStyle: P, getColumnStyle: te, getHeaderStyle: re, getFooterStyle: oe } = E3(e), { onMouseDown: ve } = A3(), he = x(() => e.allData || e.data), D = e.selectable ? P3(e, d, i, he) : null, N = () => ({
4623
4622
  width: `${wt}px`,
4624
4623
  minWidth: `${wt}px`,
4625
4624
  maxWidth: `${wt}px`,
@@ -4660,11 +4659,11 @@ const Qe = new Z3(), z3 = {
4660
4659
  const Z = (I, W) => {
4661
4660
  j3(I, W, (se) => {
4662
4661
  var de, ee;
4663
- ((de = d.value) == null ? void 0 : de.prop) === I.prop && d.value.direction === W ? d.value = null : d.value = se, i("sort-change", {
4662
+ ((de = v.value) == null ? void 0 : de.prop) === I.prop && v.value.direction === W ? v.value = null : v.value = se, i("sort-change", {
4664
4663
  column: I,
4665
- direction: ((ee = d.value) == null ? void 0 : ee.direction) || null,
4664
+ direction: ((ee = v.value) == null ? void 0 : ee.direction) || null,
4666
4665
  prop: I.prop,
4667
- sortedData: v.value
4666
+ sortedData: d.value
4668
4667
  });
4669
4668
  });
4670
4669
  }, le = (I, W) => {
@@ -4712,7 +4711,7 @@ const Qe = new Z3(), z3 = {
4712
4711
  if (!e.showSummary || !o.value) return {};
4713
4712
  const I = m;
4714
4713
  if (typeof e.summaryMethod == "function") {
4715
- const W = e.summaryMethod({ columns: I, data: v.value });
4714
+ const W = e.summaryMethod({ columns: I, data: d.value });
4716
4715
  return I.reduce(
4717
4716
  (se, de, ee) => (se[de.prop] = W[ee], se),
4718
4717
  {}
@@ -4720,7 +4719,7 @@ const Qe = new Z3(), z3 = {
4720
4719
  }
4721
4720
  return I.reduce(
4722
4721
  (W, se) => {
4723
- const de = v.value.map((ee) => ee[se.prop]);
4722
+ const de = d.value.map((ee) => ee[se.prop]);
4724
4723
  return W[se.prop] = de.every((ee) => typeof ee == "number") ? de.reduce((ee, k) => ee + k, 0) : "", W;
4725
4724
  },
4726
4725
  {}
@@ -4808,12 +4807,12 @@ const Qe = new Z3(), z3 = {
4808
4807
  ]),
4809
4808
  r.sortable ? (s(), a("div", i2, [
4810
4809
  Q(fe, {
4811
- class: U(j(Bt)(r, d.value).asc),
4810
+ class: U(j(Bt)(r, v.value).asc),
4812
4811
  name: "arrowTop",
4813
4812
  onClick: Le((q) => Z(r, "asc"), ["stop"])
4814
4813
  }, null, 8, ["class", "onClick"]),
4815
4814
  Q(fe, {
4816
- class: U(j(Bt)(r, d.value).desc),
4815
+ class: U(j(Bt)(r, v.value).desc),
4817
4816
  name: "arrowDown",
4818
4817
  onClick: Le((q) => Z(r, "desc"), ["stop"])
4819
4818
  }, null, 8, ["class", "onClick"])
@@ -4836,7 +4835,7 @@ const Qe = new Z3(), z3 = {
4836
4835
  ])
4837
4836
  ])),
4838
4837
  l("tbody", null, [
4839
- o.value ? (s(!0), a(ne, { key: 1 }, pe(v.value, (r, f) => {
4838
+ o.value ? (s(!0), a(ne, { key: 1 }, pe(d.value, (r, f) => {
4840
4839
  var q, Y, _e;
4841
4840
  return s(), a("tr", {
4842
4841
  key: A(r, f),
@@ -4879,7 +4878,7 @@ const Qe = new Z3(), z3 = {
4879
4878
  style: Ee(Ke(ae, be))
4880
4879
  }, [
4881
4880
  ot((s(), a("div", p2, [
4882
- ae.renderSlot ? (s(), we(at(ae.renderSlot), {
4881
+ ae.renderSlot ? (s(), we(ft(ae.renderSlot), {
4883
4882
  key: 0,
4884
4883
  column: ae,
4885
4884
  index: f,
@@ -4959,7 +4958,7 @@ const Qe = new Z3(), z3 = {
4959
4958
  sortMethod: {}
4960
4959
  },
4961
4960
  setup(n) {
4962
- const t = n, u = ut(), e = dt("vt-table-columns");
4961
+ const t = n, u = at(), e = ct("vt-table-columns");
4963
4962
  e || console.error(
4964
4963
  "VTableColumn: не знайдено контекст таблиці. Переконайтеся, що компонент використовується всередині VTable."
4965
4964
  );
@@ -5114,11 +5113,11 @@ const Qe = new Z3(), z3 = {
5114
5113
  }, $2 = () => {
5115
5114
  const n = (i, c) => {
5116
5115
  if (!i || !(i instanceof Date) || isNaN(i.getTime())) return "";
5117
- const h = i.getFullYear(), p = i.getMonth(), m = i.getDate(), d = i.getHours(), v = d > 12 ? d - 12 : d === 0 ? 12 : d, C = i.getMinutes(), o = i.getSeconds(), $ = i.getTime();
5116
+ const h = i.getFullYear(), p = i.getMonth(), m = i.getDate(), v = i.getHours(), d = v > 12 ? v - 12 : v === 0 ? 12 : v, C = i.getMinutes(), o = i.getSeconds(), $ = i.getTime();
5118
5117
  let _ = c;
5119
5118
  _ = _.replace(/yyyy/g, String(h)), _ = _.replace(/yy/g, String(h).slice(-2)), _ = _.replace(/MMMM/g, k2[p]), _ = _.replace(/MMM/g, o1[p]), _ = _.replace(/MM/g, String(p + 1).padStart(2, "0")), _ = _.replace(/M/g, String(p + 1));
5120
5119
  const K = u(i);
5121
- return _ = _.replace(/WW/g, String(K).padStart(2, "0")), _ = _.replace(/W/g, String(K)), _ = _.replace(/dd/g, String(m).padStart(2, "0")), _ = _.replace(/d/g, String(m)), _ = _.replace(/HH/g, String(d).padStart(2, "0")), _ = _.replace(/H/g, String(d)), _ = _.replace(/hh/g, String(v).padStart(2, "0")), _ = _.replace(/h/g, String(v)), _ = _.replace(/mm/g, String(C).padStart(2, "0")), _ = _.replace(/m/g, String(C)), _ = _.replace(/ss/g, String(o).padStart(2, "0")), _ = _.replace(/s/g, String(o)), _ = _.replace(/A/g, d >= 12 ? "PM" : "AM"), _ = _.replace(/a/g, d >= 12 ? "pm" : "am"), _ = _.replace(/timestamp/g, String($)), _ = _.replace(/\[([^\]]+)\]/g, "$1"), _;
5120
+ return _ = _.replace(/WW/g, String(K).padStart(2, "0")), _ = _.replace(/W/g, String(K)), _ = _.replace(/dd/g, String(m).padStart(2, "0")), _ = _.replace(/d/g, String(m)), _ = _.replace(/HH/g, String(v).padStart(2, "0")), _ = _.replace(/H/g, String(v)), _ = _.replace(/hh/g, String(d).padStart(2, "0")), _ = _.replace(/h/g, String(d)), _ = _.replace(/mm/g, String(C).padStart(2, "0")), _ = _.replace(/m/g, String(C)), _ = _.replace(/ss/g, String(o).padStart(2, "0")), _ = _.replace(/s/g, String(o)), _ = _.replace(/A/g, v >= 12 ? "PM" : "AM"), _ = _.replace(/a/g, v >= 12 ? "pm" : "am"), _ = _.replace(/timestamp/g, String($)), _ = _.replace(/\[([^\]]+)\]/g, "$1"), _;
5122
5121
  }, t = (i) => {
5123
5122
  if (!i) return null;
5124
5123
  if (i instanceof Date)
@@ -5136,18 +5135,18 @@ const Qe = new Z3(), z3 = {
5136
5135
  getDefaultFormat: (i) => b2[i] || "yyyy-MM-dd"
5137
5136
  };
5138
5137
  }, x2 = (n, t, u, e, i) => {
5139
- const { formatDate: c, parseDate: h, getDefaultFormat: p } = $2(), m = x(() => ["datetimerange", "daterange", "monthrange", "yearrange"].includes(t.value)), d = x(() => u.value || p(t.value)), v = x(() => e.value || p(t.value)), C = x(() => n.value ? m.value ? Array.isArray(n.value) && n.value.length === 2 ? [h(n.value[0]), h(n.value[1])] : [null, null] : h(n.value) : m.value ? [null, null] : null), o = x(() => {
5138
+ const { formatDate: c, parseDate: h, getDefaultFormat: p } = $2(), m = x(() => ["datetimerange", "daterange", "monthrange", "yearrange"].includes(t.value)), v = x(() => u.value || p(t.value)), d = x(() => e.value || p(t.value)), C = x(() => n.value ? m.value ? Array.isArray(n.value) && n.value.length === 2 ? [h(n.value[0]), h(n.value[1])] : [null, null] : h(n.value) : m.value ? [null, null] : null), o = x(() => {
5140
5139
  if (m.value) {
5141
5140
  const [A, H] = C.value;
5142
5141
  if (A && H) {
5143
- const R = c(A, d.value), G = c(H, d.value);
5142
+ const R = c(A, v.value), G = c(H, v.value);
5144
5143
  return [R, G];
5145
5144
  } else if (A)
5146
- return [c(A, d.value), ""];
5145
+ return [c(A, v.value), ""];
5147
5146
  return ["", ""];
5148
5147
  } else {
5149
5148
  const A = C.value;
5150
- return A ? c(A, d.value) : "";
5149
+ return A ? c(A, v.value) : "";
5151
5150
  }
5152
5151
  }), $ = x(() => {
5153
5152
  if (m.value) {
@@ -5158,17 +5157,17 @@ const Qe = new Z3(), z3 = {
5158
5157
  });
5159
5158
  return {
5160
5159
  isRange: m,
5161
- displayFormat: d,
5162
- outputFormat: v,
5160
+ displayFormat: v,
5161
+ outputFormat: d,
5163
5162
  parsedValue: C,
5164
5163
  displayText: o,
5165
5164
  hasDisplayValue: $,
5166
5165
  formatOutput: (A) => {
5167
5166
  if (Array.isArray(A)) {
5168
5167
  const H = A[0], R = A[1] || A[0] || /* @__PURE__ */ new Date();
5169
- return e.value === "timestamp" ? [H.getTime(), R.getTime()] : e.value ? [c(H, v.value), c(R, v.value)] : [H, R];
5168
+ return e.value === "timestamp" ? [H.getTime(), R.getTime()] : e.value ? [c(H, d.value), c(R, d.value)] : [H, R];
5170
5169
  } else
5171
- return e.value === "timestamp" ? A.getTime() : e.value ? c(A, v.value) : A;
5170
+ return e.value === "timestamp" ? A.getTime() : e.value ? c(A, d.value) : A;
5172
5171
  },
5173
5172
  validate: (A = !1) => M2(n.value, t.value, A),
5174
5173
  formatDate: c,
@@ -5224,7 +5223,7 @@ const Qe = new Z3(), z3 = {
5224
5223
  $ === "prev" ? _.setFullYear(_.getFullYear() - 10) : _.setFullYear(_.getFullYear() + 10), n.value = _;
5225
5224
  }
5226
5225
  };
5227
- }, ht = {
5226
+ }, vt = {
5228
5227
  "24h": "HH:mm:ss",
5229
5228
  "24h_no_seconds": "HH:mm",
5230
5229
  "12h": "hh:mm:ss A",
@@ -5283,8 +5282,8 @@ const Qe = new Z3(), z3 = {
5283
5282
  let c = n;
5284
5283
  i && (c = n === 0 ? 12 : n > 12 ? n - 12 : n);
5285
5284
  const h = c.toString().padStart(2, "0"), p = t.toString().padStart(2, "0"), m = u.toString().padStart(2, "0");
5286
- let d = e;
5287
- return d = d.replace(/HH/g, n.toString().padStart(2, "0")), d = d.replace(/H/g, n.toString()), d = d.replace(/hh/g, h), d = d.replace(/h/g, c.toString()), d = d.replace(/mm/g, p), d = d.replace(/m/g, t.toString()), d = d.replace(/ss/g, m), d = d.replace(/s/g, u.toString()), d = d.replace(/A/g, n >= 12 ? "PM" : "AM"), d = d.replace(/a/g, n >= 12 ? "pm" : "am"), d;
5285
+ let v = e;
5286
+ return v = v.replace(/HH/g, n.toString().padStart(2, "0")), v = v.replace(/H/g, n.toString()), v = v.replace(/hh/g, h), v = v.replace(/h/g, c.toString()), v = v.replace(/mm/g, p), v = v.replace(/m/g, t.toString()), v = v.replace(/ss/g, m), v = v.replace(/s/g, u.toString()), v = v.replace(/A/g, n >= 12 ? "PM" : "AM"), v = v.replace(/a/g, n >= 12 ? "pm" : "am"), v;
5288
5287
  }, L2 = (n) => {
5289
5288
  if (!n) return null;
5290
5289
  const t = [
@@ -5345,7 +5344,7 @@ const Qe = new Z3(), z3 = {
5345
5344
  }, w5 = { class: "vt-timepicker__options" }, k5 = ["disabled", "onClick"], b5 = {
5346
5345
  key: 1,
5347
5346
  class: "vt-timepicker__column"
5348
- }, y5 = { class: "vt-timepicker__options" }, M5 = ["onClick"], $5 = { class: "vt-timepicker__actions" }, pt = /* @__PURE__ */ ke({
5347
+ }, y5 = { class: "vt-timepicker__options" }, M5 = ["onClick"], $5 = { class: "vt-timepicker__actions" }, ht = /* @__PURE__ */ ke({
5349
5348
  __name: "VTimePicker",
5350
5349
  props: {
5351
5350
  modelValue: {},
@@ -5375,16 +5374,16 @@ const Qe = new Z3(), z3 = {
5375
5374
  startTime: L(null),
5376
5375
  endTime: L(null),
5377
5376
  isSelectingEnd: L(!1)
5378
- }, d = L(/* @__PURE__ */ new Map()), v = x(() => e.type === "timerange"), C = (k) => {
5377
+ }, v = L(/* @__PURE__ */ new Map()), d = x(() => e.type === "timerange"), C = (k) => {
5379
5378
  if (!k) return "";
5380
- const { hour: b, minute: r, second: f } = k, q = e.format || (e.showSeconds ? e.use12Hours ? ht["12h"] : ht["24h"] : e.use12Hours ? ht["12h_no_seconds"] : ht["24h_no_seconds"]);
5379
+ const { hour: b, minute: r, second: f } = k, q = e.format || (e.showSeconds ? e.use12Hours ? vt["12h"] : vt["24h"] : e.use12Hours ? vt["12h_no_seconds"] : vt["24h_no_seconds"]);
5381
5380
  return S2(b, r, f, q, e.use12Hours);
5382
5381
  }, o = (k) => k ? k instanceof Date ? {
5383
5382
  hour: k.getHours(),
5384
5383
  minute: k.getMinutes(),
5385
5384
  second: k.getSeconds()
5386
- } : typeof k == "string" && Mt(k) ? L2(k) : null : null, $ = (k, b = !1) => V2(k, e.type, b), _ = x(() => e.modelValue ? v.value ? Array.isArray(e.modelValue) && e.modelValue.length === 2 ? [o(e.modelValue[0]), o(e.modelValue[1])] : [null, null] : o(e.modelValue) : v.value ? [null, null] : null), K = x(() => {
5387
- if (v.value) {
5385
+ } : typeof k == "string" && Mt(k) ? L2(k) : null : null, $ = (k, b = !1) => V2(k, e.type, b), _ = x(() => e.modelValue ? d.value ? Array.isArray(e.modelValue) && e.modelValue.length === 2 ? [o(e.modelValue[0]), o(e.modelValue[1])] : [null, null] : o(e.modelValue) : d.value ? [null, null] : null), K = x(() => {
5386
+ if (d.value) {
5388
5387
  const [k, b] = _.value;
5389
5388
  return k && b ? [C(k), C(b)] : k ? [C(k), ""] : ["", ""];
5390
5389
  } else {
@@ -5392,19 +5391,19 @@ const Qe = new Z3(), z3 = {
5392
5391
  return k ? C(k) : "";
5393
5392
  }
5394
5393
  }), A = x(() => {
5395
- if (v.value) {
5394
+ if (d.value) {
5396
5395
  const [k, b] = K.value;
5397
5396
  return k || b;
5398
5397
  } else
5399
5398
  return !!K.value;
5400
- }), H = x(() => e.clearable && !e.disabled && A.value), R = x(() => v.value ? m.isSelectingEnd.value ? e.endPlaceholder : e.startPlaceholder : e.placeholder), G = x(() => [
5399
+ }), H = x(() => e.clearable && !e.disabled && A.value), R = x(() => d.value ? m.isSelectingEnd.value ? e.endPlaceholder : e.startPlaceholder : e.placeholder), G = x(() => [
5401
5400
  "vt-timepicker",
5402
5401
  `vt-timepicker--${e.size}`,
5403
5402
  `vt-timepicker--${e.type}`,
5404
5403
  {
5405
5404
  "vt-timepicker--disabled": e.disabled,
5406
5405
  "vt-timepicker--focused": m.isFocused.value,
5407
- "vt-timepicker--range": v.value,
5406
+ "vt-timepicker--range": d.value,
5408
5407
  "vt-timepicker--open": Z.value
5409
5408
  }
5410
5409
  ]), P = L(0), te = L(0), re = L(0), oe = L("AM"), ve = L(0), he = L(0), D = L(0), N = L("AM"), ue = x(() => {
@@ -5445,8 +5444,8 @@ const Qe = new Z3(), z3 = {
5445
5444
  position: "absolute",
5446
5445
  zIndex: 2e3
5447
5446
  })), ye = (k, b, r = !1) => {
5448
- const f = d.value.get(k);
5449
- f && (f.disconnect(), d.value.delete(k));
5447
+ const f = v.value.get(k);
5448
+ f && (f.disconnect(), v.value.delete(k));
5450
5449
  const q = `${-k.clientHeight / 2 + 16}px 0px ${-k.clientHeight / 2 + 16}px 0px`, Y = new IntersectionObserver(
5451
5450
  (ae) => {
5452
5451
  var Fe;
@@ -5468,8 +5467,8 @@ const Qe = new Z3(), z3 = {
5468
5467
  nt = S.value;
5469
5468
  break;
5470
5469
  }
5471
- const vt = nt.find((Ct) => Ct.value === Ue);
5472
- vt && !vt.disabled && (b === "hour" ? r ? ve.value = Ue : P.value = Ue : b === "minute" ? r ? he.value = Ue : te.value = Ue : b === "second" && (r ? D.value = Ue : re.value = Ue));
5470
+ const dt = nt.find((Ct) => Ct.value === Ue);
5471
+ dt && !dt.disabled && (b === "hour" ? r ? ve.value = Ue : P.value = Ue : b === "minute" ? r ? he.value = Ue : te.value = Ue : b === "second" && (r ? D.value = Ue : re.value = Ue));
5473
5472
  }
5474
5473
  }
5475
5474
  },
@@ -5479,14 +5478,14 @@ const Qe = new Z3(), z3 = {
5479
5478
  threshold: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1]
5480
5479
  }
5481
5480
  );
5482
- k.querySelectorAll(".vt-timepicker__option").forEach((ae) => Y.observe(ae)), d.value.set(k, Y);
5481
+ k.querySelectorAll(".vt-timepicker__option").forEach((ae) => Y.observe(ae)), v.value.set(k, Y);
5483
5482
  }, Ke = () => {
5484
5483
  !Z.value || !p.value || He(() => {
5485
5484
  var r;
5486
5485
  const k = (r = p.value) == null ? void 0 : r.querySelectorAll(".vt-timepicker__options");
5487
5486
  if (!k) return;
5488
5487
  const b = Array.from(k);
5489
- if (v.value) {
5488
+ if (d.value) {
5490
5489
  b[0] && ye(b[0], "hour", !1), b[1] && ye(b[1], "minute", !1), e.showSeconds && b[2] && ye(b[2], "second", !1);
5491
5490
  const f = e.showSeconds ? e.use12Hours ? 4 : 3 : e.use12Hours ? 3 : 2;
5492
5491
  b[f] && ye(b[f], "hour", !0), b[f + 1] && ye(b[f + 1], "minute", !0), e.showSeconds && b[f + 2] && ye(b[f + 2], "second", !0);
@@ -5494,7 +5493,7 @@ const Qe = new Z3(), z3 = {
5494
5493
  b[0] && ye(b[0], "hour", !1), b[1] && ye(b[1], "minute", !1), e.showSeconds && b[2] && ye(b[2], "second", !1);
5495
5494
  });
5496
5495
  }, We = () => {
5497
- d.value.forEach((k) => k.disconnect()), d.value.clear();
5496
+ v.value.forEach((k) => k.disconnect()), v.value.clear();
5498
5497
  }, qe = () => {
5499
5498
  Z.value && He(() => {
5500
5499
  var r;
@@ -5510,7 +5509,7 @@ const Qe = new Z3(), z3 = {
5510
5509
  });
5511
5510
  }
5512
5511
  };
5513
- if (v.value) {
5512
+ if (d.value) {
5514
5513
  const f = Array.from(k);
5515
5514
  f[0] && b(f[0], P.value, ue.value), f[1] && b(f[1], te.value, me.value), e.showSeconds && f[2] && b(f[2], re.value, S.value);
5516
5515
  const q = e.showSeconds ? e.use12Hours ? 4 : 3 : e.use12Hours ? 3 : 2;
@@ -5552,11 +5551,11 @@ const Qe = new Z3(), z3 = {
5552
5551
  }, Me = () => {
5553
5552
  m.isFocused.value = !1, i("blur", c.value);
5554
5553
  }, Pe = () => {
5555
- const k = (v.value, null);
5556
- i("update:modelValue", k), i("change", k), v.value && (m.startTime.value = null, m.endTime.value = null, m.isSelectingEnd.value = !1), P.value = ee.hour, te.value = ee.minute, re.value = ee.second, oe.value = ee.period, ve.value = ee.hour, he.value = ee.minute, D.value = ee.second, N.value = ee.period;
5554
+ const k = (d.value, null);
5555
+ i("update:modelValue", k), i("change", k), d.value && (m.startTime.value = null, m.endTime.value = null, m.isSelectingEnd.value = !1), P.value = ee.hour, te.value = ee.minute, re.value = ee.second, oe.value = ee.period, ve.value = ee.hour, he.value = ee.minute, D.value = ee.second, N.value = ee.period;
5557
5556
  }, Be = (k) => C(k), Re = () => {
5558
5557
  if (!e.disabled) {
5559
- if (v.value) {
5558
+ if (d.value) {
5560
5559
  let k = P.value, b = ve.value;
5561
5560
  e.use12Hours && (oe.value === "PM" && k !== 12 && (k += 12), oe.value === "AM" && k === 12 && (k = 0), N.value === "PM" && b !== 12 && (b += 12), N.value === "AM" && b === 12 && (b = 0));
5562
5561
  const r = { hour: k, minute: te.value, second: re.value }, f = { hour: b, minute: he.value, second: D.value }, q = [Be(r), Be(f)], Y = $(q);
@@ -5610,7 +5609,7 @@ const Qe = new Z3(), z3 = {
5610
5609
  () => e.modelValue,
5611
5610
  (k) => {
5612
5611
  if (k) {
5613
- if (v.value && Array.isArray(k)) {
5612
+ if (d.value && Array.isArray(k)) {
5614
5613
  const b = o(k[0]), r = o(k[1]);
5615
5614
  if (b) {
5616
5615
  let f = b.hour;
@@ -5620,7 +5619,7 @@ const Qe = new Z3(), z3 = {
5620
5619
  let f = r.hour;
5621
5620
  e.use12Hours && (N.value = f >= 12 ? "PM" : "AM", f = f === 0 ? 12 : f > 12 ? f - 12 : f), ve.value = f, he.value = r.minute, D.value = r.second;
5622
5621
  }
5623
- } else if (!v.value) {
5622
+ } else if (!d.value) {
5624
5623
  const b = o(k);
5625
5624
  if (b) {
5626
5625
  let r = b.hour;
@@ -5673,7 +5672,7 @@ const Qe = new Z3(), z3 = {
5673
5672
  Q(fe, { name: "clock" })
5674
5673
  ]),
5675
5674
  A.value ? (s(), a("div", T2, [
5676
- v.value ? (s(), a(ne, { key: 0 }, [
5675
+ d.value ? (s(), a(ne, { key: 0 }, [
5677
5676
  l("span", null, E(K.value[0]), 1),
5678
5677
  l("span", null, E(e.rangeSeparator), 1),
5679
5678
  l("span", null, E(K.value[1]), 1)
@@ -5681,7 +5680,7 @@ const Qe = new Z3(), z3 = {
5681
5680
  xe(E(K.value), 1)
5682
5681
  ], 64))
5683
5682
  ])) : (s(), a("div", I2, [
5684
- v.value ? (s(), a(ne, { key: 0 }, [
5683
+ d.value ? (s(), a(ne, { key: 0 }, [
5685
5684
  l("span", null, E(e.startPlaceholder), 1),
5686
5685
  l("span", null, E(e.rangeSeparator), 1),
5687
5686
  l("span", null, E(e.endPlaceholder), 1)
@@ -5718,7 +5717,7 @@ const Qe = new Z3(), z3 = {
5718
5717
  onMousedown: b[1] || (b[1] = Le(() => {
5719
5718
  }, ["prevent"]))
5720
5719
  }, [
5721
- v.value ? (s(), a("div", A2, [
5720
+ d.value ? (s(), a("div", A2, [
5722
5721
  l("div", P2, [
5723
5722
  b[2] || (b[2] = l("div", { class: "vt-timepicker__panel-header" }, "Початковий час", -1)),
5724
5723
  l("div", R2, [
@@ -5997,7 +5996,7 @@ const Qe = new Z3(), z3 = {
5997
5996
  },
5998
5997
  emits: ["update:modelValue", "change", "blur", "focus", "calendar-change", "panel-change", "open-change"],
5999
5998
  setup(n, { expose: t, emit: u }) {
6000
- const e = n, i = u, c = L(), h = L(), p = L(), m = L(), d = L(), v = () => (e.type === "datetime" || e.type === "datetimerange", "00:00:00"), C = () => "23:59:59", o = {
5999
+ const e = n, i = u, c = L(), h = L(), p = L(), m = L(), v = L(), d = () => (e.type === "datetime" || e.type === "datetimerange", "00:00:00"), C = () => "23:59:59", o = {
6001
6000
  isFocused: L(!1),
6002
6001
  currentDate: L(/* @__PURE__ */ new Date()),
6003
6002
  rightCurrentDate: L(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth() + 1, 1)),
@@ -6007,7 +6006,7 @@ const Qe = new Z3(), z3 = {
6007
6006
  isSelectingEnd: L(!1),
6008
6007
  hoverDate: L(null),
6009
6008
  // Time state for datetime types
6010
- startTime: L(v()),
6009
+ startTime: L(d()),
6011
6010
  endTime: L(C())
6012
6011
  }, $ = rt(e, "modelValue"), _ = rt(e, "type"), K = rt(e, "format"), A = rt(e, "valueFormat");
6013
6012
  rt(e, "rangeSeparator");
@@ -6190,7 +6189,7 @@ const Qe = new Z3(), z3 = {
6190
6189
  }, Y = () => {
6191
6190
  o.isFocused.value = !1, i("blur", c.value);
6192
6191
  }, _e = () => {
6193
- i("update:modelValue", null), i("change", null), o.startDate.value = null, o.endDate.value = null, o.isSelectingEnd.value = !1, o.hoverDate.value = null, o.startTime.value = v(), o.endTime.value = C();
6192
+ i("update:modelValue", null), i("change", null), o.startDate.value = null, o.endDate.value = null, o.isSelectingEnd.value = !1, o.hoverDate.value = null, o.startTime.value = d(), o.endTime.value = C();
6194
6193
  }, ae = (y, V = !1, w = !1) => {
6195
6194
  if (!(e.disabled || !y) && je(y, V, w))
6196
6195
  if (H.value) {
@@ -6264,7 +6263,7 @@ const Qe = new Z3(), z3 = {
6264
6263
  const T = new Date(w.getFullYear(), y, 1);
6265
6264
  V ? o.rightCurrentDate.value = T : o.currentDate.value = T, o.viewMode.value = "date";
6266
6265
  }
6267
- }, vt = (y, V) => {
6266
+ }, dt = (y, V) => {
6268
6267
  if (H.value && o.isSelectingEnd.value && o.startDate.value) {
6269
6268
  const w = V.getFullYear();
6270
6269
  o.hoverDate.value = new Date(w, y, 1);
@@ -6314,13 +6313,13 @@ const Qe = new Z3(), z3 = {
6314
6313
  console.warn("Invalid date format in modelValue:", y), o.startDate.value = null;
6315
6314
  }
6316
6315
  } else
6317
- o.startDate.value = null, o.endDate.value = null, o.isSelectingEnd.value = !1, o.hoverDate.value = null, o.startTime.value = v(), o.endTime.value = C();
6316
+ o.startDate.value = null, o.endDate.value = null, o.isSelectingEnd.value = !1, o.hoverDate.value = null, o.startTime.value = d(), o.endTime.value = C();
6318
6317
  },
6319
6318
  { immediate: !0 }
6320
6319
  ), $e(
6321
6320
  () => e.type,
6322
6321
  (y) => {
6323
- o.viewMode.value = Ye(y), o.startTime.value = v(), o.endTime.value = C();
6322
+ o.viewMode.value = Ye(y), o.startTime.value = d(), o.endTime.value = C();
6324
6323
  },
6325
6324
  { immediate: !0 }
6326
6325
  ), $e(
@@ -6424,7 +6423,7 @@ const Qe = new Z3(), z3 = {
6424
6423
  Re.value ? (s(), a("div", B5, [
6425
6424
  l("div", E5, [
6426
6425
  Ie.value ? (s(), a("div", A5, [
6427
- Q(pt, {
6426
+ Q(ht, {
6428
6427
  ref_key: "startTimePickerRef",
6429
6428
  ref: m,
6430
6429
  modelValue: o.startTime.value,
@@ -6493,9 +6492,9 @@ const Qe = new Z3(), z3 = {
6493
6492
  ]),
6494
6493
  l("div", O5, [
6495
6494
  Ie.value ? (s(), a("div", N5, [
6496
- Q(pt, {
6495
+ Q(ht, {
6497
6496
  ref_key: "endTimePickerRef",
6498
- ref: d,
6497
+ ref: v,
6499
6498
  modelValue: o.endTime.value,
6500
6499
  "onUpdate:modelValue": V[3] || (V[3] = (w) => o.endTime.value = w),
6501
6500
  clearable: !1,
@@ -6562,7 +6561,7 @@ const Qe = new Z3(), z3 = {
6562
6561
  ])
6563
6562
  ])) : (s(), a("div", J5, [
6564
6563
  Ie.value ? (s(), a("div", e6, [
6565
- Q(pt, {
6564
+ Q(ht, {
6566
6565
  ref_key: "startTimePickerRef",
6567
6566
  ref: m,
6568
6567
  modelValue: o.startTime.value,
@@ -6646,7 +6645,7 @@ const Qe = new Z3(), z3 = {
6646
6645
  }
6647
6646
  ]),
6648
6647
  onClick: (ie) => nt(T, !1),
6649
- onMouseenter: (ie) => vt(T, o.currentDate.value),
6648
+ onMouseenter: (ie) => dt(T, o.currentDate.value),
6650
6649
  onMouseleave: Ct
6651
6650
  }, E(w.name), 43, c6))), 128))
6652
6651
  ])) : (s(), a("div", d6, [
@@ -6711,15 +6710,15 @@ const Qe = new Z3(), z3 = {
6711
6710
  return c.value;
6712
6711
  },
6713
6712
  toggle: (m) => {
6714
- const d = [...i.value], v = d.indexOf(m);
6713
+ const v = [...i.value], d = v.indexOf(m);
6715
6714
  if (c.value) {
6716
- const C = v > -1 ? [] : [m];
6715
+ const C = d > -1 ? [] : [m];
6717
6716
  e("update:modelValue", C), e("change", C);
6718
6717
  } else
6719
- v > -1 ? d.splice(v, 1) : d.push(m), e("update:modelValue", d), e("change", d);
6718
+ d > -1 ? v.splice(d, 1) : v.push(m), e("update:modelValue", v), e("change", v);
6720
6719
  }
6721
6720
  });
6722
- return ct("collapseContext", p), (m, d) => (s(), a("div", f6, [
6721
+ return ut("collapseContext", p), (m, v) => (s(), a("div", f6, [
6723
6722
  Te(m.$slots, "default")
6724
6723
  ]));
6725
6724
  }
@@ -6732,7 +6731,7 @@ const Qe = new Z3(), z3 = {
6732
6731
  },
6733
6732
  emits: ["toggle"],
6734
6733
  setup(n, { emit: t }) {
6735
- const u = n, e = t, i = dt("collapseContext");
6734
+ const u = n, e = t, i = ct("collapseContext");
6736
6735
  if (!i)
6737
6736
  throw new Error("VCollapseItem must be used within VCollapse");
6738
6737
  const c = x(() => i.activeNames.includes(u.name)), h = () => {
@@ -6743,10 +6742,10 @@ const Qe = new Z3(), z3 = {
6743
6742
  }, m = (C) => {
6744
6743
  const o = C;
6745
6744
  o.style.height = o.scrollHeight + "px", o.style.overflow = "hidden", o.offsetHeight, o.style.height = "0";
6746
- }, d = (C) => {
6745
+ }, v = (C) => {
6747
6746
  const o = C;
6748
6747
  o.style.height = "auto", o.style.overflow = "visible";
6749
- }, v = (C) => {
6748
+ }, d = (C) => {
6750
6749
  const o = C;
6751
6750
  o.style.height = "0", o.style.overflow = "hidden";
6752
6751
  };
@@ -6775,8 +6774,8 @@ const Qe = new Z3(), z3 = {
6775
6774
  name: "collapse",
6776
6775
  onEnter: p,
6777
6776
  onLeave: m,
6778
- onAfterEnter: d,
6779
- onAfterLeave: v
6777
+ onAfterEnter: v,
6778
+ onAfterLeave: d
6780
6779
  }, {
6781
6780
  default: Ve(() => [
6782
6781
  ot(l("div", _6, [
@@ -6798,7 +6797,7 @@ const Qe = new Z3(), z3 = {
6798
6797
  },
6799
6798
  emits: ["update:modelValue", "tab-change", "tab-remove", "tab-add"],
6800
6799
  setup(n, { emit: t }) {
6801
- const u = n, e = t, i = ut(), c = L(u.modelValue), h = L([]);
6800
+ const u = n, e = t, i = at(), c = L(u.modelValue), h = L([]);
6802
6801
  $e(
6803
6802
  () => u.modelValue,
6804
6803
  (C) => {
@@ -6811,9 +6810,9 @@ const Qe = new Z3(), z3 = {
6811
6810
  h.value.push(C), c.value || (c.value = C.name);
6812
6811
  }, m = (C) => {
6813
6812
  h.value = h.value.filter((o) => o.name !== C), e("tab-remove", C), c.value === C && h.value.length > 0 && (c.value = h.value[0].name);
6814
- }, d = (C) => {
6815
- c.value = C;
6816
6813
  }, v = (C) => {
6814
+ c.value = C;
6815
+ }, d = (C) => {
6817
6816
  var _;
6818
6817
  const $ = (((_ = i.default) == null ? void 0 : _.call(i)) || []).find((K) => {
6819
6818
  var A;
@@ -6821,11 +6820,11 @@ const Qe = new Z3(), z3 = {
6821
6820
  });
6822
6821
  return $ && $.children && typeof $.children == "object" && "title" in $.children ? $.children.title : null;
6823
6822
  };
6824
- return ct("VTabsContext", {
6823
+ return ut("VTabsContext", {
6825
6824
  currentValue: c,
6826
6825
  addTab: p,
6827
6826
  removeTab: m,
6828
- selectTab: d
6827
+ selectTab: v
6829
6828
  }), (C, o) => (s(), a("div", k6, [
6830
6829
  l("div", b6, [
6831
6830
  (s(!0), a(ne, null, pe(h.value, ($) => (s(), a("div", {
@@ -6834,9 +6833,9 @@ const Qe = new Z3(), z3 = {
6834
6833
  "is-active": c.value === $.name,
6835
6834
  "is-disabled": $.disabled
6836
6835
  }, "vt-tabs__nav-item"]),
6837
- onClick: (_) => !$.disabled && d($.name)
6836
+ onClick: (_) => !$.disabled && v($.name)
6838
6837
  }, [
6839
- v($) ? (s(), we(at(v($)), {
6838
+ d($) ? (s(), we(ft(d($)), {
6840
6839
  key: 0,
6841
6840
  "is-active": c.value === $.name
6842
6841
  }, null, 8, ["is-active"])) : (s(), a(ne, { key: 1 }, [
@@ -6872,8 +6871,8 @@ const Qe = new Z3(), z3 = {
6872
6871
  },
6873
6872
  setup(n) {
6874
6873
  const t = n;
6875
- ut();
6876
- const u = dt("VTabsContext");
6874
+ at();
6875
+ const u = ct("VTabsContext");
6877
6876
  if (!u)
6878
6877
  throw new Error("VTabItem must be used inside VTabs");
6879
6878
  const e = x(() => u.currentValue.value === t.name);
@@ -6976,8 +6975,8 @@ const Qe = new Z3(), z3 = {
6976
6975
  p = e.top + h + (e.height - i.height) / 2, m = e.right + c + 8;
6977
6976
  break;
6978
6977
  }
6979
- const d = window.innerWidth, v = window.innerHeight;
6980
- m < 8 ? m = 8 : m + i.width > d - 8 && (m = d - i.width - 8), p < h + 8 ? u === "top" ? p = e.bottom + h + 8 : p = h + 8 : p + i.height > h + v - 8 && (u === "bottom" ? p = e.top + h - i.height - 8 : p = h + v - i.height - 8), n.style.top = `${p}px`, n.style.left = `${m}px`;
6978
+ const v = window.innerWidth, d = window.innerHeight;
6979
+ m < 8 ? m = 8 : m + i.width > v - 8 && (m = v - i.width - 8), p < h + 8 ? u === "top" ? p = e.bottom + h + 8 : p = h + 8 : p + i.height > h + d - 8 && (u === "bottom" ? p = e.top + h - i.height - 8 : p = h + d - i.height - 8), n.style.top = `${p}px`, n.style.left = `${m}px`;
6981
6980
  }, jt = (n, t, u) => {
6982
6981
  n.parentElement || document.body.appendChild(n), n.style.visibility = "visible", $t(n, t, u), requestAnimationFrame(() => {
6983
6982
  n.style.opacity = "1";
@@ -7036,7 +7035,7 @@ const Qe = new Z3(), z3 = {
7036
7035
  function Yt(n) {
7037
7036
  if (n._loaderEl) return;
7038
7037
  const t = document.createElement("div");
7039
- t.className = "vt-loader-base__overlay", t.innerHTML = '<span class="vt-base-loader"></span>';
7038
+ t.className = "vt-loader-base__overlay", t.innerHTML = '<span class="vt-loader-base"></span>';
7040
7039
  const u = getComputedStyle(n).position;
7041
7040
  (u === "static" || !u) && (n.style.position = "relative"), n.appendChild(t), n._loaderEl = t;
7042
7041
  }
@@ -7058,7 +7057,7 @@ const T6 = { class: "vt-message-container" }, I6 = { class: "vt-message-icon" },
7058
7057
  warning: "alertTriangle",
7059
7058
  primary: "infoCircle"
7060
7059
  })[p] || "infoCircle", c = (p) => {
7061
- const m = ++e, d = {
7060
+ const m = ++e, v = {
7062
7061
  id: m,
7063
7062
  message: p.message || "",
7064
7063
  type: p.type || "primary",
@@ -7066,11 +7065,11 @@ const T6 = { class: "vt-message-container" }, I6 = { class: "vt-message-icon" },
7066
7065
  duration: p.duration !== void 0 ? p.duration : 3e3,
7067
7066
  dangerouslyUseHTMLString: p.dangerouslyUseHTMLString || !1
7068
7067
  };
7069
- return u.value.push(d), d.duration && d.duration > 0 && setTimeout(() => {
7068
+ return u.value.push(v), v.duration && v.duration > 0 && setTimeout(() => {
7070
7069
  h(m);
7071
- }, d.duration), m;
7070
+ }, v.duration), m;
7072
7071
  }, h = (p) => {
7073
- const m = u.value.findIndex((d) => d.id === p);
7072
+ const m = u.value.findIndex((v) => v.id === p);
7074
7073
  m > -1 && u.value.splice(m, 1);
7075
7074
  };
7076
7075
  return t({
@@ -7083,32 +7082,32 @@ const T6 = { class: "vt-message-container" }, I6 = { class: "vt-message-icon" },
7083
7082
  tag: "div"
7084
7083
  }, {
7085
7084
  default: Ve(() => [
7086
- (s(!0), a(ne, null, pe(u.value, (d) => (s(), a("div", {
7087
- key: d.id,
7085
+ (s(!0), a(ne, null, pe(u.value, (v) => (s(), a("div", {
7086
+ key: v.id,
7088
7087
  class: U([
7089
7088
  "vt-message-item",
7090
- `vt-message-item--${d.type}`,
7091
- { "vt-message-item--closable": d.showClose }
7089
+ `vt-message-item--${v.type}`,
7090
+ { "vt-message-item--closable": v.showClose }
7092
7091
  ])
7093
7092
  }, [
7094
7093
  l("div", I6, [
7095
7094
  Q(fe, {
7096
- color: d.type === "primary" ? "#00475A" : "",
7097
- name: i(d.type)
7095
+ color: v.type === "primary" ? "#00475A" : "",
7096
+ name: i(v.type)
7098
7097
  }, null, 8, ["color", "name"])
7099
7098
  ]),
7100
7099
  l("div", B6, [
7101
- d.dangerouslyUseHTMLString ? (s(), a("div", {
7100
+ v.dangerouslyUseHTMLString ? (s(), a("div", {
7102
7101
  key: 0,
7103
7102
  class: "vt-message-text",
7104
- innerHTML: d.message
7105
- }, null, 8, E6)) : (s(), a("div", A6, E(d.message), 1))
7103
+ innerHTML: v.message
7104
+ }, null, 8, E6)) : (s(), a("div", A6, E(v.message), 1))
7106
7105
  ]),
7107
- d.showClose ? (s(), a("button", {
7106
+ v.showClose ? (s(), a("button", {
7108
7107
  key: 0,
7109
7108
  class: "vt-message-close",
7110
7109
  type: "button",
7111
- onClick: (v) => h(d.id)
7110
+ onClick: (d) => h(v.id)
7112
7111
  }, [
7113
7112
  Q(fe, { name: "close" })
7114
7113
  ], 8, P6)) : O("", !0)
@@ -7192,13 +7191,13 @@ const Ne = new j6(), Nt = Object.assign(
7192
7191
  }, Z6 = {
7193
7192
  install(n, t = {}) {
7194
7193
  const { prefix: u = "V", modal: e = !0, message: i = !0 } = t;
7195
- n.component(`${u}Button`, Xe), n.component(`${u}Icon`, fe), n.component(`${u}Loader`, ft), n.component(`${u}Modal`, Qt), n.component(`${u}Pagination`, D3), n.component(`${u}Checkbox`, Je), n.component(`${u}Radiobox`, I3), n.component(`${u}Table`, g2), n.component(`${u}TableColumn`, w2), n.component(`${u}Dropdown`, n1), n.component(`${u}DropdownItem`, yt), n.component(`${u}Input`, Gt), n.component(`${u}Select`, Jt), n.component(`${u}Option`, e1), n.component(`${u}DatePicker`, p6), n.component(`${u}TimePicker`, pt), n.component(`${u}Collapse`, m6), n.component(`${u}CollapseItem`, w6), n.component(`${u}Tabs`, V6), n.component(`${u}TabItem`, L6), n.directive("tooltip", D6), n.directive("loader", H6), e && n.use(z3), i && n.use(F6);
7194
+ n.component(`${u}Button`, Xe), n.component(`${u}Icon`, fe), n.component(`${u}Loader`, pt), n.component(`${u}Modal`, Qt), n.component(`${u}Pagination`, D3), n.component(`${u}Checkbox`, Je), n.component(`${u}Radiobox`, I3), n.component(`${u}Table`, g2), n.component(`${u}TableColumn`, w2), n.component(`${u}Dropdown`, n1), n.component(`${u}DropdownItem`, yt), n.component(`${u}Input`, Gt), n.component(`${u}Select`, Jt), n.component(`${u}Option`, e1), n.component(`${u}DatePicker`, p6), n.component(`${u}TimePicker`, ht), n.component(`${u}Collapse`, m6), n.component(`${u}CollapseItem`, w6), n.component(`${u}Tabs`, V6), n.component(`${u}TabItem`, L6), n.directive("tooltip", D6), n.directive("loader", H6), e && n.use(z3), i && n.use(F6);
7196
7195
  }
7197
7196
  }, Q6 = Z6.install;
7198
7197
  export {
7199
7198
  K6 as DEFAULT_COLUMN_CONFIG,
7200
7199
  b2 as DEFAULT_FORMATS,
7201
- ht as DEFAULT_TIME_FORMATS,
7200
+ vt as DEFAULT_TIME_FORMATS,
7202
7201
  t1 as DropdownContextKey,
7203
7202
  q6 as FORMAT_TOKENS,
7204
7203
  k2 as MONTH_NAMES,
@@ -7212,7 +7211,7 @@ export {
7212
7211
  yt as VDropdownItem,
7213
7212
  fe as VIcon,
7214
7213
  Gt as VInput,
7215
- ft as VLoader,
7214
+ pt as VLoader,
7216
7215
  Nt as VMessage,
7217
7216
  F6 as VMessagePlugin,
7218
7217
  Qt as VModal,
@@ -7225,7 +7224,7 @@ export {
7225
7224
  g2 as VTable,
7226
7225
  w2 as VTableColumn,
7227
7226
  V6 as VTabs,
7228
- pt as VTimePicker,
7227
+ ht as VTimePicker,
7229
7228
  Xt as VtSelectContextKey,
7230
7229
  U6 as WEEKDAY_NAMES,
7231
7230
  kt as WEEKDAY_NAMES_SHORT,