@solfacil/girassol 0.56.1 → 0.58.0

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.
@@ -1619,14 +1619,14 @@ function Pc(e, t, n) {
1619
1619
  p && sm({ value: S, prop: v, handleChange: Z });
1620
1620
  const te = () => {
1621
1621
  D.touched = !0;
1622
- }, X = j(() => {
1622
+ }, J = j(() => {
1623
1623
  let P = c(t);
1624
1624
  const me = c(O == null ? void 0 : O.schema);
1625
1625
  return me && !Un(me) && (P = om(me, c(e)) || P), Un(P) || Dn(P) || Array.isArray(P) ? P : Dc(P);
1626
1626
  });
1627
1627
  async function le(P) {
1628
1628
  var me, ve;
1629
- return O != null && O.validateSchema ? (me = (await O.validateSchema(P)).results[c(e)]) !== null && me !== void 0 ? me : { valid: !0, errors: [] } : Tc(S.value, X.value, {
1629
+ return O != null && O.validateSchema ? (me = (await O.validateSchema(P)).results[c(e)]) !== null && me !== void 0 ? me : { valid: !0, errors: [] } : Tc(S.value, J.value, {
1630
1630
  name: c(s) || c(e),
1631
1631
  values: (ve = O == null ? void 0 : O.values) !== null && ve !== void 0 ? ve : {},
1632
1632
  bails: r
@@ -1649,7 +1649,7 @@ function Pc(e, t, n) {
1649
1649
  D.touched = P;
1650
1650
  }
1651
1651
  let k, T = Ye(S.value);
1652
- function E() {
1652
+ function $() {
1653
1653
  k = $e(S, (P, me) => {
1654
1654
  if (ot(P, me) && ot(P, T))
1655
1655
  return;
@@ -1658,8 +1658,8 @@ function Pc(e, t, n) {
1658
1658
  deep: !0
1659
1659
  });
1660
1660
  }
1661
- E();
1662
- function J(P) {
1661
+ $();
1662
+ function X(P) {
1663
1663
  var me;
1664
1664
  k == null || k();
1665
1665
  const ve = P && "value" in P ? P.value : Q.value;
@@ -1669,7 +1669,7 @@ function Pc(e, t, n) {
1669
1669
  touched: (me = P == null ? void 0 : P.touched) !== null && me !== void 0 ? me : !1,
1670
1670
  errors: (P == null ? void 0 : P.errors) || []
1671
1671
  }), D.pending = !1, D.validated = !1, _(), Dt(() => {
1672
- E();
1672
+ $();
1673
1673
  });
1674
1674
  }
1675
1675
  function C(P) {
@@ -1691,8 +1691,8 @@ function Pc(e, t, n) {
1691
1691
  uncheckedValue: f,
1692
1692
  bails: r,
1693
1693
  keepValueOnUnmount: m,
1694
- resetField: J,
1695
- handleReset: () => J(),
1694
+ resetField: X,
1695
+ handleReset: () => X(),
1696
1696
  validate: V,
1697
1697
  handleChange: Z,
1698
1698
  handleBlur: te,
@@ -1712,8 +1712,8 @@ function Pc(e, t, n) {
1712
1712
  O.register(de), sc(() => {
1713
1713
  M = !0, O.unregister(de);
1714
1714
  });
1715
- const $ = j(() => {
1716
- const P = X.value;
1715
+ const E = j(() => {
1716
+ const P = J.value;
1717
1717
  return !P || Dn(P) || Un(P) || Array.isArray(P) ? {} : Object.keys(P).reduce((me, ve) => {
1718
1718
  const ge = Gf(P[ve]).map((Ce) => Ce.__locatorRef).reduce((Ce, tt) => {
1719
1719
  const Me = Xe(O.values, tt) || O.values[tt];
@@ -1722,7 +1722,7 @@ function Pc(e, t, n) {
1722
1722
  return Object.assign(me, ge), me;
1723
1723
  }, {});
1724
1724
  });
1725
- return $e($, (P, me) => {
1725
+ return $e(E, (P, me) => {
1726
1726
  if (!Object.keys(P).length)
1727
1727
  return;
1728
1728
  !ot(P, me) && (D.validated ? B() : _());
@@ -1881,13 +1881,13 @@ re({
1881
1881
  }, Q = function(F) {
1882
1882
  S(F), t.emit("update:modelValue", s.value);
1883
1883
  }, D = j(() => {
1884
- const { validateOnInput: G, validateOnChange: F, validateOnBlur: te, validateOnModelUpdate: X } = um(e), le = [m, t.attrs.onBlur, te ? f : void 0].filter(Boolean), B = [(h) => w(h, G), t.attrs.onInput].filter(Boolean), _ = [(h) => w(h, F), t.attrs.onChange].filter(Boolean), V = {
1884
+ const { validateOnInput: G, validateOnChange: F, validateOnBlur: te, validateOnModelUpdate: J } = um(e), le = [m, t.attrs.onBlur, te ? f : void 0].filter(Boolean), B = [(h) => w(h, G), t.attrs.onInput].filter(Boolean), _ = [(h) => w(h, F), t.attrs.onChange].filter(Boolean), V = {
1885
1885
  name: e.name,
1886
1886
  onBlur: le,
1887
1887
  onInput: B,
1888
1888
  onChange: _
1889
1889
  };
1890
- V["onUpdate:modelValue"] = (h) => w(h, X), Tn(t.attrs.type) && O && (V.checked = O.value);
1890
+ V["onUpdate:modelValue"] = (h) => w(h, J), Tn(t.attrs.type) && O && (V.checked = O.value);
1891
1891
  const Z = Is(e, t);
1892
1892
  return Lf(Z, t.attrs) && (V.value = s.value), V;
1893
1893
  });
@@ -1963,7 +1963,7 @@ function fm(e) {
1963
1963
  }, {})), M = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), w = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: S, originalInitialValues: Q, setInitialValues: D } = ym(r, u, e == null ? void 0 : e.initialValues), z = mm(r, u, Q, v), G = j(() => [...i, ...at(r.value)].reduce((H, ae) => {
1964
1964
  const Ie = Xe(u, ae);
1965
1965
  return Yt(H, ae, Ie), H;
1966
- }, {})), F = e == null ? void 0 : e.validationSchema, te = ys(Qt, 5), X = ys(Qt, 5), le = kr(async (H) => await H === "silent" ? te() : X(), (H, [ae]) => {
1966
+ }, {})), F = e == null ? void 0 : e.validationSchema, te = ys(Qt, 5), J = ys(Qt, 5), le = kr(async (H) => await H === "silent" ? te() : J(), (H, [ae]) => {
1967
1967
  const Ie = Z.fieldsByPath.value || {}, xe = at(Z.errorBag.value);
1968
1968
  return [
1969
1969
  .../* @__PURE__ */ new Set([...at(H.results), ...at(Ie), ...xe])
@@ -1973,7 +1973,7 @@ function fm(e) {
1973
1973
  valid: !Mt.length
1974
1974
  };
1975
1975
  if (De.results[Te] = A, A.valid || (De.errors[Te] = A.errors[0]), !Fe)
1976
- return E(Te, Mt), De;
1976
+ return $(Te, Mt), De;
1977
1977
  if (k(Fe, (ce) => ce.meta.valid = A.valid), ae === "silent")
1978
1978
  return De;
1979
1979
  const ne = Array.isArray(Fe) ? Fe.some((ce) => ce.meta.validated) : Fe.meta.validated;
@@ -1990,8 +1990,8 @@ function fm(e) {
1990
1990
  return Ie(H ? Mt : Fe, {
1991
1991
  evt: De,
1992
1992
  controlledValues: Mt,
1993
- setErrors: J,
1994
- setFieldError: E,
1993
+ setErrors: X,
1994
+ setFieldError: $,
1995
1995
  setTouched: me,
1996
1996
  setFieldTouched: P,
1997
1997
  setValues: oe,
@@ -2034,8 +2034,8 @@ function fm(e) {
2034
2034
  validateField: Ee,
2035
2035
  setFieldValue: C,
2036
2036
  setValues: oe,
2037
- setErrors: J,
2038
- setFieldError: E,
2037
+ setErrors: X,
2038
+ setFieldError: $,
2039
2039
  setFieldTouched: P,
2040
2040
  setTouched: me,
2041
2041
  resetForm: ve,
@@ -2043,7 +2043,7 @@ function fm(e) {
2043
2043
  stageInitialValue: on,
2044
2044
  unsetInitialValue: _e,
2045
2045
  setFieldInitialValue: jt,
2046
- useFieldModel: $
2046
+ useFieldModel: E
2047
2047
  };
2048
2048
  function h(H) {
2049
2049
  return Array.isArray(H);
@@ -2056,10 +2056,10 @@ function fm(e) {
2056
2056
  !ae || k(ae, H);
2057
2057
  });
2058
2058
  }
2059
- function E(H, ae) {
2059
+ function $(H, ae) {
2060
2060
  m(H, ae);
2061
2061
  }
2062
- function J(H) {
2062
+ function X(H) {
2063
2063
  y(H);
2064
2064
  }
2065
2065
  function C(H, ae, { force: Ie } = { force: !1 }) {
@@ -2092,7 +2092,7 @@ function fm(e) {
2092
2092
  deep: !0
2093
2093
  }), i.add(c(H)), ae;
2094
2094
  }
2095
- function $(H) {
2095
+ function E(H) {
2096
2096
  return Array.isArray(H) ? H.map(de) : de(H);
2097
2097
  }
2098
2098
  function P(H, ae) {
@@ -2107,7 +2107,7 @@ function fm(e) {
2107
2107
  function ve(H) {
2108
2108
  a = !0, T((Ie) => Ie.resetField());
2109
2109
  const ae = H != null && H.values ? H.values : Q.value;
2110
- D(ae), oe(ae), H != null && H.touched && me(H.touched), J((H == null ? void 0 : H.errors) || {}), l.value = (H == null ? void 0 : H.submitCount) || 0, Dt(() => {
2110
+ D(ae), oe(ae), H != null && H.touched && me(H.touched), X((H == null ? void 0 : H.errors) || {}), l.value = (H == null ? void 0 : H.submitCount) || 0, Dt(() => {
2111
2111
  a = !1;
2112
2112
  });
2113
2113
  }
@@ -2138,7 +2138,7 @@ function fm(e) {
2138
2138
  function tt(H) {
2139
2139
  const ae = c(H.name);
2140
2140
  ge(H, ae), gt(H.name) && $e(H.name, async (xe, Ae) => {
2141
- await Dt(), Ce(H, Ae), ge(H, xe), (v.value[Ae] || v.value[xe]) && (E(Ae, void 0), Ee(xe)), await Dt(), N(Ae) || ai(u, Ae);
2141
+ await Dt(), Ce(H, Ae), ge(H, xe), (v.value[Ae] || v.value[xe]) && ($(Ae, void 0), Ee(xe)), await Dt(), N(Ae) || ai(u, Ae);
2142
2142
  });
2143
2143
  const Ie = c(H.errorMessage);
2144
2144
  Ie && (M == null ? void 0 : M[ae]) !== Ie && Ee(ae), delete M[ae];
@@ -2158,7 +2158,7 @@ function fm(e) {
2158
2158
  } else
2159
2159
  Te === c(H.checkedValue) && ai(u, ae);
2160
2160
  if (!N(ae)) {
2161
- if (E(ae, void 0), De || xe && Array.isArray(Te) && !Nc(Te))
2161
+ if ($(ae, void 0), De || xe && Array.isArray(Te) && !Nc(Te))
2162
2162
  return;
2163
2163
  ai(u, ae);
2164
2164
  }
@@ -2211,7 +2211,7 @@ function fm(e) {
2211
2211
  Sc(ae) && ae.target.submit();
2212
2212
  });
2213
2213
  return ct(() => {
2214
- if (e != null && e.initialErrors && J(e.initialErrors), e != null && e.initialTouched && me(e.initialTouched), e != null && e.validateOnMount) {
2214
+ if (e != null && e.initialErrors && X(e.initialErrors), e != null && e.initialTouched && me(e.initialTouched), e != null && e.validateOnMount) {
2215
2215
  je();
2216
2216
  return;
2217
2217
  }
@@ -2336,14 +2336,14 @@ re({
2336
2336
  initialTouched: e.initialTouched,
2337
2337
  validateOnMount: e.validateOnMount,
2338
2338
  keepValuesOnUnmount: a
2339
- }), D = N((X, { evt: le }) => {
2339
+ }), D = N((J, { evt: le }) => {
2340
2340
  Sc(le) && le.target.submit();
2341
2341
  }, e.onInvalidSubmit), z = e.onSubmit ? N(e.onSubmit, e.onInvalidSubmit) : D;
2342
- function G(X) {
2343
- Al(X) && X.preventDefault(), v(), typeof t.attrs.onReset == "function" && t.attrs.onReset();
2342
+ function G(J) {
2343
+ Al(J) && J.preventDefault(), v(), typeof t.attrs.onReset == "function" && t.attrs.onReset();
2344
2344
  }
2345
- function F(X, le) {
2346
- return N(typeof X == "function" && !le ? X : le, e.onInvalidSubmit)(X);
2345
+ function F(J, le) {
2346
+ return N(typeof J == "function" && !le ? J : le, e.onInvalidSubmit)(J);
2347
2347
  }
2348
2348
  function te() {
2349
2349
  return {
@@ -3603,12 +3603,12 @@ function M0(e, t = {}) {
3603
3603
  }, z = [
3604
3604
  kt(e, "touchstart", (F) => {
3605
3605
  S.capture && !S.passive && F.preventDefault();
3606
- const [te, X] = O(F);
3607
- M(te, X), w(te, X), r == null || r(F);
3606
+ const [te, J] = O(F);
3607
+ M(te, J), w(te, J), r == null || r(F);
3608
3608
  }, S),
3609
3609
  kt(e, "touchmove", (F) => {
3610
- const [te, X] = O(F);
3611
- w(te, X), !N.value && p.value && (N.value = !0), N.value && (i == null || i(F));
3610
+ const [te, J] = O(F);
3611
+ w(te, J), !N.value && p.value && (N.value = !0), N.value && (i == null || i(F));
3612
3612
  }, S),
3613
3613
  kt(e, "touchend", D, S),
3614
3614
  kt(e, "touchcancel", D, S)
@@ -4540,7 +4540,7 @@ const El = { name: "material-symbols-close-rounded", render: M1 }, b1 = ["data-t
4540
4540
  const n = e, i = W(), a = W(!1), r = W(""), o = j(
4541
4541
  () => {
4542
4542
  var T;
4543
- return n.fetchOnSearch ? n.options : (T = n.options) == null ? void 0 : T.filter((E) => new RegExp(r.value, "gi").test(`${E.name}`));
4543
+ return n.fetchOnSearch ? n.options : (T = n.options) == null ? void 0 : T.filter(($) => new RegExp(r.value, "gi").test(`${$.name}`));
4544
4544
  }
4545
4545
  );
4546
4546
  Ol(i, () => {
@@ -4566,24 +4566,24 @@ const El = { name: "material-symbols-close-rounded", render: M1 }, b1 = ["data-t
4566
4566
  t("openDropdown"), a.value = !0, n.dropdownPosition === "dynamic" && h();
4567
4567
  }
4568
4568
  function v() {
4569
- X(), t("closeDropdown");
4569
+ J(), t("closeDropdown");
4570
4570
  }
4571
4571
  function p(T) {
4572
4572
  if (Array.isArray(s.value)) {
4573
- const E = s.value.findIndex(
4574
- ({ value: J }) => J === T.value
4573
+ const $ = s.value.findIndex(
4574
+ ({ value: X }) => X === T.value
4575
4575
  );
4576
- return E === -1 ? [...s.value, T] : s.value.filter((J, C) => C !== E);
4576
+ return $ === -1 ? [...s.value, T] : s.value.filter((X, C) => C !== $);
4577
4577
  }
4578
4578
  return [T];
4579
4579
  }
4580
4580
  function N(T) {
4581
- const E = n.multiple ? p(T) : T;
4582
- s.value = E, n.closeOnSelect && !n.multiple && v();
4581
+ const $ = n.multiple ? p(T) : T;
4582
+ s.value = $, n.closeOnSelect && !n.multiple && v();
4583
4583
  }
4584
4584
  function b(T) {
4585
- var E;
4586
- return Array.isArray(s.value) ? s.value.some(({ value: J }) => J === T.value) : T.value === ((E = s == null ? void 0 : s.value) == null ? void 0 : E.value);
4585
+ var $;
4586
+ return Array.isArray(s.value) ? s.value.some(({ value: X }) => X === T.value) : T.value === (($ = s == null ? void 0 : s.value) == null ? void 0 : $.value);
4587
4587
  }
4588
4588
  const O = W(), M = W();
4589
4589
  function w() {
@@ -4609,16 +4609,16 @@ const El = { name: "material-symbols-close-rounded", render: M1 }, b1 = ["data-t
4609
4609
  fallback: w,
4610
4610
  exclude: ["Enter", "NumpadEnter", "Space"]
4611
4611
  });
4612
- function X() {
4612
+ function J() {
4613
4613
  a.value = !1, r.value = "", F();
4614
4614
  }
4615
4615
  function le(T) {
4616
- return (E) => T === "search" ? O.value = E == null ? void 0 : E.input : M.value = E == null ? void 0 : E.list;
4616
+ return ($) => T === "search" ? O.value = $ == null ? void 0 : $.input : M.value = $ == null ? void 0 : $.list;
4617
4617
  }
4618
4618
  function B() {
4619
- var E;
4619
+ var $;
4620
4620
  const T = s.value;
4621
- return (E = T == null ? void 0 : T.name) != null ? E : n.placeholder;
4621
+ return ($ = T == null ? void 0 : T.name) != null ? $ : n.placeholder;
4622
4622
  }
4623
4623
  const _ = j(
4624
4624
  () => !!(u != null && u.value) || !!n.helperText
@@ -4630,21 +4630,21 @@ const El = { name: "material-symbols-close-rounded", render: M1 }, b1 = ["data-t
4630
4630
  });
4631
4631
  function h() {
4632
4632
  if (i.value) {
4633
- const T = i.value.getBoundingClientRect(), E = window.outerHeight - T.bottom > 300 ? "bottom" : "top";
4634
- y.value = E;
4633
+ const T = i.value.getBoundingClientRect(), $ = window.outerHeight - T.bottom > 300 ? "bottom" : "top";
4634
+ y.value = $;
4635
4635
  }
4636
4636
  }
4637
4637
  function k() {
4638
4638
  s.value = [], v();
4639
4639
  }
4640
- return (T, E) => {
4641
- var J;
4640
+ return (T, $) => {
4641
+ var X;
4642
4642
  return d(), I("div", {
4643
4643
  ref_key: "el",
4644
4644
  ref: i,
4645
- class: ee(["sol-select-core", [`-${e.size} -${y.value}`, { "-selected-multiple": e.multiple && Array.isArray(c(s)) && ((J = c(s)) == null ? void 0 : J.length) }]]),
4645
+ class: ee(["sol-select-core", [`-${e.size} -${y.value}`, { "-selected-multiple": e.multiple && Array.isArray(c(s)) && ((X = c(s)) == null ? void 0 : X.length) }]]),
4646
4646
  "data-testid": `select-${e.id}`,
4647
- onKeydownPassive: E[3] || (E[3] = (...C) => c(te) && c(te)(...C))
4647
+ onKeydownPassive: $[3] || ($[3] = (...C) => c(te) && c(te)(...C))
4648
4648
  }, [
4649
4649
  L(T.$slots, "label", {
4650
4650
  id: `select-label-${e.id}`,
@@ -4683,14 +4683,14 @@ const El = { name: "material-symbols-close-rounded", render: M1 }, b1 = ["data-t
4683
4683
  var C, oe, de;
4684
4684
  return [
4685
4685
  e.multiple && Array.isArray(c(s)) && ((C = c(s)) == null ? void 0 : C.length) ? (d(), I("div", j1, [
4686
- (d(!0), I(se, null, pe(c(s), ($, P) => (d(), U(ea, {
4687
- id: `select-value-selected-${e.id}-${$.value}`,
4686
+ (d(!0), I(se, null, pe(c(s), (E, P) => (d(), U(ea, {
4687
+ id: `select-value-selected-${e.id}-${E.value}`,
4688
4688
  key: P,
4689
4689
  variant: "fill",
4690
4690
  size: "small",
4691
- label: String($.name),
4692
- onClick: Ge((me) => N($), ["stop"]),
4693
- onClose: (me) => N($)
4691
+ label: String(E.name),
4692
+ onClick: Ge((me) => N(E), ["stop"]),
4693
+ onClose: (me) => N(E)
4694
4694
  }, null, 8, ["id", "label", "onClick", "onClose"]))), 128))
4695
4695
  ])) : (d(), I("span", {
4696
4696
  key: 1,
@@ -4743,7 +4743,7 @@ const El = { name: "material-symbols-close-rounded", render: M1 }, b1 = ["data-t
4743
4743
  id: `select-search-${e.id}`,
4744
4744
  ref: le("search"),
4745
4745
  modelValue: r.value,
4746
- "onUpdate:modelValue": E[0] || (E[0] = (C) => r.value = C),
4746
+ "onUpdate:modelValue": $[0] || ($[0] = (C) => r.value = C),
4747
4747
  role: "combobox",
4748
4748
  class: "search",
4749
4749
  size: "small",
@@ -4755,9 +4755,9 @@ const El = { name: "material-symbols-close-rounded", render: M1 }, b1 = ["data-t
4755
4755
  "aria-controls": `select-list-${e.id}`,
4756
4756
  "aria-activedescendant": c(S).id,
4757
4757
  "aria-labelledby": `select-label-${e.id}`,
4758
- onClick: E[1] || (E[1] = Ge(() => {
4758
+ onClick: $[1] || ($[1] = Ge(() => {
4759
4759
  }, ["stop"])),
4760
- onInput: E[2] || (E[2] = (C) => {
4760
+ onInput: $[2] || ($[2] = (C) => {
4761
4761
  var oe;
4762
4762
  return t("search", (oe = C.target) == null ? void 0 : oe.value);
4763
4763
  })
@@ -5568,7 +5568,7 @@ const qy = ["id", "data-testid"], Ky = {
5568
5568
  setFixedColumnSize: null,
5569
5569
  sortPositions: null
5570
5570
  },
5571
- emits: ["listitem:click"],
5571
+ emits: ["listitem:click", "listitem:contextmenu"],
5572
5572
  setup(e, { emit: t }) {
5573
5573
  const n = e, i = _t(), a = j(() => !!(i != null && i.selectable));
5574
5574
  function r(u) {
@@ -5592,7 +5592,8 @@ const qy = ["id", "data-testid"], Ky = {
5592
5592
  onKeyup: [
5593
5593
  f[4] || (f[4] = he(Ge((y) => t("listitem:click"), ["self"]), ["enter"])),
5594
5594
  f[5] || (f[5] = he(Ge((y) => t("listitem:click"), ["self"]), ["space"]))
5595
- ]
5595
+ ],
5596
+ onContextmenu: f[6] || (f[6] = (y) => t("listitem:contextmenu", y))
5596
5597
  }, [
5597
5598
  (d(!0), I(se, null, pe(e.sortPositions, (y, m) => (d(), I("div", {
5598
5599
  key: m,
@@ -5713,7 +5714,7 @@ const Uc = { name: "material-symbols-more-vert", render: lh }, sh = ["id", "data
5713
5714
  fallbackValue: { default: "-" },
5714
5715
  loading: { default: !1 }
5715
5716
  },
5716
- emits: ["listitem:click", "listitem:selected", "update:selected"],
5717
+ emits: ["listitem:click", "listitem:selected", "listitem:contextmenu", "update:selected"],
5717
5718
  setup(e, { expose: t, emit: n }) {
5718
5719
  var Z;
5719
5720
  const i = e, a = _t(), r = j(() => !i.hideMenu), o = j(() => !!(a != null && a.image)), l = Zc("(min-width: 1024px)"), s = j(() => {
@@ -5724,13 +5725,13 @@ const Uc = { name: "material-symbols-more-vert", render: lh }, sh = ["id", "data
5724
5725
  return (h = i.sortPositions) != null && h.desktop.length ? i.sortPositions.desktop : Object.keys(i.data[0]);
5725
5726
  }), f = j(() => l.value ? [u.value] : s.value);
5726
5727
  function y() {
5727
- return Object.keys(i.data[0]).reduce((k, T, E) => {
5728
- if (E === 0)
5728
+ return Object.keys(i.data[0]).reduce((k, T, $) => {
5729
+ if ($ === 0)
5729
5730
  return k = [[T]];
5730
- if (E === 1)
5731
+ if ($ === 1)
5731
5732
  return k = [...k, [T]];
5732
- const J = k == null ? void 0 : k.length, C = k == null ? void 0 : k[J - 1];
5733
- return Array.isArray(C) && (C == null ? void 0 : C.length) < 2 ? (k[J - 1] = [...C, T], k) : k = [...k, [T]];
5733
+ const X = k == null ? void 0 : k.length, C = k == null ? void 0 : k[X - 1];
5734
+ return Array.isArray(C) && (C == null ? void 0 : C.length) < 2 ? (k[X - 1] = [...C, T], k) : k = [...k, [T]];
5734
5735
  }, []);
5735
5736
  }
5736
5737
  function m(h) {
@@ -5738,17 +5739,17 @@ const Uc = { name: "material-symbols-more-vert", render: lh }, sh = ["id", "data
5738
5739
  return (T = i.headers && ((k = i.headers[h]) == null ? void 0 : k.text)) != null ? T : h;
5739
5740
  }
5740
5741
  function v(h) {
5741
- var k, T, E, J, C, oe, de, $, P;
5742
+ var k, T, $, X, C, oe, de, E, P;
5742
5743
  if ((k = i.headers) != null && k[h]) {
5743
- if (((E = (T = i.headers) == null ? void 0 : T[h]) == null ? void 0 : E.width) && l.value)
5744
- return `--basis-width: ${(C = (J = i.headers) == null ? void 0 : J[h]) == null ? void 0 : C.width}; --shrink: 0;`;
5744
+ if ((($ = (T = i.headers) == null ? void 0 : T[h]) == null ? void 0 : $.width) && l.value)
5745
+ return `--basis-width: ${(C = (X = i.headers) == null ? void 0 : X[h]) == null ? void 0 : C.width}; --shrink: 0;`;
5745
5746
  if (((de = (oe = i.headers) == null ? void 0 : oe[h]) == null ? void 0 : de.mobileWidth) && !l.value)
5746
- return `--basis-width: ${(P = ($ = i.headers) == null ? void 0 : $[h]) == null ? void 0 : P.mobileWidth}; --shrink: 0;`;
5747
+ return `--basis-width: ${(P = (E = i.headers) == null ? void 0 : E[h]) == null ? void 0 : P.mobileWidth}; --shrink: 0;`;
5747
5748
  }
5748
5749
  }
5749
5750
  function p({ key: h, value: k }) {
5750
- var T, E;
5751
- return k ? !0 : h ? !!((E = (T = i.headers) == null ? void 0 : T[h]) != null && E.highlight) : !1;
5751
+ var T, $;
5752
+ return k ? !0 : h ? !!(($ = (T = i.headers) == null ? void 0 : T[h]) != null && $.highlight) : !1;
5752
5753
  }
5753
5754
  const N = W(), b = [
5754
5755
  "[data-interactive] input",
@@ -5776,16 +5777,16 @@ const Uc = { name: "material-symbols-more-vert", render: lh }, sh = ["id", "data
5776
5777
  function F() {
5777
5778
  var h, k;
5778
5779
  if (document.activeElement && ((h = document.activeElement) == null ? void 0 : h.role)) {
5779
- const T = document.activeElement.role, E = (k = document.activeElement) == null ? void 0 : k.parentElement;
5780
- return T === "menuitem" ? !0 : !!(() => T === "none" && (E == null ? void 0 : E.role) && ["menuitem", "menu"].includes(E.role))();
5780
+ const T = document.activeElement.role, $ = (k = document.activeElement) == null ? void 0 : k.parentElement;
5781
+ return T === "menuitem" ? !0 : !!(() => T === "none" && ($ == null ? void 0 : $.role) && ["menuitem", "menu"].includes($.role))();
5781
5782
  }
5782
5783
  return !1;
5783
5784
  }
5784
5785
  const te = W((Z = i == null ? void 0 : i.selected) != null ? Z : {});
5785
- function X(h) {
5786
+ function J(h) {
5786
5787
  if (Array.isArray(te.value) ? te.value.length : Object.keys(te.value).length) {
5787
- const T = i.dataIdentifier.key, E = h[T];
5788
- return i.selectMode && i.selectMode === "checkbox" && Array.isArray(te.value) ? te.value.findIndex((C) => C[T] === E) >= 0 : te.value[T] === E;
5788
+ const T = i.dataIdentifier.key, $ = h[T];
5789
+ return i.selectMode && i.selectMode === "checkbox" && Array.isArray(te.value) ? te.value.findIndex((C) => C[T] === $) >= 0 : te.value[T] === $;
5789
5790
  }
5790
5791
  return !1;
5791
5792
  }
@@ -5793,7 +5794,7 @@ const Uc = { name: "material-symbols-more-vert", render: lh }, sh = ["id", "data
5793
5794
  te.value = h, n("listitem:selected", h), n("update:selected", te.value);
5794
5795
  }
5795
5796
  function B(h) {
5796
- const k = i.dataIdentifier.key, T = h[k], E = Array.isArray(te.value) ? te.value : [], J = E.concat(h), C = X(h) ? E == null ? void 0 : E.filter((oe) => oe[k] !== T) : J;
5797
+ const k = i.dataIdentifier.key, T = h[k], $ = Array.isArray(te.value) ? te.value : [], X = $.concat(h), C = J(h) ? $ == null ? void 0 : $.filter((oe) => oe[k] !== T) : X;
5797
5798
  te.value = C, n("listitem:selected", h), n("update:selected", te.value);
5798
5799
  }
5799
5800
  function _() {
@@ -5821,13 +5822,13 @@ const Uc = { name: "material-symbols-more-vert", render: lh }, sh = ["id", "data
5821
5822
  itemscope: "",
5822
5823
  onKeyupPassive: k[0] || (k[0] = (...T) => c(G) && c(G)(...T))
5823
5824
  }, [
5824
- (d(!0), I(se, null, pe(e.data, (T, E) => (d(), U(ih, {
5825
+ (d(!0), I(se, null, pe(e.data, (T, $) => (d(), U(ih, {
5825
5826
  id: e.id,
5826
- key: E,
5827
+ key: $,
5827
5828
  headers: e.headers,
5828
5829
  data: T,
5829
- "item-index": E,
5830
- "is-selected": X(T),
5830
+ "item-index": $,
5831
+ "is-selected": J(T),
5831
5832
  "sort-positions": c(f),
5832
5833
  "fallback-value": e.fallbackValue,
5833
5834
  "has-image": c(o),
@@ -5835,40 +5836,41 @@ const Uc = { name: "material-symbols-more-vert", render: lh }, sh = ["id", "data
5835
5836
  "render-header": m,
5836
5837
  "is-highlight": p,
5837
5838
  "set-fixed-column-size": v,
5838
- "onListitem:click": (J) => n("listitem:click", { ...T, index: E })
5839
+ "onListitem:click": (X) => n("listitem:click", { ...T, index: $ }),
5840
+ "onListitem:contextmenu": (X) => n("listitem:contextmenu", X, { ...T, index: $ })
5839
5841
  }, rt({
5840
- selectable: Y(({ data: J, label: C }) => {
5841
- var oe, de, $, P, me, ve;
5842
+ selectable: Y(({ data: X, label: C }) => {
5843
+ var oe, de, E, P, me, ve;
5842
5844
  return [
5843
5845
  e.selectMode === "checkbox" ? (d(), U(hn, {
5844
5846
  key: 0,
5845
- id: `listitem-${J[(oe = e.dataIdentifier) == null ? void 0 : oe.key]}`,
5847
+ id: `listitem-${X[(oe = e.dataIdentifier) == null ? void 0 : oe.key]}`,
5846
5848
  "hide-label": !0,
5847
5849
  label: C,
5848
- checked: X(T),
5849
- value: `${J[(de = e.dataIdentifier) == null ? void 0 : de.key]}`,
5850
- name: ($ = e.dataIdentifier.inputName) != null ? $ : e.id,
5851
- onChange: (ge) => B(J)
5850
+ checked: J(T),
5851
+ value: `${X[(de = e.dataIdentifier) == null ? void 0 : de.key]}`,
5852
+ name: (E = e.dataIdentifier.inputName) != null ? E : e.id,
5853
+ onChange: (ge) => B(X)
5852
5854
  }, null, 8, ["id", "label", "checked", "value", "name", "onChange"])) : x("", !0),
5853
5855
  e.selectMode === "radio" ? (d(), U(kn, {
5854
5856
  key: 1,
5855
- id: `listitem-${J[(P = e.dataIdentifier) == null ? void 0 : P.key]}`,
5857
+ id: `listitem-${X[(P = e.dataIdentifier) == null ? void 0 : P.key]}`,
5856
5858
  "hide-label": !0,
5857
5859
  label: C,
5858
- checked: X(T),
5859
- value: `${J[(me = e.dataIdentifier) == null ? void 0 : me.key]}`,
5860
+ checked: J(T),
5861
+ value: `${X[(me = e.dataIdentifier) == null ? void 0 : me.key]}`,
5860
5862
  name: (ve = e.dataIdentifier.inputName) != null ? ve : e.id,
5861
- onChange: (ge) => le(J)
5863
+ onChange: (ge) => le(X)
5862
5864
  }, null, 8, ["id", "label", "checked", "value", "name", "onChange"])) : x("", !0)
5863
5865
  ];
5864
5866
  }),
5865
- "action-button": Y(({ arias: J, data: C }) => [
5866
- L(h.$slots, "action-button", { arias: J }, () => [
5867
+ "action-button": Y(({ arias: X, data: C }) => [
5868
+ L(h.$slots, "action-button", { arias: X }, () => [
5867
5869
  R($t, {
5868
- id: `listitem-${e.id}-${E}`,
5870
+ id: `listitem-${e.id}-${$}`,
5869
5871
  position: "left"
5870
5872
  }, {
5871
- trigger: Y(({ arias: oe, id: de, toggle: $ }) => [
5873
+ trigger: Y(({ arias: oe, id: de, toggle: E }) => [
5872
5874
  R(ze, {
5873
5875
  id: de,
5874
5876
  "aria-haspopup": oe.ariaHaspopup,
@@ -5876,9 +5878,9 @@ const Uc = { name: "material-symbols-more-vert", render: lh }, sh = ["id", "data
5876
5878
  role: oe.role,
5877
5879
  size: "small",
5878
5880
  variant: "tertiary",
5879
- "aria-label": J.ariaLabel,
5881
+ "aria-label": X.ariaLabel,
5880
5882
  class: "menu-button-trigger",
5881
- onClick: $
5883
+ onClick: E
5882
5884
  }, {
5883
5885
  "icon-left": Y(() => [
5884
5886
  R(c(Uc), {
@@ -5900,24 +5902,24 @@ const Uc = { name: "material-symbols-more-vert", render: lh }, sh = ["id", "data
5900
5902
  }, [
5901
5903
  c(o) ? {
5902
5904
  name: "image",
5903
- fn: Y(({ data: J }) => [
5904
- L(h.$slots, "image", { data: J })
5905
+ fn: Y(({ data: X }) => [
5906
+ L(h.$slots, "image", { data: X })
5905
5907
  ]),
5906
5908
  key: "0"
5907
5909
  } : void 0,
5908
- pe(T, (J, C) => ({
5910
+ pe(T, (X, C) => ({
5909
5911
  name: `column:${C}`,
5910
5912
  fn: Y((oe) => [
5911
5913
  L(h.$slots, `column:${C}`, {
5912
5914
  data: oe.data,
5913
5915
  index: oe.index,
5914
- columnIndex: E,
5916
+ columnIndex: $,
5915
5917
  renderHeader: m,
5916
5918
  headers: e.headers
5917
5919
  })
5918
5920
  ])
5919
5921
  })),
5920
- pe(T, (J, C) => ({
5922
+ pe(T, (X, C) => ({
5921
5923
  name: `header:${C}`,
5922
5924
  fn: Y((oe) => [
5923
5925
  L(h.$slots, `header:${C}`, {
@@ -5929,7 +5931,7 @@ const Uc = { name: "material-symbols-more-vert", render: lh }, sh = ["id", "data
5929
5931
  })
5930
5932
  ])
5931
5933
  })),
5932
- pe(T, (J, C) => ({
5934
+ pe(T, (X, C) => ({
5933
5935
  name: `value:${C}`,
5934
5936
  fn: Y((oe) => [
5935
5937
  L(h.$slots, `value:${C}`, {
@@ -5940,7 +5942,7 @@ const Uc = { name: "material-symbols-more-vert", render: lh }, sh = ["id", "data
5940
5942
  })
5941
5943
  ])
5942
5944
  }))
5943
- ]), 1032, ["id", "headers", "data", "item-index", "is-selected", "sort-positions", "fallback-value", "has-image", "has-menu", "onListitem:click"]))), 128)),
5945
+ ]), 1032, ["id", "headers", "data", "item-index", "is-selected", "sort-positions", "fallback-value", "has-image", "has-menu", "onListitem:click", "onListitem:contextmenu"]))), 128)),
5944
5946
  Ke(g("li", uh, [
5945
5947
  R(zn, { size: "large" })
5946
5948
  ], 512), [
@@ -6372,7 +6374,7 @@ const Gl = { name: "material-symbols-chevron-left-rounded", render: Oh }, $h = [
6372
6374
  Z === "RIGHT" && D(), Z === "LEFT" && z();
6373
6375
  });
6374
6376
  function S() {
6375
- m.value = !1, n("close"), n("update:isOpen", !1), X();
6377
+ m.value = !1, n("close"), n("update:isOpen", !1), J();
6376
6378
  }
6377
6379
  function Q() {
6378
6380
  m.value = !0, n("open"), n("update:isOpen", !0);
@@ -6392,7 +6394,7 @@ const Gl = { name: "material-symbols-chevron-left-rounded", render: Oh }, $h = [
6392
6394
  function te() {
6393
6395
  S(), n("action:skip");
6394
6396
  }
6395
- function X() {
6397
+ function J() {
6396
6398
  u.value = 0;
6397
6399
  }
6398
6400
  function le() {
@@ -8142,7 +8144,7 @@ function Qn(e, t, n) {
8142
8144
  var te = Ne(e);
8143
8145
  if (!Wn(te))
8144
8146
  throw new RangeError("Invalid time value");
8145
- var X = ra(te), le = Qc(te, X), B = {
8147
+ var J = ra(te), le = Qc(te, J), B = {
8146
8148
  firstWeekContainsDate: G,
8147
8149
  weekStartsOn: F,
8148
8150
  locale: z,
@@ -12187,14 +12189,14 @@ function fl(e, t, n, i) {
12187
12189
  var te = we((o = (l = (s = (u = i == null ? void 0 : i.firstWeekContainsDate) !== null && u !== void 0 ? u : i == null || (f = i.locale) === null || f === void 0 || (y = f.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && s !== void 0 ? s : G.firstWeekContainsDate) !== null && l !== void 0 ? l : (m = G.locale) === null || m === void 0 || (v = m.options) === null || v === void 0 ? void 0 : v.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
12188
12190
  if (!(te >= 1 && te <= 7))
12189
12191
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
12190
- var X = we((p = (N = (b = (O = i == null ? void 0 : i.weekStartsOn) !== null && O !== void 0 ? O : i == null || (M = i.locale) === null || M === void 0 || (w = M.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && b !== void 0 ? b : G.weekStartsOn) !== null && N !== void 0 ? N : (S = G.locale) === null || S === void 0 || (Q = S.options) === null || Q === void 0 ? void 0 : Q.weekStartsOn) !== null && p !== void 0 ? p : 0);
12191
- if (!(X >= 0 && X <= 6))
12192
+ var J = we((p = (N = (b = (O = i == null ? void 0 : i.weekStartsOn) !== null && O !== void 0 ? O : i == null || (M = i.locale) === null || M === void 0 || (w = M.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && b !== void 0 ? b : G.weekStartsOn) !== null && N !== void 0 ? N : (S = G.locale) === null || S === void 0 || (Q = S.options) === null || Q === void 0 ? void 0 : Q.weekStartsOn) !== null && p !== void 0 ? p : 0);
12193
+ if (!(J >= 0 && J <= 6))
12192
12194
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
12193
12195
  if (z === "")
12194
12196
  return D === "" ? Ne(n) : new Date(NaN);
12195
12197
  var le = {
12196
12198
  firstWeekContainsDate: te,
12197
- weekStartsOn: X,
12199
+ weekStartsOn: J,
12198
12200
  locale: F
12199
12201
  }, B = [new zg()], _ = z.match(WM).map(function(ve) {
12200
12202
  var ge = ve[0];
@@ -12252,7 +12254,7 @@ function fl(e, t, n, i) {
12252
12254
  }
12253
12255
  if (D.length > 0 && FM.test(D))
12254
12256
  return new Date(NaN);
12255
- var E = B.map(function(ve) {
12257
+ var $ = B.map(function(ve) {
12256
12258
  return ve.priority;
12257
12259
  }).sort(function(ve, ge) {
12258
12260
  return ge - ve;
@@ -12266,13 +12268,13 @@ function fl(e, t, n, i) {
12266
12268
  });
12267
12269
  }).map(function(ve) {
12268
12270
  return ve[0];
12269
- }), J = Ne(n);
12270
- if (isNaN(J.getTime()))
12271
+ }), X = Ne(n);
12272
+ if (isNaN(X.getTime()))
12271
12273
  return new Date(NaN);
12272
- var C = Qc(J, ra(J)), oe = {}, de = Zu(E), $;
12274
+ var C = Qc(X, ra(X)), oe = {}, de = Zu($), E;
12273
12275
  try {
12274
- for (de.s(); !($ = de.n()).done; ) {
12275
- var P = $.value;
12276
+ for (de.s(); !(E = de.n()).done; ) {
12277
+ var P = E.value;
12276
12278
  if (!P.validate(C, le))
12277
12279
  return new Date(NaN);
12278
12280
  var me = P.set(C, oe, le);
@@ -13114,14 +13116,14 @@ const _4 = (e, t = 3) => {
13114
13116
  }, r = () => e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? a() : e.weekPicker ? "MM/dd/yyyy" : e.yearPicker ? "yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${a()}` : "MM/dd/yyyy", o = (h, k) => {
13115
13117
  if (typeof e.format == "function")
13116
13118
  return e.format(h);
13117
- const T = k || r(), E = e.formatLocale ? { locale: e.formatLocale } : void 0;
13118
- return Array.isArray(h) ? `${Qn(h[0], T, E)} ${e.modelAuto && !h[1] ? "" : n.value.textInputOptions.rangeSeparator || "-"} ${h[1] ? Qn(h[1], T, E) : ""}` : Qn(h, T, E);
13119
+ const T = k || r(), $ = e.formatLocale ? { locale: e.formatLocale } : void 0;
13120
+ return Array.isArray(h) ? `${Qn(h[0], T, $)} ${e.modelAuto && !h[1] ? "" : n.value.textInputOptions.rangeSeparator || "-"} ${h[1] ? Qn(h[1], T, $) : ""}` : Qn(h, T, $);
13119
13121
  }, l = (h) => e.timezone ? A4(h, e.timezone) : h, s = (h) => e.timezone ? k4(h, e.timezone) : h, u = j(() => (h) => {
13120
13122
  var k;
13121
13123
  return (k = e.hideNavigation) == null ? void 0 : k.includes(h);
13122
13124
  }), f = (h) => {
13123
- const k = e.maxDate ? pt(l(h), l(ie(e.maxDate))) : !1, T = e.minDate ? ft(l(h), l(ie(e.minDate))) : !1, E = O(h, e.disabledDates), J = n.value.filters.months.map((P) => +P).includes(Ue(h)), C = e.disabledWeekDays.length ? e.disabledWeekDays.some((P) => +P === xg(h)) : !1, oe = e.allowedDates.length ? !e.allowedDates.some((P) => Re(l(ie(P)), l(h))) : !1, de = Ve(h), $ = de < +e.yearRange[0] || de > +e.yearRange[1];
13124
- return !(k || T || E || J || $ || C || oe);
13125
+ const k = e.maxDate ? pt(l(h), l(ie(e.maxDate))) : !1, T = e.minDate ? ft(l(h), l(ie(e.minDate))) : !1, $ = O(h, e.disabledDates), X = n.value.filters.months.map((P) => +P).includes(Ue(h)), C = e.disabledWeekDays.length ? e.disabledWeekDays.some((P) => +P === xg(h)) : !1, oe = e.allowedDates.length ? !e.allowedDates.some((P) => Re(l(ie(P)), l(h))) : !1, de = Ve(h), E = de < +e.yearRange[0] || de > +e.yearRange[1];
13126
+ return !(k || T || $ || X || E || C || oe);
13125
13127
  }, y = (h) => {
13126
13128
  const k = {
13127
13129
  hours: Vt(ie()),
@@ -13133,18 +13135,18 @@ const _4 = (e, t = 3) => {
13133
13135
  const k = eo(l(h), { weekStartsOn: +e.weekStart }), T = bv(l(h), { weekStartsOn: +e.weekStart });
13134
13136
  return [k, T];
13135
13137
  }, O = (h, k) => Array.isArray(k) ? k.some((T) => Re(l(ie(T)), l(h))) : k(h), M = (h, k, T) => {
13136
- let E = h ? ie(h) : ie();
13137
- return (k || k === 0) && (E = Hn(E, k)), T && (E = yn(E, T)), E;
13138
+ let $ = h ? ie(h) : ie();
13139
+ return (k || k === 0) && ($ = Hn($, k)), T && ($ = yn($, T)), $;
13138
13140
  }, w = (h) => vt(ie(), { hours: Vt(h), minutes: Rt(h), seconds: Ln(h) }), S = (h) => vt(ie(), {
13139
13141
  hours: +h.hours || 0,
13140
13142
  minutes: +h.minutes || 0,
13141
13143
  seconds: +h.seconds || 0
13142
- }), Q = (h, k, T, E) => {
13144
+ }), Q = (h, k, T, $) => {
13143
13145
  if (!h)
13144
13146
  return !0;
13145
- if (E) {
13146
- const J = T === "max" ? Rl(h, k) : Vl(h, k), C = { seconds: 0, milliseconds: 0 };
13147
- return J || td(vt(h, C), vt(k, C));
13147
+ if ($) {
13148
+ const X = T === "max" ? Rl(h, k) : Vl(h, k), C = { seconds: 0, milliseconds: 0 };
13149
+ return X || td(vt(h, C), vt(k, C));
13148
13150
  }
13149
13151
  return T === "max" ? h.getTime() <= k.getTime() : h.getTime() >= k.getTime();
13150
13152
  }, D = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, z = (h) => Array.isArray(h) ? [h[0] ? w(h[0]) : null, h[1] ? w(h[1]) : null] : w(h), G = (h) => {
@@ -13159,23 +13161,23 @@ const _4 = (e, t = 3) => {
13159
13161
  return !0;
13160
13162
  const T = !e.minDate && !e.maxDate ? z(h) : h;
13161
13163
  return (e.maxTime || e.maxDate) && (k = G(dt(T))), (e.minTime || e.minDate) && (k = F(dt(T), k)), k;
13162
- }, X = (h, k) => {
13163
- const T = ie(JSON.parse(JSON.stringify(h))), E = [];
13164
- for (let J = 0; J < 7; J++) {
13165
- const C = Xt(T, J), oe = Ue(C) !== k;
13166
- E.push({
13164
+ }, J = (h, k) => {
13165
+ const T = ie(JSON.parse(JSON.stringify(h))), $ = [];
13166
+ for (let X = 0; X < 7; X++) {
13167
+ const C = Xt(T, X), oe = Ue(C) !== k;
13168
+ $.push({
13167
13169
  text: e.hideOffsetDates && oe ? "" : C.getDate(),
13168
13170
  value: C,
13169
13171
  current: !oe,
13170
13172
  classData: {}
13171
13173
  });
13172
13174
  }
13173
- return E;
13175
+ return $;
13174
13176
  }, le = (h, k) => {
13175
- const T = [], E = ie(l(new Date(k, h))), J = ie(l(new Date(k, h + 1, 0))), C = eo(E, { weekStartsOn: e.weekStart }), oe = (de) => {
13176
- const $ = X(de, h);
13177
- if (T.push({ days: $ }), !T[T.length - 1].days.some(
13178
- (P) => Re(Et(P.value), Et(J))
13177
+ const T = [], $ = ie(l(new Date(k, h))), X = ie(l(new Date(k, h + 1, 0))), C = eo($, { weekStartsOn: e.weekStart }), oe = (de) => {
13178
+ const E = J(de, h);
13179
+ if (T.push({ days: E }), !T[T.length - 1].days.some(
13180
+ (P) => Re(Et(P.value), Et(X))
13179
13181
  )) {
13180
13182
  const P = Xt(de, 7);
13181
13183
  oe(P);
@@ -13183,15 +13185,15 @@ const _4 = (e, t = 3) => {
13183
13185
  };
13184
13186
  if (oe(C), e.sixWeeks && T.length < 6) {
13185
13187
  const de = 6 - T.length;
13186
- for (let $ = 1; $ <= de; $++) {
13187
- const P = T[T.length - 1], me = P.days[P.days.length - 1], ve = X(Xt(me.value, 1), Ue(E));
13188
+ for (let E = 1; E <= de; E++) {
13189
+ const P = T[T.length - 1], me = P.days[P.days.length - 1], ve = J(Xt(me.value, 1), Ue($));
13188
13190
  T.push({ days: ve });
13189
13191
  }
13190
13192
  }
13191
13193
  return T;
13192
13194
  }, B = (h, k, T) => [vt(ie(h), { date: 1 }), vt(ie(), { month: k, year: T, date: 1 })], _ = (h, k) => ft(...B(e.minDate, h, k)) || Re(...B(e.minDate, h, k)), V = (h, k) => pt(...B(e.maxDate, h, k)) || Re(...B(e.maxDate, h, k)), Z = (h, k, T) => {
13193
- let E = !1;
13194
- return e.maxDate && T && V(h, k) && (E = !0), e.minDate && !T && _(h, k) && (E = !0), E;
13195
+ let $ = !1;
13196
+ return e.maxDate && T && V(h, k) && ($ = !0), e.minDate && !T && _(h, k) && ($ = !0), $;
13195
13197
  };
13196
13198
  return {
13197
13199
  checkPartialRangeValue: t,
@@ -13210,9 +13212,9 @@ const _4 = (e, t = 3) => {
13210
13212
  setDateMonthOrYear: M,
13211
13213
  isValidTime: te,
13212
13214
  getCalendarDays: le,
13213
- validateMonthYearInRange: (h, k, T, E) => {
13214
- let J = !1;
13215
- return E ? e.minDate && e.maxDate ? J = Z(h, k, T) : (e.minDate && _(h, k) || e.maxDate && V(h, k)) && (J = !0) : J = !0, J;
13215
+ validateMonthYearInRange: (h, k, T, $) => {
13216
+ let X = !1;
13217
+ return $ ? e.minDate && e.maxDate ? X = Z(h, k, T) : (e.minDate && _(h, k) || e.maxDate && V(h, k)) && (X = !0) : X = !0, X;
13216
13218
  },
13217
13219
  validateMaxDate: V,
13218
13220
  validateMinDate: _,
@@ -13321,7 +13323,7 @@ const _4 = (e, t = 3) => {
13321
13323
  if (m.value)
13322
13324
  return Array.isArray(m.value) ? te(A) : z(m.value);
13323
13325
  if (e.timePicker)
13324
- return X();
13326
+ return J();
13325
13327
  if (e.monthPicker && !e.range)
13326
13328
  return le();
13327
13329
  if (e.yearPicker && !e.range)
@@ -13353,7 +13355,7 @@ const _4 = (e, t = 3) => {
13353
13355
  }, te = (A) => {
13354
13356
  const ne = m.value;
13355
13357
  F(ne, A), y.value.multiCalendars && e.multiCalendarsSolo && h();
13356
- }, X = () => {
13358
+ }, J = () => {
13357
13359
  if (V(), !e.range)
13358
13360
  m.value = St(ie(), N.hours, N.minutes, _());
13359
13361
  else {
@@ -13392,7 +13394,7 @@ const _4 = (e, t = 3) => {
13392
13394
  );
13393
13395
  w(Se, We.month, We.year);
13394
13396
  }
13395
- }, E = (A) => {
13397
+ }, $ = (A) => {
13396
13398
  if (m.value && Array.isArray(m.value))
13397
13399
  if (m.value.some((ne) => Re(A, ne))) {
13398
13400
  const ne = m.value.filter((ce) => !Re(ce, A));
@@ -13401,12 +13403,12 @@ const _4 = (e, t = 3) => {
13401
13403
  (e.multiDatesLimit && +e.multiDatesLimit > m.value.length || !e.multiDatesLimit) && m.value.push(A);
13402
13404
  else
13403
13405
  m.value = [A];
13404
- }, J = (A, ne) => {
13406
+ }, X = (A, ne) => {
13405
13407
  const ce = pt(A, ne) ? ne : A, Se = pt(ne, A) ? ne : A;
13406
13408
  return Ds({ start: ce, end: Se });
13407
13409
  }, C = (A) => {
13408
13410
  if (Array.isArray(m.value) && m.value[0]) {
13409
- const ne = pv(A, m.value[0]), ce = J(m.value[0], A), Se = ce.length === 1 ? 0 : ce.filter((Ct) => o(Ct)).length, We = Math.abs(ne) - Se;
13411
+ const ne = pv(A, m.value[0]), ce = X(m.value[0], A), Se = ce.length === 1 ? 0 : ce.filter((Ct) => o(Ct)).length, We = Math.abs(ne) - Se;
13410
13412
  if (e.minRange && e.maxRange)
13411
13413
  return We >= +e.minRange && We <= +e.maxRange;
13412
13414
  if (e.minRange)
@@ -13417,11 +13419,11 @@ const _4 = (e, t = 3) => {
13417
13419
  return !0;
13418
13420
  }, oe = (A) => Array.isArray(m.value) && m.value.length === 2 ? e.fixedStart && (pt(A, m.value[0]) || Re(A, m.value[0])) ? [m.value[0], A] : e.fixedEnd && (ft(A, m.value[1]) || Re(A, m.value[1])) ? [A, m.value[1]] : m.value : [], de = () => {
13419
13421
  e.autoApply && M.value && t("auto-apply");
13420
- }, $ = () => {
13422
+ }, E = () => {
13421
13423
  e.autoApply && t("select-date");
13422
13424
  }, P = (A) => !Ds({ start: A[0], end: A[1] }).some((ne) => o(ne)), me = (A) => (m.value = s(ie(A.value)), de()), ve = (A) => {
13423
13425
  const ne = St(ie(A.value), N.hours, N.minutes, _());
13424
- e.multiDates ? E(ne) : m.value = ne, n(), de();
13426
+ e.multiDates ? $(ne) : m.value = ne, n(), de();
13425
13427
  }, ge = () => {
13426
13428
  v.value = m.value ? m.value.slice() : [], v.value.length === 2 && !(e.fixedStart || e.fixedEnd) && (v.value = []);
13427
13429
  }, Ce = (A, ne) => {
@@ -13429,7 +13431,7 @@ const _4 = (e, t = 3) => {
13429
13431
  P(ce) && (ne && T(A.value), v.value = ce);
13430
13432
  }, tt = (A) => {
13431
13433
  v.value = oe(ie(A.value));
13432
- }, Me = (A) => e.noDisabledRange ? J(v.value[0], A).some((ne) => o(ne)) : !1, je = (A, ne) => {
13434
+ }, Me = (A) => e.noDisabledRange ? X(v.value[0], A).some((ne) => o(ne)) : !1, je = (A, ne) => {
13433
13435
  if (ge(), e.autoRange)
13434
13436
  return Ce(A, ne);
13435
13437
  if (e.fixedStart || e.fixedEnd)
@@ -13527,10 +13529,10 @@ const _4 = (e, t = 3) => {
13527
13529
  handleArrow: Fe,
13528
13530
  handleSwipe: Mt,
13529
13531
  selectCurrentDate: () => {
13530
- e.range ? m.value && Array.isArray(m.value) && m.value[0] ? m.value = ft(ie(), m.value[0]) ? [ie(), m.value[0]] : [m.value[0], ie()] : m.value = [ie()] : m.value = ie(), $();
13532
+ e.range ? m.value && Array.isArray(m.value) && m.value[0] ? m.value = ft(ie(), m.value[0]) ? [ie(), m.value[0]] : [m.value[0], ie()] : m.value = [ie()] : m.value = ie(), E();
13531
13533
  },
13532
13534
  presetDateRange: (A, ne) => {
13533
- ne || A.length && A.length <= 2 && e.range && (m.value = A.map((ce) => ie(ce)), $());
13535
+ ne || A.length && A.length <= 2 && e.range && (m.value = A.map((ce) => ie(ce)), E());
13534
13536
  }
13535
13537
  };
13536
13538
  }, V4 = (e, t, n) => {
@@ -13583,14 +13585,14 @@ const _4 = (e, t = 3) => {
13583
13585
  k(C[0]),
13584
13586
  C[1] ? k(C[1]) : u()
13585
13587
  ];
13586
- }, G = () => i.value[1] ? z() : k(dt(i.value[0])), F = () => (i.value || []).map((C) => k(C)), te = () => (D(), t.modelAuto ? G() : t.multiDates ? F() : Array.isArray(i.value) ? s(() => z()) : k(dt(i.value))), X = (C) => C ? t.timePicker ? O(dt(C)) : t.monthPicker ? M(dt(C)) : t.yearPicker ? b(dt(C)) : t.multiDates ? w(dt(C)) : t.weekPicker ? S(dt(C)) : Q(dt(C)) : null, le = (C) => {
13587
- const oe = X(C);
13588
+ }, G = () => i.value[1] ? z() : k(dt(i.value[0])), F = () => (i.value || []).map((C) => k(C)), te = () => (D(), t.modelAuto ? G() : t.multiDates ? F() : Array.isArray(i.value) ? s(() => z()) : k(dt(i.value))), J = (C) => C ? t.timePicker ? O(dt(C)) : t.monthPicker ? M(dt(C)) : t.yearPicker ? b(dt(C)) : t.multiDates ? w(dt(C)) : t.weekPicker ? S(dt(C)) : Q(dt(C)) : null, le = (C) => {
13589
+ const oe = J(C);
13588
13590
  f(dt(oe)) ? (i.value = dt(oe), Z()) : (i.value = null, v.value = "");
13589
13591
  }, B = () => {
13590
13592
  var C;
13591
13593
  const oe = (de) => {
13592
- var $;
13593
- return Qn(de, ($ = m.value.textInputOptions) == null ? void 0 : $.format);
13594
+ var E;
13595
+ return Qn(de, (E = m.value.textInputOptions) == null ? void 0 : E.format);
13594
13596
  };
13595
13597
  return `${oe(i.value[0])} ${(C = m.value.textInputOptions) == null ? void 0 : C.rangeSeparator} ${i.value[1] ? oe(i.value[1]) : ""}`;
13596
13598
  }, _ = () => {
@@ -13609,17 +13611,17 @@ const _4 = (e, t = 3) => {
13609
13611
  return t.modelType ? t.modelType === "date" || t.modelType === "timestamp" ? r(new Date(C)) : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? fl(C, l(), new Date()) : r(fl(C, t.modelType, new Date())) : r(new Date(C));
13610
13612
  }, k = (C) => t.utc ? r4(C, t.utc === "preserve") : t.modelType ? t.modelType === "timestamp" ? +a(C) : t.modelType === "format" && (typeof t.format == "string" || !t.format) ? o(a(C)) : o(a(C), t.modelType) : a(C), T = (C) => {
13611
13613
  e("update:model-value", C);
13612
- }, E = (C) => Array.isArray(i.value) ? [
13614
+ }, $ = (C) => Array.isArray(i.value) ? [
13613
13615
  C(i.value[0]),
13614
13616
  i.value[1] ? C(i.value[1]) : u()
13615
- ] : C(dt(i.value)), J = (C) => T(dt(E(C)));
13617
+ ] : C(dt(i.value)), X = (C) => T(dt($(C)));
13616
13618
  return {
13617
13619
  inputValue: v,
13618
13620
  internalModelValue: i,
13619
13621
  checkBeforeEmit: () => i.value ? t.range ? t.partialRange ? i.value.length >= 1 : i.value.length === 2 : !!i.value : !1,
13620
13622
  parseExternalModelValue: le,
13621
13623
  formatInputValue: Z,
13622
- emitModelValue: () => (Z(), t.monthPicker ? J(N) : t.timePicker ? J(p) : t.yearPicker ? J(Ve) : t.weekPicker ? T(i.value) : T(te()))
13624
+ emitModelValue: () => (Z(), t.monthPicker ? X(N) : t.timePicker ? X(p) : t.yearPicker ? X(Ve) : t.weekPicker ? T(i.value) : T(te()))
13623
13625
  };
13624
13626
  }, R4 = (e, t) => {
13625
13627
  const { validateMonthYearInRange: n, validateMaxDate: i, validateMinDate: a, defaults: r } = Nt(e), o = (y, m) => {
@@ -13671,13 +13673,13 @@ const W4 = (e, t, n, i) => {
13671
13673
  }, y = (z, G, F = !1) => {
13672
13674
  i.position === Ji.left && f(z), i.position === Ji.right && u(z, G), i.position === Ji.center && (a.value.left = `${z + G / 2}px`, a.value.transform = F ? "translate(-50%, -50%)" : "translateX(-50%)");
13673
13675
  }, m = (z) => {
13674
- const { width: G, height: F } = z.getBoundingClientRect(), { top: te, left: X } = i.altPosition ? s(z) : l(z);
13675
- return { top: te, left: X, width: G, height: F };
13676
+ const { width: G, height: F } = z.getBoundingClientRect(), { top: te, left: J } = i.altPosition ? s(z) : l(z);
13677
+ return { top: te, left: J, width: G, height: F };
13676
13678
  }, v = () => {
13677
13679
  const z = ut(t);
13678
13680
  if (z) {
13679
- const { top: G, left: F, width: te, height: X } = m(z);
13680
- a.value.top = `${G + X / 2}px`, a.value.transform = "translateY(-50%)", y(F, te, !0);
13681
+ const { top: G, left: F, width: te, height: J } = m(z);
13682
+ a.value.top = `${G + J / 2}px`, a.value.transform = "translateY(-50%)", y(F, te, !0);
13681
13683
  }
13682
13684
  }, p = () => {
13683
13685
  a.value.left = "50%", a.value.top = "50%", a.value.transform = "translate(-50%, -50%)", a.value.position = "fixed";
@@ -13695,21 +13697,21 @@ const W4 = (e, t, n, i) => {
13695
13697
  }) => {
13696
13698
  window.screen.width > 768 && y(F, te), S(z, G);
13697
13699
  }, M = (z, G) => {
13698
- const { top: F, left: te, height: X, width: le } = m(z);
13699
- a.value.top = `${X + F + +i.offset}px`, O({ inputEl: z, menuEl: G, left: te, width: le }), r.value = !1;
13700
+ const { top: F, left: te, height: J, width: le } = m(z);
13701
+ a.value.top = `${J + F + +i.offset}px`, O({ inputEl: z, menuEl: G, left: te, width: le }), r.value = !1;
13700
13702
  }, w = (z, G) => {
13701
- const { top: F, left: te, width: X } = m(z), { height: le } = G.getBoundingClientRect();
13702
- a.value.top = `${F - le - +i.offset}px`, O({ inputEl: z, menuEl: G, left: te, width: X }), r.value = !0;
13703
+ const { top: F, left: te, width: J } = m(z), { height: le } = G.getBoundingClientRect();
13704
+ a.value.top = `${F - le - +i.offset}px`, O({ inputEl: z, menuEl: G, left: te, width: J }), r.value = !0;
13703
13705
  }, S = (z, G) => {
13704
13706
  if (i.autoPosition) {
13705
- const { left: F, width: te } = m(z), { left: X, right: le } = G.getBoundingClientRect();
13706
- if (X < 0)
13707
+ const { left: F, width: te } = m(z), { left: J, right: le } = G.getBoundingClientRect();
13708
+ if (J < 0)
13707
13709
  return f(F);
13708
13710
  if (le > document.documentElement.clientWidth)
13709
13711
  return u(F, te);
13710
13712
  }
13711
13713
  }, Q = (z, G) => {
13712
- const { height: F } = G.getBoundingClientRect(), { top: te, height: X } = z.getBoundingClientRect(), le = window.innerHeight - te - X, B = te;
13714
+ const { height: F } = G.getBoundingClientRect(), { top: te, height: J } = z.getBoundingClientRect(), le = window.innerHeight - te - J, B = te;
13713
13715
  return F <= le ? M(z, G) : F > le && F <= B ? w(z, G) : le >= B ? M(z, G) : w(z, G);
13714
13716
  }, D = () => {
13715
13717
  const z = ut(t), G = ut(e);
@@ -13952,8 +13954,8 @@ const W4 = (e, t, n, i) => {
13952
13954
  if (i.range) {
13953
13955
  const [G, F] = D.split(`${z}`);
13954
13956
  if (G && F) {
13955
- const te = m(G.trim()), X = m(F.trim());
13956
- l.value = te && X ? [te, X] : null;
13957
+ const te = m(G.trim()), J = m(F.trim());
13958
+ l.value = te && J ? [te, J] : null;
13957
13959
  }
13958
13960
  } else if (i.multiDates) {
13959
13961
  const G = D.split(";");
@@ -14202,10 +14204,10 @@ const W4 = (e, t, n, i) => {
14202
14204
  if (n("set-hover-date", _), (k = (h = _.marker) == null ? void 0 : h.tooltip) != null && k.length) {
14203
14205
  const T = ut(u.value[V][Z]);
14204
14206
  if (T) {
14205
- const { width: E, height: J } = T.getBoundingClientRect();
14207
+ const { width: $, height: X } = T.getBoundingClientRect();
14206
14208
  s.value = {
14207
- bottom: `${J}px`,
14208
- left: `${E / 2}px`,
14209
+ bottom: `${X}px`,
14210
+ left: `${$ / 2}px`,
14209
14211
  transform: "translateX(-50%)"
14210
14212
  }, l.value = _.value;
14211
14213
  }
@@ -14215,10 +14217,10 @@ const W4 = (e, t, n, i) => {
14215
14217
  }, G = (_) => {
14216
14218
  v.value.startX = _.changedTouches[0].screenX, v.value.startY = _.changedTouches[0].screenY;
14217
14219
  }, F = (_) => {
14218
- v.value.endX = _.changedTouches[0].screenX, v.value.endY = _.changedTouches[0].screenY, X();
14220
+ v.value.endX = _.changedTouches[0].screenX, v.value.endY = _.changedTouches[0].screenY, J();
14219
14221
  }, te = (_) => {
14220
14222
  i.vertical && !i.inline && _.preventDefault();
14221
- }, X = () => {
14223
+ }, J = () => {
14222
14224
  const _ = i.vertical ? "Y" : "X";
14223
14225
  Math.abs(v.value[`start${_}`] - v.value[`end${_}`]) > 10 && n("handle-swipe", v.value[`start${_}`] > v.value[`end${_}`] ? "right" : "left");
14224
14226
  }, le = (_, V, Z) => {
@@ -14282,69 +14284,69 @@ const W4 = (e, t, n, i) => {
14282
14284
  _.weekNumbers ? (d(), I("div", c3, [
14283
14285
  g("div", d3, q(e.getWeekNum(k.days)), 1)
14284
14286
  ])) : x("", !0),
14285
- (d(!0), I(se, null, pe(k.days, (E, J) => {
14287
+ (d(!0), I(se, null, pe(k.days, ($, X) => {
14286
14288
  var C, oe, de;
14287
14289
  return d(), I("div", {
14288
14290
  role: "gridcell",
14289
14291
  class: "dp__calendar_item",
14290
14292
  ref_for: !0,
14291
- ref: ($) => le($, T, J),
14292
- key: J + T,
14293
- "aria-selected": E.classData.dp__active_date || E.classData.dp__range_start || E.classData.dp__range_start,
14294
- "aria-disabled": E.classData.dp__cell_disabled,
14295
- "aria-label": (oe = (C = c(o).ariaLabels) == null ? void 0 : C.day) == null ? void 0 : oe.call(C, E),
14293
+ ref: (E) => le(E, T, X),
14294
+ key: X + T,
14295
+ "aria-selected": $.classData.dp__active_date || $.classData.dp__range_start || $.classData.dp__range_start,
14296
+ "aria-disabled": $.classData.dp__cell_disabled,
14297
+ "aria-label": (oe = (C = c(o).ariaLabels) == null ? void 0 : C.day) == null ? void 0 : oe.call(C, $),
14296
14298
  tabindex: "0",
14297
- "data-test": E.value,
14298
- onClick: Ge(($) => _.$emit("select-date", E), ["stop", "prevent"]),
14299
+ "data-test": $.value,
14300
+ onClick: Ge((E) => _.$emit("select-date", $), ["stop", "prevent"]),
14299
14301
  onKeydown: [
14300
- he(($) => _.$emit("select-date", E), ["enter"]),
14301
- he(($) => _.$emit("handle-space", E), ["space"])
14302
+ he((E) => _.$emit("select-date", $), ["enter"]),
14303
+ he((E) => _.$emit("handle-space", $), ["space"])
14302
14304
  ],
14303
- onMouseover: ($) => D(E, T, J),
14305
+ onMouseover: (E) => D($, T, X),
14304
14306
  onMouseleave: z
14305
14307
  }, [
14306
14308
  g("div", {
14307
- class: ee(["dp__cell_inner", E.classData])
14309
+ class: ee(["dp__cell_inner", $.classData])
14308
14310
  }, [
14309
14311
  _.$slots.day ? L(_.$slots, "day", {
14310
14312
  key: 0,
14311
- day: +E.text,
14312
- date: E.value
14313
+ day: +$.text,
14314
+ date: $.value
14313
14315
  }) : x("", !0),
14314
14316
  _.$slots.day ? x("", !0) : (d(), I(se, { key: 1 }, [
14315
- ue(q(E.text), 1)
14317
+ ue(q($.text), 1)
14316
14318
  ], 64)),
14317
- E.marker && (_.hideOffsetDates ? E.current : !0) ? (d(), I("div", {
14319
+ $.marker && (_.hideOffsetDates ? $.current : !0) ? (d(), I("div", {
14318
14320
  key: 2,
14319
- class: ee(c(M)(E.marker)),
14320
- style: At(E.marker.color ? { backgroundColor: E.marker.color } : {})
14321
+ class: ee(c(M)($.marker)),
14322
+ style: At($.marker.color ? { backgroundColor: $.marker.color } : {})
14321
14323
  }, null, 6)) : x("", !0),
14322
- c(w)(E.value) ? (d(), I("div", {
14324
+ c(w)($.value) ? (d(), I("div", {
14323
14325
  key: 3,
14324
14326
  class: "dp__marker_tooltip",
14325
14327
  style: At(s.value)
14326
14328
  }, [
14327
- (de = E.marker) != null && de.tooltip ? (d(), I("div", {
14329
+ (de = $.marker) != null && de.tooltip ? (d(), I("div", {
14328
14330
  key: 0,
14329
14331
  class: "dp__tooltip_content",
14330
14332
  onClick: V[0] || (V[0] = Ge(() => {
14331
14333
  }, ["stop"]))
14332
14334
  }, [
14333
- (d(!0), I(se, null, pe(E.marker.tooltip, ($, P) => (d(), I("div", {
14335
+ (d(!0), I(se, null, pe($.marker.tooltip, (E, P) => (d(), I("div", {
14334
14336
  key: P,
14335
14337
  class: "dp__tooltip_text"
14336
14338
  }, [
14337
14339
  _.$slots["marker-tooltip"] ? L(_.$slots, "marker-tooltip", {
14338
14340
  key: 0,
14339
- tooltop: $,
14340
- day: E.value
14341
+ tooltop: E,
14342
+ day: $.value
14341
14343
  }) : x("", !0),
14342
14344
  _.$slots["marker-tooltip"] ? x("", !0) : (d(), I(se, { key: 1 }, [
14343
14345
  g("div", {
14344
14346
  class: "dp__tooltip_mark",
14345
- style: At($.color ? { backgroundColor: $.color } : {})
14347
+ style: At(E.color ? { backgroundColor: E.color } : {})
14346
14348
  }, null, 4),
14347
- g("div", null, q($.text), 1)
14349
+ g("div", null, q(E.text), 1)
14348
14350
  ], 64))
14349
14351
  ]))), 128)),
14350
14352
  m3
@@ -14439,9 +14441,9 @@ const W4 = (e, t, n, i) => {
14439
14441
  dp__overlay_col: !0
14440
14442
  })), M = (_) => i.skipActive ? !1 : _.value === i.modelValue, w = j(() => i.items.map((_) => _.filter((V) => V).map((V) => {
14441
14443
  var Z, h, k;
14442
- const T = i.disabledValues.some((J) => J === V.value) || D(V.value), E = (Z = i.multiModelValue) != null && Z.length ? (h = i.multiModelValue) == null ? void 0 : h.some(
14443
- (J) => Re(
14444
- J,
14444
+ const T = i.disabledValues.some((X) => X === V.value) || D(V.value), $ = (Z = i.multiModelValue) != null && Z.length ? (h = i.multiModelValue) == null ? void 0 : h.some(
14445
+ (X) => Re(
14446
+ X,
14445
14447
  yn(
14446
14448
  i.monthPicker ? Hn(new Date(), V.value) : new Date(),
14447
14449
  i.monthPicker ? i.year : V.value
@@ -14451,10 +14453,10 @@ const W4 = (e, t, n, i) => {
14451
14453
  return {
14452
14454
  ...V,
14453
14455
  className: {
14454
- dp__overlay_cell_active: E,
14455
- dp__overlay_cell: !E,
14456
+ dp__overlay_cell_active: $,
14457
+ dp__overlay_cell: !$,
14456
14458
  dp__overlay_cell_disabled: T,
14457
- dp__overlay_cell_active_disabled: T && E,
14459
+ dp__overlay_cell_active_disabled: T && $,
14458
14460
  dp__overlay_cell_pad: !0,
14459
14461
  dp__cell_in_between: (k = i.multiModelValue) != null && k.length ? F(V.value) : !1
14460
14462
  }
@@ -14496,7 +14498,7 @@ const W4 = (e, t, n, i) => {
14496
14498
  );
14497
14499
  }, te = () => {
14498
14500
  n("toggle"), n("reset-flow");
14499
- }, X = () => {
14501
+ }, J = () => {
14500
14502
  i.escClose && te();
14501
14503
  }, le = (_, V, Z, h) => {
14502
14504
  _ && (V.value === +i.modelValue && !i.disabledValues.includes(V.value) && (u.value = _), i.arrowNavigation && (Array.isArray(y.value[Z]) ? y.value[Z][h] = _ : y.value[Z] = [_], B()));
@@ -14513,7 +14515,7 @@ const W4 = (e, t, n, i) => {
14513
14515
  class: ee(c(b)),
14514
14516
  role: "dialog",
14515
14517
  tabindex: "0",
14516
- onKeydown: he(X, ["esc"])
14518
+ onKeydown: he(J, ["esc"])
14517
14519
  }, [
14518
14520
  g("div", {
14519
14521
  class: ee(c(Q)),
@@ -14528,22 +14530,22 @@ const W4 = (e, t, n, i) => {
14528
14530
  key: k,
14529
14531
  role: "row"
14530
14532
  }, [
14531
- (d(!0), I(se, null, pe(h, (T, E) => (d(), I("div", {
14533
+ (d(!0), I(se, null, pe(h, (T, $) => (d(), I("div", {
14532
14534
  role: "gridcell",
14533
14535
  class: ee(c(O)),
14534
14536
  key: T.value,
14535
14537
  "aria-selected": T.value === e.modelValue && !e.disabledValues.includes(T.value),
14536
14538
  "aria-disabled": T.className.dp__overlay_cell_disabled,
14537
14539
  ref_for: !0,
14538
- ref: (J) => le(J, T, k, E),
14540
+ ref: (X) => le(X, T, k, $),
14539
14541
  tabindex: "0",
14540
14542
  "data-test": T.text,
14541
- onClick: (J) => G(T.value),
14543
+ onClick: (X) => G(T.value),
14542
14544
  onKeydown: [
14543
- he((J) => G(T.value), ["enter"]),
14544
- he((J) => G(T.value), ["space"])
14545
+ he((X) => G(T.value), ["enter"]),
14546
+ he((X) => G(T.value), ["space"])
14545
14547
  ],
14546
- onMouseover: (J) => m.value = T.value
14548
+ onMouseover: (X) => m.value = T.value
14547
14549
  }, [
14548
14550
  g("div", {
14549
14551
  class: ee(T.className)
@@ -14692,23 +14694,23 @@ const W4 = (e, t, n, i) => {
14692
14694
  ct(() => {
14693
14695
  n("mount");
14694
14696
  });
14695
- const O = ($) => ({
14696
- get: () => i[$],
14697
+ const O = (E) => ({
14698
+ get: () => i[E],
14697
14699
  set: (P) => {
14698
- const me = $ === "month" ? "year" : "month";
14699
- n("update-month-year", { [$]: P, [me]: i[me] }), n("month-year-select", $ === "year"), $ === "month" ? E(!0) : J(!0);
14700
+ const me = E === "month" ? "year" : "month";
14701
+ n("update-month-year", { [E]: P, [me]: i[me] }), n("month-year-select", E === "year"), E === "month" ? $(!0) : X(!0);
14700
14702
  }
14701
- }), M = j(O("month")), w = j(O("year")), S = ($) => {
14702
- const P = Ve(ie($));
14703
+ }), M = j(O("month")), w = j(O("year")), S = (E) => {
14704
+ const P = Ve(ie(E));
14703
14705
  return i.year === P;
14704
- }, Q = j(() => i.monthPicker ? Array.isArray(i.disabledDates) ? i.disabledDates.map(($) => ie($)).filter(($) => S($)).map(($) => Ue($)) : [] : []), D = j(() => ($) => {
14705
- const P = $ === "month";
14706
+ }, Q = j(() => i.monthPicker ? Array.isArray(i.disabledDates) ? i.disabledDates.map((E) => ie(E)).filter((E) => S(E)).map((E) => Ue(E)) : [] : []), D = j(() => (E) => {
14707
+ const P = E === "month";
14706
14708
  return {
14707
14709
  showSelectionGrid: (P ? y : m).value,
14708
14710
  items: (P ? Z : h).value,
14709
14711
  disabledValues: a.value.filters[P ? "months" : "years"].concat(Q.value),
14710
14712
  minValue: (P ? te : G).value,
14711
- maxValue: (P ? X : F).value,
14713
+ maxValue: (P ? J : F).value,
14712
14714
  headerRefs: P && i.monthPicker ? [p.value, N.value, b.value] : [],
14713
14715
  escClose: i.escClose,
14714
14716
  transitions: a.value.transitions,
@@ -14718,13 +14720,13 @@ const W4 = (e, t, n, i) => {
14718
14720
  arrowNavigation: i.arrowNavigation,
14719
14721
  hideNavigation: i.hideNavigation
14720
14722
  };
14721
- }), z = j(() => ($) => ({
14723
+ }), z = j(() => (E) => ({
14722
14724
  month: i.month,
14723
14725
  year: i.year,
14724
- items: $ === "month" ? i.months : i.years,
14726
+ items: E === "month" ? i.months : i.years,
14725
14727
  instance: i.instance,
14726
14728
  updateMonthYear: f,
14727
- toggle: $ === "month" ? E : J
14729
+ toggle: E === "month" ? $ : X
14728
14730
  })), G = j(() => i.minDate ? Ve(ie(i.minDate)) : null), F = j(() => i.maxDate ? Ve(ie(i.maxDate)) : null), te = j(() => {
14729
14731
  if (i.minDate && G.value) {
14730
14732
  if (G.value > i.year)
@@ -14733,37 +14735,37 @@ const W4 = (e, t, n, i) => {
14733
14735
  return Ue(ie(i.minDate));
14734
14736
  }
14735
14737
  return null;
14736
- }), X = j(() => i.maxDate && F.value ? F.value < i.year ? -1 : F.value === i.year ? Ue(ie(i.maxDate)) : null : null), le = j(() => i.range && i.internalModelValue && (i.monthPicker || i.yearPicker) ? i.internalModelValue : []), B = ($) => $.reverse(), _ = ($, P = !1) => {
14738
+ }), J = j(() => i.maxDate && F.value ? F.value < i.year ? -1 : F.value === i.year ? Ue(ie(i.maxDate)) : null : null), le = j(() => i.range && i.internalModelValue && (i.monthPicker || i.yearPicker) ? i.internalModelValue : []), B = (E) => E.reverse(), _ = (E, P = !1) => {
14737
14739
  const me = [], ve = (ge) => P ? B(ge) : ge;
14738
- for (let ge = 0; ge < $.length; ge += 3) {
14739
- const Ce = [$[ge], $[ge + 1], $[ge + 2]];
14740
+ for (let ge = 0; ge < E.length; ge += 3) {
14741
+ const Ce = [E[ge], E[ge + 1], E[ge + 2]];
14740
14742
  me.push(ve(Ce));
14741
14743
  }
14742
14744
  return P ? me.reverse() : me;
14743
- }, V = j(() => i.months.find((P) => P.value === i.month) || { text: "", value: 0 }), Z = j(() => _(i.months)), h = j(() => _(i.years, i.reverseYears)), k = j(() => a.value.multiCalendars ? i.multiCalendarsSolo ? !0 : i.instance === 0 : !0), T = j(() => a.value.multiCalendars ? i.multiCalendarsSolo ? !0 : i.instance === a.value.multiCalendars - 1 : !0), E = ($ = !1) => {
14744
- C($), y.value = !y.value, y.value || n("overlay-closed");
14745
- }, J = ($ = !1) => {
14746
- C($), m.value = !m.value, m.value || n("overlay-closed");
14747
- }, C = ($) => {
14748
- $ || n("reset-flow");
14749
- }, oe = ($ = !1) => {
14750
- u.value($) || n("update-month-year", {
14751
- year: $ ? i.year + 1 : i.year - 1,
14745
+ }, V = j(() => i.months.find((P) => P.value === i.month) || { text: "", value: 0 }), Z = j(() => _(i.months)), h = j(() => _(i.years, i.reverseYears)), k = j(() => a.value.multiCalendars ? i.multiCalendarsSolo ? !0 : i.instance === 0 : !0), T = j(() => a.value.multiCalendars ? i.multiCalendarsSolo ? !0 : i.instance === a.value.multiCalendars - 1 : !0), $ = (E = !1) => {
14746
+ C(E), y.value = !y.value, y.value || n("overlay-closed");
14747
+ }, X = (E = !1) => {
14748
+ C(E), m.value = !m.value, m.value || n("overlay-closed");
14749
+ }, C = (E) => {
14750
+ E || n("reset-flow");
14751
+ }, oe = (E = !1) => {
14752
+ u.value(E) || n("update-month-year", {
14753
+ year: E ? i.year + 1 : i.year - 1,
14752
14754
  month: i.month,
14753
14755
  fromNav: !0
14754
14756
  });
14755
- }, de = ($, P) => {
14756
- i.arrowNavigation && (v.value[P] = ut($), l(v.value, "monthYear"));
14757
+ }, de = (E, P) => {
14758
+ i.arrowNavigation && (v.value[P] = ut(E), l(v.value, "monthYear"));
14757
14759
  };
14758
14760
  return t({
14759
- toggleMonthPicker: E,
14760
- toggleYearPicker: J
14761
- }), ($, P) => {
14761
+ toggleMonthPicker: $,
14762
+ toggleYearPicker: X
14763
+ }), (E, P) => {
14762
14764
  var me, ve, ge, Ce, tt;
14763
14765
  return d(), I("div", b3, [
14764
- $.$slots["month-year"] ? L($.$slots, "month-year", et(Oe({ key: 0 }, { month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: c(f), handleMonthYearChange: c(s), instance: e.instance }))) : (d(), I(se, { key: 1 }, [
14765
- !$.monthPicker && !$.yearPicker ? (d(), I(se, { key: 0 }, [
14766
- c(k) && !$.vertical ? (d(), U(Nr, {
14766
+ E.$slots["month-year"] ? L(E.$slots, "month-year", et(Oe({ key: 0 }, { month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: c(f), handleMonthYearChange: c(s), instance: e.instance }))) : (d(), I(se, { key: 1 }, [
14767
+ !E.monthPicker && !E.yearPicker ? (d(), I(se, { key: 0 }, [
14768
+ c(k) && !E.vertical ? (d(), U(Nr, {
14767
14769
  key: 0,
14768
14770
  "aria-label": (me = c(a).ariaLabels) == null ? void 0 : me.prevMonth,
14769
14771
  disabled: c(u)(!1),
@@ -14771,8 +14773,8 @@ const W4 = (e, t, n, i) => {
14771
14773
  onSetRef: P[1] || (P[1] = (Me) => de(Me, 0))
14772
14774
  }, {
14773
14775
  default: Y(() => [
14774
- $.$slots["arrow-left"] ? L($.$slots, "arrow-left", { key: 0 }) : x("", !0),
14775
- $.$slots["arrow-left"] ? x("", !0) : (d(), U(c(Bu), { key: 1 }))
14776
+ E.$slots["arrow-left"] ? L(E.$slots, "arrow-left", { key: 0 }) : x("", !0),
14777
+ E.$slots["arrow-left"] ? x("", !0) : (d(), U(c(Bu), { key: 1 }))
14776
14778
  ]),
14777
14779
  _: 3
14778
14780
  }, 8, ["aria-label", "disabled"])) : x("", !0),
@@ -14785,45 +14787,45 @@ const W4 = (e, t, n, i) => {
14785
14787
  modelValue: c(M),
14786
14788
  "onUpdate:modelValue": P[2] || (P[2] = (Me) => gt(M) ? M.value = Me : null)
14787
14789
  }, c(D)("month"), {
14788
- onToggle: E,
14790
+ onToggle: $,
14789
14791
  onSetRef: P[3] || (P[3] = (Me) => de(Me, 1))
14790
14792
  }), rt({
14791
14793
  default: Y(() => [
14792
- $.$slots.month ? L($.$slots, "month", et(Oe({ key: 0 }, c(V)))) : x("", !0),
14793
- $.$slots.month ? x("", !0) : (d(), I(se, { key: 1 }, [
14794
+ E.$slots.month ? L(E.$slots, "month", et(Oe({ key: 0 }, c(V)))) : x("", !0),
14795
+ E.$slots.month ? x("", !0) : (d(), I(se, { key: 1 }, [
14794
14796
  ue(q(c(V).text), 1)
14795
14797
  ], 64))
14796
14798
  ]),
14797
14799
  _: 2
14798
14800
  }, [
14799
- $.$slots["calendar-icon"] ? {
14801
+ E.$slots["calendar-icon"] ? {
14800
14802
  name: "calendar-icon",
14801
14803
  fn: Y(() => [
14802
- L($.$slots, "calendar-icon")
14804
+ L(E.$slots, "calendar-icon")
14803
14805
  ]),
14804
14806
  key: "0"
14805
14807
  } : void 0,
14806
- $.$slots["month-overlay-value"] ? {
14808
+ E.$slots["month-overlay-value"] ? {
14807
14809
  name: "month-overlay-val",
14808
14810
  fn: Y(({ item: Me }) => [
14809
- L($.$slots, "month-overlay-value", {
14811
+ L(E.$slots, "month-overlay-value", {
14810
14812
  text: Me.text,
14811
14813
  value: Me.value
14812
14814
  })
14813
14815
  ]),
14814
14816
  key: "1"
14815
14817
  } : void 0,
14816
- $.$slots["month-overlay"] ? {
14818
+ E.$slots["month-overlay"] ? {
14817
14819
  name: "overlay-month",
14818
14820
  fn: Y(() => [
14819
- L($.$slots, "month-overlay", et(Wt(c(z)("month"))))
14821
+ L(E.$slots, "month-overlay", et(Wt(c(z)("month"))))
14820
14822
  ]),
14821
14823
  key: "2"
14822
14824
  } : void 0,
14823
- $.$slots["month-overlay-header"] ? {
14825
+ E.$slots["month-overlay-header"] ? {
14824
14826
  name: "overlay-month-header",
14825
14827
  fn: Y(() => [
14826
- L($.$slots, "month-overlay-header", { toggle: E })
14828
+ L(E.$slots, "month-overlay-header", { toggle: $ })
14827
14829
  ]),
14828
14830
  key: "3"
14829
14831
  } : void 0
@@ -14836,62 +14838,62 @@ const W4 = (e, t, n, i) => {
14836
14838
  modelValue: c(w),
14837
14839
  "onUpdate:modelValue": P[4] || (P[4] = (Me) => gt(w) ? w.value = Me : null)
14838
14840
  }, c(D)("year"), {
14839
- onToggle: J,
14841
+ onToggle: X,
14840
14842
  onSetRef: P[5] || (P[5] = (Me) => de(Me, 2))
14841
14843
  }), rt({
14842
14844
  default: Y(() => [
14843
- $.$slots.year ? L($.$slots, "year", {
14845
+ E.$slots.year ? L(E.$slots, "year", {
14844
14846
  key: 0,
14845
14847
  year: e.year
14846
14848
  }) : x("", !0),
14847
- $.$slots.year ? x("", !0) : (d(), I(se, { key: 1 }, [
14849
+ E.$slots.year ? x("", !0) : (d(), I(se, { key: 1 }, [
14848
14850
  ue(q(e.year), 1)
14849
14851
  ], 64))
14850
14852
  ]),
14851
14853
  _: 2
14852
14854
  }, [
14853
- $.$slots["calendar-icon"] ? {
14855
+ E.$slots["calendar-icon"] ? {
14854
14856
  name: "calendar-icon",
14855
14857
  fn: Y(() => [
14856
- L($.$slots, "calendar-icon")
14858
+ L(E.$slots, "calendar-icon")
14857
14859
  ]),
14858
14860
  key: "0"
14859
14861
  } : void 0,
14860
- $.$slots["year-overlay-value"] ? {
14862
+ E.$slots["year-overlay-value"] ? {
14861
14863
  name: "year-overlay-val",
14862
14864
  fn: Y(({ item: Me }) => [
14863
- L($.$slots, "year-overlay-value", {
14865
+ L(E.$slots, "year-overlay-value", {
14864
14866
  text: Me.text,
14865
14867
  value: Me.value
14866
14868
  })
14867
14869
  ]),
14868
14870
  key: "1"
14869
14871
  } : void 0,
14870
- $.$slots["year-overlay"] ? {
14872
+ E.$slots["year-overlay"] ? {
14871
14873
  name: "overlay-year",
14872
14874
  fn: Y(() => [
14873
- L($.$slots, "year-overlay", et(Wt(c(z)("year"))))
14875
+ L(E.$slots, "year-overlay", et(Wt(c(z)("year"))))
14874
14876
  ]),
14875
14877
  key: "2"
14876
14878
  } : void 0,
14877
- $.$slots["year-overlay-header"] ? {
14879
+ E.$slots["year-overlay-header"] ? {
14878
14880
  name: "overlay-year-header",
14879
14881
  fn: Y(() => [
14880
- L($.$slots, "year-overlay-header", { toggle: J })
14882
+ L(E.$slots, "year-overlay-header", { toggle: X })
14881
14883
  ]),
14882
14884
  key: "3"
14883
14885
  } : void 0
14884
14886
  ]), 1040, ["aria-label", "modelValue"])
14885
14887
  ]),
14886
- c(k) && $.vertical ? (d(), U(Nr, {
14888
+ c(k) && E.vertical ? (d(), U(Nr, {
14887
14889
  key: 1,
14888
14890
  "aria-label": (Ce = c(a).ariaLabels) == null ? void 0 : Ce.prevMonth,
14889
14891
  disabled: c(u)(!1),
14890
14892
  onActivate: P[6] || (P[6] = (Me) => c(s)(!1))
14891
14893
  }, {
14892
14894
  default: Y(() => [
14893
- $.$slots["arrow-up"] ? L($.$slots, "arrow-up", { key: 0 }) : x("", !0),
14894
- $.$slots["arrow-up"] ? x("", !0) : (d(), U(c(md), { key: 1 }))
14895
+ E.$slots["arrow-up"] ? L(E.$slots, "arrow-up", { key: 0 }) : x("", !0),
14896
+ E.$slots["arrow-up"] ? x("", !0) : (d(), U(c(md), { key: 1 }))
14895
14897
  ]),
14896
14898
  _: 3
14897
14899
  }, 8, ["aria-label", "disabled"])) : x("", !0),
@@ -14904,21 +14906,21 @@ const W4 = (e, t, n, i) => {
14904
14906
  onSetRef: P[8] || (P[8] = (Me) => de(Me, 3))
14905
14907
  }, {
14906
14908
  default: Y(() => [
14907
- $.$slots[$.vertical ? "arrow-down" : "arrow-right"] ? L($.$slots, $.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : x("", !0),
14908
- $.$slots[$.vertical ? "arrow-down" : "arrow-right"] ? x("", !0) : (d(), U(ke($.vertical ? c(yd) : c(Yu)), { key: 1 }))
14909
+ E.$slots[E.vertical ? "arrow-down" : "arrow-right"] ? L(E.$slots, E.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : x("", !0),
14910
+ E.$slots[E.vertical ? "arrow-down" : "arrow-right"] ? x("", !0) : (d(), U(ke(E.vertical ? c(yd) : c(Yu)), { key: 1 }))
14909
14911
  ]),
14910
14912
  _: 3
14911
14913
  }, 8, ["disabled", "aria-label"])) : x("", !0)
14912
14914
  ], 64)) : x("", !0),
14913
- $.monthPicker ? (d(), U(Fn, Oe({ key: 1 }, c(D)("month"), {
14914
- "skip-active": $.range,
14915
+ E.monthPicker ? (d(), U(Fn, Oe({ key: 1 }, c(D)("month"), {
14916
+ "skip-active": E.range,
14915
14917
  year: e.year,
14916
14918
  "multi-model-value": c(le),
14917
14919
  "month-picker": "",
14918
14920
  modelValue: c(M),
14919
14921
  "onUpdate:modelValue": P[17] || (P[17] = (Me) => gt(M) ? M.value = Me : null),
14920
- onToggle: E,
14921
- onSelected: P[18] || (P[18] = (Me) => $.$emit("overlay-closed"))
14922
+ onToggle: $,
14923
+ onSelected: P[18] || (P[18] = (Me) => E.$emit("overlay-closed"))
14922
14924
  }), rt({
14923
14925
  header: Y(() => {
14924
14926
  var Me, je, Ee;
@@ -14937,8 +14939,8 @@ const W4 = (e, t, n, i) => {
14937
14939
  role: "button",
14938
14940
  "aria-label": (Me = c(a).ariaLabels) == null ? void 0 : Me.prevMonth
14939
14941
  }, [
14940
- $.$slots["arrow-left"] ? L($.$slots, "arrow-left", { key: 0 }) : x("", !0),
14941
- $.$slots["arrow-left"] ? x("", !0) : (d(), U(c(Bu), { key: 1 }))
14942
+ E.$slots["arrow-left"] ? L(E.$slots, "arrow-left", { key: 0 }) : x("", !0),
14943
+ E.$slots["arrow-left"] ? x("", !0) : (d(), U(c(Bu), { key: 1 }))
14942
14944
  ], 10, j3)
14943
14945
  ], 544),
14944
14946
  g("div", {
@@ -14948,14 +14950,14 @@ const W4 = (e, t, n, i) => {
14948
14950
  ref: N,
14949
14951
  "aria-label": (je = c(a).ariaLabels) == null ? void 0 : je.openYearsOverlay,
14950
14952
  tabindex: "0",
14951
- onClick: P[11] || (P[11] = () => J(!1)),
14952
- onKeydown: P[12] || (P[12] = he(() => J(!1), ["enter"]))
14953
+ onClick: P[11] || (P[11] = () => X(!1)),
14954
+ onKeydown: P[12] || (P[12] = he(() => X(!1), ["enter"]))
14953
14955
  }, [
14954
- $.$slots.year ? L($.$slots, "year", {
14956
+ E.$slots.year ? L(E.$slots, "year", {
14955
14957
  key: 0,
14956
14958
  year: e.year
14957
14959
  }) : x("", !0),
14958
- $.$slots.year ? x("", !0) : (d(), I(se, { key: 1 }, [
14960
+ E.$slots.year ? x("", !0) : (d(), I(se, { key: 1 }, [
14959
14961
  ue(q(e.year), 1)
14960
14962
  ], 64))
14961
14963
  ], 40, S3),
@@ -14972,8 +14974,8 @@ const W4 = (e, t, n, i) => {
14972
14974
  role: "button",
14973
14975
  "aria-label": (Ee = c(a).ariaLabels) == null ? void 0 : Ee.nextMonth
14974
14976
  }, [
14975
- $.$slots["arrow-right"] ? L($.$slots, "arrow-right", { key: 0 }) : x("", !0),
14976
- $.$slots["arrow-right"] ? x("", !0) : (d(), U(c(Yu), { key: 1 }))
14977
+ E.$slots["arrow-right"] ? L(E.$slots, "arrow-right", { key: 0 }) : x("", !0),
14978
+ E.$slots["arrow-right"] ? x("", !0) : (d(), U(c(Yu), { key: 1 }))
14977
14979
  ], 10, x3)
14978
14980
  ], 544)
14979
14981
  ]),
@@ -14985,19 +14987,19 @@ const W4 = (e, t, n, i) => {
14985
14987
  m.value ? (d(), U(Fn, Oe({ key: 0 }, c(D)("year"), {
14986
14988
  modelValue: c(w),
14987
14989
  "onUpdate:modelValue": P[15] || (P[15] = (_e) => gt(w) ? w.value = _e : null),
14988
- onToggle: J,
14989
- onSelected: P[16] || (P[16] = (_e) => $.$emit("overlay-closed"))
14990
+ onToggle: X,
14991
+ onSelected: P[16] || (P[16] = (_e) => E.$emit("overlay-closed"))
14990
14992
  }), rt({
14991
14993
  "button-icon": Y(() => [
14992
- $.$slots["calendar-icon"] ? L($.$slots, "calendar-icon", { key: 0 }) : x("", !0),
14993
- $.$slots["calendar-icon"] ? x("", !0) : (d(), U(c(tr), { key: 1 }))
14994
+ E.$slots["calendar-icon"] ? L(E.$slots, "calendar-icon", { key: 0 }) : x("", !0),
14995
+ E.$slots["calendar-icon"] ? x("", !0) : (d(), U(c(tr), { key: 1 }))
14994
14996
  ]),
14995
14997
  _: 2
14996
14998
  }, [
14997
- $.$slots["year-overlay-value"] ? {
14999
+ E.$slots["year-overlay-value"] ? {
14998
15000
  name: "item",
14999
15001
  fn: Y(({ item: _e }) => [
15000
- L($.$slots, "year-overlay-value", {
15002
+ L(E.$slots, "year-overlay-value", {
15001
15003
  text: _e.text,
15002
15004
  value: _e.value
15003
15005
  })
@@ -15012,10 +15014,10 @@ const W4 = (e, t, n, i) => {
15012
15014
  }),
15013
15015
  _: 2
15014
15016
  }, [
15015
- $.$slots["month-overlay-value"] ? {
15017
+ E.$slots["month-overlay-value"] ? {
15016
15018
  name: "item",
15017
15019
  fn: Y(({ item: Me }) => [
15018
- L($.$slots, "month-overlay-value", {
15020
+ L(E.$slots, "month-overlay-value", {
15019
15021
  text: Me.text,
15020
15022
  value: Me.value
15021
15023
  })
@@ -15023,20 +15025,20 @@ const W4 = (e, t, n, i) => {
15023
15025
  key: "0"
15024
15026
  } : void 0
15025
15027
  ]), 1040, ["skip-active", "year", "multi-model-value", "modelValue"])) : x("", !0),
15026
- $.yearPicker ? (d(), U(Fn, Oe({ key: 2 }, c(D)("year"), {
15028
+ E.yearPicker ? (d(), U(Fn, Oe({ key: 2 }, c(D)("year"), {
15027
15029
  modelValue: c(w),
15028
15030
  "onUpdate:modelValue": P[19] || (P[19] = (Me) => gt(w) ? w.value = Me : null),
15029
15031
  "multi-model-value": c(le),
15030
- "skip-active": $.range,
15032
+ "skip-active": E.range,
15031
15033
  "skip-button-ref": "",
15032
15034
  "year-picker": "",
15033
- onToggle: J,
15034
- onSelected: P[20] || (P[20] = (Me) => $.$emit("overlay-closed"))
15035
+ onToggle: X,
15036
+ onSelected: P[20] || (P[20] = (Me) => E.$emit("overlay-closed"))
15035
15037
  }), rt({ _: 2 }, [
15036
- $.$slots["year-overlay-value"] ? {
15038
+ E.$slots["year-overlay-value"] ? {
15037
15039
  name: "item",
15038
15040
  fn: Y(({ item: Me }) => [
15039
- L($.$slots, "year-overlay-value", {
15041
+ L(E.$slots, "year-overlay-value", {
15040
15042
  text: Me.text,
15041
15043
  value: Me.value
15042
15044
  })
@@ -15114,11 +15116,11 @@ const W4 = (e, t, n, i) => {
15114
15116
  f.value === "PM" ? (f.value = "AM", n("update:hours", i.hours - 12)) : (f.value = "PM", n("update:hours", i.hours + 12));
15115
15117
  }, te = (B) => {
15116
15118
  u[B] = !0;
15117
- }, X = (B, _, V) => {
15119
+ }, J = (B, _, V) => {
15118
15120
  if (B && i.arrowNavigation) {
15119
15121
  Array.isArray(m.value[_]) ? m.value[_][V] = B : m.value[_] = [B];
15120
15122
  const Z = m.value.reduce(
15121
- (h, k) => k.map((T, E) => [...h[E] || [], k[E]]),
15123
+ (h, k) => k.map((T, $) => [...h[$] || [], k[$]]),
15122
15124
  []
15123
15125
  );
15124
15126
  r(i.closeTimePickerBtn), y.value && (Z[1] = Z[1].concat(y.value)), a(Z, i.order);
@@ -15128,7 +15130,7 @@ const W4 = (e, t, n, i) => {
15128
15130
  var V;
15129
15131
  return B.disabled ? x("", !0) : (d(), I("div", T3, [
15130
15132
  (d(!0), I(se, null, pe(c(b), (Z, h) => {
15131
- var k, T, E;
15133
+ var k, T, $;
15132
15134
  return d(), I("div", {
15133
15135
  key: h,
15134
15136
  class: ee(c(N))
@@ -15142,12 +15144,12 @@ const W4 = (e, t, n, i) => {
15142
15144
  "aria-label": (k = c(o).ariaLabels) == null ? void 0 : k.incrementValue(Z.type),
15143
15145
  tabindex: "0",
15144
15146
  onKeydown: [
15145
- he((J) => z(Z.type), ["enter"]),
15146
- he((J) => z(Z.type), ["space"])
15147
+ he((X) => z(Z.type), ["enter"]),
15148
+ he((X) => z(Z.type), ["space"])
15147
15149
  ],
15148
- onClick: (J) => z(Z.type),
15150
+ onClick: (X) => z(Z.type),
15149
15151
  ref_for: !0,
15150
- ref: (J) => X(J, h, 0)
15152
+ ref: (X) => J(X, h, 0)
15151
15153
  }, [
15152
15154
  B.$slots["arrow-up"] ? L(B.$slots, "arrow-up", { key: 0 }) : x("", !0),
15153
15155
  B.$slots["arrow-up"] ? x("", !0) : (d(), U(c(md), { key: 1 }))
@@ -15158,12 +15160,12 @@ const W4 = (e, t, n, i) => {
15158
15160
  class: ee(S(Z.type) ? "" : "dp__time_display"),
15159
15161
  tabindex: "0",
15160
15162
  onKeydown: [
15161
- he((J) => Q(Z.type), ["enter"]),
15162
- he((J) => Q(Z.type), ["space"])
15163
+ he((X) => Q(Z.type), ["enter"]),
15164
+ he((X) => Q(Z.type), ["space"])
15163
15165
  ],
15164
- onClick: (J) => Q(Z.type),
15166
+ onClick: (X) => Q(Z.type),
15165
15167
  ref_for: !0,
15166
- ref: (J) => X(J, h, 1)
15168
+ ref: (X) => J(X, h, 1)
15167
15169
  }, [
15168
15170
  B.$slots[Z.type] ? L(B.$slots, Z.type, {
15169
15171
  key: 0,
@@ -15177,15 +15179,15 @@ const W4 = (e, t, n, i) => {
15177
15179
  g("div", {
15178
15180
  class: "dp__inc_dec_button",
15179
15181
  role: "button",
15180
- "aria-label": (E = c(o).ariaLabels) == null ? void 0 : E.decrementValue(Z.type),
15182
+ "aria-label": ($ = c(o).ariaLabels) == null ? void 0 : $.decrementValue(Z.type),
15181
15183
  tabindex: "0",
15182
15184
  onKeydown: [
15183
- he((J) => z(Z.type, !1), ["enter"]),
15184
- he((J) => z(Z.type, !1), ["space"])
15185
+ he((X) => z(Z.type, !1), ["enter"]),
15186
+ he((X) => z(Z.type, !1), ["space"])
15185
15187
  ],
15186
- onClick: (J) => z(Z.type, !1),
15188
+ onClick: (X) => z(Z.type, !1),
15187
15189
  ref_for: !0,
15188
- ref: (J) => X(J, h, 2)
15190
+ ref: (X) => J(X, h, 2)
15189
15191
  }, [
15190
15192
  B.$slots["arrow-down"] ? L(B.$slots, "arrow-down", { key: 0 }) : x("", !0),
15191
15193
  B.$slots["arrow-down"] ? x("", !0) : (d(), U(c(yd), { key: 1 }))
@@ -15282,38 +15284,38 @@ const W4 = (e, t, n, i) => {
15282
15284
  ct(() => {
15283
15285
  n("mount"), !i.timePicker && i.arrowNavigation ? a([ut(y.value)], "time") : r(!0, i.timePicker);
15284
15286
  });
15285
- const N = j(() => i.range && i.modelAuto ? pd(i.internalModelValue) : !0), b = W(!1), O = (X) => ({
15286
- hours: Array.isArray(i.hours) ? i.hours[X] : i.hours,
15287
- minutes: Array.isArray(i.minutes) ? i.minutes[X] : i.minutes,
15288
- seconds: Array.isArray(i.seconds) ? i.seconds[X] : i.seconds
15287
+ const N = j(() => i.range && i.modelAuto ? pd(i.internalModelValue) : !0), b = W(!1), O = (J) => ({
15288
+ hours: Array.isArray(i.hours) ? i.hours[J] : i.hours,
15289
+ minutes: Array.isArray(i.minutes) ? i.minutes[J] : i.minutes,
15290
+ seconds: Array.isArray(i.seconds) ? i.seconds[J] : i.seconds
15289
15291
  }), M = j(() => {
15290
- const X = [];
15292
+ const J = [];
15291
15293
  if (i.range)
15292
15294
  for (let le = 0; le < 2; le++)
15293
- X.push(O(le));
15295
+ J.push(O(le));
15294
15296
  else
15295
- X.push(O(0));
15296
- return X;
15297
- }), w = (X, le = !1, B = "") => {
15298
- le || n("reset-flow"), b.value = X, i.arrowNavigation && (r(X), X || n("overlay-closed")), Dt(() => {
15297
+ J.push(O(0));
15298
+ return J;
15299
+ }), w = (J, le = !1, B = "") => {
15300
+ le || n("reset-flow"), b.value = J, i.arrowNavigation && (r(J), J || n("overlay-closed")), Dt(() => {
15299
15301
  B !== "" && v.value[0] && v.value[0].openChildCmp(B);
15300
15302
  });
15301
15303
  }, S = j(() => ({
15302
15304
  dp__button: !0,
15303
15305
  dp__button_bottom: i.autoApply
15304
- })), Q = mn(o, "timePicker"), D = (X, le, B) => i.range ? le === 0 ? [X, M.value[1][B]] : [M.value[0][B], X] : X, z = (X) => {
15305
- n("update:hours", X);
15306
- }, G = (X) => {
15307
- n("update:minutes", X);
15308
- }, F = (X) => {
15309
- n("update:seconds", X);
15306
+ })), Q = mn(o, "timePicker"), D = (J, le, B) => i.range ? le === 0 ? [J, M.value[1][B]] : [M.value[0][B], J] : J, z = (J) => {
15307
+ n("update:hours", J);
15308
+ }, G = (J) => {
15309
+ n("update:minutes", J);
15310
+ }, F = (J) => {
15311
+ n("update:seconds", J);
15310
15312
  }, te = () => {
15311
15313
  p.value && i.arrowNavigation && p.value.focus({ preventScroll: !0 });
15312
15314
  };
15313
- return t({ toggleTimePicker: w }), (X, le) => {
15315
+ return t({ toggleTimePicker: w }), (J, le) => {
15314
15316
  var B;
15315
15317
  return d(), I("div", null, [
15316
- X.timePicker ? x("", !0) : Ke((d(), I("div", {
15318
+ J.timePicker ? x("", !0) : Ke((d(), I("div", {
15317
15319
  key: 0,
15318
15320
  class: ee(c(S)),
15319
15321
  role: "button",
@@ -15327,8 +15329,8 @@ const W4 = (e, t, n, i) => {
15327
15329
  ],
15328
15330
  onClick: le[2] || (le[2] = (_) => w(!0))
15329
15331
  }, [
15330
- X.$slots["clock-icon"] ? L(X.$slots, "clock-icon", { key: 0 }) : x("", !0),
15331
- X.$slots["clock-icon"] ? x("", !0) : (d(), U(c(fd), { key: 1 }))
15332
+ J.$slots["clock-icon"] ? L(J.$slots, "clock-icon", { key: 0 }) : x("", !0),
15333
+ J.$slots["clock-icon"] ? x("", !0) : (d(), U(c(fd), { key: 1 }))
15332
15334
  ], 42, P3)), [
15333
15335
  [nt, !c(l)("time")]
15334
15336
  ]),
@@ -15339,7 +15341,7 @@ const W4 = (e, t, n, i) => {
15339
15341
  default: Y(() => {
15340
15342
  var _;
15341
15343
  return [
15342
- b.value || X.timePicker ? (d(), I("div", {
15344
+ b.value || J.timePicker ? (d(), I("div", {
15343
15345
  key: 0,
15344
15346
  class: "dp__overlay",
15345
15347
  ref_key: "overlayRef",
@@ -15347,7 +15349,7 @@ const W4 = (e, t, n, i) => {
15347
15349
  tabindex: "0"
15348
15350
  }, [
15349
15351
  g("div", O3, [
15350
- X.$slots["time-picker-overlay"] ? L(X.$slots, "time-picker-overlay", {
15352
+ J.$slots["time-picker-overlay"] ? L(J.$slots, "time-picker-overlay", {
15351
15353
  key: 0,
15352
15354
  hours: e.hours,
15353
15355
  minutes: e.minutes,
@@ -15356,15 +15358,15 @@ const W4 = (e, t, n, i) => {
15356
15358
  setMinutes: G,
15357
15359
  setSeconds: F
15358
15360
  }) : x("", !0),
15359
- X.$slots["time-picker-overlay"] ? x("", !0) : (d(), I("div", $3, [
15361
+ J.$slots["time-picker-overlay"] ? x("", !0) : (d(), I("div", $3, [
15360
15362
  (d(!0), I(se, null, pe(c(M), (V, Z) => Ke((d(), U(z3, Oe({ key: Z }, {
15361
- ...X.$props,
15363
+ ...J.$props,
15362
15364
  order: Z,
15363
15365
  hours: V.hours,
15364
15366
  minutes: V.minutes,
15365
15367
  seconds: V.seconds,
15366
15368
  closeTimePickerBtn: m.value,
15367
- disabled: Z === 0 ? X.fixedStart : X.fixedEnd
15369
+ disabled: Z === 0 ? J.fixedStart : J.fixedEnd
15368
15370
  }, {
15369
15371
  ref_for: !0,
15370
15372
  ref_key: "timeInputRefs",
@@ -15378,14 +15380,14 @@ const W4 = (e, t, n, i) => {
15378
15380
  pe(c(Q), (h, k) => ({
15379
15381
  name: h,
15380
15382
  fn: Y((T) => [
15381
- L(X.$slots, h, et(Wt(T)))
15383
+ L(J.$slots, h, et(Wt(T)))
15382
15384
  ])
15383
15385
  }))
15384
15386
  ]), 1040, ["onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
15385
15387
  [nt, Z === 0 ? !0 : c(N)]
15386
15388
  ])), 128))
15387
15389
  ])),
15388
- X.timePicker ? x("", !0) : Ke((d(), I("div", {
15390
+ J.timePicker ? x("", !0) : Ke((d(), I("div", {
15389
15391
  key: 2,
15390
15392
  ref_key: "closeTimePickerBtn",
15391
15393
  ref: m,
@@ -15399,8 +15401,8 @@ const W4 = (e, t, n, i) => {
15399
15401
  ],
15400
15402
  onClick: le[5] || (le[5] = (V) => w(!1))
15401
15403
  }, [
15402
- X.$slots["calendar-icon"] ? L(X.$slots, "calendar-icon", { key: 0 }) : x("", !0),
15403
- X.$slots["calendar-icon"] ? x("", !0) : (d(), U(c(tr), { key: 1 }))
15404
+ J.$slots["calendar-icon"] ? L(J.$slots, "calendar-icon", { key: 0 }) : x("", !0),
15405
+ J.$slots["calendar-icon"] ? x("", !0) : (d(), U(c(tr), { key: 1 }))
15404
15406
  ], 42, E3)), [
15405
15407
  [nt, !c(l)("time")]
15406
15408
  ])
@@ -15419,8 +15421,8 @@ const W4 = (e, t, n, i) => {
15419
15421
  }, s = () => {
15420
15422
  r.value = null;
15421
15423
  }, u = (h) => Array.isArray(e.value) && t.range && e.value[0] && r.value ? h ? pt(r.value, e.value[0]) : ft(r.value, e.value[0]) : !0, f = (h, k) => {
15422
- const T = () => e.value ? k ? e.value[0] || null : e.value[1] : null, E = e.value && Array.isArray(e.value) ? T() : null;
15423
- return Re(ie(h.value), E);
15424
+ const T = () => e.value ? k ? e.value[0] || null : e.value[1] : null, $ = e.value && Array.isArray(e.value) ? T() : null;
15425
+ return Re(ie(h.value), $);
15424
15426
  }, y = (h) => {
15425
15427
  const k = Array.isArray(e.value) ? e.value[0] : null;
15426
15428
  return h ? !ft(r.value || null, k) : !0;
@@ -15463,7 +15465,7 @@ const W4 = (e, t, n, i) => {
15463
15465
  return !1;
15464
15466
  const k = t.range ? !m(h) && !m(h, !1) : !0;
15465
15467
  return !n(h.value) && !p(h) && !(!h.current && t.hideOffsetDates) && k;
15466
- }, D = (h) => t.range ? t.modelAuto ? w() && p(h) : !1 : p(h), z = (h) => t.highlight ? i(h.value, t.highlight) : !1, G = (h) => n(h.value) && t.highlightDisabledDays === !1, F = (h) => t.highlightWeekDays && t.highlightWeekDays.includes(h.value.getDay()), te = (h) => (t.range || t.weekPicker) && (t.multiCalendars > 0 ? h.current : !0) && S() && !(!h.current && t.hideOffsetDates) && !p(h) ? M(h) : !1, X = (h) => ({
15468
+ }, D = (h) => t.range ? t.modelAuto ? w() && p(h) : !1 : p(h), z = (h) => t.highlight ? i(h.value, t.highlight) : !1, G = (h) => n(h.value) && t.highlightDisabledDays === !1, F = (h) => t.highlightWeekDays && t.highlightWeekDays.includes(h.value.getDay()), te = (h) => (t.range || t.weekPicker) && (t.multiCalendars > 0 ? h.current : !0) && S() && !(!h.current && t.hideOffsetDates) && !p(h) ? M(h) : !1, J = (h) => ({
15467
15469
  dp__cell_offset: !h.current,
15468
15470
  dp__pointer: !t.disabled && !(!h.current && t.hideOffsetDates) && !n(h.value),
15469
15471
  dp__cell_disabled: n(h.value),
@@ -15493,7 +15495,7 @@ const W4 = (e, t, n, i) => {
15493
15495
  setHoverDate: l,
15494
15496
  clearHoverDate: s,
15495
15497
  getDayClassData: (h) => ({
15496
- ...X(h),
15498
+ ...J(h),
15497
15499
  ...Z(h),
15498
15500
  [t.dayClass ? t.dayClass(h.value) : ""]: !0,
15499
15501
  [t.calendarCellClassName]: !!t.calendarCellClassName
@@ -15565,7 +15567,7 @@ const W4 = (e, t, n, i) => {
15565
15567
  }, te = () => {
15566
15568
  M.value = -1;
15567
15569
  }, {
15568
- calendars: X,
15570
+ calendars: J,
15569
15571
  modelValue: le,
15570
15572
  month: B,
15571
15573
  year: _,
@@ -15574,16 +15576,16 @@ const W4 = (e, t, n, i) => {
15574
15576
  updateMonthYear: h,
15575
15577
  selectDate: k,
15576
15578
  getWeekNum: T,
15577
- monthYearSelect: E,
15578
- handleScroll: J,
15579
+ monthYearSelect: $,
15580
+ handleScroll: X,
15579
15581
  handleArrow: C,
15580
15582
  handleSwipe: oe,
15581
15583
  getMarker: de,
15582
- selectCurrentDate: $,
15584
+ selectCurrentDate: E,
15583
15585
  presetDateRange: P
15584
15586
  } = U4(i, n, F, z, M), { setHoverDate: me, clearHoverDate: ve, getDayClassData: ge } = G3(le, i);
15585
15587
  $e(
15586
- X,
15588
+ J,
15587
15589
  () => {
15588
15590
  i.openOnTop && setTimeout(() => {
15589
15591
  n("recalculate-position");
@@ -15745,7 +15747,7 @@ const W4 = (e, t, n, i) => {
15745
15747
  onMount: fe[0] || (fe[0] = (Le) => ce("monthYearInput")),
15746
15748
  onResetFlow: te,
15747
15749
  onUpdateMonthYear: (Le) => c(h)(be, Le),
15748
- onMonthYearSelect: c(E),
15750
+ onMonthYearSelect: c($),
15749
15751
  onOverlayClosed: G
15750
15752
  }), rt({ _: 2 }, [
15751
15753
  pe(c(je), (Le, zd) => ({
@@ -15772,7 +15774,7 @@ const W4 = (e, t, n, i) => {
15772
15774
  onSelectDate: (Le) => c(k)(Le, !c(H)(be)),
15773
15775
  onHandleSpace: (Le) => ne(Le, !c(H)(be)),
15774
15776
  onSetHoverDate: fe[2] || (fe[2] = (Le) => c(me)(Le)),
15775
- onHandleScroll: (Le) => c(J)(Le, be),
15777
+ onHandleScroll: (Le) => c(X)(Le, be),
15776
15778
  onHandleSwipe: (Le) => c(oe)(Le, be),
15777
15779
  onMount: fe[3] || (fe[3] = (Le) => ce("calendar")),
15778
15780
  onResetFlow: te
@@ -15820,14 +15822,14 @@ const W4 = (e, t, n, i) => {
15820
15822
  K.showNowButton ? (d(), I("div", W3, [
15821
15823
  K.$slots["now-button"] ? L(K.$slots, "now-button", {
15822
15824
  key: 0,
15823
- selectCurrentDate: c($)
15825
+ selectCurrentDate: c(E)
15824
15826
  }) : x("", !0),
15825
15827
  K.$slots["now-button"] ? x("", !0) : (d(), I("button", {
15826
15828
  key: 1,
15827
15829
  type: "button",
15828
15830
  role: "button",
15829
15831
  class: "dp__now_button",
15830
- onClick: fe[8] || (fe[8] = (...be) => c($) && c($)(...be))
15832
+ onClick: fe[8] || (fe[8] = (...be) => c(E) && c(E)(...be))
15831
15833
  }, q(K.nowButtonLabel), 1))
15832
15834
  ])) : x("", !0)
15833
15835
  ], 2),
@@ -15922,7 +15924,7 @@ const W4 = (e, t, n, i) => {
15922
15924
  internalModelValue: G,
15923
15925
  parseExternalModelValue: F,
15924
15926
  emitModelValue: te,
15925
- formatInputValue: X,
15927
+ formatInputValue: J,
15926
15928
  checkBeforeEmit: le
15927
15929
  } = V4(n, i, f), B = j(
15928
15930
  () => ({
@@ -15945,30 +15947,30 @@ const W4 = (e, t, n, i) => {
15945
15947
  }, T = () => {
15946
15948
  const je = G.value;
15947
15949
  return !je || !Array.isArray(je) && p(je) ? !0 : Array.isArray(je) ? je.length === 2 && p(je[0]) && p(je[1]) ? !0 : p(je[0]) : !1;
15948
- }, E = () => {
15950
+ }, $ = () => {
15949
15951
  le() && T() ? (te(), de()) : n("invalid-select", G.value);
15950
- }, J = (je) => {
15952
+ }, X = (je) => {
15951
15953
  te(), i.closeOnAutoApply && !je && de();
15952
15954
  }, C = (je = !1) => {
15953
- i.autoApply && N(G.value) && T() && (i.range && Array.isArray(G.value) ? (i.partialRange || G.value.length === 2) && J(je) : J(je));
15955
+ i.autoApply && N(G.value) && T() && (i.range && Array.isArray(G.value) ? (i.partialRange || G.value.length === 2) && X(je) : X(je));
15954
15956
  }, oe = () => {
15955
15957
  i.textInput || (G.value = null);
15956
15958
  }, de = () => {
15957
15959
  i.inline || (r.value && (r.value = !1, y(!1), m(!1), v(), n("closed"), D(), z.value && F(o.value)), oe(), u.value && u.value.focusInput());
15958
- }, $ = (je, Ee) => {
15960
+ }, E = (je, Ee) => {
15959
15961
  if (!je) {
15960
15962
  G.value = null;
15961
15963
  return;
15962
15964
  }
15963
- G.value = je, Ee && (E(), n("text-submit"));
15965
+ G.value = je, Ee && ($(), n("text-submit"));
15964
15966
  }, P = () => {
15965
15967
  i.autoApply && N(G.value) && te();
15966
15968
  }, me = () => r.value ? de() : h(), ve = (je) => {
15967
15969
  G.value = je;
15968
15970
  }, ge = j(() => i.textInput && b.value.textInputOptions.format), Ce = () => {
15969
- ge.value && (f.value = !0, X()), n("focus");
15971
+ ge.value && (f.value = !0, J()), n("focus");
15970
15972
  }, tt = () => {
15971
- ge.value && (f.value = !1, X()), n("blur");
15973
+ ge.value && (f.value = !1, J()), n("blur");
15972
15974
  }, Me = (je) => {
15973
15975
  s.value && s.value.updateMonthYear(0, {
15974
15976
  month: qu(je.month),
@@ -15981,11 +15983,11 @@ const W4 = (e, t, n, i) => {
15981
15983
  i.onClickOutside ? () => i.onClickOutside(T) : de
15982
15984
  ), t({
15983
15985
  closeMenu: de,
15984
- selectDate: E,
15986
+ selectDate: $,
15985
15987
  clearValue: k,
15986
15988
  openMenu: h,
15987
15989
  onScroll: V,
15988
- formatInputValue: X,
15990
+ formatInputValue: J,
15989
15991
  updateInternalModelValue: ve,
15990
15992
  setMonthYear: Me
15991
15993
  }), (je, Ee) => (d(), I("div", {
@@ -16000,9 +16002,9 @@ const W4 = (e, t, n, i) => {
16000
16002
  }, je.$props, {
16001
16003
  onClear: k,
16002
16004
  onOpen: h,
16003
- onSetInputDate: $,
16005
+ onSetInputDate: E,
16004
16006
  onSetEmptyDate: c(te),
16005
- onSelectDate: E,
16007
+ onSelectDate: $,
16006
16008
  onToggle: me,
16007
16009
  onClose: de,
16008
16010
  onFocus: Ce,
@@ -16031,7 +16033,7 @@ const W4 = (e, t, n, i) => {
16031
16033
  "internal-model-value": c(G),
16032
16034
  "onUpdate:internal-model-value": Ee[1] || (Ee[1] = (_e) => gt(G) ? G.value = _e : null),
16033
16035
  onClosePicker: de,
16034
- onSelectDate: E,
16036
+ onSelectDate: $,
16035
16037
  onAutoApply: C,
16036
16038
  onTimeUpdate: P,
16037
16039
  onFlowStep: Ee[2] || (Ee[2] = (_e) => je.$emit("flow-step", _e)),
@@ -17129,7 +17131,7 @@ const wd = /* @__PURE__ */ lt(kN, [["__scopeId", "data-v-e73ae5e8"]]), _N = { cl
17129
17131
  ]));
17130
17132
  }
17131
17133
  });
17132
- const ic = /* @__PURE__ */ lt(zN, [["__scopeId", "data-v-d6677ddc"]]), ts = (e) => (Kt("data-v-db43e8c1"), e = e(), en(), e), PN = {
17134
+ const ic = /* @__PURE__ */ lt(zN, [["__scopeId", "data-v-d6677ddc"]]), ts = (e) => (Kt("data-v-866f8e40"), e = e(), en(), e), PN = {
17133
17135
  id: "solfacil-plus-info",
17134
17136
  class: "solfacil-plus-container"
17135
17137
  }, ON = {
@@ -17161,41 +17163,41 @@ const ic = /* @__PURE__ */ lt(zN, [["__scopeId", "data-v-d6677ddc"]]), ts = (e)
17161
17163
  () => n.partner.solfacilPlus.level === "5" ? n.partner.solfacilPlus.level : +n.partner.solfacilPlus.level + 1
17162
17164
  ), r = j(
17163
17165
  () => n.partner.solfacilPlus.hasRisk || n.partner.solfacilPlus.level === "5" ? "Mantenha seu N\xEDvel" : `Alcance o N\xEDvel ${a.value}`
17164
- ), o = j(
17166
+ ), o = ["99", "100", "101", "102"], l = j(
17165
17167
  () => {
17166
- var f, y;
17167
- return ((y = (f = n.partner) == null ? void 0 : f.solfacilPlus) == null ? void 0 : y.level) !== "99";
17168
+ var y, m;
17169
+ return ((m = (y = n.partner) == null ? void 0 : y.solfacilPlus) == null ? void 0 : m.isLevelBlack) || o.includes(n.partner.solfacilPlus.level);
17168
17170
  }
17169
- ), l = j(() => ({
17171
+ ), s = j(() => ({
17170
17172
  accumulate: {
17171
- title: o.value ? "Pontos acumulados" : "Voc\xEA j\xE1 comprou este m\xEAs",
17172
- description: o.value ? `${n.partner.solfacilPlus.currentScore} pontos` : `${n.partner.solfacilPlus.currentScore} kW`
17173
+ title: l.value ? "Voc\xEA j\xE1 comprou este m\xEAs" : "Pontos acumulados",
17174
+ description: l.value ? `${n.partner.solfacilPlus.currentScore} kW` : `${n.partner.solfacilPlus.currentScore} pontos`
17173
17175
  },
17174
17176
  total: {
17175
- title: o.value ? `${r.value}` : "Atinja sua meta trimestral",
17176
- description: o.value ? `+ ${n.partner.solfacilPlus.goScore} pontos` : `+ ${n.partner.solfacilPlus.goScore} kW`
17177
+ title: l.value ? "Atinja sua meta trimestral" : `${r.value}`,
17178
+ description: l.value ? `+ ${n.partner.solfacilPlus.goScore} kW` : `+ ${n.partner.solfacilPlus.goScore} pontos`
17177
17179
  }
17178
- })), s = j(() => +n.partner.solfacilPlus.currentScore > 0), u = j(() => +n.partner.solfacilPlus.goScore > 0);
17179
- return (f, y) => (d(), I("div", PN, [
17180
- c(o) ? (d(), I("div", ON, [
17180
+ })), u = j(() => +n.partner.solfacilPlus.currentScore > 0), f = j(() => +n.partner.solfacilPlus.goScore > 0);
17181
+ return (y, m) => (d(), I("div", PN, [
17182
+ c(l) ? (d(), I("div", ZN, YN)) : (d(), I("div", ON, [
17181
17183
  $N,
17182
17184
  g("div", null, [
17183
17185
  g("h3", EN, " Voc\xEA est\xE1 no N\xEDvel " + q(e.partner.solfacilPlus.level), 1)
17184
17186
  ])
17185
- ])) : (d(), I("div", ZN, YN)),
17187
+ ])),
17186
17188
  g("div", UN, [
17187
- c(s) ? (d(), U(ic, {
17189
+ c(u) ? (d(), U(ic, {
17188
17190
  key: 0,
17189
- title: c(l).accumulate.title,
17190
- description: c(l).accumulate.description
17191
+ title: c(s).accumulate.title,
17192
+ description: c(s).accumulate.description
17191
17193
  }, null, 8, ["title", "description"])) : x("", !0),
17192
- c(u) ? (d(), U(ic, {
17194
+ c(f) ? (d(), U(ic, {
17193
17195
  key: 1,
17194
- title: c(l).total.title,
17195
- description: c(l).total.description
17196
+ title: c(s).total.title,
17197
+ description: c(s).total.description
17196
17198
  }, null, 8, ["title", "description"])) : x("", !0)
17197
17199
  ]),
17198
- c(o) ? (d(), I("p", VN, " Pr\xF3xima atualiza\xE7\xE3o: " + q(e.partner.solfacilPlus.nextTransitionDate), 1)) : x("", !0),
17200
+ c(l) ? x("", !0) : (d(), I("p", VN, " Pr\xF3xima atualiza\xE7\xE3o: " + q(e.partner.solfacilPlus.nextTransitionDate), 1)),
17199
17201
  R(Zt, {
17200
17202
  id: "solfacil-plus-link",
17201
17203
  class: "solfacil-plus-link",
@@ -17208,7 +17210,7 @@ const ic = /* @__PURE__ */ lt(zN, [["__scopeId", "data-v-d6677ddc"]]), ts = (e)
17208
17210
  ]));
17209
17211
  }
17210
17212
  });
17211
- const Nd = /* @__PURE__ */ lt(RN, [["__scopeId", "data-v-db43e8c1"]]), WN = {
17213
+ const Nd = /* @__PURE__ */ lt(RN, [["__scopeId", "data-v-866f8e40"]]), WN = {
17212
17214
  viewBox: "0 0 1024 1024",
17213
17215
  width: "1em",
17214
17216
  height: "1em"