@kong/kongponents 9.14.12 → 9.14.13

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.
@@ -4070,7 +4070,7 @@ const Qg = function(e) {
4070
4070
  switch (v) {
4071
4071
  case "bestFit": {
4072
4072
  var R;
4073
- const N = (R = W.map((j) => [j.placement, j.overflows.filter((ae) => ae > 0).reduce((ae, J) => ae + J, 0)]).sort((j, ae) => j[1] - ae[1])[0]) == null ? void 0 : R[0];
4073
+ const N = (R = W.map((j) => [j.placement, j.overflows.filter((ae) => ae > 0).reduce((ae, X) => ae + X, 0)]).sort((j, ae) => j[1] - ae[1])[0]) == null ? void 0 : R[0];
4074
4074
  N && (I = N);
4075
4075
  break;
4076
4076
  }
@@ -6621,7 +6621,7 @@ const W1 = {
6621
6621
  }), n.currentPage !== 1 && I(1));
6622
6622
  }, ae = () => {
6623
6623
  r("getNextOffset");
6624
- }, J = () => {
6624
+ }, X = () => {
6625
6625
  r("getPreviousOffset");
6626
6626
  };
6627
6627
  return ve(() => n.currentPage, (ee, _) => {
@@ -6651,7 +6651,7 @@ const W1 = {
6651
6651
  "next-button-disabled": e.offsetNextButtonDisabled,
6652
6652
  "previous-button-disabled": e.offsetPreviousButtonDisabled,
6653
6653
  onGetNextOffset: ae,
6654
- onGetPreviousOffset: J
6654
+ onGetPreviousOffset: X
6655
6655
  }, null, 8, ["next-button-disabled", "previous-button-disabled"])) : (p(), $(Te, { key: 0 }, [
6656
6656
  z("span", W1, [
6657
6657
  z("span", U1, ne(D.value), 1),
@@ -7016,8 +7016,8 @@ const W1 = {
7016
7016
  emits: ["card-click", "error-action-click", "empty-state-action-click", "update:catalog-preferences", "state"],
7017
7017
  setup(e, { emit: t }) {
7018
7018
  const { useRequest: a, useDebounce: n, useSwrvState: r } = xt(), i = e, s = t, l = At(), o = yt(), u = () => {
7019
- var X;
7020
- const G = (X = i.paginationPageSizes) == null ? void 0 : X[0];
7019
+ var J;
7020
+ const G = (J = i.paginationPageSizes) == null ? void 0 : J[0];
7021
7021
  return G || cc;
7022
7022
  }, d = E([]), c = E(0), f = E(""), v = E(1), g = E(u()), w = E(null), S = E([]), m = b(() => S.value[v.value - 1]), y = E(null), k = E(!0), C = E(!1), D = b(() => !!l.toolbar), M = {
7023
7023
  page: 1,
@@ -7028,13 +7028,13 @@ const W1 = {
7028
7028
  pageSize: g.value
7029
7029
  })), U = E(!0), R = async () => {
7030
7030
  var ge, De;
7031
- const G = i.searchInput, X = await i.fetcher({
7031
+ const G = i.searchInput, J = await i.fetcher({
7032
7032
  query: G || f.value,
7033
7033
  pageSize: g.value,
7034
7034
  page: v.value,
7035
7035
  offset: w.value
7036
7036
  });
7037
- return d.value = X.data, c.value = i.paginationTotalItems || X.total || ((ge = X.data) == null ? void 0 : ge.length), i.paginationOffset && ((De = X.pagination) != null && De.offset ? (y.value = X.pagination.offset, S.value[v.value] || S.value.push(X.pagination.offset)) : y.value = null, k.value = X.pagination && "hasNextPage" in X.pagination ? X.pagination.hasNextPage : !0), d.value.length === 0 && v.value > 1 && (v.value = 1, S.value = [null], w.value = null), U.value = !1, X;
7037
+ return d.value = J.data, c.value = i.paginationTotalItems || J.total || ((ge = J.data) == null ? void 0 : ge.length), i.paginationOffset && ((De = J.pagination) != null && De.offset ? (y.value = J.pagination.offset, S.value[v.value] || S.value.push(J.pagination.offset)) : y.value = null, k.value = J.pagination && "hasNextPage" in J.pagination ? J.pagination.hasNextPage : !0), d.value.length === 0 && v.value > 1 && (v.value = 1, S.value = [null], w.value = null), U.value = !1, J;
7038
7038
  }, F = () => {
7039
7039
  const G = {
7040
7040
  ...M,
@@ -7048,11 +7048,11 @@ const W1 = {
7048
7048
  return i.cacheIdentifier && (G = i.cacheIdentifier), i.fetcherCacheKey && (G += `-${i.fetcherCacheKey}`), `k-catalog_${G}`;
7049
7049
  }), I = E(""), { debouncedFn: N, generateDebouncedFn: j } = n((G) => {
7050
7050
  I.value = G;
7051
- }, 350), ae = j(0), { data: J, error: ee, revalidate: _, isValidating: le } = a(
7051
+ }, 350), ae = j(0), { data: X, error: ee, revalidate: _, isValidating: le } = a(
7052
7052
  () => T.value,
7053
7053
  () => R(),
7054
7054
  { revalidateOnFocus: !1, revalidateDebounce: 0 }
7055
- ), { state: se, hasData: be, swrvState: ye } = r(J, ee, le), Ce = E(!0), Me = b(() => ({
7055
+ ), { state: se, hasData: be, swrvState: ye } = r(X, ee, le), Ce = E(!0), Me = b(() => ({
7056
7056
  hasData: be.value,
7057
7057
  state: se.value
7058
7058
  })), _e = b(() => Ce.value ? "loading" : ee.value ? "error" : "success"), Le = ({ page: G }) => {
@@ -7064,13 +7064,13 @@ const W1 = {
7064
7064
  }, Ke = () => {
7065
7065
  v.value--, w.value = m.value;
7066
7066
  }, Ge = (G) => G.toLowerCase().replace(/[^[a-z0-9]/gi, "-"), et = b(() => {
7067
- var X;
7067
+ var J;
7068
7068
  if (!i.fetcher || i.disablePagination || !d.value || !d.value.length || i.error)
7069
7069
  return !1;
7070
- const G = ((X = i.paginationPageSizes) == null ? void 0 : X[0]) ?? cc;
7070
+ const G = ((J = i.paginationPageSizes) == null ? void 0 : J[0]) ?? cc;
7071
7071
  return i.hidePaginationWhenOptional && v.value === 1 ? i.paginationOffset ? !!m.value || !!y.value || d.value.length >= G : c.value > G : !0;
7072
7072
  });
7073
- ve(J, (G) => {
7073
+ ve(X, (G) => {
7074
7074
  G != null && G.length && !d.value.length && (d.value = G);
7075
7075
  }, { deep: !0, immediate: !0 }), ve(se, () => {
7076
7076
  switch (se.value) {
@@ -7085,25 +7085,25 @@ const W1 = {
7085
7085
  break;
7086
7086
  }
7087
7087
  }, { immediate: !0 }), ve([Me, _e], (G) => {
7088
- var X;
7088
+ var J;
7089
7089
  s("state", {
7090
7090
  state: G == null ? void 0 : G[1],
7091
7091
  // newData[catalogState]
7092
- hasData: (X = G == null ? void 0 : G[0]) == null ? void 0 : X.hasData
7092
+ hasData: (J = G == null ? void 0 : G[0]) == null ? void 0 : J.hasData
7093
7093
  // newData[stateData].hasData
7094
7094
  });
7095
7095
  }), ve(() => i.searchInput, (G) => {
7096
7096
  v.value !== 1 && (v.value = 1), G === "" ? ae(G) : N(G);
7097
7097
  }, { immediate: !0 });
7098
7098
  const tt = E(!1);
7099
- return ve([I, v, g], async (G, X) => {
7100
- const ge = X == null ? void 0 : X[0], De = G[0], Z = G[1];
7099
+ return ve([I, v, g], async (G, J) => {
7100
+ const ge = J == null ? void 0 : J[0], De = G[0], Z = G[1];
7101
7101
  De !== ge && Z !== 1 && (v.value = 1, S.value = [null], w.value = null), C.value && !U.value && (tt.value = !0, await _(), tt.value = !1);
7102
7102
  }, { deep: !0, immediate: !0 }), ve(K, (G) => {
7103
7103
  s("update:catalog-preferences", G);
7104
7104
  }), st(() => {
7105
7105
  F();
7106
- }), (G, X) => {
7106
+ }), (G, J) => {
7107
7107
  const ge = Lt("bind-once");
7108
7108
  return p(), $("div", ny, [
7109
7109
  e.title ? (p(), Q(Fe(e.titleTag), {
@@ -7138,7 +7138,7 @@ const W1 = {
7138
7138
  V(ot, {
7139
7139
  "data-testid": Ge(e.errorStateActionMessage),
7140
7140
  to: e.errorStateActionRoute ? e.errorStateActionRoute : void 0,
7141
- onClick: X[0] || (X[0] = (De) => G.$emit("error-action-click"))
7141
+ onClick: J[0] || (J[0] = (De) => G.$emit("error-action-click"))
7142
7142
  }, {
7143
7143
  default: O(() => [
7144
7144
  fe(ne(e.errorStateActionMessage), 1)
@@ -7164,7 +7164,7 @@ const W1 = {
7164
7164
  appearance: e.searchInput ? "tertiary" : "primary",
7165
7165
  "data-testid": Ge(e.emptyStateActionMessage),
7166
7166
  to: e.emptyStateActionRoute ? e.emptyStateActionRoute : void 0,
7167
- onClick: X[1] || (X[1] = (De) => G.$emit("empty-state-action-click"))
7167
+ onClick: J[1] || (J[1] = (De) => G.$emit("empty-state-action-click"))
7168
7168
  }, {
7169
7169
  default: O(() => [
7170
7170
  q(G.$slots, "empty-state-action-icon", {}, void 0, !0),
@@ -7818,25 +7818,25 @@ const Sy = {
7818
7818
  const { getSizeFromString: a } = xt(), r = ((tt = (et = window == null ? void 0 : window.navigator) == null ? void 0 : et.platform) == null ? void 0 : tt.toLowerCase().includes("mac")) ? "Option" : "Alt", i = qf(_, 150), s = e, l = t, o = At(), u = E(s.query), d = E(!1), c = E(s.initialRegExpMode), f = E(s.initialFilterMode), v = E(null), g = E(null), w = E(s.query), S = E(0), m = E([]), y = E(null), k = b(() => {
7819
7819
  var G;
7820
7820
  return Array.from({ length: (G = s.code) == null ? void 0 : G.split(`
7821
- `).length }, (X, ge) => ge + 1);
7821
+ `).length }, (J, ge) => ge + 1);
7822
7822
  }), C = b(() => {
7823
7823
  var G;
7824
7824
  return ((G = k.value[k.value.length - 1]) == null ? void 0 : G.toString().length) + "ch";
7825
7825
  }), D = b(() => s.id.toLowerCase().replace(/\s+/g, "-")), M = b(() => s.processing || d.value), P = b(() => f.value && W.value !== ""), W = b(() => {
7826
7826
  var G;
7827
7827
  return w.value === "" ? "" : (G = s.code) == null ? void 0 : G.split(`
7828
- `).filter((X, ge) => m.value.includes(ge + 1)).map((X) => {
7828
+ `).filter((J, ge) => m.value.includes(ge + 1)).map((J) => {
7829
7829
  try {
7830
7830
  const ge = new RegExp(w.value, "gi");
7831
- return X.replace(ge, (De) => `<span class="matched-term">${De}</span>`);
7831
+ return J.replace(ge, (De) => `<span class="matched-term">${De}</span>`);
7832
7832
  } catch {
7833
- return X;
7833
+ return J;
7834
7834
  }
7835
7835
  }).join(`
7836
7836
  `);
7837
7837
  }), K = b(() => !s.singleLine && s.searchable), U = (G) => {
7838
- var X, ge, De, Z;
7839
- return (Z = (De = (ge = (X = G == null ? void 0 : G.replaceAll("&", "&amp;")) == null ? void 0 : X.replaceAll("<", "&lt;")) == null ? void 0 : ge.replaceAll(">", "&gt;")) == null ? void 0 : De.replaceAll('"', "&quot;")) == null ? void 0 : Z.replaceAll("'", "&#039;");
7838
+ var J, ge, De, Z;
7839
+ return (Z = (De = (ge = (J = G == null ? void 0 : G.replaceAll("&", "&amp;")) == null ? void 0 : J.replaceAll("<", "&lt;")) == null ? void 0 : ge.replaceAll(">", "&gt;")) == null ? void 0 : De.replaceAll('"', "&quot;")) == null ? void 0 : Z.replaceAll("'", "&#039;");
7840
7840
  }, R = b(() => {
7841
7841
  var G;
7842
7842
  return s.singleLine ? (G = U(s.code)) == null ? void 0 : G.replaceAll(`
@@ -7847,8 +7847,8 @@ const Sy = {
7847
7847
  }), ve(() => c.value, function() {
7848
7848
  le();
7849
7849
  }), ve(() => P.value, async function() {
7850
- var G, X;
7851
- ((G = document == null ? void 0 : document.activeElement) == null ? void 0 : G.tagName) === "PRE" && ((X = g.value) == null || X.focus({ preventScroll: !0 })), P.value || (await gt(), j(), le());
7850
+ var G, J;
7851
+ ((G = document == null ? void 0 : document.activeElement) == null ? void 0 : G.tagName) === "PRE" && ((J = g.value) == null || J.focus({ preventScroll: !0 })), P.value || (await gt(), j(), le());
7852
7852
  });
7853
7853
  const T = {
7854
7854
  "alt+c": "copyCode",
@@ -7905,18 +7905,18 @@ const Sy = {
7905
7905
  });
7906
7906
  function j() {
7907
7907
  var ge;
7908
- const G = (ge = g.value) == null ? void 0 : ge.querySelector(".highlighted-code-block"), X = G == null ? void 0 : G.querySelector("code");
7909
- G instanceof HTMLElement && X instanceof HTMLElement && l("code-block-render", J(G, X));
7908
+ const G = (ge = g.value) == null ? void 0 : ge.querySelector(".highlighted-code-block"), J = G == null ? void 0 : G.querySelector("code");
7909
+ G instanceof HTMLElement && J instanceof HTMLElement && l("code-block-render", X(G, J));
7910
7910
  }
7911
7911
  function ae() {
7912
7912
  var ge;
7913
- const G = (ge = g.value) == null ? void 0 : ge.querySelector(".highlighted-code-block"), X = G == null ? void 0 : G.querySelector("code");
7914
- G instanceof HTMLElement && X instanceof HTMLElement && l("matching-lines-change", J(G, X));
7913
+ const G = (ge = g.value) == null ? void 0 : ge.querySelector(".highlighted-code-block"), J = G == null ? void 0 : G.querySelector("code");
7914
+ G instanceof HTMLElement && J instanceof HTMLElement && l("matching-lines-change", X(G, J));
7915
7915
  }
7916
- function J(G, X) {
7916
+ function X(G, J) {
7917
7917
  return {
7918
7918
  preElement: G,
7919
- codeElement: X,
7919
+ codeElement: J,
7920
7920
  code: s.code,
7921
7921
  language: s.language,
7922
7922
  query: u.value,
@@ -7935,23 +7935,23 @@ const Sy = {
7935
7935
  if (w.value.length > 0)
7936
7936
  try {
7937
7937
  G = se(s.code.toLowerCase(), w.value.toLowerCase(), c.value);
7938
- } catch (X) {
7939
- if (X instanceof Error)
7940
- v.value = X;
7938
+ } catch (J) {
7939
+ if (J instanceof Error)
7940
+ v.value = J;
7941
7941
  else
7942
- throw X;
7942
+ throw J;
7943
7943
  }
7944
7944
  y.value = null, S.value = G.length, m.value = Array.from(new Set(G)), ae(), d.value = !1;
7945
7945
  }
7946
- function se(G, X, ge) {
7947
- return ge ? ye(G, X) : be(G, X);
7946
+ function se(G, J, ge) {
7947
+ return ge ? ye(G, J) : be(G, J);
7948
7948
  }
7949
- function be(G, X) {
7949
+ function be(G, J) {
7950
7950
  var Z;
7951
7951
  const ge = [];
7952
7952
  let De = 0;
7953
7953
  for (; De < G.length; ) {
7954
- const pe = G.indexOf(X, De);
7954
+ const pe = G.indexOf(J, De);
7955
7955
  if (pe === -1)
7956
7956
  break;
7957
7957
  const Oe = (Z = G.substring(0, pe)) == null ? void 0 : Z.split(`
@@ -7960,9 +7960,9 @@ const Sy = {
7960
7960
  }
7961
7961
  return ge;
7962
7962
  }
7963
- function ye(G, X) {
7963
+ function ye(G, J) {
7964
7964
  var Z;
7965
- const ge = G.matchAll(new RegExp(X, "g")), De = [];
7965
+ const ge = G.matchAll(new RegExp(J, "g")), De = [];
7966
7966
  for (const pe of Array.from(ge))
7967
7967
  if (pe.index !== void 0) {
7968
7968
  const Oe = (Z = G.substring(0, pe.index)) == null ? void 0 : Z.split(`
@@ -7990,20 +7990,20 @@ const Sy = {
7990
7990
  if (m.value.length === 0 || !(g.value instanceof HTMLElement))
7991
7991
  return;
7992
7992
  typeof y.value == "number" ? y.value = (y.value + G + m.value.length) % m.value.length : y.value = 0;
7993
- const X = m.value[y.value];
7994
- if (!X)
7993
+ const J = m.value[y.value];
7994
+ if (!J)
7995
7995
  return;
7996
- const ge = g.value.querySelector(`#${D.value}-L${X}`);
7996
+ const ge = g.value.querySelector(`#${D.value}-L${J}`);
7997
7997
  ge instanceof HTMLElement && typeof ge.scrollIntoView == "function" && ge.scrollIntoView({ block: "center" });
7998
7998
  }
7999
7999
  async function Ke(G) {
8000
- const X = G.target.closest("button");
8001
- await gf(s.code) && (X == null || X.setAttribute("data-tooltip-text", "Copied code!"), window == null || window.setTimeout(function() {
8002
- X == null || X.removeAttribute("data-tooltip-text");
8000
+ const J = G.target.closest("button");
8001
+ await gf(s.code) && (J == null || J.setAttribute("data-tooltip-text", "Copied code!"), window == null || window.setTimeout(function() {
8002
+ J == null || J.removeAttribute("data-tooltip-text");
8003
8003
  }, 1500));
8004
8004
  }
8005
8005
  const Ge = b(() => s.theme === "light" ? Sg : ms);
8006
- return (G, X) => (p(), $("div", {
8006
+ return (G, J) => (p(), $("div", {
8007
8007
  id: e.id,
8008
8008
  ref_key: "codeBlock",
8009
8009
  ref: g,
@@ -8014,7 +8014,7 @@ const Sy = {
8014
8014
  K.value ? (p(), $("div", xy, [
8015
8015
  V(dn, {
8016
8016
  modelValue: w.value,
8017
- "onUpdate:modelValue": X[0] || (X[0] = (ge) => w.value = ge),
8017
+ "onUpdate:modelValue": J[0] || (J[0] = (ge) => w.value = ge),
8018
8018
  "aria-label": "Search",
8019
8019
  class: "code-block-search-input",
8020
8020
  "data-testid": "code-block-search-input",
@@ -8142,31 +8142,31 @@ const Sy = {
8142
8142
  ])) : H("", !0),
8143
8143
  z("div", Ey, [
8144
8144
  P.value ? (p(), $("pre", Iy, [
8145
- X[5] || (X[5] = fe(" ")),
8145
+ J[5] || (J[5] = fe(" ")),
8146
8146
  e.singleLine ? H("", !0) : (p(), $("span", Oy, [
8147
- X[3] || (X[3] = fe(`
8147
+ J[3] || (J[3] = fe(`
8148
8148
  `)),
8149
8149
  (p(!0), $(Te, null, Be(m.value, (ge) => (p(), $("span", {
8150
8150
  key: ge,
8151
8151
  class: "line"
8152
8152
  }, [
8153
- X[1] || (X[1] = fe(`
8153
+ J[1] || (J[1] = fe(`
8154
8154
  `)),
8155
8155
  z("a", {
8156
8156
  id: `${D.value}-L${ge}`,
8157
8157
  class: "line-anchor",
8158
8158
  href: e.showLineNumberLinks ? `#${D.value}-L${ge}` : void 0
8159
8159
  }, ne(ge), 9, Py),
8160
- X[2] || (X[2] = fe(`
8160
+ J[2] || (J[2] = fe(`
8161
8161
  `))
8162
8162
  ]))), 128)),
8163
- X[4] || (X[4] = fe(`
8163
+ J[4] || (J[4] = fe(`
8164
8164
  `))
8165
8165
  ])),
8166
- X[6] || (X[6] = fe(`
8166
+ J[6] || (J[6] = fe(`
8167
8167
  `)),
8168
8168
  z("code", { innerHTML: W.value }, null, 8, Ny),
8169
- X[7] || (X[7] = fe(`
8169
+ J[7] || (J[7] = fe(`
8170
8170
  `))
8171
8171
  ])) : (p(), $("pre", {
8172
8172
  key: 1,
@@ -8176,9 +8176,9 @@ const Sy = {
8176
8176
  }]),
8177
8177
  "data-testid": "highlighted-code-block"
8178
8178
  }, [
8179
- X[12] || (X[12] = fe(" ")),
8179
+ J[12] || (J[12] = fe(" ")),
8180
8180
  e.singleLine ? H("", !0) : (p(), $("span", By, [
8181
- X[10] || (X[10] = fe(`
8181
+ J[10] || (J[10] = fe(`
8182
8182
  `)),
8183
8183
  (p(!0), $(Te, null, Be(k.value, (ge) => (p(), $("span", {
8184
8184
  key: ge,
@@ -8187,23 +8187,23 @@ const Sy = {
8187
8187
  "line-is-highlighted-match": y.value !== null && ge === m.value[y.value]
8188
8188
  }])
8189
8189
  }, [
8190
- X[8] || (X[8] = fe(`
8190
+ J[8] || (J[8] = fe(`
8191
8191
  `)),
8192
8192
  z("a", {
8193
8193
  id: `${D.value}-L${ge}`,
8194
8194
  class: de(["line-anchor", { "hide-links": !e.showLineNumberLinks }]),
8195
8195
  href: e.showLineNumberLinks ? `#${D.value}-L${ge}` : void 0
8196
8196
  }, ne(ge), 11, Ly),
8197
- X[9] || (X[9] = fe(`
8197
+ J[9] || (J[9] = fe(`
8198
8198
  `))
8199
8199
  ], 2))), 128)),
8200
- X[11] || (X[11] = fe(`
8200
+ J[11] || (J[11] = fe(`
8201
8201
  `))
8202
8202
  ])),
8203
- X[13] || (X[13] = fe(`
8203
+ J[13] || (J[13] = fe(`
8204
8204
  `)),
8205
8205
  z("code", { innerHTML: R.value }, null, 8, _y),
8206
- X[14] || (X[14] = fe(`
8206
+ J[14] || (J[14] = fe(`
8207
8207
  `))
8208
8208
  ], 2)),
8209
8209
  e.showCopyButton || x(o)["secondary-actions"] ? (p(), $("div", Ry, [
@@ -11117,12 +11117,12 @@ var I0 = Fs.exports;
11117
11117
  }), t.default = k;
11118
11118
  var n = a(a0), r = a(i0), i = a(Ba), s = a(p0), l = a(h0), o = a(ev), u = ii, d = a(Nn), c = a(Vt), f = Bn, v = a(I0), g = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, w = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, S = /^'([^]*?)'?$/, m = /''/g, y = /[a-zA-Z]/;
11119
11119
  function k(D, M, P) {
11120
- var W, K, U, R, F, T, I, N, j, ae, J, ee, _, le, se, be, ye, Ce;
11120
+ var W, K, U, R, F, T, I, N, j, ae, X, ee, _, le, se, be, ye, Ce;
11121
11121
  (0, c.default)(2, arguments);
11122
11122
  var Me = String(M), _e = (0, f.getDefaultOptions)(), Le = (W = (K = P == null ? void 0 : P.locale) !== null && K !== void 0 ? K : _e.locale) !== null && W !== void 0 ? W : v.default, We = (0, d.default)((U = (R = (F = (T = P == null ? void 0 : P.firstWeekContainsDate) !== null && T !== void 0 ? T : P == null || (I = P.locale) === null || I === void 0 || (N = I.options) === null || N === void 0 ? void 0 : N.firstWeekContainsDate) !== null && F !== void 0 ? F : _e.firstWeekContainsDate) !== null && R !== void 0 ? R : (j = _e.locale) === null || j === void 0 || (ae = j.options) === null || ae === void 0 ? void 0 : ae.firstWeekContainsDate) !== null && U !== void 0 ? U : 1);
11123
11123
  if (!(We >= 1 && We <= 7))
11124
11124
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
11125
- var nt = (0, d.default)((J = (ee = (_ = (le = P == null ? void 0 : P.weekStartsOn) !== null && le !== void 0 ? le : P == null || (se = P.locale) === null || se === void 0 || (be = se.options) === null || be === void 0 ? void 0 : be.weekStartsOn) !== null && _ !== void 0 ? _ : _e.weekStartsOn) !== null && ee !== void 0 ? ee : (ye = _e.locale) === null || ye === void 0 || (Ce = ye.options) === null || Ce === void 0 ? void 0 : Ce.weekStartsOn) !== null && J !== void 0 ? J : 0);
11125
+ var nt = (0, d.default)((X = (ee = (_ = (le = P == null ? void 0 : P.weekStartsOn) !== null && le !== void 0 ? le : P == null || (se = P.locale) === null || se === void 0 || (be = se.options) === null || be === void 0 ? void 0 : be.weekStartsOn) !== null && _ !== void 0 ? _ : _e.weekStartsOn) !== null && ee !== void 0 ? ee : (ye = _e.locale) === null || ye === void 0 || (Ce = ye.options) === null || Ce === void 0 ? void 0 : Ce.weekStartsOn) !== null && X !== void 0 ? X : 0);
11126
11126
  if (!(nt >= 0 && nt <= 6))
11127
11127
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
11128
11128
  if (!Le.localize)
@@ -11137,25 +11137,25 @@ var I0 = Fs.exports;
11137
11137
  weekStartsOn: nt,
11138
11138
  locale: Le,
11139
11139
  _originalDate: Ke
11140
- }, G = Me.match(w).map(function(X) {
11141
- var ge = X[0];
11140
+ }, G = Me.match(w).map(function(J) {
11141
+ var ge = J[0];
11142
11142
  if (ge === "p" || ge === "P") {
11143
11143
  var De = l.default[ge];
11144
- return De(X, Le.formatLong);
11144
+ return De(J, Le.formatLong);
11145
11145
  }
11146
- return X;
11147
- }).join("").match(g).map(function(X) {
11148
- if (X === "''")
11146
+ return J;
11147
+ }).join("").match(g).map(function(J) {
11148
+ if (J === "''")
11149
11149
  return "'";
11150
- var ge = X[0];
11150
+ var ge = J[0];
11151
11151
  if (ge === "'")
11152
- return C(X);
11152
+ return C(J);
11153
11153
  var De = s.default[ge];
11154
11154
  if (De)
11155
- return !(P != null && P.useAdditionalWeekYearTokens) && (0, u.isProtectedWeekYearToken)(X) && (0, u.throwProtectedError)(X, M, String(D)), !(P != null && P.useAdditionalDayOfYearTokens) && (0, u.isProtectedDayOfYearToken)(X) && (0, u.throwProtectedError)(X, M, String(D)), De(et, X, Le.localize, tt);
11155
+ return !(P != null && P.useAdditionalWeekYearTokens) && (0, u.isProtectedWeekYearToken)(J) && (0, u.throwProtectedError)(J, M, String(D)), !(P != null && P.useAdditionalDayOfYearTokens) && (0, u.isProtectedDayOfYearToken)(J) && (0, u.throwProtectedError)(J, M, String(D)), De(et, J, Le.localize, tt);
11156
11156
  if (ge.match(y))
11157
11157
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + ge + "`");
11158
- return X;
11158
+ return J;
11159
11159
  }).join("");
11160
11160
  return G;
11161
11161
  }
@@ -12185,8 +12185,8 @@ function Kw(e) {
12185
12185
  padding: u
12186
12186
  }), ae = I ? T ? va : Xt : T ? fa : Zt;
12187
12187
  D[N] > M[N] && (ae = Si(ae));
12188
- var J = Si(ae), ee = [];
12189
- if (i && ee.push(j[F] <= 0), l && ee.push(j[ae] <= 0, j[J] <= 0), ee.every(function(ye) {
12188
+ var X = Si(ae), ee = [];
12189
+ if (i && ee.push(j[F] <= 0), l && ee.push(j[ae] <= 0, j[X] <= 0), ee.every(function(ye) {
12190
12190
  return ye;
12191
12191
  })) {
12192
12192
  K = R, W = !1;
@@ -12325,11 +12325,11 @@ function n2(e) {
12325
12325
  };
12326
12326
  if (M) {
12327
12327
  if (i) {
12328
- var T, I = C === "y" ? Zt : Xt, N = C === "y" ? fa : va, j = C === "y" ? "height" : "width", ae = M[C], J = ae + S[I], ee = ae - S[N], _ = v ? -W[j] / 2 : 0, le = y === ir ? P[j] : W[j], se = y === ir ? -W[j] : -P[j], be = t.elements.arrow, ye = v && be ? Fl(be) : {
12328
+ var T, I = C === "y" ? Zt : Xt, N = C === "y" ? fa : va, j = C === "y" ? "height" : "width", ae = M[C], X = ae + S[I], ee = ae - S[N], _ = v ? -W[j] / 2 : 0, le = y === ir ? P[j] : W[j], se = y === ir ? -W[j] : -P[j], be = t.elements.arrow, ye = v && be ? Fl(be) : {
12329
12329
  width: 0,
12330
12330
  height: 0
12331
- }, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : lv(), Me = Ce[I], _e = Ce[N], Le = Fr(0, P[j], ye[j]), We = k ? P[j] / 2 - _ - Le - Me - U.mainAxis : le - Le - Me - U.mainAxis, nt = k ? -P[j] / 2 + _ + Le + _e + U.mainAxis : se + Le + _e + U.mainAxis, Ke = t.elements.arrow && si(t.elements.arrow), Ge = Ke ? C === "y" ? Ke.clientTop || 0 : Ke.clientLeft || 0 : 0, et = (T = R == null ? void 0 : R[C]) != null ? T : 0, tt = ae + We - et - Ge, G = ae + nt - et, X = Fr(v ? Ui(J, tt) : J, ae, v ? $n(ee, G) : ee);
12332
- M[C] = X, F[C] = X - ae;
12331
+ }, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : lv(), Me = Ce[I], _e = Ce[N], Le = Fr(0, P[j], ye[j]), We = k ? P[j] / 2 - _ - Le - Me - U.mainAxis : le - Le - Me - U.mainAxis, nt = k ? -P[j] / 2 + _ + Le + _e + U.mainAxis : se + Le + _e + U.mainAxis, Ke = t.elements.arrow && si(t.elements.arrow), Ge = Ke ? C === "y" ? Ke.clientTop || 0 : Ke.clientLeft || 0 : 0, et = (T = R == null ? void 0 : R[C]) != null ? T : 0, tt = ae + We - et - Ge, G = ae + nt - et, J = Fr(v ? Ui(X, tt) : X, ae, v ? $n(ee, G) : ee);
12332
+ M[C] = J, F[C] = J - ae;
12333
12333
  }
12334
12334
  if (l) {
12335
12335
  var ge, De = C === "x" ? Zt : Xt, Z = C === "x" ? fa : va, pe = M[D], Oe = D === "y" ? "height" : "width", Pe = pe + S[De], $e = pe - S[Z], Qe = [Zt, Xt].indexOf(m) !== -1, te = (ge = R == null ? void 0 : R[D]) != null ? ge : 0, we = Qe ? Pe : pe - P[Oe] - W[Oe] - te + U.altAxis, Se = Qe ? pe + P[Oe] + W[Oe] - te - U.altAxis : $e, Ze = v && Qe ? Tw(we, pe, Se) : Fr(v ? we : Pe, pe, v ? Se : $e);
@@ -14159,7 +14159,7 @@ function KE({
14159
14159
  for (let T = 1; T <= YI; T++) {
14160
14160
  for (let I = 1, N = i; I <= Nt; I++, N += N === Nt ? 1 - Nt : 1) {
14161
14161
  f && N === s && (m = 1, y = e.numDays, k = Math.floor((m - 1) / Nt + 1), C = Math.floor((u - m) / Nt + 1), D = 1, M = d, P = e.month, W = e.year, f = !1, v = !0);
14162
- const j = n.getDateFromParams(W, P, m, 0, 0, 0, 0), ae = n.getDateFromParams(W, P, m, 12, 0, 0, 0), J = n.getDateFromParams(
14162
+ const j = n.getDateFromParams(W, P, m, 0, 0, 0, 0), ae = n.getDateFromParams(W, P, m, 12, 0, 0, 0), X = n.getDateFromParams(
14163
14163
  W,
14164
14164
  P,
14165
14165
  m,
@@ -14190,7 +14190,7 @@ function KE({
14190
14190
  year: W,
14191
14191
  date: ee,
14192
14192
  startDate: j,
14193
- endDate: J,
14193
+ endDate: X,
14194
14194
  noonDate: ae,
14195
14195
  dayIndex: Ge,
14196
14196
  isToday: Ce,
@@ -16028,7 +16028,7 @@ function kO(e, { slots: t, emit: a }) {
16028
16028
  () => e.minPage || (k.value ? se(k.value) : null)
16029
16029
  ), F = b(
16030
16030
  () => e.maxPage || (C.value ? se(C.value) : null)
16031
- ), T = b(() => e.navVisibility), I = b(() => !!e.showWeeknumbers), N = b(() => !!e.showIsoWeeknumbers), j = b(() => u.value === "monthly"), ae = b(() => u.value === "weekly"), J = b(() => u.value === "daily"), ee = () => {
16031
+ ), T = b(() => e.navVisibility), I = b(() => !!e.showWeeknumbers), N = b(() => !!e.showIsoWeeknumbers), j = b(() => u.value === "monthly"), ae = b(() => u.value === "weekly"), X = b(() => u.value === "daily"), ee = () => {
16032
16032
  s.value = !0, a("transition-start");
16033
16033
  }, _ = () => {
16034
16034
  s.value = !1, a("transition-end"), f && (f.resolve(!0), f = null);
@@ -16095,7 +16095,7 @@ function kO(e, { slots: t, emit: a }) {
16095
16095
  return "fade";
16096
16096
  const Y = Ji(h, L), B = ll(h, L);
16097
16097
  return !Y && !B ? "fade" : A === "slide-v" ? B ? "slide-down" : "slide-up" : B ? "slide-right" : "slide-left";
16098
- }, X = (L = {}) => new Promise((h, A) => {
16098
+ }, J = (L = {}) => new Promise((h, A) => {
16099
16099
  const { position: Y = 1, force: B = !1, transition: ie } = L, ue = xa(L.page) ? L.page : et(), { fromPage: xe } = tt(ue, {
16100
16100
  position: Y,
16101
16101
  force: B
@@ -16144,7 +16144,7 @@ function kO(e, { slots: t, emit: a }) {
16144
16144
  u.value,
16145
16145
  m.value
16146
16146
  ).map((B) => ZE(B, R.value, F.value)).some((B) => B);
16147
- }, Z = (L, h = {}) => De(ge(L), h), pe = b(() => Z(-W.value)), Oe = b(() => Z(W.value)), Pe = async (L, h = {}) => !h.force && !De(L, h) ? !1 : (h.fromPage && !XE(h.fromPage, K.value) && (ei({ id: l.value, hideDelay: 0 }), h.view && (oO("view", 10), u.value = h.view), await X({
16147
+ }, Z = (L, h = {}) => De(ge(L), h), pe = b(() => Z(-W.value)), Oe = b(() => Z(W.value)), Pe = async (L, h = {}) => !h.force && !De(L, h) ? !1 : (h.fromPage && !XE(h.fromPage, K.value) && (ei({ id: l.value, hideDelay: 0 }), h.view && (oO("view", 10), u.value = h.view), await J({
16148
16148
  ...h,
16149
16149
  page: h.fromPage,
16150
16150
  position: 1,
@@ -16212,7 +16212,7 @@ function kO(e, { slots: t, emit: a }) {
16212
16212
  }, Kt = (L, h) => {
16213
16213
  a("weeknumberclick", L, h);
16214
16214
  };
16215
- X({
16215
+ J({
16216
16216
  page: e.initialPage,
16217
16217
  position: e.initialPagePosition
16218
16218
  }), st(() => {
@@ -16228,11 +16228,11 @@ function kO(e, { slots: t, emit: a }) {
16228
16228
  }), ve(
16229
16229
  () => m.value,
16230
16230
  () => {
16231
- X();
16231
+ J();
16232
16232
  }
16233
16233
  ), ve(
16234
16234
  () => P.value,
16235
- () => X()
16235
+ () => J()
16236
16236
  ), ve(
16237
16237
  () => e.view,
16238
16238
  () => u.value = e.view
@@ -16240,7 +16240,7 @@ function kO(e, { slots: t, emit: a }) {
16240
16240
  () => u.value,
16241
16241
  () => {
16242
16242
  sO("view", () => {
16243
- X();
16243
+ J();
16244
16244
  }), a("update:view", u.value);
16245
16245
  }
16246
16246
  ), ve(
@@ -16284,7 +16284,7 @@ function kO(e, { slots: t, emit: a }) {
16284
16284
  maxPage: F,
16285
16285
  isMonthly: j,
16286
16286
  isWeekly: ae,
16287
- isDaily: J,
16287
+ isDaily: X,
16288
16288
  navVisibility: T,
16289
16289
  showWeeknumbers: I,
16290
16290
  showIsoWeeknumbers: N,
@@ -16468,7 +16468,7 @@ const CO = oe({
16468
16468
  function ae() {
16469
16469
  s.isFocused = !0, s.isInteractive && ["focus", "hover-focus"].includes(s.visibility) && S();
16470
16470
  }
16471
- function J(_) {
16471
+ function X(_) {
16472
16472
  ["focus", "hover-focus"].includes(s.visibility) && (!_.relatedTarget || !$i(n.value, _.relatedTarget)) && (s.isFocused = !1, !s.isHovered && s.autoHide && m());
16473
16473
  }
16474
16474
  function ee() {
@@ -16501,7 +16501,7 @@ const CO = oe({
16501
16501
  onMouseOver: N,
16502
16502
  onMouseLeave: j,
16503
16503
  onFocusIn: ae,
16504
- onFocusOut: J
16504
+ onFocusOut: X
16505
16505
  };
16506
16506
  }
16507
16507
  }), hn = (e, t) => {
@@ -16929,7 +16929,7 @@ const l8 = { class: "vc-nav-header" }, u8 = ["disabled"], c8 = ["disabled"], d8
16929
16929
  ae.value && (s.value && y(), C());
16930
16930
  }
16931
16931
  function m() {
16932
- J.value && (s.value && k(), D());
16932
+ X.value && (s.value && k(), D());
16933
16933
  }
16934
16934
  function y() {
16935
16935
  o.value--;
@@ -16987,7 +16987,7 @@ const l8 = { class: "vc-nav-header" }, u8 = ["disabled"], c8 = ["disabled"], d8
16987
16987
  () => s.value ? M.value : R.value
16988
16988
  ), ae = b(
16989
16989
  () => s.value ? W.value : T.value
16990
- ), J = b(
16990
+ ), X = b(
16991
16991
  () => s.value ? U.value : N.value
16992
16992
  ), ee = b(() => jv(R.value.map((se) => se.year))), _ = b(() => Zn(R.value.map((se) => se.year))), le = b(() => s.value ? o.value : `${ee.value} - ${_.value}`);
16993
16993
  return bl(() => {
@@ -17032,14 +17032,14 @@ const l8 = { class: "vc-nav-header" }, u8 = ["disabled"], c8 = ["disabled"], d8
17032
17032
  z("button", {
17033
17033
  type: "button",
17034
17034
  class: "vc-nav-arrow is-right vc-focus",
17035
- disabled: !x(J),
17035
+ disabled: !x(X),
17036
17036
  onClick: m,
17037
17037
  onKeydown: be[2] || (be[2] = (ye) => x(gi)(ye, m))
17038
17038
  }, [
17039
17039
  V(la, {
17040
17040
  name: "nav-next-button",
17041
17041
  move: m,
17042
- disabled: !x(J)
17042
+ disabled: !x(X)
17043
17043
  }, {
17044
17044
  default: O(() => [
17045
17045
  V(cr, {
@@ -17128,13 +17128,13 @@ const l8 = { class: "vc-nav-header" }, u8 = ["disabled"], c8 = ["disabled"], d8
17128
17128
  attributeCells: f.value
17129
17129
  }));
17130
17130
  function w({ data: N }, { popovers: j }) {
17131
- const { key: ae, customData: J, popover: ee } = N;
17131
+ const { key: ae, customData: X, popover: ee } = N;
17132
17132
  if (!ee)
17133
17133
  return;
17134
17134
  const _ = pd(
17135
17135
  {
17136
17136
  key: ae,
17137
- customData: J,
17137
+ customData: X,
17138
17138
  attribute: N
17139
17139
  },
17140
17140
  { ...ee },
@@ -17512,7 +17512,7 @@ function P8(e, { emit: t, slots: a }) {
17512
17512
  end: c.value[1]
17513
17513
  } : c.value[0]), ae = b(() => {
17514
17514
  const h = ["start", "end"].map((A) => ({
17515
- input: X(A),
17515
+ input: J(A),
17516
17516
  change: ge(A),
17517
17517
  keyup: De,
17518
17518
  ...e.popover && N.value
@@ -17521,7 +17521,7 @@ function P8(e, { emit: t, slots: a }) {
17521
17521
  start: h[0],
17522
17522
  end: h[1]
17523
17523
  } : h[0];
17524
- }), J = b(() => {
17524
+ }), X = b(() => {
17525
17525
  if (!_e(u.value))
17526
17526
  return null;
17527
17527
  const h = {
@@ -17546,7 +17546,7 @@ function P8(e, { emit: t, slots: a }) {
17546
17546
  }), h;
17547
17547
  }), _ = b(() => {
17548
17548
  const h = da(e.attributes) ? [...e.attributes] : [];
17549
- return ee.value ? h.unshift(ee.value) : J.value && h.unshift(J.value), h;
17549
+ return ee.value ? h.unshift(ee.value) : X.value && h.unshift(X.value), h;
17550
17550
  }), le = b(() => be(
17551
17551
  e.rules === "auto" ? se() : e.rules ?? {}
17552
17552
  ));
@@ -17709,7 +17709,7 @@ function P8(e, { emit: t, slots: a }) {
17709
17709
  moveToValue: !0
17710
17710
  });
17711
17711
  }
17712
- function X(h) {
17712
+ function J(h) {
17713
17713
  return (A) => {
17714
17714
  e.updateOnInput && G(A.currentTarget.value, h, {
17715
17715
  formatInput: !1,
@@ -18478,8 +18478,8 @@ const e4 = /* @__PURE__ */ hn(X8, [["render", J8]]), t4 = { class: "k-segmented-
18478
18478
  end: { contentClass: "vcal-day-drag-end" }
18479
18479
  }
18480
18480
  }, u = b(() => n.mode !== Yr.Relative), d = b(() => $h.includes(n.mode) && !n.range), c = b(() => {
18481
- var J;
18482
- return ((J = n == null ? void 0 : n.timePeriods) == null ? void 0 : J.length) > 0;
18481
+ var X;
18482
+ return ((X = n == null ? void 0 : n.timePeriods) == null ? void 0 : X.length) > 0;
18483
18483
  }), f = b(() => M.tabName === "custom" || !c.value), v = E(!0), g = {
18484
18484
  start: null,
18485
18485
  end: null,
@@ -18497,16 +18497,16 @@ const e4 = /* @__PURE__ */ hn(X8, [["render", J8]]), t4 = { class: "k-segmented-
18497
18497
  selectedTimeframe: (j = n.timePeriods[0]) == null ? void 0 : j.values[0],
18498
18498
  previouslySelectedTimeframe: (ae = n.timePeriods[0]) == null ? void 0 : ae.values[0],
18499
18499
  tabName: "relative"
18500
- }), P = (J) => {
18501
- if (!J) return;
18502
- const ee = d.value ? !J.start : !J.start || !J.end, _ = (J == null ? void 0 : J.start) || /* @__PURE__ */ new Date(), le = (J == null ? void 0 : J.end) || null;
18503
- v.value = !!ee, !d.value && J && J.start && J.end ? (S.value.start = _, S.value.end = le) : J && J.start && (w.value = _), M.selectedRange = M.previouslySelectedRange = {
18500
+ }), P = (X) => {
18501
+ if (!X) return;
18502
+ const ee = d.value ? !X.start : !X.start || !X.end, _ = (X == null ? void 0 : X.start) || /* @__PURE__ */ new Date(), le = (X == null ? void 0 : X.end) || null;
18503
+ v.value = !!ee, !d.value && X && X.start && X.end ? (S.value.start = _, S.value.end = le) : X && X.start && (w.value = _), M.selectedRange = M.previouslySelectedRange = {
18504
18504
  start: _,
18505
18505
  end: le,
18506
18506
  timePeriodsKey: ""
18507
18507
  };
18508
- }, W = (J, ee = !1) => {
18509
- M.selectedTimeframe = M.previouslySelectedTimeframe = J;
18508
+ }, W = (X, ee = !1) => {
18509
+ M.selectedTimeframe = M.previouslySelectedTimeframe = X;
18510
18510
  const _ = M.selectedTimeframe.start(), le = M.selectedTimeframe.end();
18511
18511
  M.selectedRange = {
18512
18512
  start: new Date(_),
@@ -18514,29 +18514,29 @@ const e4 = /* @__PURE__ */ hn(X8, [["render", J8]]), t4 = { class: "k-segmented-
18514
18514
  timePeriodsKey: M.selectedTimeframe.key
18515
18515
  }, M.fullRangeDisplay = U(M.selectedRange, !1), v.value = !1, ee && R();
18516
18516
  }, K = () => {
18517
- var J;
18518
- S.value = g, w.value = null, M.abbreviatedDisplay = n.placeholder, M.fullRangeDisplay = "", c.value && (M.selectedTimeframe = (J = n.timePeriods[0]) == null ? void 0 : J.values[0]), M.selectedRange = M.previouslySelectedRange = g, r("change", M.selectedRange), r("update:modelValue", M.selectedRange);
18519
- }, U = (J, ee) => {
18520
- const { start: _, end: le } = J;
18517
+ var X;
18518
+ S.value = g, w.value = null, M.abbreviatedDisplay = n.placeholder, M.fullRangeDisplay = "", c.value && (M.selectedTimeframe = (X = n.timePeriods[0]) == null ? void 0 : X.values[0]), M.selectedRange = M.previouslySelectedRange = g, r("change", M.selectedRange), r("update:modelValue", M.selectedRange);
18519
+ }, U = (X, ee) => {
18520
+ const { start: _, end: le } = X;
18521
18521
  let se = "PP hh:mm a";
18522
18522
  const be = Vo(_, D, "(z)");
18523
18523
  return !u.value && c.value ? se = "PP hh:mm a" : xh.includes(n.mode) && (se = "PP"), d.value ? `${Fo(_, se)} ${be}` : ee ? `<div>${Fo(_, se)} -&nbsp;</div><div>${Vo(le, D, se)} ${be}</div>` : `${Fo(_, se)} - ${Vo(le, D, se)} ${be}`;
18524
18524
  }, R = async () => {
18525
- var J;
18526
- d.value ? (r("change", { start: M.selectedRange.start, end: null }), r("update:modelValue", { start: M.selectedRange.start, end: null })) : (r("change", M.selectedRange), r("update:modelValue", M.selectedRange)), (J = i.value) == null || J.hidePopover(), F();
18525
+ var X;
18526
+ d.value ? (r("change", { start: M.selectedRange.start, end: null }), r("update:modelValue", { start: M.selectedRange.start, end: null })) : (r("change", M.selectedRange), r("update:modelValue", M.selectedRange)), (X = i.value) == null || X.hidePopover(), F();
18527
18527
  }, F = () => {
18528
- var J;
18529
- f.value && ((J = M.selectedRange) != null && J.start) ? M.abbreviatedDisplay = U(M.selectedRange, !0) : c.value && !f.value && (M.abbreviatedDisplay = M.selectedTimeframe.display);
18530
- }, T = (J) => J.charAt(0).toUpperCase() + J.slice(1), I = (J) => M.selectedTimeframe.key === J.key ? "primary" : "secondary";
18531
- return ve(w, (J, ee) => {
18532
- J !== void 0 && J !== ee && P({ start: J, end: null, timePeriodsKey: "" });
18533
- }, { immediate: !0 }), ve(S, (J, ee) => {
18534
- J !== void 0 && J !== ee && P(J);
18535
- }, { immediate: !0 }), ve(() => M.tabName, (J, ee) => {
18536
- ee !== void 0 && J === "relative" ? W(M.previouslySelectedTimeframe) : ee !== void 0 && J === "custom" && P(M.previouslySelectedRange);
18528
+ var X;
18529
+ f.value && ((X = M.selectedRange) != null && X.start) ? M.abbreviatedDisplay = U(M.selectedRange, !0) : c.value && !f.value && (M.abbreviatedDisplay = M.selectedTimeframe.display);
18530
+ }, T = (X) => X.charAt(0).toUpperCase() + X.slice(1), I = (X) => M.selectedTimeframe.key === X.key ? "primary" : "secondary";
18531
+ return ve(w, (X, ee) => {
18532
+ X !== void 0 && X !== ee && P({ start: X, end: null, timePeriodsKey: "" });
18533
+ }, { immediate: !0 }), ve(S, (X, ee) => {
18534
+ X !== void 0 && X !== ee && P(X);
18535
+ }, { immediate: !0 }), ve(() => M.tabName, (X, ee) => {
18536
+ ee !== void 0 && X === "relative" ? W(M.previouslySelectedTimeframe) : ee !== void 0 && X === "custom" && P(M.previouslySelectedRange);
18537
18537
  }), st(() => {
18538
- var J, ee, _, le;
18539
- if (Dh.includes(n.mode) && ((J = n.modelValue) != null && J.timePeriodsKey)) {
18538
+ var X, ee, _, le;
18539
+ if (Dh.includes(n.mode) && ((X = n.modelValue) != null && X.timePeriodsKey)) {
18540
18540
  M.tabName = "relative", v.value = !1;
18541
18541
  for (const se of n.timePeriods) {
18542
18542
  const be = se.values.find((ye) => ye.key === n.modelValue.timePeriodsKey);
@@ -18547,7 +18547,7 @@ const e4 = /* @__PURE__ */ hn(X8, [["render", J8]]), t4 = { class: "k-segmented-
18547
18547
  }
18548
18548
  } else
18549
18549
  M.tabName = "custom", P(n.modelValue), ((ee = n.modelValue) != null && ee.start && ((_ = n.modelValue) != null && _.end) || d.value && ((le = n.modelValue) != null && le.start)) && F();
18550
- }), (J, ee) => (p(), $("div", {
18550
+ }), (X, ee) => (p(), $("div", {
18551
18551
  class: de(["k-datetime-picker", { "set-min-width": c.value }]),
18552
18552
  style: Ne(k.value)
18553
18553
  }, [
@@ -19265,12 +19265,12 @@ var Kd = {
19265
19265
  }, u = function(T, I) {
19266
19266
  var N = typeof (I == null ? void 0 : I.composedPath) == "function" ? I.composedPath() : void 0;
19267
19267
  return s.containerGroups.findIndex(function(j) {
19268
- var ae = j.container, J = j.tabbableNodes;
19268
+ var ae = j.container, X = j.tabbableNodes;
19269
19269
  return ae.contains(T) || // fall back to explicit tabbable search which will take into consideration any
19270
19270
  // web components if the `tabbableOptions.getShadowRoot` option was used for
19271
19271
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
19272
19272
  // look inside web components even if open)
19273
- (N == null ? void 0 : N.includes(ae)) || J.find(function(ee) {
19273
+ (N == null ? void 0 : N.includes(ae)) || X.find(function(ee) {
19274
19274
  return ee === T;
19275
19275
  });
19276
19276
  });
@@ -19286,10 +19286,10 @@ var Kd = {
19286
19286
  return I;
19287
19287
  throw new Error("`".concat(T, "` was specified but was not a node, or did not return a node"));
19288
19288
  }
19289
- var J = I;
19290
- if (typeof I == "string" && (J = n.querySelector(I), !J))
19289
+ var X = I;
19290
+ if (typeof I == "string" && (X = n.querySelector(I), !X))
19291
19291
  throw new Error("`".concat(T, "` as selector refers to no known node"));
19292
- return J;
19292
+ return X;
19293
19293
  }, c = function() {
19294
19294
  var T = d("initialFocus");
19295
19295
  if (T === !1)
@@ -19306,7 +19306,7 @@ var Kd = {
19306
19306
  return T;
19307
19307
  }, f = function() {
19308
19308
  if (s.containerGroups = s.containers.map(function(T) {
19309
- var I = F4(T, i.tabbableOptions), N = z4(T, i.tabbableOptions), j = I.length > 0 ? I[0] : void 0, ae = I.length > 0 ? I[I.length - 1] : void 0, J = N.find(function(le) {
19309
+ var I = F4(T, i.tabbableOptions), N = z4(T, i.tabbableOptions), j = I.length > 0 ? I[0] : void 0, ae = I.length > 0 ? I[I.length - 1] : void 0, X = N.find(function(le) {
19310
19310
  return zn(le);
19311
19311
  }), ee = N.slice().reverse().find(function(le) {
19312
19312
  return zn(le);
@@ -19331,7 +19331,7 @@ var Kd = {
19331
19331
  // "close enough most of the time" alternative for positive tabindexes which should generally
19332
19332
  // be avoided anyway...
19333
19333
  /** First tabbable node in container, __DOM__ order; `undefined` if none. */
19334
- firstDomTabbableNode: J,
19334
+ firstDomTabbableNode: X,
19335
19335
  /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
19336
19336
  lastDomTabbableNode: ee,
19337
19337
  /**
@@ -19379,11 +19379,11 @@ var Kd = {
19379
19379
  }, S = function(T) {
19380
19380
  var I = T.target, N = T.event, j = T.isBackward, ae = j === void 0 ? !1 : j;
19381
19381
  I = I || mi(N), f();
19382
- var J = null;
19382
+ var X = null;
19383
19383
  if (s.tabbableGroups.length > 0) {
19384
19384
  var ee = u(I, N), _ = ee >= 0 ? s.containerGroups[ee] : void 0;
19385
19385
  if (ee < 0)
19386
- ae ? J = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : J = s.tabbableGroups[0].firstTabbableNode;
19386
+ ae ? X = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : X = s.tabbableGroups[0].firstTabbableNode;
19387
19387
  else if (ae) {
19388
19388
  var le = Gd(s.tabbableGroups, function(_e) {
19389
19389
  var Le = _e.firstTabbableNode;
@@ -19391,8 +19391,8 @@ var Kd = {
19391
19391
  });
19392
19392
  if (le < 0 && (_.container === I || ts(I, i.tabbableOptions) && !zn(I, i.tabbableOptions) && !_.nextTabbableNode(I, !1)) && (le = ee), le >= 0) {
19393
19393
  var se = le === 0 ? s.tabbableGroups.length - 1 : le - 1, be = s.tabbableGroups[se];
19394
- J = kn(I) >= 0 ? be.lastTabbableNode : be.lastDomTabbableNode;
19395
- } else Hr(N) || (J = _.nextTabbableNode(I, !1));
19394
+ X = kn(I) >= 0 ? be.lastTabbableNode : be.lastDomTabbableNode;
19395
+ } else Hr(N) || (X = _.nextTabbableNode(I, !1));
19396
19396
  } else {
19397
19397
  var ye = Gd(s.tabbableGroups, function(_e) {
19398
19398
  var Le = _e.lastTabbableNode;
@@ -19400,12 +19400,12 @@ var Kd = {
19400
19400
  });
19401
19401
  if (ye < 0 && (_.container === I || ts(I, i.tabbableOptions) && !zn(I, i.tabbableOptions) && !_.nextTabbableNode(I)) && (ye = ee), ye >= 0) {
19402
19402
  var Ce = ye === s.tabbableGroups.length - 1 ? 0 : ye + 1, Me = s.tabbableGroups[Ce];
19403
- J = kn(I) >= 0 ? Me.firstTabbableNode : Me.firstDomTabbableNode;
19404
- } else Hr(N) || (J = _.nextTabbableNode(I));
19403
+ X = kn(I) >= 0 ? Me.firstTabbableNode : Me.firstDomTabbableNode;
19404
+ } else Hr(N) || (X = _.nextTabbableNode(I));
19405
19405
  }
19406
19406
  } else
19407
- J = d("fallbackFocus");
19408
- return J;
19407
+ X = d("fallbackFocus");
19408
+ return X;
19409
19409
  }, m = function(T) {
19410
19410
  var I = mi(T);
19411
19411
  if (!(u(I, T) >= 0)) {
@@ -19432,7 +19432,7 @@ var Kd = {
19432
19432
  var j, ae = !0;
19433
19433
  if (s.mostRecentlyFocusedNode)
19434
19434
  if (kn(s.mostRecentlyFocusedNode) > 0) {
19435
- var J = u(s.mostRecentlyFocusedNode), ee = s.containerGroups[J].tabbableNodes;
19435
+ var X = u(s.mostRecentlyFocusedNode), ee = s.containerGroups[X].tabbableNodes;
19436
19436
  if (ee.length > 0) {
19437
19437
  var _ = ee.findIndex(function(le) {
19438
19438
  return le === s.mostRecentlyFocusedNode;
@@ -19532,14 +19532,14 @@ var Kd = {
19532
19532
  checkCanReturnFocus: i.checkCanReturnFocus
19533
19533
  }, T);
19534
19534
  clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, W(), s.active = !1, s.paused = !1, R(), Kd.deactivateTrap(r, l);
19535
- var N = o(I, "onDeactivate"), j = o(I, "onPostDeactivate"), ae = o(I, "checkCanReturnFocus"), J = o(I, "returnFocus", "returnFocusOnDeactivate");
19535
+ var N = o(I, "onDeactivate"), j = o(I, "onPostDeactivate"), ae = o(I, "checkCanReturnFocus"), X = o(I, "returnFocus", "returnFocusOnDeactivate");
19536
19536
  N == null || N();
19537
19537
  var ee = function() {
19538
19538
  jd(function() {
19539
- J && g(w(s.nodeFocusedBeforeActivation)), j == null || j();
19539
+ X && g(w(s.nodeFocusedBeforeActivation)), j == null || j();
19540
19540
  });
19541
19541
  };
19542
- return J && ae ? (ae(w(s.nodeFocusedBeforeActivation)).then(ee, ee), this) : (ee(), this);
19542
+ return X && ae ? (ae(w(s.nodeFocusedBeforeActivation)).then(ee, ee), this) : (ee(), this);
19543
19543
  },
19544
19544
  pause: function(T) {
19545
19545
  if (s.paused || !s.active)
@@ -20431,7 +20431,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
20431
20431
  emits: ["selected", "input", "change", "update:modelValue", "query-change", "item-added", "item-removed"],
20432
20432
  setup(e, { emit: t }) {
20433
20433
  Bt((ce) => ({
20434
- dcf35ece: nt.value
20434
+ "2ba03636": nt.value
20435
20435
  }));
20436
20436
  const a = Wt(), n = At(), { getSizeFromString: r, cloneDeep: i, stripRequiredLabel: s } = xt(), l = 36, o = "Filter...", u = e, d = t, c = E(null), f = b(() => a.required !== void 0 && String(a.required) !== "false"), v = b(() => s(u.label, f.value)), g = b(() => {
20437
20437
  var ce, L;
@@ -20441,7 +20441,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
20441
20441
  placement: "bottom-start",
20442
20442
  popoverTimeout: 0,
20443
20443
  popoverClasses: "multiselect-popover"
20444
- }, m = E(0), y = E(0), k = a.id ? String(a.id) : yt(), C = yt(), D = E(null), M = E(null), P = E(null), W = E(), K = b(() => u.selectedRowCount * l), U = E(""), R = b(() => !(!U.value || T.value.filter((ce) => ce.label === U.value).length)), F = E(null), T = E([]), I = E([]), N = E([]), j = E([]), ae = E([]), J = /* @__PURE__ */ new Set(), ee = E([]), _ = E([]), le = b(() => _.value.map((ce) => ce.label).join(", ")), se = E(!1), be = E(!1), ye = E(!1), Ce = b(() => (a == null ? void 0 : a.disabled) !== void 0 && String(a == null ? void 0 : a.disabled) !== "false"), Me = b(() => (a == null ? void 0 : a.readonly) !== void 0 && String(a == null ? void 0 : a.readonly) !== "false"), _e = b({
20444
+ }, m = E(0), y = E(0), k = a.id ? String(a.id) : yt(), C = yt(), D = E(null), M = E(null), P = E(null), W = E(), K = b(() => u.selectedRowCount * l), U = E(""), R = b(() => !(!U.value || T.value.filter((ce) => ce.label === U.value).length)), F = E(null), T = E([]), I = E([]), N = E([]), j = E([]), ae = E([]), X = /* @__PURE__ */ new Set(), ee = E([]), _ = E([]), le = b(() => _.value.map((ce) => ce.label).join(", ")), se = E(!1), be = E(!1), ye = E(!1), Ce = b(() => (a == null ? void 0 : a.disabled) !== void 0 && String(a == null ? void 0 : a.disabled) !== "false"), Me = b(() => (a == null ? void 0 : a.readonly) !== void 0 && String(a == null ? void 0 : a.readonly) !== "false"), _e = b({
20445
20445
  get() {
20446
20446
  return u.modelValue;
20447
20447
  },
@@ -20474,7 +20474,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
20474
20474
  return u.searchPlaceholder;
20475
20475
  }
20476
20476
  return N.value.length === 1 ? `${N.value.length} item selected` : `${N.value.length} items selected`;
20477
- }), X = b(() => u.autosuggest ? T.value : u.filterFunction({ items: T.value, query: U.value })), ge = (ce) => {
20477
+ }), J = b(() => u.autosuggest ? T.value : u.filterFunction({ items: T.value, query: U.value })), ge = (ce) => {
20478
20478
  var L;
20479
20479
  (Ce.value || ((L = ce == null ? void 0 : ce.target) == null ? void 0 : L.dataset.propagateClicks) === "false") && ce.stopPropagation();
20480
20480
  }, De = async (ce, L, h) => {
@@ -20498,7 +20498,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
20498
20498
  if (ce.clientHeight > K.value) {
20499
20499
  const h = Array.from(ce.querySelectorAll(".multiselect-selection-badge")).filter((B) => B.offsetTop >= K.value), A = j.value.length - h.length, Y = j.value.splice(A, h.length);
20500
20500
  for (const B of Y)
20501
- J.has(B.value) || (J.add(B.value), ae.value.push(B));
20501
+ X.has(B.value) || (X.add(B.value), ae.value.push(B));
20502
20502
  }
20503
20503
  y.value++;
20504
20504
  }
@@ -20512,9 +20512,9 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
20512
20512
  }, Oe = (ce, L = !1) => {
20513
20513
  const h = new Set(ce.map((A) => A.value));
20514
20514
  N.value = N.value.filter((A) => !h.has(A.value)), j.value = j.value.filter((A) => !h.has(A.value)), ae.value = ae.value.filter((A) => !h.has(A.value)), ce.forEach((A) => {
20515
- if (J.delete(A.value), A.selected = !1, ae.value.length) {
20515
+ if (X.delete(A.value), A.selected = !1, ae.value.length) {
20516
20516
  const Y = ae.value.pop();
20517
- Y && (j.value.push(Y), J.delete(Y.value));
20517
+ Y && (j.value.push(Y), X.delete(Y.value));
20518
20518
  }
20519
20519
  u.enableItemCreation && A.custom && (T.value = T.value.filter((Y) => Y.value !== A.value), d("item-removed", A));
20520
20520
  }), L && Z();
@@ -20524,9 +20524,9 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
20524
20524
  if (u.enableItemCreation && (A != null && A.custom) && (h = !0), A === null && (A = ((ie = N.value.filter((ue) => ue.value === ce.value)) == null ? void 0 : ie[0]) || null), A === null)
20525
20525
  return;
20526
20526
  if (A.selected) {
20527
- if (N.value = N.value.filter((ue) => ue.value !== ce.value), j.value.filter((ue) => ue.value === ce.value).length ? j.value = j.value.filter((ue) => ue.value !== ce.value) : J.delete(ce.value) && (ae.value = ae.value.filter((ue) => ue.value !== ce.value)), A.selected = !1, ae.value.length) {
20527
+ if (N.value = N.value.filter((ue) => ue.value !== ce.value), j.value.filter((ue) => ue.value === ce.value).length ? j.value = j.value.filter((ue) => ue.value !== ce.value) : X.delete(ce.value) && (ae.value = ae.value.filter((ue) => ue.value !== ce.value)), A.selected = !1, ae.value.length) {
20528
20528
  const ue = ae.value.pop();
20529
- ue && (j.value.push(ue), J.delete(ue.value));
20529
+ ue && (j.value.push(ue), X.delete(ue.value));
20530
20530
  }
20531
20531
  h && (T.value = T.value.filter((ue) => ue.value !== ce.value), d("item-removed", ce));
20532
20532
  } else
@@ -20535,7 +20535,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
20535
20535
  const Y = N.value.map((ue) => ue.value);
20536
20536
  d("selected", N.value), d("change", A), d("update:modelValue", Y);
20537
20537
  }, $e = (ce) => {
20538
- !X.value.length && u.enableItemCreation && Qe(), ce.preventDefault();
20538
+ u.enableItemCreation && Qe(), ce.preventDefault();
20539
20539
  }, Qe = () => {
20540
20540
  var h;
20541
20541
  if (!u.enableItemCreation || !U.value || !R.value || !u.itemCreationValidator(U.value))
@@ -20547,12 +20547,12 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
20547
20547
  };
20548
20548
  d("item-added", L), Pe(L, !0), U.value = "";
20549
20549
  }, te = () => {
20550
- const ce = X.value.filter((B) => B.selected), L = X.value.filter((B) => !B.selected), h = [...ce, ...L], A = h.filter((B) => !B.group), Y = h.filter((B) => B.group).sort((B, ie) => B.group.toLowerCase().localeCompare(ie.group.toLowerCase()));
20550
+ const ce = J.value.filter((B) => B.selected), L = J.value.filter((B) => !B.selected), h = [...ce, ...L], A = h.filter((B) => !B.group), Y = h.filter((B) => B.group).sort((B, ie) => B.group.toLowerCase().localeCompare(ie.group.toLowerCase()));
20551
20551
  I.value = [...A, ...Y];
20552
20552
  }, we = () => {
20553
20553
  T.value.forEach((L) => {
20554
20554
  L.disabled || (L.selected = !1, L.custom && d("item-removed", L));
20555
- }), T.value = T.value.filter((L) => !(L.custom && !L.disabled)), N.value = N.value.filter((L) => L.disabled), j.value = j.value.filter((L) => L.disabled), ae.value = ae.value.filter((L) => (L.disabled || J.delete(L.value), L.disabled)), U.value = "", Z();
20555
+ }), T.value = T.value.filter((L) => !(L.custom && !L.disabled)), N.value = N.value.filter((L) => L.disabled), j.value = j.value.filter((L) => L.disabled), ae.value = ae.value.filter((L) => (L.disabled || X.delete(L.value), L.disabled)), U.value = "", Z();
20556
20556
  const ce = N.value.map((L) => L.value);
20557
20557
  d("selected", N.value), d("update:modelValue", ce), d("query-change", "");
20558
20558
  }, Se = (ce) => {
@@ -20581,13 +20581,13 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
20581
20581
  if (ce)
20582
20582
  if (ce.clientHeight > K.value) {
20583
20583
  const h = j.value.pop();
20584
- h && !J.has(h.value) && (ae.value.push(h), J.add(h.value)), y.value++;
20584
+ h && !X.has(h.value) && (ae.value.push(h), X.add(h.value)), y.value++;
20585
20585
  } else
20586
20586
  ee.value = i(j.value), _.value = i(ae.value), m.value++;
20587
20587
  }, 0);
20588
20588
  }), ve(m, async () => {
20589
20589
  F.value && typeof F.value.updatePopper == "function" && (await gt(), F.value.updatePopper());
20590
- }), ve(X, () => {
20590
+ }), ve(J, () => {
20591
20591
  te();
20592
20592
  }), ve(_e, (ce, L) => {
20593
20593
  if (JSON.stringify(ce) !== JSON.stringify(L)) {
@@ -20915,7 +20915,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
20915
20915
  ], 6);
20916
20916
  };
20917
20917
  }
20918
- }), XP = /* @__PURE__ */ Ie(ZP, [["__scopeId", "data-v-c3146050"]]), JP = {
20918
+ }), XP = /* @__PURE__ */ Ie(ZP, [["__scopeId", "data-v-96f74cdc"]]), JP = {
20919
20919
  key: 0,
20920
20920
  class: "prompt-content"
20921
20921
  }, e7 = { class: "prompt-message" }, t7 = {
@@ -21482,9 +21482,9 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
21482
21482
  emits: ["selected", "input", "change", "update:modelValue", "query-change", "item-added", "item-removed"],
21483
21483
  setup(e, { emit: t }) {
21484
21484
  Bt((Z) => ({
21485
- "209bf62d": ae.value,
21486
- cbbae098: T.value,
21487
- b8614e3c: I.value
21485
+ "67857c07": ae.value,
21486
+ ae9ba3cc: T.value,
21487
+ "776c12c8": I.value
21488
21488
  }));
21489
21489
  const { getSizeFromString: a, stripRequiredLabel: n } = xt(), r = e, i = t, s = Wt(), l = At(), o = E(!1), u = E(), d = b(() => {
21490
21490
  var Z;
@@ -21516,7 +21516,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
21516
21516
  width: String(I.value),
21517
21517
  maxWidth: String(I.value),
21518
21518
  disabled: f.value || v.value
21519
- })), ae = b(() => a(r.dropdownMaxHeight)), J = b(() => ({ ...j.value })), ee = b(() => r.placeholder || s.placeholder || "Select..."), _ = b(() => !f.value && r.clearable && !!P.value), le = b(() => !!(P.value && (l["selected-item-template"] || r.reuseItemTemplate && l["item-template"]))), se = b(() => {
21519
+ })), ae = b(() => a(r.dropdownMaxHeight)), X = b(() => ({ ...j.value })), ee = b(() => r.placeholder || s.placeholder || "Select..."), _ = b(() => !f.value && r.clearable && !!P.value), le = b(() => !!(P.value && (l["selected-item-template"] || r.reuseItemTemplate && l["item-template"]))), se = b(() => {
21520
21520
  let Z = [];
21521
21521
  !r.enableFiltering || r.filterFunction({ query: C.value, items: W.value }) === !0 ? Z = W.value : Z = r.filterFunction({ query: C.value, items: W.value });
21522
21522
  const pe = Z.filter((Pe) => !Pe.group), Oe = Z.filter((Pe) => Pe.group).sort((Pe, $e) => Pe.group.toLowerCase().localeCompare($e.group.toLowerCase()));
@@ -21525,7 +21525,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
21525
21525
  if (!r.enableFiltering)
21526
21526
  return Z.preventDefault(), !1;
21527
21527
  }, ye = (Z) => {
21528
- !se.value.length && r.enableItemCreation && Ce(), Z.preventDefault();
21528
+ r.enableItemCreation && Ce(), Z.preventDefault();
21529
21529
  }, Ce = () => {
21530
21530
  var Oe, Pe;
21531
21531
  if (!r.enableItemCreation || !C.value || !D.value || !r.itemCreationValidator(C.value))
@@ -21571,7 +21571,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
21571
21571
  (f.value || ((pe = Z == null ? void 0 : Z.target) == null ? void 0 : pe.dataset.propagateClicks) === "false") && Z.stopPropagation();
21572
21572
  }, G = (Z) => {
21573
21573
  Z();
21574
- }, X = (Z, pe) => {
21574
+ }, J = (Z, pe) => {
21575
21575
  o.value = !1, P.value ? (k.value = !0, C.value = P.value.label) : C.value = "", pe && Z();
21576
21576
  }, ge = (Z) => {
21577
21577
  o.value = !0, r.enableFiltering && (C.value = ""), Z();
@@ -21650,10 +21650,10 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
21650
21650
  V(vr, He({
21651
21651
  ref_key: "popperElement",
21652
21652
  ref: U
21653
- }, J.value, {
21653
+ }, X.value, {
21654
21654
  "close-on-popover-click": "",
21655
21655
  "hide-close-icon": "",
21656
- onClose: () => X(Pe, $e.value),
21656
+ onClose: () => J(Pe, $e.value),
21657
21657
  onOpen: () => ge(Pe),
21658
21658
  onPopoverClick: () => G(Pe)
21659
21659
  }), {
@@ -21815,7 +21815,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
21815
21815
  ], 2);
21816
21816
  };
21817
21817
  }
21818
- }), O7 = /* @__PURE__ */ Ie(I7, [["__scopeId", "data-v-39597f61"]]), P7 = { class: "k-slideout" }, N7 = { class: "slideout-header" }, B7 = {
21818
+ }), O7 = /* @__PURE__ */ Ie(I7, [["__scopeId", "data-v-b29fdb10"]]), P7 = { class: "k-slideout" }, N7 = { class: "slideout-header" }, B7 = {
21819
21819
  key: 0,
21820
21820
  class: "slideout-title",
21821
21821
  "data-testid": "slideout-title"
@@ -22446,7 +22446,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
22446
22446
  sortColumnKey: "",
22447
22447
  sortColumnOrder: "desc",
22448
22448
  offset: null
22449
- }, v = E([]), g = E(), w = E([]), S = E([]), m = E(""), y = E(""), k = E(""), C = b(() => w.value.filter((re) => re.hidable).length > 0), D = b(() => !!(C.value && !l.error && !wt.value && !l.loading && v.value && v.value.length)), M = b(() => w.value.filter((re) => re.hidable)), P = b(() => D.value ? l.tablePreferences.columnVisibility || {} : {}), W = E(D.value ? l.tablePreferences.columnVisibility || {} : {}), K = E(0), U = E(!1), R = E(1), F = E(15), T = E(""), I = E(""), N = E("desc"), j = E(null), ae = E([]), J = E(!0), ee = E(!1), _ = E(!1), le = b(() => !!d.toolbar || D.value), se = b(() => ({
22449
+ }, v = E([]), g = E(), w = E([]), S = E([]), m = E(""), y = E(""), k = E(""), C = b(() => w.value.filter((re) => re.hidable).length > 0), D = b(() => !!(C.value && !l.error && !wt.value && !l.loading && v.value && v.value.length)), M = b(() => w.value.filter((re) => re.hidable)), P = b(() => D.value ? l.tablePreferences.columnVisibility || {} : {}), W = E(D.value ? l.tablePreferences.columnVisibility || {} : {}), K = E(0), U = E(!1), R = E(1), F = E(15), T = E(""), I = E(""), N = E("desc"), j = E(null), ae = E([]), X = E(!0), ee = E(!1), _ = E(!1), le = b(() => !!d.toolbar || D.value), se = b(() => ({
22450
22450
  maxHeight: s(l.maxHeight)
22451
22451
  })), be = (re) => `column-${re}`, ye = (re) => `tooltip-${re}`, Ce = (re) => re, Me = (re, me) => (Ue, ke) => {
22452
22452
  const dt = /^on[^a-z]/, Ve = {};
@@ -22552,7 +22552,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
22552
22552
  const Yt = window == null ? void 0 : window.getComputedStyle(dt);
22553
22553
  Yt != null && Yt.width && (ke = parseInt(Yt.width, 10)), document == null || document.addEventListener("mousemove", Ve), document == null || document.addEventListener("mouseup", $t);
22554
22554
  }
22555
- }, X = E(!0), ge = async () => {
22555
+ }, J = E(!0), ge = async () => {
22556
22556
  var Ue, ke;
22557
22557
  const re = l.searchInput, me = await l.fetcher({
22558
22558
  pageSize: F.value,
@@ -22562,7 +22562,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
22562
22562
  sortColumnOrder: N.value,
22563
22563
  offset: j.value
22564
22564
  });
22565
- return v.value = me.data, K.value = l.paginationTotalItems || me.total || ((Ue = me.data) == null ? void 0 : Ue.length), l.paginationOffset && ((ke = me.pagination) != null && ke.offset ? (pe.value = me.pagination.offset, ae.value[R.value] || ae.value.push(me.pagination.offset)) : pe.value = null, J.value = me.pagination && "hasNextPage" in me.pagination ? me.pagination.hasNextPage : !0), v.value.length === 0 && R.value > 1 && (R.value = 1, ae.value = [null], j.value = null), X.value = !1, me;
22565
+ return v.value = me.data, K.value = l.paginationTotalItems || me.total || ((Ue = me.data) == null ? void 0 : Ue.length), l.paginationOffset && ((ke = me.pagination) != null && ke.offset ? (pe.value = me.pagination.offset, ae.value[R.value] || ae.value.push(me.pagination.offset)) : pe.value = null, X.value = me.pagination && "hasNextPage" in me.pagination ? me.pagination.hasNextPage : !0), v.value.length === 0 && R.value > 1 && (R.value = 1, ae.value = [null], j.value = null), J.value = !1, me;
22566
22566
  }, De = () => {
22567
22567
  const re = {
22568
22568
  ...f,
@@ -22645,7 +22645,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
22645
22645
  const Ra = E(!1);
22646
22646
  return ve([Pe, R, F], async (re, me) => {
22647
22647
  const Ue = me == null ? void 0 : me[0], ke = re[0], dt = re[1];
22648
- ke !== Ue && dt !== 1 && (R.value = 1, ae.value = [null], j.value = null), _.value && !X.value && (Ra.value = !0, ke !== "" && ke !== Ue ? await ce() : await h(), Ra.value = !1);
22648
+ ke !== Ue && dt !== 1 && (R.value = 1, ae.value = [null], j.value = null), _.value && !J.value && (Ra.value = !0, ke !== "" && ke !== Ue ? await ce() : await h(), Ra.value = !1);
22649
22649
  }, { deep: !0, immediate: !0 }), ve(D, (re) => {
22650
22650
  re && (W.value = l.tablePreferences.columnVisibility || {});
22651
22651
  }, { immediate: !0 }), st(() => {
@@ -22857,7 +22857,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
22857
22857
  "initial-page-size": F.value,
22858
22858
  neighbors: e.paginationNeighbors,
22859
22859
  offset: e.paginationOffset,
22860
- "offset-next-button-disabled": !pe.value || !J.value,
22860
+ "offset-next-button-disabled": !pe.value || !X.value,
22861
22861
  "offset-previous-button-disabled": !Z.value,
22862
22862
  "page-sizes": e.paginationPageSizes,
22863
22863
  "total-count": K.value,
@@ -23997,8 +23997,8 @@ Ye.prototype = /** @lends Sortable.prototype */
23997
23997
  _onDragOver: function(t) {
23998
23998
  var a = this.el, n = t.target, r, i, s, l = this.options, o = l.group, u = Ye.active, d = yi === o, c = l.sort, f = It || u, v, g = this, w = !1;
23999
23999
  if (vl) return;
24000
- function S(J, ee) {
24001
- Gt(J, g, Pa({
24000
+ function S(X, ee) {
24001
+ Gt(X, g, Pa({
24002
24002
  evt: t,
24003
24003
  isOwner: d,
24004
24004
  axis: v ? "vertical" : "horizontal",
@@ -24018,12 +24018,12 @@ Ye.prototype = /** @lends Sortable.prototype */
24018
24018
  function m() {
24019
24019
  S("dragOverAnimationCapture"), g.captureAnimationState(), g !== f && f.captureAnimationState();
24020
24020
  }
24021
- function y(J) {
24021
+ function y(X) {
24022
24022
  return S("dragOverCompleted", {
24023
- insertion: J
24024
- }), J && (d ? u._hideClone() : u._showClone(g), g !== f && (ta(he, It ? It.options.ghostClass : u.options.ghostClass, !1), ta(he, l.ghostClass, !0)), It !== g && g !== Ye.active ? It = g : g === Ye.active && It && (It = null), f === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
24023
+ insertion: X
24024
+ }), X && (d ? u._hideClone() : u._showClone(g), g !== f && (ta(he, It ? It.options.ghostClass : u.options.ghostClass, !1), ta(he, l.ghostClass, !0)), It !== g && g !== Ye.active ? It = g : g === Ye.active && It && (It = null), f === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
24025
24025
  S("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
24026
- }), g !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (n === he && !he.animated || n === a && !n.animated) && (qn = null), !l.dragoverBubble && !t.rootEl && n !== document && (he.parentNode[na]._isOutsideThisEl(t.target), !J && mn(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), w = !0;
24026
+ }), g !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (n === he && !he.animated || n === a && !n.animated) && (qn = null), !l.dragoverBubble && !t.rootEl && n !== document && (he.parentNode[na]._isOutsideThisEl(t.target), !X && mn(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), w = !0;
24027
24027
  }
24028
24028
  function k() {
24029
24029
  aa = sa(he), tn = sa(he, l.draggable), Ft({
@@ -25572,7 +25572,7 @@ const fN = {
25572
25572
  })), T = E([]), I = b(() => !a.nested && !a.error && d.value.some((h) => h.key === Xe.BULK_ACTIONS) && !!(i["bulk-action-items"] || i["bulk-actions"]) && !!a.data.every((h) => o(h))), N = E([]), j = b(() => a.nested || !I.value || a.error ? !1 : i.toolbar ? !0 : !a.loading && !!a.data && !!a.data.length), ae = b(() => {
25573
25573
  const h = T.value.length;
25574
25574
  return h ? h > 100 ? "99+" : String(h) : "";
25575
- }), J = E(/* @__PURE__ */ new WeakMap()), ee = (h) => `column-${h}`, _ = (h) => `tooltip-${h}`, le = (h) => h, se = (h, A) => (Y, B) => {
25575
+ }), X = E(/* @__PURE__ */ new WeakMap()), ee = (h) => `column-${h}`, _ = (h) => `tooltip-${h}`, le = (h) => h, se = (h, A) => (Y, B) => {
25576
25576
  const ie = /^on[^a-z]/, ue = {};
25577
25577
  for (const xe in A)
25578
25578
  ie.test(xe) && A[xe] && (ue[xe] = A[xe]);
@@ -25640,7 +25640,7 @@ const fN = {
25640
25640
  sortColumnKey: h.key,
25641
25641
  sortColumnOrder: W.value === "asc" ? "desc" : "asc"
25642
25642
  // display opposite because sortColumnOrder outdated
25643
- }), X(h));
25643
+ }), J(h));
25644
25644
  }, nt = b(() => f.value ? "resizing" : v.value ? "resize-hover" : g.value ? "th-hover" : ""), Ke = b(() => {
25645
25645
  switch (nt.value) {
25646
25646
  case "resizing":
@@ -25691,7 +25691,7 @@ const fN = {
25691
25691
  Y && A.unshift(Y), B && A.push(B), d.value = A;
25692
25692
  }
25693
25693
  }, { deep: !0, immediate: !0 });
25694
- const X = (h) => {
25694
+ const J = (h) => {
25695
25695
  const { key: A } = h;
25696
25696
  P.value && A === P.value ? W.value === "asc" ? W.value = "desc" : W.value = "asc" : (P.value = A, W.value = "asc"), we();
25697
25697
  }, ge = (h) => {
@@ -25760,9 +25760,9 @@ const fN = {
25760
25760
  return ve([() => a.data, N], (h) => {
25761
25761
  const [A, Y] = h;
25762
25762
  if (A.forEach((B) => {
25763
- if (!J.value.get(B)) {
25763
+ if (!X.value.get(B)) {
25764
25764
  const ie = o(B) || yt();
25765
- J.value.set(B, `table-${s}-row-${ie}`);
25765
+ X.value.set(B, `table-${s}-row-${ie}`);
25766
25766
  }
25767
25767
  }), I.value) {
25768
25768
  A.forEach((xe) => {
@@ -25986,7 +25986,7 @@ const fN = {
25986
25986
  ], 2)),
25987
25987
  z("tbody", null, [
25988
25988
  (p(!0), $(Te, null, Be(h.data, (B, ie) => (p(), $(Te, {
25989
- key: J.value.get(B)
25989
+ key: X.value.get(B)
25990
25990
  }, [
25991
25991
  z("tr", He({
25992
25992
  class: { "last-row": ie === h.data.length - 1 && !at.value.includes(ie) },
@@ -25995,7 +25995,7 @@ const fN = {
25995
25995
  ref_for: !0
25996
25996
  }, h.rowAttrs(B)), [
25997
25997
  (p(!0), $(Te, null, Be(c.value, (ue, xe) => (p(), $("td", He({
25998
- key: `${J.value.get(B)}-cell-${ue.key}`,
25998
+ key: `${X.value.get(B)}-cell-${ue.key}`,
25999
25999
  class: {
26000
26000
  "resize-hover": h.resizeColumns && !h.nested && Ke.value === ue.key && xe !== c.value.length - 1,
26001
26001
  "row-link": !!h.rowLink(B).to
@@ -26203,8 +26203,8 @@ const fN = {
26203
26203
  return "";
26204
26204
  let te = u;
26205
26205
  return a.cacheIdentifier && (te = a.cacheIdentifier), a.fetcherCacheKey && (te += `-${a.fetcherCacheKey}`), `k-table_${te}`;
26206
- }), J = E(""), { debouncedFn: ee, generateDebouncedFn: _ } = r((te) => {
26207
- J.value = te;
26206
+ }), X = E(""), { debouncedFn: ee, generateDebouncedFn: _ } = r((te) => {
26207
+ X.value = te;
26208
26208
  }, 350), le = _(0), { data: se, error: be, revalidate: ye, isValidating: Ce } = i(
26209
26209
  () => ae.value,
26210
26210
  () => T(),
@@ -26225,7 +26225,7 @@ const fN = {
26225
26225
  sortColumnOrder: y.value,
26226
26226
  data: d.value
26227
26227
  }) : l(te, we, y.value, d.value) : (Mt = a.paginationAttributes) != null && Mt.offset || Ge(), pe();
26228
- }, X = ({ page: te }) => {
26228
+ }, J = ({ page: te }) => {
26229
26229
  g.value = te;
26230
26230
  }, ge = ({ pageSize: te }) => {
26231
26231
  C.value = [null], k.value = null, w.value = te, g.value = 1, pe();
@@ -26266,7 +26266,7 @@ const fN = {
26266
26266
  g.value !== 1 && (g.value = 1), te === "" ? le(te) : ee(te);
26267
26267
  }, { immediate: !0 });
26268
26268
  const Qe = E(!1);
26269
- return ve([J, g, w], async (te, we) => {
26269
+ return ve([X, g, w], async (te, we) => {
26270
26270
  const [Se] = we, [Ze, at] = te;
26271
26271
  Ze !== Se && at !== 1 && (g.value = 1, C.value = [null], k.value = null), M.value && !F.value && (Qe.value = !0, Ze !== "" && Ze !== Se ? await Ge() : await tt(), Qe.value = !1);
26272
26272
  }, { deep: !0, immediate: !0 }), ve(Z, () => {
@@ -26309,7 +26309,7 @@ const fN = {
26309
26309
  onErrorActionClick: we[1] || (we[1] = (Se) => o("error-action-click")),
26310
26310
  onGetNextOffset: Oe,
26311
26311
  onGetPreviousOffset: Pe,
26312
- onPageChange: X,
26312
+ onPageChange: J,
26313
26313
  onPageSizeChange: ge,
26314
26314
  onRowExpand: we[2] || (we[2] = (Se) => o("row-expand", Se)),
26315
26315
  onRowSelect: we[3] || (we[3] = (Se) => o("row-select", Se)),