@kong-ui-public/entities-shared 3.36.0 → 3.36.1

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,4 +1,4 @@
1
- import { inject as qt, ref as N, computed as S, unref as _, toValue as ge, watch as be, toRef as zn, provide as Ht, defineComponent as z, createBlock as K, openBlock as g, resolveDynamicComponent as je, normalizeClass as fe, withCtx as w, createElementBlock as $, createCommentVNode as D, createElementVNode as L, toDisplayString as I, Fragment as ue, renderList as ce, resolveComponent as j, createVNode as R, createTextVNode as q, useCssVars as Vt, useId as Qn, useSlots as Ue, renderSlot as U, createSlots as ke, normalizeProps as Zn, guardReactiveProps as Xn, mergeProps as Yt, onMounted as it, onBeforeMount as rt, withModifiers as Re, Teleport as Wt, onUnmounted as ei, withDirectives as Ce, vShow as xe, withKeys as ti, warn as ni } from "vue";
1
+ import { inject as qt, ref as N, computed as S, unref as _, toValue as ge, watch as be, toRef as zn, provide as Ht, defineComponent as z, createBlock as K, openBlock as g, resolveDynamicComponent as je, normalizeClass as fe, withCtx as w, createElementBlock as $, createCommentVNode as D, createElementVNode as L, toDisplayString as I, Fragment as ue, renderList as ce, resolveComponent as U, createVNode as R, createTextVNode as q, useCssVars as Vt, useId as Qn, useSlots as Ue, renderSlot as j, createSlots as ke, normalizeProps as Zn, guardReactiveProps as Xn, mergeProps as Yt, onMounted as it, onBeforeMount as rt, withModifiers as Re, Teleport as Wt, onUnmounted as ei, withDirectives as Ce, vShow as xe, withKeys as ti, warn as ni } from "vue";
2
2
  import mt from "axios";
3
3
  import { createI18n as ii, i18nTComponent as ri } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as ai, KExternalLink as oi, KButton as gt, KTruncate as li, KBadge as si } from "@kong/kongponents";
@@ -119,7 +119,8 @@ const wi = {
119
119
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
120
120
  }, $i = {
121
121
  actions: {
122
- viewConfiguration: "View Configuration",
122
+ viewConfiguration: "View configuration",
123
+ hideConfiguration: "Hide configuration",
123
124
  save: "Save",
124
125
  cancel: "Cancel",
125
126
  back: "Back"
@@ -704,7 +705,7 @@ const J = {
704
705
  setup(e) {
705
706
  const { i18n: { t } } = J.useI18n();
706
707
  return (n, i) => {
707
- const r = j("KButton");
708
+ const r = U("KButton");
708
709
  return g(), $("div", null, [
709
710
  R(r, {
710
711
  appearance: "tertiary",
@@ -730,7 +731,7 @@ const J = {
730
731
  setup(e) {
731
732
  const { i18n: { t } } = J.useI18n();
732
733
  return (n, i) => {
733
- const r = j("KBadge");
734
+ const r = U("KBadge");
734
735
  return g(), K(r, {
735
736
  appearance: e.status ? "success" : "neutral"
736
737
  }, {
@@ -928,13 +929,13 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
928
929
  }
929
930
  }), b = N(), k = N(), { isTruncated: A } = J.useTruncationDetector(b), { isTruncated: B } = J.useTruncationDetector(k);
930
931
  return (P, ee) => {
931
- const M = j("KTooltip"), F = j("KLabel"), x = j("KBadge"), f = j("KCopy");
932
+ const M = U("KTooltip"), F = U("KLabel"), x = U("KBadge"), f = U("KCopy");
932
933
  return g(), $("div", gr, [
933
934
  L("div", {
934
935
  class: "config-card-details-label",
935
936
  "data-testid": `${e.item.key}-label`
936
937
  }, [
937
- U(P.$slots, "label", { item: e.item }, () => [
938
+ j(P.$slots, "label", { item: e.item }, () => [
938
939
  R(F, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
939
940
  default: w(() => [
940
941
  R(M, {
@@ -958,7 +959,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
958
959
  L("div", {
959
960
  "data-testid": `${e.item.key}-label-tooltip`
960
961
  }, [
961
- U(P.$slots, "label-tooltip", {}, () => [
962
+ j(P.$slots, "label-tooltip", {}, () => [
962
963
  q(I(e.item.tooltip), 1)
963
964
  ], !0)
964
965
  ], 8, yr)
@@ -972,7 +973,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
972
973
  class: "config-card-details-value",
973
974
  "data-testid": `${e.item.key}-property-value`
974
975
  }, [
975
- U(P.$slots, e.item.key, {
976
+ j(P.$slots, e.item.key, {
976
977
  rowValue: e.item.value
977
978
  }, () => [
978
979
  c.value ? (g(), $("div", kr, [
@@ -1097,7 +1098,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
1097
1098
  return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
1098
1099
  });
1099
1100
  return (r, o) => {
1100
- const a = j("KBadge"), l = j("KCodeBlock");
1101
+ const a = U("KBadge"), l = U("KCodeBlock");
1101
1102
  return g(), $("div", $r, [
1102
1103
  t.fetcherUrl ? (g(), $("div", Tr, [
1103
1104
  R(a, {
@@ -2476,7 +2477,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2476
2477
  return Object.keys(i).length === 0 && i.constructor === Object ? "" : Wn.dump(i).trim();
2477
2478
  });
2478
2479
  return (i, r) => {
2479
- const o = j("KCodeBlock");
2480
+ const o = U("KCodeBlock");
2480
2481
  return g(), $("div", Go, [
2481
2482
  t.entityRecord ? (g(), K(o, {
2482
2483
  key: 0,
@@ -2585,7 +2586,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2585
2586
  `, u;
2586
2587
  });
2587
2588
  return (c, d) => {
2588
- const u = j("KCodeBlock");
2589
+ const u = U("KCodeBlock");
2589
2590
  return g(), $("div", zo, [
2590
2591
  t.entityRecord ? (g(), K(u, {
2591
2592
  key: 0,
@@ -2677,16 +2678,16 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2677
2678
  "data-testid": `config-card-details-${c}-props`
2678
2679
  }, [
2679
2680
  c !== "basic" ? (g(), $("div", Xo, I(c === "advanced" ? _(i)("baseConfigCard.sections.advanced") : c === "plugin" ? _(i)("baseConfigCard.sections.plugin") : _(i)("baseConfigCard.sections.policy")), 1)) : D("", !0),
2680
- (g(!0), $(ue, null, ce(e.propertyCollections[c], (d) => U(l.$slots, `config-card-item-${d.key}`, {
2681
+ (g(!0), $(ue, null, ce(e.propertyCollections[c], (d) => j(l.$slots, `config-card-item-${d.key}`, {
2681
2682
  key: d.key,
2682
2683
  item: d
2683
2684
  }, () => [
2684
2685
  R(nn, { item: d }, ke({
2685
2686
  label: w(() => [
2686
- U(l.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2687
+ j(l.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2687
2688
  ]),
2688
2689
  [d.key]: w(({ rowValue: u }) => [
2689
- U(l.$slots, d.key, {
2690
+ j(l.$slots, d.key, {
2690
2691
  row: d,
2691
2692
  rowValue: u
2692
2693
  }, void 0, !0)
@@ -2696,7 +2697,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2696
2697
  r(d) ? {
2697
2698
  name: "label-tooltip",
2698
2699
  fn: w(() => [
2699
- U(l.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2700
+ j(l.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2700
2701
  ]),
2701
2702
  key: "0"
2702
2703
  } : void 0
@@ -3038,14 +3039,14 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
3038
3039
  y.value = !1;
3039
3040
  }
3040
3041
  }), (f, v) => {
3041
- const C = j("KLabel"), Y = j("KSelect"), G = j("KButton"), E = j("KSkeleton"), O = j("KEmptyState"), V = j("KCard");
3042
+ const C = U("KLabel"), Y = U("KSelect"), G = U("KButton"), E = U("KSkeleton"), O = U("KEmptyState"), V = U("KCard");
3042
3043
  return g(), K(V, {
3043
3044
  class: "kong-ui-entity-base-config-card",
3044
3045
  "title-tag": e.titleTag
3045
3046
  }, ke({
3046
3047
  actions: w(() => [
3047
3048
  L("div", il, [
3048
- U(f.$slots, "actions", {}, void 0, !0),
3049
+ j(f.$slots, "actions", {}, void 0, !0),
3049
3050
  R(C, {
3050
3051
  class: "config-format-select-label",
3051
3052
  "data-testid": "config-format-select-label"
@@ -3112,7 +3113,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
3112
3113
  ce(Object.keys(f.$slots), (H) => ({
3113
3114
  name: H,
3114
3115
  fn: w((Q) => [
3115
- U(f.$slots, H, Yt({ record: k.value }, Q), void 0, !0)
3116
+ j(f.$slots, H, Yt({ record: k.value }, Q), void 0, !0)
3116
3117
  ])
3117
3118
  }))
3118
3119
  ]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
@@ -3124,7 +3125,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
3124
3125
  name: "title",
3125
3126
  fn: w(() => [
3126
3127
  L("span", nl, [
3127
- U(f.$slots, "title", {}, () => [
3128
+ j(f.$slots, "title", {}, () => [
3128
3129
  q(I(_(r)("baseConfigCard.title")), 1)
3129
3130
  ], !0)
3130
3131
  ])
@@ -3174,7 +3175,7 @@ ${l.value}
3174
3175
  '@ | ${d}`;
3175
3176
  });
3176
3177
  return (d, u) => {
3177
- const p = j("KSelect"), m = j("KBadge"), y = j("KCodeBlock");
3178
+ const p = U("KSelect"), m = U("KBadge"), y = U("KCodeBlock");
3178
3179
  return g(), $("div", ll, [
3179
3180
  R(p, {
3180
3181
  modelValue: o.value,
@@ -3414,7 +3415,7 @@ ${l.value}
3414
3415
  formCancel: A,
3415
3416
  formSubmit: B
3416
3417
  }), (x, f) => {
3417
- const v = j("KSkeleton"), C = j("KEmptyState"), Y = j("KAlert"), G = j("KButton"), E = j("KTabs"), O = j("KSlideout");
3418
+ const v = U("KSkeleton"), C = U("KEmptyState"), Y = U("KAlert"), G = U("KButton"), E = U("KTabs"), O = U("KSlideout");
3418
3419
  return g(), K(je(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3419
3420
  default: w(() => [
3420
3421
  c.value ? (g(), K(v, {
@@ -3438,7 +3439,7 @@ ${l.value}
3438
3439
  onReset: Re(A, ["prevent"]),
3439
3440
  onSubmit: Re(B, ["prevent"])
3440
3441
  }, [
3441
- U(x.$slots, "default", {}, void 0, !0),
3442
+ j(x.$slots, "default", {}, void 0, !0),
3442
3443
  e.errorMessage ? (g(), K(Y, {
3443
3444
  key: 0,
3444
3445
  appearance: "danger",
@@ -3454,14 +3455,14 @@ ${l.value}
3454
3455
  class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
3455
3456
  "data-testid": "form-actions"
3456
3457
  }, [
3457
- U(x.$slots, "form-actions", {}, () => [
3458
+ j(x.$slots, "form-actions", {}, () => [
3458
3459
  R(G, {
3459
3460
  appearance: "tertiary",
3460
3461
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
3461
3462
  onClick: f[0] || (f[0] = (V) => b())
3462
3463
  }, {
3463
3464
  default: w(() => [
3464
- q(I(_(a)("baseForm.actions.viewConfiguration")), 1)
3465
+ q(I(y.value ? _(a)("baseForm.actions.hideConfiguration") : _(a)("baseForm.actions.viewConfiguration")), 1)
3465
3466
  ]),
3466
3467
  _: 1
3467
3468
  }, 8, ["data-testid"]),
@@ -3503,7 +3504,11 @@ ${l.value}
3503
3504
  onClose: f[4] || (f[4] = (V) => b())
3504
3505
  }, {
3505
3506
  default: w(() => [
3506
- L("div", null, I(_(a)("baseForm.configuration.message")), 1),
3507
+ L("div", null, [
3508
+ j(x.$slots, "configuration-slideout-message", {}, () => [
3509
+ q(I(_(a)("baseForm.configuration.message")), 1)
3510
+ ], !0)
3511
+ ]),
3507
3512
  R(E, {
3508
3513
  "data-testid": "form-view-configuration-slideout-tabs",
3509
3514
  tabs: P.value,
@@ -3543,14 +3548,14 @@ ${l.value}
3543
3548
  _: 1
3544
3549
  }, 8, ["tabs"])
3545
3550
  ]),
3546
- _: 1
3551
+ _: 3
3547
3552
  }, 8, ["offset-top", "title", "visible"])
3548
3553
  ]),
3549
3554
  _: 3
3550
3555
  });
3551
3556
  };
3552
3557
  }
3553
- }), Os = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-1db7c290"]]), fl = ["data-truncate"], pl = /* @__PURE__ */ z({
3558
+ }), Os = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-7cbcaad8"]]), fl = ["data-truncate"], pl = /* @__PURE__ */ z({
3554
3559
  __name: "EntityBaseTableCell",
3555
3560
  props: {
3556
3561
  keyName: {
@@ -3609,7 +3614,7 @@ ${l.value}
3609
3614
  }), ei(() => {
3610
3615
  y();
3611
3616
  }), (b, k) => {
3612
- const A = j("KTooltip");
3617
+ const A = U("KTooltip");
3613
3618
  return g(), $("span", {
3614
3619
  ref_key: "contentRef",
3615
3620
  ref: c,
@@ -3625,11 +3630,11 @@ ${l.value}
3625
3630
  text: h.value ? p.value : ""
3626
3631
  }, {
3627
3632
  default: w(() => [
3628
- U(b.$slots, "default", {}, void 0, !0)
3633
+ j(b.$slots, "default", {}, void 0, !0)
3629
3634
  ]),
3630
3635
  _: 3
3631
3636
  }, 8, ["text"])
3632
- ], 8, fl)) : U(b.$slots, "default", { key: 1 }, void 0, !0)
3637
+ ], 8, fl)) : j(b.$slots, "default", { key: 1 }, void 0, !0)
3633
3638
  ], 512);
3634
3639
  };
3635
3640
  }
@@ -3852,7 +3857,7 @@ ${l.value}
3852
3857
  ...n.paginationAttributes
3853
3858
  }));
3854
3859
  return (f, v) => {
3855
- const C = j("KTableData"), Y = j("KCard");
3860
+ const C = U("KTableData"), Y = U("KCard");
3856
3861
  return g(), K(Y, {
3857
3862
  class: "kong-ui-entity-base-table",
3858
3863
  title: e.title,
@@ -3897,21 +3902,21 @@ ${l.value}
3897
3902
  }, ke({
3898
3903
  toolbar: w(() => [
3899
3904
  L("div", gl, [
3900
- U(f.$slots, "toolbar-filter", {}, void 0, !0),
3905
+ j(f.$slots, "toolbar-filter", {}, void 0, !0),
3901
3906
  f.$slots["toolbar-button"] ? (g(), $("div", hl, [
3902
- U(f.$slots, "toolbar-button", {}, void 0, !0)
3907
+ j(f.$slots, "toolbar-button", {}, void 0, !0)
3903
3908
  ])) : D("", !0)
3904
3909
  ])
3905
3910
  ]),
3906
3911
  "action-items": w(({ row: G }) => [
3907
- U(f.$slots, "actions", { row: G }, void 0, !0)
3912
+ j(f.$slots, "actions", { row: G }, void 0, !0)
3908
3913
  ]),
3909
3914
  _: 2
3910
3915
  }, [
3911
3916
  f.$slots["empty-state"] ? {
3912
3917
  name: "empty-state",
3913
3918
  fn: w(() => [
3914
- U(f.$slots, "empty-state", {}, void 0, !0)
3919
+ j(f.$slots, "empty-state", {}, void 0, !0)
3915
3920
  ]),
3916
3921
  key: "0"
3917
3922
  } : void 0,
@@ -3924,7 +3929,7 @@ ${l.value}
3924
3929
  tooltip: G.tooltip
3925
3930
  }, {
3926
3931
  default: w(() => [
3927
- U(f.$slots, E, {
3932
+ j(f.$slots, E, {
3928
3933
  row: O,
3929
3934
  rowKey: e.rowKey,
3930
3935
  rowValue: V
@@ -3945,7 +3950,7 @@ ${l.value}
3945
3950
  }
3946
3951
  ]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
3947
3952
  f.$slots["outside-actions"] && _(k) ? (g(), $("div", yl, [
3948
- U(f.$slots, "outside-actions", {}, void 0, !0)
3953
+ j(f.$slots, "outside-actions", {}, void 0, !0)
3949
3954
  ])) : D("", !0)
3950
3955
  ]),
3951
3956
  _: 3
@@ -4003,7 +4008,7 @@ ${l.value}
4003
4008
  r("proceed");
4004
4009
  };
4005
4010
  return (s, c) => {
4006
- const d = j("KAlert"), u = j("KPrompt");
4011
+ const d = U("KAlert"), u = U("KPrompt");
4007
4012
  return g(), K(u, {
4008
4013
  "action-button-appearance": "danger",
4009
4014
  "action-button-disabled": e.actionPending,
@@ -4043,7 +4048,7 @@ ${l.value}
4043
4048
  } : void 0
4044
4049
  ]), 1032, ["keypath"]),
4045
4050
  i.description || s.$slots.description ? (g(), $("div", kl, [
4046
- U(s.$slots, "description", {}, () => [
4051
+ j(s.$slots, "description", {}, () => [
4047
4052
  L("p", null, I(i.description), 1)
4048
4053
  ], !0)
4049
4054
  ])) : D("", !0)
@@ -4168,7 +4173,7 @@ ${l.value}
4168
4173
  return (x == null ? void 0 : x.filterFunction) === void 0 ? !0 : x.filterFunction(F);
4169
4174
  };
4170
4175
  return (M, F) => {
4171
- const x = j("KInput"), f = j("KButton"), v = j("KSelect");
4176
+ const x = U("KInput"), f = U("KButton"), v = U("KSelect");
4172
4177
  return e.config.isExactMatch ? (g(), K(x, {
4173
4178
  key: 0,
4174
4179
  autocomplete: "off",
@@ -4355,7 +4360,7 @@ ${l.value}
4355
4360
  }
4356
4361
  };
4357
4362
  return (u, p) => {
4358
- const m = j("KPrompt");
4363
+ const m = U("KPrompt");
4359
4364
  return g(), K(Wt, { to: "body" }, [
4360
4365
  R(m, {
4361
4366
  "action-button-disabled": a.value,
@@ -4410,7 +4415,7 @@ ${l.value}
4410
4415
  const t = e, n = N(void 0), i = S(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4411
4416
  return be(() => t.authFunction, async () => {
4412
4417
  n.value = await t.authFunction();
4413
- }, { immediate: !0 }), (r, o) => i.value ? U(r.$slots, "default", {
4418
+ }, { immediate: !0 }), (r, o) => i.value ? j(r.$slots, "default", {
4414
4419
  key: 0,
4415
4420
  isAllowed: n.value
4416
4421
  }) : D("", !0);
@@ -4499,16 +4504,16 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4499
4504
  _: 1
4500
4505
  }, 8, ["id"])) : D("", !0),
4501
4506
  e.description || _(t).description ? (g(), $("div", Hl, [
4502
- U(i.$slots, "description", {}, () => [
4507
+ j(i.$slots, "description", {}, () => [
4503
4508
  L("p", null, I(e.description), 1)
4504
4509
  ], !0)
4505
4510
  ])) : D("", !0),
4506
4511
  _(t).footer ? (g(), $("div", Vl, [
4507
- U(i.$slots, "footer", {}, void 0, !0)
4512
+ j(i.$slots, "footer", {}, void 0, !0)
4508
4513
  ])) : D("", !0)
4509
4514
  ], 2)),
4510
4515
  L("div", Yl, [
4511
- U(i.$slots, "default", {}, void 0, !0)
4516
+ j(i.$slots, "default", {}, void 0, !0)
4512
4517
  ])
4513
4518
  ])
4514
4519
  ], 10, Ul));
@@ -4536,22 +4541,22 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4536
4541
  e.step != null ? (g(), $("div", zl, I(e.step), 1)) : D("", !0),
4537
4542
  L("div", Ql, [
4538
4543
  L("h2", Zl, [
4539
- U(n.$slots, "title", {}, () => [
4544
+ j(n.$slots, "title", {}, () => [
4540
4545
  q(I(e.title), 1)
4541
4546
  ], !0)
4542
4547
  ]),
4543
4548
  e.description || t.description ? (g(), $("div", Xl, [
4544
- U(n.$slots, "description", {}, () => [
4549
+ j(n.$slots, "description", {}, () => [
4545
4550
  q(I(e.description), 1)
4546
4551
  ], !0)
4547
4552
  ])) : D("", !0)
4548
4553
  ]),
4549
4554
  t.extra ? (g(), $("div", es, [
4550
- U(n.$slots, "extra", {}, void 0, !0)
4555
+ j(n.$slots, "extra", {}, void 0, !0)
4551
4556
  ])) : D("", !0)
4552
4557
  ]),
4553
4558
  L("div", ts, [
4554
- U(n.$slots, "default", {}, void 0, !0)
4559
+ j(n.$slots, "default", {}, void 0, !0)
4555
4560
  ])
4556
4561
  ]));
4557
4562
  }
@@ -4597,7 +4602,7 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4597
4602
  }, 1800));
4598
4603
  };
4599
4604
  return (u, p) => {
4600
- const m = j("KTooltip"), y = j("KExternalLink"), h = j("KClipboardProvider");
4605
+ const m = U("KTooltip"), y = U("KExternalLink"), h = U("KClipboardProvider");
4601
4606
  return g(), $("div", is, [
4602
4607
  l.value ? (g(), $("div", rs, I(c.value), 1)) : s.value ? s.value ? (g(), K(y, {
4603
4608
  key: 2,
@@ -4725,23 +4730,23 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4725
4730
  i.value = await t.canCreate();
4726
4731
  }), it(() => ni(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
4727
4732
  Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) => {
4728
- const s = j("KCard");
4733
+ const s = U("KCard");
4729
4734
  return g(), $("div", ss, [
4730
4735
  L("div", cs, [
4731
4736
  a.$slots.image ? (g(), $("div", us, [
4732
- U(a.$slots, "image", {}, void 0, !0)
4737
+ j(a.$slots, "image", {}, void 0, !0)
4733
4738
  ])) : D("", !0),
4734
4739
  e.title || a.$slots.title ? (g(), $("div", ds, [
4735
4740
  L("h1", {
4736
4741
  class: fe(o.value)
4737
4742
  }, [
4738
- U(a.$slots, "title", {}, () => [
4743
+ j(a.$slots, "title", {}, () => [
4739
4744
  q(I(e.title), 1)
4740
4745
  ], !0)
4741
4746
  ], 2)
4742
4747
  ])) : D("", !0),
4743
4748
  e.description || a.$slots.default ? (g(), $("div", fs, [
4744
- U(a.$slots, "default", {}, () => [
4749
+ j(a.$slots, "default", {}, () => [
4745
4750
  L("p", null, I(e.description), 1)
4746
4751
  ], !0)
4747
4752
  ])) : D("", !0),
@@ -4749,17 +4754,17 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4749
4754
  L("p", null, [
4750
4755
  L("b", null, I(_(n)("emptyState.pricingTitle")), 1),
4751
4756
  l[2] || (l[2] = q()),
4752
- U(a.$slots, "pricing", {}, () => [
4757
+ j(a.$slots, "pricing", {}, () => [
4753
4758
  q(I(e.pricing), 1)
4754
4759
  ], !0)
4755
4760
  ])
4756
4761
  ])) : D("", !0)
4757
4762
  ]),
4758
4763
  a.$slots.message ? (g(), $("div", ms, [
4759
- U(a.$slots, "message", {}, void 0, !0)
4764
+ j(a.$slots, "message", {}, void 0, !0)
4760
4765
  ])) : D("", !0),
4761
4766
  r.value || e.learnMore || a.$slots.actions ? (g(), $("div", gs, [
4762
- U(a.$slots, "actions", {}, () => [
4767
+ j(a.$slots, "actions", {}, () => [
4763
4768
  r.value ? (g(), K(_(gt), {
4764
4769
  key: 0,
4765
4770
  appearance: "primary",
@@ -4795,7 +4800,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4795
4800
  }, {
4796
4801
  title: w(() => [
4797
4802
  a.$slots[`feature-${d}-icon`] ? (g(), $("div", ys, [
4798
- U(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
4803
+ j(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
4799
4804
  ])) : D("", !0),
4800
4805
  L("div", vs, I(c.title), 1)
4801
4806
  ]),
@@ -4808,7 +4813,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4808
4813
  }, 1024))), 128))
4809
4814
  ])) : D("", !0),
4810
4815
  a.$slots.bottom ? (g(), $("div", ks, [
4811
- U(a.$slots, "bottom", {}, void 0, !0)
4816
+ j(a.$slots, "bottom", {}, void 0, !0)
4812
4817
  ])) : D("", !0)
4813
4818
  ]);
4814
4819
  };
@@ -1,4 +1,4 @@
1
- (function(A,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("axios"),require("@kong-ui-public/i18n"),require("@kong/kongponents"),require("@shikijs/core"),require("@shikijs/engine-javascript"),require("@kong/icons"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","axios","@kong-ui-public/i18n","@kong/kongponents","@shikijs/core","@shikijs/engine-javascript","@kong/icons","vue-router"],t):(A=typeof globalThis<"u"?globalThis:A||self,t(A["kong-ui-public-entities-shared"]={},A.Vue,A.axios,A["kong-ui-public-i18n"],A.Kongponents,A.core$1,A.engineJavascript,A.KongIcons,A.VueRouter))})(this,function(A,t,We,ze,oe,Je,_n,G,En){"use strict";var Ge=(e=>(e.GatewayService="service",e.Route="route",e.Consumer="consumer",e.ConsumerGroup="consumer group",e.Plugin="plugin",e.Upstream="upstream",e.Certificate="certificate",e.CACertificate="ca certificate",e.SNI="SNI",e.Key="key",e.KeySet="key set",e.Vault="vault",e.Application="application",e.Developer="developer",e.acls="ACL Credential",e["basic-auth"]="Basic Auth Credential",e["key-auth"]="Key Auth Credential",e["key-auth-enc"]="Key Auth Encrypted Credential",e.oauth2="OAuth 2.0 Credential",e["hmac-auth"]="HMAC Credential",e.jwt="JWT Credential",e.Target="target",e.Policy="policy",e.Secret="secret",e.RedisConfiguration="redis configuration",e))(Ge||{}),Qe=(e=>(e.Edit="edit",e.Create="create",e))(Qe||{}),Z=(e=>(e[e.InitialLoad=0]="InitialLoad",e[e.Loading=1]="Loading",e[e.Idle=2]="Idle",e[e.NoResults=3]="NoResults",e[e.NoRecords=4]="NoRecords",e[e.Error=5]="Error",e))(Z||{}),ne=(e=>(e.CaCertificate="ca_certificate",e.Certificate="certificate",e.Consumer="consumer",e.ConsumerGroup="consumer_group",e.GatewayService="service",e.Key="key",e.KeySet="set",e.Plugin="plugin",e.Route="route",e.SNI="sni",e.Upstream="upstream",e.Target="target",e.Vault="vault",e.Partial="partial",e.BackendCluster="backend_cluster",e.VirtualCluster="virtual_cluster",e.Listener="listener",e.ProducePolicy="produce_policy",e.ConsumePolicy="consume_policy",e.ClusterPolicy="cluster_policy",e.ListenerPolicy="listener_policy",e.SchemaRegistry="schema_registry",e.StaticKey="static_key",e.AuthServer="auth_server",e.AuthServerScopes="auth_server_scopes",e.AuthServerClaims="auth_server_claims",e.AuthServerClients="auth_server_clients",e.Other="other",e))(ne||{});const ue=Object.values(ne),Ze=["ca_certificate","certificate","consumer","consumer_group","service","key","set","plugin","route","upstream","target","vault","partial"],Xe=["backend_cluster","virtual_cluster","listener","produce_policy","consume_policy","cluster_policy","listener_policy","schema_registry","static_key"],et=["auth_server","auth_server_scopes","auth_server_claims","auth_server_clients"];var L=(e=>(e.ID="id",e.IdArray="id-array",e.Text="plain-text",e.Date="date",e.Redacted="redacted",e.RedactedArray="redacted-array",e.Json="json",e.JsonArray="json-array",e.BadgeTag="badge-tag",e.CopyBadge="copy-badge",e.BadgeStatus="badge-status",e.BadgeMethod="badge-method",e.LinkInternal="link-internal",e.LinkExternal="link-external",e))(L||{}),H=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e.Policy="policy",e))(H||{});const Ae=["primary","secondary"];function Tn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):We.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),We.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var n;return((n=e==null?void 0:e.response)==null?void 0:n.headers["x-datadog-trace-id"])||""}}}function $n(){return{debounce:(e,n)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},n)}}}}const Be="khcp-user-table-preferences",Nn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnVisibility:{}};function In(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(o){console.error("useTablePreferences(tryParseJson)",o);return}},n=()=>{const r=e(localStorage.getItem(Be));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,o)=>{try{const i=n();i.set(r,o),localStorage.setItem(Be,JSON.stringify(Object.fromEntries(i.entries())))}catch(i){console.error("useTablePreferences(setTablePreferences)",i)}},getTablePreferences:(r,o)=>{const i=n();return(i==null?void 0:i.get(r))||void 0||o||Nn},deleteAllTablePreferences:()=>{localStorage.removeItem(Be)}}}function _e(e={}){const{getAxiosInstance:n}=Tn();return{axiosInstance:n(e)}}const Fn={global:{actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},deleteModal:{message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},baseForm:{actions:{viewConfiguration:"View Configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",message:"Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",yaml:"YAML",json:"JSON",terraform:"Terraform",deck:"decK"},errors:{edit:"The entity could not be edited at this time."}},baseTable:{emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},baseConfigCard:{title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration",policy:"Policy Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link",partial_label:"Redis Configuration"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},emptyState:{learnMore:"Learn more",pricingTitle:"Pricing: "},filter:{filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},debouncedFilter:{errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},errors:{unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},validationErrors:{utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},toggleModal:{enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},deckCodeBlock:{hint:{konnect:"The {token} environment variable must be added first. See {link} for details.",kongManager:"If your Admin API is secured, set up authentication following {link}."},documentation:"the documentation"}};function ye(){const e=ze.createI18n("en-us",Fn);return{i18n:e,i18nT:ze.i18nTComponent(e)}}function tt(){const e=(l,a)=>(a==null?void 0:a[l])??void 0,n=(l,a)=>{if(l.length!==a.length)return!1;const c=new Set([...l,...a]);for(const s of c){const d=l.filter(u=>u===s).length,f=a.filter(u=>u===s).length;if(d!==f)return!1}return!0};return{getPropValue:e,objectsAreEqual:(l,a,c)=>{if(c){if(Object.keys(l).length===Object.keys(a).length)for(const s in l)if(Array.isArray(l[s])&&Array.isArray(a[s])){if(n(l[s],a[s]))continue;return!1}else{if(l[s]===a[s])continue;return!1}else return!1;return!0}try{return JSON.stringify(l)===JSON.stringify(a)}catch{return!1}},sortAlpha:l=>(a,c)=>{let s=a[l]===void 0||a[l]===null?"":a[l],d=c[l]===void 0||c[l]===null?"":c[l];return Array.isArray(a[l])&&(s=a[l][0]),Array.isArray(c[l])&&(d=c[l][0]),s.localeCompare(d)},isValidUuid:l=>l?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(l):!1}}function On(e,n,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:i}=_e(e.axiosRequestConfig),{i18n:{t:l}}=ye(),{debounce:a}=$n(),c=a(async $=>{await S($)},200),s=t.ref(!1),d=t.ref(""),f=t.ref(""),u=t.ref([]),m=t.ref([]),h=t.ref(void 0),y=t.computed(()=>{const $=`${e.apiBaseUrl}${t.unref(n)}`;return e.app==="konnect"?$.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"?$.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""):$}),{isValidUuid:g}=tt(),b=async()=>{try{s.value=!0;const{data:$}=await i.get(`${y.value}?size=${r}`);$!=null&&$.next||(h.value=o.fetchedItemsKey in $?$[o.fetchedItemsKey]:[]),m.value=o.fetchedItemsKey in $?$[o.fetchedItemsKey]:[],u.value=m.value}catch{u.value=[],d.value=l("debouncedFilter.errors.fetch")}finally{s.value=!1}},C=t.ref(""),S=async $=>{var I,j,N;if(C.value!==$){if(C.value=$??"",!$){u.value=m.value;return}if(h.value===void 0)try{if(s.value=!0,d.value="",f.value="",e.app==="konnect"){const E=`${y.value}/${$}`,{data:w}=await i.get(`${E}?size=${r}`);o.fetchedItemsKey in w?u.value=w[o.fetchedItemsKey]:w!=null&&w[o.exactMatchKey??"id"]?u.value=[w]:u.value=[]}else{const E=[];g($)&&o.searchKeys.includes("id")?E.push((async()=>{const{data:k}=await i.get(`${y.value}/${$}`);return[k[o.fetchedItemsKey]??k]})()):E.push(...o.searchKeys.filter(k=>k!=="id").map(async k=>{const{data:x}=await i.get(`${y.value}?${k}=${$}`);return x[o.fetchedItemsKey]}));const w=await Promise.all(E),p=new Set;u.value=[],(I=w==null?void 0:w.forEach)==null||I.call(w,k=>{var x;(x=k==null?void 0:k.forEach)==null||x.call(k,V=>{p.has(V.id)||(p.add(V.id),u.value.push(V))})})}}catch(E){((j=E==null?void 0:E.response)==null?void 0:j.status)===404?f.value=l("debouncedFilter.errors.invalid"):(u.value=[],d.value=l("debouncedFilter.errors.fetch"))}finally{s.value=!1}else s.value=!0,f.value="",u.value=(N=h.value)==null?void 0:N.filter(E=>{var p;let w=!1;for(const k of o.searchKeys){const x=typeof E[k]=="string"?(p=E[k])==null?void 0:p.toLowerCase():E[k];x!=null&&x.includes($.toLowerCase())&&(w=!0)}return w}),(!u.value||!u.value.length)&&(f.value=l("debouncedFilter.errors.invalid")),s.value=!1}};return{loading:s,error:d,validationError:f,results:u,allRecords:h,loadItems:b,debouncedQueryChange:c}}function Ln(e,n){const r=t.unref(n),o=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return o.value.search="",i=>`${o.value.href}/${i}`}function Vn(){const{i18n:{t:e}}=ye();return{getErrorFieldsFromError:o=>{var a,c,s;if(!o)return{messages:[e("errors.unexpected")],fields:[]};if(((a=o==null?void 0:o.response)==null?void 0:a.status)===401)return{messages:[],fields:[]};let i=[e("errors.unexpected")];const l=[];if((c=o==null?void 0:o.response)!=null&&c.data){if((s=o.response.data.details)!=null&&s.length)return i=[],o.response.data.details.forEach(d=>{let f=e("errors.unexpected");d.messages&&Array.isArray(d.messages)&&d.messages.length&&(f=d.messages.join(", ")),d.field&&l.push({field:d.field,message:f}),i.push(`${d.field??""} ${f}`)}),{messages:i,fields:l};if(o.response.data.message&&Array.isArray(o.response.data.message))return i=[],o.response.data.message.forEach(d=>{if(d!=null&&d.constraints){const f=Object.values(d.constraints).join(", ");i.push(f),d.property&&l.push({field:d.property,message:f})}else d!=null&&d.property&&(d!=null&&d.message)?(l.push({field:d.property,message:d.message}),i.push(d.message)):i.push(d)}),{messages:i,fields:l};if(typeof o.response.data.message=="string"||typeof o.response.data=="string")return{messages:[o.response.data.message],fields:[]};if(typeof o.response.data=="object")return i=[],Object.keys(o.response.data).forEach(d=>{l.push({field:d,message:o.response.data[d]}),i.push(o.response.data[d])}),{messages:i,fields:l}}return{messages:[o.message||e("errors.unexpected")],fields:[]}},getMessageFromError:o=>{var i,l,a,c;if(!o)return e("errors.unexpected");if(((i=o==null?void 0:o.response)==null?void 0:i.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((l=o==null?void 0:o.response)!=null&&l.data){if(o.response.data.detail)return o.response.data.detail;if((a=o.response.data.details)!=null&&a.length)return o.response.data.details.map(s=>{let d=e("errors.unexpected");return s.messages&&typeof s.messages=="object"&&s.messages.length&&(d=s.messages.join(", ")),s.field?`${s.field} - ${d}`:d}).join("; ");if(o.response.data.message){const{message:s}=o.response.data;return Array.isArray(s)?(c=s[0])!=null&&c.constraints?Object.values(s[0].constraints)[0]:s[0]:s}if(typeof o.response.data=="string")return o.response.data;if(typeof o.response.data=="object")return Object.keys(o.response.data).map(s=>`${s} ${o.response.data[s]}`).join(", ")}return o.message||e("errors.unexpected")}}}function Dn(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const o=e.join("/"),i=`${r}${o}`,l=e.some(c=>c.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(i)&&!l&&new URL(i))return`${r}${o}`;throw new Error("Invalid url")}catch(o){return console.warn("Failed to build valid URL:",o),""}}function nt(e,n){const r=t.computed(()=>{const i=t.toValue(e);return i.app==="konnect"||!!i.isExactMatch}),o=t.computed(()=>{const i=t.toValue(n);return i.startsWith("/")?new URL(`${window.location.origin}${i}`):new URL(i)});return i=>{const{page:l,pageSize:a,offset:c,sortColumnKey:s,sortColumnOrder:d,query:f}=i;try{let u=new URL(o.value.href);return r.value&&f?(u.search="",u=t.toValue(e).isExactMatch?new URL(`${u.href}/${f}`):new URL(`${u.href}?filter[name][contains]=${f}`)):(r.value||new URLSearchParams(f).forEach((m,h)=>{u.searchParams.append(h,m)}),s&&u.searchParams.append("sort_by",s),d==="desc"&&u.searchParams.append("sort_desc","1"),u.searchParams.append("size",String(a))),c&&l!==1&&u.searchParams.append("offset",String(c)),u.href}catch(u){return console.error("RouteList(fetcher)",u),t.toValue(n)}}}const rt=new Map;function Rn(e,n,r){const o=t.ref(!0),i=t.toValue(e),{axiosInstance:l}=_e(i.axiosRequestConfig),a=nt(e,n),c=t.ref({status:Z.Idle}),s=async u=>{var h;const m=t.toValue(r)||"data";try{c.value=o.value?{status:Z.InitialLoad}:{status:Z.Loading},o.value=!1;let y=a(u);y.includes("filter[name]")&&(y=`${y}&page[size]=${u.pageSize}&page[number]=${u.page}`);const g=await l.get(y);if(g.status>=400)throw g;const b=g.data,C=m&&m.replace(/[^\w-_]/gi,"");let S;b[C]?S=Array.isArray(b[C])?b[C]:[b[C]]:Array.isArray(b)?S=b:S=Object.keys(b).length?[b]:[];const $={data:S,total:S.length,...b.offset?{pagination:{offset:b.offset}}:null};return $.data.length===0&&!u.query?c.value={status:Z.NoRecords,response:$}:c.value={status:Z.Idle,response:$},$}catch(y){const g={data:[],total:0};return u.query&&(((h=y.response)==null?void 0:h.status)===404||y.status===404)?(c.value={status:Z.NoResults,response:g,error:y.response?y:{response:y}},g):(c.value={status:Z.Error,response:g,error:y.response?y:{response:y}},g)}},d=i.cacheIdentifier,f=ot(d);return{fetcher:s,fetcherState:c,fetcherCacheKey:f}}function ot(e){if(e){let n=rt.get(e);return n||(n=t.ref(1),rt.set(e,n)),n}return t.ref(1)}function Kn(){const e=(o,i="_")=>o?o.split(i).map(l=>l.toLowerCase()==="id"?l.toUpperCase():l.charAt(0).toUpperCase()+l.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:o=>o?o.replace(n,i=>i.toUpperCase()):"",convertKeyToTitle:e}}const it=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,at=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(it);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},lt=e=>e==="*"||e==="x"||e==="X",ct=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},Mn=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],vn=(e,n)=>{if(lt(e)||lt(n))return 0;const[r,o]=Mn(ct(e),ct(n));return r>o?1:r<o?-1:0},st=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const o=vn(e[r]||"0",n[r]||"0");if(o!==0)return o}return 0},jn=(e,n)=>{const r=at(e),o=at(n),i=r.pop(),l=o.pop(),a=st(r,o);return a!==0?a:i&&l?st(i.split("."),l.split(".")):i||l?i?-1:1:0},dt=(e,n,r)=>{Pn(r);const o=jn(e,n);return ut[r].includes(o)},ut={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},ft=Object.keys(ut),Pn=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(ft.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${ft.join("|")}`)},Un=e=>typeof e=="string"&&/^[v\d]/.test(e)&&it.test(e);function qn(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:o,version:i}=n;if(!Un(i))return console.error("Invalid version"),!1;const l=r[o];if(!l)return!1;const[a,c]=l;return!(a&&dt(i,a,"<")||c&&dt(i,c,">"))}function Hn(e){const n=t.ref(0),r=t.ref(0),o=t.ref(!1);return t.watch(e,l=>{l&&!o.value&&(n.value=l.offsetWidth,r.value=l.scrollWidth,o.value=!0)}),{isTruncated:t.computed(()=>n.value<r.value)}}function Yn(){const{i18n:{t:e}}=ye();return{utf8Name:r=>/^[\p{N}\p{L}.\-_~]*$/u.test(r)?"":e("validationErrors.utf8Name")}}const Ee=Symbol("schema"),Wn=e=>{t.provide(Ee,e)},zn=e=>{var i,l;const n=t.inject(Ee,void 0),r=(l=(i=n==null?void 0:n.value)==null?void 0:i.fields)==null?void 0:l.find(a=>Object.keys(a)[0]===e),o=t.toRef(r==null?void 0:r[e]);return t.provide(Ee,o),o};function Jn(e){let n="";const r=t.ref(!1),o=t.ref(null),i=t.computed(()=>{let a;return r.value?a=!0:o.value?a=o.value.hasData||e&&t.toValue(e):a=!1,!a});return{tableState:o,hasRecords:r,hideTableToolbar:i,handleStateChange:a=>{a.hasData?r.value=!0:a.state==="success"&&!a.hasData&&(!e||!n)&&(r.value=!1),e&&(n=t.toValue(e)),o.value={...a}}}}const D={useAxios:_e,useDebouncedFilter:On,useDeleteUrlBuilder:Ln,useErrors:Vn,useExternalLinkCreator:Dn,useFetcher:Rn,useFetcherCacheKey:ot,useFetchUrlBuilder:nt,useHelpers:tt,useStringHelpers:Kn,useI18n:ye,useGatewayFeatureSupported:qn,useTruncationDetector:Hn,useValidators:Yn,useSchemaProvider:Wn,useSubSchema:zn,useTableState:Jn},Gn={key:0,class:"config-card-fieldset-title"},Qn=t.defineComponent({__name:"JsonCardItem",props:{item:{type:Object,required:!0},index:{type:Number,default:-1},isArrayItem:{type:Boolean,default:!1}},setup(e){const n=e,{i18n:{t:r}}=D.useI18n(),{convertKeyToTitle:o}=D.useStringHelpers(),i=t.computed(()=>n.item.key??"json-array-item"),l=t.computed(()=>n.item.value??n.item),a=t.computed(()=>{const s=JSON.parse(JSON.stringify(l.value));return n.isArrayItem&&delete s.name,s}),c=t.computed(()=>{var s;return n.isArrayItem?(s=l.value)!=null&&s.name?o(l.value.name,"_"):r("baseConfigCard.general.entryTitle",{index:n.index}):""});return(s,d)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isArrayItem?"fieldset":"div"),{class:t.normalizeClass(e.isArrayItem?"config-card-fieldset":"config-card-json-item")},{default:t.withCtx(()=>[e.isArrayItem?(t.openBlock(),t.createElementBlock("legend",Gn,[t.createElementVNode("b",null,t.toDisplayString(c.value),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(a.value),(f,u)=>(t.openBlock(),t.createBlock(Te,{key:`${i.value}-property-${u}`,item:{key:f,label:t.unref(o)(f),value:a.value[f]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),W=(e,n)=>{const r=e.__vccOpts||e;for(const[o,i]of n)r[o]=i;return r},pt=W(Qn,[["__scopeId","data-v-dc1e39a1"]]),mt=W(t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:n}}=D.useI18n();return(r,o)=>{const i=t.resolveComponent("KButton");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(i,{appearance:"tertiary",class:"navigation-button",onClick:o[0]||(o[0]=l=>r.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(n)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),[["__scopeId","data-v-2feb8c2e"]]),Zn=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:n}}=D.useI18n();return(r,o)=>{const i=t.resolveComponent("KBadge");return t.openBlock(),t.createBlock(i,{appearance:e.status?"success":"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.status?t.unref(n)("baseConfigCard.statusBadge.enabledLabel"):t.unref(n)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),Xn="#0044f4",er="#e0e4ea",tr="#afb7c5",nr="#0044f4",rr="1px",or="16px",ir="20px",ar=Je.createdBundledHighlighter({langs:{json:()=>import("@shikijs/langs/json"),yaml:()=>import("@shikijs/langs/yaml"),terraform:()=>import("@shikijs/langs/terraform"),shellscript:()=>import("@shikijs/langs/shellscript"),bash:()=>import("@shikijs/langs/shellscript"),sh:()=>import("@shikijs/langs/shellscript"),shell:()=>import("@shikijs/langs/shellscript"),zsh:()=>import("@shikijs/langs/shellscript"),powershell:()=>import("@shikijs/langs/powershell")},themes:{"catppuccin-mocha":()=>import("@shikijs/themes/catppuccin-mocha"),"catppuccin-latte":()=>import("@shikijs/themes/catppuccin-latte")},engine:()=>_n.createJavaScriptRegexEngine()}),{codeToHtml:lr}=Je.createSingletonShorthands(ar);async function ie({codeElement:e,code:n,language:r,theme:o}){e.innerHTML=await lr(n,{lang:r,theme:o==="dark"?"catppuccin-mocha":"catppuccin-latte",structure:"inline"})}const cr={class:"config-card-details-row"},sr=["data-testid"],dr=["data-testid"],ur=["data-testid"],fr=["data-testid"],pr={key:1},mr=["data-testid"],hr=["data-testid"],gr=["data-testid"],yr=["data-testid"],kr={name:"ConfigCardItem",components:{JsonCardItem:pt,StatusBadge:Zn,InternalLinkItem:mt}},br=t.defineComponent({...kr,props:{item:{type:Object,required:!0},slim:{type:Boolean,required:!1,default:!1},truncated:{type:Boolean,required:!1,default:!1}},emits:["navigation-click"],setup(e,{emit:n}){t.useCssVars(I=>({v0b2cd434:m.value?"none":`solid ${t.unref(rr)} ${t.unref(er)}`,bb02ad32:u.value&&d.value?"block":"flex",d92de3ce:u.value&&d.value?"100%":r.slim?"50%":"25%",d9295818:u.value&&d.value?"100%":r.slim?"50%":"75%"}));const r=e,o=n,i=t.useId(),l=t.useSlots(),{i18n:{t:a,formatIsoDate:c,formatUnixTimeStamp:s}}=D.useI18n(),d=t.computed(()=>r.item.value!==void 0&&r.item.value!==null&&r.item.value!==""),f=t.computed(()=>!!(r.item.tooltip||l["label-tooltip"])),u=t.computed(()=>r.item.type===L.Json||r.item.type===L.JsonArray),m=t.computed(()=>r.item.type===L.JsonArray),h=D.useSubSchema(r.item.key),y=t.computed(()=>{var I;return r.item.type?r.item.type:(I=h==null?void 0:h.value)!=null&&I.encrypted?L.Redacted:void 0}),g=t.computed(()=>{switch(y.value){case L.ID:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid`,"copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case L.IdArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{"copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label})}};case L.Redacted:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid-redacted`,format:"redacted","copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case L.RedactedArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{format:"redacted","copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label})}};case L.Date:return{tag:"div",attrs:{"data-testid":`${r.item.key}-date`},text:isNaN(Number(r.item.value))?c(r.item.value):s(r.item.value)};case L.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${r.item.key}-badge-status`,status:r.item.value}};case L.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case L.CopyBadge:return{tag:"div",additionalComponent:"KCopy",childAttrs:{badge:!0,truncate:!0,truncationLimit:"auto",text:r.item.value}};case L.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case L.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${r.item.key}-internal-link`,item:r.item,onNavigationClick:I=>{o("navigation-click",I)}}};case L.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${r.item.key}-external-link`,href:r.item.value},text:r.item.value};case L.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-content`,item:r.item}};case L.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-array-content`,item:r.item}};default:return r.item.value!=null&&typeof r.item.value=="object"?{tag:"KCodeBlock",attrs:{"data-testid":`${r.item.key}-json-code`,id:`json-code-${i}`,language:"json",code:JSON.stringify(r.item.value,null," "),maxHeight:"480px",showLineNumbers:!1,onCodeBlockRender:ie}}:{tag:"div",attrs:{"data-testid":`${r.item.key}-plain-text`},text:r.item.value}}}),b=t.ref(),C=t.ref(),{isTruncated:S}=D.useTruncationDetector(b),{isTruncated:$}=D.useTruncationDetector(C);return(I,j)=>{const N=t.resolveComponent("KTooltip"),E=t.resolveComponent("KLabel"),w=t.resolveComponent("KBadge"),p=t.resolveComponent("KCopy");return t.openBlock(),t.createElementBlock("div",cr,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(I.$slots,"label",{item:e.item},()=>[t.createVNode(E,{"tooltip-attributes":{maxWidth:"500px"}},t.createSlots({default:t.withCtx(()=>[t.createVNode(N,{text:t.unref(S)?e.item.label:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"labelContent",ref:b,class:"label-content"},t.toDisplayString(e.item.label),513)]),_:1},8,["text"])]),_:2},[f.value?{name:"tooltip",fn:t.withCtx(()=>[t.createElementVNode("div",{"data-testid":`${e.item.key}-label-tooltip`},[t.renderSlot(I.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(e.item.tooltip),1)],!0)],8,dr)]),key:"0"}:void 0]),1024)],!0)],8,sr),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[t.renderSlot(I.$slots,e.item.key,{rowValue:e.item.value},()=>[d.value?(t.openBlock(),t.createElementBlock("div",pr,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(g.value.tag),t.normalizeProps(t.guardReactiveProps(g.value.attrs)),{default:t.withCtx(()=>[g.value.additionalComponent==="KBadge"?(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-badge-tags`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(k,x)=>(t.openBlock(),t.createBlock(w,{key:`${e.item.key}-badge-tag-${x}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${x}`,tooltip:k,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(k),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,mr)):g.value.additionalComponent==="KCopy"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"copy-uuid-array","data-testid":`${e.item.key}-copy-uuid-array`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(k,x)=>(t.openBlock(),t.createBlock(p,t.mergeProps({ref_for:!0},g.value.childAttrs,{key:`${e.item.key}-copy-uuid-${x}`,"data-testid":`${e.item.key}-copy-uuid-${x}`,text:k}),null,16,["data-testid","text"]))),128))],8,hr)):g.value.additionalComponent==="KMethodBadge"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"method-badge-array","data-testid":`${e.item.key}-badge-methods`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(k,x)=>(t.openBlock(),t.createBlock(w,{key:`${e.item.key}-badge-method-${x}`,appearance:Object.values(t.unref(oe.BadgeMethodAppearances)).includes(k.toLowerCase())?k.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${x}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(k),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,gr)):g.value.additionalComponent==="JsonCardItem"?(t.openBlock(),t.createElementBlock("div",{key:3,"data-testid":`${r.item.key}-json-array-content`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(k,x)=>(t.openBlock(),t.createBlock(pt,{key:`json-array-item-${x}`,index:x,"is-array-item":"",item:k},null,8,["index","item"]))),128))],8,yr)):(t.openBlock(),t.createBlock(N,{key:4,text:t.unref($)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:C,class:t.normalizeClass(["attrs-data-text",{truncated:e.truncated}])},t.toDisplayString(g.value.text),3)]),_:1},8,["text"]))]),_:1},16))])):(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-no-value`}," – ",8,fr))],!0)],8,ur)])}}}),Te=W(br,[["__scopeId","data-v-40ffb9f1"]]),Cr={class:"json-config config-card-code-block"},xr={key:0,class:"json-endpoint"},$e=t.defineComponent({__name:"JsonCodeBlock",props:{config:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},entityRecord:{type:Object,required:!0},requestMethod:{type:String,required:!1,default:""}},setup(e){t.useCssVars(i=>({v58418ff6:`${o.value}ch`}));const n=e,r=t.computed(()=>n.entityRecord),o=t.computed(()=>{var a;if(!n.fetcherUrl)return 0;const i=(a=n.fetcherUrl)==null?void 0:a.split("/");return i.length<2?0:41+(n.requestMethod==="post"?i[i.length-1]:i[i.length-2]).length});return(i,l)=>{const a=t.resolveComponent("KBadge"),c=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Cr,[n.fetcherUrl?(t.openBlock(),t.createElementBlock("div",xr,[t.createVNode(a,{appearance:n.requestMethod},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.requestMethod),1)]),_:1},8,["appearance"]),t.createVNode(c,{id:"json-endpoint-codeblock",code:n.fetcherUrl,language:"plaintext","single-line":"",theme:"dark"},null,8,["code"])])):t.createCommentVNode("",!0),n.entityRecord?(t.openBlock(),t.createBlock(c,{key:1,id:"json-codeblock",class:t.normalizeClass({"json-content":n.fetcherUrl}),code:JSON.stringify(r.value,null,2),language:"json",theme:"dark",onCodeBlockRender:t.unref(ie)},null,8,["class","code","onCodeBlockRender"])):t.createCommentVNode("",!0)])}}});/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function ht(e){return typeof e>"u"||e===null}function wr(e){return typeof e=="object"&&e!==null}function Sr(e){return Array.isArray(e)?e:ht(e)?[]:[e]}function Ar(e,n){var r,o,i,l;if(n)for(l=Object.keys(n),r=0,o=l.length;r<o;r+=1)i=l[r],e[i]=n[i];return e}function Br(e,n){var r="",o;for(o=0;o<n;o+=1)r+=e;return r}function _r(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Er=ht,Tr=wr,$r=Sr,Nr=Br,Ir=_r,Fr=Ar,v={isNothing:Er,isObject:Tr,toArray:$r,repeat:Nr,isNegativeZero:Ir,extend:Fr};function gt(e,n){var r="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(r+=`
1
+ (function(A,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("axios"),require("@kong-ui-public/i18n"),require("@kong/kongponents"),require("@shikijs/core"),require("@shikijs/engine-javascript"),require("@kong/icons"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","axios","@kong-ui-public/i18n","@kong/kongponents","@shikijs/core","@shikijs/engine-javascript","@kong/icons","vue-router"],t):(A=typeof globalThis<"u"?globalThis:A||self,t(A["kong-ui-public-entities-shared"]={},A.Vue,A.axios,A["kong-ui-public-i18n"],A.Kongponents,A.core$1,A.engineJavascript,A.KongIcons,A.VueRouter))})(this,function(A,t,We,ze,oe,Je,_n,G,En){"use strict";var Ge=(e=>(e.GatewayService="service",e.Route="route",e.Consumer="consumer",e.ConsumerGroup="consumer group",e.Plugin="plugin",e.Upstream="upstream",e.Certificate="certificate",e.CACertificate="ca certificate",e.SNI="SNI",e.Key="key",e.KeySet="key set",e.Vault="vault",e.Application="application",e.Developer="developer",e.acls="ACL Credential",e["basic-auth"]="Basic Auth Credential",e["key-auth"]="Key Auth Credential",e["key-auth-enc"]="Key Auth Encrypted Credential",e.oauth2="OAuth 2.0 Credential",e["hmac-auth"]="HMAC Credential",e.jwt="JWT Credential",e.Target="target",e.Policy="policy",e.Secret="secret",e.RedisConfiguration="redis configuration",e))(Ge||{}),Qe=(e=>(e.Edit="edit",e.Create="create",e))(Qe||{}),Z=(e=>(e[e.InitialLoad=0]="InitialLoad",e[e.Loading=1]="Loading",e[e.Idle=2]="Idle",e[e.NoResults=3]="NoResults",e[e.NoRecords=4]="NoRecords",e[e.Error=5]="Error",e))(Z||{}),ne=(e=>(e.CaCertificate="ca_certificate",e.Certificate="certificate",e.Consumer="consumer",e.ConsumerGroup="consumer_group",e.GatewayService="service",e.Key="key",e.KeySet="set",e.Plugin="plugin",e.Route="route",e.SNI="sni",e.Upstream="upstream",e.Target="target",e.Vault="vault",e.Partial="partial",e.BackendCluster="backend_cluster",e.VirtualCluster="virtual_cluster",e.Listener="listener",e.ProducePolicy="produce_policy",e.ConsumePolicy="consume_policy",e.ClusterPolicy="cluster_policy",e.ListenerPolicy="listener_policy",e.SchemaRegistry="schema_registry",e.StaticKey="static_key",e.AuthServer="auth_server",e.AuthServerScopes="auth_server_scopes",e.AuthServerClaims="auth_server_claims",e.AuthServerClients="auth_server_clients",e.Other="other",e))(ne||{});const ue=Object.values(ne),Ze=["ca_certificate","certificate","consumer","consumer_group","service","key","set","plugin","route","upstream","target","vault","partial"],Xe=["backend_cluster","virtual_cluster","listener","produce_policy","consume_policy","cluster_policy","listener_policy","schema_registry","static_key"],et=["auth_server","auth_server_scopes","auth_server_claims","auth_server_clients"];var L=(e=>(e.ID="id",e.IdArray="id-array",e.Text="plain-text",e.Date="date",e.Redacted="redacted",e.RedactedArray="redacted-array",e.Json="json",e.JsonArray="json-array",e.BadgeTag="badge-tag",e.CopyBadge="copy-badge",e.BadgeStatus="badge-status",e.BadgeMethod="badge-method",e.LinkInternal="link-internal",e.LinkExternal="link-external",e))(L||{}),H=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e.Policy="policy",e))(H||{});const Ae=["primary","secondary"];function Tn(){return{getAxiosInstance:(e={})=>{try{const n=t.inject("get-axios-instance",void 0);return typeof n=="function"?n(e):We.create({withCredentials:!0,timeout:3e4,...e})}catch(n){return console.warn("getAxiosInstance:",n.message||n),We.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var n;return((n=e==null?void 0:e.response)==null?void 0:n.headers["x-datadog-trace-id"])||""}}}function $n(){return{debounce:(e,n)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},n)}}}}const Be="khcp-user-table-preferences",Nn={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnVisibility:{}};function In(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(o){console.error("useTablePreferences(tryParseJson)",o);return}},n=()=>{const r=e(localStorage.getItem(Be));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,o)=>{try{const i=n();i.set(r,o),localStorage.setItem(Be,JSON.stringify(Object.fromEntries(i.entries())))}catch(i){console.error("useTablePreferences(setTablePreferences)",i)}},getTablePreferences:(r,o)=>{const i=n();return(i==null?void 0:i.get(r))||void 0||o||Nn},deleteAllTablePreferences:()=>{localStorage.removeItem(Be)}}}function _e(e={}){const{getAxiosInstance:n}=Tn();return{axiosInstance:n(e)}}const Fn={global:{actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},deleteModal:{message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},baseForm:{actions:{viewConfiguration:"View configuration",hideConfiguration:"Hide configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",message:"Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",yaml:"YAML",json:"JSON",terraform:"Terraform",deck:"decK"},errors:{edit:"The entity could not be edited at this time."}},baseTable:{emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},baseConfigCard:{title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration",policy:"Policy Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link",partial_label:"Redis Configuration"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},emptyState:{learnMore:"Learn more",pricingTitle:"Pricing: "},filter:{filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},debouncedFilter:{errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},errors:{unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},validationErrors:{utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},toggleModal:{enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},deckCodeBlock:{hint:{konnect:"The {token} environment variable must be added first. See {link} for details.",kongManager:"If your Admin API is secured, set up authentication following {link}."},documentation:"the documentation"}};function ye(){const e=ze.createI18n("en-us",Fn);return{i18n:e,i18nT:ze.i18nTComponent(e)}}function tt(){const e=(l,a)=>(a==null?void 0:a[l])??void 0,n=(l,a)=>{if(l.length!==a.length)return!1;const c=new Set([...l,...a]);for(const s of c){const d=l.filter(u=>u===s).length,f=a.filter(u=>u===s).length;if(d!==f)return!1}return!0};return{getPropValue:e,objectsAreEqual:(l,a,c)=>{if(c){if(Object.keys(l).length===Object.keys(a).length)for(const s in l)if(Array.isArray(l[s])&&Array.isArray(a[s])){if(n(l[s],a[s]))continue;return!1}else{if(l[s]===a[s])continue;return!1}else return!1;return!0}try{return JSON.stringify(l)===JSON.stringify(a)}catch{return!1}},sortAlpha:l=>(a,c)=>{let s=a[l]===void 0||a[l]===null?"":a[l],d=c[l]===void 0||c[l]===null?"":c[l];return Array.isArray(a[l])&&(s=a[l][0]),Array.isArray(c[l])&&(d=c[l][0]),s.localeCompare(d)},isValidUuid:l=>l?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(l):!1}}function On(e,n,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:i}=_e(e.axiosRequestConfig),{i18n:{t:l}}=ye(),{debounce:a}=$n(),c=a(async $=>{await S($)},200),s=t.ref(!1),d=t.ref(""),f=t.ref(""),u=t.ref([]),m=t.ref([]),h=t.ref(void 0),y=t.computed(()=>{const $=`${e.apiBaseUrl}${t.unref(n)}`;return e.app==="konnect"?$.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"?$.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""):$}),{isValidUuid:g}=tt(),b=async()=>{try{s.value=!0;const{data:$}=await i.get(`${y.value}?size=${r}`);$!=null&&$.next||(h.value=o.fetchedItemsKey in $?$[o.fetchedItemsKey]:[]),m.value=o.fetchedItemsKey in $?$[o.fetchedItemsKey]:[],u.value=m.value}catch{u.value=[],d.value=l("debouncedFilter.errors.fetch")}finally{s.value=!1}},C=t.ref(""),S=async $=>{var I,j,N;if(C.value!==$){if(C.value=$??"",!$){u.value=m.value;return}if(h.value===void 0)try{if(s.value=!0,d.value="",f.value="",e.app==="konnect"){const E=`${y.value}/${$}`,{data:w}=await i.get(`${E}?size=${r}`);o.fetchedItemsKey in w?u.value=w[o.fetchedItemsKey]:w!=null&&w[o.exactMatchKey??"id"]?u.value=[w]:u.value=[]}else{const E=[];g($)&&o.searchKeys.includes("id")?E.push((async()=>{const{data:k}=await i.get(`${y.value}/${$}`);return[k[o.fetchedItemsKey]??k]})()):E.push(...o.searchKeys.filter(k=>k!=="id").map(async k=>{const{data:x}=await i.get(`${y.value}?${k}=${$}`);return x[o.fetchedItemsKey]}));const w=await Promise.all(E),p=new Set;u.value=[],(I=w==null?void 0:w.forEach)==null||I.call(w,k=>{var x;(x=k==null?void 0:k.forEach)==null||x.call(k,V=>{p.has(V.id)||(p.add(V.id),u.value.push(V))})})}}catch(E){((j=E==null?void 0:E.response)==null?void 0:j.status)===404?f.value=l("debouncedFilter.errors.invalid"):(u.value=[],d.value=l("debouncedFilter.errors.fetch"))}finally{s.value=!1}else s.value=!0,f.value="",u.value=(N=h.value)==null?void 0:N.filter(E=>{var p;let w=!1;for(const k of o.searchKeys){const x=typeof E[k]=="string"?(p=E[k])==null?void 0:p.toLowerCase():E[k];x!=null&&x.includes($.toLowerCase())&&(w=!0)}return w}),(!u.value||!u.value.length)&&(f.value=l("debouncedFilter.errors.invalid")),s.value=!1}};return{loading:s,error:d,validationError:f,results:u,allRecords:h,loadItems:b,debouncedQueryChange:c}}function Ln(e,n){const r=t.unref(n),o=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return o.value.search="",i=>`${o.value.href}/${i}`}function Vn(){const{i18n:{t:e}}=ye();return{getErrorFieldsFromError:o=>{var a,c,s;if(!o)return{messages:[e("errors.unexpected")],fields:[]};if(((a=o==null?void 0:o.response)==null?void 0:a.status)===401)return{messages:[],fields:[]};let i=[e("errors.unexpected")];const l=[];if((c=o==null?void 0:o.response)!=null&&c.data){if((s=o.response.data.details)!=null&&s.length)return i=[],o.response.data.details.forEach(d=>{let f=e("errors.unexpected");d.messages&&Array.isArray(d.messages)&&d.messages.length&&(f=d.messages.join(", ")),d.field&&l.push({field:d.field,message:f}),i.push(`${d.field??""} ${f}`)}),{messages:i,fields:l};if(o.response.data.message&&Array.isArray(o.response.data.message))return i=[],o.response.data.message.forEach(d=>{if(d!=null&&d.constraints){const f=Object.values(d.constraints).join(", ");i.push(f),d.property&&l.push({field:d.property,message:f})}else d!=null&&d.property&&(d!=null&&d.message)?(l.push({field:d.property,message:d.message}),i.push(d.message)):i.push(d)}),{messages:i,fields:l};if(typeof o.response.data.message=="string"||typeof o.response.data=="string")return{messages:[o.response.data.message],fields:[]};if(typeof o.response.data=="object")return i=[],Object.keys(o.response.data).forEach(d=>{l.push({field:d,message:o.response.data[d]}),i.push(o.response.data[d])}),{messages:i,fields:l}}return{messages:[o.message||e("errors.unexpected")],fields:[]}},getMessageFromError:o=>{var i,l,a,c;if(!o)return e("errors.unexpected");if(((i=o==null?void 0:o.response)==null?void 0:i.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((l=o==null?void 0:o.response)!=null&&l.data){if(o.response.data.detail)return o.response.data.detail;if((a=o.response.data.details)!=null&&a.length)return o.response.data.details.map(s=>{let d=e("errors.unexpected");return s.messages&&typeof s.messages=="object"&&s.messages.length&&(d=s.messages.join(", ")),s.field?`${s.field} - ${d}`:d}).join("; ");if(o.response.data.message){const{message:s}=o.response.data;return Array.isArray(s)?(c=s[0])!=null&&c.constraints?Object.values(s[0].constraints)[0]:s[0]:s}if(typeof o.response.data=="string")return o.response.data;if(typeof o.response.data=="object")return Object.keys(o.response.data).map(s=>`${s} ${o.response.data[s]}`).join(", ")}return o.message||e("errors.unexpected")}}}function Dn(e){const n=window.location.origin,r=n.endsWith("/")?n:`${n}/`;try{const o=e.join("/"),i=`${r}${o}`,l=e.some(c=>c.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(i)&&!l&&new URL(i))return`${r}${o}`;throw new Error("Invalid url")}catch(o){return console.warn("Failed to build valid URL:",o),""}}function nt(e,n){const r=t.computed(()=>{const i=t.toValue(e);return i.app==="konnect"||!!i.isExactMatch}),o=t.computed(()=>{const i=t.toValue(n);return i.startsWith("/")?new URL(`${window.location.origin}${i}`):new URL(i)});return i=>{const{page:l,pageSize:a,offset:c,sortColumnKey:s,sortColumnOrder:d,query:f}=i;try{let u=new URL(o.value.href);return r.value&&f?(u.search="",u=t.toValue(e).isExactMatch?new URL(`${u.href}/${f}`):new URL(`${u.href}?filter[name][contains]=${f}`)):(r.value||new URLSearchParams(f).forEach((m,h)=>{u.searchParams.append(h,m)}),s&&u.searchParams.append("sort_by",s),d==="desc"&&u.searchParams.append("sort_desc","1"),u.searchParams.append("size",String(a))),c&&l!==1&&u.searchParams.append("offset",String(c)),u.href}catch(u){return console.error("RouteList(fetcher)",u),t.toValue(n)}}}const rt=new Map;function Rn(e,n,r){const o=t.ref(!0),i=t.toValue(e),{axiosInstance:l}=_e(i.axiosRequestConfig),a=nt(e,n),c=t.ref({status:Z.Idle}),s=async u=>{var h;const m=t.toValue(r)||"data";try{c.value=o.value?{status:Z.InitialLoad}:{status:Z.Loading},o.value=!1;let y=a(u);y.includes("filter[name]")&&(y=`${y}&page[size]=${u.pageSize}&page[number]=${u.page}`);const g=await l.get(y);if(g.status>=400)throw g;const b=g.data,C=m&&m.replace(/[^\w-_]/gi,"");let S;b[C]?S=Array.isArray(b[C])?b[C]:[b[C]]:Array.isArray(b)?S=b:S=Object.keys(b).length?[b]:[];const $={data:S,total:S.length,...b.offset?{pagination:{offset:b.offset}}:null};return $.data.length===0&&!u.query?c.value={status:Z.NoRecords,response:$}:c.value={status:Z.Idle,response:$},$}catch(y){const g={data:[],total:0};return u.query&&(((h=y.response)==null?void 0:h.status)===404||y.status===404)?(c.value={status:Z.NoResults,response:g,error:y.response?y:{response:y}},g):(c.value={status:Z.Error,response:g,error:y.response?y:{response:y}},g)}},d=i.cacheIdentifier,f=ot(d);return{fetcher:s,fetcherState:c,fetcherCacheKey:f}}function ot(e){if(e){let n=rt.get(e);return n||(n=t.ref(1),rt.set(e,n)),n}return t.ref(1)}function Kn(){const e=(o,i="_")=>o?o.split(i).map(l=>l.toLowerCase()==="id"?l.toUpperCase():l.charAt(0).toUpperCase()+l.substring(1)).join(" "):"",n=/(?:^|[\s-:'"])\w/g;return{capitalize:o=>o?o.replace(n,i=>i.toUpperCase()):"",convertKeyToTitle:e}}const it=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,at=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const n=e.match(it);if(!n)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return n.shift(),n},lt=e=>e==="*"||e==="x"||e==="X",ct=e=>{const n=parseInt(e,10);return isNaN(n)?e:n},Mn=(e,n)=>typeof e!=typeof n?[String(e),String(n)]:[e,n],vn=(e,n)=>{if(lt(e)||lt(n))return 0;const[r,o]=Mn(ct(e),ct(n));return r>o?1:r<o?-1:0},st=(e,n)=>{for(let r=0;r<Math.max(e.length,n.length);r++){const o=vn(e[r]||"0",n[r]||"0");if(o!==0)return o}return 0},jn=(e,n)=>{const r=at(e),o=at(n),i=r.pop(),l=o.pop(),a=st(r,o);return a!==0?a:i&&l?st(i.split("."),l.split(".")):i||l?i?-1:1:0},dt=(e,n,r)=>{Pn(r);const o=jn(e,n);return ut[r].includes(o)},ut={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},ft=Object.keys(ut),Pn=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(ft.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${ft.join("|")}`)},Un=e=>typeof e=="string"&&/^[v\d]/.test(e)&&it.test(e);function qn(e){const{gatewayInfo:n,supportedRange:r}=e;if(!n)return!0;const{edition:o,version:i}=n;if(!Un(i))return console.error("Invalid version"),!1;const l=r[o];if(!l)return!1;const[a,c]=l;return!(a&&dt(i,a,"<")||c&&dt(i,c,">"))}function Hn(e){const n=t.ref(0),r=t.ref(0),o=t.ref(!1);return t.watch(e,l=>{l&&!o.value&&(n.value=l.offsetWidth,r.value=l.scrollWidth,o.value=!0)}),{isTruncated:t.computed(()=>n.value<r.value)}}function Yn(){const{i18n:{t:e}}=ye();return{utf8Name:r=>/^[\p{N}\p{L}.\-_~]*$/u.test(r)?"":e("validationErrors.utf8Name")}}const Ee=Symbol("schema"),Wn=e=>{t.provide(Ee,e)},zn=e=>{var i,l;const n=t.inject(Ee,void 0),r=(l=(i=n==null?void 0:n.value)==null?void 0:i.fields)==null?void 0:l.find(a=>Object.keys(a)[0]===e),o=t.toRef(r==null?void 0:r[e]);return t.provide(Ee,o),o};function Jn(e){let n="";const r=t.ref(!1),o=t.ref(null),i=t.computed(()=>{let a;return r.value?a=!0:o.value?a=o.value.hasData||e&&t.toValue(e):a=!1,!a});return{tableState:o,hasRecords:r,hideTableToolbar:i,handleStateChange:a=>{a.hasData?r.value=!0:a.state==="success"&&!a.hasData&&(!e||!n)&&(r.value=!1),e&&(n=t.toValue(e)),o.value={...a}}}}const D={useAxios:_e,useDebouncedFilter:On,useDeleteUrlBuilder:Ln,useErrors:Vn,useExternalLinkCreator:Dn,useFetcher:Rn,useFetcherCacheKey:ot,useFetchUrlBuilder:nt,useHelpers:tt,useStringHelpers:Kn,useI18n:ye,useGatewayFeatureSupported:qn,useTruncationDetector:Hn,useValidators:Yn,useSchemaProvider:Wn,useSubSchema:zn,useTableState:Jn},Gn={key:0,class:"config-card-fieldset-title"},Qn=t.defineComponent({__name:"JsonCardItem",props:{item:{type:Object,required:!0},index:{type:Number,default:-1},isArrayItem:{type:Boolean,default:!1}},setup(e){const n=e,{i18n:{t:r}}=D.useI18n(),{convertKeyToTitle:o}=D.useStringHelpers(),i=t.computed(()=>n.item.key??"json-array-item"),l=t.computed(()=>n.item.value??n.item),a=t.computed(()=>{const s=JSON.parse(JSON.stringify(l.value));return n.isArrayItem&&delete s.name,s}),c=t.computed(()=>{var s;return n.isArrayItem?(s=l.value)!=null&&s.name?o(l.value.name,"_"):r("baseConfigCard.general.entryTitle",{index:n.index}):""});return(s,d)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isArrayItem?"fieldset":"div"),{class:t.normalizeClass(e.isArrayItem?"config-card-fieldset":"config-card-json-item")},{default:t.withCtx(()=>[e.isArrayItem?(t.openBlock(),t.createElementBlock("legend",Gn,[t.createElementVNode("b",null,t.toDisplayString(c.value),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(a.value),(f,u)=>(t.openBlock(),t.createBlock(Te,{key:`${i.value}-property-${u}`,item:{key:f,label:t.unref(o)(f),value:a.value[f]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),W=(e,n)=>{const r=e.__vccOpts||e;for(const[o,i]of n)r[o]=i;return r},pt=W(Qn,[["__scopeId","data-v-dc1e39a1"]]),mt=W(t.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t:n}}=D.useI18n();return(r,o)=>{const i=t.resolveComponent("KButton");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(i,{appearance:"tertiary",class:"navigation-button",onClick:o[0]||(o[0]=l=>r.$emit("navigation-click",e.item))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.item.value||t.unref(n)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),[["__scopeId","data-v-2feb8c2e"]]),Zn=t.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t:n}}=D.useI18n();return(r,o)=>{const i=t.resolveComponent("KBadge");return t.openBlock(),t.createBlock(i,{appearance:e.status?"success":"neutral"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.status?t.unref(n)("baseConfigCard.statusBadge.enabledLabel"):t.unref(n)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),Xn="#0044f4",er="#e0e4ea",tr="#afb7c5",nr="#0044f4",rr="1px",or="16px",ir="20px",ar=Je.createdBundledHighlighter({langs:{json:()=>import("@shikijs/langs/json"),yaml:()=>import("@shikijs/langs/yaml"),terraform:()=>import("@shikijs/langs/terraform"),shellscript:()=>import("@shikijs/langs/shellscript"),bash:()=>import("@shikijs/langs/shellscript"),sh:()=>import("@shikijs/langs/shellscript"),shell:()=>import("@shikijs/langs/shellscript"),zsh:()=>import("@shikijs/langs/shellscript"),powershell:()=>import("@shikijs/langs/powershell")},themes:{"catppuccin-mocha":()=>import("@shikijs/themes/catppuccin-mocha"),"catppuccin-latte":()=>import("@shikijs/themes/catppuccin-latte")},engine:()=>_n.createJavaScriptRegexEngine()}),{codeToHtml:lr}=Je.createSingletonShorthands(ar);async function ie({codeElement:e,code:n,language:r,theme:o}){e.innerHTML=await lr(n,{lang:r,theme:o==="dark"?"catppuccin-mocha":"catppuccin-latte",structure:"inline"})}const cr={class:"config-card-details-row"},sr=["data-testid"],dr=["data-testid"],ur=["data-testid"],fr=["data-testid"],pr={key:1},mr=["data-testid"],hr=["data-testid"],gr=["data-testid"],yr=["data-testid"],kr={name:"ConfigCardItem",components:{JsonCardItem:pt,StatusBadge:Zn,InternalLinkItem:mt}},br=t.defineComponent({...kr,props:{item:{type:Object,required:!0},slim:{type:Boolean,required:!1,default:!1},truncated:{type:Boolean,required:!1,default:!1}},emits:["navigation-click"],setup(e,{emit:n}){t.useCssVars(I=>({v0b2cd434:m.value?"none":`solid ${t.unref(rr)} ${t.unref(er)}`,bb02ad32:u.value&&d.value?"block":"flex",d92de3ce:u.value&&d.value?"100%":r.slim?"50%":"25%",d9295818:u.value&&d.value?"100%":r.slim?"50%":"75%"}));const r=e,o=n,i=t.useId(),l=t.useSlots(),{i18n:{t:a,formatIsoDate:c,formatUnixTimeStamp:s}}=D.useI18n(),d=t.computed(()=>r.item.value!==void 0&&r.item.value!==null&&r.item.value!==""),f=t.computed(()=>!!(r.item.tooltip||l["label-tooltip"])),u=t.computed(()=>r.item.type===L.Json||r.item.type===L.JsonArray),m=t.computed(()=>r.item.type===L.JsonArray),h=D.useSubSchema(r.item.key),y=t.computed(()=>{var I;return r.item.type?r.item.type:(I=h==null?void 0:h.value)!=null&&I.encrypted?L.Redacted:void 0}),g=t.computed(()=>{switch(y.value){case L.ID:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid`,"copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case L.IdArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{"copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label})}};case L.Redacted:return{tag:"KCopy",attrs:{"data-testid":`${r.item.key}-copy-uuid-redacted`,format:"redacted","copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label}),text:r.item.value}};case L.RedactedArray:return{tag:"div",additionalComponent:"KCopy",childAttrs:{format:"redacted","copy-tooltip":a("baseConfigCard.copy.tooltip",{label:r.item.label})}};case L.Date:return{tag:"div",attrs:{"data-testid":`${r.item.key}-date`},text:isNaN(Number(r.item.value))?c(r.item.value):s(r.item.value)};case L.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${r.item.key}-badge-status`,status:r.item.value}};case L.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case L.CopyBadge:return{tag:"div",additionalComponent:"KCopy",childAttrs:{badge:!0,truncate:!0,truncationLimit:"auto",text:r.item.value}};case L.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case L.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${r.item.key}-internal-link`,item:r.item,onNavigationClick:I=>{o("navigation-click",I)}}};case L.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${r.item.key}-external-link`,href:r.item.value},text:r.item.value};case L.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-content`,item:r.item}};case L.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-array-content`,item:r.item}};default:return r.item.value!=null&&typeof r.item.value=="object"?{tag:"KCodeBlock",attrs:{"data-testid":`${r.item.key}-json-code`,id:`json-code-${i}`,language:"json",code:JSON.stringify(r.item.value,null," "),maxHeight:"480px",showLineNumbers:!1,onCodeBlockRender:ie}}:{tag:"div",attrs:{"data-testid":`${r.item.key}-plain-text`},text:r.item.value}}}),b=t.ref(),C=t.ref(),{isTruncated:S}=D.useTruncationDetector(b),{isTruncated:$}=D.useTruncationDetector(C);return(I,j)=>{const N=t.resolveComponent("KTooltip"),E=t.resolveComponent("KLabel"),w=t.resolveComponent("KBadge"),p=t.resolveComponent("KCopy");return t.openBlock(),t.createElementBlock("div",cr,[t.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[t.renderSlot(I.$slots,"label",{item:e.item},()=>[t.createVNode(E,{"tooltip-attributes":{maxWidth:"500px"}},t.createSlots({default:t.withCtx(()=>[t.createVNode(N,{text:t.unref(S)?e.item.label:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"labelContent",ref:b,class:"label-content"},t.toDisplayString(e.item.label),513)]),_:1},8,["text"])]),_:2},[f.value?{name:"tooltip",fn:t.withCtx(()=>[t.createElementVNode("div",{"data-testid":`${e.item.key}-label-tooltip`},[t.renderSlot(I.$slots,"label-tooltip",{},()=>[t.createTextVNode(t.toDisplayString(e.item.tooltip),1)],!0)],8,dr)]),key:"0"}:void 0]),1024)],!0)],8,sr),t.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[t.renderSlot(I.$slots,e.item.key,{rowValue:e.item.value},()=>[d.value?(t.openBlock(),t.createElementBlock("div",pr,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(g.value.tag),t.normalizeProps(t.guardReactiveProps(g.value.attrs)),{default:t.withCtx(()=>[g.value.additionalComponent==="KBadge"?(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-badge-tags`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(k,x)=>(t.openBlock(),t.createBlock(w,{key:`${e.item.key}-badge-tag-${x}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${x}`,tooltip:k,"truncation-tooltip":""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(k),1)]),_:2},1032,["data-testid","tooltip"]))),128))],8,mr)):g.value.additionalComponent==="KCopy"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"copy-uuid-array","data-testid":`${e.item.key}-copy-uuid-array`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(k,x)=>(t.openBlock(),t.createBlock(p,t.mergeProps({ref_for:!0},g.value.childAttrs,{key:`${e.item.key}-copy-uuid-${x}`,"data-testid":`${e.item.key}-copy-uuid-${x}`,text:k}),null,16,["data-testid","text"]))),128))],8,hr)):g.value.additionalComponent==="KMethodBadge"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"method-badge-array","data-testid":`${e.item.key}-badge-methods`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(k,x)=>(t.openBlock(),t.createBlock(w,{key:`${e.item.key}-badge-method-${x}`,appearance:Object.values(t.unref(oe.BadgeMethodAppearances)).includes(k.toLowerCase())?k.toLowerCase():"custom",class:"config-badge","data-testid":`${e.item.key}-badge-method-${x}`},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(k),1)]),_:2},1032,["appearance","data-testid"]))),128))],8,gr)):g.value.additionalComponent==="JsonCardItem"?(t.openBlock(),t.createElementBlock("div",{key:3,"data-testid":`${r.item.key}-json-array-content`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.value,(k,x)=>(t.openBlock(),t.createBlock(pt,{key:`json-array-item-${x}`,index:x,"is-array-item":"",item:k},null,8,["index","item"]))),128))],8,yr)):(t.openBlock(),t.createBlock(N,{key:4,text:t.unref($)?e.item.value:""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:C,class:t.normalizeClass(["attrs-data-text",{truncated:e.truncated}])},t.toDisplayString(g.value.text),3)]),_:1},8,["text"]))]),_:1},16))])):(t.openBlock(),t.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-no-value`}," – ",8,fr))],!0)],8,ur)])}}}),Te=W(br,[["__scopeId","data-v-40ffb9f1"]]),Cr={class:"json-config config-card-code-block"},xr={key:0,class:"json-endpoint"},$e=t.defineComponent({__name:"JsonCodeBlock",props:{config:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""},entityRecord:{type:Object,required:!0},requestMethod:{type:String,required:!1,default:""}},setup(e){t.useCssVars(i=>({v58418ff6:`${o.value}ch`}));const n=e,r=t.computed(()=>n.entityRecord),o=t.computed(()=>{var a;if(!n.fetcherUrl)return 0;const i=(a=n.fetcherUrl)==null?void 0:a.split("/");return i.length<2?0:41+(n.requestMethod==="post"?i[i.length-1]:i[i.length-2]).length});return(i,l)=>{const a=t.resolveComponent("KBadge"),c=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Cr,[n.fetcherUrl?(t.openBlock(),t.createElementBlock("div",xr,[t.createVNode(a,{appearance:n.requestMethod},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.requestMethod),1)]),_:1},8,["appearance"]),t.createVNode(c,{id:"json-endpoint-codeblock",code:n.fetcherUrl,language:"plaintext","single-line":"",theme:"dark"},null,8,["code"])])):t.createCommentVNode("",!0),n.entityRecord?(t.openBlock(),t.createBlock(c,{key:1,id:"json-codeblock",class:t.normalizeClass({"json-content":n.fetcherUrl}),code:JSON.stringify(r.value,null,2),language:"json",theme:"dark",onCodeBlockRender:t.unref(ie)},null,8,["class","code","onCodeBlockRender"])):t.createCommentVNode("",!0)])}}});/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function ht(e){return typeof e>"u"||e===null}function wr(e){return typeof e=="object"&&e!==null}function Sr(e){return Array.isArray(e)?e:ht(e)?[]:[e]}function Ar(e,n){var r,o,i,l;if(n)for(l=Object.keys(n),r=0,o=l.length;r<o;r+=1)i=l[r],e[i]=n[i];return e}function Br(e,n){var r="",o;for(o=0;o<n;o+=1)r+=e;return r}function _r(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Er=ht,Tr=wr,$r=Sr,Nr=Br,Ir=_r,Fr=Ar,v={isNothing:Er,isObject:Tr,toArray:$r,repeat:Nr,isNegativeZero:Ir,extend:Fr};function gt(e,n){var r="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(r+=`
2
2
 
3
3
  `+e.mark.snippet),o+" "+r):o}function fe(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=gt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}fe.prototype=Object.create(Error.prototype),fe.prototype.constructor=fe,fe.prototype.toString=function(n){return this.name+": "+gt(this,n)};var z=fe;function Ne(e,n,r,o,i){var l="",a="",c=Math.floor(i/2)-1;return o-n>c&&(l=" ... ",n=o-c+l.length),r-o>c&&(a=" ...",r=o+c-a.length),{str:l+e.slice(n,r).replace(/\t/g,"→")+a,pos:o-n+l.length}}function Ie(e,n){return v.repeat(" ",n-e.length)+e}function Or(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var r=/\r?\n|\r|\0/g,o=[0],i=[],l,a=-1;l=r.exec(e.buffer);)i.push(l.index),o.push(l.index+l[0].length),e.position<=l.index&&a<0&&(a=o.length-2);a<0&&(a=o.length-1);var c="",s,d,f=Math.min(e.line+n.linesAfter,i.length).toString().length,u=n.maxLength-(n.indent+f+3);for(s=1;s<=n.linesBefore&&!(a-s<0);s++)d=Ne(e.buffer,o[a-s],i[a-s],e.position-(o[a]-o[a-s]),u),c=v.repeat(" ",n.indent)+Ie((e.line-s+1).toString(),f)+" | "+d.str+`
4
4
  `+c;for(d=Ne(e.buffer,o[a],i[a],e.position,u),c+=v.repeat(" ",n.indent)+Ie((e.line+1).toString(),f)+" | "+d.str+`
@@ -56,5 +56,5 @@
56
56
  ${c.value}
57
57
  ' | ${f}`:`@'
58
58
  ${c.value}
59
- '@ | ${f}`});return(f,u)=>{const m=t.resolveComponent("KSelect"),h=t.resolveComponent("KBadge"),y=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Zi,[t.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=g=>l.value=g),items:i},{"item-template":t.withCtx(({item:g})=>[g.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(G.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(G.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(g.label),1)]),"selected-item-template":t.withCtx(({item:g})=>[g.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(G.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(G.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(g.label),1)]),_:1},8,["modelValue"]),t.createVNode(t.unref(o),{"data-testid":`deck-hint-${e.app}`,keypath:`deckCodeBlock.hint.${e.app}`,tag:"p"},t.createSlots({link:t.withCtx(()=>[t.createVNode(t.unref(oe.KExternalLink),{href:e.app==="konnect"?"https://developer.konghq.com/deck/get-started/":"https://developer.konghq.com/deck/gateway/configuration/"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("deckCodeBlock.documentation")),1)]),_:1},8,["href"])]),_:2},[e.app==="konnect"?{name:"token",fn:t.withCtx(()=>[t.createVNode(h,null,{default:t.withCtx(()=>[...u[1]||(u[1]=[t.createTextVNode("DECK_KONNECT_TOKEN",-1)])]),_:1})]),key:"0"}:void 0]),1032,["data-testid","keypath"]),e.app==="konnect"?(t.openBlock(),t.createBlock(y,{key:0,id:"deck-env-codeblock",code:s.value,language:l.value,"single-line":"",theme:"dark",onCodeBlockRender:t.unref(ie)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0),n.entityRecord?(t.openBlock(),t.createBlock(y,{key:1,id:"deck-codeblock",code:d.value,language:l.value,theme:"dark",onCodeBlockRender:t.unref(ie)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-04c956bc"]]),Xi=["novalidate"],ea=W(t.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string")},editId:{type:String,required:!1,default:""},entityType:{type:String,required:!0,validator:e=>ue.includes(e)},subEntityType:{type:String,required:!1,default:""},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1},wrapperComponent:{type:String,default:"KCard"},actionTeleportTarget:{type:String,default:void 0},hideActions:{type:Boolean,default:!1},slidoutTopOffset:{type:Number,default:60},alignActionButtonToLeft:{type:Boolean,default:!1},saveButtonText:{type:String,default:void 0},cancelButtonText:{type:String,default:void 0}},emits:["loading","fetch:success","fetch:error","submit","cancel","codeBlockTabChange"],setup(e,{expose:n,emit:r}){var E;const o=r,i=e,l=En.useRouter(),{i18n:{t:a}}=D.useI18n(),{getMessageFromError:c}=D.useErrors(),{axiosInstance:s}=D.useAxios((E=i.config)==null?void 0:E.axiosRequestConfig),d=t.ref(!1),f=t.computed(()=>!!i.editId),u=t.ref(!1),m=t.ref(""),h=t.computed(()=>i.canSubmit===!1||i.isReadonly),y=t.ref(!1),g=t.computed(()=>{var p,k;let w=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?w=w.replace(/{controlPlaneId}/gi,((p=i.config)==null?void 0:p.controlPlaneId)||""):i.config.app==="kongManager"&&(w=w.replace(/\/{workspace}/gi,(k=i.config)!=null&&k.workspace?`/${i.config.workspace}`:"")),i.editId?(w=w.replace(/{id}/gi,i.editId),w):(w=w.replace(/\/{id}/gi,""),w)}),b=()=>{y.value=!y.value},C=()=>{i.config.cancelRoute?l.push(i.config.cancelRoute):S()},S=()=>{o("cancel")},$=()=>{h.value||o("submit")},I=t.ref([{title:a("baseForm.configuration.json"),hash:"#json"},{title:a("baseForm.configuration.yaml"),hash:"#yaml"}]);i.config.app==="konnect"&&i.entityType!==ne.Other&&I.value.splice(1,0,{title:a("baseForm.configuration.terraform"),hash:"#terraform"});const j=Ze.includes(i.entityType);return(i.config.app==="kongManager"||i.config.enableDeckTab)&&j&&I.value.push({title:a("baseForm.configuration.deck"),hash:"#deck"}),t.watch(()=>d.value,w=>{o("loading",w)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{u.value=!1,d.value=!0;const{data:w}=await s.get(g.value);o("fetch:success",w)}catch(w){const p=c(w);m.value=p.startsWith("code")?a("baseForm.errors.edit"):p,u.value=!0,o("fetch:error",w)}finally{d.value=!1}}),n({viewConfig:b,formCancel:S,formSubmit:$}),(w,p)=>{const k=t.resolveComponent("KSkeleton"),x=t.resolveComponent("KEmptyState"),V=t.resolveComponent("KAlert"),R=t.resolveComponent("KButton"),_=t.resolveComponent("KTabs"),T=t.resolveComponent("KSlideout");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.wrapperComponent),{class:"kong-ui-entity-base-form"},{default:t.withCtx(()=>[d.value?(t.openBlock(),t.createBlock(k,{key:0,type:"form"})):u.value?(t.openBlock(),t.createBlock(x,{key:1,"action-button-text":t.unref(a)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:C},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(m.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(S,["prevent"]),onSubmit:t.withModifiers($,["prevent"])},[t.renderSlot(w.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(V,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),e.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.Teleport,{key:1,disabled:!e.actionTeleportTarget,to:e.actionTeleportTarget},[t.createElementVNode("div",{class:t.normalizeClass(["form-actions",{"form-actions-reverted":e.alignActionButtonToLeft}]),"data-testid":"form-actions"},[t.renderSlot(w.$slots,"form-actions",{},()=>[t.createVNode(R,{appearance:"tertiary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-view-configuration`,onClick:p[0]||(p[0]=O=>b())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode(R,{appearance:"secondary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-cancel`,disabled:e.isReadonly,type:"reset",onClick:p[1]||(p[1]=O=>!!e.actionTeleportTarget&&S())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelButtonText??t.unref(a)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),t.createVNode(R,{appearance:"primary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-submit`,disabled:h.value,type:"submit",onClick:p[2]||(p[2]=O=>!!e.actionTeleportTarget&&$())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.saveButtonText??t.unref(a)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)],2)],8,["disabled","to"]))],40,Xi)),t.createVNode(T,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":e.slidoutTopOffset,title:t.unref(a)("baseForm.configuration.title"),visible:y.value,onClose:p[4]||(p[4]=O=>b())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)("baseForm.configuration.message")),1),t.createVNode(_,{"data-testid":"form-view-configuration-slideout-tabs",tabs:I.value,onChange:p[3]||(p[3]=O=>o("codeBlockTabChange",O.replace("#","")))},{json:t.withCtx(()=>[t.createVNode($e,{config:e.config,"entity-record":i.formFields,"fetcher-url":g.value,"request-method":i.editId?"put":"post"},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(qe,{"entity-record":i.formFields},null,8,["entity-record"])]),terraform:t.withCtx(()=>[t.createVNode(He,{"entity-record":i.formFields,"entity-type":e.entityType,"sub-entity-type":e.subEntityType},null,8,["entity-record","entity-type","sub-entity-type"])]),deck:t.withCtx(()=>[t.createVNode(xn,{app:e.config.app,"control-plane-name":e.config.app==="konnect"?e.config.controlPlaneName:void 0,"entity-record":i.formFields,"entity-type":e.entityType,"geo-api-server-url":e.config.app==="konnect"?e.config.geoApiServerUrl:void 0,"kong-admin-api-url":e.config.app==="kongManager"?e.config.apiBaseUrl:void 0,workspace:e.config.app==="kongManager"?e.config.workspace:void 0},null,8,["app","control-plane-name","entity-record","entity-type","geo-api-server-url","kong-admin-api-url","workspace"])]),_:1},8,["tabs"])]),_:1},8,["offset-top","title","visible"])]),_:3})}}}),[["__scopeId","data-v-1db7c290"]]),ta=["data-truncate"],na=W(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(e){const n=e,r=t.computed(()=>{var b;return((b=n.rowEl)==null?void 0:b.querySelector(`[data-testid="${n.keyName}"]`))||null}),o=t.computed(()=>{var b;return((b=r.value)==null?void 0:b.querySelector('[data-truncate="true"]'))||null}),i=t.computed(()=>{var C,S;const b=(C=n.rowEl)==null?void 0:C.querySelectorAll("td");return b?((S=b[0])==null?void 0:S.getAttribute("data-testid"))===n.keyName:!0}),l=t.computed(()=>i.value||n.tooltip);let a;const c=()=>{a&&(a.disconnect(),a=void 0)},s=()=>{var C,S,$;let b=((C=r.value)==null?void 0:C.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const I=window.getComputedStyle(r.value);b-=(parseFloat(I.paddingLeft)||0)+(parseFloat(I.paddingRight)||0)}f.value=((S=o.value)==null?void 0:S.getBoundingClientRect().width)||0,u.value=b,m.value=(($=d.value)==null?void 0:$.innerText)||""},d=t.ref({}),f=t.ref(0),u=t.ref(0),m=t.ref(""),h=t.computed(()=>[o.value,r.value]),y=t.watch(h,b=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(C=>{window.requestAnimationFrame(()=>{!Array.isArray(C)||!C.length||s()})});for(const C of b)C&&a.observe(C)}},{immediate:!0,flush:"post",deep:!0}),g=t.computed(()=>l.value?f.value>u.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{y()}),(b,C)=>{const S=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:d,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(S,{"max-width":"300",placement:"bottom-start",text:g.value?m.value:""},{default:t.withCtx(()=>[t.renderSlot(b.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,ta)):t.renderSlot(b.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-a3a65cac"]]),ra={class:"toolbar-container"},oa={key:0,class:"toolbar-button-container"},ia={key:0,class:"hidden"},aa=W(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},rowKey:{type:[String,Function],default:"id"},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:null},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},paginationAttributes:{type:Object,default:()=>({})},hidePaginationWhenOptional:{type:Boolean,default:!0},disableSorting:{type:Boolean,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:""},defaultTablePreferences:{type:Object,default:null,required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:void 0},disablePaginationPageJump:{type:Boolean,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `disablePaginationPageJump` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),typeof e=="boolean")},paginationType:{type:String,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `paginationType` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),["default","offset"].includes(e))}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked","state"],setup(e,{emit:n}){const r=e,o=n,{i18n:{t:i}}=D.useI18n(),l=t.computed(()=>{var p,k;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(p=r.errorMessage)==null?void 0:p.title,message:(k=r.errorMessage)==null?void 0:k.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=t.computed(()=>{const p=[];return Object.keys(r.tableHeaders).forEach(x=>{const V=r.tableHeaders[x];p.push({label:V.label??x,key:x,sortable:V.sortable??!1,hidable:V.hidable??!0})}),r.enableEntityActions&&p.push({key:"actions",hideLabel:!0}),p}),s=p=>({"data-rowid":p.id,"data-testid":p.name,...r.rowAttributes(p)}),d=t.ref({}),f=p=>{var k;return(k=d.value)==null?void 0:k.$el.querySelector(`[data-rowid="${p.id}"]`)},u=p=>{const k={"data-testid":p.headerKey,...r.cellAttributes(p)};return p.colIndex===0&&(k.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),k},m=p=>{S(p),o("state",p)},h=()=>{o("empty-state-cta-clicked"),y()},y=()=>{o("clear-search-input")},g=t.computed(()=>r.disableRowClick?void 0:(p,k)=>{o("click:row",k)}),b=p=>{o("sort",p)},{hideTableToolbar:C,handleStateChange:S}=D.useTableState(()=>r.query),{setTablePreferences:$,getTablePreferences:I}=In(),j=t.ref(I(a.value,r.defaultTablePreferences)),N=t.computed(()=>{const p=I(a.value);return{...r.initialFetcherParams,...p}}),E=p=>{j.value=p,c.value.forEach(k=>{!("hidable"in k)||!j.value.columnVisibility||k.hidable===!1&&(j.value.columnVisibility[k.key]=!0)}),a.value&&$(a.value,p)},w=t.computed(()=>({disablePageJump:r.disablePaginationPageJump,offset:r.paginationType==="offset",...r.paginationAttributes}));return(p,k)=>{const x=t.resolveComponent("KTableData"),V=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(V,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(x,{ref_key:"tableRefs",ref:d,"cache-identifier":a.value,"cell-attrs":u,"client-sort":e.enableClientSort,"empty-state-action-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,error:l.value.hasError,"error-state-message":l.value.message,"error-state-title":l.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:c.value,"hide-pagination":e.hidePagination,"hide-pagination-when-optional":e.hidePaginationWhenOptional,"hide-toolbar":e.hideToolbar??t.unref(C),"initial-fetcher-params":N.value,loading:e.isLoading,"pagination-attributes":w.value,"resize-columns":"","row-attrs":s,"row-key":e.rowKey,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":j.value,onEmptyStateActionClick:h,"onRow:click":g.value,onSort:k[0]||(k[0]=R=>b(R)),onState:m,"onUpdate:tablePreferences":E},t.createSlots({toolbar:t.withCtx(()=>[t.createElementVNode("div",ra,[t.renderSlot(p.$slots,"toolbar-filter",{},void 0,!0),p.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",oa,[t.renderSlot(p.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)])]),"action-items":t.withCtx(({row:R})=>[t.renderSlot(p.$slots,"actions",{row:R},void 0,!0)]),_:2},[p.$slots["empty-state"]?{name:"empty-state",fn:t.withCtx(()=>[t.renderSlot(p.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,t.renderList(e.tableHeaders,(R,_)=>({name:_,fn:t.withCtx(({row:T,rowValue:O})=>[t.createVNode(na,{"key-name":String(_),"row-el":f(T),tooltip:R.tooltip},{default:t.withCtx(()=>[t.renderSlot(p.$slots,_,{row:T,rowKey:e.rowKey,rowValue:O},()=>[t.createTextVNode(t.toDisplayString(O),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(G.AddIcon))]),key:"1"}]),1032,["cache-identifier","client-sort","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","hide-pagination","hide-pagination-when-optional","hide-toolbar","initial-fetcher-params","loading","pagination-attributes","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click"]),p.$slots["outside-actions"]&&t.unref(C)?(t.openBlock(),t.createElementBlock("div",ia,[t.renderSlot(p.$slots,"outside-actions",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-44153100"]]),la={key:0,class:"kong-ui-entity-delete-error"},ca={key:1,class:"description"},sa=W(t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=D.useI18n(),o=e,i=n,l=t.computed(()=>o.needConfirm?o.entityName:""),a=()=>{i("cancel")},c=()=>{i("proceed")};return(s,d)=>{const f=t.resolveComponent("KAlert"),u=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(u,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":l.value,title:e.title,visible:e.visible,onCancel:a,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",la,[t.createVNode(f,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:o.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.entityType),1)]),_:2},[o.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(o.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),o.description||s.$slots.description?(t.openBlock(),t.createElementBlock("div",ca,[t.renderSlot(s.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(o.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),[["__scopeId","data-v-4361d622"]]),da={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},ua={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},fa=["fill"],pa={mask:"url(#mask0_180_20349)"},ma=["fill"],wn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${Xn})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",da,[t.createElementVNode("mask",ua,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,fa)]),t.createElementVNode("g",pa,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,ma)])]))}}),ha={key:1,class:"kong-ui-entity-filter"},ga={class:"kong-ui-entity-filter-menu"},ya=["data-testid"],ka=["onClick","onKeydown"],ba={class:"menu-item-indicator"},Ca={class:"menu-item-body"},xa=["for"],wa={class:"menu-item-buttons"},Sa={class:"filter-clear-button-container"},Aa=W(t.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:n}){const{i18n:{t:r}}=D.useI18n(),o=e,i=n,l=t.ref(!1),a=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const N=[];return new URLSearchParams(o.modelValue).forEach((E,w)=>{E!==""&&N.push(w)}),N}),d=t.computed(()=>{const N=o.config.fields;return Object.keys(N).filter(E=>{var w;return(w=N==null?void 0:N[E])==null?void 0:w.searchable}).map(E=>({label:N[E].label||E,value:E,expanded:!1}))});t.watch(()=>o.modelValue,N=>{a.value={},new URLSearchParams(N).forEach((E,w)=>{a.value[w]=E})});const f=()=>{l.value=!l.value},u=N=>{c.value.has(N)?c.value.delete(N):c.value.add(N)},m=N=>{i("update:modelValue",N)},h=()=>{m("")},y=N=>`filter-${N}`,g=N=>{var E,w;return(((w=(E=o.config.schema)==null?void 0:E[N])==null?void 0:w.values)??[]).map(p=>typeof p=="string"?{value:p,label:p}:p)},b=N=>{var E,w;return((w=(E=o.config.schema)==null?void 0:E[N])==null?void 0:w.type)??"text"},C=N=>{a.value={...a.value,[N]:""},$()},S=()=>{a.value={},$(!0)},$=(N=!1)=>{const E=Object.keys(a.value).reduce((w,p)=>(a.value[p]&&(w[p]=`${a.value[p]}`),w),{});N&&(l.value=!1),i("update:modelValue",new URLSearchParams(E).toString())},I=N=>{var E,w;return!!((w=(E=o.config.schema)==null?void 0:E[N])!=null&&w.filterFunction)},j=(N,E)=>{var p;const w=(p=o.config.schema)==null?void 0:p[N];return(w==null?void 0:w.filterFunction)===void 0?!0:w.filterFunction(E)};return(N,E)=>{const w=t.resolveComponent("KInput"),p=t.resolveComponent("KButton"),k=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(w,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":m},{before:t.withCtx(()=>[t.createVNode(wn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(G.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:h},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",ha,[t.createVNode(p,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(wn),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("filter.filterButtonText"))+" "+t.toDisplayString(s.value.length>0?`(${s.value.length})`:""),1)]),_:1}),t.withDirectives(t.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:f},null,512),[[t.vShow,l.value]]),t.withDirectives(t.createElementVNode("div",ga,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,x=>{var V,R;return t.openBlock(),t.createElementBlock("div",{key:x.value,class:"kong-ui-entity-filter-menu-item","data-testid":x.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(x.value)}]),role:"button",tabindex:"0",onClick:_=>u(x.value),onKeydown:t.withKeys(_=>u(x.value),["enter"])},[t.createTextVNode(t.toDisplayString(x.label)+" ",1),t.withDirectives(t.createElementVNode("span",ba,null,512),[[t.vShow,s.value.includes(x.value)]]),t.createVNode(t.unref(G.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(x.value)}]),color:t.unref(tr)},null,8,["class","color"])],42,ka),t.withDirectives(t.createElementVNode("div",Ca,[t.createElementVNode("label",{class:"menu-item-label",for:y(x.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,xa),((R=(V=e.config.schema)==null?void 0:V[x.value])==null?void 0:R.type)==="select"?(t.openBlock(),t.createBlock(k,{key:0,id:y(x.value),modelValue:a.value[x.value],"onUpdate:modelValue":_=>a.value[x.value]=_,"enable-filtering":I(x.value),"filter-function":_=>j(x.value,_),items:g(x.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","enable-filtering","filter-function","items","placeholder"])):(t.openBlock(),t.createBlock(w,{key:1,id:y(x.value),modelValue:a.value[x.value],"onUpdate:modelValue":_=>a.value[x.value]=_,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:b(x.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(x.value)]]),t.withDirectives(t.createElementVNode("div",wa,[t.createVNode(p,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:E[0]||(E[0]=_=>$(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(p,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:_=>C(x.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:1},8,["onClick"])],512),[[t.vShow,c.value.has(x.value)]])],8,ya)}),128)),t.createElementVNode("div",Sa,[t.createVNode(p,{appearance:"tertiary",size:"small",onClick:S},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-084f7978"]]),Ba=t.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18n:{t:r},i18nT:o}=D.useI18n(),i=e,l=n,a=t.ref(!1),c=t.computed(()=>i.action==="enable"?r("toggleModal.enable.title",{entityType:i.entityType}):r("toggleModal.disable.title",{entityType:i.entityType})),s=t.computed(()=>i.action==="enable"?r("toggleModal.enable.confirmText"):r("toggleModal.disable.confirmText")),d=()=>l("cancel"),f=async()=>{if(i.onConfirm){a.value=!0;try{await i.onConfirm(),l("proceed")}catch(u){console.error(u)}finally{a.value=!1}}};return(u,m)=>{const h=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(h,{"action-button-disabled":a.value,"action-button-text":s.value,"data-testid":`${e.entityType}-${e.entityId}-toggle-prompt`,title:c.value,visible:e.visible,onCancel:d,onProceed:f},{default:t.withCtx(()=>[t.createVNode(t.unref(o),{keypath:`toggleModal.${i.action}.message`,scope:"global"},{entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.entityType),1)]),entityName:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(e.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),_a=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),o=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(i,l)=>o.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}}),q=[];for(let e=0;e<256;++e)q.push((e+256).toString(16).slice(1));function Ea(e,n=0){return(q[e[n+0]]+q[e[n+1]]+q[e[n+2]]+q[e[n+3]]+"-"+q[e[n+4]]+q[e[n+5]]+"-"+q[e[n+6]]+q[e[n+7]]+"-"+q[e[n+8]]+q[e[n+9]]+"-"+q[e[n+10]]+q[e[n+11]]+q[e[n+12]]+q[e[n+13]]+q[e[n+14]]+q[e[n+15]]).toLowerCase()}let Ye;const Ta=new Uint8Array(16);function $a(){if(!Ye){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ye=crypto.getRandomValues.bind(crypto)}return Ye(Ta)}const Sn={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Na(e,n,r){var i;if(Sn.randomUUID&&!e)return Sn.randomUUID();e=e||{};const o=e.random??((i=e.rng)==null?void 0:i.call(e))??$a();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Ea(o)}const Ia=["aria-labelledby"],Fa={class:"form-section-wrapper"},Oa={key:1,class:"form-section-description"},La={key:2,class:"form-section-footer"},Va={class:"form-section-content"},Da=W(t.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(e){const n=t.useSlots(),r=Na();return(o,i)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",Fa,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Oa,[t.renderSlot(o.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),t.unref(n).footer?(t.openBlock(),t.createElementBlock("div",La,[t.renderSlot(o.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",Va,[t.renderSlot(o.$slots,"default",{},void 0,!0)])])],10,Ia))}}),[["__scopeId","data-v-b1f74200"]]),Ra={class:"ff-form-section"},Ka={class:"header"},Ma={key:0,class:"step"},va={class:"header-content"},ja={class:"header-title"},Pa={key:0,class:"header-description"},Ua={key:1,class:"header-extra"},qa={class:"content"},Ha=W(t.defineComponent({__name:"EntityFormBlock",props:{step:{},title:{default:""},description:{default:""}},setup(e){const n=t.useSlots();return(r,o)=>(t.openBlock(),t.createElementBlock("div",Ra,[t.createElementVNode("header",Ka,[e.step!=null?(t.openBlock(),t.createElementBlock("div",Ma,t.toDisplayString(e.step),1)):t.createCommentVNode("",!0),t.createElementVNode("div",va,[t.createElementVNode("h2",ja,[t.renderSlot(r.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)]),e.description||n.description?(t.openBlock(),t.createElementBlock("div",Pa,[t.renderSlot(r.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0)]),n.extra?(t.openBlock(),t.createElementBlock("div",Ua,[t.renderSlot(r.$slots,"extra",{},void 0,!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",qa,[t.renderSlot(r.$slots,"default",{},void 0,!0)])]))}}),[["__scopeId","data-v-cb6d2e95"]]),Ya={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Wa={key:0,class:"deleted-entity"},za={key:1},Ja=["onClick"],Ga=W(t.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(e){const n=e,r=t.ref(),{isTruncated:o}=D.useTruncationDetector(r),{i18n:{t:i}}=D.useI18n(),l=i("global.actions.copyId"),a=t.ref(l),c=t.computed(()=>n.entityLinkData.deleted??!1),s=t.computed(()=>{var u;return(u=n.entityLinkData.id)!=null&&u.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),d=t.computed(()=>{var u;return`${(u=s.value)==null?void 0:u.toString().slice(0,5)} (deleted)`}),f=async u=>{await u(s.value||"")&&(a.value=i("global.actions.copyToClipboard"),setTimeout(()=>{a.value=l},1800))};return(u,m)=>{const h=t.resolveComponent("KTooltip"),y=t.resolveComponent("KExternalLink"),g=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Ya,[c.value?(t.openBlock(),t.createElementBlock("div",Wa,t.toDisplayString(d.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(y,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(h,{text:t.unref(o)&&e.entityLinkData.label||""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:r,class:"entity-link-label"},t.toDisplayString(e.entityLinkData.label),513)]),_:1},8,["text"])]),_:1},8,["hide-icon","href","target"])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",za,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(h,{key:a.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:a.value},{default:t.withCtx(()=>[t.createVNode(g,null,{default:t.withCtx(({copyToClipboard:b})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(C=>f(b),["stop"])},[t.createVNode(t.unref(G.CopyIcon),{class:"copy-icon",color:t.unref(nr),"data-testid":"copy-id",size:t.unref(or)},null,8,["color","size"])],8,Ja)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-96efdfa5"]]),Qa={class:"kong-ui-public-entity-empty-state"},Za={class:"entity-empty-state-content"},Xa={key:0,class:"empty-state-image"},el={key:1,class:"entity-empty-state-title"},tl={key:2,class:"entity-empty-state-description"},nl={key:3,class:"entity-empty-state-pricing"},rl={key:0,class:"entity-empty-state-message"},ol={key:1,class:"entity-empty-state-action"},il={key:2,class:"entity-empty-state-card-container"},al={key:0,class:"feature-icon"},ll={class:"card-header"},cl=["title"],sl={key:3,class:"entity-empty-state-bottom-container"},dl=W(t.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:e=>Ae.includes(e)},title:{type:String,default:""},description:{type:String,default:""},pricing:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},actionButtonText:{type:String,default:""},learnMore:{type:Boolean,default:!1},features:{type:Array,default:()=>[]}},emits:["click:create","click:learn-more"],setup(e){const n=e,{i18n:{t:r}}=D.useI18n(),o=t.ref(!1),i=t.computed(()=>o.value&&!!n.actionButtonText),l=t.computed(()=>Ae.includes(n.appearance)?n.appearance:["primary",n.appearance]);return t.onBeforeMount(async()=>{o.value=await n.canCreate()}),t.onMounted(()=>t.warn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
59
+ '@ | ${f}`});return(f,u)=>{const m=t.resolveComponent("KSelect"),h=t.resolveComponent("KBadge"),y=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",Zi,[t.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=g=>l.value=g),items:i},{"item-template":t.withCtx(({item:g})=>[g.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(G.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(G.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(g.label),1)]),"selected-item-template":t.withCtx(({item:g})=>[g.value==="powershell"?(t.openBlock(),t.createBlock(t.unref(G.LanguageShellIcon),{key:0})):(t.openBlock(),t.createBlock(t.unref(G.LanguageBashIcon),{key:1})),t.createTextVNode(" "+t.toDisplayString(g.label),1)]),_:1},8,["modelValue"]),t.createVNode(t.unref(o),{"data-testid":`deck-hint-${e.app}`,keypath:`deckCodeBlock.hint.${e.app}`,tag:"p"},t.createSlots({link:t.withCtx(()=>[t.createVNode(t.unref(oe.KExternalLink),{href:e.app==="konnect"?"https://developer.konghq.com/deck/get-started/":"https://developer.konghq.com/deck/gateway/configuration/"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).t("deckCodeBlock.documentation")),1)]),_:1},8,["href"])]),_:2},[e.app==="konnect"?{name:"token",fn:t.withCtx(()=>[t.createVNode(h,null,{default:t.withCtx(()=>[...u[1]||(u[1]=[t.createTextVNode("DECK_KONNECT_TOKEN",-1)])]),_:1})]),key:"0"}:void 0]),1032,["data-testid","keypath"]),e.app==="konnect"?(t.openBlock(),t.createBlock(y,{key:0,id:"deck-env-codeblock",code:s.value,language:l.value,"single-line":"",theme:"dark",onCodeBlockRender:t.unref(ie)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0),n.entityRecord?(t.openBlock(),t.createBlock(y,{key:1,id:"deck-codeblock",code:d.value,language:l.value,theme:"dark",onCodeBlockRender:t.unref(ie)},null,8,["code","language","onCodeBlockRender"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-04c956bc"]]),Xi=["novalidate"],ea=W(t.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string")},editId:{type:String,required:!1,default:""},entityType:{type:String,required:!0,validator:e=>ue.includes(e)},subEntityType:{type:String,required:!1,default:""},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1},wrapperComponent:{type:String,default:"KCard"},actionTeleportTarget:{type:String,default:void 0},hideActions:{type:Boolean,default:!1},slidoutTopOffset:{type:Number,default:60},alignActionButtonToLeft:{type:Boolean,default:!1},saveButtonText:{type:String,default:void 0},cancelButtonText:{type:String,default:void 0}},emits:["loading","fetch:success","fetch:error","submit","cancel","codeBlockTabChange"],setup(e,{expose:n,emit:r}){var E;const o=r,i=e,l=En.useRouter(),{i18n:{t:a}}=D.useI18n(),{getMessageFromError:c}=D.useErrors(),{axiosInstance:s}=D.useAxios((E=i.config)==null?void 0:E.axiosRequestConfig),d=t.ref(!1),f=t.computed(()=>!!i.editId),u=t.ref(!1),m=t.ref(""),h=t.computed(()=>i.canSubmit===!1||i.isReadonly),y=t.ref(!1),g=t.computed(()=>{var p,k;let w=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?w=w.replace(/{controlPlaneId}/gi,((p=i.config)==null?void 0:p.controlPlaneId)||""):i.config.app==="kongManager"&&(w=w.replace(/\/{workspace}/gi,(k=i.config)!=null&&k.workspace?`/${i.config.workspace}`:"")),i.editId?(w=w.replace(/{id}/gi,i.editId),w):(w=w.replace(/\/{id}/gi,""),w)}),b=()=>{y.value=!y.value},C=()=>{i.config.cancelRoute?l.push(i.config.cancelRoute):S()},S=()=>{o("cancel")},$=()=>{h.value||o("submit")},I=t.ref([{title:a("baseForm.configuration.json"),hash:"#json"},{title:a("baseForm.configuration.yaml"),hash:"#yaml"}]);i.config.app==="konnect"&&i.entityType!==ne.Other&&I.value.splice(1,0,{title:a("baseForm.configuration.terraform"),hash:"#terraform"});const j=Ze.includes(i.entityType);return(i.config.app==="kongManager"||i.config.enableDeckTab)&&j&&I.value.push({title:a("baseForm.configuration.deck"),hash:"#deck"}),t.watch(()=>d.value,w=>{o("loading",w)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{u.value=!1,d.value=!0;const{data:w}=await s.get(g.value);o("fetch:success",w)}catch(w){const p=c(w);m.value=p.startsWith("code")?a("baseForm.errors.edit"):p,u.value=!0,o("fetch:error",w)}finally{d.value=!1}}),n({viewConfig:b,formCancel:S,formSubmit:$}),(w,p)=>{const k=t.resolveComponent("KSkeleton"),x=t.resolveComponent("KEmptyState"),V=t.resolveComponent("KAlert"),R=t.resolveComponent("KButton"),_=t.resolveComponent("KTabs"),T=t.resolveComponent("KSlideout");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.wrapperComponent),{class:"kong-ui-entity-base-form"},{default:t.withCtx(()=>[d.value?(t.openBlock(),t.createBlock(k,{key:0,type:"form"})):u.value?(t.openBlock(),t.createBlock(x,{key:1,"action-button-text":t.unref(a)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:C},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(m.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(S,["prevent"]),onSubmit:t.withModifiers($,["prevent"])},[t.renderSlot(w.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(V,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),e.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.Teleport,{key:1,disabled:!e.actionTeleportTarget,to:e.actionTeleportTarget},[t.createElementVNode("div",{class:t.normalizeClass(["form-actions",{"form-actions-reverted":e.alignActionButtonToLeft}]),"data-testid":"form-actions"},[t.renderSlot(w.$slots,"form-actions",{},()=>[t.createVNode(R,{appearance:"tertiary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-view-configuration`,onClick:p[0]||(p[0]=O=>b())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(y.value?t.unref(a)("baseForm.actions.hideConfiguration"):t.unref(a)("baseForm.actions.viewConfiguration")),1)]),_:1},8,["data-testid"]),t.createVNode(R,{appearance:"secondary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-cancel`,disabled:e.isReadonly,type:"reset",onClick:p[1]||(p[1]=O=>!!e.actionTeleportTarget&&S())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelButtonText??t.unref(a)("baseForm.actions.cancel")),1)]),_:1},8,["data-testid","disabled"]),t.createVNode(R,{appearance:"primary","data-testid":`${e.entityType}-${f.value?"edit":"create"}-form-submit`,disabled:h.value,type:"submit",onClick:p[2]||(p[2]=O=>!!e.actionTeleportTarget&&$())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.saveButtonText??t.unref(a)("baseForm.actions.save")),1)]),_:1},8,["data-testid","disabled"])],!0)],2)],8,["disabled","to"]))],40,Xi)),t.createVNode(T,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":e.slidoutTopOffset,title:t.unref(a)("baseForm.configuration.title"),visible:y.value,onClose:p[4]||(p[4]=O=>b())},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.renderSlot(w.$slots,"configuration-slideout-message",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.configuration.message")),1)],!0)]),t.createVNode(_,{"data-testid":"form-view-configuration-slideout-tabs",tabs:I.value,onChange:p[3]||(p[3]=O=>o("codeBlockTabChange",O.replace("#","")))},{json:t.withCtx(()=>[t.createVNode($e,{config:e.config,"entity-record":i.formFields,"fetcher-url":g.value,"request-method":i.editId?"put":"post"},null,8,["config","entity-record","fetcher-url","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(qe,{"entity-record":i.formFields},null,8,["entity-record"])]),terraform:t.withCtx(()=>[t.createVNode(He,{"entity-record":i.formFields,"entity-type":e.entityType,"sub-entity-type":e.subEntityType},null,8,["entity-record","entity-type","sub-entity-type"])]),deck:t.withCtx(()=>[t.createVNode(xn,{app:e.config.app,"control-plane-name":e.config.app==="konnect"?e.config.controlPlaneName:void 0,"entity-record":i.formFields,"entity-type":e.entityType,"geo-api-server-url":e.config.app==="konnect"?e.config.geoApiServerUrl:void 0,"kong-admin-api-url":e.config.app==="kongManager"?e.config.apiBaseUrl:void 0,workspace:e.config.app==="kongManager"?e.config.workspace:void 0},null,8,["app","control-plane-name","entity-record","entity-type","geo-api-server-url","kong-admin-api-url","workspace"])]),_:1},8,["tabs"])]),_:3},8,["offset-top","title","visible"])]),_:3})}}}),[["__scopeId","data-v-7cbcaad8"]]),ta=["data-truncate"],na=W(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(e){const n=e,r=t.computed(()=>{var b;return((b=n.rowEl)==null?void 0:b.querySelector(`[data-testid="${n.keyName}"]`))||null}),o=t.computed(()=>{var b;return((b=r.value)==null?void 0:b.querySelector('[data-truncate="true"]'))||null}),i=t.computed(()=>{var C,S;const b=(C=n.rowEl)==null?void 0:C.querySelectorAll("td");return b?((S=b[0])==null?void 0:S.getAttribute("data-testid"))===n.keyName:!0}),l=t.computed(()=>i.value||n.tooltip);let a;const c=()=>{a&&(a.disconnect(),a=void 0)},s=()=>{var C,S,$;let b=((C=r.value)==null?void 0:C.clientWidth)||0;if(r.value&&"getComputedStyle"in window){const I=window.getComputedStyle(r.value);b-=(parseFloat(I.paddingLeft)||0)+(parseFloat(I.paddingRight)||0)}f.value=((S=o.value)==null?void 0:S.getBoundingClientRect().width)||0,u.value=b,m.value=(($=d.value)==null?void 0:$.innerText)||""},d=t.ref({}),f=t.ref(0),u=t.ref(0),m=t.ref(""),h=t.computed(()=>[o.value,r.value]),y=t.watch(h,b=>{if(l.value&&(c(),"ResizeObserver"in window&&window)){a=new ResizeObserver(C=>{window.requestAnimationFrame(()=>{!Array.isArray(C)||!C.length||s()})});for(const C of b)C&&a.observe(C)}},{immediate:!0,flush:"post",deep:!0}),g=t.computed(()=>l.value?f.value>u.value:!1);return t.onMounted(()=>{s()}),t.onUnmounted(()=>{y()}),(b,C)=>{const S=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:d,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(S,{"max-width":"300",placement:"bottom-start",text:g.value?m.value:""},{default:t.withCtx(()=>[t.renderSlot(b.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,ta)):t.renderSlot(b.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-a3a65cac"]]),ra={class:"toolbar-container"},oa={key:0,class:"toolbar-button-container"},ia={key:0,class:"hidden"},aa=W(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},rowKey:{type:[String,Function],default:"id"},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:null},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},paginationAttributes:{type:Object,default:()=>({})},hidePaginationWhenOptional:{type:Boolean,default:!0},disableSorting:{type:Boolean,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:""},defaultTablePreferences:{type:Object,default:null,required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},hideToolbar:{type:Boolean,default:void 0},disablePaginationPageJump:{type:Boolean,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `disablePaginationPageJump` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),typeof e=="boolean")},paginationType:{type:String,default:void 0,validator:e=>(e&&console.warn("EntityBaseTable: `paginationType` is deprecated in favour of `paginationAttributes`. Please update your code to use `paginationAttributes` instead."),["default","offset"].includes(e))}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked","state"],setup(e,{emit:n}){const r=e,o=n,{i18n:{t:i}}=D.useI18n(),l=t.computed(()=>{var p,k;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(p=r.errorMessage)==null?void 0:p.title,message:(k=r.errorMessage)==null?void 0:k.message}}),a=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=t.computed(()=>{const p=[];return Object.keys(r.tableHeaders).forEach(x=>{const V=r.tableHeaders[x];p.push({label:V.label??x,key:x,sortable:V.sortable??!1,hidable:V.hidable??!0})}),r.enableEntityActions&&p.push({key:"actions",hideLabel:!0}),p}),s=p=>({"data-rowid":p.id,"data-testid":p.name,...r.rowAttributes(p)}),d=t.ref({}),f=p=>{var k;return(k=d.value)==null?void 0:k.$el.querySelector(`[data-rowid="${p.id}"]`)},u=p=>{const k={"data-testid":p.headerKey,...r.cellAttributes(p)};return p.colIndex===0&&(k.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),k},m=p=>{S(p),o("state",p)},h=()=>{o("empty-state-cta-clicked"),y()},y=()=>{o("clear-search-input")},g=t.computed(()=>r.disableRowClick?void 0:(p,k)=>{o("click:row",k)}),b=p=>{o("sort",p)},{hideTableToolbar:C,handleStateChange:S}=D.useTableState(()=>r.query),{setTablePreferences:$,getTablePreferences:I}=In(),j=t.ref(I(a.value,r.defaultTablePreferences)),N=t.computed(()=>{const p=I(a.value);return{...r.initialFetcherParams,...p}}),E=p=>{j.value=p,c.value.forEach(k=>{!("hidable"in k)||!j.value.columnVisibility||k.hidable===!1&&(j.value.columnVisibility[k.key]=!0)}),a.value&&$(a.value,p)},w=t.computed(()=>({disablePageJump:r.disablePaginationPageJump,offset:r.paginationType==="offset",...r.paginationAttributes}));return(p,k)=>{const x=t.resolveComponent("KTableData"),V=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(V,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(x,{ref_key:"tableRefs",ref:d,"cache-identifier":a.value,"cell-attrs":u,"client-sort":e.enableClientSort,"empty-state-action-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,error:l.value.hasError,"error-state-message":l.value.message,"error-state-title":l.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:c.value,"hide-pagination":e.hidePagination,"hide-pagination-when-optional":e.hidePaginationWhenOptional,"hide-toolbar":e.hideToolbar??t.unref(C),"initial-fetcher-params":N.value,loading:e.isLoading,"pagination-attributes":w.value,"resize-columns":"","row-attrs":s,"row-key":e.rowKey,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":j.value,onEmptyStateActionClick:h,"onRow:click":g.value,onSort:k[0]||(k[0]=R=>b(R)),onState:m,"onUpdate:tablePreferences":E},t.createSlots({toolbar:t.withCtx(()=>[t.createElementVNode("div",ra,[t.renderSlot(p.$slots,"toolbar-filter",{},void 0,!0),p.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",oa,[t.renderSlot(p.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)])]),"action-items":t.withCtx(({row:R})=>[t.renderSlot(p.$slots,"actions",{row:R},void 0,!0)]),_:2},[p.$slots["empty-state"]?{name:"empty-state",fn:t.withCtx(()=>[t.renderSlot(p.$slots,"empty-state",{},void 0,!0)]),key:"0"}:void 0,t.renderList(e.tableHeaders,(R,_)=>({name:_,fn:t.withCtx(({row:T,rowValue:O})=>[t.createVNode(na,{"key-name":String(_),"row-el":f(T),tooltip:R.tooltip},{default:t.withCtx(()=>[t.renderSlot(p.$slots,_,{row:T,rowKey:e.rowKey,rowValue:O},()=>[t.createTextVNode(t.toDisplayString(O),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(G.AddIcon))]),key:"1"}]),1032,["cache-identifier","client-sort","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","hide-pagination","hide-pagination-when-optional","hide-toolbar","initial-fetcher-params","loading","pagination-attributes","row-key","search-input","sort-handler-function","sortable","table-preferences","onRow:click"]),p.$slots["outside-actions"]&&t.unref(C)?(t.openBlock(),t.createElementBlock("div",ia,[t.renderSlot(p.$slots,"outside-actions",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-44153100"]]),la={key:0,class:"kong-ui-entity-delete-error"},ca={key:1,class:"description"},sa=W(t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=D.useI18n(),o=e,i=n,l=t.computed(()=>o.needConfirm?o.entityName:""),a=()=>{i("cancel")},c=()=>{i("proceed")};return(s,d)=>{const f=t.resolveComponent("KAlert"),u=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(u,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":l.value,title:e.title,visible:e.visible,onCancel:a,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",la,[t.createVNode(f,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:o.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.entityType),1)]),_:2},[o.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(o.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),o.description||s.$slots.description?(t.openBlock(),t.createElementBlock("div",ca,[t.renderSlot(s.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(o.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),[["__scopeId","data-v-4361d622"]]),da={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},ua={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},fa=["fill"],pa={mask:"url(#mask0_180_20349)"},ma=["fill"],wn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${Xn})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",da,[t.createElementVNode("mask",ua,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,fa)]),t.createElementVNode("g",pa,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,ma)])]))}}),ha={key:1,class:"kong-ui-entity-filter"},ga={class:"kong-ui-entity-filter-menu"},ya=["data-testid"],ka=["onClick","onKeydown"],ba={class:"menu-item-indicator"},Ca={class:"menu-item-body"},xa=["for"],wa={class:"menu-item-buttons"},Sa={class:"filter-clear-button-container"},Aa=W(t.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:n}){const{i18n:{t:r}}=D.useI18n(),o=e,i=n,l=t.ref(!1),a=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const N=[];return new URLSearchParams(o.modelValue).forEach((E,w)=>{E!==""&&N.push(w)}),N}),d=t.computed(()=>{const N=o.config.fields;return Object.keys(N).filter(E=>{var w;return(w=N==null?void 0:N[E])==null?void 0:w.searchable}).map(E=>({label:N[E].label||E,value:E,expanded:!1}))});t.watch(()=>o.modelValue,N=>{a.value={},new URLSearchParams(N).forEach((E,w)=>{a.value[w]=E})});const f=()=>{l.value=!l.value},u=N=>{c.value.has(N)?c.value.delete(N):c.value.add(N)},m=N=>{i("update:modelValue",N)},h=()=>{m("")},y=N=>`filter-${N}`,g=N=>{var E,w;return(((w=(E=o.config.schema)==null?void 0:E[N])==null?void 0:w.values)??[]).map(p=>typeof p=="string"?{value:p,label:p}:p)},b=N=>{var E,w;return((w=(E=o.config.schema)==null?void 0:E[N])==null?void 0:w.type)??"text"},C=N=>{a.value={...a.value,[N]:""},$()},S=()=>{a.value={},$(!0)},$=(N=!1)=>{const E=Object.keys(a.value).reduce((w,p)=>(a.value[p]&&(w[p]=`${a.value[p]}`),w),{});N&&(l.value=!1),i("update:modelValue",new URLSearchParams(E).toString())},I=N=>{var E,w;return!!((w=(E=o.config.schema)==null?void 0:E[N])!=null&&w.filterFunction)},j=(N,E)=>{var p;const w=(p=o.config.schema)==null?void 0:p[N];return(w==null?void 0:w.filterFunction)===void 0?!0:w.filterFunction(E)};return(N,E)=>{const w=t.resolveComponent("KInput"),p=t.resolveComponent("KButton"),k=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(w,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":m},{before:t.withCtx(()=>[t.createVNode(wn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(G.CloseIcon),{class:"kong-ui-entity-filter-clear",role:"button",tabindex:"0",onClick:h},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",ha,[t.createVNode(p,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(wn),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("filter.filterButtonText"))+" "+t.toDisplayString(s.value.length>0?`(${s.value.length})`:""),1)]),_:1}),t.withDirectives(t.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:f},null,512),[[t.vShow,l.value]]),t.withDirectives(t.createElementVNode("div",ga,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,x=>{var V,R;return t.openBlock(),t.createElementBlock("div",{key:x.value,class:"kong-ui-entity-filter-menu-item","data-testid":x.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(x.value)}]),role:"button",tabindex:"0",onClick:_=>u(x.value),onKeydown:t.withKeys(_=>u(x.value),["enter"])},[t.createTextVNode(t.toDisplayString(x.label)+" ",1),t.withDirectives(t.createElementVNode("span",ba,null,512),[[t.vShow,s.value.includes(x.value)]]),t.createVNode(t.unref(G.ChevronDownIcon),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(x.value)}]),color:t.unref(tr)},null,8,["class","color"])],42,ka),t.withDirectives(t.createElementVNode("div",Ca,[t.createElementVNode("label",{class:"menu-item-label",for:y(x.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,xa),((R=(V=e.config.schema)==null?void 0:V[x.value])==null?void 0:R.type)==="select"?(t.openBlock(),t.createBlock(k,{key:0,id:y(x.value),modelValue:a.value[x.value],"onUpdate:modelValue":_=>a.value[x.value]=_,"enable-filtering":I(x.value),"filter-function":_=>j(x.value,_),items:g(x.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","enable-filtering","filter-function","items","placeholder"])):(t.openBlock(),t.createBlock(w,{key:1,id:y(x.value),modelValue:a.value[x.value],"onUpdate:modelValue":_=>a.value[x.value]=_,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:b(x.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(x.value)]]),t.withDirectives(t.createElementVNode("div",wa,[t.createVNode(p,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:E[0]||(E[0]=_=>$(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(p,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:_=>C(x.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:1},8,["onClick"])],512),[[t.vShow,c.value.has(x.value)]])],8,ya)}),128)),t.createElementVNode("div",Sa,[t.createVNode(p,{appearance:"tertiary",size:"small",onClick:S},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,l.value]])]))}}}),[["__scopeId","data-v-084f7978"]]),Ba=t.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18n:{t:r},i18nT:o}=D.useI18n(),i=e,l=n,a=t.ref(!1),c=t.computed(()=>i.action==="enable"?r("toggleModal.enable.title",{entityType:i.entityType}):r("toggleModal.disable.title",{entityType:i.entityType})),s=t.computed(()=>i.action==="enable"?r("toggleModal.enable.confirmText"):r("toggleModal.disable.confirmText")),d=()=>l("cancel"),f=async()=>{if(i.onConfirm){a.value=!0;try{await i.onConfirm(),l("proceed")}catch(u){console.error(u)}finally{a.value=!1}}};return(u,m)=>{const h=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(h,{"action-button-disabled":a.value,"action-button-text":s.value,"data-testid":`${e.entityType}-${e.entityId}-toggle-prompt`,title:c.value,visible:e.visible,onCancel:d,onProceed:f},{default:t.withCtx(()=>[t.createVNode(t.unref(o),{keypath:`toggleModal.${i.action}.message`,scope:"global"},{entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.entityType),1)]),entityName:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(e.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),_a=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),o=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(i,l)=>o.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}}),q=[];for(let e=0;e<256;++e)q.push((e+256).toString(16).slice(1));function Ea(e,n=0){return(q[e[n+0]]+q[e[n+1]]+q[e[n+2]]+q[e[n+3]]+"-"+q[e[n+4]]+q[e[n+5]]+"-"+q[e[n+6]]+q[e[n+7]]+"-"+q[e[n+8]]+q[e[n+9]]+"-"+q[e[n+10]]+q[e[n+11]]+q[e[n+12]]+q[e[n+13]]+q[e[n+14]]+q[e[n+15]]).toLowerCase()}let Ye;const Ta=new Uint8Array(16);function $a(){if(!Ye){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ye=crypto.getRandomValues.bind(crypto)}return Ye(Ta)}const Sn={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Na(e,n,r){var i;if(Sn.randomUUID&&!e)return Sn.randomUUID();e=e||{};const o=e.random??((i=e.rng)==null?void 0:i.call(e))??$a();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Ea(o)}const Ia=["aria-labelledby"],Fa={class:"form-section-wrapper"},Oa={key:1,class:"form-section-description"},La={key:2,class:"form-section-footer"},Va={class:"form-section-content"},Da=W(t.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(e){const n=t.useSlots(),r=Na();return(o,i)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",Fa,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Oa,[t.renderSlot(o.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),t.unref(n).footer?(t.openBlock(),t.createElementBlock("div",La,[t.renderSlot(o.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",Va,[t.renderSlot(o.$slots,"default",{},void 0,!0)])])],10,Ia))}}),[["__scopeId","data-v-b1f74200"]]),Ra={class:"ff-form-section"},Ka={class:"header"},Ma={key:0,class:"step"},va={class:"header-content"},ja={class:"header-title"},Pa={key:0,class:"header-description"},Ua={key:1,class:"header-extra"},qa={class:"content"},Ha=W(t.defineComponent({__name:"EntityFormBlock",props:{step:{},title:{default:""},description:{default:""}},setup(e){const n=t.useSlots();return(r,o)=>(t.openBlock(),t.createElementBlock("div",Ra,[t.createElementVNode("header",Ka,[e.step!=null?(t.openBlock(),t.createElementBlock("div",Ma,t.toDisplayString(e.step),1)):t.createCommentVNode("",!0),t.createElementVNode("div",va,[t.createElementVNode("h2",ja,[t.renderSlot(r.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)]),e.description||n.description?(t.openBlock(),t.createElementBlock("div",Pa,[t.renderSlot(r.$slots,"description",{},()=>[t.createTextVNode(t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0)]),n.extra?(t.openBlock(),t.createElementBlock("div",Ua,[t.renderSlot(r.$slots,"extra",{},void 0,!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",qa,[t.renderSlot(r.$slots,"default",{},void 0,!0)])]))}}),[["__scopeId","data-v-cb6d2e95"]]),Ya={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Wa={key:0,class:"deleted-entity"},za={key:1},Ja=["onClick"],Ga=W(t.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(e){const n=e,r=t.ref(),{isTruncated:o}=D.useTruncationDetector(r),{i18n:{t:i}}=D.useI18n(),l=i("global.actions.copyId"),a=t.ref(l),c=t.computed(()=>n.entityLinkData.deleted??!1),s=t.computed(()=>{var u;return(u=n.entityLinkData.id)!=null&&u.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),d=t.computed(()=>{var u;return`${(u=s.value)==null?void 0:u.toString().slice(0,5)} (deleted)`}),f=async u=>{await u(s.value||"")&&(a.value=i("global.actions.copyToClipboard"),setTimeout(()=>{a.value=l},1800))};return(u,m)=>{const h=t.resolveComponent("KTooltip"),y=t.resolveComponent("KExternalLink"),g=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Ya,[c.value?(t.openBlock(),t.createElementBlock("div",Wa,t.toDisplayString(d.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(y,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(h,{text:t.unref(o)&&e.entityLinkData.label||""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:r,class:"entity-link-label"},t.toDisplayString(e.entityLinkData.label),513)]),_:1},8,["text"])]),_:1},8,["hide-icon","href","target"])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",za,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(h,{key:a.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottom-end",text:a.value},{default:t.withCtx(()=>[t.createVNode(g,null,{default:t.withCtx(({copyToClipboard:b})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(C=>f(b),["stop"])},[t.createVNode(t.unref(G.CopyIcon),{class:"copy-icon",color:t.unref(nr),"data-testid":"copy-id",size:t.unref(or)},null,8,["color","size"])],8,Ja)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-96efdfa5"]]),Qa={class:"kong-ui-public-entity-empty-state"},Za={class:"entity-empty-state-content"},Xa={key:0,class:"empty-state-image"},el={key:1,class:"entity-empty-state-title"},tl={key:2,class:"entity-empty-state-description"},nl={key:3,class:"entity-empty-state-pricing"},rl={key:0,class:"entity-empty-state-message"},ol={key:1,class:"entity-empty-state-action"},il={key:2,class:"entity-empty-state-card-container"},al={key:0,class:"feature-icon"},ll={class:"card-header"},cl=["title"],sl={key:3,class:"entity-empty-state-bottom-container"},dl=W(t.defineComponent({__name:"EntityEmptyState",props:{appearance:{type:String,default:()=>"primary",validator:e=>Ae.includes(e)},title:{type:String,default:""},description:{type:String,default:""},pricing:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},actionButtonText:{type:String,default:""},learnMore:{type:Boolean,default:!1},features:{type:Array,default:()=>[]}},emits:["click:create","click:learn-more"],setup(e){const n=e,{i18n:{t:r}}=D.useI18n(),o=t.ref(!1),i=t.computed(()=>o.value&&!!n.actionButtonText),l=t.computed(()=>Ae.includes(n.appearance)?n.appearance:["primary",n.appearance]);return t.onBeforeMount(async()=>{o.value=await n.canCreate()}),t.onMounted(()=>t.warn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
60
60
  Docs: https://kongponents.konghq.com/components/empty-state.html.`)),(a,c)=>{const s=t.resolveComponent("KCard");return t.openBlock(),t.createElementBlock("div",Qa,[t.createElementVNode("div",Za,[a.$slots.image?(t.openBlock(),t.createElementBlock("div",Xa,[t.renderSlot(a.$slots,"image",{},void 0,!0)])):t.createCommentVNode("",!0),e.title||a.$slots.title?(t.openBlock(),t.createElementBlock("div",el,[t.createElementVNode("h1",{class:t.normalizeClass(l.value)},[t.renderSlot(a.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)],2)])):t.createCommentVNode("",!0),e.description||a.$slots.default?(t.openBlock(),t.createElementBlock("div",tl,[t.renderSlot(a.$slots,"default",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),e.pricing||a.$slots.pricing?(t.openBlock(),t.createElementBlock("div",nl,[t.createElementVNode("p",null,[t.createElementVNode("b",null,t.toDisplayString(t.unref(r)("emptyState.pricingTitle")),1),c[2]||(c[2]=t.createTextVNode()),t.renderSlot(a.$slots,"pricing",{},()=>[t.createTextVNode(t.toDisplayString(e.pricing),1)],!0)])])):t.createCommentVNode("",!0)]),a.$slots.message?(t.openBlock(),t.createElementBlock("div",rl,[t.renderSlot(a.$slots,"message",{},void 0,!0)])):t.createCommentVNode("",!0),i.value||e.learnMore||a.$slots.actions?(t.openBlock(),t.createElementBlock("div",ol,[t.renderSlot(a.$slots,"actions",{},()=>[i.value?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:0,appearance:"primary","data-testid":"entity-create-button",size:e.appearance==="secondary"?"medium":"large",onClick:c[0]||(c[0]=d=>a.$emit("click:create"))},{default:t.withCtx(()=>[t.createVNode(t.unref(G.AddIcon)),t.createTextVNode(" "+t.toDisplayString(e.actionButtonText),1)]),_:1},8,["size"])):t.createCommentVNode("",!0),e.learnMore?(t.openBlock(),t.createBlock(t.unref(oe.KButton),{key:1,appearance:"secondary","data-testid":"entity-learn-more-button",size:e.appearance==="secondary"?"medium":"large",onClick:c[1]||(c[1]=d=>a.$emit("click:learn-more"))},{default:t.withCtx(()=>[t.createVNode(t.unref(G.BookIcon),{decorative:""}),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("emptyState.learnMore")),1)]),_:1},8,["size"])):t.createCommentVNode("",!0)],!0)])):t.createCommentVNode("",!0),e.features.length?(t.openBlock(),t.createElementBlock("div",il,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.features,(d,f)=>(t.openBlock(),t.createBlock(s,{key:d,class:"entity-empty-state-card"},{title:t.withCtx(()=>[a.$slots[`feature-${f}-icon`]?(t.openBlock(),t.createElementBlock("div",al,[t.renderSlot(a.$slots,`feature-${f}-icon`,{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",ll,t.toDisplayString(d.title),1)]),default:t.withCtx(()=>[t.createElementVNode("div",{title:d.description},t.toDisplayString(d.description),9,cl)]),_:2},1024))),128))])):t.createCommentVNode("",!0),a.$slots.bottom?(t.openBlock(),t.createElementBlock("div",sl,[t.renderSlot(a.$slots,"bottom",{},void 0,!0)])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-645aae54"]]),ul={key:1},fl=t.defineComponent({__name:"TableTags",props:{tags:{type:[Array,String],default:()=>[]},tagMaxWidth:{type:String,default:void 0}},setup(e){const n=e,r=t.computed(()=>{if(Array.isArray(n.tags))return n.tags;if(typeof n.tags=="string")try{const o=JSON.parse(n.tags);return Array.isArray(o)?o:[]}catch{return[]}return[]});return(o,i)=>{var l;return((l=r.value)==null?void 0:l.length)>0?(t.openBlock(),t.createBlock(t.unref(oe.KTruncate),{key:0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,a=>(t.openBlock(),t.createBlock(t.unref(oe.KBadge),{key:a,"max-width":e.tagMaxWidth,onClick:i[0]||(i[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a),1)]),_:2},1032,["max-width"]))),128))]),_:1})):(t.openBlock(),t.createElementBlock("span",ul,"-"))}}}),{useAxios:pl,useDeleteUrlBuilder:ml,useErrors:hl,useExternalLinkCreator:gl,useFetchUrlBuilder:yl,useFetcher:kl,useFetcherCacheKey:bl,useDebouncedFilter:Cl,useStringHelpers:xl,useHelpers:wl,useGatewayFeatureSupported:Sl,useTruncationDetector:Al,useValidators:Bl,useSchemaProvider:_l,useTableState:El}=D;A.Appearances=Ae,A.ConfigCardDisplay=Cn,A.ConfigCardItem=Te,A.ConfigurationSchemaSection=H,A.ConfigurationSchemaType=L,A.DeckCodeBlock=xn,A.EntityBaseConfigCard=Qi,A.EntityBaseForm=ea,A.EntityBaseFormType=Qe,A.EntityBaseTable=aa,A.EntityDeleteModal=sa,A.EntityEmptyState=dl,A.EntityFilter=Aa,A.EntityFormBlock=Ha,A.EntityFormSection=Da,A.EntityLink=Ga,A.EntityToggleModal=Ba,A.EntityTypes=Ge,A.EventGatewayTypesArray=Xe,A.FetcherStatus=Z,A.IdentityTypesArray=et,A.InternalLinkItem=mt,A.JsonCodeBlock=$e,A.PermissionsWrapper=_a,A.SupportedEntityDeckArray=Ze,A.SupportedEntityType=ne,A.SupportedEntityTypesArray=ue,A.TableTags=fl,A.TerraformCodeBlock=He,A.YamlCodeBlock=qe,A.useAxios=pl,A.useDebouncedFilter=Cl,A.useDeleteUrlBuilder=ml,A.useErrors=hl,A.useExternalLinkCreator=gl,A.useFetchUrlBuilder=yl,A.useFetcher=kl,A.useFetcherCacheKey=bl,A.useGatewayFeatureSupported=Sl,A.useHelpers=wl,A.useSchemaProvider=_l,A.useStringHelpers=xl,A.useTableState=El,A.useTruncationDetector=Al,A.useValidators=Bl,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-dc1e39a1]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-dc1e39a1]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-40ffb9f1]{align-items:center;border-bottom:var(--v0b2cd434);box-sizing:border-box;display:var(--bb02ad32);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-40ffb9f1]{box-sizing:border-box;padding-right:16px;width:var(--d92de3ce)}.config-card-details-row .config-card-details-label label[data-v-40ffb9f1]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-40ffb9f1]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-40ffb9f1]{min-width:0}.config-card-details-row .config-card-details-value[data-v-40ffb9f1]{box-sizing:border-box;width:var(--d9295818)}.config-card-details-row .config-card-details-value .truncated[data-v-40ffb9f1]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-40ffb9f1]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-40ffb9f1] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-40ffb9f1]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-40ffb9f1]{margin-right:4px}.config-card-details-row[data-v-40ffb9f1] .k-label{margin-bottom:0}.config-card-details-row[data-v-40ffb9f1] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-40ffb9f1] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v58418ff6);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-a7689049]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f2b42324]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f2b42324]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f2b42324]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f2b42324] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f2b42324]{margin-left:8px;padding:0}.deck-config .k-select[data-v-04c956bc]{margin-bottom:16px}.deck-config .k-code-block[data-v-04c956bc]{margin-top:12px}.kong-ui-entity-base-form[data-v-1db7c290]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-1db7c290] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-1db7c290] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-1db7c290] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-1db7c290] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.kong-ui-entity-base-form[data-v-1db7c290] .slideout-content{overflow-y:unset!important}.form-actions[data-v-1db7c290]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-1db7c290] .k-button:last-of-type,.form-actions[data-v-1db7c290] .k-button:nth-last-of-type(2){margin-inline-start:16px}.form-actions-reverted[data-v-1db7c290]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-44153100]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-44153100]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-44153100]{display:none}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-084f7978]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.ff-form-section .header[data-v-cb6d2e95]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cb6d2e95]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cb6d2e95]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cb6d2e95]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cb6d2e95]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cb6d2e95]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cb6d2e95]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-645aae54]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-645aae54]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-645aae54]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-645aae54]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-645aae54]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-645aae54]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-645aae54]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-645aae54]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-645aae54]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{width:640px}}
1
+ .config-card-fieldset[data-v-dc1e39a1]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-dc1e39a1]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-40ffb9f1]{align-items:center;border-bottom:var(--v0b2cd434);box-sizing:border-box;display:var(--bb02ad32);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-40ffb9f1]{box-sizing:border-box;padding-right:16px;width:var(--d92de3ce)}.config-card-details-row .config-card-details-label label[data-v-40ffb9f1]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-40ffb9f1]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-40ffb9f1]{min-width:0}.config-card-details-row .config-card-details-value[data-v-40ffb9f1]{box-sizing:border-box;width:var(--d9295818)}.config-card-details-row .config-card-details-value .truncated[data-v-40ffb9f1]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-40ffb9f1]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-40ffb9f1] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-40ffb9f1]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-40ffb9f1]{margin-right:4px}.config-card-details-row[data-v-40ffb9f1] .k-label{margin-bottom:0}.config-card-details-row[data-v-40ffb9f1] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-40ffb9f1] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v58418ff6);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-a7689049]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f2b42324]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f2b42324]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f2b42324]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f2b42324] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f2b42324]{margin-left:8px;padding:0}.deck-config .k-select[data-v-04c956bc]{margin-bottom:16px}.deck-config .k-code-block[data-v-04c956bc]{margin-top:12px}.kong-ui-entity-base-form[data-v-7cbcaad8]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-7cbcaad8] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-7cbcaad8] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-7cbcaad8] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-7cbcaad8] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.kong-ui-entity-base-form[data-v-7cbcaad8] .slideout-content{overflow-y:unset!important}.form-actions[data-v-7cbcaad8]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-7cbcaad8] .k-button:last-of-type,.form-actions[data-v-7cbcaad8] .k-button:nth-last-of-type(2){margin-inline-start:16px}.form-actions-reverted[data-v-7cbcaad8]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-44153100]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-44153100]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-44153100]{display:none}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-084f7978]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.ff-form-section .header[data-v-cb6d2e95]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cb6d2e95]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cb6d2e95]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cb6d2e95]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cb6d2e95]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cb6d2e95]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cb6d2e95]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-645aae54]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-645aae54]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-645aae54]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-645aae54]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-645aae54]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-645aae54]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-645aae54]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-645aae54]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-645aae54]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{width:640px}}
@@ -2,11 +2,13 @@ import type { PropType } from 'vue';
2
2
  import type { AxiosError } from 'axios';
3
3
  import type { KonnectBaseFormConfig, KongManagerBaseFormConfig } from '../../types';
4
4
  import { SupportedEntityType } from '../../types';
5
- declare var __VLS_21: {}, __VLS_33: {};
5
+ declare var __VLS_21: {}, __VLS_33: {}, __VLS_67: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_21) => any;
8
8
  } & {
9
9
  'form-actions'?: (props: typeof __VLS_33) => any;
10
+ } & {
11
+ 'configuration-slideout-message'?: (props: typeof __VLS_67) => any;
10
12
  };
11
13
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
14
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1 +1 @@
1
- {"version":3,"file":"EntityBaseForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-base-form/EntityBaseForm.vue"],"names":[],"mappings":"AAmdA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAuB,MAAM,aAAa,CAAA;AACxG,OAAO,EAA6B,mBAAmB,EAA4B,MAAM,aAAa,CAAA;AA8pBtG,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgKvD,QAAA,MAAM,eAAe;IAMnB,oHAAoH;;cAElG,QAAQ,CAAC,qBAAqB,GAAG,yBAAyB,CAAC;;4BAEvD,qBAAqB,GAAG,yBAAyB,KAAG,OAAO;;IAOjF,0FAA0F;;;;;;IAM1F;;OAEG;;cAEe,QAAQ,CAAC,mBAAmB,CAAC;;yBAE5B,mBAAmB;;IAEtC;;OAEG;;;;;;IAMH;;;;;;;OAOG;;;;;;IAMH,iFAAiF;;;;;;IAMjF,qEAAqE;;;;;;IAMrE,qEAAqE;;;;;;IAMrE,+DAA+D;;cAE7C,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;IAG/C;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;sBAnwBc,IAAI;sBAYO,IAAI;sBAKN,IAAI;;;;;;;;;IAioB9B,oHAAoH;;cAElG,QAAQ,CAAC,qBAAqB,GAAG,yBAAyB,CAAC;;4BAEvD,qBAAqB,GAAG,yBAAyB,KAAG,OAAO;;IAOjF,0FAA0F;;;;;;IAM1F;;OAEG;;cAEe,QAAQ,CAAC,mBAAmB,CAAC;;yBAE5B,mBAAmB;;IAEtC;;OAEG;;;;;;IAMH;;;;;;;OAOG;;;;;;IAMH,iFAAiF;;;;;;IAMjF,qEAAqE;;;;;;IAMrE,qEAAqE;;;;;;IAMrE,+DAA+D;;cAE7C,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;IAG/C;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAUH,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"EntityBaseForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/entity-base-form/EntityBaseForm.vue"],"names":[],"mappings":"AAqdA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAuB,MAAM,aAAa,CAAA;AACxG,OAAO,EAA6B,mBAAmB,EAA4B,MAAM,aAAa,CAAA;AAgqBtG,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACpE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,gCAAgC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgKzE,QAAA,MAAM,eAAe;IAMnB,oHAAoH;;cAElG,QAAQ,CAAC,qBAAqB,GAAG,yBAAyB,CAAC;;4BAEvD,qBAAqB,GAAG,yBAAyB,KAAG,OAAO;;IAOjF,0FAA0F;;;;;;IAM1F;;OAEG;;cAEe,QAAQ,CAAC,mBAAmB,CAAC;;yBAE5B,mBAAmB;;IAEtC;;OAEG;;;;;;IAMH;;;;;;;OAOG;;;;;;IAMH,iFAAiF;;;;;;IAMjF,qEAAqE;;;;;;IAMrE,qEAAqE;;;;;;IAMrE,+DAA+D;;cAE7C,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;IAG/C;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;sBAtwBc,IAAI;sBAYO,IAAI;sBAKN,IAAI;;;;;;;;;IAooB9B,oHAAoH;;cAElG,QAAQ,CAAC,qBAAqB,GAAG,yBAAyB,CAAC;;4BAEvD,qBAAqB,GAAG,yBAAyB,KAAG,OAAO;;IAOjF,0FAA0F;;;;;;IAM1F;;OAEG;;cAEe,QAAQ,CAAC,mBAAmB,CAAC;;yBAE5B,mBAAmB;;IAEtC;;OAEG;;;;;;IAMH;;;;;;;OAOG;;;;;;IAMH,iFAAiF;;;;;;IAMjF,qEAAqE;;;;;;IAMrE,qEAAqE;;;;;;IAMrE,+DAA+D;;cAE7C,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;IAG/C;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAUH,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-shared",
3
- "version": "3.36.0",
3
+ "version": "3.36.1",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-shared.umd.js",
6
6
  "module": "./dist/entities-shared.es.js",