sm-click-library-ui 0.0.235 → 0.0.236

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Ll = Object.defineProperty;
2
2
  var Il = (e, n, t) => n in e ? Ll(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var fe = (e, n, t) => Il(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { getCurrentScope as Go, onScopeDispose as Zo, unref as w, watch as Be, ref as Y, computed as G, openBlock as v, createElementBlock as M, createElementVNode as m, toDisplayString as ge, normalizeClass as me, renderSlot as ie, createCommentVNode as q, pushScopeId as it, popScopeId as ut, onMounted as Ye, resolveComponent as Ma, createBlock as Me, withCtx as ve, createTextVNode as rt, Fragment as _e, renderList as Pe, createVNode as Fe, reactive as Kn, defineComponent as nt, useSlots as yn, toRef as Un, nextTick as Ke, onUnmounted as Jn, mergeProps as et, isRef as to, createSlots as lt, normalizeProps as tt, guardReactiveProps as vt, resolveDynamicComponent as Da, Teleport as Bl, Transition as gn, normalizeStyle as bt, withModifiers as Kt, h as ql, render as no, useAttrs as Wl, onBeforeUpdate as Hl, withDirectives as mt, vShow as jn, withKeys as Ko, vModelText as nn, vModelSelect as Jo, toRefs as jl, onBeforeUnmount as zl } from "vue";
4
+ import { getCurrentScope as Go, onScopeDispose as Zo, unref as w, watch as Fe, ref as Y, computed as G, openBlock as v, createElementBlock as M, createElementVNode as m, toDisplayString as ge, normalizeClass as me, renderSlot as ie, createCommentVNode as q, pushScopeId as it, popScopeId as ut, onMounted as Le, resolveComponent as Ma, createBlock as Me, withCtx as ve, createTextVNode as rt, Fragment as _e, renderList as Pe, createVNode as Ye, reactive as Kn, defineComponent as nt, useSlots as yn, toRef as Un, nextTick as Ke, onUnmounted as Jn, mergeProps as et, isRef as to, createSlots as lt, normalizeProps as tt, guardReactiveProps as vt, resolveDynamicComponent as Da, Teleport as Bl, Transition as gn, normalizeStyle as bt, withModifiers as Kt, h as ql, render as no, useAttrs as Wl, onBeforeUpdate as Hl, withDirectives as mt, vShow as jn, withKeys as Ko, vModelText as nn, vModelSelect as Jo, toRefs as jl, onBeforeUnmount as zl } from "vue";
5
5
  import { defineStore as ea } from "pinia";
6
6
  function Vl(e) {
7
7
  return Go() ? (Zo(e), !0) : !1;
@@ -30,14 +30,14 @@ function Ga(...e) {
30
30
  Array.isArray(t) || (t = [t]), Array.isArray(a) || (a = [a]);
31
31
  const o = [], s = () => {
32
32
  o.forEach((u) => u()), o.length = 0;
33
- }, l = (u, d, f, p) => (u.addEventListener(d, f, p), () => u.removeEventListener(d, f, p)), i = Be(
33
+ }, l = (u, d, f, h) => (u.addEventListener(d, f, h), () => u.removeEventListener(d, f, h)), i = Fe(
34
34
  () => [Hn(n), es(r)],
35
35
  ([u, d]) => {
36
36
  if (s(), !u)
37
37
  return;
38
38
  const f = Ql(d) ? { ...d } : d;
39
39
  o.push(
40
- ...t.flatMap((p) => a.map((b) => l(u, p, b, f)))
40
+ ...t.flatMap((h) => a.map((b) => l(u, h, b, f)))
41
41
  );
42
42
  },
43
43
  { immediate: !0, flush: "post" }
@@ -53,17 +53,17 @@ function Zl(e, n, t = {}) {
53
53
  return pa;
54
54
  Xl && !ao && (ao = !0, Array.from(a.document.body.children).forEach((f) => f.addEventListener("click", pa)), a.document.documentElement.addEventListener("click", pa));
55
55
  let l = !0;
56
- const i = (f) => r.some((p) => {
57
- if (typeof p == "string")
58
- return Array.from(a.document.querySelectorAll(p)).some((b) => b === f.target || f.composedPath().includes(b));
56
+ const i = (f) => r.some((h) => {
57
+ if (typeof h == "string")
58
+ return Array.from(a.document.querySelectorAll(h)).some((b) => b === f.target || f.composedPath().includes(b));
59
59
  {
60
- const b = Hn(p);
60
+ const b = Hn(h);
61
61
  return b && (f.target === b || f.composedPath().includes(b));
62
62
  }
63
63
  }), u = [
64
64
  Ga(a, "click", (f) => {
65
- const p = Hn(e);
66
- if (!(!p || p === f.target || f.composedPath().includes(p))) {
65
+ const h = Hn(e);
66
+ if (!(!h || h === f.target || f.composedPath().includes(h))) {
67
67
  if (f.detail === 0 && (l = !i(f)), !l) {
68
68
  l = !0;
69
69
  return;
@@ -72,14 +72,14 @@ function Zl(e, n, t = {}) {
72
72
  }
73
73
  }, { passive: !0, capture: o }),
74
74
  Ga(a, "pointerdown", (f) => {
75
- const p = Hn(e);
76
- l = !i(f) && !!(p && !f.composedPath().includes(p));
75
+ const h = Hn(e);
76
+ l = !i(f) && !!(h && !f.composedPath().includes(h));
77
77
  }, { passive: !0 }),
78
78
  s && Ga(a, "blur", (f) => {
79
79
  setTimeout(() => {
80
- var p;
80
+ var h;
81
81
  const b = Hn(e);
82
- ((p = a.document.activeElement) == null ? void 0 : p.tagName) === "IFRAME" && !(b != null && b.contains(a.document.activeElement)) && n(f);
82
+ ((h = a.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(b != null && b.contains(a.document.activeElement)) && n(f);
83
83
  }, 0);
84
84
  })
85
85
  ].filter(Boolean);
@@ -660,7 +660,7 @@ function Ca(e, n, t) {
660
660
  convertValue: c,
661
661
  isVisitable: vr
662
662
  });
663
- function p(b, _) {
663
+ function h(b, _) {
664
664
  if (!V.isUndefined(b)) {
665
665
  if (d.indexOf(b) !== -1)
666
666
  throw Error("Circular reference detected in " + _.join("."));
@@ -671,13 +671,13 @@ function Ca(e, n, t) {
671
671
  V.isString(x) ? x.trim() : x,
672
672
  _,
673
673
  f
674
- )) === !0 && p(k, _ ? _.concat(x) : [x]);
674
+ )) === !0 && h(k, _ ? _.concat(x) : [x]);
675
675
  }), d.pop();
676
676
  }
677
677
  }
678
678
  if (!V.isObject(e))
679
679
  throw new TypeError("data must be an object");
680
- return p(e), n;
680
+ return h(e), n;
681
681
  }
682
682
  function lo(e) {
683
683
  const n = {
@@ -1147,8 +1147,8 @@ function Bu(e, n) {
1147
1147
  f += t[d++], d = d % e;
1148
1148
  if (r = (r + 1) % e, r === o && (o = (o + 1) % e), c - s < n)
1149
1149
  return;
1150
- const p = u && c - u;
1151
- return p ? Math.round(f * 1e3 / p) : void 0;
1150
+ const h = u && c - u;
1151
+ return h ? Math.round(f * 1e3 / h) : void 0;
1152
1152
  };
1153
1153
  }
1154
1154
  function qu(e, n) {
@@ -1347,13 +1347,13 @@ const Ms = (e) => {
1347
1347
  function d() {
1348
1348
  if (!u)
1349
1349
  return;
1350
- const p = yt.from(
1350
+ const h = yt.from(
1351
1351
  "getAllResponseHeaders" in u && u.getAllResponseHeaders()
1352
1352
  ), _ = {
1353
1353
  data: !l || l === "text" || l === "json" ? u.responseText : u.response,
1354
1354
  status: u.status,
1355
1355
  statusText: u.statusText,
1356
- headers: p,
1356
+ headers: h,
1357
1357
  config: e,
1358
1358
  request: u
1359
1359
  };
@@ -1380,8 +1380,8 @@ const Ms = (e) => {
1380
1380
  )), u = null;
1381
1381
  }, o === void 0 && s.setContentType(null), "setRequestHeader" in u && V.forEach(s.toJSON(), function(b, _) {
1382
1382
  u.setRequestHeader(_, b);
1383
- }), V.isUndefined(r.withCredentials) || (u.withCredentials = !!r.withCredentials), l && l !== "json" && (u.responseType = r.responseType), typeof r.onDownloadProgress == "function" && u.addEventListener("progress", ga(r.onDownloadProgress, !0)), typeof r.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", ga(r.onUploadProgress)), (r.cancelToken || r.signal) && (i = (p) => {
1384
- u && (a(!p || p.type ? new Rn(null, e, u) : p), u.abort(), u = null);
1383
+ }), V.isUndefined(r.withCredentials) || (u.withCredentials = !!r.withCredentials), l && l !== "json" && (u.responseType = r.responseType), typeof r.onDownloadProgress == "function" && u.addEventListener("progress", ga(r.onDownloadProgress, !0)), typeof r.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", ga(r.onUploadProgress)), (r.cancelToken || r.signal) && (i = (h) => {
1384
+ u && (a(!h || h.type ? new Rn(null, e, u) : h), u.abort(), u = null);
1385
1385
  }, r.cancelToken && r.cancelToken.subscribe(i), r.signal && (r.signal.aborted ? i() : r.signal.addEventListener("abort", i)));
1386
1386
  const f = Iu(r.url);
1387
1387
  if (f && Ct.protocols.indexOf(f) === -1) {
@@ -1506,10 +1506,10 @@ const Ku = async (e) => {
1506
1506
  fetchOptions: f
1507
1507
  } = Ms(e);
1508
1508
  c = c ? (c + "").toLowerCase() : "text";
1509
- let [p, b] = r || o || s ? Qu([r, o], s) : [], _, D;
1509
+ let [h, b] = r || o || s ? Qu([r, o], s) : [], _, D;
1510
1510
  const k = () => {
1511
1511
  !_ && setTimeout(() => {
1512
- p && p.unsubscribe();
1512
+ h && h.unsubscribe();
1513
1513
  }), _ = !0;
1514
1514
  };
1515
1515
  let x;
@@ -1527,7 +1527,7 @@ const Ku = async (e) => {
1527
1527
  }
1528
1528
  V.isString(d) || (d = d ? "cors" : "omit"), D = new Request(n, {
1529
1529
  ...f,
1530
- signal: p,
1530
+ signal: h,
1531
1531
  method: t.toUpperCase(),
1532
1532
  headers: u.normalize().toJSON(),
1533
1533
  body: a,
@@ -1755,18 +1755,18 @@ class fn {
1755
1755
  return u;
1756
1756
  }
1757
1757
  f = l.length;
1758
- let p = t;
1758
+ let h = t;
1759
1759
  for (d = 0; d < f; ) {
1760
1760
  const b = l[d++], _ = l[d++];
1761
1761
  try {
1762
- p = b(p);
1762
+ h = b(h);
1763
1763
  } catch (D) {
1764
1764
  _.call(this, D);
1765
1765
  break;
1766
1766
  }
1767
1767
  }
1768
1768
  try {
1769
- u = vo.call(this, p);
1769
+ u = vo.call(this, h);
1770
1770
  } catch (b) {
1771
1771
  return Promise.reject(b);
1772
1772
  }
@@ -2198,15 +2198,15 @@ const od = "v1/api/attendances/attendant/", sd = "v1/api/attendances/department/
2198
2198
  function c(u) {
2199
2199
  r.value = u, l("function", u);
2200
2200
  }
2201
- return Be(
2201
+ return Fe(
2202
2202
  () => s.modelValue,
2203
2203
  (u) => {
2204
2204
  r.value = u;
2205
2205
  },
2206
2206
  { immediate: !0 }
2207
- ), Be(r, (u) => {
2207
+ ), Fe(r, (u) => {
2208
2208
  l("update:modelValue", u);
2209
- }), Ye(async () => {
2209
+ }), Le(async () => {
2210
2210
  if (r.value) {
2211
2211
  const u = i.value.find((d) => d.id === r.value.id);
2212
2212
  u && (r.value.status = u.status);
@@ -2219,7 +2219,7 @@ const od = "v1/api/attendances/attendant/", sd = "v1/api/attendances/department/
2219
2219
  }, [
2220
2220
  m("div", ud, [
2221
2221
  m("p", {
2222
- onClick: d[0] || (d[0] = (p) => a.value = !a.value),
2222
+ onClick: d[0] || (d[0] = (h) => a.value = !a.value),
2223
2223
  class: "w-full p-3 px-4 select-none"
2224
2224
  }, [
2225
2225
  o.value ? (v(), M("div", Td, [
@@ -2260,10 +2260,10 @@ const od = "v1/api/attendances/attendant/", sd = "v1/api/attendances/department/
2260
2260
  ]),
2261
2261
  m("footer", Sd, [
2262
2262
  m("button", {
2263
- onClick: d[1] || (d[1] = (p) => (r.value = null, a.value = !1))
2263
+ onClick: d[1] || (d[1] = (h) => (r.value = null, a.value = !1))
2264
2264
  }, $d),
2265
2265
  m("button", {
2266
- onClick: d[2] || (d[2] = (p) => a.value = !a.value)
2266
+ onClick: d[2] || (d[2] = (h) => a.value = !a.value)
2267
2267
  }, [
2268
2268
  (v(), M("svg", {
2269
2269
  class: me([{ "rotate-180": a.value }, "w-4 h-4 ease-out transition"]),
@@ -2280,61 +2280,61 @@ const od = "v1/api/attendances/attendant/", sd = "v1/api/attendances/department/
2280
2280
  ], 2),
2281
2281
  a.value ? (v(), M("nav", Nd, [
2282
2282
  m("ul", Ed, [
2283
- i.value.length > 0 ? (v(!0), M(_e, { key: 0 }, Pe(i.value, (p, b) => (v(), M("li", Fd, [
2283
+ i.value.length > 0 ? (v(!0), M(_e, { key: 0 }, Pe(i.value, (h, b) => (v(), M("li", Fd, [
2284
2284
  m("button", {
2285
- class: me([r.value && r.value.id === p.id ? "bg-base-100" : "bg-base-200 hover:bg-base-100", "flex rounded-md justify-between items-center p-2 px-1 w-full"]),
2286
- onClick: (_) => (r.value = p, a.value = !1, c(p)),
2287
- disabled: r.value && r.value.id === p.id || e.type && p.type !== e.type || e.webhooks !== void 0 && e.webhooks !== p.webhooks
2285
+ class: me([r.value && r.value.id === h.id ? "bg-base-100" : "bg-base-200 hover:bg-base-100", "flex rounded-md justify-between items-center p-2 px-1 w-full"]),
2286
+ onClick: (_) => (r.value = h, a.value = !1, c(h)),
2287
+ disabled: r.value && r.value.id === h.id || e.type && h.type !== e.type || e.webhooks !== void 0 && e.webhooks !== h.webhooks
2288
2288
  }, [
2289
2289
  m("div", Ld, [
2290
- p.type === "whatsapp-qrcode" ? (v(), M("svg", Id, qd)) : p.type === "whatsapp-api-official" ? (v(), M("div", Wd, [
2290
+ h.type === "whatsapp-qrcode" ? (v(), M("svg", Id, qd)) : h.type === "whatsapp-api-official" ? (v(), M("div", Wd, [
2291
2291
  Hd,
2292
2292
  (v(), M("svg", jd, Vd))
2293
2293
  ])) : q("", !0),
2294
- Fe(f, {
2294
+ Ye(f, {
2295
2295
  class: "dark:popper-light popper-dark",
2296
2296
  hover: !0,
2297
2297
  placement: "top"
2298
2298
  }, {
2299
2299
  content: ve(() => [
2300
- m("span", null, ge(e.type && p.type !== e.type ? "Não é possível utilizar esse tipo de Instância neste recurso" : e.webhooks === !0 ? "Essa instância está com o Atendimento desabilitado" : "Essa aplicação é somente para instâncias sem atendimento habilitado."), 1)
2300
+ m("span", null, ge(e.type && h.type !== e.type ? "Não é possível utilizar esse tipo de Instância neste recurso" : e.webhooks === !0 ? "Essa instância está com o Atendimento desabilitado" : "Essa aplicação é somente para instâncias sem atendimento habilitado."), 1)
2301
2301
  ]),
2302
2302
  default: ve(() => [
2303
- e.type && p.type !== e.type || e.webhooks !== void 0 && e.webhooks !== p.webhooks ? (v(), M("svg", Ud, Xd)) : q("", !0)
2303
+ e.type && h.type !== e.type || e.webhooks !== void 0 && e.webhooks !== h.webhooks ? (v(), M("svg", Ud, Xd)) : q("", !0)
2304
2304
  ]),
2305
2305
  _: 2
2306
2306
  }, 1024),
2307
- m("p", Gd, ge(p.name), 1),
2308
- Fe(f, {
2307
+ m("p", Gd, ge(h.name), 1),
2308
+ Ye(f, {
2309
2309
  class: "dark:popper-light popper-dark",
2310
2310
  hover: !0,
2311
2311
  placement: "top"
2312
2312
  }, {
2313
2313
  content: ve(() => [
2314
2314
  m("main", {
2315
- class: me(["p-1 rounded px-3", { "bg-red-500": p.status === !1, "bg-green-500": p.status === !0, "bg-purple-500": p.status === "Offline" }])
2315
+ class: me(["p-1 rounded px-3", { "bg-red-500": h.status === !1, "bg-green-500": h.status === !0, "bg-purple-500": h.status === "Offline" }])
2316
2316
  }, [
2317
- m("div", Zd, ge(p.status === !0 ? "Conectada" : p.status === !1 ? "Desconectada" : "Indefinida"), 1)
2317
+ m("div", Zd, ge(h.status === !0 ? "Conectada" : h.status === !1 ? "Desconectada" : "Indefinida"), 1)
2318
2318
  ], 2)
2319
2319
  ]),
2320
2320
  default: ve(() => [
2321
- p.isLoading ? (v(), M("div", Kd, ec)) : (v(), M("div", {
2321
+ h.isLoading ? (v(), M("div", Kd, ec)) : (v(), M("div", {
2322
2322
  key: 0,
2323
- class: me([{ "bg-red-500": p.status === !1, "bg-green-500": p.status === !0, "bg-purple-500": p.status === "Offline" }, "text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])
2323
+ class: me([{ "bg-red-500": h.status === !1, "bg-green-500": h.status === !0, "bg-purple-500": h.status === "Offline" }, "text-xs w-5 h-5 py-1 shadow flex justify-start shadow-gray-900 dark:shadow-gray-400 rounded-full cursor-pointer transition-all duration-200 ease-in-out"])
2324
2324
  }, null, 2))
2325
2325
  ]),
2326
2326
  _: 2
2327
2327
  }, 1024)
2328
2328
  ]),
2329
2329
  m("div", tc, [
2330
- p.telephone ? (v(), Me(f, {
2330
+ h.telephone ? (v(), Me(f, {
2331
2331
  key: 0,
2332
2332
  class: "dark:popper-light popper-dark",
2333
2333
  hover: !0,
2334
2334
  placement: "top"
2335
2335
  }, {
2336
2336
  content: ve(() => [
2337
- m("div", null, ge(p.telephone ? `${p.telephone}` : ""), 1)
2337
+ m("div", null, ge(h.telephone ? `${h.telephone}` : ""), 1)
2338
2338
  ]),
2339
2339
  default: ve(() => [
2340
2340
  nc
@@ -2961,8 +2961,8 @@ function Er(e) {
2961
2961
  return Math.round(t / Rs) + 1;
2962
2962
  }
2963
2963
  function Fr(e, n) {
2964
- var u, d, f, p;
2965
- const t = ye(e), a = t.getFullYear(), r = wn(), o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = $e(e, 0);
2964
+ var u, d, f, h;
2965
+ const t = ye(e), a = t.getFullYear(), r = wn(), o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = $e(e, 0);
2966
2966
  s.setFullYear(a + 1, 0, o), s.setHours(0, 0, 0, 0);
2967
2967
  const l = Ot(s, n), i = $e(e, 0);
2968
2968
  i.setFullYear(a, 0, o), i.setHours(0, 0, 0, 0);
@@ -3609,8 +3609,8 @@ function ef(e, n, t) {
3609
3609
  }
3610
3610
  const tf = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, nf = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, af = /^'([^]*?)'?$/, rf = /''/g, of = /[a-zA-Z]/;
3611
3611
  function qt(e, n, t) {
3612
- var u, d, f, p, b, _, D, k;
3613
- const a = wn(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? qs, 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 ?? ((p = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (b = t == null ? void 0 : t.locale) == null ? void 0 : b.options) == null ? void 0 : _.weekStartsOn) ?? a.weekStartsOn ?? ((k = (D = a.locale) == null ? void 0 : D.options) == null ? void 0 : k.weekStartsOn) ?? 0, l = ye(e);
3612
+ var u, d, f, h, b, _, D, k;
3613
+ const a = wn(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? qs, 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 ?? ((h = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (b = t == null ? void 0 : t.locale) == null ? void 0 : b.options) == null ? void 0 : _.weekStartsOn) ?? a.weekStartsOn ?? ((k = (D = a.locale) == null ? void 0 : D.options) == null ? void 0 : k.weekStartsOn) ?? 0, l = ye(e);
3614
3614
  if (!zn(l))
3615
3615
  throw new RangeError("Invalid time value");
3616
3616
  let i = n.match(nf).map((x) => {
@@ -4481,8 +4481,8 @@ class Of extends Oe {
4481
4481
  }
4482
4482
  }
4483
4483
  function Ir(e, n, t) {
4484
- var d, f, p, b;
4485
- const a = wn(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? a.weekStartsOn ?? ((b = (p = a.locale) == null ? void 0 : p.options) == null ? void 0 : b.weekStartsOn) ?? 0, o = ye(e), s = o.getDay(), i = (n % 7 + 7) % 7, c = 7 - r, u = n < 0 || n > 6 ? n - (s + c) % 7 : (i + c) % 7 - (s + c) % 7;
4484
+ var d, f, h, b;
4485
+ const a = wn(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? a.weekStartsOn ?? ((b = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : b.weekStartsOn) ?? 0, o = ye(e), s = o.getDay(), i = (n % 7 + 7) % 7, c = 7 - r, u = n < 0 || n > 6 ? n - (s + c) % 7 : (i + c) % 7 - (s + c) % 7;
4486
4486
  return Pt(o, u);
4487
4487
  }
4488
4488
  class Rf extends Oe {
@@ -5216,17 +5216,17 @@ function Ar(e, n, t, a) {
5216
5216
  const f = c.map((T) => T.priority).sort((T, N) => N - T).filter((T, N, E) => E.indexOf(T) === N).map(
5217
5217
  (T) => c.filter((N) => N.priority === T).sort((N, E) => E.subPriority - N.subPriority)
5218
5218
  ).map((T) => T[0]);
5219
- let p = ye(t);
5220
- if (isNaN(p.getTime()))
5219
+ let h = ye(t);
5220
+ if (isNaN(h.getTime()))
5221
5221
  return $e(t, NaN);
5222
5222
  const b = {};
5223
5223
  for (const T of f) {
5224
- if (!T.validate(p, i))
5224
+ if (!T.validate(h, i))
5225
5225
  return $e(t, NaN);
5226
- const N = T.set(p, b, i);
5227
- Array.isArray(N) ? (p = N[0], Object.assign(b, N[1])) : p = N;
5226
+ const N = T.set(h, b, i);
5227
+ Array.isArray(N) ? (h = N[0], Object.assign(b, N[1])) : h = N;
5228
5228
  }
5229
- return $e(t, p);
5229
+ return $e(t, h);
5230
5230
  }
5231
5231
  function om(e) {
5232
5232
  return e.match(tm)[1].replace(nm, "'");
@@ -5280,8 +5280,8 @@ function um(e, n) {
5280
5280
  hours: s = 0,
5281
5281
  minutes: l = 0,
5282
5282
  seconds: i = 0
5283
- } = n, c = Sn(e, a + t * 12), u = sm(c, o + r * 7), d = l + s * 60, p = (i + d * 60) * 1e3;
5284
- return $e(e, u.getTime() - p);
5283
+ } = n, c = Sn(e, a + t * 12), u = sm(c, o + r * 7), d = l + s * 60, h = (i + d * 60) * 1e3;
5284
+ return $e(e, u.getTime() - h);
5285
5285
  }
5286
5286
  function Ks(e, n) {
5287
5287
  return Nr(e, -n);
@@ -5464,7 +5464,7 @@ const gt = (e, n) => n ? new Date(e.toLocaleString("en-US", { timeZone: n })) :
5464
5464
  };
5465
5465
  var Tt = /* @__PURE__ */ ((e) => (e.month = "month", e.year = "year", e))(Tt || {}), un = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(un || {}), mn = /* @__PURE__ */ ((e) => (e.header = "header", e.calendar = "calendar", e.timePicker = "timePicker", e))(mn || {}), st = /* @__PURE__ */ ((e) => (e.month = "month", e.year = "year", e.calendar = "calendar", e.time = "time", e.minutes = "minutes", e.hours = "hours", e.seconds = "seconds", e))(st || {});
5466
5466
  const fm = ["timestamp", "date", "iso"];
5467
- var ct = /* @__PURE__ */ ((e) => (e.up = "up", e.down = "down", e.left = "left", e.right = "right", e))(ct || {}), Ie = /* @__PURE__ */ ((e) => (e.arrowUp = "ArrowUp", e.arrowDown = "ArrowDown", e.arrowLeft = "ArrowLeft", e.arrowRight = "ArrowRight", e.enter = "Enter", e.space = " ", e.esc = "Escape", e.tab = "Tab", e.home = "Home", e.end = "End", e.pageUp = "PageUp", e.pageDown = "PageDown", e))(Ie || {});
5467
+ var ct = /* @__PURE__ */ ((e) => (e.up = "up", e.down = "down", e.left = "left", e.right = "right", e))(ct || {}), Be = /* @__PURE__ */ ((e) => (e.arrowUp = "ArrowUp", e.arrowDown = "ArrowDown", e.arrowLeft = "ArrowLeft", e.arrowRight = "ArrowRight", e.enter = "Enter", e.space = " ", e.esc = "Escape", e.tab = "Tab", e.home = "Home", e.end = "End", e.pageUp = "PageUp", e.pageDown = "PageDown", e))(Be || {});
5468
5468
  function To(e) {
5469
5469
  return (n) => new Intl.DateTimeFormat(e, { weekday: "short", timeZone: "UTC" }).format(/* @__PURE__ */ new Date(`2017-01-0${n}T00:00:00+00:00`)).slice(0, 2);
5470
5470
  }
@@ -5571,7 +5571,7 @@ function wm(e, n) {
5571
5571
  return t[a + (n ? -1 : 1)];
5572
5572
  }
5573
5573
  const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n}"]`), al = (e, n) => new Intl.NumberFormat(n, { useGrouping: !1, style: "decimal" }).format(e), Qr = (e) => qt(e, "dd-MM-yyyy"), ar = (e) => Array.isArray(e), ka = (e, n) => n.get(Qr(e)), bm = (e, n) => e ? n ? n instanceof Map ? !!ka(e, n) : n(J(e)) : !1 : !0, ft = (e, n, t = !1, a) => {
5574
- if (e.key === Ie.enter || e.key === Ie.space)
5574
+ if (e.key === Be.enter || e.key === Be.space)
5575
5575
  return t && e.preventDefault(), n();
5576
5576
  if (a) return a(e);
5577
5577
  }, Co = () => ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].some(
@@ -5707,7 +5707,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5707
5707
  setMenuFocused: e,
5708
5708
  setShiftKey: n
5709
5709
  };
5710
- }, Le = Kn({
5710
+ }, Ie = Kn({
5711
5711
  monthYear: [],
5712
5712
  calendar: [],
5713
5713
  time: [],
@@ -5719,12 +5719,12 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5719
5719
  },
5720
5720
  monthPicker: []
5721
5721
  }), ir = Y(null), ma = Y(!1), ur = Y(!1), dr = Y(!1), cr = Y(!1), ot = Y(0), Ve = Y(0), rn = () => {
5722
- const e = G(() => ma.value ? [...Le.selectionGrid, Le.actionRow].filter((d) => d.length) : ur.value ? [
5723
- ...Le.timePicker[0],
5724
- ...Le.timePicker[1],
5722
+ const e = G(() => ma.value ? [...Ie.selectionGrid, Ie.actionRow].filter((d) => d.length) : ur.value ? [
5723
+ ...Ie.timePicker[0],
5724
+ ...Ie.timePicker[1],
5725
5725
  cr.value ? [] : [ir.value],
5726
- Le.actionRow
5727
- ].filter((d) => d.length) : dr.value ? [...Le.monthPicker, Le.actionRow] : [Le.monthYear, ...Le.calendar, Le.time, Le.actionRow].filter((d) => d.length)), n = (d) => {
5726
+ Ie.actionRow
5727
+ ].filter((d) => d.length) : dr.value ? [...Ie.monthPicker, Ie.actionRow] : [Ie.monthYear, ...Ie.calendar, Ie.time, Ie.actionRow].filter((d) => d.length)), n = (d) => {
5728
5728
  ot.value = d ? ot.value + 1 : ot.value - 1;
5729
5729
  let f = null;
5730
5730
  e.value[Ve.value] && (f = e.value[Ve.value][ot.value]), !f && e.value[Ve.value + (d ? 1 : -1)] ? (Ve.value = Ve.value + (d ? 1 : -1), ot.value = d ? 0 : e.value[Ve.value].length - 1) : f || (ot.value = d ? ot.value - 1 : ot.value + 1);
@@ -5742,9 +5742,9 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5742
5742
  }, l = () => {
5743
5743
  t(!0), a(!0);
5744
5744
  }, i = (d, f) => {
5745
- Le[f] = d;
5745
+ Ie[f] = d;
5746
5746
  }, c = (d, f) => {
5747
- Le[f] = d;
5747
+ Ie[f] = d;
5748
5748
  }, u = () => {
5749
5749
  ot.value = 0, Ve.value = 0;
5750
5750
  };
@@ -5755,25 +5755,25 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5755
5755
  ir.value = d;
5756
5756
  },
5757
5757
  setSelectionGrid: (d) => {
5758
- ma.value = d, u(), d || (Le.selectionGrid = []);
5758
+ ma.value = d, u(), d || (Ie.selectionGrid = []);
5759
5759
  },
5760
5760
  setTimePicker: (d, f = !1) => {
5761
- ur.value = d, cr.value = f, u(), d || (Le.timePicker[0] = [], Le.timePicker[1] = []);
5761
+ ur.value = d, cr.value = f, u(), d || (Ie.timePicker[0] = [], Ie.timePicker[1] = []);
5762
5762
  },
5763
5763
  setTimePickerElements: (d, f = 0) => {
5764
- Le.timePicker[f] = d;
5764
+ Ie.timePicker[f] = d;
5765
5765
  },
5766
5766
  arrowRight: r,
5767
5767
  arrowLeft: o,
5768
5768
  arrowUp: s,
5769
5769
  arrowDown: l,
5770
5770
  clearArrowNav: () => {
5771
- Le.monthYear = [], Le.calendar = [], Le.time = [], Le.actionRow = [], Le.selectionGrid = [], Le.timePicker[0] = [], Le.timePicker[1] = [], ma.value = !1, ur.value = !1, cr.value = !1, dr.value = !1, u(), ir.value = null;
5771
+ Ie.monthYear = [], Ie.calendar = [], Ie.time = [], Ie.actionRow = [], Ie.selectionGrid = [], Ie.timePicker[0] = [], Ie.timePicker[1] = [], ma.value = !1, ur.value = !1, cr.value = !1, dr.value = !1, u(), ir.value = null;
5772
5772
  },
5773
5773
  setMonthPicker: (d) => {
5774
5774
  dr.value = d, u();
5775
5775
  },
5776
- refSets: Le
5776
+ refSets: Ie
5777
5777
  // exposed for testing
5778
5778
  };
5779
5779
  }, Ro = (e) => ({
@@ -5931,7 +5931,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5931
5931
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? n() : e.weekPicker ? `${((H = D.value) == null ? void 0 : H.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${n()}` : "MM/dd/yyyy";
5932
5932
  }, a = (H) => ll(H, e.enableSeconds), r = () => B.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 = G(() => Sm(e.multiCalendars)), s = G(() => r()), l = G(() => Pm(e.ariaLabels)), i = G(() => Rm(e.filters)), c = G(() => $m(e.transitions)), u = G(() => Nm(e.actionRow)), d = G(
5933
5933
  () => Cm(e.previewFormat, e.format, t())
5934
- ), f = G(() => Om(e.textInput)), p = G(() => Em(e.inline)), b = G(() => Fm(e.config)), _ = G(() => Ym(e.highlight)), D = G(() => Lm(e.weekNumbers)), k = G(() => Bm(e.timezone)), x = G(() => Hm(e.multiDates)), g = G(
5934
+ ), f = G(() => Om(e.textInput)), h = G(() => Em(e.inline)), b = G(() => Fm(e.config)), _ = G(() => Ym(e.highlight)), D = G(() => Lm(e.weekNumbers)), k = G(() => Bm(e.timezone)), x = G(() => Hm(e.multiDates)), g = G(
5935
5935
  () => Wm({
5936
5936
  minDate: e.minDate,
5937
5937
  maxDate: e.maxDate,
@@ -5952,7 +5952,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5952
5952
  defaultedActionRow: u,
5953
5953
  defaultedPreviewFormat: d,
5954
5954
  defaultedTextInput: f,
5955
- defaultedInline: p,
5955
+ defaultedInline: h,
5956
5956
  defaultedConfig: b,
5957
5957
  defaultedHighlight: _,
5958
5958
  defaultedWeekNumbers: D,
@@ -5966,18 +5966,18 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5966
5966
  };
5967
5967
  }, zm = (e, n, t) => {
5968
5968
  const a = Y(), { defaultedTextInput: r, defaultedRange: o, defaultedTz: s, defaultedMultiDates: l, getDefaultPattern: i } = qe(n), c = Y(""), u = Un(n, "format"), d = Un(n, "formatLocale");
5969
- Be(
5969
+ Fe(
5970
5970
  a,
5971
5971
  () => {
5972
5972
  typeof n.onInternalModelChange == "function" && e("internal-model-change", a.value, X(!0));
5973
5973
  },
5974
5974
  { deep: !0 }
5975
- ), Be(o, (A, ue) => {
5975
+ ), Fe(o, (A, ue) => {
5976
5976
  A.enabled !== ue.enabled && (a.value = null);
5977
- }), Be(u, () => {
5977
+ }), Fe(u, () => {
5978
5978
  se();
5979
5979
  });
5980
- const f = (A) => s.value.timezone && s.value.convertModel ? gt(A, s.value.timezone) : A, p = (A) => {
5980
+ const f = (A) => s.value.timezone && s.value.convertModel ? gt(A, s.value.timezone) : A, h = (A) => {
5981
5981
  if (s.value.timezone && s.value.convertModel) {
5982
5982
  const ue = cm(s.value.timezone);
5983
5983
  return ic(A, ue);
@@ -6067,7 +6067,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6067
6067
  ) : f(
6068
6068
  Ar(A, n.modelType, /* @__PURE__ */ new Date(), { locale: d.value })
6069
6069
  ) : f(new Date(A));
6070
- }, le = (A) => A ? n.utc ? km(A, n.utc === "preserve", n.enableSeconds) : n.modelType ? n.modelType === "timestamp" ? +p(A) : n.modelType === "iso" ? p(A).toISOString() : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? b(p(A)) : b(p(A), n.modelType, !0) : p(A) : "", be = (A, ue = !1, ke = !1) => {
6070
+ }, le = (A) => A ? n.utc ? km(A, n.utc === "preserve", n.enableSeconds) : n.modelType ? n.modelType === "timestamp" ? +h(A) : n.modelType === "iso" ? h(A).toISOString() : n.modelType === "format" && (typeof n.format == "string" || !n.format) ? b(h(A)) : b(h(A), n.modelType, !0) : h(A) : "", be = (A, ue = !1, ke = !1) => {
6071
6071
  if (ke) return A;
6072
6072
  if (e("update:model-value", A), s.value.emitTimezone && ue) {
6073
6073
  const Ge = Array.isArray(A) ? A.map((W) => gt(Je(W), s.value.emitTimezone)) : gt(Je(A), s.value.emitTimezone);
@@ -6082,10 +6082,10 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6082
6082
  return [A.map((ke) => J(ke)), ue.map((ke) => J(ke))];
6083
6083
  }
6084
6084
  return Wt(a.value, n.weekStart).map((A) => J(A));
6085
- }, h = (A, ue) => be(Je(P(A)), !1, ue), F = (A) => {
6085
+ }, p = (A, ue) => be(Je(P(A)), !1, ue), F = (A) => {
6086
6086
  const ue = S();
6087
6087
  return A ? ue : e("update:model-value", S());
6088
- }, X = (A = !1) => (A || se(), n.monthPicker ? h(D, A) : n.timePicker ? h(_, A) : n.yearPicker ? h(xe, A) : n.weekPicker ? F(A) : be(de(A), !0, A));
6088
+ }, X = (A = !1) => (A || se(), n.monthPicker ? p(D, A) : n.timePicker ? p(_, A) : n.yearPicker ? p(xe, A) : n.weekPicker ? F(A) : be(de(A), !0, A));
6089
6089
  return {
6090
6090
  inputValue: c,
6091
6091
  internalModelValue: a,
@@ -6103,10 +6103,10 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6103
6103
  return t.value.years.includes(xe(f)) ? (f = d ? Nr(u, 1) : Ks(u, 1), s(f, d)) : f;
6104
6104
  }, l = (u, d = !1) => {
6105
6105
  const f = Ee(J(), { month: e.month, year: e.year });
6106
- let p = u ? $t(f, 1) : Sn(f, 1);
6107
- e.disableYearSelect && (p = Bt(p, e.year));
6108
- let b = Se(p), _ = xe(p);
6109
- t.value.months.includes(b) && (p = o(p, u), b = Se(p), _ = xe(p)), t.value.years.includes(_) && (p = s(p, u), _ = xe(p)), r(b, _, u, e.preventMinMaxNavigation) && i(b, _, d);
6106
+ let h = u ? $t(f, 1) : Sn(f, 1);
6107
+ e.disableYearSelect && (h = Bt(h, e.year));
6108
+ let b = Se(h), _ = xe(h);
6109
+ t.value.months.includes(b) && (h = o(h, u), b = Se(h), _ = xe(h)), t.value.years.includes(_) && (h = s(h, u), _ = xe(h)), r(b, _, u, e.preventMinMaxNavigation) && i(b, _, d);
6110
6110
  }, i = (u, d, f) => {
6111
6111
  n("update-month-year", { month: u, year: d, fromNav: f });
6112
6112
  }, c = G(() => (u) => il(
@@ -6269,9 +6269,9 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6269
6269
  defaultedInline: i,
6270
6270
  defaultedRange: c,
6271
6271
  defaultedMultiDates: u
6272
- } = qe(a), { isTimeValid: d, isMonthValid: f } = on(a), { buildMatrix: p } = rn(), b = Y(null), _ = Y(null), D = Y(!1), k = Y({}), x = Y(null), g = Y(null);
6273
- Ye(() => {
6274
- a.arrowNavigation && p([Ze(b), Ze(_)], "actionRow"), B(), window.addEventListener("resize", B);
6272
+ } = qe(a), { isTimeValid: d, isMonthValid: f } = on(a), { buildMatrix: h } = rn(), b = Y(null), _ = Y(null), D = Y(!1), k = Y({}), x = Y(null), g = Y(null);
6273
+ Le(() => {
6274
+ a.arrowNavigation && h([Ze(b), Ze(_)], "actionRow"), B(), window.addEventListener("resize", B);
6275
6275
  }), Jn(() => {
6276
6276
  window.removeEventListener("resize", B);
6277
6277
  });
@@ -6394,10 +6394,10 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6394
6394
  setup(e, { expose: n, emit: t }) {
6395
6395
  const { setSelectionGrid: a, buildMultiLevelMatrix: r, setMonthPicker: o } = rn(), s = t, l = e, { defaultedAriaLabels: i, defaultedTextInput: c, defaultedConfig: u } = qe(
6396
6396
  l
6397
- ), { hideNavigationButtons: d } = Fa(), f = Y(!1), p = Y(null), b = Y(null), _ = Y([]), D = Y(), k = Y(null), x = Y(0), g = Y(null);
6397
+ ), { hideNavigationButtons: d } = Fa(), f = Y(!1), h = Y(null), b = Y(null), _ = Y([]), D = Y(), k = Y(null), x = Y(0), g = Y(null);
6398
6398
  Hl(() => {
6399
- p.value = null;
6400
- }), Ye(() => {
6399
+ h.value = null;
6400
+ }), Le(() => {
6401
6401
  Ke().then(() => K()), l.noOverlayFocus || ae(), B(!0);
6402
6402
  }), Jn(() => B(!1));
6403
6403
  const B = (P) => {
@@ -6406,7 +6406,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6406
6406
  }, ae = () => {
6407
6407
  var P;
6408
6408
  const S = Ze(b);
6409
- S && (c.value.enabled || (p.value ? (P = p.value) == null || P.focus({ preventScroll: !0 }) : S.focus({ preventScroll: !0 })), f.value = S.clientHeight < S.scrollHeight);
6409
+ S && (c.value.enabled || (h.value ? (P = h.value) == null || P.focus({ preventScroll: !0 }) : S.focus({ preventScroll: !0 })), f.value = S.clientHeight < S.scrollHeight);
6410
6410
  }, H = G(
6411
6411
  () => ({
6412
6412
  dp__overlay: !0,
@@ -6433,15 +6433,15 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6433
6433
  dp__container_block: ((S = l.items) == null ? void 0 : S.length) > 6
6434
6434
  };
6435
6435
  });
6436
- Be(
6436
+ Fe(
6437
6437
  () => l.items,
6438
6438
  () => K(!1),
6439
6439
  { deep: !0 }
6440
6440
  );
6441
6441
  const K = (P = !0) => {
6442
6442
  Ke().then(() => {
6443
- const S = Ze(p), h = Ze(b), F = Ze(k), X = Ze(g), A = F ? F.getBoundingClientRect().height : 0;
6444
- h && (h.getBoundingClientRect().height ? x.value = h.getBoundingClientRect().height - A : x.value = u.value.modeHeight - A), S && X && P && (X.scrollTop = S.offsetTop - X.offsetTop - (x.value / 2 - S.getBoundingClientRect().height) - A);
6443
+ const S = Ze(h), p = Ze(b), F = Ze(k), X = Ze(g), A = F ? F.getBoundingClientRect().height : 0;
6444
+ p && (p.getBoundingClientRect().height ? x.value = p.getBoundingClientRect().height - A : x.value = u.value.modeHeight - A), S && X && P && (X.scrollTop = S.offsetTop - X.offsetTop - (x.value / 2 - S.getBoundingClientRect().height) - A);
6445
6445
  });
6446
6446
  }, de = (P) => {
6447
6447
  P.disabled || s("selected", P.value);
@@ -6449,12 +6449,12 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6449
6449
  s("toggle"), s("reset-flow");
6450
6450
  }, $ = () => {
6451
6451
  l.escClose && pe();
6452
- }, L = (P, S, h, F) => {
6453
- P && ((S.active || S.value === l.focusValue) && (p.value = P), l.arrowNavigation && (Array.isArray(_.value[h]) ? _.value[h][F] = P : _.value[h] = [P], C()));
6452
+ }, L = (P, S, p, F) => {
6453
+ P && ((S.active || S.value === l.focusValue) && (h.value = P), l.arrowNavigation && (Array.isArray(_.value[p]) ? _.value[p][F] = P : _.value[p] = [P], C()));
6454
6454
  }, C = () => {
6455
6455
  var P, S;
6456
- const h = (P = l.headerRefs) != null && P.length ? [l.headerRefs].concat(_.value) : _.value.concat([l.skipButtonRef ? [] : [k.value]]);
6457
- r(Je(h), (S = l.headerRefs) != null && S.length ? "monthPicker" : "selectionGrid");
6456
+ const p = (P = l.headerRefs) != null && P.length ? [l.headerRefs].concat(_.value) : _.value.concat([l.skipButtonRef ? [] : [k.value]]);
6457
+ r(Je(p), (S = l.headerRefs) != null && S.length ? "monthPicker" : "selectionGrid");
6458
6458
  }, j = (P) => {
6459
6459
  l.arrowNavigation || en(P, u.value, !0);
6460
6460
  }, se = (P) => {
@@ -6469,25 +6469,25 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6469
6469
  }
6470
6470
  }, le = (P) => {
6471
6471
  switch (P.key) {
6472
- case Ie.esc:
6472
+ case Be.esc:
6473
6473
  return $();
6474
- case Ie.arrowLeft:
6474
+ case Be.arrowLeft:
6475
6475
  return j(P);
6476
- case Ie.arrowRight:
6476
+ case Be.arrowRight:
6477
6477
  return j(P);
6478
- case Ie.arrowUp:
6478
+ case Be.arrowUp:
6479
6479
  return j(P);
6480
- case Ie.arrowDown:
6480
+ case Be.arrowDown:
6481
6481
  return j(P);
6482
6482
  default:
6483
6483
  return;
6484
6484
  }
6485
6485
  }, be = (P) => {
6486
- if (P.key === Ie.enter) return pe();
6487
- if (P.key === Ie.tab) return Q();
6486
+ if (P.key === Be.enter) return pe();
6487
+ if (P.key === Be.tab) return Q();
6488
6488
  };
6489
6489
  return n({ focusGrid: ae }), (P, S) => {
6490
- var h;
6490
+ var p;
6491
6491
  return v(), M("div", {
6492
6492
  ref_key: "gridWrapRef",
6493
6493
  ref: b,
@@ -6548,7 +6548,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6548
6548
  ref_key: "toggleButton",
6549
6549
  ref: k,
6550
6550
  type: "button",
6551
- "aria-label": (h = w(i)) == null ? void 0 : h.toggleOverlay,
6551
+ "aria-label": (p = w(i)) == null ? void 0 : p.toggleOverlay,
6552
6552
  class: me(E.value),
6553
6553
  tabindex: "0",
6554
6554
  onClick: pe,
@@ -6606,7 +6606,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6606
6606
  emits: ["activate", "set-ref"],
6607
6607
  setup(e, { emit: n }) {
6608
6608
  const t = n, a = Y(null);
6609
- return Ye(() => t("set-ref", a)), (r, o) => (v(), M("button", {
6609
+ return Le(() => t("set-ref", a)), (r, o) => (v(), M("button", {
6610
6610
  ref_key: "elRef",
6611
6611
  ref: a,
6612
6612
  type: "button",
@@ -6637,10 +6637,10 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6637
6637
  },
6638
6638
  emits: ["toggle-year-picker", "year-select", "handle-year"],
6639
6639
  setup(e, { emit: n }) {
6640
- const t = n, a = e, { showRightIcon: r, showLeftIcon: o } = Fa(), { defaultedConfig: s, defaultedMultiCalendars: l, defaultedAriaLabels: i, defaultedTransitions: c, defaultedUI: u } = qe(a), { showTransition: d, transitionName: f } = ra(c), p = Y(!1), b = (k = !1, x) => {
6641
- p.value = !p.value, t("toggle-year-picker", { flow: k, show: x });
6640
+ const t = n, a = e, { showRightIcon: r, showLeftIcon: o } = Fa(), { defaultedConfig: s, defaultedMultiCalendars: l, defaultedAriaLabels: i, defaultedTransitions: c, defaultedUI: u } = qe(a), { showTransition: d, transitionName: f } = ra(c), h = Y(!1), b = (k = !1, x) => {
6641
+ h.value = !h.value, t("toggle-year-picker", { flow: k, show: x });
6642
6642
  }, _ = (k) => {
6643
- p.value = !1, t("year-select", k);
6643
+ h.value = !1, t("year-select", k);
6644
6644
  }, D = (k = !1) => {
6645
6645
  t("handle-year", k);
6646
6646
  };
@@ -6648,7 +6648,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6648
6648
  var g, B, ae, H, T;
6649
6649
  return v(), M(_e, null, [
6650
6650
  m("div", {
6651
- class: me(["dp--year-mode-picker", { "dp--hidden-el": p.value }])
6651
+ class: me(["dp--year-mode-picker", { "dp--hidden-el": h.value }])
6652
6652
  }, [
6653
6653
  w(o)(w(l), e.instance) ? (v(), Me(Vn, {
6654
6654
  key: 0,
@@ -6696,7 +6696,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6696
6696
  _: 3
6697
6697
  }, 8, ["aria-label", "disabled", "class"])) : q("", !0)
6698
6698
  ], 2),
6699
- Fe(gn, {
6699
+ Ye(gn, {
6700
6700
  name: w(f)(e.showYearPicker),
6701
6701
  css: w(d)
6702
6702
  }, {
@@ -6769,7 +6769,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6769
6769
  month: c,
6770
6770
  emit: u
6771
6771
  }) => {
6772
- const d = G(() => Vr(s.yearRange, s.locale, s.reverseYears)), f = Y([!1]), p = G(() => (I, K) => {
6772
+ const d = G(() => Vr(s.yearRange, s.locale, s.reverseYears)), f = Y([!1]), h = G(() => (I, K) => {
6773
6773
  const de = Ee(St(/* @__PURE__ */ new Date()), {
6774
6774
  month: c.value(I),
6775
6775
  year: i.value(I)
@@ -6809,9 +6809,9 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6809
6809
  }, B = () => {
6810
6810
  g(), e.value.count && _();
6811
6811
  };
6812
- Be(o, (I, K) => {
6812
+ Fe(o, (I, K) => {
6813
6813
  s.isTextInputDate && JSON.stringify(I ?? {}) !== JSON.stringify(K ?? {}) && B();
6814
- }), Ye(() => {
6814
+ }), Le(() => {
6815
6815
  B();
6816
6816
  });
6817
6817
  const ae = (I, K) => {
@@ -6827,7 +6827,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6827
6827
  })), T = (I, K) => {
6828
6828
  ae(I, K), E(K);
6829
6829
  }, N = (I, K = !1) => {
6830
- if (!p.value(I, K)) {
6830
+ if (!h.value(I, K)) {
6831
6831
  const de = K ? i.value(I) + 1 : i.value(I) - 1;
6832
6832
  ae(de, I);
6833
6833
  }
@@ -6835,7 +6835,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6835
6835
  K || u("reset-flow"), de !== void 0 ? f.value[I] = de : f.value[I] = !f.value[I], f.value[I] ? u("overlay-toggle", { open: !0, overlay: st.year }) : (u("overlay-closed"), u("overlay-toggle", { open: !1, overlay: st.year }));
6836
6836
  };
6837
6837
  return {
6838
- isDisabled: p,
6838
+ isDisabled: h,
6839
6839
  groupedYears: H,
6840
6840
  showYearPicker: f,
6841
6841
  selectYear: ae,
@@ -6857,7 +6857,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6857
6857
  defaultedMultiDates: d
6858
6858
  } = qe(e), f = () => {
6859
6859
  e.isTextInputDate && B(xe(J(e.startDate)), 0);
6860
- }, { modelValue: p, year: b, month: _, calendars: D } = oa(e, n, f), k = G(() => el(e.formatLocale, e.locale, e.monthNameFormat)), x = Y(null), { checkMinMaxRange: g } = on(e), {
6860
+ }, { modelValue: h, year: b, month: _, calendars: D } = oa(e, n, f), k = G(() => el(e.formatLocale, e.locale, e.monthNameFormat)), x = Y(null), { checkMinMaxRange: g } = on(e), {
6861
6861
  selectYear: B,
6862
6862
  groupedYears: ae,
6863
6863
  showYearPicker: H,
@@ -6866,7 +6866,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6866
6866
  handleYear: E,
6867
6867
  isDisabled: I
6868
6868
  } = vl({
6869
- modelValue: p,
6869
+ modelValue: h,
6870
6870
  multiCalendars: t,
6871
6871
  range: s,
6872
6872
  highlight: l,
@@ -6878,53 +6878,53 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6878
6878
  props: e,
6879
6879
  emit: n
6880
6880
  });
6881
- Ye(() => {
6882
- e.startDate && (p.value && e.focusStartDate || !p.value) && B(xe(J(e.startDate)), 0);
6881
+ Le(() => {
6882
+ e.startDate && (h.value && e.focusStartDate || !h.value) && B(xe(J(e.startDate)), 0);
6883
6883
  });
6884
- const K = (h) => h ? { month: Se(h), year: xe(h) } : { month: null, year: null }, de = () => p.value ? Array.isArray(p.value) ? p.value.map((h) => K(h)) : K(p.value) : K(), pe = (h, F) => {
6885
- const X = D.value[h], A = de();
6884
+ const K = (p) => p ? { month: Se(p), year: xe(p) } : { month: null, year: null }, de = () => h.value ? Array.isArray(h.value) ? h.value.map((p) => K(p)) : K(h.value) : K(), pe = (p, F) => {
6885
+ const X = D.value[p], A = de();
6886
6886
  return Array.isArray(A) ? A.some((ue) => ue.year === (X == null ? void 0 : X.year) && ue.month === F) : (X == null ? void 0 : X.year) === A.year && F === A.month;
6887
- }, $ = (h, F, X) => {
6887
+ }, $ = (p, F, X) => {
6888
6888
  var A, ue;
6889
6889
  const ke = de();
6890
- return Array.isArray(ke) ? b.value(F) === ((A = ke[X]) == null ? void 0 : A.year) && h === ((ue = ke[X]) == null ? void 0 : ue.month) : !1;
6891
- }, L = (h, F) => {
6890
+ return Array.isArray(ke) ? b.value(F) === ((A = ke[X]) == null ? void 0 : A.year) && p === ((ue = ke[X]) == null ? void 0 : ue.month) : !1;
6891
+ }, L = (p, F) => {
6892
6892
  if (s.value.enabled) {
6893
6893
  const X = de();
6894
- if (Array.isArray(p.value) && Array.isArray(X)) {
6895
- const A = $(h, F, 0) || $(h, F, 1), ue = Ht(St(J()), h, b.value(F));
6896
- return Oa(p.value, x.value, ue) && !A;
6894
+ if (Array.isArray(h.value) && Array.isArray(X)) {
6895
+ const A = $(p, F, 0) || $(p, F, 1), ue = Ht(St(J()), p, b.value(F));
6896
+ return Oa(h.value, x.value, ue) && !A;
6897
6897
  }
6898
6898
  return !1;
6899
6899
  }
6900
6900
  return !1;
6901
- }, C = G(() => (h) => Cn(k.value, (F) => {
6901
+ }, C = G(() => (p) => Cn(k.value, (F) => {
6902
6902
  var X;
6903
- const A = pe(h, F.value), ue = Zn(
6903
+ const A = pe(p, F.value), ue = Zn(
6904
6904
  F.value,
6905
- rl(b.value(h), i.value.minDate),
6906
- ol(b.value(h), i.value.maxDate)
6907
- ) || Tm(i.value.disabledDates, b.value(h)).includes(F.value) || ((X = u.value.months) == null ? void 0 : X.includes(F.value)), ke = L(F.value, h), Ge = dl(l.value, F.value, b.value(h));
6905
+ rl(b.value(p), i.value.minDate),
6906
+ ol(b.value(p), i.value.maxDate)
6907
+ ) || Tm(i.value.disabledDates, b.value(p)).includes(F.value) || ((X = u.value.months) == null ? void 0 : X.includes(F.value)), ke = L(F.value, p), Ge = dl(l.value, F.value, b.value(p));
6908
6908
  return { active: A, disabled: ue, isBetween: ke, highlighted: Ge };
6909
- })), j = (h, F) => Ht(St(J()), h, b.value(F)), se = (h, F) => {
6910
- const X = p.value ? p.value : St(/* @__PURE__ */ new Date());
6911
- p.value = Ht(X, h, b.value(F)), n("auto-apply"), n("update-flow-step");
6912
- }, Q = (h, F) => {
6913
- const X = j(h, F);
6914
- s.value.fixedEnd || s.value.fixedStart ? p.value = pl(X, p, n, s) : p.value ? g(X, p.value) && (p.value = Zr(p, j(h, F), n)) : p.value = [j(h, F)], Ke().then(() => {
6915
- Ea(p.value, n, e.autoApply, e.modelAuto);
6909
+ })), j = (p, F) => Ht(St(J()), p, b.value(F)), se = (p, F) => {
6910
+ const X = h.value ? h.value : St(/* @__PURE__ */ new Date());
6911
+ h.value = Ht(X, p, b.value(F)), n("auto-apply"), n("update-flow-step");
6912
+ }, Q = (p, F) => {
6913
+ const X = j(p, F);
6914
+ s.value.fixedEnd || s.value.fixedStart ? h.value = pl(X, h, n, s) : h.value ? g(X, h.value) && (h.value = Zr(h, j(p, F), n)) : h.value = [j(p, F)], Ke().then(() => {
6915
+ Ea(h.value, n, e.autoApply, e.modelAuto);
6916
6916
  });
6917
- }, le = (h, F) => {
6918
- Gr(j(h, F), p, d.value.limit), n("auto-apply", !0);
6919
- }, be = (h, F) => (D.value[F].month = h, S(F, D.value[F].year, h), d.value.enabled ? le(h, F) : s.value.enabled ? Q(h, F) : se(h, F)), P = (h, F) => {
6920
- B(h, F), S(F, h, null);
6921
- }, S = (h, F, X) => {
6917
+ }, le = (p, F) => {
6918
+ Gr(j(p, F), h, d.value.limit), n("auto-apply", !0);
6919
+ }, be = (p, F) => (D.value[F].month = p, S(F, D.value[F].year, p), d.value.enabled ? le(p, F) : s.value.enabled ? Q(p, F) : se(p, F)), P = (p, F) => {
6920
+ B(p, F), S(F, p, null);
6921
+ }, S = (p, F, X) => {
6922
6922
  let A = X;
6923
6923
  if (!A && A !== 0) {
6924
6924
  const ue = de();
6925
- A = Array.isArray(ue) ? ue[h].month : ue.month;
6925
+ A = Array.isArray(ue) ? ue[p].month : ue.month;
6926
6926
  }
6927
- n("update-month-year", { instance: h, year: F, month: A });
6927
+ n("update-month-year", { instance: p, year: F, month: A });
6928
6928
  };
6929
6929
  return {
6930
6930
  groupedMonths: C,
@@ -6936,17 +6936,17 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6936
6936
  defaultedTransitions: r,
6937
6937
  defaultedConfig: o,
6938
6938
  showYearPicker: H,
6939
- modelValue: p,
6940
- presetDate: (h, F) => {
6939
+ modelValue: h,
6940
+ presetDate: (p, F) => {
6941
6941
  hl({
6942
- value: h,
6943
- modelValue: p,
6942
+ value: p,
6943
+ modelValue: h,
6944
6944
  range: s.value.enabled,
6945
6945
  timezone: F ? void 0 : c.value.timezone
6946
6946
  }), n("auto-apply");
6947
6947
  },
6948
- setHoverDate: (h, F) => {
6949
- x.value = j(h, F);
6948
+ setHoverDate: (p, F) => {
6949
+ x.value = j(p, F);
6950
6950
  },
6951
6951
  selectMonth: be,
6952
6952
  selectYear: P,
@@ -6978,7 +6978,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6978
6978
  ],
6979
6979
  setup(e, { expose: n, emit: t }) {
6980
6980
  const a = t, r = yn(), o = _t(r, "yearMode"), s = e;
6981
- Ye(() => {
6981
+ Le(() => {
6982
6982
  s.shadow || a("mount", null);
6983
6983
  });
6984
6984
  const {
@@ -6988,7 +6988,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6988
6988
  isDisabled: u,
6989
6989
  defaultedMultiCalendars: d,
6990
6990
  defaultedConfig: f,
6991
- showYearPicker: p,
6991
+ showYearPicker: h,
6992
6992
  modelValue: b,
6993
6993
  presetDate: _,
6994
6994
  setHoverDate: D,
@@ -7038,10 +7038,10 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7038
7038
  onHoverValue: (I) => w(D)(I, E)
7039
7039
  }, lt({
7040
7040
  header: ve(() => [
7041
- Fe(ml, et(T.$props, {
7041
+ Ye(ml, et(T.$props, {
7042
7042
  items: w(i)(E),
7043
7043
  instance: E,
7044
- "show-year-picker": w(p)[E],
7044
+ "show-year-picker": w(h)[E],
7045
7045
  year: w(c)(E),
7046
7046
  "is-disabled": (I) => w(u)(E, I),
7047
7047
  onHandleYear: (I) => w(ae)(E, I),
@@ -7077,10 +7077,10 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7077
7077
  const t = () => {
7078
7078
  e.isTextInputDate && (u.value = xe(J(e.startDate)));
7079
7079
  }, { modelValue: a } = oa(e, n, t), r = Y(null), { defaultedHighlight: o, defaultedMultiDates: s, defaultedFilters: l, defaultedRange: i, propDates: c } = qe(e), u = Y();
7080
- Ye(() => {
7080
+ Le(() => {
7081
7081
  e.startDate && (a.value && e.focusStartDate || !a.value) && (u.value = xe(J(e.startDate)));
7082
7082
  });
7083
- const d = (_) => Array.isArray(a.value) ? a.value.some((D) => xe(D) === _) : a.value ? xe(a.value) === _ : !1, f = (_) => i.value.enabled && Array.isArray(a.value) ? Oa(a.value, r.value, b(_)) : !1, p = G(() => Cn(Vr(e.yearRange, e.locale, e.reverseYears), (_) => {
7083
+ const d = (_) => Array.isArray(a.value) ? a.value.some((D) => xe(D) === _) : a.value ? xe(a.value) === _ : !1, f = (_) => i.value.enabled && Array.isArray(a.value) ? Oa(a.value, r.value, b(_)) : !1, h = G(() => Cn(Vr(e.yearRange, e.locale, e.reverseYears), (_) => {
7084
7084
  const D = d(_.value), k = Zn(
7085
7085
  _.value,
7086
7086
  $n(c.value.minDate),
@@ -7089,7 +7089,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7089
7089
  return { active: D, disabled: k, isBetween: x, highlighted: g };
7090
7090
  })), b = (_) => Bt(St(Xn(/* @__PURE__ */ new Date())), _);
7091
7091
  return {
7092
- groupedYears: p,
7092
+ groupedYears: h,
7093
7093
  modelValue: a,
7094
7094
  focusYear: u,
7095
7095
  setHoverValue: (_) => {
@@ -7148,10 +7148,10 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7148
7148
  }, lt({ _: 2 }, [
7149
7149
  d.$slots["year-overlay-value"] ? {
7150
7150
  name: "item",
7151
- fn: ve(({ item: p }) => [
7151
+ fn: ve(({ item: h }) => [
7152
7152
  ie(d.$slots, "year-overlay-value", {
7153
- text: p.text,
7154
- value: p.value
7153
+ text: h.text,
7154
+ value: h.value
7155
7155
  })
7156
7156
  ]),
7157
7157
  key: "0"
@@ -7190,12 +7190,12 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7190
7190
  "am-pm-change"
7191
7191
  ],
7192
7192
  setup(e, { expose: n, emit: t }) {
7193
- const a = t, r = e, { setTimePickerElements: o, setTimePickerBackRef: s } = rn(), { defaultedAriaLabels: l, defaultedTransitions: i, defaultedFilters: c, defaultedConfig: u, defaultedRange: d } = qe(r), { transitionName: f, showTransition: p } = ra(i), b = Kn({
7193
+ const a = t, r = e, { setTimePickerElements: o, setTimePickerBackRef: s } = rn(), { defaultedAriaLabels: l, defaultedTransitions: i, defaultedFilters: c, defaultedConfig: u, defaultedRange: d } = qe(r), { transitionName: f, showTransition: h } = ra(i), b = Kn({
7194
7194
  hours: !1,
7195
7195
  minutes: !1,
7196
7196
  seconds: !1
7197
7197
  }), _ = Y("AM"), D = Y(null), k = Y([]), x = Y(), g = Y(!1);
7198
- Ye(() => {
7198
+ Le(() => {
7199
7199
  a("mounted");
7200
7200
  });
7201
7201
  const B = (y) => Ee(/* @__PURE__ */ new Date(), {
@@ -7253,7 +7253,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7253
7253
  )
7254
7254
  );
7255
7255
  return ne && U ? (Gn(Ae, U) || An(Ae, U)) && (Pn(Ae, ne) || An(Ae, ne)) : ne ? Pn(Ae, ne) || An(Ae, ne) : U ? Gn(Ae, U) || An(Ae, U) : !0;
7256
- }, S = (y) => r[`no${y[0].toUpperCase() + y.slice(1)}Overlay`], h = (y) => {
7256
+ }, S = (y) => r[`no${y[0].toUpperCase() + y.slice(1)}Overlay`], p = (y) => {
7257
7257
  S(y) || (b[y] = !b[y], b[y] ? (g.value = !0, a("overlay-opened", y)) : (g.value = !1, a("overlay-closed", y)));
7258
7258
  }, F = (y) => y === "hours" ? jt : y === "minutes" ? an : Tn, X = () => {
7259
7259
  x.value && clearTimeout(x.value);
@@ -7278,7 +7278,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7278
7278
  );
7279
7279
  s(r.closeTimePickerBtn), D.value && (U[1] = U[1].concat(D.value)), o(U, r.order);
7280
7280
  }
7281
- }, te = (y, Z) => (h(y), a(`update:${y}`, Z));
7281
+ }, te = (y, Z) => (p(y), a(`update:${y}`, Z));
7282
7282
  return n({ openChildCmp: Ge }), (y, Z) => {
7283
7283
  var ne;
7284
7284
  return y.disabled ? q("", !0) : (v(), M("div", s0, [
@@ -7339,8 +7339,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7339
7339
  disabled: S(U.type),
7340
7340
  tabindex: "0",
7341
7341
  "data-test": `${U.type}-toggle-overlay-btn-${r.order}`,
7342
- onKeydown: (Te) => w(ft)(Te, () => h(U.type), !0),
7343
- onClick: (Te) => h(U.type)
7342
+ onKeydown: (Te) => w(ft)(Te, () => p(U.type), !0),
7343
+ onClick: (Te) => p(U.type)
7344
7344
  }, [
7345
7345
  y.$slots[U.type] ? ie(y.$slots, U.type, {
7346
7346
  key: 0,
@@ -7406,7 +7406,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7406
7406
  (v(!0), M(_e, null, Pe(L.value, (U, Ae) => (v(), Me(gn, {
7407
7407
  key: Ae,
7408
7408
  name: w(f)(b[U.type]),
7409
- css: w(p)
7409
+ css: w(h)
7410
7410
  }, {
7411
7411
  default: ve(() => {
7412
7412
  var R, ee;
@@ -7423,7 +7423,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7423
7423
  "aria-labels": y.ariaLabels,
7424
7424
  "overlay-label": (ee = (R = w(l)).timeOverlay) == null ? void 0 : ee.call(R, U.type),
7425
7425
  onSelected: (he) => te(U.type, he),
7426
- onToggle: (he) => h(U.type),
7426
+ onToggle: (he) => p(U.type),
7427
7427
  onResetFlow: Z[1] || (Z[1] = (he) => y.$emit("reset-flow"))
7428
7428
  }, lt({
7429
7429
  "button-icon": ve(() => [
@@ -7446,7 +7446,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7446
7446
  name: "header",
7447
7447
  fn: ve(() => [
7448
7448
  ie(y.$slots, `${U.type}-overlay-header`, {
7449
- toggle: () => h(U.type)
7449
+ toggle: () => p(U.type)
7450
7450
  })
7451
7451
  ]),
7452
7452
  key: "1"
@@ -7486,8 +7486,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7486
7486
  "am-pm-change"
7487
7487
  ],
7488
7488
  setup(e, { expose: n, emit: t }) {
7489
- const a = t, r = e, { buildMatrix: o, setTimePicker: s } = rn(), l = yn(), { defaultedTransitions: i, defaultedAriaLabels: c, defaultedTextInput: u, defaultedConfig: d, defaultedRange: f } = qe(r), { transitionName: p, showTransition: b } = ra(i), { hideNavigationButtons: _ } = Fa(), D = Y(null), k = Y(null), x = Y([]), g = Y(null), B = Y(!1);
7490
- Ye(() => {
7489
+ const a = t, r = e, { buildMatrix: o, setTimePicker: s } = rn(), l = yn(), { defaultedTransitions: i, defaultedAriaLabels: c, defaultedTextInput: u, defaultedConfig: d, defaultedRange: f } = qe(r), { transitionName: h, showTransition: b } = ra(i), { hideNavigationButtons: _ } = Fa(), D = Y(null), k = Y(null), x = Y([]), g = Y(null), B = Y(!1);
7490
+ Le(() => {
7491
7491
  a("mount"), !r.timePicker && r.arrowNavigation ? o([Ze(D.value)], "time") : s(!0, r.timePicker);
7492
7492
  });
7493
7493
  const ae = G(() => f.value.enabled && r.modelAuto ? tl(r.internalModelValue) : !0), H = Y(!1), T = (Q) => ({
@@ -7546,8 +7546,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7546
7546
  ], 42, g0)), [
7547
7547
  [jn, !w(_)(Q.hideNavigation, "time")]
7548
7548
  ]) : q("", !0),
7549
- Fe(gn, {
7550
- name: w(p)(H.value),
7549
+ Ye(gn, {
7550
+ name: w(h)(H.value),
7551
7551
  css: w(b) && !Q.timePickerInline
7552
7552
  }, {
7553
7553
  default: ve(() => {
@@ -7586,15 +7586,15 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7586
7586
  key: 1,
7587
7587
  class: me(Q.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
7588
7588
  }, [
7589
- (v(!0), M(_e, null, Pe(N.value, (h, F) => mt((v(), Me(v0, et({
7589
+ (v(!0), M(_e, null, Pe(N.value, (p, F) => mt((v(), Me(v0, et({
7590
7590
  key: F,
7591
7591
  ref_for: !0
7592
7592
  }, {
7593
7593
  ...Q.$props,
7594
7594
  order: F,
7595
- hours: h.hours,
7596
- minutes: h.minutes,
7597
- seconds: h.seconds,
7595
+ hours: p.hours,
7596
+ minutes: p.minutes,
7597
+ seconds: p.seconds,
7598
7598
  closeTimePickerBtn: k.value,
7599
7599
  disabledTimesConfig: e.disabledTimesConfig,
7600
7600
  disabled: F === 0 ? w(f).fixedStart : w(f).fixedEnd
@@ -7629,8 +7629,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7629
7629
  class: me({ ...I.value, "dp--hidden-el": B.value }),
7630
7630
  "aria-label": (S = w(c)) == null ? void 0 : S.closeTimePicker,
7631
7631
  tabindex: "0",
7632
- onKeydown: le[3] || (le[3] = (h) => w(ft)(h, () => E(!1))),
7633
- onClick: le[4] || (le[4] = (h) => E(!1))
7632
+ onKeydown: le[3] || (le[3] = (p) => w(ft)(p, () => E(!1))),
7633
+ onClick: le[4] || (le[4] = (p) => E(!1))
7634
7634
  }, [
7635
7635
  Q.$slots["calendar-icon"] ? ie(Q.$slots, "calendar-icon", { key: 0 }) : q("", !0),
7636
7636
  Q.$slots["calendar-icon"] ? q("", !0) : (v(), Me(w(Nn), { key: 1 }))
@@ -7667,12 +7667,12 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7667
7667
  u(g, B) && (i(g, B), a && a());
7668
7668
  }, f = (g) => {
7669
7669
  d("hours", g);
7670
- }, p = (g) => {
7670
+ }, h = (g) => {
7671
7671
  d("minutes", g);
7672
7672
  }, b = (g) => {
7673
7673
  d("seconds", g);
7674
7674
  }, _ = (g, B, ae, H) => {
7675
- B && f(g), !B && !ae && p(g), ae && b(g), t.value && H(t.value);
7675
+ B && f(g), !B && !ae && h(g), ae && b(g), t.value && H(t.value);
7676
7676
  }, D = (g) => {
7677
7677
  if (g) {
7678
7678
  const B = Array.isArray(g), ae = B ? [+g[0].hours, +g[1].hours] : +g.hours, H = B ? [+g[0].minutes, +g[1].minutes] : +g.minutes, T = B ? [+g[0].seconds, +g[1].seconds] : +g.seconds;
@@ -7699,7 +7699,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7699
7699
  return {
7700
7700
  setTime: i,
7701
7701
  updateHours: f,
7702
- updateMinutes: p,
7702
+ updateMinutes: h,
7703
7703
  updateSeconds: b,
7704
7704
  getSetDateTime: l,
7705
7705
  updateTimeValues: _,
@@ -7711,7 +7711,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7711
7711
  }, _0 = (e, n) => {
7712
7712
  const t = () => {
7713
7713
  e.isTextInputDate && B();
7714
- }, { modelValue: a, time: r } = oa(e, n, t), { defaultedStartTime: o, defaultedRange: s, defaultedTz: l } = qe(e), { updateTimeValues: i, getSetDateTime: c, setTime: u, assignStartTime: d, disabledTimesConfig: f, validateTime: p } = gl(e, r, a, b);
7714
+ }, { modelValue: a, time: r } = oa(e, n, t), { defaultedStartTime: o, defaultedRange: s, defaultedTz: l } = qe(e), { updateTimeValues: i, getSetDateTime: c, setTime: u, assignStartTime: d, disabledTimesConfig: f, validateTime: h } = gl(e, r, a, b);
7715
7715
  function b() {
7716
7716
  n("update-flow-step");
7717
7717
  }
@@ -7747,7 +7747,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7747
7747
  [H.seconds, T.seconds]
7748
7748
  ) : g(H.hours, H.minutes, H.seconds);
7749
7749
  };
7750
- Ye(() => {
7750
+ Le(() => {
7751
7751
  if (!e.shadow)
7752
7752
  return d(o.value), a.value ? B() : k();
7753
7753
  });
@@ -7761,7 +7761,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7761
7761
  updateTime: (H, T = !0, N = !1) => {
7762
7762
  i(H, T, N, ae);
7763
7763
  },
7764
- validateTime: p
7764
+ validateTime: h
7765
7765
  };
7766
7766
  }, k0 = /* @__PURE__ */ nt({
7767
7767
  compatConfig: {
@@ -7782,42 +7782,42 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7782
7782
  ],
7783
7783
  setup(e, { expose: n, emit: t }) {
7784
7784
  const a = t, r = e, o = yn(), s = _t(o, "timePicker"), l = Y(null), { time: i, modelValue: c, disabledTimesConfig: u, updateTime: d, validateTime: f } = _0(r, a);
7785
- return Ye(() => {
7785
+ return Le(() => {
7786
7786
  r.shadow || a("mount", null);
7787
7787
  }), n({ getSidebarProps: () => ({
7788
7788
  modelValue: c,
7789
7789
  time: i,
7790
7790
  updateTime: d
7791
- }), toggleTimePicker: (p, b = !1, _ = "") => {
7791
+ }), toggleTimePicker: (h, b = !1, _ = "") => {
7792
7792
  var D;
7793
- (D = l.value) == null || D.toggleTimePicker(p, b, _);
7794
- } }), (p, b) => (v(), Me(Na, {
7793
+ (D = l.value) == null || D.toggleTimePicker(h, b, _);
7794
+ } }), (h, b) => (v(), Me(Na, {
7795
7795
  "multi-calendars": 0,
7796
7796
  stretch: ""
7797
7797
  }, {
7798
7798
  default: ve(() => [
7799
- Fe(yl, et({
7799
+ Ye(yl, et({
7800
7800
  ref_key: "tpRef",
7801
7801
  ref: l
7802
- }, p.$props, {
7802
+ }, h.$props, {
7803
7803
  hours: w(i).hours,
7804
7804
  minutes: w(i).minutes,
7805
7805
  seconds: w(i).seconds,
7806
- "internal-model-value": p.internalModelValue,
7806
+ "internal-model-value": h.internalModelValue,
7807
7807
  "disabled-times-config": w(u),
7808
7808
  "validate-time": w(f),
7809
7809
  "onUpdate:hours": b[0] || (b[0] = (_) => w(d)(_)),
7810
7810
  "onUpdate:minutes": b[1] || (b[1] = (_) => w(d)(_, !1)),
7811
7811
  "onUpdate:seconds": b[2] || (b[2] = (_) => w(d)(_, !1, !0)),
7812
- onAmPmChange: b[3] || (b[3] = (_) => p.$emit("am-pm-change", _)),
7813
- onResetFlow: b[4] || (b[4] = (_) => p.$emit("reset-flow")),
7814
- onOverlayClosed: b[5] || (b[5] = (_) => p.$emit("overlay-toggle", { open: !1, overlay: _ })),
7815
- onOverlayOpened: b[6] || (b[6] = (_) => p.$emit("overlay-toggle", { open: !0, overlay: _ }))
7812
+ onAmPmChange: b[3] || (b[3] = (_) => h.$emit("am-pm-change", _)),
7813
+ onResetFlow: b[4] || (b[4] = (_) => h.$emit("reset-flow")),
7814
+ onOverlayClosed: b[5] || (b[5] = (_) => h.$emit("overlay-toggle", { open: !1, overlay: _ })),
7815
+ onOverlayOpened: b[6] || (b[6] = (_) => h.$emit("overlay-toggle", { open: !0, overlay: _ }))
7816
7816
  }), lt({ _: 2 }, [
7817
7817
  Pe(w(s), (_, D) => ({
7818
7818
  name: _,
7819
7819
  fn: ve((k) => [
7820
- ie(p.$slots, _, tt(vt(k)))
7820
+ ie(h.$slots, _, tt(vt(k)))
7821
7821
  ])
7822
7822
  }))
7823
7823
  ]), 1040, ["hours", "minutes", "seconds", "internal-model-value", "disabled-times-config", "validate-time"])
@@ -7852,15 +7852,15 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7852
7852
  defaultedHighlight: u,
7853
7853
  propDates: d,
7854
7854
  defaultedUI: f
7855
- } = qe(r), { transitionName: p, showTransition: b } = ra(o), { buildMatrix: _ } = rn(), { handleMonthYearChange: D, isDisabled: k, updateMonthYear: x } = Vm(r, a), { showLeftIcon: g, showRightIcon: B } = Fa(), ae = Y(!1), H = Y(!1), T = Y(!1), N = Y([null, null, null, null]);
7856
- Ye(() => {
7855
+ } = qe(r), { transitionName: h, showTransition: b } = ra(o), { buildMatrix: _ } = rn(), { handleMonthYearChange: D, isDisabled: k, updateMonthYear: x } = Vm(r, a), { showLeftIcon: g, showRightIcon: B } = Fa(), ae = Y(!1), H = Y(!1), T = Y(!1), N = Y([null, null, null, null]);
7856
+ Le(() => {
7857
7857
  a("mount");
7858
7858
  });
7859
7859
  const E = (S) => ({
7860
7860
  get: () => r[S],
7861
- set: (h) => {
7861
+ set: (p) => {
7862
7862
  const F = S === Tt.month ? Tt.year : Tt.month;
7863
- a("update-month-year", { [S]: h, [F]: r[F] }), S === Tt.month ? j(!0) : se(!0);
7863
+ a("update-month-year", { [S]: p, [F]: r[F] }), S === Tt.month ? j(!0) : se(!0);
7864
7864
  }
7865
7865
  }), I = G(E(Tt.month)), K = G(E(Tt.year)), de = G(() => (S) => ({
7866
7866
  month: r.month,
@@ -7869,32 +7869,32 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7869
7869
  instance: r.instance,
7870
7870
  updateMonthYear: x,
7871
7871
  toggle: S === Tt.month ? j : se
7872
- })), pe = G(() => r.months.find((h) => h.value === r.month) || { text: "", value: 0 }), $ = G(() => Cn(r.months, (S) => {
7873
- const h = r.month === S.value, F = Zn(
7872
+ })), pe = G(() => r.months.find((p) => p.value === r.month) || { text: "", value: 0 }), $ = G(() => Cn(r.months, (S) => {
7873
+ const p = r.month === S.value, F = Zn(
7874
7874
  S.value,
7875
7875
  rl(r.year, d.value.minDate),
7876
7876
  ol(r.year, d.value.maxDate)
7877
7877
  ) || i.value.months.includes(S.value), X = dl(u.value, S.value, r.year);
7878
- return { active: h, disabled: F, highlighted: X };
7878
+ return { active: p, disabled: F, highlighted: X };
7879
7879
  })), L = G(() => Cn(r.years, (S) => {
7880
- const h = r.year === S.value, F = Zn(
7880
+ const p = r.year === S.value, F = Zn(
7881
7881
  S.value,
7882
7882
  $n(d.value.minDate),
7883
7883
  $n(d.value.maxDate)
7884
7884
  ) || i.value.years.includes(S.value), X = Xr(u.value, S.value);
7885
- return { active: h, disabled: F, highlighted: X };
7886
- })), C = (S, h, F) => {
7887
- F !== void 0 ? S.value = F : S.value = !S.value, S.value ? (T.value = !0, a("overlay-opened", h)) : (T.value = !1, a("overlay-closed", h));
7888
- }, j = (S = !1, h) => {
7889
- Q(S), C(ae, st.month, h);
7890
- }, se = (S = !1, h) => {
7891
- Q(S), C(H, st.year, h);
7885
+ return { active: p, disabled: F, highlighted: X };
7886
+ })), C = (S, p, F) => {
7887
+ F !== void 0 ? S.value = F : S.value = !S.value, S.value ? (T.value = !0, a("overlay-opened", p)) : (T.value = !1, a("overlay-closed", p));
7888
+ }, j = (S = !1, p) => {
7889
+ Q(S), C(ae, st.month, p);
7890
+ }, se = (S = !1, p) => {
7891
+ Q(S), C(H, st.year, p);
7892
7892
  }, Q = (S) => {
7893
7893
  S || a("reset-flow");
7894
- }, le = (S, h) => {
7895
- r.arrowNavigation && (N.value[h] = Ze(S), _(N.value, "monthYear"));
7894
+ }, le = (S, p) => {
7895
+ r.arrowNavigation && (N.value[p] = Ze(S), _(N.value, "monthYear"));
7896
7896
  }, be = G(() => {
7897
- var S, h, F, X, A, ue;
7897
+ var S, p, F, X, A, ue;
7898
7898
  return [
7899
7899
  {
7900
7900
  type: Tt.month,
@@ -7906,7 +7906,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7906
7906
  showSelectionGrid: ae.value,
7907
7907
  items: $.value,
7908
7908
  ariaLabel: (S = s.value) == null ? void 0 : S.openMonthsOverlay,
7909
- overlayLabel: ((F = (h = s.value).monthPicker) == null ? void 0 : F.call(h, !0)) ?? void 0
7909
+ overlayLabel: ((F = (p = s.value).monthPicker) == null ? void 0 : F.call(p, !0)) ?? void 0
7910
7910
  },
7911
7911
  {
7912
7912
  type: Tt.year,
@@ -7926,7 +7926,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7926
7926
  toggleMonthPicker: j,
7927
7927
  toggleYearPicker: se,
7928
7928
  handleMonthYearChange: D
7929
- }), (S, h) => {
7929
+ }), (S, p) => {
7930
7930
  var F, X, A, ue, ke, Ge;
7931
7931
  return v(), M("div", x0, [
7932
7932
  S.$slots["month-year"] ? (v(), M("div", A0, [
@@ -7942,8 +7942,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7942
7942
  disabled: w(k)(!1),
7943
7943
  class: me((X = w(f)) == null ? void 0 : X.navBtnPrev),
7944
7944
  "el-name": "action-prev",
7945
- onActivate: h[0] || (h[0] = (W) => w(D)(!1, !0)),
7946
- onSetRef: h[1] || (h[1] = (W) => le(W, 0))
7945
+ onActivate: p[0] || (p[0] = (W) => w(D)(!1, !0)),
7946
+ onSetRef: p[1] || (p[1] = (W) => le(W, 0))
7947
7947
  }, {
7948
7948
  default: ve(() => [
7949
7949
  S.$slots["arrow-left"] ? ie(S.$slots, "arrow-left", { key: 0 }) : q("", !0),
@@ -7979,8 +7979,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7979
7979
  rt(ge(W.text), 1)
7980
7980
  ], 64))
7981
7981
  ], 42, T0),
7982
- Fe(gn, {
7983
- name: w(p)(W.showSelectionGrid),
7982
+ Ye(gn, {
7983
+ name: w(h)(W.showSelectionGrid),
7984
7984
  css: w(b)
7985
7985
  }, {
7986
7986
  default: ve(() => [
@@ -8046,7 +8046,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8046
8046
  "el-name": "action-prev",
8047
8047
  disabled: w(k)(!1),
8048
8048
  class: me((ue = w(f)) == null ? void 0 : ue.navBtnPrev),
8049
- onActivate: h[2] || (h[2] = (W) => w(D)(!1, !0))
8049
+ onActivate: p[2] || (p[2] = (W) => w(D)(!1, !0))
8050
8050
  }, {
8051
8051
  default: ve(() => [
8052
8052
  S.$slots["arrow-up"] ? ie(S.$slots, "arrow-up", { key: 0 }) : q("", !0),
@@ -8061,8 +8061,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8061
8061
  disabled: w(k)(!0),
8062
8062
  "aria-label": (ke = w(s)) == null ? void 0 : ke.nextMonth,
8063
8063
  class: me((Ge = w(f)) == null ? void 0 : Ge.navBtnNext),
8064
- onActivate: h[3] || (h[3] = (W) => w(D)(!0, !0)),
8065
- onSetRef: h[4] || (h[4] = (W) => le(W, S.disableYearSelect ? 2 : 3))
8064
+ onActivate: p[3] || (p[3] = (W) => w(D)(!0, !0)),
8065
+ onSetRef: p[4] || (p[4] = (W) => le(W, S.disableYearSelect ? 2 : 3))
8066
8066
  }, {
8067
8067
  default: ve(() => [
8068
8068
  S.$slots[S.vertical ? "arrow-down" : "arrow-right"] ? ie(S.$slots, S.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : q("", !0),
@@ -8117,12 +8117,12 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8117
8117
  defaultedWeekNumbers: u,
8118
8118
  defaultedMultiDates: d,
8119
8119
  defaultedUI: f
8120
- } = qe(r), p = Y(null), b = Y({
8120
+ } = qe(r), h = Y(null), b = Y({
8121
8121
  bottom: "",
8122
8122
  left: "",
8123
8123
  transform: ""
8124
8124
  }), _ = Y([]), D = Y(null), k = Y(!0), x = Y(""), g = Y({ startX: 0, endX: 0, startY: 0, endY: 0 }), B = Y([]), ae = Y({ left: "50%" }), H = Y(!1), T = G(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), N = G(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : hm(r.formatLocale, r.locale, +r.weekStart));
8125
- Ye(() => {
8125
+ Le(() => {
8126
8126
  a("mount", { cmp: "calendar", refs: _ }), l.value.noSwipe || D.value && (D.value.addEventListener("touchstart", le, { passive: !1 }), D.value.addEventListener("touchend", be, { passive: !1 }), D.value.addEventListener("touchmove", P, { passive: !1 })), r.monthChangeOnScroll && D.value && D.value.addEventListener("wheel", F, { passive: !1 });
8127
8127
  });
8128
8128
  const E = (W) => W ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", I = (W, te) => {
@@ -8142,12 +8142,12 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8142
8142
  dp__marker_dot: te.type === "dot",
8143
8143
  dp__marker_line: te.type === "line"
8144
8144
  };
8145
- }), pe = G(() => (W) => Ce(W, p.value)), $ = G(() => ({
8145
+ }), pe = G(() => (W) => Ce(W, h.value)), $ = G(() => ({
8146
8146
  dp__calendar: !0,
8147
8147
  dp__calendar_next: c.value.count > 0 && r.instance !== 0
8148
8148
  })), L = G(() => (W) => r.hideOffsetDates ? W.current : !0), C = async (W, te) => {
8149
8149
  const { width: y, height: Z } = W.getBoundingClientRect();
8150
- p.value = te.value;
8150
+ h.value = te.value;
8151
8151
  let ne = { left: `${y / 2}px` }, U = -50;
8152
8152
  if (await Ke(), B.value[0]) {
8153
8153
  const { left: Ae, width: R } = B.value[0].getBoundingClientRect();
@@ -8168,7 +8168,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8168
8168
  return a("select-date", W);
8169
8169
  a("set-hover-date", W), (ne = (Z = W.marker) == null ? void 0 : Z.tooltip) != null && ne.length && await j(W, te, y);
8170
8170
  }, Q = (W) => {
8171
- p.value && (p.value = null, b.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), a("tooltip-close", W.marker));
8171
+ h.value && (h.value = null, b.value = JSON.parse(JSON.stringify({ bottom: "", left: "", transform: "" })), a("tooltip-close", W.marker));
8172
8172
  }, le = (W) => {
8173
8173
  g.value.startX = W.changedTouches[0].screenX, g.value.startY = W.changedTouches[0].screenY;
8174
8174
  }, be = (W) => {
@@ -8178,7 +8178,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8178
8178
  }, S = () => {
8179
8179
  const W = r.vertical ? "Y" : "X";
8180
8180
  Math.abs(g.value[`start${W}`] - g.value[`end${W}`]) > 10 && a("handle-swipe", g.value[`start${W}`] > g.value[`end${W}`] ? "right" : "left");
8181
- }, h = (W, te, y) => {
8181
+ }, p = (W, te, y) => {
8182
8182
  W && (Array.isArray(_.value[te]) ? _.value[te][y] = W : _.value[te] = [W]), r.arrowNavigation && o(_.value, "calendar");
8183
8183
  }, F = (W) => {
8184
8184
  r.monthChangeOnScroll && (W.preventDefault(), a("handle-scroll", W));
@@ -8224,7 +8224,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8224
8224
  }), 128))
8225
8225
  ]),
8226
8226
  O0,
8227
- Fe(gn, {
8227
+ Ye(gn, {
8228
8228
  name: x.value,
8229
8229
  css: !!W.transitions
8230
8230
  }, {
@@ -8248,7 +8248,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8248
8248
  return v(), M("div", {
8249
8249
  id: w(cl)(ne.value),
8250
8250
  ref_for: !0,
8251
- ref: (he) => h(he, Z, U),
8251
+ ref: (he) => p(he, Z, U),
8252
8252
  key: U + Z,
8253
8253
  role: "gridcell",
8254
8254
  class: "dp__calendar_item",
@@ -8338,7 +8338,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8338
8338
  }), Eo = (e) => Array.isArray(e), Y0 = (e, n, t, a) => {
8339
8339
  const r = Y([]), o = Y(/* @__PURE__ */ new Date()), s = Y(), l = () => le(e.isTextInputDate), { modelValue: i, calendars: c, time: u, today: d } = oa(e, n, l), {
8340
8340
  defaultedMultiCalendars: f,
8341
- defaultedStartTime: p,
8341
+ defaultedStartTime: h,
8342
8342
  defaultedRange: b,
8343
8343
  defaultedConfig: _,
8344
8344
  defaultedTz: D,
@@ -8354,8 +8354,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8354
8354
  }, j = () => {
8355
8355
  e.autoApply && n("select-date");
8356
8356
  };
8357
- Ye(() => {
8358
- e.shadow || (i.value || (W(), p.value && I(p.value)), le(!0), e.focusStartDate && e.startDate && W());
8357
+ Le(() => {
8358
+ e.shadow || (i.value || (W(), h.value && I(h.value)), le(!0), e.focusStartDate && e.startDate && W());
8359
8359
  });
8360
8360
  const se = G(() => {
8361
8361
  var O;
@@ -8375,7 +8375,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8375
8375
  }
8376
8376
  }, S = (O, oe) => {
8377
8377
  P(O), E("hours", jt(O)), E("minutes", an(O)), E("seconds", Tn(O)), f.value.count && oe && Ge();
8378
- }, h = (O) => {
8378
+ }, p = (O) => {
8379
8379
  if (f.value.count) {
8380
8380
  if (f.value.solo) return 0;
8381
8381
  const oe = Se(O[0]), z = Se(O[1]);
@@ -8383,7 +8383,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8383
8383
  }
8384
8384
  return 1;
8385
8385
  }, F = (O, oe) => {
8386
- O[1] && b.value.showLastInRange ? P(O[h(O)], oe) : P(O[0], oe);
8386
+ O[1] && b.value.showLastInRange ? P(O[p(O)], oe) : P(O[0], oe);
8387
8387
  const z = (re, ce) => [
8388
8388
  re(O[0]),
8389
8389
  O[1] ? re(O[1]) : u[ce][1]
@@ -8616,7 +8616,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8616
8616
  disabledTimesConfig: u,
8617
8617
  today: d,
8618
8618
  validateTime: f,
8619
- getCalendarDays: p,
8619
+ getCalendarDays: h,
8620
8620
  getMarker: b,
8621
8621
  handleArrow: _,
8622
8622
  handleScroll: D,
@@ -8630,7 +8630,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8630
8630
  } = Y0(r, a, be, P), N = yn(), { setHoverDate: E, getDayClassData: I, clearHoverDate: K } = nh(i, r), { defaultedMultiCalendars: de } = qe(r), pe = Y([]), $ = Y([]), L = Y(null), C = _t(N, "calendar"), j = _t(N, "monthYear"), se = _t(N, "timePicker"), Q = (te) => {
8631
8631
  r.shadow || a("mount", te);
8632
8632
  };
8633
- Be(
8633
+ Fe(
8634
8634
  o,
8635
8635
  () => {
8636
8636
  r.shadow || setTimeout(() => {
@@ -8638,14 +8638,14 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8638
8638
  }, 0);
8639
8639
  },
8640
8640
  { deep: !0 }
8641
- ), Be(
8641
+ ), Fe(
8642
8642
  de,
8643
8643
  (te, y) => {
8644
8644
  te.count - y.count > 0 && T();
8645
8645
  },
8646
8646
  { deep: !0 }
8647
8647
  );
8648
- const le = G(() => (te) => p(s.value(te), l.value(te)).map((y) => ({
8648
+ const le = G(() => (te) => h(s.value(te), l.value(te)).map((y) => ({
8649
8649
  ...y,
8650
8650
  days: y.days.map((Z) => (Z.marker = b(Z), Z.classData = I(Z), Z))
8651
8651
  })));
@@ -8658,7 +8658,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8658
8658
  }
8659
8659
  const S = (te, y = !1) => {
8660
8660
  x(te, y), r.spaceConfirm && a("select-date");
8661
- }, h = (te, y, Z = 0) => {
8661
+ }, p = (te, y, Z = 0) => {
8662
8662
  var ne;
8663
8663
  (ne = pe.value[Z]) == null || ne.toggleMonthPicker(te, y);
8664
8664
  }, F = (te, y, Z = 0) => {
@@ -8692,7 +8692,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8692
8692
  clearHoverDate: K,
8693
8693
  presetDate: B,
8694
8694
  selectCurrentDate: ae,
8695
- toggleMonthPicker: h,
8695
+ toggleMonthPicker: p,
8696
8696
  toggleYearPicker: F,
8697
8697
  toggleTimePicker: X,
8698
8698
  handleArrow: _,
@@ -8711,7 +8711,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8711
8711
  changeYear: ke,
8712
8712
  selectWeekDate: A
8713
8713
  }), (te, y) => (v(), M(_e, null, [
8714
- Fe(Na, {
8714
+ Ye(Na, {
8715
8715
  "multi-calendars": w(de).count,
8716
8716
  collapse: te.collapse
8717
8717
  }, {
@@ -8740,7 +8740,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8740
8740
  ])
8741
8741
  }))
8742
8742
  ]), 1040, ["months", "years", "month", "year", "instance", "onUpdateMonthYear"])),
8743
- Fe(F0, et({
8743
+ Ye(F0, et({
8744
8744
  ref: (U) => {
8745
8745
  U && ($.value[ne] = U);
8746
8746
  },
@@ -8809,12 +8809,12 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8809
8809
  propDates: l,
8810
8810
  defaultedFilters: i,
8811
8811
  defaultedMultiDates: c
8812
- } = qe(e), { modelValue: u, year: d, month: f, calendars: p } = oa(e, n), { isDisabled: b } = on(e), { selectYear: _, groupedYears: D, showYearPicker: k, isDisabled: x, toggleYearPicker: g, handleYearSelect: B, handleYear: ae } = vl({
8812
+ } = qe(e), { modelValue: u, year: d, month: f, calendars: h } = oa(e, n), { isDisabled: b } = on(e), { selectYear: _, groupedYears: D, showYearPicker: k, isDisabled: x, toggleYearPicker: g, handleYearSelect: B, handleYear: ae } = vl({
8813
8813
  modelValue: u,
8814
8814
  multiCalendars: a,
8815
8815
  range: s,
8816
8816
  highlight: o,
8817
- calendars: p,
8817
+ calendars: h,
8818
8818
  propDates: l,
8819
8819
  month: f,
8820
8820
  year: d,
@@ -8868,7 +8868,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8868
8868
  selectYear: _,
8869
8869
  selectQuarter: (L, C, j) => {
8870
8870
  if (!j)
8871
- return p.value[C].month = Se(_o(L)), c.value.enabled ? de(L) : s.value.enabled ? pe(L) : $(L);
8871
+ return h.value[C].month = Se(_o(L)), c.value.enabled ? de(L) : s.value.enabled ? pe(L) : $(L);
8872
8872
  },
8873
8873
  toggleYearPicker: g,
8874
8874
  handleYearSelect: B,
@@ -8900,7 +8900,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8900
8900
  year: u,
8901
8901
  isDisabled: d,
8902
8902
  quarters: f,
8903
- modelValue: p,
8903
+ modelValue: h,
8904
8904
  showYearPicker: b,
8905
8905
  setHoverDate: _,
8906
8906
  selectQuarter: D,
@@ -8909,7 +8909,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8909
8909
  handleYear: g
8910
8910
  } = B0(r, a);
8911
8911
  return n({ getSidebarProps: () => ({
8912
- modelValue: p,
8912
+ modelValue: h,
8913
8913
  year: u,
8914
8914
  selectQuarter: D,
8915
8915
  handleYearSelect: x,
@@ -8929,7 +8929,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8929
8929
  value: B.internalModelValue
8930
8930
  }) : q("", !0),
8931
8931
  m("div", null, [
8932
- Fe(ml, et(B.$props, {
8932
+ Ye(ml, et(B.$props, {
8933
8933
  items: w(c)(H),
8934
8934
  instance: H,
8935
8935
  "show-year-picker": w(b)[H],
@@ -9042,14 +9042,14 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9042
9042
  noOverlayFocus: r.noOverlayFocus,
9043
9043
  menuWrapRef: o.value
9044
9044
  };
9045
- }), { setMenuFocused: l, setShiftKey: i, control: c } = fl(), u = yn(), { defaultedTextInput: d, defaultedInline: f, defaultedConfig: p, defaultedUI: b } = qe(r), _ = Y(null), D = Y(0), k = Y(null), x = Y(!1), g = Y(null);
9046
- Ye(() => {
9045
+ }), { setMenuFocused: l, setShiftKey: i, control: c } = fl(), u = yn(), { defaultedTextInput: d, defaultedInline: f, defaultedConfig: h, defaultedUI: b } = qe(r), _ = Y(null), D = Y(0), k = Y(null), x = Y(!1), g = Y(null);
9046
+ Le(() => {
9047
9047
  if (!r.shadow) {
9048
9048
  x.value = !0, B(), window.addEventListener("resize", B);
9049
9049
  const R = Ze(o);
9050
9050
  if (R && !d.value.enabled && !f.value.enabled && (l(!0), C()), R) {
9051
9051
  const ee = (he) => {
9052
- p.value.allowPreventDefault && he.preventDefault(), en(he, p.value, !0);
9052
+ h.value.allowPreventDefault && he.preventDefault(), en(he, h.value, !0);
9053
9053
  };
9054
9054
  R.addEventListener("pointerdown", ee), R.addEventListener("mousedown", ee);
9055
9055
  }
@@ -9062,7 +9062,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9062
9062
  R && (D.value = R.getBoundingClientRect().width);
9063
9063
  }, { arrowRight: ae, arrowLeft: H, arrowDown: T, arrowUp: N } = rn(), { flowStep: E, updateFlowStep: I, childMount: K, resetFlow: de, handleFlow: pe } = ah(r, a, g), $ = G(() => r.monthPicker ? a0 : r.yearPicker ? o0 : r.timePicker ? k0 : r.quarterPicker ? H0 : I0), L = G(() => {
9064
9064
  var R;
9065
- if (p.value.arrowLeft) return p.value.arrowLeft;
9065
+ if (h.value.arrowLeft) return h.value.arrowLeft;
9066
9066
  const ee = (R = o.value) == null ? void 0 : R.getBoundingClientRect(), he = r.getInputRect();
9067
9067
  return (he == null ? void 0 : he.width) < (D == null ? void 0 : D.value) && (he == null ? void 0 : he.left) <= ((ee == null ? void 0 : ee.left) ?? 0) ? `${(he == null ? void 0 : he.width) / 2}px` : (he == null ? void 0 : he.right) >= ((ee == null ? void 0 : ee.right) ?? 0) && (he == null ? void 0 : he.width) < (D == null ? void 0 : D.value) ? `${(D == null ? void 0 : D.value) - (he == null ? void 0 : he.width) / 2}px` : "50%";
9068
9068
  }), C = () => {
@@ -9084,8 +9084,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9084
9084
  dp__relative: f.value.enabled,
9085
9085
  ...b.value.menu ?? {}
9086
9086
  })
9087
- ), h = (R) => {
9088
- en(R, p.value, !0);
9087
+ ), p = (R) => {
9088
+ en(R, h.value, !0);
9089
9089
  }, F = () => {
9090
9090
  r.escClose && a("close-picker");
9091
9091
  }, X = (R) => {
@@ -9096,7 +9096,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9096
9096
  if (R === ct.right) return ae();
9097
9097
  } else R === ct.left || R === ct.up ? W("handleArrow", ct.left, 0, R === ct.up) : W("handleArrow", ct.right, 0, R === ct.down);
9098
9098
  }, A = (R) => {
9099
- i(R.shiftKey), !r.disableMonthYearSelect && R.code === Ie.tab && R.target.classList.contains("dp__menu") && c.value.shiftKeyInMenu && (R.preventDefault(), en(R, p.value, !0), a("close-picker"));
9099
+ i(R.shiftKey), !r.disableMonthYearSelect && R.code === Be.tab && R.target.classList.contains("dp__menu") && c.value.shiftKeyInMenu && (R.preventDefault(), en(R, h.value, !0), a("close-picker"));
9100
9100
  }, ue = () => {
9101
9101
  C(), a("time-picker-close");
9102
9102
  }, ke = (R) => {
@@ -9120,22 +9120,22 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9120
9120
  R.preventDefault(), X(ee);
9121
9121
  }, Ae = (R) => {
9122
9122
  var ee, he, Te;
9123
- if (A(R), R.key === Ie.home || R.key === Ie.end)
9123
+ if (A(R), R.key === Be.home || R.key === Be.end)
9124
9124
  return W(
9125
9125
  "selectWeekDate",
9126
- R.key === Ie.home,
9126
+ R.key === Be.home,
9127
9127
  R.target.getAttribute("id")
9128
9128
  );
9129
- switch ((R.key === Ie.pageUp || R.key === Ie.pageDown) && (R.shiftKey ? (W("changeYear", R.key === Ie.pageUp), (ee = Dr(o.value, "overlay-year")) == null || ee.focus()) : (W("changeMonth", R.key === Ie.pageUp), (he = Dr(o.value, R.key === Ie.pageUp ? "action-prev" : "action-next")) == null || he.focus()), R.target.getAttribute("id") && ((Te = o.value) == null || Te.focus({ preventScroll: !0 }))), R.key) {
9130
- case Ie.esc:
9129
+ switch ((R.key === Be.pageUp || R.key === Be.pageDown) && (R.shiftKey ? (W("changeYear", R.key === Be.pageUp), (ee = Dr(o.value, "overlay-year")) == null || ee.focus()) : (W("changeMonth", R.key === Be.pageUp), (he = Dr(o.value, R.key === Be.pageUp ? "action-prev" : "action-next")) == null || he.focus()), R.target.getAttribute("id") && ((Te = o.value) == null || Te.focus({ preventScroll: !0 }))), R.key) {
9130
+ case Be.esc:
9131
9131
  return F();
9132
- case Ie.arrowLeft:
9132
+ case Be.arrowLeft:
9133
9133
  return U(R, ct.left);
9134
- case Ie.arrowRight:
9134
+ case Be.arrowRight:
9135
9135
  return U(R, ct.right);
9136
- case Ie.arrowUp:
9136
+ case Be.arrowUp:
9137
9137
  return U(R, ct.up);
9138
- case Ie.arrowDown:
9138
+ case Be.arrowDown:
9139
9139
  return U(R, ct.down);
9140
9140
  default:
9141
9141
  return;
@@ -9157,7 +9157,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9157
9157
  class: me(S.value),
9158
9158
  style: bt({ "--dp-arrow-left": L.value }),
9159
9159
  onMouseleave: Z,
9160
- onClick: h,
9160
+ onClick: p,
9161
9161
  onKeydown: Ae
9162
9162
  }, [
9163
9163
  (R.disabled || R.readonly) && w(f).enabled || R.loading ? (v(), M("div", {
@@ -9258,7 +9258,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9258
9258
  }) : q("", !0)
9259
9259
  ])) : q("", !0)
9260
9260
  ], 6),
9261
- !R.autoApply || w(p).keepActionRow ? (v(), Me(Xm, et({
9261
+ !R.autoApply || w(h).keepActionRow ? (v(), Me(Xm, et({
9262
9262
  key: 3,
9263
9263
  "menu-mount": x.value
9264
9264
  }, s.value, {
@@ -9293,8 +9293,8 @@ const J0 = ({
9293
9293
  const { defaultedConfig: i } = qe(s), c = Y({}), u = Y(!1), d = Y({
9294
9294
  top: "0",
9295
9295
  left: "0"
9296
- }), f = Y(!1), p = Un(s, "teleportCenter");
9297
- Be(p, () => {
9296
+ }), f = Y(!1), h = Un(s, "teleportCenter");
9297
+ Fe(h, () => {
9298
9298
  d.value = JSON.parse(JSON.stringify({})), ae();
9299
9299
  });
9300
9300
  const b = (C) => {
@@ -9323,7 +9323,7 @@ const J0 = ({
9323
9323
  }, ae = (C = !0) => {
9324
9324
  var j;
9325
9325
  if (!r.value.enabled) {
9326
- if (p.value) return g();
9326
+ if (h.value) return g();
9327
9327
  if (s.altPosition !== null) return B();
9328
9328
  if (C) {
9329
9329
  const se = s.teleport ? (j = n.value) == null ? void 0 : j.$el : e.value;
@@ -9397,14 +9397,14 @@ const J0 = ({
9397
9397
  be.setAttribute("id", "dp--temp-container");
9398
9398
  const S = (Q = a.value) != null && Q.clientWidth ? a.value : document.body;
9399
9399
  S.append(be);
9400
- const h = L(P), F = i.value.shadowDom ? Object.keys(l).filter(
9400
+ const p = L(P), F = i.value.shadowDom ? Object.keys(l).filter(
9401
9401
  (A) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(A)
9402
9402
  ) : Object.keys(l), X = ql(
9403
9403
  C,
9404
9404
  {
9405
9405
  ...j,
9406
9406
  shadow: !0,
9407
- style: { opacity: 0, position: "absolute", ...h }
9407
+ style: { opacity: 0, position: "absolute", ...p }
9408
9408
  },
9409
9409
  Object.fromEntries(F.map((A) => [A, l[A]]))
9410
9410
  );
@@ -9475,21 +9475,21 @@ const J0 = ({
9475
9475
  return { transitionName: n, showTransition: !!e.value, menuTransition: t };
9476
9476
  }, oa = (e, n, t) => {
9477
9477
  const { defaultedRange: a, defaultedTz: r } = qe(e), o = J(gt(J(), r.value.timezone)), s = Y([{ month: Se(o), year: xe(o) }]), l = (f) => {
9478
- const p = {
9478
+ const h = {
9479
9479
  hours: jt(o),
9480
9480
  minutes: an(o),
9481
9481
  seconds: 0
9482
9482
  };
9483
- return a.value.enabled ? [p[f], p[f]] : p[f];
9483
+ return a.value.enabled ? [h[f], h[f]] : h[f];
9484
9484
  }, i = Kn({
9485
9485
  hours: l("hours"),
9486
9486
  minutes: l("minutes"),
9487
9487
  seconds: l("seconds")
9488
9488
  });
9489
- Be(
9489
+ Fe(
9490
9490
  a,
9491
- (f, p) => {
9492
- f.enabled !== p.enabled && (i.hours = l("hours"), i.minutes = l("minutes"), i.seconds = l("seconds"));
9491
+ (f, h) => {
9492
+ f.enabled !== h.enabled && (i.hours = l("hours"), i.minutes = l("minutes"), i.seconds = l("seconds"));
9493
9493
  },
9494
9494
  { deep: !0 }
9495
9495
  );
@@ -9503,10 +9503,10 @@ const J0 = ({
9503
9503
  ), d = G(
9504
9504
  () => (f) => s.value[f] ? s.value[f].year : 0
9505
9505
  );
9506
- return Be(
9506
+ return Fe(
9507
9507
  c,
9508
- (f, p) => {
9509
- t && JSON.stringify(f ?? {}) !== JSON.stringify(p ?? {}) && t();
9508
+ (f, h) => {
9509
+ t && JSON.stringify(f ?? {}) !== JSON.stringify(h ?? {}) && t();
9510
9510
  },
9511
9511
  { deep: !0 }
9512
9512
  ), {
@@ -9526,137 +9526,137 @@ const J0 = ({
9526
9526
  defaultedTz: s,
9527
9527
  propDates: l,
9528
9528
  defaultedRange: i
9529
- } = qe(n), { isDisabled: c } = on(n), u = Y(null), d = Y(gt(/* @__PURE__ */ new Date(), s.value.timezone)), f = (h) => {
9530
- !h.current && n.hideOffsetDates || (u.value = h.value);
9531
- }, p = () => {
9529
+ } = qe(n), { isDisabled: c } = on(n), u = Y(null), d = Y(gt(/* @__PURE__ */ new Date(), s.value.timezone)), f = (p) => {
9530
+ !p.current && n.hideOffsetDates || (u.value = p.value);
9531
+ }, h = () => {
9532
9532
  u.value = null;
9533
- }, b = (h) => Array.isArray(e.value) && i.value.enabled && e.value[0] && u.value ? h ? Ue(u.value, e.value[0]) : He(u.value, e.value[0]) : !0, _ = (h, F) => {
9533
+ }, b = (p) => Array.isArray(e.value) && i.value.enabled && e.value[0] && u.value ? p ? Ue(u.value, e.value[0]) : He(u.value, e.value[0]) : !0, _ = (p, F) => {
9534
9534
  const X = () => e.value ? F ? e.value[0] || null : e.value[1] : null, A = e.value && Array.isArray(e.value) ? X() : null;
9535
- return Ce(J(h.value), A);
9536
- }, D = (h) => {
9535
+ return Ce(J(p.value), A);
9536
+ }, D = (p) => {
9537
9537
  const F = Array.isArray(e.value) ? e.value[0] : null;
9538
- return h ? !He(u.value ?? null, F) : !0;
9539
- }, k = (h, F = !0) => (i.value.enabled || n.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? n.hideOffsetDates && !h.current ? !1 : Ce(J(h.value), e.value[F ? 0 : 1]) : i.value.enabled ? _(h, F) && D(F) || Ce(h.value, Array.isArray(e.value) ? e.value[0] : null) && b(F) : !1, x = (h, F) => {
9538
+ return p ? !He(u.value ?? null, F) : !0;
9539
+ }, k = (p, F = !0) => (i.value.enabled || n.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? n.hideOffsetDates && !p.current ? !1 : Ce(J(p.value), e.value[F ? 0 : 1]) : i.value.enabled ? _(p, F) && D(F) || Ce(p.value, Array.isArray(e.value) ? e.value[0] : null) && b(F) : !1, x = (p, F) => {
9540
9540
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
9541
- const X = Ce(h.value, u.value);
9542
- return F ? Ue(e.value[0], h.value) && X : He(e.value[0], h.value) && X;
9541
+ const X = Ce(p.value, u.value);
9542
+ return F ? Ue(e.value[0], p.value) && X : He(e.value[0], p.value) && X;
9543
9543
  }
9544
9544
  return !1;
9545
- }, g = (h) => !e.value || n.hideOffsetDates && !h.current ? !1 : i.value.enabled ? n.modelAuto && Array.isArray(e.value) ? Ce(h.value, e.value[0] ? e.value[0] : d.value) : !1 : a.value.enabled && Array.isArray(e.value) ? e.value.some((F) => Ce(F, h.value)) : Ce(h.value, e.value ? e.value : d.value), B = (h) => {
9545
+ }, g = (p) => !e.value || n.hideOffsetDates && !p.current ? !1 : i.value.enabled ? n.modelAuto && Array.isArray(e.value) ? Ce(p.value, e.value[0] ? e.value[0] : d.value) : !1 : a.value.enabled && Array.isArray(e.value) ? e.value.some((F) => Ce(F, p.value)) : Ce(p.value, e.value ? e.value : d.value), B = (p) => {
9546
9546
  if (i.value.autoRange || n.weekPicker) {
9547
9547
  if (u.value) {
9548
- if (n.hideOffsetDates && !h.current) return !1;
9548
+ if (n.hideOffsetDates && !p.current) return !1;
9549
9549
  const F = Pt(u.value, +i.value.autoRange), X = Wt(J(u.value), n.weekStart);
9550
- return n.weekPicker ? Ce(X[1], J(h.value)) : Ce(F, J(h.value));
9550
+ return n.weekPicker ? Ce(X[1], J(p.value)) : Ce(F, J(p.value));
9551
9551
  }
9552
9552
  return !1;
9553
9553
  }
9554
9554
  return !1;
9555
- }, ae = (h) => {
9555
+ }, ae = (p) => {
9556
9556
  if (i.value.autoRange || n.weekPicker) {
9557
9557
  if (u.value) {
9558
9558
  const F = Pt(u.value, +i.value.autoRange);
9559
- if (n.hideOffsetDates && !h.current) return !1;
9559
+ if (n.hideOffsetDates && !p.current) return !1;
9560
9560
  const X = Wt(J(u.value), n.weekStart);
9561
- return n.weekPicker ? Ue(h.value, X[0]) && He(h.value, X[1]) : Ue(h.value, u.value) && He(h.value, F);
9561
+ return n.weekPicker ? Ue(p.value, X[0]) && He(p.value, X[1]) : Ue(p.value, u.value) && He(p.value, F);
9562
9562
  }
9563
9563
  return !1;
9564
9564
  }
9565
9565
  return !1;
9566
- }, H = (h) => {
9566
+ }, H = (p) => {
9567
9567
  if (i.value.autoRange || n.weekPicker) {
9568
9568
  if (u.value) {
9569
- if (n.hideOffsetDates && !h.current) return !1;
9569
+ if (n.hideOffsetDates && !p.current) return !1;
9570
9570
  const F = Wt(J(u.value), n.weekStart);
9571
- return n.weekPicker ? Ce(F[0], h.value) : Ce(u.value, h.value);
9571
+ return n.weekPicker ? Ce(F[0], p.value) : Ce(u.value, p.value);
9572
9572
  }
9573
9573
  return !1;
9574
9574
  }
9575
9575
  return !1;
9576
- }, T = (h) => Oa(e.value, u.value, h.value), N = () => n.modelAuto && Array.isArray(n.internalModelValue) ? !!n.internalModelValue[0] : !1, E = () => n.modelAuto ? tl(n.internalModelValue) : !0, I = (h) => {
9576
+ }, T = (p) => Oa(e.value, u.value, p.value), N = () => n.modelAuto && Array.isArray(n.internalModelValue) ? !!n.internalModelValue[0] : !1, E = () => n.modelAuto ? tl(n.internalModelValue) : !0, I = (p) => {
9577
9577
  if (n.weekPicker) return !1;
9578
- const F = i.value.enabled ? !k(h) && !k(h, !1) : !0;
9579
- return !c(h.value) && !g(h) && !(!h.current && n.hideOffsetDates) && F;
9580
- }, K = (h) => i.value.enabled ? n.modelAuto ? N() && g(h) : !1 : g(h), de = (h) => o.value ? bm(h.value, l.value.highlight) : !1, pe = (h) => {
9581
- const F = c(h.value);
9582
- return F && (typeof o.value == "function" ? !o.value(h.value, F) : !o.value.options.highlightDisabled);
9583
- }, $ = (h) => {
9578
+ const F = i.value.enabled ? !k(p) && !k(p, !1) : !0;
9579
+ return !c(p.value) && !g(p) && !(!p.current && n.hideOffsetDates) && F;
9580
+ }, K = (p) => i.value.enabled ? n.modelAuto ? N() && g(p) : !1 : g(p), de = (p) => o.value ? bm(p.value, l.value.highlight) : !1, pe = (p) => {
9581
+ const F = c(p.value);
9582
+ return F && (typeof o.value == "function" ? !o.value(p.value, F) : !o.value.options.highlightDisabled);
9583
+ }, $ = (p) => {
9584
9584
  var F;
9585
- return typeof o.value == "function" ? o.value(h.value) : (F = o.value.weekdays) == null ? void 0 : F.includes(h.value.getDay());
9586
- }, L = (h) => (i.value.enabled || n.weekPicker) && (!(t.value.count > 0) || h.current) && E() && !(!h.current && n.hideOffsetDates) && !g(h) ? T(h) : !1, C = (h) => {
9587
- const { isRangeStart: F, isRangeEnd: X } = le(h), A = i.value.enabled ? F || X : !1;
9585
+ return typeof o.value == "function" ? o.value(p.value) : (F = o.value.weekdays) == null ? void 0 : F.includes(p.value.getDay());
9586
+ }, L = (p) => (i.value.enabled || n.weekPicker) && (!(t.value.count > 0) || p.current) && E() && !(!p.current && n.hideOffsetDates) && !g(p) ? T(p) : !1, C = (p) => {
9587
+ const { isRangeStart: F, isRangeEnd: X } = le(p), A = i.value.enabled ? F || X : !1;
9588
9588
  return {
9589
- dp__cell_offset: !h.current,
9590
- dp__pointer: !n.disabled && !(!h.current && n.hideOffsetDates) && !c(h.value),
9591
- dp__cell_disabled: c(h.value),
9592
- dp__cell_highlight: !pe(h) && (de(h) || $(h)) && !K(h) && !A && !H(h) && !(L(h) && n.weekPicker) && !X,
9593
- dp__cell_highlight_active: !pe(h) && (de(h) || $(h)) && K(h),
9594
- dp__today: !n.noToday && Ce(h.value, d.value) && h.current,
9595
- "dp--past": He(h.value, d.value),
9596
- "dp--future": Ue(h.value, d.value)
9589
+ dp__cell_offset: !p.current,
9590
+ dp__pointer: !n.disabled && !(!p.current && n.hideOffsetDates) && !c(p.value),
9591
+ dp__cell_disabled: c(p.value),
9592
+ dp__cell_highlight: !pe(p) && (de(p) || $(p)) && !K(p) && !A && !H(p) && !(L(p) && n.weekPicker) && !X,
9593
+ dp__cell_highlight_active: !pe(p) && (de(p) || $(p)) && K(p),
9594
+ dp__today: !n.noToday && Ce(p.value, d.value) && p.current,
9595
+ "dp--past": He(p.value, d.value),
9596
+ "dp--future": Ue(p.value, d.value)
9597
9597
  };
9598
- }, j = (h) => ({
9599
- dp__active_date: K(h),
9600
- dp__date_hover: I(h)
9601
- }), se = (h) => {
9598
+ }, j = (p) => ({
9599
+ dp__active_date: K(p),
9600
+ dp__date_hover: I(p)
9601
+ }), se = (p) => {
9602
9602
  if (e.value && !Array.isArray(e.value)) {
9603
9603
  const F = Wt(e.value, n.weekStart);
9604
9604
  return {
9605
- ...P(h),
9606
- dp__range_start: Ce(F[0], h.value),
9607
- dp__range_end: Ce(F[1], h.value),
9608
- dp__range_between_week: Ue(h.value, F[0]) && He(h.value, F[1])
9605
+ ...P(p),
9606
+ dp__range_start: Ce(F[0], p.value),
9607
+ dp__range_end: Ce(F[1], p.value),
9608
+ dp__range_between_week: Ue(p.value, F[0]) && He(p.value, F[1])
9609
9609
  };
9610
9610
  }
9611
9611
  return {
9612
- ...P(h)
9612
+ ...P(p)
9613
9613
  };
9614
- }, Q = (h) => {
9614
+ }, Q = (p) => {
9615
9615
  if (e.value && Array.isArray(e.value)) {
9616
9616
  const F = Wt(e.value[0], n.weekStart), X = e.value[1] ? Wt(e.value[1], n.weekStart) : [];
9617
9617
  return {
9618
- ...P(h),
9619
- dp__range_start: Ce(F[0], h.value) || Ce(X[0], h.value),
9620
- dp__range_end: Ce(F[1], h.value) || Ce(X[1], h.value),
9621
- dp__range_between_week: Ue(h.value, F[0]) && He(h.value, F[1]) || Ue(h.value, X[0]) && He(h.value, X[1]),
9622
- dp__range_between: Ue(h.value, F[1]) && He(h.value, X[0])
9618
+ ...P(p),
9619
+ dp__range_start: Ce(F[0], p.value) || Ce(X[0], p.value),
9620
+ dp__range_end: Ce(F[1], p.value) || Ce(X[1], p.value),
9621
+ dp__range_between_week: Ue(p.value, F[0]) && He(p.value, F[1]) || Ue(p.value, X[0]) && He(p.value, X[1]),
9622
+ dp__range_between: Ue(p.value, F[1]) && He(p.value, X[0])
9623
9623
  };
9624
9624
  }
9625
9625
  return {
9626
- ...P(h)
9626
+ ...P(p)
9627
9627
  };
9628
- }, le = (h) => {
9629
- const F = t.value.count > 0 ? h.current && k(h) && E() : k(h) && E(), X = t.value.count > 0 ? h.current && k(h, !1) && E() : k(h, !1) && E();
9628
+ }, le = (p) => {
9629
+ const F = t.value.count > 0 ? p.current && k(p) && E() : k(p) && E(), X = t.value.count > 0 ? p.current && k(p, !1) && E() : k(p, !1) && E();
9630
9630
  return { isRangeStart: F, isRangeEnd: X };
9631
- }, be = (h) => {
9632
- const { isRangeStart: F, isRangeEnd: X } = le(h);
9631
+ }, be = (p) => {
9632
+ const { isRangeStart: F, isRangeEnd: X } = le(p);
9633
9633
  return {
9634
9634
  dp__range_start: F,
9635
9635
  dp__range_end: X,
9636
- dp__range_between: L(h),
9637
- dp__date_hover: Ce(h.value, u.value) && !F && !X && !n.weekPicker,
9638
- dp__date_hover_start: x(h, !0),
9639
- dp__date_hover_end: x(h, !1)
9636
+ dp__range_between: L(p),
9637
+ dp__date_hover: Ce(p.value, u.value) && !F && !X && !n.weekPicker,
9638
+ dp__date_hover_start: x(p, !0),
9639
+ dp__date_hover_end: x(p, !1)
9640
9640
  };
9641
- }, P = (h) => ({
9642
- ...be(h),
9643
- dp__cell_auto_range: ae(h),
9644
- dp__cell_auto_range_start: H(h),
9645
- dp__cell_auto_range_end: B(h)
9646
- }), S = (h) => i.value.enabled ? i.value.autoRange ? P(h) : n.modelAuto ? { ...j(h), ...be(h) } : n.weekPicker ? Q(h) : be(h) : n.weekPicker ? se(h) : j(h);
9641
+ }, P = (p) => ({
9642
+ ...be(p),
9643
+ dp__cell_auto_range: ae(p),
9644
+ dp__cell_auto_range_start: H(p),
9645
+ dp__cell_auto_range_end: B(p)
9646
+ }), S = (p) => i.value.enabled ? i.value.autoRange ? P(p) : n.modelAuto ? { ...j(p), ...be(p) } : n.weekPicker ? Q(p) : be(p) : n.weekPicker ? se(p) : j(p);
9647
9647
  return {
9648
9648
  setHoverDate: f,
9649
- clearHoverDate: p,
9650
- getDayClassData: (h) => n.hideOffsetDates && !h.current ? {} : {
9651
- ...C(h),
9652
- ...S(h),
9653
- [n.dayClass ? n.dayClass(h.value, n.internalModelValue) : ""]: !0,
9649
+ clearHoverDate: h,
9650
+ getDayClassData: (p) => n.hideOffsetDates && !p.current ? {} : {
9651
+ ...C(p),
9652
+ ...S(p),
9653
+ [n.dayClass ? n.dayClass(p.value, n.internalModelValue) : ""]: !0,
9654
9654
  ...r.value.calendarCell ?? {}
9655
9655
  }
9656
9656
  };
9657
9657
  }, on = (e) => {
9658
9658
  const { defaultedFilters: n, defaultedRange: t, propDates: a, defaultedMultiDates: r } = qe(e), o = ($) => a.value.disabledDates ? typeof a.value.disabledDates == "function" ? a.value.disabledDates(J($)) : !!ka($, a.value.disabledDates) : !1, s = ($) => a.value.maxDate ? e.yearPicker ? xe($) > xe(a.value.maxDate) : Ue($, a.value.maxDate) : !1, l = ($) => a.value.minDate ? e.yearPicker ? xe($) < xe(a.value.minDate) : He($, a.value.minDate) : !1, i = ($) => {
9659
- const L = s($), C = l($), j = o($), se = n.value.months.map((S) => +S).includes(Se($)), Q = e.disabledWeekDays.length ? e.disabledWeekDays.some((S) => +S === lf($)) : !1, le = p($), be = xe($), P = be < +e.yearRange[0] || be > +e.yearRange[1];
9659
+ const L = s($), C = l($), j = o($), se = n.value.months.map((S) => +S).includes(Se($)), Q = e.disabledWeekDays.length ? e.disabledWeekDays.some((S) => +S === lf($)) : !1, le = h($), be = xe($), P = be < +e.yearRange[0] || be > +e.yearRange[1];
9660
9660
  return !(L || C || j || se || P || Q || le);
9661
9661
  }, c = ($, L) => He(...Zt(a.value.minDate, $, L)) || Ce(...Zt(a.value.minDate, $, L)), u = ($, L) => Ue(...Zt(a.value.maxDate, $, L)) || Ce(...Zt(a.value.maxDate, $, L)), d = ($, L, C) => {
9662
9662
  let j = !1;
@@ -9664,7 +9664,7 @@ const J0 = ({
9664
9664
  }, f = ($, L, C, j) => {
9665
9665
  let se = !1;
9666
9666
  return j && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? se = d($, L, C) : (a.value.minDate && c($, L) || a.value.maxDate && u($, L)) && (se = !0) : se = !0, se;
9667
- }, p = ($) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !ka($, a.value.allowedDates) : !1, b = ($) => !i($), _ = ($) => t.value.noDisabledRange ? !Ls({ start: $[0], end: $[1] }).some((L) => b(L)) : !0, D = ($) => {
9667
+ }, h = ($) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !ka($, a.value.allowedDates) : !1, b = ($) => !i($), _ = ($) => t.value.noDisabledRange ? !Ls({ start: $[0], end: $[1] }).some((L) => b(L)) : !0, D = ($) => {
9668
9668
  if ($) {
9669
9669
  const L = xe($);
9670
9670
  return L >= +e.yearRange[0] && L <= e.yearRange[1];
@@ -9747,16 +9747,16 @@ const J0 = ({
9747
9747
  var f;
9748
9748
  if ((f = e.flow) != null && f.length) {
9749
9749
  if (!d && o.value) return u();
9750
- r[d] = !0, Object.keys(r).filter((p) => !r[p]).length || u();
9750
+ r[d] = !0, Object.keys(r).filter((h) => !r[h]).length || u();
9751
9751
  }
9752
9752
  }, l = () => {
9753
9753
  var d, f;
9754
9754
  (d = e.flow) != null && d.length && a.value !== -1 && (a.value += 1, n("flow-step", a.value), u()), ((f = e.flow) == null ? void 0 : f.length) === a.value && Ke().then(() => i());
9755
9755
  }, i = () => {
9756
9756
  a.value = -1;
9757
- }, c = (d, f, ...p) => {
9757
+ }, c = (d, f, ...h) => {
9758
9758
  var b, _;
9759
- e.flow[a.value] === d && t.value && ((_ = (b = t.value)[f]) == null || _.call(b, ...p));
9759
+ e.flow[a.value] === d && t.value && ((_ = (b = t.value)[f]) == null || _.call(b, ...h));
9760
9760
  }, u = (d = 0) => {
9761
9761
  d && (a.value += d), c(st.month, "toggleMonthPicker", !0), c(st.year, "toggleYearPicker", !0), c(st.calendar, "toggleTimePicker", !1, !0), c(st.time, "toggleTimePicker", !0, !0);
9762
9762
  const f = e.flow[a.value];
@@ -9804,7 +9804,7 @@ const J0 = ({
9804
9804
  defaultedMultiDates: u,
9805
9805
  defaultedUI: d,
9806
9806
  getDefaultPattern: f,
9807
- getDefaultStartTime: p
9807
+ getDefaultStartTime: h
9808
9808
  } = qe(r), { checkMinMaxRange: b } = on(r), _ = Y(), D = Y(null), k = Y(!1), x = Y(!1), g = Y(!1), B = Y(null), ae = G(
9809
9809
  () => ({
9810
9810
  dp__pointer: !r.disabled && !r.readonly && !o.value.enabled,
@@ -9821,7 +9821,7 @@ const J0 = ({
9821
9821
  ), H = () => {
9822
9822
  a("set-input-date", null), r.clearable && r.autoApply && (a("set-empty-date"), _.value = null);
9823
9823
  }, T = (P) => {
9824
- const S = p();
9824
+ const S = h();
9825
9825
  return _m(
9826
9826
  P,
9827
9827
  o.value.format ?? f(),
@@ -9831,9 +9831,9 @@ const J0 = ({
9831
9831
  r.formatLocale
9832
9832
  );
9833
9833
  }, N = (P) => {
9834
- const { rangeSeparator: S } = o.value, [h, F] = P.split(`${S}`);
9835
- if (h) {
9836
- const X = T(h.trim()), A = F ? T(F.trim()) : null;
9834
+ const { rangeSeparator: S } = o.value, [p, F] = P.split(`${S}`);
9835
+ if (p) {
9836
+ const X = T(p.trim()), A = F ? T(F.trim()) : null;
9837
9837
  if (Pn(X, A)) return;
9838
9838
  const ue = X && A ? [X, A] : [X];
9839
9839
  b(A, ue, 0) && (_.value = X ? ue : null);
@@ -9845,18 +9845,18 @@ const J0 = ({
9845
9845
  N(P);
9846
9846
  else if (u.value.enabled) {
9847
9847
  const S = P.split(";");
9848
- _.value = S.map((h) => T(h.trim())).filter((h) => h);
9848
+ _.value = S.map((p) => T(p.trim())).filter((p) => p);
9849
9849
  } else
9850
9850
  _.value = T(P);
9851
9851
  }, K = (P) => {
9852
9852
  var S;
9853
- const h = typeof P == "string" ? P : (S = P.target) == null ? void 0 : S.value;
9854
- h !== "" ? (o.value.openMenu && !r.isMenuOpen && a("open"), I(h), a("set-input-date", _.value)) : H(), g.value = !1, a("update:input-value", h), a("text-input", P, _.value);
9853
+ const p = typeof P == "string" ? P : (S = P.target) == null ? void 0 : S.value;
9854
+ p !== "" ? (o.value.openMenu && !r.isMenuOpen && a("open"), I(p), a("set-input-date", _.value)) : H(), g.value = !1, a("update:input-value", p), a("text-input", P, _.value);
9855
9855
  }, de = (P) => {
9856
9856
  o.value.enabled ? (I(P.target.value), o.value.enterSubmit && Tr(_.value) && r.inputValue !== "" ? (a("set-input-date", _.value, !0), _.value = null) : o.value.enterSubmit && r.inputValue === "" && (_.value = null, a("clear"))) : L(P);
9857
9857
  }, pe = (P, S) => {
9858
- var h;
9859
- B.value && S && !x.value && (P.preventDefault(), x.value = !0, (h = B.value) == null || h.focus()), o.value.enabled && o.value.tabSubmit && I(P.target.value), o.value.tabSubmit && Tr(_.value) && r.inputValue !== "" ? (a("set-input-date", _.value, !0, !0), _.value = null) : o.value.tabSubmit && r.inputValue === "" && (_.value = null, a("clear", !0));
9858
+ var p;
9859
+ B.value && S && !x.value && (P.preventDefault(), x.value = !0, (p = B.value) == null || p.focus()), o.value.enabled && o.value.tabSubmit && I(P.target.value), o.value.tabSubmit && Tr(_.value) && r.inputValue !== "" ? (a("set-input-date", _.value, !0, !0), _.value = null) : o.value.tabSubmit && r.inputValue === "" && (_.value = null, a("clear", !0));
9860
9860
  }, $ = () => {
9861
9861
  k.value = !0, a("focus"), Ke().then(() => {
9862
9862
  var P;
@@ -9882,13 +9882,13 @@ const J0 = ({
9882
9882
  }, le = (P) => {
9883
9883
  _.value = P;
9884
9884
  }, be = (P) => {
9885
- P.key === Ie.tab && (x.value = !1, pe(P));
9885
+ P.key === Be.tab && (x.value = !1, pe(P));
9886
9886
  };
9887
9887
  return n({
9888
9888
  focusInput: Q,
9889
9889
  setParsedDate: le
9890
9890
  }), (P, S) => {
9891
- var h, F;
9891
+ var p, F;
9892
9892
  return v(), M("div", { onClick: L }, [
9893
9893
  P.$slots.trigger && !P.$slots["dp-input"] && !w(l).enabled ? ie(P.$slots, "trigger", { key: 0 }) : q("", !0),
9894
9894
  !P.$slots.trigger && (!w(l).enabled || w(l).input) ? (v(), M("div", rh, [
@@ -9944,7 +9944,7 @@ const J0 = ({
9944
9944
  ])) : q("", !0),
9945
9945
  !P.$slots["input-icon"] && !P.hideInputIcon && !P.$slots["dp-input"] ? (v(), Me(w(Nn), {
9946
9946
  key: 1,
9947
- "aria-label": (h = w(s)) == null ? void 0 : h.calendarIcon,
9947
+ "aria-label": (p = w(s)) == null ? void 0 : p.calendarIcon,
9948
9948
  class: "dp__input_icon dp__input_icons",
9949
9949
  onClick: S[2] || (S[2] = (X) => a("toggle"))
9950
9950
  }, null, 8, ["aria-label"])) : q("", !0)
@@ -9963,7 +9963,7 @@ const J0 = ({
9963
9963
  onKeydown: S[5] || (S[5] = (X) => w(ft)(X, () => j(X), !0, be)),
9964
9964
  onClick: S[6] || (S[6] = Kt((X) => j(X), ["prevent"]))
9965
9965
  }, [
9966
- Fe(w(Js), {
9966
+ Ye(w(Js), {
9967
9967
  class: "dp__input_icons",
9968
9968
  "data-test": "clear-icon"
9969
9969
  })
@@ -9976,7 +9976,7 @@ const J0 = ({
9976
9976
  }, dh = (e) => Go() ? (Zo(e), !0) : !1, ch = (e, n, t, a) => {
9977
9977
  if (!e) return mr;
9978
9978
  let r = mr;
9979
- const o = Be(
9979
+ const o = Fe(
9980
9980
  () => w(e),
9981
9981
  (l) => {
9982
9982
  r(), l && (l.addEventListener(n, t, a), r = () => {
@@ -10030,7 +10030,7 @@ const J0 = ({
10030
10030
  "text-input"
10031
10031
  ],
10032
10032
  setup(e, { expose: n, emit: t }) {
10033
- const a = t, r = e, o = yn(), s = Y(!1), l = Un(r, "modelValue"), i = Un(r, "timezone"), c = Y(null), u = Y(null), d = Y(null), f = Y(!1), p = Y(null), b = Y(!1), _ = Y(!1), D = Y(!1), k = Y(!1), { setMenuFocused: x, setShiftKey: g } = fl(), { clearArrowNav: B } = rn(), { validateDate: ae, isValidTime: H } = on(r), {
10033
+ const a = t, r = e, o = yn(), s = Y(!1), l = Un(r, "modelValue"), i = Un(r, "timezone"), c = Y(null), u = Y(null), d = Y(null), f = Y(!1), h = Y(null), b = Y(!1), _ = Y(!1), D = Y(!1), k = Y(!1), { setMenuFocused: x, setShiftKey: g } = fl(), { clearArrowNav: B } = rn(), { validateDate: ae, isValidTime: H } = on(r), {
10034
10034
  defaultedTransitions: T,
10035
10035
  defaultedTextInput: N,
10036
10036
  defaultedInline: E,
@@ -10038,22 +10038,22 @@ const J0 = ({
10038
10038
  defaultedRange: K,
10039
10039
  defaultedMultiDates: de
10040
10040
  } = qe(r), { menuTransition: pe, showTransition: $ } = ra(T);
10041
- Ye(() => {
10041
+ Le(() => {
10042
10042
  F(r.modelValue), Ke().then(() => {
10043
10043
  if (!E.value.enabled) {
10044
- const z = be(p.value);
10044
+ const z = be(h.value);
10045
10045
  z == null || z.addEventListener("scroll", ne), window == null || window.addEventListener("resize", U);
10046
10046
  }
10047
10047
  }), E.value.enabled && (s.value = !0), window == null || window.addEventListener("keyup", Ae), window == null || window.addEventListener("keydown", R);
10048
10048
  }), Jn(() => {
10049
10049
  if (!E.value.enabled) {
10050
- const z = be(p.value);
10050
+ const z = be(h.value);
10051
10051
  z == null || z.removeEventListener("scroll", ne), window == null || window.removeEventListener("resize", U);
10052
10052
  }
10053
10053
  window == null || window.removeEventListener("keyup", Ae), window == null || window.removeEventListener("keydown", R);
10054
10054
  });
10055
10055
  const L = _t(o, "all", r.presetDates), C = _t(o, "input");
10056
- Be(
10056
+ Fe(
10057
10057
  [l, i],
10058
10058
  () => {
10059
10059
  F(l.value);
@@ -10064,14 +10064,14 @@ const J0 = ({
10064
10064
  menuRef: c,
10065
10065
  menuRefInner: u,
10066
10066
  inputRef: d,
10067
- pickerWrapperRef: p,
10067
+ pickerWrapperRef: h,
10068
10068
  inline: E,
10069
10069
  emit: a,
10070
10070
  props: r,
10071
10071
  slots: o
10072
10072
  }), {
10073
10073
  inputValue: S,
10074
- internalModelValue: h,
10074
+ internalModelValue: p,
10075
10075
  parseExternalModelValue: F,
10076
10076
  emitModelValue: X,
10077
10077
  formatInputValue: A,
@@ -10099,7 +10099,7 @@ const J0 = ({
10099
10099
  const re = (z = u.value) == null ? void 0 : z.$el.getBoundingClientRect().width;
10100
10100
  D.value = document.body.offsetWidth <= re;
10101
10101
  }, Ae = (z) => {
10102
- z.key === "Tab" && !E.value.enabled && !r.teleport && I.value.tabOutClosesMenu && (p.value.contains(document.activeElement) || wt()), _.value = z.shiftKey;
10102
+ z.key === "Tab" && !E.value.enabled && !r.teleport && I.value.tabOutClosesMenu && (h.value.contains(document.activeElement) || wt()), _.value = z.shiftKey;
10103
10103
  }, R = (z) => {
10104
10104
  _.value = z.shiftKey;
10105
10105
  }, ee = () => {
@@ -10108,38 +10108,38 @@ const J0 = ({
10108
10108
  var z;
10109
10109
  S.value = "", Fn(), (z = d.value) == null || z.setParsedDate(null), a("update:model-value", null), a("update:model-timezone-value", null), a("cleared"), I.value.closeOnClearValue && wt();
10110
10110
  }, Te = () => {
10111
- const z = h.value;
10111
+ const z = p.value;
10112
10112
  return !z || !Array.isArray(z) && ae(z) ? !0 : Array.isArray(z) ? de.value.enabled || z.length === 2 && ae(z[0]) && ae(z[1]) ? !0 : K.value.partialRange && !r.timePicker ? ae(z[0]) : !1 : !1;
10113
10113
  }, xt = () => {
10114
- ue() && Te() ? (X(), wt()) : a("invalid-select", h.value);
10114
+ ue() && Te() ? (X(), wt()) : a("invalid-select", p.value);
10115
10115
  }, we = (z) => {
10116
10116
  zt(), X(), I.value.closeOnAutoApply && !z && wt();
10117
10117
  }, zt = () => {
10118
- d.value && N.value.enabled && d.value.setParsedDate(h.value);
10118
+ d.value && N.value.enabled && d.value.setParsedDate(p.value);
10119
10119
  }, Et = (z = !1) => {
10120
- r.autoApply && H(h.value) && Te() && (K.value.enabled && Array.isArray(h.value) ? (K.value.partialRange || h.value.length === 2) && we(z) : we(z));
10120
+ r.autoApply && H(p.value) && Te() && (K.value.enabled && Array.isArray(p.value) ? (K.value.partialRange || p.value.length === 2) && we(z) : we(z));
10121
10121
  }, Fn = () => {
10122
- N.value.enabled || (h.value = null);
10122
+ N.value.enabled || (p.value = null);
10123
10123
  }, wt = () => {
10124
10124
  E.value.enabled || (s.value && (s.value = !1, Q.value = !1, x(!1), g(!1), B(), a("closed"), S.value && F(l.value)), Fn(), a("blur"));
10125
10125
  }, Yn = (z, re, ce = !1) => {
10126
10126
  if (!z) {
10127
- h.value = null;
10127
+ p.value = null;
10128
10128
  return;
10129
10129
  }
10130
10130
  const dt = Array.isArray(z) ? !z.some((sn) => !ae(sn)) : ae(z), At = H(z);
10131
- dt && At && (k.value = !0, h.value = z, re && (b.value = ce, xt(), a("text-submit")), Ke().then(() => {
10131
+ dt && At && (k.value = !0, p.value = z, re && (b.value = ce, xt(), a("text-submit")), Ke().then(() => {
10132
10132
  k.value = !1;
10133
10133
  }));
10134
10134
  }, Wa = () => {
10135
- r.autoApply && H(h.value) && X(), zt();
10135
+ r.autoApply && H(p.value) && X(), zt();
10136
10136
  }, da = () => s.value ? wt() : ee(), Ha = (z) => {
10137
- h.value = z;
10137
+ p.value = z;
10138
10138
  }, ja = () => {
10139
10139
  N.value.enabled && (f.value = !0, A()), a("focus");
10140
10140
  }, za = () => {
10141
10141
  if (N.value.enabled && (f.value = !1, F(r.modelValue), b.value)) {
10142
- const z = wm(p.value, _.value);
10142
+ const z = wm(h.value, _.value);
10143
10143
  z == null || z.focus();
10144
10144
  }
10145
10145
  a("blur");
@@ -10175,11 +10175,11 @@ const J0 = ({
10175
10175
  dpWrapMenuRef: c
10176
10176
  }), (z, re) => (v(), M("div", {
10177
10177
  ref_key: "pickerWrapperRef",
10178
- ref: p,
10178
+ ref: h,
10179
10179
  class: me(ke.value),
10180
10180
  "data-datepicker-instance": ""
10181
10181
  }, [
10182
- Fe(ih, et({
10182
+ Ye(ih, et({
10183
10183
  ref_key: "inputRef",
10184
10184
  ref: d,
10185
10185
  "input-value": w(S),
@@ -10207,7 +10207,7 @@ const J0 = ({
10207
10207
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
10208
10208
  (v(), Me(Da(z.teleport ? Bl : "div"), tt(vt(W.value)), {
10209
10209
  default: ve(() => [
10210
- Fe(gn, {
10210
+ Ye(gn, {
10211
10211
  name: w(pe)(w(j)),
10212
10212
  css: w($) && !w(E).enabled
10213
10213
  }, {
@@ -10220,12 +10220,12 @@ const J0 = ({
10220
10220
  class: { "dp--menu-wrapper": !w(E).enabled },
10221
10221
  style: w(E).enabled ? void 0 : w(se)
10222
10222
  }), [
10223
- Fe(Fo, et({
10223
+ Ye(Fo, et({
10224
10224
  ref_key: "dpMenuRef",
10225
10225
  ref: u
10226
10226
  }, z.$props, {
10227
- "internal-model-value": w(h),
10228
- "onUpdate:internalModelValue": re[3] || (re[3] = (ce) => to(h) ? h.value = ce : null),
10227
+ "internal-model-value": w(p),
10228
+ "onUpdate:internalModelValue": re[3] || (re[3] = (ce) => to(p) ? p.value = ce : null),
10229
10229
  class: { [Ge.value]: !0, "dp--menu-wrapper": z.teleport },
10230
10230
  "open-on-top": w(j),
10231
10231
  "no-overlay-focus": y.value,
@@ -10238,7 +10238,7 @@ const J0 = ({
10238
10238
  onTimeUpdate: Wa,
10239
10239
  onFlowStep: re[4] || (re[4] = (ce) => z.$emit("flow-step", ce)),
10240
10240
  onUpdateMonthYear: re[5] || (re[5] = (ce) => z.$emit("update-month-year", ce)),
10241
- onInvalidSelect: re[6] || (re[6] = (ce) => z.$emit("invalid-select", w(h))),
10241
+ onInvalidSelect: re[6] || (re[6] = (ce) => z.$emit("invalid-select", w(p))),
10242
10242
  onAutoApplyInvalid: re[7] || (re[7] = (ce) => z.$emit("invalid-select", ce)),
10243
10243
  onInvalidFixedRange: re[8] || (re[8] = (ce) => z.$emit("invalid-fixed-range", ce)),
10244
10244
  onRecalculatePosition: w(le),
@@ -10377,7 +10377,7 @@ const bl = /* @__PURE__ */ pt(ph, [["render", Th], ["__scopeId", "data-v-0106638
10377
10377
  return (a, r) => (v(), M("div", Ph, [
10378
10378
  m("div", Sh, [
10379
10379
  Ch,
10380
- Fe(w(sa), {
10380
+ Ye(w(sa), {
10381
10381
  format: "HH:mm",
10382
10382
  "auto-apply": "true",
10383
10383
  "time-picker": !0,
@@ -10525,7 +10525,7 @@ const Ih = () => {
10525
10525
  },
10526
10526
  chat_id: t.currentChat.id || null
10527
10527
  });
10528
- Ye(() => {
10528
+ Le(() => {
10529
10529
  t.event ? (s.value = t.event.params, o.value = "patch") : s.value.schedule.time = u(
10530
10530
  t.date,
10531
10531
  s.value.schedule.time
@@ -10539,12 +10539,12 @@ const Ih = () => {
10539
10539
  }
10540
10540
  Y(null);
10541
10541
  function c(f) {
10542
- const p = f.getFullYear(), b = String(f.getMonth() + 1).padStart(2, "0"), _ = String(f.getDate()).padStart(2, "0"), D = String(f.getHours()).padStart(2, "0"), k = String(f.getMinutes()).padStart(2, "0");
10543
- return `${p}-${b}-${_} ${D}:${k}`;
10542
+ const h = f.getFullYear(), b = String(f.getMonth() + 1).padStart(2, "0"), _ = String(f.getDate()).padStart(2, "0"), D = String(f.getHours()).padStart(2, "0"), k = String(f.getMinutes()).padStart(2, "0");
10543
+ return `${h}-${b}-${_} ${D}:${k}`;
10544
10544
  }
10545
- function u(f, p) {
10545
+ function u(f, h) {
10546
10546
  const b = new Date(f);
10547
- return b.setHours(p.hours), b.setMinutes(p.minutes), b.setSeconds(p.seconds || 0), c(b);
10547
+ return b.setHours(h.hours), b.setMinutes(h.minutes), b.setSeconds(h.seconds || 0), c(b);
10548
10548
  }
10549
10549
  async function d() {
10550
10550
  a.value = !0;
@@ -10554,7 +10554,7 @@ const Ih = () => {
10554
10554
  t.date,
10555
10555
  f.schedule.time
10556
10556
  );
10557
- const p = await je[o.value](
10557
+ const h = await je[o.value](
10558
10558
  `http://localhost:8000/v1/api/crm/event/scheduled_message/${s.value.event_id ? `${s.value.event_id}/` : ""}`,
10559
10559
  {
10560
10560
  ...f
@@ -10566,7 +10566,7 @@ const Ih = () => {
10566
10566
  }
10567
10567
  );
10568
10568
  Io(
10569
- { group: "success", title: "Sucesso", text: p.data.message },
10569
+ { group: "success", title: "Sucesso", text: h.data.message },
10570
10570
  2e3
10571
10571
  ), r("close", !1);
10572
10572
  } catch (f) {
@@ -10578,13 +10578,13 @@ const Ih = () => {
10578
10578
  a.value = !1;
10579
10579
  }
10580
10580
  }
10581
- return (f, p) => {
10581
+ return (f, h) => {
10582
10582
  const b = Ma("Popper");
10583
10583
  return v(), M("div", qh, [
10584
10584
  rt(ge(s.value.schedule.time) + " ", 1),
10585
10585
  m("div", Wh, [
10586
10586
  Hh,
10587
- Fe(w(sa), {
10587
+ Ye(w(sa), {
10588
10588
  "auto-apply": "true",
10589
10589
  "time-picker": !0,
10590
10590
  locale: "pt-BR",
@@ -10595,7 +10595,7 @@ const Ih = () => {
10595
10595
  "text-input": "",
10596
10596
  dark: e.theme,
10597
10597
  modelValue: s.value.schedule.time,
10598
- "onUpdate:modelValue": p[0] || (p[0] = (_) => s.value.schedule.time = _)
10598
+ "onUpdate:modelValue": h[0] || (h[0] = (_) => s.value.schedule.time = _)
10599
10599
  }, {
10600
10600
  "clear-icon": ve(({ clear: _ }) => []),
10601
10601
  _: 1
@@ -10608,7 +10608,7 @@ const Ih = () => {
10608
10608
  ref_key: "textareaRef",
10609
10609
  ref: l,
10610
10610
  autofocus: "",
10611
- "onUpdate:modelValue": p[1] || (p[1] = (_) => s.value.message[0].content = _),
10611
+ "onUpdate:modelValue": h[1] || (h[1] = (_) => s.value.message[0].content = _),
10612
10612
  placeholder: "Olá cliente, tudo bem?",
10613
10613
  class: "input bg-base-200"
10614
10614
  }, null, 512), [
@@ -10618,7 +10618,7 @@ const Ih = () => {
10618
10618
  e.currentChat.contact && e.currentChat.contact.segmentation_fields.length > 0 ? (v(), M("div", Vh, [
10619
10619
  m("div", Uh, [
10620
10620
  rt(" Campos personalizáveis disponíveis "),
10621
- Fe(b, {
10621
+ Ye(b, {
10622
10622
  placement: "top",
10623
10623
  arrow: !0,
10624
10624
  hover: !0,
@@ -10646,7 +10646,7 @@ const Ih = () => {
10646
10646
  m("p", null, ge(s.value.fileName), 1),
10647
10647
  m("div", Jh, [
10648
10648
  m("button", {
10649
- onClick: p[2] || (p[2] = (_) => s.value.file = ""),
10649
+ onClick: h[2] || (h[2] = (_) => s.value.file = ""),
10650
10650
  class: "file-remove-button"
10651
10651
  }, tp)
10652
10652
  ])
@@ -10702,7 +10702,7 @@ const Ih = () => {
10702
10702
  name: "Lembrete"
10703
10703
  }
10704
10704
  ], a = Y("reminders"), r = Y(null), o = e;
10705
- Ye(() => {
10705
+ Le(() => {
10706
10706
  o.currentEvent && (a.value = o.currentEvent.function);
10707
10707
  });
10708
10708
  const s = n;
@@ -10711,12 +10711,12 @@ const Ih = () => {
10711
10711
  return u.toLocaleDateString("pt-BR", d);
10712
10712
  }
10713
10713
  const i = Y(o.modal);
10714
- Be(
10714
+ Fe(
10715
10715
  () => o.modal,
10716
10716
  (u) => {
10717
10717
  i.value = u;
10718
10718
  }
10719
- ), Be(i, (u) => {
10719
+ ), Fe(i, (u) => {
10720
10720
  u || s("close");
10721
10721
  });
10722
10722
  function c(u) {
@@ -10888,7 +10888,7 @@ const Ih = () => {
10888
10888
  const E = { day: "numeric", month: "long", year: "numeric" };
10889
10889
  n.value.date = N.date.toLocaleDateString("pt-BR", E);
10890
10890
  }
10891
- const l = e, i = /* @__PURE__ */ new Date(), c = Y(i.getMonth()), u = Y(i.getFullYear()), d = Y(new Date(u.value, c.value)), f = Y([]), p = (N) => {
10891
+ const l = e, i = /* @__PURE__ */ new Date(), c = Y(i.getMonth()), u = Y(i.getFullYear()), d = Y(new Date(u.value, c.value)), f = Y([]), h = (N) => {
10892
10892
  N && typeof N.year == "number" && typeof N.month == "number" ? (c.value = N.month, u.value = N.year, ae()) : console.error("Data inválida selecionada:", N);
10893
10893
  }, b = new Array(7).fill(null).map((N, E) => {
10894
10894
  const I = new Date(2021, 0, E + 3);
@@ -10974,7 +10974,7 @@ const Ih = () => {
10974
10974
  }, B = Y([]), ae = () => {
10975
10975
  B.value = g(u.value, c.value);
10976
10976
  };
10977
- Ye(async () => {
10977
+ Le(async () => {
10978
10978
  await k(), ae();
10979
10979
  });
10980
10980
  const H = () => {
@@ -10993,7 +10993,7 @@ const Ih = () => {
10993
10993
  class: "calendar-button"
10994
10994
  }, wp),
10995
10995
  m("div", null, [
10996
- Fe(w(sa), {
10996
+ Ye(w(sa), {
10997
10997
  dark: e.theme,
10998
10998
  "cancel-text": "Cancelar",
10999
10999
  "select-text": "Selecionar",
@@ -11001,7 +11001,7 @@ const Ih = () => {
11001
11001
  modelValue: d.value,
11002
11002
  "onUpdate:modelValue": [
11003
11003
  E[0] || (E[0] = (K) => d.value = K),
11004
- p
11004
+ h
11005
11005
  ],
11006
11006
  format: _,
11007
11007
  "only-month-picker": !0,
@@ -11048,7 +11048,7 @@ const Ih = () => {
11048
11048
  class: "event"
11049
11049
  }, [
11050
11050
  m("main", Sp, [
11051
- Fe(I, {
11051
+ Ye(I, {
11052
11052
  placement: "top",
11053
11053
  class: "dark:popper-light popper-dark",
11054
11054
  hover: !0,
@@ -11066,7 +11066,7 @@ const Ih = () => {
11066
11066
  ], 2))), 128))
11067
11067
  ])
11068
11068
  ]),
11069
- Fe(bl, {
11069
+ Ye(bl, {
11070
11070
  modelValue: n.value.seeEvents,
11071
11071
  "onUpdate:modelValue": E[1] || (E[1] = (K) => n.value.seeEvents = K)
11072
11072
  }, {
@@ -11118,7 +11118,7 @@ const Ih = () => {
11118
11118
  },
11119
11119
  emits: ["filled", "reset"],
11120
11120
  setup(e, { emit: n }) {
11121
- Ye(() => {
11121
+ Le(() => {
11122
11122
  r.value[0].focus();
11123
11123
  });
11124
11124
  const t = n, a = Y(Array(6).fill("")), r = Y([]);
@@ -11139,15 +11139,15 @@ const Ih = () => {
11139
11139
  m("div", zp, [
11140
11140
  (v(!0), M(_e, null, Pe(a.value, (d, f) => mt((v(), M("input", {
11141
11141
  key: f,
11142
- "onUpdate:modelValue": (p) => a.value[f] = p,
11142
+ "onUpdate:modelValue": (h) => a.value[f] = h,
11143
11143
  class: me([
11144
11144
  e.eventHandling === "check" ? "checked_mfa" : e.eventHandling === "err" ? "err_mfa" : "reset_input",
11145
11145
  "inline-block w-10 h-10 rounded-md text-center"
11146
11146
  ]),
11147
11147
  type: "text",
11148
11148
  maxlength: "1",
11149
- onInput: (p) => o(f),
11150
- onKeydown: Ko((p) => l(f, p), ["backspace"]),
11149
+ onInput: (h) => o(f),
11150
+ onKeydown: Ko((h) => l(f, h), ["backspace"]),
11151
11151
  ref_for: !0,
11152
11152
  ref_key: "inputs",
11153
11153
  ref: r
@@ -11300,12 +11300,12 @@ function o1() {
11300
11300
  if (!u) return;
11301
11301
  const d = e.attendants.find(
11302
11302
  (f) => {
11303
- var p;
11304
- return ((p = f.internal_chat) == null ? void 0 : p.channel_id) === u.channel_id;
11303
+ var h;
11304
+ return ((h = f.internal_chat) == null ? void 0 : h.channel_id) === u.channel_id;
11305
11305
  }
11306
11306
  );
11307
11307
  d ? (d.messages = d.messages || [], d.messages.find(
11308
- (p) => p.id === u.id
11308
+ (h) => h.id === u.id
11309
11309
  ) || (d.messages.push(u), (!i || d.id !== c) && (d.internal_chat.unread = (d.internal_chat.unread || 0) + 1))) : console.error("Atendente não encontrado para o canal especificado.");
11310
11310
  }, r = (l) => {
11311
11311
  const i = e.attendants.find(
@@ -11315,7 +11315,7 @@ function o1() {
11315
11315
  }, o = async (l, i, c) => {
11316
11316
  var f;
11317
11317
  const u = e.attendants.find(
11318
- (p) => p.id === l
11318
+ (h) => h.id === l
11319
11319
  );
11320
11320
  if (!u || !((f = u.internal_chat) != null && f.channel_id)) return;
11321
11321
  const d = {
@@ -11333,8 +11333,8 @@ function o1() {
11333
11333
  content: d.content
11334
11334
  }
11335
11335
  );
11336
- } catch (p) {
11337
- console.error("Erro ao enviar mensagem:", p);
11336
+ } catch (h) {
11337
+ console.error("Erro ao enviar mensagem:", h);
11338
11338
  }
11339
11339
  }, s = (l) => {
11340
11340
  const i = e.attendants.find(
@@ -11429,7 +11429,7 @@ const s1 = (e) => (it("data-v-7d8b2820"), e = e(), ut(), e), l1 = { class: "avat
11429
11429
  class: me([["atendente-item", u.isMoved ? "moved" : ""], "border-b even:bg-base-300 bg-blue-400/10 border-base-200 hover:bg-base-200 relative"])
11430
11430
  }, [
11431
11431
  m("main", y1, [
11432
- Fe(xl, {
11432
+ Ye(xl, {
11433
11433
  url: u.photo
11434
11434
  }, null, 8, ["url"]),
11435
11435
  m("span", g1, ge(u.name), 1)
@@ -11505,9 +11505,9 @@ const N1 = /* @__PURE__ */ Ml(P1, [["render", R1], ["__scopeId", "data-v-d3e3763
11505
11505
  distance: c,
11506
11506
  parentEl: null,
11507
11507
  emit() {
11508
- r = (f.parentEl || document.documentElement).scrollHeight, p.loading(), n("infinite", p);
11508
+ r = (f.parentEl || document.documentElement).scrollHeight, h.loading(), n("infinite", h);
11509
11509
  }
11510
- }, p = {
11510
+ }, h = {
11511
11511
  loading() {
11512
11512
  s.value = "loading";
11513
11513
  },
@@ -11524,7 +11524,7 @@ const N1 = /* @__PURE__ */ Ml(P1, [["render", R1], ["__scopeId", "data-v-d3e3763
11524
11524
  function b() {
11525
11525
  a == null || a.disconnect(), a = T1(f);
11526
11526
  }
11527
- return Be(u, b), Ye(async () => {
11527
+ return Fe(u, b), Le(async () => {
11528
11528
  f.parentEl = await D1(d), b();
11529
11529
  }), Jn(() => a == null ? void 0 : a.disconnect()), (_, D) => (v(), M("div", {
11530
11530
  ref_key: "infiniteLoading",
@@ -11533,7 +11533,7 @@ const N1 = /* @__PURE__ */ Ml(P1, [["render", R1], ["__scopeId", "data-v-d3e3763
11533
11533
  }, [
11534
11534
  mt(m("div", null, [
11535
11535
  ie(_.$slots, "spinner", {}, () => [
11536
- Fe(N1)
11536
+ Ye(N1)
11537
11537
  ], !0)
11538
11538
  ], 512), [
11539
11539
  [jn, s.value == "loading"]
@@ -12091,8 +12091,8 @@ function Mv(e, n) {
12091
12091
  return Math.round(a / Dl) + 1;
12092
12092
  }
12093
12093
  function Cl(e, n) {
12094
- var u, d, f, p;
12095
- const t = Dt(e, n == null ? void 0 : n.in), a = t.getFullYear(), r = Ia(), o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = kt((n == null ? void 0 : n.in) || e, 0);
12094
+ var u, d, f, h;
12095
+ const t = Dt(e, n == null ? void 0 : n.in), a = t.getFullYear(), r = Ia(), o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = kt((n == null ? void 0 : n.in) || e, 0);
12096
12096
  s.setFullYear(a + 1, 0, o), s.setHours(0, 0, 0, 0);
12097
12097
  const l = vn(s, n), i = kt((n == null ? void 0 : n.in) || e, 0);
12098
12098
  i.setFullYear(a, 0, o), i.setHours(0, 0, 0, 0);
@@ -12738,8 +12738,8 @@ function Fv(e, n, t) {
12738
12738
  }
12739
12739
  const Yv = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Lv = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Iv = /^'([^]*?)'?$/, Bv = /''/g, qv = /[a-zA-Z]/;
12740
12740
  function Qo(e, n, t) {
12741
- var u, d, f, p, b, _, D, k;
12742
- const a = Ia(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? xv, 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 ?? ((p = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (b = t == null ? void 0 : t.locale) == null ? void 0 : b.options) == null ? void 0 : _.weekStartsOn) ?? a.weekStartsOn ?? ((k = (D = a.locale) == null ? void 0 : D.options) == null ? void 0 : k.weekStartsOn) ?? 0, l = Dt(e, t == null ? void 0 : t.in);
12741
+ var u, d, f, h, b, _, D, k;
12742
+ const a = Ia(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? xv, 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 ?? ((h = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (b = t == null ? void 0 : t.locale) == null ? void 0 : b.options) == null ? void 0 : _.weekStartsOn) ?? a.weekStartsOn ?? ((k = (D = a.locale) == null ? void 0 : D.options) == null ? void 0 : k.weekStartsOn) ?? 0, l = Dt(e, t == null ? void 0 : t.in);
12743
12743
  if (!j1(l))
12744
12744
  throw new RangeError("Invalid time value");
12745
12745
  let i = n.match(Lv).map((x) => {
@@ -13254,7 +13254,7 @@ const Qv = {
13254
13254
  top: a.value.scrollHeight,
13255
13255
  behavior: "instant"
13256
13256
  });
13257
- }, p = async (k) => {
13257
+ }, h = async (k) => {
13258
13258
  try {
13259
13259
  if (!l.value) {
13260
13260
  k.complete();
@@ -13284,11 +13284,11 @@ const Qv = {
13284
13284
  k.classList.remove("clicked");
13285
13285
  }, 200);
13286
13286
  };
13287
- Ye(async () => {
13287
+ Le(async () => {
13288
13288
  await Ke(() => {
13289
13289
  f(), r.value = !0;
13290
13290
  });
13291
- }), Be(
13291
+ }), Fe(
13292
13292
  () => {
13293
13293
  var k;
13294
13294
  return (k = s.value) == null ? void 0 : k.length;
@@ -13312,7 +13312,7 @@ const Qv = {
13312
13312
  onClick: x[0] || (x[0] = (g) => k.$emit("voltar")),
13313
13313
  class: "back-button"
13314
13314
  }, Dy),
13315
- Fe(xl, {
13315
+ Ye(xl, {
13316
13316
  url: e.selectedAtendente.photo
13317
13317
  }, null, 8, ["url"]),
13318
13318
  m("h3", Ty, ge(e.selectedAtendente.name), 1)
@@ -13324,7 +13324,7 @@ const Qv = {
13324
13324
  }, [
13325
13325
  !o.value && l.value && r.value ? (v(), Me(w(Y1), {
13326
13326
  key: 0,
13327
- onInfinite: p,
13327
+ onInfinite: h,
13328
13328
  distance: 30,
13329
13329
  top: !0,
13330
13330
  direction: "top",
@@ -13511,10 +13511,10 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13511
13511
  loadMessagesForAtendente: i,
13512
13512
  resetUnreadMessages: c,
13513
13513
  loadingAttendants: u
13514
- } = o1(), d = Y(!1), f = Y(!1), p = Y(null), b = Y(null), _ = G(() => {
13515
- if (p.value) {
13514
+ } = o1(), d = Y(!1), f = Y(!1), h = Y(null), b = Y(null), _ = G(() => {
13515
+ if (h.value) {
13516
13516
  const T = t.value.find(
13517
- (N) => N.id === p.value.id
13517
+ (N) => N.id === h.value.id
13518
13518
  );
13519
13519
  return T ? T.internal_chat.unread : 0;
13520
13520
  }
@@ -13522,7 +13522,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13522
13522
  }), D = (T) => {
13523
13523
  b.value && !b.value.contains(T.target) && d.value && B();
13524
13524
  };
13525
- Ye(() => {
13525
+ Le(() => {
13526
13526
  document.addEventListener("click", D);
13527
13527
  }), zl(() => {
13528
13528
  document.removeEventListener("click", D);
@@ -13551,19 +13551,19 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13551
13551
  }, ae = () => {
13552
13552
  d.value || B();
13553
13553
  }, H = async (T) => {
13554
- p.value = T, c(T.id), T.hasNextPage || await r(T.id);
13554
+ h.value = T, c(T.id), T.hasNextPage || await r(T.id);
13555
13555
  };
13556
- return Be(
13556
+ return Fe(
13557
13557
  () => n.socketMessage,
13558
13558
  (T, N) => {
13559
13559
  var E;
13560
13560
  T !== N && o(
13561
13561
  T,
13562
13562
  d.value,
13563
- (E = p.value) == null ? void 0 : E.id
13563
+ (E = h.value) == null ? void 0 : E.id
13564
13564
  );
13565
13565
  }
13566
- ), Be(d, (T) => {
13566
+ ), Fe(d, (T) => {
13567
13567
  T && setTimeout(() => {
13568
13568
  f.value = !0;
13569
13569
  }, 400);
@@ -13590,24 +13590,24 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13590
13590
  _.value > 0 ? (v(), M("span", Xy, ge(_.value), 1)) : q("", !0),
13591
13591
  Gy
13592
13592
  ])),
13593
- Fe(gn, { name: "fade" }, {
13593
+ Ye(gn, { name: "fade" }, {
13594
13594
  default: ve(() => [
13595
13595
  d.value && !x.value ? (v(), M("div", Zy, [
13596
13596
  m("button", {
13597
13597
  onClick: Kt(B, ["stop"]),
13598
13598
  class: "close-button"
13599
13599
  }, Jy),
13600
- w(a) || w(u) ? (v(), Me(jy, { key: 0 })) : p.value && !w(a) ? (v(), M("div", eg, [
13601
- Fe(Yy, {
13600
+ w(a) || w(u) ? (v(), Me(jy, { key: 0 })) : h.value && !w(a) ? (v(), M("div", eg, [
13601
+ Ye(Yy, {
13602
13602
  attendant: e.attendant,
13603
- selectedAtendente: p.value,
13604
- onVoltar: N[0] || (N[0] = (E) => p.value = null),
13603
+ selectedAtendente: h.value,
13604
+ onVoltar: N[0] || (N[0] = (E) => h.value = null),
13605
13605
  loadMessagesForAtendente: w(i),
13606
13606
  sendMessageToAtendente: w(l),
13607
13607
  hasNextPageForAtendente: w(s)
13608
13608
  }, null, 8, ["attendant", "selectedAtendente", "loadMessagesForAtendente", "sendMessageToAtendente", "hasNextPageForAtendente"])
13609
13609
  ])) : q("", !0),
13610
- !p.value && !w(u) ? (v(), Me(A1, {
13610
+ !h.value && !w(u) ? (v(), Me(A1, {
13611
13611
  key: 2,
13612
13612
  attendant: e.attendant,
13613
13613
  atendentes: w(t),
@@ -13647,7 +13647,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13647
13647
  n !== -1 ? this.departments[n] = e : this.departments.push(e);
13648
13648
  }
13649
13649
  }
13650
- }), ua = (e) => (it("data-v-d5379a08"), e = e(), ut(), e), ng = { class: "depart-select-container" }, ag = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, rg = ["placeholder"], og = { class: "icon-container" }, sg = {
13650
+ }), ua = (e) => (it("data-v-301d61a1"), e = e(), ut(), e), ng = { class: "depart-select-container" }, ag = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, rg = ["placeholder"], og = { class: "icon-container" }, sg = {
13651
13651
  key: 0,
13652
13652
  xmlns: "http://www.w3.org/2000/svg",
13653
13653
  fill: "none",
@@ -13712,9 +13712,9 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13712
13712
  emits: ["depart", "component-mounted"],
13713
13713
  setup(e, { emit: n }) {
13714
13714
  const t = e, a = n, r = eo(), o = Y(""), s = Y([]), l = Y(!1), i = Y(!1), c = G(() => (t.externalDepartments || r.departments).filter((k) => !(t.hiddenDepartment && k.id === t.hiddenDepartment)).filter((k) => !o.value || k.name.toLowerCase().includes(o.value.toLowerCase())));
13715
- Ye(() => {
13715
+ Le(() => {
13716
13716
  f(), d(), a("component-mounted");
13717
- }), Be(
13717
+ }), Fe(
13718
13718
  () => t.modal_filter,
13719
13719
  () => {
13720
13720
  !t.modal_filter && t.multiSelect && (r.departments.forEach((D) => {
@@ -13722,7 +13722,13 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13722
13722
  }), s.value = []);
13723
13723
  },
13724
13724
  { immediate: !0 }
13725
- ), Be(
13725
+ ), Fe(
13726
+ () => r.departments,
13727
+ (D) => {
13728
+ f(), d();
13729
+ },
13730
+ { immediate: !0, deep: !0 }
13731
+ ), Fe(
13726
13732
  () => t.attDel,
13727
13733
  (D) => {
13728
13734
  D && u(D);
@@ -13738,14 +13744,14 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13738
13744
  ), t.externalDepartments ? t.externalDepartments.splice(x, 1) : r.removeDepartments(D), a("depart", s.value));
13739
13745
  }
13740
13746
  async function d() {
13741
- i.value = !0, p(), i.value = !1;
13747
+ i.value = !0, h(), i.value = !1;
13742
13748
  }
13743
13749
  function f() {
13744
13750
  (t.externalDepartments || r.departments).forEach((k) => {
13745
13751
  k.selected = !1;
13746
13752
  }), s.value = [];
13747
13753
  }
13748
- function p() {
13754
+ function h() {
13749
13755
  const D = t.externalDepartments || r.departments;
13750
13756
  t.department && t.department.length > 0 && t.department.forEach((k) => {
13751
13757
  const x = D.find((g) => g.id === k.id);
@@ -13827,7 +13833,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13827
13833
  ])
13828
13834
  ]));
13829
13835
  }
13830
- }, Rl = /* @__PURE__ */ pt(Mg, [["__scopeId", "data-v-d5379a08"]]), qa = (e) => (it("data-v-b09c17a8"), e = e(), ut(), e), Dg = { class: "depart-select-container" }, Tg = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Pg = ["placeholder"], Sg = { class: "icon-container" }, Cg = {
13836
+ }, Rl = /* @__PURE__ */ pt(Mg, [["__scopeId", "data-v-301d61a1"]]), qa = (e) => (it("data-v-92fea944"), e = e(), ut(), e), Dg = { class: "depart-select-container" }, Tg = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Pg = ["placeholder"], Sg = { class: "icon-container" }, Cg = {
13831
13837
  key: 0,
13832
13838
  xmlns: "http://www.w3.org/2000/svg",
13833
13839
  fill: "none",
@@ -13918,15 +13924,21 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13918
13924
  )
13919
13925
  ) : D;
13920
13926
  }
13921
- Ye(() => {
13922
- f(), p(), a("component-mounted");
13923
- }), Be(
13927
+ Le(() => {
13928
+ f(), h(), a("component-mounted");
13929
+ }), Fe(
13924
13930
  () => t.modal_filter,
13925
13931
  () => {
13926
13932
  !t.modal_filter && t.multiSelect && f();
13927
13933
  },
13928
13934
  { immediate: !0 }
13929
- ), Be(
13935
+ ), Fe(
13936
+ () => r.attendants,
13937
+ (D) => {
13938
+ f(), h();
13939
+ },
13940
+ { immediate: !0, deep: !0 }
13941
+ ), Fe(
13930
13942
  () => t.department,
13931
13943
  () => {
13932
13944
  f();
@@ -13939,7 +13951,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13939
13951
  D.selected = !1;
13940
13952
  }), l.value = [];
13941
13953
  }
13942
- function p() {
13954
+ function h() {
13943
13955
  t.method === "remove" && t.attendance || t.attendance && t.attendance.length > 0 && t.attendance.forEach((D) => {
13944
13956
  const k = r.attendants.find(
13945
13957
  (x) => x.id === D.id
@@ -14019,7 +14031,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
14019
14031
  ])
14020
14032
  ]));
14021
14033
  }
14022
- }, Nl = /* @__PURE__ */ pt(Xg, [["__scopeId", "data-v-b09c17a8"]]), El = (e) => (it("data-v-1a1f2b13"), e = e(), ut(), e), Gg = { class: "" }, Zg = { class: "flex justify-between mb-3" }, Kg = /* @__PURE__ */ El(() => /* @__PURE__ */ m("svg", {
14034
+ }, Nl = /* @__PURE__ */ pt(Xg, [["__scopeId", "data-v-92fea944"]]), El = (e) => (it("data-v-1a1f2b13"), e = e(), ut(), e), Gg = { class: "" }, Zg = { class: "flex justify-between mb-3" }, Kg = /* @__PURE__ */ El(() => /* @__PURE__ */ m("svg", {
14023
14035
  class: "w-4 h-4 text-white",
14024
14036
  "aria-hidden": "true",
14025
14037
  xmlns: "http://www.w3.org/2000/svg",