@kong-ui-public/entities-redis-configurations 1.6.6-pr.2696.7be587d6a.0 → 1.6.6-pr.2696.7be95495a.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -939,7 +939,7 @@ const ni = {
939
939
  cloud_authentication: {
940
940
  aws_is_serverless: !0
941
941
  }
942
- }, Gd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
942
+ }, Jd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
943
943
  __proto__: null,
944
944
  DEFAULT_CLUSTER_NODE: ni,
945
945
  DEFAULT_FIELDS: ri,
@@ -1016,7 +1016,7 @@ const ni = {
1016
1016
  default:
1017
1017
  return null;
1018
1018
  }
1019
- }, Jd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1019
+ }, Zd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1020
1020
  __proto__: null,
1021
1021
  genDefaultClusterNode: ai,
1022
1022
  genDefaultSentinelNode: oi,
@@ -1046,6 +1046,14 @@ const ni = {
1046
1046
  kongManager: `${qe}/partials/{id}/links`
1047
1047
  }
1048
1048
  }, xs = (e) => {
1049
+ if (e == null || e === "")
1050
+ return !1;
1051
+ if (typeof e == "string") {
1052
+ const t = parseInt(e, 10);
1053
+ return Number.isNaN(t) ? !0 : t >= 0 && t <= 65535;
1054
+ }
1055
+ return typeof e == "number" ? e >= 0 && e <= 65535 : !1;
1056
+ }, As = (e) => {
1049
1057
  const { partialId: t, config: n, defaultRedisType: o = $e } = e, i = !!t, { axiosInstance: a } = kt(n.axiosRequestConfig), { getMessageFromError: c } = yn(), p = z(() => t ? dt.Edit : dt.Create), l = mn({
1050
1058
  fields: {
1051
1059
  name: "",
@@ -1067,7 +1075,7 @@ const ni = {
1067
1075
  switch (y.value) {
1068
1076
  case T.HOST_PORT_CE:
1069
1077
  case T.HOST_PORT_EE:
1070
- return !!d.host && d.host.length > 0 && String(d.port ?? "").length > 0 && (((P = d.cloud_authentication) == null ? void 0 : P.auth_provider) !== "aws" || !!d.cloud_authentication.aws_cache_name);
1078
+ return !!d.host && d.host.length > 0 && xs(d.port) && (((P = d.cloud_authentication) == null ? void 0 : P.auth_provider) !== "aws" || !!d.cloud_authentication.aws_cache_name);
1071
1079
  case T.CLUSTER:
1072
1080
  return !!d.cluster_nodes.length && d.cluster_nodes.every((ne) => ne.ip.length > 0) && (((W = d.cloud_authentication) == null ? void 0 : W.auth_provider) !== "aws" || !!d.cloud_authentication.aws_cache_name);
1073
1081
  case T.SENTINEL:
@@ -1245,7 +1253,7 @@ const ni = {
1245
1253
  ), l.fields.config.sentinel_nodes = h.addIdToSentinelNodes(d.config.sentinel_nodes ?? []), l.fields.config.cluster_nodes = h.addIdToClusterNodes(d.config.cluster_nodes ?? []), l.fields.name = d.name, l.fields.type = d.type, l.fields.tags = h.arrayToString(d.tags), y.value = Be(d), u.value = JSON.parse(JSON.stringify(_.value));
1246
1254
  }
1247
1255
  };
1248
- }, As = { class: "array-card-container" }, Ps = /* @__PURE__ */ Q({
1256
+ }, Ps = { class: "array-card-container" }, $s = /* @__PURE__ */ Q({
1249
1257
  __name: "FieldArrayCardContainer",
1250
1258
  props: {
1251
1259
  model: {
@@ -1269,7 +1277,7 @@ const ni = {
1269
1277
  setup(e) {
1270
1278
  return (t, n) => {
1271
1279
  const o = $("KCard"), i = $("KButton");
1272
- return I(), J("div", As, [
1280
+ return I(), J("div", Ps, [
1273
1281
  g(o, { class: "card" }, {
1274
1282
  default: S(() => [
1275
1283
  gi(t.$slots, "default", {}, void 0, !0)
@@ -1295,7 +1303,7 @@ const ni = {
1295
1303
  for (const [o, i] of t)
1296
1304
  n[o] = i;
1297
1305
  return n;
1298
- }, li = /* @__PURE__ */ te(Ps, [["__scopeId", "data-v-a0b2e4fb"]]), $s = {
1306
+ }, li = /* @__PURE__ */ te($s, [["__scopeId", "data-v-a0b2e4fb"]]), Vs = {
1299
1307
  create: "New Redis Configuration",
1300
1308
  copy_id: "Copy ID",
1301
1309
  copy_json: "Copy JSON",
@@ -1306,21 +1314,21 @@ const ni = {
1306
1314
  loading: "Loading...",
1307
1315
  view_plugin: "View Plugin",
1308
1316
  close: "Close"
1309
- }, Vs = {
1317
+ }, Ms = {
1310
1318
  placeholder: "Filter by name",
1311
1319
  placeholder_for_exact_match: "Filter by exact ID",
1312
1320
  no_results: "No results found"
1313
- }, Ms = {
1321
+ }, Ds = {
1314
1322
  placeholder: "Select a Redis configuration",
1315
1323
  empty_state: "No Redis configurations available",
1316
1324
  create_new: "Create new Redis configuration"
1317
- }, Ds = {
1325
+ }, js = {
1318
1326
  copy: "Failed to copy to clipboard",
1319
1327
  general: "Redis configuration could not be retrieved",
1320
1328
  delete: "The redis configuration could not be deleted at this time."
1321
- }, js = {
1322
- success: "Copied {val} to clipboard"
1323
1329
  }, Ls = {
1330
+ success: "Copied {val} to clipboard"
1331
+ }, Us = {
1324
1332
  redis_partial_modal_title: "Create Redis Configuration",
1325
1333
  partial_created_success_message: "Redis configuration created successfully",
1326
1334
  sections: {
@@ -1561,19 +1569,19 @@ const ni = {
1561
1569
  plugin_count: "{count} plugin(s)",
1562
1570
  confirm: "Confirm"
1563
1571
  }
1564
- }, Us = {
1572
+ }, Ns = {
1565
1573
  title: "Associated plugins ({count})",
1566
1574
  headers: {
1567
1575
  plugin: "Plugin",
1568
1576
  instance_name: "Name"
1569
1577
  }
1570
- }, Ns = {
1578
+ }, Bs = {
1571
1579
  title: "Redis Configurations",
1572
1580
  empty_state: {
1573
1581
  title: "Configure a Redis Configuration",
1574
1582
  description: "Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing."
1575
1583
  }
1576
- }, Bs = {
1584
+ }, Fs = {
1577
1585
  action: "New configuration",
1578
1586
  table_headers: {
1579
1587
  name: "Name",
@@ -1592,24 +1600,24 @@ const ni = {
1592
1600
  description: "Edits to your configuration will be cascaded automatically to all associated plugins."
1593
1601
  }
1594
1602
  }
1595
- }, Fs = {
1596
- actions: $s,
1597
- search: Vs,
1598
- selector: Ms,
1603
+ }, zs = {
1604
+ actions: Vs,
1605
+ search: Ms,
1606
+ selector: Ds,
1599
1607
  delete: {
1600
1608
  title: "Delete Redis configuration",
1601
1609
  description: "You’re about to delete this item. Are you sure you want to proceed?",
1602
1610
  warning: "To delete this configuration, first remove it from all associated plugins."
1603
1611
  },
1604
- errors: Ds,
1605
- copy: js,
1606
- form: Ls,
1607
- linked_plugins_modal: Us,
1608
- redis: Ns,
1609
- list: Bs
1612
+ errors: js,
1613
+ copy: Ls,
1614
+ form: Us,
1615
+ linked_plugins_modal: Ns,
1616
+ redis: Bs,
1617
+ list: Fs
1610
1618
  };
1611
1619
  function ot() {
1612
- const e = Bi("en-us", Fs);
1620
+ const e = Bi("en-us", zs);
1613
1621
  return {
1614
1622
  i18n: e,
1615
1623
  i18nT: Fi(e)
@@ -1618,7 +1626,7 @@ function ot() {
1618
1626
  }
1619
1627
  const ye = {
1620
1628
  useI18n: ot
1621
- }, zs = { class: "cluster-node-items" }, Ks = /* @__PURE__ */ Q({
1629
+ }, Ks = { class: "cluster-node-items" }, Hs = /* @__PURE__ */ Q({
1622
1630
  __name: "ClusterNodes",
1623
1631
  props: /* @__PURE__ */ Et({
1624
1632
  readonly: { type: Boolean }
@@ -1654,7 +1662,7 @@ const ye = {
1654
1662
  onRemoveItem: (m) => i(w)
1655
1663
  }, {
1656
1664
  default: S(() => [
1657
- K("div", zs, [
1665
+ K("div", Ks, [
1658
1666
  g(l, {
1659
1667
  modelValue: y.ip,
1660
1668
  "onUpdate:modelValue": (m) => y.ip = m,
@@ -1700,7 +1708,7 @@ const ye = {
1700
1708
  ]);
1701
1709
  };
1702
1710
  }
1703
- }), Hs = /* @__PURE__ */ te(Ks, [["__scopeId", "data-v-776a626d"]]), si = () => {
1711
+ }), Ws = /* @__PURE__ */ te(Hs, [["__scopeId", "data-v-776a626d"]]), si = () => {
1704
1712
  const e = x(), t = x();
1705
1713
  return {
1706
1714
  vaultSecretPickerSetup: e,
@@ -1712,7 +1720,7 @@ const ye = {
1712
1720
  (a = t.value) == null || a.call(t, i), e.value = !1;
1713
1721
  }
1714
1722
  };
1715
- }, Ws = { class: "sentinel-node-items" }, qs = /* @__PURE__ */ Q({
1723
+ }, qs = { class: "sentinel-node-items" }, Gs = /* @__PURE__ */ Q({
1716
1724
  __name: "SentinelNodes",
1717
1725
  props: /* @__PURE__ */ Et({
1718
1726
  readonly: { type: Boolean }
@@ -1748,7 +1756,7 @@ const ye = {
1748
1756
  onRemoveItem: (m) => i(w)
1749
1757
  }, {
1750
1758
  default: S(() => [
1751
- K("div", Ws, [
1759
+ K("div", qs, [
1752
1760
  g(l, {
1753
1761
  modelValue: y.host,
1754
1762
  "onUpdate:modelValue": (m) => y.host = m,
@@ -1794,7 +1802,7 @@ const ye = {
1794
1802
  ]);
1795
1803
  };
1796
1804
  }
1797
- }), Gs = /* @__PURE__ */ te(qs, [["__scopeId", "data-v-cd1c07e2"]]), Js = /* @__PURE__ */ Q({
1805
+ }), Js = /* @__PURE__ */ te(Gs, [["__scopeId", "data-v-cd1c07e2"]]), Zs = /* @__PURE__ */ Q({
1798
1806
  __name: "CloudAuthFields",
1799
1807
  props: /* @__PURE__ */ Et({
1800
1808
  config: {},
@@ -1951,9 +1959,9 @@ const ye = {
1951
1959
  ], 64);
1952
1960
  };
1953
1961
  }
1954
- }), Zs = /* @__PURE__ */ te(Js, [["__scopeId", "data-v-150a04c2"]]);
1962
+ }), Qs = /* @__PURE__ */ te(Zs, [["__scopeId", "data-v-150a04c2"]]);
1955
1963
  var mt = /* @__PURE__ */ new WeakMap(), fn = 0;
1956
- function Qs(e) {
1964
+ function Ys(e) {
1957
1965
  if (!e.length)
1958
1966
  return "";
1959
1967
  for (var t = "arg", n = 0; n < e.length; ++n) {
@@ -1962,14 +1970,14 @@ function Qs(e) {
1962
1970
  }
1963
1971
  return t;
1964
1972
  }
1965
- function Ys(e) {
1973
+ function Xs(e) {
1966
1974
  if (typeof e == "function")
1967
1975
  try {
1968
1976
  e = e();
1969
1977
  } catch {
1970
1978
  e = "";
1971
1979
  }
1972
- return Array.isArray(e) ? e = Qs(e) : e = String(e || ""), e;
1980
+ return Array.isArray(e) ? e = Ys(e) : e = String(e || ""), e;
1973
1981
  }
1974
1982
  var Mt = (
1975
1983
  /** @class */
@@ -1978,7 +1986,7 @@ var Mt = (
1978
1986
  t === void 0 && (t = 0), this.items = /* @__PURE__ */ new Map(), this.ttl = t;
1979
1987
  }
1980
1988
  return e.prototype.serializeKey = function(t) {
1981
- return Ys(t);
1989
+ return Xs(t);
1982
1990
  }, e.prototype.get = function(t) {
1983
1991
  var n = this.serializeKey(t);
1984
1992
  return this.items.get(n);
@@ -2000,21 +2008,21 @@ var Mt = (
2000
2008
  }, e;
2001
2009
  }()
2002
2010
  );
2003
- function Xs() {
2011
+ function ed() {
2004
2012
  return typeof navigator.onLine < "u" ? navigator.onLine : !0;
2005
2013
  }
2006
- function ed() {
2014
+ function td() {
2007
2015
  return typeof document < "u" && typeof document.visibilityState < "u" ? document.visibilityState !== "hidden" : !0;
2008
2016
  }
2009
- var td = function(e) {
2017
+ var nd = function(e) {
2010
2018
  return fetch(e).then(function(t) {
2011
2019
  return t.json();
2012
2020
  });
2013
2021
  };
2014
2022
  const _t = {
2015
- isOnline: Xs,
2016
- isDocumentVisible: ed,
2017
- fetcher: td
2023
+ isOnline: ed,
2024
+ isDocumentVisible: td,
2025
+ fetcher: nd
2018
2026
  };
2019
2027
  var ce = function() {
2020
2028
  return ce = Object.assign || function(e) {
@@ -2109,7 +2117,7 @@ var ce = function() {
2109
2117
  if (u[0] & 5) throw u[1];
2110
2118
  return { value: u[0] ? u[1] : void 0, done: !0 };
2111
2119
  }
2112
- }, nd = function(e, t) {
2120
+ }, id = function(e, t) {
2113
2121
  var n = typeof Symbol == "function" && e[Symbol.iterator];
2114
2122
  if (!n) return e;
2115
2123
  var o = n.call(e), i, a = [], c;
@@ -2125,7 +2133,7 @@ var ce = function() {
2125
2133
  }
2126
2134
  }
2127
2135
  return a;
2128
- }, id = function(e, t, n) {
2136
+ }, rd = function(e, t, n) {
2129
2137
  if (n || arguments.length === 2) for (var o = 0, i = t.length, a; o < i; o++)
2130
2138
  (a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]);
2131
2139
  return e.concat(a || Array.prototype.slice.call(t));
@@ -2144,7 +2152,7 @@ var ce = function() {
2144
2152
  isOnline: _t.isOnline,
2145
2153
  isDocumentVisible: _t.isDocumentVisible
2146
2154
  };
2147
- function rd(e, t, n) {
2155
+ function od(e, t, n) {
2148
2156
  var o = et.get(e);
2149
2157
  if (o)
2150
2158
  o.data.push(t);
@@ -2153,7 +2161,7 @@ function rd(e, t, n) {
2153
2161
  et.set(e, [t], n > 0 ? n + i : n);
2154
2162
  }
2155
2163
  }
2156
- function od(e, t, n) {
2164
+ function ad(e, t, n) {
2157
2165
  if (n.isDocumentVisible() && !(n.errorRetryCount !== void 0 && t > n.errorRetryCount)) {
2158
2166
  var o = Math.min(t || 0, n.errorRetryCount), i = o * n.errorRetryInterval;
2159
2167
  setTimeout(function() {
@@ -2167,7 +2175,7 @@ var pn = function(e, t, n, o) {
2167
2175
  return Pe(this, function(w) {
2168
2176
  switch (w.label) {
2169
2177
  case 0:
2170
- if (!ld(t)) return [3, 5];
2178
+ if (!sd(t)) return [3, 5];
2171
2179
  w.label = 1;
2172
2180
  case 1:
2173
2181
  return w.trys.push([1, 3, , 4]), [4, t];
@@ -2197,7 +2205,7 @@ var pn = function(e, t, n, o) {
2197
2205
  });
2198
2206
  });
2199
2207
  };
2200
- function ad() {
2208
+ function ld() {
2201
2209
  for (var e = this, t = [], n = 0; n < arguments.length; n++)
2202
2210
  t[n] = arguments[n];
2203
2211
  var o, i, a = ce({}, ui), c = !1, p = !1, l = bi(), u = (l == null ? void 0 : l.proxy) || l;
@@ -2233,7 +2241,7 @@ function ad() {
2233
2241
  return Pe(this, function(ve) {
2234
2242
  switch (ve.label) {
2235
2243
  case 0:
2236
- return oe = gt.get(P), oe ? [3, 2] : (we = Array.isArray(P) ? P : [P], Te = ne.apply(void 0, id([], nd(we), !1)), gt.set(P, Te, a.dedupingInterval), [4, pn(P, Te, a.cache, w)]);
2244
+ return oe = gt.get(P), oe ? [3, 2] : (we = Array.isArray(P) ? P : [P], Te = ne.apply(void 0, rd([], id(we), !1)), gt.set(P, Te, a.dedupingInterval), [4, pn(P, Te, a.cache, w)]);
2237
2245
  case 1:
2238
2246
  return ve.sent(), [3, 4];
2239
2247
  case 2:
@@ -2241,7 +2249,7 @@ function ad() {
2241
2249
  case 3:
2242
2250
  ve.sent(), ve.label = 4;
2243
2251
  case 4:
2244
- return b.isValidating = !1, b.isLoading = !1, gt.delete(P), b.error !== void 0 && (Re = !c && a.shouldRetryOnError && (d ? d.shouldRetryOnError : !0), Re && od(_, d ? d.errorRetryCount : 1, a)), [
2252
+ return b.isValidating = !1, b.isLoading = !1, gt.delete(P), b.error !== void 0 && (Re = !c && a.shouldRetryOnError && (d ? d.shouldRetryOnError : !0), Re && ad(_, d ? d.errorRetryCount : 1, a)), [
2245
2253
  2
2246
2254
  /*return*/
2247
2255
  ];
@@ -2317,7 +2325,7 @@ function ad() {
2317
2325
  });
2318
2326
  try {
2319
2327
  Ee(m, function(k) {
2320
- hi(m) || (m.value = k), b.key = k, b.isValidating = !!k, rd(m.value, b, w), !y && !p && m.value && _(), p = !1;
2328
+ hi(m) || (m.value = k), b.key = k, b.isValidating = !!k, od(m.value, b, w), !y && !p && m.value && _(), p = !1;
2321
2329
  }, {
2322
2330
  immediate: !0
2323
2331
  });
@@ -2328,7 +2336,7 @@ function ad() {
2328
2336
  } });
2329
2337
  return A;
2330
2338
  }
2331
- function ld(e) {
2339
+ function sd(e) {
2332
2340
  return e !== null && typeof e == "object" && typeof e.then == "function";
2333
2341
  }
2334
2342
  function ci(e) {
@@ -2349,7 +2357,7 @@ const Fe = (e) => {
2349
2357
  }
2350
2358
  };
2351
2359
  }, fi = (e) => {
2352
- const { partialId: t, config: n } = e, { fetcher: o } = Fe(n), i = x([]), { data: a } = ad(
2360
+ const { partialId: t, config: n } = e, { fetcher: o } = Fe(n), i = x([]), { data: a } = ld(
2353
2361
  ci(t),
2354
2362
  () => o({ partialId: t }),
2355
2363
  {
@@ -2360,7 +2368,7 @@ const Fe = (e) => {
2360
2368
  var c;
2361
2369
  i.value = ((c = a.value) == null ? void 0 : c.data) ?? [];
2362
2370
  }), i;
2363
- }, sd = { class: "kong-ui-entities-redis-configurations-form" }, dd = /* @__PURE__ */ Q({
2371
+ }, dd = { class: "kong-ui-entities-redis-configurations-form" }, ud = /* @__PURE__ */ Q({
2364
2372
  __name: "RedisConfigurationForm",
2365
2373
  props: {
2366
2374
  config: {
@@ -2461,7 +2469,7 @@ const Fe = (e) => {
2461
2469
  fetchUrl: W,
2462
2470
  submit: Y,
2463
2471
  setInitialFormValues: ne
2464
- } = xs({
2472
+ } = As({
2465
2473
  partialId: n.partialId,
2466
2474
  defaultRedisType: E(),
2467
2475
  config: n.config,
@@ -2501,7 +2509,7 @@ const Fe = (e) => {
2501
2509
  }), (H, v) => {
2502
2510
  const lt = $("KAlert"), Se = $("KSelect"), N = $("KInput"), C = $("KCheckbox"), R = $("KModal");
2503
2511
  return I(), J(fe, null, [
2504
- K("div", sd, [
2512
+ K("div", dd, [
2505
2513
  g(r(Ii), {
2506
2514
  "action-teleport-target": e.actionTeleportTarget,
2507
2515
  "can-submit": r(A),
@@ -2617,7 +2625,7 @@ const Fe = (e) => {
2617
2625
  "label-attributes": { info: r(i)("form.fields.cloud_authentication.auth_provider.tooltip") },
2618
2626
  readonly: r(s).readonly
2619
2627
  }, null, 8, ["modelValue", "items", "label", "label-attributes", "readonly"]),
2620
- g(Zs, {
2628
+ g(Qs, {
2621
2629
  modelValue: r(s).fields.config.cloud_authentication,
2622
2630
  "onUpdate:modelValue": v[4] || (v[4] = (f) => r(s).fields.config.cloud_authentication = f),
2623
2631
  config: n.config,
@@ -2659,7 +2667,7 @@ const Fe = (e) => {
2659
2667
  readonly: r(s).readonly,
2660
2668
  required: ""
2661
2669
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
2662
- g(Gs, {
2670
+ g(Js, {
2663
2671
  modelValue: r(s).fields.config.sentinel_nodes,
2664
2672
  "onUpdate:modelValue": v[7] || (v[7] = (f) => r(s).fields.config.sentinel_nodes = f),
2665
2673
  readonly: r(s).readonly
@@ -2712,7 +2720,7 @@ const Fe = (e) => {
2712
2720
  title: r(i)("form.sections.cluster.title")
2713
2721
  }, {
2714
2722
  default: S(() => [
2715
- g(Hs, {
2723
+ g(Ws, {
2716
2724
  modelValue: r(s).fields.config.cluster_nodes,
2717
2725
  "onUpdate:modelValue": v[12] || (v[12] = (f) => r(s).fields.config.cluster_nodes = f),
2718
2726
  readonly: r(s).readonly
@@ -2767,6 +2775,7 @@ const Fe = (e) => {
2767
2775
  r(O) === r(T).HOST_PORT_EE && e.config.isPortReferenceable ? (I(), F(r(xe), {
2768
2776
  key: 2,
2769
2777
  class: "secret-picker-provider",
2778
+ "data-testid": "secret-picker-provider-for-port",
2770
2779
  disabled: r(s).readonly,
2771
2780
  update: (f) => r(s).fields.config.port = f,
2772
2781
  value: String(r(s).fields.config.port ?? ""),
@@ -3014,10 +3023,10 @@ const Fe = (e) => {
3014
3023
  ], 64);
3015
3024
  };
3016
3025
  }
3017
- }), ud = /* @__PURE__ */ te(dd, [["__scopeId", "data-v-8eb0e48b"]]), cd = {
3026
+ }), cd = /* @__PURE__ */ te(ud, [["__scopeId", "data-v-2cb19e90"]]), fd = {
3018
3027
  class: "linked-plugins",
3019
3028
  "data-testid": "linked-plugins-inline"
3020
- }, bt = 7, fd = /* @__PURE__ */ Q({
3029
+ }, bt = 7, pd = /* @__PURE__ */ Q({
3021
3030
  __name: "LinkedPluginsInline",
3022
3031
  props: {
3023
3032
  config: {
@@ -3037,7 +3046,7 @@ const Fe = (e) => {
3037
3046
  });
3038
3047
  return (o, i) => {
3039
3048
  const a = $("KBadge");
3040
- return I(), J("div", cd, [
3049
+ return I(), J("div", fd, [
3041
3050
  (I(!0), J(fe, null, tt(r(n).slice(0, bt), (c) => (I(), F(r(En), {
3042
3051
  key: c.id,
3043
3052
  name: c.name,
@@ -3055,13 +3064,13 @@ const Fe = (e) => {
3055
3064
  ]);
3056
3065
  };
3057
3066
  }
3058
- }), pd = /* @__PURE__ */ te(fd, [["__scopeId", "data-v-c39556bc"]]), md = { class: "plugin-item" }, _d = /* @__PURE__ */ Q({
3067
+ }), md = /* @__PURE__ */ te(pd, [["__scopeId", "data-v-c39556bc"]]), _d = { class: "plugin-item" }, gd = /* @__PURE__ */ Q({
3059
3068
  __name: "PluginItem",
3060
3069
  props: {
3061
3070
  pluginName: {}
3062
3071
  },
3063
3072
  setup(e) {
3064
- return (t, n) => (I(), J("div", md, [
3073
+ return (t, n) => (I(), J("div", _d, [
3065
3074
  g(r(En), {
3066
3075
  name: e.pluginName,
3067
3076
  size: 24
@@ -3069,7 +3078,7 @@ const Fe = (e) => {
3069
3078
  K("span", null, U(e.pluginName), 1)
3070
3079
  ]));
3071
3080
  }
3072
- }), gd = /* @__PURE__ */ te(_d, [["__scopeId", "data-v-de964dc4"]]), bd = { class: "toolbar-container" }, yd = /* @__PURE__ */ Q({
3081
+ }), bd = /* @__PURE__ */ te(gd, [["__scopeId", "data-v-de964dc4"]]), yd = { class: "toolbar-container" }, vd = /* @__PURE__ */ Q({
3073
3082
  __name: "LinkedPluginList",
3074
3083
  props: {
3075
3084
  config: {
@@ -3132,7 +3141,7 @@ const Fe = (e) => {
3132
3141
  "search-input": u.value
3133
3142
  }, gn({
3134
3143
  name: S(({ rowValue: s }) => [
3135
- g(gd, { "plugin-name": s }, null, 8, ["plugin-name"])
3144
+ g(bd, { "plugin-name": s }, null, 8, ["plugin-name"])
3136
3145
  ]),
3137
3146
  "action-items": S(({ row: s }) => [
3138
3147
  g(_, {
@@ -3149,7 +3158,7 @@ const Fe = (e) => {
3149
3158
  e.filterBarEnabled ? {
3150
3159
  name: "toolbar",
3151
3160
  fn: S(() => [
3152
- K("div", bd, [
3161
+ K("div", yd, [
3153
3162
  g(r(hn), {
3154
3163
  modelValue: u.value,
3155
3164
  "onUpdate:modelValue": b[0] || (b[0] = (s) => u.value = s),
@@ -3162,10 +3171,10 @@ const Fe = (e) => {
3162
3171
  ]), 1032, ["cache-identifier", "pagination-attributes", "search-input"]);
3163
3172
  };
3164
3173
  }
3165
- }), vd = /* @__PURE__ */ te(yd, [["__scopeId", "data-v-50856d03"]]), hd = {
3174
+ }), hd = /* @__PURE__ */ te(vd, [["__scopeId", "data-v-50856d03"]]), wd = {
3166
3175
  class: "linked-plugins-modal",
3167
3176
  "data-testid": "linked-plugins-modal"
3168
- }, wd = /* @__PURE__ */ Q({
3177
+ }, Td = /* @__PURE__ */ Q({
3169
3178
  __name: "LinkedPluginListModal",
3170
3179
  props: {
3171
3180
  config: {
@@ -3192,7 +3201,7 @@ const Fe = (e) => {
3192
3201
  };
3193
3202
  return (l, u) => {
3194
3203
  const y = $("KModal");
3195
- return I(), J("div", hd, [
3204
+ return I(), J("div", wd, [
3196
3205
  g(y, {
3197
3206
  "action-button-text": r(o)("actions.done"),
3198
3207
  "hide-cancel-button": "",
@@ -3202,7 +3211,7 @@ const Fe = (e) => {
3202
3211
  onProceed: p
3203
3212
  }, {
3204
3213
  default: S(() => [
3205
- g(vd, {
3214
+ g(hd, {
3206
3215
  config: e.config,
3207
3216
  "partial-id": e.redisConfigurationId,
3208
3217
  onLoad: u[0] || (u[0] = ({ total: w }) => i.value = w),
@@ -3214,7 +3223,7 @@ const Fe = (e) => {
3214
3223
  ]);
3215
3224
  };
3216
3225
  }
3217
- }), Td = /* @__PURE__ */ te(wd, [["__scopeId", "data-v-6148b8bd"]]), Sd = /* @__PURE__ */ Q({
3226
+ }), Sd = /* @__PURE__ */ te(Td, [["__scopeId", "data-v-6148b8bd"]]), Ed = /* @__PURE__ */ Q({
3218
3227
  __name: "DeleteWarningModal",
3219
3228
  props: {
3220
3229
  visible: {
@@ -3246,7 +3255,7 @@ const Fe = (e) => {
3246
3255
  }, 8, ["action-button-text", "title", "visible"]);
3247
3256
  };
3248
3257
  }
3249
- }), Ed = { class: "kong-ui-entities-partials-list" }, Cd = 1e3, kd = /* @__PURE__ */ Q({
3258
+ }), Cd = { class: "kong-ui-entities-partials-list" }, kd = 1e3, Id = /* @__PURE__ */ Q({
3250
3259
  __name: "RedisConfigurationList",
3251
3260
  props: {
3252
3261
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3299,7 +3308,7 @@ const Fe = (e) => {
3299
3308
  return o.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((R = o.config) == null ? void 0 : R.controlPlaneId) || "") : o.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (f = o.config) != null && f.workspace ? `/${o.config.workspace}` : "")), C;
3300
3309
  }), a = x(!1), c = x(""), p = x(null), l = x(void 0), u = x(!1), y = x(!1), w = x(""), m = x(!1), b = Oi(o.config, i.value), _ = x(1), E = z(() => o.config.app !== "kongManager" || !!o.config.disableSorting), { fetcher: s, fetcherState: A } = Ri(o.config, i);
3301
3310
  async function k(C) {
3302
- const R = await s({ ...C, pageSize: Cd });
3311
+ const R = await s({ ...C, pageSize: kd });
3303
3312
  return R.data = R.data.filter((f) => f.type === Z.REDIS_CE || f.type === Z.REDIS_EE), R;
3304
3313
  }
3305
3314
  const { i18n: { t: d } } = ye.useI18n(), { axiosInstance: O } = kt((N = o.config) == null ? void 0 : N.axiosRequestConfig), P = Tn(), W = x(""), Y = z(() => {
@@ -3405,7 +3414,7 @@ const Fe = (e) => {
3405
3414
  immediate: !0
3406
3415
  }), (C, R) => {
3407
3416
  const f = $("KButton"), B = $("KDropdownItem"), mi = $("KClipboardProvider"), _i = $("KEmptyState");
3408
- return I(), J("div", Ed, [
3417
+ return I(), J("div", Cd, [
3409
3418
  g(r(Ai), {
3410
3419
  "cache-identifier": e.cacheIdentifier,
3411
3420
  "disable-sorting": E.value,
@@ -3463,7 +3472,7 @@ const Fe = (e) => {
3463
3472
  g(r(Pi), { tags: j }, null, 8, ["tags"])
3464
3473
  ]),
3465
3474
  plugins: S(({ row: j }) => [
3466
- g(pd, {
3475
+ g(md, {
3467
3476
  config: e.config,
3468
3477
  "partial-id": j.id,
3469
3478
  onClick: Si((st) => ve(j.id), ["stop"])
@@ -3474,7 +3483,7 @@ const Fe = (e) => {
3474
3483
  default: S(({ copyToClipboard: st }) => [
3475
3484
  g(B, {
3476
3485
  "data-testid": "action-entity-copy-id",
3477
- onClick: (jd) => lt(j, st)
3486
+ onClick: (Ld) => lt(j, st)
3478
3487
  }, {
3479
3488
  default: S(() => [
3480
3489
  le(U(r(d)("actions.copy_id")), 1)
@@ -3565,7 +3574,7 @@ const Fe = (e) => {
3565
3574
  ]),
3566
3575
  _: 1
3567
3576
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher-cache-key", "query"]),
3568
- g(Sd, {
3577
+ g(Ed, {
3569
3578
  visible: m.value,
3570
3579
  onClose: R[2] || (R[2] = (j) => m.value = !1)
3571
3580
  }, null, 8, ["visible"]),
@@ -3581,7 +3590,7 @@ const Fe = (e) => {
3581
3590
  onCancel: Re,
3582
3591
  onProceed: at
3583
3592
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
3584
- g(Td, {
3593
+ g(Sd, {
3585
3594
  config: e.config,
3586
3595
  "redis-configuration-id": c.value,
3587
3596
  visible: a.value,
@@ -3592,7 +3601,7 @@ const Fe = (e) => {
3592
3601
  ]);
3593
3602
  };
3594
3603
  }
3595
- }), Zd = /* @__PURE__ */ te(kd, [["__scopeId", "data-v-4e5be541"]]), Id = { class: "kong-ui-consumer-group-entity-config-card" }, Qd = /* @__PURE__ */ Q({
3604
+ }), Qd = /* @__PURE__ */ te(Id, [["__scopeId", "data-v-4e5be541"]]), Od = { class: "kong-ui-consumer-group-entity-config-card" }, Yd = /* @__PURE__ */ Q({
3596
3605
  __name: "RedisConfigurationConfigCard",
3597
3606
  props: {
3598
3607
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3915,7 +3924,7 @@ const Fe = (e) => {
3915
3924
  throw new Error("Invalid Redis type");
3916
3925
  }
3917
3926
  });
3918
- return (_, E) => (I(), J("div", Id, [
3927
+ return (_, E) => (I(), J("div", Od, [
3919
3928
  g(r(Mi), {
3920
3929
  "code-block-record-formatter": y,
3921
3930
  config: e.config,
@@ -3936,7 +3945,7 @@ const Fe = (e) => {
3936
3945
  }, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
3937
3946
  ]));
3938
3947
  }
3939
- }), Od = "12px";
3948
+ }), Rd = "12px";
3940
3949
  function pi(e) {
3941
3950
  const {
3942
3951
  redisType: t = "redis-ce"
@@ -3974,7 +3983,7 @@ function pi(e) {
3974
3983
  loadItems: l
3975
3984
  };
3976
3985
  }
3977
- const Rd = ["id"], xd = /* @__PURE__ */ Q({
3986
+ const xd = ["id"], Ad = /* @__PURE__ */ Q({
3978
3987
  __name: "RedisConfigurationFormModal",
3979
3988
  props: {
3980
3989
  visible: { type: Boolean },
@@ -4030,10 +4039,10 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4030
4039
  K("div", {
4031
4040
  id: `redis-modal-footer-${r(p)}`,
4032
4041
  class: "redis-modal-footer"
4033
- }, null, 8, Rd)
4042
+ }, null, 8, xd)
4034
4043
  ]),
4035
4044
  default: S(() => [
4036
- g(ud, {
4045
+ g(cd, {
4037
4046
  "action-teleport-target": y.value,
4038
4047
  config: a.value,
4039
4048
  "disabled-partial-type": l.value,
@@ -4047,13 +4056,13 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4047
4056
  }, 8, ["title", "visible"]);
4048
4057
  };
4049
4058
  }
4050
- }), Ad = /* @__PURE__ */ te(xd, [["__scopeId", "data-v-280b73f4"]]), Pd = { class: "selected-redis-config" }, $d = ["data-testid"], Vd = {
4059
+ }), Pd = /* @__PURE__ */ te(Ad, [["__scopeId", "data-v-280b73f4"]]), $d = { class: "selected-redis-config" }, Vd = ["data-testid"], Md = {
4051
4060
  class: "select-item-name",
4052
4061
  "data-testid": "selected-redis-config"
4053
- }, Md = {
4062
+ }, Dd = {
4054
4063
  class: "empty-redis-config",
4055
4064
  "data-testid": "empty-redis-config"
4056
- }, Dd = /* @__PURE__ */ Q({
4065
+ }, jd = /* @__PURE__ */ Q({
4057
4066
  inheritAttrs: !1,
4058
4067
  __name: "RedisConfigurationSelector",
4059
4068
  props: {
@@ -4106,14 +4115,14 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4106
4115
  onQueryChange: r(c)
4107
4116
  }), gn({
4108
4117
  "selected-item-template": S(({ item: k }) => [
4109
- K("div", Pd, U(k.name), 1)
4118
+ K("div", $d, U(k.name), 1)
4110
4119
  ]),
4111
4120
  "item-template": S(({ item: k }) => [
4112
4121
  K("div", {
4113
4122
  class: "plugin-form-redis-configuration-dropdown-item",
4114
4123
  "data-testid": `redis-configuration-dropdown-item-${k.name}`
4115
4124
  }, [
4116
- K("span", Vd, U(k.name), 1),
4125
+ K("span", Md, U(k.name), 1),
4117
4126
  g(s, {
4118
4127
  appearance: "info",
4119
4128
  class: "select-item-label"
@@ -4123,10 +4132,10 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4123
4132
  ]),
4124
4133
  _: 2
4125
4134
  }, 1024)
4126
- ], 8, $d)
4135
+ ], 8, Vd)
4127
4136
  ]),
4128
4137
  empty: S(() => [
4129
- K("div", Md, U(e.emptyStateText || r(o)("selector.empty_state")), 1)
4138
+ K("div", Dd, U(e.emptyStateText || r(o)("selector.empty_state")), 1)
4130
4139
  ]),
4131
4140
  _: 2
4132
4141
  }, [
@@ -4138,14 +4147,14 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4138
4147
  "data-testid": "new-redis-config-area",
4139
4148
  onClick: w
4140
4149
  }, [
4141
- g(r(yt), { size: r(Od) }, null, 8, ["size"]),
4150
+ g(r(yt), { size: r(Rd) }, null, 8, ["size"]),
4142
4151
  K("span", null, U(e.createButtonText || r(o)("selector.create_new")), 1)
4143
4152
  ])
4144
4153
  ]),
4145
4154
  key: "0"
4146
4155
  } : void 0
4147
4156
  ]), 1040, ["items", "loading", "model-value", "placeholder", "onQueryChange"]),
4148
- g(Ad, {
4157
+ g(Pd, {
4149
4158
  "partial-type": e.redisType,
4150
4159
  visible: u.value,
4151
4160
  onCreated: b,
@@ -4155,23 +4164,23 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4155
4164
  ], 64);
4156
4165
  };
4157
4166
  }
4158
- }), Yd = /* @__PURE__ */ te(Dd, [["__scopeId", "data-v-3c6e44d3"]]), Xd = {
4167
+ }), Xd = /* @__PURE__ */ te(jd, [["__scopeId", "data-v-3c6e44d3"]]), eu = {
4159
4168
  useLinkedPlugins: fi,
4160
4169
  useLinkedPluginsFetcher: Fe,
4161
4170
  useRedisConfigurationSelector: pi
4162
4171
  };
4163
4172
  export {
4164
4173
  q as AuthProvider,
4165
- Sd as DeleteWarningModal,
4166
- vd as LinkedPlugins,
4174
+ Ed as DeleteWarningModal,
4175
+ hd as LinkedPlugins,
4167
4176
  Z as PartialType,
4168
- Qd as RedisConfigurationConfigCard,
4169
- ud as RedisConfigurationForm,
4170
- Ad as RedisConfigurationFormModal,
4171
- Zd as RedisConfigurationList,
4172
- Yd as RedisConfigurationSelector,
4177
+ Yd as RedisConfigurationConfigCard,
4178
+ cd as RedisConfigurationForm,
4179
+ Pd as RedisConfigurationFormModal,
4180
+ Qd as RedisConfigurationList,
4181
+ Xd as RedisConfigurationSelector,
4173
4182
  T as RedisType,
4174
- Xd as composables,
4175
- Gd as constants,
4176
- Jd as helpers
4183
+ eu as composables,
4184
+ Jd as constants,
4185
+ Zd as helpers
4177
4186
  };