@kong-ui-public/entities-snis 3.2.2 → 3.2.4

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.
@@ -92,27 +92,27 @@ function li() {
92
92
  }
93
93
  const Jt = {
94
94
  useI18n: li
95
- }, Oe = "/v2/control-planes/{controlPlaneId}/core-entities", je = "/{workspace}", Fe = {
95
+ }, je = "/v2/control-planes/{controlPlaneId}/core-entities", Oe = "/{workspace}", Fe = {
96
96
  list: {
97
97
  konnect: {
98
- all: `${Oe}/snis`
98
+ all: `${je}/snis`
99
99
  },
100
100
  kongManager: {
101
- all: `${je}/snis`
101
+ all: `${Oe}/snis`
102
102
  }
103
103
  },
104
104
  form: {
105
105
  konnect: {
106
- create: `${Oe}/snis`,
107
- edit: `${Oe}/snis/{id}`,
108
- validate: `${Oe}/v1/schemas/json/sni/validate`,
109
- certificates: `${Oe}/certificates`
110
- },
111
- kongManager: {
112
106
  create: `${je}/snis`,
113
107
  edit: `${je}/snis/{id}`,
114
- validate: `${je}/schemas/snis/validate`,
108
+ validate: `${je}/v1/schemas/json/sni/validate`,
115
109
  certificates: `${je}/certificates`
110
+ },
111
+ kongManager: {
112
+ create: `${Oe}/snis`,
113
+ edit: `${Oe}/snis/{id}`,
114
+ validate: `${Oe}/schemas/snis/validate`,
115
+ certificates: `${Oe}/certificates`
116
116
  }
117
117
  }
118
118
  };
@@ -367,7 +367,7 @@ function Si(e, t, n, i = {
367
367
  }, 200), s = F(!1), u = F(""), d = F(""), c = F([]), f = F([]), p = F(void 0), k = m(t);
368
368
  let C = `${e.apiBaseUrl}${k}`;
369
369
  e.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
370
- const { isValidUuid: S } = Qt(), j = async () => {
370
+ const { isValidUuid: S } = Qt(), O = async () => {
371
371
  try {
372
372
  s.value = !0;
373
373
  const { data: h } = await r.get(`${C}?size=${n}`);
@@ -378,7 +378,7 @@ function Si(e, t, n, i = {
378
378
  s.value = !1;
379
379
  }
380
380
  }, y = F(""), W = async (h) => {
381
- var O, g, _;
381
+ var j, g, _;
382
382
  if (y.value !== h)
383
383
  if (y.value = h || "", p.value === void 0)
384
384
  try {
@@ -399,7 +399,7 @@ function Si(e, t, n, i = {
399
399
  })
400
400
  );
401
401
  const x = await Promise.all(U), Q = /* @__PURE__ */ new Set();
402
- c.value = [], (O = x == null ? void 0 : x.forEach) == null || O.call(x, (B) => {
402
+ c.value = [], (j = x == null ? void 0 : x.forEach) == null || j.call(x, (B) => {
403
403
  var q;
404
404
  (q = B == null ? void 0 : B.forEach) == null || q.call(B, (ie) => {
405
405
  Q.has(ie.id) || (Q.add(ie.id), c.value.push(ie));
@@ -429,7 +429,7 @@ function Si(e, t, n, i = {
429
429
  validationError: d,
430
430
  results: c,
431
431
  allRecords: p,
432
- loadItems: j,
432
+ loadItems: O,
433
433
  debouncedQueryChange: l
434
434
  };
435
435
  }
@@ -561,24 +561,24 @@ const en = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
561
561
  }, kt = (e) => e === "*" || e === "x" || e === "X", Ct = (e) => {
562
562
  const t = parseInt(e, 10);
563
563
  return isNaN(t) ? e : t;
564
- }, Ti = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Oi = (e, t) => {
564
+ }, Ti = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], ji = (e, t) => {
565
565
  if (kt(e) || kt(t))
566
566
  return 0;
567
567
  const [n, i] = Ti(Ct(e), Ct(t));
568
568
  return n > i ? 1 : n < i ? -1 : 0;
569
569
  }, St = (e, t) => {
570
570
  for (let n = 0; n < Math.max(e.length, t.length); n++) {
571
- const i = Oi(e[n] || "0", t[n] || "0");
571
+ const i = ji(e[n] || "0", t[n] || "0");
572
572
  if (i !== 0)
573
573
  return i;
574
574
  }
575
575
  return 0;
576
- }, ji = (e, t) => {
576
+ }, Oi = (e, t) => {
577
577
  const n = wt(e), i = wt(t), r = n.pop(), o = i.pop(), a = St(n, i);
578
578
  return a !== 0 ? a : r && o ? St(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
579
579
  }, At = (e, t, n) => {
580
580
  Fi(n);
581
- const i = ji(e, t);
581
+ const i = Oi(e, t);
582
582
  return tn[n].includes(i);
583
583
  }, tn = {
584
584
  ">": [1],
@@ -1203,21 +1203,21 @@ function Tr(e) {
1203
1203
  t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
1204
1204
  return n = r % 4 * 6, n === 0 ? (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)) : n === 18 ? (l.push(a >> 10 & 255), l.push(a >> 2 & 255)) : n === 12 && l.push(a >> 4 & 255), new Uint8Array(l);
1205
1205
  }
1206
- function Or(e) {
1206
+ function jr(e) {
1207
1207
  var t = "", n = 0, i, r, o = e.length, a = pt;
1208
1208
  for (i = 0; i < o; i++)
1209
1209
  i % 3 === 0 && i && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[i];
1210
1210
  return r = o % 3, r === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : r === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : r === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
1211
1211
  }
1212
- function jr(e) {
1212
+ function Or(e) {
1213
1213
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1214
1214
  }
1215
1215
  var wn = new ee("tag:yaml.org,2002:binary", {
1216
1216
  kind: "scalar",
1217
1217
  resolve: Nr,
1218
1218
  construct: Tr,
1219
- predicate: jr,
1220
- represent: Or
1219
+ predicate: Or,
1220
+ represent: jr
1221
1221
  }), Fr = Object.prototype.hasOwnProperty, Mr = Object.prototype.toString;
1222
1222
  function Er(e) {
1223
1223
  if (e === null)
@@ -1342,7 +1342,7 @@ for (var Ae = 0; Ae < 256; Ae++)
1342
1342
  function Jr(e, t) {
1343
1343
  this.input = e, this.filename = t.filename || null, this.schema = t.schema || ft, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1344
1344
  }
1345
- function On(e, t) {
1345
+ function jn(e, t) {
1346
1346
  var n = {
1347
1347
  name: e.filename,
1348
1348
  buffer: e.input.slice(0, -1),
@@ -1354,12 +1354,12 @@ function On(e, t) {
1354
1354
  return n.snippet = er(n), new ae(t, n);
1355
1355
  }
1356
1356
  function b(e, t) {
1357
- throw On(e, t);
1357
+ throw jn(e, t);
1358
1358
  }
1359
1359
  function He(e, t) {
1360
- e.onWarning && e.onWarning.call(null, On(e, t));
1360
+ e.onWarning && e.onWarning.call(null, jn(e, t));
1361
1361
  }
1362
- var Ot = {
1362
+ var jt = {
1363
1363
  YAML: function(e, t, n) {
1364
1364
  var i, r, o;
1365
1365
  e.version !== null && b(e, "duplication of %YAML directive"), n.length !== 1 && b(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), i === null && b(e, "ill-formed argument of the YAML directive"), r = parseInt(i[1], 10), o = parseInt(i[2], 10), r !== 1 && b(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && He(e, "unsupported YAML version of the document");
@@ -1386,7 +1386,7 @@ function he(e, t, n, i) {
1386
1386
  e.result += l;
1387
1387
  }
1388
1388
  }
1389
- function jt(e, t, n, i) {
1389
+ function Ot(e, t, n, i) {
1390
1390
  var r, o, a, l;
1391
1391
  for (Z.isObject(n) || b(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
1392
1392
  o = r[a], ye.call(t, o) || (t[o] = n[o], i[o] = !0);
@@ -1399,9 +1399,9 @@ function _e(e, t, n, i, r, o, a, l, s) {
1399
1399
  if (typeof r == "object" && Nt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
1400
1400
  if (Array.isArray(o))
1401
1401
  for (u = 0, d = o.length; u < d; u += 1)
1402
- jt(e, t, o[u], n);
1402
+ Ot(e, t, o[u], n);
1403
1403
  else
1404
- jt(e, t, o, n);
1404
+ Ot(e, t, o, n);
1405
1405
  else
1406
1406
  !e.json && !ye.call(n, r) && ye.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, b(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(t, r, {
1407
1407
  configurable: !0,
@@ -1505,7 +1505,7 @@ function Xr(e, t) {
1505
1505
  b(e, "unexpected end of the stream within a double quoted scalar");
1506
1506
  }
1507
1507
  function ea(e, t) {
1508
- var n = !0, i, r, o, a = e.tag, l, s = e.anchor, u, d, c, f, p, k = /* @__PURE__ */ Object.create(null), C, S, j, y;
1508
+ var n = !0, i, r, o, a = e.tag, l, s = e.anchor, u, d, c, f, p, k = /* @__PURE__ */ Object.create(null), C, S, O, y;
1509
1509
  if (y = e.input.charCodeAt(e.position), y === 91)
1510
1510
  d = 93, p = !1, l = [];
1511
1511
  else if (y === 123)
@@ -1515,7 +1515,7 @@ function ea(e, t) {
1515
1515
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), y = e.input.charCodeAt(++e.position); y !== 0; ) {
1516
1516
  if (H(e, !0, t), y = e.input.charCodeAt(e.position), y === d)
1517
1517
  return e.position++, e.tag = a, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
1518
- n ? y === 44 && b(e, "expected the node content, but found ','") : b(e, "missed comma between flow collection entries"), S = C = j = null, c = f = !1, y === 63 && (u = e.input.charCodeAt(e.position + 1), oe(u) && (c = f = !0, e.position++, H(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ne(e, t, Ve, !1, !0), S = e.tag, C = e.result, H(e, !0, t), y = e.input.charCodeAt(e.position), (f || e.line === i) && y === 58 && (c = !0, y = e.input.charCodeAt(++e.position), H(e, !0, t), Ne(e, t, Ve, !1, !0), j = e.result), p ? _e(e, l, k, S, C, j, i, r, o) : c ? l.push(_e(e, null, k, S, C, j, i, r, o)) : l.push(C), H(e, !0, t), y = e.input.charCodeAt(e.position), y === 44 ? (n = !0, y = e.input.charCodeAt(++e.position)) : n = !1;
1518
+ n ? y === 44 && b(e, "expected the node content, but found ','") : b(e, "missed comma between flow collection entries"), S = C = O = null, c = f = !1, y === 63 && (u = e.input.charCodeAt(e.position + 1), oe(u) && (c = f = !0, e.position++, H(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ne(e, t, Ve, !1, !0), S = e.tag, C = e.result, H(e, !0, t), y = e.input.charCodeAt(e.position), (f || e.line === i) && y === 58 && (c = !0, y = e.input.charCodeAt(++e.position), H(e, !0, t), Ne(e, t, Ve, !1, !0), O = e.result), p ? _e(e, l, k, S, C, O, i, r, o) : c ? l.push(_e(e, null, k, S, C, O, i, r, o)) : l.push(C), H(e, !0, t), y = e.input.charCodeAt(e.position), y === 44 ? (n = !0, y = e.input.charCodeAt(++e.position)) : n = !1;
1519
1519
  }
1520
1520
  b(e, "unexpected end of the stream within a flow collection");
1521
1521
  }
@@ -1583,12 +1583,12 @@ function Ft(e, t) {
1583
1583
  return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
1584
1584
  }
1585
1585
  function na(e, t, n) {
1586
- var i, r, o, a, l, s, u = e.tag, d = e.anchor, c = {}, f = /* @__PURE__ */ Object.create(null), p = null, k = null, C = null, S = !1, j = !1, y;
1586
+ var i, r, o, a, l, s, u = e.tag, d = e.anchor, c = {}, f = /* @__PURE__ */ Object.create(null), p = null, k = null, C = null, S = !1, O = !1, y;
1587
1587
  if (e.firstTabInLine !== -1)
1588
1588
  return !1;
1589
1589
  for (e.anchor !== null && (e.anchorMap[e.anchor] = c), y = e.input.charCodeAt(e.position); y !== 0; ) {
1590
1590
  if (!S && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, b(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (y === 63 || y === 58) && oe(i))
1591
- y === 63 ? (S && (_e(e, c, f, p, k, null, a, l, s), p = k = C = null), j = !0, S = !0, r = !0) : S ? (S = !1, r = !0) : b(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, y = i;
1591
+ y === 63 ? (S && (_e(e, c, f, p, k, null, a, l, s), p = k = C = null), O = !0, S = !0, r = !0) : S ? (S = !1, r = !0) : b(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, y = i;
1592
1592
  else {
1593
1593
  if (a = e.line, l = e.lineStart, s = e.position, !Ne(e, n, An, !1, !0))
1594
1594
  break;
@@ -1596,12 +1596,12 @@ function na(e, t, n) {
1596
1596
  for (y = e.input.charCodeAt(e.position); ke(y); )
1597
1597
  y = e.input.charCodeAt(++e.position);
1598
1598
  if (y === 58)
1599
- y = e.input.charCodeAt(++e.position), oe(y) || b(e, "a whitespace character is expected after the key-value separator within a block mapping"), S && (_e(e, c, f, p, k, null, a, l, s), p = k = C = null), j = !0, S = !1, r = !1, p = e.tag, k = e.result;
1600
- else if (j)
1599
+ y = e.input.charCodeAt(++e.position), oe(y) || b(e, "a whitespace character is expected after the key-value separator within a block mapping"), S && (_e(e, c, f, p, k, null, a, l, s), p = k = C = null), O = !0, S = !1, r = !1, p = e.tag, k = e.result;
1600
+ else if (O)
1601
1601
  b(e, "can not read an implicit mapping pair; a colon is missed");
1602
1602
  else
1603
1603
  return e.tag = u, e.anchor = d, !0;
1604
- } else if (j)
1604
+ } else if (O)
1605
1605
  b(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1606
1606
  else
1607
1607
  return e.tag = u, e.anchor = d, !0;
@@ -1611,7 +1611,7 @@ function na(e, t, n) {
1611
1611
  else if (e.lineIndent < t)
1612
1612
  break;
1613
1613
  }
1614
- return S && _e(e, c, f, p, k, null, a, l, s), j && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), j;
1614
+ return S && _e(e, c, f, p, k, null, a, l, s), O && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), O;
1615
1615
  }
1616
1616
  function ia(e) {
1617
1617
  var t, n = !1, i = !1, r, o, a;
@@ -1697,7 +1697,7 @@ function oa(e) {
1697
1697
  a = e.input.charCodeAt(++e.position);
1698
1698
  r.push(e.input.slice(n, e.position));
1699
1699
  }
1700
- a !== 0 && gt(e), ye.call(Ot, i) ? Ot[i](e, i, r) : He(e, 'unknown document directive "' + i + '"');
1700
+ a !== 0 && gt(e), ye.call(jt, i) ? jt[i](e, i, r) : He(e, 'unknown document directive "' + i + '"');
1701
1701
  }
1702
1702
  if (H(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, H(e, !0, -1)) : o && b(e, "directives end mark is expected"), Ne(e, e.lineIndent - 1, ze, !1, !0), H(e, !0, -1), e.checkLineBreaks && Vr.test(e.input.slice(t, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Je(e)) {
1703
1703
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, H(e, !0, -1));
@@ -1708,7 +1708,7 @@ function oa(e) {
1708
1708
  else
1709
1709
  return;
1710
1710
  }
1711
- function jn(e, t) {
1711
+ function On(e, t) {
1712
1712
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
1713
1713
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
1714
1714
  var n = new Jr(e, t), i = e.indexOf("\0");
@@ -1720,14 +1720,14 @@ function jn(e, t) {
1720
1720
  }
1721
1721
  function la(e, t, n) {
1722
1722
  t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
1723
- var i = jn(e, n);
1723
+ var i = On(e, n);
1724
1724
  if (typeof t != "function")
1725
1725
  return i;
1726
1726
  for (var r = 0, o = i.length; r < o; r += 1)
1727
1727
  t(i[r]);
1728
1728
  }
1729
1729
  function sa(e, t) {
1730
- var n = jn(e, t);
1730
+ var n = On(e, t);
1731
1731
  if (n.length !== 0) {
1732
1732
  if (n.length === 1)
1733
1733
  return n[0];
@@ -1779,7 +1779,7 @@ function Ta(e, t) {
1779
1779
  a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && En.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
1780
1780
  return n;
1781
1781
  }
1782
- function Oa(e) {
1782
+ function ja(e) {
1783
1783
  var t, n, i;
1784
1784
  if (t = e.toString(16).toUpperCase(), e <= 255)
1785
1785
  n = "x", i = 2;
@@ -1791,9 +1791,9 @@ function Oa(e) {
1791
1791
  throw new ae("code point within a string may not be greater than 0xFFFFFFFF");
1792
1792
  return "\\" + n + Z.repeat("0", i - t.length) + t;
1793
1793
  }
1794
- var ja = 1, Le = 2;
1794
+ var Oa = 1, Le = 2;
1795
1795
  function Fa(e) {
1796
- this.schema = e.schema || ft, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Ta(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Le : ja, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
1796
+ this.schema = e.schema || ft, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Ta(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Le : Oa, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
1797
1797
  }
1798
1798
  function Mt(e, t) {
1799
1799
  for (var n = Z.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
@@ -1940,7 +1940,7 @@ function Ut(e, t) {
1940
1940
  }
1941
1941
  function Ra(e) {
1942
1942
  for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
1943
- n = Me(e, r), i = ne[n], !i && Ue(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || Oa(n);
1943
+ n = Me(e, r), i = ne[n], !i && Ue(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || ja(n);
1944
1944
  return t;
1945
1945
  }
1946
1946
  function Ba(e, t, n) {
@@ -2111,7 +2111,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2111
2111
  for (const [i, r] of t)
2112
2112
  n[i] = r;
2113
2113
  return n;
2114
- }, uo = (e) => (Be("data-v-1d2a8d30"), e = e(), Ke(), e), po = ["aria-hidden"], fo = {
2114
+ }, uo = (e) => (Be("data-v-f68c7837"), e = e(), Ke(), e), po = ["aria-hidden"], fo = {
2115
2115
  key: 0,
2116
2116
  "data-testid": "kui-icon-svg-title"
2117
2117
  }, go = /* @__PURE__ */ uo(() => /* @__PURE__ */ L("path", {
@@ -2210,7 +2210,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2210
2210
  _: 1
2211
2211
  }, 8, ["aria-hidden", "style"]));
2212
2212
  }
2213
- }), mo = /* @__PURE__ */ Ge(ho, [["__scopeId", "data-v-1d2a8d30"]]), yo = (e) => (Be("data-v-219f8484"), e = e(), Ke(), e), vo = ["aria-hidden"], bo = {
2213
+ }), mo = /* @__PURE__ */ Ge(ho, [["__scopeId", "data-v-f68c7837"]]), yo = (e) => (Be("data-v-84c4811e"), e = e(), Ke(), e), vo = ["aria-hidden"], bo = {
2214
2214
  key: 0,
2215
2215
  "data-testid": "kui-icon-svg-title"
2216
2216
  }, wo = /* @__PURE__ */ yo(() => /* @__PURE__ */ L("path", {
@@ -2309,7 +2309,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2309
2309
  _: 1
2310
2310
  }, 8, ["aria-hidden", "style"]));
2311
2311
  }
2312
- }), Co = /* @__PURE__ */ Ge(ko, [["__scopeId", "data-v-219f8484"]]), So = (e) => (Be("data-v-ed11facd"), e = e(), Ke(), e), Ao = ["aria-hidden"], Io = {
2312
+ }), Co = /* @__PURE__ */ Ge(ko, [["__scopeId", "data-v-84c4811e"]]), So = (e) => (Be("data-v-26ad8dc6"), e = e(), Ke(), e), Ao = ["aria-hidden"], Io = {
2313
2313
  key: 0,
2314
2314
  "data-testid": "kui-icon-svg-title"
2315
2315
  }, xo = /* @__PURE__ */ So(() => /* @__PURE__ */ L("path", {
@@ -2408,7 +2408,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2408
2408
  _: 1
2409
2409
  }, 8, ["aria-hidden", "style"]));
2410
2410
  }
2411
- }), No = /* @__PURE__ */ Ge(_o, [["__scopeId", "data-v-ed11facd"]]), To = (e) => (Be("data-v-cf4e7d0b"), e = e(), Ke(), e), Oo = ["aria-hidden"], jo = {
2411
+ }), No = /* @__PURE__ */ Ge(_o, [["__scopeId", "data-v-26ad8dc6"]]), To = (e) => (Be("data-v-d43c21f8"), e = e(), Ke(), e), jo = ["aria-hidden"], Oo = {
2412
2412
  key: 0,
2413
2413
  "data-testid": "kui-icon-svg-title"
2414
2414
  }, Fo = /* @__PURE__ */ To(() => /* @__PURE__ */ L("path", {
@@ -2500,14 +2500,14 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2500
2500
  width: "100%",
2501
2501
  xmlns: "http://www.w3.org/2000/svg"
2502
2502
  }, [
2503
- e.title ? (w(), $("title", jo, E(e.title), 1)) : G("", !0),
2503
+ e.title ? (w(), $("title", Oo, E(e.title), 1)) : G("", !0),
2504
2504
  Fo
2505
- ], 8, Oo))
2505
+ ], 8, jo))
2506
2506
  ]),
2507
2507
  _: 1
2508
2508
  }, 8, ["aria-hidden", "style"]));
2509
2509
  }
2510
- }), Eo = /* @__PURE__ */ Ge(Mo, [["__scopeId", "data-v-cf4e7d0b"]]), $o = ["novalidate"], qo = {
2510
+ }), Eo = /* @__PURE__ */ Ge(Mo, [["__scopeId", "data-v-d43c21f8"]]), $o = ["novalidate"], qo = {
2511
2511
  class: "form-actions",
2512
2512
  "data-testid": "form-actions"
2513
2513
  }, Lo = /* @__PURE__ */ te({
@@ -2580,14 +2580,14 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2580
2580
  setup(e, { emit: t }) {
2581
2581
  var n;
2582
2582
  const i = t, r = e, o = Zt(), { i18n: { t: a } } = we.useI18n(), { getMessageFromError: l } = we.useErrors(), { axiosInstance: s } = we.useAxios((n = r.config) == null ? void 0 : n.axiosRequestConfig), u = F(!1), d = F(!1), c = F(""), f = I(() => r.canSubmit === !1 || r.isReadonly), p = F(!1), k = I(() => {
2583
- var h, O;
2583
+ var h, j;
2584
2584
  let g = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2585
- return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((h = r.config) == null ? void 0 : h.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), r.editId ? (g = g.replace(/{id}/gi, r.editId), g) : (g = g.replace(/\/{id}/gi, ""), g);
2585
+ return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((h = r.config) == null ? void 0 : h.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (j = r.config) != null && j.workspace ? `/${r.config.workspace}` : "")), r.editId ? (g = g.replace(/{id}/gi, r.editId), g) : (g = g.replace(/\/{id}/gi, ""), g);
2586
2586
  }), C = () => {
2587
2587
  p.value = !p.value;
2588
2588
  }, S = () => {
2589
- r.config.cancelRoute ? o.push(r.config.cancelRoute) : j();
2590
- }, j = () => {
2589
+ r.config.cancelRoute ? o.push(r.config.cancelRoute) : O();
2590
+ }, O = () => {
2591
2591
  i("cancel");
2592
2592
  }, y = () => {
2593
2593
  f.value || i("submit");
@@ -2610,12 +2610,12 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2610
2610
  const { data: h } = await s.get(k.value);
2611
2611
  i("fetch:success", h);
2612
2612
  } catch (h) {
2613
- const O = l(h);
2614
- c.value = O.startsWith("code") ? a("baseForm.errors.edit") : O, d.value = !0, i("fetch:error", h);
2613
+ const j = l(h);
2614
+ c.value = j.startsWith("code") ? a("baseForm.errors.edit") : j, d.value = !0, i("fetch:error", h);
2615
2615
  } finally {
2616
2616
  u.value = !1;
2617
2617
  }
2618
- }), (h, O) => {
2618
+ }), (h, j) => {
2619
2619
  const g = R("KSkeleton"), _ = R("KEmptyState"), U = R("KAlert"), x = R("KButton"), Q = R("KTabs"), B = R("KSlideout");
2620
2620
  return w(), P(Ce(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
2621
2621
  default: v(() => [
@@ -2637,7 +2637,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2637
2637
  key: 2,
2638
2638
  "data-testid": "form-content",
2639
2639
  novalidate: r.noValidate,
2640
- onReset: it(j, ["prevent"]),
2640
+ onReset: it(O, ["prevent"]),
2641
2641
  onSubmit: it(y, ["prevent"])
2642
2642
  }, [
2643
2643
  le(h.$slots, "default", {}, void 0, !0),
@@ -2652,7 +2652,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2652
2652
  N(x, {
2653
2653
  appearance: "tertiary",
2654
2654
  "data-testid": "form-view-configuration",
2655
- onClick: O[0] || (O[0] = (q) => C())
2655
+ onClick: j[0] || (j[0] = (q) => C())
2656
2656
  }, {
2657
2657
  default: v(() => [
2658
2658
  J(E(m(a)("baseForm.actions.viewConfiguration")), 1)
@@ -2691,7 +2691,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2691
2691
  "offset-top": 60,
2692
2692
  title: m(a)("baseForm.configuration.title"),
2693
2693
  visible: p.value,
2694
- onClose: O[1] || (O[1] = (q) => C())
2694
+ onClose: j[1] || (j[1] = (q) => C())
2695
2695
  }, {
2696
2696
  default: v(() => [
2697
2697
  L("div", null, E(m(a)("baseForm.configuration.message")), 1),
@@ -2746,32 +2746,32 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2746
2746
  var S;
2747
2747
  return ((S = n.value) == null ? void 0 : S.querySelector('[data-truncate="true"]')) || null;
2748
2748
  }), r = I(() => {
2749
- var S, j;
2749
+ var S, O;
2750
2750
  const y = (S = t.rowEl) == null ? void 0 : S.querySelectorAll("td");
2751
- return y ? ((j = y[0]) == null ? void 0 : j.getAttribute("data-testid")) === t.keyName : !1;
2751
+ return y ? ((O = y[0]) == null ? void 0 : O.getAttribute("data-testid")) === t.keyName : !1;
2752
2752
  }), o = I(() => r.value || t.tooltip);
2753
2753
  let a;
2754
2754
  const l = () => {
2755
2755
  a && (a.disconnect(), a = void 0);
2756
2756
  }, s = () => {
2757
- var S, j, y;
2757
+ var S, O, y;
2758
2758
  let W = ((S = n.value) == null ? void 0 : S.clientWidth) || 0;
2759
2759
  if (n.value && "getComputedStyle" in window) {
2760
2760
  const h = window.getComputedStyle(n.value);
2761
2761
  W -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
2762
2762
  }
2763
- d.value = ((j = i.value) == null ? void 0 : j.getBoundingClientRect().width) || 0, c.value = W, f.value = ((y = u.value) == null ? void 0 : y.innerText) || "";
2763
+ d.value = ((O = i.value) == null ? void 0 : O.getBoundingClientRect().width) || 0, c.value = W, f.value = ((y = u.value) == null ? void 0 : y.innerText) || "";
2764
2764
  }, u = F({}), d = F(0), c = F(0), f = F(""), p = I(() => [i.value, n.value]), k = me(
2765
2765
  p,
2766
2766
  (S) => {
2767
2767
  if (o.value && (l(), "ResizeObserver" in window && window)) {
2768
- a = new ResizeObserver((j) => {
2768
+ a = new ResizeObserver((O) => {
2769
2769
  window.requestAnimationFrame(() => {
2770
- !Array.isArray(j) || !j.length || s();
2770
+ !Array.isArray(O) || !O.length || s();
2771
2771
  });
2772
2772
  });
2773
- for (const j of S)
2774
- j && a.observe(j);
2773
+ for (const O of S)
2774
+ O && a.observe(O);
2775
2775
  }
2776
2776
  },
2777
2777
  { immediate: !0, flush: "post", deep: !0 }
@@ -2780,7 +2780,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2780
2780
  s();
2781
2781
  }), Qn(() => {
2782
2782
  k();
2783
- }), (S, j) => {
2783
+ }), (S, O) => {
2784
2784
  const y = R("KTooltip");
2785
2785
  return w(), $("span", {
2786
2786
  ref_key: "contentRef",
@@ -2976,14 +2976,14 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
2976
2976
  i("click:row", _);
2977
2977
  }), S = (g) => {
2978
2978
  i("sort", g);
2979
- }, { setTablePreferences: j, getTablePreferences: y } = di(), W = F(y(a.value)), h = I(() => {
2979
+ }, { setTablePreferences: O, getTablePreferences: y } = di(), W = F(y(a.value)), h = I(() => {
2980
2980
  const g = y(a.value);
2981
2981
  return {
2982
2982
  ...n.initialFetcherParams,
2983
2983
  ...g
2984
2984
  };
2985
- }), O = (g) => {
2986
- W.value = g, a.value && j(a.value, g);
2985
+ }), j = (g) => {
2986
+ W.value = g, a.value && O(a.value, g);
2987
2987
  };
2988
2988
  return (g, _) => {
2989
2989
  const U = R("KButton"), x = R("KDropdown"), Q = R("KTable"), B = R("KCard");
@@ -3024,7 +3024,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
3024
3024
  onEmptyStateActionClick: p,
3025
3025
  "onRow:click": C.value,
3026
3026
  onSort: _[0] || (_[0] = (q) => S(q)),
3027
- "onUpdate:tablePreferences": O
3027
+ "onUpdate:tablePreferences": j
3028
3028
  }, zt({
3029
3029
  toolbar: v(({ state: q }) => [
3030
3030
  fe(L("div", Po, [
@@ -3270,23 +3270,23 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
3270
3270
  setup(e, { emit: t }) {
3271
3271
  const { i18n: { t: n } } = we.useI18n(), i = e, r = t, o = F(!1), a = F({}), l = F(/* @__PURE__ */ new Set()), s = I(() => {
3272
3272
  const h = [];
3273
- return new URLSearchParams(i.modelValue).forEach((O, g) => {
3274
- O !== "" && h.push(g);
3273
+ return new URLSearchParams(i.modelValue).forEach((j, g) => {
3274
+ j !== "" && h.push(g);
3275
3275
  }), h;
3276
3276
  }), u = I(() => {
3277
3277
  const h = i.config.fields;
3278
- return Object.keys(h).filter((O) => {
3278
+ return Object.keys(h).filter((j) => {
3279
3279
  var g;
3280
- return (g = h == null ? void 0 : h[O]) == null ? void 0 : g.searchable;
3281
- }).map((O) => ({
3282
- label: h[O].label || O,
3283
- value: O,
3280
+ return (g = h == null ? void 0 : h[j]) == null ? void 0 : g.searchable;
3281
+ }).map((j) => ({
3282
+ label: h[j].label || j,
3283
+ value: j,
3284
3284
  expanded: !1
3285
3285
  }));
3286
3286
  });
3287
3287
  me(() => i.modelValue, (h) => {
3288
- a.value = {}, new URLSearchParams(h).forEach((O, g) => {
3289
- a.value[g] = O;
3288
+ a.value = {}, new URLSearchParams(h).forEach((j, g) => {
3289
+ a.value[g] = j;
3290
3290
  });
3291
3291
  });
3292
3292
  const d = () => {
@@ -3298,15 +3298,15 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
3298
3298
  }, p = () => {
3299
3299
  f("");
3300
3300
  }, k = (h) => `filter-${h}`, C = (h) => {
3301
- var O, g;
3302
- return (((g = (O = i.config.schema) == null ? void 0 : O[h]) == null ? void 0 : g.values) ?? []).map((_) => ({
3301
+ var j, g;
3302
+ return (((g = (j = i.config.schema) == null ? void 0 : j[h]) == null ? void 0 : g.values) ?? []).map((_) => ({
3303
3303
  value: _,
3304
3304
  label: _
3305
3305
  }));
3306
3306
  }, S = (h) => {
3307
- var O, g;
3308
- return ((g = (O = i.config.schema) == null ? void 0 : O[h]) == null ? void 0 : g.type) ?? "text";
3309
- }, j = (h) => {
3307
+ var j, g;
3308
+ return ((g = (j = i.config.schema) == null ? void 0 : j[h]) == null ? void 0 : g.type) ?? "text";
3309
+ }, O = (h) => {
3310
3310
  a.value = {
3311
3311
  ...a.value,
3312
3312
  [h]: ""
@@ -3314,10 +3314,10 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
3314
3314
  }, y = () => {
3315
3315
  a.value = {}, W(!0);
3316
3316
  }, W = (h = !1) => {
3317
- const O = Object.keys(a.value).reduce((g, _) => (a.value[_] && (g[_] = `${a.value[_]}`), g), {});
3318
- h && (o.value = !1), r("update:modelValue", new URLSearchParams(O).toString());
3317
+ const j = Object.keys(a.value).reduce((g, _) => (a.value[_] && (g[_] = `${a.value[_]}`), g), {});
3318
+ h && (o.value = !1), r("update:modelValue", new URLSearchParams(j).toString());
3319
3319
  };
3320
- return (h, O) => {
3320
+ return (h, j) => {
3321
3321
  const g = R("KInput"), _ = R("KButton"), U = R("KSelect");
3322
3322
  return e.config.isExactMatch ? (w(), P(g, {
3323
3323
  key: 0,
@@ -3411,7 +3411,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
3411
3411
  appearance: "tertiary",
3412
3412
  "data-testid": "apply-filter",
3413
3413
  size: "small",
3414
- onClick: O[0] || (O[0] = (q) => W(!0))
3414
+ onClick: j[0] || (j[0] = (q) => W(!0))
3415
3415
  }, {
3416
3416
  default: v(() => [
3417
3417
  J(E(m(n)("filter.applyButtonText")), 1)
@@ -3422,7 +3422,7 @@ const so = { class: "yaml-config" }, co = /* @__PURE__ */ te({
3422
3422
  appearance: "tertiary",
3423
3423
  "data-testid": "clear-filter",
3424
3424
  size: "small",
3425
- onClick: (q) => j(x.value)
3425
+ onClick: (q) => O(x.value)
3426
3426
  }, {
3427
3427
  default: v(() => [
3428
3428
  J(E(m(n)("filter.clearButtonText")), 1)
@@ -3588,7 +3588,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
3588
3588
  for (const [i, r] of t)
3589
3589
  n[i] = r;
3590
3590
  return n;
3591
- }, Tl = (e) => (Be("data-v-1d2a8d30"), e = e(), Ke(), e), Ol = ["aria-hidden"], jl = {
3591
+ }, Tl = (e) => (Be("data-v-f68c7837"), e = e(), Ke(), e), jl = ["aria-hidden"], Ol = {
3592
3592
  key: 0,
3593
3593
  "data-testid": "kui-icon-svg-title"
3594
3594
  }, Fl = /* @__PURE__ */ Tl(() => /* @__PURE__ */ L("path", {
@@ -3680,14 +3680,14 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
3680
3680
  width: "100%",
3681
3681
  xmlns: "http://www.w3.org/2000/svg"
3682
3682
  }, [
3683
- e.title ? (w(), $("title", jl, E(e.title), 1)) : G("", !0),
3683
+ e.title ? (w(), $("title", Ol, E(e.title), 1)) : G("", !0),
3684
3684
  Fl
3685
- ], 8, Ol))
3685
+ ], 8, jl))
3686
3686
  ]),
3687
3687
  _: 1
3688
3688
  }, 8, ["aria-hidden", "style"]));
3689
3689
  }
3690
- }), El = /* @__PURE__ */ Nl(Ml, [["__scopeId", "data-v-1d2a8d30"]]), $l = { class: "kong-ui-entities-snis-list" }, ql = { key: 1 }, Ll = { key: 1 }, Ul = /* @__PURE__ */ te({
3690
+ }), El = /* @__PURE__ */ Nl(Ml, [["__scopeId", "data-v-f68c7837"]]), $l = { class: "kong-ui-entities-snis-list" }, ql = { key: 1 }, Ll = { key: 1 }, Ul = /* @__PURE__ */ te({
3691
3691
  __name: "SniList",
3692
3692
  props: {
3693
3693
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3761,7 +3761,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
3761
3761
  };
3762
3762
  }), { fetcher: k, fetcherState: C } = xl(i.config, c.value), S = () => {
3763
3763
  f.value = "";
3764
- }, j = () => {
3764
+ }, O = () => {
3765
3765
  a.value++;
3766
3766
  }, y = F(null), W = F({
3767
3767
  ctaPath: i.config.createRoute,
@@ -3783,7 +3783,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
3783
3783
  field: "id",
3784
3784
  message: r("copy.success", { val: Y })
3785
3785
  });
3786
- }, O = (T, V) => {
3786
+ }, j = (T, V) => {
3787
3787
  const Y = JSON.stringify(T);
3788
3788
  if (!V(Y)) {
3789
3789
  n("copy:error", {
@@ -3847,7 +3847,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
3847
3847
  "table-headers": m(u),
3848
3848
  "use-action-outside": e.useActionOutside,
3849
3849
  onClearSearchInput: S,
3850
- onSort: j
3850
+ onSort: O
3851
3851
  }, {
3852
3852
  "toolbar-filter": v(() => [
3853
3853
  N(m(pl), {
@@ -3932,7 +3932,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
3932
3932
  default: v(({ copyToClipboard: K }) => [
3933
3933
  N(ue, {
3934
3934
  "data-testid": "action-entity-copy-json",
3935
- onClick: (Hn) => O(D, K)
3935
+ onClick: (Hn) => j(D, K)
3936
3936
  }, {
3937
3937
  default: v(() => [
3938
3938
  J(E(m(r)("actions.copy_json")), 1)
@@ -4038,7 +4038,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
4038
4038
  var M, z;
4039
4039
  let A = `${i.config.apiBaseUrl}${Fe.form[i.config.app].validate}`;
4040
4040
  return i.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((M = i.config) == null ? void 0 : M.controlPlaneId) || "") : i.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (z = i.config) != null && z.workspace ? `/${i.config.workspace}` : "")), A = A.replace(/{id}/gi, i.sniId), A;
4041
- }), j = I(() => {
4041
+ }), O = I(() => {
4042
4042
  var M, z;
4043
4043
  let A = `${i.config.apiBaseUrl}${Fe.form[i.config.app][u.value]}`;
4044
4044
  return i.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((M = i.config) == null ? void 0 : M.controlPlaneId) || "") : i.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (z = i.config) != null && z.workspace ? `/${i.config.workspace}` : "")), A = A.replace(/{id}/gi, i.sniId), A;
@@ -4054,7 +4054,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
4054
4054
  try {
4055
4055
  c.isReadonly = !0;
4056
4056
  let K;
4057
- await l.post(S.value, y.value), u.value === "create" ? K = await l.post(j.value, y.value) : u.value === "edit" && (K = ((A = i.config) == null ? void 0 : A.app) === "konnect" ? await l.put(j.value, y.value) : await l.patch(j.value, y.value)), c.fields.name = ((M = K == null ? void 0 : K.data) == null ? void 0 : M.name) || "", c.fields.tags = ((ue = (z = K == null ? void 0 : K.data) == null ? void 0 : z.tags) == null ? void 0 : ue.join(", ")) || "", c.fields.certificate_id = ((D = (re = K == null ? void 0 : K.data) == null ? void 0 : re.certificate) == null ? void 0 : D.id) || "", Object.assign(f, c.fields), n("update", K == null ? void 0 : K.data);
4057
+ await l.post(S.value, y.value), u.value === "create" ? K = await l.post(O.value, y.value) : u.value === "edit" && (K = ((A = i.config) == null ? void 0 : A.app) === "konnect" ? await l.put(O.value, y.value) : await l.patch(O.value, y.value)), c.fields.name = ((M = K == null ? void 0 : K.data) == null ? void 0 : M.name) || "", c.fields.tags = ((ue = (z = K == null ? void 0 : K.data) == null ? void 0 : z.tags) == null ? void 0 : ue.join(", ")) || "", c.fields.certificate_id = ((D = (re = K == null ? void 0 : K.data) == null ? void 0 : re.certificate) == null ? void 0 : D.id) || "", Object.assign(f, c.fields), n("update", K == null ? void 0 : K.data);
4058
4058
  } catch (K) {
4059
4059
  c.errorMessage = a(K), n("error", K);
4060
4060
  } finally {
@@ -4062,7 +4062,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
4062
4062
  }
4063
4063
  }, {
4064
4064
  debouncedQueryChange: h,
4065
- loading: O,
4065
+ loading: j,
4066
4066
  allRecords: g,
4067
4067
  error: _,
4068
4068
  validationError: U,
@@ -4162,7 +4162,7 @@ const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
4162
4162
  "filter-function": () => !0,
4163
4163
  items: T.value,
4164
4164
  label: m(o)("form.fields.certificate_id.label"),
4165
- loading: m(O),
4165
+ loading: m(j),
4166
4166
  placeholder: m(o)("form.fields.certificate_id.placeholder"),
4167
4167
  readonly: c.isReadonly,
4168
4168
  required: "",