@kong/kongponents 9.32.5 → 9.32.6

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.
@@ -4067,7 +4067,7 @@ const jy = function(e) {
4067
4067
  switch (v) {
4068
4068
  case "bestFit": {
4069
4069
  var M;
4070
- const B = (M = R.map((L) => [L.placement, L.overflows.filter((H) => H > 0).reduce((H, q) => H + q, 0)]).sort((L, H) => L[1] - H[1])[0]) == null ? void 0 : M[0];
4070
+ const B = (M = R.map((L) => [L.placement, L.overflows.filter((_) => _ > 0).reduce((_, q) => _ + q, 0)]).sort((L, _) => L[1] - _[1])[0]) == null ? void 0 : M[0];
4071
4071
  B && (D = B);
4072
4072
  break;
4073
4073
  }
@@ -5037,16 +5037,16 @@ function Lb() {
5037
5037
  ]) : (j = function() {
5038
5038
  return pr(M, void 0, void 0, function() {
5039
5039
  var $, D, B, L;
5040
- return hr(this, function(H) {
5041
- switch (H.label) {
5040
+ return hr(this, function(_) {
5041
+ switch (_.label) {
5042
5042
  case 0:
5043
5043
  return $ = sl.get(S), $ ? [3, 2] : (D = Array.isArray(S) ? S : [S], B = R.apply(void 0, Mb([], Ob(D), !1)), sl.set(S, B, i.dedupingInterval), [4, mc(S, B, i.cache, d)]);
5044
5044
  case 1:
5045
- return H.sent(), [3, 4];
5045
+ return _.sent(), [3, 4];
5046
5046
  case 2:
5047
5047
  return [4, mc(S, $.data, i.cache, d)];
5048
5048
  case 3:
5049
- H.sent(), H.label = 4;
5049
+ _.sent(), _.label = 4;
5050
5050
  case 4:
5051
5051
  return v.isValidating = !1, v.isLoading = !1, sl.delete(S), v.error !== void 0 && (L = !s && i.shouldRetryOnError && (w ? w.shouldRetryOnError : !0), L && Nb(m, w ? w.errorRetryCount : 1, i)), [
5052
5052
  2
@@ -5495,9 +5495,9 @@ const Gb = ["id", "aria-labelledby", "x-placement"], Qb = ["tabindex"], Zb = {
5495
5495
  b(), d.value = !1;
5496
5496
  }, e.trigger === "hover" ? e.popoverTimeout : 0);
5497
5497
  }, w = (D) => {
5498
- var L, H, q, ae, U;
5498
+ var L, _, q, ae, U;
5499
5499
  const B = D.target;
5500
- (L = c.value) != null && L.contains(B) && !((H = f.value) != null && H.contains(B)) ? m() : (q = f.value) != null && q.contains(B) && !((ae = o.value) != null && ae.contains(B)) ? (e.closeOnPopoverClick && C(), n("popover-click")) : d.value && !((U = l.value) != null && U.contains(B)) && C();
5500
+ (L = c.value) != null && L.contains(B) && !((_ = f.value) != null && _.contains(B)) ? m() : (q = f.value) != null && q.contains(B) && !((ae = o.value) != null && ae.contains(B)) ? (e.closeOnPopoverClick && C(), n("popover-click")) : d.value && !((U = l.value) != null && U.contains(B)) && C();
5501
5501
  }, k = y(() => e.placement.trim().replace(/ /g, "-").replace(/[A-Z]+(?![a-z])|[A-Z]/g, (D, B) => (B ? "-" : "") + D.toLowerCase()).replace(/--+/g, "-").replace(/-+$/g, "")), { floatingStyles: S, placement: I, update: E } = $b(c, f, {
5502
5502
  ...k.value === "auto" && { middleware: [yb()] },
5503
5503
  // when placement is auto just use autoPlacement middleware
@@ -6562,7 +6562,7 @@ const J0 = {
6562
6562
  }), e.currentPage !== 1 && $(1));
6563
6563
  }, L = () => {
6564
6564
  n("getNextOffset");
6565
- }, H = () => {
6565
+ }, _ = () => {
6566
6566
  n("getPreviousOffset");
6567
6567
  };
6568
6568
  return ve(() => e.currentPage, (q, ae) => {
@@ -6592,7 +6592,7 @@ const J0 = {
6592
6592
  "next-button-disabled": q.offsetNextButtonDisabled,
6593
6593
  "previous-button-disabled": q.offsetPreviousButtonDisabled,
6594
6594
  onGetNextOffset: L,
6595
- onGetPreviousOffset: H
6595
+ onGetPreviousOffset: _
6596
6596
  }, null, 8, ["next-button-disabled", "previous-button-disabled"])) : (g(), T(xe, { key: 0 }, [
6597
6597
  W("span", J0, [
6598
6598
  W("span", ew, re(k.value), 1),
@@ -6835,11 +6835,11 @@ const J0 = {
6835
6835
  return e.cacheIdentifier && (oe = e.cacheIdentifier), e.fetcherCacheKey && (oe += `-${e.fetcherCacheKey}`), `k-catalog_${oe}`;
6836
6836
  }), $ = P(""), { debouncedFn: D, generateDebouncedFn: B } = n((oe) => {
6837
6837
  $.value = oe;
6838
- }, 350), L = B(0), { data: H, error: q, revalidate: ae, isValidating: U } = a(
6838
+ }, 350), L = B(0), { data: _, error: q, revalidate: ae, isValidating: U } = a(
6839
6839
  () => O.value,
6840
6840
  () => j(),
6841
6841
  { revalidateOnFocus: !1, revalidateDebounce: 0 }
6842
- ), { state: pe, hasData: fe, swrvState: De } = r(H, q, U), ge = P(!0), Te = y(() => ({
6842
+ ), { state: pe, hasData: fe, swrvState: De } = r(_, q, U), ge = P(!0), Te = y(() => ({
6843
6843
  hasData: fe.value,
6844
6844
  state: pe.value
6845
6845
  })), Me = y(() => ge.value ? "loading" : q.value ? "error" : "success"), Ne = ({ page: oe }) => {
@@ -6857,7 +6857,7 @@ const J0 = {
6857
6857
  const oe = ((qe = e.paginationPageSizes) == null ? void 0 : qe[0]) ?? bc;
6858
6858
  return e.hidePaginationWhenOptional && c.value === 1 ? e.paginationOffset ? !!h.value || !!p.value || o.value.length >= oe : f.value > oe : !0;
6859
6859
  });
6860
- ve(H, (oe) => {
6860
+ ve(_, (oe) => {
6861
6861
  oe != null && oe.length && !o.value.length && (o.value = oe);
6862
6862
  }, { deep: !0, immediate: !0 }), ve(pe, () => {
6863
6863
  switch (pe.value) {
@@ -7175,12 +7175,12 @@ const J0 = {
7175
7175
  let s = !!n, u = 1, l = 0, o = 0, f = 0, d = 0, c = 0, v = 0, m = 0, b = 0, h = s ? [0, Da(n - 1, 0)] : Sr, p = [0, 0], C = 0;
7176
7176
  const w = ((O, $) => ({ o: $, t: rs([], O), l: O, i: -1, u: rs([], O) }))(e, t), k = /* @__PURE__ */ new Set(), S = () => f - o, I = () => S() + c + d, E = (O) => (($, D, B, L) => {
7177
7177
  if (L = zn(L, $.l - 1), Bo($, L) <= D) {
7178
- const H = On($, D + B, L);
7179
- return [On($, D, L, H), H];
7178
+ const _ = On($, D + B, L);
7179
+ return [On($, D, L, _), _];
7180
7180
  }
7181
7181
  {
7182
- const H = On($, D, void 0, L);
7183
- return [H, On($, D + B, H)];
7182
+ const _ = On($, D, void 0, L);
7183
+ return [_, On($, D + B, _)];
7184
7184
  }
7185
7185
  })(w, O, l, p[0]), R = () => ((O) => O.l ? Bo(O, O.l - 1) + is(O, O.l - 1) : 0)(w), z = (O) => Bo(w, O) - c, j = (O) => is(w, O), M = (O) => {
7186
7186
  O && (kh() && m !== 0 ? c += O : d += O);
@@ -7197,10 +7197,10 @@ const J0 = {
7197
7197
  let D, B, L = 0;
7198
7198
  switch (O) {
7199
7199
  case 1: {
7200
- const H = v;
7200
+ const _ = v;
7201
7201
  v = 0;
7202
7202
  const q = $ - f, ae = wc(q);
7203
- H && ae < wc(H) + 1 || b !== 0 || (m = q < 0 ? 2 : 1), s && (h = Sr, s = !1), f = $, L = 4;
7203
+ _ && ae < wc(_) + 1 || b !== 0 || (m = q < 0 ? 2 : 1), s && (h = Sr, s = !1), f = $, L = 4;
7204
7204
  const U = S();
7205
7205
  U >= -l && U <= R() && (L += 1, B = ae > l);
7206
7206
  break;
@@ -7209,10 +7209,10 @@ const J0 = {
7209
7209
  L = 8, m !== 0 && (D = !0, L += 1), m = 0, b = 0, h = Sr;
7210
7210
  break;
7211
7211
  case 3: {
7212
- const H = $.filter(([q, ae]) => w.t[q] !== ae);
7213
- if (!H.length) break;
7214
- M(H.reduce((q, [ae, U]) => ((b === 2 || (h ? !s && ae < h[0] : z(ae) + (m === 0 && b === 0 ? j(ae) : 0) < S())) && (q += U - j(ae)), q), 0));
7215
- for (const [q, ae] of H) {
7212
+ const _ = $.filter(([q, ae]) => w.t[q] !== ae);
7213
+ if (!_.length) break;
7214
+ M(_.reduce((q, [ae, U]) => ((b === 2 || (h ? !s && ae < h[0] : z(ae) + (m === 0 && b === 0 ? j(ae) : 0) < S())) && (q += U - j(ae)), q), 0));
7215
+ for (const [q, ae] of _) {
7216
7216
  const U = j(q), pe = Tw(w, q, ae);
7217
7217
  i && (C += pe ? ae : ae - U);
7218
7218
  }
@@ -7242,8 +7242,8 @@ const J0 = {
7242
7242
  case 8:
7243
7243
  h = E($), L = 1;
7244
7244
  }
7245
- L && (u = 1 + (2147483647 & u), D && c && (d += c, c = 0), k.forEach(([H, q]) => {
7246
- L & H && q(B);
7245
+ L && (u = 1 + (2147483647 & u), D && c && (d += c, c = 0), k.forEach(([_, q]) => {
7246
+ L & _ && q(B);
7247
7247
  }));
7248
7248
  } };
7249
7249
  }, Kl = setTimeout, Ro = (e, t) => t && Ch() ? -e : e, Mw = (e, t, a, n, r, i) => {
@@ -8329,8 +8329,8 @@ const m$ = ["id", "aria-describedby", "aria-invalid", "type", "value"], y$ = ["a
8329
8329
  const $ = { ...l };
8330
8330
  return delete $.class, delete $.input, delete $.onInput, $;
8331
8331
  }), p = y(() => {
8332
- var L, H;
8333
- const $ = ((L = n.value) == null ? void 0 : L.toString().length) || 0, D = ((H = e.modelValue) == null ? void 0 : H.toString().length) || 0;
8332
+ var L, _;
8333
+ const $ = ((L = n.value) == null ? void 0 : L.toString().length) || 0, D = ((_ = e.modelValue) == null ? void 0 : _.toString().length) || 0;
8334
8334
  let B = $;
8335
8335
  return !r.value && D && (B = D), !!e.characterLimit && B > e.characterLimit;
8336
8336
  }), C = y(() => {
@@ -8695,7 +8695,7 @@ const B$ = ["id"], R$ = {
8695
8695
  var we, Y;
8696
8696
  typeof document > "u" || (((we = document == null ? void 0 : document.activeElement) == null ? void 0 : we.tagName) === "PRE" && ((Y = h.value) == null || Y.focus({ preventScroll: !0 })), k.value = k.value || ne, w.value = w.value || !ne, p.value && (p.value.scrollTop = 0));
8697
8697
  }, { immediate: !0 });
8698
- const H = {
8698
+ const _ = {
8699
8699
  "alt+c": "copyCode",
8700
8700
  "alt+f": "toggleFilterMode",
8701
8701
  "alt+g": "toggleFilterMode",
@@ -8742,7 +8742,7 @@ const B$ = ["id"], R$ = {
8742
8742
  },
8743
8743
  shouldPreventDefaultAction: !0
8744
8744
  }
8745
- }, ae = new $$(H, q);
8745
+ }, ae = new $$(_, q);
8746
8746
  ot(function() {
8747
8747
  ae.registerListener(), U(), !e.query && e.highlightedLineNumbers.length ? Te() : Me();
8748
8748
  }), nn(function() {
@@ -12147,9 +12147,9 @@ function PT() {
12147
12147
  }), t.default = w;
12148
12148
  var n = a(/* @__PURE__ */ dT()), r = a(/* @__PURE__ */ fT()), i = a(/* @__PURE__ */ _a()), s = a(/* @__PURE__ */ bT()), u = a(/* @__PURE__ */ wT()), l = a(/* @__PURE__ */ sg()), o = /* @__PURE__ */ CT(), f = a(/* @__PURE__ */ ar()), d = a(/* @__PURE__ */ Vt()), c = /* @__PURE__ */ Vs(), v = a(/* @__PURE__ */ MT()), m = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, b = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, h = /^'([^]*?)'?$/, p = /''/g, C = /[a-zA-Z]/;
12149
12149
  function w(S, I, E) {
12150
- var R, z, j, M, O, $, D, B, L, H, q, ae, U, pe, fe, De, ge, Te;
12150
+ var R, z, j, M, O, $, D, B, L, _, q, ae, U, pe, fe, De, ge, Te;
12151
12151
  (0, d.default)(2, arguments);
12152
- var Me = String(I), Ne = (0, c.getDefaultOptions)(), Le = (R = (z = E == null ? void 0 : E.locale) !== null && z !== void 0 ? z : Ne.locale) !== null && R !== void 0 ? R : v.default, Xe = (0, f.default)((j = (M = (O = ($ = E == null ? void 0 : E.firstWeekContainsDate) !== null && $ !== void 0 ? $ : E == null || (D = E.locale) === null || D === void 0 || (B = D.options) === null || B === void 0 ? void 0 : B.firstWeekContainsDate) !== null && O !== void 0 ? O : Ne.firstWeekContainsDate) !== null && M !== void 0 ? M : (L = Ne.locale) === null || L === void 0 || (H = L.options) === null || H === void 0 ? void 0 : H.firstWeekContainsDate) !== null && j !== void 0 ? j : 1);
12152
+ var Me = String(I), Ne = (0, c.getDefaultOptions)(), Le = (R = (z = E == null ? void 0 : E.locale) !== null && z !== void 0 ? z : Ne.locale) !== null && R !== void 0 ? R : v.default, Xe = (0, f.default)((j = (M = (O = ($ = E == null ? void 0 : E.firstWeekContainsDate) !== null && $ !== void 0 ? $ : E == null || (D = E.locale) === null || D === void 0 || (B = D.options) === null || B === void 0 ? void 0 : B.firstWeekContainsDate) !== null && O !== void 0 ? O : Ne.firstWeekContainsDate) !== null && M !== void 0 ? M : (L = Ne.locale) === null || L === void 0 || (_ = L.options) === null || _ === void 0 ? void 0 : _.firstWeekContainsDate) !== null && j !== void 0 ? j : 1);
12153
12153
  if (!(Xe >= 1 && Xe <= 7))
12154
12154
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
12155
12155
  var Je = (0, f.default)((q = (ae = (U = (pe = E == null ? void 0 : E.weekStartsOn) !== null && pe !== void 0 ? pe : E == null || (fe = E.locale) === null || fe === void 0 || (De = fe.options) === null || De === void 0 ? void 0 : De.weekStartsOn) !== null && U !== void 0 ? U : Ne.weekStartsOn) !== null && ae !== void 0 ? ae : (ge = Ne.locale) === null || ge === void 0 || (Te = ge.options) === null || Te === void 0 ? void 0 : Te.weekStartsOn) !== null && q !== void 0 ? q : 0);
@@ -13239,10 +13239,10 @@ function J5(e) {
13239
13239
  rootBoundary: d,
13240
13240
  altBoundary: c,
13241
13241
  padding: o
13242
- }), H = D ? $ ? ga : Xt : $ ? ha : Zt;
13243
- S[B] > I[B] && (H = zo(H));
13244
- var q = zo(H), ae = [];
13245
- if (i && ae.push(L[O] <= 0), u && ae.push(L[H] <= 0, L[q] <= 0), ae.every(function(ge) {
13242
+ }), _ = D ? $ ? ga : Xt : $ ? ha : Zt;
13243
+ S[B] > I[B] && (_ = zo(_));
13244
+ var q = zo(_), ae = [];
13245
+ if (i && ae.push(L[O] <= 0), u && ae.push(L[_] <= 0, L[q] <= 0), ae.every(function(ge) {
13246
13246
  return ge;
13247
13247
  })) {
13248
13248
  z = M, R = !1;
@@ -13380,11 +13380,11 @@ function u3(e) {
13380
13380
  };
13381
13381
  if (I) {
13382
13382
  if (i) {
13383
- var $, D = k === "y" ? Zt : Xt, B = k === "y" ? ha : ga, L = k === "y" ? "height" : "width", H = I[k], q = H + h[D], ae = H - h[B], U = v ? -R[L] / 2 : 0, pe = C === Mr ? E[L] : R[L], fe = C === Mr ? -R[L] : -E[L], De = t.elements.arrow, ge = v && De ? Gu(De) : {
13383
+ var $, D = k === "y" ? Zt : Xt, B = k === "y" ? ha : ga, L = k === "y" ? "height" : "width", _ = I[k], q = _ + h[D], ae = _ - h[B], U = v ? -R[L] / 2 : 0, pe = C === Mr ? E[L] : R[L], fe = C === Mr ? -R[L] : -E[L], De = t.elements.arrow, ge = v && De ? Gu(De) : {
13384
13384
  width: 0,
13385
13385
  height: 0
13386
- }, Te = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : hg(), Me = Te[D], Ne = Te[B], Le = pi(0, E[L], ge[L]), Xe = w ? E[L] / 2 - U - Le - Me - j.mainAxis : pe - Le - Me - j.mainAxis, Je = w ? -E[L] / 2 + U + Le + Ne + j.mainAxis : fe + Le + Ne + j.mainAxis, Qe = t.elements.arrow && Bi(t.elements.arrow), at = Qe ? k === "y" ? Qe.clientTop || 0 : Qe.clientLeft || 0 : 0, et = ($ = M == null ? void 0 : M[k]) != null ? $ : 0, oe = H + Xe - et - at, qe = H + Je - et, ne = pi(v ? cs(q, oe) : q, H, v ? qn(ae, qe) : ae);
13387
- I[k] = ne, O[k] = ne - H;
13386
+ }, Te = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : hg(), Me = Te[D], Ne = Te[B], Le = pi(0, E[L], ge[L]), Xe = w ? E[L] / 2 - U - Le - Me - j.mainAxis : pe - Le - Me - j.mainAxis, Je = w ? -E[L] / 2 + U + Le + Ne + j.mainAxis : fe + Le + Ne + j.mainAxis, Qe = t.elements.arrow && Bi(t.elements.arrow), at = Qe ? k === "y" ? Qe.clientTop || 0 : Qe.clientLeft || 0 : 0, et = ($ = M == null ? void 0 : M[k]) != null ? $ : 0, oe = _ + Xe - et - at, qe = _ + Je - et, ne = pi(v ? cs(q, oe) : q, _, v ? qn(ae, qe) : ae);
13387
+ I[k] = ne, O[k] = ne - _;
13388
13388
  }
13389
13389
  if (u) {
13390
13390
  var we, Y = k === "x" ? Zt : Xt, Ce = k === "x" ? ha : ga, ke = I[S], Ae = S === "y" ? "height" : "width", Ue = ke + h[Y], Ct = ke - h[Ce], vt = [Zt, Xt].indexOf(p) !== -1, Ze = (we = M == null ? void 0 : M[S]) != null ? we : 0, ct = vt ? Ue : ke - E[Ae] - R[Ae] - Ze + j.altAxis, xt = vt ? ke + E[Ae] + R[Ae] - Ze - j.altAxis : Ct, jt = v && vt ? P5(ct, ke, xt) : pi(v ? ct : Ue, ke, v ? xt : Ct);
@@ -15212,7 +15212,7 @@ function Z9({
15212
15212
  for (let $ = 1; $ <= qN; $++) {
15213
15213
  for (let D = 1, B = i; D <= Lt; D++, B += B === Lt ? 1 - Lt : 1) {
15214
15214
  c && B === s && (p = 1, C = e.numDays, w = Math.floor((p - 1) / Lt + 1), k = Math.floor((o - p) / Lt + 1), S = 1, I = f, E = e.month, R = e.year, c = !1, v = !0);
15215
- const L = n.getDateFromParams(R, E, p, 0, 0, 0, 0), H = n.getDateFromParams(R, E, p, 12, 0, 0, 0), q = n.getDateFromParams(
15215
+ const L = n.getDateFromParams(R, E, p, 0, 0, 0, 0), _ = n.getDateFromParams(R, E, p, 12, 0, 0, 0), q = n.getDateFromParams(
15216
15216
  R,
15217
15217
  E,
15218
15218
  p,
@@ -15244,7 +15244,7 @@ function Z9({
15244
15244
  date: ae,
15245
15245
  startDate: L,
15246
15246
  endDate: q,
15247
- noonDate: H,
15247
+ noonDate: _,
15248
15248
  dayIndex: at,
15249
15249
  isToday: Te,
15250
15250
  isFirstDay: Me,
@@ -17081,28 +17081,28 @@ function T6(e, { slots: t, emit: a }) {
17081
17081
  () => e.minPage || (w.value ? fe(w.value) : null)
17082
17082
  ), O = y(
17083
17083
  () => e.maxPage || (k.value ? fe(k.value) : null)
17084
- ), $ = y(() => e.navVisibility), D = y(() => !!e.showWeeknumbers), B = y(() => !!e.showIsoWeeknumbers), L = y(() => o.value === "monthly"), H = y(() => o.value === "weekly"), q = y(() => o.value === "daily"), ae = () => {
17084
+ ), $ = y(() => e.navVisibility), D = y(() => !!e.showWeeknumbers), B = y(() => !!e.showIsoWeeknumbers), L = y(() => o.value === "monthly"), _ = y(() => o.value === "weekly"), q = y(() => o.value === "daily"), ae = () => {
17085
17085
  s.value = !0, a("transition-start");
17086
17086
  }, U = () => {
17087
17087
  s.value = !1, a("transition-end"), c && (c.resolve(!0), c = null);
17088
- }, pe = (_, A, V = o.value) => lm(_, A, V, p.value), fe = (_) => sm(_, o.value, p.value), De = (_) => {
17089
- !S.value || !Xe.value || (_.isDisabled = Xe.value.cellExists(
17088
+ }, pe = (H, A, V = o.value) => lm(H, A, V, p.value), fe = (H) => sm(H, o.value, p.value), De = (H) => {
17089
+ !S.value || !Xe.value || (H.isDisabled = Xe.value.cellExists(
17090
17090
  S.value.key,
17091
- _.dayIndex
17091
+ H.dayIndex
17092
17092
  ));
17093
- }, ge = (_) => {
17094
- _.isFocusable = _.inMonth && _.day === i.value;
17095
- }, Te = (_, A) => {
17096
- for (const V of _)
17093
+ }, ge = (H) => {
17094
+ H.isFocusable = H.inMonth && H.day === i.value;
17095
+ }, Te = (H, A) => {
17096
+ for (const V of H)
17097
17097
  for (const ie of V.days)
17098
17098
  if (A(ie) === !1)
17099
17099
  return;
17100
17100
  }, Me = y(
17101
- () => f.value.reduce((_, A) => (_.push(...A.viewDays), _), [])
17101
+ () => f.value.reduce((H, A) => (H.push(...A.viewDays), H), [])
17102
17102
  ), Ne = y(() => {
17103
- const _ = [];
17103
+ const H = [];
17104
17104
  return (e.attributes || []).forEach((A, V) => {
17105
- !A || !A.dates || _.push(
17105
+ !A || !A.dates || H.push(
17106
17106
  new km(
17107
17107
  {
17108
17108
  ...A,
@@ -17112,44 +17112,44 @@ function T6(e, { slots: t, emit: a }) {
17112
17112
  p.value
17113
17113
  )
17114
17114
  );
17115
- }), S.value && _.push(S.value), _;
17115
+ }), S.value && H.push(S.value), H;
17116
17116
  }), Le = y(() => ja(Ne.value)), Xe = y(() => {
17117
- const _ = new oN();
17117
+ const H = new oN();
17118
17118
  return Ne.value.forEach((A) => {
17119
17119
  A.ranges.forEach((V) => {
17120
- _.render(A, V, Me.value);
17120
+ H.render(A, V, Me.value);
17121
17121
  });
17122
- }), _;
17123
- }), Je = y(() => Me.value.reduce((_, A) => (_[A.dayIndex] = { day: A, cells: [] }, _[A.dayIndex].cells.push(...Xe.value.getCells(A)), _), {})), Qe = (_, A) => {
17122
+ }), H;
17123
+ }), Je = y(() => Me.value.reduce((H, A) => (H[A.dayIndex] = { day: A, cells: [] }, H[A.dayIndex].cells.push(...Xe.value.getCells(A)), H), {})), Qe = (H, A) => {
17124
17124
  const V = e.showWeeknumbers || e.showIsoWeeknumbers;
17125
- return V == null ? "" : E4(V) ? V ? "left" : "" : V.startsWith("right") ? A > 1 ? "right" : V : _ > 1 ? "left" : V;
17125
+ return V == null ? "" : E4(V) ? V ? "left" : "" : V.startsWith("right") ? A > 1 ? "right" : V : H > 1 ? "left" : V;
17126
17126
  }, at = () => {
17127
- var _, A;
17127
+ var H, A;
17128
17128
  if (!Le.value)
17129
17129
  return null;
17130
17130
  const V = Ne.value.find((Ye) => Ye.pinPage) || Ne.value[0];
17131
17131
  if (!V || !V.hasRanges)
17132
17132
  return null;
17133
- const [ie] = V.ranges, he = ((_ = ie.start) == null ? void 0 : _.date) || ((A = ie.end) == null ? void 0 : A.date);
17133
+ const [ie] = V.ranges, he = ((H = ie.start) == null ? void 0 : H.date) || ((A = ie.end) == null ? void 0 : A.date);
17134
17134
  return he ? fe(he) : null;
17135
17135
  }, et = () => {
17136
17136
  if (Oa(z.value))
17137
17137
  return z.value;
17138
- const _ = at();
17139
- return Oa(_) ? _ : fe(/* @__PURE__ */ new Date());
17140
- }, oe = (_, A = {}) => {
17138
+ const H = at();
17139
+ return Oa(H) ? H : fe(/* @__PURE__ */ new Date());
17140
+ }, oe = (H, A = {}) => {
17141
17141
  const { view: V = o.value, position: ie = 1, force: he } = A, Ye = ie > 0 ? 1 - ie : -(E.value + ie);
17142
- let Be = pe(_, Ye, V), Dt = pe(Be, E.value - 1, V);
17142
+ let Be = pe(H, Ye, V), Dt = pe(Be, E.value - 1, V);
17143
17143
  return he || (lu(Be, M.value) ? Be = M.value : bs(Dt, O.value) && (Be = pe(O.value, 1 - E.value)), Dt = pe(Be, E.value - 1)), { fromPage: Be, toPage: Dt };
17144
- }, qe = (_, A, V = "") => {
17144
+ }, qe = (H, A, V = "") => {
17145
17145
  if (V === "none" || V === "fade")
17146
17146
  return V;
17147
- if ((_ == null ? void 0 : _.view) !== (A == null ? void 0 : A.view))
17147
+ if ((H == null ? void 0 : H.view) !== (A == null ? void 0 : A.view))
17148
17148
  return "fade";
17149
- const ie = bs(A, _), he = lu(A, _);
17149
+ const ie = bs(A, H), he = lu(A, H);
17150
17150
  return !ie && !he ? "fade" : V === "slide-v" ? he ? "slide-down" : "slide-up" : he ? "slide-right" : "slide-left";
17151
- }, ne = (_ = {}) => new Promise((A, V) => {
17152
- const { position: ie = 1, force: he = !1, transition: Ye } = _, Be = Oa(_.page) ? _.page : et(), { fromPage: Dt } = oe(Be, {
17151
+ }, ne = (H = {}) => new Promise((A, V) => {
17152
+ const { position: ie = 1, force: he = !1, transition: Ye } = H, Be = Oa(H.page) ? H.page : et(), { fromPage: Dt } = oe(Be, {
17153
17153
  position: ie,
17154
17154
  force: he
17155
17155
  }), Ta = [];
@@ -17180,11 +17180,11 @@ function T6(e, { slots: t, emit: a }) {
17180
17180
  resolve: A,
17181
17181
  reject: V
17182
17182
  } : A(!0);
17183
- }), we = (_) => {
17183
+ }), we = (H) => {
17184
17184
  const A = z.value ?? fe(/* @__PURE__ */ new Date());
17185
- return pe(A, _);
17186
- }, Y = (_, A = {}) => {
17187
- const V = Oa(_) ? _ : fe(_);
17185
+ return pe(A, H);
17186
+ }, Y = (H, A = {}) => {
17187
+ const V = Oa(H) ? H : fe(H);
17188
17188
  return Object.assign(
17189
17189
  A,
17190
17190
  oe(V, {
@@ -17197,32 +17197,32 @@ function T6(e, { slots: t, emit: a }) {
17197
17197
  o.value,
17198
17198
  p.value
17199
17199
  ).map((he) => tN(he, M.value, O.value)).some((he) => he);
17200
- }, Ce = (_, A = {}) => Y(we(_), A), ke = y(() => Ce(-R.value)), Ae = y(() => Ce(R.value)), Ue = async (_, A = {}) => !A.force && !Y(_, A) ? !1 : (A.fromPage && !aN(A.fromPage, z.value) && (xi({ id: u.value, hideDelay: 0 }), A.view && (d6("view", 10), o.value = A.view), await ne({
17200
+ }, Ce = (H, A = {}) => Y(we(H), A), ke = y(() => Ce(-R.value)), Ae = y(() => Ce(R.value)), Ue = async (H, A = {}) => !A.force && !Y(H, A) ? !1 : (A.fromPage && !aN(A.fromPage, z.value) && (xi({ id: u.value, hideDelay: 0 }), A.view && (d6("view", 10), o.value = A.view), await ne({
17201
17201
  ...A,
17202
17202
  page: A.fromPage,
17203
17203
  position: 1,
17204
17204
  force: !0
17205
- }), a("did-move", f.value)), !0), Ct = (_, A = {}) => Ue(we(_), A), vt = () => Ct(-R.value), Ze = () => Ct(R.value), ct = (_) => {
17206
- const A = L.value ? ".in-month" : "", V = `.id-${p.value.getDayId(_)}${A}`, ie = `${V}.vc-focusable, ${V} .vc-focusable`, he = n.value;
17205
+ }), a("did-move", f.value)), !0), Ct = (H, A = {}) => Ue(we(H), A), vt = () => Ct(-R.value), Ze = () => Ct(R.value), ct = (H) => {
17206
+ const A = L.value ? ".in-month" : "", V = `.id-${p.value.getDayId(H)}${A}`, ie = `${V}.vc-focusable, ${V} .vc-focusable`, he = n.value;
17207
17207
  if (he) {
17208
17208
  const Ye = he.querySelector(ie);
17209
17209
  if (Ye)
17210
17210
  return Ye.focus(), !0;
17211
17211
  }
17212
17212
  return !1;
17213
- }, xt = async (_, A = {}) => ct(_) ? !0 : (await Ue(_, A), ct(_)), jt = (_, A) => {
17214
- i.value = _.day, a("dayclick", _, A);
17215
- }, la = (_, A) => {
17216
- a("daymouseenter", _, A);
17217
- }, Ft = (_, A) => {
17218
- a("daymouseleave", _, A);
17219
- }, se = (_, A) => {
17220
- i.value = _.day, r.value = _, _.isFocused = !0, a("dayfocusin", _, A);
17221
- }, We = (_, A) => {
17222
- r.value = null, _.isFocused = !1, a("dayfocusout", _, A);
17223
- }, $e = (_, A) => {
17224
- a("daykeydown", _, A);
17225
- const V = _.noonDate;
17213
+ }, xt = async (H, A = {}) => ct(H) ? !0 : (await Ue(H, A), ct(H)), jt = (H, A) => {
17214
+ i.value = H.day, a("dayclick", H, A);
17215
+ }, la = (H, A) => {
17216
+ a("daymouseenter", H, A);
17217
+ }, Ft = (H, A) => {
17218
+ a("daymouseleave", H, A);
17219
+ }, se = (H, A) => {
17220
+ i.value = H.day, r.value = H, H.isFocused = !0, a("dayfocusin", H, A);
17221
+ }, We = (H, A) => {
17222
+ r.value = null, H.isFocused = !1, a("dayfocusout", H, A);
17223
+ }, $e = (H, A) => {
17224
+ a("daykeydown", H, A);
17225
+ const V = H.noonDate;
17226
17226
  let ie = null;
17227
17227
  switch (A.key) {
17228
17228
  case "ArrowLeft": {
@@ -17242,11 +17242,11 @@ function T6(e, { slots: t, emit: a }) {
17242
17242
  break;
17243
17243
  }
17244
17244
  case "Home": {
17245
- ie = _t(V, -_.weekdayPosition + 1);
17245
+ ie = _t(V, -H.weekdayPosition + 1);
17246
17246
  break;
17247
17247
  }
17248
17248
  case "End": {
17249
- ie = _t(V, _.weekdayPositionFromEnd);
17249
+ ie = _t(V, H.weekdayPositionFromEnd);
17250
17250
  break;
17251
17251
  }
17252
17252
  case "PageUp": {
@@ -17259,11 +17259,11 @@ function T6(e, { slots: t, emit: a }) {
17259
17259
  }
17260
17260
  }
17261
17261
  ie && (A.preventDefault(), xt(ie).catch());
17262
- }, it = (_) => {
17262
+ }, it = (H) => {
17263
17263
  const A = r.value;
17264
- A != null && $e(A, _);
17265
- }, pt = (_, A) => {
17266
- a("weeknumberclick", _, A);
17264
+ A != null && $e(A, H);
17265
+ }, pt = (H, A) => {
17266
+ a("weeknumberclick", H, A);
17267
17267
  };
17268
17268
  ne({
17269
17269
  page: e.initialPage,
@@ -17271,8 +17271,8 @@ function T6(e, { slots: t, emit: a }) {
17271
17271
  }), ot(() => {
17272
17272
  !e.disablePageSwipe && n.value && (v = u6(
17273
17273
  n.value,
17274
- ({ toLeft: _ = !1, toRight: A = !1 }) => {
17275
- _ ? Ze() : A && vt();
17274
+ ({ toLeft: H = !1, toRight: A = !1 }) => {
17275
+ H ? Ze() : A && vt();
17276
17276
  },
17277
17277
  In("touch")
17278
17278
  ));
@@ -17299,11 +17299,11 @@ function T6(e, { slots: t, emit: a }) {
17299
17299
  ), ve(
17300
17300
  () => i.value,
17301
17301
  () => {
17302
- Te(f.value, (_) => ge(_));
17302
+ Te(f.value, (H) => ge(H));
17303
17303
  }
17304
17304
  ), wu(() => {
17305
- a("update:pages", f.value), Te(f.value, (_) => {
17306
- De(_), ge(_);
17305
+ a("update:pages", f.value), Te(f.value, (H) => {
17306
+ De(H), ge(H);
17307
17307
  });
17308
17308
  });
17309
17309
  const ce = {
@@ -17336,7 +17336,7 @@ function T6(e, { slots: t, emit: a }) {
17336
17336
  minPage: M,
17337
17337
  maxPage: O,
17338
17338
  isMonthly: L,
17339
- isWeekly: H,
17339
+ isWeekly: _,
17340
17340
  isDaily: q,
17341
17341
  navVisibility: $,
17342
17342
  showWeeknumbers: D,
@@ -17518,7 +17518,7 @@ const D6 = le({
17518
17518
  const U = i.state.elements.reference;
17519
17519
  s.autoHide && !s.isFocused && (!U || U !== document.activeElement) && ["hover", "hover-focus"].includes(s.visibility) && p();
17520
17520
  }
17521
- function H() {
17521
+ function _() {
17522
17522
  s.isFocused = !0, s.isInteractive && ["focus", "hover-focus"].includes(s.visibility) && h();
17523
17523
  }
17524
17524
  function q(U) {
@@ -17553,7 +17553,7 @@ const D6 = le({
17553
17553
  onClick: D,
17554
17554
  onMouseOver: B,
17555
17555
  onMouseLeave: L,
17556
- onFocusIn: H,
17556
+ onFocusIn: _,
17557
17557
  onFocusOut: q
17558
17558
  };
17559
17559
  }
@@ -17979,7 +17979,7 @@ const fL = { class: "vc-nav-header" }, vL = ["disabled"], pL = ["disabled"], hL
17979
17979
  return u * (fe + 1) - 1;
17980
17980
  }
17981
17981
  function h() {
17982
- H.value && (s.value && C(), k());
17982
+ _.value && (s.value && C(), k());
17983
17983
  }
17984
17984
  function p() {
17985
17985
  q.value && (s.value && w(), S());
@@ -18038,7 +18038,7 @@ const fL = { class: "vc-nav-header" }, vL = ["disabled"], pL = ["disabled"], hL
18038
18038
  () => D.value.some((fe) => !fe.isDisabled)
18039
18039
  ), L = y(
18040
18040
  () => s.value ? I.value : M.value
18041
- ), H = y(
18041
+ ), _ = y(
18042
18042
  () => s.value ? R.value : $.value
18043
18043
  ), q = y(
18044
18044
  () => s.value ? j.value : B.value
@@ -18057,14 +18057,14 @@ const fL = { class: "vc-nav-header" }, vL = ["disabled"], pL = ["disabled"], hL
18057
18057
  W("button", {
18058
18058
  type: "button",
18059
18059
  class: "vc-nav-arrow is-left vc-focus",
18060
- disabled: !x(H),
18060
+ disabled: !x(_),
18061
18061
  onClick: h,
18062
18062
  onKeydown: De[0] || (De[0] = (ge) => x(xo)(ge, h))
18063
18063
  }, [
18064
18064
  Z(da, {
18065
18065
  name: "nav-prev-button",
18066
18066
  move: h,
18067
- disabled: !x(H)
18067
+ disabled: !x(_)
18068
18068
  }, {
18069
18069
  default: N(() => [
18070
18070
  Z(Rr, {
@@ -18181,12 +18181,12 @@ const fL = { class: "vc-nav-header" }, vL = ["disabled"], pL = ["disabled"], hL
18181
18181
  attributeCells: c.value
18182
18182
  }));
18183
18183
  function b({ data: B }, { popovers: L }) {
18184
- const { key: H, customData: q, popover: ae } = B;
18184
+ const { key: _, customData: q, popover: ae } = B;
18185
18185
  if (!ae)
18186
18186
  return;
18187
18187
  const U = Fv(
18188
18188
  {
18189
- key: H,
18189
+ key: _,
18190
18190
  customData: q,
18191
18191
  attribute: B
18192
18192
  },
@@ -18222,13 +18222,13 @@ const fL = { class: "vc-nav-header" }, vL = ["disabled"], pL = ["disabled"], hL
18222
18222
  { "vc-disabled": d.value.isDisabled },
18223
18223
  Yn(wr(p.value), "contentClass"),
18224
18224
  Yn(wr(w.value), "class") || ""
18225
- ], H = {
18225
+ ], _ = {
18226
18226
  ...Yn(wr(p.value), "contentStyle"),
18227
18227
  ...Yn(wr(w.value), "style")
18228
18228
  };
18229
18229
  return {
18230
18230
  class: L,
18231
- style: H,
18231
+ style: _,
18232
18232
  tabindex: B,
18233
18233
  "aria-label": d.value.ariaLabel,
18234
18234
  "aria-disabled": !!d.value.isDisabled,
@@ -18563,7 +18563,7 @@ function RL(e, { emit: t, slots: a }) {
18563
18563
  ), L = y(() => p.value ? {
18564
18564
  start: d.value[0],
18565
18565
  end: d.value[1]
18566
- } : d.value[0]), H = y(() => {
18566
+ } : d.value[0]), _ = y(() => {
18567
18567
  const A = ["start", "end"].map((V) => ({
18568
18568
  input: ne(V),
18569
18569
  change: we(V),
@@ -18945,7 +18945,7 @@ function RL(e, { emit: t, slots: a }) {
18945
18945
  hidePopover: !1
18946
18946
  });
18947
18947
  }), yt(() => u.value = !0);
18948
- const _ = {
18948
+ const H = {
18949
18949
  ...n,
18950
18950
  showCalendar: u,
18951
18951
  datePickerPopoverId: l,
@@ -18960,7 +18960,7 @@ function RL(e, { emit: t, slots: a }) {
18960
18960
  timeAccuracy: Lo(e, "timeAccuracy"),
18961
18961
  isDragging: E,
18962
18962
  inputValue: L,
18963
- inputEvents: H,
18963
+ inputEvents: _,
18964
18964
  dateParts: z,
18965
18965
  attributes: U,
18966
18966
  rules: pe,
@@ -18979,7 +18979,7 @@ function RL(e, { emit: t, slots: a }) {
18979
18979
  onPopoverBeforeHide: Ct,
18980
18980
  onPopoverAfterHide: vt
18981
18981
  };
18982
- return Oi(Fm, _), _;
18982
+ return Oi(Fm, H), H;
18983
18983
  }
18984
18984
  function kd() {
18985
18985
  const e = Ei(Fm);
@@ -19461,28 +19461,28 @@ const iB = { class: "k-segmented-control" }, oB = ["data-testid", "disabled", "o
19461
19461
  tabName: "relative"
19462
19462
  }), I = (L) => {
19463
19463
  if (!L) return;
19464
- const H = o.value ? !L.start : !L.start || !L.end, q = (L == null ? void 0 : L.start) || /* @__PURE__ */ new Date(), ae = (L == null ? void 0 : L.end) || null;
19465
- c.value = !!H, !o.value && L && L.start && L.end ? (b.value.start = q, b.value.end = ae) : L && L.start && (m.value = q), S.selectedRange = S.previouslySelectedRange = {
19464
+ const _ = o.value ? !L.start : !L.start || !L.end, q = (L == null ? void 0 : L.start) || /* @__PURE__ */ new Date(), ae = (L == null ? void 0 : L.end) || null;
19465
+ c.value = !!_, !o.value && L && L.start && L.end ? (b.value.start = q, b.value.end = ae) : L && L.start && (m.value = q), S.selectedRange = S.previouslySelectedRange = {
19466
19466
  start: q,
19467
19467
  end: ae,
19468
19468
  timePeriodsKey: ""
19469
19469
  };
19470
- }, E = (L, H = !1) => {
19470
+ }, E = (L, _ = !1) => {
19471
19471
  S.selectedTimeframe = S.previouslySelectedTimeframe = L;
19472
19472
  const q = S.selectedTimeframe.start(), ae = S.selectedTimeframe.end();
19473
19473
  S.selectedRange = {
19474
19474
  start: new Date(q),
19475
19475
  end: new Date(ae),
19476
19476
  timePeriodsKey: S.selectedTimeframe.key
19477
- }, S.fullRangeDisplay = z(S.selectedRange, !1), c.value = !1, H && j();
19477
+ }, S.fullRangeDisplay = z(S.selectedRange, !1), c.value = !1, _ && j();
19478
19478
  }, R = () => {
19479
19479
  var L;
19480
19480
  b.value = v, m.value = null, S.abbreviatedDisplay = e.placeholder, S.fullRangeDisplay = "", f.value && (S.selectedTimeframe = (L = e.timePeriods[0]) == null ? void 0 : L.values[0]), S.selectedRange = S.previouslySelectedRange = v, n("change", S.selectedRange), n("update:modelValue", S.selectedRange);
19481
- }, z = (L, H) => {
19481
+ }, z = (L, _) => {
19482
19482
  const { start: q, end: ae } = L;
19483
19483
  let U = "PP hh:mm a";
19484
19484
  const pe = kl(q, k, "(z)");
19485
- return !l.value && f.value ? U = "PP hh:mm a" : I1.includes(e.mode) && (U = "PP"), o.value ? `${pl(q, U)} ${pe}` : H ? `<div>${pl(q, U)} -&nbsp;</div><div>${kl(ae, k, U)} ${pe}</div>` : `${pl(q, U)} - ${kl(ae, k, U)} ${pe}`;
19485
+ return !l.value && f.value ? U = "PP hh:mm a" : I1.includes(e.mode) && (U = "PP"), o.value ? `${pl(q, U)} ${pe}` : _ ? `<div>${pl(q, U)} -&nbsp;</div><div>${kl(ae, k, U)} ${pe}</div>` : `${pl(q, U)} - ${kl(ae, k, U)} ${pe}`;
19486
19486
  }, j = async () => {
19487
19487
  var L;
19488
19488
  o.value ? (n("change", { start: S.selectedRange.start, end: null }), n("update:modelValue", { start: S.selectedRange.start, end: null })) : (n("change", S.selectedRange), n("update:modelValue", S.selectedRange)), (L = r.value) == null || L.hidePopover(), M();
@@ -19490,25 +19490,25 @@ const iB = { class: "k-segmented-control" }, oB = ["data-testid", "disabled", "o
19490
19490
  var L;
19491
19491
  d.value && ((L = S.selectedRange) != null && L.start) ? S.abbreviatedDisplay = z(S.selectedRange, !0) : f.value && !d.value && (S.abbreviatedDisplay = S.selectedTimeframe.display);
19492
19492
  }, O = (L) => L.charAt(0).toUpperCase() + L.slice(1), $ = (L) => S.selectedTimeframe.key === L.key ? "primary" : "secondary";
19493
- return ve(m, (L, H) => {
19494
- L !== void 0 && L !== H && I({ start: L, end: null });
19495
- }, { immediate: !0 }), ve(b, (L, H) => {
19496
- L !== void 0 && L !== H && I(L);
19497
- }, { immediate: !0 }), ve(() => S.tabName, (L, H) => {
19498
- H !== void 0 && L === "relative" ? E(S.previouslySelectedTimeframe) : H !== void 0 && L === "custom" && I(S.previouslySelectedRange);
19493
+ return ve(m, (L, _) => {
19494
+ L !== void 0 && L !== _ && I({ start: L, end: null });
19495
+ }, { immediate: !0 }), ve(b, (L, _) => {
19496
+ L !== void 0 && L !== _ && I(L);
19497
+ }, { immediate: !0 }), ve(() => S.tabName, (L, _) => {
19498
+ _ !== void 0 && L === "relative" ? E(S.previouslySelectedTimeframe) : _ !== void 0 && L === "custom" && I(S.previouslySelectedRange);
19499
19499
  }), ot(() => {
19500
19500
  if (A1.includes(e.mode) && e.modelValue.timePeriodsKey) {
19501
19501
  S.tabName = "relative", c.value = !1;
19502
19502
  for (const L of e.timePeriods) {
19503
- const H = L.values.find((q) => q.key === e.modelValue.timePeriodsKey);
19504
- if (H) {
19505
- E(H), M();
19503
+ const _ = L.values.find((q) => q.key === e.modelValue.timePeriodsKey);
19504
+ if (_) {
19505
+ E(_), M();
19506
19506
  break;
19507
19507
  }
19508
19508
  }
19509
19509
  } else
19510
19510
  S.tabName = "custom", I(e.modelValue), (e.modelValue.start && e.modelValue.end || o.value && e.modelValue.start) && M();
19511
- }), (L, H) => (g(), T("div", {
19511
+ }), (L, _) => (g(), T("div", {
19512
19512
  class: de(["k-datetime-picker", { "set-min-width": f.value }]),
19513
19513
  style: Pe(C.value)
19514
19514
  }, [
@@ -19520,27 +19520,27 @@ const iB = { class: "k-segmented-control" }, oB = ["data-testid", "disabled", "o
19520
19520
  "hide-close-icon": "",
19521
19521
  placement: L.popoverPlacement,
19522
19522
  width: "auto",
19523
- onClose: H[5] || (H[5] = (q) => S.popoverOpen = !1),
19524
- onOpen: H[6] || (H[6] = (q) => S.popoverOpen = !0)
19523
+ onClose: _[5] || (_[5] = (q) => S.popoverOpen = !1),
19524
+ onOpen: _[6] || (_[6] = (q) => S.popoverOpen = !0)
19525
19525
  }, {
19526
19526
  content: N(() => [
19527
19527
  f.value && l.value ? (g(), X(Hm, {
19528
19528
  key: 0,
19529
19529
  modelValue: S.tabName,
19530
- "onUpdate:modelValue": H[0] || (H[0] = (q) => S.tabName = q),
19530
+ "onUpdate:modelValue": _[0] || (_[0] = (q) => S.tabName = q),
19531
19531
  class: "datetime-picker-toggle",
19532
19532
  "data-testid": "datetime-picker-toggle",
19533
19533
  options: [
19534
19534
  { label: "Relative", value: "relative" },
19535
19535
  { label: "Custom", value: "custom" }
19536
19536
  ],
19537
- onClick: H[1] || (H[1] = (q) => S.tabName = q)
19537
+ onClick: _[1] || (_[1] = (q) => S.tabName = q)
19538
19538
  }, null, 8, ["modelValue"])) : G("", !0),
19539
19539
  d.value ? G("", !0) : (g(), T("p", dB, re(S.fullRangeDisplay), 1)),
19540
19540
  l.value && d.value ? (g(), X(x(rB), {
19541
19541
  key: 2,
19542
19542
  modelValue: x(h),
19543
- "onUpdate:modelValue": H[2] || (H[2] = (q) => vr(h) ? h.value = q : null),
19543
+ "onUpdate:modelValue": _[2] || (_[2] = (q) => vr(h) ? h.value = q : null),
19544
19544
  borderless: "",
19545
19545
  color: "blue",
19546
19546
  "drag-attribute": u,
@@ -19583,12 +19583,13 @@ const iB = { class: "k-segmented-control" }, oB = ["data-testid", "disabled", "o
19583
19583
  appearance: "tertiary",
19584
19584
  class: "action-button",
19585
19585
  "data-testid": "datetime-picker-clear",
19586
- onClick: H[3] || (H[3] = (q) => R())
19586
+ onClick: _[3] || (_[3] = (q) => R())
19587
19587
  }, {
19588
- default: N(() => H[7] || (H[7] = [
19588
+ default: N(() => _[7] || (_[7] = [
19589
19589
  be(" Clear ")
19590
19590
  ])),
19591
- _: 1
19591
+ _: 1,
19592
+ __: [7]
19592
19593
  })) : G("", !0),
19593
19594
  d.value ? (g(), X(rt, {
19594
19595
  key: 1,
@@ -19596,12 +19597,13 @@ const iB = { class: "k-segmented-control" }, oB = ["data-testid", "disabled", "o
19596
19597
  class: "action-button",
19597
19598
  "data-testid": "datetime-picker-submit",
19598
19599
  disabled: c.value,
19599
- onClick: H[4] || (H[4] = (q) => j())
19600
+ onClick: _[4] || (_[4] = (q) => j())
19600
19601
  }, {
19601
- default: N(() => H[8] || (H[8] = [
19602
+ default: N(() => _[8] || (_[8] = [
19602
19603
  be(" Apply ")
19603
19604
  ])),
19604
- _: 1
19605
+ _: 1,
19606
+ __: [8]
19605
19607
  }, 8, ["disabled"])) : G("", !0)
19606
19608
  ])
19607
19609
  ]),
@@ -20175,17 +20177,17 @@ var mp = {
20175
20177
  }, o = function($, D) {
20176
20178
  var B = typeof (D == null ? void 0 : D.composedPath) == "function" ? D.composedPath() : void 0;
20177
20179
  return s.containerGroups.findIndex(function(L) {
20178
- var H = L.container, q = L.tabbableNodes;
20179
- return H.contains($) || // fall back to explicit tabbable search which will take into consideration any
20180
+ var _ = L.container, q = L.tabbableNodes;
20181
+ return _.contains($) || // fall back to explicit tabbable search which will take into consideration any
20180
20182
  // web components if the `tabbableOptions.getShadowRoot` option was used for
20181
20183
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
20182
20184
  // look inside web components even if open)
20183
- (B == null ? void 0 : B.includes(H)) || q.find(function(ae) {
20185
+ (B == null ? void 0 : B.includes(_)) || q.find(function(ae) {
20184
20186
  return ae === $;
20185
20187
  });
20186
20188
  });
20187
20189
  }, f = function($) {
20188
- var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, B = D.hasFallback, L = B === void 0 ? !1 : B, H = D.params, q = H === void 0 ? [] : H, ae = i[$];
20190
+ var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, B = D.hasFallback, L = B === void 0 ? !1 : B, _ = D.params, q = _ === void 0 ? [] : _, ae = i[$];
20189
20191
  if (typeof ae == "function" && (ae = ae.apply(void 0, KB(q))), ae === !0 && (ae = void 0), !ae) {
20190
20192
  if (ae === void 0 || ae === !1)
20191
20193
  return ae;
@@ -20221,7 +20223,7 @@ var mp = {
20221
20223
  return $;
20222
20224
  }, c = function() {
20223
20225
  if (s.containerGroups = s.containers.map(function($) {
20224
- var D = zB($, i.tabbableOptions), B = YB($, i.tabbableOptions), L = D.length > 0 ? D[0] : void 0, H = D.length > 0 ? D[D.length - 1] : void 0, q = B.find(function(pe) {
20226
+ var D = zB($, i.tabbableOptions), B = YB($, i.tabbableOptions), L = D.length > 0 ? D[0] : void 0, _ = D.length > 0 ? D[D.length - 1] : void 0, q = B.find(function(pe) {
20225
20227
  return dr(pe);
20226
20228
  }), ae = B.slice().reverse().find(function(pe) {
20227
20229
  return dr(pe);
@@ -20237,7 +20239,7 @@ var mp = {
20237
20239
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
20238
20240
  firstTabbableNode: L,
20239
20241
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
20240
- lastTabbableNode: H,
20242
+ lastTabbableNode: _,
20241
20243
  // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
20242
20244
  // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
20243
20245
  // because that API doesn't work with Shadow DOM as well as it should (@see
@@ -20294,14 +20296,14 @@ var mp = {
20294
20296
  });
20295
20297
  return D || (D === !1 ? !1 : $);
20296
20298
  }, h = function($) {
20297
- var D = $.target, B = $.event, L = $.isBackward, H = L === void 0 ? !1 : L;
20299
+ var D = $.target, B = $.event, L = $.isBackward, _ = L === void 0 ? !1 : L;
20298
20300
  D = D || Eo(B), c();
20299
20301
  var q = null;
20300
20302
  if (s.tabbableGroups.length > 0) {
20301
20303
  var ae = o(D, B), U = ae >= 0 ? s.containerGroups[ae] : void 0;
20302
20304
  if (ae < 0)
20303
- H ? q = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : q = s.tabbableGroups[0].firstTabbableNode;
20304
- else if (H) {
20305
+ _ ? q = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : q = s.tabbableGroups[0].firstTabbableNode;
20306
+ else if (_) {
20305
20307
  var pe = s.tabbableGroups.findIndex(function(Ne) {
20306
20308
  var Le = Ne.firstTabbableNode;
20307
20309
  return D === Le;
@@ -20346,7 +20348,7 @@ var mp = {
20346
20348
  B && (s.mostRecentlyFocusedNode = D);
20347
20349
  else {
20348
20350
  $.stopImmediatePropagation();
20349
- var L, H = !0;
20351
+ var L, _ = !0;
20350
20352
  if (s.mostRecentlyFocusedNode)
20351
20353
  if (Rn(s.mostRecentlyFocusedNode) > 0) {
20352
20354
  var q = o(s.mostRecentlyFocusedNode), ae = s.containerGroups[q].tabbableNodes;
@@ -20354,17 +20356,17 @@ var mp = {
20354
20356
  var U = ae.findIndex(function(pe) {
20355
20357
  return pe === s.mostRecentlyFocusedNode;
20356
20358
  });
20357
- U >= 0 && (i.isKeyForward(s.recentNavEvent) ? U + 1 < ae.length && (L = ae[U + 1], H = !1) : U - 1 >= 0 && (L = ae[U - 1], H = !1));
20359
+ U >= 0 && (i.isKeyForward(s.recentNavEvent) ? U + 1 < ae.length && (L = ae[U + 1], _ = !1) : U - 1 >= 0 && (L = ae[U - 1], _ = !1));
20358
20360
  }
20359
20361
  } else
20360
20362
  s.containerGroups.some(function(pe) {
20361
20363
  return pe.tabbableNodes.some(function(fe) {
20362
20364
  return Rn(fe) > 0;
20363
20365
  });
20364
- }) || (H = !1);
20366
+ }) || (_ = !1);
20365
20367
  else
20366
- H = !1;
20367
- H && (L = h({
20368
+ _ = !1;
20369
+ _ && (L = h({
20368
20370
  // move FROM the MRU node, not event-related node (which will be the node that is
20369
20371
  // outside the trap causing the focus escape we're trying to fix)
20370
20372
  target: s.mostRecentlyFocusedNode,
@@ -20410,8 +20412,8 @@ var mp = {
20410
20412
  }, z = function($) {
20411
20413
  var D = $.some(function(B) {
20412
20414
  var L = Array.from(B.removedNodes);
20413
- return L.some(function(H) {
20414
- return H === s.mostRecentlyFocusedNode;
20415
+ return L.some(function(_) {
20416
+ return _ === s.mostRecentlyFocusedNode;
20415
20417
  });
20416
20418
  });
20417
20419
  D && m(d());
@@ -20435,10 +20437,10 @@ var mp = {
20435
20437
  return this;
20436
20438
  var D = l($, "onActivate"), B = l($, "onPostActivate"), L = l($, "checkCanFocusTrap");
20437
20439
  L || c(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = n.activeElement, D == null || D();
20438
- var H = function() {
20440
+ var _ = function() {
20439
20441
  L && c(), E(), M(), B == null || B();
20440
20442
  };
20441
- return L ? (L(s.containers.concat()).then(H, H), this) : (H(), this);
20443
+ return L ? (L(s.containers.concat()).then(_, _), this) : (_(), this);
20442
20444
  },
20443
20445
  deactivate: function($) {
20444
20446
  if (!s.active)
@@ -20449,14 +20451,14 @@ var mp = {
20449
20451
  checkCanReturnFocus: i.checkCanReturnFocus
20450
20452
  }, $);
20451
20453
  clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, R(), s.active = !1, s.paused = !1, M(), mp.deactivateTrap(r, u);
20452
- var B = l(D, "onDeactivate"), L = l(D, "onPostDeactivate"), H = l(D, "checkCanReturnFocus"), q = l(D, "returnFocus", "returnFocusOnDeactivate");
20454
+ var B = l(D, "onDeactivate"), L = l(D, "onPostDeactivate"), _ = l(D, "checkCanReturnFocus"), q = l(D, "returnFocus", "returnFocusOnDeactivate");
20453
20455
  B == null || B();
20454
20456
  var ae = function() {
20455
20457
  yp(function() {
20456
20458
  q && m(b(s.nodeFocusedBeforeActivation)), L == null || L();
20457
20459
  });
20458
20460
  };
20459
- return q && H ? (H(b(s.nodeFocusedBeforeActivation)).then(ae, ae), this) : (ae(), this);
20461
+ return q && _ ? (_(b(s.nodeFocusedBeforeActivation)).then(ae, ae), this) : (ae(), this);
20460
20462
  },
20461
20463
  pause: function($) {
20462
20464
  return s.active ? (s.manuallyPaused = !0, this._setPausedState(!0, $)) : this;
@@ -20484,8 +20486,8 @@ var mp = {
20484
20486
  var B = l(D, "onPause"), L = l(D, "onPostPause");
20485
20487
  B == null || B(), R(), M(), L == null || L();
20486
20488
  } else {
20487
- var H = l(D, "onUnpause"), q = l(D, "onPostUnpause");
20488
- H == null || H(), c(), E(), M(), q == null || q();
20489
+ var _ = l(D, "onUnpause"), q = l(D, "onPostUnpause");
20490
+ _ == null || _(), c(), E(), M(), q == null || q();
20489
20491
  }
20490
20492
  return this;
20491
20493
  }
@@ -21267,20 +21269,20 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21267
21269
  "1e372e7c": Je.value
21268
21270
  }));
21269
21271
  const a = Jt(), n = Tt(), { getSizeFromString: r, cloneDeep: i, stripRequiredLabel: s } = It(), u = 36, l = "Filter...", o = e, f = t, d = Mt("kMultiselectItems"), c = y(() => a.required !== void 0 && String(a.required) !== "false"), v = y(() => s(o.label, c.value)), m = y(() => {
21270
- var ce, _;
21271
- return !!((ce = o.labelAttributes) != null && ce.help || (_ = o.labelAttributes) != null && _.info || n["label-tooltip"]);
21272
+ var ce, H;
21273
+ return !!((ce = o.labelAttributes) != null && ce.help || (H = o.labelAttributes) != null && H.info || n["label-tooltip"]);
21272
21274
  }), b = (ce) => Te.value || Me.value || ce != null && ce.disabled ? "neutral" : o.error ? "danger" : "info", h = {
21273
21275
  hideCaret: !0,
21274
21276
  placement: "bottom-start",
21275
21277
  popoverTimeout: 0,
21276
21278
  popoverClasses: "multiselect-popover"
21277
- }, p = P(0), C = P(0), w = St(), k = y(() => a.id ? String(a.id) : w), S = St(), I = Mt("multiselectElement"), E = Mt("multiselectDropdownInputElement"), R = Mt("multiselectSelectionsStagingElement"), z = y(() => o.selectedRowCount * u), j = P(""), M = y(() => !(!j.value || $.value.filter((ce) => ce.label === j.value).length)), O = P(null), $ = P([]), D = P([]), B = P([]), L = P([]), H = P([]), q = /* @__PURE__ */ new Set(), ae = P([]), U = P([]), pe = y(() => U.value.map((ce) => ce.label).join(", ")), fe = P(!1), De = P(!1), ge = P(!1), Te = y(() => (a == null ? void 0 : a.disabled) !== void 0 && String(a == null ? void 0 : a.disabled) !== "false"), Me = y(() => (a == null ? void 0 : a.readonly) !== void 0 && String(a == null ? void 0 : a.readonly) !== "false"), Ne = y({
21279
+ }, p = P(0), C = P(0), w = St(), k = y(() => a.id ? String(a.id) : w), S = St(), I = Mt("multiselectElement"), E = Mt("multiselectDropdownInputElement"), R = Mt("multiselectSelectionsStagingElement"), z = y(() => o.selectedRowCount * u), j = P(""), M = y(() => !(!j.value || $.value.filter((ce) => ce.label === j.value).length)), O = P(null), $ = P([]), D = P([]), B = P([]), L = P([]), _ = P([]), q = /* @__PURE__ */ new Set(), ae = P([]), U = P([]), pe = y(() => U.value.map((ce) => ce.label).join(", ")), fe = P(!1), De = P(!1), ge = P(!1), Te = y(() => (a == null ? void 0 : a.disabled) !== void 0 && String(a == null ? void 0 : a.disabled) !== "false"), Me = y(() => (a == null ? void 0 : a.readonly) !== void 0 && String(a == null ? void 0 : a.readonly) !== "false"), Ne = y({
21278
21280
  get() {
21279
21281
  return o.modelValue;
21280
21282
  },
21281
21283
  set(ce) {
21282
- const _ = $.value.filter((A) => ce.includes(A.value));
21283
- _.length ? ke(_) : ce.length || ct();
21284
+ const H = $.value.filter((A) => ce.includes(A.value));
21285
+ H.length ? ke(H) : ce.length || ct();
21284
21286
  }
21285
21287
  }), Le = y(() => {
21286
21288
  const ce = { ...a };
@@ -21311,18 +21313,18 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21311
21313
  }
21312
21314
  return B.value.length === 1 ? `${B.value.length} item selected` : `${B.value.length} items selected`;
21313
21315
  }), ne = y(() => o.autosuggest ? $.value : o.filterFunction({ items: $.value, query: j.value })), we = (ce) => {
21314
- var _;
21315
- (Te.value || ((_ = ce == null ? void 0 : ce.target) == null ? void 0 : _.dataset.propagateClicks) === "false") && ce.stopPropagation();
21316
- }, Y = async (ce, _, A) => {
21316
+ var H;
21317
+ (Te.value || ((H = ce == null ? void 0 : ce.target) == null ? void 0 : H.dataset.propagateClicks) === "false") && ce.stopPropagation();
21318
+ }, Y = async (ce, H, A) => {
21317
21319
  var V, ie;
21318
21320
  if (ce) {
21319
- if (!_.value) {
21321
+ if (!H.value) {
21320
21322
  j.value = "", A(), Ze(), await yt();
21321
21323
  const he = (ie = (V = E.value) == null ? void 0 : V.$el) == null ? void 0 : ie.querySelector("input");
21322
21324
  he == null || he.focus({ preventScroll: !0 });
21323
21325
  }
21324
21326
  } else
21325
- _.value && (j.value = "", A());
21327
+ H.value && (j.value = "", A());
21326
21328
  }, Ce = () => {
21327
21329
  setTimeout(() => {
21328
21330
  const ce = R.value;
@@ -21334,39 +21336,39 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21334
21336
  if (ce.clientHeight > z.value) {
21335
21337
  const A = Array.from(ce.querySelectorAll(".multiselect-selection-badge")).filter((he) => he.offsetTop >= z.value), V = L.value.length - A.length, ie = L.value.splice(V, A.length);
21336
21338
  for (const he of ie)
21337
- q.has(he.value) || (q.add(he.value), H.value.push(he));
21339
+ q.has(he.value) || (q.add(he.value), _.value.push(he));
21338
21340
  }
21339
21341
  C.value++;
21340
21342
  }
21341
21343
  }, 0);
21342
21344
  }, ke = (ce) => {
21343
- ce.forEach((_) => {
21345
+ ce.forEach((H) => {
21344
21346
  var V;
21345
- const A = ((V = $.value.filter((ie) => ie.value === _.value)) == null ? void 0 : V[0]) || null;
21347
+ const A = ((V = $.value.filter((ie) => ie.value === H.value)) == null ? void 0 : V[0]) || null;
21346
21348
  A.selected = !0, B.value.filter((ie) => ie.value === A.value).length || (B.value.push(A), L.value.push(A));
21347
21349
  }), Ce();
21348
- }, Ae = (ce, _ = !1) => {
21350
+ }, Ae = (ce, H = !1) => {
21349
21351
  const A = new Set(ce.map((V) => V.value));
21350
- B.value = B.value.filter((V) => !A.has(V.value)), L.value = L.value.filter((V) => !A.has(V.value)), H.value = H.value.filter((V) => !A.has(V.value)), ce.forEach((V) => {
21351
- if (q.delete(V.value), V.selected = !1, H.value.length) {
21352
- const ie = H.value.pop();
21352
+ B.value = B.value.filter((V) => !A.has(V.value)), L.value = L.value.filter((V) => !A.has(V.value)), _.value = _.value.filter((V) => !A.has(V.value)), ce.forEach((V) => {
21353
+ if (q.delete(V.value), V.selected = !1, _.value.length) {
21354
+ const ie = _.value.pop();
21353
21355
  ie && (L.value.push(ie), q.delete(ie.value));
21354
21356
  }
21355
21357
  o.enableItemCreation && V.custom && ($.value = $.value.filter((ie) => ie.value !== V.value), f("item-removed", V));
21356
- }), _ && Ce();
21357
- }, Ue = (ce, _) => {
21358
+ }), H && Ce();
21359
+ }, Ue = (ce, H) => {
21358
21360
  var he, Ye;
21359
- let A = !1, V = _ ? ce : ((he = $.value.filter((Be) => Be.value === ce.value)) == null ? void 0 : he[0]) || null;
21361
+ let A = !1, V = H ? ce : ((he = $.value.filter((Be) => Be.value === ce.value)) == null ? void 0 : he[0]) || null;
21360
21362
  if (o.enableItemCreation && (V != null && V.custom) && (A = !0), V === null && (V = ((Ye = B.value.filter((Be) => Be.value === ce.value)) == null ? void 0 : Ye[0]) || null), V === null)
21361
21363
  return;
21362
21364
  if (V.selected) {
21363
- if (B.value = B.value.filter((Be) => Be.value !== ce.value), L.value.filter((Be) => Be.value === ce.value).length ? L.value = L.value.filter((Be) => Be.value !== ce.value) : q.delete(ce.value) && (H.value = H.value.filter((Be) => Be.value !== ce.value)), V.selected = !1, H.value.length) {
21364
- const Be = H.value.pop();
21365
+ if (B.value = B.value.filter((Be) => Be.value !== ce.value), L.value.filter((Be) => Be.value === ce.value).length ? L.value = L.value.filter((Be) => Be.value !== ce.value) : q.delete(ce.value) && (_.value = _.value.filter((Be) => Be.value !== ce.value)), V.selected = !1, _.value.length) {
21366
+ const Be = _.value.pop();
21365
21367
  Be && (L.value.push(Be), q.delete(Be.value));
21366
21368
  }
21367
21369
  A && ($.value = $.value.filter((Be) => Be.value !== ce.value), f("item-removed", ce));
21368
21370
  } else
21369
- V.selected = !0, B.value.push(V), L.value.push(V), _ && (V.custom = !0, $.value.push(V));
21371
+ V.selected = !0, B.value.push(V), L.value.push(V), H && (V.custom = !0, $.value.push(V));
21370
21372
  Ce();
21371
21373
  const ie = B.value.map((Be) => Be.value);
21372
21374
  f("selected", B.value), f("change", V), f("update:modelValue", ie);
@@ -21376,32 +21378,32 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21376
21378
  var A;
21377
21379
  if (!o.enableItemCreation || !j.value || !M.value || !o.itemCreationValidator(j.value))
21378
21380
  return;
21379
- const ce = $.value.length + 1, _ = {
21381
+ const ce = $.value.length + 1, H = {
21380
21382
  label: Ds(j.value + ""),
21381
21383
  value: al(),
21382
21384
  key: `${(A = Ds(j.value).replace(/ /gi, "-")) == null ? void 0 : A.replace(/[^a-z0-9-_]/gi, "")}-${ce}`
21383
21385
  };
21384
- f("item-added", _), Ue(_, !0), j.value = "";
21386
+ f("item-added", H), Ue(H, !0), j.value = "";
21385
21387
  }, Ze = () => {
21386
- const ce = ne.value.filter((he) => he.selected), _ = ne.value.filter((he) => !he.selected), A = [...ce, ..._], V = A.filter((he) => !he.group), ie = A.filter((he) => he.group).sort((he, Ye) => he.group.toLowerCase().localeCompare(Ye.group.toLowerCase()));
21388
+ const ce = ne.value.filter((he) => he.selected), H = ne.value.filter((he) => !he.selected), A = [...ce, ...H], V = A.filter((he) => !he.group), ie = A.filter((he) => he.group).sort((he, Ye) => he.group.toLowerCase().localeCompare(Ye.group.toLowerCase()));
21387
21389
  D.value = [...V, ...ie];
21388
21390
  }, ct = () => {
21389
- $.value.forEach((_) => {
21390
- _.disabled || (_.selected = !1, _.custom && f("item-removed", _));
21391
- }), $.value = $.value.filter((_) => !(_.custom && !_.disabled)), B.value = B.value.filter((_) => _.disabled), L.value = L.value.filter((_) => _.disabled), H.value = H.value.filter((_) => (_.disabled || q.delete(_.value), _.disabled)), j.value = "", Ce();
21392
- const ce = B.value.map((_) => _.value);
21391
+ $.value.forEach((H) => {
21392
+ H.disabled || (H.selected = !1, H.custom && f("item-removed", H));
21393
+ }), $.value = $.value.filter((H) => !(H.custom && !H.disabled)), B.value = B.value.filter((H) => H.disabled), L.value = L.value.filter((H) => H.disabled), _.value = _.value.filter((H) => (H.disabled || q.delete(H.value), H.disabled)), j.value = "", Ce();
21394
+ const ce = B.value.map((H) => H.value);
21393
21395
  f("selected", B.value), f("update:modelValue", ce), f("query-change", "");
21394
21396
  }, xt = (ce) => {
21395
21397
  j.value = ce, f("query-change", ce);
21396
- }, jt = (ce, _) => {
21398
+ }, jt = (ce, H) => {
21397
21399
  var A;
21398
- ce.keyCode === 27 && (_.value = !1), (ce.key === "ArrowDown" || ce.key === "ArrowUp") && ((A = d.value) == null || A.setFocus(ce.key === "ArrowDown" ? "down" : "up"));
21400
+ ce.keyCode === 27 && (H.value = !1), (ce.key === "ArrowDown" || ce.key === "ArrowUp") && ((A = d.value) == null || A.setFocus(ce.key === "ArrowDown" ? "down" : "up"));
21399
21401
  }, la = () => {
21400
21402
  var ce;
21401
21403
  (ce = O.value) == null || ce.showPopover();
21402
21404
  }, Ft = (ce) => {
21403
- var _;
21404
- (ce.key === "ArrowDown" || ce.key === "ArrowUp") && ((_ = d.value) == null || _.setFocus(ce.key === "ArrowDown" ? "down" : "up"));
21405
+ var H;
21406
+ (ce.key === "ArrowDown" || ce.key === "ArrowUp") && ((H = d.value) == null || H.setFocus(ce.key === "ArrowDown" ? "down" : "up"));
21405
21407
  }, se = async () => {
21406
21408
  ge.value = !0, We();
21407
21409
  }, We = () => {
@@ -21417,26 +21419,26 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21417
21419
  if (ce)
21418
21420
  if (ce.clientHeight > z.value) {
21419
21421
  const A = L.value.pop();
21420
- A && !q.has(A.value) && (H.value.push(A), q.add(A.value)), C.value++;
21422
+ A && !q.has(A.value) && (_.value.push(A), q.add(A.value)), C.value++;
21421
21423
  } else
21422
- ae.value = i(L.value), U.value = i(H.value), p.value++;
21424
+ ae.value = i(L.value), U.value = i(_.value), p.value++;
21423
21425
  }, 0);
21424
21426
  }), ve(p, async () => {
21425
21427
  O.value && typeof O.value.updatePopper == "function" && (await yt(), O.value.updatePopper());
21426
21428
  }), ve(ne, () => {
21427
21429
  Ze();
21428
- }), ve(Ne, (ce, _) => {
21429
- if (JSON.stringify(ce) !== JSON.stringify(_)) {
21430
+ }), ve(Ne, (ce, H) => {
21431
+ if (JSON.stringify(ce) !== JSON.stringify(H)) {
21430
21432
  if (!ce.length) {
21431
21433
  ct();
21432
21434
  return;
21433
21435
  }
21434
- const A = new Set(_), V = new Set(ce), ie = $.value.filter((Ye) => V.has(Ye.value)), he = B.value.filter((Ye) => !V.has(Ye.value) && A.has(Ye.value));
21436
+ const A = new Set(H), V = new Set(ce), ie = $.value.filter((Ye) => V.has(Ye.value)), he = B.value.filter((Ye) => !V.has(Ye.value) && A.has(Ye.value));
21435
21437
  he.length && Ae(he), ie.length && ke(ie);
21436
21438
  }
21437
- }), ve(() => o.items, (ce, _) => {
21439
+ }), ve(() => o.items, (ce, H) => {
21438
21440
  var A, V;
21439
- if (JSON.stringify(ce) !== JSON.stringify(_)) {
21441
+ if (JSON.stringify(ce) !== JSON.stringify(H)) {
21440
21442
  $.value = i(o.items);
21441
21443
  for (let ie = 0; ie < $.value.length; ie++) {
21442
21444
  $.value[ie].selected === void 0 && ($.value[ie].selected = !1);
@@ -21459,7 +21461,7 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21459
21461
  na("resize", it), pt.value = Jn.create(it), pt.value.observe(I.value);
21460
21462
  }), nn(() => {
21461
21463
  pt.value && I.value && pt.value.unobserve(I.value);
21462
- }), (ce, _) => {
21464
+ }), (ce, H) => {
21463
21465
  const A = Ht("KTooltip");
21464
21466
  return g(), T("div", {
21465
21467
  class: de(["k-multiselect", [ce.$attrs.class, { "multiselect-error": e.error }]]),
@@ -21497,10 +21499,10 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21497
21499
  content: N(() => [
21498
21500
  W("div", {
21499
21501
  class: "multiselect-list",
21500
- onClick: _[7] || (_[7] = Ve(() => {
21502
+ onClick: H[7] || (H[7] = Ve(() => {
21501
21503
  }, ["stop"])),
21502
- onMouseenter: _[8] || (_[8] = () => De.value = !0),
21503
- onMouseleave: _[9] || (_[9] = () => De.value = !1)
21504
+ onMouseenter: H[8] || (H[8] = () => De.value = !0),
21505
+ onMouseleave: H[9] || (H[9] = () => De.value = !1)
21504
21506
  }, [
21505
21507
  !e.collapsedContext && !Me.value ? (g(), T("div", KR, [
21506
21508
  Z(An, {
@@ -21514,13 +21516,13 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21514
21516
  placeholder: e.searchPlaceholder || l,
21515
21517
  spellcheck: "false",
21516
21518
  type: "text",
21517
- onClick: _[5] || (_[5] = Ve(() => {
21519
+ onClick: H[5] || (H[5] = Ve(() => {
21518
21520
  }, ["stop"])),
21519
21521
  onFocus: We,
21520
21522
  onKeydown: ut(Ct, ["enter"]),
21521
21523
  onKeyup: [
21522
21524
  Ft,
21523
- _[6] || (_[6] = ut(Ve(() => {
21525
+ H[6] || (H[6] = ut(Ve(() => {
21524
21526
  }, ["stop"]), ["enter"]))
21525
21527
  ],
21526
21528
  "onUpdate:modelValue": xt
@@ -21591,15 +21593,15 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21591
21593
  readonly: Me.value ? !0 : void 0,
21592
21594
  spellcheck: "false",
21593
21595
  type: "text",
21594
- onBlur: _[0] || (_[0] = () => ge.value = !1),
21596
+ onBlur: H[0] || (H[0] = () => ge.value = !1),
21595
21597
  onClick: (he) => {
21596
21598
  V.value && he.stopPropagation();
21597
21599
  },
21598
21600
  onFocus: se,
21599
21601
  onKeydown: ut(Ct, ["enter"]),
21600
21602
  onKeyup: (he) => jt(he, V),
21601
- onMouseenter: _[1] || (_[1] = () => De.value = !0),
21602
- onMouseleave: _[2] || (_[2] = () => De.value = !1),
21603
+ onMouseenter: H[1] || (H[1] = () => De.value = !0),
21604
+ onMouseleave: H[2] || (H[2] = () => De.value = !1),
21603
21605
  "onUpdate:modelValue": xt
21604
21606
  }, null, 8, ["class", "disabled", "model-value", "placeholder", "readonly", "onClick", "onKeyup"])
21605
21607
  ])) : B.value.length ? (g(), T("div", {
@@ -21615,7 +21617,7 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21615
21617
  "icon-before": !1,
21616
21618
  tooltip: he.label,
21617
21619
  "truncation-tooltip": "",
21618
- onClick: _[3] || (_[3] = Ve(() => {
21620
+ onClick: H[3] || (H[3] = Ve(() => {
21619
21621
  }, ["stop"]))
21620
21622
  }, bt({
21621
21623
  default: N(() => [
@@ -21650,7 +21652,7 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21650
21652
  appearance: b(),
21651
21653
  class: "hidden-selection-count",
21652
21654
  "data-testid": "hidden-selection-count",
21653
- onClick: _[4] || (_[4] = Ve(() => {
21655
+ onClick: H[4] || (H[4] = Ve(() => {
21654
21656
  }, ["stop"]))
21655
21657
  }, {
21656
21658
  default: N(() => [
@@ -21725,7 +21727,7 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
21725
21727
  class: "hidden-selection-count"
21726
21728
  }, {
21727
21729
  default: N(() => [
21728
- be(" +" + re(H.value.length), 1)
21730
+ be(" +" + re(_.value.length), 1)
21729
21731
  ]),
21730
21732
  _: 1
21731
21733
  })
@@ -22128,7 +22130,7 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
22128
22130
  Bt((Y) => ({
22129
22131
  "7a729012": $.value,
22130
22132
  "74a91ac0": D.value,
22131
- "7cf2a1e2": H.value
22133
+ "7cf2a1e2": _.value
22132
22134
  }));
22133
22135
  const { getSizeFromString: a, stripRequiredLabel: n } = It(), r = t, i = Jt(), s = Tt(), u = St(), l = y(() => i.id ? String(i.id) : u), o = P(!1), f = P(), d = y(() => {
22134
22136
  var Y;
@@ -22163,7 +22165,7 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
22163
22165
  maxWidth: String(D.value),
22164
22166
  disabled: v.value || m.value
22165
22167
  };
22166
- }), H = y(() => a(e.dropdownMaxHeight)), q = y(() => ({ ...L.value })), ae = y(() => e.placeholder || i.placeholder || "Select..."), U = y(() => !v.value && e.clearable && !!E.value), pe = y(() => !!(E.value && (s["selected-item-template"] || e.reuseItemTemplate && s["item-template"]))), fe = y(() => {
22168
+ }), _ = y(() => a(e.dropdownMaxHeight)), q = y(() => ({ ...L.value })), ae = y(() => e.placeholder || i.placeholder || "Select..."), U = y(() => !v.value && e.clearable && !!E.value), pe = y(() => !!(E.value && (s["selected-item-template"] || e.reuseItemTemplate && s["item-template"]))), fe = y(() => {
22167
22169
  let Y = [];
22168
22170
  if (!e.enableFiltering || !k.value)
22169
22171
  Y = R.value;
@@ -22713,7 +22715,8 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
22713
22715
  default: N(() => b[3] || (b[3] = [
22714
22716
  be(" Apply ")
22715
22717
  ])),
22716
- _: 1
22718
+ _: 1,
22719
+ __: [3]
22717
22720
  })
22718
22721
  ])
22719
22722
  ]),
@@ -22995,7 +22998,7 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
22995
22998
  sortColumnKey: "",
22996
22999
  sortColumnOrder: "desc",
22997
23000
  offset: null
22998
- }, v = P([]), m = P(), b = P([]), h = P([]), p = P(""), C = P(""), w = P(""), k = y(() => b.value.filter((K) => K.hidable).length > 0), S = y(() => !!(k.value && !u.error && !$e.value && !u.loading && v.value && v.value.length)), I = y(() => b.value.filter((K) => K.hidable)), E = y(() => S.value ? u.tablePreferences.columnVisibility || {} : {}), R = P(S.value ? u.tablePreferences.columnVisibility || {} : {}), z = P(0), j = P(!1), M = P(1), O = P(15), $ = P(""), D = P(""), B = P("desc"), L = P(null), H = P([]), q = P(!0), ae = P(!1), U = P(!1), pe = y(() => !!f.toolbar || S.value), fe = y(() => ({
23001
+ }, v = P([]), m = P(), b = P([]), h = P([]), p = P(""), C = P(""), w = P(""), k = y(() => b.value.filter((K) => K.hidable).length > 0), S = y(() => !!(k.value && !u.error && !$e.value && !u.loading && v.value && v.value.length)), I = y(() => b.value.filter((K) => K.hidable)), E = y(() => S.value ? u.tablePreferences.columnVisibility || {} : {}), R = P(S.value ? u.tablePreferences.columnVisibility || {} : {}), z = P(0), j = P(!1), M = P(1), O = P(15), $ = P(""), D = P(""), B = P("desc"), L = P(null), _ = P([]), q = P(!0), ae = P(!1), U = P(!1), pe = y(() => !!f.toolbar || S.value), fe = y(() => ({
22999
23002
  maxHeight: s(u.maxHeight)
23000
23003
  })), De = (K) => `column-${K}`, ge = (K) => `tooltip-${K}`, Te = (K) => K, Me = (K, ee) => (ue, ye) => {
23001
23004
  const Oe = /^on[^a-z]/, Ge = {};
@@ -23111,18 +23114,18 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
23111
23114
  sortColumnOrder: B.value,
23112
23115
  offset: L.value
23113
23116
  });
23114
- return v.value = ee.data, z.value = u.paginationTotalItems || ee.total || ((ue = ee.data) == null ? void 0 : ue.length), u.paginationOffset && ((ye = ee.pagination) != null && ye.offset ? (ke.value = ee.pagination.offset, H.value[M.value] || H.value.push(ee.pagination.offset)) : ke.value = null, q.value = ee.pagination && "hasNextPage" in ee.pagination ? ee.pagination.hasNextPage : !0), v.value.length === 0 && M.value > 1 && (M.value = 1, H.value = [null], L.value = null), ne.value = !1, ee;
23117
+ return v.value = ee.data, z.value = u.paginationTotalItems || ee.total || ((ue = ee.data) == null ? void 0 : ue.length), u.paginationOffset && ((ye = ee.pagination) != null && ye.offset ? (ke.value = ee.pagination.offset, _.value[M.value] || _.value.push(ee.pagination.offset)) : ke.value = null, q.value = ee.pagination && "hasNextPage" in ee.pagination ? ee.pagination.hasNextPage : !0), v.value.length === 0 && M.value > 1 && (M.value = 1, _.value = [null], L.value = null), ne.value = !1, ee;
23115
23118
  }, Y = () => {
23116
23119
  const K = {
23117
23120
  ...c,
23118
23121
  ...u.initialFetcherParams
23119
23122
  };
23120
- M.value = K.page ?? c.page, O.value = K.pageSize ?? c.pageSize, $.value = K.query ?? c.query, D.value = K.sortColumnKey ?? c.sortColumnKey, B.value = K.sortColumnOrder ?? c.sortColumnOrder, u.clientSort && D.value && B.value && i(D.value, "", B.value, v.value), u.paginationOffset && (L.value = K.offset, H.value.push(K.offset)), u.headers && u.headers.length && (b.value = u.headers), U.value = !0;
23123
+ M.value = K.page ?? c.page, O.value = K.pageSize ?? c.pageSize, $.value = K.query ?? c.query, D.value = K.sortColumnKey ?? c.sortColumnKey, B.value = K.sortColumnOrder ?? c.sortColumnOrder, u.clientSort && D.value && B.value && i(D.value, "", B.value, v.value), u.paginationOffset && (L.value = K.offset, _.value.push(K.offset)), u.headers && u.headers.length && (b.value = u.headers), U.value = !0;
23121
23124
  };
23122
23125
  ve(() => u.headers, (K) => {
23123
23126
  K && K.length && (b.value = K);
23124
23127
  }, { deep: !0 });
23125
- const Ce = y(() => H.value[M.value - 1]), ke = P(null), Ae = y(() => {
23128
+ const Ce = y(() => _.value[M.value - 1]), ke = P(null), Ae = y(() => {
23126
23129
  if (!u.fetcher || !U.value)
23127
23130
  return "";
23128
23131
  let K = d;
@@ -23136,9 +23139,9 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
23136
23139
  ), { state: Ft, hasData: se, swrvState: We } = r(ct, xt, la), $e = P(!0), it = y(() => ({
23137
23140
  hasData: se.value,
23138
23141
  state: Ft.value
23139
- })), pt = y(() => $e.value ? "loading" : xt.value ? "error" : "success"), { debouncedFn: ce, generateDebouncedFn: _ } = a(jt, 500), A = _(0), V = (K) => {
23142
+ })), pt = y(() => $e.value ? "loading" : xt.value ? "error" : "success"), { debouncedFn: ce, generateDebouncedFn: H } = a(jt, 500), A = H(0), V = (K) => {
23140
23143
  const { key: ee, useSortHandlerFunction: ue } = K, ye = D.value + "";
23141
- M.value = 1, D.value ? ee === D.value ? B.value === "asc" ? B.value = "desc" : B.value = "asc" : (D.value = ee, B.value = "asc", H.value = [null]) : (D.value = ee, B.value = "asc", H.value = [null]), u.clientSort ? ue && u.sortHandlerFunction ? u.sortHandlerFunction({
23144
+ M.value = 1, D.value ? ee === D.value ? B.value === "asc" ? B.value = "desc" : B.value = "asc" : (D.value = ee, B.value = "asc", _.value = [null]) : (D.value = ee, B.value = "asc", _.value = [null]), u.clientSort ? ue && u.sortHandlerFunction ? u.sortHandlerFunction({
23142
23145
  key: ee,
23143
23146
  prevKey: ye,
23144
23147
  sortColumnOrder: B.value,
@@ -23147,7 +23150,7 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
23147
23150
  }, ie = ({ page: K }) => {
23148
23151
  M.value = K;
23149
23152
  }, he = ({ pageSize: K }) => {
23150
- H.value = [null], L.value = null, O.value = K, M.value = 1, Dt();
23153
+ _.value = [null], L.value = null, O.value = K, M.value = 1, Dt();
23151
23154
  }, Ye = (K) => {
23152
23155
  K && K.target && typeof K.target.scrollTop == "number" && (K.target.scrollTop > 1 ? j.value = !0 : K.target.scrollTop === 0 && (j.value = !j.value));
23153
23156
  }, Be = y(() => ({
@@ -23194,7 +23197,7 @@ const al = () => zR(), YR = { "data-testid": "multiselect-container" }, HR = ["i
23194
23197
  const te = P(!1);
23195
23198
  return ve([Ue, M, O], async (K, ee) => {
23196
23199
  const ue = ee == null ? void 0 : ee[0], ye = K[0], Oe = K[1];
23197
- ye !== ue && Oe !== 1 && (M.value = 1, H.value = [null], L.value = null), U.value && !ne.value && (te.value = !0, ye !== "" && ye !== ue ? await ce() : await A(), te.value = !1);
23200
+ ye !== ue && Oe !== 1 && (M.value = 1, _.value = [null], L.value = null), U.value && !ne.value && (te.value = !0, ye !== "" && ye !== ue ? await ce() : await A(), te.value = !1);
23198
23201
  }, { deep: !0, immediate: !0 }), ve(S, (K) => {
23199
23202
  K && (R.value = u.tablePreferences.columnVisibility || {});
23200
23203
  }, { immediate: !0 }), ot(() => {
@@ -24649,9 +24652,9 @@ Fe.prototype = /** @lends Sortable.prototype */
24649
24652
  fr = n, wi = I;
24650
24653
  var B = n.nextElementSibling, L = !1;
24651
24654
  L = I === 1;
24652
- var H = No(mt, a, me, r, n, i, t, L);
24653
- if (H !== !1)
24654
- return (H === 1 || H === -1) && (L = H === 1), pu = !0, setTimeout(Xz, 30), p(), L && !B ? a.appendChild(me) : n.parentNode.insertBefore(me, L ? B : n), M && n1(M, 0, O - M.scrollTop), kt = me.parentNode, E !== void 0 && !Mo && (jo = Math.abs(E - Ot(n)[j])), w(), C(!0);
24655
+ var _ = No(mt, a, me, r, n, i, t, L);
24656
+ if (_ !== !1)
24657
+ return (_ === 1 || _ === -1) && (L = _ === 1), pu = !0, setTimeout(Xz, 30), p(), L && !B ? a.appendChild(me) : n.parentNode.insertBefore(me, L ? B : n), M && n1(M, 0, O - M.scrollTop), kt = me.parentNode, E !== void 0 && !Mo && (jo = Math.abs(E - Ot(n)[j])), w(), C(!0);
24655
24658
  }
24656
24659
  if (a.contains(me))
24657
24660
  return C(!1);
@@ -25540,8 +25543,8 @@ const mY = {
25540
25543
  O == null || O.setExpandedValue(!0);
25541
25544
  });
25542
25545
  }, S = y(() => n.level > n.maxDepth - 1), I = (M) => {
25543
- var L, H, q, ae;
25544
- const O = ((H = (L = M.relatedContext) == null ? void 0 : L.component) == null ? void 0 : H.$attrs.level) || 0, $ = (q = M.draggedContext) == null ? void 0 : q.element;
25546
+ var L, _, q, ae;
25547
+ const O = ((_ = (L = M.relatedContext) == null ? void 0 : L.component) == null ? void 0 : _.$attrs.level) || 0, $ = (q = M.draggedContext) == null ? void 0 : q.element;
25545
25548
  let D = 0;
25546
25549
  return (ae = $.children) != null && ae.length && (D = Ad($)), !(O + D > n.maxDepth - 1);
25547
25550
  }, E = (M) => {
@@ -25955,7 +25958,8 @@ const mY = {
25955
25958
  default: N(() => C[0] || (C[0] = [
25956
25959
  be(" Show more ")
25957
25960
  ])),
25958
- _: 1
25961
+ _: 1,
25962
+ __: [0]
25959
25963
  })
25960
25964
  ], !0)
25961
25965
  ])),
@@ -25969,7 +25973,8 @@ const mY = {
25969
25973
  default: N(() => C[1] || (C[1] = [
25970
25974
  be(" Show less ")
25971
25975
  ])),
25972
- _: 1
25976
+ _: 1,
25977
+ __: [1]
25973
25978
  })
25974
25979
  ], !0)
25975
25980
  ])) : G("", !0)
@@ -26244,8 +26249,8 @@ const mY = {
26244
26249
  }));
26245
26250
  const a = Wp(e, ["resizeColumns", "tablePreferences", "rowHover", "rowAttrs", "rowLink", "rowBulkActionEnabled", "rowKey", "cellAttrs", "loading", "emptyStateTitle", "emptyStateMessage", "emptyStateActionMessage", "emptyStateIconVariant", "emptyStateButtonAppearance", "emptyStateActionRoute", "error", "errorStateTitle", "errorStateMessage", "errorStateActionMessage", "errorStateActionRoute", "maxHeight", "hidePagination", "paginationAttributes", "rowExpandable", "rowExpanded", "hideHeaders", "nested", "hidePaginationWhenOptional", "hideToolbar", "tooltipTarget", "data", "headers"]), n = t, r = Tt(), i = St(), { getSizeFromString: s } = It(), u = (F) => typeof e.rowKey == "function" && typeof e.rowKey(F) == "string" ? e.rowKey(F) : typeof e.rowKey == "string" && e.rowKey in F && typeof F[e.rowKey] == "string" ? F[e.rowKey] : "", l = Mt("table-wrapper"), o = Mt("header-row"), f = P([]), d = P([]), c = P(""), v = P(""), m = P(""), b = y(() => f.value.filter((F) => F.hidable).length > 0), h = y(() => e.nested || !b.value || e.error ? !1 : r.toolbar ? !0 : !e.loading && !!e.data && !!e.data.length), p = y(() => e.loading || !(e.data && e.data.length)), C = y(() => f.value.filter((F) => F.hidable && !ke(F.key))), w = y(() => h.value ? e.tablePreferences.columnVisibility || {} : {}), k = P(h.value ? e.tablePreferences.columnVisibility || {} : {}), S = P("100%"), I = P(!1), E = P(!1), R = P(!1), z = P(!1), j = P(""), M = P("desc"), O = P(!1), $ = y(() => !e.hideToolbar && !e.nested && (!!r.toolbar || h.value || U.value)), D = P(!1), B = y(() => ({
26246
26251
  maxHeight: s(e.maxHeight)
26247
- })), L = y(() => `${Jh()}px`), H = P([]), q = y(() => !e.nested && !e.error && f.value.some((F) => F.key === je.BULK_ACTIONS) && !!(r["bulk-action-items"] || r["bulk-actions"]) && !!e.data.every((F) => u(F))), ae = P([]), U = y(() => e.nested || !q.value || e.error ? !1 : r.toolbar ? !0 : !e.loading && !!e.data && !!e.data.length), pe = y(() => {
26248
- const F = H.value.length;
26252
+ })), L = y(() => `${Jh()}px`), _ = P([]), q = y(() => !e.nested && !e.error && f.value.some((F) => F.key === je.BULK_ACTIONS) && !!(r["bulk-action-items"] || r["bulk-actions"]) && !!e.data.every((F) => u(F))), ae = P([]), U = y(() => e.nested || !q.value || e.error ? !1 : r.toolbar ? !0 : !e.loading && !!e.data && !!e.data.length), pe = y(() => {
26253
+ const F = _.value.length;
26249
26254
  return F ? F > 100 ? "99+" : String(F) : "";
26250
26255
  }), fe = P(/* @__PURE__ */ new WeakMap()), De = (F) => `column-${F}`, ge = (F) => `tooltip-${F}`, Te = (F, J) => (te, K) => {
26251
26256
  const ee = /^on[^a-z]/, ue = {};
@@ -26422,12 +26427,12 @@ const mY = {
26422
26427
  ...se.value && !e.hidePagination && { pageSize: se.value }
26423
26428
  })), it = () => {
26424
26429
  n("update:table-preferences", $e.value);
26425
- }, pt = y(() => !e.nested && e.data.some((F) => e.rowExpandable(F))), ce = { key: je.EXPANDABLE, label: "Expandable rows controls", hideLabel: !0 }, _ = () => {
26430
+ }, pt = y(() => !e.nested && e.data.some((F) => e.rowExpandable(F))), ce = { key: je.EXPANDABLE, label: "Expandable rows controls", hideLabel: !0 }, H = () => {
26426
26431
  const F = [];
26427
26432
  return e.data.forEach((J, te) => {
26428
26433
  e.rowExpanded(J) && F.push(te);
26429
26434
  }), F;
26430
- }, A = P(_()), V = async (F, J) => {
26435
+ }, A = P(H()), V = async (F, J) => {
26431
26436
  Ye(), await yt(), A.value.includes(F) ? (A.value = A.value.filter((te) => te !== F), n("update:row-expanded", { row: J, expanded: !1 })) : (A.value = [...A.value, F], n("update:row-expanded", { row: J, expanded: !0 }));
26432
26437
  }, ie = y(() => d.value.filter((F) => F.key !== je.EXPANDABLE && F.key !== je.BULK_ACTIONS)), he = P({}), Ye = () => {
26433
26438
  if (typeof document > "u")
@@ -26477,12 +26482,12 @@ const mY = {
26477
26482
  const Oe = te.find((Ge) => Ge.rowKey === u(ye));
26478
26483
  return !!(Oe && Oe.selected);
26479
26484
  }), ue = [];
26480
- H.value.forEach((ye) => {
26485
+ _.value.forEach((ye) => {
26481
26486
  J.find((Ge) => u(ye) === u(Ge)) || ue.push(ye);
26482
- }), H.value = [...ue, ...ee];
26487
+ }), _.value = [...ue, ...ee];
26483
26488
  }
26484
- A.value = _();
26485
- }, { deep: !0, immediate: !0 }), ve(H, (F) => {
26489
+ A.value = H();
26490
+ }, { deep: !0, immediate: !0 }), ve(_, (F) => {
26486
26491
  n("row-select", F);
26487
26492
  }), ve(() => e.tablePreferences, (F) => {
26488
26493
  F != null && F.columnWidths && (Je.value = F.columnWidths);
@@ -26498,7 +26503,7 @@ const mY = {
26498
26503
  U.value || h.value ? (g(), T("div", ZY, [
26499
26504
  U.value ? Q(F.$slots, "bulk-actions", {
26500
26505
  key: 0,
26501
- selectedRows: H.value
26506
+ selectedRows: _.value
26502
26507
  }, () => [
26503
26508
  F.$slots["bulk-actions"] ? G("", !0) : (g(), X(GY, {
26504
26509
  key: 0,
@@ -26507,7 +26512,7 @@ const mY = {
26507
26512
  disabled: !pe.value || F.loading || !F.data.length
26508
26513
  }, {
26509
26514
  items: N(() => [
26510
- Q(F.$slots, "bulk-action-items", { selectedRows: H.value }, void 0, !0)
26515
+ Q(F.$slots, "bulk-action-items", { selectedRows: _.value }, void 0, !0)
26511
26516
  ]),
26512
26517
  _: 3
26513
26518
  }, 8, ["button-label", "count", "disabled"]))
@@ -26700,9 +26705,8 @@ const mY = {
26700
26705
  "last-row": K === F.data.length - 1 && !A.value.includes(K)
26701
26706
  },
26702
26707
  role: F.rowLink(te).to ? "link" : void 0,
26703
- tabindex: O.value && !F.rowLink(te).to ? 0 : void 0,
26704
- ref_for: !0
26705
- }, F.rowAttrs(te)), [
26708
+ tabindex: O.value && !F.rowLink(te).to ? 0 : void 0
26709
+ }, { ref_for: !0 }, F.rowAttrs(te)), [
26706
26710
  (g(!0), T(xe, null, ze(d.value, (ee, ue) => (g(), T("td", He({
26707
26711
  key: `${fe.value.get(te)}-cell-${ee.key}`,
26708
26712
  class: {
@@ -26712,14 +26716,12 @@ const mY = {
26712
26716
  "second-sticky-column": ee.key === x(je).BULK_ACTIONS && pt.value,
26713
26717
  "has-row-scroll-overlay": Ce(ee.key)
26714
26718
  },
26715
- style: Qe.value[ee.key],
26716
- ref_for: !0
26717
- }, F.cellAttrs({ headerKey: ee.key, row: te, rowIndex: K, colIndex: ue }), Ms(Me.value(te[ee.key], te), !0)), [
26719
+ style: Qe.value[ee.key]
26720
+ }, { ref_for: !0 }, F.cellAttrs({ headerKey: ee.key, row: te, rowIndex: K, colIndex: ue }), Ms(Me.value(te[ee.key], te), !0)), [
26718
26721
  ee.key !== x(je).EXPANDABLE ? (g(), X(_e(la(te, ee.key)), He({
26719
26722
  key: 0,
26720
- class: "cell-wrapper",
26721
- ref_for: !0
26722
- }, Ft(te, ee.key)), {
26723
+ class: "cell-wrapper"
26724
+ }, { ref_for: !0 }, Ft(te, ee.key)), {
26723
26725
  default: N(() => [
26724
26726
  ee.key !== x(je).BULK_ACTIONS && ee.key !== x(je).ACTIONS ? Q(F.$slots, ee.key, {
26725
26727
  key: 0,
@@ -26949,7 +26951,7 @@ const mY = {
26949
26951
  offsetPreviousButtonDisabled: !De.value,
26950
26952
  offsetNextButtonDisabled: !ge.value || !E.value,
26951
26953
  ...e.paginationAttributes
26952
- })), M = (se) => se.startsWith("column-"), O = (se) => se.startsWith("tooltip-"), $ = (se) => v.value.some((We) => We.key === se), D = y(() => s ? Object.keys(s).filter(M) : []), B = y(() => s ? Object.keys(s).filter(O) : []), L = y(() => s ? Object.keys(s).filter($) : []), H = y(() => ({
26954
+ })), M = (se) => se.startsWith("column-"), O = (se) => se.startsWith("tooltip-"), $ = (se) => v.value.some((We) => We.key === se), D = y(() => s ? Object.keys(s).filter(M) : []), B = y(() => s ? Object.keys(s).filter(O) : []), L = y(() => s ? Object.keys(s).filter($) : []), _ = y(() => ({
26953
26955
  sortColumnKey: w.value,
26954
26956
  sortColumnOrder: k.value
26955
26957
  })), q = y(() => ({
@@ -26957,10 +26959,10 @@ const mY = {
26957
26959
  page: h.value,
26958
26960
  query: C.value,
26959
26961
  offset: S.value,
26960
- ...e.clientSort ? {} : H.value
26962
+ ...e.clientSort ? {} : _.value
26961
26963
  })), ae = y(() => ({
26962
26964
  ...q.value,
26963
- ...H.value
26965
+ ..._.value
26964
26966
  })), U = P(!0), pe = async () => {
26965
26967
  const se = await e.fetcher(ae.value);
26966
26968
  return U.value = !1, se;
@@ -26994,17 +26996,23 @@ const mY = {
26994
26996
  state: qe.value
26995
26997
  })), Y = y(() => oe.value ? "loading" : Qe.value ? "error" : "success"), { debouncedFn: Ce } = u(at, 500), ke = ({ sortColumnKey: se, prevKey: We, sortColumnOrder: $e }) => {
26996
26998
  var ce;
26997
- const it = v.value.find((_) => _.key === se), { useSortHandlerFunction: pt } = it;
26998
- i("sort", {
26999
+ const it = v.value.find((H) => H.key === se), { useSortHandlerFunction: pt } = it;
27000
+ if (i("sort", {
26999
27001
  prevKey: We,
27000
27002
  sortColumnKey: se,
27001
27003
  sortColumnOrder: $e
27002
- }), h.value = 1, (!w.value || se !== w.value) && (I.value = [null]), w.value = se, k.value = $e, e.clientSort ? pt && e.sortHandlerFunction ? e.sortHandlerFunction({
27003
- key: se,
27004
- prevKey: We,
27005
- sortColumnOrder: k.value,
27006
- data: c.value
27007
- }) : f(se, We, k.value, c.value) : (ce = e.paginationAttributes) != null && ce.offset || Ce();
27004
+ }), h.value = 1, (!w.value || se !== w.value) && (I.value = [null]), w.value = se, k.value = $e, e.clientSort)
27005
+ if (pt && e.sortHandlerFunction) {
27006
+ const H = e.sortHandlerFunction({
27007
+ key: se,
27008
+ prevKey: We,
27009
+ sortColumnOrder: k.value,
27010
+ data: c.value
27011
+ });
27012
+ H && (c.value = [...H]);
27013
+ } else
27014
+ f(se, We, k.value, c.value);
27015
+ else (ce = e.paginationAttributes) != null && ce.offset || Ce();
27008
27016
  }, Ae = ({ page: se }) => {
27009
27017
  h.value = se;
27010
27018
  }, Ue = ({ pageSize: se }) => {