@a-vision-software/vue-input-components 1.4.7 → 1.4.9

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,7 +1,7 @@
1
1
  var Jr = Object.defineProperty;
2
2
  var el = (e, n, t) => n in e ? Jr(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var ve = (e, n, t) => el(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { reactive as Pa, ref as H, defineComponent as ze, useSlots as aa, toRef as ka, getCurrentInstance as tl, onMounted as tt, nextTick as gt, onUnmounted as Ft, watch as dt, computed as U, createElementBlock as _, openBlock as c, unref as h, normalizeClass as fe, createVNode as Ce, createBlock as we, mergeProps as Ze, isRef as Vn, createSlots as ct, renderList as Ae, withCtx as ke, renderSlot as ce, normalizeProps as ot, guardReactiveProps as ht, resolveDynamicComponent as $a, Teleport as or, Transition as vt, createCommentVNode as I, h as al, render as Bn, createElementVNode as ue, withModifiers as Ee, normalizeStyle as Fe, Fragment as he, toDisplayString as Me, useAttrs as nl, createTextVNode as pt, toValue as rl, getCurrentScope as ll, onScopeDispose as ol, onBeforeUpdate as sl, withDirectives as ba, vShow as Ia, withKeys as Va, resolveComponent as Ut, vModelText as il, useCssVars as ul } from "vue";
4
+ import { reactive as Pa, ref as H, defineComponent as ze, useSlots as aa, toRef as ka, getCurrentInstance as tl, onMounted as tt, nextTick as gt, onUnmounted as Ft, watch as dt, computed as U, createElementBlock as _, openBlock as c, unref as h, normalizeClass as fe, createVNode as Ce, createBlock as we, mergeProps as Ze, isRef as Vn, createSlots as ct, renderList as Ae, withCtx as ke, renderSlot as de, normalizeProps as ot, guardReactiveProps as ht, resolveDynamicComponent as $a, Teleport as or, Transition as vt, createCommentVNode as I, h as al, render as Bn, createElementVNode as ie, withModifiers as Ee, normalizeStyle as Fe, Fragment as he, toDisplayString as Me, useAttrs as nl, createTextVNode as pt, toValue as rl, getCurrentScope as ll, onScopeDispose as ol, onBeforeUpdate as sl, withDirectives as ba, vShow as Ia, withKeys as Va, resolveComponent as Ut, vModelText as il, useCssVars as ul } from "vue";
5
5
  const sr = 6048e5, dl = 864e5, cl = 6e4, ir = 36e5, vl = 1e3, Fn = Symbol.for("constructDateFrom");
6
6
  function Ne(e, n) {
7
7
  return typeof e == "function" ? e(n) : e && typeof e == "object" && Fn in e ? e[Fn](n) : e instanceof Date ? new e.constructor(n) : new Date(n);
@@ -1347,26 +1347,26 @@ function Yt(e, n, t) {
1347
1347
  const a = na(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? yr, l = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((w = (p = t == null ? void 0 : t.locale) == null ? void 0 : p.options) == null ? void 0 : w.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? (($ = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : $.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((m = (S = t == null ? void 0 : t.locale) == null ? void 0 : S.options) == null ? void 0 : m.weekStartsOn) ?? a.weekStartsOn ?? ((M = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : M.weekStartsOn) ?? 0, u = _e(e, t == null ? void 0 : t.in);
1348
1348
  if (!wa(u))
1349
1349
  throw new RangeError("Invalid time value");
1350
- let i = n.match(io).map((y) => {
1351
- const v = y[0];
1350
+ let i = n.match(io).map((g) => {
1351
+ const v = g[0];
1352
1352
  if (v === "p" || v === "P") {
1353
1353
  const x = dn[v];
1354
- return x(y, r.formatLong);
1354
+ return x(g, r.formatLong);
1355
1355
  }
1356
- return y;
1357
- }).join("").match(so).map((y) => {
1358
- if (y === "''")
1356
+ return g;
1357
+ }).join("").match(so).map((g) => {
1358
+ if (g === "''")
1359
1359
  return { isToken: !1, value: "'" };
1360
- const v = y[0];
1360
+ const v = g[0];
1361
1361
  if (v === "'")
1362
- return { isToken: !1, value: fo(y) };
1362
+ return { isToken: !1, value: fo(g) };
1363
1363
  if (Wn[v])
1364
- return { isToken: !0, value: y };
1364
+ return { isToken: !0, value: g };
1365
1365
  if (v.match(vo))
1366
1366
  throw new RangeError(
1367
1367
  "Format string contains an unescaped latin alphabet character `" + v + "`"
1368
1368
  );
1369
- return { isToken: !1, value: y };
1369
+ return { isToken: !1, value: g };
1370
1370
  });
1371
1371
  r.localize.preprocessor && (i = r.localize.preprocessor(u, i));
1372
1372
  const P = {
@@ -1374,9 +1374,9 @@ function Yt(e, n, t) {
1374
1374
  weekStartsOn: s,
1375
1375
  locale: r
1376
1376
  };
1377
- return i.map((y) => {
1378
- if (!y.isToken) return y.value;
1379
- const v = y.value;
1377
+ return i.map((g) => {
1378
+ if (!g.isToken) return g.value;
1379
+ const v = g.value;
1380
1380
  (!(t != null && t.useAdditionalWeekYearTokens) && wr(v) || !(t != null && t.useAdditionalDayOfYearTokens) && br(v)) && cn(v, n, String(e));
1381
1381
  const x = Wn[v[0]];
1382
1382
  return x(u, v, r.localize, P);
@@ -2936,8 +2936,8 @@ const ls = {
2936
2936
  T: new rs()
2937
2937
  }, os = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ss = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, is = /^'([^]*?)'?$/, us = /''/g, ds = /\S/, cs = /[a-zA-Z]/;
2938
2938
  function vn(e, n, t, a) {
2939
- var A, M, y, v, x, T, C, N;
2940
- const r = () => Ne((a == null ? void 0 : a.in) || t, NaN), l = ho(), s = (a == null ? void 0 : a.locale) ?? l.locale ?? yr, u = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((M = (A = a == null ? void 0 : a.locale) == null ? void 0 : A.options) == null ? void 0 : M.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((v = (y = l.locale) == null ? void 0 : y.options) == null ? void 0 : v.firstWeekContainsDate) ?? 1, i = (a == null ? void 0 : a.weekStartsOn) ?? ((T = (x = a == null ? void 0 : a.locale) == null ? void 0 : x.options) == null ? void 0 : T.weekStartsOn) ?? l.weekStartsOn ?? ((N = (C = l.locale) == null ? void 0 : C.options) == null ? void 0 : N.weekStartsOn) ?? 0;
2939
+ var A, M, g, v, x, T, C, N;
2940
+ const r = () => Ne((a == null ? void 0 : a.in) || t, NaN), l = ho(), s = (a == null ? void 0 : a.locale) ?? l.locale ?? yr, u = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((M = (A = a == null ? void 0 : a.locale) == null ? void 0 : A.options) == null ? void 0 : M.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((v = (g = l.locale) == null ? void 0 : g.options) == null ? void 0 : v.firstWeekContainsDate) ?? 1, i = (a == null ? void 0 : a.weekStartsOn) ?? ((T = (x = a == null ? void 0 : a.locale) == null ? void 0 : x.options) == null ? void 0 : T.weekStartsOn) ?? l.weekStartsOn ?? ((N = (C = l.locale) == null ? void 0 : C.options) == null ? void 0 : N.weekStartsOn) ?? 0;
2941
2941
  if (!n)
2942
2942
  return e ? r() : _e(t, a == null ? void 0 : a.in);
2943
2943
  const P = {
@@ -2945,32 +2945,32 @@ function vn(e, n, t, a) {
2945
2945
  weekStartsOn: i,
2946
2946
  locale: s
2947
2947
  }, p = [new ko(a == null ? void 0 : a.in, t)], w = n.match(ss).map((W) => {
2948
- const b = W[0];
2949
- if (b in dn) {
2950
- const g = dn[b];
2951
- return g(W, s.formatLong);
2948
+ const y = W[0];
2949
+ if (y in dn) {
2950
+ const b = dn[y];
2951
+ return b(W, s.formatLong);
2952
2952
  }
2953
2953
  return W;
2954
2954
  }).join("").match(os), f = [];
2955
2955
  for (let W of w) {
2956
2956
  !(a != null && a.useAdditionalWeekYearTokens) && wr(W) && cn(W, n, e), !(a != null && a.useAdditionalDayOfYearTokens) && br(W) && cn(W, n, e);
2957
- const b = W[0], g = ls[b];
2958
- if (g) {
2959
- const { incompatibleTokens: K } = g;
2957
+ const y = W[0], b = ls[y];
2958
+ if (b) {
2959
+ const { incompatibleTokens: K } = b;
2960
2960
  if (Array.isArray(K)) {
2961
2961
  const pe = f.find(
2962
- (D) => K.includes(D.token) || D.token === b
2962
+ (D) => K.includes(D.token) || D.token === y
2963
2963
  );
2964
2964
  if (pe)
2965
2965
  throw new RangeError(
2966
2966
  `The format string mustn't contain \`${pe.fullToken}\` and \`${W}\` at the same time`
2967
2967
  );
2968
- } else if (g.incompatibleTokens === "*" && f.length > 0)
2968
+ } else if (b.incompatibleTokens === "*" && f.length > 0)
2969
2969
  throw new RangeError(
2970
2970
  `The format string mustn't contain \`${W}\` and any other token at the same time`
2971
2971
  );
2972
- f.push({ token: b, fullToken: W });
2973
- const te = g.run(
2972
+ f.push({ token: y, fullToken: W });
2973
+ const te = b.run(
2974
2974
  e,
2975
2975
  W,
2976
2976
  s.match,
@@ -2980,11 +2980,11 @@ function vn(e, n, t, a) {
2980
2980
  return r();
2981
2981
  p.push(te.setter), e = te.rest;
2982
2982
  } else {
2983
- if (b.match(cs))
2983
+ if (y.match(cs))
2984
2984
  throw new RangeError(
2985
- "Format string contains an unescaped latin alphabet character `" + b + "`"
2985
+ "Format string contains an unescaped latin alphabet character `" + y + "`"
2986
2986
  );
2987
- if (W === "''" ? W = "'" : b === "'" && (W = vs(W)), e.indexOf(W) === 0)
2987
+ if (W === "''" ? W = "'" : y === "'" && (W = vs(W)), e.indexOf(W) === 0)
2988
2988
  e = e.slice(W.length);
2989
2989
  else
2990
2990
  return r();
@@ -2992,8 +2992,8 @@ function vn(e, n, t, a) {
2992
2992
  }
2993
2993
  if (e.length > 0 && ds.test(e))
2994
2994
  return r();
2995
- const $ = p.map((W) => W.priority).sort((W, b) => b - W).filter((W, b, g) => g.indexOf(W) === b).map(
2996
- (W) => p.filter((b) => b.priority === W).sort((b, g) => g.subPriority - b.subPriority)
2995
+ const $ = p.map((W) => W.priority).sort((W, y) => y - W).filter((W, y, b) => b.indexOf(W) === y).map(
2996
+ (W) => p.filter((y) => y.priority === W).sort((y, b) => b.subPriority - y.subPriority)
2997
2997
  ).map((W) => W[0]);
2998
2998
  let S = _e(t, a == null ? void 0 : a.in);
2999
2999
  if (isNaN(+S)) return r();
@@ -3001,8 +3001,8 @@ function vn(e, n, t, a) {
3001
3001
  for (const W of $) {
3002
3002
  if (!W.validate(S, P))
3003
3003
  return r();
3004
- const b = W.set(S, m, P);
3005
- Array.isArray(b) ? (S = b[0], Object.assign(m, b[1])) : S = b;
3004
+ const y = W.set(S, m, P);
3005
+ Array.isArray(y) ? (S = y[0], Object.assign(m, y[1])) : S = y;
3006
3006
  }
3007
3007
  return S;
3008
3008
  }
@@ -3082,16 +3082,16 @@ function pa() {
3082
3082
  ...e
3083
3083
  },
3084
3084
  [
3085
- ue("path", {
3085
+ ie("path", {
3086
3086
  d: "M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"
3087
3087
  }),
3088
- ue("path", {
3088
+ ie("path", {
3089
3089
  d: "M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"
3090
3090
  }),
3091
- ue("path", {
3091
+ ie("path", {
3092
3092
  d: "M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"
3093
3093
  }),
3094
- ue("path", {
3094
+ ie("path", {
3095
3095
  d: "M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"
3096
3096
  })
3097
3097
  ]
@@ -3112,10 +3112,10 @@ function Ar() {
3112
3112
  role: "img"
3113
3113
  },
3114
3114
  [
3115
- ue("path", {
3115
+ ie("path", {
3116
3116
  d: "M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"
3117
3117
  }),
3118
- ue("path", {
3118
+ ie("path", {
3119
3119
  d: "M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"
3120
3120
  })
3121
3121
  ]
@@ -3136,7 +3136,7 @@ function Dn() {
3136
3136
  role: "img"
3137
3137
  },
3138
3138
  [
3139
- ue("path", {
3139
+ ie("path", {
3140
3140
  d: "M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"
3141
3141
  })
3142
3142
  ]
@@ -3157,7 +3157,7 @@ function Mn() {
3157
3157
  role: "img"
3158
3158
  },
3159
3159
  [
3160
- ue("path", {
3160
+ ie("path", {
3161
3161
  d: "M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"
3162
3162
  })
3163
3163
  ]
@@ -3178,10 +3178,10 @@ function Tn() {
3178
3178
  role: "img"
3179
3179
  },
3180
3180
  [
3181
- ue("path", {
3181
+ ie("path", {
3182
3182
  d: "M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"
3183
3183
  }),
3184
- ue("path", {
3184
+ ie("path", {
3185
3185
  d: "M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"
3186
3186
  })
3187
3187
  ]
@@ -3202,7 +3202,7 @@ function Pn() {
3202
3202
  role: "img"
3203
3203
  },
3204
3204
  [
3205
- ue("path", {
3205
+ ie("path", {
3206
3206
  d: "M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"
3207
3207
  })
3208
3208
  ]
@@ -3223,7 +3223,7 @@ function $n() {
3223
3223
  role: "img"
3224
3224
  },
3225
3225
  [
3226
- ue("path", {
3226
+ ie("path", {
3227
3227
  d: "M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"
3228
3228
  })
3229
3229
  ]
@@ -3737,7 +3737,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3737
3737
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? n() : e.weekPicker ? `${((C = A.value) == null ? void 0 : C.type) === "iso" ? "II" : "ww"}-RR` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${n()}` : "MM/dd/yyyy";
3738
3738
  }, a = (C) => Lr(C, e.enableSeconds), r = () => x.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [a(e.startTime[0]), a(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? a(e.startTime) : null, l = U(() => Fs(e.multiCalendars)), s = U(() => r()), u = U(() => Bs(e.ariaLabels)), i = U(() => Hs(e.filters)), P = U(() => Ls(e.transitions)), p = U(() => Ws(e.actionRow)), w = U(
3739
3739
  () => Ns(e.previewFormat, e.format, t())
3740
- ), f = U(() => Es(e.textInput)), $ = U(() => zs(e.inline)), S = U(() => qs(e.config)), m = U(() => Us(e.highlight)), A = U(() => js(e.weekNumbers)), M = U(() => Ks(e.timezone)), y = U(() => Zs(e.multiDates)), v = U(
3740
+ ), f = U(() => Es(e.textInput)), $ = U(() => zs(e.inline)), S = U(() => qs(e.config)), m = U(() => Us(e.highlight)), A = U(() => js(e.weekNumbers)), M = U(() => Ks(e.timezone)), g = U(() => Zs(e.multiDates)), v = U(
3741
3741
  () => Xs({
3742
3742
  minDate: e.minDate,
3743
3743
  maxDate: e.maxDate,
@@ -3767,7 +3767,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3767
3767
  defaultedRange: x,
3768
3768
  propDates: v,
3769
3769
  defaultedTz: M,
3770
- defaultedMultiDates: y,
3770
+ defaultedMultiDates: g,
3771
3771
  defaultedUI: T,
3772
3772
  getDefaultPattern: t,
3773
3773
  getDefaultStartTime: r,
@@ -3794,55 +3794,55 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3794
3794
  return ml(o, V);
3795
3795
  }
3796
3796
  return o;
3797
- }, S = (o, V, ie = !1) => Hr(
3797
+ }, S = (o, V, ue = !1) => Hr(
3798
3798
  o,
3799
3799
  n.format,
3800
3800
  n.formatLocale,
3801
3801
  r.value.rangeSeparator,
3802
3802
  n.modelAuto,
3803
3803
  V ?? i(),
3804
- ie
3804
+ ue
3805
3805
  ), m = (o) => o ? n.modelType ? ne(o) : {
3806
3806
  hours: Bt(o),
3807
3807
  minutes: qt(o),
3808
3808
  seconds: n.enableSeconds ? da(o) : 0
3809
- } : null, A = (o) => n.modelType ? ne(o) : { month: Oe(o), year: De(o) }, M = (o) => Array.isArray(o) ? u.value.enabled ? o.map((V) => y(V, St(X(), V))) : Ya(
3809
+ } : null, A = (o) => n.modelType ? ne(o) : { month: Oe(o), year: De(o) }, M = (o) => Array.isArray(o) ? u.value.enabled ? o.map((V) => g(V, St(X(), V))) : Ya(
3810
3810
  () => [
3811
3811
  St(X(), o[0]),
3812
3812
  o[1] ? St(X(), o[1]) : la(l.value.partialRange)
3813
3813
  ],
3814
3814
  l.value.enabled
3815
- ) : St(X(), +o), y = (o, V) => (typeof o == "string" || typeof o == "number") && n.modelType ? z(o) : V, v = (o) => Array.isArray(o) ? [
3816
- y(
3815
+ ) : St(X(), +o), g = (o, V) => (typeof o == "string" || typeof o == "number") && n.modelType ? z(o) : V, v = (o) => Array.isArray(o) ? [
3816
+ g(
3817
3817
  o[0],
3818
3818
  zt(null, +o[0].hours, +o[0].minutes, o[0].seconds)
3819
3819
  ),
3820
- y(
3820
+ g(
3821
3821
  o[1],
3822
3822
  zt(null, +o[1].hours, +o[1].minutes, o[1].seconds)
3823
3823
  )
3824
- ] : y(o, zt(null, o.hours, o.minutes, o.seconds)), x = (o) => {
3824
+ ] : g(o, zt(null, o.hours, o.minutes, o.seconds)), x = (o) => {
3825
3825
  const V = Le(X(), { date: 1 });
3826
- return Array.isArray(o) ? u.value.enabled ? o.map((ie) => y(ie, Vt(V, +ie.month, +ie.year))) : Ya(
3826
+ return Array.isArray(o) ? u.value.enabled ? o.map((ue) => g(ue, Vt(V, +ue.month, +ue.year))) : Ya(
3827
3827
  () => [
3828
- y(o[0], Vt(V, +o[0].month, +o[0].year)),
3829
- y(
3828
+ g(o[0], Vt(V, +o[0].month, +o[0].year)),
3829
+ g(
3830
3830
  o[1],
3831
3831
  o[1] ? Vt(V, +o[1].month, +o[1].year) : la(l.value.partialRange)
3832
3832
  )
3833
3833
  ],
3834
3834
  l.value.enabled
3835
- ) : y(o, Vt(V, +o.month, +o.year));
3835
+ ) : g(o, Vt(V, +o.month, +o.year));
3836
3836
  }, T = (o) => {
3837
3837
  if (Array.isArray(o))
3838
3838
  return o.map((V) => z(V));
3839
3839
  throw new Error(An.dateArr("multi-dates"));
3840
3840
  }, C = (o) => {
3841
3841
  if (Array.isArray(o) && l.value.enabled) {
3842
- const V = o[0], ie = o[1];
3842
+ const V = o[0], ue = o[1];
3843
3843
  return [
3844
3844
  X(Array.isArray(V) ? V[0] : null),
3845
- Array.isArray(ie) && ie.length ? X(ie[0]) : null
3845
+ Array.isArray(ue) && ue.length ? X(ue[0]) : null
3846
3846
  ];
3847
3847
  }
3848
3848
  return X(o[0]);
@@ -3854,13 +3854,13 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3854
3854
  l.value.enabled
3855
3855
  ) : z(o), W = () => {
3856
3856
  Array.isArray(a.value) && l.value.enabled && a.value.length === 1 && a.value.push(la(l.value.partialRange));
3857
- }, b = () => {
3857
+ }, y = () => {
3858
3858
  const o = a.value;
3859
3859
  return [
3860
3860
  ne(o[0]),
3861
3861
  o[1] ? ne(o[1]) : la(l.value.partialRange)
3862
3862
  ];
3863
- }, g = () => Array.isArray(a.value) ? a.value[1] ? b() : ne(lt(a.value[0])) : [], K = () => (a.value || []).map((o) => ne(o)), te = (o = !1) => (o || W(), n.modelAuto ? g() : u.value.enabled ? K() : Array.isArray(a.value) ? Ya(() => b(), l.value.enabled) : ne(lt(a.value))), pe = (o) => !o || Array.isArray(o) && !o.length ? null : n.timePicker ? v(lt(o)) : n.monthPicker ? x(lt(o)) : n.yearPicker ? M(lt(o)) : u.value.enabled ? T(lt(o)) : n.weekPicker ? C(lt(o)) : N(lt(o)), D = (o) => {
3863
+ }, b = () => Array.isArray(a.value) ? a.value[1] ? y() : ne(lt(a.value[0])) : [], K = () => (a.value || []).map((o) => ne(o)), te = (o = !1) => (o || W(), n.modelAuto ? b() : u.value.enabled ? K() : Array.isArray(a.value) ? Ya(() => y(), l.value.enabled) : ne(lt(a.value))), pe = (o) => !o || Array.isArray(o) && !o.length ? null : n.timePicker ? v(lt(o)) : n.monthPicker ? x(lt(o)) : n.yearPicker ? M(lt(o)) : u.value.enabled ? T(lt(o)) : n.weekPicker ? C(lt(o)) : N(lt(o)), D = (o) => {
3864
3864
  const V = pe(o);
3865
3865
  pn(lt(V)) ? (a.value = lt(V), ae()) : (a.value = null, P.value = "");
3866
3866
  }, B = () => {
@@ -3878,8 +3878,8 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3878
3878
  ) : f(
3879
3879
  vn(o, n.modelType, /* @__PURE__ */ new Date(), { locale: w.value })
3880
3880
  ) : f(new Date(o));
3881
- }, ne = (o) => o ? n.utc ? As(o, n.utc === "preserve", n.enableSeconds) : n.modelType ? n.modelType === "timestamp" ? +$(o) : n.modelType === "iso" ? $(o).toISOString() : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? S($(o)) : S($(o), n.modelType, !0) : $(o) : "", L = (o, V = !1, ie = !1) => {
3882
- if (ie) return o;
3881
+ }, ne = (o) => o ? n.utc ? As(o, n.utc === "preserve", n.enableSeconds) : n.modelType ? n.modelType === "timestamp" ? +$(o) : n.modelType === "iso" ? $(o).toISOString() : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? S($(o)) : S($(o), n.modelType, !0) : $(o) : "", L = (o, V = !1, ue = !1) => {
3882
+ if (ue) return o;
3883
3883
  if (e("update:model-value", o), s.value.emitTimezone && V) {
3884
3884
  const Ie = Array.isArray(o) ? o.map((E) => yt(lt(E), s.value.emitTimezone)) : yt(lt(o), s.value.emitTimezone);
3885
3885
  e("update:model-timezone-value", Ie);
@@ -3890,7 +3890,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
3890
3890
  ] : o(lt(a.value)), k = () => {
3891
3891
  if (Array.isArray(a.value)) {
3892
3892
  const o = It(a.value[0], n.weekStart), V = a.value[1] ? It(a.value[1], n.weekStart) : [];
3893
- return [o.map((ie) => X(ie)), V.map((ie) => X(ie))];
3893
+ return [o.map((ue) => X(ue)), V.map((ue) => X(ue))];
3894
3894
  }
3895
3895
  return It(a.value, n.weekStart).map((o) => X(o));
3896
3896
  }, F = (o, V) => L(lt(me(o)), !1, V), q = (o) => {
@@ -4082,7 +4082,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4082
4082
  defaultedInline: i,
4083
4083
  defaultedRange: P,
4084
4084
  defaultedMultiDates: p
4085
- } = qe(a), { isTimeValid: w, isMonthValid: f } = Qt(a), { buildMatrix: $ } = jt(), S = H(null), m = H(null), A = H(!1), M = H({}), y = H(null), v = H(null);
4085
+ } = qe(a), { isTimeValid: w, isMonthValid: f } = Qt(a), { buildMatrix: $ } = jt(), S = H(null), m = H(null), A = H(!1), M = H({}), g = H(null), v = H(null);
4086
4086
  tt(() => {
4087
4087
  a.arrowNavigation && $([at(S), at(m)], "actionRow"), x(), window.addEventListener("resize", x);
4088
4088
  }), Ft(() => {
@@ -4091,7 +4091,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4091
4091
  const x = () => {
4092
4092
  A.value = !1, setTimeout(() => {
4093
4093
  var D, B;
4094
- const O = (D = y.value) == null ? void 0 : D.getBoundingClientRect(), Q = (B = v.value) == null ? void 0 : B.getBoundingClientRect();
4094
+ const O = (D = g.value) == null ? void 0 : D.getBoundingClientRect(), Q = (B = v.value) == null ? void 0 : B.getBoundingClientRect();
4095
4095
  O && Q && (M.value.maxWidth = `${Q.width - O.width - 20}px`), A.value = !0;
4096
4096
  }, 0);
4097
4097
  }, T = U(() => P.value.enabled && !P.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), C = U(
@@ -4101,16 +4101,16 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4101
4101
  return a.timePicker || a.monthPicker, D(lt(a.internalModelValue));
4102
4102
  }, W = () => {
4103
4103
  const D = a.internalModelValue;
4104
- return s.value.count > 0 ? `${b(D[0])} - ${b(D[1])}` : [b(D[0]), b(D[1])];
4105
- }, b = (D) => Hr(
4104
+ return s.value.count > 0 ? `${y(D[0])} - ${y(D[1])}` : [y(D[0]), y(D[1])];
4105
+ }, y = (D) => Hr(
4106
4106
  D,
4107
4107
  l.value,
4108
4108
  a.formatLocale,
4109
4109
  u.value.rangeSeparator,
4110
4110
  a.modelAuto,
4111
4111
  l.value
4112
- ), g = U(() => !a.internalModelValue || !a.menuMount ? "" : typeof l.value == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? W() : p.value.enabled ? a.internalModelValue.map((D) => `${b(D)}`) : a.modelAuto ? `${b(a.internalModelValue[0])}` : `${b(a.internalModelValue[0])} -` : b(a.internalModelValue) : N()), K = () => p.value.enabled ? "; " : " - ", te = U(
4113
- () => Array.isArray(g.value) ? g.value.join(K()) : g.value
4112
+ ), b = U(() => !a.internalModelValue || !a.menuMount ? "" : typeof l.value == "string" ? Array.isArray(a.internalModelValue) ? a.internalModelValue.length === 2 && a.internalModelValue[1] ? W() : p.value.enabled ? a.internalModelValue.map((D) => `${y(D)}`) : a.modelAuto ? `${y(a.internalModelValue[0])}` : `${y(a.internalModelValue[0])} -` : y(a.internalModelValue) : N()), K = () => p.value.enabled ? "; " : " - ", te = U(
4113
+ () => Array.isArray(b.value) ? b.value.join(K()) : b.value
4114
4114
  ), pe = () => {
4115
4115
  w.value(a.internalModelValue) && f.value(a.internalModelValue) && T.value ? t("select-date") : t("invalid-select");
4116
4116
  };
@@ -4119,7 +4119,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4119
4119
  ref: v,
4120
4120
  class: "dp__action_row"
4121
4121
  }, [
4122
- D.$slots["action-row"] ? ce(D.$slots, "action-row", ot(Ze({ key: 0 }, {
4122
+ D.$slots["action-row"] ? de(D.$slots, "action-row", ot(Ze({ key: 0 }, {
4123
4123
  internalModelValue: D.internalModelValue,
4124
4124
  disabled: C.value,
4125
4125
  selectDate: () => D.$emit("select-date"),
@@ -4131,7 +4131,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4131
4131
  title: te.value,
4132
4132
  style: Fe(M.value)
4133
4133
  }, [
4134
- D.$slots["action-preview"] && A.value ? ce(D.$slots, "action-preview", {
4134
+ D.$slots["action-preview"] && A.value ? de(D.$slots, "action-preview", {
4135
4135
  key: 0,
4136
4136
  value: D.internalModelValue
4137
4137
  }) : I("", !0),
@@ -4139,13 +4139,13 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4139
4139
  pt(Me(te.value), 1)
4140
4140
  ], 64)) : I("", !0)
4141
4141
  ], 12, ai)) : I("", !0),
4142
- ue("div", {
4142
+ ie("div", {
4143
4143
  ref_key: "actionBtnContainer",
4144
- ref: y,
4144
+ ref: g,
4145
4145
  class: "dp__action_buttons",
4146
4146
  "data-dp-element": "action-row"
4147
4147
  }, [
4148
- D.$slots["action-buttons"] ? ce(D.$slots, "action-buttons", {
4148
+ D.$slots["action-buttons"] ? de(D.$slots, "action-buttons", {
4149
4149
  key: 0,
4150
4150
  value: D.internalModelValue
4151
4151
  }) : I("", !0),
@@ -4207,7 +4207,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4207
4207
  setup(e, { expose: n, emit: t }) {
4208
4208
  const { setSelectionGrid: a, buildMultiLevelMatrix: r, setMonthPicker: l } = jt(), s = t, u = e, { defaultedAriaLabels: i, defaultedTextInput: P, defaultedConfig: p, handleEventPropagation: w } = qe(
4209
4209
  u
4210
- ), { hideNavigationButtons: f } = Wa(), $ = H(!1), S = H(null), m = H(null), A = H([]), M = H(), y = H(null), v = H(0), x = H(null);
4210
+ ), { hideNavigationButtons: f } = Wa(), $ = H(!1), S = H(null), m = H(null), A = H([]), M = H(), g = H(null), v = H(0), x = H(null);
4211
4211
  sl(() => {
4212
4212
  S.value = null;
4213
4213
  }), tt(() => {
@@ -4228,9 +4228,9 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4228
4228
  })
4229
4229
  ), W = U(
4230
4230
  () => u.useRelative ? { height: `${u.height}px`, width: "var(--dp-menu-min-width)" } : void 0
4231
- ), b = U(() => ({
4231
+ ), y = U(() => ({
4232
4232
  dp__overlay_col: !0
4233
- })), g = U(
4233
+ })), b = U(
4234
4234
  () => ({
4235
4235
  dp__btn: !0,
4236
4236
  dp__button: !0,
@@ -4253,7 +4253,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4253
4253
  );
4254
4254
  const te = (k = !0) => {
4255
4255
  gt().then(() => {
4256
- const F = at(S), q = at(m), G = at(y), o = at(x), V = G ? G.getBoundingClientRect().height : 0;
4256
+ const F = at(S), q = at(m), G = at(g), o = at(x), V = G ? G.getBoundingClientRect().height : 0;
4257
4257
  q && (q.getBoundingClientRect().height ? v.value = q.getBoundingClientRect().height - V : v.value = p.value.modeHeight - V), F && o && k && (o.scrollTop = F.offsetTop - o.offsetTop - (v.value / 2 - F.getBoundingClientRect().height) - V);
4258
4258
  });
4259
4259
  }, pe = (k) => {
@@ -4266,7 +4266,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4266
4266
  k && ((F.active || F.value === u.focusValue) && (S.value = k), u.arrowNavigation && (Array.isArray(A.value[q]) ? A.value[q][G] = k : A.value[q] = [k], Q()));
4267
4267
  }, Q = () => {
4268
4268
  var k, F;
4269
- const q = (k = u.headerRefs) != null && k.length ? [u.headerRefs].concat(A.value) : A.value.concat([u.skipButtonRef ? [] : [y.value]]);
4269
+ const q = (k = u.headerRefs) != null && k.length ? [u.headerRefs].concat(A.value) : A.value.concat([u.skipButtonRef ? [] : [g.value]]);
4270
4270
  r(lt(q), (F = u.headerRefs) != null && F.length ? "monthPicker" : "selectionGrid");
4271
4271
  }, ae = (k) => {
4272
4272
  u.arrowNavigation || Wt(k, p.value, !0);
@@ -4313,27 +4313,27 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4313
4313
  onClick: F[0] || (F[0] = Ee(() => {
4314
4314
  }, ["prevent"]))
4315
4315
  }, [
4316
- ue("div", {
4316
+ ie("div", {
4317
4317
  ref_key: "containerRef",
4318
4318
  ref: x,
4319
4319
  class: fe(K.value),
4320
4320
  style: Fe({ "--dp-overlay-height": `${v.value}px` }),
4321
4321
  role: "grid"
4322
4322
  }, [
4323
- ue("div", oi, [
4324
- ce(k.$slots, "header")
4323
+ ie("div", oi, [
4324
+ de(k.$slots, "header")
4325
4325
  ]),
4326
- k.$slots.overlay ? ce(k.$slots, "overlay", { key: 0 }) : (c(!0), _(he, { key: 1 }, Ae(k.items, (G, o) => (c(), _("div", {
4326
+ k.$slots.overlay ? de(k.$slots, "overlay", { key: 0 }) : (c(!0), _(he, { key: 1 }, Ae(k.items, (G, o) => (c(), _("div", {
4327
4327
  key: o,
4328
4328
  class: fe(["dp__overlay_row", { dp__flex_row: k.items.length >= 3 }]),
4329
4329
  role: "row"
4330
4330
  }, [
4331
- (c(!0), _(he, null, Ae(G, (V, ie) => (c(), _("div", {
4331
+ (c(!0), _(he, null, Ae(G, (V, ue) => (c(), _("div", {
4332
4332
  key: V.value,
4333
4333
  ref_for: !0,
4334
- ref: (Ie) => O(Ie, V, o, ie),
4334
+ ref: (Ie) => O(Ie, V, o, ue),
4335
4335
  role: "gridcell",
4336
- class: fe(b.value),
4336
+ class: fe(y.value),
4337
4337
  "aria-selected": V.active || void 0,
4338
4338
  "aria-disabled": V.disabled || void 0,
4339
4339
  tabindex: "0",
@@ -4342,10 +4342,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4342
4342
  onKeydown: (Ie) => h(mt)(Ie, () => pe(V), !0),
4343
4343
  onMouseover: (Ie) => z(V.value)
4344
4344
  }, [
4345
- ue("div", {
4345
+ ie("div", {
4346
4346
  class: fe(V.className)
4347
4347
  }, [
4348
- k.$slots.item ? ce(k.$slots, "item", {
4348
+ k.$slots.item ? de(k.$slots, "item", {
4349
4349
  key: 0,
4350
4350
  item: V
4351
4351
  }) : I("", !0),
@@ -4359,15 +4359,15 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4359
4359
  k.$slots["button-icon"] ? ba((c(), _("button", {
4360
4360
  key: 0,
4361
4361
  ref_key: "toggleButton",
4362
- ref: y,
4362
+ ref: g,
4363
4363
  type: "button",
4364
4364
  "aria-label": (q = h(i)) == null ? void 0 : q.toggleOverlay,
4365
- class: fe(g.value),
4365
+ class: fe(b.value),
4366
4366
  tabindex: "0",
4367
4367
  onClick: D,
4368
4368
  onKeydown: me
4369
4369
  }, [
4370
- ce(k.$slots, "button-icon")
4370
+ de(k.$slots, "button-icon")
4371
4371
  ], 42, ii)), [
4372
4372
  [Ia, !h(f)(k.hideNavigation, k.type)]
4373
4373
  ]) : I("", !0)
@@ -4401,7 +4401,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4401
4401
  key: s,
4402
4402
  class: fe(a.value)
4403
4403
  }, [
4404
- ce(r.$slots, "default", {
4404
+ de(r.$slots, "default", {
4405
4405
  instance: s,
4406
4406
  index: u
4407
4407
  })
@@ -4433,10 +4433,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4433
4433
  onClick: l[0] || (l[0] = (s) => r.$emit("activate")),
4434
4434
  onKeydown: l[1] || (l[1] = (s) => h(mt)(s, () => r.$emit("activate"), !0))
4435
4435
  }, [
4436
- ue("span", {
4436
+ ie("span", {
4437
4437
  class: fe(["dp__inner_nav", { dp__inner_nav_disabled: r.disabled }])
4438
4438
  }, [
4439
- ce(r.$slots, "default")
4439
+ de(r.$slots, "default")
4440
4440
  ], 2)
4441
4441
  ], 40, di));
4442
4442
  }
@@ -4452,17 +4452,17 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4452
4452
  },
4453
4453
  emits: ["toggle-year-picker", "year-select", "handle-year"],
4454
4454
  setup(e, { emit: n }) {
4455
- const t = n, a = e, { showRightIcon: r, showLeftIcon: l } = Wa(), { defaultedConfig: s, defaultedMultiCalendars: u, defaultedAriaLabels: i, defaultedTransitions: P, defaultedUI: p } = qe(a), { showTransition: w, transitionName: f } = Aa(P), $ = H(!1), S = (M = !1, y) => {
4456
- $.value = !$.value, t("toggle-year-picker", { flow: M, show: y });
4455
+ const t = n, a = e, { showRightIcon: r, showLeftIcon: l } = Wa(), { defaultedConfig: s, defaultedMultiCalendars: u, defaultedAriaLabels: i, defaultedTransitions: P, defaultedUI: p } = qe(a), { showTransition: w, transitionName: f } = Aa(P), $ = H(!1), S = (M = !1, g) => {
4456
+ $.value = !$.value, t("toggle-year-picker", { flow: M, show: g });
4457
4457
  }, m = (M) => {
4458
4458
  $.value = !1, t("year-select", M);
4459
4459
  }, A = (M = !1) => {
4460
4460
  t("handle-year", M);
4461
4461
  };
4462
- return (M, y) => {
4462
+ return (M, g) => {
4463
4463
  var v, x, T, C, N;
4464
4464
  return c(), _(he, null, [
4465
- ue("div", {
4465
+ ie("div", {
4466
4466
  class: fe(["dp--year-mode-picker", { "dp--hidden-el": $.value }])
4467
4467
  }, [
4468
4468
  h(l)(h(u), e.instance) ? (c(), we(_a, {
@@ -4471,24 +4471,24 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4471
4471
  "aria-label": (v = h(i)) == null ? void 0 : v.prevYear,
4472
4472
  disabled: e.isDisabled(!1),
4473
4473
  class: fe((x = h(p)) == null ? void 0 : x.navBtnPrev),
4474
- onActivate: y[0] || (y[0] = (W) => A(!1))
4474
+ onActivate: g[0] || (g[0] = (W) => A(!1))
4475
4475
  }, {
4476
4476
  default: ke(() => [
4477
- M.$slots["arrow-left"] ? ce(M.$slots, "arrow-left", { key: 0 }) : I("", !0),
4477
+ M.$slots["arrow-left"] ? de(M.$slots, "arrow-left", { key: 0 }) : I("", !0),
4478
4478
  M.$slots["arrow-left"] ? I("", !0) : (c(), we(h(Dn), { key: 1 }))
4479
4479
  ]),
4480
4480
  _: 3
4481
4481
  }, 8, ["aria-label", "disabled", "class"])) : I("", !0),
4482
- ue("button", {
4482
+ ie("button", {
4483
4483
  ref: "mpYearButtonRef",
4484
4484
  class: "dp__btn dp--year-select",
4485
4485
  type: "button",
4486
4486
  "aria-label": `${e.year}-${(T = h(i)) == null ? void 0 : T.openYearsOverlay}`,
4487
4487
  "data-test-id": `year-mode-btn-${e.instance}`,
4488
- onClick: y[1] || (y[1] = () => S(!1)),
4489
- onKeydown: y[2] || (y[2] = Va(() => S(!1), ["enter"]))
4488
+ onClick: g[1] || (g[1] = () => S(!1)),
4489
+ onKeydown: g[2] || (g[2] = Va(() => S(!1), ["enter"]))
4490
4490
  }, [
4491
- M.$slots.year ? ce(M.$slots, "year", {
4491
+ M.$slots.year ? de(M.$slots, "year", {
4492
4492
  key: 0,
4493
4493
  year: e.year
4494
4494
  }) : I("", !0),
@@ -4502,10 +4502,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4502
4502
  "aria-label": (C = h(i)) == null ? void 0 : C.nextYear,
4503
4503
  disabled: e.isDisabled(!0),
4504
4504
  class: fe((N = h(p)) == null ? void 0 : N.navBtnNext),
4505
- onActivate: y[3] || (y[3] = (W) => A(!0))
4505
+ onActivate: g[3] || (g[3] = (W) => A(!0))
4506
4506
  }, {
4507
4507
  default: ke(() => [
4508
- M.$slots["arrow-right"] ? ce(M.$slots, "arrow-right", { key: 0 }) : I("", !0),
4508
+ M.$slots["arrow-right"] ? de(M.$slots, "arrow-right", { key: 0 }) : I("", !0),
4509
4509
  M.$slots["arrow-right"] ? I("", !0) : (c(), we(h(Mn), { key: 1 }))
4510
4510
  ]),
4511
4511
  _: 3
@@ -4516,7 +4516,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4516
4516
  css: h(w)
4517
4517
  }, {
4518
4518
  default: ke(() => {
4519
- var W, b;
4519
+ var W, y;
4520
4520
  return [
4521
4521
  e.showYearPicker ? (c(), we(Ca, {
4522
4522
  key: 0,
@@ -4527,23 +4527,23 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4527
4527
  "is-last": M.autoApply && !h(s).keepActionRow,
4528
4528
  "hide-navigation": M.hideNavigation,
4529
4529
  "aria-labels": M.ariaLabels,
4530
- "overlay-label": (b = (W = h(i)) == null ? void 0 : W.yearPicker) == null ? void 0 : b.call(W, !0),
4530
+ "overlay-label": (y = (W = h(i)) == null ? void 0 : W.yearPicker) == null ? void 0 : y.call(W, !0),
4531
4531
  type: "year",
4532
4532
  onToggle: S,
4533
- onSelected: y[4] || (y[4] = (g) => m(g))
4533
+ onSelected: g[4] || (g[4] = (b) => m(b))
4534
4534
  }, ct({
4535
4535
  "button-icon": ke(() => [
4536
- M.$slots["calendar-icon"] ? ce(M.$slots, "calendar-icon", { key: 0 }) : I("", !0),
4536
+ M.$slots["calendar-icon"] ? de(M.$slots, "calendar-icon", { key: 0 }) : I("", !0),
4537
4537
  M.$slots["calendar-icon"] ? I("", !0) : (c(), we(h(pa), { key: 1 }))
4538
4538
  ]),
4539
4539
  _: 2
4540
4540
  }, [
4541
4541
  M.$slots["year-overlay-value"] ? {
4542
4542
  name: "item",
4543
- fn: ke(({ item: g }) => [
4544
- ce(M.$slots, "year-overlay-value", {
4545
- text: g.text,
4546
- value: g.value
4543
+ fn: ke(({ item: b }) => [
4544
+ de(M.$slots, "year-overlay-value", {
4545
+ text: b.text,
4546
+ value: b.value
4547
4547
  })
4548
4548
  ]),
4549
4549
  key: "0"
@@ -4584,10 +4584,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4584
4584
  month: P,
4585
4585
  emit: p
4586
4586
  }) => {
4587
- const w = U(() => Cn(s.yearRange, s.locale, s.reverseYears)), f = H([!1]), $ = U(() => (g, K) => {
4587
+ const w = U(() => Cn(s.yearRange, s.locale, s.reverseYears)), f = H([!1]), $ = U(() => (b, K) => {
4588
4588
  const te = Le(Dt(/* @__PURE__ */ new Date()), {
4589
- month: P.value(g),
4590
- year: i.value(g)
4589
+ month: P.value(b),
4590
+ year: i.value(b)
4591
4591
  }), pe = K ? pr(te) : Da(te);
4592
4592
  return Er(
4593
4593
  pe,
@@ -4597,64 +4597,64 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4597
4597
  K
4598
4598
  );
4599
4599
  }), S = () => Array.isArray(l.value) && e.value.solo && l.value[1], m = () => {
4600
- for (let g = 0; g < e.value.count; g++)
4601
- if (g === 0)
4602
- r.value[g] = r.value[0];
4603
- else if (g === e.value.count - 1 && S())
4604
- r.value[g] = {
4600
+ for (let b = 0; b < e.value.count; b++)
4601
+ if (b === 0)
4602
+ r.value[b] = r.value[0];
4603
+ else if (b === e.value.count - 1 && S())
4604
+ r.value[b] = {
4605
4605
  month: Oe(l.value[1]),
4606
4606
  year: De(l.value[1])
4607
4607
  };
4608
4608
  else {
4609
- const K = Le(X(), r.value[g - 1]);
4610
- r.value[g] = { month: Oe(K), year: De(yn(K, 1)) };
4609
+ const K = Le(X(), r.value[b - 1]);
4610
+ r.value[b] = { month: Oe(K), year: De(yn(K, 1)) };
4611
4611
  }
4612
- }, A = (g) => {
4613
- if (!g) return m();
4614
- const K = Le(X(), r.value[g]);
4612
+ }, A = (b) => {
4613
+ if (!b) return m();
4614
+ const K = Le(X(), r.value[b]);
4615
4615
  return r.value[0].year = De(Cr(K, e.value.count - 1)), m();
4616
- }, M = (g, K) => {
4617
- const te = bl(K, g);
4618
- return n.value.showLastInRange && te > 1 ? K : g;
4619
- }, y = (g) => s.focusStartDate || e.value.solo ? g[0] : g[1] ? M(g[0], g[1]) : g[0], v = () => {
4616
+ }, M = (b, K) => {
4617
+ const te = bl(K, b);
4618
+ return n.value.showLastInRange && te > 1 ? K : b;
4619
+ }, g = (b) => s.focusStartDate || e.value.solo ? b[0] : b[1] ? M(b[0], b[1]) : b[0], v = () => {
4620
4620
  if (l.value) {
4621
- const g = Array.isArray(l.value) ? y(l.value) : l.value;
4622
- r.value[0] = { month: Oe(g), year: De(g) };
4621
+ const b = Array.isArray(l.value) ? g(l.value) : l.value;
4622
+ r.value[0] = { month: Oe(b), year: De(b) };
4623
4623
  }
4624
4624
  }, x = () => {
4625
4625
  v(), e.value.count && m();
4626
4626
  };
4627
- dt(l, (g, K) => {
4628
- s.isTextInputDate && JSON.stringify(g ?? {}) !== JSON.stringify(K ?? {}) && x();
4627
+ dt(l, (b, K) => {
4628
+ s.isTextInputDate && JSON.stringify(b ?? {}) !== JSON.stringify(K ?? {}) && x();
4629
4629
  }), tt(() => {
4630
4630
  x();
4631
4631
  });
4632
- const T = (g, K) => {
4633
- r.value[K].year = g, p("update-month-year", { instance: K, year: g, month: r.value[K].month }), e.value.count && !e.value.solo && A(K);
4634
- }, C = U(() => (g) => fa(w.value, (K) => {
4632
+ const T = (b, K) => {
4633
+ r.value[K].year = b, p("update-month-year", { instance: K, year: b, month: r.value[K].month }), e.value.count && !e.value.solo && A(K);
4634
+ }, C = U(() => (b) => fa(w.value, (K) => {
4635
4635
  var te;
4636
- const pe = i.value(g) === K.value, D = Ma(
4636
+ const pe = i.value(b) === K.value, D = Ma(
4637
4637
  K.value,
4638
4638
  ma(a.value.minDate),
4639
4639
  ma(a.value.maxDate)
4640
- ) || ((te = u.value.years) == null ? void 0 : te.includes(i.value(g))), B = Sn(t.value, K.value);
4640
+ ) || ((te = u.value.years) == null ? void 0 : te.includes(i.value(b))), B = Sn(t.value, K.value);
4641
4641
  return { active: pe, disabled: D, highlighted: B };
4642
- })), N = (g, K) => {
4643
- T(g, K), b(K);
4644
- }, W = (g, K = !1) => {
4645
- if (!$.value(g, K)) {
4646
- const te = K ? i.value(g) + 1 : i.value(g) - 1;
4647
- T(te, g);
4642
+ })), N = (b, K) => {
4643
+ T(b, K), y(K);
4644
+ }, W = (b, K = !1) => {
4645
+ if (!$.value(b, K)) {
4646
+ const te = K ? i.value(b) + 1 : i.value(b) - 1;
4647
+ T(te, b);
4648
4648
  }
4649
- }, b = (g, K = !1, te) => {
4650
- K || p("reset-flow"), te !== void 0 ? f.value[g] = te : f.value[g] = !f.value[g], f.value[g] ? p("overlay-toggle", { open: !0, overlay: ut.year }) : (p("overlay-closed"), p("overlay-toggle", { open: !1, overlay: ut.year }));
4649
+ }, y = (b, K = !1, te) => {
4650
+ K || p("reset-flow"), te !== void 0 ? f.value[b] = te : f.value[b] = !f.value[b], f.value[b] ? p("overlay-toggle", { open: !0, overlay: ut.year }) : (p("overlay-closed"), p("overlay-toggle", { open: !1, overlay: ut.year }));
4651
4651
  };
4652
4652
  return {
4653
4653
  isDisabled: $,
4654
4654
  groupedYears: C,
4655
4655
  showYearPicker: f,
4656
4656
  selectYear: T,
4657
- toggleYearPicker: b,
4657
+ toggleYearPicker: y,
4658
4658
  handleYearSelect: N,
4659
4659
  handleYear: W
4660
4660
  };
@@ -4672,14 +4672,14 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4672
4672
  defaultedMultiDates: w
4673
4673
  } = qe(e), f = () => {
4674
4674
  e.isTextInputDate && x(De(X(e.startDate)), 0);
4675
- }, { modelValue: $, year: S, month: m, calendars: A } = Oa(e, n, f), M = U(() => Or(e.formatLocale, e.locale, e.monthNameFormat)), y = H(null), { checkMinMaxRange: v } = Qt(e), {
4675
+ }, { modelValue: $, year: S, month: m, calendars: A } = Oa(e, n, f), M = U(() => Or(e.formatLocale, e.locale, e.monthNameFormat)), g = H(null), { checkMinMaxRange: v } = Qt(e), {
4676
4676
  selectYear: x,
4677
4677
  groupedYears: T,
4678
4678
  showYearPicker: C,
4679
4679
  toggleYearPicker: N,
4680
4680
  handleYearSelect: W,
4681
- handleYear: b,
4682
- isDisabled: g
4681
+ handleYear: y,
4682
+ isDisabled: b
4683
4683
  } = Qr({
4684
4684
  modelValue: $,
4685
4685
  multiCalendars: t,
@@ -4701,14 +4701,14 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4701
4701
  return Array.isArray(o) ? o.some((V) => V.year === (G == null ? void 0 : G.year) && V.month === q) : (G == null ? void 0 : G.year) === o.year && q === o.month;
4702
4702
  }, D = (F, q, G) => {
4703
4703
  var o, V;
4704
- const ie = te();
4705
- return Array.isArray(ie) ? S.value(q) === ((o = ie[G]) == null ? void 0 : o.year) && F === ((V = ie[G]) == null ? void 0 : V.month) : !1;
4704
+ const ue = te();
4705
+ return Array.isArray(ue) ? S.value(q) === ((o = ue[G]) == null ? void 0 : o.year) && F === ((V = ue[G]) == null ? void 0 : V.month) : !1;
4706
4706
  }, B = (F, q) => {
4707
4707
  if (s.value.enabled) {
4708
4708
  const G = te();
4709
4709
  if (Array.isArray($.value) && Array.isArray(G)) {
4710
4710
  const o = D(F, q, 0) || D(F, q, 1), V = Vt(Dt(X()), F, S.value(q));
4711
- return Ta($.value, y.value, V) && !o;
4711
+ return Ta($.value, g.value, V) && !o;
4712
4712
  }
4713
4713
  return !1;
4714
4714
  }
@@ -4719,8 +4719,8 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4719
4719
  q.value,
4720
4720
  Br(S.value(F), i.value.minDate),
4721
4721
  Fr(S.value(F), i.value.maxDate)
4722
- ) || Is(i.value.disabledDates, S.value(F), q.value) || ((G = p.value.months) == null ? void 0 : G.includes(q.value)) || !Vs(i.value.allowedDates, S.value(F), q.value), ie = B(q.value, F), Ie = Wr(u.value, q.value, S.value(F));
4723
- return { active: o, disabled: V, isBetween: ie, highlighted: Ie };
4722
+ ) || Is(i.value.disabledDates, S.value(F), q.value) || ((G = p.value.months) == null ? void 0 : G.includes(q.value)) || !Vs(i.value.allowedDates, S.value(F), q.value), ue = B(q.value, F), Ie = Wr(u.value, q.value, S.value(F));
4723
+ return { active: o, disabled: V, isBetween: ue, highlighted: Ie };
4724
4724
  })), Q = (F, q) => Vt(Dt(X()), F, S.value(q)), ae = (F, q) => {
4725
4725
  const G = $.value ? $.value : Dt(/* @__PURE__ */ new Date());
4726
4726
  $.value = Vt(G, F, S.value(q)), n("auto-apply"), n("update-flow-step");
@@ -4745,7 +4745,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4745
4745
  groupedMonths: O,
4746
4746
  groupedYears: T,
4747
4747
  year: S,
4748
- isDisabled: g,
4748
+ isDisabled: b,
4749
4749
  defaultedMultiCalendars: t,
4750
4750
  defaultedAriaLabels: a,
4751
4751
  defaultedTransitions: r,
@@ -4761,13 +4761,13 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4761
4761
  }), n("auto-apply");
4762
4762
  },
4763
4763
  setHoverDate: (F, q) => {
4764
- y.value = Q(F, q);
4764
+ g.value = Q(F, q);
4765
4765
  },
4766
4766
  selectMonth: L,
4767
4767
  selectYear: me,
4768
4768
  toggleYearPicker: N,
4769
4769
  handleYearSelect: W,
4770
- handleYear: b,
4770
+ handleYear: y,
4771
4771
  getModelMonthYear: te
4772
4772
  };
4773
4773
  }, fi = /* @__PURE__ */ ze({
@@ -4808,7 +4808,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4808
4808
  presetDate: m,
4809
4809
  setHoverDate: A,
4810
4810
  selectMonth: M,
4811
- selectYear: y,
4811
+ selectYear: g,
4812
4812
  toggleYearPicker: v,
4813
4813
  handleYearSelect: x,
4814
4814
  handleYear: T,
@@ -4819,7 +4819,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4819
4819
  year: P,
4820
4820
  getModelMonthYear: C,
4821
4821
  selectMonth: M,
4822
- selectYear: y,
4822
+ selectYear: g,
4823
4823
  handleYear: T
4824
4824
  }), presetDate: m, toggleYearPicker: (N) => v(0, N) }), (N, W) => (c(), we(Ea, {
4825
4825
  "multi-calendars": h(w).count,
@@ -4827,21 +4827,21 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4827
4827
  stretch: "",
4828
4828
  "is-mobile": N.isMobile
4829
4829
  }, {
4830
- default: ke(({ instance: b }) => [
4831
- N.$slots["top-extra"] ? ce(N.$slots, "top-extra", {
4830
+ default: ke(({ instance: y }) => [
4831
+ N.$slots["top-extra"] ? de(N.$slots, "top-extra", {
4832
4832
  key: 0,
4833
4833
  value: N.internalModelValue
4834
4834
  }) : I("", !0),
4835
- N.$slots["month-year"] ? ce(N.$slots, "month-year", ot(Ze({ key: 1 }, {
4835
+ N.$slots["month-year"] ? de(N.$slots, "month-year", ot(Ze({ key: 1 }, {
4836
4836
  year: h(P),
4837
- months: h(u)(b),
4838
- years: h(i)(b),
4837
+ months: h(u)(y),
4838
+ years: h(i)(y),
4839
4839
  selectMonth: h(M),
4840
- selectYear: h(y),
4841
- instance: b
4840
+ selectYear: h(g),
4841
+ instance: y
4842
4842
  }))) : (c(), we(Ca, {
4843
4843
  key: 2,
4844
- items: h(u)(b),
4844
+ items: h(u)(y),
4845
4845
  "arrow-navigation": N.arrowNavigation,
4846
4846
  "is-last": N.autoApply && !h(f).keepActionRow,
4847
4847
  "esc-close": N.escClose,
@@ -4850,24 +4850,24 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4850
4850
  "no-overlay-focus": !!(N.noOverlayFocus || N.textInput),
4851
4851
  "use-relative": "",
4852
4852
  type: "month",
4853
- onSelected: (g) => h(M)(g, b),
4854
- onHoverValue: (g) => h(A)(g, b)
4853
+ onSelected: (b) => h(M)(b, y),
4854
+ onHoverValue: (b) => h(A)(b, y)
4855
4855
  }, ct({
4856
4856
  header: ke(() => [
4857
4857
  Ce(qr, Ze(N.$props, {
4858
- items: h(i)(b),
4859
- instance: b,
4860
- "show-year-picker": h($)[b],
4861
- year: h(P)(b),
4862
- "is-disabled": (g) => h(p)(b, g),
4863
- onHandleYear: (g) => h(T)(b, g),
4864
- onYearSelect: (g) => h(x)(g, b),
4865
- onToggleYearPicker: (g) => h(v)(b, g == null ? void 0 : g.flow, g == null ? void 0 : g.show)
4858
+ items: h(i)(y),
4859
+ instance: y,
4860
+ "show-year-picker": h($)[y],
4861
+ year: h(P)(y),
4862
+ "is-disabled": (b) => h(p)(y, b),
4863
+ onHandleYear: (b) => h(T)(y, b),
4864
+ onYearSelect: (b) => h(x)(b, y),
4865
+ onToggleYearPicker: (b) => h(v)(y, b == null ? void 0 : b.flow, b == null ? void 0 : b.show)
4866
4866
  }), ct({ _: 2 }, [
4867
- Ae(h(l), (g, K) => ({
4868
- name: g,
4867
+ Ae(h(l), (b, K) => ({
4868
+ name: b,
4869
4869
  fn: ke((te) => [
4870
- ce(N.$slots, g, ot(ht(te)))
4870
+ de(N.$slots, b, ot(ht(te)))
4871
4871
  ])
4872
4872
  }))
4873
4873
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
@@ -4876,10 +4876,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4876
4876
  }, [
4877
4877
  N.$slots["month-overlay-value"] ? {
4878
4878
  name: "item",
4879
- fn: ke(({ item: g }) => [
4880
- ce(N.$slots, "month-overlay-value", {
4881
- text: g.text,
4882
- value: g.value
4879
+ fn: ke(({ item: b }) => [
4880
+ de(N.$slots, "month-overlay-value", {
4881
+ text: b.text,
4882
+ value: b.value
4883
4883
  })
4884
4884
  ]),
4885
4885
  key: "0"
@@ -4896,13 +4896,13 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4896
4896
  tt(() => {
4897
4897
  e.startDate && (a.value && e.focusStartDate || !a.value) && (p.value = De(X(e.startDate)));
4898
4898
  });
4899
- const w = (M) => Array.isArray(a.value) ? a.value.some((y) => De(y) === M) : a.value ? De(a.value) === M : !1, f = (M) => i.value.enabled && Array.isArray(a.value) ? Ta(a.value, r.value, A(M)) : !1, $ = (M) => P.value.allowedDates instanceof Map ? P.value.allowedDates.size ? P.value.allowedDates.has(`${M}`) : !1 : !0, S = (M) => P.value.disabledDates instanceof Map ? P.value.disabledDates.size ? P.value.disabledDates.has(`${M}`) : !1 : !0, m = U(() => fa(Cn(e.yearRange, e.locale, e.reverseYears), (M) => {
4900
- const y = w(M.value), v = Ma(
4899
+ const w = (M) => Array.isArray(a.value) ? a.value.some((g) => De(g) === M) : a.value ? De(a.value) === M : !1, f = (M) => i.value.enabled && Array.isArray(a.value) ? Ta(a.value, r.value, A(M)) : !1, $ = (M) => P.value.allowedDates instanceof Map ? P.value.allowedDates.size ? P.value.allowedDates.has(`${M}`) : !1 : !0, S = (M) => P.value.disabledDates instanceof Map ? P.value.disabledDates.size ? P.value.disabledDates.has(`${M}`) : !1 : !0, m = U(() => fa(Cn(e.yearRange, e.locale, e.reverseYears), (M) => {
4900
+ const g = w(M.value), v = Ma(
4901
4901
  M.value,
4902
4902
  ma(P.value.minDate),
4903
4903
  ma(P.value.maxDate)
4904
- ) || u.value.years.includes(M.value) || !$(M.value) || S(M.value), x = f(M.value) && !y, T = Sn(l.value, M.value);
4905
- return { active: y, disabled: v, isBetween: x, highlighted: T };
4904
+ ) || u.value.years.includes(M.value) || !$(M.value) || S(M.value), x = f(M.value) && !g, T = Sn(l.value, M.value);
4905
+ return { active: g, disabled: v, isBetween: x, highlighted: T };
4906
4906
  })), A = (M) => St(Dt(Da(/* @__PURE__ */ new Date())), M);
4907
4907
  return {
4908
4908
  groupedYears: m,
@@ -4912,9 +4912,9 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4912
4912
  r.value = St(Dt(/* @__PURE__ */ new Date()), M);
4913
4913
  },
4914
4914
  selectYear: (M) => {
4915
- var y;
4915
+ var g;
4916
4916
  if (n("update-month-year", { instance: 0, year: M }), s.value.enabled)
4917
- return a.value ? Array.isArray(a.value) && (((y = a.value) == null ? void 0 : y.map((v) => De(v))).includes(M) ? a.value = a.value.filter((v) => De(v) !== M) : a.value.push(St(st(X()), M))) : a.value = [St(st(Da(X())), M)], n("auto-apply", !0);
4917
+ return a.value ? Array.isArray(a.value) && (((g = a.value) == null ? void 0 : g.map((v) => De(v))).includes(M) ? a.value = a.value.filter((v) => De(v) !== M) : a.value.push(St(st(X()), M))) : a.value = [St(st(Da(X())), M)], n("auto-apply", !0);
4918
4918
  i.value.enabled ? (a.value = Rn(a, A(M), n), gt().then(() => {
4919
4919
  Ha(a.value, n, e.autoApply, e.modelAuto);
4920
4920
  })) : (a.value = A(M), n("auto-apply"));
@@ -4942,11 +4942,11 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4942
4942
  modelValue: s,
4943
4943
  selectYear: i
4944
4944
  }) }), (w, f) => (c(), _("div", null, [
4945
- w.$slots["top-extra"] ? ce(w.$slots, "top-extra", {
4945
+ w.$slots["top-extra"] ? de(w.$slots, "top-extra", {
4946
4946
  key: 0,
4947
4947
  value: w.internalModelValue
4948
4948
  }) : I("", !0),
4949
- w.$slots["month-year"] ? ce(w.$slots, "month-year", ot(Ze({ key: 1 }, {
4949
+ w.$slots["month-year"] ? de(w.$slots, "month-year", ot(Ze({ key: 1 }, {
4950
4950
  years: h(l),
4951
4951
  selectYear: h(i)
4952
4952
  }))) : (c(), we(Ca, {
@@ -4965,7 +4965,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4965
4965
  w.$slots["year-overlay-value"] ? {
4966
4966
  name: "item",
4967
4967
  fn: ke(({ item: $ }) => [
4968
- ce(w.$slots, "year-overlay-value", {
4968
+ de(w.$slots, "year-overlay-value", {
4969
4969
  text: $.text,
4970
4970
  value: $.value
4971
4971
  })
@@ -5017,7 +5017,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5017
5017
  hours: !1,
5018
5018
  minutes: !1,
5019
5019
  seconds: !1
5020
- }), A = H("AM"), M = H(null), y = H([]), v = H(), x = H(!1);
5020
+ }), A = H("AM"), M = H(null), g = H([]), v = H(), x = H(!1);
5021
5021
  tt(() => {
5022
5022
  a("mounted");
5023
5023
  });
@@ -5028,13 +5028,13 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5028
5028
  milliseconds: 0
5029
5029
  }), C = U(
5030
5030
  () => (d) => z(d, r[d]) || W(d, r[d])
5031
- ), N = U(() => ({ hours: r.hours, minutes: r.minutes, seconds: r.seconds })), W = (d, ee) => w.value.enabled && !w.value.disableTimeRangeValidation ? !r.validateTime(d, ee) : !1, b = (d, ee) => {
5031
+ ), N = U(() => ({ hours: r.hours, minutes: r.minutes, seconds: r.seconds })), W = (d, ee) => w.value.enabled && !w.value.disableTimeRangeValidation ? !r.validateTime(d, ee) : !1, y = (d, ee) => {
5032
5032
  if (w.value.enabled && !w.value.disableTimeRangeValidation) {
5033
5033
  const le = ee ? +r[`${d}Increment`] : -+r[`${d}Increment`], oe = r[d] + le;
5034
5034
  return !r.validateTime(d, oe);
5035
5035
  }
5036
5036
  return !1;
5037
- }, g = U(() => (d) => !F(+r[d] + +r[`${d}Increment`], d) || b(d, !0)), K = U(() => (d) => !F(+r[d] - +r[`${d}Increment`], d) || b(d, !1)), te = (d, ee) => ur(Le(X(), d), ee), pe = (d, ee) => ps(Le(X(), d), ee), D = U(
5037
+ }, b = U(() => (d) => !F(+r[d] + +r[`${d}Increment`], d) || y(d, !0)), K = U(() => (d) => !F(+r[d] - +r[`${d}Increment`], d) || y(d, !1)), te = (d, ee) => ur(Le(X(), d), ee), pe = (d, ee) => ps(Le(X(), d), ee), D = U(
5038
5038
  () => ({
5039
5039
  dp__time_col: !0,
5040
5040
  dp__time_col_block: !r.timePickerInline,
@@ -5082,13 +5082,13 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5082
5082
  q(d) || (m[d] = !m[d], m[d] ? (x.value = !0, a("overlay-opened", d)) : (x.value = !1, a("overlay-closed", d)));
5083
5083
  }, o = (d) => d === "hours" ? Bt : d === "minutes" ? qt : da, V = () => {
5084
5084
  v.value && clearTimeout(v.value);
5085
- }, ie = (d, ee = !0, le) => {
5085
+ }, ue = (d, ee = !0, le) => {
5086
5086
  const oe = ee ? te : pe, xe = ee ? +r[`${d}Increment`] : -+r[`${d}Increment`];
5087
5087
  F(+r[d] + xe, d) && a(
5088
5088
  `update:${d}`,
5089
5089
  o(d)(oe({ [d]: +r[d] }, { [d]: +r[`${d}Increment`] }))
5090
5090
  ), !(le != null && le.keyboard) && p.value.timeArrowHoldThreshold && (v.value = setTimeout(() => {
5091
- ie(d, ee);
5091
+ ue(d, ee);
5092
5092
  }, p.value.timeArrowHoldThreshold));
5093
5093
  }, Ie = (d) => r.is24 ? d : (d >= 12 ? A.value = "PM" : A.value = "AM", ks(d)), E = () => {
5094
5094
  A.value === "PM" ? (A.value = "AM", a("update:hours", r.hours - 12)) : (A.value = "PM", a("update:hours", r.hours + 12)), a("am-pm-change", A.value);
@@ -5096,8 +5096,8 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5096
5096
  m[d] = !0;
5097
5097
  }, Z = (d, ee, le) => {
5098
5098
  if (d && r.arrowNavigation) {
5099
- Array.isArray(y.value[ee]) ? y.value[ee][le] = d : y.value[ee] = [d];
5100
- const oe = y.value.reduce(
5099
+ Array.isArray(g.value[ee]) ? g.value[ee][le] = d : g.value[ee] = [d];
5100
+ const oe = g.value.reduce(
5101
5101
  (xe, Pe) => Pe.map((Ve, Ke) => [...xe[Ke] || [], Pe[Ke]]),
5102
5102
  []
5103
5103
  );
@@ -5120,7 +5120,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5120
5120
  pt(":")
5121
5121
  ], 64))
5122
5122
  ], 64)) : (c(), _(he, { key: 1 }, [
5123
- ue("button", {
5123
+ ie("button", {
5124
5124
  ref_for: !0,
5125
5125
  ref: (Y) => Z(Y, xe, 0),
5126
5126
  type: "button",
@@ -5129,28 +5129,28 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5129
5129
  dp__inc_dec_button: !d.timePickerInline,
5130
5130
  dp__inc_dec_button_inline: d.timePickerInline,
5131
5131
  dp__tp_inline_btn_top: d.timePickerInline,
5132
- dp__inc_dec_button_disabled: g.value(oe.type),
5132
+ dp__inc_dec_button_disabled: b.value(oe.type),
5133
5133
  "dp--hidden-el": x.value
5134
5134
  }),
5135
5135
  "data-test-id": `${oe.type}-time-inc-btn-${r.order}`,
5136
5136
  "aria-label": (Pe = h(u)) == null ? void 0 : Pe.incrementValue(oe.type),
5137
5137
  tabindex: "0",
5138
- onKeydown: (Y) => h(mt)(Y, () => ie(oe.type, !0, { keyboard: !0 }), !0),
5139
- onClick: (Y) => h(p).timeArrowHoldThreshold ? void 0 : ie(oe.type, !0),
5140
- onMousedown: (Y) => h(p).timeArrowHoldThreshold ? ie(oe.type, !0) : void 0,
5138
+ onKeydown: (Y) => h(mt)(Y, () => ue(oe.type, !0, { keyboard: !0 }), !0),
5139
+ onClick: (Y) => h(p).timeArrowHoldThreshold ? void 0 : ue(oe.type, !0),
5140
+ onMousedown: (Y) => h(p).timeArrowHoldThreshold ? ue(oe.type, !0) : void 0,
5141
5141
  onMouseup: V
5142
5142
  }, [
5143
5143
  r.timePickerInline ? (c(), _(he, { key: 1 }, [
5144
- d.$slots["tp-inline-arrow-up"] ? ce(d.$slots, "tp-inline-arrow-up", { key: 0 }) : (c(), _(he, { key: 1 }, [
5145
- ee[2] || (ee[2] = ue("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1)),
5146
- ee[3] || (ee[3] = ue("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1))
5144
+ d.$slots["tp-inline-arrow-up"] ? de(d.$slots, "tp-inline-arrow-up", { key: 0 }) : (c(), _(he, { key: 1 }, [
5145
+ ee[2] || (ee[2] = ie("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1)),
5146
+ ee[3] || (ee[3] = ie("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1))
5147
5147
  ], 64))
5148
5148
  ], 64)) : (c(), _(he, { key: 0 }, [
5149
- d.$slots["arrow-up"] ? ce(d.$slots, "arrow-up", { key: 0 }) : I("", !0),
5149
+ d.$slots["arrow-up"] ? de(d.$slots, "arrow-up", { key: 0 }) : I("", !0),
5150
5150
  d.$slots["arrow-up"] ? I("", !0) : (c(), we(h(Pn), { key: 1 }))
5151
5151
  ], 64))
5152
5152
  ], 42, gi),
5153
- ue("button", {
5153
+ ie("button", {
5154
5154
  ref_for: !0,
5155
5155
  ref: (Y) => Z(Y, xe, 1),
5156
5156
  type: "button",
@@ -5169,7 +5169,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5169
5169
  onKeydown: (Y) => h(mt)(Y, () => G(oe.type), !0),
5170
5170
  onClick: (Y) => G(oe.type)
5171
5171
  }, [
5172
- d.$slots[oe.type] ? ce(d.$slots, oe.type, {
5172
+ d.$slots[oe.type] ? de(d.$slots, oe.type, {
5173
5173
  key: 0,
5174
5174
  text: ae.value(oe.type).text,
5175
5175
  value: ae.value(oe.type).value
@@ -5178,7 +5178,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5178
5178
  pt(Me(ae.value(oe.type).text), 1)
5179
5179
  ], 64))
5180
5180
  ], 42, bi),
5181
- ue("button", {
5181
+ ie("button", {
5182
5182
  ref_for: !0,
5183
5183
  ref: (Y) => Z(Y, xe, 2),
5184
5184
  type: "button",
@@ -5193,18 +5193,18 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5193
5193
  "data-test-id": `${oe.type}-time-dec-btn-${r.order}`,
5194
5194
  "aria-label": (Ke = h(u)) == null ? void 0 : Ke.decrementValue(oe.type),
5195
5195
  tabindex: "0",
5196
- onKeydown: (Y) => h(mt)(Y, () => ie(oe.type, !1, { keyboard: !0 }), !0),
5197
- onClick: (Y) => h(p).timeArrowHoldThreshold ? void 0 : ie(oe.type, !1),
5198
- onMousedown: (Y) => h(p).timeArrowHoldThreshold ? ie(oe.type, !1) : void 0,
5196
+ onKeydown: (Y) => h(mt)(Y, () => ue(oe.type, !1, { keyboard: !0 }), !0),
5197
+ onClick: (Y) => h(p).timeArrowHoldThreshold ? void 0 : ue(oe.type, !1),
5198
+ onMousedown: (Y) => h(p).timeArrowHoldThreshold ? ue(oe.type, !1) : void 0,
5199
5199
  onMouseup: V
5200
5200
  }, [
5201
5201
  r.timePickerInline ? (c(), _(he, { key: 1 }, [
5202
- d.$slots["tp-inline-arrow-down"] ? ce(d.$slots, "tp-inline-arrow-down", { key: 0 }) : (c(), _(he, { key: 1 }, [
5203
- ee[4] || (ee[4] = ue("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1)),
5204
- ee[5] || (ee[5] = ue("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1))
5202
+ d.$slots["tp-inline-arrow-down"] ? de(d.$slots, "tp-inline-arrow-down", { key: 0 }) : (c(), _(he, { key: 1 }, [
5203
+ ee[4] || (ee[4] = ie("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_l" }, null, -1)),
5204
+ ee[5] || (ee[5] = ie("span", { class: "dp__tp_inline_btn_bar dp__tp_btn_in_r" }, null, -1))
5205
5205
  ], 64))
5206
5206
  ], 64)) : (c(), _(he, { key: 0 }, [
5207
- d.$slots["arrow-down"] ? ce(d.$slots, "arrow-down", { key: 0 }) : I("", !0),
5207
+ d.$slots["arrow-down"] ? de(d.$slots, "arrow-down", { key: 0 }) : I("", !0),
5208
5208
  d.$slots["arrow-down"] ? I("", !0) : (c(), we(h($n), { key: 1 }))
5209
5209
  ], 64))
5210
5210
  ], 42, wi)
@@ -5212,7 +5212,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5212
5212
  ], 10, yi);
5213
5213
  }), 128)),
5214
5214
  d.is24 ? I("", !0) : (c(), _("div", _i, [
5215
- d.$slots["am-pm-button"] ? ce(d.$slots, "am-pm-button", {
5215
+ d.$slots["am-pm-button"] ? de(d.$slots, "am-pm-button", {
5216
5216
  key: 0,
5217
5217
  toggle: E,
5218
5218
  value: A.value
@@ -5255,7 +5255,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5255
5255
  onResetFlow: ee[1] || (ee[1] = (Ke) => d.$emit("reset-flow"))
5256
5256
  }, ct({
5257
5257
  "button-icon": ke(() => [
5258
- d.$slots["clock-icon"] ? ce(d.$slots, "clock-icon", { key: 0 }) : I("", !0),
5258
+ d.$slots["clock-icon"] ? de(d.$slots, "clock-icon", { key: 0 }) : I("", !0),
5259
5259
  d.$slots["clock-icon"] ? I("", !0) : (c(), we($a(d.timePickerInline ? h(pa) : h(Tn)), { key: 1 }))
5260
5260
  ]),
5261
5261
  _: 2
@@ -5263,7 +5263,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5263
5263
  d.$slots[`${oe.type}-overlay-value`] ? {
5264
5264
  name: "item",
5265
5265
  fn: ke(({ item: Ke }) => [
5266
- ce(d.$slots, `${oe.type}-overlay-value`, {
5266
+ de(d.$slots, `${oe.type}-overlay-value`, {
5267
5267
  text: Ke.text,
5268
5268
  value: Ke.value
5269
5269
  })
@@ -5273,7 +5273,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5273
5273
  d.$slots[`${oe.type}-overlay-header`] ? {
5274
5274
  name: "header",
5275
5275
  fn: ke(() => [
5276
- ce(d.$slots, `${oe.type}-overlay-header`, {
5276
+ de(d.$slots, `${oe.type}-overlay-header`, {
5277
5277
  toggle: () => G(oe.type)
5278
5278
  })
5279
5279
  ]),
@@ -5314,7 +5314,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5314
5314
  "am-pm-change"
5315
5315
  ],
5316
5316
  setup(e, { expose: n, emit: t }) {
5317
- const a = t, r = e, { buildMatrix: l, setTimePicker: s } = jt(), u = aa(), { defaultedTransitions: i, defaultedAriaLabels: P, defaultedTextInput: p, defaultedConfig: w, defaultedRange: f } = qe(r), { transitionName: $, showTransition: S } = Aa(i), { hideNavigationButtons: m } = Wa(), A = H(null), M = H(null), y = H([]), v = H(null), x = H(!1);
5317
+ const a = t, r = e, { buildMatrix: l, setTimePicker: s } = jt(), u = aa(), { defaultedTransitions: i, defaultedAriaLabels: P, defaultedTextInput: p, defaultedConfig: w, defaultedRange: f } = qe(r), { transitionName: $, showTransition: S } = Aa(i), { hideNavigationButtons: m } = Wa(), A = H(null), M = H(null), g = H([]), v = H(null), x = H(!1);
5318
5318
  tt(() => {
5319
5319
  a("mount"), !r.timePicker && r.arrowNavigation ? l([at(A.value)], "time") : s(!0, r.timePicker);
5320
5320
  });
@@ -5330,11 +5330,11 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5330
5330
  else
5331
5331
  z.push(N(0));
5332
5332
  return z;
5333
- }), b = (z, ne = !1, L = "") => {
5333
+ }), y = (z, ne = !1, L = "") => {
5334
5334
  ne || a("reset-flow"), C.value = z, a(z ? "overlay-opened" : "overlay-closed", ut.time), r.arrowNavigation && s(z), gt(() => {
5335
- L !== "" && y.value[0] && y.value[0].openChildCmp(L);
5335
+ L !== "" && g.value[0] && g.value[0].openChildCmp(L);
5336
5336
  });
5337
- }, g = U(() => ({
5337
+ }, b = U(() => ({
5338
5338
  dp__btn: !0,
5339
5339
  dp__button: !0,
5340
5340
  dp__button_bottom: r.autoApply && !w.value.keepActionRow
@@ -5354,7 +5354,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5354
5354
  }, ae = (z) => {
5355
5355
  x.value = !0, a("overlay-opened", z);
5356
5356
  };
5357
- return n({ toggleTimePicker: b }), (z, ne) => {
5357
+ return n({ toggleTimePicker: y }), (z, ne) => {
5358
5358
  var L;
5359
5359
  return c(), _("div", {
5360
5360
  class: "dp--tp-wrap",
@@ -5365,14 +5365,14 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5365
5365
  ref_key: "openTimePickerBtn",
5366
5366
  ref: A,
5367
5367
  type: "button",
5368
- class: fe({ ...g.value, "dp--hidden-el": C.value }),
5368
+ class: fe({ ...b.value, "dp--hidden-el": C.value }),
5369
5369
  "aria-label": (L = h(P)) == null ? void 0 : L.openTimePicker,
5370
5370
  tabindex: z.noOverlayFocus ? void 0 : 0,
5371
5371
  "data-test-id": "open-time-picker-btn",
5372
- onKeydown: ne[0] || (ne[0] = (me) => h(mt)(me, () => b(!0))),
5373
- onClick: ne[1] || (ne[1] = (me) => b(!0))
5372
+ onKeydown: ne[0] || (ne[0] = (me) => h(mt)(me, () => y(!0))),
5373
+ onClick: ne[1] || (ne[1] = (me) => y(!0))
5374
5374
  }, [
5375
- z.$slots["clock-icon"] ? ce(z.$slots, "clock-icon", { key: 0 }) : I("", !0),
5375
+ z.$slots["clock-icon"] ? de(z.$slots, "clock-icon", { key: 0 }) : I("", !0),
5376
5376
  z.$slots["clock-icon"] ? I("", !0) : (c(), we(h(Tn), { key: 1 }))
5377
5377
  ], 42, Ti)), [
5378
5378
  [Ia, !h(m)(z.hideNavigation, "time")]
@@ -5398,13 +5398,13 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5398
5398
  "aria-label": (me = h(P)) == null ? void 0 : me.timePicker,
5399
5399
  tabindex: z.timePickerInline ? void 0 : 0
5400
5400
  }, [
5401
- ue("div", {
5401
+ ie("div", {
5402
5402
  class: fe(
5403
5403
  z.timePickerInline ? "dp__time_picker_inline_container" : "dp__overlay_container dp__container_flex dp__time_picker_overlay_container"
5404
5404
  ),
5405
5405
  style: { display: "flex" }
5406
5406
  }, [
5407
- z.$slots["time-picker-overlay"] ? ce(z.$slots, "time-picker-overlay", {
5407
+ z.$slots["time-picker-overlay"] ? de(z.$slots, "time-picker-overlay", {
5408
5408
  key: 0,
5409
5409
  hours: e.hours,
5410
5410
  minutes: e.minutes,
@@ -5432,7 +5432,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5432
5432
  }, {
5433
5433
  ref_for: !0,
5434
5434
  ref_key: "timeInputRefs",
5435
- ref: y,
5435
+ ref: g,
5436
5436
  "validate-time": (G, o) => e.validateTime(G, te(o, q, G)),
5437
5437
  "onUpdate:hours": (G) => pe(te(G, q, "hours")),
5438
5438
  "onUpdate:minutes": (G) => D(te(G, q, "minutes")),
@@ -5445,7 +5445,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5445
5445
  Ae(h(K), (G, o) => ({
5446
5446
  name: G,
5447
5447
  fn: ke((V) => [
5448
- ce(z.$slots, G, Ze({ ref_for: !0 }, V))
5448
+ de(z.$slots, G, Ze({ ref_for: !0 }, V))
5449
5449
  ])
5450
5450
  }))
5451
5451
  ]), 1040, ["validate-time", "onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
@@ -5457,13 +5457,13 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5457
5457
  ref_key: "closeTimePickerBtn",
5458
5458
  ref: M,
5459
5459
  type: "button",
5460
- class: fe({ ...g.value, "dp--hidden-el": x.value }),
5460
+ class: fe({ ...b.value, "dp--hidden-el": x.value }),
5461
5461
  "aria-label": (k = h(P)) == null ? void 0 : k.closeTimePicker,
5462
5462
  tabindex: "0",
5463
- onKeydown: ne[3] || (ne[3] = (F) => h(mt)(F, () => b(!1))),
5464
- onClick: ne[4] || (ne[4] = (F) => b(!1))
5463
+ onKeydown: ne[3] || (ne[3] = (F) => h(mt)(F, () => y(!1))),
5464
+ onClick: ne[4] || (ne[4] = (F) => y(!1))
5465
5465
  }, [
5466
- z.$slots["calendar-icon"] ? ce(z.$slots, "calendar-icon", { key: 0 }) : I("", !0),
5466
+ z.$slots["calendar-icon"] ? de(z.$slots, "calendar-icon", { key: 0 }) : I("", !0),
5467
5467
  z.$slots["calendar-icon"] ? I("", !0) : (c(), we(h(pa), { key: 1 }))
5468
5468
  ], 42, $i)), [
5469
5469
  [Ia, !h(m)(z.hideNavigation, "time")]
@@ -5515,14 +5515,14 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5515
5515
  disabledArr: []
5516
5516
  };
5517
5517
  return (x || x === 0) && (T.hours = x), Array.isArray(e.disabledTimes) && (T.disabledArr = r.value.enabled && Array.isArray(e.disabledTimes[v]) ? e.disabledTimes[v] : e.disabledTimes), T;
5518
- }, y = U(() => (v, x) => {
5518
+ }, g = U(() => (v, x) => {
5519
5519
  var T;
5520
5520
  if (Array.isArray(e.disabledTimes)) {
5521
- const { disabledArr: C, hours: N } = M(v, x), W = C.filter((b) => +b.hours === N);
5521
+ const { disabledArr: C, hours: N } = M(v, x), W = C.filter((y) => +y.hours === N);
5522
5522
  return ((T = W[0]) == null ? void 0 : T.minutes) === "*" ? { hours: [N], minutes: void 0, seconds: void 0 } : {
5523
5523
  hours: [],
5524
- minutes: (W == null ? void 0 : W.map((b) => +b.minutes)) ?? [],
5525
- seconds: (W == null ? void 0 : W.map((b) => b.seconds ? +b.seconds : void 0)) ?? []
5524
+ minutes: (W == null ? void 0 : W.map((y) => +y.minutes)) ?? [],
5525
+ seconds: (W == null ? void 0 : W.map((y) => y.seconds ? +y.seconds : void 0)) ?? []
5526
5526
  };
5527
5527
  }
5528
5528
  return { hours: [], minutes: [], seconds: [] };
@@ -5537,7 +5537,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5537
5537
  getSecondsValue: s,
5538
5538
  assignStartTime: A,
5539
5539
  validateTime: p,
5540
- disabledTimesConfig: y
5540
+ disabledTimesConfig: g
5541
5541
  };
5542
5542
  }, xi = (e, n) => {
5543
5543
  const t = () => {
@@ -5547,8 +5547,8 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5547
5547
  n("update-flow-step");
5548
5548
  }
5549
5549
  const m = (C) => {
5550
- const { hours: N, minutes: W, seconds: b } = C;
5551
- return { hours: +N, minutes: +W, seconds: b ? +b : 0 };
5550
+ const { hours: N, minutes: W, seconds: y } = C;
5551
+ return { hours: +N, minutes: +W, seconds: y ? +y : 0 };
5552
5552
  }, A = () => {
5553
5553
  if (e.startTime) {
5554
5554
  if (Array.isArray(e.startTime)) {
@@ -5568,10 +5568,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5568
5568
  ];
5569
5569
  } else
5570
5570
  a.value = yt(P(A()), u.value.timezone);
5571
- }, y = (C) => Array.isArray(C) ? [ea(X(C[0])), ea(X(C[1]))] : [ea(C ?? X())], v = (C, N, W) => {
5571
+ }, g = (C) => Array.isArray(C) ? [ea(X(C[0])), ea(X(C[1]))] : [ea(C ?? X())], v = (C, N, W) => {
5572
5572
  p("hours", C), p("minutes", N), p("seconds", e.enableSeconds ? W : 0);
5573
5573
  }, x = () => {
5574
- const [C, N] = y(a.value);
5574
+ const [C, N] = g(a.value);
5575
5575
  return s.value.enabled ? v(
5576
5576
  [C.hours, N.hours],
5577
5577
  [C.minutes, N.minutes],
@@ -5649,7 +5649,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5649
5649
  Ae(h(s), (m, A) => ({
5650
5650
  name: m,
5651
5651
  fn: ke((M) => [
5652
- ce($.$slots, m, ot(ht(M)))
5652
+ de($.$slots, m, ot(ht(M)))
5653
5653
  ])
5654
5654
  }))
5655
5655
  ]), 1040, ["hours", "minutes", "seconds", "internal-model-value", "disabled-times-config", "validate-time"])
@@ -5684,22 +5684,22 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5684
5684
  defaultedHighlight: p,
5685
5685
  propDates: w,
5686
5686
  defaultedUI: f
5687
- } = qe(r), { transitionName: $, showTransition: S } = Aa(l), { buildMatrix: m } = jt(), { handleMonthYearChange: A, isDisabled: M, updateMonthYear: y } = ti(r, a), { showLeftIcon: v, showRightIcon: x } = Wa(), T = H(!1), C = H(!1), N = H(!1), W = H([null, null, null, null]);
5687
+ } = qe(r), { transitionName: $, showTransition: S } = Aa(l), { buildMatrix: m } = jt(), { handleMonthYearChange: A, isDisabled: M, updateMonthYear: g } = ti(r, a), { showLeftIcon: v, showRightIcon: x } = Wa(), T = H(!1), C = H(!1), N = H(!1), W = H([null, null, null, null]);
5688
5688
  tt(() => {
5689
5689
  a("mount");
5690
5690
  });
5691
- const b = (k) => ({
5691
+ const y = (k) => ({
5692
5692
  get: () => r[k],
5693
5693
  set: (F) => {
5694
5694
  const q = k === _t.month ? _t.year : _t.month;
5695
5695
  a("update-month-year", { [k]: F, [q]: r[q] }), k === _t.month ? Q(!0) : ae(!0);
5696
5696
  }
5697
- }), g = U(b(_t.month)), K = U(b(_t.year)), te = U(() => (k) => ({
5697
+ }), b = U(y(_t.month)), K = U(y(_t.year)), te = U(() => (k) => ({
5698
5698
  month: r.month,
5699
5699
  year: r.year,
5700
5700
  items: k === _t.month ? r.months : r.years,
5701
5701
  instance: r.instance,
5702
- updateMonthYear: y,
5702
+ updateMonthYear: g,
5703
5703
  toggle: k === _t.month ? Q : ae
5704
5704
  })), pe = U(() => r.months.find((F) => F.value === r.month) || { text: "", value: 0 }), D = U(() => fa(r.months, (k) => {
5705
5705
  const F = r.month === k.value, q = Ma(
@@ -5732,8 +5732,8 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5732
5732
  type: _t.month,
5733
5733
  index: 1,
5734
5734
  toggle: Q,
5735
- modelValue: g.value,
5736
- updateModelValue: (ie) => g.value = ie,
5735
+ modelValue: b.value,
5736
+ updateModelValue: (ue) => b.value = ue,
5737
5737
  text: pe.value.text,
5738
5738
  showSelectionGrid: T.value,
5739
5739
  items: D.value,
@@ -5745,7 +5745,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5745
5745
  index: 2,
5746
5746
  toggle: ae,
5747
5747
  modelValue: K.value,
5748
- updateModelValue: (ie) => K.value = ie,
5748
+ updateModelValue: (ue) => K.value = ue,
5749
5749
  text: Rr(r.year, r.locale),
5750
5750
  showSelectionGrid: C.value,
5751
5751
  items: B.value,
@@ -5759,24 +5759,24 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5759
5759
  toggleYearPicker: ae,
5760
5760
  handleMonthYearChange: A
5761
5761
  }), (k, F) => {
5762
- var q, G, o, V, ie, Ie;
5762
+ var q, G, o, V, ue, Ie;
5763
5763
  return c(), _("div", Ai, [
5764
5764
  k.$slots["month-year"] ? (c(), _("div", Oi, [
5765
- ce(k.$slots, "month-year", ot(ht({
5765
+ de(k.$slots, "month-year", ot(ht({
5766
5766
  month: e.month,
5767
5767
  year: e.year,
5768
5768
  months: e.months,
5769
5769
  years: e.years,
5770
- updateMonthYear: h(y),
5770
+ updateMonthYear: h(g),
5771
5771
  handleMonthYearChange: h(A),
5772
5772
  instance: e.instance,
5773
5773
  isDisabled: h(M)
5774
5774
  })))
5775
5775
  ])) : (c(), _(he, { key: 1 }, [
5776
5776
  k.$slots["top-extra"] ? (c(), _("div", Si, [
5777
- ce(k.$slots, "top-extra", { value: k.internalModelValue })
5777
+ de(k.$slots, "top-extra", { value: k.internalModelValue })
5778
5778
  ])) : I("", !0),
5779
- ue("div", Yi, [
5779
+ ie("div", Yi, [
5780
5780
  h(v)(h(u), e.instance) && !k.vertical ? (c(), we(_a, {
5781
5781
  key: 0,
5782
5782
  "aria-label": (q = h(s)) == null ? void 0 : q.prevMonth,
@@ -5787,12 +5787,12 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5787
5787
  onSetRef: F[1] || (F[1] = (E) => ne(E, 0))
5788
5788
  }, {
5789
5789
  default: ke(() => [
5790
- k.$slots["arrow-left"] ? ce(k.$slots, "arrow-left", { key: 0 }) : I("", !0),
5790
+ k.$slots["arrow-left"] ? de(k.$slots, "arrow-left", { key: 0 }) : I("", !0),
5791
5791
  k.$slots["arrow-left"] ? I("", !0) : (c(), we(h(Dn), { key: 1 }))
5792
5792
  ]),
5793
5793
  _: 3
5794
5794
  }, 8, ["aria-label", "disabled", "class"])) : I("", !0),
5795
- ue("div", {
5795
+ ie("div", {
5796
5796
  class: fe(["dp__month_year_wrap", {
5797
5797
  dp__year_disable_select: k.disableYearSelect
5798
5798
  }])
@@ -5800,7 +5800,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5800
5800
  (c(!0), _(he, null, Ae(me.value, (E, Te) => (c(), _(he, {
5801
5801
  key: E.type
5802
5802
  }, [
5803
- ue("button", {
5803
+ ie("button", {
5804
5804
  ref_for: !0,
5805
5805
  ref: (Z) => ne(Z, Te + 1),
5806
5806
  type: "button",
@@ -5811,7 +5811,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5811
5811
  onClick: E.toggle,
5812
5812
  onKeydown: (Z) => h(mt)(Z, () => E.toggle(), !0)
5813
5813
  }, [
5814
- k.$slots[E.type] ? ce(k.$slots, E.type, {
5814
+ k.$slots[E.type] ? de(k.$slots, E.type, {
5815
5815
  key: 0,
5816
5816
  text: E.text,
5817
5817
  value: r[E.type]
@@ -5844,7 +5844,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5844
5844
  onToggle: E.toggle
5845
5845
  }, ct({
5846
5846
  "button-icon": ke(() => [
5847
- k.$slots["calendar-icon"] ? ce(k.$slots, "calendar-icon", { key: 0 }) : I("", !0),
5847
+ k.$slots["calendar-icon"] ? de(k.$slots, "calendar-icon", { key: 0 }) : I("", !0),
5848
5848
  k.$slots["calendar-icon"] ? I("", !0) : (c(), we(h(pa), { key: 1 }))
5849
5849
  ]),
5850
5850
  _: 2
@@ -5852,7 +5852,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5852
5852
  k.$slots[`${E.type}-overlay-value`] ? {
5853
5853
  name: "item",
5854
5854
  fn: ke(({ item: Z }) => [
5855
- ce(k.$slots, `${E.type}-overlay-value`, {
5855
+ de(k.$slots, `${E.type}-overlay-value`, {
5856
5856
  text: Z.text,
5857
5857
  value: Z.value
5858
5858
  })
@@ -5862,14 +5862,14 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5862
5862
  k.$slots[`${E.type}-overlay`] ? {
5863
5863
  name: "overlay",
5864
5864
  fn: ke(() => [
5865
- ce(k.$slots, `${E.type}-overlay`, Ze({ ref_for: !0 }, te.value(E.type)))
5865
+ de(k.$slots, `${E.type}-overlay`, Ze({ ref_for: !0 }, te.value(E.type)))
5866
5866
  ]),
5867
5867
  key: "1"
5868
5868
  } : void 0,
5869
5869
  k.$slots[`${E.type}-overlay-header`] ? {
5870
5870
  name: "header",
5871
5871
  fn: ke(() => [
5872
- ce(k.$slots, `${E.type}-overlay-header`, {
5872
+ de(k.$slots, `${E.type}-overlay-header`, {
5873
5873
  toggle: E.toggle
5874
5874
  })
5875
5875
  ]),
@@ -5890,7 +5890,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5890
5890
  onActivate: F[2] || (F[2] = (E) => h(A)(!1, !0))
5891
5891
  }, {
5892
5892
  default: ke(() => [
5893
- k.$slots["arrow-up"] ? ce(k.$slots, "arrow-up", { key: 0 }) : I("", !0),
5893
+ k.$slots["arrow-up"] ? de(k.$slots, "arrow-up", { key: 0 }) : I("", !0),
5894
5894
  k.$slots["arrow-up"] ? I("", !0) : (c(), we(h(Pn), { key: 1 }))
5895
5895
  ]),
5896
5896
  _: 3
@@ -5900,13 +5900,13 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5900
5900
  ref: "rightIcon",
5901
5901
  "el-name": "action-next",
5902
5902
  disabled: h(M)(!0),
5903
- "aria-label": (ie = h(s)) == null ? void 0 : ie.nextMonth,
5903
+ "aria-label": (ue = h(s)) == null ? void 0 : ue.nextMonth,
5904
5904
  class: fe((Ie = h(f)) == null ? void 0 : Ie.navBtnNext),
5905
5905
  onActivate: F[3] || (F[3] = (E) => h(A)(!0, !0)),
5906
5906
  onSetRef: F[4] || (F[4] = (E) => ne(E, k.disableYearSelect ? 2 : 3))
5907
5907
  }, {
5908
5908
  default: ke(() => [
5909
- k.$slots[k.vertical ? "arrow-down" : "arrow-right"] ? ce(k.$slots, k.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : I("", !0),
5909
+ k.$slots[k.vertical ? "arrow-down" : "arrow-right"] ? de(k.$slots, k.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : I("", !0),
5910
5910
  k.$slots[k.vertical ? "arrow-down" : "arrow-right"] ? I("", !0) : (c(), we($a(k.vertical ? h($n) : h(Mn)), { key: 1 }))
5911
5911
  ]),
5912
5912
  _: 3
@@ -5962,16 +5962,16 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5962
5962
  bottom: "",
5963
5963
  left: "",
5964
5964
  transform: ""
5965
- }), m = H([]), A = H(null), M = H(!0), y = H(""), v = H({ startX: 0, endX: 0, startY: 0, endY: 0 }), x = H([]), T = H({ left: "50%" }), C = H(!1), N = U(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), W = U(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : _s(r.formatLocale, r.locale, +r.weekStart));
5965
+ }), m = H([]), A = H(null), M = H(!0), g = H(""), v = H({ startX: 0, endX: 0, startY: 0, endY: 0 }), x = H([]), T = H({ left: "50%" }), C = H(!1), N = U(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), W = U(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : _s(r.formatLocale, r.locale, +r.weekStart));
5966
5966
  tt(() => {
5967
5967
  a("mount", { cmp: "calendar", refs: m }), u.value.noSwipe || A.value && (A.value.addEventListener("touchstart", ne, { passive: !1 }), A.value.addEventListener("touchend", L, { passive: !1 }), A.value.addEventListener("touchmove", me, { passive: !1 })), r.monthChangeOnScroll && A.value && A.value.addEventListener("wheel", q, { passive: !1 });
5968
5968
  }), Ft(() => {
5969
5969
  u.value.noSwipe || A.value && (A.value.removeEventListener("touchstart", ne), A.value.removeEventListener("touchend", L), A.value.removeEventListener("touchmove", me)), r.monthChangeOnScroll && A.value && A.value.removeEventListener("wheel", q);
5970
5970
  });
5971
- const b = (E) => E ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", g = (E, Te) => {
5971
+ const y = (E) => E ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", b = (E, Te) => {
5972
5972
  if (r.transitions) {
5973
5973
  const Z = st(Vt(X(), r.month, r.year));
5974
- y.value = Xe(st(Vt(X(), E, Te)), Z) ? s.value[b(!0)] : s.value[b(!1)], M.value = !1, gt(() => {
5974
+ g.value = Xe(st(Vt(X(), E, Te)), Z) ? s.value[y(!0)] : s.value[y(!1)], M.value = !1, gt(() => {
5975
5975
  M.value = !0;
5976
5976
  });
5977
5977
  }
@@ -6033,21 +6033,21 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6033
6033
  return p.value.hideOnOffsetDates ? E.some((Z) => Z.current) ? G(Te) : "" : G(Te);
6034
6034
  }, V = (E, Te, Z = !0) => {
6035
6035
  !Z && xs() || (!w.value.enabled || u.value.allowPreventDefault) && (Wt(E, u.value), a("select-date", Te));
6036
- }, ie = (E) => {
6036
+ }, ue = (E) => {
6037
6037
  Wt(E, u.value);
6038
6038
  }, Ie = (E) => {
6039
6039
  w.value.enabled && w.value.dragSelect ? (C.value = !0, a("select-date", E)) : w.value.enabled && a("select-date", E);
6040
6040
  };
6041
- return n({ triggerTransition: g }), (E, Te) => (c(), _("div", {
6041
+ return n({ triggerTransition: b }), (E, Te) => (c(), _("div", {
6042
6042
  class: fe(D.value)
6043
6043
  }, [
6044
- ue("div", {
6044
+ ie("div", {
6045
6045
  ref_key: "calendarWrapRef",
6046
6046
  ref: A,
6047
6047
  class: fe(K.value),
6048
6048
  role: "grid"
6049
6049
  }, [
6050
- ue("div", Vi, [
6050
+ ie("div", Vi, [
6051
6051
  E.weekNumbers ? (c(), _("div", Bi, Me(E.weekNumName), 1)) : I("", !0),
6052
6052
  (c(!0), _(he, null, Ae(W.value, (Z, re) => {
6053
6053
  var d, ee;
@@ -6058,7 +6058,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6058
6058
  "data-test-id": "calendar-header",
6059
6059
  "aria-label": (ee = (d = h(i)) == null ? void 0 : d.weekDay) == null ? void 0 : ee.call(d, re)
6060
6060
  }, [
6061
- E.$slots["calendar-header"] ? ce(E.$slots, "calendar-header", {
6061
+ E.$slots["calendar-header"] ? de(E.$slots, "calendar-header", {
6062
6062
  key: 0,
6063
6063
  day: Z,
6064
6064
  index: re
@@ -6069,9 +6069,9 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6069
6069
  ], 8, Fi);
6070
6070
  }), 128))
6071
6071
  ]),
6072
- Te[2] || (Te[2] = ue("div", { class: "dp__calendar_header_separator" }, null, -1)),
6072
+ Te[2] || (Te[2] = ie("div", { class: "dp__calendar_header_separator" }, null, -1)),
6073
6073
  Ce(vt, {
6074
- name: y.value,
6074
+ name: g.value,
6075
6075
  css: !!E.transitions
6076
6076
  }, {
6077
6077
  default: ke(() => [
@@ -6087,7 +6087,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6087
6087
  role: "row"
6088
6088
  }, [
6089
6089
  E.weekNumbers ? (c(), _("div", Ni, [
6090
- ue("div", Li, Me(o(Z.days)), 1)
6090
+ ie("div", Li, Me(o(Z.days)), 1)
6091
6091
  ])) : I("", !0),
6092
6092
  (c(!0), _(he, null, Ae(Z.days, (d, ee) => {
6093
6093
  var le, oe, xe;
@@ -6111,10 +6111,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6111
6111
  onMousedown: (Pe) => Ie(d),
6112
6112
  onMouseup: Te[0] || (Te[0] = (Pe) => C.value = !1)
6113
6113
  }, [
6114
- ue("div", {
6114
+ ie("div", {
6115
6115
  class: fe(["dp__cell_inner", d.classData])
6116
6116
  }, [
6117
- E.$slots.day && B.value(d) ? ce(E.$slots, "day", {
6117
+ E.$slots.day && B.value(d) ? de(E.$slots, "day", {
6118
6118
  key: 0,
6119
6119
  day: +d.text,
6120
6120
  date: d.value
@@ -6123,7 +6123,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6123
6123
  pt(Me(d.text), 1)
6124
6124
  ], 64)),
6125
6125
  d.marker && B.value(d) ? (c(), _(he, { key: 2 }, [
6126
- E.$slots.marker ? ce(E.$slots, "marker", {
6126
+ E.$slots.marker ? de(E.$slots, "marker", {
6127
6127
  key: 0,
6128
6128
  marker: d.marker,
6129
6129
  day: +d.text,
@@ -6145,26 +6145,26 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6145
6145
  (xe = d.marker) != null && xe.tooltip ? (c(), _("div", {
6146
6146
  key: 0,
6147
6147
  class: "dp__tooltip_content",
6148
- onClick: ie
6148
+ onClick: ue
6149
6149
  }, [
6150
6150
  (c(!0), _(he, null, Ae(d.marker.tooltip, (Pe, Ve) => (c(), _("div", {
6151
6151
  key: Ve,
6152
6152
  class: "dp__tooltip_text"
6153
6153
  }, [
6154
- E.$slots["marker-tooltip"] ? ce(E.$slots, "marker-tooltip", {
6154
+ E.$slots["marker-tooltip"] ? de(E.$slots, "marker-tooltip", {
6155
6155
  key: 0,
6156
6156
  tooltip: Pe,
6157
6157
  day: d.value
6158
6158
  }) : I("", !0),
6159
6159
  E.$slots["marker-tooltip"] ? I("", !0) : (c(), _(he, { key: 1 }, [
6160
- ue("div", {
6160
+ ie("div", {
6161
6161
  class: "dp__tooltip_mark",
6162
6162
  style: Fe(Pe.color ? { backgroundColor: Pe.color } : {})
6163
6163
  }, null, 4),
6164
- ue("div", null, Me(Pe.text), 1)
6164
+ ie("div", null, Me(Pe.text), 1)
6165
6165
  ], 64))
6166
6166
  ]))), 128)),
6167
- ue("div", {
6167
+ ie("div", {
6168
6168
  class: "dp__arrow_bottom_tp",
6169
6169
  style: Fe(T.value)
6170
6170
  }, null, 4)
@@ -6189,18 +6189,18 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6189
6189
  defaultedConfig: m,
6190
6190
  defaultedTz: A,
6191
6191
  propDates: M,
6192
- defaultedMultiDates: y
6193
- } = qe(e), { validateMonthYearInRange: v, isDisabled: x, isDateRangeAllowed: T, checkMinMaxRange: C } = Qt(e), { updateTimeValues: N, getSetDateTime: W, setTime: b, assignStartTime: g, validateTime: K, disabledTimesConfig: te } = Gr(e, p, i, a), pe = U(
6192
+ defaultedMultiDates: g
6193
+ } = qe(e), { validateMonthYearInRange: v, isDisabled: x, isDateRangeAllowed: T, checkMinMaxRange: C } = Qt(e), { updateTimeValues: N, getSetDateTime: W, setTime: y, assignStartTime: b, validateTime: K, disabledTimesConfig: te } = Gr(e, p, i, a), pe = U(
6194
6194
  () => (R) => P.value[R] ? P.value[R].month : 0
6195
6195
  ), D = U(
6196
6196
  () => (R) => P.value[R] ? P.value[R].year : 0
6197
6197
  ), B = (R) => !m.value.keepViewOnOffsetClick || R ? !0 : !s.value, O = (R, J, be, $e = !1) => {
6198
- var j, de;
6199
- B($e) && (P.value[R] || (P.value[R] = { month: 0, year: 0 }), P.value[R].month = Gn(J) ? (j = P.value[R]) == null ? void 0 : j.month : J, P.value[R].year = Gn(be) ? (de = P.value[R]) == null ? void 0 : de.year : be);
6198
+ var j, ce;
6199
+ B($e) && (P.value[R] || (P.value[R] = { month: 0, year: 0 }), P.value[R].month = Gn(J) ? (j = P.value[R]) == null ? void 0 : j.month : J, P.value[R].year = Gn(be) ? (ce = P.value[R]) == null ? void 0 : ce.year : be);
6200
6200
  }, Q = () => {
6201
6201
  e.autoApply && n("select-date");
6202
6202
  }, ae = () => {
6203
- $.value && g($.value);
6203
+ $.value && b($.value);
6204
6204
  };
6205
6205
  tt(() => {
6206
6206
  e.shadow || (i.value || (Te(), ae()), L(!0), e.focusStartDate && e.startDate && Te());
@@ -6222,7 +6222,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6222
6222
  P.value[be] = { month: Oe(j), year: De(j) };
6223
6223
  }
6224
6224
  }, F = (R, J) => {
6225
- k(R), b("hours", Bt(R)), b("minutes", qt(R)), b("seconds", da(R)), f.value.count && J && E();
6225
+ k(R), y("hours", Bt(R)), y("minutes", qt(R)), y("seconds", da(R)), f.value.count && J && E();
6226
6226
  }, q = (R) => {
6227
6227
  if (f.value.count) {
6228
6228
  if (f.value.solo) return 0;
@@ -6236,18 +6236,18 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6236
6236
  $e(R[0]),
6237
6237
  R[1] ? $e(R[1]) : p[j][1]
6238
6238
  ];
6239
- b("hours", be(Bt, "hours")), b("minutes", be(qt, "minutes")), b("seconds", be(da, "seconds"));
6239
+ y("hours", be(Bt, "hours")), y("minutes", be(qt, "minutes")), y("seconds", be(da, "seconds"));
6240
6240
  }, o = (R, J) => {
6241
- if ((S.value.enabled || e.weekPicker) && !y.value.enabled)
6241
+ if ((S.value.enabled || e.weekPicker) && !g.value.enabled)
6242
6242
  return G(R, J);
6243
- if (y.value.enabled && J) {
6243
+ if (g.value.enabled && J) {
6244
6244
  const be = R[R.length - 1];
6245
6245
  return F(be, J);
6246
6246
  }
6247
6247
  }, V = (R) => {
6248
6248
  const J = i.value;
6249
6249
  o(J, R), f.value.count && f.value.solo && E();
6250
- }, ie = (R, J) => {
6250
+ }, ue = (R, J) => {
6251
6251
  const be = Le(X(), { month: pe.value(J), year: D.value(J) }), $e = R < 0 ? Mt(be, 1) : va(be, 1);
6252
6252
  v(Oe($e), De($e), R < 0, e.preventMinMaxNavigation) && (O(J, Oe($e), De($e)), n("update-month-year", { instance: J, month: Oe($e), year: De($e) }), f.value.count && !f.value.solo && Ie(J), t());
6253
6253
  }, Ie = (R) => {
@@ -6272,12 +6272,12 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6272
6272
  if (e.monthChangeOnScroll) {
6273
6273
  const be = (/* @__PURE__ */ new Date()).getTime() - l.value.getTime(), $e = Math.abs(R.deltaY);
6274
6274
  let j = 500;
6275
- $e > 1 && (j = 100), $e > 100 && (j = 0), be > j && (l.value = /* @__PURE__ */ new Date(), ie(e.monthChangeOnScroll !== "inverse" ? -R.deltaY : R.deltaY, J));
6275
+ $e > 1 && (j = 100), $e > 100 && (j = 0), be > j && (l.value = /* @__PURE__ */ new Date(), ue(e.monthChangeOnScroll !== "inverse" ? -R.deltaY : R.deltaY, J));
6276
6276
  }
6277
6277
  }, re = (R, J, be = !1) => {
6278
6278
  e.monthChangeOnArrows && e.vertical === be && d(R, J);
6279
6279
  }, d = (R, J) => {
6280
- ie(R === "right" ? -1 : 1, J);
6280
+ ue(R === "right" ? -1 : 1, J);
6281
6281
  }, ee = (R) => {
6282
6282
  if (M.value.markers)
6283
6283
  return Na(R.value, M.value.markers);
@@ -6296,7 +6296,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6296
6296
  }
6297
6297
  }, oe = (R, J, be, $e) => {
6298
6298
  if (e.sixWeeks && R.length < 6) {
6299
- const j = 6 - R.length, de = (J.getDay() + 7 - $e) % 7, ge = 6 - (be.getDay() + 7 - $e) % 7, [Rt, Ct] = le(de, ge);
6299
+ const j = 6 - R.length, ce = (J.getDay() + 7 - $e) % 7, ge = 6 - (be.getDay() + 7 - $e) % 7, [Rt, Ct] = le(ce, ge);
6300
6300
  for (let Gt = 1; Gt <= j; Gt++)
6301
6301
  if (Ct ? !!(Gt % 2) == Rt : Rt) {
6302
6302
  const Nt = R[0].days[0], Ga = xe(wt(Nt.value, -7), Oe(J));
@@ -6310,17 +6310,17 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6310
6310
  }, xe = (R, J) => {
6311
6311
  const be = X(R), $e = [];
6312
6312
  for (let j = 0; j < 7; j++) {
6313
- const de = wt(be, j), ge = Oe(de) !== J;
6313
+ const ce = wt(be, j), ge = Oe(ce) !== J;
6314
6314
  $e.push({
6315
- text: e.hideOffsetDates && ge ? "" : de.getDate(),
6316
- value: de,
6315
+ text: e.hideOffsetDates && ge ? "" : ce.getDate(),
6316
+ value: ce,
6317
6317
  current: !ge,
6318
6318
  classData: {}
6319
6319
  });
6320
6320
  }
6321
6321
  return $e;
6322
6322
  }, Pe = (R, J) => {
6323
- const be = [], $e = new Date(J, R), j = new Date(J, R + 1, 0), de = e.weekStart, ge = Tt($e, { weekStartsOn: de }), Rt = (Ct) => {
6323
+ const be = [], $e = new Date(J, R), j = new Date(J, R + 1, 0), ce = e.weekStart, ge = Tt($e, { weekStartsOn: ce }), Rt = (Ct) => {
6324
6324
  const Gt = xe(Ct, R);
6325
6325
  if (be.push({ days: Gt }), !be[be.length - 1].days.some(
6326
6326
  (Nt) => Se(st(Nt.value), st(j))
@@ -6329,10 +6329,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6329
6329
  Rt(Nt);
6330
6330
  }
6331
6331
  };
6332
- return Rt(ge), oe(be, $e, j, de);
6332
+ return Rt(ge), oe(be, $e, j, ce);
6333
6333
  }, Ve = (R) => {
6334
6334
  const J = zt(X(R.value), p.hours, p.minutes, ye());
6335
- n("date-update", J), y.value.enabled ? Yn(J, i, y.value.limit) : i.value = J, a(), gt().then(() => {
6335
+ n("date-update", J), g.value.enabled ? Yn(J, i, g.value.limit) : i.value = J, a(), gt().then(() => {
6336
6336
  ne();
6337
6337
  });
6338
6338
  }, Ke = (R) => S.value.noDisabledRange ? Nr(r.value[0], R).some((J) => x(J)) : !1, Y = () => {
@@ -6375,7 +6375,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6375
6375
  }, Sa = (R, J = !1) => {
6376
6376
  if (x(R.value) || !R.current && e.hideOffsetDates) return n("invalid-date", R.value);
6377
6377
  if (s.value = JSON.parse(JSON.stringify(R)), !S.value.enabled) return Ve(R);
6378
- ar(p.hours) && ar(p.minutes) && !y.value.enabled && ($t(R, J), za());
6378
+ ar(p.hours) && ar(p.minutes) && !g.value.enabled && ($t(R, J), za());
6379
6379
  }, qa = (R, J) => {
6380
6380
  var be;
6381
6381
  O(R, J.month, J.year, !0), f.value.count && !f.value.solo && Ie(R), n("update-month-year", { instance: R, month: J.month, year: J.year }), t(f.value.solo ? R : void 0);
@@ -6390,10 +6390,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6390
6390
  }), Q(), e.multiCalendars && gt().then(() => L(!0));
6391
6391
  }, ja = () => {
6392
6392
  const R = xn(X(), A.value);
6393
- !S.value.enabled && !y.value.enabled ? i.value = R : i.value && Array.isArray(i.value) && i.value[0] ? y.value.enabled ? i.value = [...i.value, R] : i.value = je(R, i.value[0]) ? [R, i.value[0]] : [i.value[0], R] : i.value = [R], Q();
6393
+ !S.value.enabled && !g.value.enabled ? i.value = R : i.value && Array.isArray(i.value) && i.value[0] ? g.value.enabled ? i.value = [...i.value, R] : i.value = je(R, i.value[0]) ? [R, i.value[0]] : [i.value[0], R] : i.value = [R], Q();
6394
6394
  }, Qa = () => {
6395
6395
  if (Array.isArray(i.value))
6396
- if (y.value.enabled) {
6396
+ if (g.value.enabled) {
6397
6397
  const R = Ka();
6398
6398
  i.value[i.value.length - 1] = W(R);
6399
6399
  } else
@@ -6470,14 +6470,14 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6470
6470
  handleArrow: m,
6471
6471
  handleScroll: A,
6472
6472
  handleSwipe: M,
6473
- selectDate: y,
6473
+ selectDate: g,
6474
6474
  updateMonthYear: v,
6475
6475
  presetDate: x,
6476
6476
  selectCurrentDate: T,
6477
6477
  updateTime: C,
6478
6478
  assignMonthAndYear: N,
6479
6479
  setStartTime: W
6480
- } = Wi(r, a, me, k), b = aa(), { setHoverDate: g, getDayClassData: K, clearHoverDate: te } = iu(i, r), { defaultedMultiCalendars: pe } = qe(r), D = H([]), B = H([]), O = H(null), Q = bt(b, "calendar"), ae = bt(b, "monthYear"), z = bt(b, "timePicker"), ne = (Z) => {
6480
+ } = Wi(r, a, me, k), y = aa(), { setHoverDate: b, getDayClassData: K, clearHoverDate: te } = iu(i, r), { defaultedMultiCalendars: pe } = qe(r), D = H([]), B = H([]), O = H(null), Q = bt(y, "calendar"), ae = bt(y, "monthYear"), z = bt(y, "timePicker"), ne = (Z) => {
6481
6481
  r.shadow || a("mount", Z);
6482
6482
  };
6483
6483
  dt(
@@ -6507,7 +6507,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6507
6507
  a("update-flow-step");
6508
6508
  }
6509
6509
  const F = (Z, re = !1) => {
6510
- y(Z, re), r.spaceConfirm && a("select-date");
6510
+ g(Z, re), r.spaceConfirm && a("select-date");
6511
6511
  }, q = (Z, re, d = 0) => {
6512
6512
  var ee;
6513
6513
  (ee = D.value[d]) == null || ee.toggleMonthPicker(Z, re);
@@ -6521,14 +6521,14 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6521
6521
  var d;
6522
6522
  if (!r.range) {
6523
6523
  const ee = i.value ? i.value : w, le = re ? new Date(re) : ee, oe = Z ? Tt(le, { weekStartsOn: 1 }) : hr(le, { weekStartsOn: 1 });
6524
- y({
6524
+ g({
6525
6525
  value: oe,
6526
6526
  current: Oe(le) === s.value(0),
6527
6527
  text: "",
6528
6528
  classData: {}
6529
6529
  }), (d = document.getElementById(hn(oe))) == null || d.focus();
6530
6530
  }
6531
- }, ie = (Z) => {
6531
+ }, ue = (Z) => {
6532
6532
  var re;
6533
6533
  (re = D.value[0]) == null || re.handleMonthYearChange(Z, !0);
6534
6534
  }, Ie = (Z) => {
@@ -6554,10 +6554,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6554
6554
  time: P,
6555
6555
  updateTime: C,
6556
6556
  updateMonthYear: v,
6557
- selectDate: y,
6557
+ selectDate: g,
6558
6558
  presetDate: x
6559
6559
  }),
6560
- changeMonth: ie,
6560
+ changeMonth: ue,
6561
6561
  changeYear: Ie,
6562
6562
  selectWeekDate: V,
6563
6563
  setStartTime: W
@@ -6588,7 +6588,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6588
6588
  Ae(h(ae), (le, oe) => ({
6589
6589
  name: le,
6590
6590
  fn: ke((xe) => [
6591
- ce(Z.$slots, le, ot(ht(xe)))
6591
+ de(Z.$slots, le, ot(ht(xe)))
6592
6592
  ])
6593
6593
  }))
6594
6594
  ]), 1040, ["months", "years", "month", "year", "instance", "onUpdateMonthYear"])),
@@ -6601,9 +6601,9 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6601
6601
  year: h(u)(d),
6602
6602
  instance: d
6603
6603
  }, Z.$props, {
6604
- onSelectDate: (le) => h(y)(le, d !== 1),
6604
+ onSelectDate: (le) => h(g)(le, d !== 1),
6605
6605
  onHandleSpace: (le) => F(le, d !== 1),
6606
- onSetHoverDate: re[3] || (re[3] = (le) => h(g)(le)),
6606
+ onSetHoverDate: re[3] || (re[3] = (le) => h(b)(le)),
6607
6607
  onHandleScroll: (le) => h(A)(le, d),
6608
6608
  onHandleSwipe: (le) => h(M)(le, d),
6609
6609
  onMount: re[4] || (re[4] = (le) => ne(h(Jt).calendar)),
@@ -6614,7 +6614,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6614
6614
  Ae(h(Q), (le, oe) => ({
6615
6615
  name: le,
6616
6616
  fn: ke((xe) => [
6617
- ce(Z.$slots, le, ot(ht({ ...xe })))
6617
+ de(Z.$slots, le, ot(ht({ ...xe })))
6618
6618
  ])
6619
6619
  }))
6620
6620
  ]), 1040, ["mapped-dates", "month", "year", "instance", "onSelectDate", "onHandleSpace", "onHandleScroll", "onHandleSwipe"])
@@ -6622,7 +6622,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6622
6622
  _: 3
6623
6623
  }, 8, ["multi-calendars", "collapse", "is-mobile"]),
6624
6624
  Z.enableTimePicker ? (c(), _("div", zi, [
6625
- Z.$slots["time-picker"] ? ce(Z.$slots, "time-picker", ot(Ze({ key: 0 }, { time: h(P), updateTime: h(C) }))) : (c(), we(Kr, Ze({
6625
+ Z.$slots["time-picker"] ? de(Z.$slots, "time-picker", ot(Ze({ key: 0 }, { time: h(P), updateTime: h(C) }))) : (c(), we(Kr, Ze({
6626
6626
  key: 1,
6627
6627
  ref_key: "timePickerRef",
6628
6628
  ref: O
@@ -6645,7 +6645,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6645
6645
  Ae(h(z), (d, ee) => ({
6646
6646
  name: d,
6647
6647
  fn: ke((le) => [
6648
- ce(Z.$slots, d, ot(ht(le)))
6648
+ de(Z.$slots, d, ot(ht(le)))
6649
6649
  ])
6650
6650
  }))
6651
6651
  ]), 1040, ["hours", "minutes", "seconds", "internal-model-value", "disabled-times-config", "validate-time"]))
@@ -6661,7 +6661,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6661
6661
  propDates: u,
6662
6662
  defaultedFilters: i,
6663
6663
  defaultedMultiDates: P
6664
- } = qe(e), { modelValue: p, year: w, month: f, calendars: $ } = Oa(e, n), { isDisabled: S } = Qt(e), { selectYear: m, groupedYears: A, showYearPicker: M, isDisabled: y, toggleYearPicker: v, handleYearSelect: x, handleYear: T } = Qr({
6664
+ } = qe(e), { modelValue: p, year: w, month: f, calendars: $ } = Oa(e, n), { isDisabled: S } = Qt(e), { selectYear: m, groupedYears: A, showYearPicker: M, isDisabled: g, toggleYearPicker: v, handleYearSelect: x, handleYear: T } = Qr({
6665
6665
  modelValue: p,
6666
6666
  multiCalendars: a,
6667
6667
  range: s,
@@ -6682,13 +6682,13 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6682
6682
  return !1;
6683
6683
  }
6684
6684
  return !1;
6685
- }, b = (B, O) => B.quarter === En(O) && B.year === De(O), g = (B) => typeof l.value == "function" ? l.value({ quarter: En(B), year: De(B) }) : !!l.value.quarters.find((O) => b(O, B)), K = U(() => (B) => {
6685
+ }, y = (B, O) => B.quarter === En(O) && B.year === De(O), b = (B) => typeof l.value == "function" ? l.value({ quarter: En(B), year: De(B) }) : !!l.value.quarters.find((O) => y(O, B)), K = U(() => (B) => {
6686
6686
  const O = Le(/* @__PURE__ */ new Date(), { year: w.value(B) });
6687
6687
  return wl({
6688
6688
  start: Da(O),
6689
6689
  end: pr(O)
6690
6690
  }).map((Q) => {
6691
- const ae = Zt(Q), z = Hn(Q), ne = S(Q), L = W(ae), me = g(ae);
6691
+ const ae = Zt(Q), z = Hn(Q), ne = S(Q), L = W(ae), me = b(ae);
6692
6692
  return {
6693
6693
  text: C(ae, z),
6694
6694
  value: ae,
@@ -6710,7 +6710,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6710
6710
  defaultedMultiCalendars: a,
6711
6711
  groupedYears: A,
6712
6712
  year: w,
6713
- isDisabled: y,
6713
+ isDisabled: g,
6714
6714
  quarters: K,
6715
6715
  showYearPicker: M,
6716
6716
  modelValue: p,
@@ -6757,14 +6757,14 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6757
6757
  setHoverDate: m,
6758
6758
  selectQuarter: A,
6759
6759
  toggleYearPicker: M,
6760
- handleYearSelect: y,
6760
+ handleYearSelect: g,
6761
6761
  handleYear: v
6762
6762
  } = Ui(r, a);
6763
6763
  return n({ getSidebarProps: () => ({
6764
6764
  modelValue: $,
6765
6765
  year: p,
6766
6766
  selectQuarter: A,
6767
- handleYearSelect: y,
6767
+ handleYearSelect: g,
6768
6768
  handleYear: v
6769
6769
  }) }), (x, T) => (c(), we(Ea, {
6770
6770
  "multi-calendars": h(u).count,
@@ -6773,15 +6773,15 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6773
6773
  "is-mobile": x.isMobile
6774
6774
  }, {
6775
6775
  default: ke(({ instance: C }) => [
6776
- ue("div", {
6776
+ ie("div", {
6777
6777
  class: "dp-quarter-picker-wrap",
6778
6778
  style: Fe({ minHeight: `${h(i).modeHeight}px` })
6779
6779
  }, [
6780
- x.$slots["top-extra"] ? ce(x.$slots, "top-extra", {
6780
+ x.$slots["top-extra"] ? de(x.$slots, "top-extra", {
6781
6781
  key: 0,
6782
6782
  value: x.internalModelValue
6783
6783
  }) : I("", !0),
6784
- ue("div", null, [
6784
+ ie("div", null, [
6785
6785
  Ce(qr, Ze(x.$props, {
6786
6786
  items: h(P)(C),
6787
6787
  instance: C,
@@ -6789,20 +6789,20 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6789
6789
  year: h(p)(C),
6790
6790
  "is-disabled": (N) => h(w)(C, N),
6791
6791
  onHandleYear: (N) => h(v)(C, N),
6792
- onYearSelect: (N) => h(y)(N, C),
6792
+ onYearSelect: (N) => h(g)(N, C),
6793
6793
  onToggleYearPicker: (N) => h(M)(C, N == null ? void 0 : N.flow, N == null ? void 0 : N.show)
6794
6794
  }), ct({ _: 2 }, [
6795
6795
  Ae(h(s), (N, W) => ({
6796
6796
  name: N,
6797
- fn: ke((b) => [
6798
- ce(x.$slots, N, ot(ht(b)))
6797
+ fn: ke((y) => [
6798
+ de(x.$slots, N, ot(ht(y)))
6799
6799
  ])
6800
6800
  }))
6801
6801
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
6802
6802
  ]),
6803
- ue("div", ji, [
6803
+ ie("div", ji, [
6804
6804
  (c(!0), _(he, null, Ae(h(f)(C), (N, W) => (c(), _("div", { key: W }, [
6805
- ue("button", {
6805
+ ie("button", {
6806
6806
  type: "button",
6807
6807
  class: fe(["dp--qr-btn", {
6808
6808
  "dp--qr-btn-active": N.active,
@@ -6812,10 +6812,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6812
6812
  }]),
6813
6813
  "data-test-id": N.value,
6814
6814
  disabled: N.disabled,
6815
- onClick: (b) => h(A)(N.value, C, N.disabled),
6816
- onMouseover: (b) => h(m)(N.value)
6815
+ onClick: (y) => h(A)(N.value, C, N.disabled),
6816
+ onMouseover: (y) => h(m)(N.value)
6817
6817
  }, [
6818
- x.$slots.quarter ? ce(x.$slots, "quarter", {
6818
+ x.$slots.quarter ? de(x.$slots, "quarter", {
6819
6819
  key: 0,
6820
6820
  value: N.value,
6821
6821
  text: N.text
@@ -6908,7 +6908,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6908
6908
  flowStep: pe.value,
6909
6909
  menuWrapRef: l.value
6910
6910
  };
6911
- }), { setMenuFocused: u, setShiftKey: i, control: P } = zr(), p = aa(), { defaultedTextInput: w, defaultedInline: f, defaultedConfig: $, defaultedUI: S, handleEventPropagation: m } = qe(r), { isMobile: A } = Xr($, r.shadow), M = H(null), y = H(0), v = H(null), x = H(!1), T = H(null), C = H(!1), N = (Y) => {
6911
+ }), { setMenuFocused: u, setShiftKey: i, control: P } = zr(), p = aa(), { defaultedTextInput: w, defaultedInline: f, defaultedConfig: $, defaultedUI: S, handleEventPropagation: m } = qe(r), { isMobile: A } = Xr($, r.shadow), M = H(null), g = H(0), v = H(null), x = H(!1), T = H(null), C = H(!1), N = (Y) => {
6912
6912
  C.value = !0, $.value.allowPreventDefault && Y.preventDefault(), Wt(Y, $.value, !0);
6913
6913
  };
6914
6914
  tt(() => {
@@ -6925,12 +6925,12 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6925
6925
  });
6926
6926
  const W = () => {
6927
6927
  const Y = at(v);
6928
- Y && (y.value = Y.getBoundingClientRect().width);
6929
- }, { arrowRight: b, arrowLeft: g, arrowDown: K, arrowUp: te } = jt(), { flowStep: pe, updateFlowStep: D, childMount: B, resetFlow: O, handleFlow: Q } = uu(r, a, T), ae = U(() => r.monthPicker ? fi : r.yearPicker ? pi : r.timePicker ? Ci : r.quarterPicker ? Ki : qi), z = U(() => {
6928
+ Y && (g.value = Y.getBoundingClientRect().width);
6929
+ }, { arrowRight: y, arrowLeft: b, arrowDown: K, arrowUp: te } = jt(), { flowStep: pe, updateFlowStep: D, childMount: B, resetFlow: O, handleFlow: Q } = uu(r, a, T), ae = U(() => r.monthPicker ? fi : r.yearPicker ? pi : r.timePicker ? Ci : r.quarterPicker ? Ki : qi), z = U(() => {
6930
6930
  var Y;
6931
6931
  if ($.value.arrowLeft) return $.value.arrowLeft;
6932
6932
  const se = (Y = l.value) == null ? void 0 : Y.getBoundingClientRect(), Ye = r.getInputRect();
6933
- return (Ye == null ? void 0 : Ye.width) < (y == null ? void 0 : y.value) && (Ye == null ? void 0 : Ye.left) <= ((se == null ? void 0 : se.left) ?? 0) ? `${(Ye == null ? void 0 : Ye.width) / 2}px` : (Ye == null ? void 0 : Ye.right) >= ((se == null ? void 0 : se.right) ?? 0) && (Ye == null ? void 0 : Ye.width) < (y == null ? void 0 : y.value) ? `${(y == null ? void 0 : y.value) - (Ye == null ? void 0 : Ye.width) / 2}px` : "50%";
6933
+ return (Ye == null ? void 0 : Ye.width) < (g == null ? void 0 : g.value) && (Ye == null ? void 0 : Ye.left) <= ((se == null ? void 0 : se.left) ?? 0) ? `${(Ye == null ? void 0 : Ye.width) / 2}px` : (Ye == null ? void 0 : Ye.right) >= ((se == null ? void 0 : se.right) ?? 0) && (Ye == null ? void 0 : Ye.width) < (g == null ? void 0 : g.value) ? `${(g == null ? void 0 : g.value) - (Ye == null ? void 0 : Ye.width) / 2}px` : "50%";
6934
6934
  }), ne = () => {
6935
6935
  const Y = at(l);
6936
6936
  Y && Y.focus({ preventScroll: !0 });
@@ -6952,14 +6952,14 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6952
6952
  })
6953
6953
  ), V = (Y) => {
6954
6954
  Wt(Y, $.value, !0);
6955
- }, ie = (Y) => {
6955
+ }, ue = (Y) => {
6956
6956
  r.escClose && (a("close-picker"), m(Y));
6957
6957
  }, Ie = (Y) => {
6958
6958
  if (r.arrowNavigation) {
6959
6959
  if (Y === ft.up) return te();
6960
6960
  if (Y === ft.down) return K();
6961
- if (Y === ft.left) return g();
6962
- if (Y === ft.right) return b();
6961
+ if (Y === ft.left) return b();
6962
+ if (Y === ft.right) return y();
6963
6963
  } else Y === ft.left || Y === ft.up ? d("handleArrow", ft.left, 0, Y === ft.up) : d("handleArrow", ft.right, 0, Y === ft.down);
6964
6964
  }, E = (Y) => {
6965
6965
  i(Y.shiftKey), !r.disableMonthYearSelect && Y.code === We.tab && Y.target.classList.contains("dp__menu") && P.value.shiftKeyInMenu && (Y.preventDefault(), Wt(Y, $.value, !0), a("close-picker"));
@@ -6994,7 +6994,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6994
6994
  );
6995
6995
  switch ((Y.key === We.pageUp || Y.key === We.pageDown) && (Y.shiftKey ? (d("changeYear", Y.key === We.pageUp), (se = mn(l.value, "overlay-year")) == null || se.focus()) : (d("changeMonth", Y.key === We.pageUp), (Ye = mn(l.value, Y.key === We.pageUp ? "action-prev" : "action-next")) == null || Ye.focus()), Y.target.getAttribute("id") && ((nt = l.value) == null || nt.focus({ preventScroll: !0 }))), Y.key) {
6996
6996
  case We.esc:
6997
- return ie(Y);
6997
+ return ue(Y);
6998
6998
  case We.arrowLeft:
6999
6999
  return Pe(Y, ft.left);
7000
7000
  case We.arrowRight:
@@ -7038,17 +7038,17 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7038
7038
  class: fe(G.value)
7039
7039
  }, [
7040
7040
  Y.loading ? (c(), _("div", Xi, se[19] || (se[19] = [
7041
- ue("span", { class: "dp--menu-loader" }, null, -1)
7041
+ ie("span", { class: "dp--menu-loader" }, null, -1)
7042
7042
  ]))) : I("", !0)
7043
7043
  ], 2)) : I("", !0),
7044
7044
  Y.$slots["menu-header"] ? (c(), _("div", Zi, [
7045
- ce(Y.$slots, "menu-header")
7045
+ de(Y.$slots, "menu-header")
7046
7046
  ])) : I("", !0),
7047
7047
  !h(f).enabled && !Y.teleportCenter ? (c(), _("div", {
7048
7048
  key: 2,
7049
7049
  class: fe(q.value)
7050
7050
  }, null, 2)) : I("", !0),
7051
- ue("div", {
7051
+ ie("div", {
7052
7052
  ref_key: "innerMenuRef",
7053
7053
  ref: v,
7054
7054
  class: fe({
@@ -7056,10 +7056,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7056
7056
  "dp--menu-content-wrapper-collapsed": e.collapse && ((($t = Y.presetDates) == null ? void 0 : $t.length) || !!Y.$slots["left-sidebar"] || !!Y.$slots["right-sidebar"])
7057
7057
  }),
7058
7058
  "data-dp-mobile": h(A),
7059
- style: Fe({ "--dp-menu-width": `${y.value}px` })
7059
+ style: Fe({ "--dp-menu-width": `${g.value}px` })
7060
7060
  }, [
7061
7061
  Y.$slots["left-sidebar"] ? (c(), _("div", eu, [
7062
- ce(Y.$slots, "left-sidebar", ot(ht(L.value)))
7062
+ de(Y.$slots, "left-sidebar", ot(ht(L.value)))
7063
7063
  ])) : I("", !0),
7064
7064
  Y.presetDates.length ? (c(), _("div", {
7065
7065
  key: 1,
@@ -7067,7 +7067,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7067
7067
  "data-dp-mobile": h(A)
7068
7068
  }, [
7069
7069
  (c(!0), _(he, null, Ae(Y.presetDates, (ye, rt) => (c(), _(he, { key: rt }, [
7070
- ye.slot ? ce(Y.$slots, ye.slot, {
7070
+ ye.slot ? de(Y.$slots, ye.slot, {
7071
7071
  key: 0,
7072
7072
  presetDate: le,
7073
7073
  label: ye.label,
@@ -7084,7 +7084,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7084
7084
  }, Me(ye.label), 47, au))
7085
7085
  ], 64))), 128))
7086
7086
  ], 10, tu)) : I("", !0),
7087
- ue("div", {
7087
+ ie("div", {
7088
7088
  ref_key: "calendarWrapperRef",
7089
7089
  ref: M,
7090
7090
  class: "dp__instance_calendar",
@@ -7121,16 +7121,16 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7121
7121
  Ae(F.value, (ye, rt) => ({
7122
7122
  name: ye,
7123
7123
  fn: ke((xt) => [
7124
- ce(Y.$slots, ye, ot(ht({ ...xt })))
7124
+ de(Y.$slots, ye, ot(ht({ ...xt })))
7125
7125
  ])
7126
7126
  }))
7127
7127
  ]), 1040, ["flow-step", "onMount", "onUpdateFlowStep", "onResetFlow"]))
7128
7128
  ], 512),
7129
7129
  Y.$slots["right-sidebar"] ? (c(), _("div", nu, [
7130
- ce(Y.$slots, "right-sidebar", ot(ht(L.value)))
7130
+ de(Y.$slots, "right-sidebar", ot(ht(L.value)))
7131
7131
  ])) : I("", !0),
7132
7132
  Y.$slots["action-extra"] ? (c(), _("div", ru, [
7133
- Y.$slots["action-extra"] ? ce(Y.$slots, "action-extra", {
7133
+ Y.$slots["action-extra"] ? de(Y.$slots, "action-extra", {
7134
7134
  key: 0,
7135
7135
  selectCurrentDate: ee
7136
7136
  }) : I("", !0)
@@ -7140,7 +7140,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7140
7140
  key: 3,
7141
7141
  "menu-mount": x.value
7142
7142
  }, s.value, {
7143
- "calendar-width": y.value,
7143
+ "calendar-width": g.value,
7144
7144
  onClosePicker: se[16] || (se[16] = (ye) => Y.$emit("close-picker")),
7145
7145
  onSelectDate: se[17] || (se[17] = (ye) => Y.$emit("select-date")),
7146
7146
  onInvalidSelect: se[18] || (se[18] = (ye) => Y.$emit("invalid-select")),
@@ -7149,7 +7149,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7149
7149
  Ae(h(k), (ye, rt) => ({
7150
7150
  name: ye,
7151
7151
  fn: ke((xt) => [
7152
- ce(Y.$slots, ye, ot(ht({ ...xt })))
7152
+ de(Y.$slots, ye, ot(ht({ ...xt })))
7153
7153
  ])
7154
7154
  }))
7155
7155
  ]), 1040, ["menu-mount", "calendar-width"])) : I("", !0)
@@ -7190,7 +7190,7 @@ const lu = ({
7190
7190
  w.value.left = `${O}px`;
7191
7191
  }, M = (O, Q) => {
7192
7192
  s.position === oa.left && A(O), s.position === oa.right && m(O, Q), s.position === oa.center && (w.value.left = `${O + Q / 2 - P.value.width / 2}px`);
7193
- }, y = (O) => {
7193
+ }, g = (O) => {
7194
7194
  const { width: Q, height: ae } = O.getBoundingClientRect(), { top: z, left: ne } = S(O);
7195
7195
  return { top: +z, left: +ne, width: Q, height: ae };
7196
7196
  }, v = () => {
@@ -7210,16 +7210,16 @@ const lu = ({
7210
7210
  return te();
7211
7211
  }
7212
7212
  }, C = ({ inputEl: O, left: Q, width: ae }) => {
7213
- window.screen.width > 768 && !p.value && M(Q, ae), b(O);
7213
+ window.screen.width > 768 && !p.value && M(Q, ae), y(O);
7214
7214
  }, N = (O) => {
7215
- const { top: Q, left: ae, height: z, width: ne } = y(O);
7215
+ const { top: Q, left: ae, height: z, width: ne } = g(O);
7216
7216
  w.value.top = `${z + Q + +s.offset}px`, f.value = !1, p.value || (w.value.left = `${ae + ne / 2 - P.value.width / 2}px`), C({ inputEl: O, left: ae, width: ne });
7217
7217
  }, W = (O) => {
7218
- const { top: Q, left: ae, width: z } = y(O);
7218
+ const { top: Q, left: ae, width: z } = g(O);
7219
7219
  w.value.top = `${Q - +s.offset - P.value.height}px`, f.value = !0, C({ inputEl: O, left: ae, width: z });
7220
- }, b = (O) => {
7220
+ }, y = (O) => {
7221
7221
  if (s.autoPosition) {
7222
- const { left: Q, width: ae } = y(O), { left: z, right: ne } = P.value;
7222
+ const { left: Q, width: ae } = g(O), { left: z, right: ne } = P.value;
7223
7223
  if (!p.value) {
7224
7224
  if (Math.abs(z) !== Math.abs(ne)) {
7225
7225
  if (z <= 0)
@@ -7230,7 +7230,7 @@ const lu = ({
7230
7230
  return M(Q, ae);
7231
7231
  }
7232
7232
  }
7233
- }, g = () => {
7233
+ }, b = () => {
7234
7234
  const O = at(t);
7235
7235
  if (O) {
7236
7236
  if (s.autoPosition === kt.top) return kt.top;
@@ -7239,7 +7239,7 @@ const lu = ({
7239
7239
  return Q <= ne ? kt.bottom : Q > ne && Q <= L ? kt.top : ne >= L ? kt.bottom : kt.top;
7240
7240
  }
7241
7241
  return kt.bottom;
7242
- }, K = (O) => g() === kt.bottom ? N(O) : W(O), te = () => {
7242
+ }, K = (O) => b() === kt.bottom ? N(O) : W(O), te = () => {
7243
7243
  const O = at(t);
7244
7244
  if (O)
7245
7245
  return s.autoPosition ? K(O) : N(O);
@@ -7411,23 +7411,23 @@ const lu = ({
7411
7411
  }, $ = () => {
7412
7412
  p.value = null;
7413
7413
  }, S = (o) => Array.isArray(e.value) && i.value.enabled && e.value[0] && p.value ? o ? Xe(p.value, e.value[0]) : je(p.value, e.value[0]) : !0, m = (o, V) => {
7414
- const ie = () => e.value ? V ? e.value[0] || null : e.value[1] : null, Ie = e.value && Array.isArray(e.value) ? ie() : null;
7414
+ const ue = () => e.value ? V ? e.value[0] || null : e.value[1] : null, Ie = e.value && Array.isArray(e.value) ? ue() : null;
7415
7415
  return Se(X(o.value), Ie);
7416
7416
  }, A = (o) => {
7417
7417
  const V = Array.isArray(e.value) ? e.value[0] : null;
7418
7418
  return o ? !je(p.value ?? null, V) : !0;
7419
- }, M = (o, V = !0) => (i.value.enabled || n.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? n.hideOffsetDates && !o.current ? !1 : Se(X(o.value), e.value[V ? 0 : 1]) : i.value.enabled ? m(o, V) && A(V) || Se(o.value, Array.isArray(e.value) ? e.value[0] : null) && S(V) : !1, y = (o, V) => {
7419
+ }, M = (o, V = !0) => (i.value.enabled || n.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? n.hideOffsetDates && !o.current ? !1 : Se(X(o.value), e.value[V ? 0 : 1]) : i.value.enabled ? m(o, V) && A(V) || Se(o.value, Array.isArray(e.value) ? e.value[0] : null) && S(V) : !1, g = (o, V) => {
7420
7420
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
7421
- const ie = Se(o.value, p.value);
7422
- return V ? Xe(e.value[0], o.value) && ie : je(e.value[0], o.value) && ie;
7421
+ const ue = Se(o.value, p.value);
7422
+ return V ? Xe(e.value[0], o.value) && ue : je(e.value[0], o.value) && ue;
7423
7423
  }
7424
7424
  return !1;
7425
7425
  }, v = (o) => !e.value || n.hideOffsetDates && !o.current ? !1 : i.value.enabled ? n.modelAuto && Array.isArray(e.value) ? Se(o.value, e.value[0] ? e.value[0] : w.value) : !1 : a.value.enabled && Array.isArray(e.value) ? e.value.some((V) => Se(V, o.value)) : Se(o.value, e.value ? e.value : w.value), x = (o) => {
7426
7426
  if (i.value.autoRange || n.weekPicker) {
7427
7427
  if (p.value) {
7428
7428
  if (n.hideOffsetDates && !o.current) return !1;
7429
- const V = wt(p.value, +i.value.autoRange), ie = It(X(p.value), n.weekStart);
7430
- return n.weekPicker ? Se(ie[1], X(o.value)) : Se(V, X(o.value));
7429
+ const V = wt(p.value, +i.value.autoRange), ue = It(X(p.value), n.weekStart);
7430
+ return n.weekPicker ? Se(ue[1], X(o.value)) : Se(V, X(o.value));
7431
7431
  }
7432
7432
  return !1;
7433
7433
  }
@@ -7437,8 +7437,8 @@ const lu = ({
7437
7437
  if (p.value) {
7438
7438
  const V = wt(p.value, +i.value.autoRange);
7439
7439
  if (n.hideOffsetDates && !o.current) return !1;
7440
- const ie = It(X(p.value), n.weekStart);
7441
- return n.weekPicker ? Xe(o.value, ie[0]) && je(o.value, ie[1]) : Xe(o.value, p.value) && je(o.value, V);
7440
+ const ue = It(X(p.value), n.weekStart);
7441
+ return n.weekPicker ? Xe(o.value, ue[0]) && je(o.value, ue[1]) : Xe(o.value, p.value) && je(o.value, V);
7442
7442
  }
7443
7443
  return !1;
7444
7444
  }
@@ -7453,7 +7453,7 @@ const lu = ({
7453
7453
  return !1;
7454
7454
  }
7455
7455
  return !1;
7456
- }, N = (o) => Ta(e.value, p.value, o.value), W = () => n.modelAuto && Array.isArray(n.internalModelValue) ? !!n.internalModelValue[0] : !1, b = () => n.modelAuto ? Sr(n.internalModelValue) : !0, g = (o) => {
7456
+ }, N = (o) => Ta(e.value, p.value, o.value), W = () => n.modelAuto && Array.isArray(n.internalModelValue) ? !!n.internalModelValue[0] : !1, y = () => n.modelAuto ? Sr(n.internalModelValue) : !0, b = (o) => {
7457
7457
  if (n.weekPicker) return !1;
7458
7458
  const V = i.value.enabled ? !M(o) && !M(o, !1) : !0;
7459
7459
  return !P(o.value) && !v(o) && !(!o.current && n.hideOffsetDates) && V;
@@ -7463,25 +7463,25 @@ const lu = ({
7463
7463
  }, D = (o) => {
7464
7464
  var V;
7465
7465
  return typeof l.value == "function" ? l.value(o.value) : (V = l.value.weekdays) == null ? void 0 : V.includes(o.value.getDay());
7466
- }, B = (o) => (i.value.enabled || n.weekPicker) && (!(t.value.count > 0) || o.current) && b() && !(!o.current && n.hideOffsetDates) && !v(o) ? N(o) : !1, O = (o) => {
7466
+ }, B = (o) => (i.value.enabled || n.weekPicker) && (!(t.value.count > 0) || o.current) && y() && !(!o.current && n.hideOffsetDates) && !v(o) ? N(o) : !1, O = (o) => {
7467
7467
  if (Array.isArray(e.value) && e.value.length === 1) {
7468
- const { before: V, after: ie } = Jn(+i.value.maxRange, e.value[0]);
7469
- return ca(o.value, V) || ta(o.value, ie);
7468
+ const { before: V, after: ue } = Jn(+i.value.maxRange, e.value[0]);
7469
+ return ca(o.value, V) || ta(o.value, ue);
7470
7470
  }
7471
7471
  return !1;
7472
7472
  }, Q = (o) => {
7473
7473
  if (Array.isArray(e.value) && e.value.length === 1) {
7474
- const { before: V, after: ie } = Jn(+i.value.minRange, e.value[0]);
7475
- return Ta([V, ie], e.value[0], o.value);
7474
+ const { before: V, after: ue } = Jn(+i.value.minRange, e.value[0]);
7475
+ return Ta([V, ue], e.value[0], o.value);
7476
7476
  }
7477
7477
  return !1;
7478
7478
  }, ae = (o) => i.value.enabled && (i.value.maxRange || i.value.minRange) ? i.value.maxRange && i.value.minRange ? O(o) || Q(o) : i.value.maxRange ? O(o) : Q(o) : !1, z = (o) => {
7479
- const { isRangeStart: V, isRangeEnd: ie } = k(o), Ie = i.value.enabled ? V || ie : !1;
7479
+ const { isRangeStart: V, isRangeEnd: ue } = k(o), Ie = i.value.enabled ? V || ue : !1;
7480
7480
  return {
7481
7481
  dp__cell_offset: !o.current,
7482
7482
  dp__pointer: !n.disabled && !(!o.current && n.hideOffsetDates) && !P(o.value) && !ae(o),
7483
7483
  dp__cell_disabled: P(o.value) || ae(o),
7484
- dp__cell_highlight: !pe(o) && (te(o) || D(o)) && !K(o) && !Ie && !C(o) && !(B(o) && n.weekPicker) && !ie,
7484
+ dp__cell_highlight: !pe(o) && (te(o) || D(o)) && !K(o) && !Ie && !C(o) && !(B(o) && n.weekPicker) && !ue,
7485
7485
  dp__cell_highlight_active: !pe(o) && (te(o) || D(o)) && K(o),
7486
7486
  dp__today: !n.noToday && Se(o.value, w.value) && o.current,
7487
7487
  "dp--past": je(o.value, w.value),
@@ -7489,7 +7489,7 @@ const lu = ({
7489
7489
  };
7490
7490
  }, ne = (o) => ({
7491
7491
  dp__active_date: K(o),
7492
- dp__date_hover: g(o)
7492
+ dp__date_hover: b(o)
7493
7493
  }), L = (o) => {
7494
7494
  if (e.value && !Array.isArray(e.value)) {
7495
7495
  const V = It(e.value, n.weekStart);
@@ -7505,30 +7505,30 @@ const lu = ({
7505
7505
  };
7506
7506
  }, me = (o) => {
7507
7507
  if (e.value && Array.isArray(e.value)) {
7508
- const V = It(e.value[0], n.weekStart), ie = e.value[1] ? It(e.value[1], n.weekStart) : [];
7508
+ const V = It(e.value[0], n.weekStart), ue = e.value[1] ? It(e.value[1], n.weekStart) : [];
7509
7509
  return {
7510
7510
  ...q(o),
7511
- dp__range_start: Se(V[0], o.value) || Se(ie[0], o.value),
7512
- dp__range_end: Se(V[1], o.value) || Se(ie[1], o.value),
7513
- dp__range_between_week: Xe(o.value, V[0]) && je(o.value, V[1]) || Xe(o.value, ie[0]) && je(o.value, ie[1]),
7514
- dp__range_between: Xe(o.value, V[1]) && je(o.value, ie[0])
7511
+ dp__range_start: Se(V[0], o.value) || Se(ue[0], o.value),
7512
+ dp__range_end: Se(V[1], o.value) || Se(ue[1], o.value),
7513
+ dp__range_between_week: Xe(o.value, V[0]) && je(o.value, V[1]) || Xe(o.value, ue[0]) && je(o.value, ue[1]),
7514
+ dp__range_between: Xe(o.value, V[1]) && je(o.value, ue[0])
7515
7515
  };
7516
7516
  }
7517
7517
  return {
7518
7518
  ...q(o)
7519
7519
  };
7520
7520
  }, k = (o) => {
7521
- const V = t.value.count > 0 ? o.current && M(o) && b() : M(o) && b(), ie = t.value.count > 0 ? o.current && M(o, !1) && b() : M(o, !1) && b();
7522
- return { isRangeStart: V, isRangeEnd: ie };
7521
+ const V = t.value.count > 0 ? o.current && M(o) && y() : M(o) && y(), ue = t.value.count > 0 ? o.current && M(o, !1) && y() : M(o, !1) && y();
7522
+ return { isRangeStart: V, isRangeEnd: ue };
7523
7523
  }, F = (o) => {
7524
- const { isRangeStart: V, isRangeEnd: ie } = k(o);
7524
+ const { isRangeStart: V, isRangeEnd: ue } = k(o);
7525
7525
  return {
7526
7526
  dp__range_start: V,
7527
- dp__range_end: ie,
7527
+ dp__range_end: ue,
7528
7528
  dp__range_between: B(o),
7529
- dp__date_hover: Se(o.value, p.value) && !V && !ie && !n.weekPicker,
7530
- dp__date_hover_start: y(o, !0),
7531
- dp__date_hover_end: y(o, !1)
7529
+ dp__date_hover: Se(o.value, p.value) && !V && !ue && !n.weekPicker,
7530
+ dp__date_hover_start: g(o, !0),
7531
+ dp__date_hover_end: g(o, !1)
7532
7532
  };
7533
7533
  }, q = (o) => ({
7534
7534
  ...F(o),
@@ -7562,7 +7562,7 @@ const lu = ({
7562
7562
  return B >= +e.yearRange[0] && B <= e.yearRange[1];
7563
7563
  }
7564
7564
  return !0;
7565
- }, M = (D, B) => !!(Array.isArray(D) && D[B] && (t.value.maxRange || t.value.minRange) && A(D[B])), y = (D, B, O = 0) => {
7565
+ }, M = (D, B) => !!(Array.isArray(D) && D[B] && (t.value.maxRange || t.value.minRange) && A(D[B])), g = (D, B, O = 0) => {
7566
7566
  if (M(B, O) && A(D)) {
7567
7567
  const Q = cr(D, B[O]), ae = Nr(B[O], D), z = ae.length === 1 ? 0 : ae.filter((L) => S(L)).length, ne = Math.abs(Q) - (t.value.minMaxRawRange ? 0 : z);
7568
7568
  if (t.value.minRange && t.value.maxRange)
@@ -7582,7 +7582,7 @@ const lu = ({
7582
7582
  }, W = (D, B) => {
7583
7583
  const O = Array.isArray(B) ? [ea(B[0]), B[1] ? ea(B[1]) : void 0] : ea(B), Q = !e.disabledTimes(O);
7584
7584
  return D && Q;
7585
- }, b = (D, B) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? N(B, D) : W(B, D) : B, g = (D) => {
7585
+ }, y = (D, B) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? N(B, D) : W(B, D) : B, b = (D) => {
7586
7586
  let B = !0;
7587
7587
  if (!D || v()) return !0;
7588
7588
  const O = !a.value.minDate && !a.value.maxDate ? x(D) : D;
@@ -7598,7 +7598,7 @@ const lu = ({
7598
7598
  "min",
7599
7599
  lt(O),
7600
7600
  B
7601
- )), b(D, B);
7601
+ )), y(D, B);
7602
7602
  }, K = (D) => {
7603
7603
  if (!e.monthPicker) return !0;
7604
7604
  let B = !0;
@@ -7616,14 +7616,14 @@ const lu = ({
7616
7616
  B = je(O, Q) || Se(O, Q);
7617
7617
  }
7618
7618
  return B;
7619
- }, te = U(() => (D) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : g(D)), pe = U(() => (D) => e.monthPicker ? Array.isArray(D) && (t.value.enabled || r.value.enabled) ? !D.filter((B) => !K(B)).length : K(D) : !0);
7619
+ }, te = U(() => (D) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : b(D)), pe = U(() => (D) => e.monthPicker ? Array.isArray(D) && (t.value.enabled || r.value.enabled) ? !D.filter((B) => !K(B)).length : K(D) : !0);
7620
7620
  return {
7621
7621
  isDisabled: S,
7622
7622
  validateDate: i,
7623
7623
  validateMonthYearInRange: f,
7624
7624
  isDateRangeAllowed: m,
7625
- checkMinMaxRange: y,
7626
- isValidTime: g,
7625
+ checkMinMaxRange: g,
7626
+ isValidTime: b,
7627
7627
  isTimeValid: te,
7628
7628
  isMonthValid: pe
7629
7629
  };
@@ -7697,7 +7697,7 @@ const lu = ({
7697
7697
  defaultedUI: w,
7698
7698
  getDefaultPattern: f,
7699
7699
  getDefaultStartTime: $
7700
- } = qe(r), { checkMinMaxRange: S } = Qt(r), m = H(), A = H(null), M = H(!1), y = H(!1), v = U(
7700
+ } = qe(r), { checkMinMaxRange: S } = Qt(r), m = H(), A = H(null), M = H(!1), g = H(!1), v = U(
7701
7701
  () => ({
7702
7702
  dp__pointer: !r.disabled && !r.readonly && !l.value.enabled,
7703
7703
  dp__disabled: r.disabled,
@@ -7719,7 +7719,7 @@ const lu = ({
7719
7719
  l.value.format ?? f(),
7720
7720
  me ?? Lr({}, r.enableSeconds),
7721
7721
  r.inputValue,
7722
- y.value,
7722
+ g.value,
7723
7723
  r.formatLocale
7724
7724
  );
7725
7725
  }, C = (L) => {
@@ -7731,7 +7731,7 @@ const lu = ({
7731
7731
  S(G, o, 0) && (m.value = q ? o : null);
7732
7732
  }
7733
7733
  }, N = () => {
7734
- y.value = !0;
7734
+ g.value = !0;
7735
7735
  }, W = (L) => {
7736
7736
  if (P.value.enabled)
7737
7737
  C(L);
@@ -7740,11 +7740,11 @@ const lu = ({
7740
7740
  m.value = me.map((k) => T(k.trim())).filter((k) => k);
7741
7741
  } else
7742
7742
  m.value = T(L);
7743
- }, b = (L) => {
7743
+ }, y = (L) => {
7744
7744
  var me;
7745
7745
  const k = typeof L == "string" ? L : (me = L.target) == null ? void 0 : me.value;
7746
- k !== "" ? (l.value.openMenu && !r.isMenuOpen && a("open"), W(k), a("set-input-date", m.value)) : x(), y.value = !1, a("update:input-value", k), a("text-input", L, m.value);
7747
- }, g = (L) => {
7746
+ k !== "" ? (l.value.openMenu && !r.isMenuOpen && a("open"), W(k), a("set-input-date", m.value)) : x(), g.value = !1, a("update:input-value", k), a("text-input", L, m.value);
7747
+ }, b = (L) => {
7748
7748
  l.value.enabled ? (W(L.target.value), l.value.enterSubmit && pn(m.value) && r.inputValue !== "" ? (a("set-input-date", m.value, !0), m.value = null) : l.value.enterSubmit && r.inputValue === "" && (m.value = null, a("clear"))) : pe(L);
7749
7749
  }, K = (L, me) => {
7750
7750
  l.value.enabled && l.value.tabSubmit && !me && W(L.target.value), l.value.tabSubmit && pn(m.value) && r.inputValue !== "" ? (a("set-input-date", m.value, !0, !0), m.value = null) : l.value.tabSubmit && r.inputValue === "" && (m.value = null, a("clear", !0));
@@ -7765,7 +7765,7 @@ const lu = ({
7765
7765
  }, O = () => {
7766
7766
  a("close");
7767
7767
  }, Q = (L) => {
7768
- if (L.key === "Tab" && K(L), L.key === "Enter" && g(L), L.key === "Escape" && l.value.escClose && O(), !l.value.enabled) {
7768
+ if (L.key === "Tab" && K(L), L.key === "Enter" && b(L), L.key === "Escape" && l.value.escClose && O(), !l.value.enabled) {
7769
7769
  if (L.code === "Tab") return;
7770
7770
  L.preventDefault();
7771
7771
  }
@@ -7783,14 +7783,14 @@ const lu = ({
7783
7783
  }), (L, me) => {
7784
7784
  var k, F, q;
7785
7785
  return c(), _("div", { onClick: pe }, [
7786
- L.$slots.trigger && !L.$slots["dp-input"] && !h(u).enabled ? ce(L.$slots, "trigger", { key: 0 }) : I("", !0),
7786
+ L.$slots.trigger && !L.$slots["dp-input"] && !h(u).enabled ? de(L.$slots, "trigger", { key: 0 }) : I("", !0),
7787
7787
  !L.$slots.trigger && (!h(u).enabled || h(u).input) ? (c(), _("div", du, [
7788
- L.$slots["dp-input"] && !L.$slots.trigger && (!h(u).enabled || h(u).enabled && h(u).input) ? ce(L.$slots, "dp-input", {
7788
+ L.$slots["dp-input"] && !L.$slots.trigger && (!h(u).enabled || h(u).enabled && h(u).input) ? de(L.$slots, "dp-input", {
7789
7789
  key: 0,
7790
7790
  value: e.inputValue,
7791
7791
  isMenuOpen: e.isMenuOpen,
7792
- onInput: b,
7793
- onEnter: g,
7792
+ onInput: y,
7793
+ onEnter: b,
7794
7794
  onTab: K,
7795
7795
  onClear: B,
7796
7796
  onBlur: D,
@@ -7819,14 +7819,14 @@ const lu = ({
7819
7819
  "aria-label": (k = h(s)) == null ? void 0 : k.input,
7820
7820
  "aria-disabled": L.disabled || void 0,
7821
7821
  "aria-invalid": L.state === !1 ? !0 : void 0,
7822
- onInput: b,
7822
+ onInput: y,
7823
7823
  onBlur: D,
7824
7824
  onFocus: te,
7825
7825
  onKeypress: Q,
7826
7826
  onKeydown: me[0] || (me[0] = (G) => Q(G)),
7827
7827
  onPaste: N
7828
7828
  }, null, 42, cu)),
7829
- ue("div", {
7829
+ ie("div", {
7830
7830
  onClick: me[3] || (me[3] = (G) => a("toggle"))
7831
7831
  }, [
7832
7832
  L.$slots["input-icon"] && !L.hideInputIcon ? (c(), _("span", {
@@ -7834,7 +7834,7 @@ const lu = ({
7834
7834
  class: "dp__input_icon",
7835
7835
  onClick: me[1] || (me[1] = (G) => a("toggle"))
7836
7836
  }, [
7837
- ce(L.$slots, "input-icon")
7837
+ de(L.$slots, "input-icon")
7838
7838
  ])) : I("", !0),
7839
7839
  !L.$slots["input-icon"] && !L.hideInputIcon && !L.$slots["dp-input"] ? (c(), we(h(pa), {
7840
7840
  key: 1,
@@ -7844,7 +7844,7 @@ const lu = ({
7844
7844
  }, null, 8, ["aria-label"])) : I("", !0)
7845
7845
  ]),
7846
7846
  L.$slots["clear-icon"] && (L.alwaysClearable || e.inputValue && L.clearable && !L.disabled && !L.readonly) ? (c(), _("span", vu, [
7847
- ce(L.$slots, "clear-icon", { clear: B })
7847
+ de(L.$slots, "clear-icon", { clear: B })
7848
7848
  ])) : I("", !0),
7849
7849
  !L.$slots["clear-icon"] && (L.alwaysClearable || L.clearable && e.inputValue && !L.disabled && !L.readonly) ? (c(), _("button", {
7850
7850
  key: 3,
@@ -7921,23 +7921,23 @@ const lu = ({
7921
7921
  "text-input"
7922
7922
  ],
7923
7923
  setup(e, { expose: n, emit: t }) {
7924
- const a = t, r = e, l = aa(), s = H(!1), u = ka(r, "modelValue"), i = ka(r, "timezone"), P = H(null), p = H(null), w = H(null), f = H(!1), $ = H(null), S = H(!1), m = H(!1), A = H(!1), M = H(!1), { setMenuFocused: y, setShiftKey: v } = zr(), { clearArrowNav: x } = jt(), { validateDate: T, isValidTime: C } = Qt(r), {
7924
+ const a = t, r = e, l = aa(), s = H(!1), u = ka(r, "modelValue"), i = ka(r, "timezone"), P = H(null), p = H(null), w = H(null), f = H(!1), $ = H(null), S = H(!1), m = H(!1), A = H(!1), M = H(!1), { setMenuFocused: g, setShiftKey: v } = zr(), { clearArrowNav: x } = jt(), { validateDate: T, isValidTime: C } = Qt(r), {
7925
7925
  defaultedTransitions: N,
7926
7926
  defaultedTextInput: W,
7927
- defaultedInline: b,
7928
- defaultedConfig: g,
7927
+ defaultedInline: y,
7928
+ defaultedConfig: b,
7929
7929
  defaultedRange: K,
7930
7930
  defaultedMultiDates: te
7931
- } = qe(r), { menuTransition: pe, showTransition: D } = Aa(N), { isMobile: B } = Xr(g), O = tl();
7931
+ } = qe(r), { menuTransition: pe, showTransition: D } = Aa(N), { isMobile: B } = Xr(b), O = tl();
7932
7932
  tt(() => {
7933
7933
  o(r.modelValue), gt().then(() => {
7934
- if (!b.value.enabled) {
7934
+ if (!y.value.enabled) {
7935
7935
  const j = k($.value);
7936
7936
  j == null || j.addEventListener("scroll", le), window == null || window.addEventListener("resize", oe);
7937
7937
  }
7938
- }), b.value.enabled && (s.value = !0), window == null || window.addEventListener("keyup", xe), window == null || window.addEventListener("keydown", Pe);
7938
+ }), y.value.enabled && (s.value = !0), window == null || window.addEventListener("keyup", xe), window == null || window.addEventListener("keydown", Pe);
7939
7939
  }), Ft(() => {
7940
- if (!b.value.enabled) {
7940
+ if (!y.value.enabled) {
7941
7941
  const j = k($.value);
7942
7942
  j == null || j.removeEventListener("scroll", le), window == null || window.removeEventListener("resize", oe);
7943
7943
  }
@@ -7956,7 +7956,7 @@ const lu = ({
7956
7956
  menuRefInner: p,
7957
7957
  inputRef: w,
7958
7958
  pickerWrapperRef: $,
7959
- inline: b,
7959
+ inline: y,
7960
7960
  emit: a,
7961
7961
  props: r,
7962
7962
  slots: l
@@ -7965,46 +7965,46 @@ const lu = ({
7965
7965
  internalModelValue: G,
7966
7966
  parseExternalModelValue: o,
7967
7967
  emitModelValue: V,
7968
- formatInputValue: ie,
7968
+ formatInputValue: ue,
7969
7969
  checkBeforeEmit: Ie
7970
7970
  } = ei(a, r, f), E = U(
7971
7971
  () => ({
7972
7972
  dp__main: !0,
7973
7973
  dp__theme_dark: r.dark,
7974
7974
  dp__theme_light: !r.dark,
7975
- dp__flex_display: b.value.enabled,
7975
+ dp__flex_display: y.value.enabled,
7976
7976
  "dp--flex-display-collapsed": A.value,
7977
- dp__flex_display_with_input: b.value.input
7977
+ dp__flex_display_with_input: y.value.input
7978
7978
  })
7979
7979
  ), Te = U(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), Z = U(() => r.teleport ? {
7980
7980
  to: typeof r.teleport == "boolean" ? "body" : r.teleport,
7981
- disabled: !r.teleport || b.value.enabled
7982
- } : {}), re = U(() => ({ class: "dp__outer_menu_wrap" })), d = U(() => b.value.enabled && (r.timePicker || r.monthPicker || r.yearPicker || r.quarterPicker)), ee = () => {
7983
- var j, de;
7984
- return ((de = (j = w.value) == null ? void 0 : j.$el) == null ? void 0 : de.getBoundingClientRect()) ?? { width: 0, left: 0, right: 0 };
7981
+ disabled: !r.teleport || y.value.enabled
7982
+ } : {}), re = U(() => ({ class: "dp__outer_menu_wrap" })), d = U(() => y.value.enabled && (r.timePicker || r.monthPicker || r.yearPicker || r.quarterPicker)), ee = () => {
7983
+ var j, ce;
7984
+ return ((ce = (j = w.value) == null ? void 0 : j.$el) == null ? void 0 : ce.getBoundingClientRect()) ?? { width: 0, left: 0, right: 0 };
7985
7985
  }, le = () => {
7986
- s.value && (g.value.closeOnScroll ? rt() : me());
7986
+ s.value && (b.value.closeOnScroll ? rt() : me());
7987
7987
  }, oe = () => {
7988
7988
  var j;
7989
7989
  s.value && me();
7990
- const de = ((j = p.value) == null ? void 0 : j.$el.getBoundingClientRect().width) ?? 0;
7991
- A.value = document.body.offsetWidth <= de;
7990
+ const ce = ((j = p.value) == null ? void 0 : j.$el.getBoundingClientRect().width) ?? 0;
7991
+ A.value = document.body.offsetWidth <= ce;
7992
7992
  }, xe = (j) => {
7993
- j.key === "Tab" && !b.value.enabled && !r.teleport && g.value.tabOutClosesMenu && ($.value.contains(document.activeElement) || rt()), m.value = j.shiftKey;
7993
+ j.key === "Tab" && !y.value.enabled && !r.teleport && b.value.tabOutClosesMenu && ($.value.contains(document.activeElement) || rt()), m.value = j.shiftKey;
7994
7994
  }, Pe = (j) => {
7995
7995
  m.value = j.shiftKey;
7996
7996
  }, Ve = () => {
7997
7997
  !r.disabled && !r.readonly && (F(O, nr, r), me(!1), s.value = !0, s.value && a("open"), s.value || ye(), o(r.modelValue));
7998
7998
  }, Ke = () => {
7999
- var j, de;
8000
- q.value = "", ye(), (j = p.value) == null || j.onValueCleared(), (de = w.value) == null || de.setParsedDate(null), a("update:model-value", null), a("update:model-timezone-value", null), a("cleared"), g.value.closeOnClearValue && rt();
7999
+ var j, ce;
8000
+ q.value = "", ye(), (j = p.value) == null || j.onValueCleared(), (ce = w.value) == null || ce.setParsedDate(null), a("update:model-value", null), a("update:model-timezone-value", null), a("cleared"), b.value.closeOnClearValue && rt();
8001
8001
  }, Y = () => {
8002
8002
  const j = G.value;
8003
8003
  return !j || !Array.isArray(j) && T(j) ? !0 : Array.isArray(j) ? te.value.enabled || j.length === 2 && T(j[0]) && T(j[1]) ? !0 : K.value.partialRange && !r.timePicker ? T(j[0]) : !1 : !1;
8004
8004
  }, se = () => {
8005
8005
  Ie() && Y() ? (V(), rt()) : a("invalid-select", G.value);
8006
8006
  }, Ye = (j) => {
8007
- nt(), V(), g.value.closeOnAutoApply && !j && rt();
8007
+ nt(), V(), b.value.closeOnAutoApply && !j && rt();
8008
8008
  }, nt = () => {
8009
8009
  w.value && W.value.enabled && w.value.setParsedDate(G.value);
8010
8010
  }, $t = (j = !1) => {
@@ -8012,15 +8012,15 @@ const lu = ({
8012
8012
  }, ye = () => {
8013
8013
  W.value.enabled || (G.value = null);
8014
8014
  }, rt = (j = !1) => {
8015
- var de, ge;
8016
- j && G.value && g.value.setDateOnMenuClose && se(), b.value.enabled || (s.value && (s.value = !1, L.value = !1, y(!1), v(!1), x(), a("closed"), q.value && o(u.value)), ye(), a("blur"), (ge = (de = p.value) == null ? void 0 : de.$el) == null || ge.remove());
8017
- }, xt = (j, de, ge = !1) => {
8015
+ var ce, ge;
8016
+ j && G.value && b.value.setDateOnMenuClose && se(), y.value.enabled || (s.value && (s.value = !1, L.value = !1, g(!1), v(!1), x(), a("closed"), q.value && o(u.value)), ye(), a("blur"), (ge = (ce = p.value) == null ? void 0 : ce.$el) == null || ge.remove());
8017
+ }, xt = (j, ce, ge = !1) => {
8018
8018
  if (!j) {
8019
8019
  G.value = null;
8020
8020
  return;
8021
8021
  }
8022
8022
  const Rt = Array.isArray(j) ? !j.some((Gt) => !T(Gt)) : T(j), Ct = C(j);
8023
- Rt && Ct ? (M.value = !0, G.value = j, de ? (S.value = ge, se(), a("text-submit")) : r.autoApply && $t(), gt().then(() => {
8023
+ Rt && Ct ? (M.value = !0, G.value = j, ce ? (S.value = ge, se(), a("text-submit")) : r.autoApply && $t(), gt().then(() => {
8024
8024
  M.value = !1;
8025
8025
  })) : a("invalid-date", j);
8026
8026
  }, za = () => {
@@ -8028,7 +8028,7 @@ const lu = ({
8028
8028
  }, Sa = () => s.value ? rt() : Ve(), qa = (j) => {
8029
8029
  G.value = j;
8030
8030
  }, Ua = () => {
8031
- W.value.enabled && (f.value = !0, ie()), a("focus");
8031
+ W.value.enabled && (f.value = !0, ue()), a("focus");
8032
8032
  }, ja = () => {
8033
8033
  if (W.value.enabled && (f.value = !1, o(r.modelValue), S.value)) {
8034
8034
  const j = Ps($.value, m.value);
@@ -8042,12 +8042,12 @@ const lu = ({
8042
8042
  });
8043
8043
  }, Ka = (j) => {
8044
8044
  o(j ?? r.modelValue);
8045
- }, R = (j, de) => {
8045
+ }, R = (j, ce) => {
8046
8046
  var ge;
8047
- (ge = p.value) == null || ge.switchView(j, de);
8048
- }, J = (j, de) => g.value.onClickOutside ? g.value.onClickOutside(j, de) : rt(!0), be = (j = 0) => {
8049
- var de;
8050
- (de = p.value) == null || de.handleFlow(j);
8047
+ (ge = p.value) == null || ge.switchView(j, ce);
8048
+ }, J = (j, ce) => b.value.onClickOutside ? b.value.onClickOutside(j, ce) : rt(!0), be = (j = 0) => {
8049
+ var ce;
8050
+ (ce = p.value) == null || ce.handleFlow(j);
8051
8051
  }, $e = () => P;
8052
8052
  return gu(
8053
8053
  P,
@@ -8059,7 +8059,7 @@ const lu = ({
8059
8059
  clearValue: Ke,
8060
8060
  openMenu: Ve,
8061
8061
  onScroll: le,
8062
- formatInputValue: ie,
8062
+ formatInputValue: ue,
8063
8063
  // exposed for testing purposes
8064
8064
  updateInternalModelValue: qa,
8065
8065
  // modify internal modelValue
@@ -8069,7 +8069,7 @@ const lu = ({
8069
8069
  toggleMenu: Sa,
8070
8070
  handleFlow: be,
8071
8071
  getDpWrapMenuRef: $e
8072
- }), (j, de) => (c(), _("div", {
8072
+ }), (j, ce) => (c(), _("div", {
8073
8073
  ref_key: "pickerWrapperRef",
8074
8074
  ref: $,
8075
8075
  class: fe(E.value),
@@ -8080,7 +8080,7 @@ const lu = ({
8080
8080
  ref_key: "inputRef",
8081
8081
  ref: w,
8082
8082
  "input-value": h(q),
8083
- "onUpdate:inputValue": de[0] || (de[0] = (ge) => Vn(q) ? q.value = ge : null),
8083
+ "onUpdate:inputValue": ce[0] || (ce[0] = (ge) => Vn(q) ? q.value = ge : null),
8084
8084
  "is-menu-open": s.value
8085
8085
  }, j.$props, {
8086
8086
  onClear: Ke,
@@ -8092,13 +8092,13 @@ const lu = ({
8092
8092
  onClose: rt,
8093
8093
  onFocus: Ua,
8094
8094
  onBlur: ja,
8095
- onRealBlur: de[1] || (de[1] = (ge) => f.value = !1),
8096
- onTextInput: de[2] || (de[2] = (ge) => j.$emit("text-input", ge))
8095
+ onRealBlur: ce[1] || (ce[1] = (ge) => f.value = !1),
8096
+ onTextInput: ce[2] || (ce[2] = (ge) => j.$emit("text-input", ge))
8097
8097
  }), ct({ _: 2 }, [
8098
8098
  Ae(h(ae), (ge, Rt) => ({
8099
8099
  name: ge,
8100
8100
  fn: ke((Ct) => [
8101
- ce(j.$slots, ge, ot(ht(Ct)))
8101
+ de(j.$slots, ge, ot(ht(Ct)))
8102
8102
  ])
8103
8103
  }))
8104
8104
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
@@ -8106,7 +8106,7 @@ const lu = ({
8106
8106
  default: ke(() => [
8107
8107
  Ce(vt, {
8108
8108
  name: h(pe)(h(z)),
8109
- css: h(D) && !h(b).enabled
8109
+ css: h(D) && !h(y).enabled
8110
8110
  }, {
8111
8111
  default: ke(() => [
8112
8112
  s.value ? (c(), _("div", Ze({
@@ -8114,15 +8114,15 @@ const lu = ({
8114
8114
  ref_key: "dpWrapMenuRef",
8115
8115
  ref: P
8116
8116
  }, re.value, {
8117
- class: { "dp--menu-wrapper": !h(b).enabled },
8118
- style: h(b).enabled ? void 0 : h(ne)
8117
+ class: { "dp--menu-wrapper": !h(y).enabled },
8118
+ style: h(y).enabled ? void 0 : h(ne)
8119
8119
  }), [
8120
8120
  Ce(nr, Ze({
8121
8121
  ref_key: "dpMenuRef",
8122
8122
  ref: p
8123
8123
  }, j.$props, {
8124
8124
  "internal-model-value": h(G),
8125
- "onUpdate:internalModelValue": de[3] || (de[3] = (ge) => Vn(G) ? G.value = ge : null),
8125
+ "onUpdate:internalModelValue": ce[3] || (ce[3] = (ge) => Vn(G) ? G.value = ge : null),
8126
8126
  class: { [Te.value]: !0, "dp--menu-wrapper": j.teleport },
8127
8127
  "open-on-top": h(z),
8128
8128
  "no-overlay-focus": d.value,
@@ -8133,28 +8133,28 @@ const lu = ({
8133
8133
  onSelectDate: se,
8134
8134
  onAutoApply: $t,
8135
8135
  onTimeUpdate: za,
8136
- onFlowStep: de[4] || (de[4] = (ge) => j.$emit("flow-step", ge)),
8137
- onUpdateMonthYear: de[5] || (de[5] = (ge) => j.$emit("update-month-year", ge)),
8138
- onInvalidSelect: de[6] || (de[6] = (ge) => j.$emit("invalid-select", h(G))),
8139
- onAutoApplyInvalid: de[7] || (de[7] = (ge) => j.$emit("invalid-select", ge)),
8140
- onInvalidFixedRange: de[8] || (de[8] = (ge) => j.$emit("invalid-fixed-range", ge)),
8136
+ onFlowStep: ce[4] || (ce[4] = (ge) => j.$emit("flow-step", ge)),
8137
+ onUpdateMonthYear: ce[5] || (ce[5] = (ge) => j.$emit("update-month-year", ge)),
8138
+ onInvalidSelect: ce[6] || (ce[6] = (ge) => j.$emit("invalid-select", h(G))),
8139
+ onAutoApplyInvalid: ce[7] || (ce[7] = (ge) => j.$emit("invalid-select", ge)),
8140
+ onInvalidFixedRange: ce[8] || (ce[8] = (ge) => j.$emit("invalid-fixed-range", ge)),
8141
8141
  onRecalculatePosition: h(me),
8142
- onTooltipOpen: de[9] || (de[9] = (ge) => j.$emit("tooltip-open", ge)),
8143
- onTooltipClose: de[10] || (de[10] = (ge) => j.$emit("tooltip-close", ge)),
8144
- onTimePickerOpen: de[11] || (de[11] = (ge) => j.$emit("time-picker-open", ge)),
8145
- onTimePickerClose: de[12] || (de[12] = (ge) => j.$emit("time-picker-close", ge)),
8146
- onAmPmChange: de[13] || (de[13] = (ge) => j.$emit("am-pm-change", ge)),
8147
- onRangeStart: de[14] || (de[14] = (ge) => j.$emit("range-start", ge)),
8148
- onRangeEnd: de[15] || (de[15] = (ge) => j.$emit("range-end", ge)),
8149
- onDateUpdate: de[16] || (de[16] = (ge) => j.$emit("date-update", ge)),
8150
- onInvalidDate: de[17] || (de[17] = (ge) => j.$emit("invalid-date", ge)),
8151
- onOverlayToggle: de[18] || (de[18] = (ge) => j.$emit("overlay-toggle", ge)),
8152
- onMenuBlur: de[19] || (de[19] = (ge) => j.$emit("blur"))
8142
+ onTooltipOpen: ce[9] || (ce[9] = (ge) => j.$emit("tooltip-open", ge)),
8143
+ onTooltipClose: ce[10] || (ce[10] = (ge) => j.$emit("tooltip-close", ge)),
8144
+ onTimePickerOpen: ce[11] || (ce[11] = (ge) => j.$emit("time-picker-open", ge)),
8145
+ onTimePickerClose: ce[12] || (ce[12] = (ge) => j.$emit("time-picker-close", ge)),
8146
+ onAmPmChange: ce[13] || (ce[13] = (ge) => j.$emit("am-pm-change", ge)),
8147
+ onRangeStart: ce[14] || (ce[14] = (ge) => j.$emit("range-start", ge)),
8148
+ onRangeEnd: ce[15] || (ce[15] = (ge) => j.$emit("range-end", ge)),
8149
+ onDateUpdate: ce[16] || (ce[16] = (ge) => j.$emit("date-update", ge)),
8150
+ onInvalidDate: ce[17] || (ce[17] = (ge) => j.$emit("invalid-date", ge)),
8151
+ onOverlayToggle: ce[18] || (ce[18] = (ge) => j.$emit("overlay-toggle", ge)),
8152
+ onMenuBlur: ce[19] || (ce[19] = (ge) => j.$emit("blur"))
8153
8153
  }), ct({ _: 2 }, [
8154
8154
  Ae(h(Q), (ge, Rt) => ({
8155
8155
  name: ge,
8156
8156
  fn: ke((Ct) => [
8157
- ce(j.$slots, ge, ot(ht({ ...Ct })))
8157
+ de(j.$slots, ge, ot(ht({ ...Ct })))
8158
8158
  ])
8159
8159
  }))
8160
8160
  ]), 1040, ["internal-model-value", "class", "open-on-top", "no-overlay-focus", "collapse", "is-text-input-date", "onRecalculatePosition"])
@@ -8216,133 +8216,138 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8216
8216
  setup(e, { expose: n, emit: t }) {
8217
8217
  const a = e, r = t, l = H(""), s = H(!1), u = H(!1), i = H(!1), P = H(null), p = H(null), w = H(null), f = H(null), $ = U(() => a.label ? a.labelPosition === "left" && a.labelWidth ? {
8218
8218
  "grid-template-columns": `${a.labelWidth} 1fr`
8219
- } : {} : {}), S = (b) => {
8220
- if (!b) return "";
8221
- const g = String(b.getDate()).padStart(2, "0"), K = String(b.getMonth() + 1).padStart(2, "0");
8222
- return `${b.getFullYear()}-${K}-${g}`;
8223
- }, m = (b) => {
8224
- if (!b) return null;
8225
- const [g, K, te] = b.split("-").map(Number);
8226
- return new Date(g, K - 1, te);
8227
- }, A = async (b) => {
8219
+ } : {} : {}), S = (y) => {
8220
+ if (!y) return "";
8221
+ const b = String(y.getDate()).padStart(2, "0"), K = String(y.getMonth() + 1).padStart(2, "0");
8222
+ return `${y.getFullYear()}-${K}-${b}`;
8223
+ }, m = (y) => {
8224
+ if (!y) return null;
8225
+ y.includes("T") && (y = y.split("T")[0]);
8226
+ const [b, K, te] = y.split("-").map(Number);
8227
+ return new Date(b, K - 1, te);
8228
+ }, A = async (y) => {
8228
8229
  if (a.autosave)
8229
8230
  try {
8230
- await a.autosave(b), a.error || (r("saved"), s.value = !0, u.value = !1, setTimeout(() => {
8231
+ await a.autosave(y), a.error || (r("saved"), s.value = !0, u.value = !1, setTimeout(() => {
8231
8232
  s.value = !1;
8232
8233
  }, 3e3));
8233
- } catch (g) {
8234
- console.error("Autosave failed:", g);
8234
+ } catch (b) {
8235
+ console.error("Autosave failed:", b);
8235
8236
  }
8236
- }, M = (b) => {
8237
+ }, M = (y) => {
8237
8238
  P.value && clearTimeout(P.value), p.value && clearTimeout(p.value), !a.error && a.autosave && (u.value = !0), p.value = window.setTimeout(() => {
8238
8239
  r("changed"), i.value = !0;
8239
8240
  }, 500), P.value = window.setTimeout(() => {
8240
- A(b);
8241
+ A(y);
8241
8242
  }, 1500);
8242
- }, y = () => {
8243
- var b;
8244
- (b = w.value) == null || b.focus();
8245
- }, v = (b) => {
8246
- b.style.height = "auto", b.style.height = `${b.scrollHeight}px`;
8247
- }, x = (b) => {
8248
- const g = b.target.value;
8249
- r("update:modelValue", g), M(g), a.type === "textarea" && b.target.tagName === "TEXTAREA" && v(b.target);
8243
+ }, g = () => {
8244
+ var y;
8245
+ (y = w.value) == null || y.focus();
8246
+ }, v = (y) => {
8247
+ y.style.height = "auto", y.style.height = `${y.scrollHeight}px`;
8248
+ }, x = (y) => {
8249
+ const b = y.target.value;
8250
+ r("update:modelValue", b), M(b), a.type === "textarea" && y.target.tagName === "TEXTAREA" && v(y.target);
8250
8251
  }, T = () => {
8251
8252
  r("focus");
8252
8253
  }, C = () => {
8253
8254
  r("blur");
8254
- }, N = (b) => {
8255
- r("keydown", b);
8256
- }, W = (b) => {
8257
- const g = S(b);
8258
- r("update:modelValue", g), M(g);
8255
+ }, N = (y) => {
8256
+ r("keydown", y);
8257
+ }, W = (y) => {
8258
+ const b = S(y);
8259
+ r("update:modelValue", b), M(b);
8259
8260
  };
8260
8261
  return Ft(() => {
8261
8262
  P.value && clearTimeout(P.value), p.value && clearTimeout(p.value);
8262
8263
  }), tt(() => {
8263
8264
  l.value = `text-input-${Math.random().toString(36).substring(2, 9)}`, a.type === "date" && a.modelValue && (f.value = m(a.modelValue));
8264
- }), dt(() => a.modelValue, (b) => {
8265
- a.type === "date" && b && (f.value = m(b));
8266
- }), n({
8265
+ }), dt(
8266
+ () => a.modelValue,
8267
+ (y) => {
8268
+ a.type === "date" && y && (f.value = m(y));
8269
+ }
8270
+ ), n({
8267
8271
  focus: () => {
8268
- var b;
8269
- return (b = w.value) == null ? void 0 : b.focus();
8272
+ var y;
8273
+ return (y = w.value) == null ? void 0 : y.focus();
8270
8274
  },
8271
8275
  blur: () => {
8272
- var b;
8273
- return (b = w.value) == null ? void 0 : b.blur();
8276
+ var y;
8277
+ return (y = w.value) == null ? void 0 : y.blur();
8274
8278
  }
8275
- }), (b, g) => {
8279
+ }), (y, b) => {
8276
8280
  const K = Ut("font-awesome-icon");
8277
8281
  return c(), _("div", {
8278
8282
  class: fe(["text-input", {
8279
- "text-input--disabled": b.disabled,
8280
- "text-input--has-error": b.error,
8281
- [`label-${b.labelPosition}`]: b.label,
8282
- [`label-align-${b.labelAlign}`]: b.label,
8283
- "text-input--has-icon": b.icon
8283
+ "text-input--disabled": y.disabled,
8284
+ "text-input--has-error": y.error,
8285
+ "text-input--date": y.type === "date",
8286
+ [`label-${y.labelPosition}`]: y.label,
8287
+ [`label-align-${y.labelAlign}`]: y.label,
8288
+ "text-input--has-icon": y.icon
8284
8289
  }]),
8285
8290
  style: Fe([
8286
- { width: b.width || "100%" },
8291
+ { width: y.width || "100%" },
8287
8292
  $.value,
8288
8293
  {
8289
- "--text-input-color": b.error ? "var(--danger-color)" : "var(--text-primary)",
8294
+ "--text-input-color": y.error ? "var(--danger-color)" : "var(--text-primary)",
8290
8295
  "--text-input-hover-color": "var(--primary-color)",
8291
8296
  "--text-input-active-color": "var(--primary-color)",
8292
8297
  "--text-input-disabled-color": "var(--text-disabled)",
8293
- "--text-input-background-color": b.bgColor || "var(--input-color, #ffffffaa)",
8294
- "--text-dp-background-color": b.bgColor || "#ffffff",
8298
+ "--text-input-background-color": y.bgColor || "var(--input-color, #ffffffaa)",
8299
+ "--text-dp-background-color": y.bgColor || "#ffffff",
8295
8300
  "--text-input-border-radius": "0.5rem",
8296
8301
  "--text-input-padding": "0.5rem",
8297
- "--max-textarea-height": b.maxHeight || b.height || "14rem",
8298
- "--textarea-height": b.height || "5.5rem"
8302
+ "--max-textarea-height": y.maxHeight || y.height || "14rem",
8303
+ "--textarea-height": y.height || "5.5rem"
8299
8304
  }
8300
8305
  ])
8301
8306
  }, [
8302
- b.label ? (c(), _("label", {
8307
+ y.label ? (c(), _("label", {
8303
8308
  key: 0,
8304
8309
  for: l.value,
8305
8310
  class: "label"
8306
- }, Me(b.label), 9, ku)) : I("", !0),
8307
- ue("div", Du, [
8308
- b.icon ? (c(), _("div", {
8311
+ }, Me(y.label), 9, ku)) : I("", !0),
8312
+ ie("div", Du, [
8313
+ y.icon ? (c(), _("div", {
8309
8314
  key: 0,
8310
8315
  class: "text-input__icon",
8311
- onClick: y
8316
+ onClick: g
8312
8317
  }, [
8313
- Ce(K, { icon: b.icon }, null, 8, ["icon"])
8318
+ Ce(K, { icon: y.icon }, null, 8, ["icon"])
8314
8319
  ])) : I("", !0),
8315
- b.type === "date" ? (c(), we(h(In), {
8320
+ y.type === "date" ? (c(), we(h(In), {
8316
8321
  key: 1,
8317
8322
  id: l.value,
8318
8323
  modelValue: f.value,
8319
8324
  "onUpdate:modelValue": [
8320
- g[0] || (g[0] = (te) => f.value = te),
8325
+ b[0] || (b[0] = (te) => f.value = te),
8321
8326
  W
8322
8327
  ],
8323
- placeholder: b.placeholder,
8324
- disabled: b.disabled,
8325
- readonly: b.readonly,
8326
- "min-date": b.min,
8327
- "max-date": b.max,
8328
+ placeholder: y.placeholder,
8329
+ disabled: y.disabled,
8330
+ readonly: y.readonly,
8331
+ "min-date": y.min,
8332
+ "max-date": y.max,
8328
8333
  format: Au,
8329
8334
  "enable-time-picker": !1,
8330
8335
  "auto-apply": !0,
8331
8336
  "close-on-auto-apply": !0,
8332
8337
  clearable: !0,
8333
- "input-class-name": ["text-input__input", { "text-input__input--has-icon": b.icon }],
8338
+ "input-class-name": ["text-input__input", { "text-input__input--has-icon": y.icon }],
8334
8339
  onFocus: T,
8335
8340
  onBlur: C
8336
- }, null, 8, ["id", "modelValue", "placeholder", "disabled", "readonly", "min-date", "max-date", "input-class-name"])) : b.type !== "textarea" ? (c(), _("input", {
8341
+ }, null, 8, ["id", "modelValue", "placeholder", "disabled", "readonly", "min-date", "max-date", "input-class-name"])) : y.type !== "textarea" ? (c(), _("input", {
8337
8342
  key: 2,
8338
8343
  id: l.value,
8339
- type: b.type,
8340
- value: b.modelValue,
8341
- placeholder: b.placeholder,
8342
- required: b.required,
8343
- disabled: b.disabled,
8344
- readonly: b.readonly,
8345
- maxlength: b.maxlength,
8344
+ type: y.type,
8345
+ value: y.modelValue,
8346
+ placeholder: y.placeholder,
8347
+ required: y.required,
8348
+ disabled: y.disabled,
8349
+ readonly: y.readonly,
8350
+ maxlength: y.maxlength,
8346
8351
  class: "text-input__input",
8347
8352
  onInput: x,
8348
8353
  onFocus: T,
@@ -8353,34 +8358,34 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8353
8358
  }, null, 40, Mu)) : (c(), _("textarea", {
8354
8359
  key: 3,
8355
8360
  id: l.value,
8356
- value: b.modelValue,
8357
- placeholder: b.placeholder,
8358
- required: b.required,
8359
- disabled: b.disabled,
8361
+ value: y.modelValue,
8362
+ placeholder: y.placeholder,
8363
+ required: y.required,
8364
+ disabled: y.disabled,
8360
8365
  class: "text-input__input",
8361
8366
  onInput: x,
8362
8367
  ref_key: "inputRef",
8363
8368
  ref: w
8364
8369
  }, null, 40, Tu)),
8365
- b.required && !s.value && !u.value && !b.error ? (c(), _("span", Pu, "required")) : I("", !0),
8370
+ y.required && !s.value && !u.value && !y.error ? (c(), _("span", Pu, "required")) : I("", !0),
8366
8371
  Ce(vt, { name: "fade" }, {
8367
8372
  default: ke(() => [
8368
- s.value && !u.value && !b.error ? (c(), _("span", $u, "saved")) : I("", !0)
8373
+ s.value && !u.value && !y.error ? (c(), _("span", $u, "saved")) : I("", !0)
8369
8374
  ]),
8370
8375
  _: 1
8371
8376
  }),
8372
8377
  Ce(vt, { name: "fade" }, {
8373
8378
  default: ke(() => [
8374
- u.value && !b.error ? (c(), _("span", xu, "changed")) : I("", !0)
8379
+ u.value && !y.error ? (c(), _("span", xu, "changed")) : I("", !0)
8375
8380
  ]),
8376
8381
  _: 1
8377
8382
  }),
8378
8383
  Ce(vt, { name: "fade" }, {
8379
8384
  default: ke(() => [
8380
- b.error ? (c(), _("span", {
8385
+ y.error ? (c(), _("span", {
8381
8386
  key: 0,
8382
8387
  class: "text-input__status error-indicator",
8383
- "data-error": b.error
8388
+ "data-error": y.error
8384
8389
  }, "error", 8, Cu)) : I("", !0)
8385
8390
  ]),
8386
8391
  _: 1
@@ -8394,7 +8399,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8394
8399
  for (const [a, r] of n)
8395
8400
  t[a] = r;
8396
8401
  return t;
8397
- }, Su = /* @__PURE__ */ Kt(Ou, [["__scopeId", "data-v-82ab08af"]]), Yu = { class: "file-upload" }, Ru = { class: "upload-content" }, Iu = { key: 0 }, Vu = {
8402
+ }, Su = /* @__PURE__ */ Kt(Ou, [["__scopeId", "data-v-4166b200"]]), Yu = { class: "file-upload" }, Ru = { class: "upload-content" }, Iu = { key: 0 }, Vu = {
8398
8403
  key: 1,
8399
8404
  class: "selected-files"
8400
8405
  }, Bu = { class: "file-name" }, Fu = { class: "file-size" }, Nu = {
@@ -8471,7 +8476,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8471
8476
  message: T
8472
8477
  }, a("upload-error", T);
8473
8478
  }
8474
- }, y = () => {
8479
+ }, g = () => {
8475
8480
  a("start-upload", l.value);
8476
8481
  };
8477
8482
  return dt(l, (v) => {
@@ -8479,7 +8484,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8479
8484
  }), (v, x) => {
8480
8485
  const T = Ut("font-awesome-icon");
8481
8486
  return c(), _("div", Yu, [
8482
- ue("div", {
8487
+ ie("div", {
8483
8488
  class: fe(["upload-area", { "is-dragging": s.value, "has-files": l.value.length > 0 }]),
8484
8489
  onDragenter: Ee(f, ["prevent"]),
8485
8490
  onDragleave: Ee($, ["prevent"]),
@@ -8488,7 +8493,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8488
8493
  onDrop: Ee(S, ["prevent"]),
8489
8494
  onClick: m
8490
8495
  }, [
8491
- ue("input", {
8496
+ ie("input", {
8492
8497
  ref_key: "fileInput",
8493
8498
  ref: r,
8494
8499
  type: "file",
@@ -8496,25 +8501,25 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8496
8501
  class: "file-input",
8497
8502
  onChange: A
8498
8503
  }, null, 544),
8499
- ue("div", Ru, [
8504
+ ie("div", Ru, [
8500
8505
  Ce(T, {
8501
8506
  icon: ["fas", v.icon || "upload"]
8502
8507
  }, null, 8, ["icon"]),
8503
8508
  l.value.length === 0 ? (c(), _("p", Iu, "Drag & drop files here or click to select")) : (c(), _("div", Vu, [
8504
- ue("p", null, Me(l.value.length) + " file(s) selected", 1),
8509
+ ie("p", null, Me(l.value.length) + " file(s) selected", 1),
8505
8510
  (c(!0), _(he, null, Ae(l.value, (C, N) => (c(), _("div", {
8506
8511
  key: N,
8507
8512
  class: "file-info"
8508
8513
  }, [
8509
- ue("span", Bu, Me(C.name), 1),
8510
- ue("span", Fu, Me(p(C.size)), 1)
8514
+ ie("span", Bu, Me(C.name), 1),
8515
+ ie("span", Fu, Me(p(C.size)), 1)
8511
8516
  ]))), 128))
8512
8517
  ]))
8513
8518
  ])
8514
8519
  ], 34),
8515
8520
  i.value ? (c(), _("div", Nu, Me(i.value), 1)) : I("", !0),
8516
8521
  u.value > 0 && u.value < 100 ? (c(), _("div", Lu, [
8517
- ue("div", {
8522
+ ie("div", {
8518
8523
  class: "progress",
8519
8524
  style: Fe({ width: `${u.value}%` })
8520
8525
  }, null, 4)
@@ -8526,12 +8531,12 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8526
8531
  l.value.length > 0 && !v.uploadUrl ? (c(), _("button", {
8527
8532
  key: 3,
8528
8533
  class: "upload-button",
8529
- onClick: y
8534
+ onClick: g
8530
8535
  }, " Upload Files ")) : I("", !0)
8531
8536
  ]);
8532
8537
  };
8533
8538
  }
8534
- }), uc = /* @__PURE__ */ Kt(Hu, [["__scopeId", "data-v-75b2aeea"]]), Wu = {
8539
+ }), dc = /* @__PURE__ */ Kt(Hu, [["__scopeId", "data-v-75b2aeea"]]), Wu = {
8535
8540
  key: 0,
8536
8541
  class: "navigation__tiles"
8537
8542
  }, zu = ["onClick"], qu = {
@@ -8639,7 +8644,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8639
8644
  }),
8640
8645
  onClick: (M) => !m.id.includes("spacer") && u(m, M)
8641
8646
  }, [
8642
- ue("div", {
8647
+ ie("div", {
8643
8648
  class: fe(["navigation__tile-content", {
8644
8649
  "navigation__tile-content--icon-only": !m.label,
8645
8650
  "navigation__tile-content--large-icon": f.iconSize === "large" && m.icon
@@ -8663,7 +8668,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8663
8668
  "navigation__label--large": m.labelSize === "large"
8664
8669
  }])
8665
8670
  }, [
8666
- ue("span", null, Me(m.label), 1),
8671
+ ie("span", null, Me(m.label), 1),
8667
8672
  m.children ? (c(), _("div", ju, [
8668
8673
  Ce(S, { icon: "chevron-down" })
8669
8674
  ])) : I("", !0)
@@ -8688,7 +8693,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8688
8693
  class: fe(["navigation__dropdown-item", {
8689
8694
  "navigation__dropdown-item--disabled": M.disabled
8690
8695
  }]),
8691
- onClick: (y) => u(M, y)
8696
+ onClick: (g) => u(M, g)
8692
8697
  }, [
8693
8698
  M.icon ? (c(), _("div", Gu, [
8694
8699
  M.icon.startsWith("img:") ? (c(), _("img", {
@@ -8725,7 +8730,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8725
8730
  "--item-alignment": m.alignment || f.activeItemAlignment
8726
8731
  })
8727
8732
  }, [
8728
- ue("div", {
8733
+ ie("div", {
8729
8734
  class: fe(["navigation__dropdown-header", {
8730
8735
  "navigation__dropdown-header--icon-only": !m.label,
8731
8736
  "navigation__dropdown-header--large-icon": f.iconSize === "large" && m.icon
@@ -8750,7 +8755,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8750
8755
  "navigation__label--large": m.labelSize === "large"
8751
8756
  }])
8752
8757
  }, [
8753
- ue("span", null, Me(m.label), 1),
8758
+ ie("span", null, Me(m.label), 1),
8754
8759
  m.children ? (c(), _("div", ad, [
8755
8760
  Ce(S, { icon: "chevron-down" })
8756
8761
  ])) : I("", !0)
@@ -8802,7 +8807,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8802
8807
  ], 6);
8803
8808
  };
8804
8809
  }
8805
- }), dc = /* @__PURE__ */ Kt(sd, [["__scopeId", "data-v-d8c46774"]]), id = {
8810
+ }), cc = /* @__PURE__ */ Kt(sd, [["__scopeId", "data-v-d8c46774"]]), id = {
8806
8811
  key: 1,
8807
8812
  class: "action__label"
8808
8813
  }, ud = /* @__PURE__ */ ze({
@@ -8926,88 +8931,88 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
8926
8931
  },
8927
8932
  emits: ["update:modelValue", "changed", "saved"],
8928
8933
  setup(e, { emit: n }) {
8929
- const t = e, a = n, r = H(!1), l = H(""), s = H(null), u = U(() => Array.isArray(t.modelValue) ? t.options.filter((g) => t.modelValue.includes(g.id)) : t.options.filter((g) => g.id === t.modelValue)), i = U(() => Array.isArray(t.modelValue) ? t.modelValue.length > 0 : !!t.modelValue), P = U(() => {
8934
+ const t = e, a = n, r = H(!1), l = H(""), s = H(null), u = U(() => Array.isArray(t.modelValue) ? t.options.filter((b) => t.modelValue.includes(b.id)) : t.options.filter((b) => b.id === t.modelValue)), i = U(() => Array.isArray(t.modelValue) ? t.modelValue.length > 0 : !!t.modelValue), P = U(() => {
8930
8935
  if (!l.value) return t.options;
8931
- const g = l.value.toLowerCase();
8936
+ const b = l.value.toLowerCase();
8932
8937
  return t.options.filter(
8933
- (K) => K.label.toLowerCase().includes(g)
8938
+ (K) => K.label.toLowerCase().includes(b)
8934
8939
  );
8935
- }), p = (g) => Array.isArray(t.modelValue) ? t.modelValue.includes(g.id) : g.id === t.modelValue, w = () => {
8940
+ }), p = (b) => Array.isArray(t.modelValue) ? t.modelValue.includes(b.id) : b.id === t.modelValue, w = () => {
8936
8941
  t.disabled || (r.value = !r.value, r.value && t.filterable && gt(() => {
8937
- var g;
8938
- (g = s.value) == null || g.focus();
8942
+ var b;
8943
+ (b = s.value) == null || b.focus();
8939
8944
  }));
8940
8945
  }, f = () => {
8941
8946
  r.value = !1, l.value = "";
8942
- }, $ = (g) => {
8943
- if (!g.disabled)
8947
+ }, $ = (b) => {
8948
+ if (!b.disabled)
8944
8949
  if (t.multiple) {
8945
- const K = Array.isArray(t.modelValue) ? t.modelValue : [], te = K.includes(g.id) ? K.filter((pe) => pe !== g.id) : [...K, g.id];
8950
+ const K = Array.isArray(t.modelValue) ? t.modelValue : [], te = K.includes(b.id) ? K.filter((pe) => pe !== b.id) : [...K, b.id];
8946
8951
  a("update:modelValue", te), N(te);
8947
8952
  } else
8948
- a("update:modelValue", g.id), N(g.id), f();
8949
- }, S = (g) => {
8950
- if (!(t.disabled || g.disabled) && t.multiple && Array.isArray(t.modelValue)) {
8951
- const K = t.modelValue.filter((te) => te !== g.id);
8953
+ a("update:modelValue", b.id), N(b.id), f();
8954
+ }, S = (b) => {
8955
+ if (!(t.disabled || b.disabled) && t.multiple && Array.isArray(t.modelValue)) {
8956
+ const K = t.modelValue.filter((te) => te !== b.id);
8952
8957
  a("update:modelValue", K);
8953
8958
  }
8954
8959
  }, m = () => {
8955
8960
  t.disabled || a("update:modelValue", t.multiple ? [] : "");
8956
- }, A = (g) => {
8957
- g.target.closest(".dropdown") || f();
8961
+ }, A = (b) => {
8962
+ b.target.closest(".dropdown") || f();
8958
8963
  };
8959
- dt(r, (g) => {
8960
- g ? document.addEventListener("click", A) : document.removeEventListener("click", A);
8964
+ dt(r, (b) => {
8965
+ b ? document.addEventListener("click", A) : document.removeEventListener("click", A);
8961
8966
  });
8962
- const M = H(!1), y = H(!1), v = H(!1), x = H(null), T = H(null), C = async (g) => {
8967
+ const M = H(!1), g = H(!1), v = H(!1), x = H(null), T = H(null), C = async (b) => {
8963
8968
  if (t.autosave)
8964
8969
  try {
8965
- await t.autosave(g), t.error || (a("saved"), M.value = !0, y.value = !1, setTimeout(() => {
8970
+ await t.autosave(b), t.error || (a("saved"), M.value = !0, g.value = !1, setTimeout(() => {
8966
8971
  M.value = !1;
8967
8972
  }, 3e3));
8968
8973
  } catch (K) {
8969
8974
  console.error("Autosave failed:", K);
8970
8975
  }
8971
- }, N = (g) => {
8972
- x.value && clearTimeout(x.value), T.value && clearTimeout(T.value), t.error || (y.value = !0), T.value = window.setTimeout(() => {
8976
+ }, N = (b) => {
8977
+ x.value && clearTimeout(x.value), T.value && clearTimeout(T.value), t.error || (g.value = !0), T.value = window.setTimeout(() => {
8973
8978
  a("changed"), v.value = !0;
8974
8979
  }, 500), x.value = window.setTimeout(() => {
8975
- C(g);
8980
+ C(b);
8976
8981
  }, 1500);
8977
8982
  };
8978
8983
  Ft(() => {
8979
8984
  x.value && clearTimeout(x.value), T.value && clearTimeout(T.value);
8980
8985
  });
8981
- const W = H(""), b = U(() => t.label ? t.labelPosition === "left" && t.labelWidth ? {
8986
+ const W = H(""), y = U(() => t.label ? t.labelPosition === "left" && t.labelWidth ? {
8982
8987
  "grid-template-columns": `${t.labelWidth} 1fr`
8983
8988
  } : {} : {});
8984
8989
  return tt(() => {
8985
8990
  W.value = `dropdown-${Math.random().toString(36).substr(2, 9)}`;
8986
- }), (g, K) => {
8991
+ }), (b, K) => {
8987
8992
  var pe;
8988
8993
  const te = Ut("font-awesome-icon");
8989
8994
  return c(), _("div", {
8990
8995
  class: fe(["dropdown", {
8991
8996
  "dropdown--open": r.value,
8992
- "dropdown--disabled": g.disabled,
8993
- "dropdown--multiple": g.multiple,
8994
- "dropdown--large-icon": g.iconSize === "large",
8995
- "dropdown--has-error": g.error,
8996
- [`label-${g.labelPosition}`]: g.label,
8997
- [`label-align-${g.labelAlign}`]: g.label
8997
+ "dropdown--disabled": b.disabled,
8998
+ "dropdown--multiple": b.multiple,
8999
+ "dropdown--large-icon": b.iconSize === "large",
9000
+ "dropdown--has-error": b.error,
9001
+ [`label-${b.labelPosition}`]: b.label,
9002
+ [`label-align-${b.labelAlign}`]: b.label
8998
9003
  }]),
8999
9004
  style: Fe([
9000
- { width: g.width || "100%" },
9001
- b.value,
9005
+ { width: b.width || "100%" },
9006
+ y.value,
9002
9007
  {
9003
- "--dropdown-color": g.error ? "var(--danger-color)" : g.color,
9004
- "--dropdown-hover-color": g.hoverColor ? g.hoverColor : "var(--dropdown-color)",
9005
- "--dropdown-active-color": g.activeColor ? g.activeColor : "var(--dropdown-color)",
9006
- "--dropdown-disabled-color": g.disabledColor,
9007
- "--dropdown-background-color": g.backgroundColor,
9008
- "--dropdown-border-radius": g.borderRadius,
9009
- "--dropdown-padding": g.padding,
9010
- "--dropdown-max-height": g.maxHeight
9008
+ "--dropdown-color": b.error ? "var(--danger-color)" : b.color,
9009
+ "--dropdown-hover-color": b.hoverColor ? b.hoverColor : "var(--dropdown-color)",
9010
+ "--dropdown-active-color": b.activeColor ? b.activeColor : "var(--dropdown-color)",
9011
+ "--dropdown-disabled-color": b.disabledColor,
9012
+ "--dropdown-background-color": b.backgroundColor,
9013
+ "--dropdown-border-radius": b.borderRadius,
9014
+ "--dropdown-padding": b.padding,
9015
+ "--dropdown-max-height": b.maxHeight
9011
9016
  }
9012
9017
  ]),
9013
9018
  onClick: w,
@@ -9018,25 +9023,25 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9018
9023
  ],
9019
9024
  tabindex: "0"
9020
9025
  }, [
9021
- g.label ? (c(), _("label", {
9026
+ b.label ? (c(), _("label", {
9022
9027
  key: 0,
9023
9028
  for: W.value,
9024
9029
  class: "label"
9025
- }, Me(g.label), 9, cd)) : I("", !0),
9026
- ue("div", vd, [
9027
- g.icon ? (c(), _("div", fd, [
9028
- g.icon.startsWith("img:") ? (c(), _("img", {
9030
+ }, Me(b.label), 9, cd)) : I("", !0),
9031
+ ie("div", vd, [
9032
+ b.icon ? (c(), _("div", fd, [
9033
+ b.icon.startsWith("img:") ? (c(), _("img", {
9029
9034
  key: 0,
9030
- src: g.icon.substring(4),
9031
- alt: g.placeholder,
9035
+ src: b.icon.substring(4),
9036
+ alt: b.placeholder,
9032
9037
  class: "dropdown__icon-image"
9033
9038
  }, null, 8, md)) : (c(), we(te, {
9034
9039
  key: 1,
9035
- icon: g.icon
9040
+ icon: b.icon
9036
9041
  }, null, 8, ["icon"]))
9037
9042
  ])) : I("", !0),
9038
9043
  i.value ? (c(), _("div", hd, [
9039
- g.multiple ? (c(!0), _(he, { key: 0 }, Ae(u.value, (D) => (c(), _("div", {
9044
+ b.multiple ? (c(!0), _(he, { key: 0 }, Ae(u.value, (D) => (c(), _("div", {
9040
9045
  key: D.id,
9041
9046
  class: "dropdown__selected-tag",
9042
9047
  onClick: Ee((B) => S(D), ["stop"])
@@ -9049,9 +9054,9 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9049
9054
  ], 8, yd))), 128)) : (c(), _(he, { key: 1 }, [
9050
9055
  pt(Me((pe = u.value[0]) == null ? void 0 : pe.label), 1)
9051
9056
  ], 64))
9052
- ])) : (c(), _("div", pd, Me(g.placeholder), 1)),
9053
- ue("div", gd, [
9054
- i.value && !g.multiple ? (c(), we(te, {
9057
+ ])) : (c(), _("div", pd, Me(b.placeholder), 1)),
9058
+ ie("div", gd, [
9059
+ i.value && !b.multiple ? (c(), we(te, {
9055
9060
  key: 0,
9056
9061
  icon: "xmark",
9057
9062
  class: "dropdown__clear",
@@ -9062,33 +9067,33 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9062
9067
  class: fe(["dropdown__arrow", { "dropdown__arrow--open": r.value }])
9063
9068
  }, null, 8, ["class"])
9064
9069
  ]),
9065
- g.required && !M.value && !y.value && !g.error ? (c(), _("span", bd, "required")) : I("", !0),
9070
+ b.required && !M.value && !g.value && !b.error ? (c(), _("span", bd, "required")) : I("", !0),
9066
9071
  Ce(vt, { name: "fade" }, {
9067
9072
  default: ke(() => [
9068
- M.value && !g.error ? (c(), _("span", wd, "saved")) : I("", !0)
9073
+ M.value && !b.error ? (c(), _("span", wd, "saved")) : I("", !0)
9069
9074
  ]),
9070
9075
  _: 1
9071
9076
  }),
9072
9077
  Ce(vt, { name: "fade" }, {
9073
9078
  default: ke(() => [
9074
- y.value && !g.error ? (c(), _("span", _d, "changed")) : I("", !0)
9079
+ g.value && !b.error ? (c(), _("span", _d, "changed")) : I("", !0)
9075
9080
  ]),
9076
9081
  _: 1
9077
9082
  }),
9078
9083
  Ce(vt, { name: "fade" }, {
9079
9084
  default: ke(() => [
9080
- g.error ? (c(), _("span", {
9085
+ b.error ? (c(), _("span", {
9081
9086
  key: 0,
9082
9087
  class: "status-indicator error-indicator",
9083
- "data-error": g.error
9088
+ "data-error": b.error
9084
9089
  }, "error", 8, kd)) : I("", !0)
9085
9090
  ]),
9086
9091
  _: 1
9087
9092
  })
9088
9093
  ]),
9089
9094
  r.value ? (c(), _("div", Dd, [
9090
- g.filterable ? (c(), _("div", Md, [
9091
- ba(ue("input", {
9095
+ b.filterable ? (c(), _("div", Md, [
9096
+ ba(ie("input", {
9092
9097
  ref_key: "filterInput",
9093
9098
  ref: s,
9094
9099
  "onUpdate:modelValue": K[0] || (K[0] = (D) => l.value = D),
@@ -9103,7 +9108,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9103
9108
  [il, l.value]
9104
9109
  ])
9105
9110
  ])) : I("", !0),
9106
- ue("div", Td, [
9111
+ ie("div", Td, [
9107
9112
  (c(!0), _(he, null, Ae(P.value, (D) => (c(), _("div", {
9108
9113
  key: D.id,
9109
9114
  class: fe(["dropdown__option", {
@@ -9112,7 +9117,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9112
9117
  }]),
9113
9118
  onClick: Ee((B) => $(D), ["stop"])
9114
9119
  }, [
9115
- g.multiple && p(D) ? (c(), we(te, {
9120
+ b.multiple && p(D) ? (c(), we(te, {
9116
9121
  key: 0,
9117
9122
  icon: "check",
9118
9123
  class: "dropdown__option-check"
@@ -9124,7 +9129,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9124
9129
  ], 46, dd);
9125
9130
  };
9126
9131
  }
9127
- }), cc = /* @__PURE__ */ Kt($d, [["__scopeId", "data-v-15e79de4"]]), xd = ["for"], Cd = { class: "checkbox__icon" }, Ad = {
9132
+ }), vc = /* @__PURE__ */ Kt($d, [["__scopeId", "data-v-15e79de4"]]), xd = ["for"], Cd = { class: "checkbox__icon" }, Ad = {
9128
9133
  key: 0,
9129
9134
  class: "checkbox__label"
9130
9135
  }, Od = ["onClick"], Sd = { class: "checkbox__icon" }, Yd = {
@@ -9168,45 +9173,45 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9168
9173
  },
9169
9174
  emits: ["update:modelValue", "changed", "saved"],
9170
9175
  setup(e, { emit: n }) {
9171
- const t = e, a = n, r = H(""), l = H(!1), s = H(!1), u = H(!1), i = H(null), P = H(null), p = (y) => Array.isArray(t.modelValue) ? t.modelValue.includes(String(y.id)) : String(y.id) === String(t.modelValue), w = () => {
9176
+ const t = e, a = n, r = H(""), l = H(!1), s = H(!1), u = H(!1), i = H(null), P = H(null), p = (g) => Array.isArray(t.modelValue) ? t.modelValue.includes(String(g.id)) : String(g.id) === String(t.modelValue), w = () => {
9172
9177
  if (t.disabled) return;
9173
- const y = p(A.value[1]) ? String(A.value[0].id) : String(A.value[1].id);
9174
- a("update:modelValue", y), S(y);
9175
- }, f = (y) => {
9176
- if (!(y.disabled || t.disabled))
9178
+ const g = p(A.value[1]) ? String(A.value[0].id) : String(A.value[1].id);
9179
+ a("update:modelValue", g), S(g);
9180
+ }, f = (g) => {
9181
+ if (!(g.disabled || t.disabled))
9177
9182
  if (t.multiple) {
9178
- const v = Array.isArray(t.modelValue) ? t.modelValue : [], x = v.includes(String(y.id)) ? v.filter((T) => T !== String(y.id)) : [...v, String(y.id)];
9183
+ const v = Array.isArray(t.modelValue) ? t.modelValue : [], x = v.includes(String(g.id)) ? v.filter((T) => T !== String(g.id)) : [...v, String(g.id)];
9179
9184
  a("update:modelValue", x), S(x);
9180
9185
  } else {
9181
- const v = String(y.id) === String(t.modelValue) ? "" : String(y.id);
9186
+ const v = String(g.id) === String(t.modelValue) ? "" : String(g.id);
9182
9187
  a("update:modelValue", v), S(v);
9183
9188
  }
9184
- }, $ = async (y) => {
9189
+ }, $ = async (g) => {
9185
9190
  if (t.autosave)
9186
9191
  try {
9187
- await t.autosave(y), t.error || (a("saved"), l.value = !0, s.value = !1, setTimeout(() => {
9192
+ await t.autosave(g), t.error || (a("saved"), l.value = !0, s.value = !1, setTimeout(() => {
9188
9193
  l.value = !1;
9189
9194
  }, 3e3));
9190
9195
  } catch (v) {
9191
9196
  console.error("Autosave failed:", v);
9192
9197
  }
9193
- }, S = (y) => {
9198
+ }, S = (g) => {
9194
9199
  i.value && clearTimeout(i.value), P.value && clearTimeout(P.value), t.error || (s.value = !0), P.value = window.setTimeout(() => {
9195
9200
  a("changed"), u.value = !0;
9196
9201
  }, 500), i.value = window.setTimeout(() => {
9197
- $(y);
9202
+ $(g);
9198
9203
  }, 1500);
9199
9204
  }, m = U(() => {
9200
- var y;
9201
- return (y = t.options) != null && y.length ? t.options.length === 2 : t.modelValue !== void 0 ? ["true", "false", "1", "0"].indexOf(String(t.modelValue)) !== -1 : !1;
9205
+ var g;
9206
+ return (g = t.options) != null && g.length ? t.options.length === 2 : t.modelValue !== void 0 ? ["true", "false", "1", "0"].indexOf(String(t.modelValue)) !== -1 : !1;
9202
9207
  }), A = U(() => {
9203
- var y, v, x, T, C, N, W, b, g, K, te, pe, D;
9204
- return m.value && ((y = t.options) == null ? void 0 : y.length) < 2 ? [{
9208
+ var g, v, x, T, C, N, W, y, b, K, te, pe, D;
9209
+ return m.value && ((g = t.options) == null ? void 0 : g.length) < 2 ? [{
9205
9210
  id: ((x = (v = t.options) == null ? void 0 : v[0]) == null ? void 0 : x.id) || "false",
9206
9211
  label: ((C = (T = t.options) == null ? void 0 : T[0]) == null ? void 0 : C.label) || null,
9207
9212
  disabled: ((W = (N = t.options) == null ? void 0 : N[0]) == null ? void 0 : W.disabled) || !1
9208
9213
  }, {
9209
- id: ((g = (b = t.options) == null ? void 0 : b[1]) == null ? void 0 : g.id) || "true",
9214
+ id: ((b = (y = t.options) == null ? void 0 : y[1]) == null ? void 0 : b.id) || "true",
9210
9215
  label: ((te = (K = t.options) == null ? void 0 : K[1]) == null ? void 0 : te.label) || null,
9211
9216
  disabled: ((D = (pe = t.options) == null ? void 0 : pe[1]) == null ? void 0 : D.disabled) || !1
9212
9217
  }] : t.options || [];
@@ -9217,55 +9222,55 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9217
9222
  const M = U(() => t.label ? t.labelPosition === "left" && t.labelWidth ? {
9218
9223
  "grid-template-columns": `${t.labelWidth} 1fr`
9219
9224
  } : {} : {});
9220
- return (y, v) => {
9225
+ return (g, v) => {
9221
9226
  const x = Ut("font-awesome-icon");
9222
9227
  return c(), _("div", {
9223
9228
  class: fe(["checkbox", {
9224
- "checkbox--disabled": y.disabled,
9225
- "checkbox--has-error": y.error,
9226
- "checkbox--large-icon": y.iconSize === "large",
9227
- "has-label": y.label,
9228
- [`label-${y.labelPosition}`]: y.label,
9229
- [`label-align-${y.labelAlign}`]: y.label,
9230
- [`checkbox--${y.presentation}`]: y.presentation
9229
+ "checkbox--disabled": g.disabled,
9230
+ "checkbox--has-error": g.error,
9231
+ "checkbox--large-icon": g.iconSize === "large",
9232
+ "has-label": g.label,
9233
+ [`label-${g.labelPosition}`]: g.label,
9234
+ [`label-align-${g.labelAlign}`]: g.label,
9235
+ [`checkbox--${g.presentation}`]: g.presentation
9231
9236
  }]),
9232
9237
  style: Fe([
9233
- { width: y.width || "100%" },
9238
+ { width: g.width || "100%" },
9234
9239
  M.value,
9235
9240
  {
9236
- "--checkbox-color": y.error ? "var(--danger-color)" : y.color,
9237
- "--checkbox-hover-color": y.hoverColor ? y.hoverColor : "var(--checkbox-color)",
9238
- "--checkbox-active-color": y.activeColor ? y.activeColor : "var(--checkbox-color)",
9239
- "--checkbox-disabled-color": y.disabledColor,
9240
- "--checkbox-background-color": y.backgroundColor,
9241
- "--checkbox-border-radius": y.borderRadius,
9242
- "--checkbox-padding": y.padding
9241
+ "--checkbox-color": g.error ? "var(--danger-color)" : g.color,
9242
+ "--checkbox-hover-color": g.hoverColor ? g.hoverColor : "var(--checkbox-color)",
9243
+ "--checkbox-active-color": g.activeColor ? g.activeColor : "var(--checkbox-color)",
9244
+ "--checkbox-disabled-color": g.disabledColor,
9245
+ "--checkbox-background-color": g.backgroundColor,
9246
+ "--checkbox-border-radius": g.borderRadius,
9247
+ "--checkbox-padding": g.padding
9243
9248
  }
9244
9249
  ])
9245
9250
  }, [
9246
- y.label ? (c(), _("label", {
9251
+ g.label ? (c(), _("label", {
9247
9252
  key: 0,
9248
9253
  for: r.value,
9249
9254
  class: "label"
9250
- }, Me(y.label), 9, xd)) : I("", !0),
9251
- ue("div", {
9255
+ }, Me(g.label), 9, xd)) : I("", !0),
9256
+ ie("div", {
9252
9257
  class: "checkbox__options",
9253
9258
  style: Fe({
9254
- "grid-template-columns": `repeat(${y.columns || 1}, 1fr)`,
9255
- gap: y.presentation === "minimal" ? "0" : "0.5rem"
9259
+ "grid-template-columns": `repeat(${g.columns || 1}, 1fr)`,
9260
+ gap: g.presentation === "minimal" ? "0" : "0.5rem"
9256
9261
  })
9257
9262
  }, [
9258
9263
  m.value ? (c(), _("div", {
9259
9264
  key: 0,
9260
9265
  class: fe(["checkbox__option", {
9261
- "checkbox__option--disabled": y.disabled,
9266
+ "checkbox__option--disabled": g.disabled,
9262
9267
  "checkbox__option--selected": p(A.value[1]),
9263
- "checkbox__option--round": !y.multiple,
9268
+ "checkbox__option--round": !g.multiple,
9264
9269
  "checkbox__option--has-label": A.value[1].label
9265
9270
  }]),
9266
9271
  onClick: v[0] || (v[0] = Ee(() => w(), ["prevent"]))
9267
9272
  }, [
9268
- ue("div", Cd, [
9273
+ ie("div", Cd, [
9269
9274
  p(A.value[1]) ? (c(), we(x, {
9270
9275
  key: 0,
9271
9276
  icon: "square-check"
@@ -9280,45 +9285,45 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9280
9285
  return c(), _("div", {
9281
9286
  key: String(T.id),
9282
9287
  class: fe(["checkbox__option", {
9283
- "checkbox__option--disabled": T.disabled || y.disabled,
9288
+ "checkbox__option--disabled": T.disabled || g.disabled,
9284
9289
  "checkbox__option--selected": p(T),
9285
- "checkbox__option--round": !y.multiple && ((C = A.value) == null ? void 0 : C.length) > 1,
9290
+ "checkbox__option--round": !g.multiple && ((C = A.value) == null ? void 0 : C.length) > 1,
9286
9291
  "checkbox__option--has-label": T.label
9287
9292
  }]),
9288
9293
  onClick: Ee(() => f(T), ["prevent"])
9289
9294
  }, [
9290
- ue("div", Sd, [
9295
+ ie("div", Sd, [
9291
9296
  p(T) ? (c(), we(x, {
9292
9297
  key: 0,
9293
- icon: y.multiple ? "square-check" : "circle-check"
9298
+ icon: g.multiple ? "square-check" : "circle-check"
9294
9299
  }, null, 8, ["icon"])) : (c(), we(x, {
9295
9300
  key: 1,
9296
- icon: y.multiple ? "square" : "circle"
9301
+ icon: g.multiple ? "square" : "circle"
9297
9302
  }, null, 8, ["icon"]))
9298
9303
  ]),
9299
9304
  T.label ? (c(), _("div", Yd, Me(T.label), 1)) : I("", !0)
9300
9305
  ], 10, Od);
9301
9306
  }), 128))
9302
9307
  ], 4),
9303
- !m.value && y.required && !l.value && !s.value && !y.error ? (c(), _("span", Rd, "required")) : I("", !0),
9308
+ !m.value && g.required && !l.value && !s.value && !g.error ? (c(), _("span", Rd, "required")) : I("", !0),
9304
9309
  Ce(vt, { name: "fade" }, {
9305
9310
  default: ke(() => [
9306
- !m.value && l.value && !y.error ? (c(), _("span", Id, "saved")) : I("", !0)
9311
+ !m.value && l.value && !g.error ? (c(), _("span", Id, "saved")) : I("", !0)
9307
9312
  ]),
9308
9313
  _: 1
9309
9314
  }),
9310
9315
  Ce(vt, { name: "fade" }, {
9311
9316
  default: ke(() => [
9312
- !m.value && s.value && !y.error ? (c(), _("span", Vd, "changed")) : I("", !0)
9317
+ !m.value && s.value && !g.error ? (c(), _("span", Vd, "changed")) : I("", !0)
9313
9318
  ]),
9314
9319
  _: 1
9315
9320
  }),
9316
9321
  Ce(vt, { name: "fade" }, {
9317
9322
  default: ke(() => [
9318
- !m.value && y.error ? (c(), _("span", {
9323
+ !m.value && g.error ? (c(), _("span", {
9319
9324
  key: 0,
9320
9325
  class: "status-indicator error-indicator",
9321
- "data-error": y.error
9326
+ "data-error": g.error
9322
9327
  }, "error", 8, Bd)) : I("", !0)
9323
9328
  ]),
9324
9329
  _: 1
@@ -9338,25 +9343,25 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9338
9343
  }, Ld = { class: "list__header" }, Ed = {
9339
9344
  key: 0,
9340
9345
  class: "list__filter"
9341
- }, Hd = {
9346
+ }, Hd = { class: "list__header__extras" }, Wd = {
9342
9347
  key: 1,
9343
9348
  class: "list__actions"
9344
- }, Wd = { class: "list__content" }, zd = {
9349
+ }, zd = { class: "list__content" }, qd = {
9345
9350
  key: 0,
9346
9351
  class: "list__loading"
9347
- }, qd = { class: "list__loading-spinner" }, Ud = {
9352
+ }, Ud = { class: "list__loading-spinner" }, jd = {
9348
9353
  key: 1,
9349
9354
  class: "list__empty"
9350
- }, jd = {
9355
+ }, Qd = {
9351
9356
  key: 2,
9352
9357
  class: "list__grid"
9353
- }, Qd = { class: "list__header-row" }, Kd = ["onClick"], Gd = { class: "list__column-header" }, Xd = ["onClick", "onDblclick"], Zd = {
9358
+ }, Kd = { class: "list__header-row" }, Gd = ["onClick"], Xd = { class: "list__column-header" }, Zd = ["onClick", "onDblclick"], Jd = {
9354
9359
  key: 0,
9355
9360
  class: "list__row-actions"
9356
- }, Jd = {
9361
+ }, ec = {
9357
9362
  key: 0,
9358
9363
  class: "list__cell-icon"
9359
- }, ec = /* @__PURE__ */ ze({
9364
+ }, tc = /* @__PURE__ */ ze({
9360
9365
  __name: "List",
9361
9366
  props: {
9362
9367
  columns: {},
@@ -9371,7 +9376,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9371
9376
  emits: ["update:filter", "row-click", "row-dblclick"],
9372
9377
  setup(e, { expose: n, emit: t }) {
9373
9378
  ul((m) => ({
9374
- "57e1108e": a.width
9379
+ "4c27aef8": a.width
9375
9380
  }));
9376
9381
  const a = e, r = t, l = H(""), s = H(null), u = H("asc"), i = H("");
9377
9382
  dt(l, (m) => {
@@ -9396,34 +9401,34 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9396
9401
  if (!i.value) return a.data;
9397
9402
  const m = a.columns.filter((A) => A.filterable);
9398
9403
  return m.length === 0 ? a.data : a.data.filter((A) => m.some((M) => {
9399
- const y = A[M.key];
9400
- if (y == null) return !1;
9404
+ const g = A[M.key];
9405
+ if (g == null) return !1;
9401
9406
  switch (M.type) {
9402
9407
  case "text":
9403
- return String(y).toLowerCase().includes(i.value);
9408
+ return String(g).toLowerCase().includes(i.value);
9404
9409
  case "number":
9405
- return String(y).includes(i.value);
9410
+ return String(g).includes(i.value);
9406
9411
  case "date":
9407
- return f(y).toLowerCase().includes(i.value);
9412
+ return f(g).toLowerCase().includes(i.value);
9408
9413
  case "checkbox":
9409
- return (y != null && y.modelValue ? "yes" : "no").includes(i.value);
9414
+ return (g != null && g.modelValue ? "yes" : "no").includes(i.value);
9410
9415
  default:
9411
9416
  return !1;
9412
9417
  }
9413
9418
  }));
9414
9419
  }), S = U(() => s.value ? [...$.value].sort((m, A) => {
9415
- const M = s.value, y = m[M.key], v = A[M.key];
9420
+ const M = s.value, g = m[M.key], v = A[M.key];
9416
9421
  if (M.type === "date") {
9417
- const C = new Date(y).getTime(), N = new Date(v).getTime();
9422
+ const C = new Date(g).getTime(), N = new Date(v).getTime();
9418
9423
  return u.value === "asc" ? C - N : N - C;
9419
9424
  }
9420
9425
  if (M.type === "number")
9421
- return u.value === "asc" ? y - v : v - y;
9426
+ return u.value === "asc" ? g - v : v - g;
9422
9427
  if (M.type === "checkbox") {
9423
- const C = (y == null ? void 0 : y.modelValue) || !1, N = (v == null ? void 0 : v.modelValue) || !1;
9428
+ const C = (g == null ? void 0 : g.modelValue) || !1, N = (v == null ? void 0 : v.modelValue) || !1;
9424
9429
  return u.value === "asc" ? C === N ? 0 : C ? 1 : -1 : C === N ? 0 : C ? -1 : 1;
9425
9430
  }
9426
- const x = String(y || "").toLowerCase(), T = String(v || "").toLowerCase();
9431
+ const x = String(g || "").toLowerCase(), T = String(v || "").toLowerCase();
9427
9432
  return u.value === "asc" ? x.localeCompare(T) : T.localeCompare(x);
9428
9433
  }) : $.value);
9429
9434
  return n({
@@ -9439,7 +9444,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9439
9444
  l.value = "";
9440
9445
  }
9441
9446
  }), (m, A) => {
9442
- var y;
9447
+ var g;
9443
9448
  const M = Ut("font-awesome-icon");
9444
9449
  return c(), _("div", {
9445
9450
  class: fe(["list", [`list--${m.presentation}`]]),
@@ -9451,7 +9456,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9451
9456
  "--width": a.width
9452
9457
  })
9453
9458
  }, [
9454
- ue("div", Ld, [
9459
+ ie("div", Ld, [
9455
9460
  m.filter ? (c(), _("div", Ed, [
9456
9461
  Ce(Su, {
9457
9462
  modelValue: l.value,
@@ -9464,7 +9469,10 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9464
9469
  presentation: m.presentation
9465
9470
  }, null, 8, ["modelValue", "placeholder", "presentation"])
9466
9471
  ])) : I("", !0),
9467
- (y = m.actions) != null && y.length ? (c(), _("div", Hd, [
9472
+ ie("div", Hd, [
9473
+ de(m.$slots, "header_extras", {}, void 0, !0)
9474
+ ]),
9475
+ (g = m.actions) != null && g.length ? (c(), _("div", Wd, [
9468
9476
  (c(!0), _(he, null, Ae(m.actions, (v, x) => {
9469
9477
  var T;
9470
9478
  return c(), we(rr, Ze({
@@ -9478,17 +9486,17 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9478
9486
  }), 128))
9479
9487
  ])) : I("", !0)
9480
9488
  ]),
9481
- ue("div", Wd, [
9482
- m.loading ? (c(), _("div", zd, [
9483
- ue("div", qd, [
9489
+ ie("div", zd, [
9490
+ m.loading ? (c(), _("div", qd, [
9491
+ ie("div", Ud, [
9484
9492
  Ce(M, {
9485
9493
  icon: ["fas", "spinner"],
9486
9494
  spin: ""
9487
9495
  }),
9488
- A[1] || (A[1] = ue("span", null, "Loading...", -1))
9496
+ A[1] || (A[1] = ie("span", null, "Loading...", -1))
9489
9497
  ])
9490
- ])) : S.value.length ? (c(), _("div", jd, [
9491
- ue("div", Qd, [
9498
+ ])) : S.value.length ? (c(), _("div", Qd, [
9499
+ ie("div", Kd, [
9492
9500
  (c(!0), _(he, null, Ae(m.columns, (v) => {
9493
9501
  var x, T, C, N;
9494
9502
  return c(), _("div", {
@@ -9504,8 +9512,8 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9504
9512
  }),
9505
9513
  onClick: (W) => p(v)
9506
9514
  }, [
9507
- ue("div", Gd, [
9508
- ue("span", null, Me(v.label), 1),
9515
+ ie("div", Xd, [
9516
+ ie("span", null, Me(v.label), 1),
9509
9517
  v.sortable ? (c(), _("span", {
9510
9518
  key: 0,
9511
9519
  class: fe(["list__sort-icon", {
@@ -9519,7 +9527,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9519
9527
  }, null, 8, ["icon"])
9520
9528
  ], 2)) : I("", !0)
9521
9529
  ])
9522
- ], 14, Kd);
9530
+ ], 14, Gd);
9523
9531
  }), 128))
9524
9532
  ]),
9525
9533
  (c(!0), _(he, null, Ae(S.value, (v, x) => (c(), _("div", {
@@ -9544,7 +9552,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9544
9552
  ], 64)) : T.type === "date" ? (c(), _(he, { key: 2 }, [
9545
9553
  pt(Me(f(v[T.key])), 1)
9546
9554
  ], 64)) : T.type === "action" ? (c(), _(he, { key: 3 }, [
9547
- v[T.key] ? (c(), _("div", Zd, [
9555
+ v[T.key] ? (c(), _("div", Jd, [
9548
9556
  (c(!0), _(he, null, Ae(v[T.key], (C, N) => {
9549
9557
  var W;
9550
9558
  return c(), we(rr, Ze({
@@ -9552,7 +9560,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9552
9560
  ref_for: !0
9553
9561
  }, C, {
9554
9562
  href: m.presentation === "minimal" && !C.href ? `#/${C.id ? C.id : (W = C.label) == null ? void 0 : W.toLowerCase()}` : C.href,
9555
- onClick: Ee((b) => C.onActionClick ? C.onActionClick(v, C) : null, ["stop"]),
9563
+ onClick: Ee((y) => C.onActionClick ? C.onActionClick(v, C) : null, ["stop"]),
9556
9564
  presentation: m.presentation,
9557
9565
  size: "small",
9558
9566
  color: m.presentation === "minimal" ? "inherit" : ""
@@ -9570,7 +9578,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9570
9578
  presentation: m.presentation
9571
9579
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onClick", "presentation"])) : I("", !0)
9572
9580
  ], 64)) : T.type === "icon" ? (c(), _(he, { key: 5 }, [
9573
- v[T.key] ? (c(), _("div", Jd, [
9581
+ v[T.key] ? (c(), _("div", ec, [
9574
9582
  Ce(M, {
9575
9583
  icon: v[T.key].icon,
9576
9584
  style: Fe({ color: v[T.key].color })
@@ -9578,22 +9586,22 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9578
9586
  ])) : I("", !0)
9579
9587
  ], 64)) : I("", !0)
9580
9588
  ], 6))), 128))
9581
- ], 42, Xd))), 128))
9582
- ])) : (c(), _("div", Ud, Me(m.emptyMessage || "No data available"), 1))
9589
+ ], 42, Zd))), 128))
9590
+ ])) : (c(), _("div", jd, Me(m.emptyMessage || "No data available"), 1))
9583
9591
  ])
9584
9592
  ], 6);
9585
9593
  };
9586
9594
  }
9587
- }), vc = /* @__PURE__ */ Kt(ec, [["__scopeId", "data-v-364e2d2e"]]), tc = {
9595
+ }), fc = /* @__PURE__ */ Kt(tc, [["__scopeId", "data-v-752964e0"]]), ac = {
9588
9596
  key: 0,
9589
9597
  class: "modal-large-icon"
9590
- }, ac = {
9598
+ }, nc = {
9591
9599
  class: "modal-header",
9592
9600
  id: "modalTitle"
9593
- }, nc = { class: "header-content" }, rc = {
9601
+ }, rc = { class: "header-content" }, lc = {
9594
9602
  class: "modal-body",
9595
9603
  id: "modalContent"
9596
- }, lc = { class: "modal-footer" }, oc = /* @__PURE__ */ ze({
9604
+ }, oc = { class: "modal-footer" }, sc = /* @__PURE__ */ ze({
9597
9605
  __name: "Modal",
9598
9606
  props: {
9599
9607
  modelValue: { type: Boolean, default: !1 },
@@ -9634,22 +9642,22 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9634
9642
  key: 0,
9635
9643
  class: fe(["modal-backdrop", i.modalClass])
9636
9644
  }, [
9637
- ue("div", {
9645
+ ie("div", {
9638
9646
  class: "modal",
9639
9647
  style: Fe(u.value),
9640
9648
  role: "dialog",
9641
9649
  "aria-labelledby": "modalTitle",
9642
9650
  "aria-describedby": "modalContent"
9643
9651
  }, [
9644
- a.isLargeIcon && a.icon ? (c(), _("div", tc, [
9652
+ a.isLargeIcon && a.icon ? (c(), _("div", ac, [
9645
9653
  Ce(p, {
9646
9654
  icon: a.icon,
9647
9655
  style: Fe({ color: a.iconColor })
9648
9656
  }, null, 8, ["icon", "style"])
9649
9657
  ])) : I("", !0),
9650
- ue("div", ac, [
9651
- ce(i.$slots, "header", {}, () => [
9652
- ue("div", nc, [
9658
+ ie("div", nc, [
9659
+ de(i.$slots, "header", {}, () => [
9660
+ ie("div", rc, [
9653
9661
  a.icon && !a.isLargeIcon ? (c(), we(p, {
9654
9662
  key: 0,
9655
9663
  icon: a.icon,
@@ -9661,7 +9669,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9661
9669
  }, Me(i.title), 5)) : I("", !0)
9662
9670
  ])
9663
9671
  ], !0),
9664
- ue("button", {
9672
+ ie("button", {
9665
9673
  type: "button",
9666
9674
  class: "modal-close",
9667
9675
  onClick: l,
@@ -9670,11 +9678,11 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9670
9678
  Ce(p, { icon: "rectangle-xmark" })
9671
9679
  ])
9672
9680
  ]),
9673
- ue("div", rc, [
9674
- ce(i.$slots, "default", {}, void 0, !0)
9681
+ ie("div", lc, [
9682
+ de(i.$slots, "default", {}, void 0, !0)
9675
9683
  ]),
9676
- ue("div", lc, [
9677
- ce(i.$slots, "footer", {}, void 0, !0)
9684
+ ie("div", oc, [
9685
+ de(i.$slots, "footer", {}, void 0, !0)
9678
9686
  ])
9679
9687
  ], 4)
9680
9688
  ], 2)) : I("", !0)
@@ -9684,14 +9692,14 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9684
9692
  ]);
9685
9693
  };
9686
9694
  }
9687
- }), fc = /* @__PURE__ */ Kt(oc, [["__scopeId", "data-v-5dd6ca8b"]]);
9695
+ }), mc = /* @__PURE__ */ Kt(sc, [["__scopeId", "data-v-5dd6ca8b"]]);
9688
9696
  export {
9689
9697
  rr as Action,
9690
9698
  Nd as Checkbox,
9691
- cc as Dropdown,
9692
- uc as FileUpload,
9693
- vc as List,
9694
- fc as Modal,
9695
- dc as Navigation,
9699
+ vc as Dropdown,
9700
+ dc as FileUpload,
9701
+ fc as List,
9702
+ mc as Modal,
9703
+ cc as Navigation,
9696
9704
  Su as TextInput
9697
9705
  };