@kong/kongponents 9.29.9 → 9.29.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Wg = Object.defineProperty;
2
2
  var Ug = (e, t, a) => t in e ? Wg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var Ya = (e, t, a) => Ug(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { defineComponent as le, renderSlot as Q, reactive as Dr, ref as P, computed as m, createBlock as X, openBlock as h, resolveDynamicComponent as ze, normalizeStyle as Oe, withCtx as B, createElementBlock as D, normalizeClass as ue, createCommentVNode as G, createElementVNode as K, unref as I, toDisplayString as ie, withKeys as ft, withModifiers as Ke, shallowRef as Lv, watch as fe, getCurrentScope as Bv, onScopeDispose as Rv, shallowReadonly as Un, useSlots as It, useAttrs as Vt, onMounted as st, mergeProps as Ue, toHandlers as cl, getCurrentInstance as Fv, onUnmounted as Kt, isReadonly as Vg, toRefs as zv, watchEffect as Ws, Teleport as Kg, toValue as sn, useId as Dt, onBeforeUnmount as fl, createVNode as Z, createTextVNode as me, Transition as ia, withDirectives as dn, vShow as pr, useCssVars as Ft, nextTick as gt, Fragment as Ae, renderList as Re, createSlots as yt, isVNode as Yv, useTemplateRef as Mt, normalizeProps as lr, inject as fi, toRef as ho, provide as vi, guardReactiveProps as ys, isRef as Xn, resolveComponent as _t, resolveDirective as jg, Comment as Gg, cloneVNode as Qg, onBeforeMount as Zg, TransitionGroup as Xg, render as Wu, h as Uu, warn as Jg } from "vue";
4
+ import { defineComponent as le, renderSlot as Q, reactive as Dr, ref as P, computed as m, createBlock as X, openBlock as h, resolveDynamicComponent as Ye, normalizeStyle as Oe, withCtx as B, createElementBlock as D, normalizeClass as ue, createCommentVNode as G, createElementVNode as K, unref as I, toDisplayString as ie, withKeys as ft, withModifiers as Ke, shallowRef as Lv, watch as fe, getCurrentScope as Bv, onScopeDispose as Rv, shallowReadonly as Un, useSlots as It, useAttrs as Vt, onMounted as st, mergeProps as ze, toHandlers as cl, getCurrentInstance as Fv, onUnmounted as Kt, isReadonly as Vg, toRefs as zv, watchEffect as Ws, Teleport as Kg, toValue as sn, useId as Dt, onBeforeUnmount as fl, createVNode as Z, createTextVNode as me, Transition as ia, withDirectives as dn, vShow as pr, useCssVars as Ft, nextTick as gt, Fragment as Ae, renderList as Re, createSlots as yt, isVNode as Yv, useTemplateRef as Mt, normalizeProps as lr, inject as fi, toRef as ho, provide as vi, guardReactiveProps as ys, isRef as Xn, resolveComponent as _t, resolveDirective as jg, Comment as Gg, cloneVNode as Qg, onBeforeMount as Zg, TransitionGroup as Xg, render as Wu, h as Uu, warn as Jg } from "vue";
5
5
  async function _v(e) {
6
6
  var n, r;
7
7
  if (navigator.clipboard)
@@ -251,7 +251,7 @@ const Wv = {
251
251
  "'": "'",
252
252
  "&": "&"
253
253
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? Vu : r(Vu)}`;
254
- return (s, o) => (h(), X(ze(e.as), {
254
+ return (s, o) => (h(), X(Ye(e.as), {
255
255
  "aria-hidden": e.decorative ? "true" : void 0,
256
256
  class: "kui-icon analytics-icon",
257
257
  "data-testid": "kui-icon-wrapper-analytics-icon",
@@ -366,7 +366,7 @@ const Wv = {
366
366
  "'": "&#39;",
367
367
  "&": "&amp;"
368
368
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? ju : r(ju)}`;
369
- return (s, o) => (h(), X(ze(e.as), {
369
+ return (s, o) => (h(), X(Ye(e.as), {
370
370
  "aria-hidden": e.decorative ? "true" : void 0,
371
371
  class: "kui-icon arrow-down-icon",
372
372
  "data-testid": "kui-icon-wrapper-arrow-down-icon",
@@ -481,7 +481,7 @@ const Wv = {
481
481
  "'": "&#39;",
482
482
  "&": "&amp;"
483
483
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? Gu : r(Gu)}`;
484
- return (s, o) => (h(), X(ze(e.as), {
484
+ return (s, o) => (h(), X(Ye(e.as), {
485
485
  "aria-hidden": e.decorative ? "true" : void 0,
486
486
  class: "kui-icon arrow-up-icon",
487
487
  "data-testid": "kui-icon-wrapper-arrow-up-icon",
@@ -596,7 +596,7 @@ const Wv = {
596
596
  "'": "&#39;",
597
597
  "&": "&amp;"
598
598
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? Qu : r(Qu)}`;
599
- return (s, o) => (h(), X(ze(e.as), {
599
+ return (s, o) => (h(), X(Ye(e.as), {
600
600
  "aria-hidden": e.decorative ? "true" : void 0,
601
601
  class: "kui-icon back-icon",
602
602
  "data-testid": "kui-icon-wrapper-back-icon",
@@ -711,7 +711,7 @@ const Wv = {
711
711
  "'": "&#39;",
712
712
  "&": "&amp;"
713
713
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? Zu : r(Zu)}`;
714
- return (s, o) => (h(), X(ze(e.as), {
714
+ return (s, o) => (h(), X(Ye(e.as), {
715
715
  "aria-hidden": e.decorative ? "true" : void 0,
716
716
  class: "kui-icon cal-icon",
717
717
  "data-testid": "kui-icon-wrapper-cal-icon",
@@ -826,7 +826,7 @@ const Wv = {
826
826
  "'": "&#39;",
827
827
  "&": "&amp;"
828
828
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? Xu : r(Xu)}`;
829
- return (s, o) => (h(), X(ze(e.as), {
829
+ return (s, o) => (h(), X(Ye(e.as), {
830
830
  "aria-hidden": e.decorative ? "true" : void 0,
831
831
  class: "kui-icon check-circle-icon",
832
832
  "data-testid": "kui-icon-wrapper-check-circle-icon",
@@ -941,7 +941,7 @@ const Wv = {
941
941
  "'": "&#39;",
942
942
  "&": "&amp;"
943
943
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? Ju : r(Ju)}`;
944
- return (s, o) => (h(), X(ze(e.as), {
944
+ return (s, o) => (h(), X(Ye(e.as), {
945
945
  "aria-hidden": e.decorative ? "true" : void 0,
946
946
  class: "kui-icon check-small-icon",
947
947
  "data-testid": "kui-icon-wrapper-check-small-icon",
@@ -1056,7 +1056,7 @@ const Wv = {
1056
1056
  "'": "&#39;",
1057
1057
  "&": "&amp;"
1058
1058
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? ed : r(ed)}`;
1059
- return (s, o) => (h(), X(ze(e.as), {
1059
+ return (s, o) => (h(), X(Ye(e.as), {
1060
1060
  "aria-hidden": e.decorative ? "true" : void 0,
1061
1061
  class: "kui-icon check-icon",
1062
1062
  "data-testid": "kui-icon-wrapper-check-icon",
@@ -1171,7 +1171,7 @@ const Wv = {
1171
1171
  "'": "&#39;",
1172
1172
  "&": "&amp;"
1173
1173
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? td : r(td)}`;
1174
- return (s, o) => (h(), X(ze(e.as), {
1174
+ return (s, o) => (h(), X(Ye(e.as), {
1175
1175
  "aria-hidden": e.decorative ? "true" : void 0,
1176
1176
  class: "kui-icon chevron-down-icon",
1177
1177
  "data-testid": "kui-icon-wrapper-chevron-down-icon",
@@ -1286,7 +1286,7 @@ const Wv = {
1286
1286
  "'": "&#39;",
1287
1287
  "&": "&amp;"
1288
1288
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? ad : r(ad)}`;
1289
- return (s, o) => (h(), X(ze(e.as), {
1289
+ return (s, o) => (h(), X(Ye(e.as), {
1290
1290
  "aria-hidden": e.decorative ? "true" : void 0,
1291
1291
  class: "kui-icon chevron-right-icon",
1292
1292
  "data-testid": "kui-icon-wrapper-chevron-right-icon",
@@ -1401,7 +1401,7 @@ const Wv = {
1401
1401
  "'": "&#39;",
1402
1402
  "&": "&amp;"
1403
1403
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? nd : r(nd)}`;
1404
- return (s, o) => (h(), X(ze(e.as), {
1404
+ return (s, o) => (h(), X(Ye(e.as), {
1405
1405
  "aria-hidden": e.decorative ? "true" : void 0,
1406
1406
  class: "kui-icon chevron-up-icon",
1407
1407
  "data-testid": "kui-icon-wrapper-chevron-up-icon",
@@ -1516,7 +1516,7 @@ const Wv = {
1516
1516
  "'": "&#39;",
1517
1517
  "&": "&amp;"
1518
1518
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? rd : r(rd)}`;
1519
- return (s, o) => (h(), X(ze(e.as), {
1519
+ return (s, o) => (h(), X(Ye(e.as), {
1520
1520
  "aria-hidden": e.decorative ? "true" : void 0,
1521
1521
  class: "kui-icon clear-icon",
1522
1522
  "data-testid": "kui-icon-wrapper-clear-icon",
@@ -1631,7 +1631,7 @@ const Wv = {
1631
1631
  "'": "&#39;",
1632
1632
  "&": "&amp;"
1633
1633
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? id : r(id)}`;
1634
- return (s, o) => (h(), X(ze(e.as), {
1634
+ return (s, o) => (h(), X(Ye(e.as), {
1635
1635
  "aria-hidden": e.decorative ? "true" : void 0,
1636
1636
  class: "kui-icon close-icon",
1637
1637
  "data-testid": "kui-icon-wrapper-close-icon",
@@ -1746,7 +1746,7 @@ const Wv = {
1746
1746
  "'": "&#39;",
1747
1747
  "&": "&amp;"
1748
1748
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? od : r(od)}`;
1749
- return (s, o) => (h(), X(ze(e.as), {
1749
+ return (s, o) => (h(), X(Ye(e.as), {
1750
1750
  "aria-hidden": e.decorative ? "true" : void 0,
1751
1751
  class: "kui-icon copy-icon",
1752
1752
  "data-testid": "kui-icon-wrapper-copy-icon",
@@ -1861,7 +1861,7 @@ const Wv = {
1861
1861
  "'": "&#39;",
1862
1862
  "&": "&amp;"
1863
1863
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? ld : r(ld)}`;
1864
- return (s, o) => (h(), X(ze(e.as), {
1864
+ return (s, o) => (h(), X(Ye(e.as), {
1865
1865
  "aria-hidden": e.decorative ? "true" : void 0,
1866
1866
  class: "kui-icon danger-icon",
1867
1867
  "data-testid": "kui-icon-wrapper-danger-icon",
@@ -1976,7 +1976,7 @@ const Wv = {
1976
1976
  "'": "&#39;",
1977
1977
  "&": "&amp;"
1978
1978
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? sd : r(sd)}`;
1979
- return (s, o) => (h(), X(ze(e.as), {
1979
+ return (s, o) => (h(), X(Ye(e.as), {
1980
1980
  "aria-hidden": e.decorative ? "true" : void 0,
1981
1981
  class: "kui-icon external-link-icon",
1982
1982
  "data-testid": "kui-icon-wrapper-external-link-icon",
@@ -2091,7 +2091,7 @@ const Wv = {
2091
2091
  "'": "&#39;",
2092
2092
  "&": "&amp;"
2093
2093
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? ud : r(ud)}`;
2094
- return (s, o) => (h(), X(ze(e.as), {
2094
+ return (s, o) => (h(), X(Ye(e.as), {
2095
2095
  "aria-hidden": e.decorative ? "true" : void 0,
2096
2096
  class: "kui-icon filter-icon",
2097
2097
  "data-testid": "kui-icon-wrapper-filter-icon",
@@ -2206,7 +2206,7 @@ const Wv = {
2206
2206
  "'": "&#39;",
2207
2207
  "&": "&amp;"
2208
2208
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? dd : r(dd)}`;
2209
- return (s, o) => (h(), X(ze(e.as), {
2209
+ return (s, o) => (h(), X(Ye(e.as), {
2210
2210
  "aria-hidden": e.decorative ? "true" : void 0,
2211
2211
  class: "kui-icon forward-icon",
2212
2212
  "data-testid": "kui-icon-wrapper-forward-icon",
@@ -2321,7 +2321,7 @@ const Wv = {
2321
2321
  "'": "&#39;",
2322
2322
  "&": "&amp;"
2323
2323
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? cd : r(cd)}`;
2324
- return (s, o) => (h(), X(ze(e.as), {
2324
+ return (s, o) => (h(), X(Ye(e.as), {
2325
2325
  "aria-hidden": e.decorative ? "true" : void 0,
2326
2326
  class: "kui-icon indeterminate-small-icon",
2327
2327
  "data-testid": "kui-icon-wrapper-indeterminate-small-icon",
@@ -2436,7 +2436,7 @@ const Wv = {
2436
2436
  "'": "&#39;",
2437
2437
  "&": "&amp;"
2438
2438
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? fd : r(fd)}`;
2439
- return (s, o) => (h(), X(ze(e.as), {
2439
+ return (s, o) => (h(), X(Ye(e.as), {
2440
2440
  "aria-hidden": e.decorative ? "true" : void 0,
2441
2441
  class: "kui-icon info-icon",
2442
2442
  "data-testid": "kui-icon-wrapper-info-icon",
@@ -2551,7 +2551,7 @@ const Wv = {
2551
2551
  "'": "&#39;",
2552
2552
  "&": "&amp;"
2553
2553
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? vd : r(vd)}`;
2554
- return (s, o) => (h(), X(ze(e.as), {
2554
+ return (s, o) => (h(), X(Ye(e.as), {
2555
2555
  "aria-hidden": e.decorative ? "true" : void 0,
2556
2556
  class: "kui-icon kong-icon",
2557
2557
  "data-testid": "kui-icon-wrapper-kong-icon",
@@ -2666,7 +2666,7 @@ const Wv = {
2666
2666
  "'": "&#39;",
2667
2667
  "&": "&amp;"
2668
2668
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? pd : r(pd)}`;
2669
- return (s, o) => (h(), X(ze(e.as), {
2669
+ return (s, o) => (h(), X(Ye(e.as), {
2670
2670
  "aria-hidden": e.decorative ? "true" : void 0,
2671
2671
  class: "kui-icon more-icon",
2672
2672
  "data-testid": "kui-icon-wrapper-more-icon",
@@ -2782,7 +2782,7 @@ const Wv = {
2782
2782
  "'": "&#39;",
2783
2783
  "&": "&amp;"
2784
2784
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? hd : r(hd)}`;
2785
- return (s, o) => (h(), X(ze(e.as), {
2785
+ return (s, o) => (h(), X(Ye(e.as), {
2786
2786
  "aria-hidden": e.decorative ? "true" : void 0,
2787
2787
  class: "kui-icon progress-icon",
2788
2788
  "data-testid": "kui-icon-wrapper-progress-icon",
@@ -2897,7 +2897,7 @@ const Wv = {
2897
2897
  "'": "&#39;",
2898
2898
  "&": "&amp;"
2899
2899
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? gd : r(gd)}`;
2900
- return (s, o) => (h(), X(ze(e.as), {
2900
+ return (s, o) => (h(), X(Ye(e.as), {
2901
2901
  "aria-hidden": e.decorative ? "true" : void 0,
2902
2902
  class: "kui-icon regex-icon",
2903
2903
  "data-testid": "kui-icon-wrapper-regex-icon",
@@ -3012,7 +3012,7 @@ const Wv = {
3012
3012
  "'": "&#39;",
3013
3013
  "&": "&amp;"
3014
3014
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? md : r(md)}`;
3015
- return (s, o) => (h(), X(ze(e.as), {
3015
+ return (s, o) => (h(), X(Ye(e.as), {
3016
3016
  "aria-hidden": e.decorative ? "true" : void 0,
3017
3017
  class: "kui-icon search-icon",
3018
3018
  "data-testid": "kui-icon-wrapper-search-icon",
@@ -3127,7 +3127,7 @@ const Wv = {
3127
3127
  "'": "&#39;",
3128
3128
  "&": "&amp;"
3129
3129
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? yd : r(yd)}`;
3130
- return (s, o) => (h(), X(ze(e.as), {
3130
+ return (s, o) => (h(), X(Ye(e.as), {
3131
3131
  "aria-hidden": e.decorative ? "true" : void 0,
3132
3132
  class: "kui-icon service-document-icon",
3133
3133
  "data-testid": "kui-icon-wrapper-service-document-icon",
@@ -3242,7 +3242,7 @@ const Wv = {
3242
3242
  "'": "&#39;",
3243
3243
  "&": "&amp;"
3244
3244
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? bd : r(bd)}`;
3245
- return (s, o) => (h(), X(ze(e.as), {
3245
+ return (s, o) => (h(), X(Ye(e.as), {
3246
3246
  "aria-hidden": e.decorative ? "true" : void 0,
3247
3247
  class: "kui-icon table-columns-icon",
3248
3248
  "data-testid": "kui-icon-wrapper-table-columns-icon",
@@ -3357,7 +3357,7 @@ const Wv = {
3357
3357
  "'": "&#39;",
3358
3358
  "&": "&amp;"
3359
3359
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? wd : r(wd)}`;
3360
- return (s, o) => (h(), X(ze(e.as), {
3360
+ return (s, o) => (h(), X(Ye(e.as), {
3361
3361
  "aria-hidden": e.decorative ? "true" : void 0,
3362
3362
  class: "kui-icon visibility-off-icon",
3363
3363
  "data-testid": "kui-icon-wrapper-visibility-off-icon",
@@ -3472,7 +3472,7 @@ const Wv = {
3472
3472
  "'": "&#39;",
3473
3473
  "&": "&amp;"
3474
3474
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? kd : r(kd)}`;
3475
- return (s, o) => (h(), X(ze(e.as), {
3475
+ return (s, o) => (h(), X(Ye(e.as), {
3476
3476
  "aria-hidden": e.decorative ? "true" : void 0,
3477
3477
  class: "kui-icon visibility-icon",
3478
3478
  "data-testid": "kui-icon-wrapper-visibility-icon",
@@ -3587,7 +3587,7 @@ const Wv = {
3587
3587
  "'": "&#39;",
3588
3588
  "&": "&amp;"
3589
3589
  }, l = (s) => s.replace(/[<>"'&]/g, (o) => i[o]), u = `${t.title ? `<title data-testid="kui-icon-svg-title">${l(t.title)}</title>` : ""}${t.staticIds ? Cd : r(Cd)}`;
3590
- return (s, o) => (h(), X(ze(e.as), {
3590
+ return (s, o) => (h(), X(Ye(e.as), {
3591
3591
  "aria-hidden": e.decorative ? "true" : void 0,
3592
3592
  class: "kui-icon warning-icon",
3593
3593
  "data-testid": "kui-icon-wrapper-warning-icon",
@@ -3649,7 +3649,7 @@ const Wv = {
3649
3649
  }, [
3650
3650
  r.showIcon || r.$slots.icon ? (h(), D("div", v1, [
3651
3651
  Q(r.$slots, "icon", {}, () => [
3652
- (h(), X(ze(n.value), {
3652
+ (h(), X(Ye(n.value), {
3653
3653
  class: "alert-icon",
3654
3654
  decorative: "",
3655
3655
  size: I(Ut)
@@ -4745,7 +4745,7 @@ const iy = {
4745
4745
  });
4746
4746
  return st(() => {
4747
4747
  t.icon && console.warn("KButton: `icon` slot is deprecated. Please slot an icon into the `default` slot instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kbutton");
4748
- }), (o, d) => (h(), X(ze(n.value), Ue({
4748
+ }), (o, d) => (h(), X(Ye(n.value), ze({
4749
4749
  class: ["k-button", [i.value, r.value, { "icon-button": o.icon === !0 || !t.default && t.icon }]],
4750
4750
  disabled: o.disabled ? o.disabled : void 0,
4751
4751
  tabindex: o.disabled && n.value !== "button" ? "-1" : void 0,
@@ -5546,7 +5546,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
5546
5546
  g();
5547
5547
  }), fe(c, (x) => {
5548
5548
  n(x ? "open" : "close");
5549
- }), (x, R) => (h(), X(ze(x.tag), {
5549
+ }), (x, R) => (h(), X(Ye(x.tag), {
5550
5550
  ref_key: "kPopoverElement",
5551
5551
  ref: s,
5552
5552
  class: "k-popover",
@@ -5653,7 +5653,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
5653
5653
  },
5654
5654
  setup(e) {
5655
5655
  const t = It(), a = m(() => !!e.text || !!e.label || !!t.content), n = Dt();
5656
- return (r, i) => a.value ? (h(), X(Tr, Ue({
5656
+ return (r, i) => a.value ? (h(), X(Tr, ze({
5657
5657
  key: 0,
5658
5658
  "hide-caret": "",
5659
5659
  "hide-close-icon": "",
@@ -5691,11 +5691,12 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
5691
5691
  tooltip: { default: "" },
5692
5692
  truncationTooltip: { type: Boolean, default: !1 },
5693
5693
  maxWidth: { default: "200" },
5694
- iconBefore: { type: Boolean, default: !0 }
5694
+ iconBefore: { type: Boolean, default: !0 },
5695
+ tooltipAttributes: { default: () => ({}) }
5695
5696
  },
5696
5697
  setup(e) {
5697
5698
  Ft((s) => ({
5698
- "39134b67": i.value
5699
+ "6a1d869c": i.value
5699
5700
  }));
5700
5701
  const { getSizeFromString: t } = At(), a = m(() => Object.keys(qv).includes(e.appearance)), n = P(), r = P(!1), i = m(() => t(e.maxWidth)), l = async () => {
5701
5702
  var s, o;
@@ -5706,9 +5707,9 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
5706
5707
  }), (s, o) => (h(), D("div", {
5707
5708
  class: ue(["k-badge", [s.appearance, { method: a.value }]])
5708
5709
  }, [
5709
- Z(va, {
5710
+ Z(va, ze({
5710
5711
  text: u.value ? s.tooltip : void 0
5711
- }, {
5712
+ }, s.tooltipAttributes), {
5712
5713
  default: B(() => [
5713
5714
  K("div", {
5714
5715
  class: ue(["badge-content", { "icon-after": !s.iconBefore }]),
@@ -5725,10 +5726,10 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
5725
5726
  ], 10, Ry)
5726
5727
  ]),
5727
5728
  _: 3
5728
- }, 8, ["text"])
5729
+ }, 16, ["text"])
5729
5730
  ], 2));
5730
5731
  }
5731
- }), Vr = /* @__PURE__ */ Ee(Fy, [["__scopeId", "data-v-e4de00dc"]]), zy = {
5732
+ }), Vr = /* @__PURE__ */ Ee(Fy, [["__scopeId", "data-v-96f7734d"]]), zy = {
5732
5733
  key: 0,
5733
5734
  class: "breadcrumbs-icon-container"
5734
5735
  }, Yy = {
@@ -5763,12 +5764,12 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
5763
5764
  }
5764
5765
  };
5765
5766
  }, n = (r, i) => r.key || `breadcrumb-${i}`;
5766
- return (r, i) => (h(), D("ul", Ue({ class: "k-breadcrumbs" }, r.$attrs), [
5767
+ return (r, i) => (h(), D("ul", ze({ class: "k-breadcrumbs" }, r.$attrs), [
5767
5768
  (h(!0), D(Ae, null, Re(r.items, (l, u) => (h(), D("li", {
5768
5769
  key: n(l, u),
5769
5770
  class: "breadcrumbs-item-container"
5770
5771
  }, [
5771
- (h(), X(ze(a(l).type), Ue({ ref_for: !0 }, a(l).attrs, {
5772
+ (h(), X(Ye(a(l).type), ze({ ref_for: !0 }, a(l).attrs, {
5772
5773
  class: ["breadcrumbs-item", { link: !!l.to, active: u === r.items.length - 1 }]
5773
5774
  }), {
5774
5775
  default: B(() => [
@@ -5813,7 +5814,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
5813
5814
  const t = It(), a = m(() => !!(t.title || e.title || t.actions));
5814
5815
  return (n, r) => (h(), D("div", qy, [
5815
5816
  a.value ? (h(), D("div", Wy, [
5816
- t.title || n.title ? (h(), X(ze(n.titleTag), {
5817
+ t.title || n.title ? (h(), X(Ye(n.titleTag), {
5817
5818
  key: 0,
5818
5819
  class: "card-title"
5819
5820
  }, {
@@ -6220,7 +6221,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
6220
6221
  K("div", kb, [
6221
6222
  K("div", Cb, [
6222
6223
  Q(i.$slots, "icon", {}, () => [
6223
- (h(), X(ze(n.value), {
6224
+ (h(), X(Ye(n.value), {
6224
6225
  color: r.value,
6225
6226
  decorative: "",
6226
6227
  size: I(s1)
@@ -6339,7 +6340,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
6339
6340
  }, c.$attrs.class, c.$attrs.style]]),
6340
6341
  "data-testid": "dropdown-item"
6341
6342
  }, [
6342
- (h(), X(ze(d.value[s.value].tag), Ue({ "data-testid": "dropdown-item-trigger" }, d.value[s.value].attrs, {
6343
+ (h(), X(Ye(d.value[s.value].tag), ze({ "data-testid": "dropdown-item-trigger" }, d.value[s.value].attrs, {
6343
6344
  onClick: d.value[s.value].onClick
6344
6345
  }), {
6345
6346
  default: B(() => [
@@ -6411,7 +6412,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
6411
6412
  }, [
6412
6413
  Z(I(vl), null, {
6413
6414
  default: B(({ toggle: g, isToggled: y }) => [
6414
- Z(Tr, Ue({
6415
+ Z(Tr, ze({
6415
6416
  ref_key: "kPop",
6416
6417
  ref: r
6417
6418
  }, l, {
@@ -6431,7 +6432,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
6431
6432
  }, () => [
6432
6433
  (h(!0), D(Ae, null, Re(v.items, (p, w) => {
6433
6434
  var k;
6434
- return h(), X(ru, Ue({ ref_for: !0 }, p, {
6435
+ return h(), X(ru, ze({ ref_for: !0 }, p, {
6435
6436
  key: `${p.label}-${w}`,
6436
6437
  item: p,
6437
6438
  selected: v.selectionMenu && ((k = s.value) == null ? void 0 : k.value) === p.value,
@@ -6443,7 +6444,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
6443
6444
  ])
6444
6445
  ]),
6445
6446
  default: B(() => [
6446
- (h(), X(ze(n.value), {
6447
+ (h(), X(Ye(n.value), {
6447
6448
  class: "dropdown-trigger",
6448
6449
  "data-testid": "dropdown-trigger",
6449
6450
  label: v.disabledTooltip ? v.disabledTooltip : void 0,
@@ -6869,8 +6870,8 @@ const Nb = {
6869
6870
  emits: ["card-click", "error-action-click", "empty-state-action-click", "update:catalog-preferences", "state"],
6870
6871
  setup(e, { emit: t }) {
6871
6872
  const { useRequest: a, useDebounce: n, useSwrvState: r } = At(), i = t, l = It(), u = Dt(), s = () => {
6872
- var Ye;
6873
- const oe = (Ye = e.paginationPageSizes) == null ? void 0 : Ye[0];
6873
+ var _e;
6874
+ const oe = (_e = e.paginationPageSizes) == null ? void 0 : _e[0];
6874
6875
  return oe || Ld;
6875
6876
  }, o = P([]), d = P(0), c = P(""), f = P(1), v = P(s()), b = P(null), g = P([]), y = m(() => g.value[f.value - 1]), p = P(null), w = P(!0), k = P(!1), $ = m(() => !!l.toolbar), C = {
6876
6877
  page: 1,
@@ -6880,7 +6881,7 @@ const Nb = {
6880
6881
  }, T = m(() => (he.value || e.loading || Ze.value) && !e.error), N = m(() => !T.value && o.value && !o.value.length), _ = m(() => ({
6881
6882
  pageSize: v.value
6882
6883
  })), z = P(!0), q = async () => {
6883
- var Ye, ee;
6884
+ var _e, ee;
6884
6885
  const oe = await e.fetcher({
6885
6886
  query: e.searchInput || c.value,
6886
6887
  pageSize: v.value,
@@ -6889,7 +6890,7 @@ const Nb = {
6889
6890
  });
6890
6891
  if (oe == null)
6891
6892
  throw new Error("KCatalog: Fetcher did not return data correctly.");
6892
- return o.value = oe.data, d.value = e.paginationTotalItems || oe.total || ((Ye = oe.data) == null ? void 0 : Ye.length), e.paginationOffset && ((ee = oe.pagination) != null && ee.offset ? (p.value = oe.pagination.offset, g.value[f.value] || g.value.push(oe.pagination.offset)) : p.value = null, w.value = oe.pagination && "hasNextPage" in oe.pagination ? !!oe.pagination.hasNextPage : !0), o.value.length === 0 && f.value > 1 && (f.value = 1, g.value = [null], b.value = null), z.value = !1, oe;
6893
+ return o.value = oe.data, d.value = e.paginationTotalItems || oe.total || ((_e = oe.data) == null ? void 0 : _e.length), e.paginationOffset && ((ee = oe.pagination) != null && ee.offset ? (p.value = oe.pagination.offset, g.value[f.value] || g.value.push(oe.pagination.offset)) : p.value = null, w.value = oe.pagination && "hasNextPage" in oe.pagination ? !!oe.pagination.hasNextPage : !0), o.value.length === 0 && f.value > 1 && (f.value = 1, g.value = [null], b.value = null), z.value = !1, oe;
6893
6894
  }, M = () => {
6894
6895
  const oe = {
6895
6896
  ...C,
@@ -6919,10 +6920,10 @@ const Nb = {
6919
6920
  }, at = () => {
6920
6921
  f.value--, b.value = y.value;
6921
6922
  }, et = (oe) => oe.toLowerCase().replace(/[^[a-z0-9]/gi, "-"), Qe = m(() => {
6922
- var Ye;
6923
+ var _e;
6923
6924
  if (!e.fetcher || e.disablePagination || !o.value || !o.value.length || e.error)
6924
6925
  return !1;
6925
- const oe = ((Ye = e.paginationPageSizes) == null ? void 0 : Ye[0]) ?? Ld;
6926
+ const oe = ((_e = e.paginationPageSizes) == null ? void 0 : _e[0]) ?? Ld;
6926
6927
  return e.hidePaginationWhenOptional && f.value === 1 ? e.paginationOffset ? !!y.value || !!p.value || o.value.length >= oe : d.value > oe : !0;
6927
6928
  });
6928
6929
  fe(U, (oe) => {
@@ -6940,26 +6941,26 @@ const Nb = {
6940
6941
  break;
6941
6942
  }
6942
6943
  }, { immediate: !0 }), fe([Ce, xe], (oe) => {
6943
- var Ye;
6944
+ var _e;
6944
6945
  i("state", {
6945
6946
  state: oe == null ? void 0 : oe[1],
6946
6947
  // newData[catalogState]
6947
- hasData: (Ye = oe == null ? void 0 : oe[0]) == null ? void 0 : Ye.hasData
6948
+ hasData: (_e = oe == null ? void 0 : oe[0]) == null ? void 0 : _e.hasData
6948
6949
  // newData[stateData].hasData
6949
6950
  });
6950
6951
  }), fe(() => e.searchInput, (oe) => {
6951
6952
  f.value !== 1 && (f.value = 1), oe === "" ? F(oe) : x(oe);
6952
6953
  }, { immediate: !0 });
6953
6954
  const Ze = P(!1);
6954
- return fe([S, f, v], async (oe, Ye) => {
6955
- const ee = Ye == null ? void 0 : Ye[0], ye = oe[0], De = oe[1];
6955
+ return fe([S, f, v], async (oe, _e) => {
6956
+ const ee = _e == null ? void 0 : _e[0], ye = oe[0], De = oe[1];
6956
6957
  ye !== ee && De !== 1 && (f.value = 1, g.value = [null], b.value = null), k.value && !z.value && (Ze.value = !0, await J(), Ze.value = !1);
6957
6958
  }, { deep: !0, immediate: !0 }), fe(_, (oe) => {
6958
6959
  i("update:catalog-preferences", oe);
6959
6960
  }), st(() => {
6960
6961
  M();
6961
- }), (oe, Ye) => (h(), D("div", Kb, [
6962
- oe.title ? (h(), X(ze(oe.titleTag), {
6962
+ }), (oe, _e) => (h(), D("div", Kb, [
6963
+ oe.title ? (h(), X(Ye(oe.titleTag), {
6963
6964
  key: 0,
6964
6965
  class: "catalog-title",
6965
6966
  "data-testid": "catalog-title"
@@ -6991,7 +6992,7 @@ const Nb = {
6991
6992
  Z(it, {
6992
6993
  "data-testid": et(oe.errorStateActionMessage),
6993
6994
  to: oe.errorStateActionRoute ? oe.errorStateActionRoute : void 0,
6994
- onClick: Ye[0] || (Ye[0] = (ee) => i("error-action-click"))
6995
+ onClick: _e[0] || (_e[0] = (ee) => i("error-action-click"))
6995
6996
  }, {
6996
6997
  default: B(() => [
6997
6998
  me(ie(oe.errorStateActionMessage), 1)
@@ -7017,7 +7018,7 @@ const Nb = {
7017
7018
  appearance: oe.searchInput ? "tertiary" : "primary",
7018
7019
  "data-testid": et(oe.emptyStateActionMessage),
7019
7020
  to: oe.emptyStateActionRoute ? oe.emptyStateActionRoute : void 0,
7020
- onClick: Ye[1] || (Ye[1] = (ee) => i("empty-state-action-click"))
7021
+ onClick: _e[1] || (_e[1] = (ee) => i("empty-state-action-click"))
7021
7022
  }, {
7022
7023
  default: B(() => [
7023
7024
  Q(oe.$slots, "empty-state-action-icon", {}, void 0, !0),
@@ -7098,7 +7099,7 @@ const Nb = {
7098
7099
  class: ue(["k-label", { required: r.required }])
7099
7100
  }, [
7100
7101
  Q(r.$slots, "default", {}, void 0, !0),
7101
- a.value ? (h(), X(va, Ue({ key: 0 }, r.tooltipAttributes, {
7102
+ a.value ? (h(), X(va, ze({ key: 0 }, r.tooltipAttributes, {
7102
7103
  class: "label-tooltip",
7103
7104
  "tooltip-id": I(n)
7104
7105
  }), {
@@ -7154,7 +7155,7 @@ const Nb = {
7154
7155
  K("div", {
7155
7156
  class: ue(["checkbox-input-wrapper", { "has-label": u.value }])
7156
7157
  }, [
7157
- K("input", Ue({ id: l.value }, c.value, {
7158
+ K("input", ze({ id: l.value }, c.value, {
7158
7159
  "aria-checked": g.modelValue,
7159
7160
  class: "checkbox-input",
7160
7161
  type: "checkbox",
@@ -7178,7 +7179,7 @@ const Nb = {
7178
7179
  }, null, 8, ["size"])) : G("", !0)
7179
7180
  ], 2),
7180
7181
  K("div", a0, [
7181
- u.value ? (h(), X(Qa, Ue({ key: 0 }, g.labelAttributes, {
7182
+ u.value ? (h(), X(Qa, ze({ key: 0 }, g.labelAttributes, {
7182
7183
  class: "checkbox-label",
7183
7184
  for: l.value
7184
7185
  }), yt({
@@ -7363,7 +7364,7 @@ const Nb = {
7363
7364
  }, { flush: "post" }), () => {
7364
7365
  var r;
7365
7366
  const { Y: i, G: l, K: u, Z: s } = e, o = n.value, { style: d, ...c } = (r = e.ee) !== null && r !== void 0 ? r : {}, f = { position: o && u ? void 0 : "absolute", [l ? "height" : "width"]: "100%", [l ? "top" : "left"]: "0px", [l ? mp() ? "right" : "left" : "top"]: a.value + "px", visibility: !o || u ? "visible" : "hidden", ...d };
7366
- return l && (f.display = "flex"), Z(s, Ue({ ref: t, style: f }, c), typeof (v = i) == "function" || Object.prototype.toString.call(v) === "[object Object]" && !Yv(v) ? i : { default: () => [i], _: 2 }, 16, ["style"]);
7367
+ return l && (f.display = "flex"), Z(s, ze({ ref: t, style: f }, c), typeof (v = i) == "function" || Object.prototype.toString.call(v) === "[object Object]" && !Yv(v) ? i : { default: () => [i], _: 2 }, 16, ["style"]);
7367
7368
  var v;
7368
7369
  };
7369
7370
  } }), g0 = (e, t) => {
@@ -7707,7 +7708,7 @@ const j0 = ["id", "aria-describedby", "aria-invalid", "type", "value"], G0 = ["a
7707
7708
  }), (S, x) => (h(), D("div", {
7708
7709
  class: ue(["k-input", [S.$attrs.class, { "input-error": p.value || S.error || S.hasError }]])
7709
7710
  }, [
7710
- S.label ? (h(), X(Qa, Ue({
7711
+ S.label ? (h(), X(Qa, ze({
7711
7712
  key: 0,
7712
7713
  for: c.value
7713
7714
  }, S.labelAttributes, { required: o.value }), yt({
@@ -7735,7 +7736,7 @@ const j0 = ["id", "aria-describedby", "aria-invalid", "type", "value"], G0 = ["a
7735
7736
  }, [
7736
7737
  Q(S.$slots, "before", {}, void 0, !0)
7737
7738
  ], 512)) : G("", !0),
7738
- K("input", Ue({
7739
+ K("input", ze({
7739
7740
  id: c.value,
7740
7741
  "aria-describedby": k.value ? I(f) : void 0,
7741
7742
  "aria-invalid": S.error || S.hasError || p.value ? "true" : void 0,
@@ -7934,7 +7935,7 @@ const dw = /* @__PURE__ */ le({
7934
7935
  text: t.value
7935
7936
  }, {
7936
7937
  default: B(() => [
7937
- Z(it, Ue({
7938
+ Z(it, ze({
7938
7939
  appearance: "tertiary",
7939
7940
  class: ["code-block-action-button", [`theme-${r.theme}`, { "code-block-action-button-active": r.active }]]
7940
7941
  }, I(a), {
@@ -8173,7 +8174,7 @@ const vw = ["id"], pw = {
8173
8174
  }, 1500));
8174
8175
  }
8175
8176
  const oe = m(() => e.theme === "light" ? n1 : bs);
8176
- function Ye(ee) {
8177
+ function _e(ee) {
8177
8178
  return {
8178
8179
  // These props essentially renders a structure like this:
8179
8180
  //
@@ -8367,7 +8368,7 @@ const vw = ["id"], pw = {
8367
8368
  Q(ee.$slots, "secondary-actions", {}, void 0, !0)
8368
8369
  ])
8369
8370
  ])) : G("", !0),
8370
- z.value || $.value ? dn((h(), X(ze("pre"), {
8371
+ z.value || $.value ? dn((h(), X(Ye("pre"), {
8371
8372
  key: 1,
8372
8373
  class: ue(["filtered-code-block", {
8373
8374
  "show-line-numbers": ee.showLineNumbers
@@ -8375,7 +8376,7 @@ const vw = ["id"], pw = {
8375
8376
  "data-testid": "filtered-code-block"
8376
8377
  }, {
8377
8378
  default: B(() => [
8378
- ee.showLineNumbers && !ee.singleLine ? (h(), X(I(zd), lr(Ue({ key: 0 }, Ye(!0))), {
8379
+ ee.showLineNumbers && !ee.singleLine ? (h(), X(I(zd), lr(ze({ key: 0 }, _e(!0))), {
8379
8380
  default: B(({ item: De }) => [
8380
8381
  K("a", {
8381
8382
  id: M(De),
@@ -8391,7 +8392,7 @@ const vw = ["id"], pw = {
8391
8392
  }, 8, ["class"])), [
8392
8393
  [pr, z.value]
8393
8394
  ]) : G("", !0),
8394
- !z.value || k.value ? dn((h(), X(ze("pre"), {
8395
+ !z.value || k.value ? dn((h(), X(Ye("pre"), {
8395
8396
  key: 2,
8396
8397
  class: ue(["highlighted-code-block", {
8397
8398
  "show-line-numbers": ee.showLineNumbers,
@@ -8400,11 +8401,11 @@ const vw = ["id"], pw = {
8400
8401
  "data-testid": "highlighted-code-block"
8401
8402
  }, {
8402
8403
  default: B(() => [
8403
- ee.showLineNumbers && !ee.singleLine ? (h(), X(I(zd), Ue({
8404
+ ee.showLineNumbers && !ee.singleLine ? (h(), X(I(zd), ze({
8404
8405
  key: 0,
8405
8406
  ref_key: "codeBlockLineNumbers",
8406
8407
  ref: w
8407
- }, Ye(!1)), {
8408
+ }, _e(!1)), {
8408
8409
  default: B(({ item: De }) => [
8409
8410
  K("a", {
8410
8411
  id: M(De),
@@ -8458,7 +8459,7 @@ const vw = ["id"], pw = {
8458
8459
  K("div", {
8459
8460
  class: ue(["collapse-heading", { "has-trailing-trigger": u.value }])
8460
8461
  }, [
8461
- f.title || f.$slots.title ? (h(), X(ze(f.titleTag), {
8462
+ f.title || f.$slots.title ? (h(), X(Ye(f.titleTag), {
8462
8463
  key: 0,
8463
8464
  class: "collapse-title",
8464
8465
  "data-testid": "collapse-title"
@@ -11510,7 +11511,7 @@ function dk() {
11510
11511
  weekStartsOn: at,
11511
11512
  locale: Ne,
11512
11513
  _originalDate: et
11513
- }, Ye = xe.match(g).map(function(ee) {
11514
+ }, _e = xe.match(g).map(function(ee) {
11514
11515
  var ye = ee[0];
11515
11516
  if (ye === "p" || ye === "P") {
11516
11517
  var De = u.default[ye];
@@ -11530,7 +11531,7 @@ function dk() {
11530
11531
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + ye + "`");
11531
11532
  return ee;
11532
11533
  }).join("");
11533
- return Ye;
11534
+ return _e;
11534
11535
  }
11535
11536
  function $(C) {
11536
11537
  var T = C.match(y);
@@ -12726,11 +12727,11 @@ function YC(e) {
12726
12727
  var S, x = $ === "y" ? Jt : ea, R = $ === "y" ? pa : ha, F = $ === "y" ? "height" : "width", U = T[$], W = U + y[x], J = U - y[R], V = v ? -_[F] / 2 : 0, ve = w === yr ? N[F] : _[F], de = w === yr ? -_[F] : -N[F], $e = t.elements.arrow, he = v && $e ? cu($e) : {
12727
12728
  width: 0,
12728
12729
  height: 0
12729
- }, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Up(), xe = Ce[x], Pe = Ce[R], Ne = Xr(0, N[F], he[F]), Ge = k ? N[F] / 2 - V - Ne - xe - q.mainAxis : ve - Ne - xe - q.mainAxis, at = k ? -N[F] / 2 + V + Ne + Pe + q.mainAxis : de + Ne + Pe + q.mainAxis, et = t.elements.arrow && mi(t.elements.arrow), Qe = et ? $ === "y" ? et.clientTop || 0 : et.clientLeft || 0 : 0, Ze = (S = M == null ? void 0 : M[$]) != null ? S : 0, oe = U + Ge - Ze - Qe, Ye = U + at - Ze, ee = Xr(v ? Wo(W, oe) : W, U, v ? Mn(J, Ye) : J);
12730
+ }, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Up(), xe = Ce[x], Pe = Ce[R], Ne = Xr(0, N[F], he[F]), Ge = k ? N[F] / 2 - V - Ne - xe - q.mainAxis : ve - Ne - xe - q.mainAxis, at = k ? -N[F] / 2 + V + Ne + Pe + q.mainAxis : de + Ne + Pe + q.mainAxis, et = t.elements.arrow && mi(t.elements.arrow), Qe = et ? $ === "y" ? et.clientTop || 0 : et.clientLeft || 0 : 0, Ze = (S = M == null ? void 0 : M[$]) != null ? S : 0, oe = U + Ge - Ze - Qe, _e = U + at - Ze, ee = Xr(v ? Wo(W, oe) : W, U, v ? Mn(J, _e) : J);
12730
12731
  T[$] = ee, E[$] = ee - U;
12731
12732
  }
12732
12733
  if (u) {
12733
- var ye, De = $ === "x" ? Jt : ea, ne = $ === "x" ? pa : ha, we = T[C], Me = C === "y" ? "height" : "width", Te = we + y[De], _e = we - y[ne], wt = [Jt, ea].indexOf(p) !== -1, mt = (ye = M == null ? void 0 : M[C]) != null ? ye : 0, Xe = wt ? Te : we - N[Me] - _[Me] - mt + q.altAxis, $t = wt ? we + N[Me] + _[Me] - mt - q.altAxis : _e, Ot = v && wt ? dC(Xe, we, $t) : Xr(v ? Xe : Te, we, v ? $t : _e);
12734
+ var ye, De = $ === "x" ? Jt : ea, ne = $ === "x" ? pa : ha, we = T[C], Me = C === "y" ? "height" : "width", Te = we + y[De], He = we - y[ne], wt = [Jt, ea].indexOf(p) !== -1, mt = (ye = M == null ? void 0 : M[C]) != null ? ye : 0, Xe = wt ? Te : we - N[Me] - _[Me] - mt + q.altAxis, $t = wt ? we + N[Me] + _[Me] - mt - q.altAxis : He, Ot = v && wt ? dC(Xe, we, $t) : Xr(v ? Xe : Te, we, v ? $t : He);
12734
12735
  T[C] = Ot, E[C] = Ot - we;
12735
12736
  }
12736
12737
  t.modifiersData[n] = E;
@@ -16470,7 +16471,7 @@ function a7(e, { slots: t, emit: a }) {
16470
16471
  var H, A;
16471
16472
  if (!Ne.value)
16472
16473
  return null;
16473
- const j = Pe.value.find((qe) => qe.pinPage) || Pe.value[0];
16474
+ const j = Pe.value.find((We) => We.pinPage) || Pe.value[0];
16474
16475
  if (!j || !j.hasRanges)
16475
16476
  return null;
16476
16477
  const [ae] = j.ranges, pe = ((H = ae.start) == null ? void 0 : H.date) || ((A = ae.end) == null ? void 0 : A.date);
@@ -16481,10 +16482,10 @@ function a7(e, { slots: t, emit: a }) {
16481
16482
  const H = Qe();
16482
16483
  return Ia(H) ? H : de(/* @__PURE__ */ new Date());
16483
16484
  }, oe = (H, A = {}) => {
16484
- const { view: j = o.value, position: ae = 1, force: pe } = A, qe = ae > 0 ? 1 - ae : -(N.value + ae);
16485
- let We = ve(H, qe, j), kt = ve(We, N.value - 1, j);
16486
- return pe || (Os(We, M.value) ? We = M.value : Xo(kt, E.value) && (We = ve(E.value, 1 - N.value)), kt = ve(We, N.value - 1)), { fromPage: We, toPage: kt };
16487
- }, Ye = (H, A, j = "") => {
16485
+ const { view: j = o.value, position: ae = 1, force: pe } = A, We = ae > 0 ? 1 - ae : -(N.value + ae);
16486
+ let Ue = ve(H, We, j), kt = ve(Ue, N.value - 1, j);
16487
+ return pe || (Os(Ue, M.value) ? Ue = M.value : Xo(kt, E.value) && (Ue = ve(E.value, 1 - N.value)), kt = ve(Ue, N.value - 1)), { fromPage: Ue, toPage: kt };
16488
+ }, _e = (H, A, j = "") => {
16488
16489
  if (j === "none" || j === "fade")
16489
16490
  return j;
16490
16491
  if ((H == null ? void 0 : H.view) !== (A == null ? void 0 : A.view))
@@ -16492,7 +16493,7 @@ function a7(e, { slots: t, emit: a }) {
16492
16493
  const ae = Xo(A, H), pe = Os(A, H);
16493
16494
  return !ae && !pe ? "fade" : j === "slide-v" ? pe ? "slide-down" : "slide-up" : pe ? "slide-right" : "slide-left";
16494
16495
  }, ee = (H = {}) => new Promise((A, j) => {
16495
- const { position: ae = 1, force: pe = !1, transition: qe } = H, We = Ia(H.page) ? H.page : Ze(), { fromPage: kt } = oe(We, {
16496
+ const { position: ae = 1, force: pe = !1, transition: We } = H, Ue = Ia(H.page) ? H.page : Ze(), { fromPage: kt } = oe(Ue, {
16496
16497
  position: ae,
16497
16498
  force: pe
16498
16499
  }), Qt = [];
@@ -16515,10 +16516,10 @@ function a7(e, { slots: t, emit: a }) {
16515
16516
  })
16516
16517
  );
16517
16518
  }
16518
- c.value = Ye(
16519
+ c.value = _e(
16519
16520
  d.value[0],
16520
16521
  Qt[0],
16521
- qe
16522
+ We
16522
16523
  ), d.value = Qt, c.value && c.value !== "none" ? f = {
16523
16524
  resolve: A,
16524
16525
  reject: j
@@ -16545,19 +16546,19 @@ function a7(e, { slots: t, emit: a }) {
16545
16546
  page: A.fromPage,
16546
16547
  position: 1,
16547
16548
  force: !0
16548
- }), a("did-move", d.value)), !0), _e = (H, A = {}) => Te(ye(H), A), wt = () => _e(-_.value), mt = () => _e(_.value), Xe = (H) => {
16549
+ }), a("did-move", d.value)), !0), He = (H, A = {}) => Te(ye(H), A), wt = () => He(-_.value), mt = () => He(_.value), Xe = (H) => {
16549
16550
  const A = F.value ? ".in-month" : "", j = `.id-${p.value.getDayId(H)}${A}`, ae = `${j}.vc-focusable, ${j} .vc-focusable`, pe = n.value;
16550
16551
  if (pe) {
16551
- const qe = pe.querySelector(ae);
16552
- if (qe)
16553
- return qe.focus(), !0;
16552
+ const We = pe.querySelector(ae);
16553
+ if (We)
16554
+ return We.focus(), !0;
16554
16555
  }
16555
16556
  return !1;
16556
16557
  }, $t = async (H, A = {}) => Xe(H) ? !0 : (await Te(H, A), Xe(H)), Ot = (H, A) => {
16557
16558
  i.value = H.day, a("dayclick", H, A);
16558
16559
  }, re = (H, A) => {
16559
16560
  a("daymouseenter", H, A);
16560
- }, He = (H, A) => {
16561
+ }, qe = (H, A) => {
16561
16562
  a("daymouseleave", H, A);
16562
16563
  }, Fe = (H, A) => {
16563
16564
  i.value = H.day, r.value = H, H.isFocused = !0, a("dayfocusin", H, A);
@@ -16688,7 +16689,7 @@ function a7(e, { slots: t, emit: a }) {
16688
16689
  canMove: De,
16689
16690
  canMoveBy: ne,
16690
16691
  move: Te,
16691
- moveBy: _e,
16692
+ moveBy: He,
16692
16693
  movePrev: wt,
16693
16694
  moveNext: mt,
16694
16695
  onTransitionBeforeEnter: J,
@@ -16699,7 +16700,7 @@ function a7(e, { slots: t, emit: a }) {
16699
16700
  onDayKeydown: nt,
16700
16701
  onDayClick: Ot,
16701
16702
  onDayMouseenter: re,
16702
- onDayMouseleave: He,
16703
+ onDayMouseleave: qe,
16703
16704
  onDayFocusin: Fe,
16704
16705
  onDayFocusout: ot,
16705
16706
  onWeeknumberClick: Lt
@@ -16925,7 +16926,7 @@ function r7(e, t, a, n, r, i) {
16925
16926
  onAfterLeave: e.afterLeave
16926
16927
  }, {
16927
16928
  default: B(() => [
16928
- e.isVisible ? (h(), D("div", Ue({
16929
+ e.isVisible ? (h(), D("div", ze({
16929
16930
  key: 0,
16930
16931
  tabindex: "-1",
16931
16932
  class: `vc-popover-content direction-${e.direction}`
@@ -16995,7 +16996,7 @@ const Ru = /* @__PURE__ */ mn(n7, [["render", r7]]), i7 = { class: "vc-day-popov
16995
16996
  },
16996
16997
  setup(e) {
16997
16998
  const a = sg(e.name);
16998
- return (n, r) => I(a) ? (h(), X(ze(I(a)), lr(Ue({ key: 0 }, n.$attrs)), null, 16)) : Q(n.$slots, "default", { key: 1 });
16999
+ return (n, r) => I(a) ? (h(), X(Ye(I(a)), lr(ze({ key: 0 }, n.$attrs)), null, 16)) : Q(n.$slots, "default", { key: 1 });
16999
17000
  }
17000
17001
  }), d7 = { class: "vc-day-popover-container" }, c7 = {
17001
17002
  key: 0,
@@ -17098,7 +17099,7 @@ const B7 = /* @__PURE__ */ mn(M7, [["render", L7]]), R7 = /* @__PURE__ */ Object
17098
17099
  },
17099
17100
  setup(e) {
17100
17101
  const t = e, a = m(() => t.width || t.size), n = m(() => t.height || t.size), r = m(() => R7[`Icon${t.name}`]);
17101
- return (i, l) => (h(), X(ze(I(r)), {
17102
+ return (i, l) => (h(), X(Ye(I(r)), {
17102
17103
  width: I(a),
17103
17104
  height: I(n),
17104
17105
  class: "vc-base-icon"
@@ -17657,7 +17658,7 @@ function aP(e, t, a, n, r, i) {
17657
17658
  locale: e.locale
17658
17659
  }, {
17659
17660
  default: B(() => [
17660
- dn((h(), D("div", Ue(e.dayContentProps, cl(e.dayContentEvents, !0)), [
17661
+ dn((h(), D("div", ze(e.dayContentProps, cl(e.dayContentEvents, !0)), [
17661
17662
  me(ie(e.day.label), 1)
17662
17663
  ], 16)), [
17663
17664
  [u, e.dayPopover]
@@ -17757,7 +17758,7 @@ const nP = /* @__PURE__ */ mn(Q7, [["render", aP]]), rP = { class: "vc-weekdays"
17757
17758
  function dP(e, t, a, n, r, i) {
17758
17759
  const l = _t("CalendarHeader"), u = _t("CalendarPage"), s = _t("CalendarSlot"), o = _t("CalendarPageProvider"), d = _t("CalendarDayPopover"), c = _t("CalendarNavPopover");
17759
17760
  return h(), D(Ae, null, [
17760
- K("div", Ue({ "data-helptext": "Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year" }, e.$attrs, {
17761
+ K("div", ze({ "data-helptext": "Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year" }, e.$attrs, {
17761
17762
  class: [
17762
17763
  "vc-container",
17763
17764
  `vc-${e.view}`,
@@ -17925,8 +17926,8 @@ function pP(e, { emit: t, slots: a }) {
17925
17926
  ...e.selectAttribute,
17926
17927
  dates: o.value,
17927
17928
  pinPage: !0
17928
- }, { dot: j, bar: ae, highlight: pe, content: qe } = A;
17929
- return !j && !ae && !pe && !qe && (A.highlight = !0), A;
17929
+ }, { dot: j, bar: ae, highlight: pe, content: We } = A;
17930
+ return !j && !ae && !pe && !We && (A.highlight = !0), A;
17930
17931
  }), J = m(() => {
17931
17932
  if (!p.value || !Pe(d.value))
17932
17933
  return null;
@@ -17934,8 +17935,8 @@ function pP(e, { emit: t, slots: a }) {
17934
17935
  key: "select-drag",
17935
17936
  ...e.dragAttribute,
17936
17937
  dates: d.value
17937
- }, { dot: j, bar: ae, highlight: pe, content: qe } = A;
17938
- return !j && !ae && !pe && !qe && (A.highlight = {
17938
+ }, { dot: j, bar: ae, highlight: pe, content: We } = A;
17939
+ return !j && !ae && !pe && !We && (A.highlight = {
17939
17940
  startEnd: {
17940
17941
  fillMode: "outline"
17941
17942
  }
@@ -18012,16 +18013,16 @@ function pP(e, { emit: t, slots: a }) {
18012
18013
  if (!Pe(A))
18013
18014
  return null;
18014
18015
  if (xe(A)) {
18015
- const qe = r.value.toDate(A.start, {
18016
+ const We = r.value.toDate(A.start, {
18016
18017
  ...j[0],
18017
18018
  fillDate: w.value ?? void 0,
18018
18019
  patch: ae
18019
- }), We = r.value.toDate(A.end, {
18020
+ }), Ue = r.value.toDate(A.end, {
18020
18021
  ...j[1],
18021
18022
  fillDate: k.value ?? void 0,
18022
18023
  patch: ae
18023
18024
  });
18024
- return ot({ start: qe, end: We }, pe);
18025
+ return ot({ start: We, end: Ue }, pe);
18025
18026
  }
18026
18027
  return r.value.toDateOrNull(A, {
18027
18028
  ...j[0],
@@ -18037,18 +18038,18 @@ function pP(e, { emit: t, slots: a }) {
18037
18038
  }
18038
18039
  function Qe(A, j = {}) {
18039
18040
  return clearTimeout(b), new Promise((ae) => {
18040
- const { debounce: pe = 0, ...qe } = j;
18041
+ const { debounce: pe = 0, ...We } = j;
18041
18042
  pe > 0 ? b = window.setTimeout(() => {
18042
- ae(Ze(A, qe));
18043
- }, pe) : ae(Ze(A, qe));
18043
+ ae(Ze(A, We));
18044
+ }, pe) : ae(Ze(A, We));
18044
18045
  });
18045
18046
  }
18046
18047
  function Ze(A, {
18047
18048
  config: j = _.value,
18048
18049
  patch: ae = "dateTime",
18049
18050
  clearIfEqual: pe = !1,
18050
- formatInput: qe = !0,
18051
- hidePopover: We = !1,
18051
+ formatInput: We = !0,
18052
+ hidePopover: Ue = !1,
18052
18053
  dragging: kt = N.value,
18053
18054
  targetPriority: Qt,
18054
18055
  moveToValue: Sa = !1
@@ -18063,7 +18064,7 @@ function pP(e, { emit: t, slots: a }) {
18063
18064
  if (Ge(Tt)) {
18064
18065
  if (kt)
18065
18066
  return null;
18066
- Tt = o.value, We = !1;
18067
+ Tt = o.value, Ue = !1;
18067
18068
  } else Tt == null && e.isRequired ? Tt = o.value : (
18068
18069
  // Clear value if same value was passed
18069
18070
  Tt != null && Ne(o.value, Tt) && pe && (Tt = null)
@@ -18074,7 +18075,7 @@ function pP(e, { emit: t, slots: a }) {
18074
18075
  Tt,
18075
18076
  _.value
18076
18077
  );
18077
- return Y && (y = !1, t(kt ? "drag" : "update:modelValue", te), gt(() => y = !0)), We && !kt && He(), qe && oe(), Sa && gt(() => Lt(Qt ?? "start")), te;
18078
+ return Y && (y = !1, t(kt ? "drag" : "update:modelValue", te), gt(() => y = !0)), Ue && !kt && qe(), We && oe(), Sa && gt(() => Lt(Qt ?? "start")), te;
18078
18079
  }
18079
18080
  function oe() {
18080
18081
  gt(() => {
@@ -18088,18 +18089,18 @@ function pP(e, { emit: t, slots: a }) {
18088
18089
  p.value ? c.value = [j && j.start, j && j.end] : c.value = [j, ""];
18089
18090
  });
18090
18091
  }
18091
- function Ye(A, j, ae) {
18092
+ function _e(A, j, ae) {
18092
18093
  c.value.splice(j === "start" ? 0 : 1, 1, A);
18093
18094
  const pe = p.value ? {
18094
18095
  start: c.value[0],
18095
18096
  end: c.value[1] || c.value[0]
18096
- } : A, qe = {
18097
+ } : A, We = {
18097
18098
  type: "string",
18098
18099
  mask: q.value
18099
18100
  };
18100
18101
  Qe(pe, {
18101
18102
  ...ae,
18102
- config: qe,
18103
+ config: We,
18103
18104
  patch: S.value,
18104
18105
  targetPriority: j,
18105
18106
  moveToValue: !0
@@ -18107,7 +18108,7 @@ function pP(e, { emit: t, slots: a }) {
18107
18108
  }
18108
18109
  function ee(A) {
18109
18110
  return (j) => {
18110
- e.updateOnInput && Ye(j.currentTarget.value, A, {
18111
+ e.updateOnInput && _e(j.currentTarget.value, A, {
18111
18112
  formatInput: !1,
18112
18113
  hidePopover: !1,
18113
18114
  debounce: e.inputDebounce
@@ -18116,7 +18117,7 @@ function pP(e, { emit: t, slots: a }) {
18116
18117
  }
18117
18118
  function ye(A) {
18118
18119
  return (j) => {
18119
- Ye(j.currentTarget.value, A, {
18120
+ _e(j.currentTarget.value, A, {
18120
18121
  formatInput: !0,
18121
18122
  hidePopover: !1
18122
18123
  });
@@ -18143,7 +18144,7 @@ function pP(e, { emit: t, slots: a }) {
18143
18144
  function Te(A) {
18144
18145
  t("popover-did-show", A);
18145
18146
  }
18146
- function _e(A) {
18147
+ function He(A) {
18147
18148
  we(), t("popover-will-hide", A);
18148
18149
  }
18149
18150
  function wt(A) {
@@ -18178,7 +18179,7 @@ function pP(e, { emit: t, slots: a }) {
18178
18179
  break;
18179
18180
  }
18180
18181
  case "Escape":
18181
- He();
18182
+ qe();
18182
18183
  }
18183
18184
  t("daykeydown", A, j);
18184
18185
  }
@@ -18196,7 +18197,7 @@ function pP(e, { emit: t, slots: a }) {
18196
18197
  id: s.value
18197
18198
  });
18198
18199
  }
18199
- function He(A = {}) {
18200
+ function qe(A = {}) {
18200
18201
  ci({
18201
18202
  hideDelay: 10,
18202
18203
  force: !0,
@@ -18236,8 +18237,8 @@ function pP(e, { emit: t, slots: a }) {
18236
18237
  const ae = o.value;
18237
18238
  if (v.value == null || !Pe(ae))
18238
18239
  return !1;
18239
- const pe = A !== "end", qe = pe ? 1 : -1, We = xe(ae) ? pe ? ae.start : ae.end : ae, kt = Rh(We, "monthly", r.value);
18240
- return v.value.move(kt, { position: qe, ...j });
18240
+ const pe = A !== "end", We = pe ? 1 : -1, Ue = xe(ae) ? pe ? ae.start : ae.end : ae, kt = Rh(Ue, "monthly", r.value);
18241
+ return v.value.move(kt, { position: We, ...j });
18241
18242
  }
18242
18243
  fe(
18243
18244
  () => e.isRange,
@@ -18312,14 +18313,14 @@ function pP(e, { emit: t, slots: a }) {
18312
18313
  moveToValue: Lt,
18313
18314
  updateValue: Qe,
18314
18315
  showPopover: re,
18315
- hidePopover: He,
18316
+ hidePopover: qe,
18316
18317
  togglePopover: Fe,
18317
18318
  onDayClick: Xe,
18318
18319
  onDayKeydown: $t,
18319
18320
  onDayMouseEnter: Ot,
18320
18321
  onPopoverBeforeShow: Me,
18321
18322
  onPopoverAfterShow: Te,
18322
- onPopoverBeforeHide: _e,
18323
+ onPopoverBeforeHide: He,
18323
18324
  onPopoverAfterHide: wt
18324
18325
  };
18325
18326
  return vi(pg, H), H;
@@ -18486,7 +18487,7 @@ const yP = ["value"], bP = ["value", "disabled"], wP = {
18486
18487
  "vc-has-icon": e.showIcon
18487
18488
  }])
18488
18489
  }, [
18489
- K("select", Ue(n.$attrs, {
18490
+ K("select", ze(n.$attrs, {
18490
18491
  value: e.modelValue,
18491
18492
  class: ["vc-focus", {
18492
18493
  "vc-align-right": e.alignRight,
@@ -18695,7 +18696,7 @@ function NP(e, t, a, n, r, i) {
18695
18696
  return e.$slots.default ? (h(), D(Ae, { key: 0 }, [
18696
18697
  Q(e.$slots, "default", lr(ys(e.slotCtx))),
18697
18698
  Z(l, lr(ys(e.$attrs)), null, 16)
18698
- ], 64)) : (h(), X(u, lr(Ue({ key: 1 }, e.$attrs)), null, 16));
18699
+ ], 64)) : (h(), X(u, lr(ze({ key: 1 }, e.$attrs)), null, 16));
18699
18700
  }
18700
18701
  const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-control" }, RP = ["data-testid", "disabled", "onClick"], FP = (e) => e.every((t) => t.value !== void 0), zP = (e) => {
18701
18702
  const t = [];
@@ -19064,8 +19065,8 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
19064
19065
  };
19065
19066
  return fe(() => n.id, () => {
19066
19067
  $.value++;
19067
- }, { immediate: !0 }), (q, M) => (h(), D("div", Ue({ class: "k-file-upload" }, o.value), [
19068
- e.label ? (h(), X(Qa, Ue({ key: 0 }, e.labelAttributes, {
19068
+ }, { immediate: !0 }), (q, M) => (h(), D("div", ze({ class: "k-file-upload" }, o.value), [
19069
+ e.label ? (h(), X(Qa, ze({ key: 0 }, e.labelAttributes, {
19069
19070
  ref_key: "labelElement",
19070
19071
  ref: c,
19071
19072
  for: s.value,
@@ -19165,7 +19166,7 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
19165
19166
  return h(), D("div", {
19166
19167
  class: ue(["k-input-switch", [d.size, { "label-before": d.labelBefore, disabled: d.disabled }, d.$attrs.class]])
19167
19168
  }, [
19168
- K("input", Ue(u.value, {
19169
+ K("input", ze(u.value, {
19169
19170
  id: l.value,
19170
19171
  ref_key: "switchInputElement",
19171
19172
  ref: r,
@@ -19175,7 +19176,7 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
19175
19176
  type: "checkbox",
19176
19177
  onInput: o
19177
19178
  }), null, 16, aN),
19178
- Z(f, Ue(d.disabled && d.disabledTooltipText ? d.tooltipAttributes : {}, {
19179
+ Z(f, ze(d.disabled && d.disabledTooltipText ? d.tooltipAttributes : {}, {
19179
19180
  class: "switch-control-wrapper",
19180
19181
  text: d.disabled ? d.disabledTooltipText : ""
19181
19182
  }), {
@@ -20093,7 +20094,7 @@ const FN = {
20093
20094
  $ && (await gt(), k());
20094
20095
  }), fl(async () => {
20095
20096
  await y(!1), w(!1);
20096
- }), ($, C) => e.visible ? (h(), D("div", Ue({
20097
+ }), ($, C) => e.visible ? (h(), D("div", ze({
20097
20098
  key: 0,
20098
20099
  "aria-label": e.title,
20099
20100
  "aria-modal": "true",
@@ -20743,7 +20744,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
20743
20744
  width: Qe.value
20744
20745
  })), oe = m(() => ({
20745
20746
  width: nt.value + "px"
20746
- })), Ye = m(() => {
20747
+ })), _e = m(() => {
20747
20748
  if (R.value.length === 0) {
20748
20749
  if (!o.collapsedContext && o.placeholder)
20749
20750
  return o.placeholder;
@@ -20796,22 +20797,22 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
20796
20797
  o.enableItemCreation && j.custom && (S.value = S.value.filter((ae) => ae.value !== j.value), d("item-removed", j));
20797
20798
  }), H && ne();
20798
20799
  }, Te = (ce, H) => {
20799
- var pe, qe;
20800
- let A = !1, j = H ? ce : ((pe = S.value.filter((We) => We.value === ce.value)) == null ? void 0 : pe[0]) || null;
20801
- if (o.enableItemCreation && (j != null && j.custom) && (A = !0), j === null && (j = ((qe = R.value.filter((We) => We.value === ce.value)) == null ? void 0 : qe[0]) || null), j === null)
20800
+ var pe, We;
20801
+ let A = !1, j = H ? ce : ((pe = S.value.filter((Ue) => Ue.value === ce.value)) == null ? void 0 : pe[0]) || null;
20802
+ if (o.enableItemCreation && (j != null && j.custom) && (A = !0), j === null && (j = ((We = R.value.filter((Ue) => Ue.value === ce.value)) == null ? void 0 : We[0]) || null), j === null)
20802
20803
  return;
20803
20804
  if (j.selected) {
20804
- if (R.value = R.value.filter((We) => We.value !== ce.value), F.value.filter((We) => We.value === ce.value).length ? F.value = F.value.filter((We) => We.value !== ce.value) : W.delete(ce.value) && (U.value = U.value.filter((We) => We.value !== ce.value)), j.selected = !1, U.value.length) {
20805
- const We = U.value.pop();
20806
- We && (F.value.push(We), W.delete(We.value));
20805
+ if (R.value = R.value.filter((Ue) => Ue.value !== ce.value), F.value.filter((Ue) => Ue.value === ce.value).length ? F.value = F.value.filter((Ue) => Ue.value !== ce.value) : W.delete(ce.value) && (U.value = U.value.filter((Ue) => Ue.value !== ce.value)), j.selected = !1, U.value.length) {
20806
+ const Ue = U.value.pop();
20807
+ Ue && (F.value.push(Ue), W.delete(Ue.value));
20807
20808
  }
20808
- A && (S.value = S.value.filter((We) => We.value !== ce.value), d("item-removed", ce));
20809
+ A && (S.value = S.value.filter((Ue) => Ue.value !== ce.value), d("item-removed", ce));
20809
20810
  } else
20810
20811
  j.selected = !0, R.value.push(j), F.value.push(j), H && (j.custom = !0, S.value.push(j));
20811
20812
  ne();
20812
- const ae = R.value.map((We) => We.value);
20813
+ const ae = R.value.map((Ue) => Ue.value);
20813
20814
  d("selected", R.value), d("change", j), d("update:modelValue", ae);
20814
- }, _e = (ce) => {
20815
+ }, He = (ce) => {
20815
20816
  o.enableItemCreation && wt(), ce.preventDefault();
20816
20817
  }, wt = () => {
20817
20818
  var A;
@@ -20824,7 +20825,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
20824
20825
  };
20825
20826
  d("item-added", H), Te(H, !0), q.value = "";
20826
20827
  }, mt = () => {
20827
- const ce = ee.value.filter((pe) => pe.selected), H = ee.value.filter((pe) => !pe.selected), A = [...ce, ...H], j = A.filter((pe) => !pe.group), ae = A.filter((pe) => pe.group).sort((pe, qe) => pe.group.toLowerCase().localeCompare(qe.group.toLowerCase()));
20828
+ const ce = ee.value.filter((pe) => pe.selected), H = ee.value.filter((pe) => !pe.selected), A = [...ce, ...H], j = A.filter((pe) => !pe.group), ae = A.filter((pe) => pe.group).sort((pe, We) => pe.group.toLowerCase().localeCompare(We.group.toLowerCase()));
20828
20829
  x.value = [...j, ...ae];
20829
20830
  }, Xe = () => {
20830
20831
  S.value.forEach((H) => {
@@ -20840,7 +20841,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
20840
20841
  }, re = () => {
20841
20842
  var ce;
20842
20843
  (ce = E.value) == null || ce.showPopover();
20843
- }, He = (ce) => {
20844
+ }, qe = (ce) => {
20844
20845
  var H;
20845
20846
  (ce.key === "ArrowDown" || ce.key === "ArrowUp") && ((H = c.value) == null || H.setFocus(ce.key === "ArrowDown" ? "down" : "up"));
20846
20847
  }, Fe = async () => {
@@ -20872,7 +20873,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
20872
20873
  Xe();
20873
20874
  return;
20874
20875
  }
20875
- const A = new Set(H), j = new Set(ce), ae = S.value.filter((qe) => j.has(qe.value)), pe = R.value.filter((qe) => !j.has(qe.value) && A.has(qe.value));
20876
+ const A = new Set(H), j = new Set(ce), ae = S.value.filter((We) => j.has(We.value)), pe = R.value.filter((We) => !j.has(We.value) && A.has(We.value));
20876
20877
  pe.length && Me(pe), ae.length && we(ae);
20877
20878
  }
20878
20879
  }), fe(() => o.items, (ce, H) => {
@@ -20883,8 +20884,8 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
20883
20884
  S.value[ae].selected === void 0 && (S.value[ae].selected = !1);
20884
20885
  let pe = `${(j = (A = S.value[ae].label) == null ? void 0 : A.replace(/ /gi, "-")) == null ? void 0 : j.replace(/[^a-z0-9-_]/gi, "")}-${ae}`;
20885
20886
  if (pe.includes("undefined") && (pe = `multiselect-item-label-${ae}`), S.value[ae].key = pe, o.modelValue.includes(S.value[ae].value) || S.value[ae].selected) {
20886
- const qe = S.value[ae];
20887
- qe.selected = !0, R.value.filter((We) => We.value === qe.value).length || R.value.push(qe), F.value.filter((We) => We.value === qe.value).length || F.value.push(qe);
20887
+ const We = S.value[ae];
20888
+ We.selected = !0, R.value.filter((Ue) => Ue.value === We.value).length || R.value.push(We), F.value.filter((Ue) => Ue.value === We.value).length || F.value.push(We);
20888
20889
  }
20889
20890
  }
20890
20891
  ne(), E.value && typeof E.value.updatePopper == "function" && gt(() => {
@@ -20906,7 +20907,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
20906
20907
  class: ue(["k-multiselect", [ce.$attrs.class, { "multiselect-error": e.error }]]),
20907
20908
  style: Oe(Ze.value)
20908
20909
  }, [
20909
- e.label ? (h(), X(Qa, Ue({ key: 0 }, e.labelAttributes, {
20910
+ e.label ? (h(), X(Qa, ze({ key: 0 }, e.labelAttributes, {
20910
20911
  "data-testid": e.labelAttributes["data-testid"] ? e.labelAttributes["data-testid"] : "multiselect-label",
20911
20912
  for: $.value,
20912
20913
  required: f.value
@@ -20927,7 +20928,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
20927
20928
  K("div", C9, [
20928
20929
  Z(I(vl), null, {
20929
20930
  default: B(({ isToggled: j, toggle: ae }) => [
20930
- Z(Tr, Ue({
20931
+ Z(Tr, ze({
20931
20932
  ref_key: "popper",
20932
20933
  ref: E,
20933
20934
  "hide-close-icon": ""
@@ -20958,9 +20959,9 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
20958
20959
  onClick: H[5] || (H[5] = Ke(() => {
20959
20960
  }, ["stop"])),
20960
20961
  onFocus: ot,
20961
- onKeydown: ft(_e, ["enter"]),
20962
+ onKeydown: ft(He, ["enter"]),
20962
20963
  onKeyup: [
20963
- He,
20964
+ qe,
20964
20965
  H[6] || (H[6] = ft(Ke(() => {
20965
20966
  }, ["stop"]), ["enter"]))
20966
20967
  ],
@@ -21005,7 +21006,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21005
21006
  ], 2)) : G("", !0)
21006
21007
  ]),
21007
21008
  default: B(() => [
21008
- K("div", Ue({
21009
+ K("div", ze({
21009
21010
  id: $.value,
21010
21011
  ref: "multiselectElement",
21011
21012
  class: ["multiselect-trigger", { focused: he.value, hovered: $e.value, disabled: Ce.value, readonly: xe.value }],
@@ -21028,7 +21029,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21028
21029
  "data-testid": "multiselect-input",
21029
21030
  disabled: Ce.value,
21030
21031
  "model-value": q.value,
21031
- placeholder: Ye.value,
21032
+ placeholder: _e.value,
21032
21033
  readonly: xe.value ? !0 : void 0,
21033
21034
  spellcheck: "false",
21034
21035
  type: "text",
@@ -21037,7 +21038,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21037
21038
  j.value && pe.stopPropagation();
21038
21039
  },
21039
21040
  onFocus: Fe,
21040
- onKeydown: ft(_e, ["enter"]),
21041
+ onKeydown: ft(He, ["enter"]),
21041
21042
  onKeyup: (pe) => Ot(pe, j),
21042
21043
  onMouseenter: H[1] || (H[1] = () => $e.value = !0),
21043
21044
  onMouseleave: H[2] || (H[2] = () => $e.value = !1),
@@ -21049,8 +21050,8 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21049
21050
  "data-testid": "selection-badges-container",
21050
21051
  style: Oe(oe.value)
21051
21052
  }, [
21052
- (h(!0), D(Ae, null, Re(J.value, (pe, qe) => (h(), X(Vr, {
21053
- key: `${I(C)}-${pe.key ? pe.key : qe}-badge-${p.value}`,
21053
+ (h(!0), D(Ae, null, Re(J.value, (pe, We) => (h(), X(Vr, {
21054
+ key: `${I(C)}-${pe.key ? pe.key : We}-badge-${p.value}`,
21054
21055
  appearance: g(pe),
21055
21056
  class: "multiselect-selection-badge",
21056
21057
  "icon-before": !1,
@@ -21072,7 +21073,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21072
21073
  class: "badge-dismiss-button",
21073
21074
  "data-testid": "badge-dismiss-button",
21074
21075
  type: "button",
21075
- onClick: (We) => Te(pe)
21076
+ onClick: (Ue) => Te(pe)
21076
21077
  }, [
21077
21078
  Z(I(da), { decorative: "" })
21078
21079
  ], 8, T9)
@@ -21102,7 +21103,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21102
21103
  ]),
21103
21104
  _: 1
21104
21105
  }, 8, ["text"])) : G("", !0)
21105
- ], 4)) : (h(), D("div", D9, ie(Ye.value), 1)),
21106
+ ], 4)) : (h(), D("div", D9, ie(_e.value), 1)),
21106
21107
  K("div", x9, [
21107
21108
  !e.loading && R.value.length && j.value ? (h(), D("button", {
21108
21109
  key: 0,
@@ -21250,7 +21251,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21250
21251
  c || (l.value = "", u.value = !1);
21251
21252
  }), fe(l, (c) => {
21252
21253
  c && c === a.confirmationText && (u.value = !1);
21253
- }), (c, f) => (h(), X($g, Ue({ ...i.value, ...e.modalAttributes }, {
21254
+ }), (c, f) => (h(), X($g, ze({ ...i.value, ...e.modalAttributes }, {
21254
21255
  "action-button-appearance": e.actionButtonAppearance,
21255
21256
  "action-button-disabled": s.value,
21256
21257
  "action-button-text": e.actionButtonText,
@@ -21403,7 +21404,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21403
21404
  y.value
21404
21405
  ]])
21405
21406
  }, [
21406
- K("input", Ue({ id: l.value }, g.value, {
21407
+ K("input", ze({ id: l.value }, g.value, {
21407
21408
  "aria-checked": f.value,
21408
21409
  checked: f.value,
21409
21410
  class: ["radio-input", { hidden: e.card && !e.cardRadioVisible }],
@@ -21416,7 +21417,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21416
21417
  key: 0,
21417
21418
  class: ue(["radio-label-wrapper", { "has-description": o.value }])
21418
21419
  }, [
21419
- Z(Qa, Ue(e.labelAttributes, {
21420
+ Z(Qa, ze(e.labelAttributes, {
21420
21421
  class: "radio-label",
21421
21422
  for: l.value
21422
21423
  }), yt({
@@ -21807,7 +21808,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21807
21808
  }), W = m(() => a(r.dropdownMaxHeight)), J = m(() => ({ ...U.value })), V = m(() => r.placeholder || l.placeholder || "Select..."), ve = m(() => !b.value && r.clearable && !!_.value), de = m(() => !!(_.value && (u["selected-item-template"] || r.reuseItemTemplate && u["item-template"]))), $e = m(() => {
21808
21809
  let ne = [];
21809
21810
  !r.enableFiltering || r.filterFunction({ query: C.value, items: z.value }) === !0 ? ne = z.value : ne = r.filterFunction({ query: C.value, items: z.value });
21810
- const we = ne.filter((Te) => !Te.group), Me = ne.filter((Te) => Te.group).sort((Te, _e) => Te.group.toLowerCase().localeCompare(_e.group.toLowerCase()));
21811
+ const we = ne.filter((Te) => !Te.group), Me = ne.filter((Te) => Te.group).sort((Te, He) => Te.group.toLowerCase().localeCompare(He.group.toLowerCase()));
21811
21812
  return [...we, ...Me];
21812
21813
  }), he = (ne) => {
21813
21814
  if (!r.enableFiltering)
@@ -21827,9 +21828,9 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21827
21828
  i("item-added", we), Pe(we, !0), C.value = "";
21828
21829
  }, Pe = (ne, we) => {
21829
21830
  var Me, Te;
21830
- we && ((Me = z.value) == null || Me.push(ne)), (Te = z.value) == null || Te.forEach((_e, wt) => {
21831
+ we && ((Me = z.value) == null || Me.push(ne)), (Te = z.value) == null || Te.forEach((He, wt) => {
21831
21832
  var mt;
21832
- _e.key === ne.key ? (_e.selected = !0, _.value = _e) : _e.selected ? (_e.selected = !1, _e.custom && ((mt = z.value) == null || mt.splice(wt, 1), i("item-removed", _e))) : _e.selected = !1;
21833
+ He.key === ne.key ? (He.selected = !0, _.value = He) : He.selected ? (He.selected = !1, He.custom && ((mt = z.value) == null || mt.splice(wt, 1), i("item-removed", He))) : He.selected = !1;
21833
21834
  }), $.value = !0, C.value = ne.label;
21834
21835
  }, Ne = () => {
21835
21836
  var ne;
@@ -21838,13 +21839,13 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21838
21839
  we.selected = !1, we.custom && ((Te = z.value) == null || Te.splice(Me, 1), i("item-removed", we));
21839
21840
  }), _.value = null, C.value = "", i("input", null), i("change", null), i("update:modelValue", null);
21840
21841
  }, Ge = Mt("kSelectItems"), at = (ne, we) => {
21841
- var Te, _e;
21842
+ var Te, He;
21842
21843
  if (ne.keyCode === 27) {
21843
21844
  we.value = !1;
21844
21845
  return;
21845
21846
  }
21846
21847
  const Me = (Te = E.value) == null ? void 0 : Te.children[0];
21847
- !we.value && Me && Me.click(), (ne.key === "ArrowDown" || ne.key === "ArrowUp") && we.value && ((_e = Ge.value) == null || _e.setFocus(ne.key === "ArrowDown" ? "down" : "up"));
21848
+ !we.value && Me && Me.click(), (ne.key === "ArrowDown" || ne.key === "ArrowUp") && we.value && ((He = Ge.value) == null || He.setFocus(ne.key === "ArrowDown" ? "down" : "up"));
21848
21849
  }, et = (ne) => {
21849
21850
  C.value !== ne && (C.value = ne);
21850
21851
  }, Qe = () => {
@@ -21854,7 +21855,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21854
21855
  }, oe = () => {
21855
21856
  var ne, we, Me;
21856
21857
  r.enableFiltering || (Me = (we = (ne = w.value) == null ? void 0 : ne.$el) == null ? void 0 : we.querySelector("input")) == null || Me.blur();
21857
- }, Ye = (ne) => {
21858
+ }, _e = (ne) => {
21858
21859
  var we;
21859
21860
  (b.value || ((we = ne == null ? void 0 : ne.target) == null ? void 0 : we.dataset.propagateClicks) === "false") && ne.stopPropagation();
21860
21861
  }, ee = (ne) => {
@@ -21867,16 +21868,16 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21867
21868
  return fe(S, (ne, we) => {
21868
21869
  var Me;
21869
21870
  if (ne !== we) {
21870
- const Te = (Me = z.value) == null ? void 0 : Me.filter((_e) => _e.value === ne);
21871
+ const Te = (Me = z.value) == null ? void 0 : Me.filter((He) => He.value === ne);
21871
21872
  Te != null && Te.length ? Pe(Te[0]) : ne || Ne();
21872
21873
  }
21873
21874
  }), fe(() => r.items, (ne, we) => {
21874
- var Me, Te, _e, wt, mt;
21875
+ var Me, Te, He, wt, mt;
21875
21876
  if (JSON.stringify(ne) !== JSON.stringify(we)) {
21876
21877
  z.value = JSON.parse(JSON.stringify(r.items)), (Me = z.value) != null && Me.length && (_.value = null);
21877
21878
  for (let Xe = 0; Xe < ((Te = z.value) == null ? void 0 : Te.length); Xe++) {
21878
21879
  z.value[Xe].selected === void 0 && (z.value[Xe].selected = !1);
21879
- let $t = `${(wt = (_e = z.value[Xe].label) == null ? void 0 : _e.replace(/ /gi, "-")) == null ? void 0 : wt.replace(/[^a-z0-9-_]/gi, "")}-${Xe}`;
21880
+ let $t = `${(wt = (He = z.value[Xe].label) == null ? void 0 : He.replace(/ /gi, "-")) == null ? void 0 : wt.replace(/[^a-z0-9-_]/gi, "")}-${Xe}`;
21880
21881
  $t.includes("undefined") && ($t = `select-item-label-${Xe}`), z.value[Xe].key = $t, (z.value[Xe].value === r.modelValue || z.value[Xe].selected) && (z.value[Xe].selected = !0, _.value = z.value[Xe], q.value || ($.value = !0, C.value = _.value.label)), ((mt = _.value) == null ? void 0 : mt.value) === z.value[Xe].value && (z.value[Xe].selected = !0);
21881
21882
  }
21882
21883
  M.value && typeof M.value.updatePopper == "function" && gt(() => {
@@ -21901,7 +21902,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21901
21902
  }), (ne, we) => (h(), D("div", {
21902
21903
  class: ue(["k-select", [ne.$attrs.class]])
21903
21904
  }, [
21904
- e.label ? (h(), X(Qa, Ue({ key: 0 }, e.labelAttributes, {
21905
+ e.label ? (h(), X(Qa, ze({ key: 0 }, e.labelAttributes, {
21905
21906
  "data-testid": "select-label",
21906
21907
  for: o.value,
21907
21908
  required: v.value
@@ -21921,7 +21922,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21921
21922
  ]), 1040, ["for", "required"])) : G("", !0),
21922
21923
  Z(I(vl), null, {
21923
21924
  default: B(({ toggle: Me, isToggled: Te }) => [
21924
- Z(Tr, Ue({ ref: "popperElement" }, J.value, {
21925
+ Z(Tr, ze({ ref: "popperElement" }, J.value, {
21925
21926
  "close-on-popover-click": "",
21926
21927
  "hide-close-icon": "",
21927
21928
  onClose: () => ye(Me, Te.value),
@@ -21949,10 +21950,10 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21949
21950
  onAddItem: xe,
21950
21951
  onSelected: Pe
21951
21952
  }, {
21952
- content: B(({ item: _e }) => [
21953
+ content: B(({ item: He }) => [
21953
21954
  Q(ne.$slots, "item-template", {
21954
21955
  class: "select-item-label select-item-desc",
21955
- item: _e
21956
+ item: He
21956
21957
  }, void 0, !0)
21957
21958
  ]),
21958
21959
  _: 3
@@ -21984,9 +21985,9 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
21984
21985
  class: "select-wrapper",
21985
21986
  "data-testid": "select-wrapper",
21986
21987
  role: "listbox",
21987
- onClick: Ye
21988
+ onClick: _e
21988
21989
  }, [
21989
- (h(), X(pn, Ue({
21990
+ (h(), X(pn, ze({
21990
21991
  id: o.value,
21991
21992
  key: p.value,
21992
21993
  ref: "inputElement",
@@ -22008,7 +22009,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
22008
22009
  onKeydown: ft(Ce, ["enter"]),
22009
22010
  onKeypress: he,
22010
22011
  onKeyup: [
22011
- (_e) => at(_e, Te),
22012
+ (He) => at(He, Te),
22012
22013
  we[0] || (we[0] = ft(Ke(() => {
22013
22014
  }, ["stop"]), ["enter"]))
22014
22015
  ],
@@ -22787,7 +22788,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
22787
22788
  return `${parseInt(te.height, 10)}px`;
22788
22789
  }
22789
22790
  return "auto";
22790
- }), Ye = (O, Y) => {
22791
+ }), _e = (O, Y) => {
22791
22792
  var ut;
22792
22793
  if (O.button !== 0)
22793
22794
  return;
@@ -22833,15 +22834,15 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
22833
22834
  return "";
22834
22835
  let O = c;
22835
22836
  return u.cacheIdentifier && (O = u.cacheIdentifier), u.fetcherCacheKey && (O += `-${u.fetcherCacheKey}`), `k-table_${O}`;
22836
- }), Te = P(""), { debouncedFn: _e, generateDebouncedFn: wt } = a((O) => {
22837
+ }), Te = P(""), { debouncedFn: He, generateDebouncedFn: wt } = a((O) => {
22837
22838
  Te.value = O;
22838
22839
  }, 350), mt = wt(0), { data: Xe, error: $t, revalidate: Ot, isValidating: re } = n(
22839
22840
  () => Me.value,
22840
22841
  () => ye(),
22841
22842
  { revalidateOnFocus: !1, revalidateDebounce: 0 }
22842
- ), { state: He, hasData: Fe, swrvState: ot } = r(Xe, $t, re), nt = P(!0), Nt = m(() => ({
22843
+ ), { state: qe, hasData: Fe, swrvState: ot } = r(Xe, $t, re), nt = P(!0), Nt = m(() => ({
22843
22844
  hasData: Fe.value,
22844
- state: He.value
22845
+ state: qe.value
22845
22846
  })), Lt = m(() => nt.value ? "loading" : $t.value ? "error" : "success"), { debouncedFn: ce, generateDebouncedFn: H } = a(Ot, 500), A = H(0), j = (O) => {
22846
22847
  const { key: Y, useSortHandlerFunction: te } = O, se = x.value + "";
22847
22848
  M.value = 1, x.value ? Y === x.value ? R.value === "asc" ? R.value = "desc" : R.value = "asc" : (x.value = Y, R.value = "asc", U.value = [null]) : (x.value = Y, R.value = "asc", U.value = [null]), u.clientSort ? te && u.sortHandlerFunction ? u.sortHandlerFunction({
@@ -22854,16 +22855,16 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
22854
22855
  M.value = O;
22855
22856
  }, pe = ({ pageSize: O }) => {
22856
22857
  U.value = [null], F.value = null, E.value = O, M.value = 1, kt();
22857
- }, qe = (O) => {
22858
+ }, We = (O) => {
22858
22859
  O && O.target && typeof O.target.scrollTop == "number" && (O.target.scrollTop > 1 ? q.value = !0 : O.target.scrollTop === 0 && (q.value = !q.value));
22859
- }, We = m(() => ({
22860
+ }, Ue = m(() => ({
22860
22861
  pageSize: E.value,
22861
22862
  sortColumnKey: x.value,
22862
22863
  sortColumnOrder: R.value,
22863
22864
  ...u.resizeColumns ? { columnWidths: Ne.value } : {},
22864
22865
  ...$.value ? { columnVisibility: _.value } : {}
22865
22866
  })), kt = () => {
22866
- Lt.value === "success" && s("update:table-preferences", We.value);
22867
+ Lt.value === "success" && s("update:table-preferences", Ue.value);
22867
22868
  }, Qt = () => {
22868
22869
  M.value++, F.value = we.value;
22869
22870
  }, Sa = () => {
@@ -22874,8 +22875,8 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
22874
22875
  JSON.stringify(se) !== JSON.stringify(y.value) && (y.value = se, kt());
22875
22876
  }, { deep: !0, immediate: !0 }), fe(Xe, (O) => {
22876
22877
  O != null && O.length && !v.value.length && (v.value = O);
22877
- }, { deep: !0, immediate: !0 }), fe(He, () => {
22878
- switch (He.value) {
22878
+ }, { deep: !0, immediate: !0 }), fe(qe, () => {
22879
+ switch (qe.value) {
22879
22880
  case ot.PENDING:
22880
22881
  nt.value = !0;
22881
22882
  break;
@@ -22895,7 +22896,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
22895
22896
  // newData[stateData].hasData
22896
22897
  });
22897
22898
  }), fe(() => u.searchInput, (O) => {
22898
- M.value !== 1 && (M.value = 1), O === "" ? mt(O) : _e(O);
22899
+ M.value !== 1 && (M.value = 1), O === "" ? mt(O) : He(O);
22899
22900
  }, { immediate: !0 });
22900
22901
  const L = P(!1);
22901
22902
  return fe([Te, M, E], async (O, Y) => {
@@ -22979,7 +22980,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
22979
22980
  K("div", {
22980
22981
  class: "table-wrapper",
22981
22982
  style: Oe(de.value),
22982
- onScrollPassive: qe
22983
+ onScrollPassive: We
22983
22984
  }, [
22984
22985
  K("table", {
22985
22986
  class: ue(["table", {
@@ -23018,7 +23019,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
23018
23019
  class: "resize-handle previous",
23019
23020
  onClick: Y[3] || (Y[3] = Ke(() => {
23020
23021
  }, ["stop"])),
23021
- onMousedown: (be) => Ye(be, y.value[se - 1].key),
23022
+ onMousedown: (be) => _e(be, y.value[se - 1].key),
23022
23023
  onMouseleave: Y[4] || (Y[4] = (be) => w.value = ""),
23023
23024
  onMouseover: (be) => w.value = y.value[se - 1].key
23024
23025
  }, null, 40, q6)) : G("", !0),
@@ -23068,7 +23069,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
23068
23069
  class: "resize-handle",
23069
23070
  onClick: Y[5] || (Y[5] = Ke(() => {
23070
23071
  }, ["stop"])),
23071
- onMousedown: (be) => Ye(be, te.key),
23072
+ onMousedown: (be) => _e(be, te.key),
23072
23073
  onMouseleave: Y[6] || (Y[6] = (be) => w.value = ""),
23073
23074
  onMouseover: (be) => w.value = te.key
23074
23075
  }, null, 40, U6)) : G("", !0)
@@ -23076,12 +23077,12 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
23076
23077
  ], 2)
23077
23078
  ], 2),
23078
23079
  K("tbody", null, [
23079
- (h(!0), D(Ae, null, Re(v.value, (te, se) => (h(), D("tr", Ue({ ref_for: !0 }, e.rowAttrs(te), {
23080
+ (h(!0), D(Ae, null, Re(v.value, (te, se) => (h(), D("tr", ze({ ref_for: !0 }, e.rowAttrs(te), {
23080
23081
  key: `table-${I(c)}-row-${se}`,
23081
23082
  role: J.value ? "link" : null,
23082
23083
  tabindex: J.value ? 0 : null
23083
23084
  }), [
23084
- (h(!0), D(Ae, null, Re(y.value, (be, ke) => (h(), D("td", Ue({ ref_for: !0 }, e.cellAttrs({ headerKey: be.key, row: te, rowIndex: se, colIndex: ke }), {
23085
+ (h(!0), D(Ae, null, Re(y.value, (be, ke) => (h(), D("td", ze({ ref_for: !0 }, e.cellAttrs({ headerKey: be.key, row: te, rowIndex: se, colIndex: ke }), {
23085
23086
  key: `table-${I(c)}-cell-${ke}`,
23086
23087
  class: {
23087
23088
  "resize-hover": e.resizeColumns && Qe.value === be.key && ke !== y.value.length - 1
@@ -23330,7 +23331,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
23330
23331
  return (T, N) => (h(), D("div", {
23331
23332
  class: ue(["k-textarea", [T.$attrs.class, { "input-error": e.error || e.hasError || p.value }]])
23332
23333
  }, [
23333
- e.label ? (h(), X(Qa, Ue({
23334
+ e.label ? (h(), X(Qa, ze({
23334
23335
  key: 0,
23335
23336
  for: g.value
23336
23337
  }, e.labelAttributes, { required: u.value }), yt({
@@ -23355,7 +23356,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
23355
23356
  "data-allow-mismatch": "class",
23356
23357
  "data-value": I(wv) ? null : s.value
23357
23358
  }, [
23358
- K("textarea", Ue({ id: g.value }, y.value, {
23359
+ K("textarea", ze({ id: g.value }, y.value, {
23359
23360
  "aria-invalid": c.value,
23360
23361
  class: ["input-textarea", {
23361
23362
  resizable: e.resizable || e.isResizable
@@ -23433,7 +23434,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
23433
23434
  role: "alert"
23434
23435
  }, [
23435
23436
  K("div", oL, [
23436
- (h(), X(ze(t(r.appearance)), {
23437
+ (h(), X(Ye(t(r.appearance)), {
23437
23438
  class: "toaster-icon",
23438
23439
  color: `var(--kui-color-text, ${I(t1)})`,
23439
23440
  decorative: ""
@@ -25286,7 +25287,7 @@ const JL = {
25286
25287
  }), await gt(), n.collapsible && q();
25287
25288
  }), t({ collapseAll: k, expandAll: $ }), (M, E) => {
25288
25289
  const S = _t("KTreeDraggable", !0);
25289
- return h(), X(I(eB), Ue(u, {
25290
+ return h(), X(I(eB), ze(u, {
25290
25291
  class: "tree-draggable",
25291
25292
  direction: "vertical",
25292
25293
  disabled: e.disableDrag,
@@ -25991,7 +25992,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
25991
25992
  return L;
25992
25993
  }), oe = (L, O) => ({
25993
25994
  // display the resize handle on the right side of the column if props.resizeColumns is enabled, hovering current column, and not the last column
25994
- "resize-hover": ye.value === L.key && a.resizeColumns && !a.nested && O !== f.value.length - 1 && _e(L),
25995
+ "resize-hover": ye.value === L.key && a.resizeColumns && !a.nested && O !== f.value.length - 1 && He(L),
25995
25996
  resizable: a.resizeColumns && !a.nested,
25996
25997
  // display sort control if column is sortable, label is visible, and sorting is not disabled
25997
25998
  sortable: !L.hideLabel && !!L.sortable,
@@ -26003,7 +26004,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26003
26004
  "sticky-column": (L.key === je.BULK_ACTIONS || L.key === je.EXPANDABLE) && z.value,
26004
26005
  "second-sticky-column": L.key === je.BULK_ACTIONS && H.value,
26005
26006
  "has-row-scroll-overlay": Me(L.key)
26006
- }), Ye = (L) => {
26007
+ }), _e = (L) => {
26007
26008
  if (L.sortable && L.key !== je.BULK_ACTIONS && L.key !== je.ACTIONS) {
26008
26009
  let O = "asc";
26009
26010
  L.key === M.value && E.value === "asc" && (O = "desc"), n("sort", {
@@ -26055,7 +26056,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26055
26056
  const ut = window == null ? void 0 : window.getComputedStyle(se);
26056
26057
  ut != null && ut.width && (te = parseInt(ut.width, 10)), document == null || document.addEventListener("mousemove", be), document == null || document.addEventListener("mouseup", ke);
26057
26058
  }
26058
- }, Me = (L) => z.value ? J.value ? L === je.BULK_ACTIONS : H.value ? L === je.EXPANDABLE : !1 : !1, Te = (L) => L === je.EXPANDABLE || L === je.BULK_ACTIONS || L === je.ACTIONS, _e = (L, O = !1) => {
26059
+ }, Me = (L) => z.value ? J.value ? L === je.BULK_ACTIONS : H.value ? L === je.EXPANDABLE : !1 : !1, Te = (L) => L === je.EXPANDABLE || L === je.BULK_ACTIONS || L === je.ACTIONS, He = (L, O = !1) => {
26059
26060
  if (O) {
26060
26061
  if (f.value.indexOf(L) === f.value.length - 1)
26061
26062
  return !1;
@@ -26083,7 +26084,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26083
26084
  return !1;
26084
26085
  const O = a.rowBulkActionEnabled(L);
26085
26086
  return typeof O == "boolean" ? O : O.enabled;
26086
- }, He = (L) => {
26087
+ }, qe = (L) => {
26087
26088
  if (typeof a.rowBulkActionEnabled != "function")
26088
26089
  return "";
26089
26090
  const O = a.rowBulkActionEnabled(L);
@@ -26119,7 +26120,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26119
26120
  }), L;
26120
26121
  }, ae = P(j()), pe = async (L, O) => {
26121
26122
  kt(), await gt(), ae.value.includes(L) ? (ae.value = ae.value.filter((Y) => Y !== L), n("update:row-expanded", { row: O, expanded: !1 })) : (ae.value = [...ae.value, L], n("update:row-expanded", { row: O, expanded: !0 }));
26122
- }, qe = m(() => f.value.filter((L) => L.key !== je.EXPANDABLE && L.key !== je.BULK_ACTIONS)), We = P({}), kt = () => {
26123
+ }, We = m(() => f.value.filter((L) => L.key !== je.EXPANDABLE && L.key !== je.BULK_ACTIONS)), Ue = P({}), kt = () => {
26123
26124
  if (typeof document > "u")
26124
26125
  return;
26125
26126
  const L = document == null ? void 0 : document.querySelector(`[data-tableid="${l}"]`), O = L == null ? void 0 : L.querySelectorAll("th"), Y = {};
@@ -26129,7 +26130,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26129
26130
  return;
26130
26131
  let ke = te.getBoundingClientRect().width;
26131
26132
  se === 1 && (ke += Ge), se === O.length - 1 && (ke -= 15), Y[be] = ke;
26132
- }), We.value = Y;
26133
+ }), Ue.value = Y;
26133
26134
  };
26134
26135
  fe([C, c, H], (L) => {
26135
26136
  const [O, Y, te] = L;
@@ -26297,11 +26298,11 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26297
26298
  "data-key": Y.key,
26298
26299
  "data-testid": `table-header-${Y.key}`,
26299
26300
  style: Oe(Ze.value[Y.key]),
26300
- onClick: () => Ye(Y),
26301
+ onClick: () => _e(Y),
26301
26302
  onMouseleave: O[8] || (O[8] = (se) => g.value = ""),
26302
26303
  onMouseover: (se) => g.value = Y.key
26303
26304
  }, [
26304
- L.resizeColumns && !L.nested && te !== 0 && _e(Y, !0) ? (h(), D("div", {
26305
+ L.resizeColumns && !L.nested && te !== 0 && He(Y, !0) ? (h(), D("div", {
26305
26306
  key: 0,
26306
26307
  class: "resize-handle previous",
26307
26308
  onClick: O[3] || (O[3] = Ke(() => {
@@ -26365,7 +26366,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26365
26366
  size: I(Aa)
26366
26367
  }, null, 8, ["color", "size"])) : G("", !0)
26367
26368
  ], 10, _B),
26368
- L.resizeColumns && !L.nested && te !== f.value.length - 1 && _e(Y) ? (h(), D("div", {
26369
+ L.resizeColumns && !L.nested && te !== f.value.length - 1 && He(Y) ? (h(), D("div", {
26369
26370
  key: 1,
26370
26371
  class: "resize-handle",
26371
26372
  onClick: O[6] || (O[6] = Ke(() => {
@@ -26387,7 +26388,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26387
26388
  (h(!0), D(Ae, null, Re(L.data, (Y, te) => (h(), D(Ae, {
26388
26389
  key: $e.value.get(Y)
26389
26390
  }, [
26390
- K("tr", Ue({
26391
+ K("tr", ze({
26391
26392
  class: {
26392
26393
  "last-row": te === L.data.length - 1 && !ae.value.includes(te)
26393
26394
  },
@@ -26395,10 +26396,10 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26395
26396
  tabindex: S.value && !L.rowLink(Y).to ? 0 : void 0,
26396
26397
  ref_for: !0
26397
26398
  }, L.rowAttrs(Y)), [
26398
- (h(!0), D(Ae, null, Re(f.value, (se, be) => (h(), D("td", Ue({
26399
+ (h(!0), D(Ae, null, Re(f.value, (se, be) => (h(), D("td", ze({
26399
26400
  key: `${$e.value.get(Y)}-cell-${se.key}`,
26400
26401
  class: {
26401
- "resize-hover": L.resizeColumns && !L.nested && ye.value === se.key && be !== f.value.length - 1 && _e(se),
26402
+ "resize-hover": L.resizeColumns && !L.nested && ye.value === se.key && be !== f.value.length - 1 && He(se),
26402
26403
  "row-link": !!L.rowLink(Y).to,
26403
26404
  "sticky-column": (se.key === I(je).BULK_ACTIONS || se.key === I(je).EXPANDABLE) && z.value,
26404
26405
  "second-sticky-column": se.key === I(je).BULK_ACTIONS && H.value,
@@ -26407,7 +26408,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26407
26408
  style: Ze.value[se.key],
26408
26409
  ref_for: !0
26409
26410
  }, L.cellAttrs({ headerKey: se.key, row: Y, rowIndex: te, colIndex: be }), cl(Ne.value(Y[se.key], Y), !0)), [
26410
- se.key !== I(je).EXPANDABLE ? (h(), X(ze(Fe(Y, se.key)), Ue({
26411
+ se.key !== I(je).EXPANDABLE ? (h(), X(Ye(Fe(Y, se.key)), ze({
26411
26412
  key: 0,
26412
26413
  class: "cell-wrapper",
26413
26414
  ref_for: !0
@@ -26425,7 +26426,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26425
26426
  "kpop-attributes": { target: L.tooltipTarget },
26426
26427
  "max-width": "200",
26427
26428
  placement: "bottom-start",
26428
- text: re(Y) ? void 0 : He(Y)
26429
+ text: re(Y) ? void 0 : qe(Y)
26429
26430
  }, {
26430
26431
  default: B(() => [
26431
26432
  Z(Ro, {
@@ -26509,8 +26510,8 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26509
26510
  }, [
26510
26511
  K("div", GB, [
26511
26512
  Q(L.$slots, "row-expanded", {
26512
- columnWidths: We.value,
26513
- nestedHeaders: qe.value,
26513
+ columnWidths: Ue.value,
26514
+ nestedHeaders: We.value,
26514
26515
  row: xe(Y)
26515
26516
  }, void 0, !0)
26516
26517
  ])
@@ -26534,7 +26535,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26534
26535
  "scrollbar-offset": N.value
26535
26536
  }])
26536
26537
  }, null, 2),
26537
- mt.value ? (h(), X(wl, Ue({
26538
+ mt.value ? (h(), X(wl, ze({
26538
26539
  key: 1,
26539
26540
  class: "table-pagination",
26540
26541
  "data-testid": "table-pagination"
@@ -26613,7 +26614,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26613
26614
  function M(re) {
26614
26615
  return re.startsWith("tooltip-");
26615
26616
  }
26616
- const E = m(() => r ? Object.keys(r).filter(q) : []), S = m(() => r ? Object.keys(r).filter(M) : []), x = m(() => r ? Object.keys(r).filter((re) => f.value.some((He) => He.key === re)) : []), R = m(() => ({
26617
+ const E = m(() => r ? Object.keys(r).filter(q) : []), S = m(() => r ? Object.keys(r).filter(M) : []), x = m(() => r ? Object.keys(r).filter((re) => f.value.some((qe) => qe.key === re)) : []), R = m(() => ({
26617
26618
  sortColumnKey: w.value,
26618
26619
  sortColumnOrder: k.value
26619
26620
  })), F = m(() => ({
@@ -26629,12 +26630,12 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26629
26630
  const re = await n.fetcher(U.value);
26630
26631
  return W.value = !1, re;
26631
26632
  }, V = () => {
26632
- var He;
26633
+ var qe;
26633
26634
  const re = {
26634
26635
  ..._,
26635
26636
  ...n.initialFetcherParams
26636
26637
  };
26637
- g.value = re.page ?? _.page, y.value = re.pageSize ?? _.pageSize, p.value = re.query ?? _.query, w.value = re.sortColumnKey ?? _.sortColumnKey, k.value = re.sortColumnOrder ?? _.sortColumnOrder, n.clientSort && w.value && k.value && s(w.value, "", k.value, c.value), (He = n.paginationAttributes) != null && He.offset && ($.value = re.offset, C.value.push(re.offset)), N.value = !0;
26638
+ g.value = re.page ?? _.page, y.value = re.pageSize ?? _.pageSize, p.value = re.query ?? _.query, w.value = re.sortColumnKey ?? _.sortColumnKey, k.value = re.sortColumnOrder ?? _.sortColumnOrder, n.clientSort && w.value && k.value && s(w.value, "", k.value, c.value), (qe = n.paginationAttributes) != null && qe.offset && ($.value = re.offset, C.value.push(re.offset)), N.value = !0;
26638
26639
  }, ve = m(() => C.value[g.value - 1]), de = P(null), $e = m(() => {
26639
26640
  if (!n.fetcher || !N.value)
26640
26641
  return "";
@@ -26653,34 +26654,34 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26653
26654
  () => $e.value,
26654
26655
  () => J(),
26655
26656
  { revalidateOnFocus: !1, revalidateDebounce: 0 }
26656
- ), { state: Ze, hasData: oe } = u(Pe, Ge, et), Ye = m(() => ({
26657
+ ), { state: Ze, hasData: oe } = u(Pe, Ge, et), _e = m(() => ({
26657
26658
  hasData: oe.value,
26658
26659
  state: Ze.value
26659
- })), ee = m(() => Qe.value ? "loading" : Ge.value ? "error" : "success"), { debouncedFn: ye } = i(at, 500), De = ({ sortColumnKey: re, prevKey: He, sortColumnOrder: Fe }) => {
26660
+ })), ee = m(() => Qe.value ? "loading" : Ge.value ? "error" : "success"), { debouncedFn: ye } = i(at, 500), De = ({ sortColumnKey: re, prevKey: qe, sortColumnOrder: Fe }) => {
26660
26661
  var Nt;
26661
26662
  const ot = f.value.find((Lt) => Lt.key === re), { useSortHandlerFunction: nt } = ot;
26662
26663
  o("sort", {
26663
- prevKey: He,
26664
+ prevKey: qe,
26664
26665
  sortColumnKey: re,
26665
26666
  sortColumnOrder: Fe
26666
26667
  }), g.value = 1, (!w.value || re !== w.value) && (C.value = [null]), w.value = re, k.value = Fe, n.clientSort ? nt && n.sortHandlerFunction ? n.sortHandlerFunction({
26667
26668
  key: re,
26668
- prevKey: He,
26669
+ prevKey: qe,
26669
26670
  sortColumnOrder: k.value,
26670
26671
  data: c.value
26671
- }) : s(re, He, k.value, c.value) : (Nt = n.paginationAttributes) != null && Nt.offset || ye();
26672
+ }) : s(re, qe, k.value, c.value) : (Nt = n.paginationAttributes) != null && Nt.offset || ye();
26672
26673
  }, ne = ({ page: re }) => {
26673
26674
  g.value = re;
26674
26675
  }, we = ({ pageSize: re }) => {
26675
26676
  C.value = [null], $.value = null, y.value = re, g.value = 1;
26676
- }, Me = ({ columnWidths: re, columnVisibility: He }) => {
26677
- Te.value = re, _e.value = He, mt();
26678
- }, Te = P({}), _e = P({}), wt = m(() => ({
26677
+ }, Me = ({ columnWidths: re, columnVisibility: qe }) => {
26678
+ Te.value = re, He.value = qe, mt();
26679
+ }, Te = P({}), He = P({}), wt = m(() => ({
26679
26680
  pageSize: y.value,
26680
26681
  sortColumnKey: w.value,
26681
26682
  sortColumnOrder: k.value,
26682
26683
  ...Te.value ? { columnWidths: Te.value } : {},
26683
- ..._e.value ? { columnVisibility: _e.value } : {}
26684
+ ...He.value ? { columnVisibility: He.value } : {}
26684
26685
  })), mt = () => {
26685
26686
  ee.value === "success" && o("update:table-preferences", wt.value);
26686
26687
  }, Xe = () => {
@@ -26688,25 +26689,25 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26688
26689
  }, $t = () => {
26689
26690
  g.value--, $.value = ve.value;
26690
26691
  }, Ot = m(() => {
26691
- var He, Fe, ot;
26692
+ var qe, Fe, ot;
26692
26693
  if (!n.fetcher || n.hidePagination)
26693
26694
  return !1;
26694
- const re = ((Fe = (He = n.paginationAttributes) == null ? void 0 : He.pageSizes) == null ? void 0 : Fe[0]) ?? Dg;
26695
+ const re = ((Fe = (qe = n.paginationAttributes) == null ? void 0 : qe.pageSizes) == null ? void 0 : Fe[0]) ?? Dg;
26695
26696
  return n.hidePaginationWhenOptional && g.value === 1 ? (ot = n.paginationAttributes) != null && ot.offset ? !!ve.value || !!de.value || c.value.length >= re : b.value > re : !0;
26696
26697
  });
26697
26698
  return fe(Ne, (re) => {
26698
- var He, Fe, ot, nt;
26699
- re != null && re.data && (c.value = re.data, b.value = ((He = n.paginationAttributes) == null ? void 0 : He.totalCount) || re.total || ((Fe = re.data) == null ? void 0 : Fe.length) || 0, (ot = n.paginationAttributes) != null && ot.offset && ((nt = re.pagination) != null && nt.offset ? (de.value = re.pagination.offset, C.value[g.value] || C.value.push(re.pagination.offset)) : de.value = null, T.value = re.pagination && "hasNextPage" in re.pagination ? re.pagination.hasNextPage : !0), c.value.length === 0 && g.value > 1 && (g.value = 1, C.value = [null], $.value = null));
26700
- }, { deep: !0, immediate: !0 }), fe([Ye, ee], (re) => {
26701
- const [He, Fe] = re;
26699
+ var qe, Fe, ot, nt;
26700
+ re != null && re.data && (c.value = re.data, b.value = ((qe = n.paginationAttributes) == null ? void 0 : qe.totalCount) || re.total || ((Fe = re.data) == null ? void 0 : Fe.length) || 0, (ot = n.paginationAttributes) != null && ot.offset && ((nt = re.pagination) != null && nt.offset ? (de.value = re.pagination.offset, C.value[g.value] || C.value.push(re.pagination.offset)) : de.value = null, T.value = re.pagination && "hasNextPage" in re.pagination ? re.pagination.hasNextPage : !0), c.value.length === 0 && g.value > 1 && (g.value = 1, C.value = [null], $.value = null));
26701
+ }, { deep: !0, immediate: !0 }), fe([_e, ee], (re) => {
26702
+ const [qe, Fe] = re;
26702
26703
  o("state", {
26703
26704
  state: Fe,
26704
- hasData: He.hasData
26705
+ hasData: qe.hasData
26705
26706
  });
26706
26707
  }), fe(() => n.searchInput, (re) => {
26707
26708
  re === "" ? xe(re) : he(re);
26708
- }, { immediate: !0 }), fe([p, y], async (re, He) => {
26709
- const [Fe] = He, [ot] = re;
26709
+ }, { immediate: !0 }), fe([p, y], async (re, qe) => {
26710
+ const [Fe] = qe, [ot] = re;
26710
26711
  ot !== Fe && g.value !== 1 && (g.value = 1, C.value = [null], $.value = null);
26711
26712
  }, { deep: !0, immediate: !0 }), st(() => {
26712
26713
  V();
@@ -26714,7 +26715,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26714
26715
  revalidate: () => {
26715
26716
  at();
26716
26717
  }
26717
- }), (re, He) => (h(), X(qg, {
26718
+ }), (re, qe) => (h(), X(qg, {
26718
26719
  "cell-attrs": re.cellAttrs,
26719
26720
  class: "k-table-data",
26720
26721
  data: c.value,
@@ -26747,22 +26748,22 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
26747
26748
  "row-key": re.rowKey,
26748
26749
  "row-link": re.rowLink,
26749
26750
  "table-preferences": re.tablePreferences,
26750
- onEmptyStateActionClick: He[0] || (He[0] = (Fe) => o("empty-state-action-click")),
26751
- onErrorActionClick: He[1] || (He[1] = (Fe) => o("error-action-click")),
26751
+ onEmptyStateActionClick: qe[0] || (qe[0] = (Fe) => o("empty-state-action-click")),
26752
+ onErrorActionClick: qe[1] || (qe[1] = (Fe) => o("error-action-click")),
26752
26753
  onGetNextOffset: Xe,
26753
26754
  onGetPreviousOffset: $t,
26754
26755
  onPageChange: ne,
26755
26756
  onPageSizeChange: we,
26756
- onRowActionsToggle: He[2] || (He[2] = (Fe) => re.$emit("row-actions-toggle", Fe)),
26757
- onRowSelect: He[3] || (He[3] = (Fe) => o("row-select", Fe)),
26757
+ onRowActionsToggle: qe[2] || (qe[2] = (Fe) => re.$emit("row-actions-toggle", Fe)),
26758
+ onRowSelect: qe[3] || (qe[3] = (Fe) => o("row-select", Fe)),
26758
26759
  onSort: De,
26759
- "onUpdate:rowExpanded": He[4] || (He[4] = (Fe) => o("update:row-expanded", Fe)),
26760
+ "onUpdate:rowExpanded": qe[4] || (qe[4] = (Fe) => o("update:row-expanded", Fe)),
26760
26761
  "onUpdate:tablePreferences": Me
26761
26762
  }, yt({ _: 2 }, [
26762
26763
  re.$slots.toolbar && !re.hideToolbar ? {
26763
26764
  name: "toolbar",
26764
26765
  fn: B(() => [
26765
- Q(re.$slots, "toolbar", { state: Ye.value })
26766
+ Q(re.$slots, "toolbar", { state: _e.value })
26766
26767
  ]),
26767
26768
  key: "0"
26768
26769
  } : void 0,