sm-click-library-ui 0.0.164 → 0.0.165

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.
@@ -11,7 +11,7 @@ function Zo(e) {
11
11
  }
12
12
  const Ko = typeof window < "u" && typeof document < "u";
13
13
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
14
- const zl = Object.prototype.toString, Hl = (e) => zl.call(e) === "[object Object]", hn = () => {
14
+ const Hl = Object.prototype.toString, zl = (e) => Hl.call(e) === "[object Object]", hn = () => {
15
15
  }, Vl = /* @__PURE__ */ Ul();
16
16
  function Ul() {
17
17
  var e, a;
@@ -35,7 +35,7 @@ function Qn(...e) {
35
35
  ([i, c]) => {
36
36
  if (s(), !i)
37
37
  return;
38
- const d = Hl(c) ? { ...c } : c;
38
+ const d = zl(c) ? { ...c } : c;
39
39
  o.push(
40
40
  ...t.flatMap((f) => n.map((y) => l(i, f, y, d)))
41
41
  );
@@ -326,7 +326,7 @@ const Ri = Dn("string"), Mt = Dn("function"), ss = Dn("number"), Pn = (e) => e !
326
326
  let a;
327
327
  return e && (typeof FormData == "function" && e instanceof FormData || Mt(e.append) && ((a = Tn(e)) === "formdata" || // detect form-data instance
328
328
  a === "object" && Mt(e.toString) && e.toString() === "[object FormData]"));
329
- }, qi = Rt("URLSearchParams"), [Wi, ji, zi, Hi] = ["ReadableStream", "Request", "Response", "Headers"].map(Rt), Vi = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
329
+ }, qi = Rt("URLSearchParams"), [Wi, ji, Hi, zi] = ["ReadableStream", "Request", "Response", "Headers"].map(Rt), Vi = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
330
330
  function Ja(e, a, { allOwnKeys: t = !1 } = {}) {
331
331
  if (e === null || typeof e > "u")
332
332
  return;
@@ -480,8 +480,8 @@ const du = (e) => {
480
480
  isPlainObject: pn,
481
481
  isReadableStream: Wi,
482
482
  isRequest: ji,
483
- isResponse: zi,
484
- isHeaders: Hi,
483
+ isResponse: Hi,
484
+ isHeaders: zi,
485
485
  isUndefined: Ua,
486
486
  isDate: Ei,
487
487
  isFile: Yi,
@@ -620,10 +620,10 @@ function Cn(e, a, t) {
620
620
  if (V.endsWith(v, "{}"))
621
621
  v = n ? v : v.slice(0, -2), y = JSON.stringify(y);
622
622
  else if (V.isArray(y) && pu(y) || (V.isFileList(y) || V.endsWith(v, "[]")) && (_ = V.toArray(y)))
623
- return v = hs(v), _.forEach(function(k, z) {
623
+ return v = hs(v), _.forEach(function(k, H) {
624
624
  !(V.isUndefined(k) || k === null) && a.append(
625
625
  // eslint-disable-next-line no-nested-ternary
626
- s === !0 ? no([v], z, o) : s === null ? v : v + "[]",
626
+ s === !0 ? no([v], H, o) : s === null ? v : v + "[]",
627
627
  m(k)
628
628
  );
629
629
  }), !1;
@@ -1308,7 +1308,7 @@ const ks = (e) => {
1308
1308
  m && s.set(r, m);
1309
1309
  }
1310
1310
  return a;
1311
- }, ju = typeof XMLHttpRequest < "u", zu = ju && function(e) {
1311
+ }, ju = typeof XMLHttpRequest < "u", Hu = ju && function(e) {
1312
1312
  return new Promise(function(t, n) {
1313
1313
  const r = ks(e);
1314
1314
  let o = r.data;
@@ -1365,7 +1365,7 @@ const ks = (e) => {
1365
1365
  }
1366
1366
  i.send(o || null);
1367
1367
  });
1368
- }, Hu = (e, a) => {
1368
+ }, zu = (e, a) => {
1369
1369
  let t = new AbortController(), n;
1370
1370
  const r = function(u) {
1371
1371
  if (!n) {
@@ -1481,7 +1481,7 @@ const Xu = async (e) => {
1481
1481
  fetchOptions: d
1482
1482
  } = ks(e);
1483
1483
  m = m ? (m + "").toLowerCase() : "text";
1484
- let [f, y] = r || o || s ? Hu([r, o], s) : [], v, D;
1484
+ let [f, y] = r || o || s ? zu([r, o], s) : [], v, D;
1485
1485
  const _ = () => {
1486
1486
  !v && setTimeout(() => {
1487
1487
  f && f.unsubscribe();
@@ -1510,8 +1510,8 @@ const Xu = async (e) => {
1510
1510
  withCredentials: c
1511
1511
  });
1512
1512
  let k = await fetch(D);
1513
- const z = vr && (m === "stream" || m === "response");
1514
- if (vr && (l || z)) {
1513
+ const H = vr && (m === "stream" || m === "response");
1514
+ if (vr && (l || H)) {
1515
1515
  const W = {};
1516
1516
  ["status", "statusText", "headers"].forEach(($) => {
1517
1517
  W[$] = k[$];
@@ -1521,13 +1521,13 @@ const Xu = async (e) => {
1521
1521
  io(k.body, co, l && uo(
1522
1522
  C,
1523
1523
  yn(l, !0)
1524
- ), z && _, pr),
1524
+ ), H && _, pr),
1525
1525
  W
1526
1526
  );
1527
1527
  }
1528
1528
  m = m || "text";
1529
1529
  let te = await gn[V.findKey(gn, m) || "text"](k, e);
1530
- return !z && _(), y && y(), await new Promise((W, C) => {
1530
+ return !H && _(), y && y(), await new Promise((W, C) => {
1531
1531
  bs(W, C, {
1532
1532
  data: te,
1533
1533
  headers: vt.from(k.headers),
@@ -1547,7 +1547,7 @@ const Xu = async (e) => {
1547
1547
  }
1548
1548
  }), yr = {
1549
1549
  http: hu,
1550
- xhr: zu,
1550
+ xhr: Hu,
1551
1551
  fetch: Zu
1552
1552
  };
1553
1553
  V.forEach(yr, (e, a) => {
@@ -2080,7 +2080,7 @@ const ac = { class: "w-full relative text-current" }, nc = { class: "flex cursor
2080
2080
  "clip-rule": "evenodd"
2081
2081
  }, null, -1), jc = [
2082
2082
  Wc
2083
- ], zc = { class: "w-full text-center" }, Hc = { class: "my-auto text-center mx-auto group-hover:inline-block" }, Vc = {
2083
+ ], Hc = { class: "w-full text-center" }, zc = { class: "my-auto text-center mx-auto group-hover:inline-block" }, Vc = {
2084
2084
  key: 1,
2085
2085
  class: "flex justify-center"
2086
2086
  }, Uc = /* @__PURE__ */ p("div", { class: "h-5 w-5 border-t-transparent border-solid animate-spin rounded-full border-white border-4" }, null, -1), Qc = [
@@ -2264,7 +2264,7 @@ const ac = { class: "w-full relative text-current" }, nc = { class: "flex cursor
2264
2264
  ]),
2265
2265
  _: 2
2266
2266
  }, 1024),
2267
- p("p", zc, we(f.name), 1),
2267
+ p("p", Hc, we(f.name), 1),
2268
2268
  Fe(d, {
2269
2269
  class: "dark:popper-light popper-dark",
2270
2270
  hover: !0,
@@ -2274,7 +2274,7 @@ const ac = { class: "w-full relative text-current" }, nc = { class: "flex cursor
2274
2274
  p("main", {
2275
2275
  class: me(["p-1 rounded px-3", { "bg-red-500": f.status === !1, "bg-green-500": f.status === !0, "bg-purple-500": f.status === "Offline" }])
2276
2276
  }, [
2277
- p("div", Hc, we(f.status === !0 ? "Conectada" : f.status === !1 ? "Desconectada" : "Indefinida"), 1)
2277
+ p("div", zc, we(f.status === !0 ? "Conectada" : f.status === !1 ? "Desconectada" : "Indefinida"), 1)
2278
2278
  ], 2)
2279
2279
  ]),
2280
2280
  default: ve(() => [
@@ -2415,7 +2415,7 @@ function vo(e, a) {
2415
2415
  function Rs(e) {
2416
2416
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
2417
2417
  }
2418
- function za(e) {
2418
+ function Ha(e) {
2419
2419
  if (!Rs(e) && typeof e != "number")
2420
2420
  return !1;
2421
2421
  const a = ye(e);
@@ -3528,7 +3528,7 @@ const ko = (e, a) => {
3528
3528
  default:
3529
3529
  return a.time({ width: "full" });
3530
3530
  }
3531
- }, zd = (e, a) => {
3531
+ }, Hd = (e, a) => {
3532
3532
  const t = e.match(/(P+)(p+)?/) || [], n = t[1], r = t[2];
3533
3533
  if (!r)
3534
3534
  return ko(e, a);
@@ -3551,10 +3551,10 @@ const ko = (e, a) => {
3551
3551
  return o.replace("{{date}}", ko(n, a)).replace("{{time}}", Is(r, a));
3552
3552
  }, br = {
3553
3553
  p: Is,
3554
- P: zd
3555
- }, Hd = /^D+$/, Vd = /^Y+$/, Ud = ["D", "DD", "YY", "YYYY"];
3554
+ P: Hd
3555
+ }, zd = /^D+$/, Vd = /^Y+$/, Ud = ["D", "DD", "YY", "YYYY"];
3556
3556
  function Ls(e) {
3557
- return Hd.test(e);
3557
+ return zd.test(e);
3558
3558
  }
3559
3559
  function Bs(e) {
3560
3560
  return Vd.test(e);
@@ -3571,13 +3571,13 @@ const Xd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Gd = /P+p+|P
3571
3571
  function qt(e, a, t) {
3572
3572
  var i, c, d, f, y, v, D, _;
3573
3573
  const n = ga(), r = (t == null ? void 0 : t.locale) ?? n.locale ?? Fs, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((v = (y = t == null ? void 0 : t.locale) == null ? void 0 : y.options) == null ? void 0 : v.weekStartsOn) ?? n.weekStartsOn ?? ((_ = (D = n.locale) == null ? void 0 : D.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = ye(e);
3574
- if (!za(l))
3574
+ if (!Ha(l))
3575
3575
  throw new RangeError("Invalid time value");
3576
3576
  let u = a.match(Gd).map((M) => {
3577
3577
  const k = M[0];
3578
3578
  if (k === "p" || k === "P") {
3579
- const z = br[k];
3580
- return z(M, r.formatLong);
3579
+ const H = br[k];
3580
+ return H(M, r.formatLong);
3581
3581
  }
3582
3582
  return M;
3583
3583
  }).join("").match(Xd).map((M) => {
@@ -3604,8 +3604,8 @@ function qt(e, a, t) {
3604
3604
  if (!M.isToken) return M.value;
3605
3605
  const k = M.value;
3606
3606
  (!(t != null && t.useAdditionalWeekYearTokens) && Bs(k) || !(t != null && t.useAdditionalDayOfYearTokens) && Ls(k)) && _r(k, a, String(e));
3607
- const z = wo[k[0]];
3608
- return z(l, k, r.localize, m);
3607
+ const H = wo[k[0]];
3608
+ return H(l, k, r.localize, m);
3609
3609
  }).join("");
3610
3610
  }
3611
3611
  function ef(e) {
@@ -3622,7 +3622,7 @@ function af(e) {
3622
3622
  function nf() {
3623
3623
  return Object.assign({}, ga());
3624
3624
  }
3625
- function zt(e) {
3625
+ function Ht(e) {
3626
3626
  return ye(e).getHours();
3627
3627
  }
3628
3628
  function rf(e) {
@@ -3813,7 +3813,7 @@ function Ft(e, a) {
3813
3813
  function Ws(e) {
3814
3814
  return We(Qe.anyDigitsSigned, e);
3815
3815
  }
3816
- function He(e, a) {
3816
+ function ze(e, a) {
3817
3817
  switch (e) {
3818
3818
  case 1:
3819
3819
  return We(Qe.singleDigit, a);
@@ -3869,7 +3869,7 @@ function js(e, a) {
3869
3869
  }
3870
3870
  return t ? r : 1 - r;
3871
3871
  }
3872
- function zs(e) {
3872
+ function Hs(e) {
3873
3873
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
3874
3874
  }
3875
3875
  class df extends $e {
@@ -3885,7 +3885,7 @@ class df extends $e {
3885
3885
  });
3886
3886
  switch (n) {
3887
3887
  case "y":
3888
- return Xe(He(4, t), o);
3888
+ return Xe(ze(4, t), o);
3889
3889
  case "yo":
3890
3890
  return Xe(
3891
3891
  r.ordinalNumber(t, {
@@ -3894,7 +3894,7 @@ class df extends $e {
3894
3894
  o
3895
3895
  );
3896
3896
  default:
3897
- return Xe(He(n.length, t), o);
3897
+ return Xe(ze(n.length, t), o);
3898
3898
  }
3899
3899
  }
3900
3900
  validate(t, n) {
@@ -3940,7 +3940,7 @@ class ff extends $e {
3940
3940
  });
3941
3941
  switch (n) {
3942
3942
  case "Y":
3943
- return Xe(He(4, t), o);
3943
+ return Xe(ze(4, t), o);
3944
3944
  case "Yo":
3945
3945
  return Xe(
3946
3946
  r.ordinalNumber(t, {
@@ -3949,7 +3949,7 @@ class ff extends $e {
3949
3949
  o
3950
3950
  );
3951
3951
  default:
3952
- return Xe(He(n.length, t), o);
3952
+ return Xe(ze(n.length, t), o);
3953
3953
  }
3954
3954
  }
3955
3955
  validate(t, n) {
@@ -4040,7 +4040,7 @@ class pf extends $e {
4040
4040
  switch (n) {
4041
4041
  case "Q":
4042
4042
  case "QQ":
4043
- return He(n.length, t);
4043
+ return ze(n.length, t);
4044
4044
  case "Qo":
4045
4045
  return r.ordinalNumber(t, { unit: "quarter" });
4046
4046
  case "QQQ":
@@ -4102,7 +4102,7 @@ class vf extends $e {
4102
4102
  switch (n) {
4103
4103
  case "q":
4104
4104
  case "qq":
4105
- return He(n.length, t);
4105
+ return ze(n.length, t);
4106
4106
  case "qo":
4107
4107
  return r.ordinalNumber(t, { unit: "quarter" });
4108
4108
  case "qqq":
@@ -4168,7 +4168,7 @@ class yf extends $e {
4168
4168
  o
4169
4169
  );
4170
4170
  case "MM":
4171
- return Xe(He(2, t), o);
4171
+ return Xe(ze(2, t), o);
4172
4172
  case "Mo":
4173
4173
  return Xe(
4174
4174
  r.ordinalNumber(t, {
@@ -4230,7 +4230,7 @@ class gf extends $e {
4230
4230
  o
4231
4231
  );
4232
4232
  case "LL":
4233
- return Xe(He(2, t), o);
4233
+ return Xe(ze(2, t), o);
4234
4234
  case "Lo":
4235
4235
  return Xe(
4236
4236
  r.ordinalNumber(t, {
@@ -4294,7 +4294,7 @@ class bf extends $e {
4294
4294
  case "wo":
4295
4295
  return r.ordinalNumber(t, { unit: "week" });
4296
4296
  default:
4297
- return He(n.length, t);
4297
+ return ze(n.length, t);
4298
4298
  }
4299
4299
  }
4300
4300
  validate(t, n) {
@@ -4336,7 +4336,7 @@ class kf extends $e {
4336
4336
  case "Io":
4337
4337
  return r.ordinalNumber(t, { unit: "week" });
4338
4338
  default:
4339
- return He(n.length, t);
4339
+ return ze(n.length, t);
4340
4340
  }
4341
4341
  }
4342
4342
  validate(t, n) {
@@ -4387,11 +4387,11 @@ class Mf extends $e {
4387
4387
  case "do":
4388
4388
  return r.ordinalNumber(t, { unit: "date" });
4389
4389
  default:
4390
- return He(n.length, t);
4390
+ return ze(n.length, t);
4391
4391
  }
4392
4392
  }
4393
4393
  validate(t, n) {
4394
- const r = t.getFullYear(), o = zs(r), s = t.getMonth();
4394
+ const r = t.getFullYear(), o = Hs(r), s = t.getMonth();
4395
4395
  return o ? n >= 1 && n <= Af[s] : n >= 1 && n <= xf[s];
4396
4396
  }
4397
4397
  set(t, n, r) {
@@ -4429,12 +4429,12 @@ class Tf extends $e {
4429
4429
  case "Do":
4430
4430
  return r.ordinalNumber(t, { unit: "date" });
4431
4431
  default:
4432
- return He(n.length, t);
4432
+ return ze(n.length, t);
4433
4433
  }
4434
4434
  }
4435
4435
  validate(t, n) {
4436
4436
  const r = t.getFullYear();
4437
- return zs(r) ? n >= 1 && n <= 366 : n >= 1 && n <= 365;
4437
+ return Hs(r) ? n >= 1 && n <= 366 : n >= 1 && n <= 365;
4438
4438
  }
4439
4439
  set(t, n, r) {
4440
4440
  return t.setMonth(0, r), t.setHours(0, 0, 0, 0), t;
@@ -4512,7 +4512,7 @@ class Pf extends $e {
4512
4512
  switch (n) {
4513
4513
  case "e":
4514
4514
  case "ee":
4515
- return Xe(He(n.length, t), s);
4515
+ return Xe(ze(n.length, t), s);
4516
4516
  case "eo":
4517
4517
  return Xe(
4518
4518
  r.ordinalNumber(t, {
@@ -4577,7 +4577,7 @@ class Cf extends $e {
4577
4577
  switch (n) {
4578
4578
  case "c":
4579
4579
  case "cc":
4580
- return Xe(He(n.length, t), s);
4580
+ return Xe(ze(n.length, t), s);
4581
4581
  case "co":
4582
4582
  return Xe(
4583
4583
  r.ordinalNumber(t, {
@@ -4643,7 +4643,7 @@ class Of extends $e {
4643
4643
  switch (n) {
4644
4644
  case "i":
4645
4645
  case "ii":
4646
- return He(n.length, t);
4646
+ return ze(n.length, t);
4647
4647
  case "io":
4648
4648
  return r.ordinalNumber(t, { unit: "day" });
4649
4649
  case "iii":
@@ -4842,7 +4842,7 @@ class Ef extends $e {
4842
4842
  case "ho":
4843
4843
  return r.ordinalNumber(t, { unit: "hour" });
4844
4844
  default:
4845
- return He(n.length, t);
4845
+ return ze(n.length, t);
4846
4846
  }
4847
4847
  }
4848
4848
  validate(t, n) {
@@ -4866,7 +4866,7 @@ class Yf extends $e {
4866
4866
  case "Ho":
4867
4867
  return r.ordinalNumber(t, { unit: "hour" });
4868
4868
  default:
4869
- return He(n.length, t);
4869
+ return ze(n.length, t);
4870
4870
  }
4871
4871
  }
4872
4872
  validate(t, n) {
@@ -4889,7 +4889,7 @@ class Ff extends $e {
4889
4889
  case "Ko":
4890
4890
  return r.ordinalNumber(t, { unit: "hour" });
4891
4891
  default:
4892
- return He(n.length, t);
4892
+ return ze(n.length, t);
4893
4893
  }
4894
4894
  }
4895
4895
  validate(t, n) {
@@ -4912,7 +4912,7 @@ class If extends $e {
4912
4912
  case "ko":
4913
4913
  return r.ordinalNumber(t, { unit: "hour" });
4914
4914
  default:
4915
- return He(n.length, t);
4915
+ return ze(n.length, t);
4916
4916
  }
4917
4917
  }
4918
4918
  validate(t, n) {
@@ -4936,7 +4936,7 @@ class Lf extends $e {
4936
4936
  case "mo":
4937
4937
  return r.ordinalNumber(t, { unit: "minute" });
4938
4938
  default:
4939
- return He(n.length, t);
4939
+ return ze(n.length, t);
4940
4940
  }
4941
4941
  }
4942
4942
  validate(t, n) {
@@ -4959,7 +4959,7 @@ class Bf extends $e {
4959
4959
  case "so":
4960
4960
  return r.ordinalNumber(t, { unit: "second" });
4961
4961
  default:
4962
- return He(n.length, t);
4962
+ return ze(n.length, t);
4963
4963
  }
4964
4964
  }
4965
4965
  validate(t, n) {
@@ -4977,7 +4977,7 @@ class qf extends $e {
4977
4977
  }
4978
4978
  parse(t, n) {
4979
4979
  const r = (o) => Math.trunc(o * Math.pow(10, -n.length + 3));
4980
- return Xe(He(n.length, t), r);
4980
+ return Xe(ze(n.length, t), r);
4981
4981
  }
4982
4982
  set(t, n, r) {
4983
4983
  return t.setMilliseconds(r), t;
@@ -5057,7 +5057,7 @@ class jf extends $e {
5057
5057
  );
5058
5058
  }
5059
5059
  }
5060
- class zf extends $e {
5060
+ class Hf extends $e {
5061
5061
  constructor() {
5062
5062
  super(...arguments);
5063
5063
  fe(this, "priority", 40);
@@ -5070,7 +5070,7 @@ class zf extends $e {
5070
5070
  return [Oe(t, r * 1e3), { timestampIsSet: !0 }];
5071
5071
  }
5072
5072
  }
5073
- class Hf extends $e {
5073
+ class zf extends $e {
5074
5074
  constructor() {
5075
5075
  super(...arguments);
5076
5076
  fe(this, "priority", 20);
@@ -5113,12 +5113,12 @@ const Vf = {
5113
5113
  S: new qf(),
5114
5114
  X: new Wf(),
5115
5115
  x: new jf(),
5116
- t: new zf(),
5117
- T: new Hf()
5116
+ t: new Hf(),
5117
+ T: new zf()
5118
5118
  }, Uf = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Qf = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xf = /^'([^]*?)'?$/, Gf = /''/g, Zf = /\S/, Kf = /[a-zA-Z]/;
5119
5119
  function kr(e, a, t, n) {
5120
- var v, D, _, M, k, z, te, W;
5121
- const r = nf(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Fs, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((D = (v = n == null ? void 0 : n.locale) == null ? void 0 : v.options) == null ? void 0 : D.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((M = (_ = r.locale) == null ? void 0 : _.options) == null ? void 0 : M.firstWeekContainsDate) ?? 1, l = (n == null ? void 0 : n.weekStartsOn) ?? ((z = (k = n == null ? void 0 : n.locale) == null ? void 0 : k.options) == null ? void 0 : z.weekStartsOn) ?? r.weekStartsOn ?? ((W = (te = r.locale) == null ? void 0 : te.options) == null ? void 0 : W.weekStartsOn) ?? 0;
5120
+ var v, D, _, M, k, H, te, W;
5121
+ const r = nf(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Fs, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((D = (v = n == null ? void 0 : n.locale) == null ? void 0 : v.options) == null ? void 0 : D.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((M = (_ = r.locale) == null ? void 0 : _.options) == null ? void 0 : M.firstWeekContainsDate) ?? 1, l = (n == null ? void 0 : n.weekStartsOn) ?? ((H = (k = n == null ? void 0 : n.locale) == null ? void 0 : k.options) == null ? void 0 : H.weekStartsOn) ?? r.weekStartsOn ?? ((W = (te = r.locale) == null ? void 0 : te.options) == null ? void 0 : W.weekStartsOn) ?? 0;
5122
5122
  if (a === "")
5123
5123
  return e === "" ? ye(t) : Oe(t, NaN);
5124
5124
  const u = {
@@ -5198,7 +5198,7 @@ function xo(e, a) {
5198
5198
  function em(e, a) {
5199
5199
  return Pt(e, -a);
5200
5200
  }
5201
- function Hs(e, a) {
5201
+ function zs(e, a) {
5202
5202
  const t = ye(e), n = t.getFullYear(), r = t.getDate(), o = Oe(e, 0);
5203
5203
  o.setFullYear(n, a, 15), o.setHours(0, 0, 0, 0);
5204
5204
  const s = af(o);
@@ -5206,7 +5206,7 @@ function Hs(e, a) {
5206
5206
  }
5207
5207
  function Ee(e, a) {
5208
5208
  let t = ye(e);
5209
- return isNaN(+t) ? Oe(e, NaN) : (a.year != null && t.setFullYear(a.year), a.month != null && (t = Hs(t, a.month)), a.date != null && t.setDate(a.date), a.hours != null && t.setHours(a.hours), a.minutes != null && t.setMinutes(a.minutes), a.seconds != null && t.setSeconds(a.seconds), a.milliseconds != null && t.setMilliseconds(a.milliseconds), t);
5209
+ return isNaN(+t) ? Oe(e, NaN) : (a.year != null && t.setFullYear(a.year), a.month != null && (t = zs(t, a.month)), a.date != null && t.setDate(a.date), a.hours != null && t.setHours(a.hours), a.minutes != null && t.setMinutes(a.minutes), a.seconds != null && t.setSeconds(a.seconds), a.milliseconds != null && t.setMilliseconds(a.milliseconds), t);
5210
5210
  }
5211
5211
  function tm(e, a) {
5212
5212
  const t = ye(e);
@@ -5444,7 +5444,7 @@ const im = (e, a, t) => {
5444
5444
  r = n.map(Ao(a));
5445
5445
  const o = r.slice(0, t), s = r.slice(t + 1, r.length);
5446
5446
  return [r[t]].concat(...s).concat(...o);
5447
- }, zr = (e, a, t) => {
5447
+ }, Hr = (e, a, t) => {
5448
5448
  const n = [];
5449
5449
  for (let r = +e[0]; r <= +e[1]; r++)
5450
5450
  n.push({ value: +r, text: Js(r, a) });
@@ -5477,7 +5477,7 @@ const im = (e, a, t) => {
5477
5477
  }, um = (e) => [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11][e], Ze = (e) => {
5478
5478
  const a = b(e);
5479
5479
  return a != null && a.$el ? a == null ? void 0 : a.$el : a;
5480
- }, cm = (e) => ({ type: "dot", ...e ?? {} }), Zs = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, Hr = {
5480
+ }, cm = (e) => ({ type: "dot", ...e ?? {} }), Zs = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, zr = {
5481
5481
  prop: (e) => `"${e}" prop must be enabled!`,
5482
5482
  dateArr: (e) => `You need to use array as "model-value" binding in order to support "${e}"`
5483
5483
  }, Je = (e) => e, Mo = (e) => e === 0 ? e : !e || isNaN(+e) ? null : +e, To = (e) => e === null, Ks = (e) => {
@@ -5538,7 +5538,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5538
5538
  (e) => navigator.userAgent.includes(e)
5539
5539
  ) || navigator.userAgent.includes("Mac") && "ontouchend" in document, Po = (e, a, t, n, r, o) => {
5540
5540
  const s = kr(e, a.slice(0, e.length), /* @__PURE__ */ new Date(), { locale: o });
5541
- return za(s) && Rs(s) ? n || r ? s : Ee(s, {
5541
+ return Ha(s) && Rs(s) ? n || r ? s : Ee(s, {
5542
5542
  hours: +t.hours,
5543
5543
  minutes: +(t == null ? void 0 : t.minutes),
5544
5544
  seconds: +(t == null ? void 0 : t.seconds),
@@ -5576,7 +5576,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5576
5576
  }, ta = (e, a, t, n) => {
5577
5577
  let r = e ? J(e) : J();
5578
5578
  return (a || a === 0) && (r = tm(r, +a)), (t || t === 0) && (r = am(r, +t)), (n || n === 0) && (r = Us(r, +n)), Vs(r, 0);
5579
- }, ze = (e, a) => !e || !a ? !1 : Xa(ft(e), ft(a)), Se = (e, a) => !e || !a ? !1 : xa(ft(e), ft(a)), Ue = (e, a) => !e || !a ? !1 : Da(ft(e), ft(a)), On = (e, a, t) => e != null && e[0] && e != null && e[1] ? Ue(t, e[0]) && ze(t, e[1]) : e != null && e[0] && a ? Ue(t, e[0]) && ze(t, a) || ze(t, e[0]) && Ue(t, a) : !1, Ct = (e) => {
5579
+ }, He = (e, a) => !e || !a ? !1 : Xa(ft(e), ft(a)), Se = (e, a) => !e || !a ? !1 : xa(ft(e), ft(a)), Ue = (e, a) => !e || !a ? !1 : Da(ft(e), ft(a)), On = (e, a, t) => e != null && e[0] && e != null && e[1] ? Ue(t, e[0]) && He(t, e[1]) : e != null && e[0] && a ? Ue(t, e[0]) && He(t, a) || He(t, e[0]) && Ue(t, a) : !1, Ct = (e) => {
5580
5580
  const a = Ee(new Date(e), { date: 1 });
5581
5581
  return ft(a);
5582
5582
  }, tr = (e, a, t) => a && (t || t === 0) ? Object.fromEntries(
@@ -5586,7 +5586,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5586
5586
  minutes: isNaN(+e.minutes) ? void 0 : +e.minutes,
5587
5587
  seconds: isNaN(+e.seconds) ? void 0 : +e.seconds
5588
5588
  }, ma = (e) => ({
5589
- hours: zt(e),
5589
+ hours: Ht(e),
5590
5590
  minutes: na(e),
5591
5591
  seconds: Ta(e)
5592
5592
  }), el = (e, a) => {
@@ -5613,29 +5613,29 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5613
5613
  return [t, n];
5614
5614
  }, nl = (e, a) => {
5615
5615
  const t = {
5616
- hours: zt(J()),
5616
+ hours: Ht(J()),
5617
5617
  minutes: na(J()),
5618
5618
  seconds: a ? Ta(J()) : 0
5619
5619
  };
5620
5620
  return Object.assign(t, e);
5621
5621
  }, Zt = (e, a, t) => [Ee(J(e), { date: 1 }), Ee(J(), { month: a, year: t, date: 1 })], jt = (e, a, t) => {
5622
5622
  let n = e ? J(e) : J();
5623
- return (a || a === 0) && (n = Hs(n, a)), t && (n = Bt(n, t)), n;
5623
+ return (a || a === 0) && (n = zs(n, a)), t && (n = Bt(n, t)), n;
5624
5624
  }, rl = (e, a, t, n, r) => {
5625
5625
  if (!n || r && !a || !r && !t) return !1;
5626
5626
  const o = r ? Ot(e, 1) : Pa(e, 1), s = [Ce(o), xe(o)];
5627
5627
  return r ? !wm(...s, a) : !gm(...s, t);
5628
- }, gm = (e, a, t) => ze(...Zt(t, e, a)) || Se(...Zt(t, e, a)), wm = (e, a, t) => Ue(...Zt(t, e, a)) || Se(...Zt(t, e, a)), ol = (e, a, t, n, r, o, s) => {
5628
+ }, gm = (e, a, t) => He(...Zt(t, e, a)) || Se(...Zt(t, e, a)), wm = (e, a, t) => Ue(...Zt(t, e, a)) || Se(...Zt(t, e, a)), ol = (e, a, t, n, r, o, s) => {
5629
5629
  if (typeof a == "function" && !s) return a(e);
5630
5630
  const l = t ? { locale: t } : void 0;
5631
5631
  return Array.isArray(e) ? `${qt(e[0], o, l)}${r && !e[1] ? "" : n}${e[1] ? qt(e[1], o, l) : ""}` : qt(e, o, l);
5632
5632
  }, ba = (e) => {
5633
5633
  if (e) return null;
5634
- throw new Error(Hr.prop("partial-range"));
5634
+ throw new Error(zr.prop("partial-range"));
5635
5635
  }, dn = (e, a) => {
5636
5636
  if (a) return e();
5637
- throw new Error(Hr.prop("range"));
5638
- }, Mr = (e) => Array.isArray(e) ? za(e[0]) && (e[1] ? za(e[1]) : !0) : e ? za(e) : !1, bm = (e, a) => Ee(a ?? J(), {
5637
+ throw new Error(zr.prop("range"));
5638
+ }, Mr = (e) => Array.isArray(e) ? Ha(e[0]) && (e[1] ? Ha(e[1]) : !0) : e ? Ha(e) : !1, bm = (e, a) => Ee(a ?? J(), {
5639
5639
  hours: +e.hours || 0,
5640
5640
  minutes: +e.minutes || 0,
5641
5641
  seconds: +e.seconds || 0
@@ -5889,7 +5889,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5889
5889
  }, t = () => {
5890
5890
  var W;
5891
5891
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? a() : e.weekPicker ? `${((W = D.value) == null ? void 0 : W.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${a()}` : "MM/dd/yyyy";
5892
- }, n = (W) => nl(W, e.enableSeconds), r = () => z.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, o = G(() => xm(e.multiCalendars)), s = G(() => r()), l = G(() => km(e.ariaLabels)), u = G(() => Dm(e.filters)), m = G(() => Mm(e.transitions)), i = G(() => Pm(e.actionRow)), c = G(
5892
+ }, n = (W) => nl(W, e.enableSeconds), r = () => H.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [n(e.startTime[0]), n(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? n(e.startTime) : null, o = G(() => xm(e.multiCalendars)), s = G(() => r()), l = G(() => km(e.ariaLabels)), u = G(() => Dm(e.filters)), m = G(() => Mm(e.transitions)), i = G(() => Pm(e.actionRow)), c = G(
5893
5893
  () => Am(e.previewFormat, e.format, t())
5894
5894
  ), d = G(() => Tm(e.textInput)), f = G(() => Cm(e.inline)), y = G(() => Sm(e.config)), v = G(() => Om(e.highlight)), D = G(() => $m(e.weekNumbers)), _ = G(() => Nm(e.timezone)), M = G(() => Fm(e.multiDates)), k = G(
5895
5895
  () => Ym({
@@ -5902,7 +5902,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5902
5902
  timezone: _.value,
5903
5903
  isSpecific: e.monthPicker || e.yearPicker || e.quarterPicker
5904
5904
  })
5905
- ), z = G(() => Rm(e.range)), te = G(() => Im(e.ui));
5905
+ ), H = G(() => Rm(e.range)), te = G(() => Im(e.ui));
5906
5906
  return {
5907
5907
  defaultedTransitions: m,
5908
5908
  defaultedMultiCalendars: o,
@@ -5916,7 +5916,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5916
5916
  defaultedConfig: y,
5917
5917
  defaultedHighlight: v,
5918
5918
  defaultedWeekNumbers: D,
5919
- defaultedRange: z,
5919
+ defaultedRange: H,
5920
5920
  propDates: k,
5921
5921
  defaultedTz: _,
5922
5922
  defaultedMultiDates: M,
@@ -5952,7 +5952,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5952
5952
  ie ?? u(),
5953
5953
  ke
5954
5954
  ), v = (x) => x ? a.modelType ? le(x) : {
5955
- hours: zt(x),
5955
+ hours: Ht(x),
5956
5956
  minutes: na(x),
5957
5957
  seconds: a.enableSeconds ? Ta(x) : 0
5958
5958
  } : null, D = (x) => a.modelType ? le(x) : { month: Ce(x), year: xe(x) }, _ = (x) => Array.isArray(x) ? l.value.enabled ? x.map((ie) => M(ie, Bt(J(), ie))) : dn(
@@ -5970,7 +5970,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5970
5970
  x[1],
5971
5971
  ta(null, +x[1].hours, +x[1].minutes, x[1].seconds)
5972
5972
  )
5973
- ] : M(x, ta(null, x.hours, x.minutes, x.seconds)), z = (x) => {
5973
+ ] : M(x, ta(null, x.hours, x.minutes, x.seconds)), H = (x) => {
5974
5974
  const ie = Ee(J(), { date: 1 });
5975
5975
  return Array.isArray(x) ? l.value.enabled ? x.map((ke) => M(ke, jt(ie, +ke.month, +ke.year))) : dn(
5976
5976
  () => [
@@ -5985,7 +5985,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
5985
5985
  }, te = (x) => {
5986
5986
  if (Array.isArray(x))
5987
5987
  return x.map((ie) => Q(ie));
5988
- throw new Error(Hr.dateArr("multi-dates"));
5988
+ throw new Error(zr.dateArr("multi-dates"));
5989
5989
  }, W = (x) => {
5990
5990
  if (Array.isArray(x) && o.value.enabled) {
5991
5991
  const ie = x[0], ke = x[1];
@@ -6009,7 +6009,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6009
6009
  le(x[0]),
6010
6010
  x[1] ? le(x[1]) : ba(o.value.partialRange)
6011
6011
  ];
6012
- }, I = () => n.value[1] ? N() : le(Je(n.value[0])), K = () => (n.value || []).map((x) => le(x)), ce = (x = !1) => (x || $(), a.modelAuto ? I() : l.value.enabled ? K() : Array.isArray(n.value) ? dn(() => N(), o.value.enabled) : le(Je(n.value))), pe = (x) => !x || Array.isArray(x) && !x.length ? null : a.timePicker ? k(Je(x)) : a.monthPicker ? z(Je(x)) : a.yearPicker ? _(Je(x)) : l.value.enabled ? te(Je(x)) : a.weekPicker ? W(Je(x)) : C(Je(x)), O = (x) => {
6012
+ }, I = () => n.value[1] ? N() : le(Je(n.value[0])), K = () => (n.value || []).map((x) => le(x)), ce = (x = !1) => (x || $(), a.modelAuto ? I() : l.value.enabled ? K() : Array.isArray(n.value) ? dn(() => N(), o.value.enabled) : le(Je(n.value))), pe = (x) => !x || Array.isArray(x) && !x.length ? null : a.timePicker ? k(Je(x)) : a.monthPicker ? H(Je(x)) : a.yearPicker ? _(Je(x)) : l.value.enabled ? te(Je(x)) : a.weekPicker ? W(Je(x)) : C(Je(x)), O = (x) => {
6013
6013
  const ie = pe(x);
6014
6014
  Mr(Je(ie)) ? (n.value = Je(ie), se()) : (n.value = null, m.value = "");
6015
6015
  }, L = () => {
@@ -6231,11 +6231,11 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6231
6231
  defaultedMultiDates: i
6232
6232
  } = qe(n), { isTimeValid: c, isMonthValid: d } = oa(n), { buildMatrix: f } = ra(), y = F(null), v = F(null), D = F(!1), _ = F({}), M = F(null), k = F(null);
6233
6233
  Ye(() => {
6234
- n.arrowNavigation && f([Ze(y), Ze(v)], "actionRow"), z(), window.addEventListener("resize", z);
6234
+ n.arrowNavigation && f([Ze(y), Ze(v)], "actionRow"), H(), window.addEventListener("resize", H);
6235
6235
  }), Ka(() => {
6236
- window.removeEventListener("resize", z);
6236
+ window.removeEventListener("resize", H);
6237
6237
  });
6238
- const z = () => {
6238
+ const H = () => {
6239
6239
  D.value = !1, setTimeout(() => {
6240
6240
  var O, L;
6241
6241
  const S = (O = M.value) == null ? void 0 : O.getBoundingClientRect(), j = (L = k.value) == null ? void 0 : L.getBoundingClientRect();
@@ -6329,7 +6329,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6329
6329
  ], 64))
6330
6330
  ], 512));
6331
6331
  }
6332
- }), zm = ["role", "aria-label", "tabindex"], Hm = { class: "dp__selection_grid_header" }, Vm = ["aria-selected", "aria-disabled", "data-test", "onClick", "onKeydown", "onMouseover"], Um = ["aria-label"], tn = /* @__PURE__ */ at({
6332
+ }), Hm = ["role", "aria-label", "tabindex"], zm = { class: "dp__selection_grid_header" }, Vm = ["aria-selected", "aria-disabled", "data-test", "onClick", "onKeydown", "onMouseover"], Um = ["aria-label"], tn = /* @__PURE__ */ at({
6333
6333
  __name: "SelectionOverlay",
6334
6334
  props: {
6335
6335
  items: {},
@@ -6358,9 +6358,9 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6358
6358
  Bl(() => {
6359
6359
  f.value = null;
6360
6360
  }), Ye(() => {
6361
- Ke().then(() => K()), l.noOverlayFocus || te(), z(!0);
6362
- }), Ka(() => z(!1));
6363
- const z = (T) => {
6361
+ Ke().then(() => K()), l.noOverlayFocus || te(), H(!0);
6362
+ }), Ka(() => H(!1));
6363
+ const H = (T) => {
6364
6364
  var P;
6365
6365
  l.arrowNavigation && ((P = l.headerRefs) != null && P.length ? o(T) : n(T));
6366
6366
  }, te = () => {
@@ -6467,7 +6467,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6467
6467
  style: bt({ "--dp-overlay-height": `${M.value}px` }),
6468
6468
  role: "grid"
6469
6469
  }, [
6470
- p("div", Hm, [
6470
+ p("div", zm, [
6471
6471
  ue(T.$slots, "header")
6472
6472
  ]),
6473
6473
  T.$slots.overlay ? ue(T.$slots, "overlay", { key: 0 }) : (g(!0), A(_e, { key: 1 }, Pe(T.items, (Y, X) => (g(), A("div", {
@@ -6518,7 +6518,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6518
6518
  ], 42, Um)), [
6519
6519
  [ja, !b(c)(T.hideNavigation, T.type)]
6520
6520
  ]) : B("", !0)
6521
- ], 46, zm);
6521
+ ], 46, Hm);
6522
6522
  };
6523
6523
  }
6524
6524
  }), Rn = /* @__PURE__ */ at({
@@ -6553,7 +6553,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6553
6553
  ], 2))), 128))
6554
6554
  ], 2));
6555
6555
  }
6556
- }), Qm = ["data-dp-element", "aria-label", "aria-disabled"], Ha = /* @__PURE__ */ at({
6556
+ }), Qm = ["data-dp-element", "aria-label", "aria-disabled"], za = /* @__PURE__ */ at({
6557
6557
  compatConfig: {
6558
6558
  MODE: 3
6559
6559
  },
@@ -6605,17 +6605,17 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6605
6605
  t("handle-year", _);
6606
6606
  };
6607
6607
  return (_, M) => {
6608
- var k, z, te, W, C;
6608
+ var k, H, te, W, C;
6609
6609
  return g(), A(_e, null, [
6610
6610
  p("div", {
6611
6611
  class: me(["dp--year-mode-picker", { "dp--hidden-el": f.value }])
6612
6612
  }, [
6613
- b(o)(b(l), e.instance) ? (g(), Te(Ha, {
6613
+ b(o)(b(l), e.instance) ? (g(), Te(za, {
6614
6614
  key: 0,
6615
6615
  ref: "mpPrevIconRef",
6616
6616
  "aria-label": (k = b(u)) == null ? void 0 : k.prevYear,
6617
6617
  disabled: e.isDisabled(!1),
6618
- class: me((z = b(i)) == null ? void 0 : z.navBtnPrev),
6618
+ class: me((H = b(i)) == null ? void 0 : H.navBtnPrev),
6619
6619
  onActivate: M[0] || (M[0] = ($) => D(!1))
6620
6620
  }, {
6621
6621
  default: ve(() => [
@@ -6641,7 +6641,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6641
6641
  rt(we(e.year), 1)
6642
6642
  ], 64))
6643
6643
  ], 40, Xm),
6644
- b(r)(b(l), e.instance) ? (g(), Te(Ha, {
6644
+ b(r)(b(l), e.instance) ? (g(), Te(za, {
6645
6645
  key: 1,
6646
6646
  ref: "mpNextIconRef",
6647
6647
  "aria-label": (W = b(u)) == null ? void 0 : W.nextYear,
@@ -6711,12 +6711,12 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6711
6711
  a.value = [e];
6712
6712
  }, Xr = (e, a, t) => {
6713
6713
  let n = e.value ? e.value.slice() : [];
6714
- return n.length === 2 && n[1] !== null && (n = []), n.length ? ze(a, n[0]) ? (n.unshift(a), t("range-start", n[0]), t("range-start", n[1])) : (n[1] = a, t("range-end", a)) : (n = [a], t("range-start", a)), n;
6714
+ return n.length === 2 && n[1] !== null && (n = []), n.length ? He(a, n[0]) ? (n.unshift(a), t("range-start", n[0]), t("range-start", n[1])) : (n[1] = a, t("range-end", a)) : (n = [a], t("range-start", a)), n;
6715
6715
  }, Nn = (e, a, t, n) => {
6716
6716
  e && (e[0] && e[1] && t && a("auto-apply"), e[0] && !e[1] && n && t && a("auto-apply"));
6717
6717
  }, cl = (e) => {
6718
6718
  Array.isArray(e.value) && e.value.length <= 2 && e.range ? e.modelValue.value = e.value.map((a) => yt(J(a), e.timezone)) : Array.isArray(e.value) || (e.modelValue.value = yt(J(e.value), e.timezone));
6719
- }, dl = (e, a, t, n) => Array.isArray(a.value) && (a.value.length === 2 || a.value.length === 1 && n.value.partialRange) ? n.value.fixedStart && (Ue(e, a.value[0]) || Se(e, a.value[0])) ? [a.value[0], e] : n.value.fixedEnd && (ze(e, a.value[1]) || Se(e, a.value[1])) ? [e, a.value[1]] : (t("invalid-fixed-range", e), a.value) : [], fl = ({
6719
+ }, dl = (e, a, t, n) => Array.isArray(a.value) && (a.value.length === 2 || a.value.length === 1 && n.value.partialRange) ? n.value.fixedStart && (Ue(e, a.value[0]) || Se(e, a.value[0])) ? [a.value[0], e] : n.value.fixedEnd && (He(e, a.value[1]) || Se(e, a.value[1])) ? [e, a.value[1]] : (t("invalid-fixed-range", e), a.value) : [], fl = ({
6720
6720
  multiCalendars: e,
6721
6721
  range: a,
6722
6722
  highlight: t,
@@ -6729,7 +6729,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6729
6729
  month: m,
6730
6730
  emit: i
6731
6731
  }) => {
6732
- const c = G(() => zr(s.yearRange, s.locale, s.reverseYears)), d = F([!1]), f = G(() => (I, K) => {
6732
+ const c = G(() => Hr(s.yearRange, s.locale, s.reverseYears)), d = F([!1]), f = G(() => (I, K) => {
6733
6733
  const ce = Ee(Ct(/* @__PURE__ */ new Date()), {
6734
6734
  month: m.value(I),
6735
6735
  year: u.value(I)
@@ -6766,13 +6766,13 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6766
6766
  const I = Array.isArray(o.value) ? M(o.value) : o.value;
6767
6767
  r.value[0] = { month: Ce(I), year: xe(I) };
6768
6768
  }
6769
- }, z = () => {
6769
+ }, H = () => {
6770
6770
  k(), e.value.count && v();
6771
6771
  };
6772
6772
  je(o, (I, K) => {
6773
- s.isTextInputDate && JSON.stringify(I ?? {}) !== JSON.stringify(K ?? {}) && z();
6773
+ s.isTextInputDate && JSON.stringify(I ?? {}) !== JSON.stringify(K ?? {}) && H();
6774
6774
  }), Ye(() => {
6775
- z();
6775
+ H();
6776
6776
  });
6777
6777
  const te = (I, K) => {
6778
6778
  r.value[K].year = I, i("update-month-year", { instance: K, year: I, month: r.value[K].month }), e.value.count && !e.value.solo && D(K);
@@ -6816,9 +6816,9 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6816
6816
  defaultedFilters: i,
6817
6817
  defaultedMultiDates: c
6818
6818
  } = qe(e), d = () => {
6819
- e.isTextInputDate && z(xe(J(e.startDate)), 0);
6819
+ e.isTextInputDate && H(xe(J(e.startDate)), 0);
6820
6820
  }, { modelValue: f, year: y, month: v, calendars: D } = nn(e, a, d), _ = G(() => Gs(e.formatLocale, e.locale, e.monthNameFormat)), M = F(null), { checkMinMaxRange: k } = oa(e), {
6821
- selectYear: z,
6821
+ selectYear: H,
6822
6822
  groupedYears: te,
6823
6823
  showYearPicker: W,
6824
6824
  toggleYearPicker: C,
@@ -6839,7 +6839,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6839
6839
  emit: a
6840
6840
  });
6841
6841
  Ye(() => {
6842
- e.startDate && (f.value && e.focusStartDate || !f.value) && z(xe(J(e.startDate)), 0);
6842
+ e.startDate && (f.value && e.focusStartDate || !f.value) && H(xe(J(e.startDate)), 0);
6843
6843
  });
6844
6844
  const K = (h) => h ? { month: Ce(h), year: xe(h) } : { month: null, year: null }, ce = () => f.value ? Array.isArray(f.value) ? f.value.map((h) => K(h)) : K(f.value) : K(), pe = (h, Y) => {
6845
6845
  const X = D.value[h], x = ce();
@@ -6877,7 +6877,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6877
6877
  }, le = (h, Y) => {
6878
6878
  Qr(j(h, Y), f, c.value.limit), a("auto-apply", !0);
6879
6879
  }, be = (h, Y) => (D.value[Y].month = h, P(Y, D.value[Y].year, h), c.value.enabled ? le(h, Y) : s.value.enabled ? Q(h, Y) : se(h, Y)), T = (h, Y) => {
6880
- z(h, Y), P(Y, h, null);
6880
+ H(h, Y), P(Y, h, null);
6881
6881
  }, P = (h, Y, X) => {
6882
6882
  let x = X;
6883
6883
  if (!x && x !== 0) {
@@ -6955,7 +6955,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
6955
6955
  selectMonth: _,
6956
6956
  selectYear: M,
6957
6957
  toggleYearPicker: k,
6958
- handleYearSelect: z,
6958
+ handleYearSelect: H,
6959
6959
  handleYear: te,
6960
6960
  getModelMonthYear: W
6961
6961
  } = Gm(s, n);
@@ -7005,7 +7005,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7005
7005
  year: b(m)(N),
7006
7006
  "is-disabled": (I) => b(i)(N, I),
7007
7007
  onHandleYear: (I) => b(te)(N, I),
7008
- onYearSelect: (I) => b(z)(I, N),
7008
+ onYearSelect: (I) => b(H)(I, N),
7009
7009
  onToggleYearPicker: (I) => b(k)(N, I == null ? void 0 : I.flow, I == null ? void 0 : I.show)
7010
7010
  }), lt({ _: 2 }, [
7011
7011
  Pe(b(o), (I, K) => ({
@@ -7040,7 +7040,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7040
7040
  Ye(() => {
7041
7041
  e.startDate && (n.value && e.focusStartDate || !n.value) && (i.value = xe(J(e.startDate)));
7042
7042
  });
7043
- const c = (v) => Array.isArray(n.value) ? n.value.some((D) => xe(D) === v) : n.value ? xe(n.value) === v : !1, d = (v) => u.value.enabled && Array.isArray(n.value) ? On(n.value, r.value, y(v)) : !1, f = G(() => Ca(zr(e.yearRange, e.locale, e.reverseYears), (v) => {
7043
+ const c = (v) => Array.isArray(n.value) ? n.value.some((D) => xe(D) === v) : n.value ? xe(n.value) === v : !1, d = (v) => u.value.enabled && Array.isArray(n.value) ? On(n.value, r.value, y(v)) : !1, f = G(() => Ca(Hr(e.yearRange, e.locale, e.reverseYears), (v) => {
7044
7044
  const D = c(v.value), _ = Ga(
7045
7045
  v.value,
7046
7046
  Sa(m.value.minDate),
@@ -7158,7 +7158,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7158
7158
  Ye(() => {
7159
7159
  n("mounted");
7160
7160
  });
7161
- const z = (w) => Ee(/* @__PURE__ */ new Date(), {
7161
+ const H = (w) => Ee(/* @__PURE__ */ new Date(), {
7162
7162
  hours: w.hours,
7163
7163
  minutes: w.minutes,
7164
7164
  seconds: r.enableSeconds ? w.seconds : 0,
@@ -7205,7 +7205,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7205
7205
  E.push({ value: r.is24 ? ee : se(ee, w), text: ee < 10 ? `0${ee}` : `${ee}` });
7206
7206
  return w === "hours" && !r.is24 && E.unshift({ value: v.value === "PM" ? 12 : 0, text: "12" }), Ca(E, (ee) => ({ active: !1, disabled: m.value.times[w].includes(ee.value) || !T(ee.value, w) || j(w, ee.value) || C(w, ee.value) }));
7207
7207
  }, le = (w) => w >= 0 ? w : 59, be = (w) => w >= 0 ? w : 23, T = (w, Z) => {
7208
- const ne = r.minTime ? z(tr(r.minTime)) : null, U = r.maxTime ? z(tr(r.maxTime)) : null, Ae = z(
7208
+ const ne = r.minTime ? H(tr(r.minTime)) : null, U = r.maxTime ? H(tr(r.maxTime)) : null, Ae = H(
7209
7209
  tr(
7210
7210
  W.value,
7211
7211
  Z,
@@ -7215,7 +7215,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7215
7215
  return ne && U ? (Xa(Ae, U) || xa(Ae, U)) && (Da(Ae, ne) || xa(Ae, ne)) : ne ? Da(Ae, ne) || xa(Ae, ne) : U ? Xa(Ae, U) || xa(Ae, U) : !0;
7216
7216
  }, P = (w) => r[`no${w[0].toUpperCase() + w.slice(1)}Overlay`], h = (w) => {
7217
7217
  P(w) || (y[w] = !y[w], y[w] ? (k.value = !0, n("overlay-opened", w)) : (k.value = !1, n("overlay-closed", w)));
7218
- }, Y = (w) => w === "hours" ? zt : w === "minutes" ? na : Ta, X = () => {
7218
+ }, Y = (w) => w === "hours" ? Ht : w === "minutes" ? na : Ta, X = () => {
7219
7219
  M.value && clearTimeout(M.value);
7220
7220
  }, x = (w, Z = !0, ne) => {
7221
7221
  const U = Z ? K : ce, Ae = Z ? +r[`${w}Increment`] : -+r[`${w}Increment`];
@@ -7446,7 +7446,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7446
7446
  "am-pm-change"
7447
7447
  ],
7448
7448
  setup(e, { expose: a, emit: t }) {
7449
- const n = t, r = e, { buildMatrix: o, setTimePicker: s } = ra(), l = va(), { defaultedTransitions: u, defaultedAriaLabels: m, defaultedTextInput: i, defaultedConfig: c, defaultedRange: d } = qe(r), { transitionName: f, showTransition: y } = an(u), { hideNavigationButtons: v } = En(), D = F(null), _ = F(null), M = F([]), k = F(null), z = F(!1);
7449
+ const n = t, r = e, { buildMatrix: o, setTimePicker: s } = ra(), l = va(), { defaultedTransitions: u, defaultedAriaLabels: m, defaultedTextInput: i, defaultedConfig: c, defaultedRange: d } = qe(r), { transitionName: f, showTransition: y } = an(u), { hideNavigationButtons: v } = En(), D = F(null), _ = F(null), M = F([]), k = F(null), H = F(!1);
7450
7450
  Ye(() => {
7451
7451
  n("mount"), !r.timePicker && r.arrowNavigation ? o([Ze(D.value)], "time") : s(!0, r.timePicker);
7452
7452
  });
@@ -7482,9 +7482,9 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7482
7482
  Q && Q.focus({ preventScroll: !0 });
7483
7483
  }
7484
7484
  }, j = (Q) => {
7485
- z.value = !1, n("overlay-closed", Q);
7485
+ H.value = !1, n("overlay-closed", Q);
7486
7486
  }, se = (Q) => {
7487
- z.value = !0, n("overlay-opened", Q);
7487
+ H.value = !0, n("overlay-opened", Q);
7488
7488
  };
7489
7489
  return a({ toggleTimePicker: N }), (Q, le) => {
7490
7490
  var be;
@@ -7586,7 +7586,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7586
7586
  ref_key: "closeTimePickerBtn",
7587
7587
  ref: _,
7588
7588
  type: "button",
7589
- class: me({ ...I.value, "dp--hidden-el": z.value }),
7589
+ class: me({ ...I.value, "dp--hidden-el": H.value }),
7590
7590
  "aria-label": (P = b(m)) == null ? void 0 : P.closeTimePicker,
7591
7591
  tabindex: "0",
7592
7592
  onKeydown: le[3] || (le[3] = (h) => b(ct)(h, () => N(!1))),
@@ -7607,11 +7607,11 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7607
7607
  };
7608
7608
  }
7609
7609
  }), hl = (e, a, t, n) => {
7610
- const { defaultedRange: r } = qe(e), o = (k, z) => Array.isArray(a[k]) ? a[k][z] : a[k], s = (k) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[k] : a.seconds : 0, l = (k, z) => k ? z !== void 0 ? ta(k, o("hours", z), o("minutes", z), s(z)) : ta(k, a.hours, a.minutes, s()) : Us(J(), s(z)), u = (k, z) => {
7611
- a[k] = z;
7612
- }, m = G(() => e.modelAuto && r.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : r.value.enabled), i = (k, z) => {
7610
+ const { defaultedRange: r } = qe(e), o = (k, H) => Array.isArray(a[k]) ? a[k][H] : a[k], s = (k) => e.enableSeconds ? Array.isArray(a.seconds) ? a.seconds[k] : a.seconds : 0, l = (k, H) => k ? H !== void 0 ? ta(k, o("hours", H), o("minutes", H), s(H)) : ta(k, a.hours, a.minutes, s()) : Us(J(), s(H)), u = (k, H) => {
7611
+ a[k] = H;
7612
+ }, m = G(() => e.modelAuto && r.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : r.value.enabled), i = (k, H) => {
7613
7613
  const te = Object.fromEntries(
7614
- Object.keys(a).map((W) => W === k ? [W, z] : [W, a[W]].slice())
7614
+ Object.keys(a).map((W) => W === k ? [W, H] : [W, a[W]].slice())
7615
7615
  );
7616
7616
  if (m.value && !r.value.disableTimeRangeValidation) {
7617
7617
  const W = ($) => t.value ? ta(
@@ -7623,31 +7623,31 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7623
7623
  return !(Se(W(0), W(1)) && (Da(W(0), C(1)) || Xa(W(1), C(0))));
7624
7624
  }
7625
7625
  return !0;
7626
- }, c = (k, z) => {
7627
- i(k, z) && (u(k, z), n && n());
7626
+ }, c = (k, H) => {
7627
+ i(k, H) && (u(k, H), n && n());
7628
7628
  }, d = (k) => {
7629
7629
  c("hours", k);
7630
7630
  }, f = (k) => {
7631
7631
  c("minutes", k);
7632
7632
  }, y = (k) => {
7633
7633
  c("seconds", k);
7634
- }, v = (k, z, te, W) => {
7635
- z && d(k), !z && !te && f(k), te && y(k), t.value && W(t.value);
7634
+ }, v = (k, H, te, W) => {
7635
+ H && d(k), !H && !te && f(k), te && y(k), t.value && W(t.value);
7636
7636
  }, D = (k) => {
7637
7637
  if (k) {
7638
- const z = Array.isArray(k), te = z ? [+k[0].hours, +k[1].hours] : +k.hours, W = z ? [+k[0].minutes, +k[1].minutes] : +k.minutes, C = z ? [+k[0].seconds, +k[1].seconds] : +k.seconds;
7638
+ const H = Array.isArray(k), te = H ? [+k[0].hours, +k[1].hours] : +k.hours, W = H ? [+k[0].minutes, +k[1].minutes] : +k.minutes, C = H ? [+k[0].seconds, +k[1].seconds] : +k.seconds;
7639
7639
  u("hours", te), u("minutes", W), e.enableSeconds && u("seconds", C);
7640
7640
  }
7641
- }, _ = (k, z) => {
7641
+ }, _ = (k, H) => {
7642
7642
  const te = {
7643
7643
  hours: Array.isArray(a.hours) ? a.hours[k] : a.hours,
7644
7644
  disabledArr: []
7645
7645
  };
7646
- return (z || z === 0) && (te.hours = z), Array.isArray(e.disabledTimes) && (te.disabledArr = r.value.enabled && Array.isArray(e.disabledTimes[k]) ? e.disabledTimes[k] : e.disabledTimes), te;
7647
- }, M = G(() => (k, z) => {
7646
+ return (H || H === 0) && (te.hours = H), Array.isArray(e.disabledTimes) && (te.disabledArr = r.value.enabled && Array.isArray(e.disabledTimes[k]) ? e.disabledTimes[k] : e.disabledTimes), te;
7647
+ }, M = G(() => (k, H) => {
7648
7648
  var te;
7649
7649
  if (Array.isArray(e.disabledTimes)) {
7650
- const { disabledArr: W, hours: C } = _(k, z), $ = W.filter((N) => +N.hours === C);
7650
+ const { disabledArr: W, hours: C } = _(k, H), $ = W.filter((N) => +N.hours === C);
7651
7651
  return ((te = $[0]) == null ? void 0 : te.minutes) === "*" ? { hours: [C], minutes: void 0, seconds: void 0 } : {
7652
7652
  hours: [],
7653
7653
  minutes: ($ == null ? void 0 : $.map((N) => +N.minutes)) ?? [],
@@ -7670,7 +7670,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7670
7670
  };
7671
7671
  }, p0 = (e, a) => {
7672
7672
  const t = () => {
7673
- e.isTextInputDate && z();
7673
+ e.isTextInputDate && H();
7674
7674
  }, { modelValue: n, time: r } = nn(e, a, t), { defaultedStartTime: o, defaultedRange: s, defaultedTz: l } = qe(e), { updateTimeValues: u, getSetDateTime: m, setTime: i, assignStartTime: c, disabledTimesConfig: d, validateTime: f } = hl(e, r, n, y);
7675
7675
  function y() {
7676
7676
  a("update-flow-step");
@@ -7699,7 +7699,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7699
7699
  n.value = yt(m(D()), l.value.timezone);
7700
7700
  }, M = (W) => Array.isArray(W) ? [ma(J(W[0])), ma(J(W[1]))] : [ma(W ?? J())], k = (W, C, $) => {
7701
7701
  i("hours", W), i("minutes", C), i("seconds", e.enableSeconds ? $ : 0);
7702
- }, z = () => {
7702
+ }, H = () => {
7703
7703
  const [W, C] = M(n.value);
7704
7704
  return s.value.enabled ? k(
7705
7705
  [W.hours, C.hours],
@@ -7709,7 +7709,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7709
7709
  };
7710
7710
  Ye(() => {
7711
7711
  if (!e.shadow)
7712
- return c(o.value), n.value ? z() : _();
7712
+ return c(o.value), n.value ? H() : _();
7713
7713
  });
7714
7714
  const te = () => {
7715
7715
  Array.isArray(n.value) ? n.value = n.value.map((W, C) => W && m(W, C)) : n.value = m(n.value), a("time-update");
@@ -7812,7 +7812,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7812
7812
  defaultedHighlight: i,
7813
7813
  propDates: c,
7814
7814
  defaultedUI: d
7815
- } = qe(r), { transitionName: f, showTransition: y } = an(o), { buildMatrix: v } = ra(), { handleMonthYearChange: D, isDisabled: _, updateMonthYear: M } = Bm(r, n), { showLeftIcon: k, showRightIcon: z } = En(), te = F(!1), W = F(!1), C = F(!1), $ = F([null, null, null, null]);
7815
+ } = qe(r), { transitionName: f, showTransition: y } = an(o), { buildMatrix: v } = ra(), { handleMonthYearChange: D, isDisabled: _, updateMonthYear: M } = Bm(r, n), { showLeftIcon: k, showRightIcon: H } = En(), te = F(!1), W = F(!1), C = F(!1), $ = F([null, null, null, null]);
7816
7816
  Ye(() => {
7817
7817
  n("mount");
7818
7818
  });
@@ -7896,7 +7896,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
7896
7896
  ue(P.$slots, "top-extra", { value: P.internalModelValue })
7897
7897
  ])) : B("", !0),
7898
7898
  p("div", b0, [
7899
- b(k)(b(l), e.instance) && !P.vertical ? (g(), Te(Ha, {
7899
+ b(k)(b(l), e.instance) && !P.vertical ? (g(), Te(za, {
7900
7900
  key: 0,
7901
7901
  "aria-label": (Y = b(s)) == null ? void 0 : Y.prevMonth,
7902
7902
  disabled: b(_)(!1),
@@ -8000,7 +8000,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8000
8000
  }, 1032, ["name", "css"])
8001
8001
  ], 64))), 128))
8002
8002
  ], 2),
8003
- b(k)(b(l), e.instance) && P.vertical ? (g(), Te(Ha, {
8003
+ b(k)(b(l), e.instance) && P.vertical ? (g(), Te(za, {
8004
8004
  key: 1,
8005
8005
  "aria-label": (x = b(s)) == null ? void 0 : x.prevMonth,
8006
8006
  "el-name": "action-prev",
@@ -8014,7 +8014,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8014
8014
  ]),
8015
8015
  _: 3
8016
8016
  }, 8, ["aria-label", "disabled", "class"])) : B("", !0),
8017
- b(z)(b(l), e.instance) ? (g(), Te(Ha, {
8017
+ b(H)(b(l), e.instance) ? (g(), Te(za, {
8018
8018
  key: 2,
8019
8019
  ref: "rightIcon",
8020
8020
  "el-name": "action-next",
@@ -8081,7 +8081,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8081
8081
  bottom: "",
8082
8082
  left: "",
8083
8083
  transform: ""
8084
- }), v = F([]), D = F(null), _ = F(!0), M = F(""), k = F({ startX: 0, endX: 0, startY: 0, endY: 0 }), z = F([]), te = F({ left: "50%" }), W = F(!1), C = G(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), $ = G(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : im(r.formatLocale, r.locale, +r.weekStart));
8084
+ }), v = F([]), D = F(null), _ = F(!0), M = F(""), k = F({ startX: 0, endX: 0, startY: 0, endY: 0 }), H = F([]), te = F({ left: "50%" }), W = F(!1), C = G(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), $ = G(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : im(r.formatLocale, r.locale, +r.weekStart));
8085
8085
  Ye(() => {
8086
8086
  n("mount", { cmp: "calendar", refs: v }), l.value.noSwipe || D.value && (D.value.addEventListener("touchstart", le, { passive: !1 }), D.value.addEventListener("touchend", be, { passive: !1 }), D.value.addEventListener("touchmove", T, { passive: !1 })), r.monthChangeOnScroll && D.value && D.value.addEventListener("wheel", Y, { passive: !1 });
8087
8087
  });
@@ -8109,8 +8109,8 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8109
8109
  const { width: w, height: Z } = q.getBoundingClientRect();
8110
8110
  f.value = ae.value;
8111
8111
  let ne = { left: `${w / 2}px` }, U = -50;
8112
- if (await Ke(), z.value[0]) {
8113
- const { left: Ae, width: E } = z.value[0].getBoundingClientRect();
8112
+ if (await Ke(), H.value[0]) {
8113
+ const { left: Ae, width: E } = H.value[0].getBoundingClientRect();
8114
8114
  Ae < 0 && (ne = { left: "0" }, U = 0, te.value.left = `${w / 2}px`), window.innerWidth < Ae + E && (ne = { right: "0" }, U = 0, te.value.left = `${E - w / 2}px`);
8115
8115
  }
8116
8116
  y.value = {
@@ -8252,7 +8252,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8252
8252
  key: 3,
8253
8253
  ref_for: !0,
8254
8254
  ref_key: "activeTooltip",
8255
- ref: z,
8255
+ ref: H,
8256
8256
  class: "dp__marker_tooltip",
8257
8257
  style: bt(y.value)
8258
8258
  }, [
@@ -8304,13 +8304,13 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8304
8304
  defaultedTz: D,
8305
8305
  propDates: _,
8306
8306
  defaultedMultiDates: M
8307
- } = qe(e), { validateMonthYearInRange: k, isDisabled: z, isDateRangeAllowed: te, checkMinMaxRange: W } = oa(e), { updateTimeValues: C, getSetDateTime: $, setTime: N, assignStartTime: I, validateTime: K, disabledTimesConfig: ce } = hl(e, i, u, n), pe = G(
8307
+ } = qe(e), { validateMonthYearInRange: k, isDisabled: H, isDateRangeAllowed: te, checkMinMaxRange: W } = oa(e), { updateTimeValues: C, getSetDateTime: $, setTime: N, assignStartTime: I, validateTime: K, disabledTimesConfig: ce } = hl(e, i, u, n), pe = G(
8308
8308
  () => (R) => m.value[R] ? m.value[R].month : 0
8309
8309
  ), O = G(
8310
8310
  () => (R) => m.value[R] ? m.value[R].year : 0
8311
- ), L = (R) => !v.value.keepViewOnOffsetClick || R ? !0 : !s.value, S = (R, oe, H, re = !1) => {
8311
+ ), L = (R) => !v.value.keepViewOnOffsetClick || R ? !0 : !s.value, S = (R, oe, z, re = !1) => {
8312
8312
  var de, it;
8313
- L(re) && (m.value[R] || (m.value[R] = { month: 0, year: 0 }), m.value[R].month = To(oe) ? (de = m.value[R]) == null ? void 0 : de.month : oe, m.value[R].year = To(H) ? (it = m.value[R]) == null ? void 0 : it.year : H);
8313
+ L(re) && (m.value[R] || (m.value[R] = { month: 0, year: 0 }), m.value[R].month = To(oe) ? (de = m.value[R]) == null ? void 0 : de.month : oe, m.value[R].year = To(z) ? (it = m.value[R]) == null ? void 0 : it.year : z);
8314
8314
  }, j = () => {
8315
8315
  e.autoApply && a("select-date");
8316
8316
  };
@@ -8329,65 +8329,65 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8329
8329
  return T(J(), R);
8330
8330
  }, be = () => Array.isArray(u.value) && y.value.enabled ? Ce(u.value[0]) === Ce(u.value[1] ?? u.value[0]) : !1, T = (R = /* @__PURE__ */ new Date(), oe = !1) => {
8331
8331
  if ((!d.value.count || !d.value.static || oe) && S(0, Ce(R), xe(R)), d.value.count && (!d.value.solo || !u.value || be()))
8332
- for (let H = 1; H < d.value.count; H++) {
8333
- const re = Ee(J(), { month: pe.value(H - 1), year: O.value(H - 1) }), de = Ps(re, { months: 1 });
8334
- m.value[H] = { month: Ce(de), year: xe(de) };
8332
+ for (let z = 1; z < d.value.count; z++) {
8333
+ const re = Ee(J(), { month: pe.value(z - 1), year: O.value(z - 1) }), de = Ps(re, { months: 1 });
8334
+ m.value[z] = { month: Ce(de), year: xe(de) };
8335
8335
  }
8336
8336
  }, P = (R, oe) => {
8337
- T(R), N("hours", zt(R)), N("minutes", na(R)), N("seconds", Ta(R)), d.value.count && oe && Ge();
8337
+ T(R), N("hours", Ht(R)), N("minutes", na(R)), N("seconds", Ta(R)), d.value.count && oe && Ge();
8338
8338
  }, h = (R) => {
8339
8339
  if (d.value.count) {
8340
8340
  if (d.value.solo) return 0;
8341
- const oe = Ce(R[0]), H = Ce(R[1]);
8342
- return Math.abs(H - oe) < d.value.count ? 0 : 1;
8341
+ const oe = Ce(R[0]), z = Ce(R[1]);
8342
+ return Math.abs(z - oe) < d.value.count ? 0 : 1;
8343
8343
  }
8344
8344
  return 1;
8345
8345
  }, Y = (R, oe) => {
8346
8346
  R[1] && y.value.showLastInRange ? T(R[h(R)], oe) : T(R[0], oe);
8347
- const H = (re, de) => [
8347
+ const z = (re, de) => [
8348
8348
  re(R[0]),
8349
8349
  R[1] ? re(R[1]) : i[de][1]
8350
8350
  ];
8351
- N("hours", H(zt, "hours")), N("minutes", H(na, "minutes")), N("seconds", H(Ta, "seconds"));
8351
+ N("hours", z(Ht, "hours")), N("minutes", z(na, "minutes")), N("seconds", z(Ta, "seconds"));
8352
8352
  }, X = (R, oe) => {
8353
8353
  if ((y.value.enabled || e.weekPicker) && !M.value.enabled)
8354
8354
  return Y(R, oe);
8355
8355
  if (M.value.enabled && oe) {
8356
- const H = R[R.length - 1];
8357
- return P(H, oe);
8356
+ const z = R[R.length - 1];
8357
+ return P(z, oe);
8358
8358
  }
8359
8359
  }, x = (R) => {
8360
8360
  const oe = u.value;
8361
8361
  X(oe, R), d.value.count && d.value.solo && Ge();
8362
8362
  }, ie = (R, oe) => {
8363
- const H = Ee(J(), { month: pe.value(oe), year: O.value(oe) }), re = R < 0 ? Ot(H, 1) : Pa(H, 1);
8363
+ const z = Ee(J(), { month: pe.value(oe), year: O.value(oe) }), re = R < 0 ? Ot(z, 1) : Pa(z, 1);
8364
8364
  k(Ce(re), xe(re), R < 0, e.preventMinMaxNavigation) && (S(oe, Ce(re), xe(re)), a("update-month-year", { instance: oe, month: Ce(re), year: xe(re) }), d.value.count && !d.value.solo && ke(oe), t());
8365
8365
  }, ke = (R) => {
8366
8366
  for (let oe = R - 1; oe >= 0; oe--) {
8367
- const H = Pa(Ee(J(), { month: pe.value(oe + 1), year: O.value(oe + 1) }), 1);
8368
- S(oe, Ce(H), xe(H));
8367
+ const z = Pa(Ee(J(), { month: pe.value(oe + 1), year: O.value(oe + 1) }), 1);
8368
+ S(oe, Ce(z), xe(z));
8369
8369
  }
8370
8370
  for (let oe = R + 1; oe <= d.value.count - 1; oe++) {
8371
- const H = Ot(Ee(J(), { month: pe.value(oe - 1), year: O.value(oe - 1) }), 1);
8372
- S(oe, Ce(H), xe(H));
8371
+ const z = Ot(Ee(J(), { month: pe.value(oe - 1), year: O.value(oe - 1) }), 1);
8372
+ S(oe, Ce(z), xe(z));
8373
8373
  }
8374
8374
  }, Ge = () => {
8375
8375
  if (Array.isArray(u.value) && u.value.length === 2) {
8376
8376
  const R = J(
8377
8377
  J(u.value[1] ? u.value[1] : Ot(u.value[0], 1))
8378
- ), [oe, H] = [Ce(u.value[0]), xe(u.value[0])], [re, de] = [Ce(u.value[1]), xe(u.value[1])];
8379
- (oe !== re || oe === re && H !== de) && d.value.solo && S(1, Ce(R), xe(R));
8378
+ ), [oe, z] = [Ce(u.value[0]), xe(u.value[0])], [re, de] = [Ce(u.value[1]), xe(u.value[1])];
8379
+ (oe !== re || oe === re && z !== de) && d.value.solo && S(1, Ce(R), xe(R));
8380
8380
  } else u.value && !Array.isArray(u.value) && (S(0, Ce(u.value), xe(u.value)), T(J()));
8381
8381
  }, q = () => {
8382
8382
  e.startDate && (S(0, Ce(J(e.startDate)), xe(J(e.startDate))), d.value.count && ke(0));
8383
8383
  }, ae = (R, oe) => {
8384
8384
  if (e.monthChangeOnScroll) {
8385
- const H = (/* @__PURE__ */ new Date()).getTime() - o.value.getTime(), re = Math.abs(R.deltaY);
8385
+ const z = (/* @__PURE__ */ new Date()).getTime() - o.value.getTime(), re = Math.abs(R.deltaY);
8386
8386
  let de = 500;
8387
- re > 1 && (de = 100), re > 100 && (de = 0), H > de && (o.value = /* @__PURE__ */ new Date(), ie(e.monthChangeOnScroll !== "inverse" ? -R.deltaY : R.deltaY, oe));
8387
+ re > 1 && (de = 100), re > 100 && (de = 0), z > de && (o.value = /* @__PURE__ */ new Date(), ie(e.monthChangeOnScroll !== "inverse" ? -R.deltaY : R.deltaY, oe));
8388
8388
  }
8389
- }, w = (R, oe, H = !1) => {
8390
- e.monthChangeOnArrows && e.vertical === H && Z(R, oe);
8389
+ }, w = (R, oe, z = !1) => {
8390
+ e.monthChangeOnArrows && e.vertical === z && Z(R, oe);
8391
8391
  }, Z = (R, oe) => {
8392
8392
  ie(R === "right" ? -1 : 1, oe);
8393
8393
  }, ne = (R) => {
@@ -8406,9 +8406,9 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8406
8406
  default:
8407
8407
  return [!1, !1];
8408
8408
  }
8409
- }, Ae = (R, oe, H, re) => {
8409
+ }, Ae = (R, oe, z, re) => {
8410
8410
  if (e.sixWeeks && R.length < 6) {
8411
- const de = 6 - R.length, it = (oe.getDay() + 7 - re) % 7, At = 6 - (H.getDay() + 7 - re) % 7, [sa, cn] = U(it, At);
8411
+ const de = 6 - R.length, it = (oe.getDay() + 7 - re) % 7, At = 6 - (z.getDay() + 7 - re) % 7, [sa, cn] = U(it, At);
8412
8412
  for (let Fa = 1; Fa <= de; Fa++)
8413
8413
  if (cn ? !!(Fa % 2) == sa : sa) {
8414
8414
  const Vt = R[0].days[0], Un = E(Pt(Vt.value, -7), Ce(oe));
@@ -8420,9 +8420,9 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8420
8420
  }
8421
8421
  return R;
8422
8422
  }, E = (R, oe) => {
8423
- const H = J(R), re = [];
8423
+ const z = J(R), re = [];
8424
8424
  for (let de = 0; de < 7; de++) {
8425
- const it = Pt(H, de), At = Ce(it) !== oe;
8425
+ const it = Pt(z, de), At = Ce(it) !== oe;
8426
8426
  re.push({
8427
8427
  text: e.hideOffsetDates && At ? "" : it.getDate(),
8428
8428
  value: it,
@@ -8432,32 +8432,32 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8432
8432
  }
8433
8433
  return re;
8434
8434
  }, ee = (R, oe) => {
8435
- const H = [], re = new Date(oe, R), de = new Date(oe, R + 1, 0), it = e.weekStart, At = $t(re, { weekStartsOn: it }), sa = (cn) => {
8435
+ const z = [], re = new Date(oe, R), de = new Date(oe, R + 1, 0), it = e.weekStart, At = $t(re, { weekStartsOn: it }), sa = (cn) => {
8436
8436
  const Fa = E(cn, R);
8437
- if (H.push({ days: Fa }), !H[H.length - 1].days.some(
8437
+ if (z.push({ days: Fa }), !z[z.length - 1].days.some(
8438
8438
  (Vt) => Se(ft(Vt.value), ft(de))
8439
8439
  )) {
8440
8440
  const Vt = Pt(cn, 7);
8441
8441
  sa(Vt);
8442
8442
  }
8443
8443
  };
8444
- return sa(At), Ae(H, re, de, it);
8444
+ return sa(At), Ae(z, re, de, it);
8445
8445
  }, he = (R) => {
8446
8446
  const oe = ta(J(R.value), i.hours, i.minutes, wt());
8447
8447
  a("date-update", oe), M.value.enabled ? Qr(oe, u, M.value.limit) : u.value = oe, n(), Ke().then(() => {
8448
8448
  Q();
8449
8449
  });
8450
- }, De = (R) => y.value.noDisabledRange ? al(r.value[0], R).some((oe) => z(oe)) : !1, xt = () => {
8450
+ }, De = (R) => y.value.noDisabledRange ? al(r.value[0], R).some((oe) => H(oe)) : !1, xt = () => {
8451
8451
  r.value = u.value ? u.value.slice() : [], r.value.length === 2 && !(y.value.fixedStart || y.value.fixedEnd) && (r.value = []);
8452
8452
  }, ge = (R, oe) => {
8453
- const H = [
8453
+ const z = [
8454
8454
  J(R.value),
8455
8455
  Pt(J(R.value), +y.value.autoRange)
8456
8456
  ];
8457
- te(H) ? (oe && Ht(R.value), r.value = H) : a("invalid-date", R.value);
8458
- }, Ht = (R) => {
8459
- const oe = Ce(J(R)), H = xe(J(R));
8460
- if (S(0, oe, H), d.value.count > 0)
8457
+ te(z) ? (oe && zt(R.value), r.value = z) : a("invalid-date", R.value);
8458
+ }, zt = (R) => {
8459
+ const oe = Ce(J(R)), z = xe(J(R));
8460
+ if (S(0, oe, z), d.value.count > 0)
8461
8461
  for (let re = 1; re < d.value.count; re++) {
8462
8462
  const de = ym(
8463
8463
  Ee(J(R), { year: O.value(re - 1), month: pe.value(re - 1) })
@@ -8471,7 +8471,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8471
8471
  }, Ea = (R, oe) => {
8472
8472
  if (xt(), y.value.autoRange) return ge(R, oe);
8473
8473
  if (y.value.fixedStart || y.value.fixedEnd) return Et(R);
8474
- r.value[0] ? W(J(R.value), u.value) && !De(R.value) ? ze(J(R.value), J(r.value[0])) ? (r.value.unshift(J(R.value)), a("range-end", r.value[0])) : (r.value[1] = J(R.value), a("range-end", r.value[1])) : (e.autoApply && a("auto-apply-invalid", R.value), a("invalid-date", R.value)) : (r.value[0] = J(R.value), a("range-start", r.value[0]));
8474
+ r.value[0] ? W(J(R.value), u.value) && !De(R.value) ? He(J(R.value), J(r.value[0])) ? (r.value.unshift(J(R.value)), a("range-end", r.value[0])) : (r.value[1] = J(R.value), a("range-end", r.value[1])) : (e.autoApply && a("auto-apply-invalid", R.value), a("invalid-date", R.value)) : (r.value[0] = J(R.value), a("range-start", r.value[0]));
8475
8475
  }, wt = (R = !0) => e.enableSeconds ? Array.isArray(i.seconds) ? R ? i.seconds[0] : i.seconds[1] : i.seconds : 0, Ya = (R) => {
8476
8476
  r.value[R] = ta(
8477
8477
  r.value[R],
@@ -8485,13 +8485,13 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8485
8485
  }, un = () => {
8486
8486
  r.value.length && (r.value[0] && !r.value[1] ? Ya(0) : (Ya(0), Ya(1), n()), Bn(), u.value = r.value.slice(), Nn(r.value, a, e.autoApply, e.modelAuto));
8487
8487
  }, qn = (R, oe = !1) => {
8488
- if (z(R.value) || !R.current && e.hideOffsetDates) return a("invalid-date", R.value);
8488
+ if (H(R.value) || !R.current && e.hideOffsetDates) return a("invalid-date", R.value);
8489
8489
  if (s.value = JSON.parse(JSON.stringify(R)), !y.value.enabled) return he(R);
8490
8490
  $o(i.hours) && $o(i.minutes) && !M.value.enabled && (Ea(R, oe), un());
8491
8491
  }, Wn = (R, oe) => {
8492
- var H;
8492
+ var z;
8493
8493
  S(R, oe.month, oe.year, !0), d.value.count && !d.value.solo && ke(R), a("update-month-year", { instance: R, month: oe.month, year: oe.year }), t(d.value.solo ? R : void 0);
8494
- const re = (H = e.flow) != null && H.length ? e.flow[e.flowStep] : void 0;
8494
+ const re = (z = e.flow) != null && z.length ? e.flow[e.flowStep] : void 0;
8495
8495
  !oe.fromNav && (re === st.month || re === st.year) && n();
8496
8496
  }, jn = (R, oe) => {
8497
8497
  cl({
@@ -8500,10 +8500,10 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8500
8500
  range: y.value.enabled,
8501
8501
  timezone: oe ? void 0 : D.value.timezone
8502
8502
  }), j(), e.multiCalendars && Ke().then(() => le(!0));
8503
- }, zn = () => {
8504
- const R = jr(J(), D.value);
8505
- y.value.enabled ? u.value && Array.isArray(u.value) && u.value[0] ? u.value = ze(R, u.value[0]) ? [R, u.value[0]] : [u.value[0], R] : u.value = [R] : u.value = R, j();
8506
8503
  }, Hn = () => {
8504
+ const R = jr(J(), D.value);
8505
+ y.value.enabled ? u.value && Array.isArray(u.value) && u.value[0] ? u.value = He(R, u.value[0]) ? [R, u.value[0]] : [u.value[0], R] : u.value = [R] : u.value = R, j();
8506
+ }, zn = () => {
8507
8507
  if (Array.isArray(u.value))
8508
8508
  if (M.value.enabled) {
8509
8509
  const R = Vn();
@@ -8531,9 +8531,9 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8531
8531
  selectDate: qn,
8532
8532
  updateMonthYear: Wn,
8533
8533
  presetDate: jn,
8534
- selectCurrentDate: zn,
8535
- updateTime: (R, oe = !0, H = !1) => {
8536
- C(R, oe, H, Hn);
8534
+ selectCurrentDate: Hn,
8535
+ updateTime: (R, oe = !0, z = !1) => {
8536
+ C(R, oe, z, zn);
8537
8537
  },
8538
8538
  assignMonthAndYear: T
8539
8539
  };
@@ -8583,7 +8583,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8583
8583
  handleSwipe: _,
8584
8584
  selectDate: M,
8585
8585
  updateMonthYear: k,
8586
- presetDate: z,
8586
+ presetDate: H,
8587
8587
  selectCurrentDate: te,
8588
8588
  updateTime: W,
8589
8589
  assignMonthAndYear: C
@@ -8650,7 +8650,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8650
8650
  };
8651
8651
  return a({
8652
8652
  clearHoverDate: K,
8653
- presetDate: z,
8653
+ presetDate: H,
8654
8654
  selectCurrentDate: te,
8655
8655
  toggleMonthPicker: h,
8656
8656
  toggleYearPicker: Y,
@@ -8665,7 +8665,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8665
8665
  updateTime: W,
8666
8666
  updateMonthYear: k,
8667
8667
  selectDate: M,
8668
- presetDate: z
8668
+ presetDate: H
8669
8669
  }),
8670
8670
  changeMonth: ie,
8671
8671
  changeYear: ke,
@@ -8682,7 +8682,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8682
8682
  U && (pe.value[ne] = U);
8683
8683
  },
8684
8684
  months: b(Gs)(ae.formatLocale, ae.locale, ae.monthNameFormat),
8685
- years: b(zr)(ae.yearRange, ae.locale, ae.reverseYears),
8685
+ years: b(Hr)(ae.yearRange, ae.locale, ae.reverseYears),
8686
8686
  month: b(s)(Z),
8687
8687
  year: b(l)(Z),
8688
8688
  instance: Z
@@ -8769,7 +8769,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8769
8769
  propDates: l,
8770
8770
  defaultedFilters: u,
8771
8771
  defaultedMultiDates: m
8772
- } = qe(e), { modelValue: i, year: c, month: d, calendars: f } = nn(e, a), { isDisabled: y } = oa(e), { selectYear: v, groupedYears: D, showYearPicker: _, isDisabled: M, toggleYearPicker: k, handleYearSelect: z, handleYear: te } = fl({
8772
+ } = qe(e), { modelValue: i, year: c, month: d, calendars: f } = nn(e, a), { isDisabled: y } = oa(e), { selectYear: v, groupedYears: D, showYearPicker: _, isDisabled: M, toggleYearPicker: k, handleYearSelect: H, handleYear: te } = fl({
8773
8773
  modelValue: i,
8774
8774
  multiCalendars: n,
8775
8775
  range: s,
@@ -8831,7 +8831,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8831
8831
  return f.value[S].month = Ce(go(L)), m.value.enabled ? ce(L) : s.value.enabled ? pe(L) : O(L);
8832
8832
  },
8833
8833
  toggleYearPicker: k,
8834
- handleYearSelect: z,
8834
+ handleYearSelect: H,
8835
8835
  handleYear: te
8836
8836
  };
8837
8837
  }, E0 = { class: "dp--quarter-items" }, Y0 = ["data-test", "disabled", "onClick", "onMouseover"], F0 = /* @__PURE__ */ at({
@@ -8874,9 +8874,9 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8874
8874
  selectQuarter: D,
8875
8875
  handleYearSelect: M,
8876
8876
  handleYear: k
8877
- }) }), (z, te) => (g(), Te(Rn, {
8877
+ }) }), (H, te) => (g(), Te(Rn, {
8878
8878
  "multi-calendars": b(l).count,
8879
- collapse: z.collapse,
8879
+ collapse: H.collapse,
8880
8880
  stretch: ""
8881
8881
  }, {
8882
8882
  default: ve(({ instance: W }) => [
@@ -8884,12 +8884,12 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8884
8884
  class: "dp-quarter-picker-wrap",
8885
8885
  style: bt({ minHeight: `${b(u).modeHeight}px` })
8886
8886
  }, [
8887
- z.$slots["top-extra"] ? ue(z.$slots, "top-extra", {
8887
+ H.$slots["top-extra"] ? ue(H.$slots, "top-extra", {
8888
8888
  key: 0,
8889
- value: z.internalModelValue
8889
+ value: H.internalModelValue
8890
8890
  }) : B("", !0),
8891
8891
  p("div", null, [
8892
- Fe(ul, et(z.$props, {
8892
+ Fe(ul, et(H.$props, {
8893
8893
  items: b(m)(W),
8894
8894
  instance: W,
8895
8895
  "show-year-picker": b(y)[W],
@@ -8902,7 +8902,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8902
8902
  Pe(b(s), (C, $) => ({
8903
8903
  name: C,
8904
8904
  fn: ve((N) => [
8905
- ue(z.$slots, C, tt(pt(N)))
8905
+ ue(H.$slots, C, tt(pt(N)))
8906
8906
  ])
8907
8907
  }))
8908
8908
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
@@ -8922,7 +8922,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8922
8922
  onClick: (N) => b(D)(C.value, W, C.disabled),
8923
8923
  onMouseover: (N) => b(v)(C.value)
8924
8924
  }, [
8925
- z.$slots.quarter ? ue(z.$slots, "quarter", {
8925
+ H.$slots.quarter ? ue(H.$slots, "quarter", {
8926
8926
  key: 0,
8927
8927
  value: C.value,
8928
8928
  text: C.text
@@ -8948,7 +8948,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
8948
8948
  }, j0 = {
8949
8949
  key: 0,
8950
8950
  class: "dp__sidebar_left"
8951
- }, z0 = ["data-test", "onClick", "onKeydown"], H0 = {
8951
+ }, H0 = ["data-test", "onClick", "onKeydown"], z0 = {
8952
8952
  key: 2,
8953
8953
  class: "dp__sidebar_right"
8954
8954
  }, V0 = {
@@ -9005,7 +9005,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
9005
9005
  }), { setMenuFocused: l, setShiftKey: u, control: m } = il(), i = va(), { defaultedTextInput: c, defaultedInline: d, defaultedConfig: f, defaultedUI: y } = qe(r), v = F(null), D = F(0), _ = F(null), M = F(!1), k = F(null);
9006
9006
  Ye(() => {
9007
9007
  if (!r.shadow) {
9008
- M.value = !0, z(), window.addEventListener("resize", z);
9008
+ M.value = !0, H(), window.addEventListener("resize", H);
9009
9009
  const E = Ze(o);
9010
9010
  if (E && !c.value.enabled && !d.value.enabled && (l(!0), S()), E) {
9011
9011
  const ee = (he) => {
@@ -9015,9 +9015,9 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
9015
9015
  }
9016
9016
  }
9017
9017
  }), Ka(() => {
9018
- window.removeEventListener("resize", z);
9018
+ window.removeEventListener("resize", H);
9019
9019
  });
9020
- const z = () => {
9020
+ const H = () => {
9021
9021
  const E = Ze(_);
9022
9022
  E && (D.value = E.getBoundingClientRect().width);
9023
9023
  }, { arrowRight: te, arrowLeft: W, arrowDown: C, arrowUp: $ } = ra(), { flowStep: N, updateFlowStep: I, childMount: K, resetFlow: ce, handleFlow: pe } = Z0(r, n, k), O = G(() => r.monthPicker ? Zm : r.yearPicker ? Jm : r.timePicker ? v0 : r.quarterPicker ? F0 : R0), L = G(() => {
@@ -9149,7 +9149,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
9149
9149
  key: 1,
9150
9150
  class: me({ "dp--preset-dates-collapsed": e.collapse, "dp--preset-dates": !0 })
9151
9151
  }, [
9152
- (g(!0), A(_e, null, Pe(E.presetDates, (ge, Ht) => (g(), A(_e, { key: Ht }, [
9152
+ (g(!0), A(_e, null, Pe(E.presetDates, (ge, zt) => (g(), A(_e, { key: zt }, [
9153
9153
  ge.slot ? ue(E.$slots, ge.slot, {
9154
9154
  key: 0,
9155
9155
  presetDate: w,
@@ -9163,7 +9163,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
9163
9163
  "data-test": ge.testId ?? void 0,
9164
9164
  onClick: Jt((Et) => w(ge.value, ge.noTz), ["prevent"]),
9165
9165
  onKeydown: (Et) => b(ct)(Et, () => w(ge.value, ge.noTz), !0)
9166
- }, we(ge.label), 47, z0))
9166
+ }, we(ge.label), 47, H0))
9167
9167
  ], 64))), 128))
9168
9168
  ], 2)) : B("", !0),
9169
9169
  p("div", {
@@ -9200,7 +9200,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
9200
9200
  onOverlayToggle: ee[14] || (ee[14] = (ge) => E.$emit("overlay-toggle", ge)),
9201
9201
  "onUpdate:internalModelValue": ee[15] || (ee[15] = (ge) => E.$emit("update:internal-model-value", ge))
9202
9202
  }), lt({ _: 2 }, [
9203
- Pe(le.value, (ge, Ht) => ({
9203
+ Pe(le.value, (ge, zt) => ({
9204
9204
  name: ge,
9205
9205
  fn: ve((Et) => [
9206
9206
  ue(E.$slots, ge, tt(pt({ ...Et })))
@@ -9208,7 +9208,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
9208
9208
  }))
9209
9209
  ]), 1040, ["flow-step", "onMount", "onUpdateFlowStep", "onResetFlow"]))
9210
9210
  ], 512),
9211
- E.$slots["right-sidebar"] ? (g(), A("div", H0, [
9211
+ E.$slots["right-sidebar"] ? (g(), A("div", z0, [
9212
9212
  ue(E.$slots, "right-sidebar", tt(pt(j.value)))
9213
9213
  ])) : B("", !0),
9214
9214
  E.$slots["action-extra"] ? (g(), A("div", V0, [
@@ -9228,7 +9228,7 @@ const Ar = (e, a) => e == null ? void 0 : e.querySelector(`[data-dp-element="${a
9228
9228
  onInvalidSelect: ee[18] || (ee[18] = (ge) => E.$emit("invalid-select")),
9229
9229
  onSelectNow: ae
9230
9230
  }), lt({ _: 2 }, [
9231
- Pe(b(Q), (ge, Ht) => ({
9231
+ Pe(b(Q), (ge, zt) => ({
9232
9232
  name: ge,
9233
9233
  fn: ve((Et) => [
9234
9234
  ue(E.$slots, ge, tt(pt({ ...Et })))
@@ -9277,14 +9277,14 @@ const U0 = ({
9277
9277
  return { top: +Q, left: +le, width: j, height: se };
9278
9278
  }, k = () => {
9279
9279
  c.value.left = "50%", c.value.top = "50%", c.value.transform = "translate(-50%, -50%)", c.value.position = "fixed", delete c.value.opacity;
9280
- }, z = () => {
9280
+ }, H = () => {
9281
9281
  const S = Ze(t), { top: j, left: se, transform: Q } = s.altPosition(S);
9282
9282
  c.value = { top: `${j}px`, left: `${se}px`, transform: Q ?? "" };
9283
9283
  }, te = (S = !0) => {
9284
9284
  var j;
9285
9285
  if (!r.value.enabled) {
9286
9286
  if (f.value) return k();
9287
- if (s.altPosition !== null) return z();
9287
+ if (s.altPosition !== null) return H();
9288
9288
  if (S) {
9289
9289
  const se = s.teleport ? (j = a.value) == null ? void 0 : j.$el : e.value;
9290
9290
  se && (m.value = se.getBoundingClientRect()), o("recalculate-position");
@@ -9436,7 +9436,7 @@ const U0 = ({
9436
9436
  }, nn = (e, a, t) => {
9437
9437
  const { defaultedRange: n, defaultedTz: r } = qe(e), o = J(yt(J(), r.value.timezone)), s = F([{ month: Ce(o), year: xe(o) }]), l = (d) => {
9438
9438
  const f = {
9439
- hours: zt(o),
9439
+ hours: Ht(o),
9440
9440
  minutes: na(o),
9441
9441
  seconds: 0
9442
9442
  };
@@ -9490,19 +9490,19 @@ const U0 = ({
9490
9490
  !h.current && a.hideOffsetDates || (i.value = h.value);
9491
9491
  }, f = () => {
9492
9492
  i.value = null;
9493
- }, y = (h) => Array.isArray(e.value) && u.value.enabled && e.value[0] && i.value ? h ? Ue(i.value, e.value[0]) : ze(i.value, e.value[0]) : !0, v = (h, Y) => {
9493
+ }, y = (h) => Array.isArray(e.value) && u.value.enabled && e.value[0] && i.value ? h ? Ue(i.value, e.value[0]) : He(i.value, e.value[0]) : !0, v = (h, Y) => {
9494
9494
  const X = () => e.value ? Y ? e.value[0] || null : e.value[1] : null, x = e.value && Array.isArray(e.value) ? X() : null;
9495
9495
  return Se(J(h.value), x);
9496
9496
  }, D = (h) => {
9497
9497
  const Y = Array.isArray(e.value) ? e.value[0] : null;
9498
- return h ? !ze(i.value ?? null, Y) : !0;
9498
+ return h ? !He(i.value ?? null, Y) : !0;
9499
9499
  }, _ = (h, Y = !0) => (u.value.enabled || a.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? a.hideOffsetDates && !h.current ? !1 : Se(J(h.value), e.value[Y ? 0 : 1]) : u.value.enabled ? v(h, Y) && D(Y) || Se(h.value, Array.isArray(e.value) ? e.value[0] : null) && y(Y) : !1, M = (h, Y) => {
9500
9500
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
9501
9501
  const X = Se(h.value, i.value);
9502
- return Y ? Ue(e.value[0], h.value) && X : ze(e.value[0], h.value) && X;
9502
+ return Y ? Ue(e.value[0], h.value) && X : He(e.value[0], h.value) && X;
9503
9503
  }
9504
9504
  return !1;
9505
- }, k = (h) => !e.value || a.hideOffsetDates && !h.current ? !1 : u.value.enabled ? a.modelAuto && Array.isArray(e.value) ? Se(h.value, e.value[0] ? e.value[0] : c.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((Y) => Se(Y, h.value)) : Se(h.value, e.value ? e.value : c.value), z = (h) => {
9505
+ }, k = (h) => !e.value || a.hideOffsetDates && !h.current ? !1 : u.value.enabled ? a.modelAuto && Array.isArray(e.value) ? Se(h.value, e.value[0] ? e.value[0] : c.value) : !1 : n.value.enabled && Array.isArray(e.value) ? e.value.some((Y) => Se(Y, h.value)) : Se(h.value, e.value ? e.value : c.value), H = (h) => {
9506
9506
  if (u.value.autoRange || a.weekPicker) {
9507
9507
  if (i.value) {
9508
9508
  if (a.hideOffsetDates && !h.current) return !1;
@@ -9518,7 +9518,7 @@ const U0 = ({
9518
9518
  const Y = Pt(i.value, +u.value.autoRange);
9519
9519
  if (a.hideOffsetDates && !h.current) return !1;
9520
9520
  const X = Wt(J(i.value), a.weekStart);
9521
- return a.weekPicker ? Ue(h.value, X[0]) && ze(h.value, X[1]) : Ue(h.value, i.value) && ze(h.value, Y);
9521
+ return a.weekPicker ? Ue(h.value, X[0]) && He(h.value, X[1]) : Ue(h.value, i.value) && He(h.value, Y);
9522
9522
  }
9523
9523
  return !1;
9524
9524
  }
@@ -9552,7 +9552,7 @@ const U0 = ({
9552
9552
  dp__cell_highlight: !pe(h) && (ce(h) || O(h)) && !K(h) && !x && !W(h) && !(L(h) && a.weekPicker) && !X,
9553
9553
  dp__cell_highlight_active: !pe(h) && (ce(h) || O(h)) && K(h),
9554
9554
  dp__today: !a.noToday && Se(h.value, c.value) && h.current,
9555
- "dp--past": ze(h.value, c.value),
9555
+ "dp--past": He(h.value, c.value),
9556
9556
  "dp--future": Ue(h.value, c.value)
9557
9557
  };
9558
9558
  }, j = (h) => ({
@@ -9565,7 +9565,7 @@ const U0 = ({
9565
9565
  ...T(h),
9566
9566
  dp__range_start: Se(Y[0], h.value),
9567
9567
  dp__range_end: Se(Y[1], h.value),
9568
- dp__range_between_week: Ue(h.value, Y[0]) && ze(h.value, Y[1])
9568
+ dp__range_between_week: Ue(h.value, Y[0]) && He(h.value, Y[1])
9569
9569
  };
9570
9570
  }
9571
9571
  return {
@@ -9578,8 +9578,8 @@ const U0 = ({
9578
9578
  ...T(h),
9579
9579
  dp__range_start: Se(Y[0], h.value) || Se(X[0], h.value),
9580
9580
  dp__range_end: Se(Y[1], h.value) || Se(X[1], h.value),
9581
- dp__range_between_week: Ue(h.value, Y[0]) && ze(h.value, Y[1]) || Ue(h.value, X[0]) && ze(h.value, X[1]),
9582
- dp__range_between: Ue(h.value, Y[1]) && ze(h.value, X[0])
9581
+ dp__range_between_week: Ue(h.value, Y[0]) && He(h.value, Y[1]) || Ue(h.value, X[0]) && He(h.value, X[1]),
9582
+ dp__range_between: Ue(h.value, Y[1]) && He(h.value, X[0])
9583
9583
  };
9584
9584
  }
9585
9585
  return {
@@ -9602,7 +9602,7 @@ const U0 = ({
9602
9602
  ...be(h),
9603
9603
  dp__cell_auto_range: te(h),
9604
9604
  dp__cell_auto_range_start: W(h),
9605
- dp__cell_auto_range_end: z(h)
9605
+ dp__cell_auto_range_end: H(h)
9606
9606
  }), P = (h) => u.value.enabled ? u.value.autoRange ? T(h) : a.modelAuto ? { ...j(h), ...be(h) } : a.weekPicker ? Q(h) : be(h) : a.weekPicker ? se(h) : j(h);
9607
9607
  return {
9608
9608
  setHoverDate: d,
@@ -9615,10 +9615,10 @@ const U0 = ({
9615
9615
  }
9616
9616
  };
9617
9617
  }, oa = (e) => {
9618
- const { defaultedFilters: a, defaultedRange: t, propDates: n, defaultedMultiDates: r } = qe(e), o = (O) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(J(O)) : !!_n(O, n.value.disabledDates) : !1, s = (O) => n.value.maxDate ? e.yearPicker ? xe(O) > xe(n.value.maxDate) : Ue(O, n.value.maxDate) : !1, l = (O) => n.value.minDate ? e.yearPicker ? xe(O) < xe(n.value.minDate) : ze(O, n.value.minDate) : !1, u = (O) => {
9618
+ const { defaultedFilters: a, defaultedRange: t, propDates: n, defaultedMultiDates: r } = qe(e), o = (O) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(J(O)) : !!_n(O, n.value.disabledDates) : !1, s = (O) => n.value.maxDate ? e.yearPicker ? xe(O) > xe(n.value.maxDate) : Ue(O, n.value.maxDate) : !1, l = (O) => n.value.minDate ? e.yearPicker ? xe(O) < xe(n.value.minDate) : He(O, n.value.minDate) : !1, u = (O) => {
9619
9619
  const L = s(O), S = l(O), j = o(O), se = a.value.months.map((P) => +P).includes(Ce(O)), Q = e.disabledWeekDays.length ? e.disabledWeekDays.some((P) => +P === tf(O)) : !1, le = f(O), be = xe(O), T = be < +e.yearRange[0] || be > +e.yearRange[1];
9620
9620
  return !(L || S || j || se || T || Q || le);
9621
- }, m = (O, L) => ze(...Zt(n.value.minDate, O, L)) || Se(...Zt(n.value.minDate, O, L)), i = (O, L) => Ue(...Zt(n.value.maxDate, O, L)) || Se(...Zt(n.value.maxDate, O, L)), c = (O, L, S) => {
9621
+ }, m = (O, L) => He(...Zt(n.value.minDate, O, L)) || Se(...Zt(n.value.minDate, O, L)), i = (O, L) => Ue(...Zt(n.value.maxDate, O, L)) || Se(...Zt(n.value.maxDate, O, L)), c = (O, L, S) => {
9622
9622
  let j = !1;
9623
9623
  return n.value.maxDate && S && i(O, L) && (j = !0), n.value.minDate && !S && m(O, L) && (j = !0), j;
9624
9624
  }, d = (O, L, S, j) => {
@@ -9639,8 +9639,8 @@ const U0 = ({
9639
9639
  if (t.value.maxRange) return le <= +t.value.maxRange;
9640
9640
  }
9641
9641
  return !0;
9642
- }, k = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, z = (O) => Array.isArray(O) ? [O[0] ? rr(O[0]) : null, O[1] ? rr(O[1]) : null] : rr(O), te = (O, L, S) => O.find(
9643
- (j) => +j.hours === zt(L) && j.minutes === "*" ? !0 : +j.minutes === na(L) && +j.hours === zt(L)
9642
+ }, k = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, H = (O) => Array.isArray(O) ? [O[0] ? rr(O[0]) : null, O[1] ? rr(O[1]) : null] : rr(O), te = (O, L, S) => O.find(
9643
+ (j) => +j.hours === Ht(L) && j.minutes === "*" ? !0 : +j.minutes === na(L) && +j.hours === Ht(L)
9644
9644
  ) && S, W = (O, L, S) => {
9645
9645
  const [j, se] = O, [Q, le] = L;
9646
9646
  return !te(j, Q, S) && !te(se, le, S) && S;
@@ -9653,7 +9653,7 @@ const U0 = ({
9653
9653
  }, N = (O, L) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? C(L, O) : $(L, O) : L, I = (O) => {
9654
9654
  let L = !0;
9655
9655
  if (!O || k()) return !0;
9656
- const S = !n.value.minDate && !n.value.maxDate ? z(O) : O;
9656
+ const S = !n.value.minDate && !n.value.maxDate ? H(O) : O;
9657
9657
  return (e.maxTime || n.value.maxDate) && (L = Co(
9658
9658
  e.maxTime,
9659
9659
  n.value.maxDate,
@@ -9673,7 +9673,7 @@ const U0 = ({
9673
9673
  const S = J(Ct(O));
9674
9674
  if (n.value.minDate && n.value.maxDate) {
9675
9675
  const j = J(Ct(n.value.minDate)), se = J(Ct(n.value.maxDate));
9676
- return Ue(S, j) && ze(S, se) || Se(S, j) || Se(S, se);
9676
+ return Ue(S, j) && He(S, se) || Se(S, j) || Se(S, se);
9677
9677
  }
9678
9678
  if (n.value.minDate) {
9679
9679
  const j = J(Ct(n.value.minDate));
@@ -9681,7 +9681,7 @@ const U0 = ({
9681
9681
  }
9682
9682
  if (n.value.maxDate) {
9683
9683
  const j = J(Ct(n.value.maxDate));
9684
- L = ze(S, j) || Se(S, j);
9684
+ L = He(S, j) || Se(S, j);
9685
9685
  }
9686
9686
  return L;
9687
9687
  }, ce = G(() => (O) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : I(O)), pe = G(() => (O) => e.monthPicker ? Array.isArray(O) && (t.value.enabled || r.value.enabled) ? !O.filter((L) => !K(L)).length : K(O) : !0);
@@ -9765,7 +9765,7 @@ const U0 = ({
9765
9765
  defaultedUI: c,
9766
9766
  getDefaultPattern: d,
9767
9767
  getDefaultStartTime: f
9768
- } = qe(r), { checkMinMaxRange: y } = oa(r), v = F(), D = F(null), _ = F(!1), M = F(!1), k = F(!1), z = F(null), te = G(
9768
+ } = qe(r), { checkMinMaxRange: y } = oa(r), v = F(), D = F(null), _ = F(!1), M = F(!1), k = F(!1), H = F(null), te = G(
9769
9769
  () => ({
9770
9770
  dp__pointer: !r.disabled && !r.readonly && !o.value.enabled,
9771
9771
  dp__disabled: r.disabled,
@@ -9816,7 +9816,7 @@ const U0 = ({
9816
9816
  o.value.enabled ? (I(T.target.value), o.value.enterSubmit && Mr(v.value) && r.inputValue !== "" ? (n("set-input-date", v.value, !0), v.value = null) : o.value.enterSubmit && r.inputValue === "" && (v.value = null, n("clear"))) : L(T);
9817
9817
  }, pe = (T, P) => {
9818
9818
  var h;
9819
- z.value && P && !M.value && (T.preventDefault(), M.value = !0, (h = z.value) == null || h.focus()), o.value.enabled && o.value.tabSubmit && I(T.target.value), o.value.tabSubmit && Mr(v.value) && r.inputValue !== "" ? (n("set-input-date", v.value, !0, !0), v.value = null) : o.value.tabSubmit && r.inputValue === "" && (v.value = null, n("clear", !0));
9819
+ H.value && P && !M.value && (T.preventDefault(), M.value = !0, (h = H.value) == null || h.focus()), o.value.enabled && o.value.tabSubmit && I(T.target.value), o.value.tabSubmit && Mr(v.value) && r.inputValue !== "" ? (n("set-input-date", v.value, !0, !0), v.value = null) : o.value.tabSubmit && r.inputValue === "" && (v.value = null, n("clear", !0));
9820
9820
  }, O = () => {
9821
9821
  _.value = !0, n("focus"), Ke().then(() => {
9822
9822
  var T;
@@ -9915,7 +9915,7 @@ const U0 = ({
9915
9915
  T.clearable && !T.$slots["clear-icon"] && e.inputValue && !T.disabled && !T.readonly ? (g(), A("button", {
9916
9916
  key: 3,
9917
9917
  ref_key: "clearBtnRef",
9918
- ref: z,
9918
+ ref: H,
9919
9919
  "aria-label": (Y = b(s)) == null ? void 0 : Y.clearInput,
9920
9920
  class: "dp--clear-btn",
9921
9921
  type: "button",
@@ -9990,7 +9990,7 @@ const U0 = ({
9990
9990
  "text-input"
9991
9991
  ],
9992
9992
  setup(e, { expose: a, emit: t }) {
9993
- const n = t, r = e, o = va(), s = F(!1), l = Va(r, "modelValue"), u = Va(r, "timezone"), m = F(null), i = F(null), c = F(null), d = F(!1), f = F(null), y = F(!1), v = F(!1), D = F(!1), _ = F(!1), { setMenuFocused: M, setShiftKey: k } = il(), { clearArrowNav: z } = ra(), { validateDate: te, isValidTime: W } = oa(r), {
9993
+ const n = t, r = e, o = va(), s = F(!1), l = Va(r, "modelValue"), u = Va(r, "timezone"), m = F(null), i = F(null), c = F(null), d = F(!1), f = F(null), y = F(!1), v = F(!1), D = F(!1), _ = F(!1), { setMenuFocused: M, setShiftKey: k } = il(), { clearArrowNav: H } = ra(), { validateDate: te, isValidTime: W } = oa(r), {
9994
9994
  defaultedTransitions: C,
9995
9995
  defaultedTextInput: $,
9996
9996
  defaultedInline: N,
@@ -10001,14 +10001,14 @@ const U0 = ({
10001
10001
  Ye(() => {
10002
10002
  Y(r.modelValue), Ke().then(() => {
10003
10003
  if (!N.value.enabled) {
10004
- const H = be(f.value);
10005
- H == null || H.addEventListener("scroll", ne), window == null || window.addEventListener("resize", U);
10004
+ const z = be(f.value);
10005
+ z == null || z.addEventListener("scroll", ne), window == null || window.addEventListener("resize", U);
10006
10006
  }
10007
10007
  }), N.value.enabled && (s.value = !0), window == null || window.addEventListener("keyup", Ae), window == null || window.addEventListener("keydown", E);
10008
10008
  }), Ka(() => {
10009
10009
  if (!N.value.enabled) {
10010
- const H = be(f.value);
10011
- H == null || H.removeEventListener("scroll", ne), window == null || window.removeEventListener("resize", U);
10010
+ const z = be(f.value);
10011
+ z == null || z.removeEventListener("scroll", ne), window == null || window.removeEventListener("resize", U);
10012
10012
  }
10013
10013
  window == null || window.removeEventListener("keyup", Ae), window == null || window.removeEventListener("keydown", E);
10014
10014
  });
@@ -10049,73 +10049,73 @@ const U0 = ({
10049
10049
  to: typeof r.teleport == "boolean" ? "body" : r.teleport,
10050
10050
  disabled: !r.teleport || N.value.enabled
10051
10051
  } : {}), ae = G(() => ({ class: "dp__outer_menu_wrap" })), w = G(() => N.value.enabled && (r.timePicker || r.monthPicker || r.yearPicker || r.quarterPicker)), Z = () => {
10052
- var H, re;
10053
- return (re = (H = c.value) == null ? void 0 : H.$el) == null ? void 0 : re.getBoundingClientRect();
10052
+ var z, re;
10053
+ return (re = (z = c.value) == null ? void 0 : z.$el) == null ? void 0 : re.getBoundingClientRect();
10054
10054
  }, ne = () => {
10055
10055
  s.value && (I.value.closeOnScroll ? wt() : le());
10056
10056
  }, U = () => {
10057
- var H;
10057
+ var z;
10058
10058
  s.value && le();
10059
- const re = (H = i.value) == null ? void 0 : H.$el.getBoundingClientRect().width;
10059
+ const re = (z = i.value) == null ? void 0 : z.$el.getBoundingClientRect().width;
10060
10060
  D.value = document.body.offsetWidth <= re;
10061
- }, Ae = (H) => {
10062
- H.key === "Tab" && !N.value.enabled && !r.teleport && I.value.tabOutClosesMenu && (f.value.contains(document.activeElement) || wt()), v.value = H.shiftKey;
10063
- }, E = (H) => {
10064
- v.value = H.shiftKey;
10061
+ }, Ae = (z) => {
10062
+ z.key === "Tab" && !N.value.enabled && !r.teleport && I.value.tabOutClosesMenu && (f.value.contains(document.activeElement) || wt()), v.value = z.shiftKey;
10063
+ }, E = (z) => {
10064
+ v.value = z.shiftKey;
10065
10065
  }, ee = () => {
10066
10066
  !r.disabled && !r.readonly && (T(Ro, r), le(!1), s.value = !0, s.value && n("open"), s.value || Ea(), Y(r.modelValue));
10067
10067
  }, he = () => {
10068
- var H;
10069
- P.value = "", Ea(), (H = c.value) == null || H.setParsedDate(null), n("update:model-value", null), n("update:model-timezone-value", null), n("cleared"), I.value.closeOnClearValue && wt();
10068
+ var z;
10069
+ P.value = "", Ea(), (z = c.value) == null || z.setParsedDate(null), n("update:model-value", null), n("update:model-timezone-value", null), n("cleared"), I.value.closeOnClearValue && wt();
10070
10070
  }, De = () => {
10071
- const H = h.value;
10072
- return !H || !Array.isArray(H) && te(H) ? !0 : Array.isArray(H) ? ce.value.enabled || H.length === 2 && te(H[0]) && te(H[1]) ? !0 : K.value.partialRange && !r.timePicker ? te(H[0]) : !1 : !1;
10071
+ const z = h.value;
10072
+ return !z || !Array.isArray(z) && te(z) ? !0 : Array.isArray(z) ? ce.value.enabled || z.length === 2 && te(z[0]) && te(z[1]) ? !0 : K.value.partialRange && !r.timePicker ? te(z[0]) : !1 : !1;
10073
10073
  }, xt = () => {
10074
10074
  ie() && De() ? (X(), wt()) : n("invalid-select", h.value);
10075
- }, ge = (H) => {
10076
- Ht(), X(), I.value.closeOnAutoApply && !H && wt();
10077
- }, Ht = () => {
10075
+ }, ge = (z) => {
10076
+ zt(), X(), I.value.closeOnAutoApply && !z && wt();
10077
+ }, zt = () => {
10078
10078
  c.value && $.value.enabled && c.value.setParsedDate(h.value);
10079
- }, Et = (H = !1) => {
10080
- r.autoApply && W(h.value) && De() && (K.value.enabled && Array.isArray(h.value) ? (K.value.partialRange || h.value.length === 2) && ge(H) : ge(H));
10079
+ }, Et = (z = !1) => {
10080
+ r.autoApply && W(h.value) && De() && (K.value.enabled && Array.isArray(h.value) ? (K.value.partialRange || h.value.length === 2) && ge(z) : ge(z));
10081
10081
  }, Ea = () => {
10082
10082
  $.value.enabled || (h.value = null);
10083
10083
  }, wt = () => {
10084
- N.value.enabled || (s.value && (s.value = !1, Q.value = !1, M(!1), k(!1), z(), n("closed"), P.value && Y(l.value)), Ea(), n("blur"));
10085
- }, Ya = (H, re, de = !1) => {
10086
- if (!H) {
10084
+ N.value.enabled || (s.value && (s.value = !1, Q.value = !1, M(!1), k(!1), H(), n("closed"), P.value && Y(l.value)), Ea(), n("blur"));
10085
+ }, Ya = (z, re, de = !1) => {
10086
+ if (!z) {
10087
10087
  h.value = null;
10088
10088
  return;
10089
10089
  }
10090
- const it = Array.isArray(H) ? !H.some((sa) => !te(sa)) : te(H), At = W(H);
10091
- it && At && (_.value = !0, h.value = H, re && (y.value = de, xt(), n("text-submit")), Ke().then(() => {
10090
+ const it = Array.isArray(z) ? !z.some((sa) => !te(sa)) : te(z), At = W(z);
10091
+ it && At && (_.value = !0, h.value = z, re && (y.value = de, xt(), n("text-submit")), Ke().then(() => {
10092
10092
  _.value = !1;
10093
10093
  }));
10094
10094
  }, Bn = () => {
10095
- r.autoApply && W(h.value) && X(), Ht();
10096
- }, un = () => s.value ? wt() : ee(), qn = (H) => {
10097
- h.value = H;
10095
+ r.autoApply && W(h.value) && X(), zt();
10096
+ }, un = () => s.value ? wt() : ee(), qn = (z) => {
10097
+ h.value = z;
10098
10098
  }, Wn = () => {
10099
10099
  $.value.enabled && (d.value = !0, x()), n("focus");
10100
10100
  }, jn = () => {
10101
10101
  if ($.value.enabled && (d.value = !1, Y(r.modelValue), y.value)) {
10102
- const H = mm(f.value, v.value);
10103
- H == null || H.focus();
10102
+ const z = mm(f.value, v.value);
10103
+ z == null || z.focus();
10104
10104
  }
10105
10105
  n("blur");
10106
- }, zn = (H) => {
10106
+ }, Hn = (z) => {
10107
10107
  i.value && i.value.updateMonthYear(0, {
10108
- month: Mo(H.month),
10109
- year: Mo(H.year)
10108
+ month: Mo(z.month),
10109
+ year: Mo(z.year)
10110
10110
  });
10111
- }, Hn = (H) => {
10112
- Y(H ?? r.modelValue);
10113
- }, Vn = (H, re) => {
10111
+ }, zn = (z) => {
10112
+ Y(z ?? r.modelValue);
10113
+ }, Vn = (z, re) => {
10114
10114
  var de;
10115
- (de = i.value) == null || de.switchView(H, re);
10116
- }, R = (H) => I.value.onClickOutside ? I.value.onClickOutside(H) : wt(), oe = (H = 0) => {
10115
+ (de = i.value) == null || de.switchView(z, re);
10116
+ }, R = (z) => I.value.onClickOutside ? I.value.onClickOutside(z) : wt(), oe = (z = 0) => {
10117
10117
  var re;
10118
- (re = i.value) == null || re.handleFlow(H);
10118
+ (re = i.value) == null || re.handleFlow(z);
10119
10119
  };
10120
10120
  return sh(m, c, () => R(De)), a({
10121
10121
  closeMenu: wt,
@@ -10127,13 +10127,13 @@ const U0 = ({
10127
10127
  // exposed for testing purposes
10128
10128
  updateInternalModelValue: qn,
10129
10129
  // modify internal modelValue
10130
- setMonthYear: zn,
10131
- parseModel: Hn,
10130
+ setMonthYear: Hn,
10131
+ parseModel: zn,
10132
10132
  switchView: Vn,
10133
10133
  toggleMenu: un,
10134
10134
  handleFlow: oe,
10135
10135
  dpWrapMenuRef: m
10136
- }), (H, re) => (g(), A("div", {
10136
+ }), (z, re) => (g(), A("div", {
10137
10137
  ref_key: "pickerWrapperRef",
10138
10138
  ref: f,
10139
10139
  class: me(ke.value),
@@ -10145,7 +10145,7 @@ const U0 = ({
10145
10145
  "input-value": b(P),
10146
10146
  "onUpdate:inputValue": re[0] || (re[0] = (de) => Kr(P) ? P.value = de : null),
10147
10147
  "is-menu-open": s.value
10148
- }, H.$props, {
10148
+ }, z.$props, {
10149
10149
  onClear: he,
10150
10150
  onOpen: ee,
10151
10151
  onSetInputDate: Ya,
@@ -10156,16 +10156,16 @@ const U0 = ({
10156
10156
  onFocus: Wn,
10157
10157
  onBlur: jn,
10158
10158
  onRealBlur: re[1] || (re[1] = (de) => d.value = !1),
10159
- onTextInput: re[2] || (re[2] = (de) => H.$emit("text-input", de))
10159
+ onTextInput: re[2] || (re[2] = (de) => z.$emit("text-input", de))
10160
10160
  }), lt({ _: 2 }, [
10161
10161
  Pe(b(S), (de, it) => ({
10162
10162
  name: de,
10163
10163
  fn: ve((At) => [
10164
- ue(H.$slots, de, tt(pt(At)))
10164
+ ue(z.$slots, de, tt(pt(At)))
10165
10165
  ])
10166
10166
  }))
10167
10167
  ]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
10168
- (g(), Te(An(H.teleport ? Fl : "div"), tt(pt(q.value)), {
10168
+ (g(), Te(An(z.teleport ? Fl : "div"), tt(pt(q.value)), {
10169
10169
  default: ve(() => [
10170
10170
  Fe(ya, {
10171
10171
  name: b(pe)(b(j)),
@@ -10183,10 +10183,10 @@ const U0 = ({
10183
10183
  Fe(Ro, et({
10184
10184
  ref_key: "dpMenuRef",
10185
10185
  ref: i
10186
- }, H.$props, {
10186
+ }, z.$props, {
10187
10187
  "internal-model-value": b(h),
10188
10188
  "onUpdate:internalModelValue": re[3] || (re[3] = (de) => Kr(h) ? h.value = de : null),
10189
- class: { [Ge.value]: !0, "dp--menu-wrapper": H.teleport },
10189
+ class: { [Ge.value]: !0, "dp--menu-wrapper": z.teleport },
10190
10190
  "open-on-top": b(j),
10191
10191
  "no-overlay-focus": w.value,
10192
10192
  collapse: D.value,
@@ -10196,27 +10196,27 @@ const U0 = ({
10196
10196
  onSelectDate: xt,
10197
10197
  onAutoApply: Et,
10198
10198
  onTimeUpdate: Bn,
10199
- onFlowStep: re[4] || (re[4] = (de) => H.$emit("flow-step", de)),
10200
- onUpdateMonthYear: re[5] || (re[5] = (de) => H.$emit("update-month-year", de)),
10201
- onInvalidSelect: re[6] || (re[6] = (de) => H.$emit("invalid-select", b(h))),
10202
- onAutoApplyInvalid: re[7] || (re[7] = (de) => H.$emit("invalid-select", de)),
10203
- onInvalidFixedRange: re[8] || (re[8] = (de) => H.$emit("invalid-fixed-range", de)),
10199
+ onFlowStep: re[4] || (re[4] = (de) => z.$emit("flow-step", de)),
10200
+ onUpdateMonthYear: re[5] || (re[5] = (de) => z.$emit("update-month-year", de)),
10201
+ onInvalidSelect: re[6] || (re[6] = (de) => z.$emit("invalid-select", b(h))),
10202
+ onAutoApplyInvalid: re[7] || (re[7] = (de) => z.$emit("invalid-select", de)),
10203
+ onInvalidFixedRange: re[8] || (re[8] = (de) => z.$emit("invalid-fixed-range", de)),
10204
10204
  onRecalculatePosition: b(le),
10205
- onTooltipOpen: re[9] || (re[9] = (de) => H.$emit("tooltip-open", de)),
10206
- onTooltipClose: re[10] || (re[10] = (de) => H.$emit("tooltip-close", de)),
10207
- onTimePickerOpen: re[11] || (re[11] = (de) => H.$emit("time-picker-open", de)),
10208
- onTimePickerClose: re[12] || (re[12] = (de) => H.$emit("time-picker-close", de)),
10209
- onAmPmChange: re[13] || (re[13] = (de) => H.$emit("am-pm-change", de)),
10210
- onRangeStart: re[14] || (re[14] = (de) => H.$emit("range-start", de)),
10211
- onRangeEnd: re[15] || (re[15] = (de) => H.$emit("range-end", de)),
10212
- onDateUpdate: re[16] || (re[16] = (de) => H.$emit("date-update", de)),
10213
- onInvalidDate: re[17] || (re[17] = (de) => H.$emit("invalid-date", de)),
10214
- onOverlayToggle: re[18] || (re[18] = (de) => H.$emit("overlay-toggle", de))
10205
+ onTooltipOpen: re[9] || (re[9] = (de) => z.$emit("tooltip-open", de)),
10206
+ onTooltipClose: re[10] || (re[10] = (de) => z.$emit("tooltip-close", de)),
10207
+ onTimePickerOpen: re[11] || (re[11] = (de) => z.$emit("time-picker-open", de)),
10208
+ onTimePickerClose: re[12] || (re[12] = (de) => z.$emit("time-picker-close", de)),
10209
+ onAmPmChange: re[13] || (re[13] = (de) => z.$emit("am-pm-change", de)),
10210
+ onRangeStart: re[14] || (re[14] = (de) => z.$emit("range-start", de)),
10211
+ onRangeEnd: re[15] || (re[15] = (de) => z.$emit("range-end", de)),
10212
+ onDateUpdate: re[16] || (re[16] = (de) => z.$emit("date-update", de)),
10213
+ onInvalidDate: re[17] || (re[17] = (de) => z.$emit("invalid-date", de)),
10214
+ onOverlayToggle: re[18] || (re[18] = (de) => z.$emit("overlay-toggle", de))
10215
10215
  }), lt({ _: 2 }, [
10216
10216
  Pe(b(L), (de, it) => ({
10217
10217
  name: de,
10218
10218
  fn: ve((At) => [
10219
- ue(H.$slots, de, tt(pt({ ...At })))
10219
+ ue(z.$slots, de, tt(pt({ ...At })))
10220
10220
  ])
10221
10221
  }))
10222
10222
  ]), 1040, ["internal-model-value", "class", "open-on-top", "no-overlay-focus", "collapse", "is-text-input-date", "onRecalculatePosition"])
@@ -10424,7 +10424,7 @@ const Rh = () => {
10424
10424
  d: "M2 12a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm9.4-5.5a1 1 0 1 0 0 2 1 1 0 1 0 0-2ZM10 10a1 1 0 1 0 0 2h1v3h-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-1v-4c0-.6-.4-1-1-1h-2Z",
10425
10425
  "clip-rule": "evenodd"
10426
10426
  })
10427
- ], -1)), jh = /* @__PURE__ */ on(() => /* @__PURE__ */ p("p", { class: "info-content" }, "Ao enviar a mensagem para o cliente o valor deste campo será substituído pelo valor correspondente no momento do envio", -1)), zh = { class: "custom-fields-list" }, Hh = ["onClick"], Vh = {
10427
+ ], -1)), jh = /* @__PURE__ */ on(() => /* @__PURE__ */ p("p", { class: "info-content" }, "Ao enviar a mensagem para o cliente o valor deste campo será substituído pelo valor correspondente no momento do envio", -1)), Hh = { class: "custom-fields-list" }, zh = ["onClick"], Vh = {
10428
10428
  key: 1,
10429
10429
  class: "file-container bg-base-100"
10430
10430
  }, Uh = { class: "file-actions" }, Qh = /* @__PURE__ */ on(() => /* @__PURE__ */ p("svg", {
@@ -10577,12 +10577,12 @@ const Rh = () => {
10577
10577
  _: 1
10578
10578
  })
10579
10579
  ]),
10580
- p("div", zh, [
10580
+ p("div", Hh, [
10581
10581
  (g(!0), A(_e, null, Pe(d.globalStore.messageStore.currentChat.contact.segmentation_fields, (v) => (g(), A("div", {
10582
10582
  onClick: (D) => u(v),
10583
10583
  key: v,
10584
10584
  class: "custom-field bg-primary"
10585
- }, we(v.name), 9, Hh))), 128))
10585
+ }, we(v.name), 9, zh))), 128))
10586
10586
  ])
10587
10587
  ])) : B("", !0),
10588
10588
  s.value.file ? (g(), A("div", Vh, [
@@ -10908,8 +10908,8 @@ const Rh = () => {
10908
10908
  });
10909
10909
  }
10910
10910
  return I;
10911
- }, z = F([]), te = () => {
10912
- z.value = k(i.value, m.value);
10911
+ }, H = F([]), te = () => {
10912
+ H.value = k(i.value, m.value);
10913
10913
  };
10914
10914
  Ye(async () => {
10915
10915
  await _(), te();
@@ -10958,7 +10958,7 @@ const Rh = () => {
10958
10958
  key: ce,
10959
10959
  class: "day-name shadow shadow-black/90 dark:shadow-gray-400 bg-base-200 border border-base-100"
10960
10960
  }, we(K), 1))), 128)),
10961
- (g(!0), A(_e, null, Pe(z.value, (K, ce) => (g(), A("div", {
10961
+ (g(!0), A(_e, null, Pe(H.value, (K, ce) => (g(), A("div", {
10962
10962
  key: ce,
10963
10963
  class: me([{
10964
10964
  // 'rounded-br': index === daysInMonth.length - 1,
@@ -11098,8 +11098,8 @@ const Rh = () => {
11098
11098
  }, qp = { class: "text-center flex gap-3" }, Wp = { class: "flex justify-center gap-2 relative bg-base-200 p-2 rounded-lg shadow-md shadow-black" }, jp = {
11099
11099
  key: 0,
11100
11100
  class: "items-center justify-center inline-flex"
11101
- }, zp = /* @__PURE__ */ p("div", { class: "loaderMFA" }, null, -1), Hp = [
11102
- zp
11101
+ }, Hp = /* @__PURE__ */ p("div", { class: "loaderMFA" }, null, -1), zp = [
11102
+ Hp
11103
11103
  ], Vp = ["src"], Up = {
11104
11104
  __name: "mfaQrCode",
11105
11105
  props: {
@@ -11135,7 +11135,7 @@ const Rh = () => {
11135
11135
  key: 0,
11136
11136
  class: me([s.value, "btnQrCode"])
11137
11137
  }, [
11138
- e.loading ? (g(), A("div", jp, Hp)) : (g(), A("button", {
11138
+ e.loading ? (g(), A("div", jp, zp)) : (g(), A("button", {
11139
11139
  key: 1,
11140
11140
  class: "uppercase bg-base-300 p-2 z-40",
11141
11141
  onClick: r
@@ -11151,7 +11151,7 @@ const Rh = () => {
11151
11151
  }
11152
11152
  }, wl = Mn("auth", {
11153
11153
  state: () => ({
11154
- jwtToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzMxMzcwNTU3LCJpYXQiOjE3MzEyODQxNTcsImp0aSI6IjYxNzQxM2VhZjU1ZDQyMjU4Njk3ZjIyN2VkNjIwNWM2IiwidXNlcl9pZCI6IjgzZDUxYzQ0LTY0OWEtNGUzYi1hYTUyLWRiMGQ4NjRiMTcxMSJ9.Na0dGJNNnqyZxLuMcGev7S07ULHCq-CNevApfzwXYmw"
11154
+ jwtToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzMxNTE2MDI4LCJpYXQiOjE3MzE0Mjk2MjgsImp0aSI6IjcxNDlkZmFjYWQwYzQzMjNhZDg4M2E2YTZlNjdjNjI4IiwidXNlcl9pZCI6IjYyZTBmZWRmLWFiMGItNDIyYi1iOTFmLWNlZjAyYjQ1YzdlMSJ9.6eJpGGKJhGn6QRJh8UuBtNqGOa48K-oopm7ysWsLzLg"
11155
11155
  // Inicialmente vazio
11156
11156
  }),
11157
11157
  actions: {
@@ -11199,7 +11199,7 @@ function Kp(e, a, t) {
11199
11199
  var n = e.random || (e.rng || Gp)();
11200
11200
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Qp(n);
11201
11201
  }
11202
- const Jp = "v1/api/attendances/basic_attendant/", e1 = "v1/api/attendances/department/", fr = "v1/api/attendances/internal_chat/", t1 = "v1/api/attendances/attendant/all/";
11202
+ const Jp = "v1/api/attendances/attendant/", e1 = "v1/api/attendances/department/", fr = "v1/api/attendances/internal_chat/", t1 = "v1/api/attendances/attendant/all/";
11203
11203
  function a1() {
11204
11204
  const e = F([]), a = F(!1), t = F(!1), n = async () => {
11205
11205
  try {
@@ -11657,7 +11657,7 @@ const j1 = {
11657
11657
  one: "almost 1 year",
11658
11658
  other: "almost {{count}} years"
11659
11659
  }
11660
- }, z1 = (e, a, t) => {
11660
+ }, H1 = (e, a, t) => {
11661
11661
  let n;
11662
11662
  const r = j1[e];
11663
11663
  return typeof r == "string" ? n = r : a === 1 ? n = r.one : n = r.other.replace("{{count}}", a.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "in " + n : n + " ago" : n;
@@ -11668,7 +11668,7 @@ function Aa(e) {
11668
11668
  return e.formats[t] || e.formats[e.defaultWidth];
11669
11669
  };
11670
11670
  }
11671
- const H1 = {
11671
+ const z1 = {
11672
11672
  full: "EEEE, MMMM do, y",
11673
11673
  long: "MMMM do, y",
11674
11674
  medium: "MMM d, y",
@@ -11685,7 +11685,7 @@ const H1 = {
11685
11685
  short: "{{date}}, {{time}}"
11686
11686
  }, Q1 = {
11687
11687
  date: Aa({
11688
- formats: H1,
11688
+ formats: z1,
11689
11689
  defaultWidth: "full"
11690
11690
  }),
11691
11691
  time: Aa({
@@ -12016,7 +12016,7 @@ const lv = /^(\d+)(th|st|nd|rd)?/i, iv = /\d+/i, uv = {
12016
12016
  })
12017
12017
  }, bv = {
12018
12018
  code: "en-US",
12019
- formatDistance: z1,
12019
+ formatDistance: H1,
12020
12020
  formatLong: Q1,
12021
12021
  formatRelative: G1,
12022
12022
  localize: rv,
@@ -12617,7 +12617,7 @@ function ua(e, a = "") {
12617
12617
  const t = e > 0 ? "-" : "+", n = Math.abs(e), r = Ne(Math.trunc(n / 60), 2), o = Ne(n % 60, 2);
12618
12618
  return t + r + a + o;
12619
12619
  }
12620
- const zo = (e, a) => {
12620
+ const Ho = (e, a) => {
12621
12621
  switch (e) {
12622
12622
  case "P":
12623
12623
  return a.date({ width: "short" });
@@ -12644,7 +12644,7 @@ const zo = (e, a) => {
12644
12644
  }, Mv = (e, a) => {
12645
12645
  const t = e.match(/(P+)(p+)?/) || [], n = t[1], r = t[2];
12646
12646
  if (!r)
12647
- return zo(e, a);
12647
+ return Ho(e, a);
12648
12648
  let o;
12649
12649
  switch (n) {
12650
12650
  case "P":
@@ -12661,7 +12661,7 @@ const zo = (e, a) => {
12661
12661
  o = a.dateTime({ width: "full" });
12662
12662
  break;
12663
12663
  }
12664
- return o.replace("{{date}}", zo(n, a)).replace("{{time}}", Pl(r, a));
12664
+ return o.replace("{{date}}", Ho(n, a)).replace("{{time}}", Pl(r, a));
12665
12665
  }, Tv = {
12666
12666
  p: Pl,
12667
12667
  P: Mv
@@ -12681,7 +12681,7 @@ function Rv(e, a, t) {
12681
12681
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${a}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
12682
12682
  }
12683
12683
  const Nv = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ev = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yv = /^'([^]*?)'?$/, Fv = /''/g, Iv = /[a-zA-Z]/;
12684
- function Ho(e, a, t) {
12684
+ function zo(e, a, t) {
12685
12685
  var i, c, d, f, y, v, D, _;
12686
12686
  const n = Fn(), r = (t == null ? void 0 : t.locale) ?? n.locale ?? bv, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((v = (y = t == null ? void 0 : t.locale) == null ? void 0 : y.options) == null ? void 0 : v.weekStartsOn) ?? n.weekStartsOn ?? ((_ = (D = n.locale) == null ? void 0 : D.options) == null ? void 0 : _.weekStartsOn) ?? 0, l = Tt(e, t == null ? void 0 : t.in);
12687
12687
  if (!q1(l))
@@ -12689,8 +12689,8 @@ function Ho(e, a, t) {
12689
12689
  let u = a.match(Ev).map((M) => {
12690
12690
  const k = M[0];
12691
12691
  if (k === "p" || k === "P") {
12692
- const z = Tv[k];
12693
- return z(M, r.formatLong);
12692
+ const H = Tv[k];
12693
+ return H(M, r.formatLong);
12694
12694
  }
12695
12695
  return M;
12696
12696
  }).join("").match(Nv).map((M) => {
@@ -12717,8 +12717,8 @@ function Ho(e, a, t) {
12717
12717
  if (!M.isToken) return M.value;
12718
12718
  const k = M.value;
12719
12719
  (!(t != null && t.useAdditionalWeekYearTokens) && Ov(k) || !(t != null && t.useAdditionalDayOfYearTokens) && Sv(k)) && $v(k, a, String(e));
12720
- const z = qo[k[0]];
12721
- return z(l, k, r.localize, m);
12720
+ const H = qo[k[0]];
12721
+ return H(l, k, r.localize, m);
12722
12722
  }).join("");
12723
12723
  }
12724
12724
  function Lv(e) {
@@ -12749,13 +12749,13 @@ function Wv(e, a) {
12749
12749
  function jv(e, a, t) {
12750
12750
  return Y1(e, -a, t);
12751
12751
  }
12752
- function zv(e, a) {
12752
+ function Hv(e, a) {
12753
12753
  return Ml(
12754
12754
  kt(e, e),
12755
12755
  jv(Zr(e), 1)
12756
12756
  );
12757
12757
  }
12758
- const Hv = {
12758
+ const zv = {
12759
12759
  lessThanXSeconds: {
12760
12760
  one: "menos de um segundo",
12761
12761
  other: "menos de {{count}} segundos"
@@ -12819,7 +12819,7 @@ const Hv = {
12819
12819
  }
12820
12820
  }, Vv = (e, a, t) => {
12821
12821
  let n;
12822
- const r = Hv[e];
12822
+ const r = zv[e];
12823
12823
  return typeof r == "string" ? n = r : a === 1 ? n = r.one : n = r.other.replace("{{count}}", String(a)), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "em " + n : "há " + n : n;
12824
12824
  }, Uv = {
12825
12825
  full: "EEEE, d 'de' MMMM 'de' y",
@@ -13180,11 +13180,11 @@ const Hv = {
13180
13180
  var _;
13181
13181
  return ((_ = a.selectedAtendente) == null ? void 0 : _.messages) || [];
13182
13182
  }), l = G(() => a.hasNextPageForAtendente(a.selectedAtendente.id)), u = (_) => {
13183
- const M = new Date(_), k = M.getHours(), z = M.getMinutes();
13184
- return `${k.toString().padStart(2, "0")}:${z.toString().padStart(2, "0")}`;
13183
+ const M = new Date(_), k = M.getHours(), H = M.getMinutes();
13184
+ return `${k.toString().padStart(2, "0")}:${H.toString().padStart(2, "0")}`;
13185
13185
  }, m = (_) => {
13186
13186
  const M = new Date(_);
13187
- return Wv(M) ? "Hoje" : zv(M) ? "Ontem" : qv(M) ? Ho(M, "EEEE", { locale: Vo }) : Ho(M, "dd 'de' MMMM 'de' yyyy", { locale: Vo });
13187
+ return Wv(M) ? "Hoje" : Hv(M) ? "Ontem" : qv(M) ? zo(M, "EEEE", { locale: Vo }) : zo(M, "dd 'de' MMMM 'de' yyyy", { locale: Vo });
13188
13188
  }, i = (_) => {
13189
13189
  if (_ === 0) return !0;
13190
13190
  const M = new Date(s.value[_].created_at), k = new Date(s.value[_ - 1].created_at);
@@ -13271,14 +13271,14 @@ const Hv = {
13271
13271
  _: 1
13272
13272
  })) : B("", !0),
13273
13273
  p("div", null, [
13274
- (g(!0), A(_e, null, Pe(s.value, (k, z) => (g(), A("div", { key: z }, [
13275
- i(z) ? (g(), A("div", Dy, [
13274
+ (g(!0), A(_e, null, Pe(s.value, (k, H) => (g(), A("div", { key: H }, [
13275
+ i(H) ? (g(), A("div", Dy, [
13276
13276
  Py,
13277
13277
  p("div", Cy, we(m(k.created_at)), 1),
13278
13278
  Sy
13279
13279
  ])) : B("", !0),
13280
13280
  p("div", {
13281
- class: me(["message", { me: k.sender.id === e.attendant.id, "not-me": k.sender.id !== e.attendant.id, "new-message": z === s.value.length - 1 }])
13281
+ class: me(["message", { me: k.sender.id === e.attendant.id, "not-me": k.sender.id !== e.attendant.id, "new-message": H === s.value.length - 1 }])
13282
13282
  }, [
13283
13283
  p("div", {
13284
13284
  class: me(k.sender.id === e.attendant.id ? "text-right" : "text-left")
@@ -13351,10 +13351,10 @@ const qy = /* @__PURE__ */ gt(Ey, [["render", By], ["__scopeId", "data-v-ac25948
13351
13351
  ])
13352
13352
  ], -1)), jy = [
13353
13353
  Wy
13354
- ], zy = {
13354
+ ], Hy = {
13355
13355
  key: 0,
13356
13356
  class: "chat-icon"
13357
- }, Hy = /* @__PURE__ */ In(() => /* @__PURE__ */ p("svg", {
13357
+ }, zy = /* @__PURE__ */ In(() => /* @__PURE__ */ p("svg", {
13358
13358
  xmlns: "http://www.w3.org/2000/svg",
13359
13359
  viewBox: "0 0 640 512"
13360
13360
  }, [
@@ -13447,7 +13447,7 @@ const qy = /* @__PURE__ */ gt(Ey, [["render", By], ["__scopeId", "data-v-ac25948
13447
13447
  }), Wl(() => {
13448
13448
  document.removeEventListener("click", _);
13449
13449
  });
13450
- const M = F(!1), k = F(!1), z = G(() => k.value ? {
13450
+ const M = F(!1), k = F(!1), H = G(() => k.value ? {
13451
13451
  position: "absolute",
13452
13452
  width: "42px",
13453
13453
  height: "42px",
@@ -13493,10 +13493,10 @@ const qy = /* @__PURE__ */ gt(Ey, [["render", By], ["__scopeId", "data-v-ac25948
13493
13493
  p("div", {
13494
13494
  onClick: Jt(W, ["stop"]),
13495
13495
  class: me(["group relative", d.value ? "chat-box border-base-200 open bg-base-200" : "chat-box closed"]),
13496
- style: bt(z.value)
13496
+ style: bt(H.value)
13497
13497
  }, [
13498
- d.value ? B("", !0) : (g(), A("span", zy, [
13499
- Hy,
13498
+ d.value ? B("", !0) : (g(), A("span", Hy, [
13499
+ zy,
13500
13500
  D.value > 0 ? (g(), A("span", Vy, we(D.value), 1)) : B("", !0),
13501
13501
  Uy
13502
13502
  ])),
@@ -13541,11 +13541,8 @@ const qy = /* @__PURE__ */ gt(Ey, [["render", By], ["__scopeId", "data-v-ac25948
13541
13541
  try {
13542
13542
  this.departments = [];
13543
13543
  let a = `${e1}`;
13544
- for (; a; ) {
13545
- const t = await Kt.get(a), { results: n, next: r } = t.data;
13546
- this.departments.push(...n), a = r;
13547
- }
13548
- this.count = this.departments.length;
13544
+ const t = await Kt.get(a);
13545
+ this.departments = t.data, this.count = this.departments.length;
13549
13546
  } catch (a) {
13550
13547
  console.log("Erro ao buscar departamentos:", a);
13551
13548
  }
@@ -13716,11 +13713,8 @@ const qy = /* @__PURE__ */ gt(Ey, [["render", By], ["__scopeId", "data-v-ac25948
13716
13713
  try {
13717
13714
  this.attendants = [];
13718
13715
  let e = `${Jp}`;
13719
- for (; e; ) {
13720
- const a = await Kt.get(e), { results: t, next: n } = a.data;
13721
- this.attendants.push(...t), e = n;
13722
- }
13723
- this.count = this.attendants.length;
13716
+ const a = await Kt.get(e);
13717
+ this.attendants = a.data, this.count = this.attendants.length;
13724
13718
  } catch (e) {
13725
13719
  console.log("Erro ao buscar atendentes:", e);
13726
13720
  }
@@ -13783,8 +13777,8 @@ const qy = /* @__PURE__ */ gt(Ey, [["render", By], ["__scopeId", "data-v-ac25948
13783
13777
  }, jg = {
13784
13778
  key: 1,
13785
13779
  class: "loading-spinner"
13786
- }, zg = /* @__PURE__ */ Ln(() => /* @__PURE__ */ p("div", { class: "loader" }, null, -1)), Hg = [
13787
- zg
13780
+ }, Hg = /* @__PURE__ */ Ln(() => /* @__PURE__ */ p("div", { class: "loader" }, null, -1)), zg = [
13781
+ Hg
13788
13782
  ], Vg = {
13789
13783
  __name: "attendantSelect",
13790
13784
  props: {
@@ -13858,7 +13852,7 @@ const qy = /* @__PURE__ */ gt(Ey, [["render", By], ["__scopeId", "data-v-ac25948
13858
13852
  }, [
13859
13853
  rt(we(M.name) + " ", 1),
13860
13854
  p("button", {
13861
- onClick: (z) => v(M, k),
13855
+ onClick: (H) => v(M, k),
13862
13856
  class: "close-btn"
13863
13857
  }, Ng, 8, $g)
13864
13858
  ]))), 128))
@@ -13889,7 +13883,7 @@ const qy = /* @__PURE__ */ gt(Ey, [["render", By], ["__scopeId", "data-v-ac25948
13889
13883
  ], 2)
13890
13884
  ]),
13891
13885
  !u.value && m.value.length === 0 ? (g(), A("div", Wg, " Nenhum atendente disponível. ")) : B("", !0),
13892
- u.value ? (g(), A("div", jg, Hg)) : B("", !0)
13886
+ u.value ? (g(), A("div", jg, zg)) : B("", !0)
13893
13887
  ], 2)
13894
13888
  ])
13895
13889
  ]));