sm-click-library-ui 0.0.194 → 0.0.196

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.
@@ -654,10 +654,10 @@ function Aa(e, n, t) {
654
654
  if (W.endsWith(_, "{}"))
655
655
  _ = a ? _ : _.slice(0, -2), k = JSON.stringify(k);
656
656
  else if (W.isArray(k) && Gi(k) || (W.isFileList(k) || W.endsWith(_, "[]")) && (g = W.toArray(k)))
657
- return _ = ls(_), g.forEach(function(x, Y) {
657
+ return _ = ls(_), g.forEach(function(x, L) {
658
658
  !(W.isUndefined(x) || x === null) && n.append(
659
659
  // eslint-disable-next-line no-nested-ternary
660
- s === !0 ? Gr([_], Y, o) : s === null ? _ : _ + "[]",
660
+ s === !0 ? Gr([_], L, o) : s === null ? _ : _ + "[]",
661
661
  c(x)
662
662
  );
663
663
  }), !1;
@@ -1365,16 +1365,16 @@ const vs = (e) => {
1365
1365
  }, M.onerror = function() {
1366
1366
  a(new Ae("Network Error", Ae.ERR_NETWORK, e, M)), M = null;
1367
1367
  }, M.ontimeout = function() {
1368
- let Y = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
1368
+ let L = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
1369
1369
  const J = r.transitional || ds;
1370
- r.timeoutErrorMessage && (Y = r.timeoutErrorMessage), a(new Ae(
1371
- Y,
1370
+ r.timeoutErrorMessage && (L = r.timeoutErrorMessage), a(new Ae(
1371
+ L,
1372
1372
  J.clarifyTimeoutError ? Ae.ETIMEDOUT : Ae.ECONNABORTED,
1373
1373
  e,
1374
1374
  M
1375
1375
  )), M = null;
1376
- }, o === void 0 && s.setContentType(null), "setRequestHeader" in M && W.forEach(s.toJSON(), function(Y, J) {
1377
- M.setRequestHeader(J, Y);
1376
+ }, o === void 0 && s.setContentType(null), "setRequestHeader" in M && W.forEach(s.toJSON(), function(L, J) {
1377
+ M.setRequestHeader(J, L);
1378
1378
  }), W.isUndefined(r.withCredentials) || (M.withCredentials = !!r.withCredentials), l && l !== "json" && (M.responseType = r.responseType), c && ([m, k] = ha(c, !0), M.addEventListener("progress", m)), i && M.upload && ([d, f] = ha(i), M.upload.addEventListener("progress", d), M.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (u = (x) => {
1379
1379
  M && (a(!x || x.type ? new $n(null, e, M) : x), M.abort(), M = null);
1380
1380
  }, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
@@ -1574,10 +1574,10 @@ const $u = async (e) => {
1574
1574
  );
1575
1575
  }
1576
1576
  c = c || "text";
1577
- let Y = await va[W.findKey(va, c) || "text"](w, e);
1577
+ let L = await va[W.findKey(va, c) || "text"](w, e);
1578
1578
  return !x && _ && _(), await new Promise((J, V) => {
1579
1579
  fs(J, V, {
1580
- data: Y,
1580
+ data: L,
1581
1581
  headers: vt.from(w.headers),
1582
1582
  status: w.status,
1583
1583
  statusText: w.statusText,
@@ -3651,8 +3651,8 @@ function It(e, n, t) {
3651
3651
  let i = n.match(hc).map((w) => {
3652
3652
  const x = w[0];
3653
3653
  if (x === "p" || x === "P") {
3654
- const Y = fr[x];
3655
- return Y(w, r.formatLong);
3654
+ const L = fr[x];
3655
+ return L(w, r.formatLong);
3656
3656
  }
3657
3657
  return w;
3658
3658
  }).join("").match(fc).map((w) => {
@@ -3679,8 +3679,8 @@ function It(e, n, t) {
3679
3679
  if (!w.isToken) return w.value;
3680
3680
  const x = w.value;
3681
3681
  (!(t != null && t.useAdditionalWeekYearTokens) && Bs(x) || !(t != null && t.useAdditionalDayOfYearTokens) && Ns(x)) && hr(x, n, String(e));
3682
- const Y = fo[x[0]];
3683
- return Y(l, x, r.localize, c);
3682
+ const L = fo[x[0]];
3683
+ return L(l, x, r.localize, c);
3684
3684
  }).join("");
3685
3685
  }
3686
3686
  function gc(e) {
@@ -5192,8 +5192,8 @@ const um = {
5192
5192
  T: new im()
5193
5193
  }, dm = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, cm = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, mm = /^'([^]*?)'?$/, fm = /''/g, hm = /\S/, vm = /[a-zA-Z]/;
5194
5194
  function vr(e, n, t, a) {
5195
- var _, M, g, w, x, Y, J, V;
5196
- const r = kc(), o = (a == null ? void 0 : a.locale) ?? r.locale ?? Es, s = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((M = (_ = a == null ? void 0 : a.locale) == null ? void 0 : _.options) == null ? void 0 : M.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((w = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, l = (a == null ? void 0 : a.weekStartsOn) ?? ((Y = (x = a == null ? void 0 : a.locale) == null ? void 0 : x.options) == null ? void 0 : Y.weekStartsOn) ?? r.weekStartsOn ?? ((V = (J = r.locale) == null ? void 0 : J.options) == null ? void 0 : V.weekStartsOn) ?? 0;
5195
+ var _, M, g, w, x, L, J, V;
5196
+ const r = kc(), o = (a == null ? void 0 : a.locale) ?? r.locale ?? Es, s = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((M = (_ = a == null ? void 0 : a.locale) == null ? void 0 : _.options) == null ? void 0 : M.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((w = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, l = (a == null ? void 0 : a.weekStartsOn) ?? ((L = (x = a == null ? void 0 : a.locale) == null ? void 0 : x.options) == null ? void 0 : L.weekStartsOn) ?? r.weekStartsOn ?? ((V = (J = r.locale) == null ? void 0 : J.options) == null ? void 0 : V.weekStartsOn) ?? 0;
5197
5197
  if (n === "")
5198
5198
  return e === "" ? ge(t) : Oe(t, NaN);
5199
5199
  const i = {
@@ -5964,7 +5964,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5964
5964
  }, t = () => {
5965
5965
  var V;
5966
5966
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? n() : e.weekPicker ? `${((V = M.value) == null ? void 0 : V.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${n()}` : "MM/dd/yyyy";
5967
- }, a = (V) => Js(V, e.enableSeconds), r = () => Y.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [a(e.startTime[0]), a(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? a(e.startTime) : null, o = K(() => Im(e.multiCalendars)), s = K(() => r()), l = K(() => Fm(e.ariaLabels)), i = K(() => Wm(e.filters)), c = K(() => Hm(e.transitions)), u = K(() => jm(e.actionRow)), d = K(
5967
+ }, a = (V) => Js(V, e.enableSeconds), r = () => L.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [a(e.startTime[0]), a(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? a(e.startTime) : null, o = K(() => Im(e.multiCalendars)), s = K(() => r()), l = K(() => Fm(e.ariaLabels)), i = K(() => Wm(e.filters)), c = K(() => Hm(e.transitions)), u = K(() => jm(e.actionRow)), d = K(
5968
5968
  () => qm(e.previewFormat, e.format, t())
5969
5969
  ), m = K(() => Vm(e.textInput)), f = K(() => zm(e.inline)), k = K(() => Um(e.config)), _ = K(() => Xm(e.highlight)), M = K(() => Qm(e.weekNumbers)), g = K(() => Km(e.timezone)), w = K(() => ef(e.multiDates)), x = K(
5970
5970
  () => Jm({
@@ -5977,7 +5977,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5977
5977
  timezone: g.value,
5978
5978
  isSpecific: e.monthPicker || e.yearPicker || e.quarterPicker
5979
5979
  })
5980
- ), Y = K(() => Gm(e.range)), J = K(() => tf(e.ui));
5980
+ ), L = K(() => Gm(e.range)), J = K(() => tf(e.ui));
5981
5981
  return {
5982
5982
  defaultedTransitions: c,
5983
5983
  defaultedMultiCalendars: o,
@@ -5991,7 +5991,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5991
5991
  defaultedConfig: k,
5992
5992
  defaultedHighlight: _,
5993
5993
  defaultedWeekNumbers: M,
5994
- defaultedRange: Y,
5994
+ defaultedRange: L,
5995
5995
  propDates: x,
5996
5996
  defaultedTz: g,
5997
5997
  defaultedMultiDates: w,
@@ -6045,7 +6045,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6045
6045
  A[1],
6046
6046
  Jt(null, +A[1].hours, +A[1].minutes, A[1].seconds)
6047
6047
  )
6048
- ] : w(A, Jt(null, A.hours, A.minutes, A.seconds)), Y = (A) => {
6048
+ ] : w(A, Jt(null, A.hours, A.minutes, A.seconds)), L = (A) => {
6049
6049
  const ue = Ne(ee(), { date: 1 });
6050
6050
  return Array.isArray(A) ? l.value.enabled ? A.map((_e) => w(_e, Ht(ue, +_e.month, +_e.year))) : la(
6051
6051
  () => [
@@ -6084,13 +6084,13 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6084
6084
  $(A[0]),
6085
6085
  A[1] ? $(A[1]) : bn(o.value.partialRange)
6086
6086
  ];
6087
- }, I = () => a.value[1] ? P() : $(Je(a.value[0])), Z = () => (a.value || []).map((A) => $(A)), ce = (A = !1) => (A || O(), n.modelAuto ? I() : l.value.enabled ? Z() : Array.isArray(a.value) ? la(() => P(), o.value.enabled) : $(Je(a.value))), pe = (A) => !A || Array.isArray(A) && !A.length ? null : n.timePicker ? x(Je(A)) : n.monthPicker ? Y(Je(A)) : n.yearPicker ? g(Je(A)) : l.value.enabled ? J(Je(A)) : n.weekPicker ? V(Je(A)) : T(Je(A)), S = (A) => {
6087
+ }, I = () => a.value[1] ? P() : $(Je(a.value[0])), Z = () => (a.value || []).map((A) => $(A)), ce = (A = !1) => (A || O(), n.modelAuto ? I() : l.value.enabled ? Z() : Array.isArray(a.value) ? la(() => P(), o.value.enabled) : $(Je(a.value))), pe = (A) => !A || Array.isArray(A) && !A.length ? null : n.timePicker ? x(Je(A)) : n.monthPicker ? L(Je(A)) : n.yearPicker ? g(Je(A)) : l.value.enabled ? J(Je(A)) : n.weekPicker ? V(Je(A)) : T(Je(A)), S = (A) => {
6088
6088
  const ue = pe(A);
6089
6089
  gr(Je(ue)) ? (a.value = Je(ue), le()) : (a.value = null, c.value = "");
6090
- }, L = () => {
6090
+ }, Y = () => {
6091
6091
  const A = (ue) => It(ue, r.value.format);
6092
6092
  return `${A(a.value[0])} ${r.value.rangeSeparator} ${a.value[1] ? A(a.value[1]) : ""}`;
6093
- }, C = () => t.value && a.value ? Array.isArray(a.value) ? L() : It(a.value, r.value.format) : k(a.value), z = () => a.value ? l.value.enabled ? a.value.map((A) => k(A)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? C() : k(a.value) : "", le = () => {
6093
+ }, C = () => t.value && a.value ? Array.isArray(a.value) ? Y() : It(a.value, r.value.format) : k(a.value), z = () => a.value ? l.value.enabled ? a.value.map((A) => k(A)).join("; ") : r.value.enabled && typeof r.value.format == "string" ? C() : k(a.value) : "", le = () => {
6094
6094
  !n.format || typeof n.format == "string" || r.value.enabled && typeof r.value.format == "string" ? c.value = z() : c.value = n.format(a.value);
6095
6095
  }, X = (A) => {
6096
6096
  if (n.utc) {
@@ -6306,14 +6306,14 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6306
6306
  defaultedMultiDates: u
6307
6307
  } = qe(a), { isTimeValid: d, isMonthValid: m } = an(a), { buildMatrix: f } = nn(), k = F(null), _ = F(null), M = F(!1), g = F({}), w = F(null), x = F(null);
6308
6308
  Ye(() => {
6309
- a.arrowNavigation && f([Ke(k), Ke(_)], "actionRow"), Y(), window.addEventListener("resize", Y);
6309
+ a.arrowNavigation && f([Ke(k), Ke(_)], "actionRow"), L(), window.addEventListener("resize", L);
6310
6310
  }), Kn(() => {
6311
- window.removeEventListener("resize", Y);
6311
+ window.removeEventListener("resize", L);
6312
6312
  });
6313
- const Y = () => {
6313
+ const L = () => {
6314
6314
  M.value = !1, setTimeout(() => {
6315
- var S, L;
6316
- const C = (S = w.value) == null ? void 0 : S.getBoundingClientRect(), z = (L = x.value) == null ? void 0 : L.getBoundingClientRect();
6315
+ var S, Y;
6316
+ const C = (S = w.value) == null ? void 0 : S.getBoundingClientRect(), z = (Y = x.value) == null ? void 0 : Y.getBoundingClientRect();
6317
6317
  C && z && (g.value.maxWidth = `${z.width - C.width - 20}px`), M.value = !0;
6318
6318
  }, 0);
6319
6319
  }, J = K(() => c.value.enabled && !c.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), V = K(
@@ -6336,7 +6336,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6336
6336
  ), pe = () => {
6337
6337
  d.value(a.internalModelValue) && m.value(a.internalModelValue) && J.value ? t("select-date") : t("invalid-select");
6338
6338
  };
6339
- return (S, L) => (p(), D("div", {
6339
+ return (S, Y) => (p(), D("div", {
6340
6340
  ref_key: "actionRowRef",
6341
6341
  ref: x,
6342
6342
  class: "dp__action_row"
@@ -6378,15 +6378,15 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6378
6378
  ref: k,
6379
6379
  type: "button",
6380
6380
  class: "dp__action_button dp__action_cancel",
6381
- onClick: L[0] || (L[0] = (C) => S.$emit("close-picker")),
6382
- onKeydown: L[1] || (L[1] = (C) => b(ct)(C, () => S.$emit("close-picker")))
6381
+ onClick: Y[0] || (Y[0] = (C) => S.$emit("close-picker")),
6382
+ onKeydown: Y[1] || (Y[1] = (C) => b(ct)(C, () => S.$emit("close-picker")))
6383
6383
  }, we(S.cancelText), 545)) : q("", !0),
6384
6384
  b(r).showNow ? (p(), D("button", {
6385
6385
  key: 1,
6386
6386
  type: "button",
6387
6387
  class: "dp__action_button dp__action_cancel",
6388
- onClick: L[2] || (L[2] = (C) => S.$emit("select-now")),
6389
- onKeydown: L[3] || (L[3] = (C) => b(ct)(C, () => S.$emit("select-now")))
6388
+ onClick: Y[2] || (Y[2] = (C) => S.$emit("select-now")),
6389
+ onKeydown: Y[3] || (Y[3] = (C) => b(ct)(C, () => S.$emit("select-now")))
6390
6390
  }, we(S.nowButtonLabel), 33)) : q("", !0),
6391
6391
  b(r).showSelect ? (p(), D("button", {
6392
6392
  key: 2,
@@ -6396,7 +6396,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6396
6396
  class: "dp__action_button dp__action_select",
6397
6397
  disabled: V.value,
6398
6398
  "data-test": "select-button",
6399
- onKeydown: L[4] || (L[4] = (C) => b(ct)(C, () => pe())),
6399
+ onKeydown: Y[4] || (Y[4] = (C) => b(ct)(C, () => pe())),
6400
6400
  onClick: pe
6401
6401
  }, we(S.selectText), 41, of)) : q("", !0)
6402
6402
  ], 64))
@@ -6433,9 +6433,9 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6433
6433
  $l(() => {
6434
6434
  f.value = null;
6435
6435
  }), Ye(() => {
6436
- Ze().then(() => Z()), l.noOverlayFocus || J(), Y(!0);
6437
- }), Kn(() => Y(!1));
6438
- const Y = (G) => {
6436
+ Ze().then(() => Z()), l.noOverlayFocus || J(), L(!0);
6437
+ }), Kn(() => L(!1));
6438
+ const L = (G) => {
6439
6439
  var B;
6440
6440
  l.arrowNavigation && ((B = l.headerRefs) != null && B.length ? o(G) : a(G));
6441
6441
  }, J = () => {
@@ -6484,7 +6484,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6484
6484
  s("toggle"), s("reset-flow");
6485
6485
  }, S = () => {
6486
6486
  l.escClose && pe();
6487
- }, L = (G, B, v, E) => {
6487
+ }, Y = (G, B, v, E) => {
6488
6488
  G && ((B.active || B.value === l.focusValue) && (f.value = G), l.arrowNavigation && (Array.isArray(_.value[v]) ? _.value[v][E] = G : _.value[v] = [G], C()));
6489
6489
  }, C = () => {
6490
6490
  var G, B;
@@ -6553,7 +6553,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6553
6553
  (p(!0), D(ke, null, Ce(E, (A, ue) => (p(), D("div", {
6554
6554
  key: A.value,
6555
6555
  ref_for: !0,
6556
- ref: (_e) => L(_e, A, te, ue),
6556
+ ref: (_e) => Y(_e, A, te, ue),
6557
6557
  role: "gridcell",
6558
6558
  class: he(O.value),
6559
6559
  "aria-selected": A.active || void 0,
@@ -6680,7 +6680,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6680
6680
  t("handle-year", g);
6681
6681
  };
6682
6682
  return (g, w) => {
6683
- var x, Y, J, V, T;
6683
+ var x, L, J, V, T;
6684
6684
  return p(), D(ke, null, [
6685
6685
  h("div", {
6686
6686
  class: he(["dp--year-mode-picker", { "dp--hidden-el": f.value }])
@@ -6690,7 +6690,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6690
6690
  ref: "mpPrevIconRef",
6691
6691
  "aria-label": (x = b(i)) == null ? void 0 : x.prevYear,
6692
6692
  disabled: e.isDisabled(!1),
6693
- class: he((Y = b(u)) == null ? void 0 : Y.navBtnPrev),
6693
+ class: he((L = b(u)) == null ? void 0 : L.navBtnPrev),
6694
6694
  onActivate: w[0] || (w[0] = (O) => M(!1))
6695
6695
  }, {
6696
6696
  default: ye(() => [
@@ -6841,13 +6841,13 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6841
6841
  const I = Array.isArray(o.value) ? w(o.value) : o.value;
6842
6842
  r.value[0] = { month: Pe(I), year: xe(I) };
6843
6843
  }
6844
- }, Y = () => {
6844
+ }, L = () => {
6845
6845
  x(), e.value.count && _();
6846
6846
  };
6847
6847
  Ie(o, (I, Z) => {
6848
- s.isTextInputDate && JSON.stringify(I ?? {}) !== JSON.stringify(Z ?? {}) && Y();
6848
+ s.isTextInputDate && JSON.stringify(I ?? {}) !== JSON.stringify(Z ?? {}) && L();
6849
6849
  }), Ye(() => {
6850
- Y();
6850
+ L();
6851
6851
  });
6852
6852
  const J = (I, Z) => {
6853
6853
  r.value[Z].year = I, u("update-month-year", { instance: Z, year: I, month: r.value[Z].month }), e.value.count && !e.value.solo && M(Z);
@@ -6857,8 +6857,8 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6857
6857
  Z.value,
6858
6858
  Sn(a.value.minDate),
6859
6859
  Sn(a.value.maxDate)
6860
- ) || ((ce = l.value.years) == null ? void 0 : ce.includes(i.value(I))), L = Fr(t.value, Z.value);
6861
- return { active: pe, disabled: S, highlighted: L };
6860
+ ) || ((ce = l.value.years) == null ? void 0 : ce.includes(i.value(I))), Y = Fr(t.value, Z.value);
6861
+ return { active: pe, disabled: S, highlighted: Y };
6862
6862
  })), T = (I, Z) => {
6863
6863
  J(I, Z), P(Z);
6864
6864
  }, O = (I, Z = !1) => {
@@ -6891,9 +6891,9 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6891
6891
  defaultedFilters: u,
6892
6892
  defaultedMultiDates: d
6893
6893
  } = qe(e), m = () => {
6894
- e.isTextInputDate && Y(xe(ee(e.startDate)), 0);
6894
+ e.isTextInputDate && L(xe(ee(e.startDate)), 0);
6895
6895
  }, { modelValue: f, year: k, month: _, calendars: M } = aa(e, n, m), g = K(() => zs(e.formatLocale, e.locale, e.monthNameFormat)), w = F(null), { checkMinMaxRange: x } = an(e), {
6896
- selectYear: Y,
6896
+ selectYear: L,
6897
6897
  groupedYears: J,
6898
6898
  showYearPicker: V,
6899
6899
  toggleYearPicker: T,
@@ -6914,7 +6914,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6914
6914
  emit: n
6915
6915
  });
6916
6916
  Ye(() => {
6917
- e.startDate && (f.value && e.focusStartDate || !f.value) && Y(xe(ee(e.startDate)), 0);
6917
+ e.startDate && (f.value && e.focusStartDate || !f.value) && L(xe(ee(e.startDate)), 0);
6918
6918
  });
6919
6919
  const Z = (v) => v ? { month: Pe(v), year: xe(v) } : { month: null, year: null }, ce = () => f.value ? Array.isArray(f.value) ? f.value.map((v) => Z(v)) : Z(f.value) : Z(), pe = (v, E) => {
6920
6920
  const te = M.value[v], A = ce();
@@ -6923,7 +6923,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6923
6923
  var A, ue;
6924
6924
  const _e = ce();
6925
6925
  return Array.isArray(_e) ? k.value(E) === ((A = _e[te]) == null ? void 0 : A.year) && v === ((ue = _e[te]) == null ? void 0 : ue.month) : !1;
6926
- }, L = (v, E) => {
6926
+ }, Y = (v, E) => {
6927
6927
  if (s.value.enabled) {
6928
6928
  const te = ce();
6929
6929
  if (Array.isArray(f.value) && Array.isArray(te)) {
@@ -6939,7 +6939,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6939
6939
  E.value,
6940
6940
  Gs(k.value(v), i.value.minDate),
6941
6941
  Ks(k.value(v), i.value.maxDate)
6942
- ) || Lm(i.value.disabledDates, k.value(v)).includes(E.value) || ((te = u.value.months) == null ? void 0 : te.includes(E.value)), _e = L(E.value, v), Ge = nl(l.value, E.value, k.value(v));
6942
+ ) || Lm(i.value.disabledDates, k.value(v)).includes(E.value) || ((te = u.value.months) == null ? void 0 : te.includes(E.value)), _e = Y(E.value, v), Ge = nl(l.value, E.value, k.value(v));
6943
6943
  return { active: A, disabled: ue, isBetween: _e, highlighted: Ge };
6944
6944
  })), z = (v, E) => Ht(Ct(ee()), v, k.value(E)), le = (v, E) => {
6945
6945
  const te = f.value ? f.value : Ct(/* @__PURE__ */ new Date());
@@ -6952,7 +6952,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6952
6952
  }, $ = (v, E) => {
6953
6953
  Ir(z(v, E), f, d.value.limit), n("auto-apply", !0);
6954
6954
  }, de = (v, E) => (M.value[E].month = v, B(E, M.value[E].year, v), d.value.enabled ? $(v, E) : s.value.enabled ? X(v, E) : le(v, E)), G = (v, E) => {
6955
- Y(v, E), B(E, v, null);
6955
+ L(v, E), B(E, v, null);
6956
6956
  }, B = (v, E, te) => {
6957
6957
  let A = te;
6958
6958
  if (!A && A !== 0) {
@@ -7030,7 +7030,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7030
7030
  selectMonth: g,
7031
7031
  selectYear: w,
7032
7032
  toggleYearPicker: x,
7033
- handleYearSelect: Y,
7033
+ handleYearSelect: L,
7034
7034
  handleYear: J,
7035
7035
  getModelMonthYear: V
7036
7036
  } = hf(s, a);
@@ -7080,7 +7080,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7080
7080
  year: b(c)(P),
7081
7081
  "is-disabled": (I) => b(u)(P, I),
7082
7082
  onHandleYear: (I) => b(J)(P, I),
7083
- onYearSelect: (I) => b(Y)(I, P),
7083
+ onYearSelect: (I) => b(L)(I, P),
7084
7084
  onToggleYearPicker: (I) => b(x)(P, I == null ? void 0 : I.flow, I == null ? void 0 : I.show)
7085
7085
  }), it({ _: 2 }, [
7086
7086
  Ce(b(o), (I, Z) => ({
@@ -7233,7 +7233,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7233
7233
  Ye(() => {
7234
7234
  a("mounted");
7235
7235
  });
7236
- const Y = (y) => Ne(/* @__PURE__ */ new Date(), {
7236
+ const L = (y) => Ne(/* @__PURE__ */ new Date(), {
7237
7237
  hours: y.hours,
7238
7238
  minutes: y.minutes,
7239
7239
  seconds: r.enableSeconds ? y.seconds : 0,
@@ -7263,7 +7263,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7263
7263
  }), r.enableSeconds && y.push({ type: "", separator: !0 }, {
7264
7264
  type: "seconds"
7265
7265
  }), y;
7266
- }), L = K(() => S.value.filter((y) => !y.separator)), C = K(() => (y) => {
7266
+ }), Y = K(() => S.value.filter((y) => !y.separator)), C = K(() => (y) => {
7267
7267
  if (y === "hours") {
7268
7268
  const Q = ue(+r.hours);
7269
7269
  return { text: Q < 10 ? `0${Q}` : `${Q}`, value: Q };
@@ -7280,7 +7280,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7280
7280
  N.push({ value: r.is24 ? ne : le(ne, y), text: ne < 10 ? `0${ne}` : `${ne}` });
7281
7281
  return y === "hours" && !r.is24 && N.unshift({ value: _.value === "PM" ? 12 : 0, text: "12" }), Pn(N, (ne) => ({ active: !1, disabled: c.value.times[y].includes(ne.value) || !G(ne.value, y) || z(y, ne.value) || T(y, ne.value) }));
7282
7282
  }, $ = (y) => y >= 0 ? y : 59, de = (y) => y >= 0 ? y : 23, G = (y, Q) => {
7283
- const re = r.minTime ? Y(Ga(r.minTime)) : null, U = r.maxTime ? Y(Ga(r.maxTime)) : null, Me = Y(
7283
+ const re = r.minTime ? L(Ga(r.minTime)) : null, U = r.maxTime ? L(Ga(r.maxTime)) : null, Me = L(
7284
7284
  Ga(
7285
7285
  V.value,
7286
7286
  Q,
@@ -7438,7 +7438,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7438
7438
  onKeydown: Q[0] || (Q[0] = (U) => b(ct)(U, () => _e(), !0))
7439
7439
  }, we(_.value), 41, xf))
7440
7440
  ])),
7441
- (p(!0), D(ke, null, Ce(L.value, (U, Me) => (p(), De(yn, {
7441
+ (p(!0), D(ke, null, Ce(Y.value, (U, Me) => (p(), De(yn, {
7442
7442
  key: Me,
7443
7443
  name: b(m)(k[U.type]),
7444
7444
  css: b(f)
@@ -7521,7 +7521,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7521
7521
  "am-pm-change"
7522
7522
  ],
7523
7523
  setup(e, { expose: n, emit: t }) {
7524
- const a = t, r = e, { buildMatrix: o, setTimePicker: s } = nn(), l = pn(), { defaultedTransitions: i, defaultedAriaLabels: c, defaultedTextInput: u, defaultedConfig: d, defaultedRange: m } = qe(r), { transitionName: f, showTransition: k } = na(i), { hideNavigationButtons: _ } = $a(), M = F(null), g = F(null), w = F([]), x = F(null), Y = F(!1);
7524
+ const a = t, r = e, { buildMatrix: o, setTimePicker: s } = nn(), l = pn(), { defaultedTransitions: i, defaultedAriaLabels: c, defaultedTextInput: u, defaultedConfig: d, defaultedRange: m } = qe(r), { transitionName: f, showTransition: k } = na(i), { hideNavigationButtons: _ } = $a(), M = F(null), g = F(null), w = F([]), x = F(null), L = F(!1);
7525
7525
  Ye(() => {
7526
7526
  a("mount"), !r.timePicker && r.arrowNavigation ? o([Ke(M.value)], "time") : s(!0, r.timePicker);
7527
7527
  });
@@ -7549,7 +7549,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7549
7549
  a("update:hours", X);
7550
7550
  }, S = (X) => {
7551
7551
  a("update:minutes", X);
7552
- }, L = (X) => {
7552
+ }, Y = (X) => {
7553
7553
  a("update:seconds", X);
7554
7554
  }, C = () => {
7555
7555
  if (x.value && !u.value.enabled && !r.noOverlayFocus) {
@@ -7557,9 +7557,9 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7557
7557
  X && X.focus({ preventScroll: !0 });
7558
7558
  }
7559
7559
  }, z = (X) => {
7560
- Y.value = !1, a("overlay-closed", X);
7560
+ L.value = !1, a("overlay-closed", X);
7561
7561
  }, le = (X) => {
7562
- Y.value = !0, a("overlay-opened", X);
7562
+ L.value = !0, a("overlay-opened", X);
7563
7563
  };
7564
7564
  return n({ toggleTimePicker: P }), (X, $) => {
7565
7565
  var de;
@@ -7615,7 +7615,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7615
7615
  seconds: e.seconds,
7616
7616
  setHours: pe,
7617
7617
  setMinutes: S,
7618
- setSeconds: L
7618
+ setSeconds: Y
7619
7619
  }) : q("", !0),
7620
7620
  X.$slots["time-picker-overlay"] ? q("", !0) : (p(), D("div", {
7621
7621
  key: 1,
@@ -7640,7 +7640,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7640
7640
  "validate-time": (te, A) => e.validateTime(te, ce(A, E, te)),
7641
7641
  "onUpdate:hours": (te) => pe(ce(te, E, "hours")),
7642
7642
  "onUpdate:minutes": (te) => S(ce(te, E, "minutes")),
7643
- "onUpdate:seconds": (te) => L(ce(te, E, "seconds")),
7643
+ "onUpdate:seconds": (te) => Y(ce(te, E, "seconds")),
7644
7644
  onMounted: C,
7645
7645
  onOverlayClosed: z,
7646
7646
  onOverlayOpened: le,
@@ -7661,7 +7661,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7661
7661
  ref_key: "closeTimePickerBtn",
7662
7662
  ref: g,
7663
7663
  type: "button",
7664
- class: he({ ...I.value, "dp--hidden-el": Y.value }),
7664
+ class: he({ ...I.value, "dp--hidden-el": L.value }),
7665
7665
  "aria-label": (B = b(c)) == null ? void 0 : B.closeTimePicker,
7666
7666
  tabindex: "0",
7667
7667
  onKeydown: $[3] || ($[3] = (v) => b(ct)(v, () => P(!1))),
@@ -7682,11 +7682,11 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7682
7682
  };
7683
7683
  }
7684
7684
  }), dl = (e, n, t, a) => {
7685
- const { defaultedRange: r } = qe(e), o = (x, Y) => Array.isArray(n[x]) ? n[x][Y] : n[x], s = (x) => e.enableSeconds ? Array.isArray(n.seconds) ? n.seconds[x] : n.seconds : 0, l = (x, Y) => x ? Y !== void 0 ? Jt(x, o("hours", Y), o("minutes", Y), s(Y)) : Jt(x, n.hours, n.minutes, s()) : Vs(ee(), s(Y)), i = (x, Y) => {
7686
- n[x] = Y;
7687
- }, c = K(() => e.modelAuto && r.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : r.value.enabled), u = (x, Y) => {
7685
+ const { defaultedRange: r } = qe(e), o = (x, L) => Array.isArray(n[x]) ? n[x][L] : n[x], s = (x) => e.enableSeconds ? Array.isArray(n.seconds) ? n.seconds[x] : n.seconds : 0, l = (x, L) => x ? L !== void 0 ? Jt(x, o("hours", L), o("minutes", L), s(L)) : Jt(x, n.hours, n.minutes, s()) : Vs(ee(), s(L)), i = (x, L) => {
7686
+ n[x] = L;
7687
+ }, c = K(() => e.modelAuto && r.value.enabled ? Array.isArray(t.value) ? t.value.length > 1 : !1 : r.value.enabled), u = (x, L) => {
7688
7688
  const J = Object.fromEntries(
7689
- Object.keys(n).map((V) => V === x ? [V, Y] : [V, n[V]].slice())
7689
+ Object.keys(n).map((V) => V === x ? [V, L] : [V, n[V]].slice())
7690
7690
  );
7691
7691
  if (c.value && !r.value.disableTimeRangeValidation) {
7692
7692
  const V = (O) => t.value ? Jt(
@@ -7698,31 +7698,31 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7698
7698
  return !(Se(V(0), V(1)) && (Tn(V(0), T(1)) || Xn(V(1), T(0))));
7699
7699
  }
7700
7700
  return !0;
7701
- }, d = (x, Y) => {
7702
- u(x, Y) && (i(x, Y), a && a());
7701
+ }, d = (x, L) => {
7702
+ u(x, L) && (i(x, L), a && a());
7703
7703
  }, m = (x) => {
7704
7704
  d("hours", x);
7705
7705
  }, f = (x) => {
7706
7706
  d("minutes", x);
7707
7707
  }, k = (x) => {
7708
7708
  d("seconds", x);
7709
- }, _ = (x, Y, J, V) => {
7710
- Y && m(x), !Y && !J && f(x), J && k(x), t.value && V(t.value);
7709
+ }, _ = (x, L, J, V) => {
7710
+ L && m(x), !L && !J && f(x), J && k(x), t.value && V(t.value);
7711
7711
  }, M = (x) => {
7712
7712
  if (x) {
7713
- const Y = Array.isArray(x), J = Y ? [+x[0].hours, +x[1].hours] : +x.hours, V = Y ? [+x[0].minutes, +x[1].minutes] : +x.minutes, T = Y ? [+x[0].seconds, +x[1].seconds] : +x.seconds;
7713
+ const L = Array.isArray(x), J = L ? [+x[0].hours, +x[1].hours] : +x.hours, V = L ? [+x[0].minutes, +x[1].minutes] : +x.minutes, T = L ? [+x[0].seconds, +x[1].seconds] : +x.seconds;
7714
7714
  i("hours", J), i("minutes", V), e.enableSeconds && i("seconds", T);
7715
7715
  }
7716
- }, g = (x, Y) => {
7716
+ }, g = (x, L) => {
7717
7717
  const J = {
7718
7718
  hours: Array.isArray(n.hours) ? n.hours[x] : n.hours,
7719
7719
  disabledArr: []
7720
7720
  };
7721
- return (Y || Y === 0) && (J.hours = Y), Array.isArray(e.disabledTimes) && (J.disabledArr = r.value.enabled && Array.isArray(e.disabledTimes[x]) ? e.disabledTimes[x] : e.disabledTimes), J;
7722
- }, w = K(() => (x, Y) => {
7721
+ return (L || L === 0) && (J.hours = L), Array.isArray(e.disabledTimes) && (J.disabledArr = r.value.enabled && Array.isArray(e.disabledTimes[x]) ? e.disabledTimes[x] : e.disabledTimes), J;
7722
+ }, w = K(() => (x, L) => {
7723
7723
  var J;
7724
7724
  if (Array.isArray(e.disabledTimes)) {
7725
- const { disabledArr: V, hours: T } = g(x, Y), O = V.filter((P) => +P.hours === T);
7725
+ const { disabledArr: V, hours: T } = g(x, L), O = V.filter((P) => +P.hours === T);
7726
7726
  return ((J = O[0]) == null ? void 0 : J.minutes) === "*" ? { hours: [T], minutes: void 0, seconds: void 0 } : {
7727
7727
  hours: [],
7728
7728
  minutes: (O == null ? void 0 : O.map((P) => +P.minutes)) ?? [],
@@ -7745,7 +7745,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7745
7745
  };
7746
7746
  }, Pf = (e, n) => {
7747
7747
  const t = () => {
7748
- e.isTextInputDate && Y();
7748
+ e.isTextInputDate && L();
7749
7749
  }, { modelValue: a, time: r } = aa(e, n, t), { defaultedStartTime: o, defaultedRange: s, defaultedTz: l } = qe(e), { updateTimeValues: i, getSetDateTime: c, setTime: u, assignStartTime: d, disabledTimesConfig: m, validateTime: f } = dl(e, r, a, k);
7750
7750
  function k() {
7751
7751
  n("update-flow-step");
@@ -7774,7 +7774,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7774
7774
  a.value = pt(c(M()), l.value.timezone);
7775
7775
  }, w = (V) => Array.isArray(V) ? [fn(ee(V[0])), fn(ee(V[1]))] : [fn(V ?? ee())], x = (V, T, O) => {
7776
7776
  u("hours", V), u("minutes", T), u("seconds", e.enableSeconds ? O : 0);
7777
- }, Y = () => {
7777
+ }, L = () => {
7778
7778
  const [V, T] = w(a.value);
7779
7779
  return s.value.enabled ? x(
7780
7780
  [V.hours, T.hours],
@@ -7784,7 +7784,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7784
7784
  };
7785
7785
  Ye(() => {
7786
7786
  if (!e.shadow)
7787
- return d(o.value), a.value ? Y() : g();
7787
+ return d(o.value), a.value ? L() : g();
7788
7788
  });
7789
7789
  const J = () => {
7790
7790
  Array.isArray(a.value) ? a.value = a.value.map((V, T) => V && c(V, T)) : a.value = c(a.value), n("time-update");
@@ -7887,7 +7887,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7887
7887
  defaultedHighlight: u,
7888
7888
  propDates: d,
7889
7889
  defaultedUI: m
7890
- } = qe(r), { transitionName: f, showTransition: k } = na(o), { buildMatrix: _ } = nn(), { handleMonthYearChange: M, isDisabled: g, updateMonthYear: w } = af(r, a), { showLeftIcon: x, showRightIcon: Y } = $a(), J = F(!1), V = F(!1), T = F(!1), O = F([null, null, null, null]);
7890
+ } = qe(r), { transitionName: f, showTransition: k } = na(o), { buildMatrix: _ } = nn(), { handleMonthYearChange: M, isDisabled: g, updateMonthYear: w } = af(r, a), { showLeftIcon: x, showRightIcon: L } = $a(), J = F(!1), V = F(!1), T = F(!1), O = F([null, null, null, null]);
7891
7891
  Ye(() => {
7892
7892
  a("mount");
7893
7893
  });
@@ -7911,7 +7911,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7911
7911
  Ks(r.year, d.value.maxDate)
7912
7912
  ) || i.value.months.includes(B.value), te = nl(u.value, B.value, r.year);
7913
7913
  return { active: v, disabled: E, highlighted: te };
7914
- })), L = K(() => Pn(r.years, (B) => {
7914
+ })), Y = K(() => Pn(r.years, (B) => {
7915
7915
  const v = r.year === B.value, E = Qn(
7916
7916
  B.value,
7917
7917
  Sn(d.value.minDate),
@@ -7951,7 +7951,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7951
7951
  updateModelValue: (_e) => Z.value = _e,
7952
7952
  text: Qs(r.year, r.locale),
7953
7953
  showSelectionGrid: V.value,
7954
- items: L.value,
7954
+ items: Y.value,
7955
7955
  ariaLabel: (te = s.value) == null ? void 0 : te.openYearsOverlay,
7956
7956
  overlayLabel: ((ue = (A = s.value).yearPicker) == null ? void 0 : ue.call(A, !0)) ?? void 0
7957
7957
  }
@@ -8089,7 +8089,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8089
8089
  ]),
8090
8090
  _: 3
8091
8091
  }, 8, ["aria-label", "disabled", "class"])) : q("", !0),
8092
- b(Y)(b(l), e.instance) ? (p(), De(Wn, {
8092
+ b(L)(b(l), e.instance) ? (p(), De(Wn, {
8093
8093
  key: 2,
8094
8094
  ref: "rightIcon",
8095
8095
  "el-name": "action-next",
@@ -8156,7 +8156,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8156
8156
  bottom: "",
8157
8157
  left: "",
8158
8158
  transform: ""
8159
- }), _ = F([]), M = F(null), g = F(!0), w = F(""), x = F({ startX: 0, endX: 0, startY: 0, endY: 0 }), Y = F([]), J = F({ left: "50%" }), V = F(!1), T = K(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), O = K(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Am(r.formatLocale, r.locale, +r.weekStart));
8159
+ }), _ = F([]), M = F(null), g = F(!0), w = F(""), x = F({ startX: 0, endX: 0, startY: 0, endY: 0 }), L = F([]), J = F({ left: "50%" }), V = F(!1), T = K(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), O = K(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : Am(r.formatLocale, r.locale, +r.weekStart));
8160
8160
  Ye(() => {
8161
8161
  a("mount", { cmp: "calendar", refs: _ }), l.value.noSwipe || M.value && (M.value.addEventListener("touchstart", $, { passive: !1 }), M.value.addEventListener("touchend", de, { passive: !1 }), M.value.addEventListener("touchmove", G, { passive: !1 })), r.monthChangeOnScroll && M.value && M.value.addEventListener("wheel", E, { passive: !1 });
8162
8162
  });
@@ -8180,12 +8180,12 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8180
8180
  }), pe = K(() => (H) => Se(H, f.value)), S = K(() => ({
8181
8181
  dp__calendar: !0,
8182
8182
  dp__calendar_next: c.value.count > 0 && r.instance !== 0
8183
- })), L = K(() => (H) => r.hideOffsetDates ? H.current : !0), C = async (H, ae) => {
8183
+ })), Y = K(() => (H) => r.hideOffsetDates ? H.current : !0), C = async (H, ae) => {
8184
8184
  const { width: y, height: Q } = H.getBoundingClientRect();
8185
8185
  f.value = ae.value;
8186
8186
  let re = { left: `${y / 2}px` }, U = -50;
8187
- if (await Ze(), Y.value[0]) {
8188
- const { left: Me, width: N } = Y.value[0].getBoundingClientRect();
8187
+ if (await Ze(), L.value[0]) {
8188
+ const { left: Me, width: N } = L.value[0].getBoundingClientRect();
8189
8189
  Me < 0 && (re = { left: "0" }, U = 0, J.value.left = `${y / 2}px`), window.innerWidth < Me + N && (re = { right: "0" }, U = 0, J.value.left = `${N - y / 2}px`);
8190
8190
  }
8191
8191
  k.value = {
@@ -8303,7 +8303,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8303
8303
  h("div", {
8304
8304
  class: he(["dp__cell_inner", re.classData])
8305
8305
  }, [
8306
- H.$slots.day && L.value(re) ? ie(H.$slots, "day", {
8306
+ H.$slots.day && Y.value(re) ? ie(H.$slots, "day", {
8307
8307
  key: 0,
8308
8308
  day: +re.text,
8309
8309
  date: re.value
@@ -8311,7 +8311,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8311
8311
  H.$slots.day ? q("", !0) : (p(), D(ke, { key: 1 }, [
8312
8312
  rt(we(re.text), 1)
8313
8313
  ], 64)),
8314
- re.marker && L.value(re) ? (p(), D(ke, { key: 2 }, [
8314
+ re.marker && Y.value(re) ? (p(), D(ke, { key: 2 }, [
8315
8315
  H.$slots.marker ? ie(H.$slots, "marker", {
8316
8316
  key: 0,
8317
8317
  marker: re.marker,
@@ -8327,7 +8327,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8327
8327
  key: 3,
8328
8328
  ref_for: !0,
8329
8329
  ref_key: "activeTooltip",
8330
- ref: Y,
8330
+ ref: L,
8331
8331
  class: "dp__marker_tooltip",
8332
8332
  style: wt(k.value)
8333
8333
  }, [
@@ -8379,13 +8379,13 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8379
8379
  defaultedTz: M,
8380
8380
  propDates: g,
8381
8381
  defaultedMultiDates: w
8382
- } = qe(e), { validateMonthYearInRange: x, isDisabled: Y, isDateRangeAllowed: J, checkMinMaxRange: V } = an(e), { updateTimeValues: T, getSetDateTime: O, setTime: P, assignStartTime: I, validateTime: Z, disabledTimesConfig: ce } = dl(e, u, i, a), pe = K(
8382
+ } = qe(e), { validateMonthYearInRange: x, isDisabled: L, isDateRangeAllowed: J, checkMinMaxRange: V } = an(e), { updateTimeValues: T, getSetDateTime: O, setTime: P, assignStartTime: I, validateTime: Z, disabledTimesConfig: ce } = dl(e, u, i, a), pe = K(
8383
8383
  () => (R) => c.value[R] ? c.value[R].month : 0
8384
8384
  ), S = K(
8385
8385
  () => (R) => c.value[R] ? c.value[R].year : 0
8386
- ), L = (R) => !_.value.keepViewOnOffsetClick || R ? !0 : !s.value, C = (R, se, j, oe = !1) => {
8386
+ ), Y = (R) => !_.value.keepViewOnOffsetClick || R ? !0 : !s.value, C = (R, se, j, oe = !1) => {
8387
8387
  var me, ut;
8388
- L(oe) && (c.value[R] || (c.value[R] = { month: 0, year: 0 }), c.value[R].month = bo(se) ? (me = c.value[R]) == null ? void 0 : me.month : se, c.value[R].year = bo(j) ? (ut = c.value[R]) == null ? void 0 : ut.year : j);
8388
+ Y(oe) && (c.value[R] || (c.value[R] = { month: 0, year: 0 }), c.value[R].month = bo(se) ? (me = c.value[R]) == null ? void 0 : me.month : se, c.value[R].year = bo(j) ? (ut = c.value[R]) == null ? void 0 : ut.year : j);
8389
8389
  }, z = () => {
8390
8390
  e.autoApply && n("select-date");
8391
8391
  };
@@ -8522,7 +8522,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8522
8522
  n("date-update", se), w.value.enabled ? Ir(se, i, w.value.limit) : i.value = se, a(), Ze().then(() => {
8523
8523
  X();
8524
8524
  });
8525
- }, Te = (R) => k.value.noDisabledRange ? Zs(r.value[0], R).some((se) => Y(se)) : !1, xt = () => {
8525
+ }, Te = (R) => k.value.noDisabledRange ? Zs(r.value[0], R).some((se) => L(se)) : !1, xt = () => {
8526
8526
  r.value = i.value ? i.value.slice() : [], r.value.length === 2 && !(k.value.fixedStart || k.value.fixedEnd) && (r.value = []);
8527
8527
  }, be = (R, se) => {
8528
8528
  const j = [
@@ -8560,7 +8560,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8560
8560
  }, oa = () => {
8561
8561
  r.value.length && (r.value[0] && !r.value[1] ? Nn(0) : (Nn(0), Nn(1), a()), Ra(), i.value = r.value.slice(), Oa(r.value, n, e.autoApply, e.modelAuto));
8562
8562
  }, Na = (R, se = !1) => {
8563
- if (Y(R.value) || !R.current && e.hideOffsetDates) return n("invalid-date", R.value);
8563
+ if (L(R.value) || !R.current && e.hideOffsetDates) return n("invalid-date", R.value);
8564
8564
  if (s.value = JSON.parse(JSON.stringify(R)), !k.value.enabled) return ve(R);
8565
8565
  Do(u.hours) && Do(u.minutes) && !w.value.enabled && (Rn(R, se), oa());
8566
8566
  }, Ba = (R, se) => {
@@ -8658,11 +8658,11 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8658
8658
  handleSwipe: g,
8659
8659
  selectDate: w,
8660
8660
  updateMonthYear: x,
8661
- presetDate: Y,
8661
+ presetDate: L,
8662
8662
  selectCurrentDate: J,
8663
8663
  updateTime: V,
8664
8664
  assignMonthAndYear: T
8665
- } = Wf(r, a, de, G), O = pn(), { setHoverDate: P, getDayClassData: I, clearHoverDate: Z } = l0(i, r), { defaultedMultiCalendars: ce } = qe(r), pe = F([]), S = F([]), L = F(null), C = bt(O, "calendar"), z = bt(O, "monthYear"), le = bt(O, "timePicker"), X = (ae) => {
8665
+ } = Wf(r, a, de, G), O = pn(), { setHoverDate: P, getDayClassData: I, clearHoverDate: Z } = l0(i, r), { defaultedMultiCalendars: ce } = qe(r), pe = F([]), S = F([]), Y = F(null), C = bt(O, "calendar"), z = bt(O, "monthYear"), le = bt(O, "timePicker"), X = (ae) => {
8666
8666
  r.shadow || a("mount", ae);
8667
8667
  };
8668
8668
  Ie(
@@ -8701,7 +8701,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8701
8701
  (re = pe.value[Q]) == null || re.toggleYearPicker(ae, y);
8702
8702
  }, te = (ae, y, Q) => {
8703
8703
  var re;
8704
- (re = L.value) == null || re.toggleTimePicker(ae, y, Q);
8704
+ (re = Y.value) == null || re.toggleTimePicker(ae, y, Q);
8705
8705
  }, A = (ae, y) => {
8706
8706
  var Q;
8707
8707
  if (!r.range) {
@@ -8725,7 +8725,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8725
8725
  };
8726
8726
  return n({
8727
8727
  clearHoverDate: Z,
8728
- presetDate: Y,
8728
+ presetDate: L,
8729
8729
  selectCurrentDate: J,
8730
8730
  toggleMonthPicker: v,
8731
8731
  toggleYearPicker: E,
@@ -8740,7 +8740,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8740
8740
  updateTime: V,
8741
8741
  updateMonthYear: x,
8742
8742
  selectDate: w,
8743
- presetDate: Y
8743
+ presetDate: L
8744
8744
  }),
8745
8745
  changeMonth: ue,
8746
8746
  changeYear: _e,
@@ -8808,7 +8808,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8808
8808
  ae.$slots["time-picker"] ? ie(ae.$slots, "time-picker", tt(et({ key: 0 }, { time: b(c), updateTime: b(V) }))) : (p(), De(ul, et({
8809
8809
  key: 1,
8810
8810
  ref_key: "timePickerRef",
8811
- ref: L
8811
+ ref: Y
8812
8812
  }, ae.$props, {
8813
8813
  hours: b(c).hours,
8814
8814
  minutes: b(c).minutes,
@@ -8844,7 +8844,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8844
8844
  propDates: l,
8845
8845
  defaultedFilters: i,
8846
8846
  defaultedMultiDates: c
8847
- } = qe(e), { modelValue: u, year: d, month: m, calendars: f } = aa(e, n), { isDisabled: k } = an(e), { selectYear: _, groupedYears: M, showYearPicker: g, isDisabled: w, toggleYearPicker: x, handleYearSelect: Y, handleYear: J } = il({
8847
+ } = qe(e), { modelValue: u, year: d, month: m, calendars: f } = aa(e, n), { isDisabled: k } = an(e), { selectYear: _, groupedYears: M, showYearPicker: g, isDisabled: w, toggleYearPicker: x, handleYearSelect: L, handleYear: J } = il({
8848
8848
  modelValue: u,
8849
8849
  multiCalendars: a,
8850
8850
  range: s,
@@ -8856,17 +8856,17 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8856
8856
  filters: i,
8857
8857
  props: e,
8858
8858
  emit: n
8859
- }), V = (L, C) => [L, C].map((z) => It(z, "MMMM", { locale: e.formatLocale })).join("-"), T = K(() => (L) => u.value ? Array.isArray(u.value) ? u.value.some((C) => yo(L, C)) : yo(u.value, L) : !1), O = (L) => {
8859
+ }), V = (Y, C) => [Y, C].map((z) => It(z, "MMMM", { locale: e.formatLocale })).join("-"), T = K(() => (Y) => u.value ? Array.isArray(u.value) ? u.value.some((C) => yo(Y, C)) : yo(u.value, Y) : !1), O = (Y) => {
8860
8860
  if (s.value.enabled) {
8861
8861
  if (Array.isArray(u.value)) {
8862
- const C = Se(L, u.value[0]) || Se(L, u.value[1]);
8863
- return Ca(u.value, t.value, L) && !C;
8862
+ const C = Se(Y, u.value[0]) || Se(Y, u.value[1]);
8863
+ return Ca(u.value, t.value, Y) && !C;
8864
8864
  }
8865
8865
  return !1;
8866
8866
  }
8867
8867
  return !1;
8868
- }, P = (L, C) => L.quarter === co(C) && L.year === xe(C), I = (L) => typeof o.value == "function" ? o.value({ quarter: co(L), year: xe(L) }) : !!o.value.quarters.find((C) => P(C, L)), Z = K(() => (L) => {
8869
- const C = Ne(/* @__PURE__ */ new Date(), { year: d.value(L) });
8868
+ }, P = (Y, C) => Y.quarter === co(C) && Y.year === xe(C), I = (Y) => typeof o.value == "function" ? o.value({ quarter: co(Y), year: xe(Y) }) : !!o.value.quarters.find((C) => P(C, Y)), Z = K(() => (Y) => {
8869
+ const C = Ne(/* @__PURE__ */ new Date(), { year: d.value(Y) });
8870
8870
  return Dd({
8871
8871
  start: Un(C),
8872
8872
  end: Os(C)
@@ -8881,12 +8881,12 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8881
8881
  isBetween: de
8882
8882
  };
8883
8883
  });
8884
- }), ce = (L) => {
8885
- Ir(L, u, c.value.limit), n("auto-apply", !0);
8886
- }, pe = (L) => {
8887
- u.value = qr(u, L, n), Oa(u.value, n, e.autoApply, e.modelAuto);
8888
- }, S = (L) => {
8889
- u.value = L, n("auto-apply");
8884
+ }), ce = (Y) => {
8885
+ Ir(Y, u, c.value.limit), n("auto-apply", !0);
8886
+ }, pe = (Y) => {
8887
+ u.value = qr(u, Y, n), Oa(u.value, n, e.autoApply, e.modelAuto);
8888
+ }, S = (Y) => {
8889
+ u.value = Y, n("auto-apply");
8890
8890
  };
8891
8891
  return {
8892
8892
  defaultedConfig: r,
@@ -8897,16 +8897,16 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8897
8897
  quarters: Z,
8898
8898
  showYearPicker: g,
8899
8899
  modelValue: u,
8900
- setHoverDate: (L) => {
8901
- t.value = L;
8900
+ setHoverDate: (Y) => {
8901
+ t.value = Y;
8902
8902
  },
8903
8903
  selectYear: _,
8904
- selectQuarter: (L, C, z) => {
8904
+ selectQuarter: (Y, C, z) => {
8905
8905
  if (!z)
8906
- return f.value[C].month = Pe(mo(L)), c.value.enabled ? ce(L) : s.value.enabled ? pe(L) : S(L);
8906
+ return f.value[C].month = Pe(mo(Y)), c.value.enabled ? ce(Y) : s.value.enabled ? pe(Y) : S(Y);
8907
8907
  },
8908
8908
  toggleYearPicker: x,
8909
- handleYearSelect: Y,
8909
+ handleYearSelect: L,
8910
8910
  handleYear: J
8911
8911
  };
8912
8912
  }, Xf = { class: "dp--quarter-items" }, Qf = ["data-test", "disabled", "onClick", "onMouseover"], Gf = /* @__PURE__ */ nt({
@@ -8949,9 +8949,9 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8949
8949
  selectQuarter: M,
8950
8950
  handleYearSelect: w,
8951
8951
  handleYear: x
8952
- }) }), (Y, J) => (p(), De(Sa, {
8952
+ }) }), (L, J) => (p(), De(Sa, {
8953
8953
  "multi-calendars": b(l).count,
8954
- collapse: Y.collapse,
8954
+ collapse: L.collapse,
8955
8955
  stretch: ""
8956
8956
  }, {
8957
8957
  default: ye(({ instance: V }) => [
@@ -8959,12 +8959,12 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8959
8959
  class: "dp-quarter-picker-wrap",
8960
8960
  style: wt({ minHeight: `${b(i).modeHeight}px` })
8961
8961
  }, [
8962
- Y.$slots["top-extra"] ? ie(Y.$slots, "top-extra", {
8962
+ L.$slots["top-extra"] ? ie(L.$slots, "top-extra", {
8963
8963
  key: 0,
8964
- value: Y.internalModelValue
8964
+ value: L.internalModelValue
8965
8965
  }) : q("", !0),
8966
8966
  h("div", null, [
8967
- Be(ol, et(Y.$props, {
8967
+ Be(ol, et(L.$props, {
8968
8968
  items: b(c)(V),
8969
8969
  instance: V,
8970
8970
  "show-year-picker": b(k)[V],
@@ -8977,7 +8977,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8977
8977
  Ce(b(s), (T, O) => ({
8978
8978
  name: T,
8979
8979
  fn: ye((P) => [
8980
- ie(Y.$slots, T, tt(ht(P)))
8980
+ ie(L.$slots, T, tt(ht(P)))
8981
8981
  ])
8982
8982
  }))
8983
8983
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
@@ -8997,7 +8997,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8997
8997
  onClick: (P) => b(M)(T.value, V, T.disabled),
8998
8998
  onMouseover: (P) => b(_)(T.value)
8999
8999
  }, [
9000
- Y.$slots.quarter ? ie(Y.$slots, "quarter", {
9000
+ L.$slots.quarter ? ie(L.$slots, "quarter", {
9001
9001
  key: 0,
9002
9002
  value: T.value,
9003
9003
  text: T.text
@@ -9078,7 +9078,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9078
9078
  }), { setMenuFocused: l, setShiftKey: i, control: c } = rl(), u = pn(), { defaultedTextInput: d, defaultedInline: m, defaultedConfig: f, defaultedUI: k } = qe(r), _ = F(null), M = F(0), g = F(null), w = F(!1), x = F(null);
9079
9079
  Ye(() => {
9080
9080
  if (!r.shadow) {
9081
- w.value = !0, Y(), window.addEventListener("resize", Y);
9081
+ w.value = !0, L(), window.addEventListener("resize", L);
9082
9082
  const N = Ke(o);
9083
9083
  if (N && !d.value.enabled && !m.value.enabled && (l(!0), C()), N) {
9084
9084
  const ne = (ve) => {
@@ -9088,12 +9088,12 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9088
9088
  }
9089
9089
  }
9090
9090
  }), Kn(() => {
9091
- window.removeEventListener("resize", Y);
9091
+ window.removeEventListener("resize", L);
9092
9092
  });
9093
- const Y = () => {
9093
+ const L = () => {
9094
9094
  const N = Ke(g);
9095
9095
  N && (M.value = N.getBoundingClientRect().width);
9096
- }, { arrowRight: J, arrowLeft: V, arrowDown: T, arrowUp: O } = nn(), { flowStep: P, updateFlowStep: I, childMount: Z, resetFlow: ce, handleFlow: pe } = i0(r, a, x), S = K(() => r.monthPicker ? vf : r.yearPicker ? yf : r.timePicker ? Sf : r.quarterPicker ? Gf : zf), L = K(() => {
9096
+ }, { arrowRight: J, arrowLeft: V, arrowDown: T, arrowUp: O } = nn(), { flowStep: P, updateFlowStep: I, childMount: Z, resetFlow: ce, handleFlow: pe } = i0(r, a, x), S = K(() => r.monthPicker ? vf : r.yearPicker ? yf : r.timePicker ? Sf : r.quarterPicker ? Gf : zf), Y = K(() => {
9097
9097
  var N;
9098
9098
  if (f.value.arrowLeft) return f.value.arrowLeft;
9099
9099
  const ne = (N = o.value) == null ? void 0 : N.getBoundingClientRect(), ve = r.getInputRect();
@@ -9188,7 +9188,7 @@ const yr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9188
9188
  role: b(m).enabled ? void 0 : "dialog",
9189
9189
  "aria-label": (ve = N.ariaLabels) == null ? void 0 : ve.menu,
9190
9190
  class: he(B.value),
9191
- style: wt({ "--dp-arrow-left": L.value }),
9191
+ style: wt({ "--dp-arrow-left": Y.value }),
9192
9192
  onMouseleave: Q,
9193
9193
  onClick: v,
9194
9194
  onKeydown: Me
@@ -9352,14 +9352,14 @@ const r0 = ({
9352
9352
  return { top: +X, left: +$, width: z, height: le };
9353
9353
  }, x = () => {
9354
9354
  d.value.left = "50%", d.value.top = "50%", d.value.transform = "translate(-50%, -50%)", d.value.position = "fixed", delete d.value.opacity;
9355
- }, Y = () => {
9355
+ }, L = () => {
9356
9356
  const C = Ke(t), { top: z, left: le, transform: X } = s.altPosition(C);
9357
9357
  d.value = { top: `${z}px`, left: `${le}px`, transform: X ?? "" };
9358
9358
  }, J = (C = !0) => {
9359
9359
  var z;
9360
9360
  if (!r.value.enabled) {
9361
9361
  if (f.value) return x();
9362
- if (s.altPosition !== null) return Y();
9362
+ if (s.altPosition !== null) return L();
9363
9363
  if (C) {
9364
9364
  const le = s.teleport ? (z = n.value) == null ? void 0 : z.$el : e.value;
9365
9365
  le && (c.value = le.getBoundingClientRect()), o("recalculate-position");
@@ -9408,7 +9408,7 @@ const r0 = ({
9408
9408
  return !C || C === document.body || C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : pe(C) ? C : S(
9409
9409
  C.assignedSlot && i.value.shadowDom ? C.assignedSlot.parentNode : C.parentNode
9410
9410
  );
9411
- }, L = (C) => {
9411
+ }, Y = (C) => {
9412
9412
  if (C)
9413
9413
  switch (s.position) {
9414
9414
  case _n.left:
@@ -9432,7 +9432,7 @@ const r0 = ({
9432
9432
  de.setAttribute("id", "dp--temp-container");
9433
9433
  const B = (X = a.value) != null && X.clientWidth ? a.value : document.body;
9434
9434
  B.append(de);
9435
- const v = L(G), E = i.value.shadowDom ? Object.keys(l).filter(
9435
+ const v = Y(G), E = i.value.shadowDom ? Object.keys(l).filter(
9436
9436
  (A) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(A)
9437
9437
  ) : Object.keys(l), te = Sl(
9438
9438
  C,
@@ -9577,7 +9577,7 @@ const r0 = ({
9577
9577
  return E ? Ue(e.value[0], v.value) && te : Ve(e.value[0], v.value) && te;
9578
9578
  }
9579
9579
  return !1;
9580
- }, x = (v) => !e.value || n.hideOffsetDates && !v.current ? !1 : i.value.enabled ? n.modelAuto && Array.isArray(e.value) ? Se(v.value, e.value[0] ? e.value[0] : d.value) : !1 : a.value.enabled && Array.isArray(e.value) ? e.value.some((E) => Se(E, v.value)) : Se(v.value, e.value ? e.value : d.value), Y = (v) => {
9580
+ }, x = (v) => !e.value || n.hideOffsetDates && !v.current ? !1 : i.value.enabled ? n.modelAuto && Array.isArray(e.value) ? Se(v.value, e.value[0] ? e.value[0] : d.value) : !1 : a.value.enabled && Array.isArray(e.value) ? e.value.some((E) => Se(E, v.value)) : Se(v.value, e.value ? e.value : d.value), L = (v) => {
9581
9581
  if (i.value.autoRange || n.weekPicker) {
9582
9582
  if (u.value) {
9583
9583
  if (n.hideOffsetDates && !v.current) return !1;
@@ -9618,13 +9618,13 @@ const r0 = ({
9618
9618
  }, S = (v) => {
9619
9619
  var E;
9620
9620
  return typeof o.value == "function" ? o.value(v.value) : (E = o.value.weekdays) == null ? void 0 : E.includes(v.value.getDay());
9621
- }, L = (v) => (i.value.enabled || n.weekPicker) && (!(t.value.count > 0) || v.current) && P() && !(!v.current && n.hideOffsetDates) && !x(v) ? T(v) : !1, C = (v) => {
9621
+ }, Y = (v) => (i.value.enabled || n.weekPicker) && (!(t.value.count > 0) || v.current) && P() && !(!v.current && n.hideOffsetDates) && !x(v) ? T(v) : !1, C = (v) => {
9622
9622
  const { isRangeStart: E, isRangeEnd: te } = $(v), A = i.value.enabled ? E || te : !1;
9623
9623
  return {
9624
9624
  dp__cell_offset: !v.current,
9625
9625
  dp__pointer: !n.disabled && !(!v.current && n.hideOffsetDates) && !c(v.value),
9626
9626
  dp__cell_disabled: c(v.value),
9627
- dp__cell_highlight: !pe(v) && (ce(v) || S(v)) && !Z(v) && !A && !V(v) && !(L(v) && n.weekPicker) && !te,
9627
+ dp__cell_highlight: !pe(v) && (ce(v) || S(v)) && !Z(v) && !A && !V(v) && !(Y(v) && n.weekPicker) && !te,
9628
9628
  dp__cell_highlight_active: !pe(v) && (ce(v) || S(v)) && Z(v),
9629
9629
  dp__today: !n.noToday && Se(v.value, d.value) && v.current,
9630
9630
  "dp--past": Ve(v.value, d.value),
@@ -9668,7 +9668,7 @@ const r0 = ({
9668
9668
  return {
9669
9669
  dp__range_start: E,
9670
9670
  dp__range_end: te,
9671
- dp__range_between: L(v),
9671
+ dp__range_between: Y(v),
9672
9672
  dp__date_hover: Se(v.value, u.value) && !E && !te && !n.weekPicker,
9673
9673
  dp__date_hover_start: w(v, !0),
9674
9674
  dp__date_hover_end: w(v, !1)
@@ -9677,7 +9677,7 @@ const r0 = ({
9677
9677
  ...de(v),
9678
9678
  dp__cell_auto_range: J(v),
9679
9679
  dp__cell_auto_range_start: V(v),
9680
- dp__cell_auto_range_end: Y(v)
9680
+ dp__cell_auto_range_end: L(v)
9681
9681
  }), B = (v) => i.value.enabled ? i.value.autoRange ? G(v) : n.modelAuto ? { ...z(v), ...de(v) } : n.weekPicker ? X(v) : de(v) : n.weekPicker ? le(v) : z(v);
9682
9682
  return {
9683
9683
  setHoverDate: m,
@@ -9691,60 +9691,60 @@ const r0 = ({
9691
9691
  };
9692
9692
  }, an = (e) => {
9693
9693
  const { defaultedFilters: n, defaultedRange: t, propDates: a, defaultedMultiDates: r } = qe(e), o = (S) => a.value.disabledDates ? typeof a.value.disabledDates == "function" ? a.value.disabledDates(ee(S)) : !!ga(S, a.value.disabledDates) : !1, s = (S) => a.value.maxDate ? e.yearPicker ? xe(S) > xe(a.value.maxDate) : Ue(S, a.value.maxDate) : !1, l = (S) => a.value.minDate ? e.yearPicker ? xe(S) < xe(a.value.minDate) : Ve(S, a.value.minDate) : !1, i = (S) => {
9694
- const L = s(S), C = l(S), z = o(S), le = n.value.months.map((B) => +B).includes(Pe(S)), X = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === wc(S)) : !1, $ = f(S), de = xe(S), G = de < +e.yearRange[0] || de > +e.yearRange[1];
9695
- return !(L || C || z || le || G || X || $);
9696
- }, c = (S, L) => Ve(...Qt(a.value.minDate, S, L)) || Se(...Qt(a.value.minDate, S, L)), u = (S, L) => Ue(...Qt(a.value.maxDate, S, L)) || Se(...Qt(a.value.maxDate, S, L)), d = (S, L, C) => {
9694
+ const Y = s(S), C = l(S), z = o(S), le = n.value.months.map((B) => +B).includes(Pe(S)), X = e.disabledWeekDays.length ? e.disabledWeekDays.some((B) => +B === wc(S)) : !1, $ = f(S), de = xe(S), G = de < +e.yearRange[0] || de > +e.yearRange[1];
9695
+ return !(Y || C || z || le || G || X || $);
9696
+ }, c = (S, Y) => Ve(...Qt(a.value.minDate, S, Y)) || Se(...Qt(a.value.minDate, S, Y)), u = (S, Y) => Ue(...Qt(a.value.maxDate, S, Y)) || Se(...Qt(a.value.maxDate, S, Y)), d = (S, Y, C) => {
9697
9697
  let z = !1;
9698
- return a.value.maxDate && C && u(S, L) && (z = !0), a.value.minDate && !C && c(S, L) && (z = !0), z;
9699
- }, m = (S, L, C, z) => {
9698
+ return a.value.maxDate && C && u(S, Y) && (z = !0), a.value.minDate && !C && c(S, Y) && (z = !0), z;
9699
+ }, m = (S, Y, C, z) => {
9700
9700
  let le = !1;
9701
- return z && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? le = d(S, L, C) : (a.value.minDate && c(S, L) || a.value.maxDate && u(S, L)) && (le = !0) : le = !0, le;
9702
- }, f = (S) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !ga(S, a.value.allowedDates) : !1, k = (S) => !i(S), _ = (S) => t.value.noDisabledRange ? !Ss({ start: S[0], end: S[1] }).some((L) => k(L)) : !0, M = (S) => {
9701
+ return z && (a.value.minDate || a.value.maxDate) ? a.value.minDate && a.value.maxDate ? le = d(S, Y, C) : (a.value.minDate && c(S, Y) || a.value.maxDate && u(S, Y)) && (le = !0) : le = !0, le;
9702
+ }, f = (S) => Array.isArray(a.value.allowedDates) && !a.value.allowedDates.length ? !0 : a.value.allowedDates ? !ga(S, a.value.allowedDates) : !1, k = (S) => !i(S), _ = (S) => t.value.noDisabledRange ? !Ss({ start: S[0], end: S[1] }).some((Y) => k(Y)) : !0, M = (S) => {
9703
9703
  if (S) {
9704
- const L = xe(S);
9705
- return L >= +e.yearRange[0] && L <= e.yearRange[1];
9704
+ const Y = xe(S);
9705
+ return Y >= +e.yearRange[0] && Y <= e.yearRange[1];
9706
9706
  }
9707
9707
  return !0;
9708
- }, g = (S, L) => !!(Array.isArray(S) && S[L] && (t.value.maxRange || t.value.minRange) && M(S[L])), w = (S, L, C = 0) => {
9709
- if (g(L, C) && M(S)) {
9710
- const z = Cs(S, L[C]), le = Zs(L[C], S), X = le.length === 1 ? 0 : le.filter((de) => k(de)).length, $ = Math.abs(z) - (t.value.minMaxRawRange ? 0 : X);
9708
+ }, g = (S, Y) => !!(Array.isArray(S) && S[Y] && (t.value.maxRange || t.value.minRange) && M(S[Y])), w = (S, Y, C = 0) => {
9709
+ if (g(Y, C) && M(S)) {
9710
+ const z = Cs(S, Y[C]), le = Zs(Y[C], S), X = le.length === 1 ? 0 : le.filter((de) => k(de)).length, $ = Math.abs(z) - (t.value.minMaxRawRange ? 0 : X);
9711
9711
  if (t.value.minRange && t.value.maxRange)
9712
9712
  return $ >= +t.value.minRange && $ <= +t.value.maxRange;
9713
9713
  if (t.value.minRange) return $ >= +t.value.minRange;
9714
9714
  if (t.value.maxRange) return $ <= +t.value.maxRange;
9715
9715
  }
9716
9716
  return !0;
9717
- }, x = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, Y = (S) => Array.isArray(S) ? [S[0] ? Ja(S[0]) : null, S[1] ? Ja(S[1]) : null] : Ja(S), J = (S, L, C) => S.find(
9718
- (z) => +z.hours === Vt(L) && z.minutes === "*" ? !0 : +z.minutes === tn(L) && +z.hours === Vt(L)
9719
- ) && C, V = (S, L, C) => {
9720
- const [z, le] = S, [X, $] = L;
9717
+ }, x = () => !e.enableTimePicker || e.monthPicker || e.yearPicker || e.ignoreTimeValidation, L = (S) => Array.isArray(S) ? [S[0] ? Ja(S[0]) : null, S[1] ? Ja(S[1]) : null] : Ja(S), J = (S, Y, C) => S.find(
9718
+ (z) => +z.hours === Vt(Y) && z.minutes === "*" ? !0 : +z.minutes === tn(Y) && +z.hours === Vt(Y)
9719
+ ) && C, V = (S, Y, C) => {
9720
+ const [z, le] = S, [X, $] = Y;
9721
9721
  return !J(z, X, C) && !J(le, $, C) && C;
9722
- }, T = (S, L) => {
9723
- const C = Array.isArray(L) ? L : [L];
9722
+ }, T = (S, Y) => {
9723
+ const C = Array.isArray(Y) ? Y : [Y];
9724
9724
  return Array.isArray(e.disabledTimes) ? Array.isArray(e.disabledTimes[0]) ? V(e.disabledTimes, C, S) : !C.some((z) => J(e.disabledTimes, z, S)) : S;
9725
- }, O = (S, L) => {
9726
- const C = Array.isArray(L) ? [fn(L[0]), L[1] ? fn(L[1]) : void 0] : fn(L), z = !e.disabledTimes(C);
9725
+ }, O = (S, Y) => {
9726
+ const C = Array.isArray(Y) ? [fn(Y[0]), Y[1] ? fn(Y[1]) : void 0] : fn(Y), z = !e.disabledTimes(C);
9727
9727
  return S && z;
9728
- }, P = (S, L) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? T(L, S) : O(L, S) : L, I = (S) => {
9729
- let L = !0;
9728
+ }, P = (S, Y) => e.disabledTimes ? Array.isArray(e.disabledTimes) ? T(Y, S) : O(Y, S) : Y, I = (S) => {
9729
+ let Y = !0;
9730
9730
  if (!S || x()) return !0;
9731
- const C = !a.value.minDate && !a.value.maxDate ? Y(S) : S;
9732
- return (e.maxTime || a.value.maxDate) && (L = xo(
9731
+ const C = !a.value.minDate && !a.value.maxDate ? L(S) : S;
9732
+ return (e.maxTime || a.value.maxDate) && (Y = xo(
9733
9733
  e.maxTime,
9734
9734
  a.value.maxDate,
9735
9735
  "max",
9736
9736
  Je(C),
9737
- L
9738
- )), (e.minTime || a.value.minDate) && (L = xo(
9737
+ Y
9738
+ )), (e.minTime || a.value.minDate) && (Y = xo(
9739
9739
  e.minTime,
9740
9740
  a.value.minDate,
9741
9741
  "min",
9742
9742
  Je(C),
9743
- L
9744
- )), P(S, L);
9743
+ Y
9744
+ )), P(S, Y);
9745
9745
  }, Z = (S) => {
9746
9746
  if (!e.monthPicker) return !0;
9747
- let L = !0;
9747
+ let Y = !0;
9748
9748
  const C = ee(Ct(S));
9749
9749
  if (a.value.minDate && a.value.maxDate) {
9750
9750
  const z = ee(Ct(a.value.minDate)), le = ee(Ct(a.value.maxDate));
@@ -9752,14 +9752,14 @@ const r0 = ({
9752
9752
  }
9753
9753
  if (a.value.minDate) {
9754
9754
  const z = ee(Ct(a.value.minDate));
9755
- L = Ue(C, z) || Se(C, z);
9755
+ Y = Ue(C, z) || Se(C, z);
9756
9756
  }
9757
9757
  if (a.value.maxDate) {
9758
9758
  const z = ee(Ct(a.value.maxDate));
9759
- L = Ve(C, z) || Se(C, z);
9759
+ Y = Ve(C, z) || Se(C, z);
9760
9760
  }
9761
- return L;
9762
- }, ce = K(() => (S) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : I(S)), pe = K(() => (S) => e.monthPicker ? Array.isArray(S) && (t.value.enabled || r.value.enabled) ? !S.filter((L) => !Z(L)).length : Z(S) : !0);
9761
+ return Y;
9762
+ }, ce = K(() => (S) => !e.enableTimePicker || e.ignoreTimeValidation ? !0 : I(S)), pe = K(() => (S) => e.monthPicker ? Array.isArray(S) && (t.value.enabled || r.value.enabled) ? !S.filter((Y) => !Z(Y)).length : Z(S) : !0);
9763
9763
  return {
9764
9764
  isDisabled: k,
9765
9765
  validateDate: i,
@@ -9853,7 +9853,7 @@ const r0 = ({
9853
9853
  dp__input_reg: !o.value.enabled,
9854
9854
  ...d.value.input ?? {}
9855
9855
  })
9856
- ), Y = () => {
9856
+ ), L = () => {
9857
9857
  a("set-input-date", null), r.clearable && r.autoApply && (a("set-empty-date"), _.value = null);
9858
9858
  }, J = ($) => {
9859
9859
  const de = f();
@@ -9886,7 +9886,7 @@ const r0 = ({
9886
9886
  }, P = ($) => {
9887
9887
  var de;
9888
9888
  const G = typeof $ == "string" ? $ : (de = $.target) == null ? void 0 : de.value;
9889
- G !== "" ? (o.value.openMenu && !r.isMenuOpen && a("open"), O(G), a("set-input-date", _.value)) : Y(), w.value = !1, a("update:input-value", G), a("text-input", $, _.value);
9889
+ G !== "" ? (o.value.openMenu && !r.isMenuOpen && a("open"), O(G), a("set-input-date", _.value)) : L(), w.value = !1, a("update:input-value", G), a("text-input", $, _.value);
9890
9890
  }, I = ($) => {
9891
9891
  o.value.enabled ? (O($.target.value), o.value.enterSubmit && gr(_.value) && r.inputValue !== "" ? (a("set-input-date", _.value, !0), _.value = null) : o.value.enterSubmit && r.inputValue === "" && (_.value = null, a("clear"))) : pe($);
9892
9892
  }, Z = ($, de) => {
@@ -9903,7 +9903,7 @@ const r0 = ({
9903
9903
  } else o.value.enabled || a("toggle");
9904
9904
  }, S = () => {
9905
9905
  a("real-blur"), g.value = !1, (!r.isMenuOpen || l.value.enabled && l.value.input) && a("blur"), r.autoApply && o.value.enabled && _.value && !r.isMenuOpen && (a("set-input-date", _.value), a("select-date"), _.value = null);
9906
- }, L = ($) => {
9906
+ }, Y = ($) => {
9907
9907
  Zt($, i.value, !0), a("clear");
9908
9908
  }, C = ($) => {
9909
9909
  if ($.key === "Tab" && Z($), $.key === "Enter" && I($), !o.value.enabled) {
@@ -9933,7 +9933,7 @@ const r0 = ({
9933
9933
  onInput: P,
9934
9934
  onEnter: I,
9935
9935
  onTab: Z,
9936
- onClear: L,
9936
+ onClear: Y,
9937
9937
  onBlur: S,
9938
9938
  onKeypress: C,
9939
9939
  onPaste: T,
@@ -9985,15 +9985,15 @@ const r0 = ({
9985
9985
  }, null, 8, ["aria-label"])) : q("", !0)
9986
9986
  ]),
9987
9987
  $.$slots["clear-icon"] && e.inputValue && $.clearable && !$.disabled && !$.readonly ? (p(), D("span", c0, [
9988
- ie($.$slots, "clear-icon", { clear: L })
9988
+ ie($.$slots, "clear-icon", { clear: Y })
9989
9989
  ])) : q("", !0),
9990
9990
  $.clearable && !$.$slots["clear-icon"] && e.inputValue && !$.disabled && !$.readonly ? (p(), D("button", {
9991
9991
  key: 3,
9992
9992
  "aria-label": (v = b(s)) == null ? void 0 : v.clearInput,
9993
9993
  class: "dp--clear-btn",
9994
9994
  type: "button",
9995
- onKeydown: de[4] || (de[4] = (E) => b(ct)(E, () => L(E), !0, X)),
9996
- onClick: de[5] || (de[5] = Gt((E) => L(E), ["prevent"]))
9995
+ onKeydown: de[4] || (de[4] = (E) => b(ct)(E, () => Y(E), !0, X)),
9996
+ onClick: de[5] || (de[5] = Gt((E) => Y(E), ["prevent"]))
9997
9997
  }, [
9998
9998
  Be(b(js), {
9999
9999
  class: "dp__input_icons",
@@ -10062,7 +10062,7 @@ const r0 = ({
10062
10062
  "text-input"
10063
10063
  ],
10064
10064
  setup(e, { expose: n, emit: t }) {
10065
- const a = t, r = e, o = pn(), s = F(!1), l = jn(r, "modelValue"), i = jn(r, "timezone"), c = F(null), u = F(null), d = F(null), m = F(!1), f = F(null), k = F(!1), _ = F(!1), M = F(!1), g = F(!1), { setMenuFocused: w, setShiftKey: x } = rl(), { clearArrowNav: Y } = nn(), { validateDate: J, isValidTime: V } = an(r), {
10065
+ const a = t, r = e, o = pn(), s = F(!1), l = jn(r, "modelValue"), i = jn(r, "timezone"), c = F(null), u = F(null), d = F(null), m = F(!1), f = F(null), k = F(!1), _ = F(!1), M = F(!1), g = F(!1), { setMenuFocused: w, setShiftKey: x } = rl(), { clearArrowNav: L } = nn(), { validateDate: J, isValidTime: V } = an(r), {
10066
10066
  defaultedTransitions: T,
10067
10067
  defaultedTextInput: O,
10068
10068
  defaultedInline: P,
@@ -10084,7 +10084,7 @@ const r0 = ({
10084
10084
  }
10085
10085
  window == null || window.removeEventListener("keyup", Me), window == null || window.removeEventListener("keydown", N);
10086
10086
  });
10087
- const L = bt(o, "all", r.presetDates), C = bt(o, "input");
10087
+ const Y = bt(o, "all", r.presetDates), C = bt(o, "input");
10088
10088
  Ie(
10089
10089
  [l, i],
10090
10090
  () => {
@@ -10153,7 +10153,7 @@ const r0 = ({
10153
10153
  }, Rn = () => {
10154
10154
  O.value.enabled || (v.value = null);
10155
10155
  }, gt = () => {
10156
- P.value.enabled || (s.value && (s.value = !1, X.value = !1, w(!1), x(!1), Y(), a("closed"), B.value && E(l.value)), Rn(), a("blur"));
10156
+ P.value.enabled || (s.value && (s.value = !1, X.value = !1, w(!1), x(!1), L(), a("closed"), B.value && E(l.value)), Rn(), a("blur"));
10157
10157
  }, Nn = (j, oe, me = !1) => {
10158
10158
  if (!j) {
10159
10159
  v.value = null;
@@ -10285,7 +10285,7 @@ const r0 = ({
10285
10285
  onInvalidDate: oe[17] || (oe[17] = (me) => j.$emit("invalid-date", me)),
10286
10286
  onOverlayToggle: oe[18] || (oe[18] = (me) => j.$emit("overlay-toggle", me))
10287
10287
  }), it({ _: 2 }, [
10288
- Ce(b(L), (me, ut) => ({
10288
+ Ce(b(Y), (me, ut) => ({
10289
10289
  name: me,
10290
10290
  fn: ye((Mt) => [
10291
10291
  ie(j.$slots, me, tt(ht({ ...Mt })))
@@ -10889,9 +10889,9 @@ const Y0 = () => {
10889
10889
  );
10890
10890
  return I.getTime() === Z.getTime();
10891
10891
  }), x = (O, P) => {
10892
- const I = [], Z = new Date(O, P, 1), ce = new Date(O, P + 1, 0), pe = Z.getDay(), L = new Date(O, P, 0).getDate();
10892
+ const I = [], Z = new Date(O, P, 1), ce = new Date(O, P + 1, 0), pe = Z.getDay(), Y = new Date(O, P, 0).getDate();
10893
10893
  for (let z = pe - 1; z >= 0; z--) {
10894
- const le = new Date(O, P - 1, L - z);
10894
+ const le = new Date(O, P - 1, Y - z);
10895
10895
  I.push({
10896
10896
  date: le,
10897
10897
  events: w(le),
@@ -10919,8 +10919,8 @@ const Y0 = () => {
10919
10919
  });
10920
10920
  }
10921
10921
  return I;
10922
- }, Y = F([]), J = () => {
10923
- Y.value = x(u.value, c.value);
10922
+ }, L = F([]), J = () => {
10923
+ L.value = x(u.value, c.value);
10924
10924
  };
10925
10925
  Ye(async () => {
10926
10926
  await g(), J();
@@ -11001,7 +11001,7 @@ const Y0 = () => {
11001
11001
  key: ce,
11002
11002
  class: "day-name shadow shadow-black/90 dark:shadow-gray-400 bg-base-200 border border-base-100"
11003
11003
  }, we(Z), 1))), 128)),
11004
- (p(!0), D(ke, null, Ce(Y.value, (Z, ce) => (p(), D("div", {
11004
+ (p(!0), D(ke, null, Ce(L.value, (Z, ce) => (p(), D("div", {
11005
11005
  key: ce,
11006
11006
  class: he([{
11007
11007
  // 'rounded-br': index === daysInMonth.length - 1,
@@ -12769,8 +12769,8 @@ function Fo(e, n, t) {
12769
12769
  let i = n.match(c1).map((w) => {
12770
12770
  const x = w[0];
12771
12771
  if (x === "p" || x === "P") {
12772
- const Y = n1[x];
12773
- return Y(w, r.formatLong);
12772
+ const L = n1[x];
12773
+ return L(w, r.formatLong);
12774
12774
  }
12775
12775
  return w;
12776
12776
  }).join("").match(d1).map((w) => {
@@ -12797,8 +12797,8 @@ function Fo(e, n, t) {
12797
12797
  if (!w.isToken) return w.value;
12798
12798
  const x = w.value;
12799
12799
  (!(t != null && t.useAdditionalWeekYearTokens) && l1(x) || !(t != null && t.useAdditionalDayOfYearTokens) && s1(x)) && i1(x, n, String(e));
12800
- const Y = No[x[0]];
12801
- return Y(l, x, r.localize, c);
12800
+ const L = No[x[0]];
12801
+ return L(l, x, r.localize, c);
12802
12802
  }).join("");
12803
12803
  }
12804
12804
  function v1(e) {
@@ -13231,8 +13231,8 @@ const k1 = {
13231
13231
  }), l = K(
13232
13232
  () => n.hasNextPageForAtendente(n.selectedAtendente.id)
13233
13233
  ), i = (g) => {
13234
- const w = new Date(g), x = w.getHours(), Y = w.getMinutes();
13235
- return `${x.toString().padStart(2, "0")}:${Y.toString().padStart(2, "0")}`;
13234
+ const w = new Date(g), x = w.getHours(), L = w.getMinutes();
13235
+ return `${x.toString().padStart(2, "0")}:${L.toString().padStart(2, "0")}`;
13236
13236
  }, c = (g) => {
13237
13237
  const w = new Date(g);
13238
13238
  return g1(w) ? "Hoje" : b1(w) ? "Ontem" : y1(w) ? Fo(w, "EEEE", { locale: Io }) : Fo(w, "dd 'de' MMMM 'de' yyyy", { locale: Io });
@@ -13363,8 +13363,8 @@ const k1 = {
13363
13363
  _: 1
13364
13364
  })) : q("", !0),
13365
13365
  h("div", null, [
13366
- (p(!0), D(ke, null, Ce(s.value, (x, Y) => (p(), D("div", { key: Y }, [
13367
- u(Y) ? (p(), D("div", J1, [
13366
+ (p(!0), D(ke, null, Ce(s.value, (x, L) => (p(), D("div", { key: L }, [
13367
+ u(L) ? (p(), D("div", J1, [
13368
13368
  w[5] || (w[5] = h("div", { class: "date-separator-line" }, null, -1)),
13369
13369
  h("div", ep, we(c(x.created_at)), 1),
13370
13370
  w[6] || (w[6] = h("div", { class: "date-separator-line" }, null, -1))
@@ -13375,7 +13375,7 @@ const k1 = {
13375
13375
  {
13376
13376
  me: x.sender.id === e.attendant.id,
13377
13377
  "not-me": x.sender.id !== e.attendant.id,
13378
- "new-message": Y === s.value.length - 1
13378
+ "new-message": L === s.value.length - 1
13379
13379
  }
13380
13380
  ])
13381
13381
  }, [
@@ -13502,7 +13502,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13502
13502
  }
13503
13503
  return 0;
13504
13504
  }), M = (T) => {
13505
- k.value && !k.value.contains(T.target) && d.value && Y();
13505
+ k.value && !k.value.contains(T.target) && d.value && L();
13506
13506
  };
13507
13507
  Ye(() => {
13508
13508
  document.addEventListener("click", M);
@@ -13524,14 +13524,14 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13524
13524
  width: "42px",
13525
13525
  height: "42px",
13526
13526
  transition: "none"
13527
- }), Y = () => {
13527
+ }), L = () => {
13528
13528
  d.value ? (w.value = !0, setTimeout(() => {
13529
13529
  d.value = !1, w.value = !1;
13530
13530
  }, 200)) : (d.value = !0, g.value = !0, setTimeout(() => {
13531
13531
  g.value = !1;
13532
13532
  }, 200));
13533
13533
  }, J = () => {
13534
- d.value || Y();
13534
+ d.value || L();
13535
13535
  }, V = async (T) => {
13536
13536
  f.value = T, c(T.id), T.hasNextPage || await r(T.id);
13537
13537
  };
@@ -13556,7 +13556,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13556
13556
  }, [
13557
13557
  d.value ? (p(), D("div", {
13558
13558
  key: 0,
13559
- onClick: Gt(Y, ["stop"]),
13559
+ onClick: Gt(L, ["stop"]),
13560
13560
  style: { width: "42px", height: "42px", "border-radius": "50%", "background-color": "#02a9db", display: "flex", "justify-content": "center" }
13561
13561
  }, O[1] || (O[1] = [
13562
13562
  h("span", {
@@ -13601,7 +13601,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13601
13601
  default: ye(() => [
13602
13602
  d.value && !w.value ? (p(), D("div", cp, [
13603
13603
  h("button", {
13604
- onClick: Gt(Y, ["stop"]),
13604
+ onClick: Gt(L, ["stop"]),
13605
13605
  class: "close-button"
13606
13606
  }, O[4] || (O[4] = [
13607
13607
  h("svg", {
@@ -13693,7 +13693,8 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13693
13693
  permissions: { type: Boolean, default: !1 },
13694
13694
  externalDepartments: { type: Array, default: null },
13695
13695
  // Nova prop
13696
- attDel: { type: Object, default: { id: null } }
13696
+ attDel: { type: String, default: null }
13697
+ // ID do departamento a ser deletado
13697
13698
  },
13698
13699
  emits: ["depart"],
13699
13700
  setup(e, { emit: n }) {
@@ -13704,7 +13705,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13704
13705
  ) : M;
13705
13706
  });
13706
13707
  Ye(() => {
13707
- m(), d();
13708
+ m(), d(), t.attDel && u(t.attDel);
13708
13709
  }), Ie(
13709
13710
  () => t.modal_filter,
13710
13711
  () => {
@@ -13717,16 +13718,13 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13717
13718
  () => t.attDel,
13718
13719
  (M) => {
13719
13720
  M && u(M);
13720
- },
13721
- { immediate: !0 }
13721
+ }
13722
13722
  );
13723
13723
  function u(M) {
13724
- const g = t.externalDepartments || r.departments, w = g.findIndex((Y) => Y.id === M);
13725
- w !== -1 && g.splice(w, 1);
13726
- const x = s.value.findIndex(
13727
- (Y) => Y.id === M
13728
- );
13729
- x !== -1 && (s.value.splice(x, 1), a("depart", s.value));
13724
+ const w = (t.externalDepartments || r.departments).find((x) => x.id === M);
13725
+ w && (s.value = s.value.filter(
13726
+ (x) => x.id !== M
13727
+ ), w.selected = !1, a("depart", s.value));
13730
13728
  }
13731
13729
  async function d() {
13732
13730
  i.value = !0, f(), i.value = !1;
@@ -13741,7 +13739,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13741
13739
  t.department && t.department.length > 0 && t.department.forEach((g) => {
13742
13740
  const w = M.find((x) => x.id === g.id);
13743
13741
  w && (w.selected = !0, s.value.some(
13744
- (Y) => Y.id === g.id
13742
+ (L) => L.id === g.id
13745
13743
  ) || s.value.push({ ...w }));
13746
13744
  }), a("depart", s.value);
13747
13745
  }
@@ -13784,7 +13782,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13784
13782
  }, [
13785
13783
  rt(we(w.name) + " ", 1),
13786
13784
  h("button", {
13787
- onClick: (Y) => _(w, x),
13785
+ onClick: (L) => _(w, x),
13788
13786
  class: "close-btn"
13789
13787
  }, g[3] || (g[3] = [
13790
13788
  h("svg", {
@@ -13844,7 +13842,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13844
13842
  ])
13845
13843
  ]));
13846
13844
  }
13847
- }, Ml = /* @__PURE__ */ yt(Cp, [["__scopeId", "data-v-dd1e1e30"]]), Pp = { class: "depart-select-container" }, Sp = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Op = ["placeholder"], $p = { class: "icon-container" }, Ep = {
13845
+ }, Ml = /* @__PURE__ */ yt(Cp, [["__scopeId", "data-v-4103985f"]]), Pp = { class: "depart-select-container" }, Sp = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Op = ["placeholder"], $p = { class: "icon-container" }, Ep = {
13848
13846
  key: 0,
13849
13847
  xmlns: "http://www.w3.org/2000/svg",
13850
13848
  fill: "none",
@@ -13972,7 +13970,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13972
13970
  }, [
13973
13971
  rt(we(w.name) + " ", 1),
13974
13972
  h("button", {
13975
- onClick: (Y) => _(w, x),
13973
+ onClick: (L) => _(w, x),
13976
13974
  class: "close-btn"
13977
13975
  }, g[3] || (g[3] = [
13978
13976
  h("svg", {