sm-click-library-ui 0.0.192 → 0.0.193

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.
@@ -634,8 +634,8 @@ function Aa(e, n, t) {
634
634
  metaTokens: !0,
635
635
  dots: !1,
636
636
  indexes: !1
637
- }, !1, function(_, A) {
638
- return !W.isUndefined(A[_]);
637
+ }, !1, function(_, M) {
638
+ return !W.isUndefined(M[_]);
639
639
  });
640
640
  const a = t.metaTokens, r = t.visitor || u, o = t.dots, s = t.indexes, i = (t.Blob || typeof Blob < "u" && Blob) && W.isSpecCompliantForm(n);
641
641
  if (!W.isFunction(r))
@@ -648,21 +648,21 @@ function Aa(e, n, t) {
648
648
  throw new Ae("Blob is not supported. Use a Buffer instead.");
649
649
  return W.isArrayBuffer(k) || W.isTypedArray(k) ? i && typeof Blob == "function" ? new Blob([k]) : Buffer.from(k) : k;
650
650
  }
651
- function u(k, _, A) {
651
+ function u(k, _, M) {
652
652
  let g = k;
653
- if (k && !A && typeof k == "object") {
653
+ if (k && !M && typeof k == "object") {
654
654
  if (W.endsWith(_, "{}"))
655
655
  _ = a ? _ : _.slice(0, -2), k = JSON.stringify(k);
656
656
  else if (W.isArray(k) && Gi(k) || (W.isFileList(k) || W.endsWith(_, "[]")) && (g = W.toArray(k)))
657
- return _ = ls(_), g.forEach(function(x, L) {
657
+ return _ = ls(_), g.forEach(function(x, Y) {
658
658
  !(W.isUndefined(x) || x === null) && n.append(
659
659
  // eslint-disable-next-line no-nested-ternary
660
- s === !0 ? Gr([_], L, o) : s === null ? _ : _ + "[]",
660
+ s === !0 ? Gr([_], Y, o) : s === null ? _ : _ + "[]",
661
661
  c(x)
662
662
  );
663
663
  }), !1;
664
664
  }
665
- return ir(k) ? !0 : (n.append(Gr(A, _, o), c(k)), !1);
665
+ return ir(k) ? !0 : (n.append(Gr(M, _, o), c(k)), !1);
666
666
  }
667
667
  const d = [], m = Object.assign(Ki, {
668
668
  defaultVisitor: u,
@@ -1337,53 +1337,53 @@ const vs = (e) => {
1337
1337
  function _() {
1338
1338
  f && f(), k && k(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
1339
1339
  }
1340
- let A = new XMLHttpRequest();
1341
- A.open(r.method.toUpperCase(), r.url, !0), A.timeout = r.timeout;
1340
+ let M = new XMLHttpRequest();
1341
+ M.open(r.method.toUpperCase(), r.url, !0), M.timeout = r.timeout;
1342
1342
  function g() {
1343
- if (!A)
1343
+ if (!M)
1344
1344
  return;
1345
1345
  const x = vt.from(
1346
- "getAllResponseHeaders" in A && A.getAllResponseHeaders()
1346
+ "getAllResponseHeaders" in M && M.getAllResponseHeaders()
1347
1347
  ), J = {
1348
- data: !l || l === "text" || l === "json" ? A.responseText : A.response,
1349
- status: A.status,
1350
- statusText: A.statusText,
1348
+ data: !l || l === "text" || l === "json" ? M.responseText : M.response,
1349
+ status: M.status,
1350
+ statusText: M.statusText,
1351
1351
  headers: x,
1352
1352
  config: e,
1353
- request: A
1353
+ request: M
1354
1354
  };
1355
1355
  fs(function(T) {
1356
1356
  t(T), _();
1357
1357
  }, function(T) {
1358
1358
  a(T), _();
1359
- }, J), A = null;
1360
- }
1361
- "onloadend" in A ? A.onloadend = g : A.onreadystatechange = function() {
1362
- !A || A.readyState !== 4 || A.status === 0 && !(A.responseURL && A.responseURL.indexOf("file:") === 0) || setTimeout(g);
1363
- }, A.onabort = function() {
1364
- A && (a(new Ae("Request aborted", Ae.ECONNABORTED, e, A)), A = null);
1365
- }, A.onerror = function() {
1366
- a(new Ae("Network Error", Ae.ERR_NETWORK, e, A)), A = null;
1367
- }, A.ontimeout = function() {
1368
- let L = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
1359
+ }, J), M = null;
1360
+ }
1361
+ "onloadend" in M ? M.onloadend = g : M.onreadystatechange = function() {
1362
+ !M || M.readyState !== 4 || M.status === 0 && !(M.responseURL && M.responseURL.indexOf("file:") === 0) || setTimeout(g);
1363
+ }, M.onabort = function() {
1364
+ M && (a(new Ae("Request aborted", Ae.ECONNABORTED, e, M)), M = null);
1365
+ }, M.onerror = function() {
1366
+ a(new Ae("Network Error", Ae.ERR_NETWORK, e, M)), M = null;
1367
+ }, M.ontimeout = function() {
1368
+ let Y = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
1369
1369
  const J = r.transitional || ds;
1370
- r.timeoutErrorMessage && (L = r.timeoutErrorMessage), a(new Ae(
1371
- L,
1370
+ r.timeoutErrorMessage && (Y = r.timeoutErrorMessage), a(new Ae(
1371
+ Y,
1372
1372
  J.clarifyTimeoutError ? Ae.ETIMEDOUT : Ae.ECONNABORTED,
1373
1373
  e,
1374
- A
1375
- )), A = null;
1376
- }, o === void 0 && s.setContentType(null), "setRequestHeader" in A && W.forEach(s.toJSON(), function(L, J) {
1377
- A.setRequestHeader(J, L);
1378
- }), W.isUndefined(r.withCredentials) || (A.withCredentials = !!r.withCredentials), l && l !== "json" && (A.responseType = r.responseType), c && ([m, k] = ha(c, !0), A.addEventListener("progress", m)), i && A.upload && ([d, f] = ha(i), A.upload.addEventListener("progress", d), A.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (u = (x) => {
1379
- A && (a(!x || x.type ? new $n(null, e, A) : x), A.abort(), A = null);
1374
+ M
1375
+ )), M = null;
1376
+ }, o === void 0 && s.setContentType(null), "setRequestHeader" in M && W.forEach(s.toJSON(), function(Y, J) {
1377
+ M.setRequestHeader(J, Y);
1378
+ }), W.isUndefined(r.withCredentials) || (M.withCredentials = !!r.withCredentials), l && l !== "json" && (M.responseType = r.responseType), c && ([m, k] = ha(c, !0), M.addEventListener("progress", m)), i && M.upload && ([d, f] = ha(i), M.upload.addEventListener("progress", d), M.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (u = (x) => {
1379
+ M && (a(!x || x.type ? new $n(null, e, M) : x), M.abort(), M = null);
1380
1380
  }, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
1381
1381
  const w = yu(r.url);
1382
1382
  if (w && lt.protocols.indexOf(w) === -1) {
1383
1383
  a(new Ae("Unsupported protocol " + w + ":", Ae.ERR_BAD_REQUEST, e));
1384
1384
  return;
1385
1385
  }
1386
- A.send(o || null);
1386
+ M.send(o || null);
1387
1387
  });
1388
1388
  }, Du = (e, n) => {
1389
1389
  const { length: t } = e = e ? e.filter(Boolean) : [];
@@ -1528,9 +1528,9 @@ const $u = async (e) => {
1528
1528
  const _ = f && f.unsubscribe && (() => {
1529
1529
  f.unsubscribe();
1530
1530
  });
1531
- let A;
1531
+ let M;
1532
1532
  try {
1533
- if (i && Ou && t !== "get" && t !== "head" && (A = await Eu(u, a)) !== 0) {
1533
+ if (i && Ou && t !== "get" && t !== "head" && (M = await Eu(u, a)) !== 0) {
1534
1534
  let J = new Request(n, {
1535
1535
  method: "POST",
1536
1536
  body: a,
@@ -1538,7 +1538,7 @@ const $u = async (e) => {
1538
1538
  }), V;
1539
1539
  if (W.isFormData(a) && (V = J.headers.get("content-type")) && u.setContentType(V), J.body) {
1540
1540
  const [T, O] = eo(
1541
- A,
1541
+ M,
1542
1542
  ha(to(i))
1543
1543
  );
1544
1544
  a = ao(J.body, ro, T, O);
@@ -1574,10 +1574,10 @@ const $u = async (e) => {
1574
1574
  );
1575
1575
  }
1576
1576
  c = c || "text";
1577
- let L = await va[W.findKey(va, c) || "text"](w, e);
1577
+ let Y = await va[W.findKey(va, c) || "text"](w, e);
1578
1578
  return !x && _ && _(), await new Promise((J, V) => {
1579
1579
  fs(J, V, {
1580
- data: L,
1580
+ data: Y,
1581
1581
  headers: vt.from(w.headers),
1582
1582
  status: w.status,
1583
1583
  statusText: w.statusText,
@@ -1789,8 +1789,8 @@ class cn {
1789
1789
  const k = l[d++], _ = l[d++];
1790
1790
  try {
1791
1791
  f = k(f);
1792
- } catch (A) {
1793
- _.call(this, A);
1792
+ } catch (M) {
1793
+ _.call(this, M);
1794
1794
  break;
1795
1795
  }
1796
1796
  }
@@ -3644,15 +3644,15 @@ function mc(e, n, t) {
3644
3644
  }
3645
3645
  const fc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, hc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, vc = /^'([^]*?)'?$/, pc = /''/g, yc = /[a-zA-Z]/;
3646
3646
  function It(e, n, t) {
3647
- var u, d, m, f, k, _, A, g;
3648
- const a = gn(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? Es, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((f = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (k = t == null ? void 0 : t.locale) == null ? void 0 : k.options) == null ? void 0 : _.weekStartsOn) ?? a.weekStartsOn ?? ((g = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : g.weekStartsOn) ?? 0, l = ge(e);
3647
+ var u, d, m, f, k, _, M, g;
3648
+ const a = gn(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? Es, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((f = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (k = t == null ? void 0 : t.locale) == null ? void 0 : k.options) == null ? void 0 : _.weekStartsOn) ?? a.weekStartsOn ?? ((g = (M = a.locale) == null ? void 0 : M.options) == null ? void 0 : g.weekStartsOn) ?? 0, l = ge(e);
3649
3649
  if (!Vn(l))
3650
3650
  throw new RangeError("Invalid time value");
3651
3651
  let i = n.match(hc).map((w) => {
3652
3652
  const x = w[0];
3653
3653
  if (x === "p" || x === "P") {
3654
- const L = fr[x];
3655
- return L(w, r.formatLong);
3654
+ const Y = fr[x];
3655
+ return Y(w, r.formatLong);
3656
3656
  }
3657
3657
  return w;
3658
3658
  }).join("").match(fc).map((w) => {
@@ -3679,8 +3679,8 @@ function It(e, n, t) {
3679
3679
  if (!w.isToken) return w.value;
3680
3680
  const x = w.value;
3681
3681
  (!(t != null && t.useAdditionalWeekYearTokens) && Bs(x) || !(t != null && t.useAdditionalDayOfYearTokens) && Ns(x)) && hr(x, n, String(e));
3682
- const L = fo[x[0]];
3683
- return L(l, x, r.localize, c);
3682
+ const Y = fo[x[0]];
3683
+ return Y(l, x, r.localize, c);
3684
3684
  }).join("");
3685
3685
  }
3686
3686
  function gc(e) {
@@ -5192,8 +5192,8 @@ const um = {
5192
5192
  T: new im()
5193
5193
  }, dm = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, cm = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, mm = /^'([^]*?)'?$/, fm = /''/g, hm = /\S/, vm = /[a-zA-Z]/;
5194
5194
  function vr(e, n, t, a) {
5195
- var _, A, g, w, x, L, J, V;
5196
- const r = kc(), o = (a == null ? void 0 : a.locale) ?? r.locale ?? Es, s = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((A = (_ = a == null ? void 0 : a.locale) == null ? void 0 : _.options) == null ? void 0 : A.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((w = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, l = (a == null ? void 0 : a.weekStartsOn) ?? ((L = (x = a == null ? void 0 : a.locale) == null ? void 0 : x.options) == null ? void 0 : L.weekStartsOn) ?? r.weekStartsOn ?? ((V = (J = r.locale) == null ? void 0 : J.options) == null ? void 0 : V.weekStartsOn) ?? 0;
5195
+ var _, M, g, w, x, Y, J, V;
5196
+ const r = kc(), o = (a == null ? void 0 : a.locale) ?? r.locale ?? Es, s = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((M = (_ = a == null ? void 0 : a.locale) == null ? void 0 : _.options) == null ? void 0 : M.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((w = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, l = (a == null ? void 0 : a.weekStartsOn) ?? ((Y = (x = a == null ? void 0 : a.locale) == null ? void 0 : x.options) == null ? void 0 : Y.weekStartsOn) ?? r.weekStartsOn ?? ((V = (J = r.locale) == null ? void 0 : J.options) == null ? void 0 : V.weekStartsOn) ?? 0;
5197
5197
  if (n === "")
5198
5198
  return e === "" ? ge(t) : Oe(t, NaN);
5199
5199
  const i = {
@@ -5963,10 +5963,10 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5963
5963
  return e.is24 ? `HH${T}${V}` : `hh${T}${V} aa`;
5964
5964
  }, t = () => {
5965
5965
  var V;
5966
- return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? n() : e.weekPicker ? `${((V = A.value) == null ? void 0 : V.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${n()}` : "MM/dd/yyyy";
5967
- }, a = (V) => Js(V, e.enableSeconds), r = () => L.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [a(e.startTime[0]), a(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? a(e.startTime) : null, o = K(() => Im(e.multiCalendars)), s = K(() => r()), l = K(() => Fm(e.ariaLabels)), i = K(() => Wm(e.filters)), c = K(() => Hm(e.transitions)), u = K(() => jm(e.actionRow)), d = K(
5966
+ return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? n() : e.weekPicker ? `${((V = M.value) == null ? void 0 : V.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${n()}` : "MM/dd/yyyy";
5967
+ }, a = (V) => Js(V, e.enableSeconds), r = () => Y.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [a(e.startTime[0]), a(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? a(e.startTime) : null, o = K(() => Im(e.multiCalendars)), s = K(() => r()), l = K(() => Fm(e.ariaLabels)), i = K(() => Wm(e.filters)), c = K(() => Hm(e.transitions)), u = K(() => jm(e.actionRow)), d = K(
5968
5968
  () => qm(e.previewFormat, e.format, t())
5969
- ), m = K(() => Vm(e.textInput)), f = K(() => zm(e.inline)), k = K(() => Um(e.config)), _ = K(() => Xm(e.highlight)), A = K(() => Qm(e.weekNumbers)), g = K(() => Km(e.timezone)), w = K(() => ef(e.multiDates)), x = K(
5969
+ ), m = K(() => Vm(e.textInput)), f = K(() => zm(e.inline)), k = K(() => Um(e.config)), _ = K(() => Xm(e.highlight)), M = K(() => Qm(e.weekNumbers)), g = K(() => Km(e.timezone)), w = K(() => ef(e.multiDates)), x = K(
5970
5970
  () => Jm({
5971
5971
  minDate: e.minDate,
5972
5972
  maxDate: e.maxDate,
@@ -5977,7 +5977,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5977
5977
  timezone: g.value,
5978
5978
  isSpecific: e.monthPicker || e.yearPicker || e.quarterPicker
5979
5979
  })
5980
- ), L = K(() => Gm(e.range)), J = K(() => tf(e.ui));
5980
+ ), Y = K(() => Gm(e.range)), J = K(() => tf(e.ui));
5981
5981
  return {
5982
5982
  defaultedTransitions: c,
5983
5983
  defaultedMultiCalendars: o,
@@ -5990,8 +5990,8 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5990
5990
  defaultedInline: f,
5991
5991
  defaultedConfig: k,
5992
5992
  defaultedHighlight: _,
5993
- defaultedWeekNumbers: A,
5994
- defaultedRange: L,
5993
+ defaultedWeekNumbers: M,
5994
+ defaultedRange: Y,
5995
5995
  propDates: x,
5996
5996
  defaultedTz: g,
5997
5997
  defaultedMultiDates: w,
@@ -6007,120 +6007,120 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6007
6007
  typeof n.onInternalModelChange == "function" && e("internal-model-change", a.value, te(!0));
6008
6008
  },
6009
6009
  { deep: !0 }
6010
- ), Ie(o, (M, ue) => {
6011
- M.enabled !== ue.enabled && (a.value = null);
6010
+ ), Ie(o, (A, ue) => {
6011
+ A.enabled !== ue.enabled && (a.value = null);
6012
6012
  }), Ie(u, () => {
6013
6013
  le();
6014
6014
  });
6015
- const m = (M) => s.value.timezone && s.value.convertModel ? pt(M, s.value.timezone) : M, f = (M) => {
6015
+ const m = (A) => s.value.timezone && s.value.convertModel ? pt(A, s.value.timezone) : A, f = (A) => {
6016
6016
  if (s.value.timezone && s.value.convertModel) {
6017
6017
  const ue = _m(s.value.timezone);
6018
- return bd(M, ue);
6018
+ return bd(A, ue);
6019
6019
  }
6020
- return M;
6021
- }, k = (M, ue, _e = !1) => tl(
6022
- M,
6020
+ return A;
6021
+ }, k = (A, ue, _e = !1) => tl(
6022
+ A,
6023
6023
  n.format,
6024
6024
  n.formatLocale,
6025
6025
  r.value.rangeSeparator,
6026
6026
  n.modelAuto,
6027
6027
  ue ?? i(),
6028
6028
  _e
6029
- ), _ = (M) => M ? n.modelType ? $(M) : {
6030
- hours: Vt(M),
6031
- minutes: tn(M),
6032
- seconds: n.enableSeconds ? Dn(M) : 0
6033
- } : null, A = (M) => n.modelType ? $(M) : { month: Pe(M), year: xe(M) }, g = (M) => Array.isArray(M) ? l.value.enabled ? M.map((ue) => w(ue, Ft(ee(), ue))) : la(
6029
+ ), _ = (A) => A ? n.modelType ? $(A) : {
6030
+ hours: Vt(A),
6031
+ minutes: tn(A),
6032
+ seconds: n.enableSeconds ? Dn(A) : 0
6033
+ } : null, M = (A) => n.modelType ? $(A) : { month: Pe(A), year: xe(A) }, g = (A) => Array.isArray(A) ? l.value.enabled ? A.map((ue) => w(ue, Ft(ee(), ue))) : la(
6034
6034
  () => [
6035
- Ft(ee(), M[0]),
6036
- M[1] ? Ft(ee(), M[1]) : bn(o.value.partialRange)
6035
+ Ft(ee(), A[0]),
6036
+ A[1] ? Ft(ee(), A[1]) : bn(o.value.partialRange)
6037
6037
  ],
6038
6038
  o.value.enabled
6039
- ) : Ft(ee(), +M), w = (M, ue) => (typeof M == "string" || typeof M == "number") && n.modelType ? X(M) : ue, x = (M) => Array.isArray(M) ? [
6039
+ ) : Ft(ee(), +A), w = (A, ue) => (typeof A == "string" || typeof A == "number") && n.modelType ? X(A) : ue, x = (A) => Array.isArray(A) ? [
6040
6040
  w(
6041
- M[0],
6042
- Jt(null, +M[0].hours, +M[0].minutes, M[0].seconds)
6041
+ A[0],
6042
+ Jt(null, +A[0].hours, +A[0].minutes, A[0].seconds)
6043
6043
  ),
6044
6044
  w(
6045
- M[1],
6046
- Jt(null, +M[1].hours, +M[1].minutes, M[1].seconds)
6045
+ A[1],
6046
+ Jt(null, +A[1].hours, +A[1].minutes, A[1].seconds)
6047
6047
  )
6048
- ] : w(M, Jt(null, M.hours, M.minutes, M.seconds)), L = (M) => {
6048
+ ] : w(A, Jt(null, A.hours, A.minutes, A.seconds)), Y = (A) => {
6049
6049
  const ue = Ne(ee(), { date: 1 });
6050
- return Array.isArray(M) ? l.value.enabled ? M.map((_e) => w(_e, Ht(ue, +_e.month, +_e.year))) : la(
6050
+ return Array.isArray(A) ? l.value.enabled ? A.map((_e) => w(_e, Ht(ue, +_e.month, +_e.year))) : la(
6051
6051
  () => [
6052
- w(M[0], Ht(ue, +M[0].month, +M[0].year)),
6052
+ w(A[0], Ht(ue, +A[0].month, +A[0].year)),
6053
6053
  w(
6054
- M[1],
6055
- M[1] ? Ht(ue, +M[1].month, +M[1].year) : bn(o.value.partialRange)
6054
+ A[1],
6055
+ A[1] ? Ht(ue, +A[1].month, +A[1].year) : bn(o.value.partialRange)
6056
6056
  )
6057
6057
  ],
6058
6058
  o.value.enabled
6059
- ) : w(M, Ht(ue, +M.month, +M.year));
6060
- }, J = (M) => {
6061
- if (Array.isArray(M))
6062
- return M.map((ue) => X(ue));
6059
+ ) : w(A, Ht(ue, +A.month, +A.year));
6060
+ }, J = (A) => {
6061
+ if (Array.isArray(A))
6062
+ return A.map((ue) => X(ue));
6063
6063
  throw new Error(Yr.dateArr("multi-dates"));
6064
- }, V = (M) => {
6065
- if (Array.isArray(M) && o.value.enabled) {
6066
- const ue = M[0], _e = M[1];
6064
+ }, V = (A) => {
6065
+ if (Array.isArray(A) && o.value.enabled) {
6066
+ const ue = A[0], _e = A[1];
6067
6067
  return [
6068
6068
  ee(Array.isArray(ue) ? ue[0] : null),
6069
6069
  Array.isArray(_e) && _e.length ? ee(_e[0]) : null
6070
6070
  ];
6071
6071
  }
6072
- return ee(M[0]);
6073
- }, T = (M) => n.modelAuto ? Array.isArray(M) ? [X(M[0]), X(M[1])] : n.autoApply ? [X(M)] : [X(M), null] : Array.isArray(M) ? la(
6074
- () => M[1] ? [
6075
- X(M[0]),
6076
- M[1] ? X(M[1]) : bn(o.value.partialRange)
6077
- ] : [X(M[0])],
6072
+ return ee(A[0]);
6073
+ }, T = (A) => n.modelAuto ? Array.isArray(A) ? [X(A[0]), X(A[1])] : n.autoApply ? [X(A)] : [X(A), null] : Array.isArray(A) ? la(
6074
+ () => A[1] ? [
6075
+ X(A[0]),
6076
+ A[1] ? X(A[1]) : bn(o.value.partialRange)
6077
+ ] : [X(A[0])],
6078
6078
  o.value.enabled
6079
- ) : X(M), O = () => {
6079
+ ) : X(A), O = () => {
6080
6080
  Array.isArray(a.value) && o.value.enabled && a.value.length === 1 && a.value.push(bn(o.value.partialRange));
6081
6081
  }, P = () => {
6082
- const M = a.value;
6082
+ const A = a.value;
6083
6083
  return [
6084
- $(M[0]),
6085
- M[1] ? $(M[1]) : bn(o.value.partialRange)
6084
+ $(A[0]),
6085
+ A[1] ? $(A[1]) : bn(o.value.partialRange)
6086
6086
  ];
6087
- }, I = () => a.value[1] ? P() : $(Je(a.value[0])), Z = () => (a.value || []).map((M) => $(M)), ce = (M = !1) => (M || O(), n.modelAuto ? I() : l.value.enabled ? Z() : Array.isArray(a.value) ? la(() => P(), o.value.enabled) : $(Je(a.value))), pe = (M) => !M || Array.isArray(M) && !M.length ? null : n.timePicker ? x(Je(M)) : n.monthPicker ? L(Je(M)) : n.yearPicker ? g(Je(M)) : l.value.enabled ? J(Je(M)) : n.weekPicker ? V(Je(M)) : T(Je(M)), S = (M) => {
6088
- const ue = pe(M);
6087
+ }, I = () => a.value[1] ? P() : $(Je(a.value[0])), Z = () => (a.value || []).map((A) => $(A)), ce = (A = !1) => (A || O(), n.modelAuto ? I() : l.value.enabled ? Z() : Array.isArray(a.value) ? la(() => P(), o.value.enabled) : $(Je(a.value))), pe = (A) => !A || Array.isArray(A) && !A.length ? null : n.timePicker ? x(Je(A)) : n.monthPicker ? Y(Je(A)) : n.yearPicker ? g(Je(A)) : l.value.enabled ? J(Je(A)) : n.weekPicker ? V(Je(A)) : T(Je(A)), S = (A) => {
6088
+ const ue = pe(A);
6089
6089
  gr(Je(ue)) ? (a.value = Je(ue), le()) : (a.value = null, c.value = "");
6090
- }, Y = () => {
6091
- const M = (ue) => It(ue, r.value.format);
6092
- return `${M(a.value[0])} ${r.value.rangeSeparator} ${a.value[1] ? M(a.value[1]) : ""}`;
6093
- }, C = () => t.value && a.value ? Array.isArray(a.value) ? Y() : It(a.value, r.value.format) : k(a.value), z = () => a.value ? l.value.enabled ? a.value.map((M) => k(M)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? C() : k(a.value) : "", le = () => {
6090
+ }, L = () => {
6091
+ const A = (ue) => It(ue, r.value.format);
6092
+ return `${A(a.value[0])} ${r.value.rangeSeparator} ${a.value[1] ? A(a.value[1]) : ""}`;
6093
+ }, C = () => t.value && a.value ? Array.isArray(a.value) ? L() : It(a.value, r.value.format) : k(a.value), z = () => a.value ? l.value.enabled ? a.value.map((A) => k(A)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? C() : k(a.value) : "", le = () => {
6094
6094
  !n.format || typeof n.format == "string" || r.value.enabled && typeof r.value.format == "string" ? c.value = z() : c.value = n.format(a.value);
6095
- }, X = (M) => {
6095
+ }, X = (A) => {
6096
6096
  if (n.utc) {
6097
- const ue = new Date(M);
6097
+ const ue = new Date(A);
6098
6098
  return n.utc === "preserve" ? new Date(ue.getTime() + ue.getTimezoneOffset() * 6e4) : ue;
6099
6099
  }
6100
- return n.modelType ? xm.includes(n.modelType) ? m(new Date(M)) : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? m(
6101
- vr(M, i(), /* @__PURE__ */ new Date(), { locale: d.value })
6100
+ return n.modelType ? xm.includes(n.modelType) ? m(new Date(A)) : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? m(
6101
+ vr(A, i(), /* @__PURE__ */ new Date(), { locale: d.value })
6102
6102
  ) : m(
6103
- vr(M, n.modelType, /* @__PURE__ */ new Date(), { locale: d.value })
6104
- ) : m(new Date(M));
6105
- }, $ = (M) => M ? n.utc ? Em(M, n.utc === "preserve", n.enableSeconds) : n.modelType ? n.modelType === "timestamp" ? +f(M) : n.modelType === "iso" ? f(M).toISOString() : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? k(f(M)) : k(f(M), n.modelType, !0) : f(M) : "", de = (M, ue = !1, _e = !1) => {
6106
- if (_e) return M;
6107
- if (e("update:model-value", M), s.value.emitTimezone && ue) {
6108
- const Ge = Array.isArray(M) ? M.map((H) => pt(Je(H), s.value.emitTimezone)) : pt(Je(M), s.value.emitTimezone);
6103
+ vr(A, n.modelType, /* @__PURE__ */ new Date(), { locale: d.value })
6104
+ ) : m(new Date(A));
6105
+ }, $ = (A) => A ? n.utc ? Em(A, n.utc === "preserve", n.enableSeconds) : n.modelType ? n.modelType === "timestamp" ? +f(A) : n.modelType === "iso" ? f(A).toISOString() : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? k(f(A)) : k(f(A), n.modelType, !0) : f(A) : "", de = (A, ue = !1, _e = !1) => {
6106
+ if (_e) return A;
6107
+ if (e("update:model-value", A), s.value.emitTimezone && ue) {
6108
+ const Ge = Array.isArray(A) ? A.map((H) => pt(Je(H), s.value.emitTimezone)) : pt(Je(A), s.value.emitTimezone);
6109
6109
  e("update:model-timezone-value", Ge);
6110
6110
  }
6111
- }, G = (M) => Array.isArray(a.value) ? l.value.enabled ? a.value.map((ue) => M(ue)) : [
6112
- M(a.value[0]),
6113
- a.value[1] ? M(a.value[1]) : bn(o.value.partialRange)
6114
- ] : M(Je(a.value)), B = () => {
6111
+ }, G = (A) => Array.isArray(a.value) ? l.value.enabled ? a.value.map((ue) => A(ue)) : [
6112
+ A(a.value[0]),
6113
+ a.value[1] ? A(a.value[1]) : bn(o.value.partialRange)
6114
+ ] : A(Je(a.value)), B = () => {
6115
6115
  if (Array.isArray(a.value)) {
6116
- const M = qt(a.value[0], n.weekStart), ue = a.value[1] ? qt(a.value[1], n.weekStart) : [];
6117
- return [M.map((_e) => ee(_e)), ue.map((_e) => ee(_e))];
6116
+ const A = qt(a.value[0], n.weekStart), ue = a.value[1] ? qt(a.value[1], n.weekStart) : [];
6117
+ return [A.map((_e) => ee(_e)), ue.map((_e) => ee(_e))];
6118
6118
  }
6119
- return qt(a.value, n.weekStart).map((M) => ee(M));
6120
- }, v = (M, ue) => de(Je(G(M)), !1, ue), E = (M) => {
6119
+ return qt(a.value, n.weekStart).map((A) => ee(A));
6120
+ }, v = (A, ue) => de(Je(G(A)), !1, ue), E = (A) => {
6121
6121
  const ue = B();
6122
- return M ? ue : e("update:model-value", B());
6123
- }, te = (M = !1) => (M || le(), n.monthPicker ? v(A, M) : n.timePicker ? v(_, M) : n.yearPicker ? v(xe, M) : n.weekPicker ? E(M) : de(ce(M), !0, M));
6122
+ return A ? ue : e("update:model-value", B());
6123
+ }, te = (A = !1) => (A || le(), n.monthPicker ? v(M, A) : n.timePicker ? v(_, A) : n.yearPicker ? v(xe, A) : n.weekPicker ? E(A) : de(ce(A), !0, A));
6124
6124
  return {
6125
6125
  inputValue: c,
6126
6126
  internalModelValue: a,
@@ -6304,17 +6304,17 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6304
6304
  defaultedInline: i,
6305
6305
  defaultedRange: c,
6306
6306
  defaultedMultiDates: u
6307
- } = qe(a), { isTimeValid: d, isMonthValid: m } = an(a), { buildMatrix: f } = nn(), k = F(null), _ = F(null), A = F(!1), g = F({}), w = F(null), x = F(null);
6307
+ } = qe(a), { isTimeValid: d, isMonthValid: m } = an(a), { buildMatrix: f } = nn(), k = F(null), _ = F(null), M = F(!1), g = F({}), w = F(null), x = F(null);
6308
6308
  Ye(() => {
6309
- a.arrowNavigation && f([Ke(k), Ke(_)], "actionRow"), L(), window.addEventListener("resize", L);
6309
+ a.arrowNavigation && f([Ke(k), Ke(_)], "actionRow"), Y(), window.addEventListener("resize", Y);
6310
6310
  }), Kn(() => {
6311
- window.removeEventListener("resize", L);
6311
+ window.removeEventListener("resize", Y);
6312
6312
  });
6313
- const L = () => {
6314
- A.value = !1, setTimeout(() => {
6315
- var S, Y;
6316
- const C = (S = w.value) == null ? void 0 : S.getBoundingClientRect(), z = (Y = x.value) == null ? void 0 : Y.getBoundingClientRect();
6317
- C && z && (g.value.maxWidth = `${z.width - C.width - 20}px`), A.value = !0;
6313
+ const Y = () => {
6314
+ M.value = !1, setTimeout(() => {
6315
+ var S, L;
6316
+ const C = (S = w.value) == null ? void 0 : S.getBoundingClientRect(), z = (L = x.value) == null ? void 0 : L.getBoundingClientRect();
6317
+ C && z && (g.value.maxWidth = `${z.width - C.width - 20}px`), M.value = !0;
6318
6318
  }, 0);
6319
6319
  }, J = K(() => c.value.enabled && !c.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), V = K(
6320
6320
  () => !d.value(a.internalModelValue) || !m.value(a.internalModelValue) || !J.value
@@ -6336,7 +6336,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6336
6336
  ), pe = () => {
6337
6337
  d.value(a.internalModelValue) && m.value(a.internalModelValue) && J.value ? t("select-date") : t("invalid-select");
6338
6338
  };
6339
- return (S, Y) => (p(), D("div", {
6339
+ return (S, L) => (p(), D("div", {
6340
6340
  ref_key: "actionRowRef",
6341
6341
  ref: x,
6342
6342
  class: "dp__action_row"
@@ -6353,11 +6353,11 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6353
6353
  title: ce.value,
6354
6354
  style: wt(g.value)
6355
6355
  }, [
6356
- S.$slots["action-preview"] && A.value ? ie(S.$slots, "action-preview", {
6356
+ S.$slots["action-preview"] && M.value ? ie(S.$slots, "action-preview", {
6357
6357
  key: 0,
6358
6358
  value: S.internalModelValue
6359
6359
  }) : q("", !0),
6360
- !S.$slots["action-preview"] && A.value ? (p(), D(ke, { key: 1 }, [
6360
+ !S.$slots["action-preview"] && M.value ? (p(), D(ke, { key: 1 }, [
6361
6361
  rt(we(ce.value), 1)
6362
6362
  ], 64)) : q("", !0)
6363
6363
  ], 12, rf)) : q("", !0),
@@ -6378,15 +6378,15 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6378
6378
  ref: k,
6379
6379
  type: "button",
6380
6380
  class: "dp__action_button dp__action_cancel",
6381
- onClick: Y[0] || (Y[0] = (C) => S.$emit("close-picker")),
6382
- onKeydown: Y[1] || (Y[1] = (C) => b(ct)(C, () => S.$emit("close-picker")))
6381
+ onClick: L[0] || (L[0] = (C) => S.$emit("close-picker")),
6382
+ onKeydown: L[1] || (L[1] = (C) => b(ct)(C, () => S.$emit("close-picker")))
6383
6383
  }, we(S.cancelText), 545)) : q("", !0),
6384
6384
  b(r).showNow ? (p(), D("button", {
6385
6385
  key: 1,
6386
6386
  type: "button",
6387
6387
  class: "dp__action_button dp__action_cancel",
6388
- onClick: Y[2] || (Y[2] = (C) => S.$emit("select-now")),
6389
- onKeydown: Y[3] || (Y[3] = (C) => b(ct)(C, () => S.$emit("select-now")))
6388
+ onClick: L[2] || (L[2] = (C) => S.$emit("select-now")),
6389
+ onKeydown: L[3] || (L[3] = (C) => b(ct)(C, () => S.$emit("select-now")))
6390
6390
  }, we(S.nowButtonLabel), 33)) : q("", !0),
6391
6391
  b(r).showSelect ? (p(), D("button", {
6392
6392
  key: 2,
@@ -6396,7 +6396,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6396
6396
  class: "dp__action_button dp__action_select",
6397
6397
  disabled: V.value,
6398
6398
  "data-test": "select-button",
6399
- onKeydown: Y[4] || (Y[4] = (C) => b(ct)(C, () => pe())),
6399
+ onKeydown: L[4] || (L[4] = (C) => b(ct)(C, () => pe())),
6400
6400
  onClick: pe
6401
6401
  }, we(S.selectText), 41, of)) : q("", !0)
6402
6402
  ], 64))
@@ -6429,13 +6429,13 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6429
6429
  setup(e, { expose: n, emit: t }) {
6430
6430
  const { setSelectionGrid: a, buildMultiLevelMatrix: r, setMonthPicker: o } = nn(), s = t, l = e, { defaultedAriaLabels: i, defaultedTextInput: c, defaultedConfig: u } = qe(
6431
6431
  l
6432
- ), { hideNavigationButtons: d } = $a(), m = F(!1), f = F(null), k = F(null), _ = F([]), A = F(), g = F(null), w = F(0), x = F(null);
6432
+ ), { hideNavigationButtons: d } = $a(), m = F(!1), f = F(null), k = F(null), _ = F([]), M = F(), g = F(null), w = F(0), x = F(null);
6433
6433
  $l(() => {
6434
6434
  f.value = null;
6435
6435
  }), Ye(() => {
6436
- Ze().then(() => Z()), l.noOverlayFocus || J(), L(!0);
6437
- }), Kn(() => L(!1));
6438
- const L = (G) => {
6436
+ Ze().then(() => Z()), l.noOverlayFocus || J(), Y(!0);
6437
+ }), Kn(() => Y(!1));
6438
+ const Y = (G) => {
6439
6439
  var B;
6440
6440
  l.arrowNavigation && ((B = l.headerRefs) != null && B.length ? o(G) : a(G));
6441
6441
  }, J = () => {
@@ -6475,8 +6475,8 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6475
6475
  );
6476
6476
  const Z = (G = !0) => {
6477
6477
  Ze().then(() => {
6478
- const B = Ke(f), v = Ke(k), E = Ke(g), te = Ke(x), M = E ? E.getBoundingClientRect().height : 0;
6479
- v && (v.getBoundingClientRect().height ? w.value = v.getBoundingClientRect().height - M : w.value = u.value.modeHeight - M), B && te && G && (te.scrollTop = B.offsetTop - te.offsetTop - (w.value / 2 - B.getBoundingClientRect().height) - M);
6478
+ const B = Ke(f), v = Ke(k), E = Ke(g), te = Ke(x), A = E ? E.getBoundingClientRect().height : 0;
6479
+ v && (v.getBoundingClientRect().height ? w.value = v.getBoundingClientRect().height - A : w.value = u.value.modeHeight - A), B && te && G && (te.scrollTop = B.offsetTop - te.offsetTop - (w.value / 2 - B.getBoundingClientRect().height) - A);
6480
6480
  });
6481
6481
  }, ce = (G) => {
6482
6482
  G.disabled || s("selected", G.value);
@@ -6484,7 +6484,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6484
6484
  s("toggle"), s("reset-flow");
6485
6485
  }, S = () => {
6486
6486
  l.escClose && pe();
6487
- }, Y = (G, B, v, E) => {
6487
+ }, L = (G, B, v, E) => {
6488
6488
  G && ((B.active || B.value === l.focusValue) && (f.value = G), l.arrowNavigation && (Array.isArray(_.value[v]) ? _.value[v][E] = G : _.value[v] = [G], C()));
6489
6489
  }, C = () => {
6490
6490
  var G, B;
@@ -6493,7 +6493,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6493
6493
  }, z = (G) => {
6494
6494
  l.arrowNavigation || Zt(G, u.value, !0);
6495
6495
  }, le = (G) => {
6496
- A.value = G, s("hover-value", G);
6496
+ M.value = G, s("hover-value", G);
6497
6497
  }, X = () => {
6498
6498
  if (pe(), !l.isLast) {
6499
6499
  const G = yr(l.menuWrapRef ?? null, "action-row");
@@ -6550,29 +6550,29 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6550
6550
  class: he(["dp__overlay_row", { dp__flex_row: G.items.length >= 3 }]),
6551
6551
  role: "row"
6552
6552
  }, [
6553
- (p(!0), D(ke, null, Ce(E, (M, ue) => (p(), D("div", {
6554
- key: M.value,
6553
+ (p(!0), D(ke, null, Ce(E, (A, ue) => (p(), D("div", {
6554
+ key: A.value,
6555
6555
  ref_for: !0,
6556
- ref: (_e) => Y(_e, M, te, ue),
6556
+ ref: (_e) => L(_e, A, te, ue),
6557
6557
  role: "gridcell",
6558
6558
  class: he(O.value),
6559
- "aria-selected": M.active || void 0,
6560
- "aria-disabled": M.disabled || void 0,
6559
+ "aria-selected": A.active || void 0,
6560
+ "aria-disabled": A.disabled || void 0,
6561
6561
  tabindex: "0",
6562
- "data-test": M.text,
6563
- onClick: Gt((_e) => ce(M), ["prevent"]),
6564
- onKeydown: (_e) => b(ct)(_e, () => ce(M), !0),
6565
- onMouseover: (_e) => le(M.value)
6562
+ "data-test": A.text,
6563
+ onClick: Gt((_e) => ce(A), ["prevent"]),
6564
+ onKeydown: (_e) => b(ct)(_e, () => ce(A), !0),
6565
+ onMouseover: (_e) => le(A.value)
6566
6566
  }, [
6567
6567
  h("div", {
6568
- class: he(M.className)
6568
+ class: he(A.className)
6569
6569
  }, [
6570
6570
  G.$slots.item ? ie(G.$slots, "item", {
6571
6571
  key: 0,
6572
- item: M
6572
+ item: A
6573
6573
  }) : q("", !0),
6574
6574
  G.$slots.item ? q("", !0) : (p(), D(ke, { key: 1 }, [
6575
- rt(we(M.text), 1)
6575
+ rt(we(A.text), 1)
6576
6576
  ], 64))
6577
6577
  ], 2)
6578
6578
  ], 42, df))), 128))
@@ -6676,11 +6676,11 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6676
6676
  f.value = !f.value, t("toggle-year-picker", { flow: g, show: w });
6677
6677
  }, _ = (g) => {
6678
6678
  f.value = !1, t("year-select", g);
6679
- }, A = (g = !1) => {
6679
+ }, M = (g = !1) => {
6680
6680
  t("handle-year", g);
6681
6681
  };
6682
6682
  return (g, w) => {
6683
- var x, L, J, V, T;
6683
+ var x, Y, J, V, T;
6684
6684
  return p(), D(ke, null, [
6685
6685
  h("div", {
6686
6686
  class: he(["dp--year-mode-picker", { "dp--hidden-el": f.value }])
@@ -6690,8 +6690,8 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6690
6690
  ref: "mpPrevIconRef",
6691
6691
  "aria-label": (x = b(i)) == null ? void 0 : x.prevYear,
6692
6692
  disabled: e.isDisabled(!1),
6693
- class: he((L = b(u)) == null ? void 0 : L.navBtnPrev),
6694
- onActivate: w[0] || (w[0] = (O) => A(!1))
6693
+ class: he((Y = b(u)) == null ? void 0 : Y.navBtnPrev),
6694
+ onActivate: w[0] || (w[0] = (O) => M(!1))
6695
6695
  }, {
6696
6696
  default: ye(() => [
6697
6697
  g.$slots["arrow-left"] ? ie(g.$slots, "arrow-left", { key: 0 }) : q("", !0),
@@ -6722,7 +6722,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6722
6722
  "aria-label": (V = b(i)) == null ? void 0 : V.nextYear,
6723
6723
  disabled: e.isDisabled(!0),
6724
6724
  class: he((T = b(u)) == null ? void 0 : T.navBtnNext),
6725
- onActivate: w[3] || (w[3] = (O) => A(!0))
6725
+ onActivate: w[3] || (w[3] = (O) => M(!0))
6726
6726
  }, {
6727
6727
  default: ye(() => [
6728
6728
  g.$slots["arrow-right"] ? ie(g.$slots, "arrow-right", { key: 0 }) : q("", !0),
@@ -6829,7 +6829,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6829
6829
  const Z = Ne(ee(), r.value[I - 1]);
6830
6830
  r.value[I] = { month: Pe(Z), year: xe(Mr(Z, 1)) };
6831
6831
  }
6832
- }, A = (I) => {
6832
+ }, M = (I) => {
6833
6833
  if (!I) return _();
6834
6834
  const Z = Ne(ee(), r.value[I]);
6835
6835
  return r.value[0].year = xe(Ws(Z, e.value.count - 1)), _();
@@ -6841,24 +6841,24 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6841
6841
  const I = Array.isArray(o.value) ? w(o.value) : o.value;
6842
6842
  r.value[0] = { month: Pe(I), year: xe(I) };
6843
6843
  }
6844
- }, L = () => {
6844
+ }, Y = () => {
6845
6845
  x(), e.value.count && _();
6846
6846
  };
6847
6847
  Ie(o, (I, Z) => {
6848
- s.isTextInputDate && JSON.stringify(I ?? {}) !== JSON.stringify(Z ?? {}) && L();
6848
+ s.isTextInputDate && JSON.stringify(I ?? {}) !== JSON.stringify(Z ?? {}) && Y();
6849
6849
  }), Ye(() => {
6850
- L();
6850
+ Y();
6851
6851
  });
6852
6852
  const J = (I, Z) => {
6853
- r.value[Z].year = I, u("update-month-year", { instance: Z, year: I, month: r.value[Z].month }), e.value.count && !e.value.solo && A(Z);
6853
+ r.value[Z].year = I, u("update-month-year", { instance: Z, year: I, month: r.value[Z].month }), e.value.count && !e.value.solo && M(Z);
6854
6854
  }, V = K(() => (I) => Pn(d.value, (Z) => {
6855
6855
  var ce;
6856
6856
  const pe = i.value(I) === Z.value, S = Qn(
6857
6857
  Z.value,
6858
6858
  Sn(a.value.minDate),
6859
6859
  Sn(a.value.maxDate)
6860
- ) || ((ce = l.value.years) == null ? void 0 : ce.includes(i.value(I))), Y = Fr(t.value, Z.value);
6861
- return { active: pe, disabled: S, highlighted: Y };
6860
+ ) || ((ce = l.value.years) == null ? void 0 : ce.includes(i.value(I))), L = Fr(t.value, Z.value);
6861
+ return { active: pe, disabled: S, highlighted: L };
6862
6862
  })), T = (I, Z) => {
6863
6863
  J(I, Z), P(Z);
6864
6864
  }, O = (I, Z = !1) => {
@@ -6891,9 +6891,9 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6891
6891
  defaultedFilters: u,
6892
6892
  defaultedMultiDates: d
6893
6893
  } = qe(e), m = () => {
6894
- e.isTextInputDate && L(xe(ee(e.startDate)), 0);
6895
- }, { modelValue: f, year: k, month: _, calendars: A } = aa(e, n, m), g = K(() => zs(e.formatLocale, e.locale, e.monthNameFormat)), w = F(null), { checkMinMaxRange: x } = an(e), {
6896
- selectYear: L,
6894
+ e.isTextInputDate && Y(xe(ee(e.startDate)), 0);
6895
+ }, { modelValue: f, year: k, month: _, calendars: M } = aa(e, n, m), g = K(() => zs(e.formatLocale, e.locale, e.monthNameFormat)), w = F(null), { checkMinMaxRange: x } = an(e), {
6896
+ selectYear: Y,
6897
6897
  groupedYears: J,
6898
6898
  showYearPicker: V,
6899
6899
  toggleYearPicker: T,
@@ -6905,7 +6905,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6905
6905
  multiCalendars: t,
6906
6906
  range: s,
6907
6907
  highlight: l,
6908
- calendars: A,
6908
+ calendars: M,
6909
6909
  year: k,
6910
6910
  propDates: i,
6911
6911
  month: _,
@@ -6914,33 +6914,33 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6914
6914
  emit: n
6915
6915
  });
6916
6916
  Ye(() => {
6917
- e.startDate && (f.value && e.focusStartDate || !f.value) && L(xe(ee(e.startDate)), 0);
6917
+ e.startDate && (f.value && e.focusStartDate || !f.value) && Y(xe(ee(e.startDate)), 0);
6918
6918
  });
6919
6919
  const Z = (v) => v ? { month: Pe(v), year: xe(v) } : { month: null, year: null }, ce = () => f.value ? Array.isArray(f.value) ? f.value.map((v) => Z(v)) : Z(f.value) : Z(), pe = (v, E) => {
6920
- const te = A.value[v], M = ce();
6921
- return Array.isArray(M) ? M.some((ue) => ue.year === (te == null ? void 0 : te.year) && ue.month === E) : (te == null ? void 0 : te.year) === M.year && E === M.month;
6920
+ const te = M.value[v], A = ce();
6921
+ return Array.isArray(A) ? A.some((ue) => ue.year === (te == null ? void 0 : te.year) && ue.month === E) : (te == null ? void 0 : te.year) === A.year && E === A.month;
6922
6922
  }, S = (v, E, te) => {
6923
- var M, ue;
6923
+ var A, ue;
6924
6924
  const _e = ce();
6925
- return Array.isArray(_e) ? k.value(E) === ((M = _e[te]) == null ? void 0 : M.year) && v === ((ue = _e[te]) == null ? void 0 : ue.month) : !1;
6926
- }, Y = (v, E) => {
6925
+ return Array.isArray(_e) ? k.value(E) === ((A = _e[te]) == null ? void 0 : A.year) && v === ((ue = _e[te]) == null ? void 0 : ue.month) : !1;
6926
+ }, L = (v, E) => {
6927
6927
  if (s.value.enabled) {
6928
6928
  const te = ce();
6929
6929
  if (Array.isArray(f.value) && Array.isArray(te)) {
6930
- const M = S(v, E, 0) || S(v, E, 1), ue = Ht(Ct(ee()), v, k.value(E));
6931
- return Ca(f.value, w.value, ue) && !M;
6930
+ const A = S(v, E, 0) || S(v, E, 1), ue = Ht(Ct(ee()), v, k.value(E));
6931
+ return Ca(f.value, w.value, ue) && !A;
6932
6932
  }
6933
6933
  return !1;
6934
6934
  }
6935
6935
  return !1;
6936
6936
  }, C = K(() => (v) => Pn(g.value, (E) => {
6937
6937
  var te;
6938
- const M = pe(v, E.value), ue = Qn(
6938
+ const A = pe(v, E.value), ue = Qn(
6939
6939
  E.value,
6940
6940
  Gs(k.value(v), i.value.minDate),
6941
6941
  Ks(k.value(v), i.value.maxDate)
6942
- ) || Lm(i.value.disabledDates, k.value(v)).includes(E.value) || ((te = u.value.months) == null ? void 0 : te.includes(E.value)), _e = Y(E.value, v), Ge = nl(l.value, E.value, k.value(v));
6943
- return { active: M, disabled: ue, isBetween: _e, highlighted: Ge };
6942
+ ) || Lm(i.value.disabledDates, k.value(v)).includes(E.value) || ((te = u.value.months) == null ? void 0 : te.includes(E.value)), _e = L(E.value, v), Ge = nl(l.value, E.value, k.value(v));
6943
+ return { active: A, disabled: ue, isBetween: _e, highlighted: Ge };
6944
6944
  })), z = (v, E) => Ht(Ct(ee()), v, k.value(E)), le = (v, E) => {
6945
6945
  const te = f.value ? f.value : Ct(/* @__PURE__ */ new Date());
6946
6946
  f.value = Ht(te, v, k.value(E)), n("auto-apply"), n("update-flow-step");
@@ -6951,15 +6951,15 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6951
6951
  });
6952
6952
  }, $ = (v, E) => {
6953
6953
  Ir(z(v, E), f, d.value.limit), n("auto-apply", !0);
6954
- }, de = (v, E) => (A.value[E].month = v, B(E, A.value[E].year, v), d.value.enabled ? $(v, E) : s.value.enabled ? X(v, E) : le(v, E)), G = (v, E) => {
6955
- L(v, E), B(E, v, null);
6954
+ }, de = (v, E) => (M.value[E].month = v, B(E, M.value[E].year, v), d.value.enabled ? $(v, E) : s.value.enabled ? X(v, E) : le(v, E)), G = (v, E) => {
6955
+ Y(v, E), B(E, v, null);
6956
6956
  }, B = (v, E, te) => {
6957
- let M = te;
6958
- if (!M && M !== 0) {
6957
+ let A = te;
6958
+ if (!A && A !== 0) {
6959
6959
  const ue = ce();
6960
- M = Array.isArray(ue) ? ue[v].month : ue.month;
6960
+ A = Array.isArray(ue) ? ue[v].month : ue.month;
6961
6961
  }
6962
- n("update-month-year", { instance: v, year: E, month: M });
6962
+ n("update-month-year", { instance: v, year: E, month: A });
6963
6963
  };
6964
6964
  return {
6965
6965
  groupedMonths: C,
@@ -7026,11 +7026,11 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7026
7026
  showYearPicker: f,
7027
7027
  modelValue: k,
7028
7028
  presetDate: _,
7029
- setHoverDate: A,
7029
+ setHoverDate: M,
7030
7030
  selectMonth: g,
7031
7031
  selectYear: w,
7032
7032
  toggleYearPicker: x,
7033
- handleYearSelect: L,
7033
+ handleYearSelect: Y,
7034
7034
  handleYear: J,
7035
7035
  getModelMonthYear: V
7036
7036
  } = hf(s, a);
@@ -7070,7 +7070,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7070
7070
  "use-relative": "",
7071
7071
  type: "month",
7072
7072
  onSelected: (I) => b(g)(I, P),
7073
- onHoverValue: (I) => b(A)(I, P)
7073
+ onHoverValue: (I) => b(M)(I, P)
7074
7074
  }, it({
7075
7075
  header: ye(() => [
7076
7076
  Be(ol, et(T.$props, {
@@ -7080,7 +7080,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7080
7080
  year: b(c)(P),
7081
7081
  "is-disabled": (I) => b(u)(P, I),
7082
7082
  onHandleYear: (I) => b(J)(P, I),
7083
- onYearSelect: (I) => b(L)(I, P),
7083
+ onYearSelect: (I) => b(Y)(I, P),
7084
7084
  onToggleYearPicker: (I) => b(x)(P, I == null ? void 0 : I.flow, I == null ? void 0 : I.show)
7085
7085
  }), it({ _: 2 }, [
7086
7086
  Ce(b(o), (I, Z) => ({
@@ -7115,13 +7115,13 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7115
7115
  Ye(() => {
7116
7116
  e.startDate && (a.value && e.focusStartDate || !a.value) && (u.value = xe(ee(e.startDate)));
7117
7117
  });
7118
- const d = (_) => Array.isArray(a.value) ? a.value.some((A) => xe(A) === _) : a.value ? xe(a.value) === _ : !1, m = (_) => i.value.enabled && Array.isArray(a.value) ? Ca(a.value, r.value, k(_)) : !1, f = K(() => Pn(Br(e.yearRange, e.locale, e.reverseYears), (_) => {
7119
- const A = d(_.value), g = Qn(
7118
+ const d = (_) => Array.isArray(a.value) ? a.value.some((M) => xe(M) === _) : a.value ? xe(a.value) === _ : !1, m = (_) => i.value.enabled && Array.isArray(a.value) ? Ca(a.value, r.value, k(_)) : !1, f = K(() => Pn(Br(e.yearRange, e.locale, e.reverseYears), (_) => {
7119
+ const M = d(_.value), g = Qn(
7120
7120
  _.value,
7121
7121
  Sn(c.value.minDate),
7122
7122
  Sn(c.value.maxDate)
7123
- ) || l.value.years.includes(_.value), w = m(_.value) && !A, x = Fr(o.value, _.value);
7124
- return { active: A, disabled: g, isBetween: w, highlighted: x };
7123
+ ) || l.value.years.includes(_.value), w = m(_.value) && !M, x = Fr(o.value, _.value);
7124
+ return { active: M, disabled: g, isBetween: w, highlighted: x };
7125
7125
  })), k = (_) => Ft(Ct(Un(/* @__PURE__ */ new Date())), _);
7126
7126
  return {
7127
7127
  groupedYears: f,
@@ -7131,9 +7131,9 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7131
7131
  r.value = Ft(Ct(/* @__PURE__ */ new Date()), _);
7132
7132
  },
7133
7133
  selectYear: (_) => {
7134
- var A;
7134
+ var M;
7135
7135
  if (n("update-month-year", { instance: 0, year: _ }), s.value.enabled)
7136
- return a.value ? Array.isArray(a.value) && (((A = a.value) == null ? void 0 : A.map((g) => xe(g))).includes(_) ? a.value = a.value.filter((g) => xe(g) !== _) : a.value.push(Ft(ft(ee()), _))) : a.value = [Ft(ft(Un(ee())), _)], n("auto-apply", !0);
7136
+ return a.value ? Array.isArray(a.value) && (((M = a.value) == null ? void 0 : M.map((g) => xe(g))).includes(_) ? a.value = a.value.filter((g) => xe(g) !== _) : a.value.push(Ft(ft(ee()), _))) : a.value = [Ft(ft(Un(ee())), _)], n("auto-apply", !0);
7137
7137
  i.value.enabled ? (a.value = qr(a, k(_), n), Ze().then(() => {
7138
7138
  Oa(a.value, n, e.autoApply, e.modelAuto);
7139
7139
  })) : (a.value = k(_), n("auto-apply"));
@@ -7229,11 +7229,11 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7229
7229
  hours: !1,
7230
7230
  minutes: !1,
7231
7231
  seconds: !1
7232
- }), _ = F("AM"), A = F(null), g = F([]), w = F(), x = F(!1);
7232
+ }), _ = F("AM"), M = F(null), g = F([]), w = F(), x = F(!1);
7233
7233
  Ye(() => {
7234
7234
  a("mounted");
7235
7235
  });
7236
- const L = (y) => Ne(/* @__PURE__ */ new Date(), {
7236
+ const Y = (y) => Ne(/* @__PURE__ */ new Date(), {
7237
7237
  hours: y.hours,
7238
7238
  minutes: y.minutes,
7239
7239
  seconds: r.enableSeconds ? y.seconds : 0,
@@ -7263,7 +7263,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7263
7263
  }), r.enableSeconds && y.push({ type: "", separator: !0 }, {
7264
7264
  type: "seconds"
7265
7265
  }), y;
7266
- }), Y = K(() => S.value.filter((y) => !y.separator)), C = K(() => (y) => {
7266
+ }), L = K(() => S.value.filter((y) => !y.separator)), C = K(() => (y) => {
7267
7267
  if (y === "hours") {
7268
7268
  const Q = ue(+r.hours);
7269
7269
  return { text: Q < 10 ? `0${Q}` : `${Q}`, value: Q };
@@ -7280,7 +7280,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7280
7280
  N.push({ value: r.is24 ? ne : le(ne, y), text: ne < 10 ? `0${ne}` : `${ne}` });
7281
7281
  return y === "hours" && !r.is24 && N.unshift({ value: _.value === "PM" ? 12 : 0, text: "12" }), Pn(N, (ne) => ({ active: !1, disabled: c.value.times[y].includes(ne.value) || !G(ne.value, y) || z(y, ne.value) || T(y, ne.value) }));
7282
7282
  }, $ = (y) => y >= 0 ? y : 59, de = (y) => y >= 0 ? y : 23, G = (y, Q) => {
7283
- const re = r.minTime ? L(Ga(r.minTime)) : null, U = r.maxTime ? L(Ga(r.maxTime)) : null, Me = L(
7283
+ const re = r.minTime ? Y(Ga(r.minTime)) : null, U = r.maxTime ? Y(Ga(r.maxTime)) : null, Me = Y(
7284
7284
  Ga(
7285
7285
  V.value,
7286
7286
  Q,
@@ -7292,13 +7292,13 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7292
7292
  B(y) || (k[y] = !k[y], k[y] ? (x.value = !0, a("overlay-opened", y)) : (x.value = !1, a("overlay-closed", y)));
7293
7293
  }, E = (y) => y === "hours" ? Vt : y === "minutes" ? tn : Dn, te = () => {
7294
7294
  w.value && clearTimeout(w.value);
7295
- }, M = (y, Q = !0, re) => {
7295
+ }, A = (y, Q = !0, re) => {
7296
7296
  const U = Q ? Z : ce, Me = Q ? +r[`${y}Increment`] : -+r[`${y}Increment`];
7297
7297
  G(+r[y] + Me, y) && a(
7298
7298
  `update:${y}`,
7299
7299
  E(y)(U({ [y]: +r[y] }, { [y]: +r[`${y}Increment`] }))
7300
7300
  ), !(re != null && re.keyboard) && u.value.timeArrowHoldThreshold && (w.value = setTimeout(() => {
7301
- M(y, Q);
7301
+ A(y, Q);
7302
7302
  }, u.value.timeArrowHoldThreshold));
7303
7303
  }, ue = (y) => r.is24 ? y : (y >= 12 ? _.value = "PM" : _.value = "AM", Dm(y)), _e = () => {
7304
7304
  _.value === "PM" ? (_.value = "AM", a("update:hours", r.hours - 12)) : (_.value = "PM", a("update:hours", r.hours + 12)), a("am-pm-change", _.value);
@@ -7311,7 +7311,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7311
7311
  (Me, N) => N.map((ne, ve) => [...Me[ve] || [], N[ve]]),
7312
7312
  []
7313
7313
  );
7314
- s(r.closeTimePickerBtn), A.value && (U[1] = U[1].concat(A.value)), o(U, r.order);
7314
+ s(r.closeTimePickerBtn), M.value && (U[1] = U[1].concat(M.value)), o(U, r.order);
7315
7315
  }
7316
7316
  }, ae = (y, Q) => (v(y), a(`update:${y}`, Q));
7317
7317
  return n({ openChildCmp: Ge }), (y, Q) => {
@@ -7343,9 +7343,9 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7343
7343
  "data-test": `${U.type}-time-inc-btn-${r.order}`,
7344
7344
  "aria-label": (N = b(l)) == null ? void 0 : N.incrementValue(U.type),
7345
7345
  tabindex: "0",
7346
- onKeydown: (Te) => b(ct)(Te, () => M(U.type, !0, { keyboard: !0 }), !0),
7347
- onClick: (Te) => b(u).timeArrowHoldThreshold ? void 0 : M(U.type, !0),
7348
- onMousedown: (Te) => b(u).timeArrowHoldThreshold ? M(U.type, !0) : void 0,
7346
+ onKeydown: (Te) => b(ct)(Te, () => A(U.type, !0, { keyboard: !0 }), !0),
7347
+ onClick: (Te) => b(u).timeArrowHoldThreshold ? void 0 : A(U.type, !0),
7348
+ onMousedown: (Te) => b(u).timeArrowHoldThreshold ? A(U.type, !0) : void 0,
7349
7349
  onMouseup: te
7350
7350
  }, [
7351
7351
  r.timePickerInline ? (p(), D(ke, { key: 1 }, [
@@ -7401,9 +7401,9 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7401
7401
  "data-test": `${U.type}-time-dec-btn-${r.order}`,
7402
7402
  "aria-label": (ve = b(l)) == null ? void 0 : ve.decrementValue(U.type),
7403
7403
  tabindex: "0",
7404
- onKeydown: (Te) => b(ct)(Te, () => M(U.type, !1, { keyboard: !0 }), !0),
7405
- onClick: (Te) => b(u).timeArrowHoldThreshold ? void 0 : M(U.type, !1),
7406
- onMousedown: (Te) => b(u).timeArrowHoldThreshold ? M(U.type, !1) : void 0,
7404
+ onKeydown: (Te) => b(ct)(Te, () => A(U.type, !1, { keyboard: !0 }), !0),
7405
+ onClick: (Te) => b(u).timeArrowHoldThreshold ? void 0 : A(U.type, !1),
7406
+ onMousedown: (Te) => b(u).timeArrowHoldThreshold ? A(U.type, !1) : void 0,
7407
7407
  onMouseup: te
7408
7408
  }, [
7409
7409
  r.timePickerInline ? (p(), D(ke, { key: 1 }, [
@@ -7428,7 +7428,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7428
7428
  y.$slots["am-pm-button"] ? q("", !0) : (p(), D("button", {
7429
7429
  key: 1,
7430
7430
  ref_key: "amPmButton",
7431
- ref: A,
7431
+ ref: M,
7432
7432
  type: "button",
7433
7433
  class: "dp__pm_am_button",
7434
7434
  role: "button",
@@ -7438,7 +7438,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7438
7438
  onKeydown: Q[0] || (Q[0] = (U) => b(ct)(U, () => _e(), !0))
7439
7439
  }, we(_.value), 41, xf))
7440
7440
  ])),
7441
- (p(!0), D(ke, null, Ce(Y.value, (U, Me) => (p(), De(yn, {
7441
+ (p(!0), D(ke, null, Ce(L.value, (U, Me) => (p(), De(yn, {
7442
7442
  key: Me,
7443
7443
  name: b(m)(k[U.type]),
7444
7444
  css: b(f)
@@ -7521,9 +7521,9 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7521
7521
  "am-pm-change"
7522
7522
  ],
7523
7523
  setup(e, { expose: n, emit: t }) {
7524
- const a = t, r = e, { buildMatrix: o, setTimePicker: s } = nn(), l = pn(), { defaultedTransitions: i, defaultedAriaLabels: c, defaultedTextInput: u, defaultedConfig: d, defaultedRange: m } = qe(r), { transitionName: f, showTransition: k } = na(i), { hideNavigationButtons: _ } = $a(), A = F(null), g = F(null), w = F([]), x = F(null), L = F(!1);
7524
+ const a = t, r = e, { buildMatrix: o, setTimePicker: s } = nn(), l = pn(), { defaultedTransitions: i, defaultedAriaLabels: c, defaultedTextInput: u, defaultedConfig: d, defaultedRange: m } = qe(r), { transitionName: f, showTransition: k } = na(i), { hideNavigationButtons: _ } = $a(), M = F(null), g = F(null), w = F([]), x = F(null), Y = F(!1);
7525
7525
  Ye(() => {
7526
- a("mount"), !r.timePicker && r.arrowNavigation ? o([Ke(A.value)], "time") : s(!0, r.timePicker);
7526
+ a("mount"), !r.timePicker && r.arrowNavigation ? o([Ke(M.value)], "time") : s(!0, r.timePicker);
7527
7527
  });
7528
7528
  const J = K(() => m.value.enabled && r.modelAuto ? Us(r.internalModelValue) : !0), V = F(!1), T = (X) => ({
7529
7529
  hours: Array.isArray(r.hours) ? r.hours[X] : r.hours,
@@ -7549,7 +7549,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7549
7549
  a("update:hours", X);
7550
7550
  }, S = (X) => {
7551
7551
  a("update:minutes", X);
7552
- }, Y = (X) => {
7552
+ }, L = (X) => {
7553
7553
  a("update:seconds", X);
7554
7554
  }, C = () => {
7555
7555
  if (x.value && !u.value.enabled && !r.noOverlayFocus) {
@@ -7557,9 +7557,9 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7557
7557
  X && X.focus({ preventScroll: !0 });
7558
7558
  }
7559
7559
  }, z = (X) => {
7560
- L.value = !1, a("overlay-closed", X);
7560
+ Y.value = !1, a("overlay-closed", X);
7561
7561
  }, le = (X) => {
7562
- L.value = !0, a("overlay-opened", X);
7562
+ Y.value = !0, a("overlay-opened", X);
7563
7563
  };
7564
7564
  return n({ toggleTimePicker: P }), (X, $) => {
7565
7565
  var de;
@@ -7567,7 +7567,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7567
7567
  !X.timePicker && !X.timePickerInline ? mt((p(), D("button", {
7568
7568
  key: 0,
7569
7569
  ref_key: "openTimePickerBtn",
7570
- ref: A,
7570
+ ref: M,
7571
7571
  type: "button",
7572
7572
  class: he({ ...I.value, "dp--hidden-el": V.value }),
7573
7573
  "aria-label": (de = b(c)) == null ? void 0 : de.openTimePicker,
@@ -7615,7 +7615,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7615
7615
  seconds: e.seconds,
7616
7616
  setHours: pe,
7617
7617
  setMinutes: S,
7618
- setSeconds: Y
7618
+ setSeconds: L
7619
7619
  }) : q("", !0),
7620
7620
  X.$slots["time-picker-overlay"] ? q("", !0) : (p(), D("div", {
7621
7621
  key: 1,
@@ -7637,16 +7637,16 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7637
7637
  ref_for: !0,
7638
7638
  ref_key: "timeInputRefs",
7639
7639
  ref: w,
7640
- "validate-time": (te, M) => e.validateTime(te, ce(M, E, te)),
7640
+ "validate-time": (te, A) => e.validateTime(te, ce(A, E, te)),
7641
7641
  "onUpdate:hours": (te) => pe(ce(te, E, "hours")),
7642
7642
  "onUpdate:minutes": (te) => S(ce(te, E, "minutes")),
7643
- "onUpdate:seconds": (te) => Y(ce(te, E, "seconds")),
7643
+ "onUpdate:seconds": (te) => L(ce(te, E, "seconds")),
7644
7644
  onMounted: C,
7645
7645
  onOverlayClosed: z,
7646
7646
  onOverlayOpened: le,
7647
7647
  onAmPmChange: $[2] || ($[2] = (te) => X.$emit("am-pm-change", te))
7648
7648
  }), it({ _: 2 }, [
7649
- Ce(b(Z), (te, M) => ({
7649
+ Ce(b(Z), (te, A) => ({
7650
7650
  name: te,
7651
7651
  fn: ye((ue) => [
7652
7652
  ie(X.$slots, te, et({ ref_for: !0 }, ue))
@@ -7661,7 +7661,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7661
7661
  ref_key: "closeTimePickerBtn",
7662
7662
  ref: g,
7663
7663
  type: "button",
7664
- class: he({ ...I.value, "dp--hidden-el": L.value }),
7664
+ class: he({ ...I.value, "dp--hidden-el": Y.value }),
7665
7665
  "aria-label": (B = b(c)) == null ? void 0 : B.closeTimePicker,
7666
7666
  tabindex: "0",
7667
7667
  onKeydown: $[3] || ($[3] = (v) => b(ct)(v, () => P(!1))),
@@ -7682,11 +7682,11 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7682
7682
  };
7683
7683
  }
7684
7684
  }), dl = (e, n, t, a) => {
7685
- const { defaultedRange: r } = qe(e), o = (x, L) => Array.isArray(n[x]) ? n[x][L] : n[x], s = (x) => e.enableSeconds ? Array.isArray(n.seconds) ? n.seconds[x] : n.seconds : 0, l = (x, L) => x ? L !== void 0 ? Jt(x, o("hours", L), o("minutes", L), s(L)) : Jt(x, n.hours, n.minutes, s()) : Vs(ee(), s(L)), i = (x, L) => {
7686
- n[x] = L;
7687
- }, c = K(() => e.modelAuto && r.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : r.value.enabled), u = (x, L) => {
7685
+ const { defaultedRange: r } = qe(e), o = (x, Y) => Array.isArray(n[x]) ? n[x][Y] : n[x], s = (x) => e.enableSeconds ? Array.isArray(n.seconds) ? n.seconds[x] : n.seconds : 0, l = (x, Y) => x ? Y !== void 0 ? Jt(x, o("hours", Y), o("minutes", Y), s(Y)) : Jt(x, n.hours, n.minutes, s()) : Vs(ee(), s(Y)), i = (x, Y) => {
7686
+ n[x] = Y;
7687
+ }, c = K(() => e.modelAuto && r.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : r.value.enabled), u = (x, Y) => {
7688
7688
  const J = Object.fromEntries(
7689
- Object.keys(n).map((V) => V === x ? [V, L] : [V, n[V]].slice())
7689
+ Object.keys(n).map((V) => V === x ? [V, Y] : [V, n[V]].slice())
7690
7690
  );
7691
7691
  if (c.value && !r.value.disableTimeRangeValidation) {
7692
7692
  const V = (O) => t.value ? Jt(
@@ -7698,31 +7698,31 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7698
7698
  return !(Se(V(0), V(1)) && (Tn(V(0), T(1)) || Xn(V(1), T(0))));
7699
7699
  }
7700
7700
  return !0;
7701
- }, d = (x, L) => {
7702
- u(x, L) && (i(x, L), a && a());
7701
+ }, d = (x, Y) => {
7702
+ u(x, Y) && (i(x, Y), a && a());
7703
7703
  }, m = (x) => {
7704
7704
  d("hours", x);
7705
7705
  }, f = (x) => {
7706
7706
  d("minutes", x);
7707
7707
  }, k = (x) => {
7708
7708
  d("seconds", x);
7709
- }, _ = (x, L, J, V) => {
7710
- L && m(x), !L && !J && f(x), J && k(x), t.value && V(t.value);
7711
- }, A = (x) => {
7709
+ }, _ = (x, Y, J, V) => {
7710
+ Y && m(x), !Y && !J && f(x), J && k(x), t.value && V(t.value);
7711
+ }, M = (x) => {
7712
7712
  if (x) {
7713
- const L = Array.isArray(x), J = L ? [+x[0].hours, +x[1].hours] : +x.hours, V = L ? [+x[0].minutes, +x[1].minutes] : +x.minutes, T = L ? [+x[0].seconds, +x[1].seconds] : +x.seconds;
7713
+ const Y = Array.isArray(x), J = Y ? [+x[0].hours, +x[1].hours] : +x.hours, V = Y ? [+x[0].minutes, +x[1].minutes] : +x.minutes, T = Y ? [+x[0].seconds, +x[1].seconds] : +x.seconds;
7714
7714
  i("hours", J), i("minutes", V), e.enableSeconds && i("seconds", T);
7715
7715
  }
7716
- }, g = (x, L) => {
7716
+ }, g = (x, Y) => {
7717
7717
  const J = {
7718
7718
  hours: Array.isArray(n.hours) ? n.hours[x] : n.hours,
7719
7719
  disabledArr: []
7720
7720
  };
7721
- return (L || L === 0) && (J.hours = L), Array.isArray(e.disabledTimes) && (J.disabledArr = r.value.enabled && Array.isArray(e.disabledTimes[x]) ? e.disabledTimes[x] : e.disabledTimes), J;
7722
- }, w = K(() => (x, L) => {
7721
+ return (Y || Y === 0) && (J.hours = Y), Array.isArray(e.disabledTimes) && (J.disabledArr = r.value.enabled && Array.isArray(e.disabledTimes[x]) ? e.disabledTimes[x] : e.disabledTimes), J;
7722
+ }, w = K(() => (x, Y) => {
7723
7723
  var J;
7724
7724
  if (Array.isArray(e.disabledTimes)) {
7725
- const { disabledArr: V, hours: T } = g(x, L), O = V.filter((P) => +P.hours === T);
7725
+ const { disabledArr: V, hours: T } = g(x, Y), O = V.filter((P) => +P.hours === T);
7726
7726
  return ((J = O[0]) == null ? void 0 : J.minutes) === "*" ? { hours: [T], minutes: void 0, seconds: void 0 } : {
7727
7727
  hours: [],
7728
7728
  minutes: (O == null ? void 0 : O.map((P) => +P.minutes)) ?? [],
@@ -7739,13 +7739,13 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7739
7739
  getSetDateTime: l,
7740
7740
  updateTimeValues: _,
7741
7741
  getSecondsValue: s,
7742
- assignStartTime: A,
7742
+ assignStartTime: M,
7743
7743
  validateTime: u,
7744
7744
  disabledTimesConfig: w
7745
7745
  };
7746
7746
  }, Pf = (e, n) => {
7747
7747
  const t = () => {
7748
- e.isTextInputDate && L();
7748
+ e.isTextInputDate && Y();
7749
7749
  }, { modelValue: a, time: r } = aa(e, n, t), { defaultedStartTime: o, defaultedRange: s, defaultedTz: l } = qe(e), { updateTimeValues: i, getSetDateTime: c, setTime: u, assignStartTime: d, disabledTimesConfig: m, validateTime: f } = dl(e, r, a, k);
7750
7750
  function k() {
7751
7751
  n("update-flow-step");
@@ -7753,7 +7753,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7753
7753
  const _ = (V) => {
7754
7754
  const { hours: T, minutes: O, seconds: P } = V;
7755
7755
  return { hours: +T, minutes: +O, seconds: P ? +P : 0 };
7756
- }, A = () => {
7756
+ }, M = () => {
7757
7757
  if (e.startTime) {
7758
7758
  if (Array.isArray(e.startTime)) {
7759
7759
  const T = _(e.startTime[0]), O = _(e.startTime[1]);
@@ -7765,16 +7765,16 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7765
7765
  return s.value.enabled ? [null, null] : null;
7766
7766
  }, g = () => {
7767
7767
  if (s.value.enabled) {
7768
- const [V, T] = A();
7768
+ const [V, T] = M();
7769
7769
  a.value = [
7770
7770
  pt(c(V, 0), l.value.timezone),
7771
7771
  pt(c(T, 1), l.value.timezone)
7772
7772
  ];
7773
7773
  } else
7774
- a.value = pt(c(A()), l.value.timezone);
7774
+ a.value = pt(c(M()), l.value.timezone);
7775
7775
  }, w = (V) => Array.isArray(V) ? [fn(ee(V[0])), fn(ee(V[1]))] : [fn(V ?? ee())], x = (V, T, O) => {
7776
7776
  u("hours", V), u("minutes", T), u("seconds", e.enableSeconds ? O : 0);
7777
- }, L = () => {
7777
+ }, Y = () => {
7778
7778
  const [V, T] = w(a.value);
7779
7779
  return s.value.enabled ? x(
7780
7780
  [V.hours, T.hours],
@@ -7784,7 +7784,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7784
7784
  };
7785
7785
  Ye(() => {
7786
7786
  if (!e.shadow)
7787
- return d(o.value), a.value ? L() : g();
7787
+ return d(o.value), a.value ? Y() : g();
7788
7788
  });
7789
7789
  const J = () => {
7790
7790
  Array.isArray(a.value) ? a.value = a.value.map((V, T) => V && c(V, T)) : a.value = c(a.value), n("time-update");
@@ -7824,8 +7824,8 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7824
7824
  time: i,
7825
7825
  updateTime: d
7826
7826
  }), toggleTimePicker: (f, k = !1, _ = "") => {
7827
- var A;
7828
- (A = l.value) == null || A.toggleTimePicker(f, k, _);
7827
+ var M;
7828
+ (M = l.value) == null || M.toggleTimePicker(f, k, _);
7829
7829
  } }), (f, k) => (p(), De(Sa, {
7830
7830
  "multi-calendars": 0,
7831
7831
  stretch: ""
@@ -7849,7 +7849,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7849
7849
  onOverlayClosed: k[5] || (k[5] = (_) => f.$emit("overlay-toggle", { open: !1, overlay: _ })),
7850
7850
  onOverlayOpened: k[6] || (k[6] = (_) => f.$emit("overlay-toggle", { open: !0, overlay: _ }))
7851
7851
  }), it({ _: 2 }, [
7852
- Ce(b(s), (_, A) => ({
7852
+ Ce(b(s), (_, M) => ({
7853
7853
  name: _,
7854
7854
  fn: ye((g) => [
7855
7855
  ie(f.$slots, _, tt(ht(g)))
@@ -7887,7 +7887,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7887
7887
  defaultedHighlight: u,
7888
7888
  propDates: d,
7889
7889
  defaultedUI: m
7890
- } = qe(r), { transitionName: f, showTransition: k } = na(o), { buildMatrix: _ } = nn(), { handleMonthYearChange: A, isDisabled: g, updateMonthYear: w } = af(r, a), { showLeftIcon: x, showRightIcon: L } = $a(), J = F(!1), V = F(!1), T = F(!1), O = F([null, null, null, null]);
7890
+ } = qe(r), { transitionName: f, showTransition: k } = na(o), { buildMatrix: _ } = nn(), { handleMonthYearChange: M, isDisabled: g, updateMonthYear: w } = af(r, a), { showLeftIcon: x, showRightIcon: Y } = $a(), J = F(!1), V = F(!1), T = F(!1), O = F([null, null, null, null]);
7891
7891
  Ye(() => {
7892
7892
  a("mount");
7893
7893
  });
@@ -7911,7 +7911,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7911
7911
  Ks(r.year, d.value.maxDate)
7912
7912
  ) || i.value.months.includes(B.value), te = nl(u.value, B.value, r.year);
7913
7913
  return { active: v, disabled: E, highlighted: te };
7914
- })), Y = K(() => Pn(r.years, (B) => {
7914
+ })), L = K(() => Pn(r.years, (B) => {
7915
7915
  const v = r.year === B.value, E = Qn(
7916
7916
  B.value,
7917
7917
  Sn(d.value.minDate),
@@ -7929,7 +7929,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7929
7929
  }, $ = (B, v) => {
7930
7930
  r.arrowNavigation && (O.value[v] = Ke(B), _(O.value, "monthYear"));
7931
7931
  }, de = K(() => {
7932
- var B, v, E, te, M, ue;
7932
+ var B, v, E, te, A, ue;
7933
7933
  return [
7934
7934
  {
7935
7935
  type: Dt.month,
@@ -7951,21 +7951,21 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7951
7951
  updateModelValue: (_e) => Z.value = _e,
7952
7952
  text: Qs(r.year, r.locale),
7953
7953
  showSelectionGrid: V.value,
7954
- items: Y.value,
7954
+ items: L.value,
7955
7955
  ariaLabel: (te = s.value) == null ? void 0 : te.openYearsOverlay,
7956
- overlayLabel: ((ue = (M = s.value).yearPicker) == null ? void 0 : ue.call(M, !0)) ?? void 0
7956
+ overlayLabel: ((ue = (A = s.value).yearPicker) == null ? void 0 : ue.call(A, !0)) ?? void 0
7957
7957
  }
7958
7958
  ];
7959
7959
  }), G = K(() => r.disableYearSelect ? [de.value[0]] : r.yearFirst ? [...de.value].reverse() : de.value);
7960
7960
  return n({
7961
7961
  toggleMonthPicker: z,
7962
7962
  toggleYearPicker: le,
7963
- handleMonthYearChange: A
7963
+ handleMonthYearChange: M
7964
7964
  }), (B, v) => {
7965
- var E, te, M, ue, _e, Ge;
7965
+ var E, te, A, ue, _e, Ge;
7966
7966
  return p(), D("div", Of, [
7967
7967
  B.$slots["month-year"] ? (p(), D("div", $f, [
7968
- ie(B.$slots, "month-year", tt(ht({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: b(w), handleMonthYearChange: b(A), instance: e.instance })))
7968
+ ie(B.$slots, "month-year", tt(ht({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: b(w), handleMonthYearChange: b(M), instance: e.instance })))
7969
7969
  ])) : (p(), D(ke, { key: 1 }, [
7970
7970
  B.$slots["top-extra"] ? (p(), D("div", Ef, [
7971
7971
  ie(B.$slots, "top-extra", { value: B.internalModelValue })
@@ -7977,7 +7977,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7977
7977
  disabled: b(g)(!1),
7978
7978
  class: he((te = b(m)) == null ? void 0 : te.navBtnPrev),
7979
7979
  "el-name": "action-prev",
7980
- onActivate: v[0] || (v[0] = (H) => b(A)(!1, !0)),
7980
+ onActivate: v[0] || (v[0] = (H) => b(M)(!1, !0)),
7981
7981
  onSetRef: v[1] || (v[1] = (H) => $(H, 0))
7982
7982
  }, {
7983
7983
  default: ye(() => [
@@ -8077,11 +8077,11 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8077
8077
  ], 2),
8078
8078
  b(x)(b(l), e.instance) && B.vertical ? (p(), De(Wn, {
8079
8079
  key: 1,
8080
- "aria-label": (M = b(s)) == null ? void 0 : M.prevMonth,
8080
+ "aria-label": (A = b(s)) == null ? void 0 : A.prevMonth,
8081
8081
  "el-name": "action-prev",
8082
8082
  disabled: b(g)(!1),
8083
8083
  class: he((ue = b(m)) == null ? void 0 : ue.navBtnPrev),
8084
- onActivate: v[2] || (v[2] = (H) => b(A)(!1, !0))
8084
+ onActivate: v[2] || (v[2] = (H) => b(M)(!1, !0))
8085
8085
  }, {
8086
8086
  default: ye(() => [
8087
8087
  B.$slots["arrow-up"] ? ie(B.$slots, "arrow-up", { key: 0 }) : q("", !0),
@@ -8089,14 +8089,14 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8089
8089
  ]),
8090
8090
  _: 3
8091
8091
  }, 8, ["aria-label", "disabled", "class"])) : q("", !0),
8092
- b(L)(b(l), e.instance) ? (p(), De(Wn, {
8092
+ b(Y)(b(l), e.instance) ? (p(), De(Wn, {
8093
8093
  key: 2,
8094
8094
  ref: "rightIcon",
8095
8095
  "el-name": "action-next",
8096
8096
  disabled: b(g)(!0),
8097
8097
  "aria-label": (_e = b(s)) == null ? void 0 : _e.nextMonth,
8098
8098
  class: he((Ge = b(m)) == null ? void 0 : Ge.navBtnNext),
8099
- onActivate: v[3] || (v[3] = (H) => b(A)(!0, !0)),
8099
+ onActivate: v[3] || (v[3] = (H) => b(M)(!0, !0)),
8100
8100
  onSetRef: v[4] || (v[4] = (H) => $(H, B.disableYearSelect ? 2 : 3))
8101
8101
  }, {
8102
8102
  default: ye(() => [
@@ -8156,9 +8156,9 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8156
8156
  bottom: "",
8157
8157
  left: "",
8158
8158
  transform: ""
8159
- }), _ = F([]), A = F(null), g = F(!0), w = F(""), x = F({ startX: 0, endX: 0, startY: 0, endY: 0 }), L = F([]), J = F({ left: "50%" }), V = F(!1), T = K(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), O = K(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Am(r.formatLocale, r.locale, +r.weekStart));
8159
+ }), _ = F([]), M = F(null), g = F(!0), w = F(""), x = F({ startX: 0, endX: 0, startY: 0, endY: 0 }), Y = F([]), J = F({ left: "50%" }), V = F(!1), T = K(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), O = K(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Am(r.formatLocale, r.locale, +r.weekStart));
8160
8160
  Ye(() => {
8161
- a("mount", { cmp: "calendar", refs: _ }), l.value.noSwipe || A.value && (A.value.addEventListener("touchstart", $, { passive: !1 }), A.value.addEventListener("touchend", de, { passive: !1 }), A.value.addEventListener("touchmove", G, { passive: !1 })), r.monthChangeOnScroll && A.value && A.value.addEventListener("wheel", E, { passive: !1 });
8161
+ a("mount", { cmp: "calendar", refs: _ }), l.value.noSwipe || M.value && (M.value.addEventListener("touchstart", $, { passive: !1 }), M.value.addEventListener("touchend", de, { passive: !1 }), M.value.addEventListener("touchmove", G, { passive: !1 })), r.monthChangeOnScroll && M.value && M.value.addEventListener("wheel", E, { passive: !1 });
8162
8162
  });
8163
8163
  const P = (H) => H ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", I = (H, ae) => {
8164
8164
  if (r.transitions) {
@@ -8180,12 +8180,12 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8180
8180
  }), pe = K(() => (H) => Se(H, f.value)), S = K(() => ({
8181
8181
  dp__calendar: !0,
8182
8182
  dp__calendar_next: c.value.count > 0 && r.instance !== 0
8183
- })), Y = K(() => (H) => r.hideOffsetDates ? H.current : !0), C = async (H, ae) => {
8183
+ })), L = K(() => (H) => r.hideOffsetDates ? H.current : !0), C = async (H, ae) => {
8184
8184
  const { width: y, height: Q } = H.getBoundingClientRect();
8185
8185
  f.value = ae.value;
8186
8186
  let re = { left: `${y / 2}px` }, U = -50;
8187
- if (await Ze(), L.value[0]) {
8188
- const { left: Me, width: N } = L.value[0].getBoundingClientRect();
8187
+ if (await Ze(), Y.value[0]) {
8188
+ const { left: Me, width: N } = Y.value[0].getBoundingClientRect();
8189
8189
  Me < 0 && (re = { left: "0" }, U = 0, J.value.left = `${y / 2}px`), window.innerWidth < Me + N && (re = { right: "0" }, U = 0, J.value.left = `${N - y / 2}px`);
8190
8190
  }
8191
8191
  k.value = {
@@ -8217,7 +8217,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8217
8217
  H && (Array.isArray(_.value[ae]) ? _.value[ae][y] = H : _.value[ae] = [H]), r.arrowNavigation && o(_.value, "calendar");
8218
8218
  }, E = (H) => {
8219
8219
  r.monthChangeOnScroll && (H.preventDefault(), a("handle-scroll", H));
8220
- }, te = (H) => u.value.type === "local" ? Tr(H.value, { weekStartsOn: +r.weekStart }) : u.value.type === "iso" ? Ar(H.value) : typeof u.value.type == "function" ? u.value.type(H.value) : "", M = (H) => {
8220
+ }, te = (H) => u.value.type === "local" ? Tr(H.value, { weekStartsOn: +r.weekStart }) : u.value.type === "iso" ? Ar(H.value) : typeof u.value.type == "function" ? u.value.type(H.value) : "", A = (H) => {
8221
8221
  const ae = H[0];
8222
8222
  return u.value.hideOnOffsetDates ? H.some((y) => y.current) ? te(ae) : "" : te(ae);
8223
8223
  }, ue = (H, ae, y = !0) => {
@@ -8232,7 +8232,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8232
8232
  }, [
8233
8233
  h("div", {
8234
8234
  ref_key: "calendarWrapRef",
8235
- ref: A,
8235
+ ref: M,
8236
8236
  class: he(Z.value),
8237
8237
  role: "grid"
8238
8238
  }, [
@@ -8276,7 +8276,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8276
8276
  role: "row"
8277
8277
  }, [
8278
8278
  H.weekNumbers ? (p(), D("div", If, [
8279
- h("div", qf, we(M(y.days)), 1)
8279
+ h("div", qf, we(A(y.days)), 1)
8280
8280
  ])) : q("", !0),
8281
8281
  (p(!0), D(ke, null, Ce(y.days, (re, U) => {
8282
8282
  var Me, N, ne;
@@ -8303,7 +8303,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8303
8303
  h("div", {
8304
8304
  class: he(["dp__cell_inner", re.classData])
8305
8305
  }, [
8306
- H.$slots.day && Y.value(re) ? ie(H.$slots, "day", {
8306
+ H.$slots.day && L.value(re) ? ie(H.$slots, "day", {
8307
8307
  key: 0,
8308
8308
  day: +re.text,
8309
8309
  date: re.value
@@ -8311,7 +8311,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8311
8311
  H.$slots.day ? q("", !0) : (p(), D(ke, { key: 1 }, [
8312
8312
  rt(we(re.text), 1)
8313
8313
  ], 64)),
8314
- re.marker && Y.value(re) ? (p(), D(ke, { key: 2 }, [
8314
+ re.marker && L.value(re) ? (p(), D(ke, { key: 2 }, [
8315
8315
  H.$slots.marker ? ie(H.$slots, "marker", {
8316
8316
  key: 0,
8317
8317
  marker: re.marker,
@@ -8327,7 +8327,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8327
8327
  key: 3,
8328
8328
  ref_for: !0,
8329
8329
  ref_key: "activeTooltip",
8330
- ref: L,
8330
+ ref: Y,
8331
8331
  class: "dp__marker_tooltip",
8332
8332
  style: wt(k.value)
8333
8333
  }, [
@@ -8376,16 +8376,16 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8376
8376
  defaultedStartTime: f,
8377
8377
  defaultedRange: k,
8378
8378
  defaultedConfig: _,
8379
- defaultedTz: A,
8379
+ defaultedTz: M,
8380
8380
  propDates: g,
8381
8381
  defaultedMultiDates: w
8382
- } = qe(e), { validateMonthYearInRange: x, isDisabled: L, isDateRangeAllowed: J, checkMinMaxRange: V } = an(e), { updateTimeValues: T, getSetDateTime: O, setTime: P, assignStartTime: I, validateTime: Z, disabledTimesConfig: ce } = dl(e, u, i, a), pe = K(
8382
+ } = qe(e), { validateMonthYearInRange: x, isDisabled: Y, isDateRangeAllowed: J, checkMinMaxRange: V } = an(e), { updateTimeValues: T, getSetDateTime: O, setTime: P, assignStartTime: I, validateTime: Z, disabledTimesConfig: ce } = dl(e, u, i, a), pe = K(
8383
8383
  () => (R) => c.value[R] ? c.value[R].month : 0
8384
8384
  ), S = K(
8385
8385
  () => (R) => c.value[R] ? c.value[R].year : 0
8386
- ), Y = (R) => !_.value.keepViewOnOffsetClick || R ? !0 : !s.value, C = (R, se, j, oe = !1) => {
8386
+ ), L = (R) => !_.value.keepViewOnOffsetClick || R ? !0 : !s.value, C = (R, se, j, oe = !1) => {
8387
8387
  var me, ut;
8388
- Y(oe) && (c.value[R] || (c.value[R] = { month: 0, year: 0 }), c.value[R].month = bo(se) ? (me = c.value[R]) == null ? void 0 : me.month : se, c.value[R].year = bo(j) ? (ut = c.value[R]) == null ? void 0 : ut.year : j);
8388
+ L(oe) && (c.value[R] || (c.value[R] = { month: 0, year: 0 }), c.value[R].month = bo(se) ? (me = c.value[R]) == null ? void 0 : me.month : se, c.value[R].year = bo(j) ? (ut = c.value[R]) == null ? void 0 : ut.year : j);
8389
8389
  }, z = () => {
8390
8390
  e.autoApply && n("select-date");
8391
8391
  };
@@ -8399,7 +8399,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8399
8399
  e.autoApply && le.value && n("auto-apply", e.partialFlow ? e.flowStep !== e.flow.length : !1);
8400
8400
  }, $ = (R = !1) => {
8401
8401
  if (i.value)
8402
- return Array.isArray(i.value) ? (r.value = i.value, M(R)) : B(i.value, R);
8402
+ return Array.isArray(i.value) ? (r.value = i.value, A(R)) : B(i.value, R);
8403
8403
  if (m.value.count && R && !e.startDate)
8404
8404
  return G(ee(), R);
8405
8405
  }, de = () => Array.isArray(i.value) && k.value.enabled ? Pe(i.value[0]) === Pe(i.value[1] ?? i.value[0]) : !1, G = (R = /* @__PURE__ */ new Date(), se = !1) => {
@@ -8431,7 +8431,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8431
8431
  const j = R[R.length - 1];
8432
8432
  return B(j, se);
8433
8433
  }
8434
- }, M = (R) => {
8434
+ }, A = (R) => {
8435
8435
  const se = i.value;
8436
8436
  te(se, R), m.value.count && m.value.solo && Ge();
8437
8437
  }, ue = (R, se) => {
@@ -8522,7 +8522,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8522
8522
  n("date-update", se), w.value.enabled ? Ir(se, i, w.value.limit) : i.value = se, a(), Ze().then(() => {
8523
8523
  X();
8524
8524
  });
8525
- }, Te = (R) => k.value.noDisabledRange ? Zs(r.value[0], R).some((se) => L(se)) : !1, xt = () => {
8525
+ }, Te = (R) => k.value.noDisabledRange ? Zs(r.value[0], R).some((se) => Y(se)) : !1, xt = () => {
8526
8526
  r.value = i.value ? i.value.slice() : [], r.value.length === 2 && !(k.value.fixedStart || k.value.fixedEnd) && (r.value = []);
8527
8527
  }, be = (R, se) => {
8528
8528
  const j = [
@@ -8560,7 +8560,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8560
8560
  }, oa = () => {
8561
8561
  r.value.length && (r.value[0] && !r.value[1] ? Nn(0) : (Nn(0), Nn(1), a()), Ra(), i.value = r.value.slice(), Oa(r.value, n, e.autoApply, e.modelAuto));
8562
8562
  }, Na = (R, se = !1) => {
8563
- if (L(R.value) || !R.current && e.hideOffsetDates) return n("invalid-date", R.value);
8563
+ if (Y(R.value) || !R.current && e.hideOffsetDates) return n("invalid-date", R.value);
8564
8564
  if (s.value = JSON.parse(JSON.stringify(R)), !k.value.enabled) return ve(R);
8565
8565
  Do(u.hours) && Do(u.minutes) && !w.value.enabled && (Rn(R, se), oa());
8566
8566
  }, Ba = (R, se) => {
@@ -8573,10 +8573,10 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8573
8573
  value: R,
8574
8574
  modelValue: i,
8575
8575
  range: k.value.enabled,
8576
- timezone: se ? void 0 : A.value.timezone
8576
+ timezone: se ? void 0 : M.value.timezone
8577
8577
  }), z(), e.multiCalendars && Ze().then(() => $(!0));
8578
8578
  }, La = () => {
8579
- const R = Nr(ee(), A.value);
8579
+ const R = Nr(ee(), M.value);
8580
8580
  k.value.enabled ? i.value && Array.isArray(i.value) && i.value[0] ? i.value = Ve(R, i.value[0]) ? [R, i.value[0]] : [i.value[0], R] : i.value = [R] : i.value = R, z();
8581
8581
  }, Fa = () => {
8582
8582
  if (Array.isArray(i.value))
@@ -8654,15 +8654,15 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8654
8654
  getCalendarDays: f,
8655
8655
  getMarker: k,
8656
8656
  handleArrow: _,
8657
- handleScroll: A,
8657
+ handleScroll: M,
8658
8658
  handleSwipe: g,
8659
8659
  selectDate: w,
8660
8660
  updateMonthYear: x,
8661
- presetDate: L,
8661
+ presetDate: Y,
8662
8662
  selectCurrentDate: J,
8663
8663
  updateTime: V,
8664
8664
  assignMonthAndYear: T
8665
- } = Wf(r, a, de, G), O = pn(), { setHoverDate: P, getDayClassData: I, clearHoverDate: Z } = l0(i, r), { defaultedMultiCalendars: ce } = qe(r), pe = F([]), S = F([]), Y = F(null), C = bt(O, "calendar"), z = bt(O, "monthYear"), le = bt(O, "timePicker"), X = (ae) => {
8665
+ } = Wf(r, a, de, G), O = pn(), { setHoverDate: P, getDayClassData: I, clearHoverDate: Z } = l0(i, r), { defaultedMultiCalendars: ce } = qe(r), pe = F([]), S = F([]), L = F(null), C = bt(O, "calendar"), z = bt(O, "monthYear"), le = bt(O, "timePicker"), X = (ae) => {
8666
8666
  r.shadow || a("mount", ae);
8667
8667
  };
8668
8668
  Ie(
@@ -8701,8 +8701,8 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8701
8701
  (re = pe.value[Q]) == null || re.toggleYearPicker(ae, y);
8702
8702
  }, te = (ae, y, Q) => {
8703
8703
  var re;
8704
- (re = Y.value) == null || re.toggleTimePicker(ae, y, Q);
8705
- }, M = (ae, y) => {
8704
+ (re = L.value) == null || re.toggleTimePicker(ae, y, Q);
8705
+ }, A = (ae, y) => {
8706
8706
  var Q;
8707
8707
  if (!r.range) {
8708
8708
  const re = i.value ? i.value : d, U = y ? new Date(y) : re, Me = ae ? St(U, { weekStartsOn: 1 }) : $s(U, { weekStartsOn: 1 });
@@ -8725,7 +8725,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8725
8725
  };
8726
8726
  return n({
8727
8727
  clearHoverDate: Z,
8728
- presetDate: L,
8728
+ presetDate: Y,
8729
8729
  selectCurrentDate: J,
8730
8730
  toggleMonthPicker: v,
8731
8731
  toggleYearPicker: E,
@@ -8740,11 +8740,11 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8740
8740
  updateTime: V,
8741
8741
  updateMonthYear: x,
8742
8742
  selectDate: w,
8743
- presetDate: L
8743
+ presetDate: Y
8744
8744
  }),
8745
8745
  changeMonth: ue,
8746
8746
  changeYear: _e,
8747
- selectWeekDate: M
8747
+ selectWeekDate: A
8748
8748
  }), (ae, y) => (p(), D(ke, null, [
8749
8749
  Be(Sa, {
8750
8750
  "multi-calendars": b(ce).count,
@@ -8787,7 +8787,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8787
8787
  onSelectDate: (U) => b(w)(U, Q !== 1),
8788
8788
  onHandleSpace: (U) => B(U, Q !== 1),
8789
8789
  onSetHoverDate: y[3] || (y[3] = (U) => b(P)(U)),
8790
- onHandleScroll: (U) => b(A)(U, Q),
8790
+ onHandleScroll: (U) => b(M)(U, Q),
8791
8791
  onHandleSwipe: (U) => b(g)(U, Q),
8792
8792
  onMount: y[4] || (y[4] = (U) => X(b(mn).calendar)),
8793
8793
  onResetFlow: y[5] || (y[5] = (U) => ae.$emit("reset-flow")),
@@ -8808,7 +8808,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8808
8808
  ae.$slots["time-picker"] ? ie(ae.$slots, "time-picker", tt(et({ key: 0 }, { time: b(c), updateTime: b(V) }))) : (p(), De(ul, et({
8809
8809
  key: 1,
8810
8810
  ref_key: "timePickerRef",
8811
- ref: Y
8811
+ ref: L
8812
8812
  }, ae.$props, {
8813
8813
  hours: b(c).hours,
8814
8814
  minutes: b(c).minutes,
@@ -8844,7 +8844,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8844
8844
  propDates: l,
8845
8845
  defaultedFilters: i,
8846
8846
  defaultedMultiDates: c
8847
- } = qe(e), { modelValue: u, year: d, month: m, calendars: f } = aa(e, n), { isDisabled: k } = an(e), { selectYear: _, groupedYears: A, showYearPicker: g, isDisabled: w, toggleYearPicker: x, handleYearSelect: L, handleYear: J } = il({
8847
+ } = qe(e), { modelValue: u, year: d, month: m, calendars: f } = aa(e, n), { isDisabled: k } = an(e), { selectYear: _, groupedYears: M, showYearPicker: g, isDisabled: w, toggleYearPicker: x, handleYearSelect: Y, handleYear: J } = il({
8848
8848
  modelValue: u,
8849
8849
  multiCalendars: a,
8850
8850
  range: s,
@@ -8856,17 +8856,17 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8856
8856
  filters: i,
8857
8857
  props: e,
8858
8858
  emit: n
8859
- }), V = (Y, C) => [Y, C].map((z) => It(z, "MMMM", { locale: e.formatLocale })).join("-"), T = K(() => (Y) => u.value ? Array.isArray(u.value) ? u.value.some((C) => yo(Y, C)) : yo(u.value, Y) : !1), O = (Y) => {
8859
+ }), V = (L, C) => [L, C].map((z) => It(z, "MMMM", { locale: e.formatLocale })).join("-"), T = K(() => (L) => u.value ? Array.isArray(u.value) ? u.value.some((C) => yo(L, C)) : yo(u.value, L) : !1), O = (L) => {
8860
8860
  if (s.value.enabled) {
8861
8861
  if (Array.isArray(u.value)) {
8862
- const C = Se(Y, u.value[0]) || Se(Y, u.value[1]);
8863
- return Ca(u.value, t.value, Y) && !C;
8862
+ const C = Se(L, u.value[0]) || Se(L, u.value[1]);
8863
+ return Ca(u.value, t.value, L) && !C;
8864
8864
  }
8865
8865
  return !1;
8866
8866
  }
8867
8867
  return !1;
8868
- }, P = (Y, C) => Y.quarter === co(C) && Y.year === xe(C), I = (Y) => typeof o.value == "function" ? o.value({ quarter: co(Y), year: xe(Y) }) : !!o.value.quarters.find((C) => P(C, Y)), Z = K(() => (Y) => {
8869
- const C = Ne(/* @__PURE__ */ new Date(), { year: d.value(Y) });
8868
+ }, P = (L, C) => L.quarter === co(C) && L.year === xe(C), I = (L) => typeof o.value == "function" ? o.value({ quarter: co(L), year: xe(L) }) : !!o.value.quarters.find((C) => P(C, L)), Z = K(() => (L) => {
8869
+ const C = Ne(/* @__PURE__ */ new Date(), { year: d.value(L) });
8870
8870
  return Dd({
8871
8871
  start: Un(C),
8872
8872
  end: Os(C)
@@ -8881,32 +8881,32 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8881
8881
  isBetween: de
8882
8882
  };
8883
8883
  });
8884
- }), ce = (Y) => {
8885
- Ir(Y, u, c.value.limit), n("auto-apply", !0);
8886
- }, pe = (Y) => {
8887
- u.value = qr(u, Y, n), Oa(u.value, n, e.autoApply, e.modelAuto);
8888
- }, S = (Y) => {
8889
- u.value = Y, n("auto-apply");
8884
+ }), ce = (L) => {
8885
+ Ir(L, u, c.value.limit), n("auto-apply", !0);
8886
+ }, pe = (L) => {
8887
+ u.value = qr(u, L, n), Oa(u.value, n, e.autoApply, e.modelAuto);
8888
+ }, S = (L) => {
8889
+ u.value = L, n("auto-apply");
8890
8890
  };
8891
8891
  return {
8892
8892
  defaultedConfig: r,
8893
8893
  defaultedMultiCalendars: a,
8894
- groupedYears: A,
8894
+ groupedYears: M,
8895
8895
  year: d,
8896
8896
  isDisabled: w,
8897
8897
  quarters: Z,
8898
8898
  showYearPicker: g,
8899
8899
  modelValue: u,
8900
- setHoverDate: (Y) => {
8901
- t.value = Y;
8900
+ setHoverDate: (L) => {
8901
+ t.value = L;
8902
8902
  },
8903
8903
  selectYear: _,
8904
- selectQuarter: (Y, C, z) => {
8904
+ selectQuarter: (L, C, z) => {
8905
8905
  if (!z)
8906
- return f.value[C].month = Pe(mo(Y)), c.value.enabled ? ce(Y) : s.value.enabled ? pe(Y) : S(Y);
8906
+ return f.value[C].month = Pe(mo(L)), c.value.enabled ? ce(L) : s.value.enabled ? pe(L) : S(L);
8907
8907
  },
8908
8908
  toggleYearPicker: x,
8909
- handleYearSelect: L,
8909
+ handleYearSelect: Y,
8910
8910
  handleYear: J
8911
8911
  };
8912
8912
  }, Xf = { class: "dp--quarter-items" }, Qf = ["data-test", "disabled", "onClick", "onMouseover"], Gf = /* @__PURE__ */ nt({
@@ -8938,7 +8938,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8938
8938
  modelValue: f,
8939
8939
  showYearPicker: k,
8940
8940
  setHoverDate: _,
8941
- selectQuarter: A,
8941
+ selectQuarter: M,
8942
8942
  toggleYearPicker: g,
8943
8943
  handleYearSelect: w,
8944
8944
  handleYear: x
@@ -8946,12 +8946,12 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8946
8946
  return n({ getSidebarProps: () => ({
8947
8947
  modelValue: f,
8948
8948
  year: u,
8949
- selectQuarter: A,
8949
+ selectQuarter: M,
8950
8950
  handleYearSelect: w,
8951
8951
  handleYear: x
8952
- }) }), (L, J) => (p(), De(Sa, {
8952
+ }) }), (Y, J) => (p(), De(Sa, {
8953
8953
  "multi-calendars": b(l).count,
8954
- collapse: L.collapse,
8954
+ collapse: Y.collapse,
8955
8955
  stretch: ""
8956
8956
  }, {
8957
8957
  default: ye(({ instance: V }) => [
@@ -8959,12 +8959,12 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8959
8959
  class: "dp-quarter-picker-wrap",
8960
8960
  style: wt({ minHeight: `${b(i).modeHeight}px` })
8961
8961
  }, [
8962
- L.$slots["top-extra"] ? ie(L.$slots, "top-extra", {
8962
+ Y.$slots["top-extra"] ? ie(Y.$slots, "top-extra", {
8963
8963
  key: 0,
8964
- value: L.internalModelValue
8964
+ value: Y.internalModelValue
8965
8965
  }) : q("", !0),
8966
8966
  h("div", null, [
8967
- Be(ol, et(L.$props, {
8967
+ Be(ol, et(Y.$props, {
8968
8968
  items: b(c)(V),
8969
8969
  instance: V,
8970
8970
  "show-year-picker": b(k)[V],
@@ -8977,7 +8977,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8977
8977
  Ce(b(s), (T, O) => ({
8978
8978
  name: T,
8979
8979
  fn: ye((P) => [
8980
- ie(L.$slots, T, tt(ht(P)))
8980
+ ie(Y.$slots, T, tt(ht(P)))
8981
8981
  ])
8982
8982
  }))
8983
8983
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
@@ -8994,10 +8994,10 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8994
8994
  }]),
8995
8995
  "data-test": T.value,
8996
8996
  disabled: T.disabled,
8997
- onClick: (P) => b(A)(T.value, V, T.disabled),
8997
+ onClick: (P) => b(M)(T.value, V, T.disabled),
8998
8998
  onMouseover: (P) => b(_)(T.value)
8999
8999
  }, [
9000
- L.$slots.quarter ? ie(L.$slots, "quarter", {
9000
+ Y.$slots.quarter ? ie(Y.$slots, "quarter", {
9001
9001
  key: 0,
9002
9002
  value: T.value,
9003
9003
  text: T.text
@@ -9075,10 +9075,10 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9075
9075
  noOverlayFocus: r.noOverlayFocus,
9076
9076
  menuWrapRef: o.value
9077
9077
  };
9078
- }), { setMenuFocused: l, setShiftKey: i, control: c } = rl(), u = pn(), { defaultedTextInput: d, defaultedInline: m, defaultedConfig: f, defaultedUI: k } = qe(r), _ = F(null), A = F(0), g = F(null), w = F(!1), x = F(null);
9078
+ }), { setMenuFocused: l, setShiftKey: i, control: c } = rl(), u = pn(), { defaultedTextInput: d, defaultedInline: m, defaultedConfig: f, defaultedUI: k } = qe(r), _ = F(null), M = F(0), g = F(null), w = F(!1), x = F(null);
9079
9079
  Ye(() => {
9080
9080
  if (!r.shadow) {
9081
- w.value = !0, L(), window.addEventListener("resize", L);
9081
+ w.value = !0, Y(), window.addEventListener("resize", Y);
9082
9082
  const N = Ke(o);
9083
9083
  if (N && !d.value.enabled && !m.value.enabled && (l(!0), C()), N) {
9084
9084
  const ne = (ve) => {
@@ -9088,16 +9088,16 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9088
9088
  }
9089
9089
  }
9090
9090
  }), Kn(() => {
9091
- window.removeEventListener("resize", L);
9091
+ window.removeEventListener("resize", Y);
9092
9092
  });
9093
- const L = () => {
9093
+ const Y = () => {
9094
9094
  const N = Ke(g);
9095
- N && (A.value = N.getBoundingClientRect().width);
9096
- }, { arrowRight: J, arrowLeft: V, arrowDown: T, arrowUp: O } = nn(), { flowStep: P, updateFlowStep: I, childMount: Z, resetFlow: ce, handleFlow: pe } = i0(r, a, x), S = K(() => r.monthPicker ? vf : r.yearPicker ? yf : r.timePicker ? Sf : r.quarterPicker ? Gf : zf), Y = K(() => {
9095
+ N && (M.value = N.getBoundingClientRect().width);
9096
+ }, { arrowRight: J, arrowLeft: V, arrowDown: T, arrowUp: O } = nn(), { flowStep: P, updateFlowStep: I, childMount: Z, resetFlow: ce, handleFlow: pe } = i0(r, a, x), S = K(() => r.monthPicker ? vf : r.yearPicker ? yf : r.timePicker ? Sf : r.quarterPicker ? Gf : zf), L = K(() => {
9097
9097
  var N;
9098
9098
  if (f.value.arrowLeft) return f.value.arrowLeft;
9099
9099
  const ne = (N = o.value) == null ? void 0 : N.getBoundingClientRect(), ve = r.getInputRect();
9100
- return (ve == null ? void 0 : ve.width) < (A == null ? void 0 : A.value) && (ve == null ? void 0 : ve.left) <= ((ne == null ? void 0 : ne.left) ?? 0) ? `${(ve == null ? void 0 : ve.width) / 2}px` : (ve == null ? void 0 : ve.right) >= ((ne == null ? void 0 : ne.right) ?? 0) && (ve == null ? void 0 : ve.width) < (A == null ? void 0 : A.value) ? `${(A == null ? void 0 : A.value) - (ve == null ? void 0 : ve.width) / 2}px` : "50%";
9100
+ return (ve == null ? void 0 : ve.width) < (M == null ? void 0 : M.value) && (ve == null ? void 0 : ve.left) <= ((ne == null ? void 0 : ne.left) ?? 0) ? `${(ve == null ? void 0 : ve.width) / 2}px` : (ve == null ? void 0 : ve.right) >= ((ne == null ? void 0 : ne.right) ?? 0) && (ve == null ? void 0 : ve.width) < (M == null ? void 0 : M.value) ? `${(M == null ? void 0 : M.value) - (ve == null ? void 0 : ve.width) / 2}px` : "50%";
9101
9101
  }), C = () => {
9102
9102
  const N = Ke(o);
9103
9103
  N && N.focus({ preventScroll: !0 });
@@ -9128,7 +9128,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9128
9128
  if (N === dt.left) return V();
9129
9129
  if (N === dt.right) return J();
9130
9130
  } else N === dt.left || N === dt.up ? H("handleArrow", dt.left, 0, N === dt.up) : H("handleArrow", dt.right, 0, N === dt.down);
9131
- }, M = (N) => {
9131
+ }, A = (N) => {
9132
9132
  i(N.shiftKey), !r.disableMonthYearSelect && N.code === Fe.tab && N.target.classList.contains("dp__menu") && c.value.shiftKeyInMenu && (N.preventDefault(), Zt(N, f.value, !0), a("close-picker"));
9133
9133
  }, ue = () => {
9134
9134
  C(), a("time-picker-close");
@@ -9153,7 +9153,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9153
9153
  N.preventDefault(), te(ne);
9154
9154
  }, Me = (N) => {
9155
9155
  var ne, ve, Te;
9156
- if (M(N), N.key === Fe.home || N.key === Fe.end)
9156
+ if (A(N), N.key === Fe.home || N.key === Fe.end)
9157
9157
  return H(
9158
9158
  "selectWeekDate",
9159
9159
  N.key === Fe.home,
@@ -9188,7 +9188,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9188
9188
  role: b(m).enabled ? void 0 : "dialog",
9189
9189
  "aria-label": (ve = N.ariaLabels) == null ? void 0 : ve.menu,
9190
9190
  class: he(B.value),
9191
- style: wt({ "--dp-arrow-left": Y.value }),
9191
+ style: wt({ "--dp-arrow-left": L.value }),
9192
9192
  onMouseleave: Q,
9193
9193
  onClick: v,
9194
9194
  onKeydown: Me
@@ -9215,7 +9215,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9215
9215
  dp__menu_content_wrapper: ((Te = N.presetDates) == null ? void 0 : Te.length) || !!N.$slots["left-sidebar"] || !!N.$slots["right-sidebar"],
9216
9216
  "dp--menu-content-wrapper-collapsed": e.collapse && (((xt = N.presetDates) == null ? void 0 : xt.length) || !!N.$slots["left-sidebar"] || !!N.$slots["right-sidebar"])
9217
9217
  }),
9218
- style: wt({ "--dp-menu-width": `${A.value}px` })
9218
+ style: wt({ "--dp-menu-width": `${M.value}px` })
9219
9219
  }, [
9220
9220
  N.$slots["left-sidebar"] ? (p(), D("div", e0, [
9221
9221
  ie(N.$slots, "left-sidebar", tt(ht(z.value)))
@@ -9297,7 +9297,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9297
9297
  key: 3,
9298
9298
  "menu-mount": w.value
9299
9299
  }, s.value, {
9300
- "calendar-width": A.value,
9300
+ "calendar-width": M.value,
9301
9301
  onClosePicker: ne[16] || (ne[16] = (be) => N.$emit("close-picker")),
9302
9302
  onSelectDate: ne[17] || (ne[17] = (be) => N.$emit("select-date")),
9303
9303
  onInvalidSelect: ne[18] || (ne[18] = (be) => N.$emit("invalid-select")),
@@ -9343,23 +9343,23 @@ const r0 = ({
9343
9343
  return { top: 0, left: 0 };
9344
9344
  }, _ = (C, z) => {
9345
9345
  d.value.left = `${C + z - c.value.width}px`;
9346
- }, A = (C) => {
9346
+ }, M = (C) => {
9347
9347
  d.value.left = `${C}px`;
9348
9348
  }, g = (C, z) => {
9349
- s.position === _n.left && A(C), s.position === _n.right && _(C, z), s.position === _n.center && (d.value.left = `${C + z / 2 - c.value.width / 2}px`);
9349
+ s.position === _n.left && M(C), s.position === _n.right && _(C, z), s.position === _n.center && (d.value.left = `${C + z / 2 - c.value.width / 2}px`);
9350
9350
  }, w = (C) => {
9351
9351
  const { width: z, height: le } = C.getBoundingClientRect(), { top: X, left: $ } = s.altPosition ? s.altPosition(C) : k(C);
9352
9352
  return { top: +X, left: +$, width: z, height: le };
9353
9353
  }, x = () => {
9354
9354
  d.value.left = "50%", d.value.top = "50%", d.value.transform = "translate(-50%, -50%)", d.value.position = "fixed", delete d.value.opacity;
9355
- }, L = () => {
9355
+ }, Y = () => {
9356
9356
  const C = Ke(t), { top: z, left: le, transform: X } = s.altPosition(C);
9357
9357
  d.value = { top: `${z}px`, left: `${le}px`, transform: X ?? "" };
9358
9358
  }, J = (C = !0) => {
9359
9359
  var z;
9360
9360
  if (!r.value.enabled) {
9361
9361
  if (f.value) return x();
9362
- if (s.altPosition !== null) return L();
9362
+ if (s.altPosition !== null) return Y();
9363
9363
  if (C) {
9364
9364
  const le = s.teleport ? (z = n.value) == null ? void 0 : z.$el : e.value;
9365
9365
  le && (c.value = le.getBoundingClientRect()), o("recalculate-position");
@@ -9380,7 +9380,7 @@ const r0 = ({
9380
9380
  if (!u.value) {
9381
9381
  if (Math.abs(X) !== Math.abs($)) {
9382
9382
  if (X <= 0)
9383
- return u.value = !0, A(z);
9383
+ return u.value = !0, M(z);
9384
9384
  if ($ >= document.documentElement.clientWidth)
9385
9385
  return u.value = !0, _(z, le);
9386
9386
  }
@@ -9408,7 +9408,7 @@ const r0 = ({
9408
9408
  return !C || C === document.body || C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : pe(C) ? C : S(
9409
9409
  C.assignedSlot && i.value.shadowDom ? C.assignedSlot.parentNode : C.parentNode
9410
9410
  );
9411
- }, Y = (C) => {
9411
+ }, L = (C) => {
9412
9412
  if (C)
9413
9413
  switch (s.position) {
9414
9414
  case _n.left:
@@ -9432,8 +9432,8 @@ const r0 = ({
9432
9432
  de.setAttribute("id", "dp--temp-container");
9433
9433
  const B = (X = a.value) != null && X.clientWidth ? a.value : document.body;
9434
9434
  B.append(de);
9435
- const v = Y(G), E = i.value.shadowDom ? Object.keys(l).filter(
9436
- (M) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(M)
9435
+ const v = L(G), E = i.value.shadowDom ? Object.keys(l).filter(
9436
+ (A) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(A)
9437
9437
  ) : Object.keys(l), te = Sl(
9438
9438
  C,
9439
9439
  {
@@ -9441,7 +9441,7 @@ const r0 = ({
9441
9441
  shadow: !0,
9442
9442
  style: { opacity: 0, position: "absolute", ...v }
9443
9443
  },
9444
- Object.fromEntries(E.map((M) => [M, l[M]]))
9444
+ Object.fromEntries(E.map((A) => [A, l[A]]))
9445
9445
  );
9446
9446
  zr(te, de), c.value = ($ = te.el) == null ? void 0 : $.getBoundingClientRect(), zr(null, de), B.removeChild(de);
9447
9447
  }
@@ -9566,18 +9566,18 @@ const r0 = ({
9566
9566
  }, f = () => {
9567
9567
  u.value = null;
9568
9568
  }, k = (v) => Array.isArray(e.value) && i.value.enabled && e.value[0] && u.value ? v ? Ue(u.value, e.value[0]) : Ve(u.value, e.value[0]) : !0, _ = (v, E) => {
9569
- const te = () => e.value ? E ? e.value[0] || null : e.value[1] : null, M = e.value && Array.isArray(e.value) ? te() : null;
9570
- return Se(ee(v.value), M);
9571
- }, A = (v) => {
9569
+ const te = () => e.value ? E ? e.value[0] || null : e.value[1] : null, A = e.value && Array.isArray(e.value) ? te() : null;
9570
+ return Se(ee(v.value), A);
9571
+ }, M = (v) => {
9572
9572
  const E = Array.isArray(e.value) ? e.value[0] : null;
9573
9573
  return v ? !Ve(u.value ?? null, E) : !0;
9574
- }, g = (v, E = !0) => (i.value.enabled || n.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? n.hideOffsetDates && !v.current ? !1 : Se(ee(v.value), e.value[E ? 0 : 1]) : i.value.enabled ? _(v, E) && A(E) || Se(v.value, Array.isArray(e.value) ? e.value[0] : null) && k(E) : !1, w = (v, E) => {
9574
+ }, g = (v, E = !0) => (i.value.enabled || n.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? n.hideOffsetDates && !v.current ? !1 : Se(ee(v.value), e.value[E ? 0 : 1]) : i.value.enabled ? _(v, E) && M(E) || Se(v.value, Array.isArray(e.value) ? e.value[0] : null) && k(E) : !1, w = (v, E) => {
9575
9575
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
9576
9576
  const te = Se(v.value, u.value);
9577
9577
  return E ? Ue(e.value[0], v.value) && te : Ve(e.value[0], v.value) && te;
9578
9578
  }
9579
9579
  return !1;
9580
- }, x = (v) => !e.value || n.hideOffsetDates && !v.current ? !1 : i.value.enabled ? n.modelAuto && Array.isArray(e.value) ? Se(v.value, e.value[0] ? e.value[0] : d.value) : !1 : a.value.enabled && Array.isArray(e.value) ? e.value.some((E) => Se(E, v.value)) : Se(v.value, e.value ? e.value : d.value), L = (v) => {
9580
+ }, x = (v) => !e.value || n.hideOffsetDates && !v.current ? !1 : i.value.enabled ? n.modelAuto && Array.isArray(e.value) ? Se(v.value, e.value[0] ? e.value[0] : d.value) : !1 : a.value.enabled && Array.isArray(e.value) ? e.value.some((E) => Se(E, v.value)) : Se(v.value, e.value ? e.value : d.value), Y = (v) => {
9581
9581
  if (i.value.autoRange || n.weekPicker) {
9582
9582
  if (u.value) {
9583
9583
  if (n.hideOffsetDates && !v.current) return !1;
@@ -9618,13 +9618,13 @@ const r0 = ({
9618
9618
  }, S = (v) => {
9619
9619
  var E;
9620
9620
  return typeof o.value == "function" ? o.value(v.value) : (E = o.value.weekdays) == null ? void 0 : E.includes(v.value.getDay());
9621
- }, Y = (v) => (i.value.enabled || n.weekPicker) && (!(t.value.count > 0) || v.current) && P() && !(!v.current && n.hideOffsetDates) && !x(v) ? T(v) : !1, C = (v) => {
9622
- const { isRangeStart: E, isRangeEnd: te } = $(v), M = i.value.enabled ? E || te : !1;
9621
+ }, L = (v) => (i.value.enabled || n.weekPicker) && (!(t.value.count > 0) || v.current) && P() && !(!v.current && n.hideOffsetDates) && !x(v) ? T(v) : !1, C = (v) => {
9622
+ const { isRangeStart: E, isRangeEnd: te } = $(v), A = i.value.enabled ? E || te : !1;
9623
9623
  return {
9624
9624
  dp__cell_offset: !v.current,
9625
9625
  dp__pointer: !n.disabled && !(!v.current && n.hideOffsetDates) && !c(v.value),
9626
9626
  dp__cell_disabled: c(v.value),
9627
- dp__cell_highlight: !pe(v) && (ce(v) || S(v)) && !Z(v) && !M && !V(v) && !(Y(v) && n.weekPicker) && !te,
9627
+ dp__cell_highlight: !pe(v) && (ce(v) || S(v)) && !Z(v) && !A && !V(v) && !(L(v) && n.weekPicker) && !te,
9628
9628
  dp__cell_highlight_active: !pe(v) && (ce(v) || S(v)) && Z(v),
9629
9629
  dp__today: !n.noToday && Se(v.value, d.value) && v.current,
9630
9630
  "dp--past": Ve(v.value, d.value),
@@ -9668,7 +9668,7 @@ const r0 = ({
9668
9668
  return {
9669
9669
  dp__range_start: E,
9670
9670
  dp__range_end: te,
9671
- dp__range_between: Y(v),
9671
+ dp__range_between: L(v),
9672
9672
  dp__date_hover: Se(v.value, u.value) && !E && !te && !n.weekPicker,
9673
9673
  dp__date_hover_start: w(v, !0),
9674
9674
  dp__date_hover_end: w(v, !1)
@@ -9677,7 +9677,7 @@ const r0 = ({
9677
9677
  ...de(v),
9678
9678
  dp__cell_auto_range: J(v),
9679
9679
  dp__cell_auto_range_start: V(v),
9680
- dp__cell_auto_range_end: L(v)
9680
+ dp__cell_auto_range_end: Y(v)
9681
9681
  }), B = (v) => i.value.enabled ? i.value.autoRange ? G(v) : n.modelAuto ? { ...z(v), ...de(v) } : n.weekPicker ? X(v) : de(v) : n.weekPicker ? le(v) : z(v);
9682
9682
  return {
9683
9683
  setHoverDate: m,
@@ -9691,60 +9691,60 @@ const r0 = ({
9691
9691
  };
9692
9692
  }, an = (e) => {
9693
9693
  const { defaultedFilters: n, defaultedRange: t, propDates: a, defaultedMultiDates: r } = qe(e), o = (S) => a.value.disabledDates ? typeof a.value.disabledDates == "function" ? a.value.disabledDates(ee(S)) : !!ga(S, a.value.disabledDates) : !1, s = (S) => a.value.maxDate ? e.yearPicker ? xe(S) > xe(a.value.maxDate) : Ue(S, a.value.maxDate) : !1, l = (S) => a.value.minDate ? e.yearPicker ? xe(S) < xe(a.value.minDate) : Ve(S, a.value.minDate) : !1, i = (S) => {
9694
- const Y = s(S), C = l(S), z = o(S), le = n.value.months.map((B) => +B).includes(Pe(S)), X = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === wc(S)) : !1, $ = f(S), de = xe(S), G = de < +e.yearRange[0] || de > +e.yearRange[1];
9695
- return !(Y || C || z || le || G || X || $);
9696
- }, c = (S, Y) => Ve(...Qt(a.value.minDate, S, Y)) || Se(...Qt(a.value.minDate, S, Y)), u = (S, Y) => Ue(...Qt(a.value.maxDate, S, Y)) || Se(...Qt(a.value.maxDate, S, Y)), d = (S, Y, C) => {
9694
+ const L = s(S), C = l(S), z = o(S), le = n.value.months.map((B) => +B).includes(Pe(S)), X = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === wc(S)) : !1, $ = f(S), de = xe(S), G = de < +e.yearRange[0] || de > +e.yearRange[1];
9695
+ return !(L || C || z || le || G || X || $);
9696
+ }, c = (S, L) => Ve(...Qt(a.value.minDate, S, L)) || Se(...Qt(a.value.minDate, S, L)), u = (S, L) => Ue(...Qt(a.value.maxDate, S, L)) || Se(...Qt(a.value.maxDate, S, L)), d = (S, L, C) => {
9697
9697
  let z = !1;
9698
- return a.value.maxDate && C && u(S, Y) && (z = !0), a.value.minDate && !C && c(S, Y) && (z = !0), z;
9699
- }, m = (S, Y, C, z) => {
9698
+ return a.value.maxDate && C && u(S, L) && (z = !0), a.value.minDate && !C && c(S, L) && (z = !0), z;
9699
+ }, m = (S, L, C, z) => {
9700
9700
  let le = !1;
9701
- return z && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? le = d(S, Y, C) : (a.value.minDate && c(S, Y) || a.value.maxDate && u(S, Y)) && (le = !0) : le = !0, le;
9702
- }, f = (S) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !ga(S, a.value.allowedDates) : !1, k = (S) => !i(S), _ = (S) => t.value.noDisabledRange ? !Ss({ start: S[0], end: S[1] }).some((Y) => k(Y)) : !0, A = (S) => {
9701
+ return z && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? le = d(S, L, C) : (a.value.minDate && c(S, L) || a.value.maxDate && u(S, L)) && (le = !0) : le = !0, le;
9702
+ }, f = (S) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !ga(S, a.value.allowedDates) : !1, k = (S) => !i(S), _ = (S) => t.value.noDisabledRange ? !Ss({ start: S[0], end: S[1] }).some((L) => k(L)) : !0, M = (S) => {
9703
9703
  if (S) {
9704
- const Y = xe(S);
9705
- return Y >= +e.yearRange[0] && Y <= e.yearRange[1];
9704
+ const L = xe(S);
9705
+ return L >= +e.yearRange[0] && L <= e.yearRange[1];
9706
9706
  }
9707
9707
  return !0;
9708
- }, g = (S, Y) => !!(Array.isArray(S) && S[Y] && (t.value.maxRange || t.value.minRange) && A(S[Y])), w = (S, Y, C = 0) => {
9709
- if (g(Y, C) && A(S)) {
9710
- const z = Cs(S, Y[C]), le = Zs(Y[C], S), X = le.length === 1 ? 0 : le.filter((de) => k(de)).length, $ = Math.abs(z) - (t.value.minMaxRawRange ? 0 : X);
9708
+ }, g = (S, L) => !!(Array.isArray(S) && S[L] && (t.value.maxRange || t.value.minRange) && M(S[L])), w = (S, L, C = 0) => {
9709
+ if (g(L, C) && M(S)) {
9710
+ const z = Cs(S, L[C]), le = Zs(L[C], S), X = le.length === 1 ? 0 : le.filter((de) => k(de)).length, $ = Math.abs(z) - (t.value.minMaxRawRange ? 0 : X);
9711
9711
  if (t.value.minRange && t.value.maxRange)
9712
9712
  return $ >= +t.value.minRange && $ <= +t.value.maxRange;
9713
9713
  if (t.value.minRange) return $ >= +t.value.minRange;
9714
9714
  if (t.value.maxRange) return $ <= +t.value.maxRange;
9715
9715
  }
9716
9716
  return !0;
9717
- }, x = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, L = (S) => Array.isArray(S) ? [S[0] ? Ja(S[0]) : null, S[1] ? Ja(S[1]) : null] : Ja(S), J = (S, Y, C) => S.find(
9718
- (z) => +z.hours === Vt(Y) && z.minutes === "*" ? !0 : +z.minutes === tn(Y) && +z.hours === Vt(Y)
9719
- ) && C, V = (S, Y, C) => {
9720
- const [z, le] = S, [X, $] = Y;
9717
+ }, x = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, Y = (S) => Array.isArray(S) ? [S[0] ? Ja(S[0]) : null, S[1] ? Ja(S[1]) : null] : Ja(S), J = (S, L, C) => S.find(
9718
+ (z) => +z.hours === Vt(L) && z.minutes === "*" ? !0 : +z.minutes === tn(L) && +z.hours === Vt(L)
9719
+ ) && C, V = (S, L, C) => {
9720
+ const [z, le] = S, [X, $] = L;
9721
9721
  return !J(z, X, C) && !J(le, $, C) && C;
9722
- }, T = (S, Y) => {
9723
- const C = Array.isArray(Y) ? Y : [Y];
9722
+ }, T = (S, L) => {
9723
+ const C = Array.isArray(L) ? L : [L];
9724
9724
  return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? V(e.disabledTimes, C, S) : !C.some((z) => J(e.disabledTimes, z, S)) : S;
9725
- }, O = (S, Y) => {
9726
- const C = Array.isArray(Y) ? [fn(Y[0]), Y[1] ? fn(Y[1]) : void 0] : fn(Y), z = !e.disabledTimes(C);
9725
+ }, O = (S, L) => {
9726
+ const C = Array.isArray(L) ? [fn(L[0]), L[1] ? fn(L[1]) : void 0] : fn(L), z = !e.disabledTimes(C);
9727
9727
  return S && z;
9728
- }, P = (S, Y) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? T(Y, S) : O(Y, S) : Y, I = (S) => {
9729
- let Y = !0;
9728
+ }, P = (S, L) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? T(L, S) : O(L, S) : L, I = (S) => {
9729
+ let L = !0;
9730
9730
  if (!S || x()) return !0;
9731
- const C = !a.value.minDate && !a.value.maxDate ? L(S) : S;
9732
- return (e.maxTime || a.value.maxDate) && (Y = xo(
9731
+ const C = !a.value.minDate && !a.value.maxDate ? Y(S) : S;
9732
+ return (e.maxTime || a.value.maxDate) && (L = xo(
9733
9733
  e.maxTime,
9734
9734
  a.value.maxDate,
9735
9735
  "max",
9736
9736
  Je(C),
9737
- Y
9738
- )), (e.minTime || a.value.minDate) && (Y = xo(
9737
+ L
9738
+ )), (e.minTime || a.value.minDate) && (L = xo(
9739
9739
  e.minTime,
9740
9740
  a.value.minDate,
9741
9741
  "min",
9742
9742
  Je(C),
9743
- Y
9744
- )), P(S, Y);
9743
+ L
9744
+ )), P(S, L);
9745
9745
  }, Z = (S) => {
9746
9746
  if (!e.monthPicker) return !0;
9747
- let Y = !0;
9747
+ let L = !0;
9748
9748
  const C = ee(Ct(S));
9749
9749
  if (a.value.minDate && a.value.maxDate) {
9750
9750
  const z = ee(Ct(a.value.minDate)), le = ee(Ct(a.value.maxDate));
@@ -9752,14 +9752,14 @@ const r0 = ({
9752
9752
  }
9753
9753
  if (a.value.minDate) {
9754
9754
  const z = ee(Ct(a.value.minDate));
9755
- Y = Ue(C, z) || Se(C, z);
9755
+ L = Ue(C, z) || Se(C, z);
9756
9756
  }
9757
9757
  if (a.value.maxDate) {
9758
9758
  const z = ee(Ct(a.value.maxDate));
9759
- Y = Ve(C, z) || Se(C, z);
9759
+ L = Ve(C, z) || Se(C, z);
9760
9760
  }
9761
- return Y;
9762
- }, ce = K(() => (S) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : I(S)), pe = K(() => (S) => e.monthPicker ? Array.isArray(S) && (t.value.enabled || r.value.enabled) ? !S.filter((Y) => !Z(Y)).length : Z(S) : !0);
9761
+ return L;
9762
+ }, ce = K(() => (S) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : I(S)), pe = K(() => (S) => e.monthPicker ? Array.isArray(S) && (t.value.enabled || r.value.enabled) ? !S.filter((L) => !Z(L)).length : Z(S) : !0);
9763
9763
  return {
9764
9764
  isDisabled: k,
9765
9765
  validateDate: i,
@@ -9840,7 +9840,7 @@ const r0 = ({
9840
9840
  defaultedUI: d,
9841
9841
  getDefaultPattern: m,
9842
9842
  getDefaultStartTime: f
9843
- } = qe(r), { checkMinMaxRange: k } = an(r), _ = F(), A = F(null), g = F(!1), w = F(!1), x = K(
9843
+ } = qe(r), { checkMinMaxRange: k } = an(r), _ = F(), M = F(null), g = F(!1), w = F(!1), x = K(
9844
9844
  () => ({
9845
9845
  dp__pointer: !r.disabled && !r.readonly && !o.value.enabled,
9846
9846
  dp__disabled: r.disabled,
@@ -9853,7 +9853,7 @@ const r0 = ({
9853
9853
  dp__input_reg: !o.value.enabled,
9854
9854
  ...d.value.input ?? {}
9855
9855
  })
9856
- ), L = () => {
9856
+ ), Y = () => {
9857
9857
  a("set-input-date", null), r.clearable && r.autoApply && (a("set-empty-date"), _.value = null);
9858
9858
  }, J = ($) => {
9859
9859
  const de = f();
@@ -9886,7 +9886,7 @@ const r0 = ({
9886
9886
  }, P = ($) => {
9887
9887
  var de;
9888
9888
  const G = typeof $ == "string" ? $ : (de = $.target) == null ? void 0 : de.value;
9889
- G !== "" ? (o.value.openMenu && !r.isMenuOpen && a("open"), O(G), a("set-input-date", _.value)) : L(), w.value = !1, a("update:input-value", G), a("text-input", $, _.value);
9889
+ G !== "" ? (o.value.openMenu && !r.isMenuOpen && a("open"), O(G), a("set-input-date", _.value)) : Y(), w.value = !1, a("update:input-value", G), a("text-input", $, _.value);
9890
9890
  }, I = ($) => {
9891
9891
  o.value.enabled ? (O($.target.value), o.value.enterSubmit && gr(_.value) && r.inputValue !== "" ? (a("set-input-date", _.value, !0), _.value = null) : o.value.enterSubmit && r.inputValue === "" && (_.value = null, a("clear"))) : pe($);
9892
9892
  }, Z = ($, de) => {
@@ -9894,7 +9894,7 @@ const r0 = ({
9894
9894
  }, ce = () => {
9895
9895
  g.value = !0, a("focus"), Ze().then(() => {
9896
9896
  var $;
9897
- o.value.enabled && o.value.selectOnFocus && (($ = A.value) == null || $.select());
9897
+ o.value.enabled && o.value.selectOnFocus && (($ = M.value) == null || $.select());
9898
9898
  });
9899
9899
  }, pe = ($) => {
9900
9900
  if (Zt($, i.value, !0), o.value.enabled && o.value.openMenu && !l.value.input) {
@@ -9903,7 +9903,7 @@ const r0 = ({
9903
9903
  } else o.value.enabled || a("toggle");
9904
9904
  }, S = () => {
9905
9905
  a("real-blur"), g.value = !1, (!r.isMenuOpen || l.value.enabled && l.value.input) && a("blur"), r.autoApply && o.value.enabled && _.value && !r.isMenuOpen && (a("set-input-date", _.value), a("select-date"), _.value = null);
9906
- }, Y = ($) => {
9906
+ }, L = ($) => {
9907
9907
  Zt($, i.value, !0), a("clear");
9908
9908
  }, C = ($) => {
9909
9909
  if ($.key === "Tab" && Z($), $.key === "Enter" && I($), !o.value.enabled) {
@@ -9912,7 +9912,7 @@ const r0 = ({
9912
9912
  }
9913
9913
  }, z = () => {
9914
9914
  var $;
9915
- ($ = A.value) == null || $.focus({ preventScroll: !0 });
9915
+ ($ = M.value) == null || $.focus({ preventScroll: !0 });
9916
9916
  }, le = ($) => {
9917
9917
  _.value = $;
9918
9918
  }, X = ($) => {
@@ -9933,7 +9933,7 @@ const r0 = ({
9933
9933
  onInput: P,
9934
9934
  onEnter: I,
9935
9935
  onTab: Z,
9936
- onClear: Y,
9936
+ onClear: L,
9937
9937
  onBlur: S,
9938
9938
  onKeypress: C,
9939
9939
  onPaste: T,
@@ -9946,7 +9946,7 @@ const r0 = ({
9946
9946
  key: 1,
9947
9947
  id: $.uid ? `dp-input-${$.uid}` : void 0,
9948
9948
  ref_key: "inputRef",
9949
- ref: A,
9949
+ ref: M,
9950
9950
  "data-test": "dp-input",
9951
9951
  name: $.name,
9952
9952
  class: he(x.value),
@@ -9985,15 +9985,15 @@ const r0 = ({
9985
9985
  }, null, 8, ["aria-label"])) : q("", !0)
9986
9986
  ]),
9987
9987
  $.$slots["clear-icon"] && e.inputValue && $.clearable && !$.disabled && !$.readonly ? (p(), D("span", c0, [
9988
- ie($.$slots, "clear-icon", { clear: Y })
9988
+ ie($.$slots, "clear-icon", { clear: L })
9989
9989
  ])) : q("", !0),
9990
9990
  $.clearable && !$.$slots["clear-icon"] && e.inputValue && !$.disabled && !$.readonly ? (p(), D("button", {
9991
9991
  key: 3,
9992
9992
  "aria-label": (v = b(s)) == null ? void 0 : v.clearInput,
9993
9993
  class: "dp--clear-btn",
9994
9994
  type: "button",
9995
- onKeydown: de[4] || (de[4] = (E) => b(ct)(E, () => Y(E), !0, X)),
9996
- onClick: de[5] || (de[5] = Gt((E) => Y(E), ["prevent"]))
9995
+ onKeydown: de[4] || (de[4] = (E) => b(ct)(E, () => L(E), !0, X)),
9996
+ onClick: de[5] || (de[5] = Gt((E) => L(E), ["prevent"]))
9997
9997
  }, [
9998
9998
  Be(b(js), {
9999
9999
  class: "dp__input_icons",
@@ -10062,7 +10062,7 @@ const r0 = ({
10062
10062
  "text-input"
10063
10063
  ],
10064
10064
  setup(e, { expose: n, emit: t }) {
10065
- const a = t, r = e, o = pn(), s = F(!1), l = jn(r, "modelValue"), i = jn(r, "timezone"), c = F(null), u = F(null), d = F(null), m = F(!1), f = F(null), k = F(!1), _ = F(!1), A = F(!1), g = F(!1), { setMenuFocused: w, setShiftKey: x } = rl(), { clearArrowNav: L } = nn(), { validateDate: J, isValidTime: V } = an(r), {
10065
+ const a = t, r = e, o = pn(), s = F(!1), l = jn(r, "modelValue"), i = jn(r, "timezone"), c = F(null), u = F(null), d = F(null), m = F(!1), f = F(null), k = F(!1), _ = F(!1), M = F(!1), g = F(!1), { setMenuFocused: w, setShiftKey: x } = rl(), { clearArrowNav: Y } = nn(), { validateDate: J, isValidTime: V } = an(r), {
10066
10066
  defaultedTransitions: T,
10067
10067
  defaultedTextInput: O,
10068
10068
  defaultedInline: P,
@@ -10084,7 +10084,7 @@ const r0 = ({
10084
10084
  }
10085
10085
  window == null || window.removeEventListener("keyup", Me), window == null || window.removeEventListener("keydown", N);
10086
10086
  });
10087
- const Y = bt(o, "all", r.presetDates), C = bt(o, "input");
10087
+ const L = bt(o, "all", r.presetDates), C = bt(o, "input");
10088
10088
  Ie(
10089
10089
  [l, i],
10090
10090
  () => {
@@ -10106,7 +10106,7 @@ const r0 = ({
10106
10106
  internalModelValue: v,
10107
10107
  parseExternalModelValue: E,
10108
10108
  emitModelValue: te,
10109
- formatInputValue: M,
10109
+ formatInputValue: A,
10110
10110
  checkBeforeEmit: ue
10111
10111
  } = nf(a, r, m), _e = K(
10112
10112
  () => ({
@@ -10114,7 +10114,7 @@ const r0 = ({
10114
10114
  dp__theme_dark: r.dark,
10115
10115
  dp__theme_light: !r.dark,
10116
10116
  dp__flex_display: P.value.enabled,
10117
- "dp--flex-display-collapsed": A.value,
10117
+ "dp--flex-display-collapsed": M.value,
10118
10118
  dp__flex_display_with_input: P.value.input
10119
10119
  })
10120
10120
  ), Ge = K(() => r.dark ? "dp__theme_dark" : "dp__theme_light"), H = K(() => r.teleport ? {
@@ -10129,7 +10129,7 @@ const r0 = ({
10129
10129
  var j;
10130
10130
  s.value && $();
10131
10131
  const oe = (j = u.value) == null ? void 0 : j.$el.getBoundingClientRect().width;
10132
- A.value = document.body.offsetWidth <= oe;
10132
+ M.value = document.body.offsetWidth <= oe;
10133
10133
  }, Me = (j) => {
10134
10134
  j.key === "Tab" && !P.value.enabled && !r.teleport && I.value.tabOutClosesMenu && (f.value.contains(document.activeElement) || gt()), _.value = j.shiftKey;
10135
10135
  }, N = (j) => {
@@ -10153,7 +10153,7 @@ const r0 = ({
10153
10153
  }, Rn = () => {
10154
10154
  O.value.enabled || (v.value = null);
10155
10155
  }, gt = () => {
10156
- P.value.enabled || (s.value && (s.value = !1, X.value = !1, w(!1), x(!1), L(), a("closed"), B.value && E(l.value)), Rn(), a("blur"));
10156
+ P.value.enabled || (s.value && (s.value = !1, X.value = !1, w(!1), x(!1), Y(), a("closed"), B.value && E(l.value)), Rn(), a("blur"));
10157
10157
  }, Nn = (j, oe, me = !1) => {
10158
10158
  if (!j) {
10159
10159
  v.value = null;
@@ -10168,7 +10168,7 @@ const r0 = ({
10168
10168
  }, oa = () => s.value ? gt() : ne(), Na = (j) => {
10169
10169
  v.value = j;
10170
10170
  }, Ba = () => {
10171
- O.value.enabled && (m.value = !0, M()), a("focus");
10171
+ O.value.enabled && (m.value = !0, A()), a("focus");
10172
10172
  }, Ya = () => {
10173
10173
  if (O.value.enabled && (m.value = !1, E(r.modelValue), k.value)) {
10174
10174
  const j = Sm(f.value, _.value);
@@ -10195,7 +10195,7 @@ const r0 = ({
10195
10195
  clearValue: ve,
10196
10196
  openMenu: ne,
10197
10197
  onScroll: re,
10198
- formatInputValue: M,
10198
+ formatInputValue: A,
10199
10199
  // exposed for testing purposes
10200
10200
  updateInternalModelValue: Na,
10201
10201
  // modify internal modelValue
@@ -10261,7 +10261,7 @@ const r0 = ({
10261
10261
  class: { [Ge.value]: !0, "dp--menu-wrapper": j.teleport },
10262
10262
  "open-on-top": b(z),
10263
10263
  "no-overlay-focus": y.value,
10264
- collapse: A.value,
10264
+ collapse: M.value,
10265
10265
  "get-input-rect": Q,
10266
10266
  "is-text-input-date": g.value,
10267
10267
  onClosePicker: gt,
@@ -10285,7 +10285,7 @@ const r0 = ({
10285
10285
  onInvalidDate: oe[17] || (oe[17] = (me) => j.$emit("invalid-date", me)),
10286
10286
  onOverlayToggle: oe[18] || (oe[18] = (me) => j.$emit("overlay-toggle", me))
10287
10287
  }), it({ _: 2 }, [
10288
- Ce(b(Y), (me, ut) => ({
10288
+ Ce(b(L), (me, ut) => ({
10289
10289
  name: me,
10290
10290
  fn: ye((Mt) => [
10291
10291
  ie(j.$slots, me, tt(ht({ ...Mt })))
@@ -10543,8 +10543,8 @@ const Y0 = () => {
10543
10543
  }
10544
10544
  F(null);
10545
10545
  function c(m) {
10546
- const f = m.getFullYear(), k = String(m.getMonth() + 1).padStart(2, "0"), _ = String(m.getDate()).padStart(2, "0"), A = String(m.getHours()).padStart(2, "0"), g = String(m.getMinutes()).padStart(2, "0");
10547
- return `${f}-${k}-${_} ${A}:${g}`;
10546
+ const f = m.getFullYear(), k = String(m.getMonth() + 1).padStart(2, "0"), _ = String(m.getDate()).padStart(2, "0"), M = String(m.getHours()).padStart(2, "0"), g = String(m.getMinutes()).padStart(2, "0");
10547
+ return `${f}-${k}-${_} ${M}:${g}`;
10548
10548
  }
10549
10549
  function u(m, f) {
10550
10550
  const k = new Date(m);
@@ -10653,7 +10653,7 @@ const Y0 = () => {
10653
10653
  ]),
10654
10654
  h("div", W0, [
10655
10655
  (p(!0), D(ke, null, Ce(m.globalStore.messageStore.currentChat.contact.segmentation_fields, (_) => (p(), D("div", {
10656
- onClick: (A) => i(_),
10656
+ onClick: (M) => i(_),
10657
10657
  key: _,
10658
10658
  class: "custom-field bg-primary"
10659
10659
  }, we(_.name), 9, j0))), 128))
@@ -10847,7 +10847,7 @@ const Y0 = () => {
10847
10847
  return new Intl.DateTimeFormat("pt-BR", P).format(O);
10848
10848
  } else
10849
10849
  return console.error("Data inválida fornecida ao formatador:", O), "";
10850
- }, A = (O) => {
10850
+ }, M = (O) => {
10851
10851
  const P = {
10852
10852
  scheduled_messages: "Mensagens Programadas",
10853
10853
  // Adicione outros mapeamentos conforme necessário
@@ -10866,7 +10866,7 @@ const Y0 = () => {
10866
10866
  })).data, Z = I.results.map((ce) => ({
10867
10867
  ...ce,
10868
10868
  // Inclui todas as propriedades do evento original
10869
- title: A(ce.function),
10869
+ title: M(ce.function),
10870
10870
  // Substitui ou adiciona o título
10871
10871
  date: ce.params.schedule.time.split(" ")[0],
10872
10872
  // Extrai e substitui a data
@@ -10889,9 +10889,9 @@ const Y0 = () => {
10889
10889
  );
10890
10890
  return I.getTime() === Z.getTime();
10891
10891
  }), x = (O, P) => {
10892
- const I = [], Z = new Date(O, P, 1), ce = new Date(O, P + 1, 0), pe = Z.getDay(), Y = new Date(O, P, 0).getDate();
10892
+ const I = [], Z = new Date(O, P, 1), ce = new Date(O, P + 1, 0), pe = Z.getDay(), L = new Date(O, P, 0).getDate();
10893
10893
  for (let z = pe - 1; z >= 0; z--) {
10894
- const le = new Date(O, P - 1, Y - z);
10894
+ const le = new Date(O, P - 1, L - z);
10895
10895
  I.push({
10896
10896
  date: le,
10897
10897
  events: w(le),
@@ -10919,8 +10919,8 @@ const Y0 = () => {
10919
10919
  });
10920
10920
  }
10921
10921
  return I;
10922
- }, L = F([]), J = () => {
10923
- L.value = x(u.value, c.value);
10922
+ }, Y = F([]), J = () => {
10923
+ Y.value = x(u.value, c.value);
10924
10924
  };
10925
10925
  Ye(async () => {
10926
10926
  await g(), J();
@@ -11001,7 +11001,7 @@ const Y0 = () => {
11001
11001
  key: ce,
11002
11002
  class: "day-name shadow shadow-black/90 dark:shadow-gray-400 bg-base-200 border border-base-100"
11003
11003
  }, we(Z), 1))), 128)),
11004
- (p(!0), D(ke, null, Ce(L.value, (Z, ce) => (p(), D("div", {
11004
+ (p(!0), D(ke, null, Ce(Y.value, (Z, ce) => (p(), D("div", {
11005
11005
  key: ce,
11006
11006
  class: he([{
11007
11007
  // 'rounded-br': index === daysInMonth.length - 1,
@@ -11550,7 +11550,7 @@ const lv = /* @__PURE__ */ vl(tv, [["render", sv], ["__scopeId", "data-v-d3e3763
11550
11550
  }
11551
11551
  return Ie(u, k), Ye(async () => {
11552
11552
  m.parentEl = await Jh(d), k();
11553
- }), Kn(() => a == null ? void 0 : a.disconnect()), (_, A) => (p(), D("div", {
11553
+ }), Kn(() => a == null ? void 0 : a.disconnect()), (_, M) => (p(), D("div", {
11554
11554
  ref_key: "infiniteLoading",
11555
11555
  ref: o,
11556
11556
  class: "v3-infinite-loading"
@@ -11578,7 +11578,7 @@ const lv = /* @__PURE__ */ vl(tv, [["render", sv], ["__scopeId", "data-v-d3e3763
11578
11578
  h("span", null, we(((g = _.slots) == null ? void 0 : g.error) || "Oops something went wrong!"), 1),
11579
11579
  h("button", {
11580
11580
  class: "retry",
11581
- onClick: A[0] || (A[0] = //@ts-ignore
11581
+ onClick: M[0] || (M[0] = //@ts-ignore
11582
11582
  (...w) => m.emit && m.emit(...w))
11583
11583
  }, "retry")
11584
11584
  ])
@@ -12762,15 +12762,15 @@ function u1(e, n, t) {
12762
12762
  }
12763
12763
  const d1 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, c1 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, m1 = /^'([^]*?)'?$/, f1 = /''/g, h1 = /[a-zA-Z]/;
12764
12764
  function Fo(e, n, t) {
12765
- var u, d, m, f, k, _, A, g;
12766
- const a = Ea(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? Gv, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((f = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (k = t == null ? void 0 : t.locale) == null ? void 0 : k.options) == null ? void 0 : _.weekStartsOn) ?? a.weekStartsOn ?? ((g = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : g.weekStartsOn) ?? 0, l = At(e, t == null ? void 0 : t.in);
12765
+ var u, d, m, f, k, _, M, g;
12766
+ const a = Ea(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? Gv, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((f = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (k = t == null ? void 0 : t.locale) == null ? void 0 : k.options) == null ? void 0 : _.weekStartsOn) ?? a.weekStartsOn ?? ((g = (M = a.locale) == null ? void 0 : M.options) == null ? void 0 : g.weekStartsOn) ?? 0, l = At(e, t == null ? void 0 : t.in);
12767
12767
  if (!yv(l))
12768
12768
  throw new RangeError("Invalid time value");
12769
12769
  let i = n.match(c1).map((w) => {
12770
12770
  const x = w[0];
12771
12771
  if (x === "p" || x === "P") {
12772
- const L = n1[x];
12773
- return L(w, r.formatLong);
12772
+ const Y = n1[x];
12773
+ return Y(w, r.formatLong);
12774
12774
  }
12775
12775
  return w;
12776
12776
  }).join("").match(d1).map((w) => {
@@ -12797,8 +12797,8 @@ function Fo(e, n, t) {
12797
12797
  if (!w.isToken) return w.value;
12798
12798
  const x = w.value;
12799
12799
  (!(t != null && t.useAdditionalWeekYearTokens) && l1(x) || !(t != null && t.useAdditionalDayOfYearTokens) && s1(x)) && i1(x, n, String(e));
12800
- const L = No[x[0]];
12801
- return L(l, x, r.localize, c);
12800
+ const Y = No[x[0]];
12801
+ return Y(l, x, r.localize, c);
12802
12802
  }).join("");
12803
12803
  }
12804
12804
  function v1(e) {
@@ -13231,8 +13231,8 @@ const k1 = {
13231
13231
  }), l = K(
13232
13232
  () => n.hasNextPageForAtendente(n.selectedAtendente.id)
13233
13233
  ), i = (g) => {
13234
- const w = new Date(g), x = w.getHours(), L = w.getMinutes();
13235
- return `${x.toString().padStart(2, "0")}:${L.toString().padStart(2, "0")}`;
13234
+ const w = new Date(g), x = w.getHours(), Y = w.getMinutes();
13235
+ return `${x.toString().padStart(2, "0")}:${Y.toString().padStart(2, "0")}`;
13236
13236
  }, c = (g) => {
13237
13237
  const w = new Date(g);
13238
13238
  return g1(w) ? "Hoje" : b1(w) ? "Ontem" : y1(w) ? Fo(w, "EEEE", { locale: Io }) : Fo(w, "dd 'de' MMMM 'de' yyyy", { locale: Io });
@@ -13287,7 +13287,7 @@ const k1 = {
13287
13287
  return (g = s.value) == null ? void 0 : g.length;
13288
13288
  },
13289
13289
  (g, w) => {
13290
- s.value && A() && setTimeout(() => {
13290
+ s.value && M() && setTimeout(() => {
13291
13291
  a.value.scrollTo({
13292
13292
  top: a.value.scrollHeight,
13293
13293
  behavior: "instant"
@@ -13295,7 +13295,7 @@ const k1 = {
13295
13295
  }, 100);
13296
13296
  }
13297
13297
  );
13298
- function A() {
13298
+ function M() {
13299
13299
  const w = a.value.scrollTop + a.value.clientHeight;
13300
13300
  return a.value.scrollHeight - w <= 80;
13301
13301
  }
@@ -13363,8 +13363,8 @@ const k1 = {
13363
13363
  _: 1
13364
13364
  })) : q("", !0),
13365
13365
  h("div", null, [
13366
- (p(!0), D(ke, null, Ce(s.value, (x, L) => (p(), D("div", { key: L }, [
13367
- u(L) ? (p(), D("div", J1, [
13366
+ (p(!0), D(ke, null, Ce(s.value, (x, Y) => (p(), D("div", { key: Y }, [
13367
+ u(Y) ? (p(), D("div", J1, [
13368
13368
  w[5] || (w[5] = h("div", { class: "date-separator-line" }, null, -1)),
13369
13369
  h("div", ep, we(c(x.created_at)), 1),
13370
13370
  w[6] || (w[6] = h("div", { class: "date-separator-line" }, null, -1))
@@ -13375,7 +13375,7 @@ const k1 = {
13375
13375
  {
13376
13376
  me: x.sender.id === e.attendant.id,
13377
13377
  "not-me": x.sender.id !== e.attendant.id,
13378
- "new-message": L === s.value.length - 1
13378
+ "new-message": Y === s.value.length - 1
13379
13379
  }
13380
13380
  ])
13381
13381
  }, [
@@ -13501,13 +13501,13 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13501
13501
  return T ? T.internal_chat.unread : 0;
13502
13502
  }
13503
13503
  return 0;
13504
- }), A = (T) => {
13505
- k.value && !k.value.contains(T.target) && d.value && L();
13504
+ }), M = (T) => {
13505
+ k.value && !k.value.contains(T.target) && d.value && Y();
13506
13506
  };
13507
13507
  Ye(() => {
13508
- document.addEventListener("click", A);
13508
+ document.addEventListener("click", M);
13509
13509
  }), Bl(() => {
13510
- document.removeEventListener("click", A);
13510
+ document.removeEventListener("click", M);
13511
13511
  });
13512
13512
  const g = F(!1), w = F(!1), x = K(() => w.value ? {
13513
13513
  position: "absolute",
@@ -13524,14 +13524,14 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13524
13524
  width: "42px",
13525
13525
  height: "42px",
13526
13526
  transition: "none"
13527
- }), L = () => {
13527
+ }), Y = () => {
13528
13528
  d.value ? (w.value = !0, setTimeout(() => {
13529
13529
  d.value = !1, w.value = !1;
13530
13530
  }, 200)) : (d.value = !0, g.value = !0, setTimeout(() => {
13531
13531
  g.value = !1;
13532
13532
  }, 200));
13533
13533
  }, J = () => {
13534
- d.value || L();
13534
+ d.value || Y();
13535
13535
  }, V = async (T) => {
13536
13536
  f.value = T, c(T.id), T.hasNextPage || await r(T.id);
13537
13537
  };
@@ -13556,7 +13556,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13556
13556
  }, [
13557
13557
  d.value ? (p(), D("div", {
13558
13558
  key: 0,
13559
- onClick: Gt(L, ["stop"]),
13559
+ onClick: Gt(Y, ["stop"]),
13560
13560
  style: { width: "42px", height: "42px", "border-radius": "50%", "background-color": "#02a9db", display: "flex", "justify-content": "center" }
13561
13561
  }, O[1] || (O[1] = [
13562
13562
  h("span", {
@@ -13601,7 +13601,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13601
13601
  default: ye(() => [
13602
13602
  d.value && !w.value ? (p(), D("div", cp, [
13603
13603
  h("button", {
13604
- onClick: Gt(L, ["stop"]),
13604
+ onClick: Gt(Y, ["stop"]),
13605
13605
  class: "close-button"
13606
13606
  }, O[4] || (O[4] = [
13607
13607
  h("svg", {
@@ -13691,32 +13691,41 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13691
13691
  modal_filter: { type: String, default: null },
13692
13692
  multiSelect: { type: Boolean, default: !0 },
13693
13693
  permissions: { type: Boolean, default: !1 },
13694
- attDel: { type: Object, default: { id: null } },
13695
13694
  externalDepartments: { type: Array, default: null },
13696
- method: { type: String, default: null }
13697
- // Adicionado
13695
+ // Nova prop
13696
+ attDel: { type: Object, default: { id: null } }
13698
13697
  },
13699
13698
  emits: ["depart"],
13700
13699
  setup(e, { emit: n }) {
13701
13700
  const t = e, a = n, r = xl(), o = F(""), s = F([]), l = F(!1), i = F(!1), c = K(() => {
13702
- const A = t.externalDepartments || r.departments;
13703
- let g = o.value ? A.filter(
13704
- (w) => w.name.toLowerCase().includes(o.value.toLowerCase())
13705
- ) : A;
13706
- return u(g);
13701
+ const M = t.externalDepartments || r.departments;
13702
+ return o.value ? M.filter(
13703
+ (g) => g.name.toLowerCase().includes(o.value.toLowerCase())
13704
+ ) : M;
13707
13705
  });
13708
- function u(A) {
13709
- return t.method === "remove" ? t.department ? t.department.filter((g) => g.id !== t.attDel.id) : [] : (t.method === "transfer", A);
13710
- }
13711
13706
  Ye(() => {
13712
13707
  m(), d();
13713
13708
  }), Ie(
13714
13709
  () => t.modal_filter,
13715
13710
  () => {
13716
- !t.modal_filter && t.multiSelect && m();
13711
+ !t.modal_filter && t.multiSelect && (r.departments.forEach((M) => {
13712
+ M.selected = !1;
13713
+ }), s.value = []);
13714
+ },
13715
+ () => t.attDel,
13716
+ (M) => {
13717
+ M && u(M);
13717
13718
  },
13718
13719
  { immediate: !0 }
13719
13720
  );
13721
+ function u(M) {
13722
+ const g = t.externalDepartments || r.departments, w = g.findIndex((Y) => Y.id === M);
13723
+ w !== -1 && g.splice(w, 1);
13724
+ const x = s.value.findIndex(
13725
+ (Y) => Y.id === M
13726
+ );
13727
+ x !== -1 && (s.value.splice(x, 1), a("depart", s.value));
13728
+ }
13720
13729
  async function d() {
13721
13730
  i.value = !0, f(), i.value = !1;
13722
13731
  }
@@ -13726,24 +13735,24 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13726
13735
  }), s.value = [];
13727
13736
  }
13728
13737
  function f() {
13729
- const A = t.externalDepartments || r.departments;
13738
+ const M = t.externalDepartments || r.departments;
13730
13739
  t.department && t.department.length > 0 && t.department.forEach((g) => {
13731
- const w = A.find((x) => x.id === g.id);
13740
+ const w = M.find((x) => x.id === g.id);
13732
13741
  w && (w.selected = !0, s.value.some(
13733
- (L) => L.id === g.id
13742
+ (Y) => Y.id === g.id
13734
13743
  ) || s.value.push({ ...w }));
13735
13744
  }), a("depart", s.value);
13736
13745
  }
13737
- function k(A) {
13746
+ function k(M) {
13738
13747
  const g = s.value.findIndex(
13739
- (w) => w.id === A.id
13748
+ (w) => w.id === M.id
13740
13749
  );
13741
- g !== -1 ? (A.selected = !1, s.value.splice(g, 1)) : (t.multiSelect || m(), A.selected = !0, s.value.push(A)), a("depart", s.value);
13750
+ g !== -1 ? (M.selected = !1, s.value.splice(g, 1)) : (t.multiSelect || m(), M.selected = !0, s.value.push(M)), a("depart", s.value);
13742
13751
  }
13743
- function _(A, g) {
13744
- A.selected = !1, s.value.splice(g, 1), a("depart", s.value);
13752
+ function _(M, g) {
13753
+ M.selected = !1, s.value.splice(g, 1), a("depart", s.value);
13745
13754
  }
13746
- return (A, g) => (p(), D("div", hp, [
13755
+ return (M, g) => (p(), D("div", hp, [
13747
13756
  h("div", vp, [
13748
13757
  h("div", {
13749
13758
  class: he(["input-wrapper bg-base-300 border-b border-base-200", { expanded: l.value || s.value.length > 0 }]),
@@ -13773,7 +13782,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13773
13782
  }, [
13774
13783
  rt(we(w.name) + " ", 1),
13775
13784
  h("button", {
13776
- onClick: (L) => _(w, x),
13785
+ onClick: (Y) => _(w, x),
13777
13786
  class: "close-btn"
13778
13787
  }, g[3] || (g[3] = [
13779
13788
  h("svg", {
@@ -13833,7 +13842,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13833
13842
  ])
13834
13843
  ]));
13835
13844
  }
13836
- }, Ml = /* @__PURE__ */ yt(Cp, [["__scopeId", "data-v-62a3ff43"]]), Pp = { class: "depart-select-container" }, Sp = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Op = ["placeholder"], $p = { class: "icon-container" }, Ep = {
13845
+ }, Ml = /* @__PURE__ */ yt(Cp, [["__scopeId", "data-v-64c58b71"]]), Pp = { class: "depart-select-container" }, Sp = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Op = ["placeholder"], $p = { class: "icon-container" }, Ep = {
13837
13846
  key: 0,
13838
13847
  xmlns: "http://www.w3.org/2000/svg",
13839
13848
  fill: "none",
@@ -13876,22 +13885,22 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13876
13885
  emits: ["attend"],
13877
13886
  setup(e, { emit: n }) {
13878
13887
  const t = e, a = n, r = Hr(), o = F(""), s = F(!1), l = F([]), i = F(!1), c = K(() => {
13879
- const A = o.value ? r.attendants.filter(
13888
+ const M = o.value ? r.attendants.filter(
13880
13889
  (g) => g.name.toLowerCase().includes(o.value.toLowerCase())
13881
13890
  ) : r.attendants;
13882
- return d(u(A));
13891
+ return d(u(M));
13883
13892
  });
13884
- function u(A) {
13893
+ function u(M) {
13885
13894
  return t.method === "remove" ? t.attendance.filter(
13886
13895
  (g) => g.id !== t.attDel.id
13887
- ) : t.method === "transfer" ? A : t.method === "addParticipant" ? A.filter((g) => g.id !== t.attDel.id) : A;
13896
+ ) : t.method === "transfer" ? M : t.method === "addParticipant" ? M.filter((g) => g.id !== t.attDel.id) : M;
13888
13897
  }
13889
- function d(A) {
13890
- return t.department.length > 0 ? A.filter(
13898
+ function d(M) {
13899
+ return t.department.length > 0 ? M.filter(
13891
13900
  (g) => g.department.some(
13892
13901
  (w) => t.department.some((x) => x.id === w.id)
13893
13902
  )
13894
- ) : A;
13903
+ ) : M;
13895
13904
  }
13896
13905
  Ye(() => {
13897
13906
  m(), f();
@@ -13910,28 +13919,28 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13910
13919
  // Necessário para observar alterações profundas no array
13911
13920
  );
13912
13921
  function m() {
13913
- c.value.forEach((A) => {
13914
- A.selected = !1;
13922
+ c.value.forEach((M) => {
13923
+ M.selected = !1;
13915
13924
  }), l.value = [];
13916
13925
  }
13917
13926
  function f() {
13918
- t.method === "remove" && t.attendance || t.attendance && t.attendance.length > 0 && t.attendance.forEach((A) => {
13927
+ t.method === "remove" && t.attendance || t.attendance && t.attendance.length > 0 && t.attendance.forEach((M) => {
13919
13928
  const g = r.attendants.find(
13920
- (w) => w.id === A.id
13929
+ (w) => w.id === M.id
13921
13930
  );
13922
- g && !l.value.some((w) => w.id === A.id) && (g.selected = !0, l.value.push({ ...g }));
13931
+ g && !l.value.some((w) => w.id === M.id) && (g.selected = !0, l.value.push({ ...g }));
13923
13932
  }), a("attend", l.value);
13924
13933
  }
13925
- function k(A) {
13934
+ function k(M) {
13926
13935
  const g = l.value.findIndex(
13927
- (w) => w.id === A.id
13936
+ (w) => w.id === M.id
13928
13937
  );
13929
- g !== -1 ? (A.selected = !1, l.value.splice(g, 1)) : (t.multiSelect || m(), A.selected = !0, l.value.push(A)), a("attend", l.value);
13938
+ g !== -1 ? (M.selected = !1, l.value.splice(g, 1)) : (t.multiSelect || m(), M.selected = !0, l.value.push(M)), a("attend", l.value);
13930
13939
  }
13931
- function _(A, g) {
13932
- A.selected = !1, l.value.splice(g, 1), a("attend", l.value);
13940
+ function _(M, g) {
13941
+ M.selected = !1, l.value.splice(g, 1), a("attend", l.value);
13933
13942
  }
13934
- return (A, g) => (p(), D("div", Pp, [
13943
+ return (M, g) => (p(), D("div", Pp, [
13935
13944
  h("div", Sp, [
13936
13945
  h("div", {
13937
13946
  class: he(["input-wrapper bg-base-300 border-b border-base-200", { expanded: s.value || l.value.length > 0 }]),
@@ -13961,7 +13970,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13961
13970
  }, [
13962
13971
  rt(we(w.name) + " ", 1),
13963
13972
  h("button", {
13964
- onClick: (L) => _(w, x),
13973
+ onClick: (Y) => _(w, x),
13965
13974
  class: "close-btn"
13966
13975
  }, g[3] || (g[3] = [
13967
13976
  h("svg", {