sm-click-library-ui 0.0.264 → 0.0.266

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
1
  var Ll = Object.defineProperty;
2
2
  var Il = (e, n, t) => n in e ? Ll(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var fe = (e, n, t) => Il(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { getCurrentScope as Go, onScopeDispose as Zo, unref as w, watch as Fe, ref as I, computed as G, openBlock as g, createElementBlock as M, createElementVNode as m, toDisplayString as ge, normalizeClass as me, renderSlot as ie, createCommentVNode as B, pushScopeId as it, popScopeId as ut, onMounted as Le, resolveComponent as Ma, createBlock as Me, withCtx as ve, createTextVNode as Je, Fragment as _e, renderList as Pe, createVNode as Ye, reactive as Kn, defineComponent as at, useSlots as yn, toRef as Un, nextTick as Ge, onUnmounted as Jn, mergeProps as tt, isRef as to, createSlots as lt, normalizeProps as nt, guardReactiveProps as vt, resolveDynamicComponent as Da, Teleport as Bl, Transition as gn, normalizeStyle as bt, withModifiers as Kt, h as ql, render as no, useAttrs as Wl, onBeforeUpdate as Hl, withDirectives as mt, vShow as zn, withKeys as Ko, vModelText as nn, vModelSelect as Jo, toRefs as zl, onBeforeUnmount as jl } from "vue";
4
+ import { getCurrentScope as Go, onScopeDispose as Zo, unref as b, watch as Fe, ref as I, computed as G, openBlock as g, createElementBlock as M, createElementVNode as m, toDisplayString as ge, normalizeClass as me, renderSlot as ie, createCommentVNode as B, pushScopeId as it, popScopeId as ut, onMounted as Le, resolveComponent as Ma, createBlock as Me, withCtx as ve, createTextVNode as Je, Fragment as _e, renderList as Pe, createVNode as Ye, reactive as Kn, defineComponent as at, useSlots as yn, toRef as Un, nextTick as Ge, onUnmounted as Jn, mergeProps as tt, isRef as to, createSlots as lt, normalizeProps as nt, guardReactiveProps as vt, resolveDynamicComponent as Da, Teleport as Bl, Transition as gn, normalizeStyle as bt, withModifiers as Kt, h as ql, render as no, useAttrs as Wl, onBeforeUpdate as Hl, withDirectives as mt, vShow as zn, withKeys as Ko, vModelText as nn, vModelSelect as Jo, toRefs as zl, onBeforeUnmount as jl } from "vue";
5
5
  import { defineStore as ea } from "pinia";
6
6
  function Vl(e) {
7
7
  return Go() ? (Zo(e), !0) : !1;
8
8
  }
9
9
  function es(e) {
10
- return typeof e == "function" ? e() : w(e);
10
+ return typeof e == "function" ? e() : b(e);
11
11
  }
12
12
  const ts = typeof window < "u" && typeof document < "u";
13
13
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -640,12 +640,12 @@ function Ca(e, n, t) {
640
640
  return V.isArrayBuffer(k) || V.isTypedArray(k) ? u && typeof Blob == "function" ? new Blob([k]) : Buffer.from(k) : k;
641
641
  }
642
642
  function i(k, x, S) {
643
- let b = k;
643
+ let w = k;
644
644
  if (k && !S && typeof k == "object") {
645
645
  if (V.endsWith(x, "{}"))
646
646
  x = a ? x : x.slice(0, -2), k = JSON.stringify(k);
647
- else if (V.isArray(k) && gu(k) || (V.isFileList(k) || V.endsWith(x, "[]")) && (b = V.toArray(k)))
648
- return x = ys(x), b.forEach(function(v, N) {
647
+ else if (V.isArray(k) && gu(k) || (V.isFileList(k) || V.endsWith(x, "[]")) && (w = V.toArray(k)))
648
+ return x = ys(x), w.forEach(function(v, N) {
649
649
  !(V.isUndefined(v) || v === null) && n.append(
650
650
  // eslint-disable-next-line no-nested-ternary
651
651
  s === !0 ? so([x], N, o) : s === null ? x : x + "[]",
@@ -664,14 +664,14 @@ function Ca(e, n, t) {
664
664
  if (!V.isUndefined(k)) {
665
665
  if (d.indexOf(k) !== -1)
666
666
  throw Error("Circular reference detected in " + x.join("."));
667
- d.push(k), V.forEach(k, function(b, _) {
668
- (!(V.isUndefined(b) || b === null) && r.call(
667
+ d.push(k), V.forEach(k, function(w, _) {
668
+ (!(V.isUndefined(w) || w === null) && r.call(
669
669
  n,
670
- b,
670
+ w,
671
671
  V.isString(_) ? _.trim() : _,
672
672
  x,
673
673
  f
674
- )) === !0 && p(b, x ? x.concat(_) : [_]);
674
+ )) === !0 && p(w, x ? x.concat(_) : [_]);
675
675
  }), d.pop();
676
676
  }
677
677
  }
@@ -1357,10 +1357,10 @@ const Ms = (e) => {
1357
1357
  config: e,
1358
1358
  request: i
1359
1359
  };
1360
- xs(function(b) {
1361
- t(b), c();
1362
- }, function(b) {
1363
- a(b), c();
1360
+ xs(function(w) {
1361
+ t(w), c();
1362
+ }, function(w) {
1363
+ a(w), c();
1364
1364
  }, x), i = null;
1365
1365
  }
1366
1366
  "onloadend" in i ? i.onloadend = d : i.onreadystatechange = function() {
@@ -1507,7 +1507,7 @@ const Ku = async (e) => {
1507
1507
  } = Ms(e);
1508
1508
  c = c ? (c + "").toLowerCase() : "text";
1509
1509
  let [p, k] = r || o || s ? Qu([r, o], s) : [], x, S;
1510
- const b = () => {
1510
+ const w = () => {
1511
1511
  !x && setTimeout(() => {
1512
1512
  p && p.unsubscribe();
1513
1513
  }), x = !0;
@@ -1546,13 +1546,13 @@ const Ku = async (e) => {
1546
1546
  fo(v.body, ho, l && mo(
1547
1547
  D,
1548
1548
  ga(l, !0)
1549
- ), N && b, yr),
1549
+ ), N && w, yr),
1550
1550
  H
1551
1551
  );
1552
1552
  }
1553
1553
  c = c || "text";
1554
1554
  let te = await wa[V.findKey(wa, c) || "text"](v, e);
1555
- return !N && b(), k && k(), await new Promise((H, D) => {
1555
+ return !N && w(), k && k(), await new Promise((H, D) => {
1556
1556
  xs(H, D, {
1557
1557
  data: te,
1558
1558
  headers: yt.from(v.headers),
@@ -1563,7 +1563,7 @@ const Ku = async (e) => {
1563
1563
  });
1564
1564
  });
1565
1565
  } catch (v) {
1566
- throw b(), v && v.name === "TypeError" && /fetch/i.test(v.message) ? Object.assign(
1566
+ throw w(), v && v.name === "TypeError" && /fetch/i.test(v.message) ? Object.assign(
1567
1567
  new De("Network Error", De.ERR_NETWORK, e, S),
1568
1568
  {
1569
1569
  cause: v.cause || v
@@ -3609,8 +3609,8 @@ function ef(e, n, t) {
3609
3609
  }
3610
3610
  const tf = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, nf = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, af = /^'([^]*?)'?$/, rf = /''/g, of = /[a-zA-Z]/;
3611
3611
  function qt(e, n, t) {
3612
- var i, d, f, p, k, x, S, b;
3613
- const a = wn(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? qs, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((p = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((x = (k = t == null ? void 0 : t.locale) == null ? void 0 : k.options) == null ? void 0 : x.weekStartsOn) ?? a.weekStartsOn ?? ((b = (S = a.locale) == null ? void 0 : S.options) == null ? void 0 : b.weekStartsOn) ?? 0, l = ye(e);
3612
+ var i, d, f, p, k, x, S, w;
3613
+ const a = wn(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? qs, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((p = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((x = (k = t == null ? void 0 : t.locale) == null ? void 0 : k.options) == null ? void 0 : x.weekStartsOn) ?? a.weekStartsOn ?? ((w = (S = a.locale) == null ? void 0 : S.options) == null ? void 0 : w.weekStartsOn) ?? 0, l = ye(e);
3614
3614
  if (!jn(l))
3615
3615
  throw new RangeError("Invalid time value");
3616
3616
  let u = n.match(nf).map((_) => {
@@ -5157,8 +5157,8 @@ const Kf = {
5157
5157
  T: new Zf()
5158
5158
  }, Jf = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, em = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, tm = /^'([^]*?)'?$/, nm = /''/g, am = /\S/, rm = /[a-zA-Z]/;
5159
5159
  function Ar(e, n, t, a) {
5160
- var x, S, b, _, v, N, te, H;
5161
- const r = df(), o = (a == null ? void 0 : a.locale) ?? r.locale ?? qs, s = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((S = (x = a == null ? void 0 : a.locale) == null ? void 0 : x.options) == null ? void 0 : S.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((_ = (b = r.locale) == null ? void 0 : b.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, l = (a == null ? void 0 : a.weekStartsOn) ?? ((N = (v = a == null ? void 0 : a.locale) == null ? void 0 : v.options) == null ? void 0 : N.weekStartsOn) ?? r.weekStartsOn ?? ((H = (te = r.locale) == null ? void 0 : te.options) == null ? void 0 : H.weekStartsOn) ?? 0;
5160
+ var x, S, w, _, v, N, te, H;
5161
+ const r = df(), o = (a == null ? void 0 : a.locale) ?? r.locale ?? qs, s = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((S = (x = a == null ? void 0 : a.locale) == null ? void 0 : x.options) == null ? void 0 : S.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((_ = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, l = (a == null ? void 0 : a.weekStartsOn) ?? ((N = (v = a == null ? void 0 : a.locale) == null ? void 0 : v.options) == null ? void 0 : N.weekStartsOn) ?? r.weekStartsOn ?? ((H = (te = r.locale) == null ? void 0 : te.options) == null ? void 0 : H.weekStartsOn) ?? 0;
5162
5162
  if (n === "")
5163
5163
  return e === "" ? ye(t) : $e(t, NaN);
5164
5164
  const u = {
@@ -5515,7 +5515,7 @@ const hm = (e, n, t) => {
5515
5515
  };
5516
5516
  });
5517
5517
  }, pm = (e) => [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11][e], Ke = (e) => {
5518
- const n = w(e);
5518
+ const n = b(e);
5519
5519
  return n != null && n.$el ? n == null ? void 0 : n.$el : n;
5520
5520
  }, vm = (e) => ({ type: "dot", ...e ?? {} }), tl = (e) => Array.isArray(e) ? !!e[0] && !!e[1] : !1, Ur = {
5521
5521
  prop: (e) => `"${e}" prop must be enabled!`,
@@ -5931,7 +5931,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5931
5931
  return e.format ? e.format : e.monthPicker ? "MM/yyyy" : e.timePicker ? n() : e.weekPicker ? `${((H = S.value) == null ? void 0 : H.type) === "iso" ? "RR" : "ww"}-yyyy` : e.yearPicker ? "yyyy" : e.quarterPicker ? "QQQ/yyyy" : e.enableTimePicker ? `MM/dd/yyyy, ${n()}` : "MM/dd/yyyy";
5932
5932
  }, a = (H) => ll(H, e.enableSeconds), r = () => N.value.enabled ? e.startTime && Array.isArray(e.startTime) ? [a(e.startTime[0]), a(e.startTime[1])] : null : e.startTime && !Array.isArray(e.startTime) ? a(e.startTime) : null, o = G(() => Sm(e.multiCalendars)), s = G(() => r()), l = G(() => Pm(e.ariaLabels)), u = G(() => Rm(e.filters)), c = G(() => $m(e.transitions)), i = G(() => Nm(e.actionRow)), d = G(
5933
5933
  () => Cm(e.previewFormat, e.format, t())
5934
- ), f = G(() => Om(e.textInput)), p = G(() => Em(e.inline)), k = G(() => Fm(e.config)), x = G(() => Ym(e.highlight)), S = G(() => Lm(e.weekNumbers)), b = G(() => Bm(e.timezone)), _ = G(() => Hm(e.multiDates)), v = G(
5934
+ ), f = G(() => Om(e.textInput)), p = G(() => Em(e.inline)), k = G(() => Fm(e.config)), x = G(() => Ym(e.highlight)), S = G(() => Lm(e.weekNumbers)), w = G(() => Bm(e.timezone)), _ = G(() => Hm(e.multiDates)), v = G(
5935
5935
  () => Wm({
5936
5936
  minDate: e.minDate,
5937
5937
  maxDate: e.maxDate,
@@ -5939,7 +5939,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5939
5939
  allowedDates: e.allowedDates,
5940
5940
  highlight: x.value,
5941
5941
  markers: e.markers,
5942
- timezone: b.value,
5942
+ timezone: w.value,
5943
5943
  isSpecific: e.monthPicker || e.yearPicker || e.quarterPicker
5944
5944
  })
5945
5945
  ), N = G(() => Im(e.range)), te = G(() => zm(e.ui));
@@ -5958,7 +5958,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5958
5958
  defaultedWeekNumbers: S,
5959
5959
  defaultedRange: N,
5960
5960
  propDates: v,
5961
- defaultedTz: b,
5961
+ defaultedTz: w,
5962
5962
  defaultedMultiDates: _,
5963
5963
  defaultedUI: te,
5964
5964
  getDefaultPattern: t,
@@ -5995,7 +5995,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
5995
5995
  hours: zt(A),
5996
5996
  minutes: an(A),
5997
5997
  seconds: n.enableSeconds ? Tn(A) : 0
5998
- } : null, S = (A) => n.modelType ? le(A) : { month: Se(A), year: xe(A) }, b = (A) => Array.isArray(A) ? l.value.enabled ? A.map((ue) => _(ue, Bt(J(), ue))) : fa(
5998
+ } : null, S = (A) => n.modelType ? le(A) : { month: Se(A), year: xe(A) }, w = (A) => Array.isArray(A) ? l.value.enabled ? A.map((ue) => _(ue, Bt(J(), ue))) : fa(
5999
5999
  () => [
6000
6000
  Bt(J(), A[0]),
6001
6001
  A[1] ? Bt(J(), A[1]) : _n(o.value.partialRange)
@@ -6049,7 +6049,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6049
6049
  le(A[0]),
6050
6050
  A[1] ? le(A[1]) : _n(o.value.partialRange)
6051
6051
  ];
6052
- }, q = () => a.value[1] ? F() : le(et(a.value[0])), K = () => (a.value || []).map((A) => le(A)), de = (A = !1) => (A || E(), n.modelAuto ? q() : l.value.enabled ? K() : Array.isArray(a.value) ? fa(() => F(), o.value.enabled) : le(et(a.value))), pe = (A) => !A || Array.isArray(A) && !A.length ? null : n.timePicker ? v(et(A)) : n.monthPicker ? N(et(A)) : n.yearPicker ? b(et(A)) : l.value.enabled ? te(et(A)) : n.weekPicker ? H(et(A)) : D(et(A)), $ = (A) => {
6052
+ }, q = () => a.value[1] ? F() : le(et(a.value[0])), K = () => (a.value || []).map((A) => le(A)), de = (A = !1) => (A || E(), n.modelAuto ? q() : l.value.enabled ? K() : Array.isArray(a.value) ? fa(() => F(), o.value.enabled) : le(et(a.value))), pe = (A) => !A || Array.isArray(A) && !A.length ? null : n.timePicker ? v(et(A)) : n.monthPicker ? N(et(A)) : n.yearPicker ? w(et(A)) : l.value.enabled ? te(et(A)) : n.weekPicker ? H(et(A)) : D(et(A)), $ = (A) => {
6053
6053
  const ue = pe(A);
6054
6054
  Tr(et(ue)) ? (a.value = et(ue), se()) : (a.value = null, c.value = "");
6055
6055
  }, L = () => {
@@ -6269,7 +6269,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6269
6269
  defaultedInline: u,
6270
6270
  defaultedRange: c,
6271
6271
  defaultedMultiDates: i
6272
- } = qe(a), { isTimeValid: d, isMonthValid: f } = on(a), { buildMatrix: p } = rn(), k = I(null), x = I(null), S = I(!1), b = I({}), _ = I(null), v = I(null);
6272
+ } = qe(a), { isTimeValid: d, isMonthValid: f } = on(a), { buildMatrix: p } = rn(), k = I(null), x = I(null), S = I(!1), w = I({}), _ = I(null), v = I(null);
6273
6273
  Le(() => {
6274
6274
  a.arrowNavigation && p([Ke(k), Ke(x)], "actionRow"), N(), window.addEventListener("resize", N);
6275
6275
  }), Jn(() => {
@@ -6279,7 +6279,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6279
6279
  S.value = !1, setTimeout(() => {
6280
6280
  var $, L;
6281
6281
  const C = ($ = _.value) == null ? void 0 : $.getBoundingClientRect(), z = (L = v.value) == null ? void 0 : L.getBoundingClientRect();
6282
- C && z && (b.value.maxWidth = `${z.width - C.width - 20}px`), S.value = !0;
6282
+ C && z && (w.value.maxWidth = `${z.width - C.width - 20}px`), S.value = !0;
6283
6283
  }, 0);
6284
6284
  }, te = G(() => c.value.enabled && !c.value.partialRange && a.internalModelValue ? a.internalModelValue.length === 2 : !0), H = G(
6285
6285
  () => !d.value(a.internalModelValue) || !f.value(a.internalModelValue) || !te.value
@@ -6312,11 +6312,11 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6312
6312
  selectDate: () => $.$emit("select-date"),
6313
6313
  closePicker: () => $.$emit("close-picker")
6314
6314
  }))) : (g(), M(_e, { key: 1 }, [
6315
- w(r).showPreview ? (g(), M("div", {
6315
+ b(r).showPreview ? (g(), M("div", {
6316
6316
  key: 0,
6317
6317
  class: "dp__selection_preview",
6318
6318
  title: de.value,
6319
- style: bt(b.value)
6319
+ style: bt(w.value)
6320
6320
  }, [
6321
6321
  $.$slots["action-preview"] && S.value ? ie($.$slots, "action-preview", {
6322
6322
  key: 0,
@@ -6337,23 +6337,23 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6337
6337
  value: $.internalModelValue
6338
6338
  }) : B("", !0),
6339
6339
  $.$slots["action-buttons"] ? B("", !0) : (g(), M(_e, { key: 1 }, [
6340
- !w(u).enabled && w(r).showCancel ? (g(), M("button", {
6340
+ !b(u).enabled && b(r).showCancel ? (g(), M("button", {
6341
6341
  key: 0,
6342
6342
  ref_key: "cancelButtonRef",
6343
6343
  ref: k,
6344
6344
  type: "button",
6345
6345
  class: "dp__action_button dp__action_cancel",
6346
6346
  onClick: L[0] || (L[0] = (C) => $.$emit("close-picker")),
6347
- onKeydown: L[1] || (L[1] = (C) => w(ft)(C, () => $.$emit("close-picker")))
6347
+ onKeydown: L[1] || (L[1] = (C) => b(ft)(C, () => $.$emit("close-picker")))
6348
6348
  }, ge($.cancelText), 545)) : B("", !0),
6349
- w(r).showNow ? (g(), M("button", {
6349
+ b(r).showNow ? (g(), M("button", {
6350
6350
  key: 1,
6351
6351
  type: "button",
6352
6352
  class: "dp__action_button dp__action_cancel",
6353
6353
  onClick: L[2] || (L[2] = (C) => $.$emit("select-now")),
6354
- onKeydown: L[3] || (L[3] = (C) => w(ft)(C, () => $.$emit("select-now")))
6354
+ onKeydown: L[3] || (L[3] = (C) => b(ft)(C, () => $.$emit("select-now")))
6355
6355
  }, ge($.nowButtonLabel), 33)) : B("", !0),
6356
- w(r).showSelect ? (g(), M("button", {
6356
+ b(r).showSelect ? (g(), M("button", {
6357
6357
  key: 2,
6358
6358
  ref_key: "selectButtonRef",
6359
6359
  ref: x,
@@ -6361,7 +6361,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6361
6361
  class: "dp__action_button dp__action_select",
6362
6362
  disabled: H.value,
6363
6363
  "data-test": "select-button",
6364
- onKeydown: L[4] || (L[4] = (C) => w(ft)(C, () => pe())),
6364
+ onKeydown: L[4] || (L[4] = (C) => b(ft)(C, () => pe())),
6365
6365
  onClick: pe
6366
6366
  }, ge($.selectText), 41, Qm)) : B("", !0)
6367
6367
  ], 64))
@@ -6394,7 +6394,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6394
6394
  setup(e, { expose: n, emit: t }) {
6395
6395
  const { setSelectionGrid: a, buildMultiLevelMatrix: r, setMonthPicker: o } = rn(), s = t, l = e, { defaultedAriaLabels: u, defaultedTextInput: c, defaultedConfig: i } = qe(
6396
6396
  l
6397
- ), { hideNavigationButtons: d } = Fa(), f = I(!1), p = I(null), k = I(null), x = I([]), S = I(), b = I(null), _ = I(0), v = I(null);
6397
+ ), { hideNavigationButtons: d } = Fa(), f = I(!1), p = I(null), k = I(null), x = I([]), S = I(), w = I(null), _ = I(0), v = I(null);
6398
6398
  Hl(() => {
6399
6399
  p.value = null;
6400
6400
  }), Le(() => {
@@ -6440,7 +6440,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6440
6440
  );
6441
6441
  const K = (T = !0) => {
6442
6442
  Ge().then(() => {
6443
- const P = Ke(p), h = Ke(k), Y = Ke(b), X = Ke(v), A = Y ? Y.getBoundingClientRect().height : 0;
6443
+ const P = Ke(p), h = Ke(k), Y = Ke(w), X = Ke(v), A = Y ? Y.getBoundingClientRect().height : 0;
6444
6444
  h && (h.getBoundingClientRect().height ? _.value = h.getBoundingClientRect().height - A : _.value = i.value.modeHeight - A), P && X && T && (X.scrollTop = P.offsetTop - X.offsetTop - (_.value / 2 - P.getBoundingClientRect().height) - A);
6445
6445
  });
6446
6446
  }, de = (T) => {
@@ -6453,7 +6453,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6453
6453
  T && ((P.active || P.value === l.focusValue) && (p.value = T), l.arrowNavigation && (Array.isArray(x.value[h]) ? x.value[h][Y] = T : x.value[h] = [T], C()));
6454
6454
  }, C = () => {
6455
6455
  var T, P;
6456
- const h = (T = l.headerRefs) != null && T.length ? [l.headerRefs].concat(x.value) : x.value.concat([l.skipButtonRef ? [] : [b.value]]);
6456
+ const h = (T = l.headerRefs) != null && T.length ? [l.headerRefs].concat(x.value) : x.value.concat([l.skipButtonRef ? [] : [w.value]]);
6457
6457
  r(et(h), (P = l.headerRefs) != null && P.length ? "monthPicker" : "selectionGrid");
6458
6458
  }, z = (T) => {
6459
6459
  l.arrowNavigation || en(T, i.value, !0);
@@ -6526,7 +6526,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6526
6526
  tabindex: "0",
6527
6527
  "data-test": A.text,
6528
6528
  onClick: Kt((ke) => de(A), ["prevent"]),
6529
- onKeydown: (ke) => w(ft)(ke, () => de(A), !0),
6529
+ onKeydown: (ke) => b(ft)(ke, () => de(A), !0),
6530
6530
  onMouseover: (ke) => se(A.value)
6531
6531
  }, [
6532
6532
  m("div", {
@@ -6546,9 +6546,9 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6546
6546
  T.$slots["button-icon"] ? mt((g(), M("button", {
6547
6547
  key: 0,
6548
6548
  ref_key: "toggleButton",
6549
- ref: b,
6549
+ ref: w,
6550
6550
  type: "button",
6551
- "aria-label": (h = w(u)) == null ? void 0 : h.toggleOverlay,
6551
+ "aria-label": (h = b(u)) == null ? void 0 : h.toggleOverlay,
6552
6552
  class: me(F.value),
6553
6553
  tabindex: "0",
6554
6554
  onClick: pe,
@@ -6556,7 +6556,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6556
6556
  }, [
6557
6557
  ie(T.$slots, "button-icon")
6558
6558
  ], 42, Jm)), [
6559
- [zn, !w(d)(T.hideNavigation, T.type)]
6559
+ [zn, !b(d)(T.hideNavigation, T.type)]
6560
6560
  ]) : B("", !0)
6561
6561
  ], 46, Gm);
6562
6562
  };
@@ -6616,7 +6616,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6616
6616
  "aria-label": r.ariaLabel,
6617
6617
  "aria-disabled": r.disabled || void 0,
6618
6618
  onClick: o[0] || (o[0] = (s) => r.$emit("activate")),
6619
- onKeydown: o[1] || (o[1] = (s) => w(ft)(s, () => r.$emit("activate"), !0))
6619
+ onKeydown: o[1] || (o[1] = (s) => b(ft)(s, () => r.$emit("activate"), !0))
6620
6620
  }, [
6621
6621
  m("span", {
6622
6622
  class: me(["dp__inner_nav", { dp__inner_nav_disabled: r.disabled }])
@@ -6637,30 +6637,30 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6637
6637
  },
6638
6638
  emits: ["toggle-year-picker", "year-select", "handle-year"],
6639
6639
  setup(e, { emit: n }) {
6640
- const t = n, a = e, { showRightIcon: r, showLeftIcon: o } = Fa(), { defaultedConfig: s, defaultedMultiCalendars: l, defaultedAriaLabels: u, defaultedTransitions: c, defaultedUI: i } = qe(a), { showTransition: d, transitionName: f } = ra(c), p = I(!1), k = (b = !1, _) => {
6641
- p.value = !p.value, t("toggle-year-picker", { flow: b, show: _ });
6642
- }, x = (b) => {
6643
- p.value = !1, t("year-select", b);
6644
- }, S = (b = !1) => {
6645
- t("handle-year", b);
6640
+ const t = n, a = e, { showRightIcon: r, showLeftIcon: o } = Fa(), { defaultedConfig: s, defaultedMultiCalendars: l, defaultedAriaLabels: u, defaultedTransitions: c, defaultedUI: i } = qe(a), { showTransition: d, transitionName: f } = ra(c), p = I(!1), k = (w = !1, _) => {
6641
+ p.value = !p.value, t("toggle-year-picker", { flow: w, show: _ });
6642
+ }, x = (w) => {
6643
+ p.value = !1, t("year-select", w);
6644
+ }, S = (w = !1) => {
6645
+ t("handle-year", w);
6646
6646
  };
6647
- return (b, _) => {
6647
+ return (w, _) => {
6648
6648
  var v, N, te, H, D;
6649
6649
  return g(), M(_e, null, [
6650
6650
  m("div", {
6651
6651
  class: me(["dp--year-mode-picker", { "dp--hidden-el": p.value }])
6652
6652
  }, [
6653
- w(o)(w(l), e.instance) ? (g(), Me(Vn, {
6653
+ b(o)(b(l), e.instance) ? (g(), Me(Vn, {
6654
6654
  key: 0,
6655
6655
  ref: "mpPrevIconRef",
6656
- "aria-label": (v = w(u)) == null ? void 0 : v.prevYear,
6656
+ "aria-label": (v = b(u)) == null ? void 0 : v.prevYear,
6657
6657
  disabled: e.isDisabled(!1),
6658
- class: me((N = w(i)) == null ? void 0 : N.navBtnPrev),
6658
+ class: me((N = b(i)) == null ? void 0 : N.navBtnPrev),
6659
6659
  onActivate: _[0] || (_[0] = (E) => S(!1))
6660
6660
  }, {
6661
6661
  default: ve(() => [
6662
- b.$slots["arrow-left"] ? ie(b.$slots, "arrow-left", { key: 0 }) : B("", !0),
6663
- b.$slots["arrow-left"] ? B("", !0) : (g(), Me(w(Br), { key: 1 }))
6662
+ w.$slots["arrow-left"] ? ie(w.$slots, "arrow-left", { key: 0 }) : B("", !0),
6663
+ w.$slots["arrow-left"] ? B("", !0) : (g(), Me(b(Br), { key: 1 }))
6664
6664
  ]),
6665
6665
  _: 3
6666
6666
  }, 8, ["aria-label", "disabled", "class"])) : B("", !0),
@@ -6668,37 +6668,37 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6668
6668
  ref: "mpYearButtonRef",
6669
6669
  class: "dp__btn dp--year-select",
6670
6670
  type: "button",
6671
- "aria-label": `${e.year}-${(te = w(u)) == null ? void 0 : te.openYearsOverlay}`,
6671
+ "aria-label": `${e.year}-${(te = b(u)) == null ? void 0 : te.openYearsOverlay}`,
6672
6672
  "data-test": `year-mode-btn-${e.instance}`,
6673
6673
  onClick: _[1] || (_[1] = () => k(!1)),
6674
6674
  onKeydown: _[2] || (_[2] = Ko(() => k(!1), ["enter"]))
6675
6675
  }, [
6676
- b.$slots.year ? ie(b.$slots, "year", {
6676
+ w.$slots.year ? ie(w.$slots, "year", {
6677
6677
  key: 0,
6678
6678
  year: e.year
6679
6679
  }) : B("", !0),
6680
- b.$slots.year ? B("", !0) : (g(), M(_e, { key: 1 }, [
6680
+ w.$slots.year ? B("", !0) : (g(), M(_e, { key: 1 }, [
6681
6681
  Je(ge(e.year), 1)
6682
6682
  ], 64))
6683
6683
  ], 40, t0),
6684
- w(r)(w(l), e.instance) ? (g(), Me(Vn, {
6684
+ b(r)(b(l), e.instance) ? (g(), Me(Vn, {
6685
6685
  key: 1,
6686
6686
  ref: "mpNextIconRef",
6687
- "aria-label": (H = w(u)) == null ? void 0 : H.nextYear,
6687
+ "aria-label": (H = b(u)) == null ? void 0 : H.nextYear,
6688
6688
  disabled: e.isDisabled(!0),
6689
- class: me((D = w(i)) == null ? void 0 : D.navBtnNext),
6689
+ class: me((D = b(i)) == null ? void 0 : D.navBtnNext),
6690
6690
  onActivate: _[3] || (_[3] = (E) => S(!0))
6691
6691
  }, {
6692
6692
  default: ve(() => [
6693
- b.$slots["arrow-right"] ? ie(b.$slots, "arrow-right", { key: 0 }) : B("", !0),
6694
- b.$slots["arrow-right"] ? B("", !0) : (g(), Me(w(qr), { key: 1 }))
6693
+ w.$slots["arrow-right"] ? ie(w.$slots, "arrow-right", { key: 0 }) : B("", !0),
6694
+ w.$slots["arrow-right"] ? B("", !0) : (g(), Me(b(qr), { key: 1 }))
6695
6695
  ]),
6696
6696
  _: 3
6697
6697
  }, 8, ["aria-label", "disabled", "class"])) : B("", !0)
6698
6698
  ], 2),
6699
6699
  Ye(gn, {
6700
- name: w(f)(e.showYearPicker),
6701
- css: w(d)
6700
+ name: b(f)(e.showYearPicker),
6701
+ css: b(d)
6702
6702
  }, {
6703
6703
  default: ve(() => {
6704
6704
  var E, F;
@@ -6706,27 +6706,27 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6706
6706
  e.showYearPicker ? (g(), Me(aa, {
6707
6707
  key: 0,
6708
6708
  items: e.items,
6709
- "text-input": b.textInput,
6710
- "esc-close": b.escClose,
6711
- config: b.config,
6712
- "is-last": b.autoApply && !w(s).keepActionRow,
6713
- "hide-navigation": b.hideNavigation,
6714
- "aria-labels": b.ariaLabels,
6715
- "overlay-label": (F = (E = w(u)) == null ? void 0 : E.yearPicker) == null ? void 0 : F.call(E, !0),
6709
+ "text-input": w.textInput,
6710
+ "esc-close": w.escClose,
6711
+ config: w.config,
6712
+ "is-last": w.autoApply && !b(s).keepActionRow,
6713
+ "hide-navigation": w.hideNavigation,
6714
+ "aria-labels": w.ariaLabels,
6715
+ "overlay-label": (F = (E = b(u)) == null ? void 0 : E.yearPicker) == null ? void 0 : F.call(E, !0),
6716
6716
  type: "year",
6717
6717
  onToggle: k,
6718
6718
  onSelected: _[4] || (_[4] = (q) => x(q))
6719
6719
  }, lt({
6720
6720
  "button-icon": ve(() => [
6721
- b.$slots["calendar-icon"] ? ie(b.$slots, "calendar-icon", { key: 0 }) : B("", !0),
6722
- b.$slots["calendar-icon"] ? B("", !0) : (g(), Me(w(Nn), { key: 1 }))
6721
+ w.$slots["calendar-icon"] ? ie(w.$slots, "calendar-icon", { key: 0 }) : B("", !0),
6722
+ w.$slots["calendar-icon"] ? B("", !0) : (g(), Me(b(Nn), { key: 1 }))
6723
6723
  ]),
6724
6724
  _: 2
6725
6725
  }, [
6726
- b.$slots["year-overlay-value"] ? {
6726
+ w.$slots["year-overlay-value"] ? {
6727
6727
  name: "item",
6728
6728
  fn: ve(({ item: q }) => [
6729
- ie(b.$slots, "year-overlay-value", {
6729
+ ie(w.$slots, "year-overlay-value", {
6730
6730
  text: q.text,
6731
6731
  value: q.value
6732
6732
  })
@@ -6798,10 +6798,10 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6798
6798
  if (!q) return x();
6799
6799
  const K = Ee(J(), r.value[q]);
6800
6800
  return r.value[0].year = xe(Ks(K, e.value.count - 1)), x();
6801
- }, b = (q, K) => {
6801
+ }, w = (q, K) => {
6802
6802
  const de = mc(K, q);
6803
6803
  return n.value.showLastInRange && de > 1 ? K : q;
6804
- }, _ = (q) => s.focusStartDate || e.value.solo ? q[0] : q[1] ? b(q[0], q[1]) : q[0], v = () => {
6804
+ }, _ = (q) => s.focusStartDate || e.value.solo ? q[0] : q[1] ? w(q[0], q[1]) : q[0], v = () => {
6805
6805
  if (o.value) {
6806
6806
  const q = Array.isArray(o.value) ? _(o.value) : o.value;
6807
6807
  r.value[0] = { month: Se(q), year: xe(q) };
@@ -6857,7 +6857,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6857
6857
  defaultedMultiDates: d
6858
6858
  } = qe(e), f = () => {
6859
6859
  e.isTextInputDate && N(xe(J(e.startDate)), 0);
6860
- }, { modelValue: p, year: k, month: x, calendars: S } = oa(e, n, f), b = G(() => el(e.formatLocale, e.locale, e.monthNameFormat)), _ = I(null), { checkMinMaxRange: v } = on(e), {
6860
+ }, { modelValue: p, year: k, month: x, calendars: S } = oa(e, n, f), w = G(() => el(e.formatLocale, e.locale, e.monthNameFormat)), _ = I(null), { checkMinMaxRange: v } = on(e), {
6861
6861
  selectYear: N,
6862
6862
  groupedYears: te,
6863
6863
  showYearPicker: H,
@@ -6898,7 +6898,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6898
6898
  return !1;
6899
6899
  }
6900
6900
  return !1;
6901
- }, C = G(() => (h) => Cn(b.value, (Y) => {
6901
+ }, C = G(() => (h) => Cn(w.value, (Y) => {
6902
6902
  var X;
6903
6903
  const A = pe(h, Y.value), ue = Zn(
6904
6904
  Y.value,
@@ -6992,7 +6992,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
6992
6992
  modelValue: k,
6993
6993
  presetDate: x,
6994
6994
  setHoverDate: S,
6995
- selectMonth: b,
6995
+ selectMonth: w,
6996
6996
  selectYear: _,
6997
6997
  toggleYearPicker: v,
6998
6998
  handleYearSelect: N,
@@ -7003,11 +7003,11 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7003
7003
  modelValue: k,
7004
7004
  year: c,
7005
7005
  getModelMonthYear: H,
7006
- selectMonth: b,
7006
+ selectMonth: w,
7007
7007
  selectYear: _,
7008
7008
  handleYear: te
7009
7009
  }), presetDate: x, toggleYearPicker: (D) => v(0, D) }), (D, E) => (g(), Me(Na, {
7010
- "multi-calendars": w(d).count,
7010
+ "multi-calendars": b(d).count,
7011
7011
  collapse: D.collapse,
7012
7012
  stretch: ""
7013
7013
  }, {
@@ -7017,38 +7017,38 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7017
7017
  value: D.internalModelValue
7018
7018
  }) : B("", !0),
7019
7019
  D.$slots["month-year"] ? ie(D.$slots, "month-year", nt(tt({ key: 1 }, {
7020
- year: w(c),
7021
- months: w(l)(F),
7022
- years: w(u)(F),
7023
- selectMonth: w(b),
7024
- selectYear: w(_),
7020
+ year: b(c),
7021
+ months: b(l)(F),
7022
+ years: b(u)(F),
7023
+ selectMonth: b(w),
7024
+ selectYear: b(_),
7025
7025
  instance: F
7026
7026
  }))) : (g(), Me(aa, {
7027
7027
  key: 2,
7028
- items: w(l)(F),
7028
+ items: b(l)(F),
7029
7029
  "arrow-navigation": D.arrowNavigation,
7030
- "is-last": D.autoApply && !w(f).keepActionRow,
7030
+ "is-last": D.autoApply && !b(f).keepActionRow,
7031
7031
  "esc-close": D.escClose,
7032
- height: w(f).modeHeight,
7032
+ height: b(f).modeHeight,
7033
7033
  config: D.config,
7034
7034
  "no-overlay-focus": !!(D.noOverlayFocus || D.textInput),
7035
7035
  "use-relative": "",
7036
7036
  type: "month",
7037
- onSelected: (q) => w(b)(q, F),
7038
- onHoverValue: (q) => w(S)(q, F)
7037
+ onSelected: (q) => b(w)(q, F),
7038
+ onHoverValue: (q) => b(S)(q, F)
7039
7039
  }, lt({
7040
7040
  header: ve(() => [
7041
7041
  Ye(ml, tt(D.$props, {
7042
- items: w(u)(F),
7042
+ items: b(u)(F),
7043
7043
  instance: F,
7044
- "show-year-picker": w(p)[F],
7045
- year: w(c)(F),
7046
- "is-disabled": (q) => w(i)(F, q),
7047
- onHandleYear: (q) => w(te)(F, q),
7048
- onYearSelect: (q) => w(N)(q, F),
7049
- onToggleYearPicker: (q) => w(v)(F, q == null ? void 0 : q.flow, q == null ? void 0 : q.show)
7044
+ "show-year-picker": b(p)[F],
7045
+ year: b(c)(F),
7046
+ "is-disabled": (q) => b(i)(F, q),
7047
+ onHandleYear: (q) => b(te)(F, q),
7048
+ onYearSelect: (q) => b(N)(q, F),
7049
+ onToggleYearPicker: (q) => b(v)(F, q == null ? void 0 : q.flow, q == null ? void 0 : q.show)
7050
7050
  }), lt({ _: 2 }, [
7051
- Pe(w(o), (q, K) => ({
7051
+ Pe(b(o), (q, K) => ({
7052
7052
  name: q,
7053
7053
  fn: ve((de) => [
7054
7054
  ie(D.$slots, q, nt(vt(de)))
@@ -7081,12 +7081,12 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7081
7081
  e.startDate && (a.value && e.focusStartDate || !a.value) && (i.value = xe(J(e.startDate)));
7082
7082
  });
7083
7083
  const d = (x) => Array.isArray(a.value) ? a.value.some((S) => xe(S) === x) : a.value ? xe(a.value) === x : !1, f = (x) => u.value.enabled && Array.isArray(a.value) ? Oa(a.value, r.value, k(x)) : !1, p = G(() => Cn(Vr(e.yearRange, e.locale, e.reverseYears), (x) => {
7084
- const S = d(x.value), b = Zn(
7084
+ const S = d(x.value), w = Zn(
7085
7085
  x.value,
7086
7086
  $n(c.value.minDate),
7087
7087
  $n(c.value.maxDate)
7088
7088
  ) || l.value.years.includes(x.value), _ = f(x.value) && !S, v = Xr(o.value, x.value);
7089
- return { active: S, disabled: b, isBetween: _, highlighted: v };
7089
+ return { active: S, disabled: w, isBetween: _, highlighted: v };
7090
7090
  })), k = (x) => Bt(St(Xn(/* @__PURE__ */ new Date())), x);
7091
7091
  return {
7092
7092
  groupedYears: p,
@@ -7098,7 +7098,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7098
7098
  selectYear: (x) => {
7099
7099
  var S;
7100
7100
  if (n("update-month-year", { instance: 0, year: x }), s.value.enabled)
7101
- return a.value ? Array.isArray(a.value) && (((S = a.value) == null ? void 0 : S.map((b) => xe(b))).includes(x) ? a.value = a.value.filter((b) => xe(b) !== x) : a.value.push(Bt(ht(J()), x))) : a.value = [Bt(ht(Xn(J())), x)], n("auto-apply", !0);
7101
+ return a.value ? Array.isArray(a.value) && (((S = a.value) == null ? void 0 : S.map((w) => xe(w))).includes(x) ? a.value = a.value.filter((w) => xe(w) !== x) : a.value.push(Bt(ht(J()), x))) : a.value = [Bt(ht(Xn(J())), x)], n("auto-apply", !0);
7102
7102
  u.value.enabled ? (a.value = Zr(a, k(x), n), Ge().then(() => {
7103
7103
  Ea(a.value, n, e.autoApply, e.modelAuto);
7104
7104
  })) : (a.value = k(x), n("auto-apply"));
@@ -7131,20 +7131,20 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7131
7131
  value: d.internalModelValue
7132
7132
  }) : B("", !0),
7133
7133
  d.$slots["month-year"] ? ie(d.$slots, "month-year", nt(tt({ key: 1 }, {
7134
- years: w(o),
7135
- selectYear: w(u)
7134
+ years: b(o),
7135
+ selectYear: b(u)
7136
7136
  }))) : (g(), Me(aa, {
7137
7137
  key: 2,
7138
- items: w(o),
7139
- "is-last": d.autoApply && !w(i).keepActionRow,
7140
- height: w(i).modeHeight,
7138
+ items: b(o),
7139
+ "is-last": d.autoApply && !b(i).keepActionRow,
7140
+ height: b(i).modeHeight,
7141
7141
  config: d.config,
7142
7142
  "no-overlay-focus": !!(d.noOverlayFocus || d.textInput),
7143
- "focus-value": w(l),
7143
+ "focus-value": b(l),
7144
7144
  type: "year",
7145
7145
  "use-relative": "",
7146
- onSelected: w(u),
7147
- onHoverValue: w(c)
7146
+ onSelected: b(u),
7147
+ onHoverValue: b(c)
7148
7148
  }, lt({ _: 2 }, [
7149
7149
  d.$slots["year-overlay-value"] ? {
7150
7150
  name: "item",
@@ -7194,7 +7194,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7194
7194
  hours: !1,
7195
7195
  minutes: !1,
7196
7196
  seconds: !1
7197
- }), x = I("AM"), S = I(null), b = I([]), _ = I(), v = I(!1);
7197
+ }), x = I("AM"), S = I(null), w = I([]), _ = I(), v = I(!1);
7198
7198
  Le(() => {
7199
7199
  a("mounted");
7200
7200
  });
@@ -7271,8 +7271,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7271
7271
  k[y] = !0;
7272
7272
  }, W = (y, Z, ae) => {
7273
7273
  if (y && r.arrowNavigation) {
7274
- Array.isArray(b.value[Z]) ? b.value[Z][ae] = y : b.value[Z] = [y];
7275
- const U = b.value.reduce(
7274
+ Array.isArray(w.value[Z]) ? w.value[Z][ae] = y : w.value[Z] = [y];
7275
+ const U = w.value.reduce(
7276
7276
  (Ae, R) => R.map((ee, he) => [...Ae[he] || [], R[he]]),
7277
7277
  []
7278
7278
  );
@@ -7306,11 +7306,11 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7306
7306
  "dp--hidden-el": v.value
7307
7307
  }),
7308
7308
  "data-test": `${U.type}-time-inc-btn-${r.order}`,
7309
- "aria-label": (R = w(l)) == null ? void 0 : R.incrementValue(U.type),
7309
+ "aria-label": (R = b(l)) == null ? void 0 : R.incrementValue(U.type),
7310
7310
  tabindex: "0",
7311
- onKeydown: (Te) => w(ft)(Te, () => A(U.type, !0, { keyboard: !0 }), !0),
7312
- onClick: (Te) => w(i).timeArrowHoldThreshold ? void 0 : A(U.type, !0),
7313
- onMousedown: (Te) => w(i).timeArrowHoldThreshold ? A(U.type, !0) : void 0,
7311
+ onKeydown: (Te) => b(ft)(Te, () => A(U.type, !0, { keyboard: !0 }), !0),
7312
+ onClick: (Te) => b(i).timeArrowHoldThreshold ? void 0 : A(U.type, !0),
7313
+ onMousedown: (Te) => b(i).timeArrowHoldThreshold ? A(U.type, !0) : void 0,
7314
7314
  onMouseup: X
7315
7315
  }, [
7316
7316
  r.timePickerInline ? (g(), M(_e, { key: 1 }, [
@@ -7320,14 +7320,14 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7320
7320
  ], 64))
7321
7321
  ], 64)) : (g(), M(_e, { key: 0 }, [
7322
7322
  y.$slots["arrow-up"] ? ie(y.$slots, "arrow-up", { key: 0 }) : B("", !0),
7323
- y.$slots["arrow-up"] ? B("", !0) : (g(), Me(w(Hr), { key: 1 }))
7323
+ y.$slots["arrow-up"] ? B("", !0) : (g(), Me(b(Hr), { key: 1 }))
7324
7324
  ], 64))
7325
7325
  ], 42, l0),
7326
7326
  m("button", {
7327
7327
  ref_for: !0,
7328
7328
  ref: (Te) => W(Te, Ae, 1),
7329
7329
  type: "button",
7330
- "aria-label": `${C.value(U.type).text}-${(ee = w(l)) == null ? void 0 : ee.openTpOverlay(U.type)}`,
7330
+ "aria-label": `${C.value(U.type).text}-${(ee = b(l)) == null ? void 0 : ee.openTpOverlay(U.type)}`,
7331
7331
  class: me({
7332
7332
  dp__time_display: !0,
7333
7333
  dp__time_display_block: !y.timePickerInline,
@@ -7339,7 +7339,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7339
7339
  disabled: P(U.type),
7340
7340
  tabindex: "0",
7341
7341
  "data-test": `${U.type}-toggle-overlay-btn-${r.order}`,
7342
- onKeydown: (Te) => w(ft)(Te, () => h(U.type), !0),
7342
+ onKeydown: (Te) => b(ft)(Te, () => h(U.type), !0),
7343
7343
  onClick: (Te) => h(U.type)
7344
7344
  }, [
7345
7345
  y.$slots[U.type] ? ie(y.$slots, U.type, {
@@ -7364,11 +7364,11 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7364
7364
  "dp--hidden-el": v.value
7365
7365
  }),
7366
7366
  "data-test": `${U.type}-time-dec-btn-${r.order}`,
7367
- "aria-label": (he = w(l)) == null ? void 0 : he.decrementValue(U.type),
7367
+ "aria-label": (he = b(l)) == null ? void 0 : he.decrementValue(U.type),
7368
7368
  tabindex: "0",
7369
- onKeydown: (Te) => w(ft)(Te, () => A(U.type, !1, { keyboard: !0 }), !0),
7370
- onClick: (Te) => w(i).timeArrowHoldThreshold ? void 0 : A(U.type, !1),
7371
- onMousedown: (Te) => w(i).timeArrowHoldThreshold ? A(U.type, !1) : void 0,
7369
+ onKeydown: (Te) => b(ft)(Te, () => A(U.type, !1, { keyboard: !0 }), !0),
7370
+ onClick: (Te) => b(i).timeArrowHoldThreshold ? void 0 : A(U.type, !1),
7371
+ onMousedown: (Te) => b(i).timeArrowHoldThreshold ? A(U.type, !1) : void 0,
7372
7372
  onMouseup: X
7373
7373
  }, [
7374
7374
  r.timePickerInline ? (g(), M(_e, { key: 1 }, [
@@ -7378,7 +7378,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7378
7378
  ], 64))
7379
7379
  ], 64)) : (g(), M(_e, { key: 0 }, [
7380
7380
  y.$slots["arrow-down"] ? ie(y.$slots, "arrow-down", { key: 0 }) : B("", !0),
7381
- y.$slots["arrow-down"] ? B("", !0) : (g(), Me(w(zr), { key: 1 }))
7381
+ y.$slots["arrow-down"] ? B("", !0) : (g(), Me(b(zr), { key: 1 }))
7382
7382
  ], 64))
7383
7383
  ], 42, c0)
7384
7384
  ], 64))
@@ -7397,16 +7397,16 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7397
7397
  type: "button",
7398
7398
  class: "dp__pm_am_button",
7399
7399
  role: "button",
7400
- "aria-label": (ae = w(l)) == null ? void 0 : ae.amPmButton,
7400
+ "aria-label": (ae = b(l)) == null ? void 0 : ae.amPmButton,
7401
7401
  tabindex: "0",
7402
7402
  onClick: ke,
7403
- onKeydown: Z[0] || (Z[0] = (U) => w(ft)(U, () => ke(), !0))
7403
+ onKeydown: Z[0] || (Z[0] = (U) => b(ft)(U, () => ke(), !0))
7404
7404
  }, ge(x.value), 41, p0))
7405
7405
  ])),
7406
7406
  (g(!0), M(_e, null, Pe(L.value, (U, Ae) => (g(), Me(gn, {
7407
7407
  key: Ae,
7408
- name: w(f)(k[U.type]),
7409
- css: w(p)
7408
+ name: b(f)(k[U.type]),
7409
+ css: b(p)
7410
7410
  }, {
7411
7411
  default: ve(() => {
7412
7412
  var R, ee;
@@ -7414,21 +7414,21 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7414
7414
  k[U.type] ? (g(), Me(aa, {
7415
7415
  key: 0,
7416
7416
  items: Q(U.type),
7417
- "is-last": y.autoApply && !w(i).keepActionRow,
7417
+ "is-last": y.autoApply && !b(i).keepActionRow,
7418
7418
  "esc-close": y.escClose,
7419
7419
  type: U.type,
7420
7420
  "text-input": y.textInput,
7421
7421
  config: y.config,
7422
7422
  "arrow-navigation": y.arrowNavigation,
7423
7423
  "aria-labels": y.ariaLabels,
7424
- "overlay-label": (ee = (R = w(l)).timeOverlay) == null ? void 0 : ee.call(R, U.type),
7424
+ "overlay-label": (ee = (R = b(l)).timeOverlay) == null ? void 0 : ee.call(R, U.type),
7425
7425
  onSelected: (he) => ne(U.type, he),
7426
7426
  onToggle: (he) => h(U.type),
7427
7427
  onResetFlow: Z[1] || (Z[1] = (he) => y.$emit("reset-flow"))
7428
7428
  }, lt({
7429
7429
  "button-icon": ve(() => [
7430
7430
  y.$slots["clock-icon"] ? ie(y.$slots, "clock-icon", { key: 0 }) : B("", !0),
7431
- y.$slots["clock-icon"] ? B("", !0) : (g(), Me(Da(y.timePickerInline ? w(Nn) : w(Wr)), { key: 1 }))
7431
+ y.$slots["clock-icon"] ? B("", !0) : (g(), Me(Da(y.timePickerInline ? b(Nn) : b(Wr)), { key: 1 }))
7432
7432
  ]),
7433
7433
  _: 2
7434
7434
  }, [
@@ -7486,7 +7486,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7486
7486
  "am-pm-change"
7487
7487
  ],
7488
7488
  setup(e, { expose: n, emit: t }) {
7489
- const a = t, r = e, { buildMatrix: o, setTimePicker: s } = rn(), l = yn(), { defaultedTransitions: u, defaultedAriaLabels: c, defaultedTextInput: i, defaultedConfig: d, defaultedRange: f } = qe(r), { transitionName: p, showTransition: k } = ra(u), { hideNavigationButtons: x } = Fa(), S = I(null), b = I(null), _ = I([]), v = I(null), N = I(!1);
7489
+ const a = t, r = e, { buildMatrix: o, setTimePicker: s } = rn(), l = yn(), { defaultedTransitions: u, defaultedAriaLabels: c, defaultedTextInput: i, defaultedConfig: d, defaultedRange: f } = qe(r), { transitionName: p, showTransition: k } = ra(u), { hideNavigationButtons: x } = Fa(), S = I(null), w = I(null), _ = I([]), v = I(null), N = I(!1);
7490
7490
  Le(() => {
7491
7491
  a("mount"), !r.timePicker && r.arrowNavigation ? o([Ke(S.value)], "time") : s(!0, r.timePicker);
7492
7492
  });
@@ -7535,20 +7535,20 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7535
7535
  ref: S,
7536
7536
  type: "button",
7537
7537
  class: me({ ...q.value, "dp--hidden-el": H.value }),
7538
- "aria-label": (be = w(c)) == null ? void 0 : be.openTimePicker,
7538
+ "aria-label": (be = b(c)) == null ? void 0 : be.openTimePicker,
7539
7539
  tabindex: Q.noOverlayFocus ? void 0 : 0,
7540
7540
  "data-test": "open-time-picker-btn",
7541
- onKeydown: le[0] || (le[0] = (T) => w(ft)(T, () => F(!0))),
7541
+ onKeydown: le[0] || (le[0] = (T) => b(ft)(T, () => F(!0))),
7542
7542
  onClick: le[1] || (le[1] = (T) => F(!0))
7543
7543
  }, [
7544
7544
  Q.$slots["clock-icon"] ? ie(Q.$slots, "clock-icon", { key: 0 }) : B("", !0),
7545
- Q.$slots["clock-icon"] ? B("", !0) : (g(), Me(w(Wr), { key: 1 }))
7545
+ Q.$slots["clock-icon"] ? B("", !0) : (g(), Me(b(Wr), { key: 1 }))
7546
7546
  ], 42, g0)), [
7547
- [zn, !w(x)(Q.hideNavigation, "time")]
7547
+ [zn, !b(x)(Q.hideNavigation, "time")]
7548
7548
  ]) : B("", !0),
7549
7549
  Ye(gn, {
7550
- name: w(p)(H.value),
7551
- css: w(k) && !Q.timePickerInline
7550
+ name: b(p)(H.value),
7551
+ css: b(k) && !Q.timePickerInline
7552
7552
  }, {
7553
7553
  default: ve(() => {
7554
7554
  var T, P;
@@ -7563,8 +7563,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7563
7563
  "dp--overlay-absolute": !r.timePicker && !Q.timePickerInline,
7564
7564
  "dp--overlay-relative": r.timePicker
7565
7565
  }),
7566
- style: bt(Q.timePicker ? { height: `${w(d).modeHeight}px` } : void 0),
7567
- "aria-label": (T = w(c)) == null ? void 0 : T.timePicker,
7566
+ style: bt(Q.timePicker ? { height: `${b(d).modeHeight}px` } : void 0),
7567
+ "aria-label": (T = b(c)) == null ? void 0 : T.timePicker,
7568
7568
  tabindex: Q.timePickerInline ? void 0 : 0
7569
7569
  }, [
7570
7570
  m("div", {
@@ -7595,9 +7595,9 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7595
7595
  hours: h.hours,
7596
7596
  minutes: h.minutes,
7597
7597
  seconds: h.seconds,
7598
- closeTimePickerBtn: b.value,
7598
+ closeTimePickerBtn: w.value,
7599
7599
  disabledTimesConfig: e.disabledTimesConfig,
7600
- disabled: Y === 0 ? w(f).fixedStart : w(f).fixedEnd
7600
+ disabled: Y === 0 ? b(f).fixedStart : b(f).fixedEnd
7601
7601
  }, {
7602
7602
  ref_for: !0,
7603
7603
  ref_key: "timeInputRefs",
@@ -7611,7 +7611,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7611
7611
  onOverlayOpened: se,
7612
7612
  onAmPmChange: le[2] || (le[2] = (X) => Q.$emit("am-pm-change", X))
7613
7613
  }), lt({ _: 2 }, [
7614
- Pe(w(K), (X, A) => ({
7614
+ Pe(b(K), (X, A) => ({
7615
7615
  name: X,
7616
7616
  fn: ve((ue) => [
7617
7617
  ie(Q.$slots, X, tt({ ref_for: !0 }, ue))
@@ -7624,18 +7624,18 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7624
7624
  !Q.timePicker && !Q.timePickerInline ? mt((g(), M("button", {
7625
7625
  key: 2,
7626
7626
  ref_key: "closeTimePickerBtn",
7627
- ref: b,
7627
+ ref: w,
7628
7628
  type: "button",
7629
7629
  class: me({ ...q.value, "dp--hidden-el": N.value }),
7630
- "aria-label": (P = w(c)) == null ? void 0 : P.closeTimePicker,
7630
+ "aria-label": (P = b(c)) == null ? void 0 : P.closeTimePicker,
7631
7631
  tabindex: "0",
7632
- onKeydown: le[3] || (le[3] = (h) => w(ft)(h, () => F(!1))),
7632
+ onKeydown: le[3] || (le[3] = (h) => b(ft)(h, () => F(!1))),
7633
7633
  onClick: le[4] || (le[4] = (h) => F(!1))
7634
7634
  }, [
7635
7635
  Q.$slots["calendar-icon"] ? ie(Q.$slots, "calendar-icon", { key: 0 }) : B("", !0),
7636
- Q.$slots["calendar-icon"] ? B("", !0) : (g(), Me(w(Nn), { key: 1 }))
7636
+ Q.$slots["calendar-icon"] ? B("", !0) : (g(), Me(b(Nn), { key: 1 }))
7637
7637
  ], 42, b0)), [
7638
- [zn, !w(x)(Q.hideNavigation, "time")]
7638
+ [zn, !b(x)(Q.hideNavigation, "time")]
7639
7639
  ]) : B("", !0)
7640
7640
  ], 2)
7641
7641
  ], 14, w0)) : B("", !0)
@@ -7678,7 +7678,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7678
7678
  const N = Array.isArray(v), te = N ? [+v[0].hours, +v[1].hours] : +v.hours, H = N ? [+v[0].minutes, +v[1].minutes] : +v.minutes, D = N ? [+v[0].seconds, +v[1].seconds] : +v.seconds;
7679
7679
  u("hours", te), u("minutes", H), e.enableSeconds && u("seconds", D);
7680
7680
  }
7681
- }, b = (v, N) => {
7681
+ }, w = (v, N) => {
7682
7682
  const te = {
7683
7683
  hours: Array.isArray(n.hours) ? n.hours[v] : n.hours,
7684
7684
  disabledArr: []
@@ -7687,7 +7687,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7687
7687
  }, _ = G(() => (v, N) => {
7688
7688
  var te;
7689
7689
  if (Array.isArray(e.disabledTimes)) {
7690
- const { disabledArr: H, hours: D } = b(v, N), E = H.filter((F) => +F.hours === D);
7690
+ const { disabledArr: H, hours: D } = w(v, N), E = H.filter((F) => +F.hours === D);
7691
7691
  return ((te = E[0]) == null ? void 0 : te.minutes) === "*" ? { hours: [D], minutes: void 0, seconds: void 0 } : {
7692
7692
  hours: [],
7693
7693
  minutes: (E == null ? void 0 : E.map((F) => +F.minutes)) ?? [],
@@ -7728,7 +7728,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7728
7728
  return Ee(J(), H);
7729
7729
  }
7730
7730
  return s.value.enabled ? [null, null] : null;
7731
- }, b = () => {
7731
+ }, w = () => {
7732
7732
  if (s.value.enabled) {
7733
7733
  const [H, D] = S();
7734
7734
  a.value = [
@@ -7749,7 +7749,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7749
7749
  };
7750
7750
  Le(() => {
7751
7751
  if (!e.shadow)
7752
- return d(o.value), a.value ? N() : b();
7752
+ return d(o.value), a.value ? N() : w();
7753
7753
  });
7754
7754
  const te = () => {
7755
7755
  Array.isArray(a.value) ? a.value = a.value.map((H, D) => H && c(H, D)) : a.value = c(a.value), n("time-update");
@@ -7800,24 +7800,24 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7800
7800
  ref_key: "tpRef",
7801
7801
  ref: l
7802
7802
  }, p.$props, {
7803
- hours: w(u).hours,
7804
- minutes: w(u).minutes,
7805
- seconds: w(u).seconds,
7803
+ hours: b(u).hours,
7804
+ minutes: b(u).minutes,
7805
+ seconds: b(u).seconds,
7806
7806
  "internal-model-value": p.internalModelValue,
7807
- "disabled-times-config": w(i),
7808
- "validate-time": w(f),
7809
- "onUpdate:hours": k[0] || (k[0] = (x) => w(d)(x)),
7810
- "onUpdate:minutes": k[1] || (k[1] = (x) => w(d)(x, !1)),
7811
- "onUpdate:seconds": k[2] || (k[2] = (x) => w(d)(x, !1, !0)),
7807
+ "disabled-times-config": b(i),
7808
+ "validate-time": b(f),
7809
+ "onUpdate:hours": k[0] || (k[0] = (x) => b(d)(x)),
7810
+ "onUpdate:minutes": k[1] || (k[1] = (x) => b(d)(x, !1)),
7811
+ "onUpdate:seconds": k[2] || (k[2] = (x) => b(d)(x, !1, !0)),
7812
7812
  onAmPmChange: k[3] || (k[3] = (x) => p.$emit("am-pm-change", x)),
7813
7813
  onResetFlow: k[4] || (k[4] = (x) => p.$emit("reset-flow")),
7814
7814
  onOverlayClosed: k[5] || (k[5] = (x) => p.$emit("overlay-toggle", { open: !1, overlay: x })),
7815
7815
  onOverlayOpened: k[6] || (k[6] = (x) => p.$emit("overlay-toggle", { open: !0, overlay: x }))
7816
7816
  }), lt({ _: 2 }, [
7817
- Pe(w(s), (x, S) => ({
7817
+ Pe(b(s), (x, S) => ({
7818
7818
  name: x,
7819
- fn: ve((b) => [
7820
- ie(p.$slots, x, nt(vt(b)))
7819
+ fn: ve((w) => [
7820
+ ie(p.$slots, x, nt(vt(w)))
7821
7821
  ])
7822
7822
  }))
7823
7823
  ]), 1040, ["hours", "minutes", "seconds", "internal-model-value", "disabled-times-config", "validate-time"])
@@ -7852,7 +7852,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7852
7852
  defaultedHighlight: i,
7853
7853
  propDates: d,
7854
7854
  defaultedUI: f
7855
- } = qe(r), { transitionName: p, showTransition: k } = ra(o), { buildMatrix: x } = rn(), { handleMonthYearChange: S, isDisabled: b, updateMonthYear: _ } = Vm(r, a), { showLeftIcon: v, showRightIcon: N } = Fa(), te = I(!1), H = I(!1), D = I(!1), E = I([null, null, null, null]);
7855
+ } = qe(r), { transitionName: p, showTransition: k } = ra(o), { buildMatrix: x } = rn(), { handleMonthYearChange: S, isDisabled: w, updateMonthYear: _ } = Vm(r, a), { showLeftIcon: v, showRightIcon: N } = Fa(), te = I(!1), H = I(!1), D = I(!1), E = I([null, null, null, null]);
7856
7856
  Le(() => {
7857
7857
  a("mount");
7858
7858
  });
@@ -7930,24 +7930,24 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7930
7930
  var Y, X, A, ue, ke, Ze;
7931
7931
  return g(), M("div", x0, [
7932
7932
  P.$slots["month-year"] ? (g(), M("div", A0, [
7933
- ie(P.$slots, "month-year", nt(vt({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: w(_), handleMonthYearChange: w(S), instance: e.instance })))
7933
+ ie(P.$slots, "month-year", nt(vt({ month: e.month, year: e.year, months: e.months, years: e.years, updateMonthYear: b(_), handleMonthYearChange: b(S), instance: e.instance })))
7934
7934
  ])) : (g(), M(_e, { key: 1 }, [
7935
7935
  P.$slots["top-extra"] ? (g(), M("div", M0, [
7936
7936
  ie(P.$slots, "top-extra", { value: P.internalModelValue })
7937
7937
  ])) : B("", !0),
7938
7938
  m("div", D0, [
7939
- w(v)(w(l), e.instance) && !P.vertical ? (g(), Me(Vn, {
7939
+ b(v)(b(l), e.instance) && !P.vertical ? (g(), Me(Vn, {
7940
7940
  key: 0,
7941
- "aria-label": (Y = w(s)) == null ? void 0 : Y.prevMonth,
7942
- disabled: w(b)(!1),
7943
- class: me((X = w(f)) == null ? void 0 : X.navBtnPrev),
7941
+ "aria-label": (Y = b(s)) == null ? void 0 : Y.prevMonth,
7942
+ disabled: b(w)(!1),
7943
+ class: me((X = b(f)) == null ? void 0 : X.navBtnPrev),
7944
7944
  "el-name": "action-prev",
7945
- onActivate: h[0] || (h[0] = (W) => w(S)(!1, !0)),
7945
+ onActivate: h[0] || (h[0] = (W) => b(S)(!1, !0)),
7946
7946
  onSetRef: h[1] || (h[1] = (W) => le(W, 0))
7947
7947
  }, {
7948
7948
  default: ve(() => [
7949
7949
  P.$slots["arrow-left"] ? ie(P.$slots, "arrow-left", { key: 0 }) : B("", !0),
7950
- P.$slots["arrow-left"] ? B("", !0) : (g(), Me(w(Br), { key: 1 }))
7950
+ P.$slots["arrow-left"] ? B("", !0) : (g(), Me(b(Br), { key: 1 }))
7951
7951
  ]),
7952
7952
  _: 3
7953
7953
  }, 8, ["aria-label", "disabled", "class"])) : B("", !0),
@@ -7968,7 +7968,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7968
7968
  "aria-label": `${W.text}-${W.ariaLabel}`,
7969
7969
  "data-test": `${W.type}-toggle-overlay-${e.instance}`,
7970
7970
  onClick: W.toggle,
7971
- onKeydown: (y) => w(ft)(y, () => W.toggle(), !0)
7971
+ onKeydown: (y) => b(ft)(y, () => W.toggle(), !0)
7972
7972
  }, [
7973
7973
  P.$slots[W.type] ? ie(P.$slots, W.type, {
7974
7974
  key: 0,
@@ -7980,8 +7980,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7980
7980
  ], 64))
7981
7981
  ], 42, T0),
7982
7982
  Ye(gn, {
7983
- name: w(p)(W.showSelectionGrid),
7984
- css: w(k)
7983
+ name: b(p)(W.showSelectionGrid),
7984
+ css: b(k)
7985
7985
  }, {
7986
7986
  default: ve(() => [
7987
7987
  W.showSelectionGrid ? (g(), Me(aa, {
@@ -7989,7 +7989,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
7989
7989
  items: W.items,
7990
7990
  "arrow-navigation": P.arrowNavigation,
7991
7991
  "hide-navigation": P.hideNavigation,
7992
- "is-last": P.autoApply && !w(c).keepActionRow,
7992
+ "is-last": P.autoApply && !b(c).keepActionRow,
7993
7993
  "skip-button-ref": !1,
7994
7994
  config: P.config,
7995
7995
  type: W.type,
@@ -8004,7 +8004,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8004
8004
  }, lt({
8005
8005
  "button-icon": ve(() => [
8006
8006
  P.$slots["calendar-icon"] ? ie(P.$slots, "calendar-icon", { key: 0 }) : B("", !0),
8007
- P.$slots["calendar-icon"] ? B("", !0) : (g(), Me(w(Nn), { key: 1 }))
8007
+ P.$slots["calendar-icon"] ? B("", !0) : (g(), Me(b(Nn), { key: 1 }))
8008
8008
  ]),
8009
8009
  _: 2
8010
8010
  }, [
@@ -8040,33 +8040,33 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8040
8040
  }, 1032, ["name", "css"])
8041
8041
  ], 64))), 128))
8042
8042
  ], 2),
8043
- w(v)(w(l), e.instance) && P.vertical ? (g(), Me(Vn, {
8043
+ b(v)(b(l), e.instance) && P.vertical ? (g(), Me(Vn, {
8044
8044
  key: 1,
8045
- "aria-label": (A = w(s)) == null ? void 0 : A.prevMonth,
8045
+ "aria-label": (A = b(s)) == null ? void 0 : A.prevMonth,
8046
8046
  "el-name": "action-prev",
8047
- disabled: w(b)(!1),
8048
- class: me((ue = w(f)) == null ? void 0 : ue.navBtnPrev),
8049
- onActivate: h[2] || (h[2] = (W) => w(S)(!1, !0))
8047
+ disabled: b(w)(!1),
8048
+ class: me((ue = b(f)) == null ? void 0 : ue.navBtnPrev),
8049
+ onActivate: h[2] || (h[2] = (W) => b(S)(!1, !0))
8050
8050
  }, {
8051
8051
  default: ve(() => [
8052
8052
  P.$slots["arrow-up"] ? ie(P.$slots, "arrow-up", { key: 0 }) : B("", !0),
8053
- P.$slots["arrow-up"] ? B("", !0) : (g(), Me(w(Hr), { key: 1 }))
8053
+ P.$slots["arrow-up"] ? B("", !0) : (g(), Me(b(Hr), { key: 1 }))
8054
8054
  ]),
8055
8055
  _: 3
8056
8056
  }, 8, ["aria-label", "disabled", "class"])) : B("", !0),
8057
- w(N)(w(l), e.instance) ? (g(), Me(Vn, {
8057
+ b(N)(b(l), e.instance) ? (g(), Me(Vn, {
8058
8058
  key: 2,
8059
8059
  ref: "rightIcon",
8060
8060
  "el-name": "action-next",
8061
- disabled: w(b)(!0),
8062
- "aria-label": (ke = w(s)) == null ? void 0 : ke.nextMonth,
8063
- class: me((Ze = w(f)) == null ? void 0 : Ze.navBtnNext),
8064
- onActivate: h[3] || (h[3] = (W) => w(S)(!0, !0)),
8061
+ disabled: b(w)(!0),
8062
+ "aria-label": (ke = b(s)) == null ? void 0 : ke.nextMonth,
8063
+ class: me((Ze = b(f)) == null ? void 0 : Ze.navBtnNext),
8064
+ onActivate: h[3] || (h[3] = (W) => b(S)(!0, !0)),
8065
8065
  onSetRef: h[4] || (h[4] = (W) => le(W, P.disableYearSelect ? 2 : 3))
8066
8066
  }, {
8067
8067
  default: ve(() => [
8068
8068
  P.$slots[P.vertical ? "arrow-down" : "arrow-right"] ? ie(P.$slots, P.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : B("", !0),
8069
- P.$slots[P.vertical ? "arrow-down" : "arrow-right"] ? B("", !0) : (g(), Me(Da(P.vertical ? w(zr) : w(qr)), { key: 1 }))
8069
+ P.$slots[P.vertical ? "arrow-down" : "arrow-right"] ? B("", !0) : (g(), Me(Da(P.vertical ? b(zr) : b(qr)), { key: 1 }))
8070
8070
  ]),
8071
8071
  _: 3
8072
8072
  }, 8, ["disabled", "aria-label", "class"])) : B("", !0)
@@ -8121,15 +8121,15 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8121
8121
  bottom: "",
8122
8122
  left: "",
8123
8123
  transform: ""
8124
- }), x = I([]), S = I(null), b = I(!0), _ = I(""), v = I({ startX: 0, endX: 0, startY: 0, endY: 0 }), N = I([]), te = I({ left: "50%" }), H = I(!1), D = G(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), E = G(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : hm(r.formatLocale, r.locale, +r.weekStart));
8124
+ }), x = I([]), S = I(null), w = I(!0), _ = I(""), v = I({ startX: 0, endX: 0, startY: 0, endY: 0 }), N = I([]), te = I({ left: "50%" }), H = I(!1), D = G(() => r.calendar ? r.calendar(r.mappedDates) : r.mappedDates), E = G(() => r.dayNames ? Array.isArray(r.dayNames) ? r.dayNames : r.dayNames(r.locale, +r.weekStart) : hm(r.formatLocale, r.locale, +r.weekStart));
8125
8125
  Le(() => {
8126
8126
  a("mount", { cmp: "calendar", refs: x }), l.value.noSwipe || S.value && (S.value.addEventListener("touchstart", le, { passive: !1 }), S.value.addEventListener("touchend", be, { passive: !1 }), S.value.addEventListener("touchmove", T, { passive: !1 })), r.monthChangeOnScroll && S.value && S.value.addEventListener("wheel", Y, { passive: !1 });
8127
8127
  });
8128
8128
  const F = (W) => W ? r.vertical ? "vNext" : "next" : r.vertical ? "vPrevious" : "previous", q = (W, ne) => {
8129
8129
  if (r.transitions) {
8130
8130
  const y = ht(Ht(J(), r.month, r.year));
8131
- _.value = Ue(ht(Ht(J(), W, ne)), y) ? s.value[F(!0)] : s.value[F(!1)], b.value = !1, Ge(() => {
8132
- b.value = !0;
8131
+ _.value = Ue(ht(Ht(J(), W, ne)), y) ? s.value[F(!0)] : s.value[F(!1)], w.value = !1, Ge(() => {
8132
+ w.value = !0;
8133
8133
  });
8134
8134
  }
8135
8135
  }, K = G(
@@ -8210,7 +8210,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8210
8210
  class: "dp__calendar_header_item",
8211
8211
  role: "gridcell",
8212
8212
  "data-test": "calendar-header",
8213
- "aria-label": (U = (ae = w(u)) == null ? void 0 : ae.weekDay) == null ? void 0 : U.call(ae, Z)
8213
+ "aria-label": (U = (ae = b(u)) == null ? void 0 : ae.weekDay) == null ? void 0 : U.call(ae, Z)
8214
8214
  }, [
8215
8215
  W.$slots["calendar-header"] ? ie(W.$slots, "calendar-header", {
8216
8216
  key: 0,
@@ -8229,7 +8229,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8229
8229
  css: !!W.transitions
8230
8230
  }, {
8231
8231
  default: ve(() => [
8232
- b.value ? (g(), M("div", {
8232
+ w.value ? (g(), M("div", {
8233
8233
  key: 0,
8234
8234
  class: "dp__calendar",
8235
8235
  role: "rowgroup",
@@ -8246,7 +8246,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8246
8246
  (g(!0), M(_e, null, Pe(y.days, (ae, U) => {
8247
8247
  var Ae, R, ee;
8248
8248
  return g(), M("div", {
8249
- id: w(cl)(ae.value),
8249
+ id: b(cl)(ae.value),
8250
8250
  ref_for: !0,
8251
8251
  ref: (he) => h(he, Z, U),
8252
8252
  key: U + Z,
@@ -8254,12 +8254,12 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8254
8254
  class: "dp__calendar_item",
8255
8255
  "aria-pressed": (ae.classData.dp__active_date || ae.classData.dp__range_start || ae.classData.dp__range_start) ?? void 0,
8256
8256
  "aria-disabled": ae.classData.dp__cell_disabled || void 0,
8257
- "aria-label": (R = (Ae = w(u)) == null ? void 0 : Ae.day) == null ? void 0 : R.call(Ae, ae),
8257
+ "aria-label": (R = (Ae = b(u)) == null ? void 0 : Ae.day) == null ? void 0 : R.call(Ae, ae),
8258
8258
  tabindex: "0",
8259
8259
  "data-test": ae.value,
8260
8260
  onClick: Kt((he) => ue(he, ae), ["prevent"]),
8261
8261
  onTouchend: (he) => ue(he, ae, !1),
8262
- onKeydown: (he) => w(ft)(he, () => W.$emit("select-date", ae)),
8262
+ onKeydown: (he) => b(ft)(he, () => W.$emit("select-date", ae)),
8263
8263
  onMouseenter: (he) => se(ae, Z, U),
8264
8264
  onMouseleave: (he) => Q(ae),
8265
8265
  onMousedown: (he) => Ze(ae),
@@ -8342,7 +8342,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8342
8342
  defaultedRange: k,
8343
8343
  defaultedConfig: x,
8344
8344
  defaultedTz: S,
8345
- propDates: b,
8345
+ propDates: w,
8346
8346
  defaultedMultiDates: _
8347
8347
  } = qe(e), { validateMonthYearInRange: v, isDisabled: N, isDateRangeAllowed: te, checkMinMaxRange: H } = on(e), { updateTimeValues: D, getSetDateTime: E, setTime: F, assignStartTime: q, validateTime: K, disabledTimesConfig: de } = gl(e, i, u, a), pe = G(
8348
8348
  () => (O) => c.value[O] ? c.value[O].month : 0
@@ -8431,8 +8431,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8431
8431
  }, Z = (O, oe) => {
8432
8432
  ue(O === "right" ? -1 : 1, oe);
8433
8433
  }, ae = (O) => {
8434
- if (b.value.markers)
8435
- return ka(O.value, b.value.markers);
8434
+ if (w.value.markers)
8435
+ return ka(O.value, w.value.markers);
8436
8436
  }, U = (O, oe) => {
8437
8437
  switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
8438
8438
  case "prepend":
@@ -8620,7 +8620,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8620
8620
  getMarker: k,
8621
8621
  handleArrow: x,
8622
8622
  handleScroll: S,
8623
- handleSwipe: b,
8623
+ handleSwipe: w,
8624
8624
  selectDate: _,
8625
8625
  updateMonthYear: v,
8626
8626
  presetDate: N,
@@ -8712,7 +8712,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8712
8712
  selectWeekDate: A
8713
8713
  }), (ne, y) => (g(), M(_e, null, [
8714
8714
  Ye(Na, {
8715
- "multi-calendars": w(de).count,
8715
+ "multi-calendars": b(de).count,
8716
8716
  collapse: ne.collapse
8717
8717
  }, {
8718
8718
  default: ve(({ instance: Z, index: ae }) => [
@@ -8721,19 +8721,19 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8721
8721
  ref: (U) => {
8722
8722
  U && (pe.value[ae] = U);
8723
8723
  },
8724
- months: w(el)(ne.formatLocale, ne.locale, ne.monthNameFormat),
8725
- years: w(Vr)(ne.yearRange, ne.locale, ne.reverseYears),
8726
- month: w(s)(Z),
8727
- year: w(l)(Z),
8724
+ months: b(el)(ne.formatLocale, ne.locale, ne.monthNameFormat),
8725
+ years: b(Vr)(ne.yearRange, ne.locale, ne.reverseYears),
8726
+ month: b(s)(Z),
8727
+ year: b(l)(Z),
8728
8728
  instance: Z
8729
8729
  }, ne.$props, {
8730
- onMount: y[0] || (y[0] = (U) => Q(w(mn).header)),
8730
+ onMount: y[0] || (y[0] = (U) => Q(b(mn).header)),
8731
8731
  onResetFlow: y[1] || (y[1] = (U) => ne.$emit("reset-flow")),
8732
- onUpdateMonthYear: (U) => w(v)(Z, U),
8732
+ onUpdateMonthYear: (U) => b(v)(Z, U),
8733
8733
  onOverlayClosed: W,
8734
8734
  onOverlayOpened: y[2] || (y[2] = (U) => ne.$emit("overlay-toggle", { open: !0, overlay: U }))
8735
8735
  }), lt({ _: 2 }, [
8736
- Pe(w(z), (U, Ae) => ({
8736
+ Pe(b(z), (U, Ae) => ({
8737
8737
  name: U,
8738
8738
  fn: ve((R) => [
8739
8739
  ie(ne.$slots, U, nt(vt(R)))
@@ -8745,21 +8745,21 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8745
8745
  U && ($.value[ae] = U);
8746
8746
  },
8747
8747
  "mapped-dates": le.value(Z),
8748
- month: w(s)(Z),
8749
- year: w(l)(Z),
8748
+ month: b(s)(Z),
8749
+ year: b(l)(Z),
8750
8750
  instance: Z
8751
8751
  }, ne.$props, {
8752
- onSelectDate: (U) => w(_)(U, Z !== 1),
8752
+ onSelectDate: (U) => b(_)(U, Z !== 1),
8753
8753
  onHandleSpace: (U) => P(U, Z !== 1),
8754
- onSetHoverDate: y[3] || (y[3] = (U) => w(F)(U)),
8755
- onHandleScroll: (U) => w(S)(U, Z),
8756
- onHandleSwipe: (U) => w(b)(U, Z),
8757
- onMount: y[4] || (y[4] = (U) => Q(w(mn).calendar)),
8754
+ onSetHoverDate: y[3] || (y[3] = (U) => b(F)(U)),
8755
+ onHandleScroll: (U) => b(S)(U, Z),
8756
+ onHandleSwipe: (U) => b(w)(U, Z),
8757
+ onMount: y[4] || (y[4] = (U) => Q(b(mn).calendar)),
8758
8758
  onResetFlow: y[5] || (y[5] = (U) => ne.$emit("reset-flow")),
8759
8759
  onTooltipOpen: y[6] || (y[6] = (U) => ne.$emit("tooltip-open", U)),
8760
8760
  onTooltipClose: y[7] || (y[7] = (U) => ne.$emit("tooltip-close", U))
8761
8761
  }), lt({ _: 2 }, [
8762
- Pe(w(C), (U, Ae) => ({
8762
+ Pe(b(C), (U, Ae) => ({
8763
8763
  name: U,
8764
8764
  fn: ve((R) => [
8765
8765
  ie(ne.$slots, U, nt(vt({ ...R })))
@@ -8770,27 +8770,27 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8770
8770
  _: 3
8771
8771
  }, 8, ["multi-calendars", "collapse"]),
8772
8772
  ne.enableTimePicker ? (g(), M("div", L0, [
8773
- ne.$slots["time-picker"] ? ie(ne.$slots, "time-picker", nt(tt({ key: 0 }, { time: w(c), updateTime: w(H) }))) : (g(), Me(yl, tt({
8773
+ ne.$slots["time-picker"] ? ie(ne.$slots, "time-picker", nt(tt({ key: 0 }, { time: b(c), updateTime: b(H) }))) : (g(), Me(yl, tt({
8774
8774
  key: 1,
8775
8775
  ref_key: "timePickerRef",
8776
8776
  ref: L
8777
8777
  }, ne.$props, {
8778
- hours: w(c).hours,
8779
- minutes: w(c).minutes,
8780
- seconds: w(c).seconds,
8778
+ hours: b(c).hours,
8779
+ minutes: b(c).minutes,
8780
+ seconds: b(c).seconds,
8781
8781
  "internal-model-value": ne.internalModelValue,
8782
- "disabled-times-config": w(i),
8783
- "validate-time": w(f),
8784
- onMount: y[8] || (y[8] = (Z) => Q(w(mn).timePicker)),
8785
- "onUpdate:hours": y[9] || (y[9] = (Z) => w(H)(Z)),
8786
- "onUpdate:minutes": y[10] || (y[10] = (Z) => w(H)(Z, !1)),
8787
- "onUpdate:seconds": y[11] || (y[11] = (Z) => w(H)(Z, !1, !0)),
8782
+ "disabled-times-config": b(i),
8783
+ "validate-time": b(f),
8784
+ onMount: y[8] || (y[8] = (Z) => Q(b(mn).timePicker)),
8785
+ "onUpdate:hours": y[9] || (y[9] = (Z) => b(H)(Z)),
8786
+ "onUpdate:minutes": y[10] || (y[10] = (Z) => b(H)(Z, !1)),
8787
+ "onUpdate:seconds": y[11] || (y[11] = (Z) => b(H)(Z, !1, !0)),
8788
8788
  onResetFlow: y[12] || (y[12] = (Z) => ne.$emit("reset-flow")),
8789
8789
  onOverlayClosed: y[13] || (y[13] = (Z) => Ze(Z, !1)),
8790
8790
  onOverlayOpened: y[14] || (y[14] = (Z) => Ze(Z, !0)),
8791
8791
  onAmPmChange: y[15] || (y[15] = (Z) => ne.$emit("am-pm-change", Z))
8792
8792
  }), lt({ _: 2 }, [
8793
- Pe(w(se), (Z, ae) => ({
8793
+ Pe(b(se), (Z, ae) => ({
8794
8794
  name: Z,
8795
8795
  fn: ve((U) => [
8796
8796
  ie(ne.$slots, Z, nt(vt(U)))
@@ -8809,7 +8809,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8809
8809
  propDates: l,
8810
8810
  defaultedFilters: u,
8811
8811
  defaultedMultiDates: c
8812
- } = qe(e), { modelValue: i, year: d, month: f, calendars: p } = oa(e, n), { isDisabled: k } = on(e), { selectYear: x, groupedYears: S, showYearPicker: b, isDisabled: _, toggleYearPicker: v, handleYearSelect: N, handleYear: te } = vl({
8812
+ } = qe(e), { modelValue: i, year: d, month: f, calendars: p } = oa(e, n), { isDisabled: k } = on(e), { selectYear: x, groupedYears: S, showYearPicker: w, isDisabled: _, toggleYearPicker: v, handleYearSelect: N, handleYear: te } = vl({
8813
8813
  modelValue: i,
8814
8814
  multiCalendars: a,
8815
8815
  range: s,
@@ -8860,7 +8860,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8860
8860
  year: d,
8861
8861
  isDisabled: _,
8862
8862
  quarters: K,
8863
- showYearPicker: b,
8863
+ showYearPicker: w,
8864
8864
  modelValue: i,
8865
8865
  setHoverDate: (L) => {
8866
8866
  t.value = L;
@@ -8904,7 +8904,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8904
8904
  showYearPicker: k,
8905
8905
  setHoverDate: x,
8906
8906
  selectQuarter: S,
8907
- toggleYearPicker: b,
8907
+ toggleYearPicker: w,
8908
8908
  handleYearSelect: _,
8909
8909
  handleYear: v
8910
8910
  } = B0(r, a);
@@ -8915,14 +8915,14 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8915
8915
  handleYearSelect: _,
8916
8916
  handleYear: v
8917
8917
  }) }), (N, te) => (g(), Me(Na, {
8918
- "multi-calendars": w(l).count,
8918
+ "multi-calendars": b(l).count,
8919
8919
  collapse: N.collapse,
8920
8920
  stretch: ""
8921
8921
  }, {
8922
8922
  default: ve(({ instance: H }) => [
8923
8923
  m("div", {
8924
8924
  class: "dp-quarter-picker-wrap",
8925
- style: bt({ minHeight: `${w(u).modeHeight}px` })
8925
+ style: bt({ minHeight: `${b(u).modeHeight}px` })
8926
8926
  }, [
8927
8927
  N.$slots["top-extra"] ? ie(N.$slots, "top-extra", {
8928
8928
  key: 0,
@@ -8930,16 +8930,16 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8930
8930
  }) : B("", !0),
8931
8931
  m("div", null, [
8932
8932
  Ye(ml, tt(N.$props, {
8933
- items: w(c)(H),
8933
+ items: b(c)(H),
8934
8934
  instance: H,
8935
- "show-year-picker": w(k)[H],
8936
- year: w(i)(H),
8937
- "is-disabled": (D) => w(d)(H, D),
8938
- onHandleYear: (D) => w(v)(H, D),
8939
- onYearSelect: (D) => w(_)(D, H),
8940
- onToggleYearPicker: (D) => w(b)(H, D == null ? void 0 : D.flow, D == null ? void 0 : D.show)
8935
+ "show-year-picker": b(k)[H],
8936
+ year: b(i)(H),
8937
+ "is-disabled": (D) => b(d)(H, D),
8938
+ onHandleYear: (D) => b(v)(H, D),
8939
+ onYearSelect: (D) => b(_)(D, H),
8940
+ onToggleYearPicker: (D) => b(w)(H, D == null ? void 0 : D.flow, D == null ? void 0 : D.show)
8941
8941
  }), lt({ _: 2 }, [
8942
- Pe(w(s), (D, E) => ({
8942
+ Pe(b(s), (D, E) => ({
8943
8943
  name: D,
8944
8944
  fn: ve((F) => [
8945
8945
  ie(N.$slots, D, nt(vt(F)))
@@ -8948,7 +8948,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8948
8948
  ]), 1040, ["items", "instance", "show-year-picker", "year", "is-disabled", "onHandleYear", "onYearSelect", "onToggleYearPicker"])
8949
8949
  ]),
8950
8950
  m("div", q0, [
8951
- (g(!0), M(_e, null, Pe(w(f)(H), (D, E) => (g(), M("div", { key: E }, [
8951
+ (g(!0), M(_e, null, Pe(b(f)(H), (D, E) => (g(), M("div", { key: E }, [
8952
8952
  m("button", {
8953
8953
  type: "button",
8954
8954
  class: me(["dp--qr-btn", {
@@ -8959,8 +8959,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
8959
8959
  }]),
8960
8960
  "data-test": D.value,
8961
8961
  disabled: D.disabled,
8962
- onClick: (F) => w(S)(D.value, H, D.disabled),
8963
- onMouseover: (F) => w(x)(D.value)
8962
+ onClick: (F) => b(S)(D.value, H, D.disabled),
8963
+ onMouseover: (F) => b(x)(D.value)
8964
8964
  }, [
8965
8965
  N.$slots.quarter ? ie(N.$slots, "quarter", {
8966
8966
  key: 0,
@@ -9042,7 +9042,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9042
9042
  noOverlayFocus: r.noOverlayFocus,
9043
9043
  menuWrapRef: o.value
9044
9044
  };
9045
- }), { setMenuFocused: l, setShiftKey: u, control: c } = fl(), i = yn(), { defaultedTextInput: d, defaultedInline: f, defaultedConfig: p, defaultedUI: k } = qe(r), x = I(null), S = I(0), b = I(null), _ = I(!1), v = I(null);
9045
+ }), { setMenuFocused: l, setShiftKey: u, control: c } = fl(), i = yn(), { defaultedTextInput: d, defaultedInline: f, defaultedConfig: p, defaultedUI: k } = qe(r), x = I(null), S = I(0), w = I(null), _ = I(!1), v = I(null);
9046
9046
  Le(() => {
9047
9047
  if (!r.shadow) {
9048
9048
  _.value = !0, N(), window.addEventListener("resize", N);
@@ -9058,7 +9058,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9058
9058
  window.removeEventListener("resize", N);
9059
9059
  });
9060
9060
  const N = () => {
9061
- const R = Ke(b);
9061
+ const R = Ke(w);
9062
9062
  R && (S.value = R.getBoundingClientRect().width);
9063
9063
  }, { arrowRight: te, arrowLeft: H, arrowDown: D, arrowUp: E } = rn(), { flowStep: F, updateFlowStep: q, childMount: K, resetFlow: de, handleFlow: pe } = ah(r, a, v), $ = G(() => r.monthPicker ? a0 : r.yearPicker ? o0 : r.timePicker ? k0 : r.quarterPicker ? H0 : I0), L = G(() => {
9064
9064
  var R;
@@ -9151,8 +9151,8 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9151
9151
  id: R.uid ? `dp-menu-${R.uid}` : void 0,
9152
9152
  ref_key: "dpMenuRef",
9153
9153
  ref: o,
9154
- tabindex: w(f).enabled ? void 0 : "0",
9155
- role: w(f).enabled ? void 0 : "dialog",
9154
+ tabindex: b(f).enabled ? void 0 : "0",
9155
+ role: b(f).enabled ? void 0 : "dialog",
9156
9156
  "aria-label": (he = R.ariaLabels) == null ? void 0 : he.menu,
9157
9157
  class: me(P.value),
9158
9158
  style: bt({ "--dp-arrow-left": L.value }),
@@ -9160,7 +9160,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9160
9160
  onClick: h,
9161
9161
  onKeydown: Ae
9162
9162
  }, [
9163
- (R.disabled || R.readonly) && w(f).enabled || R.loading ? (g(), M("div", {
9163
+ (R.disabled || R.readonly) && b(f).enabled || R.loading ? (g(), M("div", {
9164
9164
  key: 0,
9165
9165
  class: me(T.value)
9166
9166
  }, [
@@ -9169,13 +9169,13 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9169
9169
  R.$slots["menu-header"] ? (g(), M("div", Q0, [
9170
9170
  ie(R.$slots, "menu-header")
9171
9171
  ])) : B("", !0),
9172
- !w(f).enabled && !R.teleportCenter ? (g(), M("div", {
9172
+ !b(f).enabled && !R.teleportCenter ? (g(), M("div", {
9173
9173
  key: 2,
9174
9174
  class: me(be.value)
9175
9175
  }, null, 2)) : B("", !0),
9176
9176
  m("div", {
9177
9177
  ref_key: "innerMenuRef",
9178
- ref: b,
9178
+ ref: w,
9179
9179
  class: me({
9180
9180
  dp__menu_content_wrapper: ((Te = R.presetDates) == null ? void 0 : Te.length) || !!R.$slots["left-sidebar"] || !!R.$slots["right-sidebar"],
9181
9181
  "dp--menu-content-wrapper-collapsed": e.collapse && (((xt = R.presetDates) == null ? void 0 : xt.length) || !!R.$slots["left-sidebar"] || !!R.$slots["right-sidebar"])
@@ -9202,7 +9202,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9202
9202
  class: me(["dp__btn dp--preset-range", { "dp--preset-range-collapsed": e.collapse }]),
9203
9203
  "data-test": we.testId ?? void 0,
9204
9204
  onClick: Kt((Et) => y(we.value, we.noTz), ["prevent"]),
9205
- onKeydown: (Et) => w(ft)(Et, () => y(we.value, we.noTz), !0)
9205
+ onKeydown: (Et) => b(ft)(Et, () => y(we.value, we.noTz), !0)
9206
9206
  }, ge(we.label), 47, G0))
9207
9207
  ], 64))), 128))
9208
9208
  ], 2)) : B("", !0),
@@ -9216,10 +9216,10 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9216
9216
  ref_key: "dynCmpRef",
9217
9217
  ref: v
9218
9218
  }, s.value, {
9219
- "flow-step": w(F),
9220
- onMount: w(K),
9221
- onUpdateFlowStep: w(q),
9222
- onResetFlow: w(de),
9219
+ "flow-step": b(F),
9220
+ onMount: b(K),
9221
+ onUpdateFlowStep: b(q),
9222
+ onResetFlow: b(de),
9223
9223
  onFocusMenu: C,
9224
9224
  onSelectDate: ee[0] || (ee[0] = (we) => R.$emit("select-date")),
9225
9225
  onDateUpdate: ee[1] || (ee[1] = (we) => R.$emit("date-update", we)),
@@ -9258,7 +9258,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9258
9258
  }) : B("", !0)
9259
9259
  ])) : B("", !0)
9260
9260
  ], 6),
9261
- !R.autoApply || w(p).keepActionRow ? (g(), Me(Xm, tt({
9261
+ !R.autoApply || b(p).keepActionRow ? (g(), Me(Xm, tt({
9262
9262
  key: 3,
9263
9263
  "menu-mount": _.value
9264
9264
  }, s.value, {
@@ -9268,7 +9268,7 @@ const Dr = (e, n) => e == null ? void 0 : e.querySelector(`[data-dp-element="${n
9268
9268
  onInvalidSelect: ee[18] || (ee[18] = (we) => R.$emit("invalid-select")),
9269
9269
  onSelectNow: ne
9270
9270
  }), lt({ _: 2 }, [
9271
- Pe(w(Q), (we, jt) => ({
9271
+ Pe(b(Q), (we, jt) => ({
9272
9272
  name: we,
9273
9273
  fn: ve((Et) => [
9274
9274
  ie(R.$slots, we, nt(vt({ ...Et })))
@@ -9310,7 +9310,7 @@ const J0 = ({
9310
9310
  d.value.left = `${C + z - c.value.width}px`;
9311
9311
  }, S = (C) => {
9312
9312
  d.value.left = `${C}px`;
9313
- }, b = (C, z) => {
9313
+ }, w = (C, z) => {
9314
9314
  s.position === xn.left && S(C), s.position === xn.right && x(C, z), s.position === xn.center && (d.value.left = `${C + z / 2 - c.value.width / 2}px`);
9315
9315
  }, _ = (C) => {
9316
9316
  const { width: z, height: se } = C.getBoundingClientRect(), { top: Q, left: le } = s.altPosition ? s.altPosition(C) : k(C);
@@ -9332,7 +9332,7 @@ const J0 = ({
9332
9332
  return de();
9333
9333
  }
9334
9334
  }, H = ({ inputEl: C, left: z, width: se }) => {
9335
- window.screen.width > 768 && !i.value && b(z, se), F(C);
9335
+ window.screen.width > 768 && !i.value && w(z, se), F(C);
9336
9336
  }, D = (C) => {
9337
9337
  const { top: z, left: se, height: Q, width: le } = _(C);
9338
9338
  d.value.top = `${Q + z + +s.offset}px`, f.value = !1, i.value || (d.value.left = `${se + le / 2 - c.value.width / 2}px`), H({ inputEl: C, left: se, width: le });
@@ -9349,7 +9349,7 @@ const J0 = ({
9349
9349
  if (le >= document.documentElement.clientWidth)
9350
9350
  return i.value = !0, x(z, se);
9351
9351
  }
9352
- return b(z, se);
9352
+ return w(z, se);
9353
9353
  }
9354
9354
  }
9355
9355
  }, q = () => {
@@ -9536,7 +9536,7 @@ const J0 = ({
9536
9536
  }, S = (h) => {
9537
9537
  const Y = Array.isArray(e.value) ? e.value[0] : null;
9538
9538
  return h ? !He(i.value ?? null, Y) : !0;
9539
- }, b = (h, Y = !0) => (u.value.enabled || n.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? n.hideOffsetDates && !h.current ? !1 : Ce(J(h.value), e.value[Y ? 0 : 1]) : u.value.enabled ? x(h, Y) && S(Y) || Ce(h.value, Array.isArray(e.value) ? e.value[0] : null) && k(Y) : !1, _ = (h, Y) => {
9539
+ }, w = (h, Y = !0) => (u.value.enabled || n.weekPicker) && Array.isArray(e.value) && e.value.length === 2 ? n.hideOffsetDates && !h.current ? !1 : Ce(J(h.value), e.value[Y ? 0 : 1]) : u.value.enabled ? x(h, Y) && S(Y) || Ce(h.value, Array.isArray(e.value) ? e.value[0] : null) && k(Y) : !1, _ = (h, Y) => {
9540
9540
  if (Array.isArray(e.value) && e.value[0] && e.value.length === 1) {
9541
9541
  const X = Ce(h.value, i.value);
9542
9542
  return Y ? Ue(e.value[0], h.value) && X : He(e.value[0], h.value) && X;
@@ -9575,7 +9575,7 @@ const J0 = ({
9575
9575
  return !1;
9576
9576
  }, D = (h) => Oa(e.value, i.value, h.value), E = () => n.modelAuto && Array.isArray(n.internalModelValue) ? !!n.internalModelValue[0] : !1, F = () => n.modelAuto ? tl(n.internalModelValue) : !0, q = (h) => {
9577
9577
  if (n.weekPicker) return !1;
9578
- const Y = u.value.enabled ? !b(h) && !b(h, !1) : !0;
9578
+ const Y = u.value.enabled ? !w(h) && !w(h, !1) : !0;
9579
9579
  return !c(h.value) && !v(h) && !(!h.current && n.hideOffsetDates) && Y;
9580
9580
  }, K = (h) => u.value.enabled ? n.modelAuto ? E() && v(h) : !1 : v(h), de = (h) => o.value ? bm(h.value, l.value.highlight) : !1, pe = (h) => {
9581
9581
  const Y = c(h.value);
@@ -9626,7 +9626,7 @@ const J0 = ({
9626
9626
  ...T(h)
9627
9627
  };
9628
9628
  }, le = (h) => {
9629
- const Y = t.value.count > 0 ? h.current && b(h) && F() : b(h) && F(), X = t.value.count > 0 ? h.current && b(h, !1) && F() : b(h, !1) && F();
9629
+ const Y = t.value.count > 0 ? h.current && w(h) && F() : w(h) && F(), X = t.value.count > 0 ? h.current && w(h, !1) && F() : w(h, !1) && F();
9630
9630
  return { isRangeStart: Y, isRangeEnd: X };
9631
9631
  }, be = (h) => {
9632
9632
  const { isRangeStart: Y, isRangeEnd: X } = le(h);
@@ -9670,8 +9670,8 @@ const J0 = ({
9670
9670
  return L >= +e.yearRange[0] && L <= e.yearRange[1];
9671
9671
  }
9672
9672
  return !0;
9673
- }, b = ($, L) => !!(Array.isArray($) && $[L] && (t.value.maxRange || t.value.minRange) && S($[L])), _ = ($, L, C = 0) => {
9674
- if (b(L, C) && S($)) {
9673
+ }, w = ($, L) => !!(Array.isArray($) && $[L] && (t.value.maxRange || t.value.minRange) && S($[L])), _ = ($, L, C = 0) => {
9674
+ if (w(L, C) && S($)) {
9675
9675
  const z = Fs($, L[C]), se = sl(L[C], $), Q = se.length === 1 ? 0 : se.filter((be) => k(be)).length, le = Math.abs(z) - (t.value.minMaxRawRange ? 0 : Q);
9676
9676
  if (t.value.minRange && t.value.maxRange)
9677
9677
  return le >= +t.value.minRange && le <= +t.value.maxRange;
@@ -9805,7 +9805,7 @@ const J0 = ({
9805
9805
  defaultedUI: d,
9806
9806
  getDefaultPattern: f,
9807
9807
  getDefaultStartTime: p
9808
- } = qe(r), { checkMinMaxRange: k } = on(r), x = I(), S = I(null), b = I(!1), _ = I(!1), v = I(!1), N = I(null), te = G(
9808
+ } = qe(r), { checkMinMaxRange: k } = on(r), x = I(), S = I(null), w = I(!1), _ = I(!1), v = I(!1), N = I(null), te = G(
9809
9809
  () => ({
9810
9810
  dp__pointer: !r.disabled && !r.readonly && !o.value.enabled,
9811
9811
  dp__disabled: r.disabled,
@@ -9814,7 +9814,7 @@ const J0 = ({
9814
9814
  dp__input_icon_pad: !r.hideInputIcon,
9815
9815
  dp__input_valid: typeof r.state == "boolean" ? r.state : !1,
9816
9816
  dp__input_invalid: typeof r.state == "boolean" ? !r.state : !1,
9817
- dp__input_focus: b.value || r.isMenuOpen,
9817
+ dp__input_focus: w.value || r.isMenuOpen,
9818
9818
  dp__input_reg: !o.value.enabled,
9819
9819
  ...d.value.input ?? {}
9820
9820
  })
@@ -9858,7 +9858,7 @@ const J0 = ({
9858
9858
  var h;
9859
9859
  N.value && P && !_.value && (T.preventDefault(), _.value = !0, (h = N.value) == null || h.focus()), o.value.enabled && o.value.tabSubmit && q(T.target.value), o.value.tabSubmit && Tr(x.value) && r.inputValue !== "" ? (a("set-input-date", x.value, !0, !0), x.value = null) : o.value.tabSubmit && r.inputValue === "" && (x.value = null, a("clear", !0));
9860
9860
  }, $ = () => {
9861
- b.value = !0, a("focus"), Ge().then(() => {
9861
+ w.value = !0, a("focus"), Ge().then(() => {
9862
9862
  var T;
9863
9863
  o.value.enabled && o.value.selectOnFocus && ((T = S.value) == null || T.select());
9864
9864
  });
@@ -9868,7 +9868,7 @@ const J0 = ({
9868
9868
  if (o.value.openMenu === "toggle") return a("toggle");
9869
9869
  } else o.value.enabled || a("toggle");
9870
9870
  }, C = () => {
9871
- a("real-blur"), b.value = !1, (!r.isMenuOpen || l.value.enabled && l.value.input) && a("blur"), r.autoApply && o.value.enabled && x.value && !r.isMenuOpen && (a("set-input-date", x.value), a("select-date"), x.value = null);
9871
+ a("real-blur"), w.value = !1, (!r.isMenuOpen || l.value.enabled && l.value.input) && a("blur"), r.autoApply && o.value.enabled && x.value && !r.isMenuOpen && (a("set-input-date", x.value), a("select-date"), x.value = null);
9872
9872
  }, z = (T) => {
9873
9873
  en(T, u.value, !0), a("clear");
9874
9874
  }, se = (T, P) => {
@@ -9890,9 +9890,9 @@ const J0 = ({
9890
9890
  }), (T, P) => {
9891
9891
  var h, Y;
9892
9892
  return g(), M("div", { onClick: L }, [
9893
- T.$slots.trigger && !T.$slots["dp-input"] && !w(l).enabled ? ie(T.$slots, "trigger", { key: 0 }) : B("", !0),
9894
- !T.$slots.trigger && (!w(l).enabled || w(l).input) ? (g(), M("div", rh, [
9895
- T.$slots["dp-input"] && !T.$slots.trigger && (!w(l).enabled || w(l).enabled && w(l).input) ? ie(T.$slots, "dp-input", {
9893
+ T.$slots.trigger && !T.$slots["dp-input"] && !b(l).enabled ? ie(T.$slots, "trigger", { key: 0 }) : B("", !0),
9894
+ !T.$slots.trigger && (!b(l).enabled || b(l).input) ? (g(), M("div", rh, [
9895
+ T.$slots["dp-input"] && !T.$slots.trigger && (!b(l).enabled || b(l).enabled && b(l).input) ? ie(T.$slots, "dp-input", {
9896
9896
  key: 0,
9897
9897
  value: e.inputValue,
9898
9898
  isMenuOpen: e.isMenuOpen,
@@ -9916,7 +9916,7 @@ const J0 = ({
9916
9916
  "data-test": "dp-input",
9917
9917
  name: T.name,
9918
9918
  class: me(te.value),
9919
- inputmode: w(o).enabled ? "text" : "none",
9919
+ inputmode: b(o).enabled ? "text" : "none",
9920
9920
  placeholder: T.placeholder,
9921
9921
  disabled: T.disabled,
9922
9922
  readonly: T.readonly,
@@ -9942,9 +9942,9 @@ const J0 = ({
9942
9942
  }, [
9943
9943
  ie(T.$slots, "input-icon")
9944
9944
  ])) : B("", !0),
9945
- !T.$slots["input-icon"] && !T.hideInputIcon && !T.$slots["dp-input"] ? (g(), Me(w(Nn), {
9945
+ !T.$slots["input-icon"] && !T.hideInputIcon && !T.$slots["dp-input"] ? (g(), Me(b(Nn), {
9946
9946
  key: 1,
9947
- "aria-label": (h = w(s)) == null ? void 0 : h.calendarIcon,
9947
+ "aria-label": (h = b(s)) == null ? void 0 : h.calendarIcon,
9948
9948
  class: "dp__input_icon dp__input_icons",
9949
9949
  onClick: P[2] || (P[2] = (X) => a("toggle"))
9950
9950
  }, null, 8, ["aria-label"])) : B("", !0)
@@ -9956,14 +9956,14 @@ const J0 = ({
9956
9956
  key: 3,
9957
9957
  ref_key: "clearBtnRef",
9958
9958
  ref: N,
9959
- "aria-label": (Y = w(s)) == null ? void 0 : Y.clearInput,
9959
+ "aria-label": (Y = b(s)) == null ? void 0 : Y.clearInput,
9960
9960
  class: "dp--clear-btn",
9961
9961
  type: "button",
9962
9962
  onBlur: P[4] || (P[4] = (X) => _.value = !1),
9963
- onKeydown: P[5] || (P[5] = (X) => w(ft)(X, () => z(X), !0, be)),
9963
+ onKeydown: P[5] || (P[5] = (X) => b(ft)(X, () => z(X), !0, be)),
9964
9964
  onClick: P[6] || (P[6] = Kt((X) => z(X), ["prevent"]))
9965
9965
  }, [
9966
- Ye(w(Js), {
9966
+ Ye(b(Js), {
9967
9967
  class: "dp__input_icons",
9968
9968
  "data-test": "clear-icon"
9969
9969
  })
@@ -9977,7 +9977,7 @@ const J0 = ({
9977
9977
  if (!e) return mr;
9978
9978
  let r = mr;
9979
9979
  const o = Fe(
9980
- () => w(e),
9980
+ () => b(e),
9981
9981
  (l) => {
9982
9982
  r(), l && (l.addEventListener(n, t, a), r = () => {
9983
9983
  l.removeEventListener(n, t, a), r = mr;
@@ -10030,7 +10030,7 @@ const J0 = ({
10030
10030
  "text-input"
10031
10031
  ],
10032
10032
  setup(e, { expose: n, emit: t }) {
10033
- const a = t, r = e, o = yn(), s = I(!1), l = Un(r, "modelValue"), u = Un(r, "timezone"), c = I(null), i = I(null), d = I(null), f = I(!1), p = I(null), k = I(!1), x = I(!1), S = I(!1), b = I(!1), { setMenuFocused: _, setShiftKey: v } = fl(), { clearArrowNav: N } = rn(), { validateDate: te, isValidTime: H } = on(r), {
10033
+ const a = t, r = e, o = yn(), s = I(!1), l = Un(r, "modelValue"), u = Un(r, "timezone"), c = I(null), i = I(null), d = I(null), f = I(!1), p = I(null), k = I(!1), x = I(!1), S = I(!1), w = I(!1), { setMenuFocused: _, setShiftKey: v } = fl(), { clearArrowNav: N } = rn(), { validateDate: te, isValidTime: H } = on(r), {
10034
10034
  defaultedTransitions: D,
10035
10035
  defaultedTextInput: E,
10036
10036
  defaultedInline: F,
@@ -10128,8 +10128,8 @@ const J0 = ({
10128
10128
  return;
10129
10129
  }
10130
10130
  const dt = Array.isArray(j) ? !j.some((sn) => !te(sn)) : te(j), At = H(j);
10131
- dt && At && (b.value = !0, h.value = j, re && (k.value = ce, xt(), a("text-submit")), Ge().then(() => {
10132
- b.value = !1;
10131
+ dt && At && (w.value = !0, h.value = j, re && (k.value = ce, xt(), a("text-submit")), Ge().then(() => {
10132
+ w.value = !1;
10133
10133
  }));
10134
10134
  }, Wa = () => {
10135
10135
  r.autoApply && H(h.value) && X(), jt();
@@ -10182,14 +10182,14 @@ const J0 = ({
10182
10182
  Ye(ih, tt({
10183
10183
  ref_key: "inputRef",
10184
10184
  ref: d,
10185
- "input-value": w(P),
10185
+ "input-value": b(P),
10186
10186
  "onUpdate:inputValue": re[0] || (re[0] = (ce) => to(P) ? P.value = ce : null),
10187
10187
  "is-menu-open": s.value
10188
10188
  }, j.$props, {
10189
10189
  onClear: he,
10190
10190
  onOpen: ee,
10191
10191
  onSetInputDate: Yn,
10192
- onSetEmptyDate: w(X),
10192
+ onSetEmptyDate: b(X),
10193
10193
  onSelectDate: xt,
10194
10194
  onToggle: da,
10195
10195
  onClose: wt,
@@ -10198,7 +10198,7 @@ const J0 = ({
10198
10198
  onRealBlur: re[1] || (re[1] = (ce) => f.value = !1),
10199
10199
  onTextInput: re[2] || (re[2] = (ce) => j.$emit("text-input", ce))
10200
10200
  }), lt({ _: 2 }, [
10201
- Pe(w(C), (ce, dt) => ({
10201
+ Pe(b(C), (ce, dt) => ({
10202
10202
  name: ce,
10203
10203
  fn: ve((At) => [
10204
10204
  ie(j.$slots, ce, nt(vt(At)))
@@ -10208,8 +10208,8 @@ const J0 = ({
10208
10208
  (g(), Me(Da(j.teleport ? Bl : "div"), nt(vt(W.value)), {
10209
10209
  default: ve(() => [
10210
10210
  Ye(gn, {
10211
- name: w(pe)(w(z)),
10212
- css: w($) && !w(F).enabled
10211
+ name: b(pe)(b(z)),
10212
+ css: b($) && !b(F).enabled
10213
10213
  }, {
10214
10214
  default: ve(() => [
10215
10215
  s.value ? (g(), M("div", tt({
@@ -10217,31 +10217,31 @@ const J0 = ({
10217
10217
  ref_key: "dpWrapMenuRef",
10218
10218
  ref: c
10219
10219
  }, ne.value, {
10220
- class: { "dp--menu-wrapper": !w(F).enabled },
10221
- style: w(F).enabled ? void 0 : w(se)
10220
+ class: { "dp--menu-wrapper": !b(F).enabled },
10221
+ style: b(F).enabled ? void 0 : b(se)
10222
10222
  }), [
10223
10223
  Ye(Fo, tt({
10224
10224
  ref_key: "dpMenuRef",
10225
10225
  ref: i
10226
10226
  }, j.$props, {
10227
- "internal-model-value": w(h),
10227
+ "internal-model-value": b(h),
10228
10228
  "onUpdate:internalModelValue": re[3] || (re[3] = (ce) => to(h) ? h.value = ce : null),
10229
10229
  class: { [Ze.value]: !0, "dp--menu-wrapper": j.teleport },
10230
- "open-on-top": w(z),
10230
+ "open-on-top": b(z),
10231
10231
  "no-overlay-focus": y.value,
10232
10232
  collapse: S.value,
10233
10233
  "get-input-rect": Z,
10234
- "is-text-input-date": b.value,
10234
+ "is-text-input-date": w.value,
10235
10235
  onClosePicker: wt,
10236
10236
  onSelectDate: xt,
10237
10237
  onAutoApply: Et,
10238
10238
  onTimeUpdate: Wa,
10239
10239
  onFlowStep: re[4] || (re[4] = (ce) => j.$emit("flow-step", ce)),
10240
10240
  onUpdateMonthYear: re[5] || (re[5] = (ce) => j.$emit("update-month-year", ce)),
10241
- onInvalidSelect: re[6] || (re[6] = (ce) => j.$emit("invalid-select", w(h))),
10241
+ onInvalidSelect: re[6] || (re[6] = (ce) => j.$emit("invalid-select", b(h))),
10242
10242
  onAutoApplyInvalid: re[7] || (re[7] = (ce) => j.$emit("invalid-select", ce)),
10243
10243
  onInvalidFixedRange: re[8] || (re[8] = (ce) => j.$emit("invalid-fixed-range", ce)),
10244
- onRecalculatePosition: w(le),
10244
+ onRecalculatePosition: b(le),
10245
10245
  onTooltipOpen: re[9] || (re[9] = (ce) => j.$emit("tooltip-open", ce)),
10246
10246
  onTooltipClose: re[10] || (re[10] = (ce) => j.$emit("tooltip-close", ce)),
10247
10247
  onTimePickerOpen: re[11] || (re[11] = (ce) => j.$emit("time-picker-open", ce)),
@@ -10253,7 +10253,7 @@ const J0 = ({
10253
10253
  onInvalidDate: re[17] || (re[17] = (ce) => j.$emit("invalid-date", ce)),
10254
10254
  onOverlayToggle: re[18] || (re[18] = (ce) => j.$emit("overlay-toggle", ce))
10255
10255
  }), lt({ _: 2 }, [
10256
- Pe(w(L), (ce, dt) => ({
10256
+ Pe(b(L), (ce, dt) => ({
10257
10257
  name: ce,
10258
10258
  fn: ve((At) => [
10259
10259
  ie(j.$slots, ce, nt(vt({ ...At })))
@@ -10377,7 +10377,7 @@ const bl = /* @__PURE__ */ pt(ph, [["render", Th], ["__scopeId", "data-v-0106638
10377
10377
  return (a, r) => (g(), M("div", Ph, [
10378
10378
  m("div", Sh, [
10379
10379
  Ch,
10380
- Ye(w(sa), {
10380
+ Ye(b(sa), {
10381
10381
  format: "HH:mm",
10382
10382
  "auto-apply": "true",
10383
10383
  "time-picker": !0,
@@ -10539,8 +10539,8 @@ const Ih = () => {
10539
10539
  }
10540
10540
  I(null);
10541
10541
  function c(f) {
10542
- const p = f.getFullYear(), k = String(f.getMonth() + 1).padStart(2, "0"), x = String(f.getDate()).padStart(2, "0"), S = String(f.getHours()).padStart(2, "0"), b = String(f.getMinutes()).padStart(2, "0");
10543
- return `${p}-${k}-${x} ${S}:${b}`;
10542
+ const p = f.getFullYear(), k = String(f.getMonth() + 1).padStart(2, "0"), x = String(f.getDate()).padStart(2, "0"), S = String(f.getHours()).padStart(2, "0"), w = String(f.getMinutes()).padStart(2, "0");
10543
+ return `${p}-${k}-${x} ${S}:${w}`;
10544
10544
  }
10545
10545
  function i(f, p) {
10546
10546
  const k = new Date(f);
@@ -10584,7 +10584,7 @@ const Ih = () => {
10584
10584
  Je(ge(s.value.schedule.time) + " ", 1),
10585
10585
  m("div", Wh, [
10586
10586
  Hh,
10587
- Ye(w(sa), {
10587
+ Ye(b(sa), {
10588
10588
  "auto-apply": "true",
10589
10589
  "time-picker": !0,
10590
10590
  locale: "pt-BR",
@@ -10909,7 +10909,7 @@ const Ih = () => {
10909
10909
  // Caso a função não esteja mapeada
10910
10910
  };
10911
10911
  return F[E] || F.default;
10912
- }, b = async (E = "http://localhost:8000/v1/api/crm/event/") => {
10912
+ }, w = async (E = "http://localhost:8000/v1/api/crm/event/") => {
10913
10913
  try {
10914
10914
  const q = (await ze.get(E, {
10915
10915
  headers: {
@@ -10929,7 +10929,7 @@ const Ih = () => {
10929
10929
  tag: "blue"
10930
10930
  // Adiciona ou substitui a tag conforme necessário
10931
10931
  }));
10932
- f.value.push(...K), q.next && await b(q.next);
10932
+ f.value.push(...K), q.next && await w(q.next);
10933
10933
  } catch (F) {
10934
10934
  console.error("Erro ao buscar eventos:", F);
10935
10935
  }
@@ -10975,7 +10975,7 @@ const Ih = () => {
10975
10975
  N.value = v(i.value, c.value);
10976
10976
  };
10977
10977
  Le(async () => {
10978
- await b(), te();
10978
+ await w(), te();
10979
10979
  });
10980
10980
  const H = () => {
10981
10981
  c.value === 0 ? (c.value = 11, i.value--) : c.value--, d.value = { year: i.value, month: c.value }, te();
@@ -10993,7 +10993,7 @@ const Ih = () => {
10993
10993
  class: "calendar-button"
10994
10994
  }, wp),
10995
10995
  m("div", null, [
10996
- Ye(w(sa), {
10996
+ Ye(b(sa), {
10997
10997
  dark: e.theme,
10998
10998
  "cancel-text": "Cancelar",
10999
10999
  "select-text": "Selecionar",
@@ -11017,7 +11017,7 @@ const Ih = () => {
11017
11017
  }, _p)
11018
11018
  ]),
11019
11019
  m("div", kp, [
11020
- (g(!0), M(_e, null, Pe(w(k), (K, de) => (g(), M("div", {
11020
+ (g(!0), M(_e, null, Pe(b(k), (K, de) => (g(), M("div", {
11021
11021
  key: de,
11022
11022
  class: "day-name shadow shadow-black/90 dark:shadow-gray-400 bg-base-200 border border-base-100"
11023
11023
  }, ge(K), 1))), 128)),
@@ -11540,19 +11540,19 @@ const N1 = /* @__PURE__ */ Ml(P1, [["render", R1], ["__scopeId", "data-v-d3e3763
11540
11540
  [zn, s.value == "loading"]
11541
11541
  ]),
11542
11542
  s.value == "complete" ? ie(x.$slots, "complete", { key: 0 }, () => {
11543
- var b;
11543
+ var w;
11544
11544
  return [
11545
- m("span", null, ge(((b = x.slots) == null ? void 0 : b.complete) || "No more results!"), 1)
11545
+ m("span", null, ge(((w = x.slots) == null ? void 0 : w.complete) || "No more results!"), 1)
11546
11546
  ];
11547
11547
  }, !0) : B("", !0),
11548
11548
  s.value == "error" ? ie(x.$slots, "error", {
11549
11549
  key: 1,
11550
11550
  retry: f.emit
11551
11551
  }, () => {
11552
- var b;
11552
+ var w;
11553
11553
  return [
11554
11554
  m("span", E1, [
11555
- m("span", null, ge(((b = x.slots) == null ? void 0 : b.error) || "Oops something went wrong!"), 1),
11555
+ m("span", null, ge(((w = x.slots) == null ? void 0 : w.error) || "Oops something went wrong!"), 1),
11556
11556
  m("button", {
11557
11557
  class: "retry",
11558
11558
  onClick: S[0] || (S[0] = //@ts-ignore
@@ -12739,8 +12739,8 @@ function Fv(e, n, t) {
12739
12739
  }
12740
12740
  const Yv = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Lv = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Iv = /^'([^]*?)'?$/, Bv = /''/g, qv = /[a-zA-Z]/;
12741
12741
  function Qo(e, n, t) {
12742
- var i, d, f, p, k, x, S, b;
12743
- const a = Ia(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? xv, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((p = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((x = (k = t == null ? void 0 : t.locale) == null ? void 0 : k.options) == null ? void 0 : x.weekStartsOn) ?? a.weekStartsOn ?? ((b = (S = a.locale) == null ? void 0 : S.options) == null ? void 0 : b.weekStartsOn) ?? 0, l = Dt(e, t == null ? void 0 : t.in);
12742
+ var i, d, f, p, k, x, S, w;
12743
+ const a = Ia(), r = (t == null ? void 0 : t.locale) ?? a.locale ?? xv, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((p = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, s = (t == null ? void 0 : t.weekStartsOn) ?? ((x = (k = t == null ? void 0 : t.locale) == null ? void 0 : k.options) == null ? void 0 : x.weekStartsOn) ?? a.weekStartsOn ?? ((w = (S = a.locale) == null ? void 0 : S.options) == null ? void 0 : w.weekStartsOn) ?? 0, l = Dt(e, t == null ? void 0 : t.in);
12744
12744
  if (!z1(l))
12745
12745
  throw new RangeError("Invalid time value");
12746
12746
  let u = n.match(Lv).map((_) => {
@@ -13234,55 +13234,55 @@ const Qv = {
13234
13234
  },
13235
13235
  setup(e) {
13236
13236
  const n = e, t = I(""), a = I(null), r = I(!1), o = I(!1), s = G(() => {
13237
- var b;
13238
- return ((b = n.selectedAtendente) == null ? void 0 : b.messages) || [];
13237
+ var w;
13238
+ return ((w = n.selectedAtendente) == null ? void 0 : w.messages) || [];
13239
13239
  }), l = G(
13240
13240
  () => n.hasNextPageForAtendente(n.selectedAtendente.id)
13241
- ), u = (b) => {
13242
- const _ = new Date(b), v = _.getHours(), N = _.getMinutes();
13241
+ ), u = (w) => {
13242
+ const _ = new Date(w), v = _.getHours(), N = _.getMinutes();
13243
13243
  return `${v.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
13244
- }, c = (b) => {
13245
- const _ = new Date(b);
13244
+ }, c = (w) => {
13245
+ const _ = new Date(w);
13246
13246
  return jv(_) ? "Hoje" : Uv(_) ? "Ontem" : zv(_) ? Qo(_, "EEEE", { locale: Xo }) : Qo(_, "dd 'de' MMMM 'de' yyyy", { locale: Xo });
13247
- }, i = (b) => {
13248
- if (b === 0) return !0;
13249
- const _ = new Date(s.value[b].created_at), v = new Date(s.value[b - 1].created_at);
13247
+ }, i = (w) => {
13248
+ if (w === 0) return !0;
13249
+ const _ = new Date(s.value[w].created_at), v = new Date(s.value[w - 1].created_at);
13250
13250
  return _.toDateString() !== v.toDateString();
13251
- }, d = (b) => {
13252
- b.key === "Enter" && !b.shiftKey && (b.preventDefault(), k());
13251
+ }, d = (w) => {
13252
+ w.key === "Enter" && !w.shiftKey && (w.preventDefault(), k());
13253
13253
  }, f = () => {
13254
13254
  a.value && a.value.scrollTo({
13255
13255
  top: a.value.scrollHeight,
13256
13256
  behavior: "instant"
13257
13257
  });
13258
- }, p = async (b) => {
13258
+ }, p = async (w) => {
13259
13259
  try {
13260
13260
  if (!l.value) {
13261
- b.complete();
13261
+ w.complete();
13262
13262
  return;
13263
13263
  }
13264
13264
  const _ = a.value.scrollHeight, v = a.value.scrollTop;
13265
- await n.loadMessagesForAtendente(n.selectedAtendente.id), await Ge(), a.value.scrollTop = a.value.scrollHeight - _ + v - 32, b.loaded();
13265
+ await n.loadMessagesForAtendente(n.selectedAtendente.id), await Ge(), a.value.scrollTop = a.value.scrollHeight - _ + v - 32, w.loaded();
13266
13266
  } catch (_) {
13267
- console.error(_), b.complete();
13267
+ console.error(_), w.complete();
13268
13268
  }
13269
13269
  }, k = async () => {
13270
13270
  if (t.value.trim() !== "")
13271
13271
  try {
13272
- const b = JSON.parse(JSON.stringify(t.value));
13272
+ const w = JSON.parse(JSON.stringify(t.value));
13273
13273
  t.value = "", await n.sendMessageToAtendente(
13274
13274
  n.selectedAtendente.id,
13275
- b,
13275
+ w,
13276
13276
  n.attendant
13277
13277
  ), await Ge(), f();
13278
- } catch (b) {
13279
- console.error("Erro ao enviar mensagem:", b);
13278
+ } catch (w) {
13279
+ console.error("Erro ao enviar mensagem:", w);
13280
13280
  }
13281
13281
  }, x = () => {
13282
13282
  k();
13283
- const b = document.querySelector(".send-button");
13284
- b.classList.add("clicked"), setTimeout(() => {
13285
- b.classList.remove("clicked");
13283
+ const w = document.querySelector(".send-button");
13284
+ w.classList.add("clicked"), setTimeout(() => {
13285
+ w.classList.remove("clicked");
13286
13286
  }, 200);
13287
13287
  };
13288
13288
  Le(async () => {
@@ -13291,10 +13291,10 @@ const Qv = {
13291
13291
  });
13292
13292
  }), Fe(
13293
13293
  () => {
13294
- var b;
13295
- return (b = s.value) == null ? void 0 : b.length;
13294
+ var w;
13295
+ return (w = s.value) == null ? void 0 : w.length;
13296
13296
  },
13297
- (b, _) => {
13297
+ (w, _) => {
13298
13298
  s.value && S() && setTimeout(() => {
13299
13299
  a.value.scrollTo({
13300
13300
  top: a.value.scrollHeight,
@@ -13307,10 +13307,10 @@ const Qv = {
13307
13307
  const _ = a.value.scrollTop + a.value.clientHeight;
13308
13308
  return a.value.scrollHeight - _ <= 80;
13309
13309
  }
13310
- return (b, _) => (g(), M("div", xy, [
13310
+ return (w, _) => (g(), M("div", xy, [
13311
13311
  m("div", Ay, [
13312
13312
  m("button", {
13313
- onClick: _[0] || (_[0] = (v) => b.$emit("voltar")),
13313
+ onClick: _[0] || (_[0] = (v) => w.$emit("voltar")),
13314
13314
  class: "back-button"
13315
13315
  }, Dy),
13316
13316
  Ye(xl, {
@@ -13323,7 +13323,7 @@ const Qv = {
13323
13323
  ref_key: "chatArea",
13324
13324
  ref: a
13325
13325
  }, [
13326
- !o.value && l.value && r.value ? (g(), Me(w(Y1), {
13326
+ !o.value && l.value && r.value ? (g(), Me(b(Y1), {
13327
13327
  key: 0,
13328
13328
  onInfinite: p,
13329
13329
  distance: 30,
@@ -13528,12 +13528,12 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13528
13528
  }), jl(() => {
13529
13529
  document.removeEventListener("click", S);
13530
13530
  });
13531
- const b = I(!1), _ = I(!1), v = G(() => _.value ? {
13531
+ const w = I(!1), _ = I(!1), v = G(() => _.value ? {
13532
13532
  position: "absolute",
13533
13533
  width: "42px",
13534
13534
  height: "42px",
13535
13535
  transition: "width 0.2s ease-in, height 0.2s ease-out"
13536
- } : b.value || d.value ? {
13536
+ } : w.value || d.value ? {
13537
13537
  position: "absolute",
13538
13538
  width: "400px",
13539
13539
  height: "65vh",
@@ -13546,8 +13546,8 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13546
13546
  }), N = () => {
13547
13547
  d.value ? (_.value = !0, setTimeout(() => {
13548
13548
  d.value = !1, _.value = !1;
13549
- }, 200)) : (d.value = !0, b.value = !0, setTimeout(() => {
13550
- b.value = !1;
13549
+ }, 200)) : (d.value = !0, w.value = !0, setTimeout(() => {
13550
+ w.value = !1;
13551
13551
  }, 200));
13552
13552
  }, te = () => {
13553
13553
  d.value || N();
@@ -13598,20 +13598,20 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13598
13598
  onClick: Kt(N, ["stop"]),
13599
13599
  class: "close-button"
13600
13600
  }, Jy),
13601
- w(a) || w(i) ? (g(), Me(zy, { key: 0 })) : p.value && !w(a) ? (g(), M("div", eg, [
13601
+ b(a) || b(i) ? (g(), Me(zy, { key: 0 })) : p.value && !b(a) ? (g(), M("div", eg, [
13602
13602
  Ye(Yy, {
13603
13603
  attendant: e.attendant,
13604
13604
  selectedAtendente: p.value,
13605
13605
  onVoltar: E[0] || (E[0] = (F) => p.value = null),
13606
- loadMessagesForAtendente: w(u),
13607
- sendMessageToAtendente: w(l),
13608
- hasNextPageForAtendente: w(s)
13606
+ loadMessagesForAtendente: b(u),
13607
+ sendMessageToAtendente: b(l),
13608
+ hasNextPageForAtendente: b(s)
13609
13609
  }, null, 8, ["attendant", "selectedAtendente", "loadMessagesForAtendente", "sendMessageToAtendente", "hasNextPageForAtendente"])
13610
13610
  ])) : B("", !0),
13611
- !p.value && !w(i) ? (g(), Me(A1, {
13611
+ !p.value && !b(i) ? (g(), Me(A1, {
13612
13612
  key: 2,
13613
13613
  attendant: e.attendant,
13614
- atendentes: w(t),
13614
+ atendentes: b(t),
13615
13615
  onAtendenteSelecionado: H
13616
13616
  }, null, 8, ["attendant", "atendentes"])) : B("", !0)
13617
13617
  ])) : B("", !0)
@@ -13649,7 +13649,7 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13649
13649
  n !== -1 ? this.departments[n] = e : this.departments.push(e);
13650
13650
  }
13651
13651
  }
13652
- }), ua = (e) => (it("data-v-71097ce6"), e = e(), ut(), e), ng = { class: "depart-select-container" }, ag = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, rg = ["placeholder"], og = /* @__PURE__ */ ua(() => /* @__PURE__ */ m("div", { class: "icon-container" }, [
13652
+ }), ua = (e) => (it("data-v-6721c705"), e = e(), ut(), e), ng = { class: "depart-select-container" }, ag = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, rg = ["placeholder"], og = /* @__PURE__ */ ua(() => /* @__PURE__ */ m("div", { class: "icon-container" }, [
13653
13653
  /* @__PURE__ */ m("svg", {
13654
13654
  xmlns: "http://www.w3.org/2000/svg",
13655
13655
  fill: "none",
@@ -13684,7 +13684,7 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13684
13684
  ig
13685
13685
  ], dg = { class: "department-list" }, cg = ["onClick"], fg = {
13686
13686
  key: 0,
13687
- style: { width: "150px" }
13687
+ style: { width: "150px", "padding-right": "10px" }
13688
13688
  }, mg = ["onUpdate:modelValue", "onChange"], hg = /* @__PURE__ */ ua(() => /* @__PURE__ */ m("option", { value: "normal" }, "normal", -1)), pg = /* @__PURE__ */ ua(() => /* @__PURE__ */ m("option", { value: "supervisor" }, "supervisor", -1)), vg = [
13689
13689
  hg,
13690
13690
  pg
@@ -13715,38 +13715,38 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13715
13715
  }), Fe(
13716
13716
  () => t.modal_filter,
13717
13717
  () => {
13718
- !t.modal_filter && t.multiSelect && (r.departments.forEach((b) => {
13719
- b.selected = !1;
13718
+ !t.modal_filter && t.multiSelect && (r.departments.forEach((w) => {
13719
+ w.selected = !1;
13720
13720
  }), s.value = []);
13721
13721
  },
13722
13722
  { immediate: !0 }
13723
13723
  ), Fe(
13724
13724
  () => r.departments.length,
13725
- async (b, _) => {
13726
- Number.isInteger(_) && Number.isInteger(b) && (await f(), await Ge(), await d());
13725
+ async (w, _) => {
13726
+ Number.isInteger(_) && Number.isInteger(w) && (await f(), await Ge(), await d());
13727
13727
  },
13728
13728
  { immediate: !0 }
13729
13729
  ), Fe(
13730
13730
  () => t.attDel,
13731
- (b) => {
13732
- b && i(b);
13731
+ (w) => {
13732
+ w && i(w);
13733
13733
  },
13734
13734
  { immediate: !0 }
13735
13735
  );
13736
- function i(b) {
13736
+ function i(w) {
13737
13737
  const v = (t.externalDepartments || r.departments).findIndex(
13738
- (N) => N.id === b
13738
+ (N) => N.id === w
13739
13739
  );
13740
13740
  v !== -1 && (s.value = s.value.filter(
13741
- (N) => N.id !== b
13742
- ), t.externalDepartments ? t.externalDepartments.splice(v, 1) : r.removeDepartments(b), a("depart", s.value));
13741
+ (N) => N.id !== w
13742
+ ), t.externalDepartments ? t.externalDepartments.splice(v, 1) : r.removeDepartments(w), a("depart", s.value));
13743
13743
  }
13744
13744
  async function d() {
13745
13745
  u.value = !0;
13746
- const b = t.externalDepartments || r.departments;
13747
- t.permissions && (b.forEach((_) => {
13746
+ const w = t.externalDepartments || r.departments;
13747
+ t.permissions && w.forEach((_) => {
13748
13748
  _.permission || (_.permission = "normal");
13749
- }), console.log(b)), await p(), u.value = !1;
13749
+ }), await p(), u.value = !1;
13750
13750
  }
13751
13751
  async function f() {
13752
13752
  (t.externalDepartments || r.departments).forEach((_) => {
@@ -13754,31 +13754,34 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13754
13754
  }), s.value = [];
13755
13755
  }
13756
13756
  async function p() {
13757
- const b = t.externalDepartments || r.departments;
13758
- if (!b || b.length === 0) {
13757
+ const w = t.externalDepartments || r.departments;
13758
+ if (!w || w.length === 0) {
13759
13759
  console.warn("Nenhum departamento disponível para atualização.");
13760
13760
  return;
13761
13761
  }
13762
13762
  t.department && t.department.length > 0 && t.department.forEach((_) => {
13763
- const v = b.find((N) => N.id === _.id);
13764
- v && (v.selected = !0, s.value.some(
13763
+ const v = w.find((N) => N.id === _.id);
13764
+ v && (v.selected = !0, t.permissions && (v.permissions = _.permissions), s.value.some(
13765
13765
  (te) => te.id === _.id
13766
13766
  ) || s.value.push({ ...v }));
13767
13767
  }), a("depart", s.value);
13768
13768
  }
13769
- function k(b) {
13769
+ function k(w) {
13770
13770
  const _ = s.value.findIndex(
13771
- (v) => v.id === b.id
13771
+ (v) => v.id === w.id
13772
13772
  );
13773
- _ !== -1 ? (b.selected = !1, s.value.splice(_, 1)) : (t.multiSelect || f(), b.selected = !0, s.value.push(b)), a("depart", s.value);
13773
+ _ !== -1 ? (w.selected = !1, s.value.splice(_, 1)) : (t.multiSelect || f(), w.selected = !0, s.value.push(w)), a("depart", s.value);
13774
13774
  }
13775
- function x(b) {
13776
- a("depart", s.value);
13775
+ function x(w) {
13776
+ const _ = s.value.find(
13777
+ (v) => v.id === w.id
13778
+ );
13779
+ _ && (_.permission = w.permission), a("depart", [...s.value]);
13777
13780
  }
13778
- function S(b, _) {
13779
- b.selected = !1, s.value.splice(_, 1), a("depart", s.value);
13781
+ function S(w, _) {
13782
+ w.selected = !1, s.value.splice(_, 1), a("depart", s.value);
13780
13783
  }
13781
- return (b, _) => (g(), M("div", ng, [
13784
+ return (w, _) => (g(), M("div", ng, [
13782
13785
  m("div", ag, [
13783
13786
  m("div", {
13784
13787
  class: me(["input-wrapper bg-base-300 border-b border-base-200", { expanded: l.value || s.value.length > 0 }]),
@@ -13793,7 +13796,7 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13793
13796
  ]),
13794
13797
  og
13795
13798
  ], 2),
13796
- s.value.length > 0 && e.multiSelect && w(r).loaded ? (g(), M("main", sg, [
13799
+ s.value.length > 0 && e.multiSelect && b(r).loaded ? (g(), M("main", sg, [
13797
13800
  (g(!0), M(_e, null, Pe(s.value, (v, N) => (g(), M("div", {
13798
13801
  key: v.id,
13799
13802
  class: "selection-item"
@@ -13815,7 +13818,7 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13815
13818
  m("div", {
13816
13819
  class: me([{ "two-columns": c.value.length > 4 }, "grid-container"])
13817
13820
  }, [
13818
- w(r).loaded ? (g(!0), M(_e, { key: 0 }, Pe(c.value, (v) => (g(), M("div", {
13821
+ b(r).loaded ? (g(!0), M(_e, { key: 0 }, Pe(c.value, (v) => (g(), M("div", {
13819
13822
  key: v.id,
13820
13823
  class: me([{ selected: v.selected }, "department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])
13821
13824
  }, [
@@ -13826,7 +13829,7 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13826
13829
  e.multiSelect && e.permissions ? (g(), M("div", fg, [
13827
13830
  mt(m("select", {
13828
13831
  "onUpdate:modelValue": (N) => v.permission = N,
13829
- onChange: (N) => x(),
13832
+ onChange: (N) => x(v),
13830
13833
  class: "select-dropdown-depart bg-base-300"
13831
13834
  }, vg, 40, mg), [
13832
13835
  [Jo, v.permission]
@@ -13835,8 +13838,8 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13835
13838
  ], 2))), 128)) : B("", !0)
13836
13839
  ], 2)
13837
13840
  ]),
13838
- w(r).loaded && c.value.length === 0 ? (g(), M("div", yg, " Nenhum departamento disponível. ")) : B("", !0),
13839
- w(r).loaded ? B("", !0) : (g(), M("div", gg, [
13841
+ b(r).loaded && c.value.length === 0 ? (g(), M("div", yg, " Nenhum departamento disponível. ")) : B("", !0),
13842
+ b(r).loaded ? B("", !0) : (g(), M("div", gg, [
13840
13843
  Je(" Inicializando departamentos "),
13841
13844
  wg
13842
13845
  ]))
@@ -13844,7 +13847,7 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13844
13847
  ])
13845
13848
  ]));
13846
13849
  }
13847
- }, Rl = /* @__PURE__ */ pt(bg, [["__scopeId", "data-v-71097ce6"]]), qa = (e) => (it("data-v-935848f6"), e = e(), ut(), e), _g = { class: "depart-select-container" }, kg = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, xg = ["placeholder"], Ag = /* @__PURE__ */ qa(() => /* @__PURE__ */ m("div", { class: "icon-container" }, [
13850
+ }, Rl = /* @__PURE__ */ pt(bg, [["__scopeId", "data-v-6721c705"]]), qa = (e) => (it("data-v-935848f6"), e = e(), ut(), e), _g = { class: "depart-select-container" }, kg = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, xg = ["placeholder"], Ag = /* @__PURE__ */ qa(() => /* @__PURE__ */ m("div", { class: "icon-container" }, [
13848
13851
  /* @__PURE__ */ m("svg", {
13849
13852
  xmlns: "http://www.w3.org/2000/svg",
13850
13853
  fill: "none",
@@ -13914,10 +13917,10 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13914
13917
  const t = e, a = n, r = La(), o = I(""), s = I(!1), l = I([]), u = G(() => {
13915
13918
  const S = r.attendants.filter(
13916
13919
  (_) => _.status === !0
13917
- ), b = o.value ? S.filter(
13920
+ ), w = o.value ? S.filter(
13918
13921
  (_) => _.name.toLowerCase().includes(o.value.toLowerCase())
13919
13922
  ) : S;
13920
- return i(c(b));
13923
+ return i(c(w));
13921
13924
  });
13922
13925
  function c(S) {
13923
13926
  return t.method === "remove" ? (t.attendance || S).filter(
@@ -13925,14 +13928,14 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13925
13928
  var v;
13926
13929
  return (_ == null ? void 0 : _.id) !== ((v = t == null ? void 0 : t.attDel) == null ? void 0 : v.id);
13927
13930
  }
13928
- ) : t.method === "transfer" ? S : t.method === "addParticipant" ? S.filter((b) => {
13931
+ ) : t.method === "transfer" ? S : t.method === "addParticipant" ? S.filter((w) => {
13929
13932
  var _;
13930
- return (b == null ? void 0 : b.id) !== ((_ = t == null ? void 0 : t.attDel) == null ? void 0 : _.id);
13933
+ return (w == null ? void 0 : w.id) !== ((_ = t == null ? void 0 : t.attDel) == null ? void 0 : _.id);
13931
13934
  }) : S;
13932
13935
  }
13933
13936
  function i(S) {
13934
13937
  return Array.isArray(t.department) && t.department.length > 0 ? S.filter(
13935
- (b) => b.department.some(
13938
+ (w) => w.department.some(
13936
13939
  (_) => t.department.some((v) => v.id === _.id)
13937
13940
  )
13938
13941
  ) : S;
@@ -13942,8 +13945,8 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13942
13945
  }), Fe(
13943
13946
  () => r.attendants.length,
13944
13947
  // Observa apenas o tamanho do array
13945
- async (S, b) => {
13946
- Number.isInteger(b) && Number.isInteger(S) && (await Ge(), d());
13948
+ async (S, w) => {
13949
+ Number.isInteger(w) && Number.isInteger(S) && (await Ge(), d());
13947
13950
  },
13948
13951
  { immediate: !0 }
13949
13952
  ), Fe(
@@ -13963,8 +13966,8 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13963
13966
  f(), p();
13964
13967
  }
13965
13968
  function f() {
13966
- (u.value || []).forEach((b) => {
13967
- b.selected = !1;
13969
+ (u.value || []).forEach((w) => {
13970
+ w.selected = !1;
13968
13971
  }), l.value = [];
13969
13972
  }
13970
13973
  function p() {
@@ -13973,28 +13976,28 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
13973
13976
  console.warn("Nenhum atendente disponível para atualização.");
13974
13977
  return;
13975
13978
  }
13976
- t.attendance && t.attendance.length > 0 && t.attendance.forEach((b) => {
13977
- const _ = S.find((v) => v.id === b.id);
13978
- _ && !l.value.some((v) => v.id === b.id) && (_.selected = !0, l.value.push({ ..._ }));
13979
+ t.attendance && t.attendance.length > 0 && t.attendance.forEach((w) => {
13980
+ const _ = S.find((v) => v.id === w.id);
13981
+ _ && !l.value.some((v) => v.id === w.id) && (_.selected = !0, l.value.push({ ..._ }));
13979
13982
  }), a("attend", l.value);
13980
13983
  }
13981
13984
  function k(S) {
13982
- const b = l.value.findIndex(
13985
+ const w = l.value.findIndex(
13983
13986
  (_) => _.id === S.id
13984
13987
  );
13985
- b !== -1 ? (S.selected = !1, l.value.splice(b, 1)) : (t.multiSelect || f(), S.selected = !0, l.value.push(S)), a("attend", l.value);
13988
+ w !== -1 ? (S.selected = !1, l.value.splice(w, 1)) : (t.multiSelect || f(), S.selected = !0, l.value.push(S)), a("attend", l.value);
13986
13989
  }
13987
- function x(S, b) {
13988
- S.selected = !1, l.value.splice(b, 1), a("attend", l.value);
13990
+ function x(S, w) {
13991
+ S.selected = !1, l.value.splice(w, 1), a("attend", l.value);
13989
13992
  }
13990
- return (S, b) => (g(), M("div", _g, [
13993
+ return (S, w) => (g(), M("div", _g, [
13991
13994
  m("div", kg, [
13992
13995
  m("div", {
13993
13996
  class: me(["input-wrapper bg-base-300 border-b border-base-200", { expanded: s.value || l.value.length > 0 }]),
13994
- onClick: b[1] || (b[1] = (_) => s.value = !s.value)
13997
+ onClick: w[1] || (w[1] = (_) => s.value = !s.value)
13995
13998
  }, [
13996
13999
  mt(m("input", {
13997
- "onUpdate:modelValue": b[0] || (b[0] = (_) => o.value = _),
14000
+ "onUpdate:modelValue": w[0] || (w[0] = (_) => o.value = _),
13998
14001
  placeholder: l.value.length > 0 ? e.multiSelect ? `Selecionados: ${l.value.length}` : `Selecionado: ${l.value[0].name}` : "Pesquise por nome.",
13999
14002
  class: "select-depart-input"
14000
14003
  }, null, 8, xg), [
@@ -14002,7 +14005,7 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
14002
14005
  ]),
14003
14006
  Ag
14004
14007
  ], 2),
14005
- l.value.length > 0 && e.multiSelect && w(r).loaded ? (g(), M("main", Mg, [
14008
+ l.value.length > 0 && e.multiSelect && b(r).loaded ? (g(), M("main", Mg, [
14006
14009
  (g(!0), M(_e, null, Pe(l.value, (_, v) => (g(), M("div", {
14007
14010
  key: _,
14008
14011
  class: "selection-item"
@@ -14024,7 +14027,7 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
14024
14027
  m("div", {
14025
14028
  class: me([{ "two-columns": u.value.length > 4 }, "grid-container"])
14026
14029
  }, [
14027
- w(r).loaded ? (g(!0), M(_e, { key: 0 }, Pe(u.value, (_) => (g(), M("div", {
14030
+ b(r).loaded ? (g(!0), M(_e, { key: 0 }, Pe(u.value, (_) => (g(), M("div", {
14028
14031
  key: _,
14029
14032
  class: me([{ selected: _.selected }, "department-item line-clamp-1 bg-slate-500/20 hover:bg-teal-600"])
14030
14033
  }, [
@@ -14042,8 +14045,8 @@ const zy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
14042
14045
  ], 2))), 128)) : B("", !0)
14043
14046
  ], 2)
14044
14047
  ]),
14045
- w(r).loaded && u.value.length === 0 ? (g(), M("div", Fg, " Nenhum atendente disponível. ")) : B("", !0),
14046
- w(r).loaded ? B("", !0) : (g(), M("div", Yg, [
14048
+ b(r).loaded && u.value.length === 0 ? (g(), M("div", Fg, " Nenhum atendente disponível. ")) : B("", !0),
14049
+ b(r).loaded ? B("", !0) : (g(), M("div", Yg, [
14047
14050
  Je(" Inicializando atendentes "),
14048
14051
  Lg
14049
14052
  ]))