@kong-ui-public/entities-snis 2.1.11 → 2.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as ee, ref as C, computed as S, watch as ae, renderSlot as G, createCommentVNode as X, unref as s, onBeforeMount as xe, resolveComponent as K, openBlock as k, createBlock as U, withCtx as p, createElementVNode as M, toDisplayString as $, createElementBlock as q, withModifiers as he, createVNode as x, createTextVNode as J, createSlots as ze, withDirectives as fe, vShow as ye, renderList as Ce, Fragment as We, useSlots as st, normalizeClass as be, onMounted as ct, onUnmounted as ut, inject as dt, resolveDynamicComponent as _e, mergeProps as Oe, normalizeStyle as pt, pushScopeId as ft, popScopeId as yt, Teleport as mt, reactive as Me } from "vue";
2
- import { createI18n as Te, i18nTComponent as Je } from "@kong-ui-public/i18n";
3
- import gt from "axios";
1
+ import { defineComponent as ee, ref as C, computed as S, watch as ne, renderSlot as G, createCommentVNode as X, unref as s, onBeforeMount as Ce, resolveComponent as j, openBlock as b, createBlock as D, withCtx as f, createElementVNode as $, toDisplayString as M, createElementBlock as q, withModifiers as be, createVNode as x, createTextVNode as J, createSlots as We, withDirectives as me, vShow as ye, renderList as Te, Fragment as Je, useSlots as ct, normalizeClass as ke, onMounted as ut, onUnmounted as dt, inject as pt, resolveDynamicComponent as Ie, mergeProps as Ke, normalizeStyle as ft, pushScopeId as mt, popScopeId as yt, Teleport as gt, reactive as $e } from "vue";
2
+ import { createI18n as Ee, i18nTComponent as Ye } from "@kong-ui-public/i18n";
3
+ import vt from "axios";
4
4
  import "@kong/kongponents";
5
- import { useRouter as Ye } from "vue-router";
6
- const vt = {
5
+ import { useRouter as Ze } from "vue-router";
6
+ const ht = {
7
7
  create: "New SNI",
8
8
  copy_id: "Copy ID",
9
9
  copy_json: "Copy JSON",
@@ -11,10 +11,10 @@ const vt = {
11
11
  delete: "Delete",
12
12
  clear: "Clear",
13
13
  loading: "Loading..."
14
- }, ht = {
14
+ }, bt = {
15
15
  placeholder: "Filter by exact name or ID",
16
16
  no_results: "No results found"
17
- }, bt = {
17
+ }, kt = {
18
18
  title: "SNIs",
19
19
  list: {
20
20
  toolbar_actions: {
@@ -31,7 +31,7 @@ const vt = {
31
31
  description: "SNIs are used to map hostnames to a certificate."
32
32
  }
33
33
  }
34
- }, kt = {
34
+ }, wt = {
35
35
  sections: {
36
36
  general: {
37
37
  title: "General Information",
@@ -59,7 +59,7 @@ const vt = {
59
59
  footer: "Search by exact ID to find certificates not included in the list"
60
60
  }
61
61
  }
62
- }, wt = {
62
+ }, St = {
63
63
  delete: "The SNI could not be deleted at this time.",
64
64
  general: "SNIs could not be retrieved",
65
65
  certificates: {
@@ -67,32 +67,32 @@ const vt = {
67
67
  invalid: "Please select a valid certificate ID"
68
68
  },
69
69
  copy: "Failed to copy to clipboard"
70
- }, St = {
70
+ }, _t = {
71
71
  success: "Copied {val} to clipboard",
72
72
  success_brief: "Successfully copied to clipboard"
73
- }, _t = {
74
- actions: vt,
75
- search: ht,
76
- snis: bt,
77
- form: kt,
73
+ }, It = {
74
+ actions: ht,
75
+ search: bt,
76
+ snis: kt,
77
+ form: wt,
78
78
  delete: {
79
79
  title: "Delete an SNI",
80
80
  description: "This action cannot be reversed so make sure to check the SNI usage before deleting."
81
81
  },
82
- errors: wt,
83
- copy: St
82
+ errors: St,
83
+ copy: _t
84
84
  };
85
- function It() {
86
- const e = Te("en-us", _t);
85
+ function xt() {
86
+ const e = Ee("en-us", It);
87
87
  return {
88
88
  i18n: e,
89
- i18nT: Je(e)
89
+ i18nT: Ye(e)
90
90
  // Translation component <i18n-t>
91
91
  };
92
92
  }
93
- const Ze = {
94
- useI18n: It
95
- }, pe = {
93
+ const Ge = {
94
+ useI18n: xt
95
+ }, fe = {
96
96
  list: {
97
97
  konnect: {
98
98
  all: "/api/runtime_groups/{controlPlaneId}/snis"
@@ -116,61 +116,61 @@ const Ze = {
116
116
  }
117
117
  }
118
118
  };
119
- var Ge = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Ge || {}), ve = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ve || {}), ie = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(ie || {});
119
+ var Qe = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Qe || {}), he = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(he || {}), oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(oe || {});
120
120
  function Ne(e = {}) {
121
121
  return {
122
- axiosInstance: gt.create({
122
+ axiosInstance: vt.create({
123
123
  withCredentials: !0,
124
124
  timeout: 3e4,
125
125
  ...e
126
126
  })
127
127
  };
128
128
  }
129
- function xt() {
129
+ function Ct() {
130
130
  return {
131
- debounce: (e, r) => {
131
+ debounce: (e, a) => {
132
132
  let t;
133
- return (...a) => {
133
+ return (...r) => {
134
134
  clearTimeout(t), t = window == null ? void 0 : window.setTimeout(() => {
135
- e(...a);
136
- }, r);
135
+ e(...r);
136
+ }, a);
137
137
  };
138
138
  }
139
139
  };
140
140
  }
141
- const we = "khcp-user-table-preferences", Ct = {
141
+ const Se = "khcp-user-table-preferences", Tt = {
142
142
  pageSize: 30,
143
143
  sortColumnKey: void 0,
144
144
  sortColumnOrder: void 0
145
145
  };
146
- function Tt() {
146
+ function Et() {
147
147
  const e = (t) => {
148
148
  if (typeof t == "string")
149
149
  try {
150
150
  return JSON.parse(t);
151
- } catch (a) {
152
- console.error("useTablePreferences(tryParseJson)", a);
151
+ } catch (r) {
152
+ console.error("useTablePreferences(tryParseJson)", r);
153
153
  return;
154
154
  }
155
- }, r = () => {
156
- const t = e(localStorage.getItem(we));
155
+ }, a = () => {
156
+ const t = e(localStorage.getItem(Se));
157
157
  return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
158
158
  };
159
159
  return {
160
- setTablePreferences: (t, a) => {
160
+ setTablePreferences: (t, r) => {
161
161
  try {
162
- const n = r();
163
- n.set(t, a), localStorage.setItem(we, JSON.stringify(Object.fromEntries(n.entries())));
162
+ const n = a();
163
+ n.set(t, r), localStorage.setItem(Se, JSON.stringify(Object.fromEntries(n.entries())));
164
164
  } catch (n) {
165
165
  console.error("useTablePreferences(setTablePreferences)", n);
166
166
  }
167
167
  },
168
168
  getTablePreferences: (t) => {
169
- const a = r();
170
- return (a == null ? void 0 : a.get(t)) || void 0 || Ct;
169
+ const r = a();
170
+ return (r == null ? void 0 : r.get(t)) || void 0 || Tt;
171
171
  },
172
172
  deleteAllTablePreferences: () => {
173
- localStorage.removeItem(we);
173
+ localStorage.removeItem(Se);
174
174
  }
175
175
  };
176
176
  }
@@ -181,10 +181,10 @@ const Nt = {
181
181
  copyToClipboard: "Copied successfully!",
182
182
  copyToClipboardFailed: "Failed to copy to the clipboard"
183
183
  }
184
- }, Et = {
184
+ }, At = {
185
185
  message: "Are you sure you want to delete this {entityType}?",
186
186
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
187
- }, At = {
187
+ }, Ot = {
188
188
  actions: {
189
189
  save: "Save",
190
190
  cancel: "Cancel",
@@ -193,13 +193,13 @@ const Nt = {
193
193
  errors: {
194
194
  edit: "The entity could not be edited at this time."
195
195
  }
196
- }, $t = {
196
+ }, Mt = {
197
197
  emptyState: {
198
198
  noSearchResultsTitle: "No results found",
199
199
  noSearchResultsMessage: "Please adjust the criteria and try again.",
200
200
  noSearchResultsCtaText: "Clear"
201
201
  }
202
- }, Ot = {
202
+ }, Kt = {
203
203
  title: "Configuration",
204
204
  actions: {
205
205
  copy: "Copy JSON"
@@ -234,7 +234,7 @@ const Nt = {
234
234
  entryTitle: "Entry {index}",
235
235
  structuredFormat: "Structured"
236
236
  }
237
- }, Mt = {
237
+ }, $t = {
238
238
  filterButtonText: "Filter",
239
239
  fieldLabel: "Filter by:",
240
240
  inputPlaceholder: "Enter a value",
@@ -242,7 +242,7 @@ const Nt = {
242
242
  applyButtonText: "Apply",
243
243
  clearButtonText: "Clear",
244
244
  clearAllButtonText: "Clear all filters"
245
- }, Kt = {
245
+ }, jt = {
246
246
  errors: {
247
247
  fetch: "Could not fetch available items",
248
248
  invalid: "Please select a valid value"
@@ -250,7 +250,7 @@ const Nt = {
250
250
  }, Ft = {
251
251
  unexpected: "An unexpected error has occurred",
252
252
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
253
- }, jt = {
253
+ }, Pt = {
254
254
  enable: {
255
255
  title: "Enable {entityType}",
256
256
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -261,49 +261,49 @@ const Nt = {
261
261
  message: "Are you sure you want to disable the {entityType} {entityName}?",
262
262
  confirmText: "Yes, disable"
263
263
  }
264
- }, Pt = {
264
+ }, Rt = {
265
265
  global: Nt,
266
- deleteModal: Et,
267
- baseForm: At,
268
- baseTable: $t,
269
- baseConfigCard: Ot,
270
- filter: Mt,
271
- debouncedFilter: Kt,
266
+ deleteModal: At,
267
+ baseForm: Ot,
268
+ baseTable: Mt,
269
+ baseConfigCard: Kt,
270
+ filter: $t,
271
+ debouncedFilter: jt,
272
272
  errors: Ft,
273
- toggleModal: jt
273
+ toggleModal: Pt
274
274
  };
275
- function Ee() {
276
- const e = Te("en-us", Pt);
275
+ function Ae() {
276
+ const e = Ee("en-us", Rt);
277
277
  return {
278
278
  i18n: e,
279
- i18nT: Je(e)
279
+ i18nT: Ye(e)
280
280
  // Translation component <i18n-t>
281
281
  };
282
282
  }
283
- function Qe() {
284
- const e = (t, a) => (a == null ? void 0 : a[t]) ?? void 0, r = (t, a) => {
285
- if (t.length !== a.length)
283
+ function Xe() {
284
+ const e = (t, r) => (r == null ? void 0 : r[t]) ?? void 0, a = (t, r) => {
285
+ if (t.length !== r.length)
286
286
  return !1;
287
- const n = /* @__PURE__ */ new Set([...t, ...a]);
287
+ const n = /* @__PURE__ */ new Set([...t, ...r]);
288
288
  for (const i of n) {
289
- const o = t.filter((y) => y === i).length, m = a.filter((y) => y === i).length;
290
- if (o !== m)
289
+ const o = t.filter((m) => m === i).length, d = r.filter((m) => m === i).length;
290
+ if (o !== d)
291
291
  return !1;
292
292
  }
293
293
  return !0;
294
294
  };
295
295
  return {
296
296
  getPropValue: e,
297
- objectsAreEqual: (t, a, n) => {
297
+ objectsAreEqual: (t, r, n) => {
298
298
  if (n) {
299
- if (Object.keys(t).length === Object.keys(a).length)
299
+ if (Object.keys(t).length === Object.keys(r).length)
300
300
  for (const i in t)
301
- if (Array.isArray(t[i]) && Array.isArray(a[i])) {
302
- if (r(t[i], a[i]))
301
+ if (Array.isArray(t[i]) && Array.isArray(r[i])) {
302
+ if (a(t[i], r[i]))
303
303
  continue;
304
304
  return !1;
305
305
  } else {
306
- if (t[i] === a[i])
306
+ if (t[i] === r[i])
307
307
  continue;
308
308
  return !1;
309
309
  }
@@ -312,339 +312,339 @@ function Qe() {
312
312
  return !0;
313
313
  }
314
314
  try {
315
- return JSON.stringify(t) === JSON.stringify(a);
315
+ return JSON.stringify(t) === JSON.stringify(r);
316
316
  } catch {
317
317
  return !1;
318
318
  }
319
319
  },
320
- sortAlpha: (t) => (a, n) => {
321
- let i = a[t] === void 0 || a[t] === null ? "" : a[t], o = n[t] === void 0 || n[t] === null ? "" : n[t];
322
- return Array.isArray(a[t]) && (i = a[t][0]), Array.isArray(n[t]) && (o = n[t][0]), i.localeCompare(o);
320
+ sortAlpha: (t) => (r, n) => {
321
+ let i = r[t] === void 0 || r[t] === null ? "" : r[t], o = n[t] === void 0 || n[t] === null ? "" : n[t];
322
+ return Array.isArray(r[t]) && (i = r[t][0]), Array.isArray(n[t]) && (o = n[t][0]), i.localeCompare(o);
323
323
  },
324
324
  isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
325
325
  };
326
326
  }
327
- function Rt(e, r, t, a = {
327
+ function qt(e, a, t, r = {
328
328
  fetchedItemsKey: "data",
329
329
  searchKeys: ["id"]
330
330
  }) {
331
331
  t || (t = "100");
332
332
  const { axiosInstance: n } = Ne({
333
333
  headers: e.requestHeaders
334
- }), { i18n: { t: i } } = Ee(), { debounce: o } = xt(), m = o(async (u) => {
335
- await j(u);
336
- }, 200), y = C(!1), f = C(""), l = C(""), g = C([]), w = C([]), T = C(void 0), B = s(r);
337
- let v = `${e.apiBaseUrl}${B}`;
338
- e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
339
- const { isValidUuid: c } = Qe(), h = async () => {
334
+ }), { i18n: { t: i } } = Ae(), { debounce: o } = Ct(), d = o(async (w) => {
335
+ await E(w);
336
+ }, 200), m = C(!1), p = C(""), _ = C(""), l = C([]), N = C([]), k = C(void 0), V = s(a);
337
+ let y = `${e.apiBaseUrl}${V}`;
338
+ e.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
339
+ const { isValidUuid: A } = Xe(), u = async () => {
340
340
  try {
341
- y.value = !0;
342
- const { data: u } = await n.get(`${v}?size=${t}`);
343
- u != null && u.next || (T.value = a.fetchedItemsKey in u ? u[a.fetchedItemsKey] : []), w.value = a.fetchedItemsKey in u ? u[a.fetchedItemsKey] : [], g.value = w.value;
341
+ m.value = !0;
342
+ const { data: w } = await n.get(`${y}?size=${t}`);
343
+ w != null && w.next || (k.value = r.fetchedItemsKey in w ? w[r.fetchedItemsKey] : []), N.value = r.fetchedItemsKey in w ? w[r.fetchedItemsKey] : [], l.value = N.value;
344
344
  } catch {
345
- g.value = [], f.value = i("debouncedFilter.errors.fetch");
345
+ l.value = [], p.value = i("debouncedFilter.errors.fetch");
346
346
  } finally {
347
- y.value = !1;
347
+ m.value = !1;
348
348
  }
349
- }, I = C(""), j = async (u) => {
350
- var A, H, E;
351
- if (I.value !== u)
352
- if (I.value = u || "", T.value === void 0)
349
+ }, T = C(""), E = async (w) => {
350
+ var g, O, z;
351
+ if (T.value !== w)
352
+ if (T.value = w || "", k.value === void 0)
353
353
  try {
354
- if (y.value = !0, f.value = "", l.value = "", e.app === "konnect") {
355
- let P = v + "";
356
- u && (P += `/${u}`);
357
- const { data: F } = await n.get(`${P}?size=${t}`);
358
- a.fetchedItemsKey in F ? g.value = F[a.fetchedItemsKey] : F != null && F.id ? g.value = [F] : g.value = [];
359
- } else if (u) {
360
- const P = [];
361
- c(u) && a.searchKeys.includes("id") ? P.push((async () => {
362
- const { data: N } = await n.get(`${v}/${u}`);
363
- return [N[a.fetchedItemsKey] ?? N];
364
- })()) : P.push(
365
- ...a.searchKeys.filter((N) => N !== "id").map(async (N) => {
366
- const { data: L } = await n.get(`${v}?${N}=${u}`);
367
- return L[a.fetchedItemsKey];
354
+ if (m.value = !0, p.value = "", _.value = "", e.app === "konnect") {
355
+ let v = y + "";
356
+ w && (v += `/${w}`);
357
+ const { data: B } = await n.get(`${v}?size=${t}`);
358
+ r.fetchedItemsKey in B ? l.value = B[r.fetchedItemsKey] : B != null && B.id ? l.value = [B] : l.value = [];
359
+ } else if (w) {
360
+ const v = [];
361
+ A(w) && r.searchKeys.includes("id") ? v.push((async () => {
362
+ const { data: P } = await n.get(`${y}/${w}`);
363
+ return [P[r.fetchedItemsKey] ?? P];
364
+ })()) : v.push(
365
+ ...r.searchKeys.filter((P) => P !== "id").map(async (P) => {
366
+ const { data: F } = await n.get(`${y}?${P}=${w}`);
367
+ return F[r.fetchedItemsKey];
368
368
  })
369
369
  );
370
- const F = await Promise.all(P), z = /* @__PURE__ */ new Set();
371
- g.value = [], (A = F == null ? void 0 : F.forEach) == null || A.call(F, (N) => {
372
- var L;
373
- (L = N == null ? void 0 : N.forEach) == null || L.call(N, (Z) => {
374
- z.has(Z.id) || (z.add(Z.id), g.value.push(Z));
370
+ const B = await Promise.all(v), L = /* @__PURE__ */ new Set();
371
+ l.value = [], (g = B == null ? void 0 : B.forEach) == null || g.call(B, (P) => {
372
+ var F;
373
+ (F = P == null ? void 0 : P.forEach) == null || F.call(P, (Y) => {
374
+ L.has(Y.id) || (L.add(Y.id), l.value.push(Y));
375
375
  });
376
376
  });
377
377
  } else
378
- g.value = w.value;
379
- } catch (P) {
380
- ((H = P == null ? void 0 : P.response) == null ? void 0 : H.status) === 404 ? l.value = i("debouncedFilter.errors.invalid") : (g.value = [], f.value = i("debouncedFilter.errors.fetch"));
378
+ l.value = N.value;
379
+ } catch (v) {
380
+ ((O = v == null ? void 0 : v.response) == null ? void 0 : O.status) === 404 ? _.value = i("debouncedFilter.errors.invalid") : (l.value = [], p.value = i("debouncedFilter.errors.fetch"));
381
381
  } finally {
382
- y.value = !1;
382
+ m.value = !1;
383
383
  }
384
384
  else
385
- y.value = !0, l.value = "", u ? (g.value = (E = T.value) == null ? void 0 : E.filter((P) => {
386
- var F;
387
- let z = !1;
388
- for (const N of a.searchKeys) {
389
- const L = typeof P[N] == "string" ? (F = P[N]) == null ? void 0 : F.toLowerCase() : P[N];
390
- L != null && L.includes(u.toLowerCase()) && (z = !0);
385
+ m.value = !0, _.value = "", w ? (l.value = (z = k.value) == null ? void 0 : z.filter((v) => {
386
+ var B;
387
+ let L = !1;
388
+ for (const P of r.searchKeys) {
389
+ const F = typeof v[P] == "string" ? (B = v[P]) == null ? void 0 : B.toLowerCase() : v[P];
390
+ F != null && F.includes(w.toLowerCase()) && (L = !0);
391
391
  }
392
- return z;
393
- }), (!g.value || !g.value.length) && (l.value = i("debouncedFilter.errors.invalid"))) : g.value = T.value, y.value = !1;
392
+ return L;
393
+ }), (!l.value || !l.value.length) && (_.value = i("debouncedFilter.errors.invalid"))) : l.value = k.value, m.value = !1;
394
394
  };
395
395
  return {
396
- loading: y,
397
- error: f,
398
- validationError: l,
399
- results: g,
400
- allRecords: T,
401
- loadItems: h,
402
- debouncedQueryChange: m
396
+ loading: m,
397
+ error: p,
398
+ validationError: _,
399
+ results: l,
400
+ allRecords: k,
401
+ loadItems: u,
402
+ debouncedQueryChange: d
403
403
  };
404
404
  }
405
- function qt(e, r) {
406
- const t = s(r), a = S(
405
+ function Bt(e, a) {
406
+ const t = s(a), r = S(
407
407
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
408
408
  );
409
- return a.value.search = "", (n) => `${a.value.href}/${n}`;
409
+ return r.value.search = "", (n) => `${r.value.href}/${n}`;
410
410
  }
411
- function Bt() {
412
- const { i18n: { t: e } } = Ee();
411
+ function Ut() {
412
+ const { i18n: { t: e } } = Ae();
413
413
  return {
414
- getMessageFromError: (r) => {
415
- var t, a, n;
416
- if (!r)
414
+ getMessageFromError: (a) => {
415
+ var t, r, n;
416
+ if (!a)
417
417
  return e("errors.unexpected");
418
- if ((t = r == null ? void 0 : r.response) != null && t.data) {
419
- if (r.response.data.detail)
420
- return r.response.data.detail;
421
- if ((a = r.response.data.details) != null && a.length)
422
- return r.response.data.details.map((i) => {
418
+ if ((t = a == null ? void 0 : a.response) != null && t.data) {
419
+ if (a.response.data.detail)
420
+ return a.response.data.detail;
421
+ if ((r = a.response.data.details) != null && r.length)
422
+ return a.response.data.details.map((i) => {
423
423
  let o = e("errors.unexpected");
424
424
  return i.messages && typeof i.messages == "object" && i.messages.length && (o = i.messages.join(", ")), i.field ? `${i.field} - ${o}` : o;
425
425
  }).join("; ");
426
- if (r.response.data.message) {
427
- const { message: i } = r.response.data;
426
+ if (a.response.data.message) {
427
+ const { message: i } = a.response.data;
428
428
  return Array.isArray(i) ? (n = i[0]) != null && n.constraints ? Object.values(i[0].constraints)[0] : i[0] : i;
429
429
  }
430
- if (typeof r.response.data == "string")
431
- return r.response.data;
432
- if (typeof r.response.data == "object")
433
- return Object.keys(r.response.data).map((i) => `${i} ${r.response.data[i]}`).join(", ");
430
+ if (typeof a.response.data == "string")
431
+ return a.response.data;
432
+ if (typeof a.response.data == "object")
433
+ return Object.keys(a.response.data).map((i) => `${i} ${a.response.data[i]}`).join(", ");
434
434
  }
435
- return r.message || e("errors.unexpected");
435
+ return a.message || e("errors.unexpected");
436
436
  }
437
437
  };
438
438
  }
439
439
  function Vt(e) {
440
- const r = window.location.origin, t = r.endsWith("/") ? r : `${r}/`;
440
+ const a = window.location.origin, t = a.endsWith("/") ? a : `${a}/`;
441
441
  try {
442
- const a = e.join("/"), n = `${t}${a}`, i = e.some((o) => o.trim() === "");
442
+ const r = e.join("/"), n = `${t}${r}`, i = e.some((o) => o.trim() === "");
443
443
  if (/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(n) && !i && new URL(n))
444
- return `${t}${a}`;
444
+ return `${t}${r}`;
445
445
  throw new Error("Invalid url");
446
- } catch (a) {
447
- return console.warn("Failed to build valid URL:", a), "";
446
+ } catch (r) {
447
+ return console.warn("Failed to build valid URL:", r), "";
448
448
  }
449
449
  }
450
- function Xe(e, r) {
451
- const t = C(s(e)), a = C(s(r)), n = S(
450
+ function et(e, a) {
451
+ const t = C(s(e)), r = C(s(a)), n = S(
452
452
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
453
453
  ), i = S(
454
- () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
454
+ () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
455
455
  );
456
456
  return (o) => {
457
- const { page: m, pageSize: y, offset: f, sortColumnKey: l, sortColumnOrder: g, query: w } = o;
457
+ const { page: d, pageSize: m, offset: p, sortColumnKey: _, sortColumnOrder: l, query: N } = o;
458
458
  try {
459
- let T = new URL(i.value.href);
460
- return n.value && w ? (T.search = "", T = t.value.app === "konnect" ? new URL(`${T.href}?filter[name][contains]=${w}`) : new URL(`${T.href}/${w}/`)) : (n.value || new URLSearchParams(w).forEach((B, v) => {
461
- T.searchParams.append(v, B);
462
- }), l && T.searchParams.append("sort_by", l), g === "desc" && T.searchParams.append("sort_desc", "1"), T.searchParams.append("size", String(y))), f && m !== 1 && T.searchParams.append("offset", String(f)), T.href;
463
- } catch (T) {
464
- return console.error("RouteList(fetcher)", T), a.value;
459
+ let k = new URL(i.value.href);
460
+ return n.value && N ? (k.search = "", k = t.value.app === "konnect" ? new URL(`${k.href}?filter[name][contains]=${N}`) : new URL(`${k.href}/${N}/`)) : (n.value || new URLSearchParams(N).forEach((V, y) => {
461
+ k.searchParams.append(y, V);
462
+ }), _ && k.searchParams.append("sort_by", _), l === "desc" && k.searchParams.append("sort_desc", "1"), k.searchParams.append("size", String(m))), p && d !== 1 && k.searchParams.append("offset", String(p)), k.href;
463
+ } catch (k) {
464
+ return console.error("RouteList(fetcher)", k), r.value;
465
465
  }
466
466
  };
467
467
  }
468
- function Ut(e, r, t = "data") {
469
- const a = s(r), { axiosInstance: n } = Ne({
468
+ function Dt(e, a, t = "data") {
469
+ const r = s(a), { axiosInstance: n } = Ne({
470
470
  headers: e.requestHeaders
471
- }), i = Xe(e, a), o = C({
472
- status: ie.Idle
471
+ }), i = et(e, r), o = C({
472
+ status: oe.Idle
473
473
  });
474
- return { fetcher: async (m) => {
474
+ return { fetcher: async (d) => {
475
475
  try {
476
- o.value = { status: ie.Loading };
477
- const y = i(m), { data: f } = await n.get(y), l = t && t.replace(/[^\w-_]/gi, "");
478
- let g;
479
- f[l] && Array.isArray(f[l]) ? g = f[l] : Array.isArray(f) ? g = f : g = Object.keys(f).length ? [f] : [];
480
- const w = {
481
- data: g,
482
- total: g.length,
483
- ...f.offset ? {
476
+ o.value = { status: oe.Loading };
477
+ const m = i(d), { data: p } = await n.get(m), _ = t && t.replace(/[^\w-_]/gi, "");
478
+ let l;
479
+ p[_] && Array.isArray(p[_]) ? l = p[_] : Array.isArray(p) ? l = p : l = Object.keys(p).length ? [p] : [];
480
+ const N = {
481
+ data: l,
482
+ total: l.length,
483
+ ...p.offset ? {
484
484
  pagination: {
485
- offset: f.offset
485
+ offset: p.offset
486
486
  }
487
487
  } : null
488
488
  };
489
489
  return o.value = {
490
- status: ie.Idle,
491
- response: w
492
- }, w;
493
- } catch (y) {
494
- const f = {
490
+ status: oe.Idle,
491
+ response: N
492
+ }, N;
493
+ } catch (m) {
494
+ const p = {
495
495
  data: [],
496
496
  total: 0
497
497
  };
498
- return m.query && y.response.status === 404 ? (o.value = {
499
- status: ie.NoResults,
500
- response: f,
501
- error: y
502
- }, f) : (o.value = {
503
- status: ie.Error,
504
- response: f,
505
- error: y
506
- }, f);
498
+ return d.query && m.response.status === 404 ? (o.value = {
499
+ status: oe.NoResults,
500
+ response: p,
501
+ error: m
502
+ }, p) : (o.value = {
503
+ status: oe.Error,
504
+ response: p,
505
+ error: m
506
+ }, p);
507
507
  }
508
508
  }, fetcherState: o };
509
509
  }
510
510
  function Lt() {
511
- const e = (t, a = "_") => t ? t.split(a).map((n) => n.toLowerCase() === "id" ? n.toUpperCase() : n.charAt(0).toUpperCase() + n.substring(1)).join(" ") : "", r = /(?:^|[\s-:'"])\w/g;
511
+ const e = (t, r = "_") => t ? t.split(r).map((n) => n.toLowerCase() === "id" ? n.toUpperCase() : n.charAt(0).toUpperCase() + n.substring(1)).join(" ") : "", a = /(?:^|[\s-:'"])\w/g;
512
512
  return {
513
- capitalize: (t) => t ? t.replace(r, (a) => a.toUpperCase()) : "",
513
+ capitalize: (t) => t ? t.replace(a, (r) => r.toUpperCase()) : "",
514
514
  convertKeyToTitle: e
515
515
  };
516
516
  }
517
- const et = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Ke = (e) => {
517
+ const tt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, je = (e) => {
518
518
  if (typeof e != "string")
519
519
  throw new TypeError("Invalid argument expected string");
520
- const r = e.match(et);
521
- if (!r)
520
+ const a = e.match(tt);
521
+ if (!a)
522
522
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
523
- return r.shift(), r;
524
- }, Fe = (e) => e === "*" || e === "x" || e === "X", je = (e) => {
525
- const r = parseInt(e, 10);
526
- return isNaN(r) ? e : r;
527
- }, Dt = (e, r) => typeof e != typeof r ? [String(e), String(r)] : [e, r], Ht = (e, r) => {
528
- if (Fe(e) || Fe(r))
523
+ return a.shift(), a;
524
+ }, Fe = (e) => e === "*" || e === "x" || e === "X", Pe = (e) => {
525
+ const a = parseInt(e, 10);
526
+ return isNaN(a) ? e : a;
527
+ }, Ht = (e, a) => typeof e != typeof a ? [String(e), String(a)] : [e, a], zt = (e, a) => {
528
+ if (Fe(e) || Fe(a))
529
529
  return 0;
530
- const [t, a] = Dt(je(e), je(r));
531
- return t > a ? 1 : t < a ? -1 : 0;
532
- }, Pe = (e, r) => {
533
- for (let t = 0; t < Math.max(e.length, r.length); t++) {
534
- const a = Ht(e[t] || "0", r[t] || "0");
535
- if (a !== 0)
536
- return a;
530
+ const [t, r] = Ht(Pe(e), Pe(a));
531
+ return t > r ? 1 : t < r ? -1 : 0;
532
+ }, Re = (e, a) => {
533
+ for (let t = 0; t < Math.max(e.length, a.length); t++) {
534
+ const r = zt(e[t] || "0", a[t] || "0");
535
+ if (r !== 0)
536
+ return r;
537
537
  }
538
538
  return 0;
539
- }, zt = (e, r) => {
540
- const t = Ke(e), a = Ke(r), n = t.pop(), i = a.pop(), o = Pe(t, a);
541
- return o !== 0 ? o : n && i ? Pe(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
542
- }, Re = (e, r, t) => {
543
- Wt(t);
544
- const a = zt(e, r);
545
- return tt[t].includes(a);
546
- }, tt = {
539
+ }, Wt = (e, a) => {
540
+ const t = je(e), r = je(a), n = t.pop(), i = r.pop(), o = Re(t, r);
541
+ return o !== 0 ? o : n && i ? Re(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
542
+ }, qe = (e, a, t) => {
543
+ Jt(t);
544
+ const r = Wt(e, a);
545
+ return rt[t].includes(r);
546
+ }, rt = {
547
547
  ">": [1],
548
548
  ">=": [0, 1],
549
549
  "=": [0],
550
550
  "<=": [-1, 0],
551
551
  "<": [-1],
552
552
  "!=": [-1, 1]
553
- }, qe = Object.keys(tt), Wt = (e) => {
553
+ }, Be = Object.keys(rt), Jt = (e) => {
554
554
  if (typeof e != "string")
555
555
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
556
- if (qe.indexOf(e) === -1)
557
- throw new Error(`Invalid operator, expected one of ${qe.join("|")}`);
558
- }, Jt = (e) => typeof e == "string" && /^[v\d]/.test(e) && et.test(e);
559
- function Yt(e) {
560
- const { gatewayInfo: r, supportedRange: t } = e;
561
- if (!r)
556
+ if (Be.indexOf(e) === -1)
557
+ throw new Error(`Invalid operator, expected one of ${Be.join("|")}`);
558
+ }, Yt = (e) => typeof e == "string" && /^[v\d]/.test(e) && tt.test(e);
559
+ function Zt(e) {
560
+ const { gatewayInfo: a, supportedRange: t } = e;
561
+ if (!a)
562
562
  return !0;
563
- const { edition: a, version: n } = r;
564
- if (!Jt(n))
563
+ const { edition: r, version: n } = a;
564
+ if (!Yt(n))
565
565
  return console.error("Invalid version"), !1;
566
- const i = t[a];
566
+ const i = t[r];
567
567
  if (!i)
568
568
  return !1;
569
- const [o, m] = i;
570
- return !(o && Re(n, o, "<") || m && Re(n, m, ">"));
569
+ const [o, d] = i;
570
+ return !(o && qe(n, o, "<") || d && qe(n, d, ">"));
571
571
  }
572
- function Zt(e) {
573
- const r = C(0), t = C(0), a = C(!1);
574
- return ae(e, (n) => {
575
- n && !a.value && (r.value = n.offsetWidth, t.value = n.scrollWidth, a.value = !0);
572
+ function Gt(e) {
573
+ const a = C(0), t = C(0), r = C(!1);
574
+ return ne(e, (n) => {
575
+ n && !r.value && (a.value = n.offsetWidth, t.value = n.scrollWidth, r.value = !0);
576
576
  }), {
577
- isTruncated: S(() => r.value < t.value)
577
+ isTruncated: S(() => a.value < t.value)
578
578
  };
579
579
  }
580
- const le = {
580
+ const se = {
581
581
  useAxios: Ne,
582
- useDebouncedFilter: Rt,
583
- useDeleteUrlBuilder: qt,
584
- useErrors: Bt,
582
+ useDebouncedFilter: qt,
583
+ useDeleteUrlBuilder: Bt,
584
+ useErrors: Ut,
585
585
  useExternalLinkCreator: Vt,
586
- useFetcher: Ut,
587
- useFetchUrlBuilder: Xe,
588
- useHelpers: Qe,
586
+ useFetcher: Dt,
587
+ useFetchUrlBuilder: et,
588
+ useHelpers: Xe,
589
589
  useStringHelpers: Lt,
590
- useI18n: Ee,
591
- useGatewayFeatureSupported: Yt,
592
- useTruncationDetector: Zt
593
- }, ce = (e, r) => {
590
+ useI18n: Ae,
591
+ useGatewayFeatureSupported: Zt,
592
+ useTruncationDetector: Gt
593
+ }, ue = (e, a) => {
594
594
  const t = e.__vccOpts || e;
595
- for (const [a, n] of r)
596
- t[a] = n;
595
+ for (const [r, n] of a)
596
+ t[r] = n;
597
597
  return t;
598
- }, Gt = "#0044f4", Qt = "#3a3f51";
598
+ }, Qt = "#0044f4", Xt = "#3a3f51";
599
599
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
600
- function rt(e) {
600
+ function at(e) {
601
601
  return typeof e > "u" || e === null;
602
602
  }
603
- function Xt(e) {
603
+ function er(e) {
604
604
  return typeof e == "object" && e !== null;
605
605
  }
606
- function er(e) {
607
- return Array.isArray(e) ? e : rt(e) ? [] : [e];
606
+ function tr(e) {
607
+ return Array.isArray(e) ? e : at(e) ? [] : [e];
608
608
  }
609
- function tr(e, r) {
610
- var t, a, n, i;
611
- if (r)
612
- for (i = Object.keys(r), t = 0, a = i.length; t < a; t += 1)
613
- n = i[t], e[n] = r[n];
609
+ function rr(e, a) {
610
+ var t, r, n, i;
611
+ if (a)
612
+ for (i = Object.keys(a), t = 0, r = i.length; t < r; t += 1)
613
+ n = i[t], e[n] = a[n];
614
614
  return e;
615
615
  }
616
- function rr(e, r) {
617
- var t = "", a;
618
- for (a = 0; a < r; a += 1)
616
+ function ar(e, a) {
617
+ var t = "", r;
618
+ for (r = 0; r < a; r += 1)
619
619
  t += e;
620
620
  return t;
621
621
  }
622
- function ar(e) {
622
+ function nr(e) {
623
623
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
624
624
  }
625
- var nr = rt, ir = Xt, or = er, lr = rr, sr = ar, cr = tr, Ae = {
626
- isNothing: nr,
627
- isObject: ir,
628
- toArray: or,
629
- repeat: lr,
630
- isNegativeZero: sr,
631
- extend: cr
625
+ var ir = at, or = er, lr = tr, sr = ar, cr = nr, ur = rr, Oe = {
626
+ isNothing: ir,
627
+ isObject: or,
628
+ toArray: lr,
629
+ repeat: sr,
630
+ isNegativeZero: cr,
631
+ extend: ur
632
632
  };
633
- function at(e, r) {
634
- var t = "", a = e.reason || "(unknown reason)";
635
- return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !r && e.mark.snippet && (t += `
633
+ function nt(e, a) {
634
+ var t = "", r = e.reason || "(unknown reason)";
635
+ return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !a && e.mark.snippet && (t += `
636
636
 
637
- ` + e.mark.snippet), a + " " + t) : a;
637
+ ` + e.mark.snippet), r + " " + t) : r;
638
638
  }
639
- function me(e, r) {
640
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = at(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
639
+ function ge(e, a) {
640
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = a, this.message = nt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
641
641
  }
642
- me.prototype = Object.create(Error.prototype);
643
- me.prototype.constructor = me;
644
- me.prototype.toString = function(e) {
645
- return this.name + ": " + at(this, e);
642
+ ge.prototype = Object.create(Error.prototype);
643
+ ge.prototype.constructor = ge;
644
+ ge.prototype.toString = function(e) {
645
+ return this.name + ": " + nt(this, e);
646
646
  };
647
- var oe = me, ur = [
647
+ var le = ge, dr = [
648
648
  "kind",
649
649
  "multi",
650
650
  "resolve",
@@ -655,38 +655,38 @@ var oe = me, ur = [
655
655
  "representName",
656
656
  "defaultStyle",
657
657
  "styleAliases"
658
- ], dr = [
658
+ ], pr = [
659
659
  "scalar",
660
660
  "sequence",
661
661
  "mapping"
662
662
  ];
663
- function pr(e) {
664
- var r = {};
663
+ function fr(e) {
664
+ var a = {};
665
665
  return e !== null && Object.keys(e).forEach(function(t) {
666
- e[t].forEach(function(a) {
667
- r[String(a)] = t;
666
+ e[t].forEach(function(r) {
667
+ a[String(r)] = t;
668
668
  });
669
- }), r;
669
+ }), a;
670
670
  }
671
- function fr(e, r) {
672
- if (r = r || {}, Object.keys(r).forEach(function(t) {
673
- if (ur.indexOf(t) === -1)
674
- throw new oe('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
675
- }), this.options = r, this.tag = e, this.kind = r.kind || null, this.resolve = r.resolve || function() {
671
+ function mr(e, a) {
672
+ if (a = a || {}, Object.keys(a).forEach(function(t) {
673
+ if (dr.indexOf(t) === -1)
674
+ throw new le('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
675
+ }), this.options = a, this.tag = e, this.kind = a.kind || null, this.resolve = a.resolve || function() {
676
676
  return !0;
677
- }, this.construct = r.construct || function(t) {
677
+ }, this.construct = a.construct || function(t) {
678
678
  return t;
679
- }, this.instanceOf = r.instanceOf || null, this.predicate = r.predicate || null, this.represent = r.represent || null, this.representName = r.representName || null, this.defaultStyle = r.defaultStyle || null, this.multi = r.multi || !1, this.styleAliases = pr(r.styleAliases || null), dr.indexOf(this.kind) === -1)
680
- throw new oe('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
679
+ }, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = fr(a.styleAliases || null), pr.indexOf(this.kind) === -1)
680
+ throw new le('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
681
681
  }
682
- var D = fr;
683
- function Be(e, r) {
682
+ var H = mr;
683
+ function Ue(e, a) {
684
684
  var t = [];
685
- return e[r].forEach(function(a) {
685
+ return e[a].forEach(function(r) {
686
686
  var n = t.length;
687
687
  t.forEach(function(i, o) {
688
- i.tag === a.tag && i.kind === a.kind && i.multi === a.multi && (n = o);
689
- }), t[n] = a;
688
+ i.tag === r.tag && i.kind === r.kind && i.multi === r.multi && (n = o);
689
+ }), t[n] = r;
690
690
  }), t;
691
691
  }
692
692
  function yr() {
@@ -701,80 +701,80 @@ function yr() {
701
701
  mapping: [],
702
702
  fallback: []
703
703
  }
704
- }, r, t;
705
- function a(n) {
704
+ }, a, t;
705
+ function r(n) {
706
706
  n.multi ? (e.multi[n.kind].push(n), e.multi.fallback.push(n)) : e[n.kind][n.tag] = e.fallback[n.tag] = n;
707
707
  }
708
- for (r = 0, t = arguments.length; r < t; r += 1)
709
- arguments[r].forEach(a);
708
+ for (a = 0, t = arguments.length; a < t; a += 1)
709
+ arguments[a].forEach(r);
710
710
  return e;
711
711
  }
712
- function Ie(e) {
712
+ function xe(e) {
713
713
  return this.extend(e);
714
714
  }
715
- Ie.prototype.extend = function(e) {
716
- var r = [], t = [];
717
- if (e instanceof D)
715
+ xe.prototype.extend = function(e) {
716
+ var a = [], t = [];
717
+ if (e instanceof H)
718
718
  t.push(e);
719
719
  else if (Array.isArray(e))
720
720
  t = t.concat(e);
721
721
  else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
722
- e.implicit && (r = r.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
722
+ e.implicit && (a = a.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
723
723
  else
724
- throw new oe("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
725
- r.forEach(function(n) {
726
- if (!(n instanceof D))
727
- throw new oe("Specified list of YAML types (or a single Type object) contains a non-Type object.");
724
+ throw new le("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
725
+ a.forEach(function(n) {
726
+ if (!(n instanceof H))
727
+ throw new le("Specified list of YAML types (or a single Type object) contains a non-Type object.");
728
728
  if (n.loadKind && n.loadKind !== "scalar")
729
- throw new oe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
729
+ throw new le("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
730
730
  if (n.multi)
731
- throw new oe("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
731
+ throw new le("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
732
732
  }), t.forEach(function(n) {
733
- if (!(n instanceof D))
734
- throw new oe("Specified list of YAML types (or a single Type object) contains a non-Type object.");
733
+ if (!(n instanceof H))
734
+ throw new le("Specified list of YAML types (or a single Type object) contains a non-Type object.");
735
735
  });
736
- var a = Object.create(Ie.prototype);
737
- return a.implicit = (this.implicit || []).concat(r), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Be(a, "implicit"), a.compiledExplicit = Be(a, "explicit"), a.compiledTypeMap = yr(a.compiledImplicit, a.compiledExplicit), a;
736
+ var r = Object.create(xe.prototype);
737
+ return r.implicit = (this.implicit || []).concat(a), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ue(r, "implicit"), r.compiledExplicit = Ue(r, "explicit"), r.compiledTypeMap = yr(r.compiledImplicit, r.compiledExplicit), r;
738
738
  };
739
- var mr = Ie, gr = new D("tag:yaml.org,2002:str", {
739
+ var gr = xe, vr = new H("tag:yaml.org,2002:str", {
740
740
  kind: "scalar",
741
741
  construct: function(e) {
742
742
  return e !== null ? e : "";
743
743
  }
744
- }), vr = new D("tag:yaml.org,2002:seq", {
744
+ }), hr = new H("tag:yaml.org,2002:seq", {
745
745
  kind: "sequence",
746
746
  construct: function(e) {
747
747
  return e !== null ? e : [];
748
748
  }
749
- }), hr = new D("tag:yaml.org,2002:map", {
749
+ }), br = new H("tag:yaml.org,2002:map", {
750
750
  kind: "mapping",
751
751
  construct: function(e) {
752
752
  return e !== null ? e : {};
753
753
  }
754
- }), br = new mr({
754
+ }), kr = new gr({
755
755
  explicit: [
756
- gr,
757
756
  vr,
758
- hr
757
+ hr,
758
+ br
759
759
  ]
760
760
  });
761
- function kr(e) {
761
+ function wr(e) {
762
762
  if (e === null)
763
763
  return !0;
764
- var r = e.length;
765
- return r === 1 && e === "~" || r === 4 && (e === "null" || e === "Null" || e === "NULL");
764
+ var a = e.length;
765
+ return a === 1 && e === "~" || a === 4 && (e === "null" || e === "Null" || e === "NULL");
766
766
  }
767
- function wr() {
767
+ function Sr() {
768
768
  return null;
769
769
  }
770
- function Sr(e) {
770
+ function _r(e) {
771
771
  return e === null;
772
772
  }
773
- var _r = new D("tag:yaml.org,2002:null", {
773
+ var Ir = new H("tag:yaml.org,2002:null", {
774
774
  kind: "scalar",
775
- resolve: kr,
776
- construct: wr,
777
- predicate: Sr,
775
+ resolve: wr,
776
+ construct: Sr,
777
+ predicate: _r,
778
778
  represent: {
779
779
  canonical: function() {
780
780
  return "~";
@@ -794,23 +794,23 @@ var _r = new D("tag:yaml.org,2002:null", {
794
794
  },
795
795
  defaultStyle: "lowercase"
796
796
  });
797
- function Ir(e) {
797
+ function xr(e) {
798
798
  if (e === null)
799
799
  return !1;
800
- var r = e.length;
801
- return r === 4 && (e === "true" || e === "True" || e === "TRUE") || r === 5 && (e === "false" || e === "False" || e === "FALSE");
800
+ var a = e.length;
801
+ return a === 4 && (e === "true" || e === "True" || e === "TRUE") || a === 5 && (e === "false" || e === "False" || e === "FALSE");
802
802
  }
803
- function xr(e) {
803
+ function Cr(e) {
804
804
  return e === "true" || e === "True" || e === "TRUE";
805
805
  }
806
- function Cr(e) {
806
+ function Tr(e) {
807
807
  return Object.prototype.toString.call(e) === "[object Boolean]";
808
808
  }
809
- var Tr = new D("tag:yaml.org,2002:bool", {
809
+ var Er = new H("tag:yaml.org,2002:bool", {
810
810
  kind: "scalar",
811
- resolve: Ir,
812
- construct: xr,
813
- predicate: Cr,
811
+ resolve: xr,
812
+ construct: Cr,
813
+ predicate: Tr,
814
814
  represent: {
815
815
  lowercase: function(e) {
816
816
  return e ? "true" : "false";
@@ -827,81 +827,81 @@ var Tr = new D("tag:yaml.org,2002:bool", {
827
827
  function Nr(e) {
828
828
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
829
829
  }
830
- function Er(e) {
830
+ function Ar(e) {
831
831
  return 48 <= e && e <= 55;
832
832
  }
833
- function Ar(e) {
833
+ function Or(e) {
834
834
  return 48 <= e && e <= 57;
835
835
  }
836
- function $r(e) {
836
+ function Mr(e) {
837
837
  if (e === null)
838
838
  return !1;
839
- var r = e.length, t = 0, a = !1, n;
840
- if (!r)
839
+ var a = e.length, t = 0, r = !1, n;
840
+ if (!a)
841
841
  return !1;
842
842
  if (n = e[t], (n === "-" || n === "+") && (n = e[++t]), n === "0") {
843
- if (t + 1 === r)
843
+ if (t + 1 === a)
844
844
  return !0;
845
845
  if (n = e[++t], n === "b") {
846
- for (t++; t < r; t++)
846
+ for (t++; t < a; t++)
847
847
  if (n = e[t], n !== "_") {
848
848
  if (n !== "0" && n !== "1")
849
849
  return !1;
850
- a = !0;
850
+ r = !0;
851
851
  }
852
- return a && n !== "_";
852
+ return r && n !== "_";
853
853
  }
854
854
  if (n === "x") {
855
- for (t++; t < r; t++)
855
+ for (t++; t < a; t++)
856
856
  if (n = e[t], n !== "_") {
857
857
  if (!Nr(e.charCodeAt(t)))
858
858
  return !1;
859
- a = !0;
859
+ r = !0;
860
860
  }
861
- return a && n !== "_";
861
+ return r && n !== "_";
862
862
  }
863
863
  if (n === "o") {
864
- for (t++; t < r; t++)
864
+ for (t++; t < a; t++)
865
865
  if (n = e[t], n !== "_") {
866
- if (!Er(e.charCodeAt(t)))
866
+ if (!Ar(e.charCodeAt(t)))
867
867
  return !1;
868
- a = !0;
868
+ r = !0;
869
869
  }
870
- return a && n !== "_";
870
+ return r && n !== "_";
871
871
  }
872
872
  }
873
873
  if (n === "_")
874
874
  return !1;
875
- for (; t < r; t++)
875
+ for (; t < a; t++)
876
876
  if (n = e[t], n !== "_") {
877
- if (!Ar(e.charCodeAt(t)))
877
+ if (!Or(e.charCodeAt(t)))
878
878
  return !1;
879
- a = !0;
879
+ r = !0;
880
880
  }
881
- return !(!a || n === "_");
881
+ return !(!r || n === "_");
882
882
  }
883
- function Or(e) {
884
- var r = e, t = 1, a;
885
- if (r.indexOf("_") !== -1 && (r = r.replace(/_/g, "")), a = r[0], (a === "-" || a === "+") && (a === "-" && (t = -1), r = r.slice(1), a = r[0]), r === "0")
883
+ function Kr(e) {
884
+ var a = e, t = 1, r;
885
+ if (a.indexOf("_") !== -1 && (a = a.replace(/_/g, "")), r = a[0], (r === "-" || r === "+") && (r === "-" && (t = -1), a = a.slice(1), r = a[0]), a === "0")
886
886
  return 0;
887
- if (a === "0") {
888
- if (r[1] === "b")
889
- return t * parseInt(r.slice(2), 2);
890
- if (r[1] === "x")
891
- return t * parseInt(r.slice(2), 16);
892
- if (r[1] === "o")
893
- return t * parseInt(r.slice(2), 8);
887
+ if (r === "0") {
888
+ if (a[1] === "b")
889
+ return t * parseInt(a.slice(2), 2);
890
+ if (a[1] === "x")
891
+ return t * parseInt(a.slice(2), 16);
892
+ if (a[1] === "o")
893
+ return t * parseInt(a.slice(2), 8);
894
894
  }
895
- return t * parseInt(r, 10);
895
+ return t * parseInt(a, 10);
896
896
  }
897
- function Mr(e) {
898
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Ae.isNegativeZero(e);
897
+ function $r(e) {
898
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Oe.isNegativeZero(e);
899
899
  }
900
- var Kr = new D("tag:yaml.org,2002:int", {
900
+ var jr = new H("tag:yaml.org,2002:int", {
901
901
  kind: "scalar",
902
- resolve: $r,
903
- construct: Or,
904
- predicate: Mr,
902
+ resolve: Mr,
903
+ construct: Kr,
904
+ predicate: $r,
905
905
  represent: {
906
906
  binary: function(e) {
907
907
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -928,20 +928,20 @@ var Kr = new D("tag:yaml.org,2002:int", {
928
928
  // 2.5e4, 2.5 and integers
929
929
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
930
930
  );
931
- function jr(e) {
931
+ function Pr(e) {
932
932
  return !(e === null || !Fr.test(e) || // Quick hack to not allow integers end with `_`
933
933
  // Probably should update regexp & check speed
934
934
  e[e.length - 1] === "_");
935
935
  }
936
- function Pr(e) {
937
- var r, t;
938
- return r = e.replace(/_/g, "").toLowerCase(), t = r[0] === "-" ? -1 : 1, "+-".indexOf(r[0]) >= 0 && (r = r.slice(1)), r === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : r === ".nan" ? NaN : t * parseFloat(r, 10);
936
+ function Rr(e) {
937
+ var a, t;
938
+ return a = e.replace(/_/g, "").toLowerCase(), t = a[0] === "-" ? -1 : 1, "+-".indexOf(a[0]) >= 0 && (a = a.slice(1)), a === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : a === ".nan" ? NaN : t * parseFloat(a, 10);
939
939
  }
940
- var Rr = /^[-+]?[0-9]+e/;
941
- function qr(e, r) {
940
+ var qr = /^[-+]?[0-9]+e/;
941
+ function Br(e, a) {
942
942
  var t;
943
943
  if (isNaN(e))
944
- switch (r) {
944
+ switch (a) {
945
945
  case "lowercase":
946
946
  return ".nan";
947
947
  case "uppercase":
@@ -950,7 +950,7 @@ function qr(e, r) {
950
950
  return ".NaN";
951
951
  }
952
952
  else if (Number.POSITIVE_INFINITY === e)
953
- switch (r) {
953
+ switch (a) {
954
954
  case "lowercase":
955
955
  return ".inf";
956
956
  case "uppercase":
@@ -959,7 +959,7 @@ function qr(e, r) {
959
959
  return ".Inf";
960
960
  }
961
961
  else if (Number.NEGATIVE_INFINITY === e)
962
- switch (r) {
962
+ switch (a) {
963
963
  case "lowercase":
964
964
  return "-.inf";
965
965
  case "uppercase":
@@ -967,191 +967,191 @@ function qr(e, r) {
967
967
  case "camelcase":
968
968
  return "-.Inf";
969
969
  }
970
- else if (Ae.isNegativeZero(e))
970
+ else if (Oe.isNegativeZero(e))
971
971
  return "-0.0";
972
- return t = e.toString(10), Rr.test(t) ? t.replace("e", ".e") : t;
972
+ return t = e.toString(10), qr.test(t) ? t.replace("e", ".e") : t;
973
973
  }
974
- function Br(e) {
975
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Ae.isNegativeZero(e));
974
+ function Ur(e) {
975
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Oe.isNegativeZero(e));
976
976
  }
977
- var Vr = new D("tag:yaml.org,2002:float", {
977
+ var Vr = new H("tag:yaml.org,2002:float", {
978
978
  kind: "scalar",
979
- resolve: jr,
980
- construct: Pr,
981
- predicate: Br,
982
- represent: qr,
979
+ resolve: Pr,
980
+ construct: Rr,
981
+ predicate: Ur,
982
+ represent: Br,
983
983
  defaultStyle: "lowercase"
984
- }), Ur = br.extend({
984
+ }), Dr = kr.extend({
985
985
  implicit: [
986
- _r,
987
- Tr,
988
- Kr,
986
+ Ir,
987
+ Er,
988
+ jr,
989
989
  Vr
990
990
  ]
991
- }), Lr = Ur, nt = new RegExp(
991
+ }), Lr = Dr, it = new RegExp(
992
992
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
993
- ), it = new RegExp(
993
+ ), ot = new RegExp(
994
994
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
995
995
  );
996
- function Dr(e) {
997
- return e === null ? !1 : nt.exec(e) !== null || it.exec(e) !== null;
998
- }
999
996
  function Hr(e) {
1000
- var r, t, a, n, i, o, m, y = 0, f = null, l, g, w;
1001
- if (r = nt.exec(e), r === null && (r = it.exec(e)), r === null)
997
+ return e === null ? !1 : it.exec(e) !== null || ot.exec(e) !== null;
998
+ }
999
+ function zr(e) {
1000
+ var a, t, r, n, i, o, d, m = 0, p = null, _, l, N;
1001
+ if (a = it.exec(e), a === null && (a = ot.exec(e)), a === null)
1002
1002
  throw new Error("Date resolve error");
1003
- if (t = +r[1], a = +r[2] - 1, n = +r[3], !r[4])
1004
- return new Date(Date.UTC(t, a, n));
1005
- if (i = +r[4], o = +r[5], m = +r[6], r[7]) {
1006
- for (y = r[7].slice(0, 3); y.length < 3; )
1007
- y += "0";
1008
- y = +y;
1003
+ if (t = +a[1], r = +a[2] - 1, n = +a[3], !a[4])
1004
+ return new Date(Date.UTC(t, r, n));
1005
+ if (i = +a[4], o = +a[5], d = +a[6], a[7]) {
1006
+ for (m = a[7].slice(0, 3); m.length < 3; )
1007
+ m += "0";
1008
+ m = +m;
1009
1009
  }
1010
- return r[9] && (l = +r[10], g = +(r[11] || 0), f = (l * 60 + g) * 6e4, r[9] === "-" && (f = -f)), w = new Date(Date.UTC(t, a, n, i, o, m, y)), f && w.setTime(w.getTime() - f), w;
1010
+ return a[9] && (_ = +a[10], l = +(a[11] || 0), p = (_ * 60 + l) * 6e4, a[9] === "-" && (p = -p)), N = new Date(Date.UTC(t, r, n, i, o, d, m)), p && N.setTime(N.getTime() - p), N;
1011
1011
  }
1012
- function zr(e) {
1012
+ function Wr(e) {
1013
1013
  return e.toISOString();
1014
1014
  }
1015
- var Wr = new D("tag:yaml.org,2002:timestamp", {
1015
+ var Jr = new H("tag:yaml.org,2002:timestamp", {
1016
1016
  kind: "scalar",
1017
- resolve: Dr,
1018
- construct: Hr,
1017
+ resolve: Hr,
1018
+ construct: zr,
1019
1019
  instanceOf: Date,
1020
- represent: zr
1020
+ represent: Wr
1021
1021
  });
1022
- function Jr(e) {
1022
+ function Yr(e) {
1023
1023
  return e === "<<" || e === null;
1024
1024
  }
1025
- var Yr = new D("tag:yaml.org,2002:merge", {
1025
+ var Zr = new H("tag:yaml.org,2002:merge", {
1026
1026
  kind: "scalar",
1027
- resolve: Jr
1028
- }), $e = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1027
+ resolve: Yr
1028
+ }), Me = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1029
1029
  \r`;
1030
- function Zr(e) {
1030
+ function Gr(e) {
1031
1031
  if (e === null)
1032
1032
  return !1;
1033
- var r, t, a = 0, n = e.length, i = $e;
1033
+ var a, t, r = 0, n = e.length, i = Me;
1034
1034
  for (t = 0; t < n; t++)
1035
- if (r = i.indexOf(e.charAt(t)), !(r > 64)) {
1036
- if (r < 0)
1035
+ if (a = i.indexOf(e.charAt(t)), !(a > 64)) {
1036
+ if (a < 0)
1037
1037
  return !1;
1038
- a += 6;
1038
+ r += 6;
1039
1039
  }
1040
- return a % 8 === 0;
1041
- }
1042
- function Gr(e) {
1043
- var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i = $e, o = 0, m = [];
1044
- for (r = 0; r < n; r++)
1045
- r % 4 === 0 && r && (m.push(o >> 16 & 255), m.push(o >> 8 & 255), m.push(o & 255)), o = o << 6 | i.indexOf(a.charAt(r));
1046
- return t = n % 4 * 6, t === 0 ? (m.push(o >> 16 & 255), m.push(o >> 8 & 255), m.push(o & 255)) : t === 18 ? (m.push(o >> 10 & 255), m.push(o >> 2 & 255)) : t === 12 && m.push(o >> 4 & 255), new Uint8Array(m);
1040
+ return r % 8 === 0;
1047
1041
  }
1048
1042
  function Qr(e) {
1049
- var r = "", t = 0, a, n, i = e.length, o = $e;
1050
- for (a = 0; a < i; a++)
1051
- a % 3 === 0 && a && (r += o[t >> 18 & 63], r += o[t >> 12 & 63], r += o[t >> 6 & 63], r += o[t & 63]), t = (t << 8) + e[a];
1052
- return n = i % 3, n === 0 ? (r += o[t >> 18 & 63], r += o[t >> 12 & 63], r += o[t >> 6 & 63], r += o[t & 63]) : n === 2 ? (r += o[t >> 10 & 63], r += o[t >> 4 & 63], r += o[t << 2 & 63], r += o[64]) : n === 1 && (r += o[t >> 2 & 63], r += o[t << 4 & 63], r += o[64], r += o[64]), r;
1043
+ var a, t, r = e.replace(/[\r\n=]/g, ""), n = r.length, i = Me, o = 0, d = [];
1044
+ for (a = 0; a < n; a++)
1045
+ a % 4 === 0 && a && (d.push(o >> 16 & 255), d.push(o >> 8 & 255), d.push(o & 255)), o = o << 6 | i.indexOf(r.charAt(a));
1046
+ return t = n % 4 * 6, t === 0 ? (d.push(o >> 16 & 255), d.push(o >> 8 & 255), d.push(o & 255)) : t === 18 ? (d.push(o >> 10 & 255), d.push(o >> 2 & 255)) : t === 12 && d.push(o >> 4 & 255), new Uint8Array(d);
1053
1047
  }
1054
1048
  function Xr(e) {
1049
+ var a = "", t = 0, r, n, i = e.length, o = Me;
1050
+ for (r = 0; r < i; r++)
1051
+ r % 3 === 0 && r && (a += o[t >> 18 & 63], a += o[t >> 12 & 63], a += o[t >> 6 & 63], a += o[t & 63]), t = (t << 8) + e[r];
1052
+ return n = i % 3, n === 0 ? (a += o[t >> 18 & 63], a += o[t >> 12 & 63], a += o[t >> 6 & 63], a += o[t & 63]) : n === 2 ? (a += o[t >> 10 & 63], a += o[t >> 4 & 63], a += o[t << 2 & 63], a += o[64]) : n === 1 && (a += o[t >> 2 & 63], a += o[t << 4 & 63], a += o[64], a += o[64]), a;
1053
+ }
1054
+ function ea(e) {
1055
1055
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1056
1056
  }
1057
- var ea = new D("tag:yaml.org,2002:binary", {
1057
+ var ta = new H("tag:yaml.org,2002:binary", {
1058
1058
  kind: "scalar",
1059
- resolve: Zr,
1060
- construct: Gr,
1061
- predicate: Xr,
1062
- represent: Qr
1063
- }), ta = Object.prototype.hasOwnProperty, ra = Object.prototype.toString;
1064
- function aa(e) {
1059
+ resolve: Gr,
1060
+ construct: Qr,
1061
+ predicate: ea,
1062
+ represent: Xr
1063
+ }), ra = Object.prototype.hasOwnProperty, aa = Object.prototype.toString;
1064
+ function na(e) {
1065
1065
  if (e === null)
1066
1066
  return !0;
1067
- var r = [], t, a, n, i, o, m = e;
1068
- for (t = 0, a = m.length; t < a; t += 1) {
1069
- if (n = m[t], o = !1, ra.call(n) !== "[object Object]")
1067
+ var a = [], t, r, n, i, o, d = e;
1068
+ for (t = 0, r = d.length; t < r; t += 1) {
1069
+ if (n = d[t], o = !1, aa.call(n) !== "[object Object]")
1070
1070
  return !1;
1071
1071
  for (i in n)
1072
- if (ta.call(n, i))
1072
+ if (ra.call(n, i))
1073
1073
  if (!o)
1074
1074
  o = !0;
1075
1075
  else
1076
1076
  return !1;
1077
1077
  if (!o)
1078
1078
  return !1;
1079
- if (r.indexOf(i) === -1)
1080
- r.push(i);
1079
+ if (a.indexOf(i) === -1)
1080
+ a.push(i);
1081
1081
  else
1082
1082
  return !1;
1083
1083
  }
1084
1084
  return !0;
1085
1085
  }
1086
- function na(e) {
1086
+ function ia(e) {
1087
1087
  return e !== null ? e : [];
1088
1088
  }
1089
- var ia = new D("tag:yaml.org,2002:omap", {
1089
+ var oa = new H("tag:yaml.org,2002:omap", {
1090
1090
  kind: "sequence",
1091
- resolve: aa,
1092
- construct: na
1093
- }), oa = Object.prototype.toString;
1094
- function la(e) {
1091
+ resolve: na,
1092
+ construct: ia
1093
+ }), la = Object.prototype.toString;
1094
+ function sa(e) {
1095
1095
  if (e === null)
1096
1096
  return !0;
1097
- var r, t, a, n, i, o = e;
1098
- for (i = new Array(o.length), r = 0, t = o.length; r < t; r += 1) {
1099
- if (a = o[r], oa.call(a) !== "[object Object]" || (n = Object.keys(a), n.length !== 1))
1097
+ var a, t, r, n, i, o = e;
1098
+ for (i = new Array(o.length), a = 0, t = o.length; a < t; a += 1) {
1099
+ if (r = o[a], la.call(r) !== "[object Object]" || (n = Object.keys(r), n.length !== 1))
1100
1100
  return !1;
1101
- i[r] = [n[0], a[n[0]]];
1101
+ i[a] = [n[0], r[n[0]]];
1102
1102
  }
1103
1103
  return !0;
1104
1104
  }
1105
- function sa(e) {
1105
+ function ca(e) {
1106
1106
  if (e === null)
1107
1107
  return [];
1108
- var r, t, a, n, i, o = e;
1109
- for (i = new Array(o.length), r = 0, t = o.length; r < t; r += 1)
1110
- a = o[r], n = Object.keys(a), i[r] = [n[0], a[n[0]]];
1108
+ var a, t, r, n, i, o = e;
1109
+ for (i = new Array(o.length), a = 0, t = o.length; a < t; a += 1)
1110
+ r = o[a], n = Object.keys(r), i[a] = [n[0], r[n[0]]];
1111
1111
  return i;
1112
1112
  }
1113
- var ca = new D("tag:yaml.org,2002:pairs", {
1113
+ var ua = new H("tag:yaml.org,2002:pairs", {
1114
1114
  kind: "sequence",
1115
- resolve: la,
1116
- construct: sa
1117
- }), ua = Object.prototype.hasOwnProperty;
1118
- function da(e) {
1115
+ resolve: sa,
1116
+ construct: ca
1117
+ }), da = Object.prototype.hasOwnProperty;
1118
+ function pa(e) {
1119
1119
  if (e === null)
1120
1120
  return !0;
1121
- var r, t = e;
1122
- for (r in t)
1123
- if (ua.call(t, r) && t[r] !== null)
1121
+ var a, t = e;
1122
+ for (a in t)
1123
+ if (da.call(t, a) && t[a] !== null)
1124
1124
  return !1;
1125
1125
  return !0;
1126
1126
  }
1127
- function pa(e) {
1127
+ function fa(e) {
1128
1128
  return e !== null ? e : {};
1129
1129
  }
1130
- var fa = new D("tag:yaml.org,2002:set", {
1130
+ var ma = new H("tag:yaml.org,2002:set", {
1131
1131
  kind: "mapping",
1132
- resolve: da,
1133
- construct: pa
1132
+ resolve: pa,
1133
+ construct: fa
1134
1134
  });
1135
1135
  Lr.extend({
1136
1136
  implicit: [
1137
- Wr,
1138
- Yr
1137
+ Jr,
1138
+ Zr
1139
1139
  ],
1140
1140
  explicit: [
1141
- ea,
1142
- ia,
1143
- ca,
1144
- fa
1141
+ ta,
1142
+ oa,
1143
+ ua,
1144
+ ma
1145
1145
  ]
1146
1146
  });
1147
1147
  function Ve(e) {
1148
1148
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1149
1149
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1150
1150
  }
1151
- var ya = new Array(256), ma = new Array(256);
1152
- for (var se = 0; se < 256; se++)
1153
- ya[se] = Ve(se) ? 1 : 0, ma[se] = Ve(se);
1154
- const ga = ["onReset", "onSubmit"], va = {
1151
+ var ya = new Array(256), ga = new Array(256);
1152
+ for (var ce = 0; ce < 256; ce++)
1153
+ ya[ce] = Ve(ce) ? 1 : 0, ga[ce] = Ve(ce);
1154
+ const va = {
1155
1155
  class: "form-actions",
1156
1156
  "data-testid": "form-actions"
1157
1157
  }, ha = /* @__PURE__ */ ee({
@@ -1202,101 +1202,101 @@ const ga = ["onReset", "onSubmit"], va = {
1202
1202
  }
1203
1203
  },
1204
1204
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
1205
- setup(e, { emit: r }) {
1205
+ setup(e, { emit: a }) {
1206
1206
  var t;
1207
- const a = e, n = Ye(), { i18n: { t: i } } = le.useI18n(), { getMessageFromError: o } = le.useErrors(), { axiosInstance: m } = le.useAxios({
1208
- headers: (t = a.config) == null ? void 0 : t.requestHeaders
1209
- }), y = C(!1), f = C(!1), l = C(""), g = S(() => a.canSubmit === !1 || a.isReadonly), w = S(() => {
1210
- var c, h;
1211
- if (!a.editId)
1207
+ const r = a, n = e, i = Ze(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: d } = se.useErrors(), { axiosInstance: m } = se.useAxios({
1208
+ headers: (t = n.config) == null ? void 0 : t.requestHeaders
1209
+ }), p = C(!1), _ = C(!1), l = C(""), N = S(() => n.canSubmit === !1 || n.isReadonly), k = S(() => {
1210
+ var u, T;
1211
+ if (!n.editId)
1212
1212
  return "";
1213
- let I = `${a.config.apiBaseUrl}${a.fetchUrl}`;
1214
- return a.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((c = a.config) == null ? void 0 : c.controlPlaneId) || "") : a.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (h = a.config) != null && h.workspace ? `/${a.config.workspace}` : "")), I = I.replace(/{id}/gi, a.editId), I;
1215
- }), T = () => {
1216
- a.config.cancelRoute ? n.push(a.config.cancelRoute) : B();
1217
- }, B = () => {
1213
+ let E = `${n.config.apiBaseUrl}${n.fetchUrl}`;
1214
+ return n.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((u = n.config) == null ? void 0 : u.controlPlaneId) || "") : n.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (T = n.config) != null && T.workspace ? `/${n.config.workspace}` : "")), E = E.replace(/{id}/gi, n.editId), E;
1215
+ }), V = () => {
1216
+ n.config.cancelRoute ? i.push(n.config.cancelRoute) : y();
1217
+ }, y = () => {
1218
1218
  r("cancel");
1219
- }, v = () => {
1220
- g.value || r("submit");
1219
+ }, A = () => {
1220
+ N.value || r("submit");
1221
1221
  };
1222
- return ae(() => y.value, (c) => {
1223
- r("loading", c);
1224
- }, { immediate: !0 }), xe(async () => {
1225
- if (a.editId)
1222
+ return ne(() => p.value, (u) => {
1223
+ r("loading", u);
1224
+ }, { immediate: !0 }), Ce(async () => {
1225
+ if (n.editId)
1226
1226
  try {
1227
- f.value = !1, y.value = !0;
1228
- const { data: c } = await m.get(w.value);
1229
- r("fetch:success", c);
1230
- } catch (c) {
1231
- const h = o(c);
1232
- l.value = h.startsWith("code") ? i("baseForm.errors.edit") : h, f.value = !0, r("fetch:error", c);
1227
+ _.value = !1, p.value = !0;
1228
+ const { data: u } = await m.get(k.value);
1229
+ r("fetch:success", u);
1230
+ } catch (u) {
1231
+ const T = d(u);
1232
+ l.value = T.startsWith("code") ? o("baseForm.errors.edit") : T, _.value = !0, r("fetch:error", u);
1233
1233
  } finally {
1234
- y.value = !1;
1234
+ p.value = !1;
1235
1235
  }
1236
- }), (c, h) => {
1237
- const I = K("KSkeleton"), j = K("KEmptyState"), u = K("KAlert"), A = K("KButton"), H = K("KCard");
1238
- return k(), U(H, { class: "kong-ui-entity-base-form" }, {
1239
- default: p(() => [
1240
- y.value ? (k(), U(I, {
1236
+ }), (u, T) => {
1237
+ const E = j("KSkeleton"), w = j("KEmptyState"), g = j("KAlert"), O = j("KButton"), z = j("KCard");
1238
+ return b(), D(z, { class: "kong-ui-entity-base-form" }, {
1239
+ default: f(() => [
1240
+ p.value ? (b(), D(E, {
1241
1241
  key: 0,
1242
1242
  type: "form"
1243
- })) : f.value ? (k(), U(j, {
1243
+ })) : _.value ? (b(), D(w, {
1244
1244
  key: 1,
1245
- "cta-text": s(i)("baseForm.actions.back"),
1245
+ "cta-text": s(o)("baseForm.actions.back"),
1246
1246
  "data-testid": "form-fetch-error",
1247
- "handle-click": T,
1247
+ "handle-click": V,
1248
1248
  "is-error": !0
1249
1249
  }, {
1250
- message: p(() => [
1251
- M("h3", null, $(l.value), 1)
1250
+ message: f(() => [
1251
+ $("h3", null, M(l.value), 1)
1252
1252
  ]),
1253
1253
  _: 1
1254
- }, 8, ["cta-text"])) : (k(), q("form", {
1254
+ }, 8, ["cta-text"])) : (b(), q("form", {
1255
1255
  key: 2,
1256
1256
  "data-testid": "form-content",
1257
- onReset: he(B, ["prevent"]),
1258
- onSubmit: he(v, ["prevent"])
1257
+ onReset: be(y, ["prevent"]),
1258
+ onSubmit: be(A, ["prevent"])
1259
1259
  }, [
1260
- G(c.$slots, "default", {}, void 0, !0),
1261
- e.errorMessage ? (k(), U(u, {
1260
+ G(u.$slots, "default", {}, void 0, !0),
1261
+ e.errorMessage ? (b(), D(g, {
1262
1262
  key: 0,
1263
1263
  "alert-message": e.errorMessage,
1264
1264
  appearance: "danger",
1265
1265
  "data-testid": "form-error"
1266
1266
  }, null, 8, ["alert-message"])) : X("", !0),
1267
- M("div", va, [
1268
- G(c.$slots, "form-actions", {}, () => [
1269
- x(A, {
1267
+ $("div", va, [
1268
+ G(u.$slots, "form-actions", {}, () => [
1269
+ x(O, {
1270
1270
  appearance: "secondary",
1271
1271
  "data-testid": "form-cancel",
1272
1272
  disabled: e.isReadonly,
1273
1273
  type: "reset"
1274
1274
  }, {
1275
- default: p(() => [
1276
- J($(s(i)("baseForm.actions.cancel")), 1)
1275
+ default: f(() => [
1276
+ J(M(s(o)("baseForm.actions.cancel")), 1)
1277
1277
  ]),
1278
1278
  _: 1
1279
1279
  }, 8, ["disabled"]),
1280
- x(A, {
1280
+ x(O, {
1281
1281
  appearance: "primary",
1282
1282
  "data-testid": "form-submit",
1283
- disabled: g.value,
1283
+ disabled: N.value,
1284
1284
  type: "submit"
1285
1285
  }, {
1286
- default: p(() => [
1287
- J($(s(i)("baseForm.actions.save")), 1)
1286
+ default: f(() => [
1287
+ J(M(s(o)("baseForm.actions.save")), 1)
1288
1288
  ]),
1289
1289
  _: 1
1290
1290
  }, 8, ["disabled"])
1291
1291
  ], !0)
1292
1292
  ])
1293
- ], 40, ga))
1293
+ ], 32))
1294
1294
  ]),
1295
1295
  _: 3
1296
1296
  });
1297
1297
  };
1298
1298
  }
1299
- }), ba = /* @__PURE__ */ ce(ha, [["__scopeId", "data-v-448d8512"]]), ka = {
1299
+ }), ba = /* @__PURE__ */ ue(ha, [["__scopeId", "data-v-448d8512"]]), ka = {
1300
1300
  key: 0,
1301
1301
  "data-testid": "first-col"
1302
1302
  }, wa = /* @__PURE__ */ ee({
@@ -1312,65 +1312,65 @@ const ga = ["onReset", "onSubmit"], va = {
1312
1312
  }
1313
1313
  },
1314
1314
  setup(e) {
1315
- const r = e, t = S(() => {
1316
- var v;
1317
- return ((v = r.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${r.keyName}"]`)) || null;
1318
- }), a = S(() => {
1319
- var v;
1320
- return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
1315
+ const a = e, t = S(() => {
1316
+ var y;
1317
+ return ((y = a.rowEl) == null ? void 0 : y.querySelector(`[data-testid="${a.keyName}"]`)) || null;
1318
+ }), r = S(() => {
1319
+ var y;
1320
+ return ((y = t.value) == null ? void 0 : y.querySelector('[data-testid="first-col"]')) || null;
1321
1321
  }), n = S(() => {
1322
- var v, c;
1323
- const h = (v = r.rowEl) == null ? void 0 : v.querySelectorAll("td");
1324
- return h ? ((c = h[0]) == null ? void 0 : c.getAttribute("data-testid")) === r.keyName : !1;
1322
+ var y, A;
1323
+ const u = (y = a.rowEl) == null ? void 0 : y.querySelectorAll("td");
1324
+ return u ? ((A = u[0]) == null ? void 0 : A.getAttribute("data-testid")) === a.keyName : !1;
1325
1325
  });
1326
1326
  let i;
1327
1327
  const o = () => {
1328
1328
  i && (i.disconnect(), i = void 0);
1329
- }, m = () => {
1330
- var v, c, h;
1331
- f.value = ((v = a.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, l.value = ((c = t.value) == null ? void 0 : c.clientWidth) || 0, g.value = ((h = y.value) == null ? void 0 : h.innerText) || "";
1332
- }, y = C({}), f = C(0), l = C(0), g = C(""), w = S(() => [a.value, t.value]), T = ae(
1333
- w,
1334
- (v) => {
1329
+ }, d = () => {
1330
+ var y, A, u;
1331
+ p.value = ((y = r.value) == null ? void 0 : y.getBoundingClientRect().width) || 0, _.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, l.value = ((u = m.value) == null ? void 0 : u.innerText) || "";
1332
+ }, m = C({}), p = C(0), _ = C(0), l = C(""), N = S(() => [r.value, t.value]), k = ne(
1333
+ N,
1334
+ (y) => {
1335
1335
  if (n.value && (o(), "ResizeObserver" in window && window)) {
1336
- i = new ResizeObserver((c) => {
1336
+ i = new ResizeObserver((A) => {
1337
1337
  window.requestAnimationFrame(() => {
1338
- !Array.isArray(c) || !c.length || m();
1338
+ !Array.isArray(A) || !A.length || d();
1339
1339
  });
1340
1340
  });
1341
- for (const c of v)
1342
- c && i.observe(c);
1341
+ for (const A of y)
1342
+ A && i.observe(A);
1343
1343
  }
1344
1344
  },
1345
1345
  { immediate: !0, flush: "post", deep: !0 }
1346
- ), B = S(() => n.value ? f.value > l.value : !1);
1347
- return ct(() => {
1348
- m();
1349
- }), ut(() => {
1350
- T();
1351
- }), (v, c) => {
1352
- const h = K("KTooltip");
1353
- return k(), q("span", {
1346
+ ), V = S(() => n.value ? p.value > _.value : !1);
1347
+ return ut(() => {
1348
+ d();
1349
+ }), dt(() => {
1350
+ k();
1351
+ }), (y, A) => {
1352
+ const u = j("KTooltip");
1353
+ return b(), q("span", {
1354
1354
  ref_key: "contentRef",
1355
- ref: y,
1355
+ ref: m,
1356
1356
  class: "content-wrapper"
1357
1357
  }, [
1358
- n.value ? (k(), q("span", ka, [
1359
- x(h, {
1360
- label: B.value ? g.value : "",
1358
+ n.value ? (b(), q("span", ka, [
1359
+ x(u, {
1360
+ label: V.value ? l.value : "",
1361
1361
  "max-width": "300",
1362
1362
  placement: "bottomStart"
1363
1363
  }, {
1364
- default: p(() => [
1365
- G(v.$slots, "default", {}, void 0, !0)
1364
+ default: f(() => [
1365
+ G(y.$slots, "default", {}, void 0, !0)
1366
1366
  ]),
1367
1367
  _: 3
1368
1368
  }, 8, ["label"])
1369
- ])) : G(v.$slots, "default", { key: 1 }, void 0, !0)
1369
+ ])) : G(y.$slots, "default", { key: 1 }, void 0, !0)
1370
1370
  ], 512);
1371
1371
  };
1372
1372
  }
1373
- }), Sa = /* @__PURE__ */ ce(wa, [["__scopeId", "data-v-e42a20c9"]]), _a = { class: "toolbar-container" }, Ia = {
1373
+ }), Sa = /* @__PURE__ */ ue(wa, [["__scopeId", "data-v-e42a20c9"]]), _a = { class: "toolbar-container" }, Ia = {
1374
1374
  key: 0,
1375
1375
  class: "toolbar-button-container"
1376
1376
  }, xa = ["data-testid"], Ca = /* @__PURE__ */ ee({
@@ -1482,139 +1482,139 @@ const ga = ["onReset", "onSubmit"], va = {
1482
1482
  }
1483
1483
  },
1484
1484
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
1485
- setup(e, { emit: r }) {
1486
- const t = e, { i18n: { t: a } } = le.useI18n(), n = S(() => {
1487
- var u, A;
1485
+ setup(e, { emit: a }) {
1486
+ const t = e, r = a, { i18n: { t: n } } = se.useI18n(), i = S(() => {
1487
+ var g, O;
1488
1488
  return typeof t.errorMessage == "string" ? {
1489
1489
  hasError: !!t.errorMessage,
1490
1490
  title: t.errorMessage,
1491
1491
  message: void 0
1492
1492
  } : {
1493
1493
  hasError: !!t.errorMessage,
1494
- title: (u = t.errorMessage) == null ? void 0 : u.title,
1495
- message: (A = t.errorMessage) == null ? void 0 : A.message
1494
+ title: (g = t.errorMessage) == null ? void 0 : g.title,
1495
+ message: (O = t.errorMessage) == null ? void 0 : O.message
1496
1496
  };
1497
- }), i = S(() => t.cacheIdentifier || t.preferencesStorageKey), o = (u) => u.hasData || !!t.query, m = S(() => {
1498
- const u = [];
1499
- return Object.keys(t.tableHeaders).forEach((A) => {
1500
- const H = t.tableHeaders[A];
1501
- u.push({
1502
- label: H.label ?? A,
1503
- key: A,
1504
- sortable: H.sortable ?? !1
1497
+ }), o = S(() => t.cacheIdentifier || t.preferencesStorageKey), d = (g) => g.hasData || !!t.query, m = S(() => {
1498
+ const g = [];
1499
+ return Object.keys(t.tableHeaders).forEach((O) => {
1500
+ const z = t.tableHeaders[O];
1501
+ g.push({
1502
+ label: z.label ?? O,
1503
+ key: O,
1504
+ sortable: z.sortable ?? !1
1505
1505
  });
1506
- }), t.enableEntityActions && u.push({
1506
+ }), t.enableEntityActions && g.push({
1507
1507
  key: "actions",
1508
1508
  hideLabel: !0
1509
- }), u;
1510
- }), y = (u) => ({
1511
- "data-rowid": u.id,
1512
- "data-testid": u.name,
1513
- ...t.rowAttributes(u)
1514
- }), f = C({}), l = (u) => {
1515
- var A;
1516
- return (A = f.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${u.id}"]`);
1517
- }, g = (u) => {
1518
- const A = {
1519
- "data-testid": u.headerKey,
1520
- ...t.cellAttributes(u)
1509
+ }), g;
1510
+ }), p = (g) => ({
1511
+ "data-rowid": g.id,
1512
+ "data-testid": g.name,
1513
+ ...t.rowAttributes(g)
1514
+ }), _ = C({}), l = (g) => {
1515
+ var O;
1516
+ return (O = _.value) == null ? void 0 : O.$el.querySelector(`[data-rowid="${g.id}"]`);
1517
+ }, N = (g) => {
1518
+ const O = {
1519
+ "data-testid": g.headerKey,
1520
+ ...t.cellAttributes(g)
1521
1521
  };
1522
- return u.colIndex === 0 && (A.style = {
1522
+ return g.colIndex === 0 && (O.style = {
1523
1523
  maxWidth: "250px",
1524
1524
  overflowX: "hidden",
1525
1525
  textOverflow: "ellipsis"
1526
- }), A;
1527
- }, w = () => {
1528
- r("empty-state-cta-clicked"), T();
1529
- }, T = () => {
1526
+ }), O;
1527
+ }, k = () => {
1528
+ r("empty-state-cta-clicked"), V();
1529
+ }, V = () => {
1530
1530
  r("clear-search-input");
1531
- }, B = S(() => t.disableRowClick ? void 0 : (u, A) => {
1532
- r("click:row", A);
1533
- }), v = (u) => {
1534
- r("sort", u);
1535
- }, { setTablePreferences: c, getTablePreferences: h } = Tt(), I = S(() => {
1536
- const u = h(t.preferencesStorageKey);
1531
+ }, y = S(() => t.disableRowClick ? void 0 : (g, O) => {
1532
+ r("click:row", O);
1533
+ }), A = (g) => {
1534
+ r("sort", g);
1535
+ }, { setTablePreferences: u, getTablePreferences: T } = Et(), E = S(() => {
1536
+ const g = T(t.preferencesStorageKey);
1537
1537
  return {
1538
1538
  ...t.initialFetcherParams,
1539
- ...u
1539
+ ...g
1540
1540
  };
1541
- }), j = (u) => {
1542
- t.preferencesStorageKey && c(t.preferencesStorageKey, u);
1541
+ }), w = (g) => {
1542
+ t.preferencesStorageKey && u(t.preferencesStorageKey, g);
1543
1543
  };
1544
- return (u, A) => {
1545
- const H = K("KIcon"), E = K("KButton"), P = K("KDropdown"), F = K("KTable"), z = K("KCard");
1546
- return k(), U(z, {
1544
+ return (g, O) => {
1545
+ const z = j("KIcon"), v = j("KButton"), B = j("KDropdown"), L = j("KTable"), P = j("KCard");
1546
+ return b(), D(P, {
1547
1547
  class: "kong-ui-entity-base-table",
1548
1548
  title: e.title
1549
1549
  }, {
1550
- default: p(() => [
1551
- x(F, {
1550
+ default: f(() => [
1551
+ x(L, {
1552
1552
  ref_key: "tableRefs",
1553
- ref: f,
1554
- "cache-identifier": i.value,
1555
- "cell-attrs": g,
1553
+ ref: _,
1554
+ "cache-identifier": o.value,
1555
+ "cell-attrs": N,
1556
1556
  "disable-pagination-page-jump": e.disablePaginationPageJump,
1557
1557
  "disable-sorting": e.disableSorting,
1558
1558
  "empty-state-action-button-icon": e.query ? "" : "plus",
1559
- "empty-state-action-message": e.query ? s(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
1559
+ "empty-state-action-message": e.query ? s(n)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
1560
1560
  "empty-state-action-route": e.query ? "" : e.emptyStateOptions.ctaPath,
1561
1561
  "empty-state-icon": e.query ? "stateNoSearchResults" : "stateGruceo",
1562
1562
  "empty-state-icon-size": "96",
1563
- "empty-state-message": e.query ? s(a)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
1564
- "empty-state-title": e.query ? s(a)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
1563
+ "empty-state-message": e.query ? s(n)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
1564
+ "empty-state-title": e.query ? s(n)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
1565
1565
  "enable-client-sort": e.enableClientSort,
1566
- "error-state-message": n.value.message,
1567
- "error-state-title": n.value.title,
1566
+ "error-state-message": i.value.message,
1567
+ "error-state-title": i.value.title,
1568
1568
  fetcher: e.fetcher,
1569
1569
  "fetcher-cache-key": String(e.fetcherCacheKey),
1570
- "has-error": n.value.hasError,
1570
+ "has-error": i.value.hasError,
1571
1571
  headers: m.value,
1572
1572
  "hide-pagination-when-optional": "",
1573
- "initial-fetcher-params": I.value,
1573
+ "initial-fetcher-params": E.value,
1574
1574
  "is-loading": e.isLoading,
1575
1575
  "pagination-type": e.paginationType,
1576
- "row-attrs": y,
1576
+ "row-attrs": p,
1577
1577
  "search-input": e.query,
1578
- onKtableEmptyStateCtaClicked: w,
1579
- "onRow:click": B.value,
1580
- onSort: A[0] || (A[0] = (N) => v(N)),
1581
- "onUpdate:tablePreferences": j
1582
- }, ze({
1583
- toolbar: p(({ state: N }) => [
1584
- fe(M("div", _a, [
1585
- G(u.$slots, "toolbar-filter", {}, void 0, !0),
1586
- u.$slots["toolbar-button"] ? (k(), q("div", Ia, [
1587
- G(u.$slots, "toolbar-button", {}, void 0, !0)
1578
+ onKtableEmptyStateCtaClicked: k,
1579
+ "onRow:click": y.value,
1580
+ onSort: O[0] || (O[0] = (F) => A(F)),
1581
+ "onUpdate:tablePreferences": w
1582
+ }, We({
1583
+ toolbar: f(({ state: F }) => [
1584
+ me($("div", _a, [
1585
+ G(g.$slots, "toolbar-filter", {}, void 0, !0),
1586
+ g.$slots["toolbar-button"] ? (b(), q("div", Ia, [
1587
+ G(g.$slots, "toolbar-button", {}, void 0, !0)
1588
1588
  ])) : X("", !0)
1589
1589
  ], 512), [
1590
- [ye, o(N)]
1590
+ [ye, d(F)]
1591
1591
  ])
1592
1592
  ]),
1593
- actions: p(({ row: N, rowKey: L, rowValue: Z }) => [
1594
- M("div", {
1593
+ actions: f(({ row: F, rowKey: Y, rowValue: te }) => [
1594
+ $("div", {
1595
1595
  class: "actions-container",
1596
- "data-testid": N.name
1596
+ "data-testid": F.name
1597
1597
  }, [
1598
- x(P, {
1598
+ x(B, {
1599
1599
  "kpop-attributes": { placement: "bottomEnd" },
1600
1600
  width: e.dropdownMenuWidth
1601
1601
  }, {
1602
- items: p(() => [
1603
- G(u.$slots, "actions", {
1604
- row: N,
1605
- rowKey: L,
1606
- rowValue: Z
1602
+ items: f(() => [
1603
+ G(g.$slots, "actions", {
1604
+ row: F,
1605
+ rowKey: Y,
1606
+ rowValue: te
1607
1607
  }, void 0, !0)
1608
1608
  ]),
1609
- default: p(() => [
1610
- x(E, {
1609
+ default: f(() => [
1610
+ x(v, {
1611
1611
  class: "actions-trigger",
1612
1612
  "data-testid": "overflow-actions-button",
1613
1613
  size: "small"
1614
1614
  }, {
1615
- icon: p(() => [
1616
- x(H, {
1617
- color: s(Qt),
1615
+ icon: f(() => [
1616
+ x(z, {
1617
+ color: s(Xt),
1618
1618
  icon: "more",
1619
1619
  size: "16"
1620
1620
  }, null, 8, ["color"])
@@ -1628,20 +1628,20 @@ const ga = ["onReset", "onSubmit"], va = {
1628
1628
  ]),
1629
1629
  _: 2
1630
1630
  }, [
1631
- Ce(e.tableHeaders, (N, L) => ({
1632
- name: L,
1633
- fn: p(({ row: Z, rowKey: ue, rowValue: te }) => [
1631
+ Te(e.tableHeaders, (F, Y) => ({
1632
+ name: Y,
1633
+ fn: f(({ row: te, rowKey: de, rowValue: re }) => [
1634
1634
  x(Sa, {
1635
- "key-name": String(L),
1636
- "row-el": l(Z)
1635
+ "key-name": String(Y),
1636
+ "row-el": l(te)
1637
1637
  }, {
1638
- default: p(() => [
1639
- G(u.$slots, L, {
1640
- row: Z,
1641
- rowKey: ue,
1642
- rowValue: te
1638
+ default: f(() => [
1639
+ G(g.$slots, Y, {
1640
+ row: te,
1641
+ rowKey: de,
1642
+ rowValue: re
1643
1643
  }, () => [
1644
- J($(te), 1)
1644
+ J(M(re), 1)
1645
1645
  ], !0)
1646
1646
  ]),
1647
1647
  _: 2
@@ -1654,10 +1654,10 @@ const ga = ["onReset", "onSubmit"], va = {
1654
1654
  }, 8, ["title"]);
1655
1655
  };
1656
1656
  }
1657
- }), Ta = /* @__PURE__ */ ce(Ca, [["__scopeId", "data-v-57b5a97b"]]), Na = {
1657
+ }), Ta = /* @__PURE__ */ ue(Ca, [["__scopeId", "data-v-57b5a97b"]]), Ea = {
1658
1658
  key: 0,
1659
1659
  class: "kong-ui-entity-delete-error"
1660
- }, Ea = {
1660
+ }, Na = {
1661
1661
  key: 1,
1662
1662
  class: "description"
1663
1663
  }, Aa = /* @__PURE__ */ ee({
@@ -1698,55 +1698,55 @@ const ga = ["onReset", "onSubmit"], va = {
1698
1698
  }
1699
1699
  },
1700
1700
  emits: ["cancel", "proceed"],
1701
- setup(e, { emit: r }) {
1702
- const t = e, { i18nT: a } = le.useI18n(), n = S(() => t.needConfirm ? t.entityName : ""), i = () => {
1703
- r("cancel");
1704
- }, o = () => {
1705
- r("proceed");
1701
+ setup(e, { emit: a }) {
1702
+ const { i18nT: t } = se.useI18n(), r = e, n = a, i = S(() => r.needConfirm ? r.entityName : ""), o = () => {
1703
+ n("cancel");
1704
+ }, d = () => {
1705
+ n("proceed");
1706
1706
  };
1707
- return (m, y) => {
1708
- const f = K("KAlert"), l = K("KPrompt");
1709
- return k(), U(l, {
1707
+ return (m, p) => {
1708
+ const _ = j("KAlert"), l = j("KPrompt");
1709
+ return b(), D(l, {
1710
1710
  "action-button-text": "Yes, delete",
1711
1711
  "action-pending": e.actionPending,
1712
1712
  class: "kong-ui-entity-delete-modal",
1713
- "confirmation-text": n.value,
1713
+ "confirmation-text": i.value,
1714
1714
  "is-visible": e.visible,
1715
1715
  title: e.title,
1716
1716
  type: "danger",
1717
- onCanceled: i,
1718
- onProceed: o
1717
+ onCanceled: o,
1718
+ onProceed: d
1719
1719
  }, {
1720
- "body-content": p(() => [
1721
- e.error ? (k(), q("div", Na, [
1722
- x(f, { appearance: "danger" }, {
1723
- alertMessage: p(() => [
1724
- J($(e.error), 1)
1720
+ "body-content": f(() => [
1721
+ e.error ? (b(), q("div", Ea, [
1722
+ x(_, { appearance: "danger" }, {
1723
+ alertMessage: f(() => [
1724
+ J(M(e.error), 1)
1725
1725
  ]),
1726
1726
  _: 1
1727
1727
  })
1728
1728
  ])) : X("", !0),
1729
- x(s(a), {
1729
+ x(s(t), {
1730
1730
  class: "message",
1731
- keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
1731
+ keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
1732
1732
  tag: "p"
1733
- }, ze({
1734
- entityType: p(() => [
1735
- J($(t.entityType), 1)
1733
+ }, We({
1734
+ entityType: f(() => [
1735
+ J(M(r.entityType), 1)
1736
1736
  ]),
1737
1737
  _: 2
1738
1738
  }, [
1739
- t.entityName ? {
1739
+ r.entityName ? {
1740
1740
  name: "entityName",
1741
- fn: p(() => [
1742
- M("strong", null, $(t.entityName), 1)
1741
+ fn: f(() => [
1742
+ $("strong", null, M(r.entityName), 1)
1743
1743
  ]),
1744
1744
  key: "0"
1745
1745
  } : void 0
1746
1746
  ]), 1032, ["keypath"]),
1747
- t.description || m.$slots.description ? (k(), q("div", Ea, [
1747
+ r.description || m.$slots.description ? (b(), q("div", Na, [
1748
1748
  G(m.$slots, "description", {}, () => [
1749
- M("p", null, $(t.description), 1)
1749
+ $("p", null, M(r.description), 1)
1750
1750
  ], !0)
1751
1751
  ])) : X("", !0)
1752
1752
  ]),
@@ -1754,13 +1754,13 @@ const ga = ["onReset", "onSubmit"], va = {
1754
1754
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
1755
1755
  };
1756
1756
  }
1757
- }), $a = /* @__PURE__ */ ce(Aa, [["__scopeId", "data-v-1c9a2a07"]]), Oa = {
1757
+ }), Oa = /* @__PURE__ */ ue(Aa, [["__scopeId", "data-v-1c9a2a07"]]), Ma = {
1758
1758
  fill: "none",
1759
1759
  height: "20",
1760
1760
  viewBox: "0 0 20 20",
1761
1761
  width: "20",
1762
1762
  xmlns: "http://www.w3.org/2000/svg"
1763
- }, Ma = {
1763
+ }, Ka = {
1764
1764
  id: "mask0_180_20349",
1765
1765
  height: "20",
1766
1766
  maskUnits: "userSpaceOnUse",
@@ -1768,35 +1768,35 @@ const ga = ["onReset", "onSubmit"], va = {
1768
1768
  width: "20",
1769
1769
  x: "0",
1770
1770
  y: "0"
1771
- }, Ka = ["fill"], Fa = { mask: "url(#mask0_180_20349)" }, ja = ["fill"], Ue = /* @__PURE__ */ ee({
1771
+ }, $a = ["fill"], ja = { mask: "url(#mask0_180_20349)" }, Fa = ["fill"], De = /* @__PURE__ */ ee({
1772
1772
  __name: "IconFilter",
1773
1773
  props: {
1774
1774
  color: {
1775
1775
  type: String,
1776
- default: `var(--kong-ui-entity-filter-color, ${Gt})`
1776
+ default: `var(--kong-ui-entity-filter-color, ${Qt})`
1777
1777
  }
1778
1778
  },
1779
1779
  setup(e) {
1780
- return (r, t) => (k(), q("svg", Oa, [
1781
- M("mask", Ma, [
1782
- M("rect", {
1780
+ return (a, t) => (b(), q("svg", Ma, [
1781
+ $("mask", Ka, [
1782
+ $("rect", {
1783
1783
  fill: e.color,
1784
1784
  height: "20",
1785
1785
  width: "20"
1786
- }, null, 8, Ka)
1786
+ }, null, 8, $a)
1787
1787
  ]),
1788
- M("g", Fa, [
1789
- M("path", {
1788
+ $("g", ja, [
1789
+ $("path", {
1790
1790
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
1791
1791
  fill: e.color
1792
- }, null, 8, ja)
1792
+ }, null, 8, Fa)
1793
1793
  ])
1794
1794
  ]));
1795
1795
  }
1796
1796
  }), Pa = {
1797
1797
  key: 1,
1798
1798
  class: "kong-ui-entity-filter"
1799
- }, Ra = { class: "menu-item-title" }, qa = { class: "menu-item-indicator" }, Ba = { class: "menu-item-body" }, Va = ["for"], Ua = { class: "menu-item-buttons" }, La = { class: "filter-clear-button-container" }, Da = /* @__PURE__ */ ee({
1799
+ }, Ra = { class: "menu-item-title" }, qa = { class: "menu-item-indicator" }, Ba = { class: "menu-item-body" }, Ua = ["for"], Va = { class: "menu-item-buttons" }, Da = { class: "filter-clear-button-container" }, La = /* @__PURE__ */ ee({
1800
1800
  __name: "EntityFilter",
1801
1801
  props: {
1802
1802
  // filter config, either exact match or fuzzy match
@@ -1815,143 +1815,143 @@ const ga = ["onReset", "onSubmit"], va = {
1815
1815
  }
1816
1816
  },
1817
1817
  emits: ["update:modelValue"],
1818
- setup(e, { emit: r }) {
1819
- const t = e, { i18n: { t: a } } = le.useI18n(), n = C(!1), i = C({}), o = S(() => {
1820
- const c = [];
1821
- return new URLSearchParams(t.modelValue).forEach((h, I) => {
1822
- h !== "" && c.push(I);
1823
- }), c;
1818
+ setup(e, { emit: a }) {
1819
+ const { i18n: { t } } = se.useI18n(), r = e, n = a, i = C(!1), o = C({}), d = S(() => {
1820
+ const u = [];
1821
+ return new URLSearchParams(r.modelValue).forEach((T, E) => {
1822
+ T !== "" && u.push(E);
1823
+ }), u;
1824
1824
  }), m = S(() => {
1825
- const c = t.config.fields;
1826
- return Object.keys(c).filter((h) => c[h].searchable).map((h) => ({
1827
- label: c[h].label || h,
1828
- value: h
1825
+ const u = r.config.fields;
1826
+ return Object.keys(u).filter((T) => u[T].searchable).map((T) => ({
1827
+ label: u[T].label || T,
1828
+ value: T
1829
1829
  }));
1830
1830
  });
1831
- ae(() => t.modelValue, (c) => {
1832
- i.value = {}, new URLSearchParams(c).forEach((h, I) => {
1833
- i.value[I] = h;
1831
+ ne(() => r.modelValue, (u) => {
1832
+ o.value = {}, new URLSearchParams(u).forEach((T, E) => {
1833
+ o.value[E] = T;
1834
1834
  });
1835
1835
  });
1836
- const y = () => {
1837
- n.value = !n.value;
1838
- }, f = (c) => {
1839
- r("update:modelValue", c);
1840
- }, l = (c) => `filter-${c}`, g = (c) => {
1841
- var h, I;
1842
- return (((I = (h = t.config.schema) == null ? void 0 : h[c]) == null ? void 0 : I.values) ?? []).map((j) => ({
1843
- value: j,
1844
- label: j
1836
+ const p = () => {
1837
+ i.value = !i.value;
1838
+ }, _ = (u) => {
1839
+ n("update:modelValue", u);
1840
+ }, l = (u) => `filter-${u}`, N = (u) => {
1841
+ var T, E;
1842
+ return (((E = (T = r.config.schema) == null ? void 0 : T[u]) == null ? void 0 : E.values) ?? []).map((w) => ({
1843
+ value: w,
1844
+ label: w
1845
1845
  }));
1846
- }, w = (c) => {
1847
- var h, I;
1848
- return ((I = (h = t.config.schema) == null ? void 0 : h[c]) == null ? void 0 : I.type) ?? "text";
1849
- }, T = (c) => {
1850
- i.value = {
1851
- ...i.value,
1852
- [c]: ""
1853
- }, v();
1854
- }, B = () => {
1855
- i.value = {}, v(!0);
1856
- }, v = (c = !1) => {
1857
- const h = Object.keys(i.value).reduce((I, j) => (i.value[j] && (I[j] = `${i.value[j]}`), I), {});
1858
- c && (n.value = !1), r("update:modelValue", new URLSearchParams(h).toString());
1846
+ }, k = (u) => {
1847
+ var T, E;
1848
+ return ((E = (T = r.config.schema) == null ? void 0 : T[u]) == null ? void 0 : E.type) ?? "text";
1849
+ }, V = (u) => {
1850
+ o.value = {
1851
+ ...o.value,
1852
+ [u]: ""
1853
+ }, A();
1854
+ }, y = () => {
1855
+ o.value = {}, A(!0);
1856
+ }, A = (u = !1) => {
1857
+ const T = Object.keys(o.value).reduce((E, w) => (o.value[w] && (E[w] = `${o.value[w]}`), E), {});
1858
+ u && (i.value = !1), n("update:modelValue", new URLSearchParams(T).toString());
1859
1859
  };
1860
- return (c, h) => {
1861
- const I = K("KInput"), j = K("KButton"), u = K("KSelect"), A = K("KMenuItem"), H = K("KMenu");
1862
- return e.config.isExactMatch ? (k(), U(I, {
1860
+ return (u, T) => {
1861
+ const E = j("KInput"), w = j("KButton"), g = j("KSelect"), O = j("KMenuItem"), z = j("KMenu");
1862
+ return e.config.isExactMatch ? (b(), D(E, {
1863
1863
  key: 0,
1864
1864
  autocomplete: "off",
1865
1865
  class: "kong-ui-entity-filter-input",
1866
1866
  "data-testid": "search-input",
1867
1867
  "model-value": e.modelValue,
1868
1868
  placeholder: e.config.placeholder,
1869
- "onUpdate:modelValue": f
1869
+ "onUpdate:modelValue": _
1870
1870
  }, {
1871
- before: p(() => [
1872
- x(Ue)
1871
+ before: f(() => [
1872
+ x(De)
1873
1873
  ]),
1874
1874
  _: 1
1875
- }, 8, ["model-value", "placeholder"])) : (k(), q("div", Pa, [
1876
- x(j, {
1875
+ }, 8, ["model-value", "placeholder"])) : (b(), q("div", Pa, [
1876
+ x(w, {
1877
1877
  appearance: "tertiary",
1878
1878
  "data-testid": "filter-button",
1879
- onClick: y
1879
+ onClick: p
1880
1880
  }, {
1881
- default: p(() => [
1882
- x(Ue),
1883
- J(" " + $(s(a)("filter.filterButtonText")) + " " + $(o.value.length > 0 ? `(${o.value.length})` : ""), 1)
1881
+ default: f(() => [
1882
+ x(De),
1883
+ J(" " + M(s(t)("filter.filterButtonText")) + " " + M(d.value.length > 0 ? `(${d.value.length})` : ""), 1)
1884
1884
  ]),
1885
1885
  _: 1
1886
1886
  }),
1887
- fe(M("div", {
1887
+ me($("div", {
1888
1888
  class: "kong-ui-entity-filter-backdrop",
1889
- onClick: y
1889
+ onClick: p
1890
1890
  }, null, 512), [
1891
- [ye, n.value]
1891
+ [ye, i.value]
1892
1892
  ]),
1893
- fe(x(H, { class: "kong-ui-entity-filter-menu" }, {
1894
- body: p(() => [
1895
- (k(!0), q(We, null, Ce(m.value, (E, P) => (k(), U(A, {
1896
- key: E.value,
1897
- "data-testid": E.value,
1893
+ me(x(z, { class: "kong-ui-entity-filter-menu" }, {
1894
+ body: f(() => [
1895
+ (b(!0), q(Je, null, Te(m.value, (v, B) => (b(), D(O, {
1896
+ key: v.value,
1897
+ "data-testid": v.value,
1898
1898
  expandable: "",
1899
- "last-menu-item": P === m.value.length - 1
1899
+ "last-menu-item": B === m.value.length - 1
1900
1900
  }, {
1901
- itemTitle: p(() => [
1902
- M("span", Ra, [
1903
- J($(E.label) + " ", 1),
1904
- fe(M("span", qa, null, 512), [
1905
- [ye, o.value.includes(E.value)]
1901
+ itemTitle: f(() => [
1902
+ $("span", Ra, [
1903
+ J(M(v.label) + " ", 1),
1904
+ me($("span", qa, null, 512), [
1905
+ [ye, d.value.includes(v.value)]
1906
1906
  ])
1907
1907
  ])
1908
1908
  ]),
1909
- itemBody: p(() => {
1910
- var F, z;
1909
+ itemBody: f(() => {
1910
+ var L, P;
1911
1911
  return [
1912
- M("div", Ba, [
1913
- M("label", {
1912
+ $("div", Ba, [
1913
+ $("label", {
1914
1914
  class: "menu-item-label",
1915
- for: l(E.value)
1916
- }, $(s(a)("filter.fieldLabel")), 9, Va),
1917
- ((z = (F = e.config.schema) == null ? void 0 : F[E.value]) == null ? void 0 : z.type) === "select" ? (k(), U(u, {
1915
+ for: l(v.value)
1916
+ }, M(s(t)("filter.fieldLabel")), 9, Ua),
1917
+ ((P = (L = e.config.schema) == null ? void 0 : L[v.value]) == null ? void 0 : P.type) === "select" ? (b(), D(g, {
1918
1918
  key: 0,
1919
- id: l(E.value),
1920
- modelValue: i.value[E.value],
1921
- "onUpdate:modelValue": (N) => i.value[E.value] = N,
1919
+ id: l(v.value),
1920
+ modelValue: o.value[v.value],
1921
+ "onUpdate:modelValue": (F) => o.value[v.value] = F,
1922
1922
  appearance: "select",
1923
- items: g(E.value),
1924
- placeholder: s(a)("filter.selectPlaceholder")
1925
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (k(), U(I, {
1923
+ items: N(v.value),
1924
+ placeholder: s(t)("filter.selectPlaceholder")
1925
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (b(), D(E, {
1926
1926
  key: 1,
1927
- id: l(E.value),
1928
- modelValue: i.value[E.value],
1929
- "onUpdate:modelValue": (N) => i.value[E.value] = N,
1927
+ id: l(v.value),
1928
+ modelValue: o.value[v.value],
1929
+ "onUpdate:modelValue": (F) => o.value[v.value] = F,
1930
1930
  autocomplete: "off",
1931
- placeholder: s(a)("filter.inputPlaceholder"),
1932
- type: w(E.value)
1931
+ placeholder: s(t)("filter.inputPlaceholder"),
1932
+ type: k(v.value)
1933
1933
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
1934
1934
  ]),
1935
- M("div", Ua, [
1936
- x(j, {
1935
+ $("div", Va, [
1936
+ x(w, {
1937
1937
  appearance: "tertiary",
1938
1938
  "data-testid": "apply-filter",
1939
1939
  size: "small",
1940
- onClick: h[0] || (h[0] = (N) => v(!0))
1940
+ onClick: T[0] || (T[0] = (F) => A(!0))
1941
1941
  }, {
1942
- default: p(() => [
1943
- J($(s(a)("filter.applyButtonText")), 1)
1942
+ default: f(() => [
1943
+ J(M(s(t)("filter.applyButtonText")), 1)
1944
1944
  ]),
1945
1945
  _: 1
1946
1946
  }),
1947
- x(j, {
1947
+ x(w, {
1948
1948
  appearance: "tertiary",
1949
1949
  "data-testid": "clear-filter",
1950
1950
  size: "small",
1951
- onClick: (N) => T(E.value)
1951
+ onClick: (F) => V(v.value)
1952
1952
  }, {
1953
- default: p(() => [
1954
- J($(s(a)("filter.clearButtonText")), 1)
1953
+ default: f(() => [
1954
+ J(M(s(t)("filter.clearButtonText")), 1)
1955
1955
  ]),
1956
1956
  _: 2
1957
1957
  }, 1032, ["onClick"])
@@ -1961,15 +1961,15 @@ const ga = ["onReset", "onSubmit"], va = {
1961
1961
  _: 2
1962
1962
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
1963
1963
  ]),
1964
- actionButton: p(() => [
1965
- M("div", La, [
1966
- x(j, {
1964
+ actionButton: f(() => [
1965
+ $("div", Da, [
1966
+ x(w, {
1967
1967
  appearance: "tertiary",
1968
1968
  size: "small",
1969
- onClick: B
1969
+ onClick: y
1970
1970
  }, {
1971
- default: p(() => [
1972
- J($(s(a)("filter.clearAllButtonText")), 1)
1971
+ default: f(() => [
1972
+ J(M(s(t)("filter.clearAllButtonText")), 1)
1973
1973
  ]),
1974
1974
  _: 1
1975
1975
  })
@@ -1977,12 +1977,12 @@ const ga = ["onReset", "onSubmit"], va = {
1977
1977
  ]),
1978
1978
  _: 1
1979
1979
  }, 512), [
1980
- [ye, n.value]
1980
+ [ye, i.value]
1981
1981
  ])
1982
1982
  ]));
1983
1983
  };
1984
1984
  }
1985
- }), Ha = /* @__PURE__ */ ce(Da, [["__scopeId", "data-v-15962ee2"]]), Se = /* @__PURE__ */ ee({
1985
+ }), Ha = /* @__PURE__ */ ue(La, [["__scopeId", "data-v-15962ee2"]]), _e = /* @__PURE__ */ ee({
1986
1986
  __name: "PermissionsWrapper",
1987
1987
  props: {
1988
1988
  /**
@@ -2004,10 +2004,10 @@ const ga = ["onReset", "onSubmit"], va = {
2004
2004
  }
2005
2005
  },
2006
2006
  setup(e) {
2007
- const r = e, t = C(void 0), a = S(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
2008
- return ae(() => r.authFunction, async () => {
2009
- t.value = await r.authFunction();
2010
- }, { immediate: !0 }), (n, i) => a.value ? G(n.$slots, "default", {
2007
+ const a = e, t = C(void 0), r = S(() => t.value === !0 || t.value !== void 0 && a.forceShow === !0);
2008
+ return ne(() => a.authFunction, async () => {
2009
+ t.value = await a.authFunction();
2010
+ }, { immediate: !0 }), (n, i) => r.value ? G(n.$slots, "default", {
2011
2011
  key: 0,
2012
2012
  isAllowed: t.value
2013
2013
  }) : X("", !0);
@@ -2046,32 +2046,32 @@ const ga = ["onReset", "onSubmit"], va = {
2046
2046
  }
2047
2047
  },
2048
2048
  setup(e) {
2049
- const r = st();
2050
- return (t, a) => (k(), q("fieldset", {
2051
- class: be(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
2049
+ const a = ct();
2050
+ return (t, r) => (b(), q("fieldset", {
2051
+ class: ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
2052
2052
  }, [
2053
- M("div", za, [
2054
- e.hideInfoHeader ? X("", !0) : (k(), q("div", {
2053
+ $("div", za, [
2054
+ e.hideInfoHeader ? X("", !0) : (b(), q("div", {
2055
2055
  key: 0,
2056
- class: be(["form-section-info", { sticky: e.stickyInfoHeader }])
2056
+ class: ke(["form-section-info", { sticky: e.stickyInfoHeader }])
2057
2057
  }, [
2058
- e.title ? (k(), q("h4", Wa, $(e.title), 1)) : X("", !0),
2059
- e.description || s(r).description ? (k(), q("div", Ja, [
2058
+ e.title ? (b(), q("h4", Wa, M(e.title), 1)) : X("", !0),
2059
+ e.description || s(a).description ? (b(), q("div", Ja, [
2060
2060
  G(t.$slots, "description", {}, () => [
2061
- M("p", null, $(e.description), 1)
2061
+ $("p", null, M(e.description), 1)
2062
2062
  ], !0)
2063
2063
  ])) : X("", !0),
2064
- s(r).footer ? (k(), q("div", Ya, [
2064
+ s(a).footer ? (b(), q("div", Ya, [
2065
2065
  G(t.$slots, "footer", {}, void 0, !0)
2066
2066
  ])) : X("", !0)
2067
2067
  ], 2)),
2068
- M("div", Za, [
2068
+ $("div", Za, [
2069
2069
  G(t.$slots, "default", {}, void 0, !0)
2070
2070
  ])
2071
2071
  ])
2072
2072
  ], 2));
2073
2073
  }
2074
- }), Le = /* @__PURE__ */ ce(Ga, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: ot, useDeleteUrlBuilder: Qa, useErrors: Xa, useExternalLinkCreator: Mn, useFetchUrlBuilder: Kn, useFetcher: en, useDebouncedFilter: tn, useStringHelpers: Fn, useHelpers: jn, useGatewayFeatureSupported: Pn, useTruncationDetector: Rn } = le, rn = {
2074
+ }), Le = /* @__PURE__ */ ue(Ga, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: lt, useDeleteUrlBuilder: Qa, useErrors: Xa, useExternalLinkCreator: Kn, useFetchUrlBuilder: $n, useFetcher: en, useDebouncedFilter: tn, useStringHelpers: jn, useHelpers: Fn, useGatewayFeatureSupported: Pn, useTruncationDetector: Rn } = se, rn = {
2075
2075
  fail: "Failed to copy id to clipboard",
2076
2076
  success: {
2077
2077
  prefix: "Successfully",
@@ -2080,15 +2080,15 @@ const ga = ["onReset", "onSubmit"], va = {
2080
2080
  }, an = "Copy to clipboard", nn = {
2081
2081
  message: rn,
2082
2082
  iconTitle: an
2083
- }, on = "kong-ui-copy-uuid-notify", De = "24px", ln = (e, r) => {
2083
+ }, on = "kong-ui-copy-uuid-notify", He = "24px", ln = (e, a) => {
2084
2084
  const t = e.__vccOpts || e;
2085
- for (const [a, n] of r)
2086
- t[a] = n;
2085
+ for (const [r, n] of a)
2086
+ t[r] = n;
2087
2087
  return t;
2088
- }, sn = (e) => (ft("data-v-641e0aee"), e = e(), yt(), e), cn = ["aria-hidden"], un = {
2088
+ }, sn = (e) => (mt("data-v-641e0aee"), e = e(), yt(), e), cn = ["aria-hidden"], un = {
2089
2089
  key: 0,
2090
2090
  "data-testid": "kui-icon-svg-title"
2091
- }, dn = /* @__PURE__ */ sn(() => /* @__PURE__ */ M("path", {
2091
+ }, dn = /* @__PURE__ */ sn(() => /* @__PURE__ */ $("path", {
2092
2092
  d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
2093
2093
  fill: "currentColor"
2094
2094
  }, null, -1)), pn = /* @__PURE__ */ ee({
@@ -2122,13 +2122,13 @@ const ga = ["onReset", "onSubmit"], va = {
2122
2122
  size: {
2123
2123
  type: [Number, String],
2124
2124
  required: !1,
2125
- default: De,
2125
+ default: He,
2126
2126
  // if setting to the imported const fails, just pass a number of 24 as the default.
2127
2127
  validator: (e) => {
2128
2128
  if (typeof e == "number" && e > 0)
2129
2129
  return !0;
2130
2130
  if (typeof e == "string") {
2131
- const r = String(e).replace(/px/gi, ""), t = Number(r);
2131
+ const a = String(e).replace(/px/gi, ""), t = Number(a);
2132
2132
  if (t && !isNaN(t) && Number.isInteger(t) && t > 0)
2133
2133
  return !0;
2134
2134
  }
@@ -2143,31 +2143,31 @@ const ga = ["onReset", "onSubmit"], va = {
2143
2143
  }
2144
2144
  },
2145
2145
  setup(e) {
2146
- const r = e, t = S(() => {
2147
- if (typeof r.size == "number" && r.size > 0)
2148
- return `${r.size}px`;
2149
- if (typeof r.size == "string") {
2150
- const n = String(r.size).replace(/px/gi, ""), i = Number(n);
2146
+ const a = e, t = S(() => {
2147
+ if (typeof a.size == "number" && a.size > 0)
2148
+ return `${a.size}px`;
2149
+ if (typeof a.size == "string") {
2150
+ const n = String(a.size).replace(/px/gi, ""), i = Number(n);
2151
2151
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
2152
2152
  return `${i}px`;
2153
2153
  }
2154
- return De;
2155
- }), a = S(() => ({
2154
+ return He;
2155
+ }), r = S(() => ({
2156
2156
  boxSizing: "border-box",
2157
- color: r.color,
2158
- display: r.display,
2157
+ color: a.color,
2158
+ display: a.display,
2159
2159
  height: t.value,
2160
2160
  lineHeight: "0",
2161
2161
  width: t.value
2162
2162
  }));
2163
- return (n, i) => (k(), U(_e(e.as), {
2163
+ return (n, i) => (b(), D(Ie(e.as), {
2164
2164
  "aria-hidden": e.decorative ? "true" : void 0,
2165
2165
  class: "kui-icon copy-icon",
2166
2166
  "data-testid": "kui-icon-wrapper-copy-icon",
2167
- style: pt(a.value)
2167
+ style: ft(r.value)
2168
2168
  }, {
2169
- default: p(() => [
2170
- (k(), q("svg", {
2169
+ default: f(() => [
2170
+ (b(), q("svg", {
2171
2171
  "aria-hidden": e.decorative ? "true" : void 0,
2172
2172
  "data-testid": "kui-icon-svg-copy-icon",
2173
2173
  fill: "none",
@@ -2177,14 +2177,14 @@ const ga = ["onReset", "onSubmit"], va = {
2177
2177
  width: "100%",
2178
2178
  xmlns: "http://www.w3.org/2000/svg"
2179
2179
  }, [
2180
- e.title ? (k(), q("title", un, $(e.title), 1)) : X("", !0),
2180
+ e.title ? (b(), q("title", un, M(e.title), 1)) : X("", !0),
2181
2181
  dn
2182
2182
  ], 8, cn))
2183
2183
  ]),
2184
2184
  _: 1
2185
2185
  }, 8, ["aria-hidden", "style"]));
2186
2186
  }
2187
- }), fn = /* @__PURE__ */ ln(pn, [["__scopeId", "data-v-641e0aee"]]), yn = "16px", mn = { class: "kong-ui-copy-uuid" }, gn = ["onClick"], He = 15, vn = /* @__PURE__ */ ee({
2187
+ }), fn = /* @__PURE__ */ ln(pn, [["__scopeId", "data-v-641e0aee"]]), mn = "16px", yn = { class: "kong-ui-copy-uuid" }, gn = ["onClick"], ze = 15, vn = /* @__PURE__ */ ee({
2188
2188
  __name: "CopyUuid",
2189
2189
  props: {
2190
2190
  uuid: {
@@ -2227,72 +2227,72 @@ const ga = ["onReset", "onSubmit"], va = {
2227
2227
  }
2228
2228
  },
2229
2229
  emits: ["success", "error"],
2230
- setup(e, { emit: r }) {
2231
- const t = e, { t: a } = Te("en-us", nn), n = t.notify || dt(on, () => {
2232
- }), i = S(() => t.idTooltip ? {
2233
- label: t.idTooltip,
2230
+ setup(e, { emit: a }) {
2231
+ const { t } = Ee("en-us", nn), r = e, n = a, i = r.notify || pt(on, () => {
2232
+ }), o = S(() => r.idTooltip ? {
2233
+ label: r.idTooltip,
2234
2234
  positionFixed: !0,
2235
2235
  placement: "bottomStart"
2236
2236
  } : {
2237
- title: t.uuid
2238
- }), o = S(() => !!(t.tooltip && t.successTooltip)), m = C(t.tooltip), y = S(() => t.tooltip ? {
2237
+ title: r.uuid
2238
+ }), d = S(() => !!(r.tooltip && r.successTooltip)), m = C(r.tooltip), p = S(() => r.tooltip ? {
2239
2239
  label: m.value,
2240
2240
  positionFixed: !0,
2241
2241
  maxWidth: "500px",
2242
2242
  placement: "bottomStart"
2243
- } : {}), f = S(() => {
2244
- var w;
2245
- return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(w = t.uuid) == null ? void 0 : w.substring(0, 5)}` : t.uuid;
2246
- }), l = (w) => {
2247
- m.value = w, setTimeout(() => {
2248
- m.value = t.tooltip;
2243
+ } : {}), _ = S(() => {
2244
+ var k;
2245
+ return r.format === "redacted" ? "*****" : r.format === "deleted" ? `*${(k = r.uuid) == null ? void 0 : k.substring(0, 5)}` : r.uuid;
2246
+ }), l = (k) => {
2247
+ m.value = k, setTimeout(() => {
2248
+ m.value = r.tooltip;
2249
2249
  }, 1800);
2250
- }, g = (w) => {
2251
- var T, B;
2252
- if (!w(t.uuid)) {
2253
- typeof n == "function" && n({
2250
+ }, N = (k) => {
2251
+ var V, y;
2252
+ if (!k(r.uuid)) {
2253
+ typeof i == "function" && i({
2254
2254
  type: "error",
2255
- message: a("message.fail")
2256
- }), o.value ? l(a("message.fail")) : r("error", t.uuid);
2255
+ message: t("message.fail")
2256
+ }), d.value ? l(t("message.fail")) : n("error", r.uuid);
2257
2257
  return;
2258
2258
  }
2259
- const v = ((T = t.uuid) == null ? void 0 : T.length) > He, c = t.format === "hidden" || t.format === "redacted" ? a("message.success.prefix") : `"${((B = t.uuid) == null ? void 0 : B.substring(0, He)) + (v ? "..." : "")}"`;
2260
- typeof n == "function" && n({
2259
+ const A = ((V = r.uuid) == null ? void 0 : V.length) > ze, u = r.format === "hidden" || r.format === "redacted" ? t("message.success.prefix") : `"${((y = r.uuid) == null ? void 0 : y.substring(0, ze)) + (A ? "..." : "")}"`;
2260
+ typeof i == "function" && i({
2261
2261
  type: "success",
2262
- message: `${c}${a("message.success.content")}`
2263
- }), o.value ? l(t.successTooltip) : r("success", t.uuid);
2262
+ message: `${u}${t("message.success.content")}`
2263
+ }), d.value ? l(r.successTooltip) : n("success", r.uuid);
2264
2264
  };
2265
- return (w, T) => {
2266
- const B = K("KClipboardProvider");
2267
- return k(), q("div", mn, [
2268
- e.format !== "hidden" ? (k(), U(_e(e.idTooltip ? "KTooltip" : "div"), Oe({ key: 0 }, i.value, { "data-testid": "copy-id" }), {
2269
- default: p(() => [
2270
- M("div", {
2271
- class: be([
2265
+ return (k, V) => {
2266
+ const y = j("KClipboardProvider");
2267
+ return b(), q("div", yn, [
2268
+ e.format !== "hidden" ? (b(), D(Ie(e.idTooltip ? "KTooltip" : "div"), Ke({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
2269
+ default: f(() => [
2270
+ $("div", {
2271
+ class: ke([
2272
2272
  "uuid-container",
2273
2273
  e.truncated ? "truncated-uuid" : null,
2274
2274
  e.useMono ? "mono" : null
2275
2275
  ])
2276
- }, $(f.value), 3)
2276
+ }, M(_.value), 3)
2277
2277
  ]),
2278
2278
  _: 1
2279
2279
  }, 16)) : X("", !0),
2280
- (k(), U(_e(e.tooltip ? "KTooltip" : "div"), Oe(y.value, { class: "uuid-icon-wrapper" }), {
2281
- default: p(() => [
2282
- x(B, null, {
2283
- default: p(({ copyToClipboard: v }) => [
2284
- M("span", {
2280
+ (b(), D(Ie(e.tooltip ? "KTooltip" : "div"), Ke(p.value, { class: "uuid-icon-wrapper" }), {
2281
+ default: f(() => [
2282
+ x(y, null, {
2283
+ default: f(({ copyToClipboard: A }) => [
2284
+ $("span", {
2285
2285
  "data-testid": "copy-to-clipboard",
2286
2286
  role: "button",
2287
2287
  tabindex: "0",
2288
- onClick: he((c) => g(v), ["stop"])
2288
+ onClick: be((u) => N(A), ["stop"])
2289
2289
  }, [
2290
2290
  x(s(fn), {
2291
2291
  class: "uuid-icon",
2292
2292
  color: e.iconColor,
2293
2293
  decorative: !!e.tooltip,
2294
- size: s(yn),
2295
- title: s(a)("iconTitle")
2294
+ size: s(mn),
2295
+ title: s(t)("iconTitle")
2296
2296
  }, null, 8, ["color", "decorative", "size", "title"])
2297
2297
  ], 8, gn)
2298
2298
  ]),
@@ -2304,10 +2304,10 @@ const ga = ["onReset", "onSubmit"], va = {
2304
2304
  ]);
2305
2305
  };
2306
2306
  }
2307
- }), hn = (e, r) => {
2307
+ }), hn = (e, a) => {
2308
2308
  const t = e.__vccOpts || e;
2309
- for (const [a, n] of r)
2310
- t[a] = n;
2309
+ for (const [r, n] of a)
2310
+ t[r] = n;
2311
2311
  return t;
2312
2312
  }, bn = /* @__PURE__ */ hn(vn, [["__scopeId", "data-v-0c07874b"]]), kn = { class: "kong-ui-entities-snis-list" }, wn = { key: 1 }, Sn = { key: 1 }, _n = /* @__PURE__ */ ee({
2313
2313
  __name: "SniList",
@@ -2354,209 +2354,209 @@ const ga = ["onReset", "onSubmit"], va = {
2354
2354
  }
2355
2355
  },
2356
2356
  emits: ["error", "copy:success", "copy:error", "delete:success"],
2357
- setup(e, { emit: r }) {
2358
- var de;
2359
- const t = e, { i18n: { t: a } } = Ze.useI18n(), n = (b, O) => {
2360
- var d;
2361
- b.type === "error" ? r("copy:error", {
2362
- entity: O,
2357
+ setup(e, { emit: a }) {
2358
+ var pe;
2359
+ const t = a, r = e, { i18n: { t: n } } = Ge.useI18n(), i = (h, K) => {
2360
+ var c;
2361
+ h.type === "error" ? t("copy:error", {
2362
+ entity: K,
2363
2363
  field: "certificate.id",
2364
- message: a("errors.copy")
2365
- }) : r("copy:success", {
2366
- entity: O,
2364
+ message: n("errors.copy")
2365
+ }) : t("copy:success", {
2366
+ entity: K,
2367
2367
  field: "certificate.id",
2368
- message: a("copy.success", { val: (d = O.certificate) == null ? void 0 : d.id })
2368
+ message: n("copy.success", { val: (c = K.certificate) == null ? void 0 : c.id })
2369
2369
  });
2370
- }, { axiosInstance: i } = ot({
2371
- headers: (de = t.config) == null ? void 0 : de.requestHeaders
2372
- }), o = C(1), m = S(() => t.config.app !== "kongManager" || !!t.config.disableSorting), y = {
2373
- name: { label: a("snis.list.table_headers.name"), searchable: !0, sortable: !0 },
2374
- certificate: { label: a("snis.list.table_headers.certificate_id"), sortable: !1 },
2375
- tags: { label: a("snis.list.table_headers.tags"), sortable: !1 }
2376
- }, f = y, l = (b) => ({
2370
+ }, { axiosInstance: o } = lt({
2371
+ headers: (pe = r.config) == null ? void 0 : pe.requestHeaders
2372
+ }), d = C(1), m = S(() => r.config.app !== "kongManager" || !!r.config.disableSorting), p = {
2373
+ name: { label: n("snis.list.table_headers.name"), searchable: !0, sortable: !0 },
2374
+ certificate: { label: n("snis.list.table_headers.certificate_id"), sortable: !1 },
2375
+ tags: { label: n("snis.list.table_headers.tags"), sortable: !1 }
2376
+ }, _ = p, l = (h) => ({
2377
2377
  style: {
2378
- maxWidth: b.headerKey === "name" ? "250px" : b.headerKey === "certificate" ? "350px" : null
2378
+ maxWidth: h.headerKey === "name" ? "250px" : h.headerKey === "certificate" ? "350px" : null
2379
2379
  }
2380
- }), g = S(() => {
2381
- var O, d;
2382
- let b = `${t.config.apiBaseUrl}${pe.list[t.config.app].all}`;
2383
- return t.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((O = t.config) == null ? void 0 : O.controlPlaneId) || "") : t.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (d = t.config) != null && d.workspace ? `/${t.config.workspace}` : "")), b;
2384
- }), w = C(""), T = S(() => {
2385
- const b = t.config.app === "konnect" || t.config.isExactMatch;
2386
- if (b)
2380
+ }), N = S(() => {
2381
+ var K, c;
2382
+ let h = `${r.config.apiBaseUrl}${fe.list[r.config.app].all}`;
2383
+ return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((K = r.config) == null ? void 0 : K.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (c = r.config) != null && c.workspace ? `/${r.config.workspace}` : "")), h;
2384
+ }), k = C(""), V = S(() => {
2385
+ const h = r.config.app === "konnect" || r.config.isExactMatch;
2386
+ if (h)
2387
2387
  return {
2388
- isExactMatch: b,
2389
- placeholder: a("search.placeholder")
2388
+ isExactMatch: h,
2389
+ placeholder: n("search.placeholder")
2390
2390
  };
2391
- const { name: O } = y;
2391
+ const { name: K } = p;
2392
2392
  return {
2393
- isExactMatch: b,
2394
- fields: { name: O },
2395
- schema: t.config.filterSchema
2393
+ isExactMatch: h,
2394
+ fields: { name: K },
2395
+ schema: r.config.filterSchema
2396
2396
  };
2397
- }), { fetcher: B, fetcherState: v } = en(t.config, g.value), c = () => {
2398
- w.value = "";
2399
- }, h = () => {
2400
- o.value++;
2401
- }, I = C(null), j = C({
2402
- ctaPath: t.config.createRoute,
2397
+ }), { fetcher: y, fetcherState: A } = en(r.config, N.value), u = () => {
2398
+ k.value = "";
2399
+ }, T = () => {
2400
+ d.value++;
2401
+ }, E = C(null), w = C({
2402
+ ctaPath: r.config.createRoute,
2403
2403
  ctaText: void 0,
2404
- message: a("snis.list.empty_state.description"),
2405
- title: a("snis.title")
2406
- }), u = (b, O) => {
2407
- const d = b.id;
2408
- if (!O(d)) {
2409
- r("copy:error", {
2410
- entity: b,
2404
+ message: n("snis.list.empty_state.description"),
2405
+ title: n("snis.title")
2406
+ }), g = (h, K) => {
2407
+ const c = h.id;
2408
+ if (!K(c)) {
2409
+ t("copy:error", {
2410
+ entity: h,
2411
2411
  field: "id",
2412
- message: a("errors.copy")
2412
+ message: n("errors.copy")
2413
2413
  });
2414
2414
  return;
2415
2415
  }
2416
- r("copy:success", {
2417
- entity: b,
2416
+ t("copy:success", {
2417
+ entity: h,
2418
2418
  field: "id",
2419
- message: a("copy.success", { val: d })
2419
+ message: n("copy.success", { val: c })
2420
2420
  });
2421
- }, A = (b, O) => {
2422
- const d = JSON.stringify(b);
2423
- if (!O(d)) {
2424
- r("copy:error", {
2425
- entity: b,
2426
- message: a("errors.copy")
2421
+ }, O = (h, K) => {
2422
+ const c = JSON.stringify(h);
2423
+ if (!K(c)) {
2424
+ t("copy:error", {
2425
+ entity: h,
2426
+ message: n("errors.copy")
2427
2427
  });
2428
2428
  return;
2429
2429
  }
2430
- r("copy:success", {
2431
- entity: b,
2432
- message: a("copy.success_brief")
2430
+ t("copy:success", {
2431
+ entity: h,
2432
+ message: n("copy.success_brief")
2433
2433
  });
2434
- }, H = (b) => ({
2435
- label: a("actions.edit"),
2436
- to: t.config.getEditRoute(b)
2437
- }), E = C(void 0), P = C(!1), F = C(!1), z = C(""), N = Qa(t.config, g.value), L = (b) => {
2438
- E.value = b, P.value = !0;
2439
- }, Z = () => {
2440
- P.value = !1, E.value = void 0;
2441
- }, ue = async () => {
2442
- var b, O, d;
2443
- if ((b = E.value) != null && b.id) {
2444
- F.value = !0;
2434
+ }, z = (h) => ({
2435
+ label: n("actions.edit"),
2436
+ to: r.config.getEditRoute(h)
2437
+ }), v = C(void 0), B = C(!1), L = C(!1), P = C(""), F = Qa(r.config, N.value), Y = (h) => {
2438
+ v.value = h, B.value = !0;
2439
+ }, te = () => {
2440
+ B.value = !1, v.value = void 0;
2441
+ }, de = async () => {
2442
+ var h, K, c;
2443
+ if ((h = v.value) != null && h.id) {
2444
+ L.value = !0;
2445
2445
  try {
2446
- await i.delete(N(E.value.id)), r("delete:success", E.value), F.value = !1, Z(), o.value++;
2447
- } catch (_) {
2448
- z.value = ((d = (O = _.response) == null ? void 0 : O.data) == null ? void 0 : d.message) || _.message || a("errors.delete"), r("error", _);
2446
+ await o.delete(F(v.value.id)), t("delete:success", v.value), L.value = !1, te(), d.value++;
2447
+ } catch (I) {
2448
+ P.value = ((c = (K = I.response) == null ? void 0 : K.data) == null ? void 0 : c.message) || I.message || n("errors.delete"), t("error", I);
2449
2449
  } finally {
2450
- F.value = !1;
2450
+ L.value = !1;
2451
2451
  }
2452
2452
  }
2453
- }, te = C(!0);
2454
- return ae(v, (b) => {
2455
- var O, d, _, V;
2456
- if (Array.isArray((O = b == null ? void 0 : b.response) == null ? void 0 : O.data) && (te.value = b.response.data.length > 0), b.status === ie.Error) {
2457
- I.value = {
2458
- title: a("errors.general")
2459
- }, (V = (_ = (d = b.error) == null ? void 0 : d.response) == null ? void 0 : _.data) != null && V.message && (I.value.message = b.error.response.data.message), r("error", b.error);
2453
+ }, re = C(!0);
2454
+ return ne(A, (h) => {
2455
+ var K, c, I, U;
2456
+ if (Array.isArray((K = h == null ? void 0 : h.response) == null ? void 0 : K.data) && (re.value = h.response.data.length > 0), h.status === oe.Error) {
2457
+ E.value = {
2458
+ title: n("errors.general")
2459
+ }, (U = (I = (c = h.error) == null ? void 0 : c.response) == null ? void 0 : I.data) != null && U.message && (E.value.message = h.error.response.data.message), t("error", h.error);
2460
2460
  return;
2461
2461
  }
2462
- I.value = null;
2463
- }), xe(async () => {
2464
- await t.canCreate() && (j.value.title = a("snis.list.empty_state.title"), j.value.ctaText = a("actions.create"));
2465
- }), (b, O) => {
2466
- const d = K("KButton"), _ = K("KBadge"), V = K("KTruncate"), re = K("KDropdownItem"), W = K("KClipboardProvider");
2467
- return k(), q("div", kn, [
2462
+ E.value = null;
2463
+ }), Ce(async () => {
2464
+ await r.canCreate() && (w.value.title = n("snis.list.empty_state.title"), w.value.ctaText = n("actions.create"));
2465
+ }), (h, K) => {
2466
+ const c = j("KButton"), I = j("KBadge"), U = j("KTruncate"), ae = j("KDropdownItem"), W = j("KClipboardProvider");
2467
+ return b(), q("div", kn, [
2468
2468
  x(s(Ta), {
2469
2469
  "cache-identifier": e.cacheIdentifier,
2470
2470
  "cell-attributes": l,
2471
2471
  "disable-pagination-page-jump": "",
2472
2472
  "disable-row-click": !0,
2473
2473
  "disable-sorting": m.value,
2474
- "empty-state-options": j.value,
2474
+ "empty-state-options": w.value,
2475
2475
  "enable-entity-actions": "",
2476
- "error-message": I.value,
2477
- fetcher: s(B),
2478
- "fetcher-cache-key": o.value,
2476
+ "error-message": E.value,
2477
+ fetcher: s(y),
2478
+ "fetcher-cache-key": d.value,
2479
2479
  "pagination-type": "offset",
2480
2480
  "preferences-storage-key": "kong-ui-entities-snis-list",
2481
- query: w.value,
2482
- "table-headers": s(f),
2481
+ query: k.value,
2482
+ "table-headers": s(_),
2483
2483
  "use-action-outside": e.useActionOutside,
2484
- onClearSearchInput: c,
2485
- onSort: h
2484
+ onClearSearchInput: u,
2485
+ onSort: T
2486
2486
  }, {
2487
- "toolbar-filter": p(() => [
2487
+ "toolbar-filter": f(() => [
2488
2488
  x(s(Ha), {
2489
- modelValue: w.value,
2490
- "onUpdate:modelValue": O[0] || (O[0] = (R) => w.value = R),
2491
- config: T.value
2489
+ modelValue: k.value,
2490
+ "onUpdate:modelValue": K[0] || (K[0] = (R) => k.value = R),
2491
+ config: V.value
2492
2492
  }, null, 8, ["modelValue", "config"])
2493
2493
  ]),
2494
- "toolbar-button": p(() => [
2495
- (k(), U(mt, {
2494
+ "toolbar-button": f(() => [
2495
+ (b(), D(gt, {
2496
2496
  disabled: !e.useActionOutside,
2497
2497
  to: "#kong-ui-app-page-header-action-button"
2498
2498
  }, [
2499
- x(s(Se), {
2499
+ x(s(_e), {
2500
2500
  "auth-function": () => e.canCreate()
2501
2501
  }, {
2502
- default: p(() => [
2503
- fe(x(d, {
2502
+ default: f(() => [
2503
+ me(x(c, {
2504
2504
  appearance: "primary",
2505
2505
  "data-testid": "toolbar-add-sni",
2506
2506
  icon: "plus",
2507
2507
  to: e.config.createRoute
2508
2508
  }, {
2509
- default: p(() => [
2510
- J($(s(a)("snis.list.toolbar_actions.new")), 1)
2509
+ default: f(() => [
2510
+ J(M(s(n)("snis.list.toolbar_actions.new")), 1)
2511
2511
  ]),
2512
2512
  _: 1
2513
2513
  }, 8, ["to"]), [
2514
- [ye, te.value]
2514
+ [ye, re.value]
2515
2515
  ])
2516
2516
  ]),
2517
2517
  _: 1
2518
2518
  }, 8, ["auth-function"])
2519
2519
  ], 8, ["disabled"]))
2520
2520
  ]),
2521
- name: p(({ rowValue: R }) => [
2522
- M("b", null, $(R ?? "-"), 1)
2521
+ name: f(({ rowValue: R }) => [
2522
+ $("b", null, M(R ?? "-"), 1)
2523
2523
  ]),
2524
- certificate: p(({ row: R }) => [
2525
- R.certificate && R.certificate.id ? (k(), U(s(bn), {
2524
+ certificate: f(({ row: R }) => [
2525
+ R.certificate && R.certificate.id ? (b(), D(s(bn), {
2526
2526
  key: 0,
2527
2527
  class: "copy-certificate-uuid",
2528
2528
  "data-testid": "copy-certificate-uuid",
2529
- notify: (Q) => n(Q, R),
2529
+ notify: (Q) => i(Q, R),
2530
2530
  truncated: !1,
2531
2531
  uuid: R.certificate.id
2532
- }, null, 8, ["notify", "uuid"])) : (k(), q("span", wn, "-"))
2532
+ }, null, 8, ["notify", "uuid"])) : (b(), q("span", wn, "-"))
2533
2533
  ]),
2534
- tags: p(({ rowValue: R }) => [
2535
- R != null && R.length ? (k(), U(V, { key: 0 }, {
2536
- default: p(() => [
2537
- (k(!0), q(We, null, Ce(R, (Q) => (k(), U(_, {
2534
+ tags: f(({ rowValue: R }) => [
2535
+ R != null && R.length ? (b(), D(U, { key: 0 }, {
2536
+ default: f(() => [
2537
+ (b(!0), q(Je, null, Te(R, (Q) => (b(), D(I, {
2538
2538
  key: Q,
2539
- onClick: O[1] || (O[1] = he(() => {
2539
+ onClick: K[1] || (K[1] = be(() => {
2540
2540
  }, ["stop"]))
2541
2541
  }, {
2542
- default: p(() => [
2543
- J($(Q), 1)
2542
+ default: f(() => [
2543
+ J(M(Q), 1)
2544
2544
  ]),
2545
2545
  _: 2
2546
2546
  }, 1024))), 128))
2547
2547
  ]),
2548
2548
  _: 2
2549
- }, 1024)) : (k(), q("span", Sn, "-"))
2549
+ }, 1024)) : (b(), q("span", Sn, "-"))
2550
2550
  ]),
2551
- actions: p(({ row: R }) => [
2551
+ actions: f(({ row: R }) => [
2552
2552
  x(W, null, {
2553
- default: p(({ copyToClipboard: Q }) => [
2554
- x(re, {
2553
+ default: f(({ copyToClipboard: Q }) => [
2554
+ x(ae, {
2555
2555
  "data-testid": "action-entity-copy-id",
2556
- onClick: (ge) => u(R, Q)
2556
+ onClick: (ve) => g(R, Q)
2557
2557
  }, {
2558
- default: p(() => [
2559
- J($(s(a)("actions.copy_id")), 1)
2558
+ default: f(() => [
2559
+ J(M(s(n)("actions.copy_id")), 1)
2560
2560
  ]),
2561
2561
  _: 2
2562
2562
  }, 1032, ["onClick"])
@@ -2564,42 +2564,42 @@ const ga = ["onReset", "onSubmit"], va = {
2564
2564
  _: 2
2565
2565
  }, 1024),
2566
2566
  x(W, null, {
2567
- default: p(({ copyToClipboard: Q }) => [
2568
- x(re, {
2567
+ default: f(({ copyToClipboard: Q }) => [
2568
+ x(ae, {
2569
2569
  "data-testid": "action-entity-copy-json",
2570
- onClick: (ge) => A(R, Q)
2570
+ onClick: (ve) => O(R, Q)
2571
2571
  }, {
2572
- default: p(() => [
2573
- J($(s(a)("actions.copy_json")), 1)
2572
+ default: f(() => [
2573
+ J(M(s(n)("actions.copy_json")), 1)
2574
2574
  ]),
2575
2575
  _: 2
2576
2576
  }, 1032, ["onClick"])
2577
2577
  ]),
2578
2578
  _: 2
2579
2579
  }, 1024),
2580
- x(s(Se), {
2580
+ x(s(_e), {
2581
2581
  "auth-function": () => e.canEdit(R)
2582
2582
  }, {
2583
- default: p(() => [
2584
- x(re, {
2583
+ default: f(() => [
2584
+ x(ae, {
2585
2585
  "data-testid": "action-entity-edit",
2586
- item: H(R.id)
2586
+ item: z(R.id)
2587
2587
  }, null, 8, ["item"])
2588
2588
  ]),
2589
2589
  _: 2
2590
2590
  }, 1032, ["auth-function"]),
2591
- x(s(Se), {
2591
+ x(s(_e), {
2592
2592
  "auth-function": () => e.canDelete(R)
2593
2593
  }, {
2594
- default: p(() => [
2595
- x(re, {
2594
+ default: f(() => [
2595
+ x(ae, {
2596
2596
  danger: "",
2597
2597
  "data-testid": "action-entity-delete",
2598
2598
  "has-divider": "",
2599
- onClick: (Q) => L(R)
2599
+ onClick: (Q) => Y(R)
2600
2600
  }, {
2601
- default: p(() => [
2602
- J($(s(a)("actions.delete")), 1)
2601
+ default: f(() => [
2602
+ J(M(s(n)("actions.delete")), 1)
2603
2603
  ]),
2604
2604
  _: 2
2605
2605
  }, 1032, ["onClick"])
@@ -2609,27 +2609,27 @@ const ga = ["onReset", "onSubmit"], va = {
2609
2609
  ]),
2610
2610
  _: 1
2611
2611
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
2612
- x(s($a), {
2613
- "action-pending": F.value,
2614
- description: s(a)("delete.description"),
2615
- "entity-name": E.value && (E.value.name || E.value.id),
2616
- "entity-type": s(Ge).SNI,
2617
- error: z.value,
2612
+ x(s(Oa), {
2613
+ "action-pending": L.value,
2614
+ description: s(n)("delete.description"),
2615
+ "entity-name": v.value && (v.value.name || v.value.id),
2616
+ "entity-type": s(Qe).SNI,
2617
+ error: P.value,
2618
2618
  "need-confirm": !1,
2619
- title: s(a)("delete.title"),
2620
- visible: P.value,
2621
- onCancel: Z,
2622
- onProceed: ue
2619
+ title: s(n)("delete.title"),
2620
+ visible: B.value,
2621
+ onCancel: te,
2622
+ onProceed: de
2623
2623
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
2624
2624
  ]);
2625
2625
  };
2626
2626
  }
2627
- }), lt = (e, r) => {
2627
+ }), st = (e, a) => {
2628
2628
  const t = e.__vccOpts || e;
2629
- for (const [a, n] of r)
2630
- t[a] = n;
2629
+ for (const [r, n] of a)
2630
+ t[r] = n;
2631
2631
  return t;
2632
- }, qn = /* @__PURE__ */ lt(_n, [["__scopeId", "data-v-5470cca7"]]), In = { class: "kong-ui-entities-snis-form" }, xn = { "data-testid": "no-search-results" }, Cn = {
2632
+ }, qn = /* @__PURE__ */ st(_n, [["__scopeId", "data-v-5470cca7"]]), In = { class: "kong-ui-entities-snis-form" }, xn = { "data-testid": "no-search-results" }, Cn = {
2633
2633
  key: 2,
2634
2634
  class: "invalid-certificate-message",
2635
2635
  "data-testid": "invalid-certificate-message"
@@ -2650,11 +2650,11 @@ const ga = ["onReset", "onSubmit"], va = {
2650
2650
  }
2651
2651
  },
2652
2652
  emits: ["update", "error", "loading"],
2653
- setup(e, { emit: r }) {
2654
- var O;
2655
- const t = e, a = Ye(), { i18n: { t: n } } = Ze.useI18n(), { getMessageFromError: i } = Xa(), { axiosInstance: o } = ot({
2656
- headers: (O = t.config) == null ? void 0 : O.requestHeaders
2657
- }), m = S(() => pe.form[t.config.app].edit), y = S(() => t.sniId ? ve.Edit : ve.Create), f = S(() => t.config.certificateId && y.value === ve.Create ? t.config.certificateId : ""), l = Me({
2653
+ setup(e, { emit: a }) {
2654
+ var K;
2655
+ const t = a, r = e, n = Ze(), { i18n: { t: i } } = Ge.useI18n(), { getMessageFromError: o } = Xa(), { axiosInstance: d } = lt({
2656
+ headers: (K = r.config) == null ? void 0 : K.requestHeaders
2657
+ }), m = S(() => fe.form[r.config.app].edit), p = S(() => r.sniId ? he.Edit : he.Create), _ = S(() => r.config.certificateId && p.value === he.Create ? r.config.certificateId : ""), l = $e({
2658
2658
  fields: {
2659
2659
  name: "",
2660
2660
  tags: "",
@@ -2662,109 +2662,109 @@ const ga = ["onReset", "onSubmit"], va = {
2662
2662
  },
2663
2663
  isReadonly: !1,
2664
2664
  errorMessage: ""
2665
- }), g = Me({
2665
+ }), N = $e({
2666
2666
  name: "",
2667
2667
  tags: "",
2668
2668
  certificate_id: ""
2669
- }), w = S(() => JSON.stringify(l.fields) !== JSON.stringify(g) && !!l.fields.name && !!(l.fields.certificate_id || f.value)), T = (d) => {
2670
- var _, V;
2671
- l.fields.name = (d == null ? void 0 : d.name) || "", l.fields.tags = ((_ = d == null ? void 0 : d.tags) == null ? void 0 : _.join(", ")) || "", l.fields.certificate_id = ((V = d == null ? void 0 : d.certificate) == null ? void 0 : V.id) || "", Object.assign(g, l.fields);
2672
- }, B = () => {
2673
- a.push(t.config.cancelRoute);
2674
- }, v = S(() => {
2675
- var _, V;
2676
- let d = `${t.config.apiBaseUrl}${pe.form[t.config.app].validate}`;
2677
- return t.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((_ = t.config) == null ? void 0 : _.controlPlaneId) || "") : t.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (V = t.config) != null && V.workspace ? `/${t.config.workspace}` : "")), d = d.replace(/{id}/gi, t.sniId), d;
2678
- }), c = S(() => {
2679
- var _, V;
2680
- let d = `${t.config.apiBaseUrl}${pe.form[t.config.app][y.value]}`;
2681
- return t.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((_ = t.config) == null ? void 0 : _.controlPlaneId) || "") : t.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (V = t.config) != null && V.workspace ? `/${t.config.workspace}` : "")), d = d.replace(/{id}/gi, t.sniId), d;
2682
- }), h = async () => {
2683
- var d, _, V, re, W, R, Q, ge;
2669
+ }), k = S(() => JSON.stringify(l.fields) !== JSON.stringify(N) && !!l.fields.name && !!(l.fields.certificate_id || _.value)), V = (c) => {
2670
+ var I, U;
2671
+ l.fields.name = (c == null ? void 0 : c.name) || "", l.fields.tags = ((I = c == null ? void 0 : c.tags) == null ? void 0 : I.join(", ")) || "", l.fields.certificate_id = ((U = c == null ? void 0 : c.certificate) == null ? void 0 : U.id) || "", Object.assign(N, l.fields);
2672
+ }, y = () => {
2673
+ n.push(r.config.cancelRoute);
2674
+ }, A = S(() => {
2675
+ var I, U;
2676
+ let c = `${r.config.apiBaseUrl}${fe.form[r.config.app].validate}`;
2677
+ return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (U = r.config) != null && U.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.sniId), c;
2678
+ }), u = S(() => {
2679
+ var I, U;
2680
+ let c = `${r.config.apiBaseUrl}${fe.form[r.config.app][p.value]}`;
2681
+ return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (U = r.config) != null && U.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.sniId), c;
2682
+ }), T = async () => {
2683
+ var c, I, U, ae, W, R, Q, ve;
2684
2684
  try {
2685
2685
  l.isReadonly = !0;
2686
- const ne = {
2686
+ const ie = {
2687
2687
  name: l.fields.name,
2688
- tags: (_ = (d = l.fields.tags.split(",")) == null ? void 0 : d.map((ke) => String(ke || "").trim())) == null ? void 0 : _.filter((ke) => ke !== ""),
2689
- certificate: { id: f.value || l.fields.certificate_id }
2688
+ tags: (I = (c = l.fields.tags.split(",")) == null ? void 0 : c.map((we) => String(we || "").trim())) == null ? void 0 : I.filter((we) => we !== ""),
2689
+ certificate: { id: _.value || l.fields.certificate_id }
2690
2690
  };
2691
- let Y;
2692
- await o.post(v.value, ne), y.value === "create" ? Y = await o.post(c.value, ne) : y.value === "edit" && (Y = ((V = t.config) == null ? void 0 : V.app) === "konnect" ? await o.put(c.value, ne) : await o.patch(c.value, ne)), l.fields.name = ((re = Y == null ? void 0 : Y.data) == null ? void 0 : re.name) || "", l.fields.tags = ((R = (W = Y == null ? void 0 : Y.data) == null ? void 0 : W.tags) == null ? void 0 : R.join(", ")) || "", l.fields.certificate_id = ((ge = (Q = Y == null ? void 0 : Y.data) == null ? void 0 : Q.certificate) == null ? void 0 : ge.id) || "", Object.assign(g, l.fields), r("update", Y == null ? void 0 : Y.data);
2693
- } catch (ne) {
2694
- l.errorMessage = i(ne), r("error", ne);
2691
+ let Z;
2692
+ await d.post(A.value, ie), p.value === "create" ? Z = await d.post(u.value, ie) : p.value === "edit" && (Z = ((U = r.config) == null ? void 0 : U.app) === "konnect" ? await d.put(u.value, ie) : await d.patch(u.value, ie)), l.fields.name = ((ae = Z == null ? void 0 : Z.data) == null ? void 0 : ae.name) || "", l.fields.tags = ((R = (W = Z == null ? void 0 : Z.data) == null ? void 0 : W.tags) == null ? void 0 : R.join(", ")) || "", l.fields.certificate_id = ((ve = (Q = Z == null ? void 0 : Z.data) == null ? void 0 : Q.certificate) == null ? void 0 : ve.id) || "", Object.assign(N, l.fields), t("update", Z == null ? void 0 : Z.data);
2693
+ } catch (ie) {
2694
+ l.errorMessage = o(ie), t("error", ie);
2695
2695
  } finally {
2696
2696
  l.isReadonly = !1;
2697
2697
  }
2698
2698
  }, {
2699
- debouncedQueryChange: I,
2700
- loading: j,
2701
- allRecords: u,
2702
- error: A,
2703
- validationError: H,
2704
- loadItems: E,
2705
- results: P
2706
- } = tn(t.config, pe.form[t.config.app].certificates), F = C(!0), z = (d) => {
2707
- F.value = !d, I(d);
2708
- }, N = S(() => A.value ? n("errors.certificates.fetch") : ""), L = S(() => H.value ? n("errors.certificates.invalid") : ""), Z = C(0), ue = S(() => u.value === void 0), te = C(/* @__PURE__ */ new Set()), de = S(() => Array.from(te.value).map((_) => ({
2709
- label: _,
2710
- value: _,
2711
- selected: l.fields.certificate_id === _
2712
- }))), b = (d) => {
2713
- te.value.clear();
2714
- let _;
2715
- for (_ of d)
2716
- te.value.add(_.id);
2699
+ debouncedQueryChange: E,
2700
+ loading: w,
2701
+ allRecords: g,
2702
+ error: O,
2703
+ validationError: z,
2704
+ loadItems: v,
2705
+ results: B
2706
+ } = tn(r.config, fe.form[r.config.app].certificates), L = C(!0), P = (c) => {
2707
+ L.value = !c, E(c);
2708
+ }, F = S(() => O.value ? i("errors.certificates.fetch") : ""), Y = S(() => z.value ? i("errors.certificates.invalid") : ""), te = C(0), de = S(() => g.value === void 0), re = C(/* @__PURE__ */ new Set()), pe = S(() => Array.from(re.value).map((I) => ({
2709
+ label: I,
2710
+ value: I,
2711
+ selected: l.fields.certificate_id === I
2712
+ }))), h = (c) => {
2713
+ re.value.clear();
2714
+ let I;
2715
+ for (I of c)
2716
+ re.value.add(I.id);
2717
2717
  };
2718
- return ae(P, (d) => {
2719
- b(d);
2720
- }, { immediate: !0, deep: !0 }), ae(de, () => {
2721
- Z.value++;
2722
- }, { immediate: !0, deep: !0 }), xe(async () => {
2723
- await E();
2724
- }), (d, _) => {
2725
- const V = K("KInput"), re = K("KSelect");
2726
- return k(), q("div", In, [
2718
+ return ne(B, (c) => {
2719
+ h(c);
2720
+ }, { immediate: !0, deep: !0 }), ne(pe, () => {
2721
+ te.value++;
2722
+ }, { immediate: !0, deep: !0 }), Ce(async () => {
2723
+ await v();
2724
+ }), (c, I) => {
2725
+ const U = j("KInput"), ae = j("KSelect");
2726
+ return b(), q("div", In, [
2727
2727
  x(s(ba), {
2728
- "can-submit": w.value,
2728
+ "can-submit": k.value,
2729
2729
  config: e.config,
2730
2730
  "edit-id": e.sniId,
2731
- "error-message": l.errorMessage || N.value,
2731
+ "error-message": l.errorMessage || F.value,
2732
2732
  "fetch-url": m.value,
2733
2733
  "is-readonly": l.isReadonly,
2734
- onCancel: B,
2735
- "onFetch:error": _[3] || (_[3] = (W) => d.$emit("error", W)),
2736
- "onFetch:success": T,
2737
- onLoading: _[4] || (_[4] = (W) => d.$emit("loading", W)),
2738
- onSubmit: h
2734
+ onCancel: y,
2735
+ "onFetch:error": I[3] || (I[3] = (W) => c.$emit("error", W)),
2736
+ "onFetch:success": V,
2737
+ onLoading: I[4] || (I[4] = (W) => c.$emit("loading", W)),
2738
+ onSubmit: T
2739
2739
  }, {
2740
- default: p(() => [
2740
+ default: f(() => [
2741
2741
  x(s(Le), {
2742
- description: s(n)("form.sections.general.description"),
2743
- title: s(n)("form.sections.general.title")
2742
+ description: s(i)("form.sections.general.description"),
2743
+ title: s(i)("form.sections.general.title")
2744
2744
  }, {
2745
- default: p(() => [
2746
- x(V, {
2745
+ default: f(() => [
2746
+ x(U, {
2747
2747
  modelValue: l.fields.name,
2748
- "onUpdate:modelValue": _[0] || (_[0] = (W) => l.fields.name = W),
2748
+ "onUpdate:modelValue": I[0] || (I[0] = (W) => l.fields.name = W),
2749
2749
  modelModifiers: { trim: !0 },
2750
2750
  autocomplete: "off",
2751
2751
  "data-testid": "sni-form-name",
2752
- label: s(n)("form.fields.name.label"),
2753
- placeholder: s(n)("form.fields.name.placeholder"),
2752
+ label: s(i)("form.fields.name.label"),
2753
+ placeholder: s(i)("form.fields.name.placeholder"),
2754
2754
  readonly: l.isReadonly,
2755
2755
  required: "",
2756
2756
  type: "text"
2757
2757
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
2758
- x(V, {
2758
+ x(U, {
2759
2759
  modelValue: l.fields.tags,
2760
- "onUpdate:modelValue": _[1] || (_[1] = (W) => l.fields.tags = W),
2760
+ "onUpdate:modelValue": I[1] || (I[1] = (W) => l.fields.tags = W),
2761
2761
  modelModifiers: { trim: !0 },
2762
2762
  autocomplete: "off",
2763
2763
  "data-testid": "sni-form-tags",
2764
- help: s(n)("form.fields.tags.help"),
2765
- label: s(n)("form.fields.tags.label"),
2766
- "label-attributes": { info: s(n)("form.fields.tags.tooltip") },
2767
- placeholder: s(n)("form.fields.tags.placeholder"),
2764
+ help: s(i)("form.fields.tags.help"),
2765
+ label: s(i)("form.fields.tags.label"),
2766
+ "label-attributes": { info: s(i)("form.fields.tags.tooltip") },
2767
+ placeholder: s(i)("form.fields.tags.placeholder"),
2768
2768
  readonly: l.isReadonly,
2769
2769
  type: "text"
2770
2770
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
@@ -2772,48 +2772,48 @@ const ga = ["onReset", "onSubmit"], va = {
2772
2772
  _: 1
2773
2773
  }, 8, ["description", "title"]),
2774
2774
  x(s(Le), {
2775
- description: s(n)("form.sections.certificate.description"),
2775
+ description: s(i)("form.sections.certificate.description"),
2776
2776
  "has-divider": "",
2777
- title: s(n)("form.sections.certificate.title")
2777
+ title: s(i)("form.sections.certificate.title")
2778
2778
  }, {
2779
- default: p(() => [
2780
- f.value ? (k(), U(V, {
2779
+ default: f(() => [
2780
+ _.value ? (b(), D(U, {
2781
2781
  key: 0,
2782
2782
  "data-testid": "sni-form-certificate-id",
2783
- label: s(n)("form.fields.certificate_id.label"),
2784
- "model-value": f.value,
2783
+ label: s(i)("form.fields.certificate_id.label"),
2784
+ "model-value": _.value,
2785
2785
  readonly: "",
2786
2786
  required: "",
2787
2787
  width: "100%"
2788
- }, null, 8, ["label", "model-value"])) : (k(), U(re, {
2788
+ }, null, 8, ["label", "model-value"])) : (b(), D(ae, {
2789
2789
  key: 1,
2790
2790
  modelValue: l.fields.certificate_id,
2791
- "onUpdate:modelValue": _[2] || (_[2] = (W) => l.fields.certificate_id = W),
2791
+ "onUpdate:modelValue": I[2] || (I[2] = (W) => l.fields.certificate_id = W),
2792
2792
  appearance: "select",
2793
2793
  autosuggest: "",
2794
- class: be({ "k-select-placeholder": F.value }),
2794
+ class: ke({ "k-select-placeholder": L.value }),
2795
2795
  clearable: "",
2796
2796
  "data-testid": "sni-form-certificate-id",
2797
- "dropdown-footer-text": ue.value ? s(n)("form.fields.certificate_id.footer") : void 0,
2797
+ "dropdown-footer-text": de.value ? s(i)("form.fields.certificate_id.footer") : void 0,
2798
2798
  "enable-filtering": "",
2799
- items: de.value,
2800
- label: s(n)("form.fields.certificate_id.label"),
2801
- loading: s(j),
2802
- placeholder: s(n)("form.fields.certificate_id.placeholder"),
2799
+ items: pe.value,
2800
+ label: s(i)("form.fields.certificate_id.label"),
2801
+ loading: s(w),
2802
+ placeholder: s(i)("form.fields.certificate_id.placeholder"),
2803
2803
  readonly: l.isReadonly,
2804
2804
  required: "",
2805
2805
  width: "100%",
2806
- onQueryChange: z
2806
+ onQueryChange: P
2807
2807
  }, {
2808
- loading: p(() => [
2809
- M("div", null, $(s(n)("actions.loading")), 1)
2808
+ loading: f(() => [
2809
+ $("div", null, M(s(i)("actions.loading")), 1)
2810
2810
  ]),
2811
- empty: p(() => [
2812
- M("div", xn, $(s(n)("search.no_results")), 1)
2811
+ empty: f(() => [
2812
+ $("div", xn, M(s(i)("search.no_results")), 1)
2813
2813
  ]),
2814
2814
  _: 1
2815
2815
  }, 8, ["modelValue", "class", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
2816
- L.value ? (k(), q("p", Cn, $(L.value), 1)) : X("", !0)
2816
+ Y.value ? (b(), q("p", Cn, M(Y.value), 1)) : X("", !0)
2817
2817
  ]),
2818
2818
  _: 1
2819
2819
  }, 8, ["description", "title"])
@@ -2823,7 +2823,7 @@ const ga = ["onReset", "onSubmit"], va = {
2823
2823
  ]);
2824
2824
  };
2825
2825
  }
2826
- }), Bn = /* @__PURE__ */ lt(Tn, [["__scopeId", "data-v-576c2dac"]]);
2826
+ }), Bn = /* @__PURE__ */ st(Tn, [["__scopeId", "data-v-576c2dac"]]);
2827
2827
  export {
2828
2828
  Bn as SniForm,
2829
2829
  qn as SniList