tokenizer-ui-kit 0.2.33 → 0.2.34

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.
@@ -1,4 +1,4 @@
1
- import { createElementBlock as k, openBlock as h, createElementVNode as ee, createStaticVNode as il, defineComponent as Ae, createBlock as Me, resolveDynamicComponent as ha, normalizeClass as se, toDisplayString as $e, computed as E, useAttrs as Vt, mergeProps as Ie, unref as i, createCommentVNode as N, renderSlot as K, mergeModels as da, useModel as Wa, ref as q, onMounted as rt, nextTick as ze, watch as Je, Fragment as _e, renderList as Re, normalizeStyle as at, createTextVNode as pt, createVNode as He, reactive as Pa, useSlots as mt, toRef as Ca, getCurrentInstance as ul, onUnmounted as ya, isRef as zn, createSlots as lt, withCtx as be, normalizeProps as nt, guardReactiveProps as vt, Teleport as dl, Transition as ga, h as cl, render as qn, withModifiers as St, toValue as vl, getCurrentScope as fl, onScopeDispose as pl, onBeforeUpdate as ml, withDirectives as Dt, vShow as Ma, withKeys as hl, vModelCheckbox as yl, vModelDynamic as Mn, vModelText as hr, TransitionGroup as gl, onBeforeUnmount as bl } from "vue";
1
+ import { createElementBlock as k, openBlock as h, createElementVNode as ee, createStaticVNode as il, defineComponent as Ae, createBlock as Me, resolveDynamicComponent as ya, normalizeClass as se, toDisplayString as $e, computed as E, useAttrs as Vt, mergeProps as Ie, unref as i, createCommentVNode as N, renderSlot as K, mergeModels as ca, useModel as Wa, ref as q, onMounted as rt, nextTick as ze, watch as Je, Fragment as _e, renderList as Re, normalizeStyle as at, createTextVNode as pt, createVNode as He, reactive as Aa, useSlots as mt, toRef as Ta, getCurrentInstance as ul, onUnmounted as ga, isRef as zn, createSlots as lt, withCtx as be, normalizeProps as nt, guardReactiveProps as vt, Teleport as dl, Transition as ba, h as cl, render as qn, withModifiers as St, toValue as vl, getCurrentScope as fl, onScopeDispose as pl, onBeforeUpdate as ml, withDirectives as Dt, vShow as xa, withKeys as hl, vModelCheckbox as yl, vModelDynamic as Mn, vModelText as hr, TransitionGroup as gl, onBeforeUnmount as bl } from "vue";
2
2
  import { useResizeObserver as wl, onClickOutside as _l, useTimeoutFn as kl } from "@vueuse/core";
3
3
  const Le = (e, t) => {
4
4
  const n = e.__vccOpts || e;
@@ -216,7 +216,7 @@ const so = /* @__PURE__ */ Le(ro, [["render", oo]]), io = {
216
216
  const o = `/src/lib/icons/${r.toLowerCase().replace(/_/g, "-")}.vue`;
217
217
  return n[o] || null;
218
218
  };
219
- return (r, l) => a(e.name) ? (h(), Me(ha(a(e.name)), {
219
+ return (r, l) => a(e.name) ? (h(), Me(ya(a(e.name)), {
220
220
  key: 0,
221
221
  class: se(t.class)
222
222
  }, null, 8, ["class"])) : (h(), k("span", io, "[icon not found: " + $e(e.name) + "]", 1));
@@ -281,7 +281,7 @@ const uo = ["disabled"], co = /* @__PURE__ */ Ae({
281
281
  class: "ui-kit-adaptive-tabs__dropdown"
282
282
  }, ho = ["onClick"], yo = /* @__PURE__ */ Ae({
283
283
  __name: "AdaptiveTabs",
284
- props: /* @__PURE__ */ da({
284
+ props: /* @__PURE__ */ ca({
285
285
  tabs: {},
286
286
  minTabWidth: { default: 144 },
287
287
  fullWidth: { type: Boolean, default: !0 }
@@ -414,7 +414,7 @@ const uo = ["disabled"], co = /* @__PURE__ */ Ae({
414
414
  ], 512)) : N("", !0)
415
415
  ], 2));
416
416
  }
417
- }), Jc = /* @__PURE__ */ Le(yo, [["__scopeId", "data-v-3bbdb3f6"]]), gr = 6048e5, go = 864e5, bo = 6e4, br = 36e5, wo = 1e3, jn = Symbol.for("constructDateFrom");
417
+ }), Kc = /* @__PURE__ */ Le(yo, [["__scopeId", "data-v-3bbdb3f6"]]), gr = 6048e5, go = 864e5, bo = 6e4, br = 36e5, wo = 1e3, jn = Symbol.for("constructDateFrom");
418
418
  function Ve(e, t) {
419
419
  return typeof e == "function" ? e(t) : e && typeof e == "object" && jn in e ? e[jn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
420
420
  }
@@ -465,15 +465,15 @@ function Tt(e, t) {
465
465
  const n = na(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = he(e, t?.in), l = r.getDay(), o = (l < a ? 7 : 0) + l - a;
466
466
  return r.setDate(r.getDate() - o), r.setHours(0, 0, 0, 0), r;
467
467
  }
468
- function ca(e, t) {
468
+ function va(e, t) {
469
469
  return Tt(e, { ...t, weekStartsOn: 1 });
470
470
  }
471
471
  function _r(e, t) {
472
472
  const n = he(e, t?.in), a = n.getFullYear(), r = Ve(n, 0);
473
473
  r.setFullYear(a + 1, 0, 4), r.setHours(0, 0, 0, 0);
474
- const l = ca(r), o = Ve(n, 0);
474
+ const l = va(r), o = Ve(n, 0);
475
475
  o.setFullYear(a, 0, 4), o.setHours(0, 0, 0, 0);
476
- const d = ca(o);
476
+ const d = va(o);
477
477
  return n.getTime() >= l.getTime() ? a + 1 : n.getTime() >= d.getTime() ? a : a - 1;
478
478
  }
479
479
  function Fa(e) {
@@ -490,7 +490,7 @@ function Fa(e) {
490
490
  );
491
491
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
492
492
  }
493
- function Aa(e, ...t) {
493
+ function Oa(e, ...t) {
494
494
  const n = Ve.bind(
495
495
  null,
496
496
  t.find((a) => typeof a == "object")
@@ -502,7 +502,7 @@ function Xn(e, t) {
502
502
  return n.setHours(0, 0, 0, 0), n;
503
503
  }
504
504
  function kr(e, t, n) {
505
- const [a, r] = Aa(
505
+ const [a, r] = Oa(
506
506
  n?.in,
507
507
  e,
508
508
  t
@@ -511,7 +511,7 @@ function kr(e, t, n) {
511
511
  }
512
512
  function xo(e, t) {
513
513
  const n = _r(e, t), a = Ve(e, 0);
514
- return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), ca(a);
514
+ return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), va(a);
515
515
  }
516
516
  function Do(e, t, n) {
517
517
  return Ct(e, t * 3, n);
@@ -526,7 +526,7 @@ function Qn(e, t) {
526
526
  function Mr(e) {
527
527
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
528
528
  }
529
- function xa(e) {
529
+ function Da(e) {
530
530
  return !(!Mr(e) && typeof e != "number" || isNaN(+he(e)));
531
531
  }
532
532
  function Zn(e, t) {
@@ -534,7 +534,7 @@ function Zn(e, t) {
534
534
  return Math.trunc(n.getMonth() / 3) + 1;
535
535
  }
536
536
  function Co(e, t, n) {
537
- const [a, r] = Aa(
537
+ const [a, r] = Oa(
538
538
  n?.in,
539
539
  e,
540
540
  t
@@ -546,7 +546,7 @@ function Gn(e, t) {
546
546
  return n.setFullYear(n.getFullYear(), a + 1, 0), n.setHours(23, 59, 59, 999), n;
547
547
  }
548
548
  function To(e, t, n) {
549
- const [a, r] = Aa(
549
+ const [a, r] = Oa(
550
550
  n?.in,
551
551
  e,
552
552
  t
@@ -556,7 +556,7 @@ function To(e, t, n) {
556
556
  return s === 0 ? 0 : s;
557
557
  }
558
558
  function xr(e, t) {
559
- const [n, a] = Aa(e, t.start, t.end);
559
+ const [n, a] = Oa(e, t.start, t.end);
560
560
  return { start: n, end: a };
561
561
  }
562
562
  function Dr(e, t) {
@@ -713,7 +713,7 @@ const Oo = {
713
713
  nextWeek: "eeee 'at' p",
714
714
  other: "P"
715
715
  }, Io = (e, t, n, a) => Yo[e];
716
- function wa(e) {
716
+ function _a(e) {
717
717
  return (t, n) => {
718
718
  const a = n?.context ? String(n.context) : "standalone";
719
719
  let r;
@@ -855,31 +855,31 @@ const Ho = {
855
855
  return n + "th";
856
856
  }, zo = {
857
857
  ordinalNumber: Wo,
858
- era: wa({
858
+ era: _a({
859
859
  values: Ho,
860
860
  defaultWidth: "wide"
861
861
  }),
862
- quarter: wa({
862
+ quarter: _a({
863
863
  values: Fo,
864
864
  defaultWidth: "wide",
865
865
  argumentCallback: (e) => e - 1
866
866
  }),
867
- month: wa({
867
+ month: _a({
868
868
  values: Bo,
869
869
  defaultWidth: "wide"
870
870
  }),
871
- day: wa({
871
+ day: _a({
872
872
  values: Lo,
873
873
  defaultWidth: "wide"
874
874
  }),
875
- dayPeriod: wa({
875
+ dayPeriod: _a({
876
876
  values: Eo,
877
877
  defaultWidth: "wide",
878
878
  formattingValues: No,
879
879
  defaultFormattingWidth: "wide"
880
880
  })
881
881
  };
882
- function _a(e) {
882
+ function ka(e) {
883
883
  return (t, n = {}) => {
884
884
  const a = n.width, r = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], l = t.match(r);
885
885
  if (!l)
@@ -992,32 +992,32 @@ const Xo = /^(\d+)(th|st|nd|rd)?/i, Qo = /\d+/i, Zo = {
992
992
  parsePattern: Qo,
993
993
  valueCallback: (e) => parseInt(e, 10)
994
994
  }),
995
- era: _a({
995
+ era: ka({
996
996
  matchPatterns: Zo,
997
997
  defaultMatchWidth: "wide",
998
998
  parsePatterns: Go,
999
999
  defaultParseWidth: "any"
1000
1000
  }),
1001
- quarter: _a({
1001
+ quarter: ka({
1002
1002
  matchPatterns: Jo,
1003
1003
  defaultMatchWidth: "wide",
1004
1004
  parsePatterns: Ko,
1005
1005
  defaultParseWidth: "any",
1006
1006
  valueCallback: (e) => e + 1
1007
1007
  }),
1008
- month: _a({
1008
+ month: ka({
1009
1009
  matchPatterns: es,
1010
1010
  defaultMatchWidth: "wide",
1011
1011
  parsePatterns: ts,
1012
1012
  defaultParseWidth: "any"
1013
1013
  }),
1014
- day: _a({
1014
+ day: ka({
1015
1015
  matchPatterns: as,
1016
1016
  defaultMatchWidth: "wide",
1017
1017
  parsePatterns: ns,
1018
1018
  defaultParseWidth: "any"
1019
1019
  }),
1020
- dayPeriod: _a({
1020
+ dayPeriod: ka({
1021
1021
  matchPatterns: rs,
1022
1022
  defaultMatchWidth: "any",
1023
1023
  parsePatterns: ls,
@@ -1040,7 +1040,7 @@ function ss(e, t) {
1040
1040
  return kr(n, zt(n)) + 1;
1041
1041
  }
1042
1042
  function Dn(e, t) {
1043
- const n = he(e, t?.in), a = +ca(n) - +xo(n);
1043
+ const n = he(e, t?.in), a = +va(n) - +xo(n);
1044
1044
  return Math.round(a / gr) + 1;
1045
1045
  }
1046
1046
  function Cn(e, t) {
@@ -1756,7 +1756,7 @@ function fs(e, t, n) {
1756
1756
  const ps = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ms = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, hs = /^'([^]*?)'?$/, ys = /''/g, gs = /[a-zA-Z]/;
1757
1757
  function Rt(e, t, n) {
1758
1758
  const a = na(), r = n?.locale ?? a.locale ?? Tr, l = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, d = he(e, n?.in);
1759
- if (!xa(d))
1759
+ if (!Da(d))
1760
1760
  throw new RangeError("Invalid time value");
1761
1761
  let s = t.match(ms).map((c) => {
1762
1762
  const f = c[0];
@@ -1820,7 +1820,7 @@ function jt(e, t) {
1820
1820
  function Ce(e, t) {
1821
1821
  return he(e, t?.in).getMonth();
1822
1822
  }
1823
- function va(e) {
1823
+ function fa(e) {
1824
1824
  return he(e).getSeconds();
1825
1825
  }
1826
1826
  function we(e, t) {
@@ -1829,10 +1829,10 @@ function we(e, t) {
1829
1829
  function ta(e, t) {
1830
1830
  return +he(e) > +he(t);
1831
1831
  }
1832
- function fa(e, t) {
1832
+ function pa(e, t) {
1833
1833
  return +he(e) < +he(t);
1834
1834
  }
1835
- function ia(e, t) {
1835
+ function ua(e, t) {
1836
1836
  return +he(e) == +he(t);
1837
1837
  }
1838
1838
  function xs(e, t) {
@@ -2152,7 +2152,7 @@ class Ss extends Oe {
2152
2152
  }
2153
2153
  set(t, n, a) {
2154
2154
  const r = Ve(t, 0);
2155
- return r.setFullYear(a, 0, 4), r.setHours(0, 0, 0, 0), ca(r);
2155
+ return r.setFullYear(a, 0, 4), r.setHours(0, 0, 0, 0), va(r);
2156
2156
  }
2157
2157
  incompatibleTokens = [
2158
2158
  "G",
@@ -2498,7 +2498,7 @@ class Es extends Oe {
2498
2498
  return n >= 1 && n <= 53;
2499
2499
  }
2500
2500
  set(t, n, a) {
2501
- return ca(Ls(t, a));
2501
+ return va(Ls(t, a));
2502
2502
  }
2503
2503
  incompatibleTokens = [
2504
2504
  "y",
@@ -3322,7 +3322,7 @@ function gi(e) {
3322
3322
  return e.match(pi)[1].replace(mi, "'");
3323
3323
  }
3324
3324
  function nr(e, t, n) {
3325
- const [a, r] = Aa(
3325
+ const [a, r] = Oa(
3326
3326
  n?.in,
3327
3327
  e,
3328
3328
  t
@@ -3380,7 +3380,7 @@ function _i(e, t, n) {
3380
3380
  function Fr(e, t, n) {
3381
3381
  return xn(e, -t, n);
3382
3382
  }
3383
- function ba() {
3383
+ function wa() {
3384
3384
  const e = Vt();
3385
3385
  return h(), k(
3386
3386
  "svg",
@@ -3409,7 +3409,7 @@ function ba() {
3409
3409
  ]
3410
3410
  );
3411
3411
  }
3412
- ba.compatConfig = {
3412
+ wa.compatConfig = {
3413
3413
  MODE: 3
3414
3414
  };
3415
3415
  function Br() {
@@ -3561,7 +3561,7 @@ const ft = (e, t) => t ? new Date(e.toLocaleString("en-US", { timeZone: t })) :
3561
3561
  };
3562
3562
  var _t = /* @__PURE__ */ ((e) => (e.month = "month", e.year = "year", e))(_t || {}), kt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(kt || {}), Kt = /* @__PURE__ */ ((e) => (e.header = "header", e.calendar = "calendar", e.timePicker = "timePicker", e))(Kt || {}), it = /* @__PURE__ */ ((e) => (e.month = "month", e.year = "year", e.calendar = "calendar", e.time = "time", e.minutes = "minutes", e.hours = "hours", e.seconds = "seconds", e))(it || {});
3563
3563
  const Di = ["timestamp", "date", "iso"];
3564
- var ut = /* @__PURE__ */ ((e) => (e.up = "up", e.down = "down", e.left = "left", e.right = "right", e))(ut || {}), Be = /* @__PURE__ */ ((e) => (e.arrowUp = "ArrowUp", e.arrowDown = "ArrowDown", e.arrowLeft = "ArrowLeft", e.arrowRight = "ArrowRight", e.enter = "Enter", e.space = " ", e.esc = "Escape", e.tab = "Tab", e.home = "Home", e.end = "End", e.pageUp = "PageUp", e.pageDown = "PageDown", e))(Be || {}), ua = /* @__PURE__ */ ((e) => (e.MONTH_AND_YEAR = "MM-yyyy", e.YEAR = "yyyy", e.DATE = "dd-MM-yyyy", e))(ua || {});
3564
+ var ut = /* @__PURE__ */ ((e) => (e.up = "up", e.down = "down", e.left = "left", e.right = "right", e))(ut || {}), Be = /* @__PURE__ */ ((e) => (e.arrowUp = "ArrowUp", e.arrowDown = "ArrowDown", e.arrowLeft = "ArrowLeft", e.arrowRight = "ArrowRight", e.enter = "Enter", e.space = " ", e.esc = "Escape", e.tab = "Tab", e.home = "Home", e.end = "End", e.pageUp = "PageUp", e.pageDown = "PageDown", e))(Be || {}), da = /* @__PURE__ */ ((e) => (e.MONTH_AND_YEAR = "MM-yyyy", e.YEAR = "yyyy", e.DATE = "dd-MM-yyyy", e))(da || {});
3565
3565
  function rr(e) {
3566
3566
  return (t) => {
3567
3567
  const n = new Intl.DateTimeFormat(e, {
@@ -3633,12 +3633,12 @@ const Ti = (e, t, n) => {
3633
3633
  t.push(n(r));
3634
3634
  }
3635
3635
  return t;
3636
- }, Ta = (e, t, n) => {
3636
+ }, $a = (e, t, n) => {
3637
3637
  const a = n != null, r = t != null;
3638
3638
  if (!a && !r) return !1;
3639
3639
  const l = +n, o = +t;
3640
3640
  return a && r ? +e > l || +e < o : a ? +e > l : r ? +e < o : !1;
3641
- }, pa = (e, t) => Ai(e).map((n) => n.map((a) => {
3641
+ }, ma = (e, t) => Ai(e).map((n) => n.map((a) => {
3642
3642
  const { active: r, disabled: l, isBetween: o, highlighted: d } = t(a);
3643
3643
  return {
3644
3644
  ...a,
@@ -3673,13 +3673,13 @@ function Si(e, t) {
3673
3673
  if (a >= 0 && (t ? a - 1 >= 0 : a + 1 <= n.length))
3674
3674
  return n[a + (t ? -1 : 1)];
3675
3675
  }
3676
- const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) => new Intl.NumberFormat(t, { useGrouping: !1, style: "decimal" }).format(e), Bn = (e, t) => Rt(e, t ?? ua.DATE), nn = (e) => Array.isArray(e), Na = (e, t, n) => t.get(Bn(e, n)), Ri = (e, t) => e ? t ? t instanceof Map ? !!Na(e, t) : t(Z(e)) : !1 : !0, dt = (e, t, n = !1, a) => {
3676
+ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) => new Intl.NumberFormat(t, { useGrouping: !1, style: "decimal" }).format(e), Bn = (e, t) => Rt(e, t ?? da.DATE), nn = (e) => Array.isArray(e), Na = (e, t, n) => t.get(Bn(e, n)), Ri = (e, t) => e ? t ? t instanceof Map ? !!Na(e, t) : t(Z(e)) : !1 : !0, dt = (e, t, n = !1, a) => {
3677
3677
  if (e.key === Be.enter || e.key === Be.space)
3678
3678
  return n && e.preventDefault(), t();
3679
3679
  if (a) return a(e);
3680
- }, Vi = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, Wr = (e, t) => e ? ua.MONTH_AND_YEAR : t ? ua.YEAR : ua.DATE, zr = (e) => e < 10 ? `0${e}` : e, sr = (e, t, n, a, r, l) => {
3680
+ }, Vi = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, Wr = (e, t) => e ? da.MONTH_AND_YEAR : t ? da.YEAR : da.DATE, zr = (e) => e < 10 ? `0${e}` : e, sr = (e, t, n, a, r, l) => {
3681
3681
  const o = gn(e, t.slice(0, e.length), /* @__PURE__ */ new Date(), { locale: l });
3682
- return xa(o) && Mr(o) ? a || r ? o : Ye(o, {
3682
+ return Da(o) && Mr(o) ? a || r ? o : Ye(o, {
3683
3683
  hours: +n.hours,
3684
3684
  minutes: +n?.minutes,
3685
3685
  seconds: +n?.seconds,
@@ -3717,7 +3717,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
3717
3717
  }, Ut = (e, t, n, a) => {
3718
3718
  let r = e ? Z(e) : Z();
3719
3719
  return (t || t === 0) && (r = bi(r, +t)), (n || n === 0) && (r = wi(r, +n)), (a || a === 0) && (r = Hr(r, +a)), Ir(r, 0);
3720
- }, We = (e, t) => !e || !t ? !1 : fa(et(e), et(t)), Te = (e, t) => !e || !t ? !1 : ia(et(e), et(t)), Xe = (e, t) => !e || !t ? !1 : ta(et(e), et(t)), $a = (e, t, n) => e?.[0] && e?.[1] ? Xe(n, e[0]) && We(n, e[1]) : e?.[0] && t ? Xe(n, e[0]) && We(n, t) || We(n, e[0]) && Xe(n, t) : !1, xt = (e) => {
3720
+ }, We = (e, t) => !e || !t ? !1 : pa(et(e), et(t)), Te = (e, t) => !e || !t ? !1 : ua(et(e), et(t)), Xe = (e, t) => !e || !t ? !1 : ta(et(e), et(t)), Pa = (e, t, n) => e?.[0] && e?.[1] ? Xe(n, e[0]) && We(n, e[1]) : e?.[0] && t ? Xe(n, e[0]) && We(n, t) || We(n, e[0]) && Xe(n, t) : !1, xt = (e) => {
3721
3721
  const t = Ye(new Date(e), { date: 1 });
3722
3722
  return et(t);
3723
3723
  }, rn = (e, t, n) => t && (n || n === 0) ? Object.fromEntries(
@@ -3729,7 +3729,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
3729
3729
  }, ea = (e) => ({
3730
3730
  hours: Ft(e),
3731
3731
  minutes: jt(e),
3732
- seconds: va(e)
3732
+ seconds: fa(e)
3733
3733
  }), qr = (e, t) => {
3734
3734
  if (t) {
3735
3735
  const n = we(Z(t));
@@ -3741,7 +3741,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
3741
3741
  const n = we(Z(t));
3742
3742
  return n < e ? -1 : n === e ? Ce(Z(t)) : void 0;
3743
3743
  }
3744
- }, ma = (e) => {
3744
+ }, ha = (e) => {
3745
3745
  if (e) return we(Z(e));
3746
3746
  }, jr = (e, t) => {
3747
3747
  const n = Xe(e, t) ? t : e, a = Xe(t, e) ? t : e;
@@ -3756,7 +3756,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
3756
3756
  const n = {
3757
3757
  hours: Ft(Z()),
3758
3758
  minutes: jt(Z()),
3759
- seconds: t ? va(Z()) : 0
3759
+ seconds: t ? fa(Z()) : 0
3760
3760
  };
3761
3761
  return Object.assign(n, e);
3762
3762
  }, Wt = (e, t, n) => [Ye(Z(e), { date: 1 }), Ye(Z(), { month: t, year: n, date: 1 })], Ht = (e, t, n) => {
@@ -3773,18 +3773,18 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
3773
3773
  }, oa = (e) => {
3774
3774
  if (e) return null;
3775
3775
  throw new Error(Hn.prop("partial-range"));
3776
- }, Ya = (e, t) => {
3776
+ }, Ia = (e, t) => {
3777
3777
  if (t) return e();
3778
3778
  throw new Error(Hn.prop("range"));
3779
- }, _n = (e) => Array.isArray(e) ? xa(e[0]) && (e[1] ? xa(e[1]) : !0) : e ? xa(e) : !1, Li = (e, t) => Ye(t ?? Z(), {
3779
+ }, _n = (e) => Array.isArray(e) ? Da(e[0]) && (e[1] ? Da(e[1]) : !0) : e ? Da(e) : !1, Li = (e, t) => Ye(t ?? Z(), {
3780
3780
  hours: +e.hours || 0,
3781
3781
  minutes: +e.minutes || 0,
3782
3782
  seconds: +e.seconds || 0
3783
3783
  }), ln = (e, t, n, a) => {
3784
3784
  if (!e) return !0;
3785
3785
  if (a) {
3786
- const r = n === "max" ? fa(e, t) : ta(e, t), l = { seconds: 0, milliseconds: 0 };
3787
- return r || ia(Ye(e, l), Ye(t, l));
3786
+ const r = n === "max" ? pa(e, t) : ta(e, t), l = { seconds: 0, milliseconds: 0 };
3787
+ return r || ua(Ye(e, l), Ye(t, l));
3788
3788
  }
3789
3789
  return n === "max" ? e.getTime() <= t.getTime() : e.getTime() >= t.getTime();
3790
3790
  }, on = (e, t, n) => e ? Li(e, t) : Z(n ?? t), ir = (e, t, n, a, r) => {
@@ -3809,21 +3809,21 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
3809
3809
  }, Gr = (e, t, n) => typeof e == "function" ? e({ month: t, year: n }) : !!e.months.find((a) => a.month === t && a.year === n), Ln = (e, t) => typeof e == "function" ? e(t) : e.years.includes(t), kn = (e) => `dp-${Rt(e, "yyyy-MM-dd")}`, ur = (e, t) => {
3810
3810
  const n = Ea(et(t), e), a = gt(et(t), e);
3811
3811
  return { before: n, after: a };
3812
- }, Jr = (e, t) => t < +e[0] || t > +e[1], ka = Pa({
3812
+ }, Jr = (e, t) => t < +e[0] || t > +e[1], Ma = Aa({
3813
3813
  menuFocused: !1,
3814
3814
  shiftKeyInMenu: !1
3815
3815
  }), Kr = () => {
3816
3816
  const e = (n) => {
3817
- ka.menuFocused = n;
3817
+ Ma.menuFocused = n;
3818
3818
  }, t = (n) => {
3819
- ka.shiftKeyInMenu !== n && (ka.shiftKeyInMenu = n);
3819
+ Ma.shiftKeyInMenu !== n && (Ma.shiftKeyInMenu = n);
3820
3820
  };
3821
3821
  return {
3822
- control: E(() => ({ shiftKeyInMenu: ka.shiftKeyInMenu, menuFocused: ka.menuFocused })),
3822
+ control: E(() => ({ shiftKeyInMenu: Ma.shiftKeyInMenu, menuFocused: Ma.menuFocused })),
3823
3823
  setMenuFocused: e,
3824
3824
  setShiftKey: t
3825
3825
  };
3826
- }, Fe = Pa({
3826
+ }, Fe = Aa({
3827
3827
  monthYear: [],
3828
3828
  calendar: [],
3829
3829
  time: [],
@@ -3834,8 +3834,8 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
3834
3834
  1: []
3835
3835
  },
3836
3836
  monthPicker: []
3837
- }), un = q(null), Ia = q(!1), dn = q(!1), cn = q(!1), vn = q(!1), st = q(0), je = q(0), Xt = () => {
3838
- const e = E(() => Ia.value ? [...Fe.selectionGrid, Fe.actionRow].filter((f) => f.length) : dn.value ? [
3837
+ }), un = q(null), Ha = q(!1), dn = q(!1), cn = q(!1), vn = q(!1), st = q(0), je = q(0), Xt = () => {
3838
+ const e = E(() => Ha.value ? [...Fe.selectionGrid, Fe.actionRow].filter((f) => f.length) : dn.value ? [
3839
3839
  ...Fe.timePicker[0],
3840
3840
  ...Fe.timePicker[1],
3841
3841
  vn.value ? [] : [un.value],
@@ -3848,7 +3848,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
3848
3848
  je.value === 0 && !f || je.value === e.value.length && f || (je.value = f ? je.value + 1 : je.value - 1, e.value[je.value] ? e.value[je.value] && !e.value[je.value][st.value] && st.value !== 0 && (st.value = e.value[je.value].length - 1) : je.value = f ? je.value - 1 : je.value + 1);
3849
3849
  }, a = (f) => {
3850
3850
  let g = null;
3851
- e.value[je.value] && (g = e.value[je.value][st.value]), g ? g.focus({ preventScroll: !Ia.value }) : st.value = f ? st.value - 1 : st.value + 1;
3851
+ e.value[je.value] && (g = e.value[je.value][st.value]), g ? g.focus({ preventScroll: !Ha.value }) : st.value = f ? st.value - 1 : st.value + 1;
3852
3852
  }, r = () => {
3853
3853
  t(!0), a(!0);
3854
3854
  }, l = () => {
@@ -3871,7 +3871,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
3871
3871
  un.value = f;
3872
3872
  },
3873
3873
  setSelectionGrid: (f) => {
3874
- Ia.value = f, c(), f || (Fe.selectionGrid = []);
3874
+ Ha.value = f, c(), f || (Fe.selectionGrid = []);
3875
3875
  },
3876
3876
  setTimePicker: (f, g = !1) => {
3877
3877
  dn.value = f, vn.value = g, c(), f || (Fe.timePicker[0] = [], Fe.timePicker[1] = []);
@@ -3884,7 +3884,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
3884
3884
  arrowUp: o,
3885
3885
  arrowDown: d,
3886
3886
  clearArrowNav: () => {
3887
- Fe.monthYear = [], Fe.calendar = [], Fe.time = [], Fe.actionRow = [], Fe.selectionGrid = [], Fe.timePicker[0] = [], Fe.timePicker[1] = [], Ia.value = !1, dn.value = !1, vn.value = !1, cn.value = !1, c(), un.value = null;
3887
+ Fe.monthYear = [], Fe.calendar = [], Fe.time = [], Fe.actionRow = [], Fe.selectionGrid = [], Fe.timePicker[0] = [], Fe.timePicker[1] = [], Ha.value = !1, dn.value = !1, vn.value = !1, cn.value = !1, c(), un.value = null;
3888
3888
  },
3889
3889
  setMonthPicker: (f) => {
3890
3890
  cn.value = f, c();
@@ -4016,7 +4016,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4016
4016
  ), au = (e, t) => e.length ? new Map(
4017
4017
  e.map((n) => {
4018
4018
  const a = Yn(n.date, t);
4019
- return [Bn(a, ua.DATE), n];
4019
+ return [Bn(a, da.DATE), n];
4020
4020
  })
4021
4021
  ) : null, nu = (e) => {
4022
4022
  const t = Wr(e.isMonthPicker, e.isYearPicker);
@@ -4084,7 +4084,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4084
4084
  }
4085
4085
  };
4086
4086
  }, ou = (e, t, { isInputFocused: n, isTextInputDate: a }) => {
4087
- const r = q(), { defaultedTextInput: l, defaultedRange: o, defaultedTz: d, defaultedMultiDates: s, getDefaultPattern: w } = Ee(t), c = q(""), f = Ca(t, "format"), g = Ca(t, "formatLocale");
4087
+ const r = q(), { defaultedTextInput: l, defaultedRange: o, defaultedTz: d, defaultedMultiDates: s, getDefaultPattern: w } = Ee(t), c = q(""), f = Ta(t, "format"), g = Ta(t, "formatLocale");
4088
4088
  Je(
4089
4089
  r,
4090
4090
  () => {
@@ -4113,8 +4113,8 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4113
4113
  ), T = (v) => v ? t.modelType ? P(v) : {
4114
4114
  hours: Ft(v),
4115
4115
  minutes: jt(v),
4116
- seconds: t.enableSeconds ? va(v) : 0
4117
- } : null, M = (v) => t.modelType ? P(v) : { month: Ce(v), year: we(v) }, S = (v) => Array.isArray(v) ? s.value.enabled ? v.map((G) => C(G, Mt(Z(), G))) : Ya(
4116
+ seconds: t.enableSeconds ? fa(v) : 0
4117
+ } : null, M = (v) => t.modelType ? P(v) : { month: Ce(v), year: we(v) }, S = (v) => Array.isArray(v) ? s.value.enabled ? v.map((G) => C(G, Mt(Z(), G))) : Ia(
4118
4118
  () => [
4119
4119
  Mt(Z(), v[0]),
4120
4120
  v[1] ? Mt(Z(), v[1]) : oa(o.value.partialRange)
@@ -4131,7 +4131,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4131
4131
  )
4132
4132
  ] : C(v, Ut(null, v.hours, v.minutes, v.seconds)), U = (v) => {
4133
4133
  const G = Ye(Z(), { date: 1 });
4134
- return Array.isArray(v) ? s.value.enabled ? v.map((Pe) => C(Pe, Ht(G, +Pe.month, +Pe.year))) : Ya(
4134
+ return Array.isArray(v) ? s.value.enabled ? v.map((Pe) => C(Pe, Ht(G, +Pe.month, +Pe.year))) : Ia(
4135
4135
  () => [
4136
4136
  C(v[0], Ht(G, +v[0].month, +v[0].year)),
4137
4137
  C(
@@ -4154,7 +4154,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4154
4154
  ];
4155
4155
  }
4156
4156
  return Z(v[0]);
4157
- }, ne = (v) => t.modelAuto ? Array.isArray(v) ? [j(v[0]), j(v[1])] : t.autoApply ? [j(v)] : [j(v), null] : Array.isArray(v) ? Ya(
4157
+ }, ne = (v) => t.modelAuto ? Array.isArray(v) ? [j(v[0]), j(v[1])] : t.autoApply ? [j(v)] : [j(v), null] : Array.isArray(v) ? Ia(
4158
4158
  () => v[1] ? [
4159
4159
  j(v[0]),
4160
4160
  v[1] ? j(v[1]) : oa(o.value.partialRange)
@@ -4168,7 +4168,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4168
4168
  P(v[0]),
4169
4169
  v[1] ? P(v[1]) : oa(o.value.partialRange)
4170
4170
  ];
4171
- }, re = () => Array.isArray(r.value) ? r.value[1] ? F() : P(tt(r.value[0])) : [], x = () => (r.value || []).map((v) => P(v)), W = (v = !1) => (v || Q(), t.modelAuto ? re() : s.value.enabled ? x() : Array.isArray(r.value) ? Ya(() => F(), o.value.enabled) : P(tt(r.value))), p = (v) => !v || Array.isArray(v) && !v.length ? null : t.timePicker ? R(tt(v)) : t.monthPicker ? U(tt(v)) : t.yearPicker ? S(tt(v)) : s.value.enabled ? A(tt(v)) : t.weekPicker ? H(tt(v)) : ne(tt(v)), b = (v) => {
4171
+ }, re = () => Array.isArray(r.value) ? r.value[1] ? F() : P(tt(r.value[0])) : [], x = () => (r.value || []).map((v) => P(v)), W = (v = !1) => (v || Q(), t.modelAuto ? re() : s.value.enabled ? x() : Array.isArray(r.value) ? Ia(() => F(), o.value.enabled) : P(tt(r.value))), p = (v) => !v || Array.isArray(v) && !v.length ? null : t.timePicker ? R(tt(v)) : t.monthPicker ? U(tt(v)) : t.yearPicker ? S(tt(v)) : s.value.enabled ? A(tt(v)) : t.weekPicker ? H(tt(v)) : ne(tt(v)), b = (v) => {
4172
4172
  if (a.value) return;
4173
4173
  const G = p(v);
4174
4174
  _n(tt(G)) ? (r.value = tt(G), $()) : (r.value = null, c.value = "");
@@ -4394,7 +4394,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4394
4394
  } = Ee(a), { isTimeValid: f, isMonthValid: g } = Qt(a), { buildMatrix: D } = Xt(), V = q(null), I = q(null), T = q(!1), M = q({}), S = q(null), C = q(null);
4395
4395
  rt(() => {
4396
4396
  a.arrowNavigation && D([Ge(V), Ge(I)], "actionRow"), R(), window.addEventListener("resize", R);
4397
- }), ya(() => {
4397
+ }), ga(() => {
4398
4398
  window.removeEventListener("resize", R);
4399
4399
  });
4400
4400
  const R = () => {
@@ -4490,7 +4490,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4490
4490
  ], 64))
4491
4491
  ], 512));
4492
4492
  }
4493
- }), cu = ["role", "aria-label", "tabindex"], vu = { class: "dp__selection_grid_header" }, fu = ["aria-selected", "aria-disabled", "data-test-id", "onClick", "onKeydown", "onMouseover"], pu = ["aria-label"], Oa = /* @__PURE__ */ Ae({
4493
+ }), cu = ["role", "aria-label", "tabindex"], vu = { class: "dp__selection_grid_header" }, fu = ["aria-selected", "aria-disabled", "data-test-id", "onClick", "onKeydown", "onMouseover"], pu = ["aria-label"], Sa = /* @__PURE__ */ Ae({
4494
4494
  __name: "SelectionOverlay",
4495
4495
  props: {
4496
4496
  items: {},
@@ -4520,7 +4520,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4520
4520
  V.value = null;
4521
4521
  }), rt(() => {
4522
4522
  ze().then(() => x()), d.noOverlayFocus || A(), U(!0);
4523
- }), ya(() => U(!1));
4523
+ }), ga(() => U(!1));
4524
4524
  const U = (y) => {
4525
4525
  d.arrowNavigation && (d.headerRefs?.length ? l(y) : a(y));
4526
4526
  }, A = () => {
@@ -4666,7 +4666,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4666
4666
  }, [
4667
4667
  K(y.$slots, "button-icon")
4668
4668
  ], 42, pu)), [
4669
- [Ma, !i(g)(e.hideNavigation, e.type)]
4669
+ [xa, !i(g)(e.hideNavigation, e.type)]
4670
4670
  ]) : N("", !0)
4671
4671
  ], 46, cu));
4672
4672
  }
@@ -4704,7 +4704,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4704
4704
  ], 2))), 128))
4705
4705
  ], 10, mu));
4706
4706
  }
4707
- }), hu = ["data-dp-element", "aria-label", "aria-disabled"], Da = /* @__PURE__ */ Ae({
4707
+ }), hu = ["data-dp-element", "aria-label", "aria-disabled"], Ca = /* @__PURE__ */ Ae({
4708
4708
  compatConfig: {
4709
4709
  MODE: 3
4710
4710
  },
@@ -4748,7 +4748,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4748
4748
  },
4749
4749
  emits: ["toggle-year-picker", "year-select", "handle-year"],
4750
4750
  setup(e, { emit: t }) {
4751
- const n = t, a = e, { showRightIcon: r, showLeftIcon: l } = ja(), { defaultedConfig: o, defaultedMultiCalendars: d, defaultedAriaLabels: s, defaultedTransitions: w, defaultedUI: c } = Ee(a), { showTransition: f, transitionName: g } = Sa(w), D = q(!1), V = E(() => Fn(a.year, a.locale)), I = (S = !1, C) => {
4751
+ const n = t, a = e, { showRightIcon: r, showLeftIcon: l } = ja(), { defaultedConfig: o, defaultedMultiCalendars: d, defaultedAriaLabels: s, defaultedTransitions: w, defaultedUI: c } = Ee(a), { showTransition: f, transitionName: g } = Ra(w), D = q(!1), V = E(() => Fn(a.year, a.locale)), I = (S = !1, C) => {
4752
4752
  D.value = !D.value, n("toggle-year-picker", { flow: S, show: C });
4753
4753
  }, T = (S) => {
4754
4754
  D.value = !1, n("year-select", S);
@@ -4759,7 +4759,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4759
4759
  ee("div", {
4760
4760
  class: se(["dp--year-mode-picker", { "dp--hidden-el": D.value }])
4761
4761
  }, [
4762
- i(l)(i(d), e.instance) ? (h(), Me(Da, {
4762
+ i(l)(i(d), e.instance) ? (h(), Me(Ca, {
4763
4763
  key: 0,
4764
4764
  ref: "mpPrevIconRef",
4765
4765
  "aria-label": i(s)?.prevYear,
@@ -4792,7 +4792,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4792
4792
  pt($e(V.value), 1)
4793
4793
  ], 64))
4794
4794
  ], 40, yu),
4795
- i(r)(i(d), e.instance) ? (h(), Me(Da, {
4795
+ i(r)(i(d), e.instance) ? (h(), Me(Ca, {
4796
4796
  key: 1,
4797
4797
  ref: "mpNextIconRef",
4798
4798
  "aria-label": i(s)?.nextYear,
@@ -4807,12 +4807,12 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4807
4807
  _: 3
4808
4808
  }, 8, ["aria-label", "disabled", "class"])) : N("", !0)
4809
4809
  ], 2),
4810
- He(ga, {
4810
+ He(ba, {
4811
4811
  name: i(g)(e.showYearPicker),
4812
4812
  css: i(f)
4813
4813
  }, {
4814
4814
  default: be(() => [
4815
- e.showYearPicker ? (h(), Me(Oa, {
4815
+ e.showYearPicker ? (h(), Me(Sa, {
4816
4816
  key: 0,
4817
4817
  items: e.items,
4818
4818
  "text-input": S.textInput,
@@ -4828,7 +4828,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4828
4828
  }, lt({
4829
4829
  "button-icon": be(() => [
4830
4830
  S.$slots["calendar-icon"] ? K(S.$slots, "calendar-icon", { key: 0 }) : N("", !0),
4831
- S.$slots["calendar-icon"] ? N("", !0) : (h(), Me(i(ba), { key: 1 }))
4831
+ S.$slots["calendar-icon"] ? N("", !0) : (h(), Me(i(wa), { key: 1 }))
4832
4832
  ]),
4833
4833
  _: 2
4834
4834
  }, [
@@ -4923,11 +4923,11 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4923
4923
  });
4924
4924
  const U = (F, re) => {
4925
4925
  r.value[re].year = F, c("update-month-year", { instance: re, year: F, month: r.value[re].month }), e.value.count && !e.value.solo && T(re);
4926
- }, A = E(() => (F) => pa(f.value, (re) => {
4927
- const x = s.value(F) === re.value, W = Ta(
4926
+ }, A = E(() => (F) => ma(f.value, (re) => {
4927
+ const x = s.value(F) === re.value, W = $a(
4928
4928
  re.value,
4929
- ma(a.value.minDate),
4930
- ma(a.value.maxDate)
4929
+ ha(a.value.minDate),
4930
+ ha(a.value.maxDate)
4931
4931
  ) || d.value.years?.includes(s.value(F)), p = Ln(n.value, re.value);
4932
4932
  return { active: x, disabled: W, highlighted: p };
4933
4933
  })), H = (F, re) => {
@@ -4963,7 +4963,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4963
4963
  defaultedMultiDates: f
4964
4964
  } = Ee(e), g = () => {
4965
4965
  e.isTextInputDate && R(we(Z(e.startDate)), 0);
4966
- }, { modelValue: D, year: V, month: I, calendars: T } = Ra(e, t, g), M = E(() => Lr(e.formatLocale, e.locale, e.monthNameFormat)), S = q(null), { checkMinMaxRange: C } = Qt(e), {
4966
+ }, { modelValue: D, year: V, month: I, calendars: T } = Va(e, t, g), M = E(() => Lr(e.formatLocale, e.locale, e.monthNameFormat)), S = q(null), { checkMinMaxRange: C } = Qt(e), {
4967
4967
  selectYear: R,
4968
4968
  groupedYears: U,
4969
4969
  showYearPicker: A,
@@ -4998,13 +4998,13 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
4998
4998
  const de = x();
4999
4999
  if (Array.isArray(D.value) && Array.isArray(de)) {
5000
5000
  const m = p(z, Y, 0) || p(z, Y, 1), v = Ht(xt(Z()), z, V.value(Y));
5001
- return $a(D.value, S.value, v) && !m;
5001
+ return Pa(D.value, S.value, v) && !m;
5002
5002
  }
5003
5003
  return !1;
5004
5004
  }
5005
5005
  return !1;
5006
- }, _ = E(() => (z) => pa(M.value, (Y) => {
5007
- const de = W(z, Y.value), m = Ta(
5006
+ }, _ = E(() => (z) => ma(M.value, (Y) => {
5007
+ const de = W(z, Y.value), m = $a(
5008
5008
  Y.value,
5009
5009
  qr(V.value(z), s.value.minDate),
5010
5010
  Ur(V.value(z), s.value.maxDate)
@@ -5128,7 +5128,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5128
5128
  selectMonth: i(M),
5129
5129
  selectYear: i(S),
5130
5130
  instance: Q
5131
- }))) : (h(), Me(Oa, {
5131
+ }))) : (h(), Me(Sa, {
5132
5132
  key: 2,
5133
5133
  items: i(d)(Q),
5134
5134
  "arrow-navigation": H.arrowNavigation,
@@ -5181,15 +5181,15 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5181
5181
  }), wu = (e, t) => {
5182
5182
  const n = () => {
5183
5183
  e.isTextInputDate && (c.value = we(Z(e.startDate)));
5184
- }, { modelValue: a } = Ra(e, t, n), r = q(null), { defaultedHighlight: l, defaultedMultiDates: o, defaultedFilters: d, defaultedRange: s, propDates: w } = Ee(e), c = q();
5184
+ }, { modelValue: a } = Va(e, t, n), r = q(null), { defaultedHighlight: l, defaultedMultiDates: o, defaultedFilters: d, defaultedRange: s, propDates: w } = Ee(e), c = q();
5185
5185
  rt(() => {
5186
5186
  e.startDate && (a.value && e.focusStartDate || !a.value) && (c.value = we(Z(e.startDate)));
5187
5187
  });
5188
- const f = (M) => Array.isArray(a.value) ? a.value.some((S) => we(S) === M) : a.value ? we(a.value) === M : !1, g = (M) => s.value.enabled && Array.isArray(a.value) ? $a(a.value, r.value, T(M)) : !1, D = (M) => w.value.allowedDates instanceof Map ? w.value.allowedDates.size ? w.value.allowedDates.has(`${M}`) : !1 : !0, V = (M) => w.value.disabledDates instanceof Map ? w.value.disabledDates.size ? w.value.disabledDates.has(`${M}`) : !1 : typeof w.value.disabledDates == "function" ? w.value.disabledDates(Mt(et(zt(Z())), M)) : !0, I = E(() => pa(In(e.yearRange, e.locale, e.reverseYears), (M) => {
5189
- const S = f(M.value), C = Ta(
5188
+ const f = (M) => Array.isArray(a.value) ? a.value.some((S) => we(S) === M) : a.value ? we(a.value) === M : !1, g = (M) => s.value.enabled && Array.isArray(a.value) ? Pa(a.value, r.value, T(M)) : !1, D = (M) => w.value.allowedDates instanceof Map ? w.value.allowedDates.size ? w.value.allowedDates.has(`${M}`) : !1 : !0, V = (M) => w.value.disabledDates instanceof Map ? w.value.disabledDates.size ? w.value.disabledDates.has(`${M}`) : !1 : typeof w.value.disabledDates == "function" ? w.value.disabledDates(Mt(et(zt(Z())), M)) : !0, I = E(() => ma(In(e.yearRange, e.locale, e.reverseYears), (M) => {
5189
+ const S = f(M.value), C = $a(
5190
5190
  M.value,
5191
- ma(w.value.minDate),
5192
- ma(w.value.maxDate)
5191
+ ha(w.value.minDate),
5192
+ ha(w.value.maxDate)
5193
5193
  ) || d.value.years.includes(M.value) || !D(M.value) || V(M.value), R = g(M.value) && !S, U = Ln(l.value, M.value);
5194
5194
  return { active: S, disabled: C, isBetween: R, highlighted: U };
5195
5195
  })), T = (M) => Mt(xt(zt(/* @__PURE__ */ new Date())), M);
@@ -5237,7 +5237,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5237
5237
  f.$slots["month-year"] ? K(f.$slots, "month-year", nt(Ie({ key: 1 }, {
5238
5238
  years: i(l),
5239
5239
  selectYear: i(s)
5240
- }))) : (h(), Me(Oa, {
5240
+ }))) : (h(), Me(Sa, {
5241
5241
  key: 2,
5242
5242
  items: i(l),
5243
5243
  "is-last": f.autoApply && !i(c).keepActionRow,
@@ -5301,7 +5301,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5301
5301
  defaultedConfig: c,
5302
5302
  defaultedRange: f,
5303
5303
  defaultedMultiCalendars: g
5304
- } = Ee(r), { transitionName: D, showTransition: V } = Sa(s), I = Pa({
5304
+ } = Ee(r), { transitionName: D, showTransition: V } = Ra(s), I = Aa({
5305
5305
  hours: !1,
5306
5306
  minutes: !1,
5307
5307
  seconds: !1
@@ -5355,7 +5355,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5355
5355
  const ce = r.is24 ? 24 : 12, L = u === "hours" ? ce : 60, xe = +r[`${u}GridIncrement`], ye = u === "hours" && !r.is24 ? xe : 0, ot = [];
5356
5356
  for (let Ue = ye; Ue < L; Ue += xe)
5357
5357
  ot.push({ value: r.is24 ? Ue : j(Ue, u), text: Ue < 10 ? `0${Ue}` : `${Ue}` });
5358
- return u === "hours" && !r.is24 && ot.unshift({ value: T.value === "PM" ? 12 : 0, text: "12" }), pa(ot, (Ue) => ({ active: !1, disabled: w.value.times[u].includes(Ue.value) || !z(Ue.value, u) || $(u, Ue.value) || ne(u, Ue.value) }));
5358
+ return u === "hours" && !r.is24 && ot.unshift({ value: T.value === "PM" ? 12 : 0, text: "12" }), ma(ot, (Ue) => ({ active: !1, disabled: w.value.times[u].includes(Ue.value) || !z(Ue.value, u) || $(u, Ue.value) || ne(u, Ue.value) }));
5359
5359
  }, ue = (u) => u >= 0 ? u : 59, y = (u) => u >= 0 ? u : 23, z = (u, ce) => {
5360
5360
  const L = r.minTime ? U(rn(r.minTime)) : null, xe = r.maxTime ? U(rn(r.maxTime)) : null, ye = U(
5361
5361
  rn(
@@ -5364,10 +5364,10 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5364
5364
  ce === "minutes" || ce === "seconds" ? ue(u) : y(u)
5365
5365
  )
5366
5366
  );
5367
- return L && xe ? (fa(ye, xe) || ia(ye, xe)) && (ta(ye, L) || ia(ye, L)) : L ? ta(ye, L) || ia(ye, L) : xe ? fa(ye, xe) || ia(ye, xe) : !0;
5367
+ return L && xe ? (pa(ye, xe) || ua(ye, xe)) && (ta(ye, L) || ua(ye, L)) : L ? ta(ye, L) || ua(ye, L) : xe ? pa(ye, xe) || ua(ye, xe) : !0;
5368
5368
  }, Y = (u) => r[`no${u[0].toUpperCase() + u.slice(1)}Overlay`], de = (u) => {
5369
5369
  Y(u) || (I[u] = !I[u], I[u] ? (R.value = !0, a("overlay-opened", u)) : (R.value = !1, a("overlay-closed", u)));
5370
- }, m = (u) => u === "hours" ? Ft : u === "minutes" ? jt : va, v = () => {
5370
+ }, m = (u) => u === "hours" ? Ft : u === "minutes" ? jt : fa, v = () => {
5371
5371
  C.value && clearTimeout(C.value);
5372
5372
  }, G = (u, ce = !0, L) => {
5373
5373
  const xe = ce ? x : W, ye = ce ? +r[`${u}Increment`] : -+r[`${u}Increment`];
@@ -5513,13 +5513,13 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5513
5513
  onKeydown: ce[0] || (ce[0] = (L) => i(dt)(L, () => J(), !0))
5514
5514
  }, $e(T.value), 41, $u))
5515
5515
  ])),
5516
- (h(!0), k(_e, null, Re(X.value, (L, xe) => (h(), Me(ga, {
5516
+ (h(!0), k(_e, null, Re(X.value, (L, xe) => (h(), Me(ba, {
5517
5517
  key: xe,
5518
5518
  name: i(D)(I[L.type]),
5519
5519
  css: i(V)
5520
5520
  }, {
5521
5521
  default: be(() => [
5522
- I[L.type] ? (h(), Me(Oa, {
5522
+ I[L.type] ? (h(), Me(Sa, {
5523
5523
  key: 0,
5524
5524
  items: P(L.type),
5525
5525
  "is-last": u.autoApply && !i(c).keepActionRow,
@@ -5536,7 +5536,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5536
5536
  }, lt({
5537
5537
  "button-icon": be(() => [
5538
5538
  u.$slots["clock-icon"] ? K(u.$slots, "clock-icon", { key: 0 }) : N("", !0),
5539
- u.$slots["clock-icon"] ? N("", !0) : (h(), Me(ha(u.timePickerInline ? i(ba) : i(Sn)), { key: 1 }))
5539
+ u.$slots["clock-icon"] ? N("", !0) : (h(), Me(ya(u.timePickerInline ? i(wa) : i(Sn)), { key: 1 }))
5540
5540
  ]),
5541
5541
  _: 2
5542
5542
  }, [
@@ -5592,7 +5592,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5592
5592
  "am-pm-change"
5593
5593
  ],
5594
5594
  setup(e, { expose: t, emit: n }) {
5595
- const a = n, r = e, { buildMatrix: l, setTimePicker: o } = Xt(), d = mt(), { defaultedTransitions: s, defaultedAriaLabels: w, defaultedTextInput: c, defaultedConfig: f, defaultedRange: g } = Ee(r), { transitionName: D, showTransition: V } = Sa(s), { hideNavigationButtons: I } = ja(), T = q(null), M = q(null), S = q([]), C = q(null), R = q(!1);
5595
+ const a = n, r = e, { buildMatrix: l, setTimePicker: o } = Xt(), d = mt(), { defaultedTransitions: s, defaultedAriaLabels: w, defaultedTextInput: c, defaultedConfig: f, defaultedRange: g } = Ee(r), { transitionName: D, showTransition: V } = Ra(s), { hideNavigationButtons: I } = ja(), T = q(null), M = q(null), S = q([]), C = q(null), R = q(!1);
5596
5596
  rt(() => {
5597
5597
  a("mount"), !r.timePicker && r.arrowNavigation ? l([Ge(T.value)], "time") : o(!0, r.timePicker);
5598
5598
  });
@@ -5651,9 +5651,9 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5651
5651
  $.$slots["clock-icon"] ? K($.$slots, "clock-icon", { key: 0 }) : N("", !0),
5652
5652
  $.$slots["clock-icon"] ? N("", !0) : (h(), Me(i(Sn), { key: 1 }))
5653
5653
  ], 42, Ou)), [
5654
- [Ma, !i(I)($.hideNavigation, "time")]
5654
+ [xa, !i(I)($.hideNavigation, "time")]
5655
5655
  ]) : N("", !0),
5656
- He(ga, {
5656
+ He(ba, {
5657
5657
  name: i(D)(A.value),
5658
5658
  css: i(V) && !$.timePickerInline
5659
5659
  }, {
@@ -5720,7 +5720,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5720
5720
  ])
5721
5721
  }))
5722
5722
  ]), 1040, ["validate-time", "onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
5723
- [Ma, ue === 0 ? !0 : U.value]
5723
+ [xa, ue === 0 ? !0 : U.value]
5724
5724
  ])), 128))
5725
5725
  ], 2)),
5726
5726
  !$.timePicker && !$.timePickerInline ? Dt((h(), k("button", {
@@ -5735,9 +5735,9 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5735
5735
  onClick: j[4] || (j[4] = (P) => Q(!1))
5736
5736
  }, [
5737
5737
  $.$slots["calendar-icon"] ? K($.$slots, "calendar-icon", { key: 0 }) : N("", !0),
5738
- $.$slots["calendar-icon"] ? N("", !0) : (h(), Me(i(ba), { key: 1 }))
5738
+ $.$slots["calendar-icon"] ? N("", !0) : (h(), Me(i(wa), { key: 1 }))
5739
5739
  ], 42, Ru)), [
5740
- [Ma, !i(I)($.hideNavigation, "time")]
5740
+ [xa, !i(I)($.hideNavigation, "time")]
5741
5741
  ]) : N("", !0)
5742
5742
  ], 2)
5743
5743
  ], 14, Su)) : N("", !0)
@@ -5760,7 +5760,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5760
5760
  U.minutes[ne],
5761
5761
  U.seconds[ne]
5762
5762
  ) : null, H = (ne) => Ir(n.value[ne], 0);
5763
- return !(Te(A(0), A(1)) && (ta(A(0), H(1)) || fa(A(1), H(0))));
5763
+ return !(Te(A(0), A(1)) && (ta(A(0), H(1)) || pa(A(1), H(0))));
5764
5764
  }
5765
5765
  return !0;
5766
5766
  }, f = (C, R) => {
@@ -5810,7 +5810,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5810
5810
  }, Vu = (e, t) => {
5811
5811
  const n = () => {
5812
5812
  e.isTextInputDate && R();
5813
- }, { modelValue: a, time: r } = Ra(e, t, n), { defaultedStartTime: l, defaultedRange: o, defaultedTz: d } = Ee(e), { updateTimeValues: s, getSetDateTime: w, setTime: c, assignStartTime: f, disabledTimesConfig: g, validateTime: D } = ll(e, r, a, V);
5813
+ }, { modelValue: a, time: r } = Va(e, t, n), { defaultedStartTime: l, defaultedRange: o, defaultedTz: d } = Ee(e), { updateTimeValues: s, getSetDateTime: w, setTime: c, assignStartTime: f, disabledTimesConfig: g, validateTime: D } = ll(e, r, a, V);
5814
5814
  function V() {
5815
5815
  t("update-flow-step");
5816
5816
  }
@@ -5951,7 +5951,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5951
5951
  defaultedHighlight: c,
5952
5952
  propDates: f,
5953
5953
  defaultedUI: g
5954
- } = Ee(r), { transitionName: D, showTransition: V } = Sa(l), { buildMatrix: I } = Xt(), { handleMonthYearChange: T, isDisabled: M, updateMonthYear: S } = su(r, a), { showLeftIcon: C, showRightIcon: R } = ja(), U = q(!1), A = q(!1), H = q(!1), ne = q([null, null, null, null]);
5954
+ } = Ee(r), { transitionName: D, showTransition: V } = Ra(l), { buildMatrix: I } = Xt(), { handleMonthYearChange: T, isDisabled: M, updateMonthYear: S } = su(r, a), { showLeftIcon: C, showRightIcon: R } = ja(), U = q(!1), A = q(!1), H = q(!1), ne = q([null, null, null, null]);
5955
5955
  rt(() => {
5956
5956
  a("mount");
5957
5957
  });
@@ -5968,18 +5968,18 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
5968
5968
  instance: r.instance,
5969
5969
  updateMonthYear: S,
5970
5970
  toggle: y === _t.month ? X : oe
5971
- })), W = E(() => r.months.find((z) => z.value === r.month) || { text: "", value: 0 }), p = E(() => pa(r.months, (y) => {
5972
- const z = r.month === y.value, Y = Ta(
5971
+ })), W = E(() => r.months.find((z) => z.value === r.month) || { text: "", value: 0 }), p = E(() => ma(r.months, (y) => {
5972
+ const z = r.month === y.value, Y = $a(
5973
5973
  y.value,
5974
5974
  qr(r.year, f.value.minDate),
5975
5975
  Ur(r.year, f.value.maxDate)
5976
5976
  ) || s.value.months.includes(y.value), de = Gr(c.value, y.value, r.year);
5977
5977
  return { active: z, disabled: Y, highlighted: de };
5978
- })), b = E(() => pa(r.years, (y) => {
5979
- const z = r.year === y.value, Y = Ta(
5978
+ })), b = E(() => ma(r.years, (y) => {
5979
+ const z = r.year === y.value, Y = $a(
5980
5980
  y.value,
5981
- ma(f.value.minDate),
5982
- ma(f.value.maxDate)
5981
+ ha(f.value.minDate),
5982
+ ha(f.value.maxDate)
5983
5983
  ) || s.value.years.includes(y.value), de = Ln(c.value, y.value);
5984
5984
  return { active: z, disabled: Y, highlighted: de };
5985
5985
  })), _ = (y, z, Y) => {
@@ -6039,7 +6039,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6039
6039
  K(y.$slots, "top-extra", { value: y.internalModelValue })
6040
6040
  ])) : N("", !0),
6041
6041
  ee("div", Bu, [
6042
- i(C)(i(d), e.instance) && !y.vertical ? (h(), Me(Da, {
6042
+ i(C)(i(d), e.instance) && !y.vertical ? (h(), Me(Ca, {
6043
6043
  key: 0,
6044
6044
  "aria-label": i(o)?.prevMonth,
6045
6045
  disabled: i(M)(!1),
@@ -6082,12 +6082,12 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6082
6082
  pt($e(Y.text), 1)
6083
6083
  ], 64))
6084
6084
  ], 42, Lu),
6085
- He(ga, {
6085
+ He(ba, {
6086
6086
  name: i(D)(Y.showSelectionGrid),
6087
6087
  css: i(V)
6088
6088
  }, {
6089
6089
  default: be(() => [
6090
- Y.showSelectionGrid ? (h(), Me(Oa, {
6090
+ Y.showSelectionGrid ? (h(), Me(Sa, {
6091
6091
  key: 0,
6092
6092
  items: Y.items,
6093
6093
  "arrow-navigation": y.arrowNavigation,
@@ -6107,7 +6107,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6107
6107
  }, lt({
6108
6108
  "button-icon": be(() => [
6109
6109
  y.$slots["calendar-icon"] ? K(y.$slots, "calendar-icon", { key: 0 }) : N("", !0),
6110
- y.$slots["calendar-icon"] ? N("", !0) : (h(), Me(i(ba), { key: 1 }))
6110
+ y.$slots["calendar-icon"] ? N("", !0) : (h(), Me(i(wa), { key: 1 }))
6111
6111
  ]),
6112
6112
  _: 2
6113
6113
  }, [
@@ -6143,7 +6143,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6143
6143
  }, 1032, ["name", "css"])
6144
6144
  ], 64))), 128))
6145
6145
  ], 2),
6146
- i(C)(i(d), e.instance) && y.vertical ? (h(), Me(Da, {
6146
+ i(C)(i(d), e.instance) && y.vertical ? (h(), Me(Ca, {
6147
6147
  key: 1,
6148
6148
  "aria-label": i(o)?.prevMonth,
6149
6149
  "el-name": "action-prev",
@@ -6157,7 +6157,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6157
6157
  ]),
6158
6158
  _: 3
6159
6159
  }, 8, ["aria-label", "disabled", "class"])) : N("", !0),
6160
- i(R)(i(d), e.instance) ? (h(), Me(Da, {
6160
+ i(R)(i(d), e.instance) ? (h(), Me(Ca, {
6161
6161
  key: 2,
6162
6162
  ref: "rightIcon",
6163
6163
  "el-name": "action-next",
@@ -6169,7 +6169,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6169
6169
  }, {
6170
6170
  default: be(() => [
6171
6171
  y.$slots[y.vertical ? "arrow-down" : "arrow-right"] ? K(y.$slots, y.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : N("", !0),
6172
- y.$slots[y.vertical ? "arrow-down" : "arrow-right"] ? N("", !0) : (h(), Me(ha(y.vertical ? i(Vn) : i(On)), { key: 1 }))
6172
+ y.$slots[y.vertical ? "arrow-down" : "arrow-right"] ? N("", !0) : (h(), Me(ya(y.vertical ? i(Vn) : i(On)), { key: 1 }))
6173
6173
  ]),
6174
6174
  _: 3
6175
6175
  }, 8, ["disabled", "aria-label", "class"])) : N("", !0)
@@ -6226,7 +6226,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6226
6226
  }), I = q([]), T = q(null), M = q(!0), S = q(""), C = q({ startX: 0, endX: 0, startY: 0, endY: 0 }), R = q([]), U = q({ left: "50%" }), A = q(!1), H = E(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), ne = E(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Ti(r.formatLocale, r.locale, +r.weekStart));
6227
6227
  rt(() => {
6228
6228
  a("mount", { cmp: "calendar", refs: I }), d.value.noSwipe || T.value && (T.value.addEventListener("touchstart", j, { passive: !1 }), T.value.addEventListener("touchend", P, { passive: !1 }), T.value.addEventListener("touchmove", ue, { passive: !1 })), r.monthChangeOnScroll && T.value && T.value.addEventListener("wheel", Y, { passive: !1 });
6229
- }), ya(() => {
6229
+ }), ga(() => {
6230
6230
  d.value.noSwipe || T.value && (T.value.removeEventListener("touchstart", j), T.value.removeEventListener("touchend", P), T.value.removeEventListener("touchmove", ue)), r.monthChangeOnScroll && T.value && T.value.removeEventListener("wheel", Y);
6231
6231
  });
6232
6232
  const Q = (J) => J ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", F = (J, ke) => {
@@ -6326,7 +6326,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6326
6326
  ], 8, zu))), 128))
6327
6327
  ]),
6328
6328
  ke[2] || (ke[2] = ee("div", { class: "dp__calendar_header_separator" }, null, -1)),
6329
- He(ga, {
6329
+ He(ba, {
6330
6330
  name: S.value,
6331
6331
  css: !!J.transitions
6332
6332
  }, {
@@ -6435,7 +6435,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6435
6435
  ], 2));
6436
6436
  }
6437
6437
  }), vr = (e) => Array.isArray(e), Qu = (e, t, n, a) => {
6438
- const r = q([]), l = q(/* @__PURE__ */ new Date()), o = q(), d = () => P(e.isTextInputDate), { modelValue: s, calendars: w, time: c, today: f } = Ra(e, t, d), {
6438
+ const r = q([]), l = q(/* @__PURE__ */ new Date()), o = q(), d = () => P(e.isTextInputDate), { modelValue: s, calendars: w, time: c, today: f } = Va(e, t, d), {
6439
6439
  defaultedMultiCalendars: g,
6440
6440
  defaultedStartTime: D,
6441
6441
  defaultedRange: V,
@@ -6471,7 +6471,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6471
6471
  w.value[me] = { month: Ce(ae), year: we(ae) };
6472
6472
  }
6473
6473
  }, z = (O, le) => {
6474
- y(O), Q("hours", Ft(O)), Q("minutes", jt(O)), Q("seconds", va(O)), g.value.count && le && J();
6474
+ y(O), Q("hours", Ft(O)), Q("minutes", jt(O)), Q("seconds", fa(O)), g.value.count && le && J();
6475
6475
  }, Y = (O) => {
6476
6476
  if (g.value.count) {
6477
6477
  if (g.value.solo) return 0;
@@ -6485,7 +6485,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6485
6485
  De(O[0]),
6486
6486
  O[1] ? De(O[1]) : c[ae][1]
6487
6487
  ];
6488
- Q("hours", me(Ft, "hours")), Q("minutes", me(jt, "minutes")), Q("seconds", me(va, "seconds"));
6488
+ Q("hours", me(Ft, "hours")), Q("minutes", me(jt, "minutes")), Q("seconds", me(fa, "seconds"));
6489
6489
  }, m = (O, le) => {
6490
6490
  if ((V.value.enabled || e.weekPicker) && !S.value.enabled)
6491
6491
  return de(O, le);
@@ -6620,7 +6620,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6620
6620
  r.value[0] && r.value[1] && +r.value?.[0] > +r.value?.[1] && (r.value.reverse(), t("range-start", r.value[0]), t("range-end", r.value[1]));
6621
6621
  }, Qa = () => {
6622
6622
  r.value.length && (r.value[0] && !r.value[1] ? ct(0) : (ct(0), ct(1), a()), Xa(), s.value = r.value.slice(), Ua(r.value, t, e.autoApply, e.modelAuto));
6623
- }, Va = (O, le = !1) => {
6623
+ }, Ya = (O, le = !1) => {
6624
6624
  if (R(O.value) || !O.current && e.hideOffsetDates) return t("invalid-date", O.value);
6625
6625
  if (o.value = JSON.parse(JSON.stringify(O)), !V.value.enabled) return Ue(O);
6626
6626
  vr(c.hours) && vr(c.minutes) && !S.value.enabled && (wt(O, le), Qa());
@@ -6663,7 +6663,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6663
6663
  handleScroll: te,
6664
6664
  handleSwipe: u,
6665
6665
  handleArrow: ie,
6666
- selectDate: Va,
6666
+ selectDate: Ya,
6667
6667
  updateMonthYear: Za,
6668
6668
  presetDate: Ga,
6669
6669
  selectCurrentDate: Ja,
@@ -6902,7 +6902,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6902
6902
  propDates: d,
6903
6903
  defaultedFilters: s,
6904
6904
  defaultedMultiDates: w
6905
- } = Ee(e), { modelValue: c, year: f, month: g, calendars: D } = Ra(e, t), { isDisabled: V } = Qt(e), { selectYear: I, groupedYears: T, showYearPicker: M, isDisabled: S, toggleYearPicker: C, handleYearSelect: R, handleYear: U } = nl({
6905
+ } = Ee(e), { modelValue: c, year: f, month: g, calendars: D } = Va(e, t), { isDisabled: V } = Qt(e), { selectYear: I, groupedYears: T, showYearPicker: M, isDisabled: S, toggleYearPicker: C, handleYearSelect: R, handleYear: U } = nl({
6906
6906
  modelValue: c,
6907
6907
  multiCalendars: a,
6908
6908
  range: o,
@@ -6918,7 +6918,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
6918
6918
  if (o.value.enabled) {
6919
6919
  if (Array.isArray(c.value)) {
6920
6920
  const _ = Te(b, c.value[0]) || Te(b, c.value[1]);
6921
- return $a(c.value, n.value, b) && !_;
6921
+ return Pa(c.value, n.value, b) && !_;
6922
6922
  }
6923
6923
  return !1;
6924
6924
  }
@@ -7075,7 +7075,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
7075
7075
  const n = q(0);
7076
7076
  rt(() => {
7077
7077
  a(), window.addEventListener("resize", a, { passive: !0 });
7078
- }), ya(() => {
7078
+ }), ga(() => {
7079
7079
  window.removeEventListener("resize", a);
7080
7080
  });
7081
7081
  const a = () => {
@@ -7159,7 +7159,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
7159
7159
  B && !f.value.enabled && !g.value.enabled && (d(!0), j()), B && (B.addEventListener("pointerdown", H), B.addEventListener("mousedown", H));
7160
7160
  }
7161
7161
  document.addEventListener("mousedown", bt);
7162
- }), ya(() => {
7162
+ }), ga(() => {
7163
7163
  window.removeEventListener("resize", ne), document.removeEventListener("mousedown", bt);
7164
7164
  const B = Ge(l);
7165
7165
  B && (B.removeEventListener("pointerdown", H), B.removeEventListener("mousedown", H));
@@ -7317,7 +7317,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
7317
7317
  class: "dp__instance_calendar",
7318
7318
  role: "document"
7319
7319
  }, [
7320
- (h(), Me(ha(oe.value), Ie({
7320
+ (h(), Me(ya(oe.value), Ie({
7321
7321
  ref_key: "dynCmpRef",
7322
7322
  ref: U
7323
7323
  }, o.value, {
@@ -7383,7 +7383,7 @@ const wn = (e, t) => e?.querySelector(`[data-dp-element="${t}"]`), Fn = (e, t) =
7383
7383
  ], 46, ad));
7384
7384
  }
7385
7385
  });
7386
- var sa = /* @__PURE__ */ ((e) => (e.center = "center", e.left = "left", e.right = "right", e))(sa || {});
7386
+ var ia = /* @__PURE__ */ ((e) => (e.center = "center", e.left = "left", e.right = "right", e))(ia || {});
7387
7387
  const cd = ({
7388
7388
  menuRef: e,
7389
7389
  menuRefInner: t,
@@ -7397,7 +7397,7 @@ const cd = ({
7397
7397
  const { defaultedConfig: s } = Ee(o), w = q({}), c = q(!1), f = q({
7398
7398
  top: "0",
7399
7399
  left: "0"
7400
- }), g = q(!1), D = Ca(o, "teleportCenter");
7400
+ }), g = q(!1), D = Ta(o, "teleportCenter");
7401
7401
  Je(D, () => {
7402
7402
  f.value = JSON.parse(JSON.stringify({})), U();
7403
7403
  });
@@ -7415,7 +7415,7 @@ const cd = ({
7415
7415
  }, T = (_) => {
7416
7416
  f.value.left = `${_}px`;
7417
7417
  }, M = (_, X) => {
7418
- o.position === sa.left && T(_), o.position === sa.right && I(_, X), o.position === sa.center && (f.value.left = `${_ + X / 2 - w.value.width / 2}px`);
7418
+ o.position === ia.left && T(_), o.position === ia.right && I(_, X), o.position === ia.center && (f.value.left = `${_ + X / 2 - w.value.width / 2}px`);
7419
7419
  }, S = (_) => {
7420
7420
  const { width: X, height: oe } = _.getBoundingClientRect(), { top: $, left: j } = V(_);
7421
7421
  return { top: +$, left: +j, width: X, height: oe };
@@ -7481,9 +7481,9 @@ const cd = ({
7481
7481
  }, b = (_) => {
7482
7482
  if (_)
7483
7483
  switch (o.position) {
7484
- case sa.left:
7484
+ case ia.left:
7485
7485
  return { left: 0, transform: "translateX(0)" };
7486
- case sa.right:
7486
+ case ia.right:
7487
7487
  return { left: `${_.width}px`, transform: "translateX(-100%)" };
7488
7488
  default:
7489
7489
  return { left: `${_.width / 2}px`, transform: "translateX(-50%)" };
@@ -7574,10 +7574,10 @@ const cd = ({
7574
7574
  }), n?.length && n.forEach((r) => {
7575
7575
  r.slot && a.push(r.slot);
7576
7576
  }), a;
7577
- }, Sa = (e) => {
7577
+ }, Ra = (e) => {
7578
7578
  const t = E(() => (a) => e.value ? a ? e.value.open : e.value.close : ""), n = E(() => (a) => e.value ? a ? e.value.menuAppearTop : e.value.menuAppearBottom : "");
7579
7579
  return { transitionName: t, showTransition: !!e.value, menuTransition: n };
7580
- }, Ra = (e, t, n) => {
7580
+ }, Va = (e, t, n) => {
7581
7581
  const { defaultedRange: a, defaultedTz: r } = Ee(e), l = Z(ft(Z(), r.value.timezone)), o = q([{ month: Ce(l), year: we(l) }]), d = (g) => {
7582
7582
  const D = {
7583
7583
  hours: Ft(l),
@@ -7585,7 +7585,7 @@ const cd = ({
7585
7585
  seconds: 0
7586
7586
  };
7587
7587
  return a.value.enabled ? [D[g], D[g]] : D[g];
7588
- }, s = Pa({
7588
+ }, s = Aa({
7589
7589
  hours: d("hours"),
7590
7590
  minutes: d("minutes"),
7591
7591
  seconds: d("seconds")
@@ -7677,7 +7677,7 @@ const cd = ({
7677
7677
  return !1;
7678
7678
  }
7679
7679
  return !1;
7680
- }, H = (m) => $a(e.value, c.value, m.value), ne = () => t.modelAuto && Array.isArray(t.internalModelValue) ? !!t.internalModelValue[0] : !1, Q = () => t.modelAuto ? Er(t.internalModelValue) : !0, F = (m) => {
7680
+ }, H = (m) => Pa(e.value, c.value, m.value), ne = () => t.modelAuto && Array.isArray(t.internalModelValue) ? !!t.internalModelValue[0] : !1, Q = () => t.modelAuto ? Er(t.internalModelValue) : !0, F = (m) => {
7681
7681
  if (t.weekPicker) return !1;
7682
7682
  const v = s.value.enabled ? !M(m) && !M(m, !1) : !0;
7683
7683
  return !w(m.value) && !C(m) && !(!m.current && t.hideOffsetDates) && v;
@@ -7687,13 +7687,13 @@ const cd = ({
7687
7687
  }, p = (m) => typeof l.value == "function" ? l.value(m.value) : l.value.weekdays?.includes(m.value.getDay()), b = (m) => (s.value.enabled || t.weekPicker) && (!(n.value.count > 0) || m.current) && Q() && !(!m.current && t.hideOffsetDates) && !C(m) ? H(m) : !1, _ = (m) => {
7688
7688
  if (Array.isArray(e.value) && e.value.length === 1) {
7689
7689
  const { before: v, after: G } = ur(+s.value.maxRange, e.value[0]);
7690
- return fa(m.value, v) || ta(m.value, G);
7690
+ return pa(m.value, v) || ta(m.value, G);
7691
7691
  }
7692
7692
  return !1;
7693
7693
  }, X = (m) => {
7694
7694
  if (Array.isArray(e.value) && e.value.length === 1) {
7695
7695
  const { before: v, after: G } = ur(+s.value.minRange, e.value[0]);
7696
- return $a([v, G], e.value[0], m.value);
7696
+ return Pa([v, G], e.value[0], m.value);
7697
7697
  }
7698
7698
  return !1;
7699
7699
  }, oe = (m) => s.value.enabled && (s.value.maxRange || s.value.minRange) ? s.value.maxRange && s.value.minRange ? _(m) || X(m) : s.value.maxRange ? _(m) : X(m) : !1, $ = (m) => {
@@ -7852,7 +7852,7 @@ const cd = ({
7852
7852
  const e = E(() => (a, r) => a?.includes(r)), t = E(() => (a, r) => a.count ? a.solo ? !0 : r === 0 : !0), n = E(() => (a, r) => a.count ? a.solo ? !0 : r === a.count - 1 : !0);
7853
7853
  return { hideNavigationButtons: e, showLeftIcon: t, showRightIcon: n };
7854
7854
  }, md = (e, t, n) => {
7855
- const a = q(0), r = Pa({
7855
+ const a = q(0), r = Aa({
7856
7856
  [Kt.timePicker]: !e.enableTimePicker || e.timePicker || e.monthPicker,
7857
7857
  [Kt.calendar]: !1,
7858
7858
  [Kt.header]: !1
@@ -8050,7 +8050,7 @@ const cd = ({
8050
8050
  }, [
8051
8051
  K(P.$slots, "input-icon")
8052
8052
  ])) : N("", !0),
8053
- !P.$slots["input-icon"] && !P.hideInputIcon && !P.$slots["dp-input"] ? (h(), Me(i(ba), {
8053
+ !P.$slots["input-icon"] && !P.hideInputIcon && !P.$slots["dp-input"] ? (h(), Me(i(wa), {
8054
8054
  key: 1,
8055
8055
  "aria-label": i(o)?.calendarIcon,
8056
8056
  class: "dp__input_icon dp__input_icons",
@@ -8134,19 +8134,19 @@ const cd = ({
8134
8134
  "text-input"
8135
8135
  ],
8136
8136
  setup(e, { expose: t, emit: n }) {
8137
- const a = n, r = e, l = mt(), o = q(!1), d = Ca(r, "modelValue"), s = Ca(r, "timezone"), w = q(null), c = q(null), f = q(null), g = q(!1), D = q(null), V = q(!1), I = q(!1), T = q(!1), M = q(!1), { setMenuFocused: S, setShiftKey: C } = Kr(), { clearArrowNav: R } = Xt(), { validateDate: U, isValidTime: A } = Qt(r), {
8137
+ const a = n, r = e, l = mt(), o = q(!1), d = Ta(r, "modelValue"), s = Ta(r, "timezone"), w = q(null), c = q(null), f = q(null), g = q(!1), D = q(null), V = q(!1), I = q(!1), T = q(!1), M = q(!1), { setMenuFocused: S, setShiftKey: C } = Kr(), { clearArrowNav: R } = Xt(), { validateDate: U, isValidTime: A } = Qt(r), {
8138
8138
  defaultedTransitions: H,
8139
8139
  defaultedTextInput: ne,
8140
8140
  defaultedInline: Q,
8141
8141
  defaultedConfig: F,
8142
8142
  defaultedRange: re,
8143
8143
  defaultedMultiDates: x
8144
- } = Ee(r), { menuTransition: W, showTransition: p } = Sa(H), { isMobile: b } = ol(F), _ = ul();
8144
+ } = Ee(r), { menuTransition: W, showTransition: p } = Ra(H), { isMobile: b } = ol(F), _ = ul();
8145
8145
  rt(() => {
8146
8146
  m(r.modelValue), ze().then(() => {
8147
8147
  Q.value.enabled || (y(D.value)?.addEventListener("scroll", L), window?.addEventListener("resize", xe));
8148
8148
  }), Q.value.enabled && (o.value = !0), window?.addEventListener("keyup", ye), window?.addEventListener("keydown", ot);
8149
- }), ya(() => {
8149
+ }), ga(() => {
8150
8150
  Q.value.enabled || (y(D.value)?.removeEventListener("scroll", L), window?.removeEventListener("resize", xe)), window?.removeEventListener("keyup", ye), window?.removeEventListener("keydown", ot);
8151
8151
  });
8152
8152
  const X = ht(l, "all", r.presetDates), oe = ht(l, "input");
@@ -8225,7 +8225,7 @@ const cd = ({
8225
8225
  })) : a("invalid-date", ae);
8226
8226
  }, Qa = () => {
8227
8227
  r.autoApply && A(de.value) && v(), Bt();
8228
- }, Va = () => o.value ? ct() : Ue(), Za = (ae) => {
8228
+ }, Ya = () => o.value ? ct() : Ue(), Za = (ae) => {
8229
8229
  de.value = ae;
8230
8230
  }, Ga = () => {
8231
8231
  ne.value.enabled && (g.value = !0, G()), a("focus");
@@ -8260,7 +8260,7 @@ const cd = ({
8260
8260
  setMonthYear: Ka,
8261
8261
  parseModel: en,
8262
8262
  switchView: O,
8263
- toggleMenu: Va,
8263
+ toggleMenu: Ya,
8264
8264
  handleFlow: me,
8265
8265
  getDpWrapMenuRef: De
8266
8266
  }), (ae, pe) => (h(), k("div", {
@@ -8282,7 +8282,7 @@ const cd = ({
8282
8282
  onSetInputDate: Xa,
8283
8283
  onSetEmptyDate: i(v),
8284
8284
  onSelectDate: ve,
8285
- onToggle: Va,
8285
+ onToggle: Ya,
8286
8286
  onClose: ct,
8287
8287
  onFocus: Ga,
8288
8288
  onBlur: Ja,
@@ -8296,9 +8296,9 @@ const cd = ({
8296
8296
  ])
8297
8297
  }))
8298
8298
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
8299
- (h(), Me(ha(ae.teleport ? dl : "div"), nt(vt(te.value)), {
8299
+ (h(), Me(ya(ae.teleport ? dl : "div"), nt(vt(te.value)), {
8300
8300
  default: be(() => [
8301
- He(ga, {
8301
+ He(ba, {
8302
8302
  name: i(W)(i($)),
8303
8303
  css: i(p) && !i(Q).enabled
8304
8304
  }, {
@@ -8457,9 +8457,9 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
8457
8457
  }), mr = /* @__PURE__ */ Le(Rd, [["__scopeId", "data-v-10dde4ce"]]), Vd = {
8458
8458
  key: 0,
8459
8459
  class: "menu-header-container"
8460
- }, Yd = ["onClick"], Id = { class: "action-row" }, Hd = { class: "action-row-left" }, Fd = { class: "date-display" }, Bd = { class: "typo-p-error" }, Ld = { class: "action-row-right" }, Kc = /* @__PURE__ */ Ae({
8460
+ }, Yd = ["onClick"], Id = { class: "action-row" }, Hd = { class: "action-row-left" }, Fd = { class: "date-display" }, Bd = { class: "typo-p-error" }, Ld = { class: "action-row-right" }, ev = /* @__PURE__ */ Ae({
8461
8461
  __name: "DatePicker",
8462
- props: /* @__PURE__ */ da({
8462
+ props: /* @__PURE__ */ ca({
8463
8463
  teleport: { type: Boolean, default: !0 },
8464
8464
  inTable: { type: Boolean },
8465
8465
  initDate: {},
@@ -8471,7 +8471,7 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
8471
8471
  modelValue: {},
8472
8472
  modelModifiers: {}
8473
8473
  }),
8474
- emits: /* @__PURE__ */ da(["change"], ["update:modelValue"]),
8474
+ emits: /* @__PURE__ */ ca(["change"], ["update:modelValue"]),
8475
8475
  setup(e, { expose: t, emit: n }) {
8476
8476
  const a = e, r = n, l = Wa(e, "modelValue"), o = q(null), d = (x) => {
8477
8477
  try {
@@ -8814,10 +8814,10 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
8814
8814
  K(l.$slots, "icon-right", {}, void 0, !0)
8815
8815
  ], 16, Ed));
8816
8816
  }
8817
- }), ev = /* @__PURE__ */ Le(Nd, [["__scopeId", "data-v-c119d30f"]]), Wd = ["for"], zd = ["id", "disabled"], qd = { class: "ui-kit-checkbox__box" }, Ud = /* @__PURE__ */ Ae({
8817
+ }), tv = /* @__PURE__ */ Le(Nd, [["__scopeId", "data-v-c119d30f"]]), Wd = ["for"], zd = ["id", "disabled"], qd = { class: "ui-kit-checkbox__box" }, Ud = /* @__PURE__ */ Ae({
8818
8818
  inheritAttrs: !1,
8819
8819
  __name: "CCheckbox",
8820
- props: /* @__PURE__ */ da({
8820
+ props: /* @__PURE__ */ ca({
8821
8821
  disabled: { type: Boolean, default: !1 },
8822
8822
  size: { default: "default" }
8823
8823
  }, {
@@ -8870,7 +8870,7 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
8870
8870
  K(s.$slots, "default", {}, void 0, !0)
8871
8871
  ], 10, Wd));
8872
8872
  }
8873
- }), tv = /* @__PURE__ */ Le(Ud, [["__scopeId", "data-v-f1250d8b"]]), jd = {
8873
+ }), av = /* @__PURE__ */ Le(Ud, [["__scopeId", "data-v-f1250d8b"]]), jd = {
8874
8874
  key: 0,
8875
8875
  class: "ui-kit-input__header"
8876
8876
  }, Xd = {
@@ -8963,7 +8963,7 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
8963
8963
  e.errors ? (h(), k("div", Jd, $e(T.value), 1)) : N("", !0)
8964
8964
  ], 2));
8965
8965
  }
8966
- }), av = /* @__PURE__ */ Le(Kd, [["__scopeId", "data-v-ee8eaeaa"]]), ec = {
8966
+ }), nv = /* @__PURE__ */ Le(Kd, [["__scopeId", "data-v-ee8eaeaa"]]), ec = {
8967
8967
  key: 0,
8968
8968
  class: "ui-kit-input__header"
8969
8969
  }, tc = {
@@ -9064,7 +9064,7 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
9064
9064
  e.errors ? (h(), k("div", lc, $e(S.value), 1)) : N("", !0)
9065
9065
  ], 2));
9066
9066
  }
9067
- }), nv = /* @__PURE__ */ Le(oc, [["__scopeId", "data-v-fef5065e"]]), sc = {
9067
+ }), rv = /* @__PURE__ */ Le(oc, [["__scopeId", "data-v-fef5065e"]]), sc = {
9068
9068
  key: 0,
9069
9069
  class: "ui-kit-input__header"
9070
9070
  }, ic = {
@@ -9174,7 +9174,7 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
9174
9174
  e.errors ? (h(), k("div", vc, $e(T.value), 1)) : N("", !0)
9175
9175
  ], 2));
9176
9176
  }
9177
- }), rv = /* @__PURE__ */ Le(fc, [["__scopeId", "data-v-2d307238"]]), pc = {
9177
+ }), lv = /* @__PURE__ */ Le(fc, [["__scopeId", "data-v-2d307238"]]), pc = {
9178
9178
  key: 0,
9179
9179
  class: "ui-kit-textarea__header"
9180
9180
  }, mc = {
@@ -9259,7 +9259,7 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
9259
9259
  e.errors ? (h(), k("div", yc, $e(I.value), 1)) : N("", !0)
9260
9260
  ], 2));
9261
9261
  }
9262
- }), lv = /* @__PURE__ */ Le(gc, [["__scopeId", "data-v-e7868f00"]]), bc = { class: "ui-kit ui-kit-data-placeholder" }, wc = { class: "ui-kit-data-placeholder__content" }, _c = {
9262
+ }), ov = /* @__PURE__ */ Le(gc, [["__scopeId", "data-v-e7868f00"]]), bc = { class: "ui-kit ui-kit-data-placeholder" }, wc = { class: "ui-kit-data-placeholder__content" }, _c = {
9263
9263
  key: 0,
9264
9264
  class: /* @__PURE__ */ se(["ui-kit-typo-paragraph-primary", "ui-kit-data-placeholder__subtitle"])
9265
9265
  }, kc = /* @__PURE__ */ Ae({
@@ -9290,7 +9290,7 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
9290
9290
  ])
9291
9291
  ]));
9292
9292
  }
9293
- }), ov = /* @__PURE__ */ Le(kc, [["__scopeId", "data-v-5520e56b"]]), Mc = /* @__PURE__ */ Ae({
9293
+ }), sv = /* @__PURE__ */ Le(kc, [["__scopeId", "data-v-5520e56b"]]), Mc = /* @__PURE__ */ Ae({
9294
9294
  __name: "CLabel",
9295
9295
  props: {
9296
9296
  variant: { default: "success" }
@@ -9309,7 +9309,7 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
9309
9309
  K(r.$slots, "default", {}, void 0, !0)
9310
9310
  ], 2));
9311
9311
  }
9312
- }), sv = /* @__PURE__ */ Le(Mc, [["__scopeId", "data-v-115ef133"]]), xc = {
9312
+ }), iv = /* @__PURE__ */ Le(Mc, [["__scopeId", "data-v-115ef133"]]), xc = {
9313
9313
  key: 0,
9314
9314
  class: "ui-kit-toast__progress-container"
9315
9315
  }, Dc = {
@@ -9395,28 +9395,30 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
9395
9395
  ])) : N("", !0)
9396
9396
  ], 2));
9397
9397
  }
9398
- }), Ac = /* @__PURE__ */ Le(Pc, [["__scopeId", "data-v-a638abf2"]]), Oc = 5e3, Ha = q([]), Sc = () => ({
9399
- toasts: Ha,
9398
+ }), Ac = /* @__PURE__ */ Le(Pc, [["__scopeId", "data-v-a638abf2"]]), Oc = 5e3, Sc = 3, sa = q([]), Rc = () => ({
9399
+ toasts: sa,
9400
9400
  add: (n) => {
9401
9401
  const a = {
9402
9402
  ...n,
9403
9403
  type: n.type ?? "success",
9404
9404
  id: Math.random().toString(36).substring(2, 9)
9405
9405
  };
9406
- return n.delay !== 0 && (a.delay = n.delay ?? Oc), Ha.value.push(a), a;
9406
+ n.delay !== 0 && (a.delay = n.delay ?? Oc);
9407
+ const r = n.maxToasts ?? Sc;
9408
+ return sa.value.length >= r && sa.value.shift(), sa.value.push(a), a;
9407
9409
  },
9408
9410
  remove: (n) => {
9409
- Ha.value = Ha.value.filter((a) => a.id !== n);
9411
+ sa.value = sa.value.filter((a) => a.id !== n);
9410
9412
  }
9411
- }), Rc = { class: "ui-kit ui-kit-toasts-container" }, Vc = { class: "ui-kit-toasts-container__list" }, Yc = ["innerHTML"], Ic = ["innerHTML"], Hc = /* @__PURE__ */ Ae({
9413
+ }), Vc = { class: "ui-kit ui-kit-toasts-container" }, Yc = { class: "ui-kit-toasts-container__list" }, Ic = ["innerHTML"], Hc = ["innerHTML"], Fc = /* @__PURE__ */ Ae({
9412
9414
  __name: "ToastsContainer",
9413
9415
  setup(e) {
9414
- const { toasts: t, remove: n } = Sc();
9415
- return (a, r) => (h(), k("div", Rc, [
9416
- ee("div", Vc, [
9416
+ const { toasts: t, remove: n } = Rc();
9417
+ return (a, r) => (h(), k("div", Vc, [
9418
+ ee("div", Yc, [
9417
9419
  He(gl, { name: "ui-kit-toast-list" }, {
9418
9420
  default: be(() => [
9419
- (h(!0), k(_e, null, Re(i(t), (l) => (h(), Me(ha(l.customComponent ?? Ac), {
9421
+ (h(!0), k(_e, null, Re(i(t), (l) => (h(), Me(ya(l.customComponent ?? Ac), {
9420
9422
  key: l.id,
9421
9423
  delay: l.delay,
9422
9424
  manual: l.manual,
@@ -9433,7 +9435,7 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
9433
9435
  ee("p", {
9434
9436
  class: se(["ui-kit-typo-subtitle-primary", "ui-kit-toasts-container__title-text"]),
9435
9437
  innerHTML: l.title
9436
- }, null, 8, Yc)
9438
+ }, null, 8, Ic)
9437
9439
  ]),
9438
9440
  key: "0"
9439
9441
  } : void 0,
@@ -9443,7 +9445,7 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
9443
9445
  ee("p", {
9444
9446
  class: se(["ui-kit-typo-paragraph-primary", "ui-kit-toasts-container__description-text"]),
9445
9447
  innerHTML: l.description
9446
- }, null, 8, Ic)
9448
+ }, null, 8, Hc)
9447
9449
  ]),
9448
9450
  key: "1"
9449
9451
  } : void 0
@@ -9458,8 +9460,8 @@ const Od = /* @__PURE__ */ Le($d, [["render", Ad], ["__scopeId", "data-v-3cecf31
9458
9460
  }, null, -1))
9459
9461
  ]));
9460
9462
  }
9461
- }), iv = /* @__PURE__ */ Le(Hc, [["__scopeId", "data-v-d3c51fe4"]]);
9462
- function Fc(e, t, n) {
9463
+ }), uv = /* @__PURE__ */ Le(Fc, [["__scopeId", "data-v-d3c51fe4"]]);
9464
+ function Bc(e, t, n) {
9463
9465
  let a = null;
9464
9466
  function r() {
9465
9467
  a || (a = (o) => {
@@ -9472,18 +9474,18 @@ function Fc(e, t, n) {
9472
9474
  }
9473
9475
  return { bindOutside: r, unbindOutside: l };
9474
9476
  }
9475
- const Bc = {
9477
+ const Lc = {
9476
9478
  key: 0,
9477
9479
  class: "ui-kit-select__placeholder ui-kit-typo-subtitle-secondary"
9478
- }, Lc = {
9480
+ }, Ec = {
9479
9481
  key: 1,
9480
9482
  class: "ui-kit-select__tags"
9481
- }, Ec = { class: "ui-kit-select__tag-label" }, Nc = ["title"], Wc = ["placeholder"], zc = ["aria-selected", "onMouseenter", "onClick"], qc = { class: "ui-kit-select__option-label" }, Uc = {
9483
+ }, Nc = { class: "ui-kit-select__tag-label" }, Wc = ["title"], zc = ["placeholder"], qc = ["aria-selected", "onMouseenter", "onClick"], Uc = { class: "ui-kit-select__option-label" }, jc = {
9482
9484
  key: 0,
9483
9485
  class: "ui-kit-select__no-results ui-kit-typo-subtitle-secondary"
9484
- }, jc = 300, Xc = 120, Qc = /* @__PURE__ */ Ae({
9486
+ }, Xc = 300, Qc = 120, Zc = /* @__PURE__ */ Ae({
9485
9487
  __name: "Select",
9486
- props: /* @__PURE__ */ da({
9488
+ props: /* @__PURE__ */ ca({
9487
9489
  options: {},
9488
9490
  placeholder: { default: "Select…" },
9489
9491
  searchPlaceholder: { default: "Start typing" },
@@ -9500,7 +9502,7 @@ const Bc = {
9500
9502
  },
9501
9503
  modelModifiers: {}
9502
9504
  }),
9503
- emits: /* @__PURE__ */ da(["load-more", "search"], ["update:modelValue"]),
9505
+ emits: /* @__PURE__ */ ca(["load-more", "search"], ["update:modelValue"]),
9504
9506
  setup(e, { emit: t }) {
9505
9507
  const n = e, a = t, r = Wa(
9506
9508
  e,
@@ -9578,7 +9580,7 @@ const Bc = {
9578
9580
  }
9579
9581
  }
9580
9582
  }
9581
- const { bindOutside: A, unbindOutside: H } = Fc(
9583
+ const { bindOutside: A, unbindOutside: H } = Bc(
9582
9584
  () => l.value,
9583
9585
  () => T(),
9584
9586
  () => [o.value]
@@ -9590,7 +9592,7 @@ const Bc = {
9590
9592
  function Q($) {
9591
9593
  const j = $.target || o.value;
9592
9594
  if (!j) return;
9593
- j.scrollTop + j.clientHeight >= j.scrollHeight - Xc && !ne && w.value.trim() === "" && (ne = !0, a("load-more"), setTimeout(() => ne = !1, 500));
9595
+ j.scrollTop + j.clientHeight >= j.scrollHeight - Qc && !ne && w.value.trim() === "" && (ne = !0, a("load-more"), setTimeout(() => ne = !1, 500));
9594
9596
  }
9595
9597
  Je(s, ($) => {
9596
9598
  $ && (ne = !1);
@@ -9601,7 +9603,7 @@ const Bc = {
9601
9603
  ($) => {
9602
9604
  s.value && n.searchOnServer && (F && clearTimeout(F), F = setTimeout(
9603
9605
  () => a("search", $.trim()),
9604
- jc
9606
+ Xc
9605
9607
  ), ze(() => {
9606
9608
  p();
9607
9609
  }));
@@ -9669,7 +9671,7 @@ const Bc = {
9669
9671
  }]),
9670
9672
  onClick: I
9671
9673
  }, [
9672
- g.value.length === 0 && !s.value ? (h(), k("span", Bc, $e(e.placeholder), 1)) : s.value ? Dt((h(), k("input", {
9674
+ g.value.length === 0 && !s.value ? (h(), k("span", Lc, $e(e.placeholder), 1)) : s.value ? Dt((h(), k("input", {
9673
9675
  key: 2,
9674
9676
  ref_key: "inputEl",
9675
9677
  ref: d,
@@ -9680,9 +9682,9 @@ const Bc = {
9680
9682
  onKeydown: U,
9681
9683
  onClick: j[1] || (j[1] = St(() => {
9682
9684
  }, ["stop"]))
9683
- }, null, 40, Wc)), [
9685
+ }, null, 40, zc)), [
9684
9686
  [hr, w.value]
9685
- ]) : (h(), k("div", Lc, [
9687
+ ]) : (h(), k("div", Ec, [
9686
9688
  ee("span", {
9687
9689
  class: se(["ui-kit-select__tag ui-kit-typo-subtitle-secondary", {
9688
9690
  "ui-kit-select__tag_transparent": e.isTransparent,
@@ -9693,12 +9695,12 @@ const Bc = {
9693
9695
  key: 0,
9694
9696
  option: g.value[0]
9695
9697
  }, () => [
9696
- ee("span", Ec, $e(g.value[0]?.label), 1)
9698
+ ee("span", Nc, $e(g.value[0]?.label), 1)
9697
9699
  ], !0) : (h(), k("span", {
9698
9700
  key: 1,
9699
9701
  title: `${re.value} selected`,
9700
9702
  class: "ui-kit-select__tag-label"
9701
- }, $e(re.value) + " selected", 9, Nc)),
9703
+ }, $e(re.value) + " selected", 9, Wc)),
9702
9704
  e.clearable && !e.singleSelect ? (h(), k("button", {
9703
9705
  key: 2,
9704
9706
  type: "button",
@@ -9745,7 +9747,7 @@ const Bc = {
9745
9747
  onClick: St((y) => S(P), ["stop"])
9746
9748
  }, [
9747
9749
  K($.$slots, "option", { option: P }, () => [
9748
- ee("span", qc, $e(P.label), 1)
9750
+ ee("span", Uc, $e(P.label), 1)
9749
9751
  ], !0),
9750
9752
  M(P) ? (h(), Me(yt, {
9751
9753
  key: 0,
@@ -9753,33 +9755,33 @@ const Bc = {
9753
9755
  color: "var(--ui-kit-select-check-color)",
9754
9756
  class: "ui-kit-select__option-check"
9755
9757
  })) : N("", !0)
9756
- ], 42, zc))), 128)),
9757
- D.value.length === 0 ? (h(), k("li", Uc, $e(e.noResultsText), 1)) : N("", !0)
9758
+ ], 42, qc))), 128)),
9759
+ D.value.length === 0 ? (h(), k("li", jc, $e(e.noResultsText), 1)) : N("", !0)
9758
9760
  ], 34)
9759
9761
  ], 38), [
9760
- [Ma, s.value]
9762
+ [xa, s.value]
9761
9763
  ])
9762
9764
  ], 512));
9763
9765
  }
9764
- }), uv = /* @__PURE__ */ Le(Qc, [["__scopeId", "data-v-48484197"]]);
9766
+ }), dv = /* @__PURE__ */ Le(Zc, [["__scopeId", "data-v-48484197"]]);
9765
9767
  export {
9766
- Jc as AdaptiveTabs,
9768
+ Kc as AdaptiveTabs,
9767
9769
  mr as CButton,
9768
- tv as CCheckbox,
9769
- ov as CDataPlaceholder,
9770
+ av as CCheckbox,
9771
+ sv as CDataPlaceholder,
9770
9772
  vo as CIconButton,
9771
- av as CInput,
9772
- sv as CLabel,
9773
- ev as CLinkButton,
9774
- nv as CPasswordInput,
9775
- rv as CSearchInput,
9776
- lv as CTextarea,
9773
+ nv as CInput,
9774
+ iv as CLabel,
9775
+ tv as CLinkButton,
9776
+ rv as CPasswordInput,
9777
+ lv as CSearchInput,
9778
+ ov as CTextarea,
9777
9779
  Od as CircularLoader,
9778
- Kc as DatePicker,
9779
- uv as Select,
9780
+ ev as DatePicker,
9781
+ dv as Select,
9780
9782
  Ac as Toast,
9781
- iv as ToastsContainer,
9783
+ uv as ToastsContainer,
9782
9784
  pr as formatSelectedRange,
9783
- Fc as useOutsideClick,
9784
- Sc as useToasts
9785
+ Bc as useOutsideClick,
9786
+ Rc as useToasts
9785
9787
  };