@a-vision-software/vue-input-components 1.4.8 → 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.
@@ -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
  }
@@ -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,
@@ -3806,33 +3806,33 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
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((ue) => y(ue, Vt(V, +ue.month, +ue.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));
@@ -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 = () => {
@@ -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
  };
@@ -4141,7 +4141,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4141
4141
  ], 12, ai)) : I("", !0),
4142
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
  }, [
@@ -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);
@@ -4333,7 +4333,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4333
4333
  ref_for: !0,
4334
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",
@@ -4359,10 +4359,10 @@ 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
@@ -4452,14 +4452,14 @@ 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
4465
  ie("div", {
@@ -4471,7 +4471,7 @@ 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
4477
  M.$slots["arrow-left"] ? de(M.$slots, "arrow-left", { key: 0 }) : I("", !0),
@@ -4485,8 +4485,8 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
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
4491
  M.$slots.year ? de(M.$slots, "year", {
4492
4492
  key: 0,
@@ -4502,7 +4502,7 @@ 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
4508
  M.$slots["arrow-right"] ? de(M.$slots, "arrow-right", { key: 0 }) : I("", !0),
@@ -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,10 +4527,10 @@ 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
4536
  M.$slots["calendar-icon"] ? de(M.$slots, "calendar-icon", { key: 0 }) : I("", !0),
@@ -4540,10 +4540,10 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
4540
4540
  }, [
4541
4541
  M.$slots["year-overlay-value"] ? {
4542
4542
  name: "item",
4543
- fn: ke(({ item: g }) => [
4543
+ fn: ke(({ item: b }) => [
4544
4544
  de(M.$slots, "year-overlay-value", {
4545
- text: g.text,
4546
- value: g.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,
@@ -4708,7 +4708,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
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
  }
@@ -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 }) => [
4830
+ default: ke(({ instance: y }) => [
4831
4831
  N.$slots["top-extra"] ? de(N.$slots, "top-extra", {
4832
4832
  key: 0,
4833
4833
  value: N.internalModelValue
4834
4834
  }) : I("", !0),
4835
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
- de(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 }) => [
4879
+ fn: ke(({ item: b }) => [
4880
4880
  de(N.$slots, "month-overlay-value", {
4881
- text: g.text,
4882
- value: g.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"));
@@ -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,
@@ -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
  );
@@ -5129,7 +5129,7 @@ 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}`,
@@ -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,12 +5365,12 @@ 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
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 }))
@@ -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")),
@@ -5457,11 +5457,11 @@ 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
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 }))
@@ -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],
@@ -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: (ue) => g.value = ue,
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,
@@ -5767,7 +5767,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
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)
@@ -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
  }
@@ -6038,7 +6038,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
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
6044
  ie("div", {
@@ -6071,7 +6071,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6071
6071
  ]),
6072
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(() => [
@@ -6189,8 +6189,8 @@ 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
@@ -6200,7 +6200,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
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,11 +6236,11 @@ 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
  }
@@ -6332,7 +6332,7 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6332
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,7 +6521,7 @@ 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: "",
@@ -6554,7 +6554,7 @@ 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
6560
  changeMonth: ue,
@@ -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)),
@@ -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,
@@ -6789,13 +6789,13 @@ 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
- de(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"])
@@ -6812,8 +6812,8 @@ 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
6818
  x.$slots.quarter ? de(x.$slots, "quarter", {
6819
6819
  key: 0,
@@ -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 });
@@ -6958,8 +6958,8 @@ const mn = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
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"));
@@ -7056,7 +7056,7 @@ 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
7062
  de(Y.$slots, "left-sidebar", ot(ht(L.value)))
@@ -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")),
@@ -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);
@@ -7416,7 +7416,7 @@ const lu = ({
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
7421
  const ue = Se(o.value, p.value);
7422
7422
  return V ? Xe(e.value[0], o.value) && ue : je(e.value[0], o.value) && ue;
@@ -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,7 +7463,7 @@ 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
7468
  const { before: V, after: ue } = Jn(+i.value.maxRange, e.value[0]);
7469
7469
  return ca(o.value, V) || ta(o.value, ue);
@@ -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);
@@ -7518,7 +7518,7 @@ const lu = ({
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(), ue = t.value.count > 0 ? o.current && M(o, !1) && b() : M(o, !1) && b();
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
7522
  return { isRangeStart: V, isRangeEnd: ue };
7523
7523
  }, F = (o) => {
7524
7524
  const { isRangeStart: V, isRangeEnd: ue } = k(o);
@@ -7527,8 +7527,8 @@ const lu = ({
7527
7527
  dp__range_end: ue,
7528
7528
  dp__range_between: B(o),
7529
7529
  dp__date_hover: Se(o.value, p.value) && !V && !ue && !n.weekPicker,
7530
- dp__date_hover_start: y(o, !0),
7531
- dp__date_hover_end: y(o, !1)
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
  }
@@ -7789,8 +7789,8 @@ const lu = ({
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,7 +7819,7 @@ 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,
@@ -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
@@ -7972,39 +7972,39 @@ const lu = ({
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 = () => {
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
7983
  var j, ce;
7984
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
7990
  const ce = ((j = p.value) == null ? void 0 : j.$el.getBoundingClientRect().width) ?? 0;
7991
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
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"), g.value.closeOnClearValue && rt();
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) => {
@@ -8013,7 +8013,7 @@ const lu = ({
8013
8013
  W.value.enabled || (G.value = null);
8014
8014
  }, rt = (j = !1) => {
8015
8015
  var ce, 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 = (ce = p.value) == null ? void 0 : ce.$el) == null || ge.remove());
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
8017
  }, xt = (j, ce, ge = !1) => {
8018
8018
  if (!j) {
8019
8019
  G.value = null;
@@ -8045,7 +8045,7 @@ const lu = ({
8045
8045
  }, R = (j, ce) => {
8046
8046
  var ge;
8047
8047
  (ge = p.value) == null || ge.switchView(j, ce);
8048
- }, J = (j, ce) => g.value.onClickOutside ? g.value.onClickOutside(j, ce) : rt(!0), be = (j = 0) => {
8048
+ }, J = (j, ce) => b.value.onClickOutside ? b.value.onClickOutside(j, ce) : rt(!0), be = (j = 0) => {
8049
8049
  var ce;
8050
8050
  (ce = p.value) == null || ce.handleFlow(j);
8051
8051
  }, $e = () => P;
@@ -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,8 +8114,8 @@ 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",
@@ -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),
8311
+ }, Me(y.label), 9, ku)) : I("", !0),
8307
8312
  ie("div", Du, [
8308
- b.icon ? (c(), _("div", {
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) => {
@@ -8526,7 +8531,7 @@ 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
  };
@@ -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", {
@@ -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),
9030
+ }, Me(b.label), 9, cd)) : I("", !0),
9026
9031
  ie("div", vd, [
9027
- g.icon ? (c(), _("div", fd, [
9028
- g.icon.startsWith("img:") ? (c(), _("img", {
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)),
9057
+ ])) : (c(), _("div", pd, Me(b.placeholder), 1)),
9053
9058
  ie("div", gd, [
9054
- i.value && !g.multiple ? (c(), we(te, {
9059
+ i.value && !b.multiple ? (c(), we(te, {
9055
9060
  key: 0,
9056
9061
  icon: "xmark",
9057
9062
  class: "dropdown__clear",
@@ -9062,32 +9067,32 @@ 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, [
9095
+ b.filterable ? (c(), _("div", Md, [
9091
9096
  ba(ie("input", {
9092
9097
  ref_key: "filterInput",
9093
9098
  ref: s,
@@ -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"
@@ -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,50 +9222,50 @@ 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),
9255
+ }, Me(g.label), 9, xd)) : I("", !0),
9251
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"]))
@@ -9280,9 +9285,9 @@ 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"])
@@ -9290,35 +9295,35 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9290
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
@@ -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}`]]),
@@ -9467,7 +9472,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9467
9472
  ie("div", Hd, [
9468
9473
  de(m.$slots, "header_extras", {}, void 0, !0)
9469
9474
  ]),
9470
- (y = m.actions) != null && y.length ? (c(), _("div", Wd, [
9475
+ (g = m.actions) != null && g.length ? (c(), _("div", Wd, [
9471
9476
  (c(!0), _(he, null, Ae(m.actions, (v, x) => {
9472
9477
  var T;
9473
9478
  return c(), we(rr, Ze({
@@ -9555,7 +9560,7 @@ const ku = ["for"], Du = { class: "text-input__wrapper" }, Mu = ["id", "type", "
9555
9560
  ref_for: !0
9556
9561
  }, C, {
9557
9562
  href: m.presentation === "minimal" && !C.href ? `#/${C.id ? C.id : (W = C.label) == null ? void 0 : W.toLowerCase()}` : C.href,
9558
- onClick: Ee((b) => C.onActionClick ? C.onActionClick(v, C) : null, ["stop"]),
9563
+ onClick: Ee((y) => C.onActionClick ? C.onActionClick(v, C) : null, ["stop"]),
9559
9564
  presentation: m.presentation,
9560
9565
  size: "small",
9561
9566
  color: m.presentation === "minimal" ? "inherit" : ""