@anzusystems/common-admin 1.24.0 → 1.25.0

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.
@@ -382,7 +382,7 @@ const Gg = /* @__PURE__ */ R({
382
382
  De(m, (E, $) => {
383
383
  E !== $ && r("change");
384
384
  });
385
- const C = () => {
385
+ const y = () => {
386
386
  i.value.page = 1;
387
387
  }, A = () => {
388
388
  i.value.page = n.value;
@@ -427,7 +427,7 @@ const Gg = /* @__PURE__ */ R({
427
427
  icon: "mdi-page-first",
428
428
  size: "small",
429
429
  variant: "text",
430
- onClick: Q(C, ["stop"])
430
+ onClick: Q(y, ["stop"])
431
431
  }, null, 8, ["disabled", "onClick"]),
432
432
  p(de, {
433
433
  disabled: d.value,
@@ -584,7 +584,7 @@ const nA = /* @__PURE__ */ R({
584
584
  (u, q) => {
585
585
  if (D(q) || u === q)
586
586
  return;
587
- const m = l.value.find((C) => C.id === u);
587
+ const m = l.value.find((y) => y.id === u);
588
588
  m && r("sortByChange", m);
589
589
  },
590
590
  { immediate: !0 }
@@ -617,7 +617,7 @@ const nA = /* @__PURE__ */ R({
617
617
  default: g(() => [
618
618
  (x(!0), O(ke, null, ut(l.value, (m) => (x(), P(Qe, {
619
619
  key: m.id,
620
- onClick: (C) => c(m)
620
+ onClick: (y) => c(m)
621
621
  }, {
622
622
  default: g(() => [
623
623
  p(Hr, {
@@ -870,7 +870,7 @@ const Di = Td(), as = "[-+]?[0-9]*.?[0-9]+", qn = [
870
870
  return M && (h[M] = "0px"), K && (K === "center" ? h.left = `calc(50% - ${+f / 2}${Y})` : h[K] = "0px"), h;
871
871
  }), q = w(() => "bottom" in u.value), m = (K) => {
872
872
  r("click", K), e.closeOnClick && _(K);
873
- }, C = () => {
873
+ }, y = () => {
874
874
  var K;
875
875
  e.pauseOnHover && ((K = n.value) == null || K.pause());
876
876
  }, A = () => {
@@ -953,7 +953,7 @@ const Di = Td(), as = "[-+]?[0-9]*.?[0-9]+", qn = [
953
953
  class: "vue-notification-wrapper",
954
954
  style: Ht($(f)),
955
955
  "data-id": f.id,
956
- onMouseenter: C,
956
+ onMouseenter: y,
957
957
  onMouseleave: A
958
958
  }, [
959
959
  pe(K.$slots, "body", {
@@ -1230,7 +1230,7 @@ const uA = /* @__PURE__ */ R({
1230
1230
  }
1231
1231
  };
1232
1232
  return (q, m) => {
1233
- const C = dt("ABtnTertiary"), A = dt("ABtnPrimary");
1233
+ const y = dt("ABtnTertiary"), A = dt("ABtnPrimary");
1234
1234
  return x(), P(A, {
1235
1235
  class: me(q.buttonClass),
1236
1236
  rounded: "pill",
@@ -1270,7 +1270,7 @@ const uA = /* @__PURE__ */ R({
1270
1270
  p(Zr, null, {
1271
1271
  default: g(() => [
1272
1272
  p(Zt),
1273
- p(C, {
1273
+ p(y, {
1274
1274
  "data-cy": "button-cancel",
1275
1275
  onClick: Q(a, ["stop"])
1276
1276
  }, {
@@ -1386,7 +1386,7 @@ var ma = { exports: {} };
1386
1386
  (function(e, i) {
1387
1387
  t.exports = i();
1388
1388
  })(ii, function() {
1389
- var e = 1e3, i = 6e4, s = 36e5, n = "millisecond", a = "second", o = "minute", d = "hour", l = "day", c = "week", u = "month", q = "quarter", m = "year", C = "date", A = "Invalid Date", T = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, j = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, E = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(Y) {
1389
+ var e = 1e3, i = 6e4, s = 36e5, n = "millisecond", a = "second", o = "minute", d = "hour", l = "day", c = "week", u = "month", q = "quarter", m = "year", y = "date", A = "Invalid Date", T = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, j = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, E = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(Y) {
1390
1390
  var h = ["th", "st", "nd", "rd"], X = Y % 100;
1391
1391
  return "[" + Y + (h[(X - 20) % 10] || h[X] || h[0]) + "]";
1392
1392
  } }, $ = function(Y, h, X) {
@@ -1403,7 +1403,7 @@ var ma = { exports: {} };
1403
1403
  }, a: function(Y) {
1404
1404
  return Y < 0 ? Math.ceil(Y) || 0 : Math.floor(Y);
1405
1405
  }, p: function(Y) {
1406
- return { M: u, y: m, w: c, d: l, D: C, h: d, m: o, s: a, ms: n, Q: q }[Y] || String(Y || "").toLowerCase().replace(/s$/, "");
1406
+ return { M: u, y: m, w: c, d: l, D: y, h: d, m: o, s: a, ms: n, Q: q }[Y] || String(Y || "").toLowerCase().replace(/s$/, "");
1407
1407
  }, u: function(Y) {
1408
1408
  return Y === void 0;
1409
1409
  } }, H = "en", J = {};
@@ -1493,7 +1493,7 @@ var ma = { exports: {} };
1493
1493
  var ct = this.$locale().weekStart || 0, tt = (Te < ct ? Te + 7 : Te) - ct;
1494
1494
  return se(B ? Ne - tt : Ne + (6 - tt), Pe);
1495
1495
  case l:
1496
- case C:
1496
+ case y:
1497
1497
  return qe(gt + "Hours", 0);
1498
1498
  case d:
1499
1499
  return qe(gt + "Minutes", 1);
@@ -1507,10 +1507,10 @@ var ma = { exports: {} };
1507
1507
  }, h.endOf = function(X) {
1508
1508
  return this.startOf(X, !1);
1509
1509
  }, h.$set = function(X, I) {
1510
- var v, B = K.p(X), W = "set" + (this.$u ? "UTC" : ""), se = (v = {}, v[l] = W + "Date", v[C] = W + "Date", v[u] = W + "Month", v[m] = W + "FullYear", v[d] = W + "Hours", v[o] = W + "Minutes", v[a] = W + "Seconds", v[n] = W + "Milliseconds", v)[B], qe = B === l ? this.$D + (I - this.$W) : I;
1510
+ var v, B = K.p(X), W = "set" + (this.$u ? "UTC" : ""), se = (v = {}, v[l] = W + "Date", v[y] = W + "Date", v[u] = W + "Month", v[m] = W + "FullYear", v[d] = W + "Hours", v[o] = W + "Minutes", v[a] = W + "Seconds", v[n] = W + "Milliseconds", v)[B], qe = B === l ? this.$D + (I - this.$W) : I;
1511
1511
  if (B === u || B === m) {
1512
- var Te = this.clone().set(C, 1);
1513
- Te.$d[se](qe), Te.init(), this.$d = Te.set(C, Math.min(this.$D, Te.daysInMonth())).$d;
1512
+ var Te = this.clone().set(y, 1);
1513
+ Te.$d[se](qe), Te.init(), this.$d = Te.set(y, Math.min(this.$D, Te.daysInMonth())).$d;
1514
1514
  } else
1515
1515
  se && this.$d[se](qe);
1516
1516
  return this.init(), this;
@@ -1660,7 +1660,7 @@ var ma = { exports: {} };
1660
1660
  return this.$d.toUTCString();
1661
1661
  }, Y;
1662
1662
  }(), f = M.prototype;
1663
- return oe.prototype = f, [["$ms", n], ["$s", a], ["$m", o], ["$H", d], ["$W", l], ["$M", u], ["$y", m], ["$D", C]].forEach(function(Y) {
1663
+ return oe.prototype = f, [["$ms", n], ["$s", a], ["$m", o], ["$H", d], ["$W", l], ["$M", u], ["$y", m], ["$D", y]].forEach(function(Y) {
1664
1664
  f[Y[1]] = function(h) {
1665
1665
  return this.$g(h, Y[0], Y[1]);
1666
1666
  };
@@ -1744,12 +1744,12 @@ var pa = { exports: {} };
1744
1744
  d.toDate = function(A) {
1745
1745
  return A === "s" && this.$offset ? o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : m.call(this);
1746
1746
  };
1747
- var C = d.diff;
1747
+ var y = d.diff;
1748
1748
  d.diff = function(A, T, j) {
1749
1749
  if (A && this.$u === A.$u)
1750
- return C.call(this, A, T, j);
1750
+ return y.call(this, A, T, j);
1751
1751
  var E = this.local(), $ = o(A).local();
1752
- return C.call(E, $, T, j);
1752
+ return y.call(E, $, T, j);
1753
1753
  };
1754
1754
  };
1755
1755
  });
@@ -1896,12 +1896,12 @@ const ga = /* @__PURE__ */ R({
1896
1896
  }, m = z(void 0);
1897
1897
  De(m, () => {
1898
1898
  if (l(m)) {
1899
- m.value.model = e.value, C.value = m.value, q(m);
1899
+ m.value.model = e.value, y.value = m.value, q(m);
1900
1900
  return;
1901
1901
  }
1902
1902
  A(e.value);
1903
1903
  });
1904
- const C = z(void 0);
1904
+ const y = z(void 0);
1905
1905
  De(e, (_) => {
1906
1906
  A(_);
1907
1907
  });
@@ -1911,7 +1911,7 @@ const ga = /* @__PURE__ */ R({
1911
1911
  return;
1912
1912
  }
1913
1913
  const H = T(_);
1914
- D(H) || (H.model = _), C.value = H, q(C);
1914
+ D(H) || (H.model = _), y.value = H, q(y);
1915
1915
  }, T = (_) => {
1916
1916
  if (gd(_) && l(i))
1917
1917
  return i.value;
@@ -1926,20 +1926,20 @@ const ga = /* @__PURE__ */ R({
1926
1926
  }, j = w(() => {
1927
1927
  if (l(m))
1928
1928
  return d(m.value.titleT ?? "");
1929
- if (l(C))
1930
- return d(C.value.titleT ?? "");
1929
+ if (l(y))
1930
+ return d(y.value.titleT ?? "");
1931
1931
  const _ = [];
1932
1932
  return l(i) && _.push(d(i.value.titleT ?? "")), l(n) && _.push(d(n.value.titleT ?? "")), l(a) && _.push(d(a.value.titleT ?? "")), l(s) && _.push(d(s.value.titleT ?? "")), _.join("/");
1933
1933
  }), E = w(() => {
1934
1934
  var _;
1935
- return (_ = C.value) == null ? void 0 : _.model;
1935
+ return (_ = y.value) == null ? void 0 : _.model;
1936
1936
  });
1937
1937
  De(E, (_) => {
1938
1938
  !Fn(e.value) && Fn(_) && (e.value = "");
1939
1939
  });
1940
1940
  const $ = w(() => {
1941
1941
  var _, H, J, te;
1942
- return D(r.placeholder) ? ((_ = C.value) == null ? void 0 : _.variant) === "startsWith" ? d("common.model.filterPlaceholder.startsWith") : ((H = C.value) == null ? void 0 : H.variant) === "eq" ? d("common.model.filterPlaceholder.eq") : ((J = C.value) == null ? void 0 : J.variant) === "contains" || ((te = C.value) == null ? void 0 : te.variant) === "search" ? d("common.model.filterPlaceholder.contains") : "" : r.placeholder;
1942
+ return D(r.placeholder) ? ((_ = y.value) == null ? void 0 : _.variant) === "startsWith" ? d("common.model.filterPlaceholder.startsWith") : ((H = y.value) == null ? void 0 : H.variant) === "eq" ? d("common.model.filterPlaceholder.eq") : ((J = y.value) == null ? void 0 : J.variant) === "contains" || ((te = y.value) == null ? void 0 : te.variant) === "search" ? d("common.model.filterPlaceholder.contains") : "" : r.placeholder;
1943
1943
  });
1944
1944
  return (_, H) => (x(), P(Qr, {
1945
1945
  modelValue: e.value,
@@ -2805,12 +2805,12 @@ var us = function() {
2805
2805
  else if (/Z$/.test(m) || /GMT$/.test(m))
2806
2806
  c = new Date(n);
2807
2807
  else {
2808
- for (var C = void 0, A = [], T = 0, j = 0, E = ""; T < q.length; T++) {
2808
+ for (var y = void 0, A = [], T = 0, j = 0, E = ""; T < q.length; T++) {
2809
2809
  var $ = q[T], _ = $ === "\\", H = q[T - 1] === "\\" || _;
2810
2810
  if (Vr[$] && !H) {
2811
2811
  E += Vr[$];
2812
2812
  var J = new RegExp(E).exec(n);
2813
- J && (C = !0) && A[$ !== "Y" ? "push" : "unshift"]({
2813
+ J && (y = !0) && A[$ !== "Y" ? "push" : "unshift"]({
2814
2814
  fn: Tl[$],
2815
2815
  val: J[++j]
2816
2816
  });
@@ -2820,7 +2820,7 @@ var us = function() {
2820
2820
  c = !e || !e.noCalendar ? new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1, 0, 0, 0, 0) : new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)), A.forEach(function(te) {
2821
2821
  var ae = te.fn, le = te.val;
2822
2822
  return c = ae(c, le, l) || c;
2823
- }), c = C ? c : void 0;
2823
+ }), c = y ? c : void 0;
2824
2824
  }
2825
2825
  }
2826
2826
  if (!(c instanceof Date && !isNaN(c.getTime()))) {
@@ -2924,8 +2924,8 @@ function Ol(t, r) {
2924
2924
  }
2925
2925
  function d(V) {
2926
2926
  if (e.selectedDates.length === 0) {
2927
- var F = e.config.minDate === void 0 || st(/* @__PURE__ */ new Date(), e.config.minDate) >= 0 ? /* @__PURE__ */ new Date() : new Date(e.config.minDate.getTime()), y = Vs(e.config);
2928
- F.setHours(y.hours, y.minutes, y.seconds, F.getMilliseconds()), e.selectedDates = [F], e.latestSelectedDateObj = F;
2927
+ var F = e.config.minDate === void 0 || st(/* @__PURE__ */ new Date(), e.config.minDate) >= 0 ? /* @__PURE__ */ new Date() : new Date(e.config.minDate.getTime()), C = Vs(e.config);
2928
+ F.setHours(C.hours, C.minutes, C.seconds, F.getMilliseconds()), e.selectedDates = [F], e.latestSelectedDateObj = F;
2929
2929
  }
2930
2930
  V !== void 0 && V.type !== "blur" && go(V);
2931
2931
  var S = e._input.value;
@@ -2945,51 +2945,51 @@ function Ol(t, r) {
2945
2945
  }
2946
2946
  function u() {
2947
2947
  if (!(e.hourElement === void 0 || e.minuteElement === void 0)) {
2948
- var V = (parseInt(e.hourElement.value.slice(-2), 10) || 0) % 24, F = (parseInt(e.minuteElement.value, 10) || 0) % 60, y = e.secondElement !== void 0 ? (parseInt(e.secondElement.value, 10) || 0) % 60 : 0;
2948
+ var V = (parseInt(e.hourElement.value.slice(-2), 10) || 0) % 24, F = (parseInt(e.minuteElement.value, 10) || 0) % 60, C = e.secondElement !== void 0 ? (parseInt(e.secondElement.value, 10) || 0) % 60 : 0;
2949
2949
  e.amPM !== void 0 && (V = l(V, e.amPM.textContent));
2950
2950
  var S = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && st(e.latestSelectedDateObj, e.config.minDate, !0) === 0, U = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && st(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
2951
2951
  if (e.config.maxTime !== void 0 && e.config.minTime !== void 0 && e.config.minTime > e.config.maxTime) {
2952
- var Z = cs(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), Xe = cs(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), ne = cs(V, F, y);
2952
+ var Z = cs(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), Xe = cs(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), ne = cs(V, F, C);
2953
2953
  if (ne > Xe && ne < Z) {
2954
2954
  var ge = Pl(Z);
2955
- V = ge[0], F = ge[1], y = ge[2];
2955
+ V = ge[0], F = ge[1], C = ge[2];
2956
2956
  }
2957
2957
  } else {
2958
2958
  if (U) {
2959
2959
  var re = e.config.maxTime !== void 0 ? e.config.maxTime : e.config.maxDate;
2960
- V = Math.min(V, re.getHours()), V === re.getHours() && (F = Math.min(F, re.getMinutes())), F === re.getMinutes() && (y = Math.min(y, re.getSeconds()));
2960
+ V = Math.min(V, re.getHours()), V === re.getHours() && (F = Math.min(F, re.getMinutes())), F === re.getMinutes() && (C = Math.min(C, re.getSeconds()));
2961
2961
  }
2962
2962
  if (S) {
2963
2963
  var Fe = e.config.minTime !== void 0 ? e.config.minTime : e.config.minDate;
2964
- V = Math.max(V, Fe.getHours()), V === Fe.getHours() && F < Fe.getMinutes() && (F = Fe.getMinutes()), F === Fe.getMinutes() && (y = Math.max(y, Fe.getSeconds()));
2964
+ V = Math.max(V, Fe.getHours()), V === Fe.getHours() && F < Fe.getMinutes() && (F = Fe.getMinutes()), F === Fe.getMinutes() && (C = Math.max(C, Fe.getSeconds()));
2965
2965
  }
2966
2966
  }
2967
- m(V, F, y);
2967
+ m(V, F, C);
2968
2968
  }
2969
2969
  }
2970
2970
  function q(V) {
2971
2971
  var F = V || e.latestSelectedDateObj;
2972
2972
  F && F instanceof Date && m(F.getHours(), F.getMinutes(), F.getSeconds());
2973
2973
  }
2974
- function m(V, F, y) {
2975
- e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(V % 24, F, y || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = Ze(e.config.time_24hr ? V : (12 + V) % 12 + 12 * Ft(V % 12 === 0)), e.minuteElement.value = Ze(F), e.amPM !== void 0 && (e.amPM.textContent = e.l10n.amPM[Ft(V >= 12)]), e.secondElement !== void 0 && (e.secondElement.value = Ze(y)));
2974
+ function m(V, F, C) {
2975
+ e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(V % 24, F, C || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = Ze(e.config.time_24hr ? V : (12 + V) % 12 + 12 * Ft(V % 12 === 0)), e.minuteElement.value = Ze(F), e.amPM !== void 0 && (e.amPM.textContent = e.l10n.amPM[Ft(V >= 12)]), e.secondElement !== void 0 && (e.secondElement.value = Ze(C)));
2976
2976
  }
2977
- function C(V) {
2978
- var F = it(V), y = parseInt(F.value) + (V.delta || 0);
2979
- (y / 1e3 > 1 || V.key === "Enter" && !/[^\d]/.test(y.toString())) && ct(y);
2977
+ function y(V) {
2978
+ var F = it(V), C = parseInt(F.value) + (V.delta || 0);
2979
+ (C / 1e3 > 1 || V.key === "Enter" && !/[^\d]/.test(C.toString())) && ct(C);
2980
2980
  }
2981
- function A(V, F, y, S) {
2981
+ function A(V, F, C, S) {
2982
2982
  if (F instanceof Array)
2983
2983
  return F.forEach(function(U) {
2984
- return A(V, U, y, S);
2984
+ return A(V, U, C, S);
2985
2985
  });
2986
2986
  if (V instanceof Array)
2987
2987
  return V.forEach(function(U) {
2988
- return A(U, F, y, S);
2988
+ return A(U, F, C, S);
2989
2989
  });
2990
- V.addEventListener(F, y, S), e._handlers.push({
2990
+ V.addEventListener(F, C, S), e._handlers.push({
2991
2991
  remove: function() {
2992
- return V.removeEventListener(F, y, S);
2992
+ return V.removeEventListener(F, C, S);
2993
2993
  }
2994
2994
  });
2995
2995
  }
@@ -2997,35 +2997,35 @@ function Ol(t, r) {
2997
2997
  Se("onChange");
2998
2998
  }
2999
2999
  function j() {
3000
- if (e.config.wrap && ["open", "close", "toggle", "clear"].forEach(function(y) {
3001
- Array.prototype.forEach.call(e.element.querySelectorAll("[data-" + y + "]"), function(S) {
3002
- return A(S, "click", e[y]);
3000
+ if (e.config.wrap && ["open", "close", "toggle", "clear"].forEach(function(C) {
3001
+ Array.prototype.forEach.call(e.element.querySelectorAll("[data-" + C + "]"), function(S) {
3002
+ return A(S, "click", e[C]);
3003
3003
  });
3004
3004
  }), e.isMobile) {
3005
3005
  Yo();
3006
3006
  return;
3007
3007
  }
3008
3008
  var V = mn(mr, 50);
3009
- if (e._debouncedChange = mn(T, Bl), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && A(e.daysContainer, "mouseover", function(y) {
3010
- e.config.mode === "range" && At(it(y));
3011
- }), A(e._input, "keydown", Xt), e.calendarContainer !== void 0 && A(e.calendarContainer, "keydown", Xt), !e.config.inline && !e.config.static && A(window, "resize", V), window.ontouchstart !== void 0 ? A(window.document, "touchstart", gt) : A(window.document, "mousedown", gt), A(window.document, "focus", gt, { capture: !0 }), e.config.clickOpens === !0 && (A(e._input, "focus", e.open), A(e._input, "click", e.open)), e.daysContainer !== void 0 && (A(e.monthNav, "click", po), A(e.monthNav, ["keyup", "increment"], C), A(e.daysContainer, "click", an)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
3012
- var F = function(y) {
3013
- return it(y).select();
3009
+ if (e._debouncedChange = mn(T, Bl), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && A(e.daysContainer, "mouseover", function(C) {
3010
+ e.config.mode === "range" && At(it(C));
3011
+ }), A(e._input, "keydown", Xt), e.calendarContainer !== void 0 && A(e.calendarContainer, "keydown", Xt), !e.config.inline && !e.config.static && A(window, "resize", V), window.ontouchstart !== void 0 ? A(window.document, "touchstart", gt) : A(window.document, "mousedown", gt), A(window.document, "focus", gt, { capture: !0 }), e.config.clickOpens === !0 && (A(e._input, "focus", e.open), A(e._input, "click", e.open)), e.daysContainer !== void 0 && (A(e.monthNav, "click", po), A(e.monthNav, ["keyup", "increment"], y), A(e.daysContainer, "click", an)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
3012
+ var F = function(C) {
3013
+ return it(C).select();
3014
3014
  };
3015
3015
  A(e.timeContainer, ["increment"], d), A(e.timeContainer, "blur", d, { capture: !0 }), A(e.timeContainer, "click", $), A([e.hourElement, e.minuteElement], ["focus", "click"], F), e.secondElement !== void 0 && A(e.secondElement, "focus", function() {
3016
3016
  return e.secondElement && e.secondElement.select();
3017
- }), e.amPM !== void 0 && A(e.amPM, "click", function(y) {
3018
- d(y);
3017
+ }), e.amPM !== void 0 && A(e.amPM, "click", function(C) {
3018
+ d(C);
3019
3019
  });
3020
3020
  }
3021
3021
  e.config.allowInput && A(e._input, "blur", Re);
3022
3022
  }
3023
3023
  function E(V, F) {
3024
- var y = V !== void 0 ? e.parseDate(V) : e.latestSelectedDateObj || (e.config.minDate && e.config.minDate > e.now ? e.config.minDate : e.config.maxDate && e.config.maxDate < e.now ? e.config.maxDate : e.now), S = e.currentYear, U = e.currentMonth;
3024
+ var C = V !== void 0 ? e.parseDate(V) : e.latestSelectedDateObj || (e.config.minDate && e.config.minDate > e.now ? e.config.minDate : e.config.maxDate && e.config.maxDate < e.now ? e.config.maxDate : e.now), S = e.currentYear, U = e.currentMonth;
3025
3025
  try {
3026
- y !== void 0 && (e.currentYear = y.getFullYear(), e.currentMonth = y.getMonth());
3026
+ C !== void 0 && (e.currentYear = C.getFullYear(), e.currentMonth = C.getMonth());
3027
3027
  } catch (Z) {
3028
- Z.message = "Invalid date supplied: " + y, e.config.errorHandler(Z);
3028
+ Z.message = "Invalid date supplied: " + C, e.config.errorHandler(Z);
3029
3029
  }
3030
3030
  F && e.currentYear !== S && (Se("onYearChange"), f()), F && (e.currentYear !== S || e.currentMonth !== U) && Se("onMonthChange"), e.redraw();
3031
3031
  }
@@ -3033,16 +3033,16 @@ function Ol(t, r) {
3033
3033
  var F = it(V);
3034
3034
  ~F.className.indexOf("arrow") && _(V, F.classList.contains("arrowUp") ? 1 : -1);
3035
3035
  }
3036
- function _(V, F, y) {
3037
- var S = V && it(V), U = y || S && S.parentNode && S.parentNode.firstChild, Z = ts("increment");
3036
+ function _(V, F, C) {
3037
+ var S = V && it(V), U = C || S && S.parentNode && S.parentNode.firstChild, Z = ts("increment");
3038
3038
  Z.delta = F, U && U.dispatchEvent(Z);
3039
3039
  }
3040
3040
  function H() {
3041
3041
  var V = window.document.createDocumentFragment();
3042
3042
  if (e.calendarContainer = be("div", "flatpickr-calendar"), e.calendarContainer.tabIndex = -1, !e.config.noCalendar) {
3043
3043
  if (V.appendChild(X()), e.innerContainer = be("div", "flatpickr-innerContainer"), e.config.weekNumbers) {
3044
- var F = W(), y = F.weekWrapper, S = F.weekNumbers;
3045
- e.innerContainer.appendChild(y), e.weekNumbers = S, e.weekWrapper = y;
3044
+ var F = W(), C = F.weekWrapper, S = F.weekNumbers;
3045
+ e.innerContainer.appendChild(C), e.weekNumbers = S, e.weekWrapper = C;
3046
3046
  }
3047
3047
  e.rContainer = be("div", "flatpickr-rContainer"), e.rContainer.appendChild(v()), e.daysContainer || (e.daysContainer = be("div", "flatpickr-days"), e.daysContainer.tabIndex = -1), M(), e.rContainer.appendChild(e.daysContainer), e.innerContainer.appendChild(e.rContainer), V.appendChild(e.innerContainer);
3048
3048
  }
@@ -3054,7 +3054,7 @@ function Ol(t, r) {
3054
3054
  }
3055
3055
  !e.config.static && !e.config.inline && (e.config.appendTo !== void 0 ? e.config.appendTo : window.document.body).appendChild(e.calendarContainer);
3056
3056
  }
3057
- function J(V, F, y, S) {
3057
+ function J(V, F, C, S) {
3058
3058
  var U = tt(F, !0), Z = be("span", V, F.getDate().toString());
3059
3059
  return Z.dateObj = F, Z.$i = S, Z.setAttribute("aria-label", e.formatDate(F, e.config.ariaDateFormat)), V.indexOf("hidden") === -1 && st(F, e.now) === 0 && (e.todayDateElem = Z, Z.classList.add("today"), Z.setAttribute("aria-current", "date")), U ? (Z.tabIndex = -1, rs(F) && (Z.classList.add("selected"), e.selectedDateElem = Z, e.config.mode === "range" && (Ge(Z, "startRange", e.selectedDates[0] && st(F, e.selectedDates[0], !0) === 0), Ge(Z, "endRange", e.selectedDates[1] && st(F, e.selectedDates[1], !0) === 0), V === "nextMonthDay" && Z.classList.add("inRange")))) : Z.classList.add("flatpickr-disabled"), e.config.mode === "range" && mo(F) && !rs(F) && Z.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && V !== "prevMonthDay" && S % 7 === 6 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(F) + "</span>"), Se("onDayCreate", Z), Z;
3060
3060
  }
@@ -3062,7 +3062,7 @@ function Ol(t, r) {
3062
3062
  V.focus(), e.config.mode === "range" && At(V);
3063
3063
  }
3064
3064
  function ae(V) {
3065
- for (var F = V > 0 ? 0 : e.config.showMonths - 1, y = V > 0 ? e.config.showMonths : -1, S = F; S != y; S += V)
3065
+ for (var F = V > 0 ? 0 : e.config.showMonths - 1, C = V > 0 ? e.config.showMonths : -1, S = F; S != C; S += V)
3066
3066
  for (var U = e.daysContainer.children[S], Z = V > 0 ? 0 : U.children.length - 1, Xe = V > 0 ? U.children.length : -1, ne = Z; ne != Xe; ne += V) {
3067
3067
  var ge = U.children[ne];
3068
3068
  if (ge.className.indexOf("hidden") === -1 && tt(ge.dateObj))
@@ -3070,8 +3070,8 @@ function Ol(t, r) {
3070
3070
  }
3071
3071
  }
3072
3072
  function le(V, F) {
3073
- for (var y = V.className.indexOf("Month") === -1 ? V.dateObj.getMonth() : e.currentMonth, S = F > 0 ? e.config.showMonths : -1, U = F > 0 ? 1 : -1, Z = y - e.currentMonth; Z != S; Z += U)
3074
- for (var Xe = e.daysContainer.children[Z], ne = y - e.currentMonth === Z ? V.$i + F : F < 0 ? Xe.children.length - 1 : 0, ge = Xe.children.length, re = ne; re >= 0 && re < ge && re != (F > 0 ? ge : -1); re += U) {
3073
+ for (var C = V.className.indexOf("Month") === -1 ? V.dateObj.getMonth() : e.currentMonth, S = F > 0 ? e.config.showMonths : -1, U = F > 0 ? 1 : -1, Z = C - e.currentMonth; Z != S; Z += U)
3074
+ for (var Xe = e.daysContainer.children[Z], ne = C - e.currentMonth === Z ? V.$i + F : F < 0 ? Xe.children.length - 1 : 0, ge = Xe.children.length, re = ne; re >= 0 && re < ge && re != (F > 0 ? ge : -1); re += U) {
3075
3075
  var Fe = Xe.children[re];
3076
3076
  if (Fe.className.indexOf("hidden") === -1 && tt(Fe.dateObj) && Math.abs(V.$i - re) >= Math.abs(F))
3077
3077
  return te(Fe);
@@ -3079,15 +3079,15 @@ function Ol(t, r) {
3079
3079
  e.changeMonth(U), oe(ae(U), 0);
3080
3080
  }
3081
3081
  function oe(V, F) {
3082
- var y = n(), S = Vt(y || document.body), U = V !== void 0 ? V : S ? y : e.selectedDateElem !== void 0 && Vt(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && Vt(e.todayDateElem) ? e.todayDateElem : ae(F > 0 ? 1 : -1);
3082
+ var C = n(), S = Vt(C || document.body), U = V !== void 0 ? V : S ? C : e.selectedDateElem !== void 0 && Vt(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && Vt(e.todayDateElem) ? e.todayDateElem : ae(F > 0 ? 1 : -1);
3083
3083
  U === void 0 ? e._input.focus() : S ? le(U, F) : te(U);
3084
3084
  }
3085
3085
  function K(V, F) {
3086
- for (var y = (new Date(V, F, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, S = e.utils.getDaysInMonth((F - 1 + 12) % 12, V), U = e.utils.getDaysInMonth(F, V), Z = window.document.createDocumentFragment(), Xe = e.config.showMonths > 1, ne = Xe ? "prevMonthDay hidden" : "prevMonthDay", ge = Xe ? "nextMonthDay hidden" : "nextMonthDay", re = S + 1 - y, Fe = 0; re <= S; re++, Fe++)
3086
+ for (var C = (new Date(V, F, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, S = e.utils.getDaysInMonth((F - 1 + 12) % 12, V), U = e.utils.getDaysInMonth(F, V), Z = window.document.createDocumentFragment(), Xe = e.config.showMonths > 1, ne = Xe ? "prevMonthDay hidden" : "prevMonthDay", ge = Xe ? "nextMonthDay hidden" : "nextMonthDay", re = S + 1 - C, Fe = 0; re <= S; re++, Fe++)
3087
3087
  Z.appendChild(J("flatpickr-day " + ne, new Date(V, F - 1, re), re, Fe));
3088
3088
  for (re = 1; re <= U; re++, Fe++)
3089
3089
  Z.appendChild(J("flatpickr-day", new Date(V, F, re), re, Fe));
3090
- for (var Ce = U + 1; Ce <= 42 - y && (e.config.showMonths === 1 || Fe % 7 !== 0); Ce++, Fe++)
3090
+ for (var Ce = U + 1; Ce <= 42 - C && (e.config.showMonths === 1 || Fe % 7 !== 0); Ce++, Fe++)
3091
3091
  Z.appendChild(J("flatpickr-day " + ge, new Date(V, F + 1, Ce % U), Ce, Fe));
3092
3092
  var ht = be("div", "dayContainer");
3093
3093
  return ht.appendChild(Z), ht;
@@ -3096,8 +3096,8 @@ function Ol(t, r) {
3096
3096
  if (e.daysContainer !== void 0) {
3097
3097
  Vi(e.daysContainer), e.weekNumbers && Vi(e.weekNumbers);
3098
3098
  for (var V = document.createDocumentFragment(), F = 0; F < e.config.showMonths; F++) {
3099
- var y = new Date(e.currentYear, e.currentMonth, 1);
3100
- y.setMonth(e.currentMonth + F), V.appendChild(K(y.getFullYear(), y.getMonth()));
3099
+ var C = new Date(e.currentYear, e.currentMonth, 1);
3100
+ C.setMonth(e.currentMonth + F), V.appendChild(K(C.getFullYear(), C.getMonth()));
3101
3101
  }
3102
3102
  e.daysContainer.appendChild(V), e.days = e.daysContainer.firstChild, e.config.mode === "range" && e.selectedDates.length === 1 && At();
3103
3103
  }
@@ -3110,24 +3110,24 @@ function Ol(t, r) {
3110
3110
  e.monthsDropdownContainer.tabIndex = -1, e.monthsDropdownContainer.innerHTML = "";
3111
3111
  for (var F = 0; F < 12; F++)
3112
3112
  if (V(F)) {
3113
- var y = be("option", "flatpickr-monthDropdown-month");
3114
- y.value = new Date(e.currentYear, F).getMonth().toString(), y.textContent = Si(F, e.config.shorthandCurrentMonth, e.l10n), y.tabIndex = -1, e.currentMonth === F && (y.selected = !0), e.monthsDropdownContainer.appendChild(y);
3113
+ var C = be("option", "flatpickr-monthDropdown-month");
3114
+ C.value = new Date(e.currentYear, F).getMonth().toString(), C.textContent = Si(F, e.config.shorthandCurrentMonth, e.l10n), C.tabIndex = -1, e.currentMonth === F && (C.selected = !0), e.monthsDropdownContainer.appendChild(C);
3115
3115
  }
3116
3116
  }
3117
3117
  }
3118
3118
  function Y() {
3119
- var V = be("div", "flatpickr-month"), F = window.document.createDocumentFragment(), y;
3120
- e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? y = be("span", "cur-month") : (e.monthsDropdownContainer = be("select", "flatpickr-monthDropdown-months"), e.monthsDropdownContainer.setAttribute("aria-label", e.l10n.monthAriaLabel), A(e.monthsDropdownContainer, "change", function(Xe) {
3119
+ var V = be("div", "flatpickr-month"), F = window.document.createDocumentFragment(), C;
3120
+ e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? C = be("span", "cur-month") : (e.monthsDropdownContainer = be("select", "flatpickr-monthDropdown-months"), e.monthsDropdownContainer.setAttribute("aria-label", e.l10n.monthAriaLabel), A(e.monthsDropdownContainer, "change", function(Xe) {
3121
3121
  var ne = it(Xe), ge = parseInt(ne.value, 10);
3122
3122
  e.changeMonth(ge - e.currentMonth), Se("onMonthChange");
3123
- }), f(), y = e.monthsDropdownContainer);
3123
+ }), f(), C = e.monthsDropdownContainer);
3124
3124
  var S = fi("cur-year", { tabindex: "-1" }), U = S.getElementsByTagName("input")[0];
3125
3125
  U.setAttribute("aria-label", e.l10n.yearAriaLabel), e.config.minDate && U.setAttribute("min", e.config.minDate.getFullYear().toString()), e.config.maxDate && (U.setAttribute("max", e.config.maxDate.getFullYear().toString()), U.disabled = !!e.config.minDate && e.config.minDate.getFullYear() === e.config.maxDate.getFullYear());
3126
3126
  var Z = be("div", "flatpickr-current-month");
3127
- return Z.appendChild(y), Z.appendChild(S), F.appendChild(Z), V.appendChild(F), {
3127
+ return Z.appendChild(C), Z.appendChild(S), F.appendChild(Z), V.appendChild(F), {
3128
3128
  container: V,
3129
3129
  yearElement: U,
3130
- monthElement: y
3130
+ monthElement: C
3131
3131
  };
3132
3132
  }
3133
3133
  function h() {
@@ -3159,14 +3159,14 @@ function Ol(t, r) {
3159
3159
  e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
3160
3160
  var V = Vs(e.config);
3161
3161
  e.timeContainer = be("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
3162
- var F = be("span", "flatpickr-time-separator", ":"), y = fi("flatpickr-hour", {
3162
+ var F = be("span", "flatpickr-time-separator", ":"), C = fi("flatpickr-hour", {
3163
3163
  "aria-label": e.l10n.hourAriaLabel
3164
3164
  });
3165
- e.hourElement = y.getElementsByTagName("input")[0];
3165
+ e.hourElement = C.getElementsByTagName("input")[0];
3166
3166
  var S = fi("flatpickr-minute", {
3167
3167
  "aria-label": e.l10n.minuteAriaLabel
3168
3168
  });
3169
- if (e.minuteElement = S.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = Ze(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? V.hours : c(V.hours)), e.minuteElement.value = Ze(e.latestSelectedDateObj ? e.latestSelectedDateObj.getMinutes() : V.minutes), e.hourElement.setAttribute("step", e.config.hourIncrement.toString()), e.minuteElement.setAttribute("step", e.config.minuteIncrement.toString()), e.hourElement.setAttribute("min", e.config.time_24hr ? "0" : "1"), e.hourElement.setAttribute("max", e.config.time_24hr ? "23" : "12"), e.hourElement.setAttribute("maxlength", "2"), e.minuteElement.setAttribute("min", "0"), e.minuteElement.setAttribute("max", "59"), e.minuteElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(y), e.timeContainer.appendChild(F), e.timeContainer.appendChild(S), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
3169
+ if (e.minuteElement = S.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = Ze(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? V.hours : c(V.hours)), e.minuteElement.value = Ze(e.latestSelectedDateObj ? e.latestSelectedDateObj.getMinutes() : V.minutes), e.hourElement.setAttribute("step", e.config.hourIncrement.toString()), e.minuteElement.setAttribute("step", e.config.minuteIncrement.toString()), e.hourElement.setAttribute("min", e.config.time_24hr ? "0" : "1"), e.hourElement.setAttribute("max", e.config.time_24hr ? "23" : "12"), e.hourElement.setAttribute("maxlength", "2"), e.minuteElement.setAttribute("min", "0"), e.minuteElement.setAttribute("max", "59"), e.minuteElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(C), e.timeContainer.appendChild(F), e.timeContainer.appendChild(S), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
3170
3170
  e.timeContainer.classList.add("hasSeconds");
3171
3171
  var U = fi("flatpickr-second");
3172
3172
  e.secondElement = U.getElementsByTagName("input")[0], e.secondElement.value = Ze(e.latestSelectedDateObj ? e.latestSelectedDateObj.getSeconds() : V.seconds), e.secondElement.setAttribute("step", e.minuteElement.getAttribute("step")), e.secondElement.setAttribute("min", "0"), e.secondElement.setAttribute("max", "59"), e.secondElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(be("span", "flatpickr-time-separator", ":")), e.timeContainer.appendChild(U);
@@ -3185,8 +3185,8 @@ function Ol(t, r) {
3185
3185
  if (e.weekdayContainer) {
3186
3186
  var V = e.l10n.firstDayOfWeek, F = pn(e.l10n.weekdays.shorthand);
3187
3187
  V > 0 && V < F.length && (F = pn(F.splice(V, F.length), F.splice(0, V)));
3188
- for (var y = e.config.showMonths; y--; )
3189
- e.weekdayContainer.children[y].innerHTML = `
3188
+ for (var C = e.config.showMonths; C--; )
3189
+ e.weekdayContainer.children[C].innerHTML = `
3190
3190
  <span class='flatpickr-weekday'>
3191
3191
  ` + F.join("</span><span class='flatpickr-weekday'>") + `
3192
3192
  </span>
@@ -3205,12 +3205,12 @@ function Ol(t, r) {
3205
3205
  }
3206
3206
  function se(V, F) {
3207
3207
  F === void 0 && (F = !0);
3208
- var y = F ? V : V - e.currentMonth;
3209
- y < 0 && e._hidePrevMonthArrow === !0 || y > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += y, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, Se("onYearChange"), f()), M(), Se("onMonthChange"), li());
3208
+ var C = F ? V : V - e.currentMonth;
3209
+ C < 0 && e._hidePrevMonthArrow === !0 || C > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += C, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, Se("onYearChange"), f()), M(), Se("onMonthChange"), li());
3210
3210
  }
3211
3211
  function qe(V, F) {
3212
3212
  if (V === void 0 && (V = !0), F === void 0 && (F = !0), e.input.value = "", e.altInput !== void 0 && (e.altInput.value = ""), e.mobileInput !== void 0 && (e.mobileInput.value = ""), e.selectedDates = [], e.latestSelectedDateObj = void 0, F === !0 && (e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth()), e.config.enableTime === !0) {
3213
- var y = Vs(e.config), S = y.hours, U = y.minutes, Z = y.seconds;
3213
+ var C = Vs(e.config), S = C.hours, U = C.minutes, Z = C.seconds;
3214
3214
  m(S, U, Z);
3215
3215
  }
3216
3216
  e.redraw(), V && Se("onChange");
@@ -3264,9 +3264,9 @@ function Ol(t, r) {
3264
3264
  "navigationCurrentMonth",
3265
3265
  "selectedDateElem",
3266
3266
  "config"
3267
- ].forEach(function(y) {
3267
+ ].forEach(function(C) {
3268
3268
  try {
3269
- delete e[y];
3269
+ delete e[C];
3270
3270
  } catch {
3271
3271
  }
3272
3272
  });
@@ -3276,7 +3276,7 @@ function Ol(t, r) {
3276
3276
  }
3277
3277
  function gt(V) {
3278
3278
  if (e.isOpen && !e.config.inline) {
3279
- var F = it(V), y = Ne(F), S = F === e.input || F === e.altInput || e.element.contains(F) || V.path && V.path.indexOf && (~V.path.indexOf(e.input) || ~V.path.indexOf(e.altInput)), U = !S && !y && !Ne(V.relatedTarget), Z = !e.config.ignoredFocusElements.some(function(Xe) {
3279
+ var F = it(V), C = Ne(F), S = F === e.input || F === e.altInput || e.element.contains(F) || V.path && V.path.indexOf && (~V.path.indexOf(e.input) || ~V.path.indexOf(e.altInput)), U = !S && !C && !Ne(V.relatedTarget), Z = !e.config.ignoredFocusElements.some(function(Xe) {
3280
3280
  return Xe.contains(F);
3281
3281
  });
3282
3282
  U && Z && (e.config.allowInput && e.setDate(e._input.value, !1, e.config.altInput ? e.config.altFormat : e.config.dateFormat), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0 && e.input.value !== "" && e.input.value !== void 0 && d(), e.close(), e.config && e.config.mode === "range" && e.selectedDates.length === 1 && e.clear(!1));
@@ -3284,12 +3284,12 @@ function Ol(t, r) {
3284
3284
  }
3285
3285
  function ct(V) {
3286
3286
  if (!(!V || e.config.minDate && V < e.config.minDate.getFullYear() || e.config.maxDate && V > e.config.maxDate.getFullYear())) {
3287
- var F = V, y = e.currentYear !== F;
3288
- e.currentYear = F || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), y && (e.redraw(), Se("onYearChange"), f());
3287
+ var F = V, C = e.currentYear !== F;
3288
+ e.currentYear = F || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), C && (e.redraw(), Se("onYearChange"), f());
3289
3289
  }
3290
3290
  }
3291
3291
  function tt(V, F) {
3292
- var y;
3292
+ var C;
3293
3293
  F === void 0 && (F = !0);
3294
3294
  var S = e.parseDate(V, void 0, F);
3295
3295
  if (e.config.minDate && S && st(S, e.config.minDate, F !== void 0 ? F : !e.minDateHasTime) < 0 || e.config.maxDate && S && st(S, e.config.maxDate, F !== void 0 ? F : !e.maxDateHasTime) > 0)
@@ -3298,7 +3298,7 @@ function Ol(t, r) {
3298
3298
  return !0;
3299
3299
  if (S === void 0)
3300
3300
  return !1;
3301
- for (var U = !!e.config.enable, Z = (y = e.config.enable) !== null && y !== void 0 ? y : e.config.disable, Xe = 0, ne = void 0; Xe < Z.length; Xe++) {
3301
+ for (var U = !!e.config.enable, Z = (C = e.config.enable) !== null && C !== void 0 ? C : e.config.disable, Xe = 0, ne = void 0; Xe < Z.length; Xe++) {
3302
3302
  if (ne = Z[Xe], typeof ne == "function" && ne(S))
3303
3303
  return U;
3304
3304
  if (ne instanceof Date && S !== void 0 && ne.getTime() === S.getTime())
@@ -3315,12 +3315,12 @@ function Ol(t, r) {
3315
3315
  return e.daysContainer !== void 0 ? V.className.indexOf("hidden") === -1 && V.className.indexOf("flatpickr-disabled") === -1 && e.daysContainer.contains(V) : !1;
3316
3316
  }
3317
3317
  function Re(V) {
3318
- var F = V.target === e._input, y = e._input.value.trimEnd() !== is();
3319
- F && y && !(V.relatedTarget && Ne(V.relatedTarget)) && e.setDate(e._input.value, !0, V.target === e.altInput ? e.config.altFormat : e.config.dateFormat);
3318
+ var F = V.target === e._input, C = e._input.value.trimEnd() !== is();
3319
+ F && C && !(V.relatedTarget && Ne(V.relatedTarget)) && e.setDate(e._input.value, !0, V.target === e.altInput ? e.config.altFormat : e.config.dateFormat);
3320
3320
  }
3321
3321
  function Xt(V) {
3322
- var F = it(V), y = e.config.wrap ? t.contains(F) : F === e._input, S = e.config.allowInput, U = e.isOpen && (!S || !y), Z = e.config.inline && y && !S;
3323
- if (V.keyCode === 13 && y) {
3322
+ var F = it(V), C = e.config.wrap ? t.contains(F) : F === e._input, S = e.config.allowInput, U = e.isOpen && (!S || !C), Z = e.config.inline && C && !S;
3323
+ if (V.keyCode === 13 && C) {
3324
3324
  if (S)
3325
3325
  return e.setDate(e._input.value, !0, F === e.altInput ? e.config.altFormat : e.config.dateFormat), e.close(), F.blur();
3326
3326
  e.open();
@@ -3335,11 +3335,11 @@ function Ol(t, r) {
3335
3335
  break;
3336
3336
  case 8:
3337
3337
  case 46:
3338
- y && !e.config.allowInput && (V.preventDefault(), e.clear());
3338
+ C && !e.config.allowInput && (V.preventDefault(), e.clear());
3339
3339
  break;
3340
3340
  case 37:
3341
3341
  case 39:
3342
- if (!Xe && !y) {
3342
+ if (!Xe && !C) {
3343
3343
  V.preventDefault();
3344
3344
  var ne = n();
3345
3345
  if (e.daysContainer !== void 0 && (S === !1 || ne && Vt(ne))) {
@@ -3385,11 +3385,11 @@ function Ol(t, r) {
3385
3385
  e.amPM.textContent = e.l10n.amPM[1], u(), kt();
3386
3386
  break;
3387
3387
  }
3388
- (y || Ne(F)) && Se("onKeyDown", V);
3388
+ (C || Ne(F)) && Se("onKeyDown", V);
3389
3389
  }
3390
3390
  function At(V, F) {
3391
3391
  if (F === void 0 && (F = "flatpickr-day"), !(e.selectedDates.length !== 1 || V && (!V.classList.contains(F) || V.classList.contains("flatpickr-disabled")))) {
3392
- for (var y = V ? V.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), S = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), U = Math.min(y, e.selectedDates[0].getTime()), Z = Math.max(y, e.selectedDates[0].getTime()), Xe = !1, ne = 0, ge = 0, re = U; re < Z; re += $l.DAY)
3392
+ for (var C = V ? V.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), S = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), U = Math.min(C, e.selectedDates[0].getTime()), Z = Math.max(C, e.selectedDates[0].getTime()), Xe = !1, ne = 0, ge = 0, re = U; re < Z; re += $l.DAY)
3393
3393
  tt(new Date(re), !0) || (Xe = Xe || re > U && re < Z, re < S && (!ne || re > ne) ? ne = re : re > S && (!ge || re < ge) && (ge = re));
3394
3394
  var Fe = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + F));
3395
3395
  Fe.forEach(function(Ce) {
@@ -3403,7 +3403,7 @@ function Ol(t, r) {
3403
3403
  return;
3404
3404
  ["startRange", "inRange", "endRange", "notAllowed"].forEach(function(pr) {
3405
3405
  Ce.classList.remove(pr);
3406
- }), V !== void 0 && (V.classList.add(y <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), S < y && rt === S ? Ce.classList.add("startRange") : S > y && rt === S && Ce.classList.add("endRange"), rt >= ne && (ge === 0 || rt <= ge) && El(rt, S, y) && Ce.classList.add("inRange"));
3406
+ }), V !== void 0 && (V.classList.add(C <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), S < C && rt === S ? Ce.classList.add("startRange") : S > C && rt === S && Ce.classList.add("endRange"), rt >= ne && (ge === 0 || rt <= ge) && El(rt, S, C) && Ce.classList.add("inRange"));
3407
3407
  });
3408
3408
  }
3409
3409
  }
@@ -3414,8 +3414,8 @@ function Ol(t, r) {
3414
3414
  if (F === void 0 && (F = e._positionElement), e.isMobile === !0) {
3415
3415
  if (V) {
3416
3416
  V.preventDefault();
3417
- var y = it(V);
3418
- y && y.blur();
3417
+ var C = it(V);
3418
+ C && C.blur();
3419
3419
  }
3420
3420
  e.mobileInput !== void 0 && (e.mobileInput.focus(), e.mobileInput.click()), Se("onOpen");
3421
3421
  return;
@@ -3428,10 +3428,10 @@ function Ol(t, r) {
3428
3428
  }
3429
3429
  function tn(V) {
3430
3430
  return function(F) {
3431
- var y = e.config["_" + V + "Date"] = e.parseDate(F, e.config.dateFormat), S = e.config["_" + (V === "min" ? "max" : "min") + "Date"];
3432
- y !== void 0 && (e[V === "min" ? "minDateHasTime" : "maxDateHasTime"] = y.getHours() > 0 || y.getMinutes() > 0 || y.getSeconds() > 0), e.selectedDates && (e.selectedDates = e.selectedDates.filter(function(U) {
3431
+ var C = e.config["_" + V + "Date"] = e.parseDate(F, e.config.dateFormat), S = e.config["_" + (V === "min" ? "max" : "min") + "Date"];
3432
+ C !== void 0 && (e[V === "min" ? "minDateHasTime" : "maxDateHasTime"] = C.getHours() > 0 || C.getMinutes() > 0 || C.getSeconds() > 0), e.selectedDates && (e.selectedDates = e.selectedDates.filter(function(U) {
3433
3433
  return tt(U);
3434
- }), !e.selectedDates.length && V === "min" && q(y), kt()), e.daysContainer && (nn(), y !== void 0 ? e.currentYearElement[V] = y.getFullYear().toString() : e.currentYearElement.removeAttribute(V), e.currentYearElement.disabled = !!S && y !== void 0 && S.getFullYear() === y.getFullYear());
3434
+ }), !e.selectedDates.length && V === "min" && q(C), kt()), e.daysContainer && (nn(), C !== void 0 ? e.currentYearElement[V] = C.getFullYear().toString() : e.currentYearElement.removeAttribute(V), e.currentYearElement.disabled = !!S && C !== void 0 && S.getFullYear() === C.getFullYear());
3435
3435
  };
3436
3436
  }
3437
3437
  function lo() {
@@ -3450,7 +3450,7 @@ function Ol(t, r) {
3450
3450
  "static",
3451
3451
  "enableSeconds",
3452
3452
  "disableMobile"
3453
- ], F = He(He({}, JSON.parse(JSON.stringify(t.dataset || {}))), r), y = {};
3453
+ ], F = He(He({}, JSON.parse(JSON.stringify(t.dataset || {}))), r), C = {};
3454
3454
  e.config.parseDate = F.parseDate, e.config.formatDate = F.formatDate, Object.defineProperty(e.config, "enable", {
3455
3455
  get: function() {
3456
3456
  return e.config._enable;
@@ -3469,11 +3469,11 @@ function Ol(t, r) {
3469
3469
  var S = F.mode === "time";
3470
3470
  if (!F.dateFormat && (F.enableTime || S)) {
3471
3471
  var U = $e.defaultConfig.dateFormat || xr.dateFormat;
3472
- y.dateFormat = F.noCalendar || S ? "H:i" + (F.enableSeconds ? ":S" : "") : U + " H:i" + (F.enableSeconds ? ":S" : "");
3472
+ C.dateFormat = F.noCalendar || S ? "H:i" + (F.enableSeconds ? ":S" : "") : U + " H:i" + (F.enableSeconds ? ":S" : "");
3473
3473
  }
3474
3474
  if (F.altInput && (F.enableTime || S) && !F.altFormat) {
3475
3475
  var Z = $e.defaultConfig.altFormat || xr.altFormat;
3476
- y.altFormat = F.noCalendar || S ? "h:i" + (F.enableSeconds ? ":S K" : " K") : Z + (" h:i" + (F.enableSeconds ? ":S" : "") + " K");
3476
+ C.altFormat = F.noCalendar || S ? "h:i" + (F.enableSeconds ? ":S K" : " K") : Z + (" h:i" + (F.enableSeconds ? ":S" : "") + " K");
3477
3477
  }
3478
3478
  Object.defineProperty(e.config, "minDate", {
3479
3479
  get: function() {
@@ -3501,7 +3501,7 @@ function Ol(t, r) {
3501
3501
  return e.config._maxTime;
3502
3502
  },
3503
3503
  set: Xe("max")
3504
- }), F.mode === "time" && (e.config.noCalendar = !0, e.config.enableTime = !0), Object.assign(e.config, y, F);
3504
+ }), F.mode === "time" && (e.config.noCalendar = !0, e.config.enableTime = !0), Object.assign(e.config, C, F);
3505
3505
  for (var ne = 0; ne < V.length; ne++)
3506
3506
  e.config[V[ne]] = e.config[V[ne]] === !0 || e.config[V[ne]] === "true";
3507
3507
  ds.filter(function(Fe) {
@@ -3529,9 +3529,9 @@ function Ol(t, r) {
3529
3529
  return void e.config.position(e, V);
3530
3530
  if (e.calendarContainer !== void 0) {
3531
3531
  Se("onPreCalendarPosition");
3532
- var F = V || e._positionElement, y = Array.prototype.reduce.call(e.calendarContainer.children, function(Ko, Io) {
3532
+ var F = V || e._positionElement, C = Array.prototype.reduce.call(e.calendarContainer.children, function(Ko, Io) {
3533
3533
  return Ko + Io.offsetHeight;
3534
- }, 0), S = e.calendarContainer.offsetWidth, U = e.config.position.split(" "), Z = U[0], Xe = U.length > 1 ? U[1] : null, ne = F.getBoundingClientRect(), ge = window.innerHeight - ne.bottom, re = Z === "above" || Z !== "below" && ge < y && ne.top > y, Fe = window.pageYOffset + ne.top + (re ? -y - 2 : F.offsetHeight + 2);
3534
+ }, 0), S = e.calendarContainer.offsetWidth, U = e.config.position.split(" "), Z = U[0], Xe = U.length > 1 ? U[1] : null, ne = F.getBoundingClientRect(), ge = window.innerHeight - ne.bottom, re = Z === "above" || Z !== "below" && ge < C && ne.top > C, Fe = window.pageYOffset + ne.top + (re ? -C - 2 : F.offsetHeight + 2);
3535
3535
  if (Ge(e.calendarContainer, "arrowTop", !re), Ge(e.calendarContainer, "arrowBottom", re), !e.config.inline) {
3536
3536
  var Ce = window.pageXOffset + ne.left, ht = !1, rt = !1;
3537
3537
  Xe === "center" ? (Ce -= (S - ne.width) / 2, ht = !0) : Xe === "right" && (Ce -= S - ne.width, rt = !0), Ge(e.calendarContainer, "arrowLeft", !ht && !rt), Ge(e.calendarContainer, "arrowCenter", ht), Ge(e.calendarContainer, "arrowRight", rt);
@@ -3553,14 +3553,14 @@ function Ol(t, r) {
3553
3553
  }
3554
3554
  function uo() {
3555
3555
  for (var V = null, F = 0; F < document.styleSheets.length; F++) {
3556
- var y = document.styleSheets[F];
3557
- if (y.cssRules) {
3556
+ var C = document.styleSheets[F];
3557
+ if (C.cssRules) {
3558
3558
  try {
3559
- y.cssRules;
3559
+ C.cssRules;
3560
3560
  } catch {
3561
3561
  continue;
3562
3562
  }
3563
- V = y;
3563
+ V = C;
3564
3564
  break;
3565
3565
  }
3566
3566
  }
@@ -3580,9 +3580,9 @@ function Ol(t, r) {
3580
3580
  V.preventDefault(), V.stopPropagation();
3581
3581
  var F = function(Fe) {
3582
3582
  return Fe.classList && Fe.classList.contains("flatpickr-day") && !Fe.classList.contains("flatpickr-disabled") && !Fe.classList.contains("notAllowed");
3583
- }, y = ya(it(V), F);
3584
- if (y !== void 0) {
3585
- var S = y, U = e.latestSelectedDateObj = new Date(S.dateObj.getTime()), Z = (U.getMonth() < e.currentMonth || U.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
3583
+ }, C = ya(it(V), F);
3584
+ if (C !== void 0) {
3585
+ var S = C, U = e.latestSelectedDateObj = new Date(S.dateObj.getTime()), Z = (U.getMonth() < e.currentMonth || U.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
3586
3586
  if (e.selectedDateElem = S, e.config.mode === "single")
3587
3587
  e.selectedDates = [U];
3588
3588
  else if (e.config.mode === "multiple") {
@@ -3618,8 +3618,8 @@ function Ol(t, r) {
3618
3618
  function Vo(V, F) {
3619
3619
  if (V !== null && typeof V == "object") {
3620
3620
  Object.assign(e.config, V);
3621
- for (var y in V)
3622
- di[y] !== void 0 && di[y].forEach(function(S) {
3621
+ for (var C in V)
3622
+ di[C] !== void 0 && di[C].forEach(function(S) {
3623
3623
  return S();
3624
3624
  });
3625
3625
  } else
@@ -3629,42 +3629,42 @@ function Ol(t, r) {
3629
3629
  e.redraw(), kt(!0);
3630
3630
  }
3631
3631
  function on(V, F) {
3632
- var y = [];
3632
+ var C = [];
3633
3633
  if (V instanceof Array)
3634
- y = V.map(function(S) {
3634
+ C = V.map(function(S) {
3635
3635
  return e.parseDate(S, F);
3636
3636
  });
3637
3637
  else if (V instanceof Date || typeof V == "number")
3638
- y = [e.parseDate(V, F)];
3638
+ C = [e.parseDate(V, F)];
3639
3639
  else if (typeof V == "string")
3640
3640
  switch (e.config.mode) {
3641
3641
  case "single":
3642
3642
  case "time":
3643
- y = [e.parseDate(V, F)];
3643
+ C = [e.parseDate(V, F)];
3644
3644
  break;
3645
3645
  case "multiple":
3646
- y = V.split(e.config.conjunction).map(function(S) {
3646
+ C = V.split(e.config.conjunction).map(function(S) {
3647
3647
  return e.parseDate(S, F);
3648
3648
  });
3649
3649
  break;
3650
3650
  case "range":
3651
- y = V.split(e.l10n.rangeSeparator).map(function(S) {
3651
+ C = V.split(e.l10n.rangeSeparator).map(function(S) {
3652
3652
  return e.parseDate(S, F);
3653
3653
  });
3654
3654
  break;
3655
3655
  }
3656
3656
  else
3657
3657
  e.config.errorHandler(new Error("Invalid date supplied: " + JSON.stringify(V)));
3658
- e.selectedDates = e.config.allowInvalidPreload ? y : y.filter(function(S) {
3658
+ e.selectedDates = e.config.allowInvalidPreload ? C : C.filter(function(S) {
3659
3659
  return S instanceof Date && tt(S, !1);
3660
3660
  }), e.config.mode === "range" && e.selectedDates.sort(function(S, U) {
3661
3661
  return S.getTime() - U.getTime();
3662
3662
  });
3663
3663
  }
3664
- function fo(V, F, y) {
3665
- if (F === void 0 && (F = !1), y === void 0 && (y = e.config.dateFormat), V !== 0 && !V || V instanceof Array && V.length === 0)
3664
+ function fo(V, F, C) {
3665
+ if (F === void 0 && (F = !1), C === void 0 && (C = e.config.dateFormat), V !== 0 && !V || V instanceof Array && V.length === 0)
3666
3666
  return e.clear(F);
3667
- on(V, y), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(), E(void 0, F), q(), e.selectedDates.length === 0 && e.clear(!1), kt(F), F && Se("onChange");
3667
+ on(V, C), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(), E(void 0, F), q(), e.selectedDates.length === 0 && e.clear(!1), kt(F), F && Se("onChange");
3668
3668
  }
3669
3669
  function dn(V) {
3670
3670
  return V.slice().map(function(F) {
@@ -3709,10 +3709,10 @@ function Ol(t, r) {
3709
3709
  }
3710
3710
  function Se(V, F) {
3711
3711
  if (e.config !== void 0) {
3712
- var y = e.config[V];
3713
- if (y !== void 0 && y.length > 0)
3714
- for (var S = 0; y[S] && S < y.length; S++)
3715
- y[S](e.selectedDates, e.input.value, e, F);
3712
+ var C = e.config[V];
3713
+ if (C !== void 0 && C.length > 0)
3714
+ for (var S = 0; C[S] && S < C.length; S++)
3715
+ C[S](e.selectedDates, e.input.value, e, F);
3716
3716
  V === "onChange" && (e.input.dispatchEvent(ts("change")), e.input.dispatchEvent(ts("input")));
3717
3717
  }
3718
3718
  }
@@ -3722,8 +3722,8 @@ function Ol(t, r) {
3722
3722
  }
3723
3723
  function rs(V) {
3724
3724
  for (var F = 0; F < e.selectedDates.length; F++) {
3725
- var y = e.selectedDates[F];
3726
- if (y instanceof Date && st(y, V) === 0)
3725
+ var C = e.selectedDates[F];
3726
+ if (C instanceof Date && st(C, V) === 0)
3727
3727
  return "" + F;
3728
3728
  }
3729
3729
  return !1;
@@ -3733,29 +3733,29 @@ function Ol(t, r) {
3733
3733
  }
3734
3734
  function li() {
3735
3735
  e.config.noCalendar || e.isMobile || !e.monthNav || (e.yearElements.forEach(function(V, F) {
3736
- var y = new Date(e.currentYear, e.currentMonth, 1);
3737
- y.setMonth(e.currentMonth + F), e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? e.monthElements[F].textContent = Si(y.getMonth(), e.config.shorthandCurrentMonth, e.l10n) + " " : e.monthsDropdownContainer.value = y.getMonth().toString(), V.value = y.getFullYear().toString();
3736
+ var C = new Date(e.currentYear, e.currentMonth, 1);
3737
+ C.setMonth(e.currentMonth + F), e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? e.monthElements[F].textContent = Si(C.getMonth(), e.config.shorthandCurrentMonth, e.l10n) + " " : e.monthsDropdownContainer.value = C.getMonth().toString(), V.value = C.getFullYear().toString();
3738
3738
  }), e._hidePrevMonthArrow = e.config.minDate !== void 0 && (e.currentYear === e.config.minDate.getFullYear() ? e.currentMonth <= e.config.minDate.getMonth() : e.currentYear < e.config.minDate.getFullYear()), e._hideNextMonthArrow = e.config.maxDate !== void 0 && (e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth + 1 > e.config.maxDate.getMonth() : e.currentYear > e.config.maxDate.getFullYear()));
3739
3739
  }
3740
3740
  function is(V) {
3741
3741
  var F = V || (e.config.altInput ? e.config.altFormat : e.config.dateFormat);
3742
- return e.selectedDates.map(function(y) {
3743
- return e.formatDate(y, F);
3744
- }).filter(function(y, S, U) {
3745
- return e.config.mode !== "range" || e.config.enableTime || U.indexOf(y) === S;
3742
+ return e.selectedDates.map(function(C) {
3743
+ return e.formatDate(C, F);
3744
+ }).filter(function(C, S, U) {
3745
+ return e.config.mode !== "range" || e.config.enableTime || U.indexOf(C) === S;
3746
3746
  }).join(e.config.mode !== "range" ? e.config.conjunction : e.l10n.rangeSeparator);
3747
3747
  }
3748
3748
  function kt(V) {
3749
3749
  V === void 0 && (V = !0), e.mobileInput !== void 0 && e.mobileFormatStr && (e.mobileInput.value = e.latestSelectedDateObj !== void 0 ? e.formatDate(e.latestSelectedDateObj, e.mobileFormatStr) : ""), e.input.value = is(e.config.dateFormat), e.altInput !== void 0 && (e.altInput.value = is(e.config.altFormat)), V !== !1 && Se("onValueUpdate");
3750
3750
  }
3751
3751
  function po(V) {
3752
- var F = it(V), y = e.prevMonthNav.contains(F), S = e.nextMonthNav.contains(F);
3753
- y || S ? se(y ? -1 : 1) : e.yearElements.indexOf(F) >= 0 ? F.select() : F.classList.contains("arrowUp") ? e.changeYear(e.currentYear + 1) : F.classList.contains("arrowDown") && e.changeYear(e.currentYear - 1);
3752
+ var F = it(V), C = e.prevMonthNav.contains(F), S = e.nextMonthNav.contains(F);
3753
+ C || S ? se(C ? -1 : 1) : e.yearElements.indexOf(F) >= 0 ? F.select() : F.classList.contains("arrowUp") ? e.changeYear(e.currentYear + 1) : F.classList.contains("arrowDown") && e.changeYear(e.currentYear - 1);
3754
3754
  }
3755
3755
  function go(V) {
3756
3756
  V.preventDefault();
3757
- var F = V.type === "keydown", y = it(V), S = y;
3758
- e.amPM !== void 0 && y === e.amPM && (e.amPM.textContent = e.l10n.amPM[Ft(e.amPM.textContent === e.l10n.amPM[0])]);
3757
+ var F = V.type === "keydown", C = it(V), S = C;
3758
+ e.amPM !== void 0 && C === e.amPM && (e.amPM.textContent = e.l10n.amPM[Ft(e.amPM.textContent === e.l10n.amPM[0])]);
3759
3759
  var U = parseFloat(S.getAttribute("min")), Z = parseFloat(S.getAttribute("max")), Xe = parseFloat(S.getAttribute("step")), ne = parseInt(S.value, 10), ge = V.delta || (F ? V.which === 38 ? 1 : -1 : 0), re = ne + Xe * ge;
3760
3760
  if (typeof S.value < "u" && S.value.length === 2) {
3761
3761
  var Fe = S === e.hourElement, Ce = S === e.minuteElement;
@@ -4249,18 +4249,18 @@ const Wl = {
4249
4249
  },
4250
4250
  emits: ["change", "blur", "update:modelValue", "onOpen", "onClose"],
4251
4251
  setup(t, { emit: r }) {
4252
- const e = t, i = z(void 0), s = z(!1), n = (v) => v !== null && typeof v.fp < "u", a = z(null), o = z(null), d = z(!1), l = z(""), c = z(null), u = z(!1), { t: q } = ie(), m = (v) => v.replace("Z", "000Z"), C = (v) => {
4252
+ const e = t, i = z(void 0), s = z(!1), n = (v) => v !== null && typeof v.fp < "u", a = z(null), o = z(null), d = z(!1), l = z(""), c = z(null), u = z(!1), { t: q } = ie(), m = (v) => v.replace("Z", "000Z"), y = (v) => {
4253
4253
  v !== e.modelValue && (r("update:modelValue", v), r("change"));
4254
4254
  }, A = (v) => {
4255
4255
  if (v === null || D(v)) {
4256
- C(null);
4256
+ y(null);
4257
4257
  return;
4258
4258
  }
4259
4259
  if (v && v.date) {
4260
- C(m(v.date + ""));
4260
+ y(m(v.date + ""));
4261
4261
  return;
4262
4262
  }
4263
- C(m(v + ""));
4263
+ y(m(v + ""));
4264
4264
  }, T = () => {
4265
4265
  $(), d.value = !0, r("onOpen");
4266
4266
  }, j = () => {
@@ -4360,7 +4360,7 @@ const Wl = {
4360
4360
  },
4361
4361
  { immediate: !0 }
4362
4362
  ), Ir(() => {
4363
- import("./shortcut-buttons-flatpickr-8a154c3e.js").then((v) => v.s).then((v) => {
4363
+ import("./shortcut-buttons-flatpickr-9ca75ac0.js").then((v) => v.s).then((v) => {
4364
4364
  i.value = v.default, s.value = !0;
4365
4365
  });
4366
4366
  }), (v, B) => (x(), P(Qr, {
@@ -4489,14 +4489,14 @@ const Ws = /* @__PURE__ */ ir(Jl, [["__scopeId", "data-v-09bb56fe"]]), _A = /* @
4489
4489
  r("blur", D(e.modelValue) ? null : e.modelValue), (q = e.v) == null || q.$touch();
4490
4490
  }, l = w(() => {
4491
4491
  var q, m;
4492
- return D(e.errorMessage) ? (m = (q = e.v) == null ? void 0 : q.$errors) != null && m.length ? [e.v.$errors.map((C) => C.$message).join(" ")] : [] : [e.errorMessage];
4492
+ return D(e.errorMessage) ? (m = (q = e.v) == null ? void 0 : q.$errors) != null && m.length ? [e.v.$errors.map((y) => y.$message).join(" ")] : [] : [e.errorMessage];
4493
4493
  }), c = w(() => {
4494
- var m, C;
4494
+ var m, y;
4495
4495
  if (!D(e.label))
4496
4496
  return e.label;
4497
4497
  if (D(s) || D(n) || D((m = e.v) == null ? void 0 : m.$path))
4498
4498
  return "";
4499
- const { end: q } = Pt((C = e.v) == null ? void 0 : C.$path, ".");
4499
+ const { end: q } = Pt((y = e.v) == null ? void 0 : y.$path, ".");
4500
4500
  return i(s + "." + n + ".model." + q);
4501
4501
  });
4502
4502
  De(
@@ -4530,16 +4530,16 @@ const Ws = /* @__PURE__ */ ir(Jl, [["__scopeId", "data-v-09bb56fe"]]), _A = /* @
4530
4530
  return (q, m) => (x(), O(ke, null, [
4531
4531
  p(ia, {
4532
4532
  modelValue: a.value,
4533
- "onUpdate:modelValue": m[0] || (m[0] = (C) => a.value = C),
4533
+ "onUpdate:modelValue": m[0] || (m[0] = (y) => a.value = y),
4534
4534
  label: c.value,
4535
- onClick: m[1] || (m[1] = Q((C) => u(a.value), ["stop"]))
4535
+ onClick: m[1] || (m[1] = Q((y) => u(a.value), ["stop"]))
4536
4536
  }, null, 8, ["modelValue", "label"]),
4537
4537
  p(ta, null, {
4538
4538
  default: g(() => [
4539
4539
  Oi(L("div", null, [
4540
4540
  p(Ws, {
4541
4541
  modelValue: o.value,
4542
- "onUpdate:modelValue": m[2] || (m[2] = (C) => o.value = C),
4542
+ "onUpdate:modelValue": m[2] || (m[2] = (y) => o.value = y),
4543
4543
  "data-cy": q.dataCy,
4544
4544
  "error-messages": l.value,
4545
4545
  clearable: q.clearable,
@@ -4642,7 +4642,7 @@ const Zl = {
4642
4642
  return "";
4643
4643
  const { end: X } = Pt((v = e.v) == null ? void 0 : v.$path, ".");
4644
4644
  return o(l + "." + c + ".model." + X);
4645
- }), C = w(() => {
4645
+ }), y = w(() => {
4646
4646
  var X, I;
4647
4647
  return D(e.required) ? ((X = e.v) == null ? void 0 : X.required) && ((I = e.v) == null ? void 0 : I.required.$params.type) === "required" : e.required;
4648
4648
  }), A = w(() => e.multiple !== !1), T = _r(e.filterSortBy), j = z([]), E = z([]), $ = w(() => {
@@ -4728,10 +4728,10 @@ const Zl = {
4728
4728
  }, {
4729
4729
  label: g(() => [
4730
4730
  X.hideLabel ? ee("", !0) : (x(), O("span", {
4731
- key: C.value + ""
4731
+ key: y.value + ""
4732
4732
  }, [
4733
4733
  N(k(m.value) + " ", 1),
4734
- C.value ? (x(), O("span", Zl)) : ee("", !0)
4734
+ y.value ? (x(), O("span", Zl)) : ee("", !0)
4735
4735
  ]))
4736
4736
  ]),
4737
4737
  _: 1
@@ -4751,10 +4751,10 @@ const Zl = {
4751
4751
  emits: ["update:modelValue"],
4752
4752
  setup(t, { emit: r }) {
4753
4753
  const e = t, { t: i } = ie(), s = Ke(wt, void 0), n = Ke(_t, void 0), a = w(() => {
4754
- var C, A;
4754
+ var y, A;
4755
4755
  if (!D(e.label))
4756
4756
  return e.label;
4757
- if (D(s) || D(n) || D((C = e.v) == null ? void 0 : C.$path))
4757
+ if (D(s) || D(n) || D((y = e.v) == null ? void 0 : y.$path))
4758
4758
  return "";
4759
4759
  const { end: m } = Pt((A = e.v) == null ? void 0 : A.$path, ".");
4760
4760
  return i(s + "." + n + ".model." + m);
@@ -4762,22 +4762,22 @@ const Zl = {
4762
4762
  if (o.value)
4763
4763
  return;
4764
4764
  if (o.value = !0, d.value = !1, u.value === !0) {
4765
- const C = await e.callbackToFalse();
4766
- r("update:modelValue", !C), u.value = !C, C || (d.value = !0), o.value = !1;
4765
+ const y = await e.callbackToFalse();
4766
+ r("update:modelValue", !y), u.value = !y, y || (d.value = !0), o.value = !1;
4767
4767
  return;
4768
4768
  }
4769
4769
  const m = await e.callbackToTrue();
4770
4770
  r("update:modelValue", m), u.value = m, m || (d.value = !0), o.value = !1;
4771
4771
  };
4772
- return De(c, (m, C) => {
4773
- m !== C && (u.value = m, d.value = !1);
4772
+ return De(c, (m, y) => {
4773
+ m !== y && (u.value = m, d.value = !1);
4774
4774
  }), Ir(() => {
4775
4775
  l.value = "remote-switch-" + Date.now();
4776
- }), (m, C) => (x(), O("div", Ql, [
4776
+ }), (m, y) => (x(), O("div", Ql, [
4777
4777
  p(ia, {
4778
4778
  id: l.value,
4779
4779
  modelValue: u.value,
4780
- "onUpdate:modelValue": C[0] || (C[0] = (A) => u.value = A),
4780
+ "onUpdate:modelValue": y[0] || (y[0] = (A) => u.value = A),
4781
4781
  disabled: o.value,
4782
4782
  onClick: Q(q, ["stop"])
4783
4783
  }, null, 8, ["id", "modelValue", "disabled", "onClick"]),
@@ -4802,10 +4802,10 @@ const Zl = {
4802
4802
  emits: ["update:modelValue"],
4803
4803
  setup(t, { emit: r }) {
4804
4804
  const e = t, { t: i } = ie(), s = Ke(wt, void 0), n = Ke(_t, void 0), a = w(() => {
4805
- var C, A;
4805
+ var y, A;
4806
4806
  if (!D(e.label))
4807
4807
  return e.label;
4808
- if (D(s) || D(n) || D((C = e.v) == null ? void 0 : C.$path))
4808
+ if (D(s) || D(n) || D((y = e.v) == null ? void 0 : y.$path))
4809
4809
  return "";
4810
4810
  const { end: m } = Pt((A = e.v) == null ? void 0 : A.$path, ".");
4811
4811
  return i(s + "." + n + ".model." + m);
@@ -4813,18 +4813,18 @@ const Zl = {
4813
4813
  if (o.value)
4814
4814
  return;
4815
4815
  if (o.value = !0, d.value = !1, u.value === !0) {
4816
- const C = await e.callbackToFalse();
4817
- r("update:modelValue", !C), u.value = !C, C || (d.value = !0), o.value = !1;
4816
+ const y = await e.callbackToFalse();
4817
+ r("update:modelValue", !y), u.value = !y, y || (d.value = !0), o.value = !1;
4818
4818
  return;
4819
4819
  }
4820
4820
  const m = await e.callbackToTrue();
4821
4821
  r("update:modelValue", m), u.value = m, m || (d.value = !0), o.value = !1;
4822
4822
  };
4823
- return De(c, (m, C) => {
4824
- m !== C && (u.value = m, d.value = !1);
4823
+ return De(c, (m, y) => {
4824
+ m !== y && (u.value = m, d.value = !1);
4825
4825
  }), Ir(() => {
4826
4826
  l.value = "a-remote-switch-" + Date.now();
4827
- }), (m, C) => (x(), O("div", tu, [
4827
+ }), (m, y) => (x(), O("div", tu, [
4828
4828
  p(de, {
4829
4829
  id: l.value,
4830
4830
  icon: "",
@@ -4838,7 +4838,7 @@ const Zl = {
4838
4838
  default: g(() => [
4839
4839
  p(rd, {
4840
4840
  modelValue: u.value,
4841
- "onUpdate:modelValue": C[0] || (C[0] = (A) => u.value = A),
4841
+ "onUpdate:modelValue": y[0] || (y[0] = (A) => u.value = A),
4842
4842
  loading: o.value,
4843
4843
  disabled: o.value,
4844
4844
  "hide-details": m.hideDetails,
@@ -4901,14 +4901,14 @@ const iu = { key: 0 }, su = {
4901
4901
  r("blur", e.modelValue), (q = e.v) == null || q.$touch();
4902
4902
  }, d = w(() => {
4903
4903
  var q, m;
4904
- return D(e.errorMessage) ? (m = (q = e.v) == null ? void 0 : q.$errors) != null && m.length ? e.v.$errors.map((C) => C.$message) : [] : [e.errorMessage];
4904
+ return D(e.errorMessage) ? (m = (q = e.v) == null ? void 0 : q.$errors) != null && m.length ? e.v.$errors.map((y) => y.$message) : [] : [e.errorMessage];
4905
4905
  }), l = w(() => {
4906
- var m, C;
4906
+ var m, y;
4907
4907
  if (!D(e.label))
4908
4908
  return e.label;
4909
4909
  if (D(s) || D(n) || D((m = e.v) == null ? void 0 : m.$path))
4910
4910
  return "";
4911
- const { end: q } = Pt((C = e.v) == null ? void 0 : C.$path, ".");
4911
+ const { end: q } = Pt((y = e.v) == null ? void 0 : y.$path, ".");
4912
4912
  return a(s + "." + n + ".model." + q);
4913
4913
  }), c = w(() => {
4914
4914
  var q, m;
@@ -4916,7 +4916,7 @@ const iu = { key: 0 }, su = {
4916
4916
  }), u = w(() => e.multiple !== !1);
4917
4917
  return (q, m) => (x(), P(ei, {
4918
4918
  modelValue: i.value,
4919
- "onUpdate:modelValue": m[0] || (m[0] = (C) => i.value = C),
4919
+ "onUpdate:modelValue": m[0] || (m[0] = (y) => i.value = y),
4920
4920
  items: q.items,
4921
4921
  "item-title": "title",
4922
4922
  "item-value": "value",
@@ -4987,9 +4987,9 @@ const iu = { key: 0 }, su = {
4987
4987
  }
4988
4988
  }), s = z(""), n = z(!1), a = z(void 0), { t: o } = ie(), { innerFilter: d } = Li(e), l = () => {
4989
4989
  n.value = !0;
4990
- }, c = w(() => e.modelValue.titleT ? o(e.modelValue.titleT) : void 0), u = w(() => e.modelValue.multiple !== !1), q = _r(e.filterSortBy), m = z([]), C = z([]), A = w(() => {
4990
+ }, c = w(() => e.modelValue.titleT ? o(e.modelValue.titleT) : void 0), u = w(() => e.modelValue.multiple !== !1), q = _r(e.filterSortBy), m = z([]), y = z([]), A = w(() => {
4991
4991
  const M = /* @__PURE__ */ new Map();
4992
- return C.value.forEach((f) => {
4992
+ return y.value.forEach((f) => {
4993
4993
  M.set(f.value, { value: f.value, title: f.title });
4994
4994
  }), m.value.forEach((f) => {
4995
4995
  M.set(f.value, { value: f.value, title: f.title });
@@ -5003,7 +5003,7 @@ const iu = { key: 0 }, su = {
5003
5003
  return [].concat(f);
5004
5004
  }, $ = async (M) => {
5005
5005
  let f = 1, Y = [];
5006
- return et(M) ? (f = M.length, Y = E(M)) : Y = E([M]), C.value = Y, Y.length === f;
5006
+ return et(M) ? (f = M.length, Y = E(M)) : Y = E([M]), y.value = Y, Y.length === f;
5007
5007
  }, _ = z(!1), H = () => {
5008
5008
  clearTimeout(a.value), a.value = void 0;
5009
5009
  }, J = async () => {
@@ -5011,8 +5011,8 @@ const iu = { key: 0 }, su = {
5011
5011
  }, te = () => {
5012
5012
  n.value = !0, H(), J();
5013
5013
  }, ae = w(() => {
5014
- if (!e.modelValue.multiple && C.value[0])
5015
- return C.value[0].title;
5014
+ if (!e.modelValue.multiple && y.value[0])
5015
+ return y.value[0].title;
5016
5016
  }), le = (M) => {
5017
5017
  !e.modelValue.multiple && !n.value && M.length === 0 || ae.value !== M && (s.value = M);
5018
5018
  }, oe = async () => {
@@ -5028,7 +5028,7 @@ const iu = { key: 0 }, su = {
5028
5028
  if (M === f)
5029
5029
  return;
5030
5030
  if (ue(M) || D(M) || et(M) && M.length === 0) {
5031
- if (C.value = [], e.disableInitFetch || _.value === !0)
5031
+ if (y.value = [], e.disableInitFetch || _.value === !0)
5032
5032
  return;
5033
5033
  a.value = setTimeout(() => {
5034
5034
  J();
@@ -5037,10 +5037,10 @@ const iu = { key: 0 }, su = {
5037
5037
  }
5038
5038
  if (!await $(M)) {
5039
5039
  if (et(M)) {
5040
- T.value = !0, C.value = await e.fetchItemsByIds(M), T.value = !1;
5040
+ T.value = !0, y.value = await e.fetchItemsByIds(M), T.value = !1;
5041
5041
  return;
5042
5042
  }
5043
- T.value = !0, C.value = await e.fetchItemsByIds([M]), T.value = !1;
5043
+ T.value = !0, y.value = await e.fetchItemsByIds([M]), T.value = !1;
5044
5044
  }
5045
5045
  },
5046
5046
  { immediate: !0 }
@@ -5653,7 +5653,7 @@ const RA = /* @__PURE__ */ R({
5653
5653
  }
5654
5654
  });
5655
5655
  return (u, q) => {
5656
- const m = dt("ABtnTertiary"), C = dt("ABtnPrimary");
5656
+ const m = dt("ABtnTertiary"), y = dt("ABtnPrimary");
5657
5657
  return x(), O(ke, null, [
5658
5658
  u.variant === "icon" ? (x(), P(de, {
5659
5659
  key: 0,
@@ -5729,7 +5729,7 @@ const RA = /* @__PURE__ */ R({
5729
5729
  ]),
5730
5730
  _: 1
5731
5731
  }, 8, ["disabled", "onClick"]),
5732
- p(C, {
5732
+ p(y, {
5733
5733
  color: u.dialogConfirmColor,
5734
5734
  loading: u.loading,
5735
5735
  "data-cy": "button-confirm-delete",
@@ -6876,7 +6876,7 @@ const Uu = /* @__PURE__ */ L("br", null, null, -1), oh = /* @__PURE__ */ R({
6876
6876
  set(f) {
6877
6877
  r("update:modelValue", xe(f));
6878
6878
  }
6879
- }), { t: o } = ie(), d = Ke(wt, void 0), l = Ke(_t, void 0), c = z(!1), u = z(""), q = z(!1), { innerFilter: m } = Li(e), C = _r(e.filterSortBy), A = z(/* @__PURE__ */ new Map()), T = () => {
6879
+ }), { t: o } = ie(), d = Ke(wt, void 0), l = Ke(_t, void 0), c = z(!1), u = z(""), q = z(!1), { innerFilter: m } = Li(e), y = _r(e.filterSortBy), A = z(/* @__PURE__ */ new Map()), T = () => {
6880
6880
  c.value = !0, r("focus", a.value);
6881
6881
  }, j = () => {
6882
6882
  var f;
@@ -6900,7 +6900,7 @@ const Uu = /* @__PURE__ */ L("br", null, null, -1), oh = /* @__PURE__ */ R({
6900
6900
  }, te = async (f) => {
6901
6901
  q.value = !0;
6902
6902
  const Y = m.value[e.filterByField];
6903
- Y.model = f, A.value.clear(), (await e.fetchItemsMinimal(C, m.value)).forEach((X) => {
6903
+ Y.model = f, A.value.clear(), (await e.fetchItemsMinimal(y, m.value)).forEach((X) => {
6904
6904
  A.value.set(X[e.itemValue], X);
6905
6905
  }), q.value = !1;
6906
6906
  }, ae = w(() => {
@@ -7345,7 +7345,7 @@ const mc = (t) => {
7345
7345
  function m(f) {
7346
7346
  a.value = f;
7347
7347
  }
7348
- function C(f) {
7348
+ function y(f) {
7349
7349
  o.value = f;
7350
7350
  }
7351
7351
  function A(f) {
@@ -7443,7 +7443,7 @@ const mc = (t) => {
7443
7443
  setLicenceId: c,
7444
7444
  setSingleMode: u,
7445
7445
  setMinCount: m,
7446
- setMaxCount: C,
7446
+ setMaxCount: y,
7447
7447
  showLoader: d,
7448
7448
  hideLoader: l,
7449
7449
  setList: A,
@@ -7481,7 +7481,7 @@ function Dr() {
7481
7481
  e.reset(), Sr.type.default = [e.assetType], o(Sr, ar, l);
7482
7482
  }, m = () => {
7483
7483
  Ys.value = !0;
7484
- }, C = () => {
7484
+ }, y = () => {
7485
7485
  Ys.value = !1;
7486
7486
  }, A = (T, j, E, $, _) => {
7487
7487
  e.clearSelected(), e.setAssetType(j), e.setLicenceId(T), e.setSingleMode(E), e.setMinCount($), e.setMaxCount(_);
@@ -7500,7 +7500,7 @@ function Dr() {
7500
7500
  fetchNextPage: c,
7501
7501
  resetAssetList: q,
7502
7502
  filterTouch: m,
7503
- filterUnTouch: C,
7503
+ filterUnTouch: y,
7504
7504
  initStoreContext: A
7505
7505
  };
7506
7506
  }
@@ -8120,7 +8120,7 @@ const Zc = /* @__PURE__ */ R({
8120
8120
  set(ae) {
8121
8121
  n.value = ae, e("update:modelValue", ae);
8122
8122
  }
8123
- }), { selectedCount: o, loader: d, pagination: l, fetchNextPage: c, resetAssetList: u, getSelectedData: q, initStoreContext: m } = Dr(), { openSidebar: C, sidebarLeft: A } = $a(), T = Ke(ua, void 0), j = () => {
8123
+ }), { selectedCount: o, loader: d, pagination: l, fetchNextPage: c, resetAssetList: u, getSelectedData: q, initStoreContext: m } = Dr(), { openSidebar: y, sidebarLeft: A } = $a(), T = Ke(ua, void 0), j = () => {
8124
8124
  const ae = i.assetLicenceId || T;
8125
8125
  if (D(ae))
8126
8126
  throw new Error("LicenceId must be provided. Provide using props or common-admin configuration.");
@@ -8130,7 +8130,7 @@ const Zc = /* @__PURE__ */ R({
8130
8130
  i.minCount === 1 && i.minCount === i.maxCount,
8131
8131
  i.minCount,
8132
8132
  i.maxCount
8133
- ), u(), C(), a.value = !0;
8133
+ ), u(), y(), a.value = !0;
8134
8134
  }, E = () => {
8135
8135
  a.value = !1;
8136
8136
  }, $ = () => {
@@ -8409,8 +8409,8 @@ function Oe(t, r, e, i, s) {
8409
8409
  }
8410
8410
  while (s = s.parentNode);
8411
8411
  if (i && t !== window) {
8412
- var m = yr(s || t), C = m && m.a, A = m && m.d;
8413
- m && (a /= A, o /= C, u /= C, c /= A, d = a + c, l = o + u);
8412
+ var m = yr(s || t), y = m && m.a, A = m && m.d;
8413
+ m && (a /= A, o /= y, u /= y, c /= A, d = a + c, l = o + u);
8414
8414
  }
8415
8415
  return {
8416
8416
  top: a,
@@ -8562,9 +8562,9 @@ function mV() {
8562
8562
  }
8563
8563
  var n = !1, a = 0;
8564
8564
  t.forEach(function(o) {
8565
- var d = 0, l = o.target, c = l.fromRect, u = Oe(l), q = l.prevFromRect, m = l.prevToRect, C = o.rect, A = yr(l, !0);
8565
+ var d = 0, l = o.target, c = l.fromRect, u = Oe(l), q = l.prevFromRect, m = l.prevToRect, y = o.rect, A = yr(l, !0);
8566
8566
  A && (u.top -= A.f, u.left -= A.e), l.toRect = u, l.thisAnimationDuration && Xs(q, u) && !Xs(c, u) && // Make sure animatingRect is on line between toRect & fromRect
8567
- (C.top - u.top) / (C.left - u.left) === (c.top - u.top) / (c.left - u.left) && (d = gV(C, q, m, s.options)), Xs(u, c) || (l.prevFromRect = c, l.prevToRect = u, d || (d = s.options.animation), s.animate(l, C, u, d)), d && (n = !0, a = Math.max(a, d), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() {
8567
+ (y.top - u.top) / (y.left - u.left) === (c.top - u.top) / (c.left - u.left) && (d = gV(y, q, m, s.options)), Xs(u, c) || (l.prevFromRect = c, l.prevToRect = u, d || (d = s.options.animation), s.animate(l, y, u, d)), d && (n = !0, a = Math.max(a, d), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() {
8568
8568
  l.animationTime = 0, l.prevFromRect = null, l.fromRect = null, l.prevToRect = null, l.thisAnimationDuration = null;
8569
8569
  }, d), l.thisAnimationDuration = d);
8570
8570
  }), clearTimeout(r), n ? r = setTimeout(function() {
@@ -8641,14 +8641,14 @@ var gr = [], ms = {
8641
8641
  }
8642
8642
  };
8643
8643
  function AV(t) {
8644
- var r = t.sortable, e = t.rootEl, i = t.name, s = t.targetEl, n = t.cloneEl, a = t.toEl, o = t.fromEl, d = t.oldIndex, l = t.newIndex, c = t.oldDraggableIndex, u = t.newDraggableIndex, q = t.originalEvent, m = t.putSortable, C = t.extraEventProperties;
8644
+ var r = t.sortable, e = t.rootEl, i = t.name, s = t.targetEl, n = t.cloneEl, a = t.toEl, o = t.fromEl, d = t.oldIndex, l = t.newIndex, c = t.oldDraggableIndex, u = t.newDraggableIndex, q = t.originalEvent, m = t.putSortable, y = t.extraEventProperties;
8645
8645
  if (r = r || e && e[ot], !!r) {
8646
8646
  var A, T = r.options, j = "on" + i.charAt(0).toUpperCase() + i.substr(1);
8647
8647
  window.CustomEvent && !Lt && !ni ? A = new CustomEvent(i, {
8648
8648
  bubbles: !0,
8649
8649
  cancelable: !0
8650
8650
  }) : (A = document.createEvent("Event"), A.initEvent(i, !0, !0)), A.to = a || e, A.from = o || e, A.item = s || e, A.clone = n, A.oldIndex = d, A.newIndex = l, A.oldDraggableIndex = c, A.newDraggableIndex = u, A.originalEvent = q, A.pullMode = m ? m.lastPutMode : void 0;
8651
- var E = Kt(Kt({}, C), ai.getEventProperties(i, r));
8651
+ var E = Kt(Kt({}, y), ai.getEventProperties(i, r));
8652
8652
  for (var $ in E)
8653
8653
  A[$] = E[$];
8654
8654
  e && e.dispatchEvent(A), T[j] && T[j].call(r, A);
@@ -9021,11 +9021,11 @@ fe.prototype = /** @lends Sortable.prototype */
9021
9021
  },
9022
9022
  // Returns true - if no further action is needed (either inserted or another condition)
9023
9023
  _onDragOver: function(r) {
9024
- var e = this.el, i = r.target, s, n, a, o = this.options, d = o.group, l = fe.active, c = Xi === d, u = o.sort, q = Le || l, m, C = this, A = !1;
9024
+ var e = this.el, i = r.target, s, n, a, o = this.options, d = o.group, l = fe.active, c = Xi === d, u = o.sort, q = Le || l, m, y = this, A = !1;
9025
9025
  if (Ps)
9026
9026
  return;
9027
9027
  function T(v, B) {
9028
- Je(v, C, Kt({
9028
+ Je(v, y, Kt({
9029
9029
  evt: r,
9030
9030
  isOwner: c,
9031
9031
  axis: m ? "vertical" : "horizontal",
@@ -9043,18 +9043,18 @@ fe.prototype = /** @lends Sortable.prototype */
9043
9043
  }, B));
9044
9044
  }
9045
9045
  function j() {
9046
- T("dragOverAnimationCapture"), C.captureAnimationState(), C !== q && q.captureAnimationState();
9046
+ T("dragOverAnimationCapture"), y.captureAnimationState(), y !== q && q.captureAnimationState();
9047
9047
  }
9048
9048
  function E(v) {
9049
9049
  return T("dragOverCompleted", {
9050
9050
  insertion: v
9051
- }), v && (c ? l._hideClone() : l._showClone(C), C !== q && (nt(G, Le ? Le.options.ghostClass : l.options.ghostClass, !1), nt(G, o.ghostClass, !0)), Le !== C && C !== fe.active ? Le = C : C === fe.active && Le && (Le = null), q === C && (C._ignoreWhileAnimating = i), C.animateAll(function() {
9052
- T("dragOverAnimationComplete"), C._ignoreWhileAnimating = null;
9053
- }), C !== q && (q.animateAll(), q._ignoreWhileAnimating = null)), (i === G && !G.animated || i === e && !i.animated) && (Ar = null), !o.dragoverBubble && !r.rootEl && i !== document && (G.parentNode[ot]._isOutsideThisEl(r.target), !v && dr(r)), !o.dragoverBubble && r.stopPropagation && r.stopPropagation(), A = !0;
9051
+ }), v && (c ? l._hideClone() : l._showClone(y), y !== q && (nt(G, Le ? Le.options.ghostClass : l.options.ghostClass, !1), nt(G, o.ghostClass, !0)), Le !== y && y !== fe.active ? Le = y : y === fe.active && Le && (Le = null), q === y && (y._ignoreWhileAnimating = i), y.animateAll(function() {
9052
+ T("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
9053
+ }), y !== q && (q.animateAll(), q._ignoreWhileAnimating = null)), (i === G && !G.animated || i === e && !i.animated) && (Ar = null), !o.dragoverBubble && !r.rootEl && i !== document && (G.parentNode[ot]._isOutsideThisEl(r.target), !v && dr(r)), !o.dragoverBubble && r.stopPropagation && r.stopPropagation(), A = !0;
9054
9054
  }
9055
9055
  function $() {
9056
9056
  at = qt(G), jt = qt(G, o.draggable), We({
9057
- sortable: C,
9057
+ sortable: y,
9058
9058
  name: "change",
9059
9059
  toEl: e,
9060
9060
  newIndex: at,
@@ -9064,7 +9064,7 @@ fe.prototype = /** @lends Sortable.prototype */
9064
9064
  }
9065
9065
  if (r.preventDefault !== void 0 && r.cancelable && r.preventDefault(), i = xt(i, o.draggable, e, !0), T("dragOver"), fe.eventCanceled)
9066
9066
  return A;
9067
- if (G.contains(r.target) || i.animated && i.animatingX && i.animatingY || C._ignoreWhileAnimating === i)
9067
+ if (G.contains(r.target) || i.animated && i.animatingX && i.animatingY || y._ignoreWhileAnimating === i)
9068
9068
  return E(!1);
9069
9069
  if (Ei = !1, l && !o.disabled && (c ? u || (a = Ee !== _e) : Le === this || (this.lastPutMode = Xi.checkPull(this, l, G, r)) && d.checkPut(this, l, G, r))) {
9070
9070
  if (m = this._getDirection(r, i) === "vertical", s = Oe(G), T("dragOverValid"), fe.eventCanceled)
@@ -9433,7 +9433,7 @@ var bs = La(function(t, r, e, i) {
9433
9433
  Bs !== e && (Bs = e, wi(), Tr = r.scroll, c = r.scrollFn, Tr === !0 && (Tr = Wt(e, !0)));
9434
9434
  var u = 0, q = Tr;
9435
9435
  do {
9436
- var m = q, C = Oe(m), A = C.top, T = C.bottom, j = C.left, E = C.right, $ = C.width, _ = C.height, H = void 0, J = void 0, te = m.scrollWidth, ae = m.scrollHeight, le = Ve(m), oe = m.scrollLeft, K = m.scrollTop;
9436
+ var m = q, y = Oe(m), A = y.top, T = y.bottom, j = y.left, E = y.right, $ = y.width, _ = y.height, H = void 0, J = void 0, te = m.scrollWidth, ae = m.scrollHeight, le = Ve(m), oe = m.scrollLeft, K = m.scrollTop;
9437
9437
  m === d ? (H = $ < te && (le.overflowX === "auto" || le.overflowX === "scroll" || le.overflowX === "visible"), J = _ < ae && (le.overflowY === "auto" || le.overflowY === "scroll" || le.overflowY === "visible")) : (H = $ < te && (le.overflowX === "auto" || le.overflowX === "scroll"), J = _ < ae && (le.overflowY === "auto" || le.overflowY === "scroll"));
9438
9438
  var M = H && (Math.abs(E - s) <= a && oe + $ < te) - (Math.abs(j - s) <= a && !!oe), f = J && (Math.abs(T - n) <= a && K + _ < ae) - (Math.abs(A - n) <= a && !!K);
9439
9439
  if (!Be[u])
@@ -9586,7 +9586,7 @@ function LV(t, r, e, i) {
9586
9586
  l.value++, D(f) || i("update:modelValue", f), qr(() => {
9587
9587
  r();
9588
9588
  });
9589
- }, C = (f) => {
9589
+ }, y = (f) => {
9590
9590
  c.value.add(f);
9591
9591
  }, A = (f) => {
9592
9592
  c.value.delete(f);
@@ -9594,7 +9594,7 @@ function LV(t, r, e, i) {
9594
9594
  const I = Y > h ? h : Y;
9595
9595
  let v = I + 1;
9596
9596
  for (let B = I; B < f.length; B++)
9597
- _l(f[B], e.positionField, v), C(f[B][e.keyField]), v++, X.push({
9597
+ _l(f[B], e.positionField, v), y(f[B][e.keyField]), v++, X.push({
9598
9598
  id: f[B].id,
9599
9599
  position: f[B].position
9600
9600
  });
@@ -9611,7 +9611,7 @@ function LV(t, r, e, i) {
9611
9611
  const h = Y.findIndex((X) => X[e.keyField] === f);
9612
9612
  return h === -1 ? null : h;
9613
9613
  }, $ = (f, Y, h, X = null) => {
9614
- f.data = xe(Y), ue(h) || (f.data.position = h), ue(X) || C(Y.id);
9614
+ f.data = xe(Y), ue(h) || (f.data.position = h), ue(X) || y(Y.id);
9615
9615
  }, _ = (f, Y, h = null, X = null) => {
9616
9616
  const I = xe(t.value), v = E(f, I);
9617
9617
  !ue(v) && I[v] && ($(I[v], Y, h, X), m(I));
@@ -9719,7 +9719,7 @@ const io = "a-sortable-", RV = ["id"], jV = { class: "a-sortable-widget__content
9719
9719
  }, {
9720
9720
  items: q,
9721
9721
  forceRerender: m,
9722
- dirtyLocal: C,
9722
+ dirtyLocal: y,
9723
9723
  moveArrayElement: A,
9724
9724
  itemToRemove: T,
9725
9725
  removeDialog: j,
@@ -9748,7 +9748,7 @@ const io = "a-sortable-", RV = ["id"], jV = { class: "a-sortable-widget__content
9748
9748
  ), De(
9749
9749
  () => i.dirty,
9750
9750
  (Y) => {
9751
- C.value = Y;
9751
+ y.value = Y;
9752
9752
  }
9753
9753
  ), r({
9754
9754
  refresh: $,
@@ -9932,10 +9932,10 @@ function JV(t, r, e) {
9932
9932
  r();
9933
9933
  });
9934
9934
  }, q = () => {
9935
- C(), r();
9935
+ y(), r();
9936
9936
  }, m = () => {
9937
9937
  ue(o.value) || (e("onDelete", o.value), a.value = !1);
9938
- }, C = () => {
9938
+ }, y = () => {
9939
9939
  l.value && (s.value.forEach((K) => {
9940
9940
  K.stop();
9941
9941
  }), s.value = []);
@@ -10012,7 +10012,7 @@ function JV(t, r, e) {
10012
10012
  forceRerender: n,
10013
10013
  refresh: q,
10014
10014
  onRemoveDialogConfirm: m,
10015
- destroy: C,
10015
+ destroy: y,
10016
10016
  moveArrayElement: (K, M, f, Y, h) => {
10017
10017
  const X = xe(t.value), { itemFound: I, parentItem: v } = H(K, X.children);
10018
10018
  if (!I)
@@ -10303,14 +10303,14 @@ const ZV = ["data-id"], QV = { class: "a-sortable-nested-widget__nested" }, ef =
10303
10303
  onOnDelete: i,
10304
10304
  onOnEdit: s
10305
10305
  }, {
10306
- item: g(({ item: C }) => [
10306
+ item: g(({ item: y }) => [
10307
10307
  pe(c.$slots, "item", {
10308
- item: C
10308
+ item: y
10309
10309
  })
10310
10310
  ]),
10311
- buttons: g(({ item: C }) => [
10311
+ buttons: g(({ item: y }) => [
10312
10312
  pe(c.$slots, "buttons", {
10313
- item: C
10313
+ item: y
10314
10314
  })
10315
10315
  ]),
10316
10316
  _: 2
@@ -10351,7 +10351,7 @@ const ZV = ["data-id"], QV = { class: "a-sortable-nested-widget__nested" }, ef =
10351
10351
  return;
10352
10352
  }
10353
10353
  e("onAddLast", null);
10354
- }, { t: c } = ie(), u = w(() => D(i.widgetIdentifierId) ? io + T.value : i.widgetIdentifierId), q = w(() => i.rootClassName + " " + (C.value ? i.rootClassName + "--dragging" : "")), m = () => {
10354
+ }, { t: c } = ie(), u = w(() => D(i.widgetIdentifierId) ? io + T.value : i.widgetIdentifierId), q = w(() => i.rootClassName + " " + (y.value ? i.rootClassName + "--dragging" : "")), m = () => {
10355
10355
  if (i.disableDraggable || !A.value)
10356
10356
  return;
10357
10357
  const f = Array.from(A.value.querySelectorAll("." + On));
@@ -10374,10 +10374,10 @@ const ZV = ["data-id"], QV = { class: "a-sortable-nested-widget__nested" }, ef =
10374
10374
  onUpdate: () => {
10375
10375
  },
10376
10376
  onStart: () => {
10377
- C.value = !0;
10377
+ y.value = !0;
10378
10378
  },
10379
10379
  onEnd: (h) => {
10380
- C.value = !1, qr(() => {
10380
+ y.value = !1, qr(() => {
10381
10381
  const X = _i(h.item.getAttribute("data-id") ?? "0");
10382
10382
  if (X < 1)
10383
10383
  return;
@@ -10396,7 +10396,7 @@ const ZV = ["data-id"], QV = { class: "a-sortable-nested-widget__nested" }, ef =
10396
10396
  }
10397
10397
  });
10398
10398
  }, {
10399
- dragging: C,
10399
+ dragging: y,
10400
10400
  widgetEl: A,
10401
10401
  randomUuid: T,
10402
10402
  removeDialog: j,
@@ -10612,16 +10612,16 @@ function Qi() {
10612
10612
  querySetFilters: (c) => {
10613
10613
  const u = !D(c._elastic);
10614
10614
  for (const q in c) {
10615
- const m = c[q], C = m.field || q;
10615
+ const m = c[q], y = m.field || q;
10616
10616
  if (m.exclude)
10617
10617
  continue;
10618
10618
  const A = a(m);
10619
10619
  if (!ue(A)) {
10620
10620
  if (u) {
10621
- o(C, A);
10621
+ o(y, A);
10622
10622
  continue;
10623
10623
  }
10624
- n(m.variant, C, A);
10624
+ n(m.variant, y, A);
10625
10625
  }
10626
10626
  }
10627
10627
  },
@@ -10663,22 +10663,23 @@ const lf = (t, r) => {
10663
10663
  }, xh = async (t, r, e = {}, i = "id", s = !0, n = void 0, a = 100, o, d, l = !1, c = {}) => {
10664
10664
  const u = Ur(n == null ? void 0 : n._elastic) || l ? "/search" : "", q = _r(i);
10665
10665
  q.rowsPerPage = a, q.sortBy = i, q.descending = s;
10666
- const m = nr(r, e) + u, C = [];
10666
+ const m = nr(r, e) + u, y = [];
10667
10667
  try {
10668
10668
  const A = await t().get(m + zn(q, n), c);
10669
10669
  if (!sr(A.status))
10670
10670
  return Promise.reject(new Nt(A.status));
10671
10671
  if (A.data) {
10672
10672
  const T = A.data;
10673
- if (C.push(...T.data), no(T)) {
10673
+ if (y.push(...T.data), no(T)) {
10674
10674
  if (q.hasNextPage = A.data.hasNextPage, q.hasNextPage)
10675
10675
  for (; q.hasNextPage; ) {
10676
10676
  q.page++;
10677
10677
  const E = (await t().get(m + zn(q, n), c)).data;
10678
- C.push(...E.data), q.hasNextPage = E.hasNextPage;
10678
+ y.push(...E.data), q.hasNextPage = E.hasNextPage;
10679
10679
  }
10680
10680
  } else if (so(T)) {
10681
- q.totalCount = T.totalCount;
10681
+ if (q.totalCount = T.totalCount, q.totalCount <= q.rowsPerPage)
10682
+ return Promise.resolve(y);
10682
10683
  const j = [], E = Math.ceil(q.totalCount / q.rowsPerPage);
10683
10684
  for (let _ = 0; _ < E; _++)
10684
10685
  j.push(
@@ -10694,12 +10695,12 @@ const lf = (t, r) => {
10694
10695
  )
10695
10696
  );
10696
10697
  (await Promise.all(j)).forEach((_) => {
10697
- C.push(..._.data.data);
10698
+ y.push(..._.data.data);
10698
10699
  });
10699
10700
  }
10700
- return q.currentViewCount = A.data.data.length, Promise.resolve(C);
10701
+ return q.currentViewCount = A.data.data.length, Promise.resolve(y);
10701
10702
  }
10702
- return A.status === $t ? Promise.resolve([]) : C;
10703
+ return A.status === $t ? Promise.resolve([]) : y;
10703
10704
  } catch (A) {
10704
10705
  return er(A) ? Promise.reject(new Bt(A)) : tr(A) ? Promise.reject(new Ot(A, o, d, A)) : rr(A) ? Promise.reject(new zt(A, A)) : Promise.reject(new Ue(A));
10705
10706
  }
@@ -12222,12 +12223,12 @@ function Bh(t, r, e = void 0, i = void 0, s = !1, n = void 0, a = void 0) {
12222
12223
  for (const m of Object.keys(l))
12223
12224
  m in n && (l[m] = n[m]);
12224
12225
  const c = t.map((m) => {
12225
- const C = { ...dg, ...m };
12226
- return D(C.title) && (D(C.title) && og.includes(C.key) ? C.title = d("common.model.tracking." + C.key) : D(C.title) && e && i ? C.title = d(e + "." + i + ".model." + C.key) : C.title = ""), C;
12226
+ const y = { ...dg, ...m };
12227
+ return D(y.title) && (D(y.title) && og.includes(y.key) ? y.title = d("common.model.tracking." + y.key) : D(y.title) && e && i ? y.title = d(e + "." + i + ".model." + y.key) : y.title = ""), y;
12227
12228
  }), u = w(() => {
12228
12229
  const m = [];
12229
- return c.forEach((C) => {
12230
- r.value.includes(C.key) || m.push(C);
12230
+ return c.forEach((y) => {
12231
+ r.value.includes(y.key) || m.push(y);
12231
12232
  }), s || m.push({ key: "actions", sortable: !1, fixed: !0 }), m;
12232
12233
  });
12233
12234
  return {
@@ -12420,7 +12421,7 @@ function Nh(t, r, e, i = "id") {
12420
12421
  };
12421
12422
  }
12422
12423
  async function zh() {
12423
- (await import("./webfontloader-dbeceef7.js").then((r) => r.w)).load({
12424
+ (await import("./webfontloader-9f0f1eb9.js").then((r) => r.w)).load({
12424
12425
  google: {
12425
12426
  families: ["Roboto:100,300,400,500,700,900&display=swap"]
12426
12427
  }
@@ -12687,4 +12688,4 @@ export {
12687
12688
  Gr as y,
12688
12689
  sA as z
12689
12690
  };
12690
- //# sourceMappingURL=lib-5b50f37c.js.map
12691
+ //# sourceMappingURL=lib-b1801152.js.map