@cobre-npm/ds-v3 0.144.0 → 0.144.1

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.
@@ -11345,7 +11345,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
11345
11345
  R(A[0]),
11346
11346
  A[1] ? R(A[1]) : Rn(r.value.partialRange)
11347
11347
  ];
11348
- }, E = () => n.value[1] ? U() : R(kt(n.value[0])), Y = () => (n.value || []).map((A) => R(A)), J = (A = !1) => (A || H(), e.modelAuto ? E() : l.value.enabled ? Y() : Array.isArray(n.value) ? Xo(() => U(), r.value.enabled) : R(kt(n.value))), re = (A) => !A || Array.isArray(A) && !A.length ? null : e.timePicker ? g(kt(A)) : e.monthPicker ? k(kt(A)) : e.yearPicker ? p(kt(A)) : l.value.enabled ? D(kt(A)) : e.weekPicker ? $(kt(A)) : P(kt(A)), F = (A) => {
11348
+ }, E = () => n.value[1] ? U() : R(kt(n.value[0])), Y = () => (n.value || []).map((A) => R(A)), J = (A = !1) => (A || H(), e.modelAuto ? E() : l.value.enabled ? Y() : Array.isArray(n.value) ? Xo(() => U(), r.value.enabled) : R(kt(n.value))), re = (A) => !A || Array.isArray(A) && !A.length ? null : e.timePicker ? g(kt(A)) : e.monthPicker ? k(kt(A)) : e.yearPicker ? p(kt(A)) : l.value.enabled ? D(kt(A)) : e.weekPicker ? $(kt(A)) : P(kt(A)), B = (A) => {
11349
11349
  const be = re(A);
11350
11350
  Ys(kt(be)) ? (n.value = kt(be), ne()) : (n.value = null, c.value = "");
11351
11351
  }, L = () => {
@@ -11378,15 +11378,15 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
11378
11378
  return [A.map((xe) => me(xe)), be.map((xe) => me(xe))];
11379
11379
  }
11380
11380
  return $a(n.value, e.weekStart).map((A) => me(A));
11381
- }, T = (A, be) => ie(kt(G(A)), !1, be), B = (A) => {
11381
+ }, T = (A, be) => ie(kt(G(A)), !1, be), F = (A) => {
11382
11382
  const be = V();
11383
11383
  return A ? be : t("update:model-value", V());
11384
- }, ae = (A = !1) => (A || ne(), e.monthPicker ? T(v, A) : e.timePicker ? T(y, A) : e.yearPicker ? T(Ae, A) : e.weekPicker ? B(A) : ie(J(A), !0, A));
11384
+ }, ae = (A = !1) => (A || ne(), e.monthPicker ? T(v, A) : e.timePicker ? T(y, A) : e.yearPicker ? T(Ae, A) : e.weekPicker ? F(A) : ie(J(A), !0, A));
11385
11385
  return {
11386
11386
  inputValue: c,
11387
11387
  internalModelValue: n,
11388
11388
  checkBeforeEmit: () => n.value ? r.value.enabled ? r.value.partialRange ? n.value.length >= 1 : n.value.length === 2 : !!n.value : !1,
11389
- parseExternalModelValue: F,
11389
+ parseExternalModelValue: B,
11390
11390
  formatInputValue: ne,
11391
11391
  emitModelValue: ae
11392
11392
  };
@@ -11573,40 +11573,40 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
11573
11573
  });
11574
11574
  const k = () => {
11575
11575
  v.value = !1, setTimeout(() => {
11576
- var F, L;
11577
- const S = (F = w.value) == null ? void 0 : F.getBoundingClientRect(), z = (L = g.value) == null ? void 0 : L.getBoundingClientRect();
11576
+ var B, L;
11577
+ const S = (B = w.value) == null ? void 0 : B.getBoundingClientRect(), z = (L = g.value) == null ? void 0 : L.getBoundingClientRect();
11578
11578
  S && z && (p.value.maxWidth = `${z.width - S.width - 20}px`), v.value = !0;
11579
11579
  }, 0);
11580
11580
  }, D = I(() => c.value.enabled && !c.value.partialRange && n.internalModelValue ? n.internalModelValue.length === 2 : !0), $ = I(
11581
11581
  () => !d.value(n.internalModelValue) || !m.value(n.internalModelValue) || !D.value
11582
11582
  ), P = () => {
11583
- const F = r.value;
11584
- return n.timePicker || n.monthPicker, F(kt(n.internalModelValue));
11583
+ const B = r.value;
11584
+ return n.timePicker || n.monthPicker, B(kt(n.internalModelValue));
11585
11585
  }, H = () => {
11586
- const F = n.internalModelValue;
11587
- return s.value.count > 0 ? `${U(F[0])} - ${U(F[1])}` : [U(F[0]), U(F[1])];
11588
- }, U = (F) => Dd(
11589
- F,
11586
+ const B = n.internalModelValue;
11587
+ return s.value.count > 0 ? `${U(B[0])} - ${U(B[1])}` : [U(B[0]), U(B[1])];
11588
+ }, U = (B) => Dd(
11589
+ B,
11590
11590
  r.value,
11591
11591
  n.formatLocale,
11592
11592
  l.value.rangeSeparator,
11593
11593
  n.modelAuto,
11594
11594
  r.value
11595
- ), E = I(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? H() : u.value.enabled ? n.internalModelValue.map((F) => `${U(F)}`) : n.modelAuto ? `${U(n.internalModelValue[0])}` : `${U(n.internalModelValue[0])} -` : U(n.internalModelValue) : P()), Y = () => u.value.enabled ? "; " : " - ", J = I(
11595
+ ), E = I(() => !n.internalModelValue || !n.menuMount ? "" : typeof r.value == "string" ? Array.isArray(n.internalModelValue) ? n.internalModelValue.length === 2 && n.internalModelValue[1] ? H() : u.value.enabled ? n.internalModelValue.map((B) => `${U(B)}`) : n.modelAuto ? `${U(n.internalModelValue[0])}` : `${U(n.internalModelValue[0])} -` : U(n.internalModelValue) : P()), Y = () => u.value.enabled ? "; " : " - ", J = I(
11596
11596
  () => Array.isArray(E.value) ? E.value.join(Y()) : E.value
11597
11597
  ), re = () => {
11598
11598
  d.value(n.internalModelValue) && m.value(n.internalModelValue) && D.value ? a("select-date") : a("invalid-select");
11599
11599
  };
11600
- return (F, L) => (f(), b("div", {
11600
+ return (B, L) => (f(), b("div", {
11601
11601
  ref_key: "actionRowRef",
11602
11602
  ref: g,
11603
11603
  class: "dp__action_row"
11604
11604
  }, [
11605
- F.$slots["action-row"] ? ee(F.$slots, "action-row", qe(tt({ key: 0 }, {
11606
- internalModelValue: F.internalModelValue,
11605
+ B.$slots["action-row"] ? ee(B.$slots, "action-row", qe(tt({ key: 0 }, {
11606
+ internalModelValue: B.internalModelValue,
11607
11607
  disabled: $.value,
11608
- selectDate: () => F.$emit("select-date"),
11609
- closePicker: () => F.$emit("close-picker")
11608
+ selectDate: () => B.$emit("select-date"),
11609
+ closePicker: () => B.$emit("close-picker")
11610
11610
  }))) : (f(), b(ye, { key: 1 }, [
11611
11611
  O(o).showPreview ? (f(), b("div", {
11612
11612
  key: 0,
@@ -11614,11 +11614,11 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
11614
11614
  title: J.value,
11615
11615
  style: Ne(p.value)
11616
11616
  }, [
11617
- F.$slots["action-preview"] && v.value ? ee(F.$slots, "action-preview", {
11617
+ B.$slots["action-preview"] && v.value ? ee(B.$slots, "action-preview", {
11618
11618
  key: 0,
11619
- value: F.internalModelValue
11619
+ value: B.internalModelValue
11620
11620
  }) : x("", !0),
11621
- !F.$slots["action-preview"] && v.value ? (f(), b(ye, { key: 1 }, [
11621
+ !B.$slots["action-preview"] && v.value ? (f(), b(ye, { key: 1 }, [
11622
11622
  Fe(q(J.value), 1)
11623
11623
  ], 64)) : x("", !0)
11624
11624
  ], 12, _2)) : x("", !0),
@@ -11628,27 +11628,27 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
11628
11628
  class: "dp__action_buttons",
11629
11629
  "data-dp-element": "action-row"
11630
11630
  }, [
11631
- F.$slots["action-buttons"] ? ee(F.$slots, "action-buttons", {
11631
+ B.$slots["action-buttons"] ? ee(B.$slots, "action-buttons", {
11632
11632
  key: 0,
11633
- value: F.internalModelValue
11633
+ value: B.internalModelValue
11634
11634
  }) : x("", !0),
11635
- F.$slots["action-buttons"] ? x("", !0) : (f(), b(ye, { key: 1 }, [
11635
+ B.$slots["action-buttons"] ? x("", !0) : (f(), b(ye, { key: 1 }, [
11636
11636
  !O(i).enabled && O(o).showCancel ? (f(), b("button", {
11637
11637
  key: 0,
11638
11638
  ref_key: "cancelButtonRef",
11639
11639
  ref: _,
11640
11640
  type: "button",
11641
11641
  class: "dp__action_button dp__action_cancel",
11642
- onClick: L[0] || (L[0] = (S) => F.$emit("close-picker")),
11643
- onKeydown: L[1] || (L[1] = (S) => O(It)(S, () => F.$emit("close-picker")))
11644
- }, q(F.cancelText), 545)) : x("", !0),
11642
+ onClick: L[0] || (L[0] = (S) => B.$emit("close-picker")),
11643
+ onKeydown: L[1] || (L[1] = (S) => O(It)(S, () => B.$emit("close-picker")))
11644
+ }, q(B.cancelText), 545)) : x("", !0),
11645
11645
  O(o).showNow ? (f(), b("button", {
11646
11646
  key: 1,
11647
11647
  type: "button",
11648
11648
  class: "dp__action_button dp__action_cancel",
11649
- onClick: L[2] || (L[2] = (S) => F.$emit("select-now")),
11650
- onKeydown: L[3] || (L[3] = (S) => O(It)(S, () => F.$emit("select-now")))
11651
- }, q(F.nowButtonLabel), 33)) : x("", !0),
11649
+ onClick: L[2] || (L[2] = (S) => B.$emit("select-now")),
11650
+ onKeydown: L[3] || (L[3] = (S) => O(It)(S, () => B.$emit("select-now")))
11651
+ }, q(B.nowButtonLabel), 33)) : x("", !0),
11652
11652
  O(o).showSelect ? (f(), b("button", {
11653
11653
  key: 2,
11654
11654
  ref_key: "selectButtonRef",
@@ -11659,7 +11659,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
11659
11659
  "data-test": "select-button",
11660
11660
  onKeydown: L[4] || (L[4] = (S) => O(It)(S, () => re())),
11661
11661
  onClick: re
11662
- }, q(F.selectText), 41, w2)) : x("", !0)
11662
+ }, q(B.selectText), 41, w2)) : x("", !0)
11663
11663
  ], 64))
11664
11664
  ], 512)
11665
11665
  ], 64))
@@ -11736,17 +11736,17 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
11736
11736
  );
11737
11737
  const Y = (G = !0) => {
11738
11738
  yt().then(() => {
11739
- const V = wt(h), T = wt(_), B = wt(p), ae = wt(g), A = B ? B.getBoundingClientRect().height : 0;
11739
+ const V = wt(h), T = wt(_), F = wt(p), ae = wt(g), A = F ? F.getBoundingClientRect().height : 0;
11740
11740
  T && (T.getBoundingClientRect().height ? w.value = T.getBoundingClientRect().height - A : w.value = u.value.modeHeight - A), V && ae && G && (ae.scrollTop = V.offsetTop - ae.offsetTop - (w.value / 2 - V.getBoundingClientRect().height) - A);
11741
11741
  });
11742
11742
  }, J = (G) => {
11743
11743
  G.disabled || s("selected", G.value);
11744
11744
  }, re = () => {
11745
11745
  s("toggle"), s("reset-flow");
11746
- }, F = () => {
11746
+ }, B = () => {
11747
11747
  l.escClose && re();
11748
- }, L = (G, V, T, B) => {
11749
- G && ((V.active || V.value === l.focusValue) && (h.value = G), l.arrowNavigation && (Array.isArray(y.value[T]) ? y.value[T][B] = G : y.value[T] = [G], S()));
11748
+ }, L = (G, V, T, F) => {
11749
+ G && ((V.active || V.value === l.focusValue) && (h.value = G), l.arrowNavigation && (Array.isArray(y.value[T]) ? y.value[T][F] = G : y.value[T] = [G], S()));
11750
11750
  }, S = () => {
11751
11751
  var G, V;
11752
11752
  const T = (G = l.headerRefs) != null && G.length ? [l.headerRefs].concat(y.value) : y.value.concat([l.skipButtonRef ? [] : [p.value]]);
@@ -11766,7 +11766,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
11766
11766
  }, R = (G) => {
11767
11767
  switch (G.key) {
11768
11768
  case rt.esc:
11769
- return F();
11769
+ return B();
11770
11770
  case rt.arrowLeft:
11771
11771
  return z(G);
11772
11772
  case rt.arrowRight:
@@ -11806,12 +11806,12 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
11806
11806
  C("div", T2, [
11807
11807
  ee(G.$slots, "header")
11808
11808
  ]),
11809
- G.$slots.overlay ? ee(G.$slots, "overlay", { key: 0 }) : (f(!0), b(ye, { key: 1 }, Ee(G.items, (B, ae) => (f(), b("div", {
11809
+ G.$slots.overlay ? ee(G.$slots, "overlay", { key: 0 }) : (f(!0), b(ye, { key: 1 }, Ee(G.items, (F, ae) => (f(), b("div", {
11810
11810
  key: ae,
11811
11811
  class: N(["dp__overlay_row", { dp__flex_row: G.items.length >= 3 }]),
11812
11812
  role: "row"
11813
11813
  }, [
11814
- (f(!0), b(ye, null, Ee(B, (A, be) => (f(), b("div", {
11814
+ (f(!0), b(ye, null, Ee(F, (A, be) => (f(), b("div", {
11815
11815
  key: A.value,
11816
11816
  ref_for: !0,
11817
11817
  ref: (xe) => L(xe, A, ae, be),
@@ -12114,12 +12114,12 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
12114
12114
  o.value[Y].year = E, u("update-month-year", { instance: Y, year: E, month: o.value[Y].month }), t.value.count && !t.value.solo && v(Y);
12115
12115
  }, $ = I(() => (E) => to(d.value, (Y) => {
12116
12116
  var J;
12117
- const re = i.value(E) === Y.value, F = So(
12117
+ const re = i.value(E) === Y.value, B = So(
12118
12118
  Y.value,
12119
12119
  ao(n.value.minDate),
12120
12120
  ao(n.value.maxDate)
12121
12121
  ) || ((J = l.value.years) == null ? void 0 : J.includes(i.value(E))), L = cl(a.value, Y.value);
12122
- return { active: re, disabled: F, highlighted: L };
12122
+ return { active: re, disabled: B, highlighted: L };
12123
12123
  })), P = (E, Y) => {
12124
12124
  D(E, Y), U(Y);
12125
12125
  }, H = (E, Y = !1) => {
@@ -12177,50 +12177,50 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
12177
12177
  nt(() => {
12178
12178
  t.startDate && (h.value && t.focusStartDate || !h.value) && k(Ae(me(t.startDate)), 0);
12179
12179
  });
12180
- const Y = (T) => T ? { month: Ve(T), year: Ae(T) } : { month: null, year: null }, J = () => h.value ? Array.isArray(h.value) ? h.value.map((T) => Y(T)) : Y(h.value) : Y(), re = (T, B) => {
12180
+ const Y = (T) => T ? { month: Ve(T), year: Ae(T) } : { month: null, year: null }, J = () => h.value ? Array.isArray(h.value) ? h.value.map((T) => Y(T)) : Y(h.value) : Y(), re = (T, F) => {
12181
12181
  const ae = v.value[T], A = J();
12182
- return Array.isArray(A) ? A.some((be) => be.year === (ae == null ? void 0 : ae.year) && be.month === B) : (ae == null ? void 0 : ae.year) === A.year && B === A.month;
12183
- }, F = (T, B, ae) => {
12182
+ return Array.isArray(A) ? A.some((be) => be.year === (ae == null ? void 0 : ae.year) && be.month === F) : (ae == null ? void 0 : ae.year) === A.year && F === A.month;
12183
+ }, B = (T, F, ae) => {
12184
12184
  var A, be;
12185
12185
  const xe = J();
12186
- return Array.isArray(xe) ? _.value(B) === ((A = xe[ae]) == null ? void 0 : A.year) && T === ((be = xe[ae]) == null ? void 0 : be.month) : !1;
12187
- }, L = (T, B) => {
12186
+ return Array.isArray(xe) ? _.value(F) === ((A = xe[ae]) == null ? void 0 : A.year) && T === ((be = xe[ae]) == null ? void 0 : be.month) : !1;
12187
+ }, L = (T, F) => {
12188
12188
  if (s.value.enabled) {
12189
12189
  const ae = J();
12190
12190
  if (Array.isArray(h.value) && Array.isArray(ae)) {
12191
- const A = F(T, B, 0) || F(T, B, 1), be = Pa(la(me()), T, _.value(B));
12191
+ const A = B(T, F, 0) || B(T, F, 1), be = Pa(la(me()), T, _.value(F));
12192
12192
  return Dr(h.value, w.value, be) && !A;
12193
12193
  }
12194
12194
  return !1;
12195
12195
  }
12196
12196
  return !1;
12197
- }, S = I(() => (T) => to(p.value, (B) => {
12197
+ }, S = I(() => (T) => to(p.value, (F) => {
12198
12198
  var ae;
12199
- const A = re(T, B.value), be = So(
12200
- B.value,
12199
+ const A = re(T, F.value), be = So(
12200
+ F.value,
12201
12201
  _d(_.value(T), i.value.minDate),
12202
12202
  wd(_.value(T), i.value.maxDate)
12203
- ) || e2(i.value.disabledDates, _.value(T)).includes(B.value) || ((ae = u.value.months) == null ? void 0 : ae.includes(B.value)), xe = L(B.value, T), Ue = $d(l.value, B.value, _.value(T));
12203
+ ) || e2(i.value.disabledDates, _.value(T)).includes(F.value) || ((ae = u.value.months) == null ? void 0 : ae.includes(F.value)), xe = L(F.value, T), Ue = $d(l.value, F.value, _.value(T));
12204
12204
  return { active: A, disabled: be, isBetween: xe, highlighted: Ue };
12205
- })), z = (T, B) => Pa(la(me()), T, _.value(B)), ne = (T, B) => {
12205
+ })), z = (T, F) => Pa(la(me()), T, _.value(F)), ne = (T, F) => {
12206
12206
  const ae = h.value ? h.value : la(/* @__PURE__ */ new Date());
12207
- h.value = Pa(ae, T, _.value(B)), e("auto-apply"), e("update-flow-step");
12208
- }, W = (T, B) => {
12209
- const ae = z(T, B);
12210
- s.value.fixedEnd || s.value.fixedStart ? h.value = Md(ae, h, e, s) : h.value ? g(ae, h.value) && (h.value = fl(h, z(T, B), e)) : h.value = [z(T, B)], yt().then(() => {
12207
+ h.value = Pa(ae, T, _.value(F)), e("auto-apply"), e("update-flow-step");
12208
+ }, W = (T, F) => {
12209
+ const ae = z(T, F);
12210
+ s.value.fixedEnd || s.value.fixedStart ? h.value = Md(ae, h, e, s) : h.value ? g(ae, h.value) && (h.value = fl(h, z(T, F), e)) : h.value = [z(T, F)], yt().then(() => {
12211
12211
  Er(h.value, e, t.autoApply, t.modelAuto);
12212
12212
  });
12213
- }, R = (T, B) => {
12214
- dl(z(T, B), h, d.value.limit), e("auto-apply", !0);
12215
- }, ie = (T, B) => (v.value[B].month = T, V(B, v.value[B].year, T), d.value.enabled ? R(T, B) : s.value.enabled ? W(T, B) : ne(T, B)), G = (T, B) => {
12216
- k(T, B), V(B, T, null);
12217
- }, V = (T, B, ae) => {
12213
+ }, R = (T, F) => {
12214
+ dl(z(T, F), h, d.value.limit), e("auto-apply", !0);
12215
+ }, ie = (T, F) => (v.value[F].month = T, V(F, v.value[F].year, T), d.value.enabled ? R(T, F) : s.value.enabled ? W(T, F) : ne(T, F)), G = (T, F) => {
12216
+ k(T, F), V(F, T, null);
12217
+ }, V = (T, F, ae) => {
12218
12218
  let A = ae;
12219
12219
  if (!A && A !== 0) {
12220
12220
  const be = J();
12221
12221
  A = Array.isArray(be) ? be[T].month : be.month;
12222
12222
  }
12223
- e("update-month-year", { instance: T, year: B, month: A });
12223
+ e("update-month-year", { instance: T, year: F, month: A });
12224
12224
  };
12225
12225
  return {
12226
12226
  groupedMonths: S,
@@ -12233,16 +12233,16 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
12233
12233
  defaultedConfig: r,
12234
12234
  showYearPicker: $,
12235
12235
  modelValue: h,
12236
- presetDate: (T, B) => {
12236
+ presetDate: (T, F) => {
12237
12237
  Od({
12238
12238
  value: T,
12239
12239
  modelValue: h,
12240
12240
  range: s.value.enabled,
12241
- timezone: B ? void 0 : c.value.timezone
12241
+ timezone: F ? void 0 : c.value.timezone
12242
12242
  }), e("auto-apply");
12243
12243
  },
12244
- setHoverDate: (T, B) => {
12245
- w.value = z(T, B);
12244
+ setHoverDate: (T, F) => {
12245
+ w.value = z(T, F);
12246
12246
  },
12247
12247
  selectMonth: ie,
12248
12248
  selectYear: G,
@@ -12517,14 +12517,14 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
12517
12517
  dp__time_col_sec: o.enableSeconds && o.is24,
12518
12518
  dp__time_col_sec_with_button: o.enableSeconds && !o.is24
12519
12519
  })
12520
- ), F = I(() => {
12520
+ ), B = I(() => {
12521
12521
  const M = [{ type: "hours" }];
12522
12522
  return o.enableMinutes && M.push({ type: "", separator: !0 }, {
12523
12523
  type: "minutes"
12524
12524
  }), o.enableSeconds && M.push({ type: "", separator: !0 }, {
12525
12525
  type: "seconds"
12526
12526
  }), M;
12527
- }), L = I(() => F.value.filter((M) => !M.separator)), S = I(() => (M) => {
12527
+ }), L = I(() => B.value.filter((M) => !M.separator)), S = I(() => (M) => {
12528
12528
  if (M === "hours") {
12529
12529
  const oe = be(+o.hours);
12530
12530
  return { text: oe < 10 ? `0${oe}` : `${oe}`, value: oe };
@@ -12551,13 +12551,13 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
12551
12551
  return he && Z ? (Mo(ue, Z) || jn(ue, Z)) && (Jn(ue, he) || jn(ue, he)) : he ? Jn(ue, he) || jn(ue, he) : Z ? Mo(ue, Z) || jn(ue, Z) : !0;
12552
12552
  }, V = (M) => o[`no${M[0].toUpperCase() + M.slice(1)}Overlay`], T = (M) => {
12553
12553
  V(M) || (_[M] = !_[M], _[M] ? (g.value = !0, n("overlay-opened", M)) : (g.value = !1, n("overlay-closed", M)));
12554
- }, B = (M) => M === "hours" ? Na : M === "minutes" ? Qa : Zn, ae = () => {
12554
+ }, F = (M) => M === "hours" ? Na : M === "minutes" ? Qa : Zn, ae = () => {
12555
12555
  w.value && clearTimeout(w.value);
12556
12556
  }, A = (M, oe = !0, he) => {
12557
12557
  const Z = oe ? Y : J, ue = oe ? +o[`${M}Increment`] : -+o[`${M}Increment`];
12558
12558
  G(+o[M] + ue, M) && n(
12559
12559
  `update:${M}`,
12560
- B(M)(Z({ [M]: +o[M] }, { [M]: +o[`${M}Increment`] }))
12560
+ F(M)(Z({ [M]: +o[M] }, { [M]: +o[`${M}Increment`] }))
12561
12561
  ), !(he != null && he.keyboard) && u.value.timeArrowHoldThreshold && (w.value = setTimeout(() => {
12562
12562
  A(M, oe);
12563
12563
  }, u.value.timeArrowHoldThreshold));
@@ -12578,7 +12578,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
12578
12578
  return e({ openChildCmp: Ue }), (M, oe) => {
12579
12579
  var he;
12580
12580
  return M.disabled ? x("", !0) : (f(), b("div", A2, [
12581
- (f(!0), b(ye, null, Ee(F.value, (Z, ue) => {
12581
+ (f(!0), b(ye, null, Ee(B.value, (Z, ue) => {
12582
12582
  var X, pe, ke;
12583
12583
  return f(), b("div", {
12584
12584
  key: ue,
@@ -12808,7 +12808,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
12808
12808
  dp__button_bottom: o.autoApply && !d.value.keepActionRow
12809
12809
  })), Y = qt(l, "timePicker"), J = (W, R, ie) => m.value.enabled ? R === 0 ? [W, H.value[1][ie]] : [H.value[0][ie], W] : W, re = (W) => {
12810
12810
  n("update:hours", W);
12811
- }, F = (W) => {
12811
+ }, B = (W) => {
12812
12812
  n("update:minutes", W);
12813
12813
  }, L = (W) => {
12814
12814
  n("update:seconds", W);
@@ -12875,33 +12875,33 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
12875
12875
  minutes: t.minutes,
12876
12876
  seconds: t.seconds,
12877
12877
  setHours: re,
12878
- setMinutes: F,
12878
+ setMinutes: B,
12879
12879
  setSeconds: L
12880
12880
  }) : x("", !0),
12881
12881
  W.$slots["time-picker-overlay"] ? x("", !0) : (f(), b("div", {
12882
12882
  key: 1,
12883
12883
  class: N(W.timePickerInline ? "dp__flex" : "dp__overlay_row dp__flex_row")
12884
12884
  }, [
12885
- (f(!0), b(ye, null, Ee(H.value, (T, B) => Re((f(), ge(B2, tt({
12886
- key: B,
12885
+ (f(!0), b(ye, null, Ee(H.value, (T, F) => Re((f(), ge(B2, tt({
12886
+ key: F,
12887
12887
  ref_for: !0
12888
12888
  }, {
12889
12889
  ...W.$props,
12890
- order: B,
12890
+ order: F,
12891
12891
  hours: T.hours,
12892
12892
  minutes: T.minutes,
12893
12893
  seconds: T.seconds,
12894
12894
  closeTimePickerBtn: p.value,
12895
12895
  disabledTimesConfig: t.disabledTimesConfig,
12896
- disabled: B === 0 ? O(m).fixedStart : O(m).fixedEnd
12896
+ disabled: F === 0 ? O(m).fixedStart : O(m).fixedEnd
12897
12897
  }, {
12898
12898
  ref_for: !0,
12899
12899
  ref_key: "timeInputRefs",
12900
12900
  ref: w,
12901
- "validate-time": (ae, A) => t.validateTime(ae, J(A, B, ae)),
12902
- "onUpdate:hours": (ae) => re(J(ae, B, "hours")),
12903
- "onUpdate:minutes": (ae) => F(J(ae, B, "minutes")),
12904
- "onUpdate:seconds": (ae) => L(J(ae, B, "seconds")),
12901
+ "validate-time": (ae, A) => t.validateTime(ae, J(A, F, ae)),
12902
+ "onUpdate:hours": (ae) => re(J(ae, F, "hours")),
12903
+ "onUpdate:minutes": (ae) => B(J(ae, F, "minutes")),
12904
+ "onUpdate:seconds": (ae) => L(J(ae, F, "seconds")),
12905
12905
  onMounted: S,
12906
12906
  onOverlayClosed: z,
12907
12907
  onOverlayOpened: ne,
@@ -12914,7 +12914,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
12914
12914
  ])
12915
12915
  }))
12916
12916
  ]), 1040, ["validate-time", "onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [
12917
- [qa, B === 0 ? !0 : D.value]
12917
+ [qa, F === 0 ? !0 : D.value]
12918
12918
  ])), 128))
12919
12919
  ], 2)),
12920
12920
  !W.timePicker && !W.timePickerInline ? Re((f(), b("button", {
@@ -13155,8 +13155,8 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13155
13155
  const U = (V) => ({
13156
13156
  get: () => o[V],
13157
13157
  set: (T) => {
13158
- const B = V === sa.month ? sa.year : sa.month;
13159
- n("update-month-year", { [V]: T, [B]: o[B] }), V === sa.month ? z(!0) : ne(!0);
13158
+ const F = V === sa.month ? sa.year : sa.month;
13159
+ n("update-month-year", { [V]: T, [F]: o[F] }), V === sa.month ? z(!0) : ne(!0);
13160
13160
  }
13161
13161
  }), E = I(U(sa.month)), Y = I(U(sa.year)), J = I(() => (V) => ({
13162
13162
  month: o.month,
@@ -13165,22 +13165,22 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13165
13165
  instance: o.instance,
13166
13166
  updateMonthYear: w,
13167
13167
  toggle: V === sa.month ? z : ne
13168
- })), re = I(() => o.months.find((T) => T.value === o.month) || { text: "", value: 0 }), F = I(() => to(o.months, (V) => {
13169
- const T = o.month === V.value, B = So(
13168
+ })), re = I(() => o.months.find((T) => T.value === o.month) || { text: "", value: 0 }), B = I(() => to(o.months, (V) => {
13169
+ const T = o.month === V.value, F = So(
13170
13170
  V.value,
13171
13171
  _d(o.year, d.value.minDate),
13172
13172
  wd(o.year, d.value.maxDate)
13173
13173
  ) || i.value.months.includes(V.value), ae = $d(u.value, V.value, o.year);
13174
- return { active: T, disabled: B, highlighted: ae };
13174
+ return { active: T, disabled: F, highlighted: ae };
13175
13175
  })), L = I(() => to(o.years, (V) => {
13176
- const T = o.year === V.value, B = So(
13176
+ const T = o.year === V.value, F = So(
13177
13177
  V.value,
13178
13178
  ao(d.value.minDate),
13179
13179
  ao(d.value.maxDate)
13180
13180
  ) || i.value.years.includes(V.value), ae = cl(u.value, V.value);
13181
- return { active: T, disabled: B, highlighted: ae };
13182
- })), S = (V, T, B) => {
13183
- B !== void 0 ? V.value = B : V.value = !V.value, V.value ? (P.value = !0, n("overlay-opened", T)) : (P.value = !1, n("overlay-closed", T));
13181
+ return { active: T, disabled: F, highlighted: ae };
13182
+ })), S = (V, T, F) => {
13183
+ F !== void 0 ? V.value = F : V.value = !V.value, V.value ? (P.value = !0, n("overlay-opened", T)) : (P.value = !1, n("overlay-closed", T));
13184
13184
  }, z = (V = !1, T) => {
13185
13185
  W(V), S(D, xt.month, T);
13186
13186
  }, ne = (V = !1, T) => {
@@ -13190,7 +13190,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13190
13190
  }, R = (V, T) => {
13191
13191
  o.arrowNavigation && (H.value[T] = wt(V), y(H.value, "monthYear"));
13192
13192
  }, ie = I(() => {
13193
- var V, T, B, ae, A, be;
13193
+ var V, T, F, ae, A, be;
13194
13194
  return [
13195
13195
  {
13196
13196
  type: sa.month,
@@ -13200,9 +13200,9 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13200
13200
  updateModelValue: (xe) => E.value = xe,
13201
13201
  text: re.value.text,
13202
13202
  showSelectionGrid: D.value,
13203
- items: F.value,
13203
+ items: B.value,
13204
13204
  ariaLabel: (V = s.value) == null ? void 0 : V.openMonthsOverlay,
13205
- overlayLabel: ((B = (T = s.value).monthPicker) == null ? void 0 : B.call(T, !0)) ?? void 0
13205
+ overlayLabel: ((F = (T = s.value).monthPicker) == null ? void 0 : F.call(T, !0)) ?? void 0
13206
13206
  },
13207
13207
  {
13208
13208
  type: sa.year,
@@ -13223,7 +13223,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13223
13223
  toggleYearPicker: ne,
13224
13224
  handleMonthYearChange: v
13225
13225
  }), (V, T) => {
13226
- var B, ae, A, be, xe, Ue;
13226
+ var F, ae, A, be, xe, Ue;
13227
13227
  return f(), b("div", z2, [
13228
13228
  V.$slots["month-year"] ? (f(), b("div", q2, [
13229
13229
  ee(V.$slots, "month-year", qe(et({ month: t.month, year: t.year, months: t.months, years: t.years, updateMonthYear: O(w), handleMonthYearChange: O(v), instance: t.instance })))
@@ -13234,7 +13234,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13234
13234
  C("div", K2, [
13235
13235
  O(g)(O(l), t.instance) && !V.vertical ? (f(), ge(xo, {
13236
13236
  key: 0,
13237
- "aria-label": (B = O(s)) == null ? void 0 : B.prevMonth,
13237
+ "aria-label": (F = O(s)) == null ? void 0 : F.prevMonth,
13238
13238
  disabled: O(p)(!1),
13239
13239
  class: N((ae = O(m)) == null ? void 0 : ae.navBtnPrev),
13240
13240
  "el-name": "action-prev",
@@ -13419,7 +13419,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13419
13419
  transform: ""
13420
13420
  }), y = j([]), v = j(null), p = j(!0), w = j(""), g = j({ startX: 0, endX: 0, startY: 0, endY: 0 }), k = j([]), D = j({ left: "50%" }), $ = j(!1), P = I(() => o.calendar ? o.calendar(o.mappedDates) : o.mappedDates), H = I(() => o.dayNames ? Array.isArray(o.dayNames) ? o.dayNames : o.dayNames(o.locale, +o.weekStart) : Yw(o.formatLocale, o.locale, +o.weekStart));
13421
13421
  nt(() => {
13422
- n("mount", { cmp: "calendar", refs: y }), l.value.noSwipe || v.value && (v.value.addEventListener("touchstart", R, { passive: !1 }), v.value.addEventListener("touchend", ie, { passive: !1 }), v.value.addEventListener("touchmove", G, { passive: !1 })), o.monthChangeOnScroll && v.value && v.value.addEventListener("wheel", B, { passive: !1 });
13422
+ n("mount", { cmp: "calendar", refs: y }), l.value.noSwipe || v.value && (v.value.addEventListener("touchstart", R, { passive: !1 }), v.value.addEventListener("touchend", ie, { passive: !1 }), v.value.addEventListener("touchmove", G, { passive: !1 })), o.monthChangeOnScroll && v.value && v.value.addEventListener("wheel", F, { passive: !1 });
13423
13423
  });
13424
13424
  const U = (Q) => Q ? o.vertical ? "vNext" : "next" : o.vertical ? "vPrevious" : "previous", E = (Q, fe) => {
13425
13425
  if (o.transitions) {
@@ -13438,7 +13438,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13438
13438
  dp__marker_dot: fe.type === "dot",
13439
13439
  dp__marker_line: fe.type === "line"
13440
13440
  };
13441
- }), re = I(() => (Q) => Be(Q, h.value)), F = I(() => ({
13441
+ }), re = I(() => (Q) => Be(Q, h.value)), B = I(() => ({
13442
13442
  dp__calendar: !0,
13443
13443
  dp__calendar_next: c.value.count > 0 && o.instance !== 0
13444
13444
  })), L = I(() => (Q) => o.hideOffsetDates ? Q.current : !0), S = async (Q, fe) => {
@@ -13476,7 +13476,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13476
13476
  Math.abs(g.value[`start${Q}`] - g.value[`end${Q}`]) > 10 && n("handle-swipe", g.value[`start${Q}`] > g.value[`end${Q}`] ? "right" : "left");
13477
13477
  }, T = (Q, fe, M) => {
13478
13478
  Q && (Array.isArray(y.value[fe]) ? y.value[fe][M] = Q : y.value[fe] = [Q]), o.arrowNavigation && r(y.value, "calendar");
13479
- }, B = (Q) => {
13479
+ }, F = (Q) => {
13480
13480
  o.monthChangeOnScroll && (Q.preventDefault(), n("handle-scroll", Q));
13481
13481
  }, ae = (Q) => u.value.type === "local" ? Zi(Q.value, { weekStartsOn: +o.weekStart }) : u.value.type === "iso" ? Gi(Q.value) : typeof u.value.type == "function" ? u.value.type(Q.value) : "", A = (Q) => {
13482
13482
  const fe = Q[0];
@@ -13489,7 +13489,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13489
13489
  d.value.enabled && d.value.dragSelect ? ($.value = !0, n("select-date", Q)) : d.value.enabled && n("select-date", Q);
13490
13490
  };
13491
13491
  return e({ triggerTransition: E }), (Q, fe) => (f(), b("div", {
13492
- class: N(F.value)
13492
+ class: N(B.value)
13493
13493
  }, [
13494
13494
  C("div", {
13495
13495
  ref_key: "calendarWrapRef",
@@ -13642,7 +13642,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13642
13642
  defaultedMultiDates: w
13643
13643
  } = st(t), { validateMonthYearInRange: g, isDisabled: k, isDateRangeAllowed: D, checkMinMaxRange: $ } = rn(t), { updateTimeValues: P, getSetDateTime: H, setTime: U, assignStartTime: E, validateTime: Y, disabledTimesConfig: J } = Ld(t, u, i, n), re = I(
13644
13644
  () => (K) => c.value[K] ? c.value[K].month : 0
13645
- ), F = I(
13645
+ ), B = I(
13646
13646
  () => (K) => c.value[K] ? c.value[K].year : 0
13647
13647
  ), L = (K) => !y.value.keepViewOnOffsetClick || K ? !0 : !s.value, S = (K, we, te, _e = !1) => {
13648
13648
  var Ce, St;
@@ -13666,7 +13666,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13666
13666
  }, ie = () => Array.isArray(i.value) && _.value.enabled ? Ve(i.value[0]) === Ve(i.value[1] ?? i.value[0]) : !1, G = (K = /* @__PURE__ */ new Date(), we = !1) => {
13667
13667
  if ((!m.value.count || !m.value.static || we) && S(0, Ve(K), Ae(K)), m.value.count && (!m.value.solo || !i.value || ie()))
13668
13668
  for (let te = 1; te < m.value.count; te++) {
13669
- const _e = Je(me(), { month: re.value(te - 1), year: F.value(te - 1) }), Ce = Xc(_e, { months: 1 });
13669
+ const _e = Je(me(), { month: re.value(te - 1), year: B.value(te - 1) }), Ce = Xc(_e, { months: 1 });
13670
13670
  c.value[te] = { month: Ve(Ce), year: Ae(Ce) };
13671
13671
  }
13672
13672
  }, V = (K, we) => {
@@ -13678,7 +13678,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13678
13678
  return Math.abs(te - we) < m.value.count ? 0 : 1;
13679
13679
  }
13680
13680
  return 1;
13681
- }, B = (K, we) => {
13681
+ }, F = (K, we) => {
13682
13682
  K[1] && _.value.showLastInRange ? G(K[T(K)], we) : G(K[0], we);
13683
13683
  const te = (_e, Ce) => [
13684
13684
  _e(K[0]),
@@ -13687,7 +13687,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13687
13687
  U("hours", te(Na, "hours")), U("minutes", te(Qa, "minutes")), U("seconds", te(Zn, "seconds"));
13688
13688
  }, ae = (K, we) => {
13689
13689
  if ((_.value.enabled || t.weekPicker) && !w.value.enabled)
13690
- return B(K, we);
13690
+ return F(K, we);
13691
13691
  if (w.value.enabled && we) {
13692
13692
  const te = K[K.length - 1];
13693
13693
  return V(te, we);
@@ -13696,15 +13696,15 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13696
13696
  const we = i.value;
13697
13697
  ae(we, K), m.value.count && m.value.solo && Ue();
13698
13698
  }, be = (K, we) => {
13699
- const te = Je(me(), { month: re.value(we), year: F.value(we) }), _e = K < 0 ? ca(te, 1) : eo(te, 1);
13699
+ const te = Je(me(), { month: re.value(we), year: B.value(we) }), _e = K < 0 ? ca(te, 1) : eo(te, 1);
13700
13700
  g(Ve(_e), Ae(_e), K < 0, t.preventMinMaxNavigation) && (S(we, Ve(_e), Ae(_e)), e("update-month-year", { instance: we, month: Ve(_e), year: Ae(_e) }), m.value.count && !m.value.solo && xe(we), a());
13701
13701
  }, xe = (K) => {
13702
13702
  for (let we = K - 1; we >= 0; we--) {
13703
- const te = eo(Je(me(), { month: re.value(we + 1), year: F.value(we + 1) }), 1);
13703
+ const te = eo(Je(me(), { month: re.value(we + 1), year: B.value(we + 1) }), 1);
13704
13704
  S(we, Ve(te), Ae(te));
13705
13705
  }
13706
13706
  for (let we = K + 1; we <= m.value.count - 1; we++) {
13707
- const te = ca(Je(me(), { month: re.value(we - 1), year: F.value(we - 1) }), 1);
13707
+ const te = ca(Je(me(), { month: re.value(we - 1), year: B.value(we - 1) }), 1);
13708
13708
  S(we, Ve(te), Ae(te));
13709
13709
  }
13710
13710
  }, Ue = () => {
@@ -13796,7 +13796,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13796
13796
  if (S(0, we, te), m.value.count > 0)
13797
13797
  for (let _e = 1; _e < m.value.count; _e++) {
13798
13798
  const Ce = Gw(
13799
- Je(me(K), { year: F.value(_e - 1), month: re.value(_e - 1) })
13799
+ Je(me(K), { year: B.value(_e - 1), month: re.value(_e - 1) })
13800
13800
  );
13801
13801
  S(_e, Ce.month, Ce.year);
13802
13802
  }
@@ -13854,7 +13854,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13854
13854
  calendars: c,
13855
13855
  modelValue: i,
13856
13856
  month: re,
13857
- year: F,
13857
+ year: B,
13858
13858
  time: u,
13859
13859
  disabledTimesConfig: J,
13860
13860
  today: d,
@@ -13923,7 +13923,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13923
13923
  selectCurrentDate: D,
13924
13924
  updateTime: $,
13925
13925
  assignMonthAndYear: P
13926
- } = rk(o, n, ie, G), H = _t(), { setHoverDate: U, getDayClassData: E, clearHoverDate: Y } = kk(i, o), { defaultedMultiCalendars: J } = st(o), re = j([]), F = j([]), L = j(null), S = qt(H, "calendar"), z = qt(H, "monthYear"), ne = qt(H, "timePicker"), W = (fe) => {
13926
+ } = rk(o, n, ie, G), H = _t(), { setHoverDate: U, getDayClassData: E, clearHoverDate: Y } = kk(i, o), { defaultedMultiCalendars: J } = st(o), re = j([]), B = j([]), L = j(null), S = qt(H, "calendar"), z = qt(H, "monthYear"), ne = qt(H, "timePicker"), W = (fe) => {
13927
13927
  o.shadow || n("mount", fe);
13928
13928
  };
13929
13929
  at(
@@ -13947,7 +13947,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13947
13947
  })));
13948
13948
  function ie(fe) {
13949
13949
  var M;
13950
- fe || fe === 0 ? (M = F.value[fe]) == null || M.triggerTransition(s.value(fe), l.value(fe)) : F.value.forEach((oe, he) => oe.triggerTransition(s.value(he), l.value(he)));
13950
+ fe || fe === 0 ? (M = B.value[fe]) == null || M.triggerTransition(s.value(fe), l.value(fe)) : B.value.forEach((oe, he) => oe.triggerTransition(s.value(he), l.value(he)));
13951
13951
  }
13952
13952
  function G() {
13953
13953
  n("update-flow-step");
@@ -13957,7 +13957,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13957
13957
  }, T = (fe, M, oe = 0) => {
13958
13958
  var he;
13959
13959
  (he = re.value[oe]) == null || he.toggleMonthPicker(fe, M);
13960
- }, B = (fe, M, oe = 0) => {
13960
+ }, F = (fe, M, oe = 0) => {
13961
13961
  var he;
13962
13962
  (he = re.value[oe]) == null || he.toggleYearPicker(fe, M);
13963
13963
  }, ae = (fe, M, oe) => {
@@ -13989,7 +13989,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
13989
13989
  presetDate: k,
13990
13990
  selectCurrentDate: D,
13991
13991
  toggleMonthPicker: T,
13992
- toggleYearPicker: B,
13992
+ toggleYearPicker: F,
13993
13993
  toggleTimePicker: ae,
13994
13994
  handleArrow: y,
13995
13995
  updateMonthYear: g,
@@ -14038,7 +14038,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
14038
14038
  ]), 1040, ["months", "years", "month", "year", "instance", "onUpdateMonthYear"])),
14039
14039
  ce(ok, tt({
14040
14040
  ref: (Z) => {
14041
- Z && (F.value[he] = Z);
14041
+ Z && (B.value[he] = Z);
14042
14042
  },
14043
14043
  "mapped-dates": R.value(oe),
14044
14044
  month: O(s)(oe),
@@ -14146,7 +14146,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
14146
14146
  dl(L, u, c.value.limit), e("auto-apply", !0);
14147
14147
  }, re = (L) => {
14148
14148
  u.value = fl(u, L, e), Er(u.value, e, t.autoApply, t.modelAuto);
14149
- }, F = (L) => {
14149
+ }, B = (L) => {
14150
14150
  u.value = L, e("auto-apply");
14151
14151
  };
14152
14152
  return {
@@ -14164,7 +14164,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
14164
14164
  selectYear: y,
14165
14165
  selectQuarter: (L, S, z) => {
14166
14166
  if (!z)
14167
- return h.value[S].month = Ve(Jl(L)), c.value.enabled ? J(L) : s.value.enabled ? re(L) : F(L);
14167
+ return h.value[S].month = Ve(Jl(L)), c.value.enabled ? J(L) : s.value.enabled ? re(L) : B(L);
14168
14168
  },
14169
14169
  toggleYearPicker: g,
14170
14170
  handleYearSelect: k,
@@ -14354,7 +14354,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
14354
14354
  const k = () => {
14355
14355
  const X = wt(p);
14356
14356
  X && (v.value = X.getBoundingClientRect().width);
14357
- }, { arrowRight: D, arrowLeft: $, arrowDown: P, arrowUp: H } = on(), { flowStep: U, updateFlowStep: E, childMount: Y, resetFlow: J, handleFlow: re } = Ck(o, n, g), F = I(() => o.monthPicker ? O2 : o.yearPicker ? S2 : o.timePicker ? j2 : o.quarterPicker ? dk : ik), L = I(() => {
14357
+ }, { arrowRight: D, arrowLeft: $, arrowDown: P, arrowUp: H } = on(), { flowStep: U, updateFlowStep: E, childMount: Y, resetFlow: J, handleFlow: re } = Ck(o, n, g), B = I(() => o.monthPicker ? O2 : o.yearPicker ? S2 : o.timePicker ? j2 : o.quarterPicker ? dk : ik), L = I(() => {
14358
14358
  var X;
14359
14359
  if (h.value.arrowLeft) return h.value.arrowLeft;
14360
14360
  const pe = (X = r.value) == null ? void 0 : X.getBoundingClientRect(), ke = o.getInputRect();
@@ -14380,7 +14380,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
14380
14380
  })
14381
14381
  ), T = (X) => {
14382
14382
  Xa(X, h.value, !0);
14383
- }, B = () => {
14383
+ }, F = () => {
14384
14384
  o.escClose && n("close-picker");
14385
14385
  }, ae = (X) => {
14386
14386
  if (o.arrowNavigation) {
@@ -14422,7 +14422,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
14422
14422
  );
14423
14423
  switch ((X.key === rt.pageUp || X.key === rt.pageDown) && (X.shiftKey ? (Q("changeYear", X.key === rt.pageUp), (pe = Fs(r.value, "overlay-year")) == null || pe.focus()) : (Q("changeMonth", X.key === rt.pageUp), (ke = Fs(r.value, X.key === rt.pageUp ? "action-prev" : "action-next")) == null || ke.focus()), X.target.getAttribute("id") && ((Ie = r.value) == null || Ie.focus({ preventScroll: !0 }))), X.key) {
14424
14424
  case rt.esc:
14425
- return B();
14425
+ return F();
14426
14426
  case rt.arrowLeft:
14427
14427
  return Z(X, At.left);
14428
14428
  case rt.arrowRight:
@@ -14508,7 +14508,7 @@ const Fs = (t, e) => t == null ? void 0 : t.querySelector(`[data-dp-element="${e
14508
14508
  class: "dp__instance_calendar",
14509
14509
  role: "document"
14510
14510
  }, [
14511
- (f(), ge(Oa(F.value), tt({
14511
+ (f(), ge(Oa(B.value), tt({
14512
14512
  ref_key: "dynCmpRef",
14513
14513
  ref: g
14514
14514
  }, s.value, {
@@ -14665,8 +14665,8 @@ const yk = ({
14665
14665
  return z && !ne;
14666
14666
  }
14667
14667
  return !0;
14668
- }, F = function(S) {
14669
- return !S || S === document.body || S.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : re(S) ? S : F(
14668
+ }, B = function(S) {
14669
+ return !S || S === document.body || S.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? window : re(S) ? S : B(
14670
14670
  S.assignedSlot && i.value.shadowDom ? S.assignedSlot.parentNode : S.parentNode
14671
14671
  );
14672
14672
  }, L = (S) => {
@@ -14686,14 +14686,14 @@ const yk = ({
14686
14686
  menuStyle: d,
14687
14687
  xCorrect: u,
14688
14688
  setMenuPosition: D,
14689
- getScrollableParent: F,
14689
+ getScrollableParent: B,
14690
14690
  shadowRender: (S, z) => {
14691
14691
  var ne, W, R;
14692
14692
  const ie = document.createElement("div"), G = (ne = wt(a)) == null ? void 0 : ne.getBoundingClientRect();
14693
14693
  ie.setAttribute("id", "dp--temp-container");
14694
14694
  const V = (W = n.value) != null && W.clientWidth ? n.value : document.body;
14695
14695
  V.append(ie);
14696
- const T = L(G), B = i.value.shadowDom ? Object.keys(l).filter(
14696
+ const T = L(G), F = i.value.shadowDom ? Object.keys(l).filter(
14697
14697
  (A) => ["right-sidebar", "left-sidebar", "top-extra", "action-extra"].includes(A)
14698
14698
  ) : Object.keys(l), ae = Tc(
14699
14699
  S,
@@ -14702,7 +14702,7 @@ const yk = ({
14702
14702
  shadow: !0,
14703
14703
  style: { opacity: 0, position: "absolute", ...T }
14704
14704
  },
14705
- Object.fromEntries(B.map((A) => [A, l[A]]))
14705
+ Object.fromEntries(F.map((A) => [A, l[A]]))
14706
14706
  );
14707
14707
  Vl(ae, ie), c.value = (R = ae.el) == null ? void 0 : R.getBoundingClientRect(), Vl(null, ie), V.removeChild(ie);
14708
14708
  }
@@ -14826,24 +14826,24 @@ const yk = ({
14826
14826
  !T.current && e.hideOffsetDates || (u.value = T.value);
14827
14827
  }, h = () => {
14828
14828
  u.value = null;
14829
- }, _ = (T) => Array.isArray(t.value) && i.value.enabled && t.value[0] && u.value ? T ? mt(u.value, t.value[0]) : ut(u.value, t.value[0]) : !0, y = (T, B) => {
14830
- const ae = () => t.value ? B ? t.value[0] || null : t.value[1] : null, A = t.value && Array.isArray(t.value) ? ae() : null;
14829
+ }, _ = (T) => Array.isArray(t.value) && i.value.enabled && t.value[0] && u.value ? T ? mt(u.value, t.value[0]) : ut(u.value, t.value[0]) : !0, y = (T, F) => {
14830
+ const ae = () => t.value ? F ? t.value[0] || null : t.value[1] : null, A = t.value && Array.isArray(t.value) ? ae() : null;
14831
14831
  return Be(me(T.value), A);
14832
14832
  }, v = (T) => {
14833
- const B = Array.isArray(t.value) ? t.value[0] : null;
14834
- return T ? !ut(u.value ?? null, B) : !0;
14835
- }, p = (T, B = !0) => (i.value.enabled || e.weekPicker) && Array.isArray(t.value) && t.value.length === 2 ? e.hideOffsetDates && !T.current ? !1 : Be(me(T.value), t.value[B ? 0 : 1]) : i.value.enabled ? y(T, B) && v(B) || Be(T.value, Array.isArray(t.value) ? t.value[0] : null) && _(B) : !1, w = (T, B) => {
14833
+ const F = Array.isArray(t.value) ? t.value[0] : null;
14834
+ return T ? !ut(u.value ?? null, F) : !0;
14835
+ }, p = (T, F = !0) => (i.value.enabled || e.weekPicker) && Array.isArray(t.value) && t.value.length === 2 ? e.hideOffsetDates && !T.current ? !1 : Be(me(T.value), t.value[F ? 0 : 1]) : i.value.enabled ? y(T, F) && v(F) || Be(T.value, Array.isArray(t.value) ? t.value[0] : null) && _(F) : !1, w = (T, F) => {
14836
14836
  if (Array.isArray(t.value) && t.value[0] && t.value.length === 1) {
14837
14837
  const ae = Be(T.value, u.value);
14838
- return B ? mt(t.value[0], T.value) && ae : ut(t.value[0], T.value) && ae;
14838
+ return F ? mt(t.value[0], T.value) && ae : ut(t.value[0], T.value) && ae;
14839
14839
  }
14840
14840
  return !1;
14841
- }, g = (T) => !t.value || e.hideOffsetDates && !T.current ? !1 : i.value.enabled ? e.modelAuto && Array.isArray(t.value) ? Be(T.value, t.value[0] ? t.value[0] : d.value) : !1 : n.value.enabled && Array.isArray(t.value) ? t.value.some((B) => Be(B, T.value)) : Be(T.value, t.value ? t.value : d.value), k = (T) => {
14841
+ }, g = (T) => !t.value || e.hideOffsetDates && !T.current ? !1 : i.value.enabled ? e.modelAuto && Array.isArray(t.value) ? Be(T.value, t.value[0] ? t.value[0] : d.value) : !1 : n.value.enabled && Array.isArray(t.value) ? t.value.some((F) => Be(F, T.value)) : Be(T.value, t.value ? t.value : d.value), k = (T) => {
14842
14842
  if (i.value.autoRange || e.weekPicker) {
14843
14843
  if (u.value) {
14844
14844
  if (e.hideOffsetDates && !T.current) return !1;
14845
- const B = ia(u.value, +i.value.autoRange), ae = $a(me(u.value), e.weekStart);
14846
- return e.weekPicker ? Be(ae[1], me(T.value)) : Be(B, me(T.value));
14845
+ const F = ia(u.value, +i.value.autoRange), ae = $a(me(u.value), e.weekStart);
14846
+ return e.weekPicker ? Be(ae[1], me(T.value)) : Be(F, me(T.value));
14847
14847
  }
14848
14848
  return !1;
14849
14849
  }
@@ -14851,10 +14851,10 @@ const yk = ({
14851
14851
  }, D = (T) => {
14852
14852
  if (i.value.autoRange || e.weekPicker) {
14853
14853
  if (u.value) {
14854
- const B = ia(u.value, +i.value.autoRange);
14854
+ const F = ia(u.value, +i.value.autoRange);
14855
14855
  if (e.hideOffsetDates && !T.current) return !1;
14856
14856
  const ae = $a(me(u.value), e.weekStart);
14857
- return e.weekPicker ? mt(T.value, ae[0]) && ut(T.value, ae[1]) : mt(T.value, u.value) && ut(T.value, B);
14857
+ return e.weekPicker ? mt(T.value, ae[0]) && ut(T.value, ae[1]) : mt(T.value, u.value) && ut(T.value, F);
14858
14858
  }
14859
14859
  return !1;
14860
14860
  }
@@ -14863,30 +14863,30 @@ const yk = ({
14863
14863
  if (i.value.autoRange || e.weekPicker) {
14864
14864
  if (u.value) {
14865
14865
  if (e.hideOffsetDates && !T.current) return !1;
14866
- const B = $a(me(u.value), e.weekStart);
14867
- return e.weekPicker ? Be(B[0], T.value) : Be(u.value, T.value);
14866
+ const F = $a(me(u.value), e.weekStart);
14867
+ return e.weekPicker ? Be(F[0], T.value) : Be(u.value, T.value);
14868
14868
  }
14869
14869
  return !1;
14870
14870
  }
14871
14871
  return !1;
14872
14872
  }, P = (T) => Dr(t.value, u.value, T.value), H = () => e.modelAuto && Array.isArray(e.internalModelValue) ? !!e.internalModelValue[0] : !1, U = () => e.modelAuto ? gd(e.internalModelValue) : !0, E = (T) => {
14873
14873
  if (e.weekPicker) return !1;
14874
- const B = i.value.enabled ? !p(T) && !p(T, !1) : !0;
14875
- return !c(T.value) && !g(T) && !(!T.current && e.hideOffsetDates) && B;
14874
+ const F = i.value.enabled ? !p(T) && !p(T, !1) : !0;
14875
+ return !c(T.value) && !g(T) && !(!T.current && e.hideOffsetDates) && F;
14876
14876
  }, Y = (T) => i.value.enabled ? e.modelAuto ? H() && g(T) : !1 : g(T), J = (T) => r.value ? qw(T.value, l.value.highlight) : !1, re = (T) => {
14877
- const B = c(T.value);
14878
- return B && (typeof r.value == "function" ? !r.value(T.value, B) : !r.value.options.highlightDisabled);
14879
- }, F = (T) => {
14880
- var B;
14881
- return typeof r.value == "function" ? r.value(T.value) : (B = r.value.weekdays) == null ? void 0 : B.includes(T.value.getDay());
14877
+ const F = c(T.value);
14878
+ return F && (typeof r.value == "function" ? !r.value(T.value, F) : !r.value.options.highlightDisabled);
14879
+ }, B = (T) => {
14880
+ var F;
14881
+ return typeof r.value == "function" ? r.value(T.value) : (F = r.value.weekdays) == null ? void 0 : F.includes(T.value.getDay());
14882
14882
  }, L = (T) => (i.value.enabled || e.weekPicker) && (!(a.value.count > 0) || T.current) && U() && !(!T.current && e.hideOffsetDates) && !g(T) ? P(T) : !1, S = (T) => {
14883
- const { isRangeStart: B, isRangeEnd: ae } = R(T), A = i.value.enabled ? B || ae : !1;
14883
+ const { isRangeStart: F, isRangeEnd: ae } = R(T), A = i.value.enabled ? F || ae : !1;
14884
14884
  return {
14885
14885
  dp__cell_offset: !T.current,
14886
14886
  dp__pointer: !e.disabled && !(!T.current && e.hideOffsetDates) && !c(T.value),
14887
14887
  dp__cell_disabled: c(T.value),
14888
- dp__cell_highlight: !re(T) && (J(T) || F(T)) && !Y(T) && !A && !$(T) && !(L(T) && e.weekPicker) && !ae,
14889
- dp__cell_highlight_active: !re(T) && (J(T) || F(T)) && Y(T),
14888
+ dp__cell_highlight: !re(T) && (J(T) || B(T)) && !Y(T) && !A && !$(T) && !(L(T) && e.weekPicker) && !ae,
14889
+ dp__cell_highlight_active: !re(T) && (J(T) || B(T)) && Y(T),
14890
14890
  dp__today: !e.noToday && Be(T.value, d.value) && T.current,
14891
14891
  "dp--past": ut(T.value, d.value),
14892
14892
  "dp--future": mt(T.value, d.value)
@@ -14896,12 +14896,12 @@ const yk = ({
14896
14896
  dp__date_hover: E(T)
14897
14897
  }), ne = (T) => {
14898
14898
  if (t.value && !Array.isArray(t.value)) {
14899
- const B = $a(t.value, e.weekStart);
14899
+ const F = $a(t.value, e.weekStart);
14900
14900
  return {
14901
14901
  ...G(T),
14902
- dp__range_start: Be(B[0], T.value),
14903
- dp__range_end: Be(B[1], T.value),
14904
- dp__range_between_week: mt(T.value, B[0]) && ut(T.value, B[1])
14902
+ dp__range_start: Be(F[0], T.value),
14903
+ dp__range_end: Be(F[1], T.value),
14904
+ dp__range_between_week: mt(T.value, F[0]) && ut(T.value, F[1])
14905
14905
  };
14906
14906
  }
14907
14907
  return {
@@ -14909,28 +14909,28 @@ const yk = ({
14909
14909
  };
14910
14910
  }, W = (T) => {
14911
14911
  if (t.value && Array.isArray(t.value)) {
14912
- const B = $a(t.value[0], e.weekStart), ae = t.value[1] ? $a(t.value[1], e.weekStart) : [];
14912
+ const F = $a(t.value[0], e.weekStart), ae = t.value[1] ? $a(t.value[1], e.weekStart) : [];
14913
14913
  return {
14914
14914
  ...G(T),
14915
- dp__range_start: Be(B[0], T.value) || Be(ae[0], T.value),
14916
- dp__range_end: Be(B[1], T.value) || Be(ae[1], T.value),
14917
- dp__range_between_week: mt(T.value, B[0]) && ut(T.value, B[1]) || mt(T.value, ae[0]) && ut(T.value, ae[1]),
14918
- dp__range_between: mt(T.value, B[1]) && ut(T.value, ae[0])
14915
+ dp__range_start: Be(F[0], T.value) || Be(ae[0], T.value),
14916
+ dp__range_end: Be(F[1], T.value) || Be(ae[1], T.value),
14917
+ dp__range_between_week: mt(T.value, F[0]) && ut(T.value, F[1]) || mt(T.value, ae[0]) && ut(T.value, ae[1]),
14918
+ dp__range_between: mt(T.value, F[1]) && ut(T.value, ae[0])
14919
14919
  };
14920
14920
  }
14921
14921
  return {
14922
14922
  ...G(T)
14923
14923
  };
14924
14924
  }, R = (T) => {
14925
- const B = a.value.count > 0 ? T.current && p(T) && U() : p(T) && U(), ae = a.value.count > 0 ? T.current && p(T, !1) && U() : p(T, !1) && U();
14926
- return { isRangeStart: B, isRangeEnd: ae };
14925
+ const F = a.value.count > 0 ? T.current && p(T) && U() : p(T) && U(), ae = a.value.count > 0 ? T.current && p(T, !1) && U() : p(T, !1) && U();
14926
+ return { isRangeStart: F, isRangeEnd: ae };
14927
14927
  }, ie = (T) => {
14928
- const { isRangeStart: B, isRangeEnd: ae } = R(T);
14928
+ const { isRangeStart: F, isRangeEnd: ae } = R(T);
14929
14929
  return {
14930
- dp__range_start: B,
14930
+ dp__range_start: F,
14931
14931
  dp__range_end: ae,
14932
14932
  dp__range_between: L(T),
14933
- dp__date_hover: Be(T.value, u.value) && !B && !ae && !e.weekPicker,
14933
+ dp__date_hover: Be(T.value, u.value) && !F && !ae && !e.weekPicker,
14934
14934
  dp__date_hover_start: w(T, !0),
14935
14935
  dp__date_hover_end: w(T, !1)
14936
14936
  };
@@ -14951,45 +14951,45 @@ const yk = ({
14951
14951
  }
14952
14952
  };
14953
14953
  }, rn = (t) => {
14954
- const { defaultedFilters: e, defaultedRange: a, propDates: n, defaultedMultiDates: o } = st(t), r = (F) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(me(F)) : !!fr(F, n.value.disabledDates) : !1, s = (F) => n.value.maxDate ? t.yearPicker ? Ae(F) > Ae(n.value.maxDate) : mt(F, n.value.maxDate) : !1, l = (F) => n.value.minDate ? t.yearPicker ? Ae(F) < Ae(n.value.minDate) : ut(F, n.value.minDate) : !1, i = (F) => {
14955
- const L = s(F), S = l(F), z = r(F), ne = e.value.months.map((V) => +V).includes(Ve(F)), W = t.disabledWeekDays.length ? t.disabledWeekDays.some((V) => +V === I1(F)) : !1, R = h(F), ie = Ae(F), G = ie < +t.yearRange[0] || ie > +t.yearRange[1];
14954
+ const { defaultedFilters: e, defaultedRange: a, propDates: n, defaultedMultiDates: o } = st(t), r = (B) => n.value.disabledDates ? typeof n.value.disabledDates == "function" ? n.value.disabledDates(me(B)) : !!fr(B, n.value.disabledDates) : !1, s = (B) => n.value.maxDate ? t.yearPicker ? Ae(B) > Ae(n.value.maxDate) : mt(B, n.value.maxDate) : !1, l = (B) => n.value.minDate ? t.yearPicker ? Ae(B) < Ae(n.value.minDate) : ut(B, n.value.minDate) : !1, i = (B) => {
14955
+ const L = s(B), S = l(B), z = r(B), ne = e.value.months.map((V) => +V).includes(Ve(B)), W = t.disabledWeekDays.length ? t.disabledWeekDays.some((V) => +V === I1(B)) : !1, R = h(B), ie = Ae(B), G = ie < +t.yearRange[0] || ie > +t.yearRange[1];
14956
14956
  return !(L || S || z || ne || G || W || R);
14957
- }, c = (F, L) => ut(...za(n.value.minDate, F, L)) || Be(...za(n.value.minDate, F, L)), u = (F, L) => mt(...za(n.value.maxDate, F, L)) || Be(...za(n.value.maxDate, F, L)), d = (F, L, S) => {
14957
+ }, c = (B, L) => ut(...za(n.value.minDate, B, L)) || Be(...za(n.value.minDate, B, L)), u = (B, L) => mt(...za(n.value.maxDate, B, L)) || Be(...za(n.value.maxDate, B, L)), d = (B, L, S) => {
14958
14958
  let z = !1;
14959
- return n.value.maxDate && S && u(F, L) && (z = !0), n.value.minDate && !S && c(F, L) && (z = !0), z;
14960
- }, m = (F, L, S, z) => {
14959
+ return n.value.maxDate && S && u(B, L) && (z = !0), n.value.minDate && !S && c(B, L) && (z = !0), z;
14960
+ }, m = (B, L, S, z) => {
14961
14961
  let ne = !1;
14962
- return z && (n.value.minDate || n.value.maxDate) ? n.value.minDate && n.value.maxDate ? ne = d(F, L, S) : (n.value.minDate && c(F, L) || n.value.maxDate && u(F, L)) && (ne = !0) : ne = !0, ne;
14963
- }, h = (F) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !fr(F, n.value.allowedDates) : !1, _ = (F) => !i(F), y = (F) => a.value.noDisabledRange ? !ed({ start: F[0], end: F[1] }).some((L) => _(L)) : !0, v = (F) => {
14964
- if (F) {
14965
- const L = Ae(F);
14962
+ return z && (n.value.minDate || n.value.maxDate) ? n.value.minDate && n.value.maxDate ? ne = d(B, L, S) : (n.value.minDate && c(B, L) || n.value.maxDate && u(B, L)) && (ne = !0) : ne = !0, ne;
14963
+ }, h = (B) => Array.isArray(n.value.allowedDates) && !n.value.allowedDates.length ? !0 : n.value.allowedDates ? !fr(B, n.value.allowedDates) : !1, _ = (B) => !i(B), y = (B) => a.value.noDisabledRange ? !ed({ start: B[0], end: B[1] }).some((L) => _(L)) : !0, v = (B) => {
14964
+ if (B) {
14965
+ const L = Ae(B);
14966
14966
  return L >= +t.yearRange[0] && L <= t.yearRange[1];
14967
14967
  }
14968
14968
  return !0;
14969
- }, p = (F, L) => !!(Array.isArray(F) && F[L] && (a.value.maxRange || a.value.minRange) && v(F[L])), w = (F, L, S = 0) => {
14970
- if (p(L, S) && v(F)) {
14971
- const z = Zc(F, L[S]), ne = kd(L[S], F), W = ne.length === 1 ? 0 : ne.filter((ie) => _(ie)).length, R = Math.abs(z) - (a.value.minMaxRawRange ? 0 : W);
14969
+ }, p = (B, L) => !!(Array.isArray(B) && B[L] && (a.value.maxRange || a.value.minRange) && v(B[L])), w = (B, L, S = 0) => {
14970
+ if (p(L, S) && v(B)) {
14971
+ const z = Zc(B, L[S]), ne = kd(L[S], B), W = ne.length === 1 ? 0 : ne.filter((ie) => _(ie)).length, R = Math.abs(z) - (a.value.minMaxRawRange ? 0 : W);
14972
14972
  if (a.value.minRange && a.value.maxRange)
14973
14973
  return R >= +a.value.minRange && R <= +a.value.maxRange;
14974
14974
  if (a.value.minRange) return R >= +a.value.minRange;
14975
14975
  if (a.value.maxRange) return R <= +a.value.maxRange;
14976
14976
  }
14977
14977
  return !0;
14978
- }, g = () => !t.enableTimePicker || t.monthPicker || t.yearPicker || t.ignoreTimeValidation, k = (F) => Array.isArray(F) ? [F[0] ? rs(F[0]) : null, F[1] ? rs(F[1]) : null] : rs(F), D = (F, L, S) => F.find(
14978
+ }, g = () => !t.enableTimePicker || t.monthPicker || t.yearPicker || t.ignoreTimeValidation, k = (B) => Array.isArray(B) ? [B[0] ? rs(B[0]) : null, B[1] ? rs(B[1]) : null] : rs(B), D = (B, L, S) => B.find(
14979
14979
  (z) => +z.hours === Na(L) && z.minutes === "*" ? !0 : +z.minutes === Qa(L) && +z.hours === Na(L)
14980
- ) && S, $ = (F, L, S) => {
14981
- const [z, ne] = F, [W, R] = L;
14980
+ ) && S, $ = (B, L, S) => {
14981
+ const [z, ne] = B, [W, R] = L;
14982
14982
  return !D(z, W, S) && !D(ne, R, S) && S;
14983
- }, P = (F, L) => {
14983
+ }, P = (B, L) => {
14984
14984
  const S = Array.isArray(L) ? L : [L];
14985
- return Array.isArray(t.disabledTimes) ? Array.isArray(t.disabledTimes[0]) ? $(t.disabledTimes, S, F) : !S.some((z) => D(t.disabledTimes, z, F)) : F;
14986
- }, H = (F, L) => {
14985
+ return Array.isArray(t.disabledTimes) ? Array.isArray(t.disabledTimes[0]) ? $(t.disabledTimes, S, B) : !S.some((z) => D(t.disabledTimes, z, B)) : B;
14986
+ }, H = (B, L) => {
14987
14987
  const S = Array.isArray(L) ? [bn(L[0]), L[1] ? bn(L[1]) : void 0] : bn(L), z = !t.disabledTimes(S);
14988
- return F && z;
14989
- }, U = (F, L) => t.disabledTimes ? Array.isArray(t.disabledTimes) ? P(L, F) : H(L, F) : L, E = (F) => {
14988
+ return B && z;
14989
+ }, U = (B, L) => t.disabledTimes ? Array.isArray(t.disabledTimes) ? P(L, B) : H(L, B) : L, E = (B) => {
14990
14990
  let L = !0;
14991
- if (!F || g()) return !0;
14992
- const S = !n.value.minDate && !n.value.maxDate ? k(F) : F;
14991
+ if (!B || g()) return !0;
14992
+ const S = !n.value.minDate && !n.value.maxDate ? k(B) : B;
14993
14993
  return (t.maxTime || n.value.maxDate) && (L = cu(
14994
14994
  t.maxTime,
14995
14995
  n.value.maxDate,
@@ -15002,11 +15002,11 @@ const yk = ({
15002
15002
  "min",
15003
15003
  kt(S),
15004
15004
  L
15005
- )), U(F, L);
15006
- }, Y = (F) => {
15005
+ )), U(B, L);
15006
+ }, Y = (B) => {
15007
15007
  if (!t.monthPicker) return !0;
15008
15008
  let L = !0;
15009
- const S = me(la(F));
15009
+ const S = me(la(B));
15010
15010
  if (n.value.minDate && n.value.maxDate) {
15011
15011
  const z = me(la(n.value.minDate)), ne = me(la(n.value.maxDate));
15012
15012
  return mt(S, z) && ut(S, ne) || Be(S, z) || Be(S, ne);
@@ -15020,7 +15020,7 @@ const yk = ({
15020
15020
  L = ut(S, z) || Be(S, z);
15021
15021
  }
15022
15022
  return L;
15023
- }, J = I(() => (F) => !t.enableTimePicker || t.ignoreTimeValidation ? !0 : E(F)), re = I(() => (F) => t.monthPicker ? Array.isArray(F) && (a.value.enabled || o.value.enabled) ? !F.filter((L) => !Y(L)).length : Y(F) : !0);
15023
+ }, J = I(() => (B) => !t.enableTimePicker || t.ignoreTimeValidation ? !0 : E(B)), re = I(() => (B) => t.monthPicker ? Array.isArray(B) && (a.value.enabled || o.value.enabled) ? !B.filter((L) => !Y(L)).length : Y(B) : !0);
15024
15024
  return {
15025
15025
  isDisabled: _,
15026
15026
  validateDate: i,
@@ -15129,10 +15129,10 @@ const yk = ({
15129
15129
  }, $ = (R) => {
15130
15130
  const { rangeSeparator: ie } = r.value, [G, V] = R.split(`${ie}`);
15131
15131
  if (G) {
15132
- const T = D(G.trim()), B = V ? D(V.trim()) : null;
15133
- if (Jn(T, B)) return;
15134
- const ae = T && B ? [T, B] : [T];
15135
- _(B, ae, 0) && (y.value = T ? ae : null);
15132
+ const T = D(G.trim()), F = V ? D(V.trim()) : null;
15133
+ if (Jn(T, F)) return;
15134
+ const ae = T && F ? [T, F] : [T];
15135
+ _(F, ae, 0) && (y.value = T ? ae : null);
15136
15136
  }
15137
15137
  }, P = () => {
15138
15138
  w.value = !0;
@@ -15162,7 +15162,7 @@ const yk = ({
15162
15162
  if (r.value.openMenu === "open" && !o.isMenuOpen) return n("open");
15163
15163
  if (r.value.openMenu === "toggle") return n("toggle");
15164
15164
  } else r.value.enabled || n("toggle");
15165
- }, F = () => {
15165
+ }, B = () => {
15166
15166
  n("real-blur"), p.value = !1, (!o.isMenuOpen || l.value.enabled && l.value.input) && n("blur"), o.autoApply && r.value.enabled && y.value && !o.isMenuOpen && (n("set-input-date", y.value), n("select-date"), y.value = null);
15167
15167
  }, L = (R) => {
15168
15168
  Xa(R, i.value, !0), n("clear");
@@ -15195,7 +15195,7 @@ const yk = ({
15195
15195
  onEnter: E,
15196
15196
  onTab: Y,
15197
15197
  onClear: L,
15198
- onBlur: F,
15198
+ onBlur: B,
15199
15199
  onKeypress: S,
15200
15200
  onPaste: P,
15201
15201
  onFocus: J,
@@ -15222,19 +15222,19 @@ const yk = ({
15222
15222
  "aria-disabled": R.disabled || void 0,
15223
15223
  "aria-invalid": R.state === !1 ? !0 : void 0,
15224
15224
  onInput: U,
15225
- onBlur: F,
15225
+ onBlur: B,
15226
15226
  onFocus: J,
15227
15227
  onKeypress: S,
15228
- onKeydown: ie[0] || (ie[0] = (B) => S(B)),
15228
+ onKeydown: ie[0] || (ie[0] = (F) => S(F)),
15229
15229
  onPaste: P
15230
15230
  }, null, 42, Dk)),
15231
15231
  C("div", {
15232
- onClick: ie[3] || (ie[3] = (B) => n("toggle"))
15232
+ onClick: ie[3] || (ie[3] = (F) => n("toggle"))
15233
15233
  }, [
15234
15234
  R.$slots["input-icon"] && !R.hideInputIcon ? (f(), b("span", {
15235
15235
  key: 0,
15236
15236
  class: "dp__input_icon",
15237
- onClick: ie[1] || (ie[1] = (B) => n("toggle"))
15237
+ onClick: ie[1] || (ie[1] = (F) => n("toggle"))
15238
15238
  }, [
15239
15239
  ee(R.$slots, "input-icon")
15240
15240
  ])) : x("", !0),
@@ -15242,7 +15242,7 @@ const yk = ({
15242
15242
  key: 1,
15243
15243
  "aria-label": (V = O(s)) == null ? void 0 : V.calendarIcon,
15244
15244
  class: "dp__input_icon dp__input_icons",
15245
- onClick: ie[2] || (ie[2] = (B) => n("toggle"))
15245
+ onClick: ie[2] || (ie[2] = (F) => n("toggle"))
15246
15246
  }, null, 8, ["aria-label"])) : x("", !0)
15247
15247
  ]),
15248
15248
  R.$slots["clear-icon"] && t.inputValue && R.clearable && !R.disabled && !R.readonly ? (f(), b("span", $k, [
@@ -15253,8 +15253,8 @@ const yk = ({
15253
15253
  "aria-label": (T = O(s)) == null ? void 0 : T.clearInput,
15254
15254
  class: "dp--clear-btn",
15255
15255
  type: "button",
15256
- onKeydown: ie[4] || (ie[4] = (B) => O(It)(B, () => L(B), !0, W)),
15257
- onClick: ie[5] || (ie[5] = Ye((B) => L(B), ["prevent"]))
15256
+ onKeydown: ie[4] || (ie[4] = (F) => O(It)(F, () => L(F), !0, W)),
15257
+ onClick: ie[5] || (ie[5] = Ye((F) => L(F), ["prevent"]))
15258
15258
  }, [
15259
15259
  ce(O(hd), {
15260
15260
  class: "dp__input_icons",
@@ -15330,9 +15330,9 @@ const yk = ({
15330
15330
  defaultedConfig: E,
15331
15331
  defaultedRange: Y,
15332
15332
  defaultedMultiDates: J
15333
- } = st(o), { menuTransition: re, showTransition: F } = No(P);
15333
+ } = st(o), { menuTransition: re, showTransition: B } = No(P);
15334
15334
  nt(() => {
15335
- B(o.modelValue), yt().then(() => {
15335
+ F(o.modelValue), yt().then(() => {
15336
15336
  if (!U.value.enabled) {
15337
15337
  const te = ie(h.value);
15338
15338
  te == null || te.addEventListener("scroll", he), window == null || window.addEventListener("resize", Z);
@@ -15349,7 +15349,7 @@ const yk = ({
15349
15349
  at(
15350
15350
  [l, i],
15351
15351
  () => {
15352
- B(l.value);
15352
+ F(l.value);
15353
15353
  },
15354
15354
  { deep: !0 }
15355
15355
  );
@@ -15365,7 +15365,7 @@ const yk = ({
15365
15365
  }), {
15366
15366
  inputValue: V,
15367
15367
  internalModelValue: T,
15368
- parseExternalModelValue: B,
15368
+ parseExternalModelValue: F,
15369
15369
  emitModelValue: ae,
15370
15370
  formatInputValue: A,
15371
15371
  checkBeforeEmit: be
@@ -15396,7 +15396,7 @@ const yk = ({
15396
15396
  }, X = (te) => {
15397
15397
  y.value = te.shiftKey;
15398
15398
  }, pe = () => {
15399
- !o.disabled && !o.readonly && (G(mu, o), R(!1), s.value = !0, s.value && n("open"), s.value || Ba(), B(o.modelValue));
15399
+ !o.disabled && !o.readonly && (G(mu, o), R(!1), s.value = !0, s.value && n("open"), s.value || Ba(), F(o.modelValue));
15400
15400
  }, ke = () => {
15401
15401
  var te;
15402
15402
  V.value = "", Ba(), (te = d.value) == null || te.setParsedDate(null), n("update:model-value", null), n("update:model-timezone-value", null), n("cleared"), E.value.closeOnClearValue && Dt();
@@ -15414,7 +15414,7 @@ const yk = ({
15414
15414
  }, Ba = () => {
15415
15415
  H.value.enabled || (T.value = null);
15416
15416
  }, Dt = () => {
15417
- U.value.enabled || (s.value && (s.value = !1, W.value = !1, w(!1), g(!1), k(), n("closed"), V.value && B(l.value)), Ba(), n("blur"));
15417
+ U.value.enabled || (s.value && (s.value = !1, W.value = !1, w(!1), g(!1), k(), n("closed"), V.value && F(l.value)), Ba(), n("blur"));
15418
15418
  }, Fa = (te, _e, Ce = !1) => {
15419
15419
  if (!te) {
15420
15420
  T.value = null;
@@ -15431,7 +15431,7 @@ const yk = ({
15431
15431
  }, jr = () => {
15432
15432
  H.value.enabled && (m.value = !0, A()), n("focus");
15433
15433
  }, zr = () => {
15434
- if (H.value.enabled && (m.value = !1, B(o.modelValue), _.value)) {
15434
+ if (H.value.enabled && (m.value = !1, F(o.modelValue), _.value)) {
15435
15435
  const te = zw(h.value, y.value);
15436
15436
  te == null || te.focus();
15437
15437
  }
@@ -15442,7 +15442,7 @@ const yk = ({
15442
15442
  year: su(te.year)
15443
15443
  });
15444
15444
  }, Xr = (te) => {
15445
- B(te ?? o.modelValue);
15445
+ F(te ?? o.modelValue);
15446
15446
  }, Kr = (te, _e) => {
15447
15447
  var Ce;
15448
15448
  (Ce = u.value) == null || Ce.switchView(te, _e);
@@ -15502,7 +15502,7 @@ const yk = ({
15502
15502
  default: le(() => [
15503
15503
  ce(Pt, {
15504
15504
  name: O(re)(O(z)),
15505
- css: O(F) && !O(U).enabled
15505
+ css: O(B) && !O(U).enabled
15506
15506
  }, {
15507
15507
  default: le(() => [
15508
15508
  s.value ? (f(), b("div", tt({
@@ -15715,7 +15715,7 @@ const Ik = {
15715
15715
  setup(t, { emit: e }) {
15716
15716
  const a = t, n = e, o = j(a.initialDelay === 0), r = j(0), s = I(() => a.steps[r.value]), l = I(() => r.value === a.steps.length - 1), i = j(!1), c = j(), u = j({ bottom: "40px", left: "24px" }), d = j(null), m = I(() => {
15717
15717
  if (!d.value) return {};
15718
- const { top: E, left: Y, width: J, height: re } = d.value, F = Y + J, L = E + re, S = window.innerWidth, z = window.innerHeight, ne = (W, R) => `${W}px ${R}px`;
15718
+ const { top: E, left: Y, width: J, height: re } = d.value, B = Y + J, L = E + re, S = window.innerWidth, z = window.innerHeight, ne = (W, R) => `${W}px ${R}px`;
15719
15719
  return {
15720
15720
  clipPath: `polygon(${[
15721
15721
  ne(0, 0),
@@ -15725,8 +15725,8 @@ const Ik = {
15725
15725
  ne(0, 0),
15726
15726
  ne(Y, E),
15727
15727
  ne(Y, L),
15728
- ne(F, L),
15729
- ne(F, E),
15728
+ ne(B, L),
15729
+ ne(B, E),
15730
15730
  ne(Y, E)
15731
15731
  ].join(", ")})`
15732
15732
  };
@@ -15754,7 +15754,7 @@ const Ik = {
15754
15754
  width: re.width,
15755
15755
  height: re.height
15756
15756
  };
15757
- const F = Y ? await y(Y) : J, L = (F == null ? void 0 : F.rect) ?? re, S = ((G = c.value) == null ? void 0 : G.offsetHeight) ?? 200, { offsetY: z = 0 } = s.value, ne = L.top + L.height / 2, W = Math.max(16, ne - S / 2 + z), R = L.left - Jk - eC, ie = Math.round(Math.max(10, Math.min(90, (ne - W) / S * 100)));
15757
+ const B = Y ? await y(Y) : J, L = (B == null ? void 0 : B.rect) ?? re, S = ((G = c.value) == null ? void 0 : G.offsetHeight) ?? 200, { offsetY: z = 0 } = s.value, ne = L.top + L.height / 2, W = Math.max(16, ne - S / 2 + z), R = L.left - Jk - eC, ie = Math.round(Math.max(10, Math.min(90, (ne - W) / S * 100)));
15758
15758
  u.value = { top: `${W}px`, left: `${R}px`, "--arrow-top": `${ie}%` }, U(E);
15759
15759
  }, p = async (E) => {
15760
15760
  if (i.value) return;
@@ -15907,8 +15907,8 @@ const Ik = {
15907
15907
  setup(t, { expose: e, emit: a }) {
15908
15908
  const n = t, o = a, r = j(""), s = j(), l = Lo(t, "modelValue"), i = j([]), c = (p) => !n.maxTextLength || p.length <= n.maxTextLength ? p : `${p.slice(0, n.maxTextLength - 1)}…`, u = (p) => {
15909
15909
  const { conjunctionText: w, moreText: g, maxQtyVisibleFilters: k } = n, D = ", ", $ = k === 1 ? 1 : k - 1, P = (J) => {
15910
- const re = J.slice(0, -1).join(D), F = J[J.length - 1];
15911
- return `${re} ${w} ${F}`;
15910
+ const re = J.slice(0, -1).join(D), B = J[J.length - 1];
15911
+ return `${re} ${w} ${B}`;
15912
15912
  }, H = p.length === 0, U = p.length === 2 && $ !== 1, E = p.length > $ && p.length <= k, Y = p.length > k;
15913
15913
  if (H) return "";
15914
15914
  if (U)
@@ -17865,9 +17865,9 @@ function QT(t, e, a, n) {
17865
17865
  return e.value && ((J = Y == null ? void 0 : Y.columnDef.meta) == null ? void 0 : J.disableReorder) !== !0 && !o(E) && !r(E);
17866
17866
  }, i = () => new Set(t.getVisibleLeafColumns().map((E) => E.id)), c = () => {
17867
17867
  let E = t.getState().columnOrder;
17868
- E.length === 0 && (E = t.getAllLeafColumns().map((J) => J.id));
17869
- const Y = i();
17870
- return s(E.filter((J) => Y.has(J)));
17868
+ E.length === 0 && (E = t.getAllLeafColumns().map((L) => L.id));
17869
+ const Y = i(), J = E.filter((L) => Y.has(L)), re = new Set(J), B = t.getAllLeafColumns().map((L) => L.id).filter((L) => Y.has(L) && !re.has(L));
17870
+ return s([...J, ...B]);
17871
17871
  }, u = (E, Y) => {
17872
17872
  const J = E.headers.find((re) => re.column.id === Y);
17873
17873
  return J ? [J] : [];
@@ -17908,9 +17908,9 @@ function QT(t, e, a, n) {
17908
17908
  Y && n("column-reorder-cancel", { columnId: Y, method: "pointer" });
17909
17909
  }
17910
17910
  }), _ = I(() => {
17911
- const E = i(), Y = s(h.value).filter((W) => E.has(W)), J = new Set(Y), re = t.getAllLeafColumns().map((W) => W.id).filter((W) => E.has(W) && !J.has(W)), F = s([...Y, ...re]);
17912
- if (!a.value) return F;
17913
- const { left: L = [], right: S = [] } = t.getState().columnPinning, z = new Set([...L, ...S].filter((W) => E.has(W))), ne = F.filter((W) => !z.has(W));
17911
+ const E = i(), Y = s(h.value).filter((W) => E.has(W)), J = new Set(Y), re = t.getAllLeafColumns().map((W) => W.id).filter((W) => E.has(W) && !J.has(W)), B = s([...Y, ...re]);
17912
+ if (!a.value) return B;
17913
+ const { left: L = [], right: S = [] } = t.getState().columnPinning, z = new Set([...L, ...S].filter((W) => E.has(W))), ne = B.filter((W) => !z.has(W));
17914
17914
  return s([
17915
17915
  ...L.filter((W) => z.has(W)),
17916
17916
  ...ne,
@@ -17918,9 +17918,18 @@ function QT(t, e, a, n) {
17918
17918
  ]);
17919
17919
  });
17920
17920
  at(
17921
- [() => t.getState().columnPinning, () => t.getState().columnVisibility],
17922
- () => {
17923
- h.value = _.value;
17921
+ [
17922
+ () => t.getState().columnPinning,
17923
+ () => t.getState().columnVisibility,
17924
+ () => t.getAllLeafColumns().map((E) => E.id).join(",")
17925
+ ],
17926
+ ([
17927
+ ,
17928
+ ,
17929
+ E
17930
+ ], Y) => {
17931
+ const J = Y == null ? void 0 : Y[2], re = J !== void 0 && E !== J;
17932
+ h.value = re ? c() : _.value;
17924
17933
  },
17925
17934
  { deep: !0, flush: "sync", immediate: !0 }
17926
17935
  );
@@ -17934,12 +17943,12 @@ function QT(t, e, a, n) {
17934
17943
  var Y;
17935
17944
  await yt(), (Y = v[E]) == null || Y.focus();
17936
17945
  }, D = (E, Y) => {
17937
- const J = h.value, re = J.indexOf(E), F = re + Y;
17938
- if (re === -1 || F < 0 || F >= J.length) return;
17946
+ const J = h.value, re = J.indexOf(E), B = re + Y;
17947
+ if (re === -1 || B < 0 || B >= J.length) return;
17939
17948
  const L = [...J];
17940
- L.splice(re, 1), L.splice(F, 0, E);
17949
+ L.splice(re, 1), L.splice(B, 0, E);
17941
17950
  const S = s(L);
17942
- h.value = S, t.setColumnOrder(S), n("column-reorder", { columnId: E, fromIndex: re, toIndex: F, columnOrder: S, method: "keyboard" }), k(E);
17951
+ h.value = S, t.setColumnOrder(S), n("column-reorder", { columnId: E, fromIndex: re, toIndex: B, columnOrder: S, method: "keyboard" }), k(E);
17943
17952
  }, $ = (E) => {
17944
17953
  p.value = E, w = [...h.value];
17945
17954
  }, P = () => {
@@ -18107,7 +18116,7 @@ const tD = { class: "co-table-headless__head" }, aD = ["data-column-id", "aria-s
18107
18116
  } = ZT(a.table, h, n), { isGroupFollower: E } = hl(a.table), Y = I(() => h.value ? { position: "sticky", left: "0px" } : {}), J = I(() => a.allowBulkActions ? 40 : 0), re = (W) => {
18108
18117
  const R = D(W), ie = a.pinMenuLabels;
18109
18118
  return R ? [{ id: "unpin", icon: "icon-x-close", text: (ie == null ? void 0 : ie.unpin) ?? "Desfijar columna" }] : [{ id: "pin-left", icon: "icon-chevrons-left", text: (ie == null ? void 0 : ie.pinLeft) ?? "Fijar a la izquierda" }, { id: "pin-right", icon: "icon-chevrons-right", text: (ie == null ? void 0 : ie.pinRight) ?? "Fijar a la derecha" }];
18110
- }, F = (W, R) => {
18119
+ }, B = (W, R) => {
18111
18120
  R.id === "unpin" && P(W, !1), R.id === "pin-left" && P(W, "left"), R.id === "pin-right" && P(W, "right");
18112
18121
  }, L = I(() => a.enableColumnResizing), { isColumnResizable: S, resizingStyleFor: z, handleResizeStart: ne } = eD(L);
18113
18122
  return (W, R) => {
@@ -18141,7 +18150,7 @@ const tD = { class: "co-table-headless__head" }, aD = ["data-column-id", "aria-s
18141
18150
  ], 6)) : x("", !0),
18142
18151
  (f(!0), b(ye, null, Ee(O(_), (V) => (f(), b(ye, { key: V }, [
18143
18152
  (f(!0), b(ye, null, Ee(O(w)(G, V), (T) => {
18144
- var B, ae;
18153
+ var F, ae;
18145
18154
  return f(), b("th", {
18146
18155
  key: T.id,
18147
18156
  ref_for: !0,
@@ -18166,7 +18175,7 @@ const tD = { class: "co-table-headless__head" }, aD = ["data-column-id", "aria-s
18166
18175
  onKeydown: (A) => O(k)(A, V)
18167
18176
  }, [
18168
18177
  C("div", {
18169
- class: N([[(B = T.column.columnDef.meta) == null ? void 0 : B.headerClass], "d-flex align-items-center"])
18178
+ class: N([[(F = T.column.columnDef.meta) == null ? void 0 : F.headerClass], "d-flex align-items-center"])
18170
18179
  }, [
18171
18180
  C("span", nD, q(T.column.columnDef.header), 1),
18172
18181
  (ae = T.column.columnDef.meta) != null && ae.columnInfo ? Re((f(), b("span", {
@@ -18194,7 +18203,7 @@ const tD = { class: "co-table-headless__head" }, aD = ["data-column-id", "aria-s
18194
18203
  options: re(V),
18195
18204
  onClick: R[1] || (R[1] = Ye(() => {
18196
18205
  }, ["stop"])),
18197
- onClickOption: (A) => F(V, A)
18206
+ onClickOption: (A) => B(V, A)
18198
18207
  }, null, 8, ["options", "onClickOption"])) : x("", !0)
18199
18208
  ], 2),
18200
18209
  O(S)(T.column) && !O(E)(V) ? (f(), b("div", {
@@ -18269,7 +18278,7 @@ const tD = { class: "co-table-headless__head" }, aD = ["data-column-id", "aria-s
18269
18278
  "co-table-headless__cell--pinned-boundary-right": O(U)(V.column) && O(D)(V.column.id) === "right"
18270
18279
  }
18271
18280
  ]),
18272
- onClick: (B) => {
18281
+ onClick: (F) => {
18273
18282
  var ae;
18274
18283
  return (ae = a.onRowClick) == null ? void 0 : ae.call(a, G.original);
18275
18284
  }
@@ -20691,18 +20700,18 @@ function fx(t, e, a, n) {
20691
20700
  weekStartsOn: P,
20692
20701
  locale: D
20693
20702
  }, U = [new k$()], E = g.match(ix).map(function(T) {
20694
- var B = T[0];
20695
- if (B in Tu) {
20696
- var ae = Tu[B];
20703
+ var F = T[0];
20704
+ if (F in Tu) {
20705
+ var ae = Tu[F];
20697
20706
  return ae(T, D.formatLong);
20698
20707
  }
20699
20708
  return T;
20700
20709
  }).join("").match(sx), Y = [], J = xu(E), re;
20701
20710
  try {
20702
- var F = function() {
20703
- var B = re.value;
20704
- !(n != null && n.useAdditionalWeekYearTokens) && ND(B) && Du(B, g, t), !(n != null && n.useAdditionalDayOfYearTokens) && ID(B) && Du(B, g, t);
20705
- var ae = B[0], A = rx[ae];
20711
+ var B = function() {
20712
+ var F = re.value;
20713
+ !(n != null && n.useAdditionalWeekYearTokens) && ND(F) && Du(F, g, t), !(n != null && n.useAdditionalDayOfYearTokens) && ID(F) && Du(F, g, t);
20714
+ var ae = F[0], A = rx[ae];
20706
20715
  if (A) {
20707
20716
  var be = A.incompatibleTokens;
20708
20717
  if (Array.isArray(be)) {
@@ -20710,14 +20719,14 @@ function fx(t, e, a, n) {
20710
20719
  return be.includes(Q.token) || Q.token === ae;
20711
20720
  });
20712
20721
  if (xe)
20713
- throw new RangeError("The format string mustn't contain `".concat(xe.fullToken, "` and `").concat(B, "` at the same time"));
20722
+ throw new RangeError("The format string mustn't contain `".concat(xe.fullToken, "` and `").concat(F, "` at the same time"));
20714
20723
  } else if (A.incompatibleTokens === "*" && Y.length > 0)
20715
- throw new RangeError("The format string mustn't contain `".concat(B, "` and any other token at the same time"));
20724
+ throw new RangeError("The format string mustn't contain `".concat(F, "` and any other token at the same time"));
20716
20725
  Y.push({
20717
20726
  token: ae,
20718
- fullToken: B
20727
+ fullToken: F
20719
20728
  });
20720
- var Ue = A.run(w, B, D.match, H);
20729
+ var Ue = A.run(w, F, D.match, H);
20721
20730
  if (!Ue)
20722
20731
  return {
20723
20732
  v: /* @__PURE__ */ new Date(NaN)
@@ -20726,8 +20735,8 @@ function fx(t, e, a, n) {
20726
20735
  } else {
20727
20736
  if (ae.match(dx))
20728
20737
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + ae + "`");
20729
- if (B === "''" ? B = "'" : ae === "'" && (B = px(B)), w.indexOf(B) === 0)
20730
- w = w.slice(B.length);
20738
+ if (F === "''" ? F = "'" : ae === "'" && (F = px(F)), w.indexOf(F) === 0)
20739
+ w = w.slice(F.length);
20731
20740
  else
20732
20741
  return {
20733
20742
  v: /* @__PURE__ */ new Date(NaN)
@@ -20735,7 +20744,7 @@ function fx(t, e, a, n) {
20735
20744
  }
20736
20745
  };
20737
20746
  for (J.s(); !(re = J.n()).done; ) {
20738
- var L = F();
20747
+ var L = B();
20739
20748
  if (Ja(L) === "object") return L.v;
20740
20749
  }
20741
20750
  } catch (T) {
@@ -20747,15 +20756,15 @@ function fx(t, e, a, n) {
20747
20756
  return /* @__PURE__ */ new Date(NaN);
20748
20757
  var S = U.map(function(T) {
20749
20758
  return T.priority;
20750
- }).sort(function(T, B) {
20751
- return B - T;
20752
- }).filter(function(T, B, ae) {
20753
- return ae.indexOf(T) === B;
20759
+ }).sort(function(T, F) {
20760
+ return F - T;
20761
+ }).filter(function(T, F, ae) {
20762
+ return ae.indexOf(T) === F;
20754
20763
  }).map(function(T) {
20755
- return U.filter(function(B) {
20756
- return B.priority === T;
20757
- }).sort(function(B, ae) {
20758
- return ae.subPriority - B.subPriority;
20764
+ return U.filter(function(F) {
20765
+ return F.priority === T;
20766
+ }).sort(function(F, ae) {
20767
+ return ae.subPriority - F.subPriority;
20759
20768
  });
20760
20769
  }).map(function(T) {
20761
20770
  return T[0];
@@ -22290,12 +22299,12 @@ var Ux = mi.exports;
22290
22299
  }), e.default = g;
22291
22300
  var n = a(hx), o = a(bx), r = a(Da), s = a(xx), l = a(Ex), i = a(ff), c = Bo, u = a(Mn), d = a(Ft), m = Sn, h = a(Ux), _ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, y = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, v = /^'([^]*?)'?$/, p = /''/g, w = /[a-zA-Z]/;
22292
22301
  function g(D, $, P) {
22293
- var H, U, E, Y, J, re, F, L, S, z, ne, W, R, ie, G, V, T, B;
22302
+ var H, U, E, Y, J, re, B, L, S, z, ne, W, R, ie, G, V, T, F;
22294
22303
  (0, d.default)(2, arguments);
22295
- var ae = String($), A = (0, m.getDefaultOptions)(), be = (H = (U = P == null ? void 0 : P.locale) !== null && U !== void 0 ? U : A.locale) !== null && H !== void 0 ? H : h.default, xe = (0, u.default)((E = (Y = (J = (re = P == null ? void 0 : P.firstWeekContainsDate) !== null && re !== void 0 ? re : P == null || (F = P.locale) === null || F === void 0 || (L = F.options) === null || L === void 0 ? void 0 : L.firstWeekContainsDate) !== null && J !== void 0 ? J : A.firstWeekContainsDate) !== null && Y !== void 0 ? Y : (S = A.locale) === null || S === void 0 || (z = S.options) === null || z === void 0 ? void 0 : z.firstWeekContainsDate) !== null && E !== void 0 ? E : 1);
22304
+ var ae = String($), A = (0, m.getDefaultOptions)(), be = (H = (U = P == null ? void 0 : P.locale) !== null && U !== void 0 ? U : A.locale) !== null && H !== void 0 ? H : h.default, xe = (0, u.default)((E = (Y = (J = (re = P == null ? void 0 : P.firstWeekContainsDate) !== null && re !== void 0 ? re : P == null || (B = P.locale) === null || B === void 0 || (L = B.options) === null || L === void 0 ? void 0 : L.firstWeekContainsDate) !== null && J !== void 0 ? J : A.firstWeekContainsDate) !== null && Y !== void 0 ? Y : (S = A.locale) === null || S === void 0 || (z = S.options) === null || z === void 0 ? void 0 : z.firstWeekContainsDate) !== null && E !== void 0 ? E : 1);
22296
22305
  if (!(xe >= 1 && xe <= 7))
22297
22306
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
22298
- var Ue = (0, u.default)((ne = (W = (R = (ie = P == null ? void 0 : P.weekStartsOn) !== null && ie !== void 0 ? ie : P == null || (G = P.locale) === null || G === void 0 || (V = G.options) === null || V === void 0 ? void 0 : V.weekStartsOn) !== null && R !== void 0 ? R : A.weekStartsOn) !== null && W !== void 0 ? W : (T = A.locale) === null || T === void 0 || (B = T.options) === null || B === void 0 ? void 0 : B.weekStartsOn) !== null && ne !== void 0 ? ne : 0);
22307
+ var Ue = (0, u.default)((ne = (W = (R = (ie = P == null ? void 0 : P.weekStartsOn) !== null && ie !== void 0 ? ie : P == null || (G = P.locale) === null || G === void 0 || (V = G.options) === null || V === void 0 ? void 0 : V.weekStartsOn) !== null && R !== void 0 ? R : A.weekStartsOn) !== null && W !== void 0 ? W : (T = A.locale) === null || T === void 0 || (F = T.options) === null || F === void 0 ? void 0 : F.weekStartsOn) !== null && ne !== void 0 ? ne : 0);
22299
22308
  if (!(Ue >= 0 && Ue <= 6))
22300
22309
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
22301
22310
  if (!be.localize)
@@ -23110,7 +23119,7 @@ const GE = { class: "co-filter dropdown cobre-dropdown" }, QE = {
23110
23119
  },
23111
23120
  emits: ["change", "update:modelValue"],
23112
23121
  setup(t, { expose: e, emit: a }) {
23113
- var Y, J, re, F;
23122
+ var Y, J, re, B;
23114
23123
  const n = /^last(\d+)$/, o = j(), r = j(), s = { locale: KE }, l = t, i = j(l.defaultType), c = j(!1), u = j(!1), d = j(), m = j(), h = a, _ = () => {
23115
23124
  const L = Zo(/* @__PURE__ */ new Date(), "yyyy-MM-dd");
23116
23125
  D(
@@ -23155,7 +23164,7 @@ const GE = { class: "co-filter dropdown cobre-dropdown" }, QE = {
23155
23164
  type: l.modelValue.type ?? "range"
23156
23165
  };
23157
23166
  } else if (l.defaultType) {
23158
- const L = (F = (re = l.availableTypes) == null ? void 0 : re.find((S) => S.type === l.defaultType)) == null ? void 0 : F.isFixedDate;
23167
+ const L = (B = (re = l.availableTypes) == null ? void 0 : re.find((S) => S.type === l.defaultType)) == null ? void 0 : B.isFixedDate;
23159
23168
  v({ type: l.defaultType, isFixedDate: L ?? !1 });
23160
23169
  }
23161
23170
  const p = I(() => {
@@ -23379,7 +23388,7 @@ const GE = { class: "co-filter dropdown cobre-dropdown" }, QE = {
23379
23388
  class: N([{ "overflow-auto": y.overflow }, "row g-3"])
23380
23389
  }, [
23381
23390
  (f(!0), b(ye, null, Ee(l.value, (p) => {
23382
- var w, g, k, D, $, P, H, U, E, Y, J, re, F, L, S, z, ne, W, R, ie, G, V, T, B, ae, A, be, xe, Ue, Q, fe, M, oe, he, Z;
23391
+ var w, g, k, D, $, P, H, U, E, Y, J, re, B, L, S, z, ne, W, R, ie, G, V, T, F, ae, A, be, xe, Ue, Q, fe, M, oe, he, Z;
23383
23392
  return f(), b(ye, {
23384
23393
  key: p.id
23385
23394
  }, [
@@ -23443,7 +23452,7 @@ const GE = { class: "co-filter dropdown cobre-dropdown" }, QE = {
23443
23452
  modelValue: p.value,
23444
23453
  "onUpdate:modelValue": [(ue) => p.value = ue, (ue) => u(p.id, ue)],
23445
23454
  class: N(p.className),
23446
- label: ((F = p.props) == null ? void 0 : F.label) || "label",
23455
+ label: ((B = p.props) == null ? void 0 : B.label) || "label",
23447
23456
  reduce: ((L = p.props) == null ? void 0 : L.reduce) || ((ue) => ue.value),
23448
23457
  labelName: p.label,
23449
23458
  options: p.options,
@@ -23482,7 +23491,7 @@ const GE = { class: "co-filter dropdown cobre-dropdown" }, QE = {
23482
23491
  labelTooltip: (T = p.props) == null ? void 0 : T.labelTooltip
23483
23492
  }, null, 8, ["id", "currencySelected", "modelValue", "onUpdate:modelValue", "class", "isRequired", "placeholder", "errorMsg", "min", "currencies", "label", "labelOptional", "isCurrencyDisabled", "labelTooltip"])
23484
23493
  ], 2)) : x("", !0),
23485
- p.type === "phone" && ((B = p.props) == null ? void 0 : B.indicativeModelValue) !== void 0 ? (f(), b("div", {
23494
+ p.type === "phone" && ((F = p.props) == null ? void 0 : F.indicativeModelValue) !== void 0 ? (f(), b("div", {
23486
23495
  key: 4,
23487
23496
  class: N(`col-${p.colSpan || 12}`)
23488
23497
  }, [
@@ -24843,8 +24852,8 @@ function uo(t, e) {
24843
24852
  if (m === Hn && Y) {
24844
24853
  var J = Y[o];
24845
24854
  Object.keys(E).forEach(function(re) {
24846
- var F = [Gt, Kt].indexOf(re) >= 0 ? 1 : -1, L = [Nt, Kt].indexOf(re) >= 0 ? "y" : "x";
24847
- E[re] += J[L] * F;
24855
+ var B = [Gt, Kt].indexOf(re) >= 0 ? 1 : -1, L = [Nt, Kt].indexOf(re) >= 0 ? "y" : "x";
24856
+ E[re] += J[L] * B;
24848
24857
  });
24849
24858
  }
24850
24859
  return E;
@@ -24878,23 +24887,23 @@ function NO(t) {
24878
24887
  function RO(t) {
24879
24888
  var e = t.state, a = t.options, n = t.name;
24880
24889
  if (!e.modifiersData[n]._skip) {
24881
- for (var o = a.mainAxis, r = o === void 0 ? !0 : o, s = a.altAxis, l = s === void 0 ? !0 : s, i = a.fallbackPlacements, c = a.padding, u = a.boundary, d = a.rootBoundary, m = a.altBoundary, h = a.flipVariations, _ = h === void 0 ? !0 : h, y = a.allowedAutoPlacements, v = e.options.placement, p = Ca(v), w = p === v, g = i || (w || !_ ? [ir(v)] : NO(v)), k = [v].concat(g).reduce(function(T, B) {
24882
- return T.concat(Ca(B) === Ir ? IO(e, {
24883
- placement: B,
24890
+ for (var o = a.mainAxis, r = o === void 0 ? !0 : o, s = a.altAxis, l = s === void 0 ? !0 : s, i = a.fallbackPlacements, c = a.padding, u = a.boundary, d = a.rootBoundary, m = a.altBoundary, h = a.flipVariations, _ = h === void 0 ? !0 : h, y = a.allowedAutoPlacements, v = e.options.placement, p = Ca(v), w = p === v, g = i || (w || !_ ? [ir(v)] : NO(v)), k = [v].concat(g).reduce(function(T, F) {
24891
+ return T.concat(Ca(F) === Ir ? IO(e, {
24892
+ placement: F,
24884
24893
  boundary: u,
24885
24894
  rootBoundary: d,
24886
24895
  padding: c,
24887
24896
  flipVariations: _,
24888
24897
  allowedAutoPlacements: y
24889
- }) : B);
24898
+ }) : F);
24890
24899
  }, []), D = e.rects.reference, $ = e.rects.popper, P = /* @__PURE__ */ new Map(), H = !0, U = k[0], E = 0; E < k.length; E++) {
24891
- var Y = k[E], J = Ca(Y), re = lo(Y) === $n, F = [Nt, Kt].indexOf(J) >= 0, L = F ? "width" : "height", S = uo(e, {
24900
+ var Y = k[E], J = Ca(Y), re = lo(Y) === $n, B = [Nt, Kt].indexOf(J) >= 0, L = B ? "width" : "height", S = uo(e, {
24892
24901
  placement: Y,
24893
24902
  boundary: u,
24894
24903
  rootBoundary: d,
24895
24904
  altBoundary: m,
24896
24905
  padding: c
24897
- }), z = F ? re ? Gt : Rt : re ? Kt : Nt;
24906
+ }), z = B ? re ? Gt : Rt : re ? Kt : Nt;
24898
24907
  D[L] > $[L] && (z = ir(z));
24899
24908
  var ne = ir(z), W = [];
24900
24909
  if (r && W.push(S[J] <= 0), l && W.push(S[z] <= 0, S[ne] <= 0), W.every(function(T) {
@@ -24906,11 +24915,11 @@ function RO(t) {
24906
24915
  P.set(Y, W);
24907
24916
  }
24908
24917
  if (H)
24909
- for (var R = _ ? 3 : 1, ie = function(B) {
24918
+ for (var R = _ ? 3 : 1, ie = function(F) {
24910
24919
  var ae = k.find(function(A) {
24911
24920
  var be = P.get(A);
24912
24921
  if (be)
24913
- return be.slice(0, B).every(function(xe) {
24922
+ return be.slice(0, F).every(function(xe) {
24914
24923
  return xe;
24915
24924
  });
24916
24925
  });
@@ -25035,10 +25044,10 @@ function WO(t) {
25035
25044
  };
25036
25045
  if ($) {
25037
25046
  if (r) {
25038
- var re, F = k === "y" ? Nt : Rt, L = k === "y" ? Kt : Gt, S = k === "y" ? "height" : "width", z = $[k], ne = z + v[F], W = z - v[L], R = h ? -H[S] / 2 : 0, ie = w === $n ? P[S] : H[S], G = w === $n ? -H[S] : -P[S], V = e.elements.arrow, T = h && V ? Tl(V) : {
25047
+ var re, B = k === "y" ? Nt : Rt, L = k === "y" ? Kt : Gt, S = k === "y" ? "height" : "width", z = $[k], ne = z + v[B], W = z - v[L], R = h ? -H[S] / 2 : 0, ie = w === $n ? P[S] : H[S], G = w === $n ? -H[S] : -P[S], V = e.elements.arrow, T = h && V ? Tl(V) : {
25039
25048
  width: 0,
25040
25049
  height: 0
25041
- }, B = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Of(), ae = B[F], A = B[L], be = Eo(0, P[S], T[S]), xe = g ? P[S] / 2 - R - be - ae - E.mainAxis : ie - be - ae - E.mainAxis, Ue = g ? -P[S] / 2 + R + be + A + E.mainAxis : G + be + A + E.mainAxis, Q = e.elements.arrow && Fo(e.elements.arrow), fe = Q ? k === "y" ? Q.clientTop || 0 : Q.clientLeft || 0 : 0, M = (re = Y == null ? void 0 : Y[k]) != null ? re : 0, oe = z + xe - M - fe, he = z + Ue - M, Z = Eo(h ? gr(ne, oe) : ne, z, h ? _n(W, he) : W);
25050
+ }, F = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Of(), ae = F[B], A = F[L], be = Eo(0, P[S], T[S]), xe = g ? P[S] / 2 - R - be - ae - E.mainAxis : ie - be - ae - E.mainAxis, Ue = g ? -P[S] / 2 + R + be + A + E.mainAxis : G + be + A + E.mainAxis, Q = e.elements.arrow && Fo(e.elements.arrow), fe = Q ? k === "y" ? Q.clientTop || 0 : Q.clientLeft || 0 : 0, M = (re = Y == null ? void 0 : Y[k]) != null ? re : 0, oe = z + xe - M - fe, he = z + Ue - M, Z = Eo(h ? gr(ne, oe) : ne, z, h ? _n(W, he) : W);
25042
25051
  $[k] = Z, J[k] = Z - z;
25043
25052
  }
25044
25053
  if (l) {