@kong-ui-public/entities-redis-configurations 1.6.6-pr.2696.7be587d6a.0 → 1.6.6-pr.2696.bdcc0c1fc.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
@@ -3014,10 +3022,10 @@ const Fe = (e) => {
3014
3022
  ], 64);
3015
3023
  };
3016
3024
  }
3017
- }), ud = /* @__PURE__ */ te(dd, [["__scopeId", "data-v-8eb0e48b"]]), cd = {
3025
+ }), cd = /* @__PURE__ */ te(ud, [["__scopeId", "data-v-8eb0e48b"]]), fd = {
3018
3026
  class: "linked-plugins",
3019
3027
  "data-testid": "linked-plugins-inline"
3020
- }, bt = 7, fd = /* @__PURE__ */ Q({
3028
+ }, bt = 7, pd = /* @__PURE__ */ Q({
3021
3029
  __name: "LinkedPluginsInline",
3022
3030
  props: {
3023
3031
  config: {
@@ -3037,7 +3045,7 @@ const Fe = (e) => {
3037
3045
  });
3038
3046
  return (o, i) => {
3039
3047
  const a = $("KBadge");
3040
- return I(), J("div", cd, [
3048
+ return I(), J("div", fd, [
3041
3049
  (I(!0), J(fe, null, tt(r(n).slice(0, bt), (c) => (I(), F(r(En), {
3042
3050
  key: c.id,
3043
3051
  name: c.name,
@@ -3055,13 +3063,13 @@ const Fe = (e) => {
3055
3063
  ]);
3056
3064
  };
3057
3065
  }
3058
- }), pd = /* @__PURE__ */ te(fd, [["__scopeId", "data-v-c39556bc"]]), md = { class: "plugin-item" }, _d = /* @__PURE__ */ Q({
3066
+ }), md = /* @__PURE__ */ te(pd, [["__scopeId", "data-v-c39556bc"]]), _d = { class: "plugin-item" }, gd = /* @__PURE__ */ Q({
3059
3067
  __name: "PluginItem",
3060
3068
  props: {
3061
3069
  pluginName: {}
3062
3070
  },
3063
3071
  setup(e) {
3064
- return (t, n) => (I(), J("div", md, [
3072
+ return (t, n) => (I(), J("div", _d, [
3065
3073
  g(r(En), {
3066
3074
  name: e.pluginName,
3067
3075
  size: 24
@@ -3069,7 +3077,7 @@ const Fe = (e) => {
3069
3077
  K("span", null, U(e.pluginName), 1)
3070
3078
  ]));
3071
3079
  }
3072
- }), gd = /* @__PURE__ */ te(_d, [["__scopeId", "data-v-de964dc4"]]), bd = { class: "toolbar-container" }, yd = /* @__PURE__ */ Q({
3080
+ }), bd = /* @__PURE__ */ te(gd, [["__scopeId", "data-v-de964dc4"]]), yd = { class: "toolbar-container" }, vd = /* @__PURE__ */ Q({
3073
3081
  __name: "LinkedPluginList",
3074
3082
  props: {
3075
3083
  config: {
@@ -3132,7 +3140,7 @@ const Fe = (e) => {
3132
3140
  "search-input": u.value
3133
3141
  }, gn({
3134
3142
  name: S(({ rowValue: s }) => [
3135
- g(gd, { "plugin-name": s }, null, 8, ["plugin-name"])
3143
+ g(bd, { "plugin-name": s }, null, 8, ["plugin-name"])
3136
3144
  ]),
3137
3145
  "action-items": S(({ row: s }) => [
3138
3146
  g(_, {
@@ -3149,7 +3157,7 @@ const Fe = (e) => {
3149
3157
  e.filterBarEnabled ? {
3150
3158
  name: "toolbar",
3151
3159
  fn: S(() => [
3152
- K("div", bd, [
3160
+ K("div", yd, [
3153
3161
  g(r(hn), {
3154
3162
  modelValue: u.value,
3155
3163
  "onUpdate:modelValue": b[0] || (b[0] = (s) => u.value = s),
@@ -3162,10 +3170,10 @@ const Fe = (e) => {
3162
3170
  ]), 1032, ["cache-identifier", "pagination-attributes", "search-input"]);
3163
3171
  };
3164
3172
  }
3165
- }), vd = /* @__PURE__ */ te(yd, [["__scopeId", "data-v-50856d03"]]), hd = {
3173
+ }), hd = /* @__PURE__ */ te(vd, [["__scopeId", "data-v-50856d03"]]), wd = {
3166
3174
  class: "linked-plugins-modal",
3167
3175
  "data-testid": "linked-plugins-modal"
3168
- }, wd = /* @__PURE__ */ Q({
3176
+ }, Td = /* @__PURE__ */ Q({
3169
3177
  __name: "LinkedPluginListModal",
3170
3178
  props: {
3171
3179
  config: {
@@ -3192,7 +3200,7 @@ const Fe = (e) => {
3192
3200
  };
3193
3201
  return (l, u) => {
3194
3202
  const y = $("KModal");
3195
- return I(), J("div", hd, [
3203
+ return I(), J("div", wd, [
3196
3204
  g(y, {
3197
3205
  "action-button-text": r(o)("actions.done"),
3198
3206
  "hide-cancel-button": "",
@@ -3202,7 +3210,7 @@ const Fe = (e) => {
3202
3210
  onProceed: p
3203
3211
  }, {
3204
3212
  default: S(() => [
3205
- g(vd, {
3213
+ g(hd, {
3206
3214
  config: e.config,
3207
3215
  "partial-id": e.redisConfigurationId,
3208
3216
  onLoad: u[0] || (u[0] = ({ total: w }) => i.value = w),
@@ -3214,7 +3222,7 @@ const Fe = (e) => {
3214
3222
  ]);
3215
3223
  };
3216
3224
  }
3217
- }), Td = /* @__PURE__ */ te(wd, [["__scopeId", "data-v-6148b8bd"]]), Sd = /* @__PURE__ */ Q({
3225
+ }), Sd = /* @__PURE__ */ te(Td, [["__scopeId", "data-v-6148b8bd"]]), Ed = /* @__PURE__ */ Q({
3218
3226
  __name: "DeleteWarningModal",
3219
3227
  props: {
3220
3228
  visible: {
@@ -3246,7 +3254,7 @@ const Fe = (e) => {
3246
3254
  }, 8, ["action-button-text", "title", "visible"]);
3247
3255
  };
3248
3256
  }
3249
- }), Ed = { class: "kong-ui-entities-partials-list" }, Cd = 1e3, kd = /* @__PURE__ */ Q({
3257
+ }), Cd = { class: "kong-ui-entities-partials-list" }, kd = 1e3, Id = /* @__PURE__ */ Q({
3250
3258
  __name: "RedisConfigurationList",
3251
3259
  props: {
3252
3260
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3299,7 +3307,7 @@ const Fe = (e) => {
3299
3307
  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
3308
  }), 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
3309
  async function k(C) {
3302
- const R = await s({ ...C, pageSize: Cd });
3310
+ const R = await s({ ...C, pageSize: kd });
3303
3311
  return R.data = R.data.filter((f) => f.type === Z.REDIS_CE || f.type === Z.REDIS_EE), R;
3304
3312
  }
3305
3313
  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 +3413,7 @@ const Fe = (e) => {
3405
3413
  immediate: !0
3406
3414
  }), (C, R) => {
3407
3415
  const f = $("KButton"), B = $("KDropdownItem"), mi = $("KClipboardProvider"), _i = $("KEmptyState");
3408
- return I(), J("div", Ed, [
3416
+ return I(), J("div", Cd, [
3409
3417
  g(r(Ai), {
3410
3418
  "cache-identifier": e.cacheIdentifier,
3411
3419
  "disable-sorting": E.value,
@@ -3463,7 +3471,7 @@ const Fe = (e) => {
3463
3471
  g(r(Pi), { tags: j }, null, 8, ["tags"])
3464
3472
  ]),
3465
3473
  plugins: S(({ row: j }) => [
3466
- g(pd, {
3474
+ g(md, {
3467
3475
  config: e.config,
3468
3476
  "partial-id": j.id,
3469
3477
  onClick: Si((st) => ve(j.id), ["stop"])
@@ -3474,7 +3482,7 @@ const Fe = (e) => {
3474
3482
  default: S(({ copyToClipboard: st }) => [
3475
3483
  g(B, {
3476
3484
  "data-testid": "action-entity-copy-id",
3477
- onClick: (jd) => lt(j, st)
3485
+ onClick: (Ld) => lt(j, st)
3478
3486
  }, {
3479
3487
  default: S(() => [
3480
3488
  le(U(r(d)("actions.copy_id")), 1)
@@ -3565,7 +3573,7 @@ const Fe = (e) => {
3565
3573
  ]),
3566
3574
  _: 1
3567
3575
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher-cache-key", "query"]),
3568
- g(Sd, {
3576
+ g(Ed, {
3569
3577
  visible: m.value,
3570
3578
  onClose: R[2] || (R[2] = (j) => m.value = !1)
3571
3579
  }, null, 8, ["visible"]),
@@ -3581,7 +3589,7 @@ const Fe = (e) => {
3581
3589
  onCancel: Re,
3582
3590
  onProceed: at
3583
3591
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
3584
- g(Td, {
3592
+ g(Sd, {
3585
3593
  config: e.config,
3586
3594
  "redis-configuration-id": c.value,
3587
3595
  visible: a.value,
@@ -3592,7 +3600,7 @@ const Fe = (e) => {
3592
3600
  ]);
3593
3601
  };
3594
3602
  }
3595
- }), Zd = /* @__PURE__ */ te(kd, [["__scopeId", "data-v-4e5be541"]]), Id = { class: "kong-ui-consumer-group-entity-config-card" }, Qd = /* @__PURE__ */ Q({
3603
+ }), Qd = /* @__PURE__ */ te(Id, [["__scopeId", "data-v-4e5be541"]]), Od = { class: "kong-ui-consumer-group-entity-config-card" }, Yd = /* @__PURE__ */ Q({
3596
3604
  __name: "RedisConfigurationConfigCard",
3597
3605
  props: {
3598
3606
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3915,7 +3923,7 @@ const Fe = (e) => {
3915
3923
  throw new Error("Invalid Redis type");
3916
3924
  }
3917
3925
  });
3918
- return (_, E) => (I(), J("div", Id, [
3926
+ return (_, E) => (I(), J("div", Od, [
3919
3927
  g(r(Mi), {
3920
3928
  "code-block-record-formatter": y,
3921
3929
  config: e.config,
@@ -3936,7 +3944,7 @@ const Fe = (e) => {
3936
3944
  }, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
3937
3945
  ]));
3938
3946
  }
3939
- }), Od = "12px";
3947
+ }), Rd = "12px";
3940
3948
  function pi(e) {
3941
3949
  const {
3942
3950
  redisType: t = "redis-ce"
@@ -3974,7 +3982,7 @@ function pi(e) {
3974
3982
  loadItems: l
3975
3983
  };
3976
3984
  }
3977
- const Rd = ["id"], xd = /* @__PURE__ */ Q({
3985
+ const xd = ["id"], Ad = /* @__PURE__ */ Q({
3978
3986
  __name: "RedisConfigurationFormModal",
3979
3987
  props: {
3980
3988
  visible: { type: Boolean },
@@ -4030,10 +4038,10 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4030
4038
  K("div", {
4031
4039
  id: `redis-modal-footer-${r(p)}`,
4032
4040
  class: "redis-modal-footer"
4033
- }, null, 8, Rd)
4041
+ }, null, 8, xd)
4034
4042
  ]),
4035
4043
  default: S(() => [
4036
- g(ud, {
4044
+ g(cd, {
4037
4045
  "action-teleport-target": y.value,
4038
4046
  config: a.value,
4039
4047
  "disabled-partial-type": l.value,
@@ -4047,13 +4055,13 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4047
4055
  }, 8, ["title", "visible"]);
4048
4056
  };
4049
4057
  }
4050
- }), Ad = /* @__PURE__ */ te(xd, [["__scopeId", "data-v-280b73f4"]]), Pd = { class: "selected-redis-config" }, $d = ["data-testid"], Vd = {
4058
+ }), Pd = /* @__PURE__ */ te(Ad, [["__scopeId", "data-v-280b73f4"]]), $d = { class: "selected-redis-config" }, Vd = ["data-testid"], Md = {
4051
4059
  class: "select-item-name",
4052
4060
  "data-testid": "selected-redis-config"
4053
- }, Md = {
4061
+ }, Dd = {
4054
4062
  class: "empty-redis-config",
4055
4063
  "data-testid": "empty-redis-config"
4056
- }, Dd = /* @__PURE__ */ Q({
4064
+ }, jd = /* @__PURE__ */ Q({
4057
4065
  inheritAttrs: !1,
4058
4066
  __name: "RedisConfigurationSelector",
4059
4067
  props: {
@@ -4106,14 +4114,14 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4106
4114
  onQueryChange: r(c)
4107
4115
  }), gn({
4108
4116
  "selected-item-template": S(({ item: k }) => [
4109
- K("div", Pd, U(k.name), 1)
4117
+ K("div", $d, U(k.name), 1)
4110
4118
  ]),
4111
4119
  "item-template": S(({ item: k }) => [
4112
4120
  K("div", {
4113
4121
  class: "plugin-form-redis-configuration-dropdown-item",
4114
4122
  "data-testid": `redis-configuration-dropdown-item-${k.name}`
4115
4123
  }, [
4116
- K("span", Vd, U(k.name), 1),
4124
+ K("span", Md, U(k.name), 1),
4117
4125
  g(s, {
4118
4126
  appearance: "info",
4119
4127
  class: "select-item-label"
@@ -4123,10 +4131,10 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4123
4131
  ]),
4124
4132
  _: 2
4125
4133
  }, 1024)
4126
- ], 8, $d)
4134
+ ], 8, Vd)
4127
4135
  ]),
4128
4136
  empty: S(() => [
4129
- K("div", Md, U(e.emptyStateText || r(o)("selector.empty_state")), 1)
4137
+ K("div", Dd, U(e.emptyStateText || r(o)("selector.empty_state")), 1)
4130
4138
  ]),
4131
4139
  _: 2
4132
4140
  }, [
@@ -4138,14 +4146,14 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4138
4146
  "data-testid": "new-redis-config-area",
4139
4147
  onClick: w
4140
4148
  }, [
4141
- g(r(yt), { size: r(Od) }, null, 8, ["size"]),
4149
+ g(r(yt), { size: r(Rd) }, null, 8, ["size"]),
4142
4150
  K("span", null, U(e.createButtonText || r(o)("selector.create_new")), 1)
4143
4151
  ])
4144
4152
  ]),
4145
4153
  key: "0"
4146
4154
  } : void 0
4147
4155
  ]), 1040, ["items", "loading", "model-value", "placeholder", "onQueryChange"]),
4148
- g(Ad, {
4156
+ g(Pd, {
4149
4157
  "partial-type": e.redisType,
4150
4158
  visible: u.value,
4151
4159
  onCreated: b,
@@ -4155,23 +4163,23 @@ const Rd = ["id"], xd = /* @__PURE__ */ Q({
4155
4163
  ], 64);
4156
4164
  };
4157
4165
  }
4158
- }), Yd = /* @__PURE__ */ te(Dd, [["__scopeId", "data-v-3c6e44d3"]]), Xd = {
4166
+ }), Xd = /* @__PURE__ */ te(jd, [["__scopeId", "data-v-3c6e44d3"]]), eu = {
4159
4167
  useLinkedPlugins: fi,
4160
4168
  useLinkedPluginsFetcher: Fe,
4161
4169
  useRedisConfigurationSelector: pi
4162
4170
  };
4163
4171
  export {
4164
4172
  q as AuthProvider,
4165
- Sd as DeleteWarningModal,
4166
- vd as LinkedPlugins,
4173
+ Ed as DeleteWarningModal,
4174
+ hd as LinkedPlugins,
4167
4175
  Z as PartialType,
4168
- Qd as RedisConfigurationConfigCard,
4169
- ud as RedisConfigurationForm,
4170
- Ad as RedisConfigurationFormModal,
4171
- Zd as RedisConfigurationList,
4172
- Yd as RedisConfigurationSelector,
4176
+ Yd as RedisConfigurationConfigCard,
4177
+ cd as RedisConfigurationForm,
4178
+ Pd as RedisConfigurationFormModal,
4179
+ Qd as RedisConfigurationList,
4180
+ Xd as RedisConfigurationSelector,
4173
4181
  T as RedisType,
4174
- Xd as composables,
4175
- Gd as constants,
4176
- Jd as helpers
4182
+ eu as composables,
4183
+ Jd as constants,
4184
+ Zd as helpers
4177
4185
  };