@kong-ui-public/entities-gateway-services 3.11.27-pr.2154.c38c9846f.0 → 3.11.28-pr.2114.d6a8378f0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { defineComponent as Le, computed as k, ref as D, watch as Fe, onBeforeMount as tt, resolveComponent as W, openBlock as S, createElementBlock as $, createVNode as d, unref as l, createSlots as Te, withCtx as m, createBlock as $e, Teleport as je, createElementVNode as I, createCommentVNode as M, createTextVNode as Z, toDisplayString as P, withModifiers as De, reactive as Me, onMounted as He, renderSlot as Ze, Transition as We, Fragment as lt, renderList as ot } from "vue";
1
+ import { defineComponent as Le, computed as k, ref as L, watch as Fe, onBeforeMount as Ye, resolveComponent as D, openBlock as C, createElementBlock as F, createVNode as f, unref as l, createSlots as Te, withCtx as m, createBlock as Re, Teleport as et, createElementVNode as S, createCommentVNode as T, createTextVNode as z, toDisplayString as I, withModifiers as De, reactive as Me, onMounted as je, renderSlot as ze, Transition as We, Fragment as tt, renderList as lt } from "vue";
2
2
  import { useRouter as qe } from "vue-router";
3
- import { BookIcon as ze, AddIcon as it, ServicesIcon as rt } from "@kong/icons";
3
+ import { BookIcon as ot, AddIcon as it, ServicesIcon as rt } from "@kong/icons";
4
4
  import { createI18n as st, i18nTComponent as at } from "@kong-ui-public/i18n";
5
- import { useAxios as Ge, useTableState as nt, useFetcher as ct, useDeleteUrlBuilder as dt, FetcherStatus as ut, EntityBaseTable as ft, EntityFilter as pt, PermissionsWrapper as Ue, TableTags as mt, EntityEmptyState as vt, EntityToggleModal as gt, EntityDeleteModal as yt, EntityTypes as _t, useErrors as Je, useValidators as Qe, EntityBaseFormType as Be, useGatewayFeatureSupported as Xe, EntityBaseForm as Ye, SupportedEntityType as Oe, EntityFormSection as Ke, useHelpers as et, ConfigurationSchemaSection as Ae, ConfigurationSchemaType as bt, EntityBaseConfigCard as ht } from "@kong-ui-public/entities-shared";
5
+ import { useAxios as Ge, useTableState as nt, useFetcher as ct, useDeleteUrlBuilder as dt, FetcherStatus as ut, EntityBaseTable as ft, EntityFilter as pt, PermissionsWrapper as Ue, TableTags as mt, EntityEmptyState as vt, EntityToggleModal as gt, EntityDeleteModal as yt, EntityTypes as _t, useErrors as He, useValidators as Ze, EntityBaseFormType as Be, useGatewayFeatureSupported as Je, EntityBaseForm as Qe, SupportedEntityType as Oe, EntityFormSection as Ke, useHelpers as Xe, ConfigurationSchemaSection as $e, ConfigurationSchemaType as bt, EntityBaseConfigCard as ht } from "@kong-ui-public/entities-shared";
6
6
  const wt = {
7
7
  create: "New gateway service",
8
8
  serverless_create: "Add a Service",
@@ -222,20 +222,20 @@ const wt = {
222
222
  glossary: It
223
223
  };
224
224
  function Et() {
225
- const n = st("en-us", Pt);
225
+ const c = st("en-us", Pt);
226
226
  return {
227
- i18n: n,
228
- i18nT: at(n)
227
+ i18n: c,
228
+ i18nT: at(c)
229
229
  // Translation component <i18n-t>
230
230
  };
231
231
  }
232
232
  function Ut() {
233
233
  return {
234
- getPortFromProtocol: (X, _) => {
235
- const v = [80, 443], a = Number(_);
234
+ getPortFromProtocol: (Q, y) => {
235
+ const v = [80, 443], a = Number(y);
236
236
  if ((a || a === 0) && !v.includes(a))
237
237
  return a;
238
- switch (X) {
238
+ switch (Q) {
239
239
  case "grpcs":
240
240
  case "tls":
241
241
  case "https":
@@ -251,59 +251,59 @@ function Ut() {
251
251
  }
252
252
  };
253
253
  }
254
- function $t() {
255
- const { i18n: { t: n } } = se.useI18n();
254
+ function Ft() {
255
+ const { i18n: { t: c } } = de.useI18n();
256
256
  return {
257
- validateHost: (h) => {
258
- if (!h || h.trim() === "") return n("gateway_services.form.errors.host.empty");
259
- const L = /^(?!:\/\/)([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?))*)(\.[a-zA-Z]{1,63})?$/;
260
- return /^((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])$/.test(h) || L.test(h) ? "" : n("gateway_services.form.errors.host.invalid");
257
+ validateHost: (b) => {
258
+ if (!b || b.trim() === "") return c("gateway_services.form.errors.host.empty");
259
+ const B = /^(?!:\/\/)([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?))*)(\.[a-zA-Z]{1,63})?$/;
260
+ return /^((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])$/.test(b) || B.test(b) ? "" : c("gateway_services.form.errors.host.invalid");
261
261
  },
262
- validateProtocol: (h, L) => !h || h.trim() === "" ? n("gateway_services.form.errors.protocol.empty") : (h = h.slice(0, -1), L.find((r) => {
263
- if (r.value === h) return r;
264
- }) === void 0 ? n("gateway_services.form.errors.protocol.invalid") : ""),
265
- validatePath: (h) => !h || h === "" ? "" : h.startsWith("/") ? /[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(h) ? n("gateway_services.form.errors.path.invalid") : "" : n("gateway_services.form.errors.path.prefix"),
266
- validatePort: (h) => {
267
- if (h == null || h === "")
262
+ validateProtocol: (b, B) => !b || b.trim() === "" ? c("gateway_services.form.errors.protocol.empty") : (b = b.slice(0, -1), B.find((r) => {
263
+ if (r.value === b) return r;
264
+ }) === void 0 ? c("gateway_services.form.errors.protocol.invalid") : ""),
265
+ validatePath: (b) => !b || b === "" ? "" : b.startsWith("/") ? /[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(b) ? c("gateway_services.form.errors.path.invalid") : "" : c("gateway_services.form.errors.path.prefix"),
266
+ validatePort: (b) => {
267
+ if (b == null || b === "")
268
268
  return "";
269
- const L = typeof h == "string" ? parseInt(h, 10) : h;
270
- return isNaN(L) ? n("gateway_services.form.errors.port.type") : L < 0 || L > 65535 ? n("gateway_services.form.errors.port.invalid") : "";
269
+ const B = typeof b == "string" ? parseInt(b, 10) : b;
270
+ return isNaN(B) ? c("gateway_services.form.errors.port.type") : B < 0 || B > 65535 ? c("gateway_services.form.errors.port.invalid") : "";
271
271
  }
272
272
  };
273
273
  }
274
- const se = {
274
+ const de = {
275
275
  useI18n: Et,
276
276
  usePortFromProtocol: Ut,
277
- useUrlValidators: $t
278
- }, xe = "/v2/control-planes/{controlPlaneId}/core-entities", Re = "/{workspace}", pe = {
277
+ useUrlValidators: Ft
278
+ }, Ae = "/v2/control-planes/{controlPlaneId}/core-entities", xe = "/{workspace}", fe = {
279
279
  list: {
280
280
  konnect: {
281
- all: `${xe}/services`
281
+ all: `${Ae}/services`
282
282
  },
283
283
  kongManager: {
284
- all: `${Re}/services`
284
+ all: `${xe}/services`
285
285
  }
286
286
  },
287
287
  form: {
288
288
  konnect: {
289
- create: `${xe}/services`,
290
- validate: `${xe}/v1/schemas/json/service/validate`,
291
- edit: `${xe}/services/{id}`
289
+ create: `${Ae}/services`,
290
+ validate: `${Ae}/v1/schemas/json/service/validate`,
291
+ edit: `${Ae}/services/{id}`
292
292
  },
293
293
  kongManager: {
294
- create: `${Re}/services`,
295
- validate: `${Re}/schemas/services/validate`,
296
- edit: `${Re}/services/{id}`
294
+ create: `${xe}/services`,
295
+ validate: `${xe}/schemas/services/validate`,
296
+ edit: `${xe}/services/{id}`
297
297
  }
298
298
  }
299
- }, Ft = "#00abd2", At = "24px", xt = { class: "kong-ui-entities-gateway-services-list" }, Rt = { class: "button-row" }, Tt = { class: "empty-state-icon-gateway" }, Mt = { key: 1 }, Bt = /* @__PURE__ */ Le({
299
+ }, $t = "#00abd2", At = "24px", xt = { class: "kong-ui-entities-gateway-services-list" }, Rt = { class: "button-row" }, Tt = { class: "empty-state-icon-gateway" }, Mt = { key: 1 }, Bt = /* @__PURE__ */ Le({
300
300
  __name: "GatewayServiceList",
301
301
  props: {
302
302
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
303
303
  config: {
304
304
  type: Object,
305
305
  required: !0,
306
- validator: (n) => !(!n || !["konnect", "kongManager"].includes(n == null ? void 0 : n.app) || !n.createRoute || !n.getViewRoute || !n.getEditRoute || n.app === "kongManager" && !n.isExactMatch && !n.filterSchema)
306
+ validator: (c) => !(!c || !["konnect", "kongManager"].includes(c == null ? void 0 : c.app) || !c.createRoute || !c.getViewRoute || !c.getEditRoute || c.app === "kongManager" && !c.isExactMatch && !c.filterSchema)
307
307
  },
308
308
  // used to override the default identifier for the cache entry
309
309
  cacheIdentifier: {
@@ -343,20 +343,12 @@ const se = {
343
343
  isServerless: {
344
344
  type: Boolean,
345
345
  default: !1
346
- },
347
- /**
348
- * Enables the new empty state design, this prop can be removed when
349
- * the khcp-14756-empty-states-m2 FF is removed.
350
- */
351
- enableV2EmptyStates: {
352
- type: Boolean,
353
- default: !1
354
346
  }
355
347
  },
356
348
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle:success"],
357
- setup(n, { emit: X }) {
358
- var c;
359
- const _ = X, v = n, { i18n: { t: a, formatUnixTimeStamp: h } } = se.useI18n(), L = qe(), { axiosInstance: Q } = Ge((c = v.config) == null ? void 0 : c.axiosRequestConfig), { hasRecords: r, handleStateChange: j } = nt(() => N.value), A = k(() => r.value && v.config.app === "konnect"), Se = k(() => !v.enableV2EmptyStates && v.config.app === "konnect"), be = k(() => v.config.app !== "kongManager" || !!v.config.disableSorting), Y = {
349
+ setup(c, { emit: Q }) {
350
+ var R;
351
+ const y = Q, v = c, { i18n: { t: a, formatUnixTimeStamp: b } } = de.useI18n(), B = qe(), { axiosInstance: Z } = Ge((R = v.config) == null ? void 0 : R.axiosRequestConfig), { hasRecords: r, handleStateChange: O } = nt(() => X.value), $ = k(() => r.value && v.config.app === "konnect"), Ie = k(() => v.config.app !== "kongManager" || !!v.config.disableSorting), pe = {
360
352
  // the Name column is non-hidable
361
353
  name: { label: a("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
362
354
  ...v.config.showControlPlaneColumn ? { control_plane: { label: a("gateway_services.list.table_headers.control_plane") } } : {},
@@ -368,197 +360,197 @@ const se = {
368
360
  tags: { label: a("gateway_services.list.table_headers.tags"), sortable: !1 },
369
361
  updated_at: { label: a("gateway_services.list.table_headers.updated_at"), sortable: !0 },
370
362
  created_at: { label: a("gateway_services.list.table_headers.created_at"), sortable: !0 }
371
- }, he = {
363
+ }, oe = {
372
364
  columnVisibility: {
373
365
  created_at: !1
374
366
  }
375
- }, ae = Y, x = k(() => {
376
- var p, C;
377
- let g = `${v.config.apiBaseUrl}${pe.list[v.config.app].all}`;
378
- return v.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((p = v.config) == null ? void 0 : p.controlPlaneId) || "") : v.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (C = v.config) != null && C.workspace ? `/${v.config.workspace}` : "")), g;
379
- }), me = k(() => v.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${x.value}`) : new URL(x.value)), N = D(""), Ie = k(() => {
380
- const g = v.config.app === "konnect" || v.config.isExactMatch;
381
- if (g)
367
+ }, he = pe, Y = k(() => {
368
+ var w, p;
369
+ let s = `${v.config.apiBaseUrl}${fe.list[v.config.app].all}`;
370
+ return v.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((w = v.config) == null ? void 0 : w.controlPlaneId) || "") : v.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (p = v.config) != null && p.workspace ? `/${v.config.workspace}` : "")), s;
371
+ }), M = k(() => v.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${Y.value}`) : new URL(Y.value)), X = L(""), ee = k(() => {
372
+ const s = v.config.app === "konnect" || v.config.isExactMatch;
373
+ if (s)
382
374
  return {
383
- isExactMatch: g,
375
+ isExactMatch: s,
384
376
  placeholder: a(`search.placeholder.${v.config.app}`)
385
377
  };
386
- const { name: p, enabled: C, protocol: K, host: ue, port: G, path: fe } = Y;
378
+ const { name: w, enabled: p, protocol: W, host: re, port: J, path: se } = pe;
387
379
  return {
388
- isExactMatch: g,
389
- fields: { name: p, enabled: C, protocol: K, host: ue, port: G, path: fe },
380
+ isExactMatch: s,
381
+ fields: { name: w, enabled: p, protocol: W, host: re, port: J, path: se },
390
382
  schema: v.config.filterSchema
391
383
  };
392
384
  }), {
393
- fetcher: o,
394
- fetcherState: w,
395
- fetcherCacheKey: ie
396
- } = ct(k(() => ({ ...v.config, cacheIdentifier: v.cacheIdentifier })), x), ve = () => {
397
- N.value = "";
398
- }, we = () => {
399
- ie.value++;
400
- }, e = D(null), F = k(() => ({
385
+ fetcher: Pe,
386
+ fetcherState: o,
387
+ fetcherCacheKey: h
388
+ } = ct(k(() => ({ ...v.config, cacheIdentifier: v.cacheIdentifier })), Y), me = () => {
389
+ X.value = "";
390
+ }, ve = () => {
391
+ h.value++;
392
+ }, ae = L(null), e = k(() => ({
401
393
  ctaPath: v.config.createRoute,
402
- ctaText: R.value ? v.isServerless ? a("actions.serverless_create") : a("actions.create") : void 0,
394
+ ctaText: A.value ? v.isServerless ? a("actions.serverless_create") : a("actions.create") : void 0,
403
395
  message: `${a("gateway_services.list.empty_state.description")}${v.config.additionMessageForEmptyState ? ` ${v.config.additionMessageForEmptyState}` : ""}`,
404
- title: R.value ? v.isServerless ? a("gateway_services.list.empty_state.serverless_title") : a("gateway_services.list.empty_state.title") : a("gateway_services.title")
405
- })), ne = D(!1), q = D(null), re = k(() => {
406
- const g = {
396
+ title: A.value ? v.isServerless ? a("gateway_services.list.empty_state.serverless_title") : a("gateway_services.list.empty_state.title") : a("gateway_services.title")
397
+ })), P = L(!1), G = L(null), ne = k(() => {
398
+ const s = {
407
399
  action: "disable",
408
400
  id: "",
409
401
  name: ""
410
402
  };
411
- if (q.value) {
412
- const { enabled: p, id: C, name: K } = q.value;
413
- g.action = p ? "disable" : "enable", g.id = C, g.name = K || C;
403
+ if (G.value) {
404
+ const { enabled: w, id: p, name: W } = G.value;
405
+ s.action = w ? "disable" : "enable", s.id = p, s.name = W || p;
414
406
  }
415
- return g;
416
- }), Pe = (g) => {
417
- ne.value = !0, q.value = g;
418
- }, oe = () => {
419
- ne.value = !1, q.value = null;
420
- }, ke = async () => {
421
- var K, ue;
422
- if (!await ((K = v.canEdit) == null ? void 0 : K.call(v, q.value)) || !q.value)
407
+ return s;
408
+ }), ge = (s) => {
409
+ P.value = !0, G.value = s;
410
+ }, we = () => {
411
+ P.value = !1, G.value = null;
412
+ }, ce = async () => {
413
+ var W, re;
414
+ if (!await ((W = v.canEdit) == null ? void 0 : W.call(v, G.value)) || !G.value)
423
415
  return;
424
- const p = `${me.value.href}/${q.value.id}`, C = !q.value.enabled;
416
+ const w = `${M.value.href}/${G.value.id}`, p = !G.value.enabled;
425
417
  try {
426
- const { data: G } = ((ue = v.config) == null ? void 0 : ue.app) === "konnect" ? await Q.put(p, { ...q.value, enabled: C }) : await Q.patch(p, { ...q.value, enabled: C });
427
- _("toggle:success", G), q.value.enabled = C;
428
- } catch (G) {
429
- _("error", G);
418
+ const { data: J } = ((re = v.config) == null ? void 0 : re.app) === "konnect" ? await Z.put(w, { ...G.value, enabled: p }) : await Z.patch(w, { ...G.value, enabled: p });
419
+ y("toggle:success", J), G.value.enabled = p;
420
+ } catch (J) {
421
+ y("error", J);
430
422
  }
431
- }, Ve = (g) => {
432
- v.config.getControlPlaneRoute && L.push(v.config.getControlPlaneRoute(g));
433
- }, ce = async (g, p) => {
434
- const C = g.id;
435
- if (!await p(C)) {
436
- _("copy:error", {
437
- entity: g,
423
+ }, ke = (s) => {
424
+ v.config.getControlPlaneRoute && B.push(v.config.getControlPlaneRoute(s));
425
+ }, Ve = async (s, w) => {
426
+ const p = s.id;
427
+ if (!await w(p)) {
428
+ y("copy:error", {
429
+ entity: s,
438
430
  field: "id",
439
431
  message: a("errors.copy")
440
432
  });
441
433
  return;
442
434
  }
443
- _("copy:success", {
444
- entity: g,
435
+ y("copy:success", {
436
+ entity: s,
445
437
  field: "id",
446
- message: a("copy.success", { val: C })
438
+ message: a("copy.success", { val: p })
447
439
  });
448
- }, ge = async (g, p) => {
449
- const C = JSON.stringify(g);
450
- if (!await p(C)) {
451
- _("copy:error", {
452
- entity: g,
440
+ }, ue = async (s, w) => {
441
+ const p = JSON.stringify(s);
442
+ if (!await w(p)) {
443
+ y("copy:error", {
444
+ entity: s,
453
445
  message: a("errors.copy")
454
446
  });
455
447
  return;
456
448
  }
457
- _("copy:success", {
458
- entity: g,
449
+ y("copy:success", {
450
+ entity: s,
459
451
  message: a("copy.success_brief")
460
452
  });
461
- }, ye = async (g) => {
462
- var C;
463
- await ((C = v.canRetrieve) == null ? void 0 : C.call(v, g)) && L.push(v.config.getViewRoute(g.id));
464
- }, Ee = (g) => ({
453
+ }, ye = async (s) => {
454
+ var p;
455
+ await ((p = v.canRetrieve) == null ? void 0 : p.call(v, s)) && B.push(v.config.getViewRoute(s.id));
456
+ }, _e = (s) => ({
465
457
  label: a("actions.view"),
466
- to: v.config.getViewRoute(g)
467
- }), ee = (g) => ({
458
+ to: v.config.getViewRoute(s)
459
+ }), Ee = (s) => ({
468
460
  label: a("actions.edit"),
469
- to: v.config.getEditRoute(g)
470
- }), z = D(void 0), H = D(!1), te = D(!1), de = D(""), i = dt(v.config, x.value), u = (g) => {
471
- z.value = g, H.value = !0, de.value = "";
472
- }, V = () => {
473
- H.value = !1, z.value = void 0;
474
- }, J = async () => {
475
- var g, p, C;
476
- if ((g = z.value) != null && g.id) {
477
- te.value = !0;
461
+ to: v.config.getEditRoute(s)
462
+ }), K = L(void 0), ie = L(!1), N = L(!1), te = L(""), Ce = dt(v.config, Y.value), i = (s) => {
463
+ K.value = s, ie.value = !0, te.value = "";
464
+ }, d = () => {
465
+ ie.value = !1, K.value = void 0;
466
+ }, V = async () => {
467
+ var s, w, p;
468
+ if ((s = K.value) != null && s.id) {
469
+ N.value = !0;
478
470
  try {
479
- await Q.delete(i(z.value.id)), _("delete:success", z.value), V(), ie.value++;
480
- } catch (K) {
481
- de.value = ((C = (p = K.response) == null ? void 0 : p.data) == null ? void 0 : C.message) || K.message || a("errors.delete"), _("error", K);
471
+ await Z.delete(Ce(K.value.id)), y("delete:success", K.value), d(), h.value++;
472
+ } catch (W) {
473
+ te.value = ((p = (w = W.response) == null ? void 0 : w.data) == null ? void 0 : p.message) || W.message || a("errors.delete"), y("error", W);
482
474
  } finally {
483
- te.value = !1;
475
+ N.value = !1;
484
476
  }
485
477
  }
486
- }, B = () => {
487
- L.push(v.config.createRoute);
478
+ }, H = () => {
479
+ B.push(v.config.createRoute);
488
480
  };
489
- Fe(w, (g) => {
490
- var p, C, K;
491
- if (g.status === ut.Error) {
492
- e.value = {
481
+ Fe(o, (s) => {
482
+ var w, p, W;
483
+ if (s.status === ut.Error) {
484
+ ae.value = {
493
485
  title: a("errors.general")
494
- }, (K = (C = (p = g.error) == null ? void 0 : p.response) == null ? void 0 : C.data) != null && K.message && (e.value.message = g.error.response.data.message), _("error", g.error);
486
+ }, (W = (p = (w = s.error) == null ? void 0 : w.response) == null ? void 0 : p.data) != null && W.message && (ae.value.message = s.error.response.data.message), y("error", s.error);
495
487
  return;
496
488
  }
497
- e.value = null;
489
+ ae.value = null;
498
490
  });
499
- const R = D(!1);
500
- return tt(async () => {
501
- R.value = await v.canCreate();
502
- }), (g, p) => {
503
- const C = W("KButton"), K = W("KBadge"), ue = W("KInputSwitch"), G = W("KDropdownItem"), fe = W("KClipboardProvider");
504
- return S(), $("div", xt, [
505
- d(l(ft), {
506
- "cache-identifier": n.cacheIdentifier,
507
- "default-table-preferences": he,
508
- "disable-sorting": be.value,
509
- "empty-state-options": F.value,
491
+ const A = L(!1);
492
+ return Ye(async () => {
493
+ A.value = await v.canCreate();
494
+ }), (s, w) => {
495
+ const p = D("KButton"), W = D("KBadge"), re = D("KInputSwitch"), J = D("KDropdownItem"), se = D("KClipboardProvider");
496
+ return C(), F("div", xt, [
497
+ f(l(ft), {
498
+ "cache-identifier": c.cacheIdentifier,
499
+ "default-table-preferences": oe,
500
+ "disable-sorting": Ie.value,
501
+ "empty-state-options": e.value,
510
502
  "enable-entity-actions": "",
511
- "error-message": e.value,
512
- fetcher: l(o),
513
- "fetcher-cache-key": l(ie),
503
+ "error-message": ae.value,
504
+ fetcher: l(Pe),
505
+ "fetcher-cache-key": l(h),
514
506
  "pagination-type": "offset",
515
507
  "preferences-storage-key": "kong-ui-entities-gateway-services-list",
516
- query: N.value,
517
- "table-headers": l(ae),
518
- onClearSearchInput: ve,
519
- "onClick:row": p[5] || (p[5] = (b) => ye(b)),
520
- onSort: we,
521
- onState: l(j)
508
+ query: X.value,
509
+ "table-headers": l(he),
510
+ onClearSearchInput: me,
511
+ "onClick:row": w[4] || (w[4] = (_) => ye(_)),
512
+ onSort: ve,
513
+ onState: l(O)
522
514
  }, Te({
523
515
  "toolbar-filter": m(() => [
524
- d(l(pt), {
525
- modelValue: N.value,
526
- "onUpdate:modelValue": p[0] || (p[0] = (b) => N.value = b),
527
- config: Ie.value
516
+ f(l(pt), {
517
+ modelValue: X.value,
518
+ "onUpdate:modelValue": w[0] || (w[0] = (_) => X.value = _),
519
+ config: ee.value
528
520
  }, null, 8, ["modelValue", "config"])
529
521
  ]),
530
522
  "toolbar-button": m(() => [
531
- (S(), $e(je, {
532
- disabled: !n.useActionOutside,
523
+ (C(), Re(et, {
524
+ disabled: !c.useActionOutside,
533
525
  to: "#kong-ui-app-page-header-action-button"
534
526
  }, [
535
- I("div", Rt, [
536
- A.value ? (S(), $e(C, {
527
+ S("div", Rt, [
528
+ $.value ? (C(), Re(p, {
537
529
  key: 0,
538
530
  appearance: "secondary",
539
531
  class: "open-learning-hub",
540
532
  "data-testid": "gateway-services-learn-more-button",
541
533
  icon: "",
542
- onClick: p[1] || (p[1] = (b) => g.$emit("click:learn-more"))
534
+ onClick: w[1] || (w[1] = (_) => s.$emit("click:learn-more"))
543
535
  }, {
544
536
  default: m(() => [
545
- d(l(ze), { decorative: "" })
537
+ f(l(ot), { decorative: "" })
546
538
  ]),
547
539
  _: 1
548
- })) : M("", !0),
549
- d(l(Ue), {
550
- "auth-function": () => n.canCreate()
540
+ })) : T("", !0),
541
+ f(l(Ue), {
542
+ "auth-function": () => c.canCreate()
551
543
  }, {
552
544
  default: m(() => [
553
- d(C, {
545
+ f(p, {
554
546
  appearance: "primary",
555
547
  "data-testid": "toolbar-add-gateway-service",
556
- size: n.useActionOutside ? "medium" : "large",
557
- to: n.config.createRoute
548
+ size: c.useActionOutside ? "medium" : "large",
549
+ to: c.config.createRoute
558
550
  }, {
559
551
  default: m(() => [
560
- d(l(it)),
561
- Z(" " + P(l(a)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
552
+ f(l(it)),
553
+ z(" " + I(l(a)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
562
554
  ]),
563
555
  _: 1
564
556
  }, 8, ["size", "to"])
@@ -568,120 +560,120 @@ const se = {
568
560
  ])
569
561
  ], 8, ["disabled"]))
570
562
  ]),
571
- name: m(({ rowValue: b }) => [
572
- I("b", null, P(b ?? "-"), 1)
563
+ name: m(({ rowValue: _ }) => [
564
+ S("b", null, I(_ ?? "-"), 1)
573
565
  ]),
574
- control_plane: m(({ row: b }) => {
575
- var t;
566
+ control_plane: m(({ row: _ }) => {
567
+ var j;
576
568
  return [
577
- (t = b.x_meta) != null && t.cluster_id ? (S(), $e(K, {
569
+ (j = _.x_meta) != null && j.cluster_id ? (C(), Re(W, {
578
570
  key: 0,
579
- tooltip: b.x_meta.cluster_id,
571
+ tooltip: _.x_meta.cluster_id,
580
572
  "truncation-tooltip": "",
581
- onClick: De((s) => Ve(b.x_meta.cluster_id), ["stop"])
573
+ onClick: De((t) => ke(_.x_meta.cluster_id), ["stop"])
582
574
  }, {
583
575
  default: m(() => [
584
- Z(P(b.x_meta.cluster_id), 1)
576
+ z(I(_.x_meta.cluster_id), 1)
585
577
  ]),
586
578
  _: 2
587
- }, 1032, ["tooltip", "onClick"])) : (S(), $("b", Mt, "-"))
579
+ }, 1032, ["tooltip", "onClick"])) : (C(), F("b", Mt, "-"))
588
580
  ];
589
581
  }),
590
- enabled: m(({ row: b }) => [
591
- d(l(Ue), {
592
- "auth-function": () => n.canEdit(b),
582
+ enabled: m(({ row: _ }) => [
583
+ f(l(Ue), {
584
+ "auth-function": () => c.canEdit(_),
593
585
  "force-show": ""
594
586
  }, {
595
- default: m(({ isAllowed: t }) => [
596
- I("div", {
597
- onClick: p[4] || (p[4] = De(() => {
587
+ default: m(({ isAllowed: j }) => [
588
+ S("div", {
589
+ onClick: w[3] || (w[3] = De(() => {
598
590
  }, ["stop"]))
599
591
  }, [
600
- d(ue, {
601
- modelValue: b.enabled,
602
- "onUpdate:modelValue": (s) => b.enabled = s,
603
- "data-testid": `row-${b.id}-toggle-input`,
604
- disabled: !t,
605
- onClick: De((s) => Pe(b), ["prevent"])
592
+ f(re, {
593
+ modelValue: _.enabled,
594
+ "onUpdate:modelValue": (t) => _.enabled = t,
595
+ "data-testid": `row-${_.id}-toggle-input`,
596
+ disabled: !j,
597
+ onClick: De((t) => ge(_), ["prevent"])
606
598
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "onClick"])
607
599
  ])
608
600
  ]),
609
601
  _: 2
610
602
  }, 1032, ["auth-function"])
611
603
  ]),
612
- tags: m(({ rowValue: b }) => [
613
- d(l(mt), { tags: b }, null, 8, ["tags"])
604
+ tags: m(({ rowValue: _ }) => [
605
+ f(l(mt), { tags: _ }, null, 8, ["tags"])
614
606
  ]),
615
- created_at: m(({ rowValue: b }) => [
616
- Z(P(l(h)(b)), 1)
607
+ created_at: m(({ rowValue: _ }) => [
608
+ z(I(l(b)(_)), 1)
617
609
  ]),
618
- updated_at: m(({ row: b, rowValue: t }) => [
619
- Z(P(l(h)(t ?? b.created_at)), 1)
610
+ updated_at: m(({ row: _, rowValue: j }) => [
611
+ z(I(l(b)(j ?? _.created_at)), 1)
620
612
  ]),
621
- actions: m(({ row: b }) => [
622
- d(fe, null, {
623
- default: m(({ copyToClipboard: t }) => [
624
- d(G, {
613
+ actions: m(({ row: _ }) => [
614
+ f(se, null, {
615
+ default: m(({ copyToClipboard: j }) => [
616
+ f(J, {
625
617
  "data-testid": "action-entity-copy-id",
626
- onClick: (s) => ce(b, t)
618
+ onClick: (t) => Ve(_, j)
627
619
  }, {
628
620
  default: m(() => [
629
- Z(P(l(a)("actions.copy_id")), 1)
621
+ z(I(l(a)("actions.copy_id")), 1)
630
622
  ]),
631
623
  _: 2
632
624
  }, 1032, ["onClick"])
633
625
  ]),
634
626
  _: 2
635
627
  }, 1024),
636
- d(fe, null, {
637
- default: m(({ copyToClipboard: t }) => [
638
- d(G, {
628
+ f(se, null, {
629
+ default: m(({ copyToClipboard: j }) => [
630
+ f(J, {
639
631
  "data-testid": "action-entity-copy-json",
640
- onClick: (s) => ge(b, t)
632
+ onClick: (t) => ue(_, j)
641
633
  }, {
642
634
  default: m(() => [
643
- Z(P(l(a)("actions.copy_json")), 1)
635
+ z(I(l(a)("actions.copy_json")), 1)
644
636
  ]),
645
637
  _: 2
646
638
  }, 1032, ["onClick"])
647
639
  ]),
648
640
  _: 2
649
641
  }, 1024),
650
- d(l(Ue), {
651
- "auth-function": () => n.canRetrieve(b)
642
+ f(l(Ue), {
643
+ "auth-function": () => c.canRetrieve(_)
652
644
  }, {
653
645
  default: m(() => [
654
- d(G, {
646
+ f(J, {
655
647
  "data-testid": "action-entity-view",
656
648
  "has-divider": "",
657
- item: Ee(b.id)
649
+ item: _e(_.id)
658
650
  }, null, 8, ["item"])
659
651
  ]),
660
652
  _: 2
661
653
  }, 1032, ["auth-function"]),
662
- d(l(Ue), {
663
- "auth-function": () => n.canEdit(b)
654
+ f(l(Ue), {
655
+ "auth-function": () => c.canEdit(_)
664
656
  }, {
665
657
  default: m(() => [
666
- d(G, {
658
+ f(J, {
667
659
  "data-testid": "action-entity-edit",
668
- item: ee(b.id)
660
+ item: Ee(_.id)
669
661
  }, null, 8, ["item"])
670
662
  ]),
671
663
  _: 2
672
664
  }, 1032, ["auth-function"]),
673
- d(l(Ue), {
674
- "auth-function": () => n.canDelete(b)
665
+ f(l(Ue), {
666
+ "auth-function": () => c.canDelete(_)
675
667
  }, {
676
668
  default: m(() => [
677
- d(G, {
669
+ f(J, {
678
670
  danger: "",
679
671
  "data-testid": "action-entity-delete",
680
672
  "has-divider": "",
681
- onClick: (t) => u(b)
673
+ onClick: (j) => i(_)
682
674
  }, {
683
675
  default: m(() => [
684
- Z(P(l(a)("actions.delete.menu_label")), 1)
676
+ z(I(l(a)("actions.delete.menu_label")), 1)
685
677
  ]),
686
678
  _: 2
687
679
  }, 1032, ["onClick"])
@@ -691,98 +683,75 @@ const se = {
691
683
  ]),
692
684
  _: 2
693
685
  }, [
694
- !l(r) && Se.value ? {
695
- name: "outside-actions",
696
- fn: m(() => [
697
- (S(), $e(je, {
698
- disabled: !n.useActionOutside,
699
- to: "#kong-ui-app-page-header-action-button"
700
- }, [
701
- d(C, {
702
- appearance: "secondary",
703
- class: "open-learning-hub",
704
- "data-testid": "gateway-services-more-button",
705
- icon: "",
706
- onClick: p[2] || (p[2] = (b) => g.$emit("click:learn-more"))
707
- }, {
708
- default: m(() => [
709
- d(l(ze), { decorative: "" })
710
- ]),
711
- _: 1
712
- })
713
- ], 8, ["disabled"]))
714
- ]),
715
- key: "0"
716
- } : void 0,
717
- !N.value && n.enableV2EmptyStates && n.config.app === "konnect" ? {
686
+ !X.value && c.config.app === "konnect" ? {
718
687
  name: "empty-state",
719
688
  fn: m(() => {
720
- var b;
689
+ var _;
721
690
  return [
722
- d(l(vt), {
691
+ f(l(vt), {
723
692
  "action-button-text": l(a)("gateway_services.empty_state_v2.create"),
724
693
  appearance: "secondary",
725
- "can-create": () => n.canCreate(),
694
+ "can-create": () => c.canCreate(),
726
695
  "data-testid": "gateway-services-entity-empty-state",
727
696
  description: l(a)("gateway_services.empty_state_v2.description"),
728
- "learn-more": n.config.app === "konnect",
697
+ "learn-more": c.config.app === "konnect",
729
698
  title: l(a)("gateway_services.empty_state_v2.title"),
730
- "onClick:create": B,
731
- "onClick:learnMore": p[3] || (p[3] = (t) => g.$emit("click:learn-more"))
699
+ "onClick:create": H,
700
+ "onClick:learnMore": w[2] || (w[2] = (j) => s.$emit("click:learn-more"))
732
701
  }, Te({
733
702
  image: m(() => [
734
- I("div", Tt, [
735
- d(l(rt), {
736
- color: l(Ft),
703
+ S("div", Tt, [
704
+ f(l(rt), {
705
+ color: l($t),
737
706
  size: l(At)
738
707
  }, null, 8, ["color", "size"])
739
708
  ])
740
709
  ]),
741
710
  _: 2
742
711
  }, [
743
- (b = n.config) != null && b.isControlPlaneGroup ? {
712
+ (_ = c.config) != null && _.isControlPlaneGroup ? {
744
713
  name: "message",
745
714
  fn: m(() => [
746
- Z(P(l(a)("gateway_services.empty_state_v2.group")), 1)
715
+ z(I(l(a)("gateway_services.empty_state_v2.group")), 1)
747
716
  ]),
748
717
  key: "0"
749
718
  } : void 0
750
719
  ]), 1032, ["action-button-text", "can-create", "description", "learn-more", "title"])
751
720
  ];
752
721
  }),
753
- key: "1"
722
+ key: "0"
754
723
  } : void 0
755
724
  ]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
756
- d(l(gt), {
757
- action: re.value.action,
758
- "entity-id": re.value.id,
759
- "entity-name": re.value.name,
725
+ f(l(gt), {
726
+ action: ne.value.action,
727
+ "entity-id": ne.value.id,
728
+ "entity-name": ne.value.name,
760
729
  "entity-type": l(a)("glossary.gateway_services"),
761
- "on-confirm": ke,
762
- visible: ne.value,
763
- onCancel: oe,
764
- onProceed: oe
730
+ "on-confirm": ce,
731
+ visible: P.value,
732
+ onCancel: we,
733
+ onProceed: we
765
734
  }, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
766
- d(l(yt), {
767
- "action-pending": te.value,
735
+ f(l(yt), {
736
+ "action-pending": N.value,
768
737
  description: l(a)("actions.delete.description"),
769
- "entity-name": z.value && (z.value.name || z.value.id),
738
+ "entity-name": K.value && (K.value.name || K.value.id),
770
739
  "entity-type": l(_t).GatewayService,
771
- error: de.value,
740
+ error: te.value,
772
741
  title: l(a)("actions.delete.title"),
773
- visible: H.value,
774
- onCancel: V,
775
- onProceed: J
742
+ visible: ie.value,
743
+ onCancel: d,
744
+ onProceed: V
776
745
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
777
746
  ]);
778
747
  };
779
748
  }
780
- }), Ne = (n, X) => {
781
- const _ = n.__vccOpts || n;
782
- for (const [v, a] of X)
783
- _[v] = a;
784
- return _;
785
- }, Fl = /* @__PURE__ */ Ne(Bt, [["__scopeId", "data-v-210f19c5"]]), Kt = { class: "kong-ui-entities-gateway-service-form" }, Lt = { key: 0 }, Dt = { class: "gateway-service-form-traffic-label" }, Wt = { class: "gateway-service-form-margin-bottom" }, qt = {
749
+ }), Ne = (c, Q) => {
750
+ const y = c.__vccOpts || c;
751
+ for (const [v, a] of Q)
752
+ y[v] = a;
753
+ return y;
754
+ }, $l = /* @__PURE__ */ Ne(Bt, [["__scopeId", "data-v-46700fcd"]]), Kt = { class: "kong-ui-entities-gateway-service-form" }, Lt = { key: 0 }, Dt = { class: "gateway-service-form-traffic-label" }, Wt = { class: "gateway-service-form-margin-bottom" }, qt = {
786
755
  key: 0,
787
756
  class: "gateway-service-form-group-fields"
788
757
  }, Gt = {
@@ -810,7 +779,7 @@ const se = {
810
779
  config: {
811
780
  type: Object,
812
781
  required: !0,
813
- validator: (n) => !(!n || !["konnect", "kongManager"].includes(n == null ? void 0 : n.app) || n.app === "konnect" && !n.controlPlaneId || n.app === "kongManager" && typeof n.workspace != "string" || !n.cancelRoute)
782
+ validator: (c) => !(!c || !["konnect", "kongManager"].includes(c == null ? void 0 : c.app) || c.app === "konnect" && !c.controlPlaneId || c.app === "kongManager" && typeof c.workspace != "string" || !c.cancelRoute)
814
783
  },
815
784
  /** If a valid Gateway Service ID is provided, it will put the form in Edit mode instead of Create */
816
785
  gatewayServiceId: {
@@ -826,9 +795,9 @@ const se = {
826
795
  }
827
796
  },
828
797
  emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
829
- setup(n, { expose: X, emit: _ }) {
830
- var de;
831
- const v = _, a = n, h = D(!0), L = qe(), { i18nT: Q, i18n: { t: r } } = se.useI18n(), { getMessageFromError: j } = Je(), { axiosInstance: A } = Ge((de = a.config) == null ? void 0 : de.axiosRequestConfig), Se = Qe(), be = k(() => pe.form[a.config.app].edit), Y = k(() => a.gatewayServiceId ? Be.Edit : Be.Create), he = D(!1), ae = k(() => !!a.gatewayServiceId), x = D(ae.value ? "protocol" : "url"), me = se.usePortFromProtocol(), N = D(""), Ie = k(() => !!N.value), o = Me({
798
+ setup(c, { expose: Q, emit: y }) {
799
+ var Ce;
800
+ const v = y, a = c, b = L(!0), B = qe(), { i18nT: Z, i18n: { t: r } } = de.useI18n(), { getMessageFromError: O } = He(), { axiosInstance: $ } = Ge((Ce = a.config) == null ? void 0 : Ce.axiosRequestConfig), Ie = Ze(), pe = k(() => fe.form[a.config.app].edit), oe = k(() => a.gatewayServiceId ? Be.Edit : Be.Create), he = L(!1), Y = k(() => !!a.gatewayServiceId), M = L(Y.value ? "protocol" : "url"), X = de.usePortFromProtocol(), ee = L(""), Pe = k(() => !!ee.value), o = Me({
832
801
  fields: {
833
802
  name: "",
834
803
  protocol: "http",
@@ -848,7 +817,7 @@ const se = {
848
817
  },
849
818
  isReadonly: !1,
850
819
  errorMessage: ""
851
- }), w = Me({
820
+ }), h = Me({
852
821
  name: "",
853
822
  protocol: "http",
854
823
  host: "",
@@ -864,7 +833,7 @@ const se = {
864
833
  tls_verify_enabled: !1,
865
834
  tls_verify_value: !1,
866
835
  tags: ""
867
- }), ie = a.config.app === "konnect" || Xe({
836
+ }), me = a.config.app === "konnect" || Je({
868
837
  gatewayInfo: a.config.gatewayInfo,
869
838
  // 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
870
839
  supportedRange: {
@@ -906,7 +875,7 @@ const se = {
906
875
  value: "grpcs",
907
876
  group: "grpc"
908
877
  },
909
- ...ie ? [
878
+ ...me ? [
910
879
  {
911
880
  label: r("gateway_services.form.fields.protocol.options.ws"),
912
881
  value: "ws",
@@ -923,60 +892,60 @@ const se = {
923
892
  value: "udp",
924
893
  group: "udp"
925
894
  }
926
- ], we = { url: "url", protocol: "protocol" }, e = (i, u) => {
927
- u.value;
928
- }, F = (i) => i ? parseFloat(i) : 0, ne = () => {
929
- h.value = !0, o.errorMessage = "", o.fields.host = w.host, o.fields.path = w.path, o.fields.port = w.port, o.fields.protocol = w.protocol, o.fields.url = w.url, o.fields.retries = w.retries, o.fields.connect_timeout = w.connect_timeout, o.fields.write_timeout = w.write_timeout, o.fields.read_timeout = w.read_timeout, o.fields.client_certificate = w.client_certificate, o.fields.ca_certificates = w.ca_certificates, o.fields.tls_verify_enabled = w.tls_verify_enabled, o.fields.tls_verify_value = w.tls_verify_value;
930
- }, q = () => {
931
- if (o.fields.url && x.value === "url")
895
+ ], ae = { url: "url", protocol: "protocol" }, e = (i, d) => {
896
+ d.value;
897
+ }, P = (i) => i ? parseFloat(i) : 0, G = () => {
898
+ b.value = !0, o.errorMessage = "", o.fields.host = h.host, o.fields.path = h.path, o.fields.port = h.port, o.fields.protocol = h.protocol, o.fields.url = h.url, o.fields.retries = h.retries, o.fields.connect_timeout = h.connect_timeout, o.fields.write_timeout = h.write_timeout, o.fields.read_timeout = h.read_timeout, o.fields.client_certificate = h.client_certificate, o.fields.ca_certificates = h.ca_certificates, o.fields.tls_verify_enabled = h.tls_verify_enabled, o.fields.tls_verify_value = h.tls_verify_value;
899
+ }, ne = () => {
900
+ if (o.fields.url && M.value === "url")
932
901
  try {
933
902
  const i = new URL(o.fields.url);
934
903
  o.errorMessage = "", o.fields.protocol = i.protocol.slice(0, -1), o.fields.host = i.hostname, o.fields.path = i.pathname;
935
- const u = Number(i.port);
936
- he.value = !!u, o.fields.port = u || me.getPortFromProtocol(o.fields.protocol), o.errorMessage = "", v("url-valid:success");
904
+ const d = Number(i.port);
905
+ he.value = !!d, o.fields.port = d || X.getPortFromProtocol(o.fields.protocol), o.errorMessage = "", v("url-valid:success");
937
906
  } catch (i) {
938
- o.errorMessage = r("errors.urlErrorMessage"), v("url-valid:error", j(i));
907
+ o.errorMessage = r("errors.urlErrorMessage"), v("url-valid:error", O(i));
939
908
  }
940
909
  else
941
910
  v("url-valid:success"), o.errorMessage = "";
942
- }, re = k(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(o.fields.protocol)), Pe = k(() => {
943
- if (x.value === "url")
911
+ }, ge = k(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(o.fields.protocol)), we = k(() => {
912
+ if (M.value === "url")
944
913
  return !0;
945
914
  const i = ["https", "wss", "tls"].includes(o.fields.protocol);
946
- return x.value === "protocol" && i;
947
- }), oe = k(() => {
948
- if (x.value === "url")
915
+ return M.value === "protocol" && i;
916
+ }), ce = k(() => {
917
+ if (M.value === "url")
949
918
  return !0;
950
919
  const i = ["https", "tls"].includes(o.fields.protocol);
951
- return x.value === "protocol" && i;
920
+ return M.value === "protocol" && i;
952
921
  }), ke = k(() => {
953
- if (x.value === "url")
922
+ if (M.value === "url")
954
923
  return !0;
955
924
  const i = ["https", "wss", "tls"].includes(o.fields.protocol);
956
- return x.value === "protocol" && i;
925
+ return M.value === "protocol" && i;
957
926
  }), Ve = (i) => {
958
- N.value = Se.utf8Name(i);
959
- }, ce = k(() => ae.value && JSON.stringify(o.fields) !== JSON.stringify(w) || x.value === "url" && !!o.fields.url || x.value === "protocol" && !!o.fields.host), ge = (i) => {
960
- var u, V, J;
961
- o.fields.name = (i == null ? void 0 : i.name) || "", o.fields.tags = ((u = i == null ? void 0 : i.tags) == null ? void 0 : u.join(", ")) || "", o.fields.protocol = (i == null ? void 0 : i.protocol) || "http", o.fields.path = (i == null ? void 0 : i.path) || "", o.fields.read_timeout = i != null && i.read_timeout || (i == null ? void 0 : i.read_timeout) === 0 ? i == null ? void 0 : i.read_timeout : 6e4, o.fields.retries = i != null && i.retries || (i == null ? void 0 : i.retries) === 0 ? i == null ? void 0 : i.retries : 5, o.fields.host = (i == null ? void 0 : i.host) || "", o.fields.connect_timeout = i != null && i.connect_timeout || (i == null ? void 0 : i.connect_timeout) === 0 ? i == null ? void 0 : i.connect_timeout : 6e4, o.fields.tls_verify_enabled = (i == null ? void 0 : i.tls_verify) !== "" && (i == null ? void 0 : i.tls_verify) !== null && (i == null ? void 0 : i.tls_verify) !== void 0, o.fields.tls_verify_value = i != null && i.tls_verify ? i == null ? void 0 : i.tls_verify : !1, o.fields.ca_certificates = ((V = i == null ? void 0 : i.ca_certificates) == null ? void 0 : V.join(",")) || "", o.fields.client_certificate = ((J = i == null ? void 0 : i.client_certificate) == null ? void 0 : J.id) || "", o.fields.write_timeout = i != null && i.write_timeout || (i == null ? void 0 : i.write_timeout) === 0 ? i == null ? void 0 : i.write_timeout : 6e4, o.fields.port = i != null && i.port || (i == null ? void 0 : i.port) === 0 ? i == null ? void 0 : i.port : 80, Object.assign(w, o.fields);
962
- }, ye = () => {
963
- L.push(a.config.cancelRoute);
927
+ ee.value = Ie.utf8Name(i);
928
+ }, ue = k(() => Y.value && JSON.stringify(o.fields) !== JSON.stringify(h) || M.value === "url" && !!o.fields.url || M.value === "protocol" && !!o.fields.host), ye = (i) => {
929
+ var d, V, H;
930
+ o.fields.name = (i == null ? void 0 : i.name) || "", o.fields.tags = ((d = i == null ? void 0 : i.tags) == null ? void 0 : d.join(", ")) || "", o.fields.protocol = (i == null ? void 0 : i.protocol) || "http", o.fields.path = (i == null ? void 0 : i.path) || "", o.fields.read_timeout = i != null && i.read_timeout || (i == null ? void 0 : i.read_timeout) === 0 ? i == null ? void 0 : i.read_timeout : 6e4, o.fields.retries = i != null && i.retries || (i == null ? void 0 : i.retries) === 0 ? i == null ? void 0 : i.retries : 5, o.fields.host = (i == null ? void 0 : i.host) || "", o.fields.connect_timeout = i != null && i.connect_timeout || (i == null ? void 0 : i.connect_timeout) === 0 ? i == null ? void 0 : i.connect_timeout : 6e4, o.fields.tls_verify_enabled = (i == null ? void 0 : i.tls_verify) !== "" && (i == null ? void 0 : i.tls_verify) !== null && (i == null ? void 0 : i.tls_verify) !== void 0, o.fields.tls_verify_value = i != null && i.tls_verify ? i == null ? void 0 : i.tls_verify : !1, o.fields.ca_certificates = ((V = i == null ? void 0 : i.ca_certificates) == null ? void 0 : V.join(",")) || "", o.fields.client_certificate = ((H = i == null ? void 0 : i.client_certificate) == null ? void 0 : H.id) || "", o.fields.write_timeout = i != null && i.write_timeout || (i == null ? void 0 : i.write_timeout) === 0 ? i == null ? void 0 : i.write_timeout : 6e4, o.fields.port = i != null && i.port || (i == null ? void 0 : i.port) === 0 ? i == null ? void 0 : i.port : 80, Object.assign(h, o.fields);
931
+ }, _e = () => {
932
+ B.push(a.config.cancelRoute);
964
933
  }, Ee = k(() => {
965
- var u, V;
966
- let i = `${a.config.apiBaseUrl}${pe.form[a.config.app].validate}`;
967
- return a.config.app === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((u = a.config) == null ? void 0 : u.controlPlaneId) || "") : a.config.app === "kongManager" && (i = i.replace(/\/{workspace}/gi, (V = a.config) != null && V.workspace ? `/${a.config.workspace}` : "")), i = i.replace(/{id}/gi, a.gatewayServiceId), i;
968
- }), ee = k(() => {
969
- var u, V;
970
- let i = `${a.config.apiBaseUrl}${pe.form[a.config.app][Y.value]}`;
971
- return a.config.app === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((u = a.config) == null ? void 0 : u.controlPlaneId) || "") : a.config.app === "kongManager" && (i = i.replace(/\/{workspace}/gi, (V = a.config) != null && V.workspace ? `/${a.config.workspace}` : "")), i = i.replace(/{id}/gi, a.gatewayServiceId), i;
972
- }), z = (i) => {
973
- let u = "";
974
- i.url && (u = new URL(i.url).protocol), (["https", "wss", "tls"].includes(i.protocol) || ["https", "wss", "tls"].includes(u)) && (i.tls_verify = i.tls_verify_enabled ? i.tls_verify_value : null), delete i.tls_verify_enabled, delete i.tls_verify_value;
975
- }, H = k(() => {
976
- var u, V, J, B;
934
+ var d, V;
935
+ let i = `${a.config.apiBaseUrl}${fe.form[a.config.app].validate}`;
936
+ return a.config.app === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((d = a.config) == null ? void 0 : d.controlPlaneId) || "") : a.config.app === "kongManager" && (i = i.replace(/\/{workspace}/gi, (V = a.config) != null && V.workspace ? `/${a.config.workspace}` : "")), i = i.replace(/{id}/gi, a.gatewayServiceId), i;
937
+ }), K = k(() => {
938
+ var d, V;
939
+ let i = `${a.config.apiBaseUrl}${fe.form[a.config.app][oe.value]}`;
940
+ return a.config.app === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((d = a.config) == null ? void 0 : d.controlPlaneId) || "") : a.config.app === "kongManager" && (i = i.replace(/\/{workspace}/gi, (V = a.config) != null && V.workspace ? `/${a.config.workspace}` : "")), i = i.replace(/{id}/gi, a.gatewayServiceId), i;
941
+ }), ie = (i) => {
942
+ let d = "";
943
+ i.url && (d = new URL(i.url).protocol), (["https", "wss", "tls"].includes(i.protocol) || ["https", "wss", "tls"].includes(d)) && (i.tls_verify = i.tls_verify_enabled ? i.tls_verify_value : null), delete i.tls_verify_enabled, delete i.tls_verify_value;
944
+ }, N = k(() => {
945
+ var d, V, H, A;
977
946
  const i = {
978
947
  name: o.fields.name || null,
979
- tags: o.fields.tags ? (J = (V = (u = o.fields.tags) == null ? void 0 : u.split(",")) == null ? void 0 : V.map((R) => String(R || "").trim())) == null ? void 0 : J.filter((R) => R !== "") : null,
948
+ tags: o.fields.tags ? (H = (V = (d = o.fields.tags) == null ? void 0 : d.split(",")) == null ? void 0 : V.map((R) => String(R || "").trim())) == null ? void 0 : H.filter((R) => R !== "") : null,
980
949
  protocol: o.fields.protocol,
981
950
  path: o.fields.path || null,
982
951
  read_timeout: o.fields.read_timeout,
@@ -985,83 +954,83 @@ const se = {
985
954
  connect_timeout: o.fields.connect_timeout,
986
955
  tls_verify_value: o.fields.tls_verify_value,
987
956
  tls_verify_enabled: o.fields.tls_verify_enabled,
988
- ca_certificates: o.fields.ca_certificates ? (B = o.fields.ca_certificates) == null ? void 0 : B.split(",").filter((R) => R !== "") : null,
957
+ ca_certificates: o.fields.ca_certificates ? (A = o.fields.ca_certificates) == null ? void 0 : A.split(",").filter((R) => R !== "") : null,
989
958
  client_certificate: o.fields.client_certificate ? { id: o.fields.client_certificate } : null,
990
959
  write_timeout: o.fields.write_timeout,
991
960
  port: o.fields.port,
992
961
  url: o.fields.url
993
962
  };
994
- return o.fields.client_certificate && ["https", "wss", "tls"].includes(o.fields.protocol) && (i.client_certificate = { id: o.fields.client_certificate }), o.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(o.fields.protocol) && (i.tls_verify = o.fields.tls_verify_value), re.value || (i.path = null), Y.value === "create" ? x.value === "url" ? (delete i.protocol, delete i.host, delete i.path, a.config.app === "konnect" && delete i.port) : delete i.url : Y.value === "edit" && delete i.url, i;
963
+ return o.fields.client_certificate && ["https", "wss", "tls"].includes(o.fields.protocol) && (i.client_certificate = { id: o.fields.client_certificate }), o.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(o.fields.protocol) && (i.tls_verify = o.fields.tls_verify_value), ge.value || (i.path = null), oe.value === "create" ? M.value === "url" ? (delete i.protocol, delete i.host, delete i.path, a.config.app === "konnect" && delete i.port) : delete i.url : oe.value === "edit" && delete i.url, i;
995
964
  }), te = async () => {
996
- var i, u, V, J;
965
+ var i, d, V, H;
997
966
  try {
998
- o.isReadonly = !0, q();
999
- const B = H.value;
1000
- z(B);
967
+ o.isReadonly = !0, ne();
968
+ const A = N.value;
969
+ ie(A);
1001
970
  let R;
1002
- if (await A.post(Ee.value, B), Y.value === "create" ? R = await A.post(ee.value, B) : Y.value === "edit" && (R = ((i = a.config) == null ? void 0 : i.app) === "konnect" ? await A.put(ee.value, B) : await A.patch(ee.value, B)), R) {
1003
- const { data: c } = R;
1004
- o.fields.name = (c == null ? void 0 : c.name) || "", o.fields.port = c.port || me.getPortFromProtocol(c.protocol), o.fields.protocol = (c == null ? void 0 : c.protocol) || "http", o.fields.host = (c == null ? void 0 : c.host) || "", o.fields.path = (c == null ? void 0 : c.path) || "", o.fields.url = (c == null ? void 0 : c.url) || "", o.fields.retries = c != null && c.retries || (c == null ? void 0 : c.retries) === 0 ? c == null ? void 0 : c.retries : 5, o.fields.connect_timeout = c != null && c.connect_timeout || (c == null ? void 0 : c.connect_timeout) === 0 ? c == null ? void 0 : c.connect_timeout : 6e4, o.fields.write_timeout = c != null && c.write_timeout || (c == null ? void 0 : c.write_timeout) === 0 ? c == null ? void 0 : c.write_timeout : 6e4, o.fields.read_timeout = c != null && c.read_timeout || (c == null ? void 0 : c.read_timeout) === 0 ? c == null ? void 0 : c.read_timeout : 6e4, o.fields.client_certificate = ((u = c == null ? void 0 : c.client_certificate) == null ? void 0 : u.id) || "", o.fields.ca_certificates = (V = c == null ? void 0 : c.ca_certificates) != null && V.length ? c == null ? void 0 : c.ca_certificates.join(",") : "", o.fields.tls_verify_enabled = (c == null ? void 0 : c.tls_verify) !== "" && (c == null ? void 0 : c.tls_verify) !== null && (c == null ? void 0 : c.tls_verify) !== void 0, o.fields.tls_verify_value = o.fields.tls_verify_enabled && (c == null ? void 0 : c.tls_verify), o.fields.tags = (J = c == null ? void 0 : c.tags) != null && J.length ? c.tags.join(", ") : "", Object.assign(w, o.fields), v("update", R == null ? void 0 : R.data);
971
+ if (await $.post(Ee.value, A), oe.value === "create" ? R = await $.post(K.value, A) : oe.value === "edit" && (R = ((i = a.config) == null ? void 0 : i.app) === "konnect" ? await $.put(K.value, A) : await $.patch(K.value, A)), R) {
972
+ const { data: s } = R;
973
+ o.fields.name = (s == null ? void 0 : s.name) || "", o.fields.port = s.port || X.getPortFromProtocol(s.protocol), o.fields.protocol = (s == null ? void 0 : s.protocol) || "http", o.fields.host = (s == null ? void 0 : s.host) || "", o.fields.path = (s == null ? void 0 : s.path) || "", o.fields.url = (s == null ? void 0 : s.url) || "", o.fields.retries = s != null && s.retries || (s == null ? void 0 : s.retries) === 0 ? s == null ? void 0 : s.retries : 5, o.fields.connect_timeout = s != null && s.connect_timeout || (s == null ? void 0 : s.connect_timeout) === 0 ? s == null ? void 0 : s.connect_timeout : 6e4, o.fields.write_timeout = s != null && s.write_timeout || (s == null ? void 0 : s.write_timeout) === 0 ? s == null ? void 0 : s.write_timeout : 6e4, o.fields.read_timeout = s != null && s.read_timeout || (s == null ? void 0 : s.read_timeout) === 0 ? s == null ? void 0 : s.read_timeout : 6e4, o.fields.client_certificate = ((d = s == null ? void 0 : s.client_certificate) == null ? void 0 : d.id) || "", o.fields.ca_certificates = (V = s == null ? void 0 : s.ca_certificates) != null && V.length ? s == null ? void 0 : s.ca_certificates.join(",") : "", o.fields.tls_verify_enabled = (s == null ? void 0 : s.tls_verify) !== "" && (s == null ? void 0 : s.tls_verify) !== null && (s == null ? void 0 : s.tls_verify) !== void 0, o.fields.tls_verify_value = o.fields.tls_verify_enabled && (s == null ? void 0 : s.tls_verify), o.fields.tags = (H = s == null ? void 0 : s.tags) != null && H.length ? s.tags.join(", ") : "", Object.assign(h, o.fields), v("update", R == null ? void 0 : R.data);
1005
974
  }
1006
975
  return R;
1007
- } catch (B) {
1008
- o.errorMessage = j(B), v("error", B);
976
+ } catch (A) {
977
+ o.errorMessage = O(A), v("error", A);
1009
978
  } finally {
1010
979
  o.isReadonly = !1;
1011
980
  }
1012
981
  };
1013
982
  return Fe(() => a.gatewayServiceId, () => {
1014
- Object.assign(o.fields, w);
983
+ Object.assign(o.fields, h);
1015
984
  }), Fe(o.fields, (i) => {
1016
- o.fields.port = me.getPortFromProtocol(i.protocol, String(i.port)), v("model-updated", H.value);
1017
- }), He(() => {
1018
- v("model-updated", H.value);
1019
- }), X({
1020
- validateUrl: q,
1021
- getPayload: H,
985
+ o.fields.port = X.getPortFromProtocol(i.protocol, String(i.port)), v("model-updated", N.value);
986
+ }), je(() => {
987
+ v("model-updated", N.value);
988
+ }), Q({
989
+ validateUrl: ne,
990
+ getPayload: N,
1022
991
  saveFormData: te,
1023
- canSubmit: ce,
1024
- initForm: ge
1025
- }), (i, u) => {
1026
- const V = W("KInput"), J = W("KLabel"), B = W("KRadio"), R = W("KSelect"), c = W("KCheckbox"), g = W("KCollapse");
1027
- return S(), $("div", Kt, [
1028
- d(l(Ye), {
1029
- "can-submit": ce.value,
1030
- config: n.config,
1031
- "edit-id": n.gatewayServiceId,
992
+ canSubmit: ue,
993
+ initForm: ye
994
+ }), (i, d) => {
995
+ const V = D("KInput"), H = D("KLabel"), A = D("KRadio"), R = D("KSelect"), s = D("KCheckbox"), w = D("KCollapse");
996
+ return C(), F("div", Kt, [
997
+ f(l(Qe), {
998
+ "can-submit": ue.value,
999
+ config: c.config,
1000
+ "edit-id": c.gatewayServiceId,
1032
1001
  "entity-type": l(Oe).GatewayService,
1033
1002
  "error-message": o.errorMessage,
1034
- "fetch-url": be.value,
1035
- "form-fields": H.value,
1003
+ "fetch-url": pe.value,
1004
+ "form-fields": N.value,
1036
1005
  "is-readonly": o.isReadonly,
1037
- onCancel: ye,
1038
- "onFetch:error": u[25] || (u[25] = (p) => i.$emit("error", p)),
1039
- "onFetch:success": ge,
1040
- onLoading: u[26] || (u[26] = (p) => i.$emit("loading", p)),
1006
+ onCancel: _e,
1007
+ "onFetch:error": d[25] || (d[25] = (p) => i.$emit("error", p)),
1008
+ "onFetch:success": ye,
1009
+ onLoading: d[26] || (d[26] = (p) => i.$emit("loading", p)),
1041
1010
  onSubmit: te
1042
1011
  }, {
1043
1012
  "form-actions": m(() => [
1044
- Ze(i.$slots, "form-actions", {
1045
- canSubmit: ce.value,
1046
- cancel: ye,
1013
+ ze(i.$slots, "form-actions", {
1014
+ canSubmit: ue.value,
1015
+ cancel: _e,
1047
1016
  submit: te
1048
1017
  }, void 0, !0)
1049
1018
  ]),
1050
1019
  default: m(() => [
1051
- d(l(Ke), {
1020
+ f(l(Ke), {
1052
1021
  description: l(r)("gateway_services.form.sections.general.description"),
1053
- "hide-info-header": n.hideSectionsInfo,
1022
+ "hide-info-header": c.hideSectionsInfo,
1054
1023
  title: l(r)("gateway_services.form.sections.general.title")
1055
1024
  }, {
1056
1025
  default: m(() => [
1057
- d(V, {
1026
+ f(V, {
1058
1027
  modelValue: o.fields.name,
1059
- "onUpdate:modelValue": u[0] || (u[0] = (p) => o.fields.name = p),
1028
+ "onUpdate:modelValue": d[0] || (d[0] = (p) => o.fields.name = p),
1060
1029
  modelModifiers: { trim: !0 },
1061
1030
  autocomplete: "off",
1062
1031
  "data-testid": "gateway-service-name-input",
1063
- error: Ie.value,
1064
- "error-message": N.value,
1032
+ error: Pe.value,
1033
+ "error-message": ee.value,
1065
1034
  label: l(r)("gateway_services.form.fields.name.label"),
1066
1035
  "label-attributes": {
1067
1036
  info: l(r)("gateway_services.form.fields.name.tooltip"),
@@ -1073,9 +1042,9 @@ const se = {
1073
1042
  type: "text",
1074
1043
  onInput: Ve
1075
1044
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
1076
- d(V, {
1045
+ f(V, {
1077
1046
  modelValue: o.fields.tags,
1078
- "onUpdate:modelValue": u[1] || (u[1] = (p) => o.fields.tags = p),
1047
+ "onUpdate:modelValue": d[1] || (d[1] = (p) => o.fields.tags = p),
1079
1048
  modelModifiers: { trim: !0 },
1080
1049
  autocomplete: "off",
1081
1050
  "data-testid": "gateway-service-tags-input",
@@ -1093,70 +1062,70 @@ const se = {
1093
1062
  ]),
1094
1063
  _: 1
1095
1064
  }, 8, ["description", "hide-info-header", "title"]),
1096
- d(l(Ke), {
1065
+ f(l(Ke), {
1097
1066
  description: l(r)("gateway_services.form.sections.keys.description"),
1098
- "hide-info-header": n.hideSectionsInfo,
1067
+ "hide-info-header": c.hideSectionsInfo,
1099
1068
  title: l(r)("gateway_services.form.sections.keys.title")
1100
1069
  }, {
1101
1070
  default: m(() => [
1102
- ae.value ? M("", !0) : (S(), $("div", Lt, [
1103
- I("div", Dt, [
1104
- d(J, { required: "" }, {
1071
+ Y.value ? T("", !0) : (C(), F("div", Lt, [
1072
+ S("div", Dt, [
1073
+ f(H, { required: "" }, {
1105
1074
  default: m(() => [
1106
- Z(P(l(r)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
1075
+ z(I(l(r)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
1107
1076
  ]),
1108
1077
  _: 1
1109
1078
  })
1110
1079
  ]),
1111
- I("div", Wt, [
1112
- d(B, {
1113
- modelValue: x.value,
1114
- "onUpdate:modelValue": u[2] || (u[2] = (p) => x.value = p),
1080
+ S("div", Wt, [
1081
+ f(A, {
1082
+ modelValue: M.value,
1083
+ "onUpdate:modelValue": d[2] || (d[2] = (p) => M.value = p),
1115
1084
  "data-testid": "gateway-service-url-radio",
1116
- "selected-value": we.url,
1117
- onChange: ne
1085
+ "selected-value": ae.url,
1086
+ onChange: G
1118
1087
  }, {
1119
1088
  default: m(() => [
1120
- Z(P(l(r)("gateway_services.form.sections.keys.urlLabel")), 1)
1089
+ z(I(l(r)("gateway_services.form.sections.keys.urlLabel")), 1)
1121
1090
  ]),
1122
1091
  _: 1
1123
1092
  }, 8, ["modelValue", "selected-value"])
1124
1093
  ]),
1125
- x.value === "url" ? (S(), $("div", qt, [
1126
- d(V, {
1094
+ M.value === "url" ? (C(), F("div", qt, [
1095
+ f(V, {
1127
1096
  modelValue: o.fields.url,
1128
- "onUpdate:modelValue": u[3] || (u[3] = (p) => o.fields.url = p),
1097
+ "onUpdate:modelValue": d[3] || (d[3] = (p) => o.fields.url = p),
1129
1098
  modelModifiers: { trim: !0 },
1130
1099
  class: "gateway-service-url-input gateway-service-form-margin-bottom",
1131
1100
  "data-testid": "gateway-service-url-input",
1132
1101
  label: l(r)("gateway_services.form.fields.upstream_url.label"),
1133
1102
  "label-attributes": {
1134
- info: n.config.app === "konnect" ? l(r)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : l(r)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
1103
+ info: c.config.app === "konnect" ? l(r)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : l(r)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
1135
1104
  tooltipAttributes: { maxWidth: "400" }
1136
1105
  },
1137
1106
  name: "url",
1138
1107
  placeholder: l(r)("gateway_services.form.fields.upstream_url.placeholder"),
1139
1108
  required: ""
1140
1109
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
1141
- ])) : M("", !0),
1142
- d(B, {
1143
- modelValue: x.value,
1144
- "onUpdate:modelValue": u[4] || (u[4] = (p) => x.value = p),
1110
+ ])) : T("", !0),
1111
+ f(A, {
1112
+ modelValue: M.value,
1113
+ "onUpdate:modelValue": d[4] || (d[4] = (p) => M.value = p),
1145
1114
  "checked-group": "protocol",
1146
1115
  "data-testid": "gateway-service-protocol-radio",
1147
- "selected-value": we.protocol,
1148
- onChange: ne
1116
+ "selected-value": ae.protocol,
1117
+ onChange: G
1149
1118
  }, {
1150
1119
  default: m(() => [
1151
- Z(P(l(r)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
1120
+ z(I(l(r)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
1152
1121
  ]),
1153
1122
  _: 1
1154
1123
  }, 8, ["modelValue", "selected-value"])
1155
1124
  ])),
1156
- x.value === "protocol" || ae.value ? (S(), $("div", Gt, [
1157
- d(R, {
1125
+ M.value === "protocol" || Y.value ? (C(), F("div", Gt, [
1126
+ f(R, {
1158
1127
  modelValue: o.fields.protocol,
1159
- "onUpdate:modelValue": u[5] || (u[5] = (p) => o.fields.protocol = p),
1128
+ "onUpdate:modelValue": d[5] || (d[5] = (p) => o.fields.protocol = p),
1160
1129
  "data-testid": "gateway-service-protocol-select",
1161
1130
  items: ve,
1162
1131
  label: l(r)("gateway_services.form.fields.protocol.label"),
@@ -1167,11 +1136,11 @@ const se = {
1167
1136
  readonly: o.isReadonly,
1168
1137
  required: "",
1169
1138
  width: "100%",
1170
- onSelected: u[6] || (u[6] = (p) => e(o.fields.protocol, p))
1139
+ onSelected: d[6] || (d[6] = (p) => e(o.fields.protocol, p))
1171
1140
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1172
- d(V, {
1141
+ f(V, {
1173
1142
  modelValue: o.fields.host,
1174
- "onUpdate:modelValue": u[7] || (u[7] = (p) => o.fields.host = p),
1143
+ "onUpdate:modelValue": d[7] || (d[7] = (p) => o.fields.host = p),
1175
1144
  modelModifiers: { trim: !0 },
1176
1145
  class: "gateway-service-form-margin-top",
1177
1146
  "data-testid": "gateway-service-host-input",
@@ -1184,10 +1153,10 @@ const se = {
1184
1153
  placeholder: l(r)("gateway_services.form.fields.host.placeholder"),
1185
1154
  required: ""
1186
1155
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
1187
- re.value ? (S(), $("div", Ot, [
1188
- d(V, {
1156
+ ge.value ? (C(), F("div", Ot, [
1157
+ f(V, {
1189
1158
  modelValue: o.fields.path,
1190
- "onUpdate:modelValue": u[8] || (u[8] = (p) => o.fields.path = p),
1159
+ "onUpdate:modelValue": d[8] || (d[8] = (p) => o.fields.path = p),
1191
1160
  modelModifiers: { trim: !0 },
1192
1161
  class: "gateway-service-form-margin-top",
1193
1162
  "data-testid": "gateway-service-path-input",
@@ -1199,13 +1168,13 @@ const se = {
1199
1168
  name: "path",
1200
1169
  placeholder: l(r)("gateway_services.form.fields.path.placeholder")
1201
1170
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
1202
- ])) : M("", !0),
1203
- d(V, {
1171
+ ])) : T("", !0),
1172
+ f(V, {
1204
1173
  modelValue: o.fields.port,
1205
1174
  "onUpdate:modelValue": [
1206
- u[9] || (u[9] = (p) => o.fields.port = p),
1207
- u[10] || (u[10] = () => {
1208
- o.fields.port = F(o.fields.port + "");
1175
+ d[9] || (d[9] = (p) => o.fields.port = p),
1176
+ d[10] || (d[10] = () => {
1177
+ o.fields.port = P(o.fields.port + "");
1209
1178
  })
1210
1179
  ],
1211
1180
  class: "gateway-service-form-margin-top",
@@ -1218,23 +1187,23 @@ const se = {
1218
1187
  name: "port",
1219
1188
  type: "number"
1220
1189
  }, null, 8, ["modelValue", "label", "label-attributes"])
1221
- ])) : M("", !0),
1222
- d(g, {
1223
- modelValue: h.value,
1224
- "onUpdate:modelValue": u[24] || (u[24] = (p) => h.value = p),
1190
+ ])) : T("", !0),
1191
+ f(w, {
1192
+ modelValue: b.value,
1193
+ "onUpdate:modelValue": d[24] || (d[24] = (p) => b.value = p),
1225
1194
  "data-testid": "advanced-fields-collapse",
1226
1195
  "trigger-alignment": "leading",
1227
1196
  "trigger-label": l(r)("gateway_services.form.sections.keys.viewAdvancedFields")
1228
1197
  }, {
1229
1198
  default: m(() => [
1230
- I("div", Nt, [
1231
- I("div", jt, [
1232
- d(V, {
1199
+ S("div", Nt, [
1200
+ S("div", jt, [
1201
+ f(V, {
1233
1202
  modelValue: o.fields.retries,
1234
1203
  "onUpdate:modelValue": [
1235
- u[11] || (u[11] = (p) => o.fields.retries = p),
1236
- u[12] || (u[12] = () => {
1237
- o.fields.retries = F(o.fields.retries + "");
1204
+ d[11] || (d[11] = (p) => o.fields.retries = p),
1205
+ d[12] || (d[12] = () => {
1206
+ o.fields.retries = P(o.fields.retries + "");
1238
1207
  })
1239
1208
  ],
1240
1209
  autocomplete: "off",
@@ -1249,13 +1218,13 @@ const se = {
1249
1218
  type: "number"
1250
1219
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1251
1220
  ]),
1252
- I("div", zt, [
1253
- d(V, {
1221
+ S("div", zt, [
1222
+ f(V, {
1254
1223
  modelValue: o.fields.connect_timeout,
1255
1224
  "onUpdate:modelValue": [
1256
- u[13] || (u[13] = (p) => o.fields.connect_timeout = p),
1257
- u[14] || (u[14] = () => {
1258
- o.fields.connect_timeout = F(o.fields.connect_timeout + "");
1225
+ d[13] || (d[13] = (p) => o.fields.connect_timeout = p),
1226
+ d[14] || (d[14] = () => {
1227
+ o.fields.connect_timeout = P(o.fields.connect_timeout + "");
1259
1228
  })
1260
1229
  ],
1261
1230
  autocomplete: "off",
@@ -1270,13 +1239,13 @@ const se = {
1270
1239
  type: "number"
1271
1240
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1272
1241
  ]),
1273
- I("div", Ht, [
1274
- d(V, {
1242
+ S("div", Ht, [
1243
+ f(V, {
1275
1244
  modelValue: o.fields.write_timeout,
1276
1245
  "onUpdate:modelValue": [
1277
- u[15] || (u[15] = (p) => o.fields.write_timeout = p),
1278
- u[16] || (u[16] = () => {
1279
- o.fields.write_timeout = F(o.fields.write_timeout + "");
1246
+ d[15] || (d[15] = (p) => o.fields.write_timeout = p),
1247
+ d[16] || (d[16] = () => {
1248
+ o.fields.write_timeout = P(o.fields.write_timeout + "");
1280
1249
  })
1281
1250
  ],
1282
1251
  autocomplete: "off",
@@ -1291,13 +1260,13 @@ const se = {
1291
1260
  type: "number"
1292
1261
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1293
1262
  ]),
1294
- I("div", Zt, [
1295
- d(V, {
1263
+ S("div", Zt, [
1264
+ f(V, {
1296
1265
  modelValue: o.fields.read_timeout,
1297
1266
  "onUpdate:modelValue": [
1298
- u[17] || (u[17] = (p) => o.fields.read_timeout = p),
1299
- u[18] || (u[18] = () => {
1300
- o.fields.read_timeout = F(o.fields.read_timeout + "");
1267
+ d[17] || (d[17] = (p) => o.fields.read_timeout = p),
1268
+ d[18] || (d[18] = () => {
1269
+ o.fields.read_timeout = P(o.fields.read_timeout + "");
1301
1270
  })
1302
1271
  ],
1303
1272
  autocomplete: "off",
@@ -1312,10 +1281,10 @@ const se = {
1312
1281
  type: "number"
1313
1282
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1314
1283
  ]),
1315
- Pe.value ? (S(), $("div", Jt, [
1316
- d(V, {
1284
+ we.value ? (C(), F("div", Jt, [
1285
+ f(V, {
1317
1286
  modelValue: o.fields.client_certificate,
1318
- "onUpdate:modelValue": u[19] || (u[19] = (p) => o.fields.client_certificate = p),
1287
+ "onUpdate:modelValue": d[19] || (d[19] = (p) => o.fields.client_certificate = p),
1319
1288
  modelModifiers: { trim: !0 },
1320
1289
  autocomplete: "off",
1321
1290
  "data-testid": "gateway-service-clientCert-input",
@@ -1329,11 +1298,11 @@ const se = {
1329
1298
  readonly: o.isReadonly,
1330
1299
  type: "text"
1331
1300
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
1332
- ])) : M("", !0),
1333
- oe.value ? (S(), $("div", Qt, [
1334
- d(V, {
1301
+ ])) : T("", !0),
1302
+ ce.value ? (C(), F("div", Qt, [
1303
+ f(V, {
1335
1304
  modelValue: o.fields.ca_certificates,
1336
- "onUpdate:modelValue": u[20] || (u[20] = (p) => o.fields.ca_certificates = p),
1305
+ "onUpdate:modelValue": d[20] || (d[20] = (p) => o.fields.ca_certificates = p),
1337
1306
  modelModifiers: { trim: !0 },
1338
1307
  autocomplete: "off",
1339
1308
  "data-testid": "gateway-service-ca-certs-input",
@@ -1344,63 +1313,63 @@ const se = {
1344
1313
  type: "text"
1345
1314
  }, {
1346
1315
  "label-tooltip": m(() => [
1347
- d(l(Q), {
1316
+ f(l(Z), {
1348
1317
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
1349
1318
  scope: "global"
1350
1319
  }, {
1351
1320
  code1: m(() => [
1352
- I("code", null, P(l(r)("gateway_services.form.fields.ca_certificates.code1")), 1)
1321
+ S("code", null, I(l(r)("gateway_services.form.fields.ca_certificates.code1")), 1)
1353
1322
  ]),
1354
1323
  code2: m(() => [
1355
- I("code", null, P(l(r)("gateway_services.form.fields.ca_certificates.code2")), 1)
1324
+ S("code", null, I(l(r)("gateway_services.form.fields.ca_certificates.code2")), 1)
1356
1325
  ]),
1357
1326
  _: 1
1358
1327
  })
1359
1328
  ]),
1360
1329
  _: 1
1361
1330
  }, 8, ["modelValue", "label", "placeholder", "readonly"])
1362
- ])) : M("", !0),
1363
- ke.value ? (S(), $("div", Xt, [
1364
- d(c, {
1331
+ ])) : T("", !0),
1332
+ ke.value ? (C(), F("div", Xt, [
1333
+ f(s, {
1365
1334
  modelValue: o.fields.tls_verify_enabled,
1366
- "onUpdate:modelValue": u[21] || (u[21] = (p) => o.fields.tls_verify_enabled = p),
1335
+ "onUpdate:modelValue": d[21] || (d[21] = (p) => o.fields.tls_verify_enabled = p),
1367
1336
  "data-testid": "gateway-service-tls-verify-checkbox",
1368
1337
  description: l(r)("gateway_services.form.fields.tls_verify_enabled.help"),
1369
1338
  label: l(r)("gateway_services.form.fields.tls_verify_enabled.label"),
1370
1339
  "label-attributes": { tooltipAttributes: { maxWidth: "400" } }
1371
1340
  }, {
1372
1341
  tooltip: m(() => [
1373
- d(l(Q), {
1342
+ f(l(Z), {
1374
1343
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
1375
1344
  scope: "global"
1376
1345
  }, {
1377
1346
  code1: m(() => [
1378
- I("code", null, P(l(r)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1347
+ S("code", null, I(l(r)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1379
1348
  ]),
1380
1349
  _: 1
1381
1350
  })
1382
1351
  ]),
1383
1352
  _: 1
1384
1353
  }, 8, ["modelValue", "description", "label"]),
1385
- o.fields.tls_verify_enabled ? (S(), $("div", Yt, [
1386
- d(B, {
1354
+ o.fields.tls_verify_enabled ? (C(), F("div", Yt, [
1355
+ f(A, {
1387
1356
  modelValue: o.fields.tls_verify_value,
1388
- "onUpdate:modelValue": u[22] || (u[22] = (p) => o.fields.tls_verify_value = p),
1357
+ "onUpdate:modelValue": d[22] || (d[22] = (p) => o.fields.tls_verify_value = p),
1389
1358
  "data-testid": "gateway-service-tls-verify-true-option",
1390
1359
  label: l(r)("gateway_services.form.fields.tls_verify_option.true.label"),
1391
1360
  "selected-value": !0
1392
1361
  }, null, 8, ["modelValue", "label"])
1393
- ])) : M("", !0),
1394
- o.fields.tls_verify_enabled ? (S(), $("div", el, [
1395
- d(B, {
1362
+ ])) : T("", !0),
1363
+ o.fields.tls_verify_enabled ? (C(), F("div", el, [
1364
+ f(A, {
1396
1365
  modelValue: o.fields.tls_verify_value,
1397
- "onUpdate:modelValue": u[23] || (u[23] = (p) => o.fields.tls_verify_value = p),
1366
+ "onUpdate:modelValue": d[23] || (d[23] = (p) => o.fields.tls_verify_value = p),
1398
1367
  "data-testid": "gateway-service-tls-verify-false-option",
1399
1368
  label: l(r)("gateway_services.form.fields.tls_verify_option.false.label"),
1400
1369
  "selected-value": !1
1401
1370
  }, null, 8, ["modelValue", "label"])
1402
- ])) : M("", !0)
1403
- ])) : M("", !0)
1371
+ ])) : T("", !0)
1372
+ ])) : T("", !0)
1404
1373
  ])
1405
1374
  ]),
1406
1375
  _: 1
@@ -1421,7 +1390,7 @@ const se = {
1421
1390
  config: {
1422
1391
  type: Object,
1423
1392
  required: !0,
1424
- validator: (n) => !(!n || !["konnect", "kongManager"].includes(n == null ? void 0 : n.app) || n.app === "konnect" && !n.controlPlaneId || n.app === "kongManager" && typeof n.workspace != "string" || !n.entityId)
1393
+ validator: (c) => !(!c || !["konnect", "kongManager"].includes(c == null ? void 0 : c.app) || c.app === "konnect" && !c.controlPlaneId || c.app === "kongManager" && typeof c.workspace != "string" || !c.entityId)
1425
1394
  },
1426
1395
  /**
1427
1396
  * External link for documentation that determines visibility of Documentation button
@@ -1440,123 +1409,123 @@ const se = {
1440
1409
  }
1441
1410
  },
1442
1411
  emits: ["loading", "fetch:error", "fetch:success"],
1443
- setup(n) {
1444
- const X = n, { i18n: { t: _ }, i18nT: v } = se.useI18n(), a = k(() => pe.form[X.config.app].edit), { getPropValue: h } = et(), L = (r, j) => h(r, j) === !0 ? _("gateway_services.form.fields.tls_verify_option.true.display") : _("gateway_services.form.fields.tls_verify_option.false.display"), Q = D({
1412
+ setup(c) {
1413
+ const Q = c, { i18n: { t: y }, i18nT: v } = de.useI18n(), a = k(() => fe.form[Q.config.app].edit), { getPropValue: b } = Xe(), B = (r, O) => b(r, O) === !0 ? y("gateway_services.form.fields.tls_verify_option.true.display") : y("gateway_services.form.fields.tls_verify_option.false.display"), Z = L({
1445
1414
  id: {},
1446
1415
  name: {
1447
- tooltip: _("gateway_services.form.fields.name.tooltip")
1416
+ tooltip: y("gateway_services.form.fields.name.tooltip")
1448
1417
  },
1449
1418
  enabled: {},
1450
1419
  updated_at: {},
1451
1420
  created_at: {},
1452
1421
  protocol: {
1453
- section: Ae.Basic,
1454
- tooltip: _("gateway_services.form.fields.protocol.tooltip")
1422
+ section: $e.Basic,
1423
+ tooltip: y("gateway_services.form.fields.protocol.tooltip")
1455
1424
  },
1456
1425
  host: {
1457
- section: Ae.Basic,
1458
- tooltip: _("gateway_services.form.fields.host.tooltip")
1426
+ section: $e.Basic,
1427
+ tooltip: y("gateway_services.form.fields.host.tooltip")
1459
1428
  },
1460
1429
  path: {
1461
- section: Ae.Basic,
1462
- tooltip: _("gateway_services.form.fields.path.tooltip")
1430
+ section: $e.Basic,
1431
+ tooltip: y("gateway_services.form.fields.path.tooltip")
1463
1432
  },
1464
1433
  port: {
1465
- section: Ae.Basic,
1466
- tooltip: _("gateway_services.form.fields.port.tooltip")
1434
+ section: $e.Basic,
1435
+ tooltip: y("gateway_services.form.fields.port.tooltip")
1467
1436
  },
1468
1437
  tags: {
1469
- tooltip: _("gateway_services.form.fields.tags.tooltip")
1438
+ tooltip: y("gateway_services.form.fields.tags.tooltip")
1470
1439
  },
1471
1440
  // advanced fields
1472
1441
  retries: {
1473
1442
  order: 1,
1474
- tooltip: _("gateway_services.form.fields.retries.tooltip")
1443
+ tooltip: y("gateway_services.form.fields.retries.tooltip")
1475
1444
  },
1476
1445
  connect_timeout: {
1477
1446
  order: 2,
1478
- tooltip: _("gateway_services.form.fields.connect_timeout.tooltip")
1447
+ tooltip: y("gateway_services.form.fields.connect_timeout.tooltip")
1479
1448
  },
1480
1449
  write_timeout: {
1481
1450
  order: 3,
1482
- tooltip: _("gateway_services.form.fields.write_timeout.tooltip")
1451
+ tooltip: y("gateway_services.form.fields.write_timeout.tooltip")
1483
1452
  },
1484
1453
  read_timeout: {
1485
1454
  order: 4,
1486
- tooltip: _("gateway_services.form.fields.read_timeout.tooltip")
1455
+ tooltip: y("gateway_services.form.fields.read_timeout.tooltip")
1487
1456
  },
1488
1457
  client_certificate: {
1489
1458
  order: 5,
1490
- tooltip: _("gateway_services.form.fields.client_certificate.tooltip")
1459
+ tooltip: y("gateway_services.form.fields.client_certificate.tooltip")
1491
1460
  },
1492
1461
  ca_certificates: {
1493
1462
  type: bt.BadgeTag,
1494
- label: _("gateway_services.form.fields.ca_certificates.label"),
1463
+ label: y("gateway_services.form.fields.ca_certificates.label"),
1495
1464
  order: 6
1496
1465
  },
1497
1466
  tls_verify: {
1498
- label: _("gateway_services.form.fields.tls_verify_enabled.label")
1467
+ label: y("gateway_services.form.fields.tls_verify_enabled.label")
1499
1468
  },
1500
1469
  tls_verify_depth: {
1501
1470
  hidden: !0
1502
1471
  }
1503
1472
  });
1504
- return (r, j) => (S(), $("div", ll, [
1505
- d(l(ht), {
1506
- config: n.config,
1507
- "config-card-doc": n.configCardDoc,
1508
- "config-schema": Q.value,
1473
+ return (r, O) => (C(), F("div", ll, [
1474
+ f(l(ht), {
1475
+ config: c.config,
1476
+ "config-card-doc": c.configCardDoc,
1477
+ "config-schema": Z.value,
1509
1478
  "entity-type": l(Oe).GatewayService,
1510
1479
  "fetch-url": a.value,
1511
- "hide-title": n.hideTitle,
1512
- "onFetch:error": j[0] || (j[0] = (A) => r.$emit("fetch:error", A)),
1513
- "onFetch:success": j[1] || (j[1] = (A) => r.$emit("fetch:success", A)),
1514
- onLoading: j[2] || (j[2] = (A) => r.$emit("loading", A))
1480
+ "hide-title": c.hideTitle,
1481
+ "onFetch:error": O[0] || (O[0] = ($) => r.$emit("fetch:error", $)),
1482
+ "onFetch:success": O[1] || (O[1] = ($) => r.$emit("fetch:success", $)),
1483
+ onLoading: O[2] || (O[2] = ($) => r.$emit("loading", $))
1515
1484
  }, {
1516
1485
  "enabled-label-tooltip": m(() => [
1517
- d(l(v), {
1486
+ f(l(v), {
1518
1487
  keypath: "gateway_services.form.fields.enabled.tooltip",
1519
1488
  scope: "global"
1520
1489
  }, {
1521
1490
  false: m(() => [
1522
- I("code", null, P(l(_)("gateway_services.form.fields.enabled.false")), 1)
1491
+ S("code", null, I(l(y)("gateway_services.form.fields.enabled.false")), 1)
1523
1492
  ]),
1524
1493
  true: m(() => [
1525
- I("code", null, P(l(_)("gateway_services.form.fields.enabled.true")), 1)
1494
+ S("code", null, I(l(y)("gateway_services.form.fields.enabled.true")), 1)
1526
1495
  ]),
1527
1496
  _: 1
1528
1497
  })
1529
1498
  ]),
1530
1499
  "ca_certificates-label-tooltip": m(() => [
1531
- d(l(v), {
1500
+ f(l(v), {
1532
1501
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
1533
1502
  scope: "global"
1534
1503
  }, {
1535
1504
  code1: m(() => [
1536
- I("code", null, P(l(_)("gateway_services.form.fields.ca_certificates.code1")), 1)
1505
+ S("code", null, I(l(y)("gateway_services.form.fields.ca_certificates.code1")), 1)
1537
1506
  ]),
1538
1507
  code2: m(() => [
1539
- I("code", null, P(l(_)("gateway_services.form.fields.ca_certificates.code2")), 1)
1508
+ S("code", null, I(l(y)("gateway_services.form.fields.ca_certificates.code2")), 1)
1540
1509
  ]),
1541
1510
  _: 1
1542
1511
  })
1543
1512
  ]),
1544
1513
  "tls_verify-label-tooltip": m(() => [
1545
- d(l(v), {
1514
+ f(l(v), {
1546
1515
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
1547
1516
  scope: "global"
1548
1517
  }, {
1549
1518
  code1: m(() => [
1550
- I("code", null, P(l(_)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1519
+ S("code", null, I(l(y)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1551
1520
  ]),
1552
1521
  _: 1
1553
1522
  })
1554
1523
  ]),
1555
- tls_verify: m((A) => [
1556
- Z(P(typeof l(h)("rowValue", A) == "boolean" ? L("rowValue", A) : l(_)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
1524
+ tls_verify: m(($) => [
1525
+ z(I(typeof l(b)("rowValue", $) == "boolean" ? B("rowValue", $) : l(y)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
1557
1526
  ]),
1558
- client_certificate: m((A) => [
1559
- Z(P(l(h)("rowValue", A) ? l(h)("rowValue", A).id : "–"), 1)
1527
+ client_certificate: m(($) => [
1528
+ z(I(l(b)("rowValue", $) ? l(b)("rowValue", $).id : "–"), 1)
1560
1529
  ]),
1561
1530
  _: 1
1562
1531
  }, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
@@ -1609,7 +1578,7 @@ const se = {
1609
1578
  config: {
1610
1579
  type: Object,
1611
1580
  required: !0,
1612
- validator: (n) => !(!n || !["konnect", "kongManager"].includes(n == null ? void 0 : n.app) || n.app === "konnect" && !n.controlPlaneId || n.app === "kongManager" && typeof n.workspace != "string" || !n.cancelRoute)
1581
+ validator: (c) => !(!c || !["konnect", "kongManager"].includes(c == null ? void 0 : c.app) || c.app === "konnect" && !c.controlPlaneId || c.app === "kongManager" && typeof c.workspace != "string" || !c.cancelRoute)
1613
1582
  },
1614
1583
  /** If a valid Gateway Service ID is provided, it will put the form in Edit mode instead of Create */
1615
1584
  gatewayServiceId: {
@@ -1631,9 +1600,9 @@ const se = {
1631
1600
  }
1632
1601
  },
1633
1602
  emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated", "try-sample-api"],
1634
- setup(n, { expose: X, emit: _ }) {
1635
- var b;
1636
- const v = _, a = n, h = D(!0), L = qe(), { i18nT: Q, i18n: { t: r } } = se.useI18n(), { getErrorFieldsFromError: j } = Je(), { axiosInstance: A } = Ge((b = a.config) == null ? void 0 : b.axiosRequestConfig), Se = Qe(), { validateHost: be, validatePath: Y, validatePort: he, validateProtocol: ae } = se.useUrlValidators(), { objectsAreEqual: x } = et(), me = k(() => pe.form[a.config.app].edit), N = k(() => a.gatewayServiceId ? Be.Edit : Be.Create), Ie = D(!1), o = k(() => !!a.gatewayServiceId), w = D(o.value ? "protocol" : "url"), ie = se.usePortFromProtocol(), ve = D(""), we = k(() => !!ve.value || !!ee("name")), e = Me({
1603
+ setup(c, { expose: Q, emit: y }) {
1604
+ var j;
1605
+ const v = y, a = c, b = L(!0), B = qe(), { i18nT: Z, i18n: { t: r } } = de.useI18n(), { getErrorFieldsFromError: O } = He(), { axiosInstance: $ } = Ge((j = a.config) == null ? void 0 : j.axiosRequestConfig), Ie = Ze(), { validateHost: pe, validatePath: oe, validatePort: he, validateProtocol: Y } = de.useUrlValidators(), { objectsAreEqual: M } = Xe(), X = k(() => fe.form[a.config.app].edit), ee = k(() => a.gatewayServiceId ? Be.Edit : Be.Create), Pe = L(!1), o = k(() => !!a.gatewayServiceId), h = L(o.value ? "protocol" : "url"), me = de.usePortFromProtocol(), ve = L(""), ae = k(() => !!ve.value || !!K("name")), e = Me({
1637
1606
  fields: {
1638
1607
  name: "",
1639
1608
  protocol: "http",
@@ -1669,7 +1638,7 @@ const se = {
1669
1638
  tls_verify_enabled: "",
1670
1639
  tls_verify_value: ""
1671
1640
  }
1672
- }), F = Me({
1641
+ }), P = Me({
1673
1642
  name: "",
1674
1643
  protocol: "http",
1675
1644
  host: "",
@@ -1685,13 +1654,13 @@ const se = {
1685
1654
  tls_verify_enabled: !1,
1686
1655
  tls_verify_value: !1,
1687
1656
  tags: ""
1688
- }), ne = a.config.app === "konnect" || Xe({
1657
+ }), G = a.config.app === "konnect" || Je({
1689
1658
  gatewayInfo: a.config.gatewayInfo,
1690
1659
  // 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
1691
1660
  supportedRange: {
1692
1661
  enterprise: ["3.0"]
1693
1662
  }
1694
- }), q = [
1663
+ }), ne = [
1695
1664
  {
1696
1665
  label: r("gateway_services.form.fields.protocol.options.http"),
1697
1666
  value: "http",
@@ -1727,7 +1696,7 @@ const se = {
1727
1696
  value: "grpcs",
1728
1697
  group: "grpc"
1729
1698
  },
1730
- ...ne ? [
1699
+ ...G ? [
1731
1700
  {
1732
1701
  label: r("gateway_services.form.fields.protocol.options.ws"),
1733
1702
  value: "ws",
@@ -1744,14 +1713,14 @@ const se = {
1744
1713
  value: "udp",
1745
1714
  group: "udp"
1746
1715
  }
1747
- ], re = { url: "url", protocol: "protocol" }, Pe = (t, s) => {
1748
- s.value;
1749
- }, oe = (t) => t ? parseFloat(t) : 0, ke = () => {
1750
- e.fields.host = F.host, e.fields.path = F.path, e.fields.port = F.port, e.fields.protocol = F.protocol, e.fields.url = F.url, e.fields.retries = F.retries, e.fields.connect_timeout = F.connect_timeout, e.fields.write_timeout = F.write_timeout, e.fields.read_timeout = F.read_timeout, e.fields.client_certificate = F.client_certificate, e.fields.ca_certificates = F.ca_certificates, e.fields.tls_verify_enabled = F.tls_verify_enabled, e.fields.tls_verify_value = F.tls_verify_value;
1716
+ ], ge = { url: "url", protocol: "protocol" }, we = (t, n) => {
1717
+ n.value;
1718
+ }, ce = (t) => t ? parseFloat(t) : 0, ke = () => {
1719
+ e.fields.host = P.host, e.fields.path = P.path, e.fields.port = P.port, e.fields.protocol = P.protocol, e.fields.url = P.url, e.fields.retries = P.retries, e.fields.connect_timeout = P.connect_timeout, e.fields.write_timeout = P.write_timeout, e.fields.read_timeout = P.read_timeout, e.fields.client_certificate = P.client_certificate, e.fields.ca_certificates = P.ca_certificates, e.fields.tls_verify_enabled = P.tls_verify_enabled, e.fields.tls_verify_value = P.tls_verify_value;
1751
1720
  }, Ve = () => {
1752
- h.value = !0, H(), e.errorMessages = [], ke();
1753
- }, ce = () => {
1754
- switch (ke(), e.fields.name = `${le.name}-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, w.value) {
1721
+ b.value = !0, N(), e.errorMessages = [], ke();
1722
+ }, ue = () => {
1723
+ switch (ke(), e.fields.name = `${le.name}-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, h.value) {
1755
1724
  case "url":
1756
1725
  e.fields.url = `${le.protocol}://${le.host}${le.path}`;
1757
1726
  break;
@@ -1761,94 +1730,94 @@ const se = {
1761
1730
  default:
1762
1731
  e.fields.url = `${le.protocol}://${le.host}${le.path}`;
1763
1732
  }
1764
- }, ge = () => {
1765
- if (H(), e.fields.url.length)
1733
+ }, ye = () => {
1734
+ if (N(), e.fields.url.length)
1766
1735
  try {
1767
- const t = new URL(e.fields.url), s = ae(t.protocol, q);
1768
- if (s) throw new Error(s);
1736
+ const t = new URL(e.fields.url), n = Y(t.protocol, ne);
1737
+ if (n) throw new Error(n);
1769
1738
  e.fields.protocol = t.protocol.slice(0, -1);
1770
- const E = be(t.hostname);
1739
+ const E = pe(t.hostname);
1771
1740
  if (E) throw new Error(E);
1772
1741
  e.fields.host = t.hostname;
1773
- const O = Y(t.pathname);
1774
- if (O) throw new Error(O);
1742
+ const q = oe(t.pathname);
1743
+ if (q) throw new Error(q);
1775
1744
  e.fields.path = t.pathname;
1776
1745
  const U = he(t.port);
1777
1746
  if (U) throw new Error(U);
1778
- const T = Number(t.port);
1779
- Ie.value = !!T, e.fields.port = T || ie.getPortFromProtocol(e.fields.protocol), v("url-valid:success");
1747
+ const x = Number(t.port);
1748
+ Pe.value = !!x, e.fields.port = x || me.getPortFromProtocol(e.fields.protocol), v("url-valid:success");
1780
1749
  } catch {
1781
1750
  v("url-valid:error", r("gateway_services.form.errors.url.invalid")), e.formFieldErrors.url = r("gateway_services.form.errors.url.invalid");
1782
1751
  }
1783
- }, ye = (t) => {
1784
- H(t);
1785
- }, Ee = k(() => !!e.formFieldErrors.url || !!e.formFieldErrors.host || !!e.formFieldErrors.port), ee = (t) => {
1752
+ }, _e = (t) => {
1753
+ N(t);
1754
+ }, Ee = k(() => !!e.formFieldErrors.url || !!e.formFieldErrors.host || !!e.formFieldErrors.port), K = (t) => {
1786
1755
  if (e.errorMessages.length) return "";
1787
- const s = e.formFieldErrors;
1788
- return s[t] ? s[t] : "";
1789
- }, z = (t) => {
1790
- H(t ?? void 0);
1791
- const s = be(e.fields.host);
1792
- s && (e.formFieldErrors.host = s);
1793
- const E = Y(e.fields.path);
1756
+ const n = e.formFieldErrors;
1757
+ return n[t] ? n[t] : "";
1758
+ }, ie = (t) => {
1759
+ N(t ?? void 0);
1760
+ const n = pe(e.fields.host);
1761
+ n && (e.formFieldErrors.host = n);
1762
+ const E = oe(e.fields.path);
1794
1763
  E && (e.formFieldErrors.path = E);
1795
- const O = he(e.fields.port);
1796
- O && (e.formFieldErrors.port = O), te.value ? v("url-valid:success") : v("url-valid:error", e.errorMessages.join(",") || r("gateway_services.form.errors.url.invalid"));
1797
- }, H = (t) => {
1764
+ const q = he(e.fields.port);
1765
+ q && (e.formFieldErrors.port = q), te.value ? v("url-valid:success") : v("url-valid:error", e.errorMessages.join(",") || r("gateway_services.form.errors.url.invalid"));
1766
+ }, N = (t) => {
1798
1767
  if (t)
1799
1768
  e.formFieldErrors[t] = "";
1800
1769
  else
1801
- for (let s in e.formFieldErrors)
1802
- e.formFieldErrors[s] = "";
1770
+ for (let n in e.formFieldErrors)
1771
+ e.formFieldErrors[n] = "";
1803
1772
  e.errorMessages = [];
1804
1773
  }, te = k(() => {
1805
1774
  for (let t in e.formFieldErrors)
1806
1775
  if (e.formFieldErrors[t].length)
1807
1776
  return !1;
1808
1777
  return !0;
1809
- }), de = () => {
1810
- e.fields.url && w.value === "url" ? ge() : z();
1811
- }, i = () => `new-service-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, u = k(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), V = k(() => {
1812
- if (w.value === "url")
1778
+ }), Ce = () => {
1779
+ e.fields.url && h.value === "url" ? ye() : ie();
1780
+ }, i = () => `new-service-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, d = k(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), V = k(() => {
1781
+ if (h.value === "url")
1813
1782
  return !0;
1814
1783
  const t = ["https", "wss", "tls"].includes(e.fields.protocol);
1815
- return w.value === "protocol" && t;
1816
- }), J = k(() => {
1817
- if (w.value === "url")
1784
+ return h.value === "protocol" && t;
1785
+ }), H = k(() => {
1786
+ if (h.value === "url")
1818
1787
  return !0;
1819
1788
  const t = ["https", "tls"].includes(e.fields.protocol);
1820
- return w.value === "protocol" && t;
1821
- }), B = k(() => {
1822
- if (w.value === "url")
1789
+ return h.value === "protocol" && t;
1790
+ }), A = k(() => {
1791
+ if (h.value === "url")
1823
1792
  return !0;
1824
1793
  const t = ["https", "wss", "tls"].includes(e.fields.protocol);
1825
- return w.value === "protocol" && t;
1794
+ return h.value === "protocol" && t;
1826
1795
  }), R = (t) => {
1827
- H("name"), ve.value = Se.utf8Name(t);
1828
- }, c = k(() => {
1829
- const t = !o.value || !x(e.fields, F), s = w.value === "url" && !!e.fields.url && te.value, E = w.value === "protocol" && !!e.fields.host && te.value;
1830
- return t && (s || E);
1831
- }), g = (t) => {
1832
- var s, E, O;
1833
- e.fields.name = (t == null ? void 0 : t.name) || "", e.fields.tags = ((s = t == null ? void 0 : t.tags) == null ? void 0 : s.join(", ")) || "", e.fields.protocol = (t == null ? void 0 : t.protocol) || "http", e.fields.path = (t == null ? void 0 : t.path) || "", e.fields.read_timeout = t != null && t.read_timeout || (t == null ? void 0 : t.read_timeout) === 0 ? t == null ? void 0 : t.read_timeout : 6e4, e.fields.retries = t != null && t.retries || (t == null ? void 0 : t.retries) === 0 ? t == null ? void 0 : t.retries : 5, e.fields.host = (t == null ? void 0 : t.host) || "", e.fields.connect_timeout = t != null && t.connect_timeout || (t == null ? void 0 : t.connect_timeout) === 0 ? t == null ? void 0 : t.connect_timeout : 6e4, e.fields.tls_verify_enabled = (t == null ? void 0 : t.tls_verify) !== "" && (t == null ? void 0 : t.tls_verify) !== null && (t == null ? void 0 : t.tls_verify) !== void 0, e.fields.tls_verify_value = t != null && t.tls_verify ? t == null ? void 0 : t.tls_verify : !1, e.fields.ca_certificates = ((E = t == null ? void 0 : t.ca_certificates) == null ? void 0 : E.join(",")) || "", e.fields.client_certificate = ((O = t == null ? void 0 : t.client_certificate) == null ? void 0 : O.id) || "", e.fields.write_timeout = t != null && t.write_timeout || (t == null ? void 0 : t.write_timeout) === 0 ? t == null ? void 0 : t.write_timeout : 6e4, e.fields.port = t != null && t.port || (t == null ? void 0 : t.port) === 0 ? t == null ? void 0 : t.port : 80, Object.assign(F, e.fields);
1796
+ N("name"), ve.value = Ie.utf8Name(t);
1797
+ }, s = k(() => {
1798
+ const t = !o.value || !M(e.fields, P), n = h.value === "url" && !!e.fields.url && te.value, E = h.value === "protocol" && !!e.fields.host && te.value;
1799
+ return t && (n || E);
1800
+ }), w = (t) => {
1801
+ var n, E, q;
1802
+ e.fields.name = (t == null ? void 0 : t.name) || "", e.fields.tags = ((n = t == null ? void 0 : t.tags) == null ? void 0 : n.join(", ")) || "", e.fields.protocol = (t == null ? void 0 : t.protocol) || "http", e.fields.path = (t == null ? void 0 : t.path) || "", e.fields.read_timeout = t != null && t.read_timeout || (t == null ? void 0 : t.read_timeout) === 0 ? t == null ? void 0 : t.read_timeout : 6e4, e.fields.retries = t != null && t.retries || (t == null ? void 0 : t.retries) === 0 ? t == null ? void 0 : t.retries : 5, e.fields.host = (t == null ? void 0 : t.host) || "", e.fields.connect_timeout = t != null && t.connect_timeout || (t == null ? void 0 : t.connect_timeout) === 0 ? t == null ? void 0 : t.connect_timeout : 6e4, e.fields.tls_verify_enabled = (t == null ? void 0 : t.tls_verify) !== "" && (t == null ? void 0 : t.tls_verify) !== null && (t == null ? void 0 : t.tls_verify) !== void 0, e.fields.tls_verify_value = t != null && t.tls_verify ? t == null ? void 0 : t.tls_verify : !1, e.fields.ca_certificates = ((E = t == null ? void 0 : t.ca_certificates) == null ? void 0 : E.join(",")) || "", e.fields.client_certificate = ((q = t == null ? void 0 : t.client_certificate) == null ? void 0 : q.id) || "", e.fields.write_timeout = t != null && t.write_timeout || (t == null ? void 0 : t.write_timeout) === 0 ? t == null ? void 0 : t.write_timeout : 6e4, e.fields.port = t != null && t.port || (t == null ? void 0 : t.port) === 0 ? t == null ? void 0 : t.port : 80, Object.assign(P, e.fields);
1834
1803
  }, p = () => {
1835
- L.push(a.config.cancelRoute);
1836
- }, C = k(() => {
1837
- var s, E;
1838
- let t = `${a.config.apiBaseUrl}${pe.form[a.config.app].validate}`;
1839
- return a.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((s = a.config) == null ? void 0 : s.controlPlaneId) || "") : a.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (E = a.config) != null && E.workspace ? `/${a.config.workspace}` : "")), t = t.replace(/{id}/gi, a.gatewayServiceId), t;
1840
- }), K = k(() => {
1841
- var s, E;
1842
- let t = `${a.config.apiBaseUrl}${pe.form[a.config.app][N.value]}`;
1843
- return a.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((s = a.config) == null ? void 0 : s.controlPlaneId) || "") : a.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (E = a.config) != null && E.workspace ? `/${a.config.workspace}` : "")), t = t.replace(/{id}/gi, a.gatewayServiceId), t;
1844
- }), ue = (t) => {
1845
- let s = "";
1846
- t.url && (s = new URL(t.url).protocol), (["https", "wss", "tls"].includes(t.protocol) || ["https", "wss", "tls"].includes(s)) && (t.tls_verify = t.tls_verify_enabled ? t.tls_verify_value : null), delete t.tls_verify_enabled, delete t.tls_verify_value;
1847
- }, G = k(() => {
1848
- var s, E, O, U;
1804
+ B.push(a.config.cancelRoute);
1805
+ }, W = k(() => {
1806
+ var n, E;
1807
+ let t = `${a.config.apiBaseUrl}${fe.form[a.config.app].validate}`;
1808
+ return a.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((n = a.config) == null ? void 0 : n.controlPlaneId) || "") : a.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (E = a.config) != null && E.workspace ? `/${a.config.workspace}` : "")), t = t.replace(/{id}/gi, a.gatewayServiceId), t;
1809
+ }), re = k(() => {
1810
+ var n, E;
1811
+ let t = `${a.config.apiBaseUrl}${fe.form[a.config.app][ee.value]}`;
1812
+ return a.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((n = a.config) == null ? void 0 : n.controlPlaneId) || "") : a.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (E = a.config) != null && E.workspace ? `/${a.config.workspace}` : "")), t = t.replace(/{id}/gi, a.gatewayServiceId), t;
1813
+ }), J = (t) => {
1814
+ let n = "";
1815
+ t.url && (n = new URL(t.url).protocol), (["https", "wss", "tls"].includes(t.protocol) || ["https", "wss", "tls"].includes(n)) && (t.tls_verify = t.tls_verify_enabled ? t.tls_verify_value : null), delete t.tls_verify_enabled, delete t.tls_verify_value;
1816
+ }, se = k(() => {
1817
+ var n, E, q, U;
1849
1818
  const t = {
1850
1819
  name: e.fields.name || null,
1851
- tags: e.fields.tags ? (O = (E = (s = e.fields.tags) == null ? void 0 : s.split(",")) == null ? void 0 : E.map((T) => String(T || "").trim())) == null ? void 0 : O.filter((T) => T !== "") : null,
1820
+ tags: e.fields.tags ? (q = (E = (n = e.fields.tags) == null ? void 0 : n.split(",")) == null ? void 0 : E.map((x) => String(x || "").trim())) == null ? void 0 : q.filter((x) => x !== "") : null,
1852
1821
  protocol: e.fields.protocol,
1853
1822
  path: e.fields.path || null,
1854
1823
  read_timeout: e.fields.read_timeout,
@@ -1857,32 +1826,32 @@ const se = {
1857
1826
  connect_timeout: e.fields.connect_timeout,
1858
1827
  tls_verify_value: e.fields.tls_verify_value,
1859
1828
  tls_verify_enabled: e.fields.tls_verify_enabled,
1860
- ca_certificates: e.fields.ca_certificates ? (U = e.fields.ca_certificates) == null ? void 0 : U.split(",").filter((T) => T !== "") : null,
1829
+ ca_certificates: e.fields.ca_certificates ? (U = e.fields.ca_certificates) == null ? void 0 : U.split(",").filter((x) => x !== "") : null,
1861
1830
  client_certificate: e.fields.client_certificate ? { id: e.fields.client_certificate } : null,
1862
1831
  write_timeout: e.fields.write_timeout,
1863
1832
  port: e.fields.port,
1864
1833
  url: e.fields.url
1865
1834
  };
1866
- return e.fields.client_certificate && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.client_certificate = { id: e.fields.client_certificate }), e.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.tls_verify = e.fields.tls_verify_value), u.value || (t.path = null), N.value === "create" ? w.value === "url" ? (delete t.protocol, delete t.host, delete t.path, a.config.app === "konnect" && delete t.port) : delete t.url : N.value === "edit" && delete t.url, t;
1867
- }), fe = async () => {
1868
- var t, s, E, O;
1835
+ return e.fields.client_certificate && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.client_certificate = { id: e.fields.client_certificate }), e.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.tls_verify = e.fields.tls_verify_value), d.value || (t.path = null), ee.value === "create" ? h.value === "url" ? (delete t.protocol, delete t.host, delete t.path, a.config.app === "konnect" && delete t.port) : delete t.url : ee.value === "edit" && delete t.url, t;
1836
+ }), _ = async () => {
1837
+ var t, n, E, q;
1869
1838
  try {
1870
1839
  e.isReadonly = !0;
1871
- const U = G.value;
1872
- ue(U);
1873
- let T;
1874
- if (await A.post(C.value, U), N.value === "create" ? T = await A.post(K.value, U) : N.value === "edit" && (T = ((t = a.config) == null ? void 0 : t.app) === "konnect" ? await A.put(K.value, U) : await A.patch(K.value, U)), T) {
1875
- const { data: f } = T;
1876
- e.fields.name = (f == null ? void 0 : f.name) || "", e.fields.port = f.port || ie.getPortFromProtocol(f.protocol), e.fields.protocol = (f == null ? void 0 : f.protocol) || "http", e.fields.host = (f == null ? void 0 : f.host) || "", e.fields.path = (f == null ? void 0 : f.path) || "", e.fields.url = (f == null ? void 0 : f.url) || "", e.fields.retries = f != null && f.retries || (f == null ? void 0 : f.retries) === 0 ? f == null ? void 0 : f.retries : 5, e.fields.connect_timeout = f != null && f.connect_timeout || (f == null ? void 0 : f.connect_timeout) === 0 ? f == null ? void 0 : f.connect_timeout : 6e4, e.fields.write_timeout = f != null && f.write_timeout || (f == null ? void 0 : f.write_timeout) === 0 ? f == null ? void 0 : f.write_timeout : 6e4, e.fields.read_timeout = f != null && f.read_timeout || (f == null ? void 0 : f.read_timeout) === 0 ? f == null ? void 0 : f.read_timeout : 6e4, e.fields.client_certificate = ((s = f == null ? void 0 : f.client_certificate) == null ? void 0 : s.id) || "", e.fields.ca_certificates = (E = f == null ? void 0 : f.ca_certificates) != null && E.length ? f == null ? void 0 : f.ca_certificates.join(",") : "", e.fields.tls_verify_enabled = (f == null ? void 0 : f.tls_verify) !== "" && (f == null ? void 0 : f.tls_verify) !== null && (f == null ? void 0 : f.tls_verify) !== void 0, e.fields.tls_verify_value = e.fields.tls_verify_enabled && (f == null ? void 0 : f.tls_verify), e.fields.tags = (O = f == null ? void 0 : f.tags) != null && O.length ? f.tags.join(", ") : "", Object.assign(F, e.fields), v("update", T == null ? void 0 : T.data);
1840
+ const U = se.value;
1841
+ J(U);
1842
+ let x;
1843
+ if (await $.post(W.value, U), ee.value === "create" ? x = await $.post(re.value, U) : ee.value === "edit" && (x = ((t = a.config) == null ? void 0 : t.app) === "konnect" ? await $.put(re.value, U) : await $.patch(re.value, U)), x) {
1844
+ const { data: u } = x;
1845
+ e.fields.name = (u == null ? void 0 : u.name) || "", e.fields.port = u.port || me.getPortFromProtocol(u.protocol), e.fields.protocol = (u == null ? void 0 : u.protocol) || "http", e.fields.host = (u == null ? void 0 : u.host) || "", e.fields.path = (u == null ? void 0 : u.path) || "", e.fields.url = (u == null ? void 0 : u.url) || "", e.fields.retries = u != null && u.retries || (u == null ? void 0 : u.retries) === 0 ? u == null ? void 0 : u.retries : 5, e.fields.connect_timeout = u != null && u.connect_timeout || (u == null ? void 0 : u.connect_timeout) === 0 ? u == null ? void 0 : u.connect_timeout : 6e4, e.fields.write_timeout = u != null && u.write_timeout || (u == null ? void 0 : u.write_timeout) === 0 ? u == null ? void 0 : u.write_timeout : 6e4, e.fields.read_timeout = u != null && u.read_timeout || (u == null ? void 0 : u.read_timeout) === 0 ? u == null ? void 0 : u.read_timeout : 6e4, e.fields.client_certificate = ((n = u == null ? void 0 : u.client_certificate) == null ? void 0 : n.id) || "", e.fields.ca_certificates = (E = u == null ? void 0 : u.ca_certificates) != null && E.length ? u == null ? void 0 : u.ca_certificates.join(",") : "", e.fields.tls_verify_enabled = (u == null ? void 0 : u.tls_verify) !== "" && (u == null ? void 0 : u.tls_verify) !== null && (u == null ? void 0 : u.tls_verify) !== void 0, e.fields.tls_verify_value = e.fields.tls_verify_enabled && (u == null ? void 0 : u.tls_verify), e.fields.tags = (q = u == null ? void 0 : u.tags) != null && q.length ? u.tags.join(", ") : "", Object.assign(P, e.fields), v("update", x == null ? void 0 : x.data);
1877
1846
  }
1878
- return T;
1847
+ return x;
1879
1848
  } catch (U) {
1880
- const { fields: T, messages: f } = j(U);
1881
- e.errorMessages = f, T.length && T.forEach((_e) => {
1882
- const Ce = _e.field;
1883
- Ce === "client_certificate.id" ? e.formFieldErrors.client_certificate = _e.message : Ce.startsWith("ca_certificates") ? e.formFieldErrors.ca_certificates = _e.message : Object.keys(e.formFieldErrors).includes(Ce) && (e.formFieldErrors = {
1849
+ const { fields: x, messages: u } = O(U);
1850
+ e.errorMessages = u, x.length && x.forEach((be) => {
1851
+ const Se = be.field;
1852
+ Se === "client_certificate.id" ? e.formFieldErrors.client_certificate = be.message : Se.startsWith("ca_certificates") ? e.formFieldErrors.ca_certificates = be.message : Object.keys(e.formFieldErrors).includes(Se) && (e.formFieldErrors = {
1884
1853
  ...e.formFieldErrors,
1885
- [Ce]: _e.message
1854
+ [Se]: be.message
1886
1855
  });
1887
1856
  }), v("error", U);
1888
1857
  } finally {
@@ -1890,106 +1859,106 @@ const se = {
1890
1859
  }
1891
1860
  };
1892
1861
  return Fe(() => a.gatewayServiceId, () => {
1893
- Object.assign(e.fields, F);
1862
+ Object.assign(e.fields, P);
1894
1863
  }), Fe(e.fields, (t) => {
1895
- e.fields.port = ie.getPortFromProtocol(t.protocol, String(t.port)), v("model-updated", G.value);
1896
- }), He(() => {
1897
- v("model-updated", G.value), o.value || (e.fields.name = i());
1898
- }), X({
1899
- validateUrl: de,
1900
- getPayload: G,
1901
- saveFormData: fe,
1902
- canSubmit: c,
1903
- initForm: g
1904
- }), (t, s) => {
1905
- const E = W("KRadio"), O = W("KButton"), U = W("KInput"), T = W("KSelect"), f = W("KCheckbox"), _e = W("KCollapse"), Ce = W("KAlert");
1906
- return S(), $("div", ol, [
1907
- d(l(Ye), {
1908
- "can-submit": c.value,
1909
- config: n.config,
1910
- "edit-id": n.gatewayServiceId,
1864
+ e.fields.port = me.getPortFromProtocol(t.protocol, String(t.port)), v("model-updated", se.value);
1865
+ }), je(() => {
1866
+ v("model-updated", se.value), o.value || (e.fields.name = i());
1867
+ }), Q({
1868
+ validateUrl: Ce,
1869
+ getPayload: se,
1870
+ saveFormData: _,
1871
+ canSubmit: s,
1872
+ initForm: w
1873
+ }), (t, n) => {
1874
+ const E = D("KRadio"), q = D("KButton"), U = D("KInput"), x = D("KSelect"), u = D("KCheckbox"), be = D("KCollapse"), Se = D("KAlert");
1875
+ return C(), F("div", ol, [
1876
+ f(l(Qe), {
1877
+ "can-submit": s.value,
1878
+ config: c.config,
1879
+ "edit-id": c.gatewayServiceId,
1911
1880
  "entity-type": l(Oe).GatewayService,
1912
- "fetch-url": me.value,
1913
- "form-fields": G.value,
1881
+ "fetch-url": X.value,
1882
+ "form-fields": se.value,
1914
1883
  "is-readonly": e.isReadonly,
1915
1884
  onCancel: p,
1916
- "onFetch:error": s[30] || (s[30] = (y) => t.$emit("error", y)),
1917
- "onFetch:success": g,
1918
- onLoading: s[31] || (s[31] = (y) => t.$emit("loading", y)),
1919
- onSubmit: fe
1885
+ "onFetch:error": n[30] || (n[30] = (g) => t.$emit("error", g)),
1886
+ "onFetch:success": w,
1887
+ onLoading: n[31] || (n[31] = (g) => t.$emit("loading", g)),
1888
+ onSubmit: _
1920
1889
  }, {
1921
1890
  "form-actions": m(() => [
1922
- Ze(t.$slots, "form-actions", {
1923
- canSubmit: c.value,
1891
+ ze(t.$slots, "form-actions", {
1892
+ canSubmit: s.value,
1924
1893
  cancel: p,
1925
- submit: fe
1894
+ submit: _
1926
1895
  }, void 0, !0)
1927
1896
  ]),
1928
1897
  default: m(() => [
1929
- d(l(Ke), {
1898
+ f(l(Ke), {
1930
1899
  description: l(r)("gateway_services.form.sections.keys.description"),
1931
- "hide-info-header": n.hideSectionsInfo,
1900
+ "hide-info-header": c.hideSectionsInfo,
1932
1901
  title: l(r)("gateway_services.form.sections.keys.title")
1933
1902
  }, {
1934
1903
  default: m(() => [
1935
- o.value ? M("", !0) : (S(), $("div", il, [
1936
- I("div", rl, [
1937
- d(E, {
1938
- modelValue: w.value,
1939
- "onUpdate:modelValue": s[0] || (s[0] = (y) => w.value = y),
1904
+ o.value ? T("", !0) : (C(), F("div", il, [
1905
+ S("div", rl, [
1906
+ f(E, {
1907
+ modelValue: h.value,
1908
+ "onUpdate:modelValue": n[0] || (n[0] = (g) => h.value = g),
1940
1909
  card: "",
1941
1910
  "card-orientation": "horizontal",
1942
1911
  "data-testid": "gateway-service-url-radio",
1943
1912
  description: l(r)("gateway_services.form.sections.keys.url.description"),
1944
1913
  label: l(r)("gateway_services.form.sections.keys.url.label"),
1945
- "selected-value": re.url,
1914
+ "selected-value": ge.url,
1946
1915
  onChange: Ve
1947
1916
  }, null, 8, ["modelValue", "description", "label", "selected-value"]),
1948
- d(E, {
1949
- modelValue: w.value,
1950
- "onUpdate:modelValue": s[1] || (s[1] = (y) => w.value = y),
1917
+ f(E, {
1918
+ modelValue: h.value,
1919
+ "onUpdate:modelValue": n[1] || (n[1] = (g) => h.value = g),
1951
1920
  card: "",
1952
1921
  "card-orientation": "horizontal",
1953
1922
  "checked-group": "protocol",
1954
1923
  "data-testid": "gateway-service-protocol-radio",
1955
1924
  description: l(r)("gateway_services.form.sections.keys.protocol.description"),
1956
1925
  label: l(r)("gateway_services.form.sections.keys.protocol.label"),
1957
- "selected-value": re.protocol,
1926
+ "selected-value": ge.protocol,
1958
1927
  onChange: Ve
1959
1928
  }, null, 8, ["modelValue", "description", "label", "selected-value"])
1960
1929
  ]),
1961
- d(We, { name: "slide-fade" }, {
1930
+ f(We, { name: "slide-fade" }, {
1962
1931
  default: m(() => [
1963
- w.value === "url" ? (S(), $("div", sl, [
1964
- d(U, {
1932
+ h.value === "url" ? (C(), F("div", sl, [
1933
+ f(U, {
1965
1934
  modelValue: e.fields.url,
1966
- "onUpdate:modelValue": s[2] || (s[2] = (y) => e.fields.url = y),
1935
+ "onUpdate:modelValue": n[2] || (n[2] = (g) => e.fields.url = g),
1967
1936
  modelModifiers: { trim: !0 },
1968
1937
  class: "gateway-service-url-input gateway-service-form-margin-bottom",
1969
1938
  "data-testid": "gateway-service-url-input",
1970
1939
  error: Ee.value,
1971
- "error-message": ee("url"),
1940
+ "error-message": K("url"),
1972
1941
  label: l(r)("gateway_services.form.fields.upstream_url.label"),
1973
1942
  "label-attributes": {
1974
- info: n.config.app === "konnect" ? l(r)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : l(r)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
1943
+ info: c.config.app === "konnect" ? l(r)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : l(r)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
1975
1944
  tooltipAttributes: { maxWidth: "400" }
1976
1945
  },
1977
1946
  name: "url",
1978
1947
  placeholder: l(r)("gateway_services.form.fields.upstream_url.placeholder"),
1979
1948
  required: "",
1980
- onInput: ge
1949
+ onInput: ye
1981
1950
  }, Te({ _: 2 }, [
1982
- n.hideTrySampleApiButton ? void 0 : {
1951
+ c.hideTrySampleApiButton ? void 0 : {
1983
1952
  name: "after",
1984
1953
  fn: m(() => [
1985
- d(O, {
1954
+ f(q, {
1986
1955
  appearance: "tertiary",
1987
1956
  "data-testid": "try-sample-api",
1988
1957
  size: "small",
1989
- onClick: ce
1958
+ onClick: ue
1990
1959
  }, {
1991
1960
  default: m(() => [
1992
- Z(P(l(r)("gateway_services.form.buttons.try_sample")), 1)
1961
+ z(I(l(r)("gateway_services.form.buttons.try_sample")), 1)
1993
1962
  ]),
1994
1963
  _: 1
1995
1964
  })
@@ -1997,19 +1966,19 @@ const se = {
1997
1966
  key: "0"
1998
1967
  }
1999
1968
  ]), 1032, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder"])
2000
- ])) : M("", !0)
1969
+ ])) : T("", !0)
2001
1970
  ]),
2002
1971
  _: 1
2003
1972
  })
2004
1973
  ])),
2005
- d(We, { name: "slide-fade" }, {
1974
+ f(We, { name: "slide-fade" }, {
2006
1975
  default: m(() => [
2007
- w.value === "protocol" || o.value ? (S(), $("div", al, [
2008
- d(T, {
1976
+ h.value === "protocol" || o.value ? (C(), F("div", al, [
1977
+ f(x, {
2009
1978
  modelValue: e.fields.protocol,
2010
- "onUpdate:modelValue": s[3] || (s[3] = (y) => e.fields.protocol = y),
1979
+ "onUpdate:modelValue": n[3] || (n[3] = (g) => e.fields.protocol = g),
2011
1980
  "data-testid": "gateway-service-protocol-select",
2012
- items: q,
1981
+ items: ne,
2013
1982
  label: l(r)("gateway_services.form.fields.protocol.label"),
2014
1983
  "label-attributes": {
2015
1984
  info: l(r)("gateway_services.form.fields.protocol.tooltip"),
@@ -2018,16 +1987,16 @@ const se = {
2018
1987
  readonly: e.isReadonly,
2019
1988
  required: "",
2020
1989
  width: "100%",
2021
- onSelected: s[4] || (s[4] = (y) => Pe(e.fields.protocol, y))
1990
+ onSelected: n[4] || (n[4] = (g) => we(e.fields.protocol, g))
2022
1991
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
2023
- d(U, {
1992
+ f(U, {
2024
1993
  modelValue: e.fields.host,
2025
- "onUpdate:modelValue": s[5] || (s[5] = (y) => e.fields.host = y),
1994
+ "onUpdate:modelValue": n[5] || (n[5] = (g) => e.fields.host = g),
2026
1995
  modelModifiers: { trim: !0 },
2027
1996
  class: "gateway-service-form-margin-top",
2028
1997
  "data-testid": "gateway-service-host-input",
2029
1998
  error: !!e.formFieldErrors.host,
2030
- "error-message": ee("host"),
1999
+ "error-message": K("host"),
2031
2000
  label: l(r)("gateway_services.form.fields.host.label"),
2032
2001
  "label-attributes": {
2033
2002
  info: l(r)("gateway_services.form.fields.host.tooltip"),
@@ -2036,18 +2005,18 @@ const se = {
2036
2005
  name: "host",
2037
2006
  placeholder: l(r)("gateway_services.form.fields.host.placeholder"),
2038
2007
  required: "",
2039
- onInput: s[6] || (s[6] = (y) => z("host"))
2008
+ onInput: n[6] || (n[6] = (g) => ie("host"))
2040
2009
  }, Te({ _: 2 }, [
2041
- n.hideTrySampleApiButton ? void 0 : {
2010
+ c.hideTrySampleApiButton ? void 0 : {
2042
2011
  name: "after",
2043
2012
  fn: m(() => [
2044
- d(O, {
2013
+ f(q, {
2045
2014
  appearance: "tertiary",
2046
2015
  size: "small",
2047
- onClick: ce
2016
+ onClick: ue
2048
2017
  }, {
2049
2018
  default: m(() => [
2050
- Z(P(l(r)("gateway_services.form.buttons.try_sample")), 1)
2019
+ z(I(l(r)("gateway_services.form.buttons.try_sample")), 1)
2051
2020
  ]),
2052
2021
  _: 1
2053
2022
  })
@@ -2055,15 +2024,15 @@ const se = {
2055
2024
  key: "0"
2056
2025
  }
2057
2026
  ]), 1032, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder"]),
2058
- u.value ? (S(), $("div", nl, [
2059
- d(U, {
2027
+ d.value ? (C(), F("div", nl, [
2028
+ f(U, {
2060
2029
  modelValue: e.fields.path,
2061
- "onUpdate:modelValue": s[7] || (s[7] = (y) => e.fields.path = y),
2030
+ "onUpdate:modelValue": n[7] || (n[7] = (g) => e.fields.path = g),
2062
2031
  modelModifiers: { trim: !0 },
2063
2032
  class: "gateway-service-form-margin-top",
2064
2033
  "data-testid": "gateway-service-path-input",
2065
2034
  error: !!e.formFieldErrors.path,
2066
- "error-message": ee("path"),
2035
+ "error-message": K("path"),
2067
2036
  label: l(r)("gateway_services.form.fields.path.label"),
2068
2037
  "label-attributes": {
2069
2038
  info: l(r)("gateway_services.form.fields.path.tooltip"),
@@ -2071,21 +2040,21 @@ const se = {
2071
2040
  },
2072
2041
  name: "path",
2073
2042
  placeholder: l(r)("gateway_services.form.fields.path.placeholder"),
2074
- onInput: s[8] || (s[8] = (y) => z("path"))
2043
+ onInput: n[8] || (n[8] = (g) => ie("path"))
2075
2044
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder"])
2076
- ])) : M("", !0),
2077
- d(U, {
2045
+ ])) : T("", !0),
2046
+ f(U, {
2078
2047
  modelValue: e.fields.port,
2079
2048
  "onUpdate:modelValue": [
2080
- s[9] || (s[9] = (y) => e.fields.port = y),
2081
- s[11] || (s[11] = () => {
2082
- e.fields.port = oe(e.fields.port + "");
2049
+ n[9] || (n[9] = (g) => e.fields.port = g),
2050
+ n[11] || (n[11] = () => {
2051
+ e.fields.port = ce(e.fields.port + "");
2083
2052
  })
2084
2053
  ],
2085
2054
  class: "gateway-service-form-margin-top",
2086
2055
  "data-testid": "gateway-service-port-input",
2087
2056
  error: !!e.formFieldErrors.port,
2088
- "error-message": ee("port"),
2057
+ "error-message": K("port"),
2089
2058
  label: l(r)("gateway_services.form.fields.port.label"),
2090
2059
  "label-attributes": {
2091
2060
  info: l(r)("gateway_services.form.fields.port.tooltip"),
@@ -2093,30 +2062,30 @@ const se = {
2093
2062
  },
2094
2063
  name: "port",
2095
2064
  type: "number",
2096
- onInput: s[10] || (s[10] = (y) => z("port"))
2065
+ onInput: n[10] || (n[10] = (g) => ie("port"))
2097
2066
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes"])
2098
- ])) : M("", !0)
2067
+ ])) : T("", !0)
2099
2068
  ]),
2100
2069
  _: 1
2101
2070
  }),
2102
- d(_e, {
2103
- modelValue: h.value,
2104
- "onUpdate:modelValue": s[27] || (s[27] = (y) => h.value = y),
2071
+ f(be, {
2072
+ modelValue: b.value,
2073
+ "onUpdate:modelValue": n[27] || (n[27] = (g) => b.value = g),
2105
2074
  "data-testid": "advanced-fields-collapse",
2106
2075
  "trigger-alignment": "leading",
2107
2076
  "trigger-label": l(r)("gateway_services.form.sections.keys.viewAdvancedFields")
2108
2077
  }, {
2109
2078
  default: m(() => [
2110
- d(We, { name: "slide-fade" }, {
2079
+ f(We, { name: "slide-fade" }, {
2111
2080
  default: m(() => [
2112
- h.value ? M("", !0) : (S(), $("div", cl, [
2113
- I("div", dl, [
2114
- d(U, {
2081
+ b.value ? T("", !0) : (C(), F("div", cl, [
2082
+ S("div", dl, [
2083
+ f(U, {
2115
2084
  modelValue: e.fields.retries,
2116
2085
  "onUpdate:modelValue": [
2117
- s[12] || (s[12] = (y) => e.fields.retries = y),
2118
- s[13] || (s[13] = () => {
2119
- e.fields.retries = oe(e.fields.retries + "");
2086
+ n[12] || (n[12] = (g) => e.fields.retries = g),
2087
+ n[13] || (n[13] = () => {
2088
+ e.fields.retries = ce(e.fields.retries + "");
2120
2089
  })
2121
2090
  ],
2122
2091
  autocomplete: "off",
@@ -2131,13 +2100,13 @@ const se = {
2131
2100
  type: "number"
2132
2101
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
2133
2102
  ]),
2134
- I("div", ul, [
2135
- d(U, {
2103
+ S("div", ul, [
2104
+ f(U, {
2136
2105
  modelValue: e.fields.connect_timeout,
2137
2106
  "onUpdate:modelValue": [
2138
- s[14] || (s[14] = (y) => e.fields.connect_timeout = y),
2139
- s[15] || (s[15] = () => {
2140
- e.fields.connect_timeout = oe(e.fields.connect_timeout + "");
2107
+ n[14] || (n[14] = (g) => e.fields.connect_timeout = g),
2108
+ n[15] || (n[15] = () => {
2109
+ e.fields.connect_timeout = ce(e.fields.connect_timeout + "");
2141
2110
  })
2142
2111
  ],
2143
2112
  autocomplete: "off",
@@ -2152,13 +2121,13 @@ const se = {
2152
2121
  type: "number"
2153
2122
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
2154
2123
  ]),
2155
- I("div", fl, [
2156
- d(U, {
2124
+ S("div", fl, [
2125
+ f(U, {
2157
2126
  modelValue: e.fields.write_timeout,
2158
2127
  "onUpdate:modelValue": [
2159
- s[16] || (s[16] = (y) => e.fields.write_timeout = y),
2160
- s[17] || (s[17] = () => {
2161
- e.fields.write_timeout = oe(e.fields.write_timeout + "");
2128
+ n[16] || (n[16] = (g) => e.fields.write_timeout = g),
2129
+ n[17] || (n[17] = () => {
2130
+ e.fields.write_timeout = ce(e.fields.write_timeout + "");
2162
2131
  })
2163
2132
  ],
2164
2133
  autocomplete: "off",
@@ -2173,13 +2142,13 @@ const se = {
2173
2142
  type: "number"
2174
2143
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
2175
2144
  ]),
2176
- I("div", pl, [
2177
- d(U, {
2145
+ S("div", pl, [
2146
+ f(U, {
2178
2147
  modelValue: e.fields.read_timeout,
2179
2148
  "onUpdate:modelValue": [
2180
- s[18] || (s[18] = (y) => e.fields.read_timeout = y),
2181
- s[19] || (s[19] = () => {
2182
- e.fields.read_timeout = oe(e.fields.read_timeout + "");
2149
+ n[18] || (n[18] = (g) => e.fields.read_timeout = g),
2150
+ n[19] || (n[19] = () => {
2151
+ e.fields.read_timeout = ce(e.fields.read_timeout + "");
2183
2152
  })
2184
2153
  ],
2185
2154
  autocomplete: "off",
@@ -2194,10 +2163,10 @@ const se = {
2194
2163
  type: "number"
2195
2164
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
2196
2165
  ]),
2197
- V.value ? (S(), $("div", ml, [
2198
- d(U, {
2166
+ V.value ? (C(), F("div", ml, [
2167
+ f(U, {
2199
2168
  modelValue: e.fields.client_certificate,
2200
- "onUpdate:modelValue": s[20] || (s[20] = (y) => e.fields.client_certificate = y),
2169
+ "onUpdate:modelValue": n[20] || (n[20] = (g) => e.fields.client_certificate = g),
2201
2170
  modelModifiers: { trim: !0 },
2202
2171
  autocomplete: "off",
2203
2172
  "data-testid": "gateway-service-clientCert-input",
@@ -2211,13 +2180,13 @@ const se = {
2211
2180
  placeholder: l(r)("gateway_services.form.fields.client_certificate.placeholder"),
2212
2181
  readonly: e.isReadonly,
2213
2182
  type: "text",
2214
- onInput: s[21] || (s[21] = (y) => ye("client_certificate"))
2183
+ onInput: n[21] || (n[21] = (g) => _e("client_certificate"))
2215
2184
  }, null, 8, ["modelValue", "error", "label", "label-attributes", "placeholder", "readonly"])
2216
- ])) : M("", !0),
2217
- J.value ? (S(), $("div", vl, [
2218
- d(U, {
2185
+ ])) : T("", !0),
2186
+ H.value ? (C(), F("div", vl, [
2187
+ f(U, {
2219
2188
  modelValue: e.fields.ca_certificates,
2220
- "onUpdate:modelValue": s[22] || (s[22] = (y) => e.fields.ca_certificates = y),
2189
+ "onUpdate:modelValue": n[22] || (n[22] = (g) => e.fields.ca_certificates = g),
2221
2190
  modelModifiers: { trim: !0 },
2222
2191
  autocomplete: "off",
2223
2192
  "data-testid": "gateway-service-ca-certs-input",
@@ -2227,66 +2196,66 @@ const se = {
2227
2196
  placeholder: l(r)("gateway_services.form.fields.ca_certificates.placeholder"),
2228
2197
  readonly: e.isReadonly,
2229
2198
  type: "text",
2230
- onInput: s[23] || (s[23] = (y) => ye("ca_certificates"))
2199
+ onInput: n[23] || (n[23] = (g) => _e("ca_certificates"))
2231
2200
  }, {
2232
2201
  "label-tooltip": m(() => [
2233
- d(l(Q), {
2202
+ f(l(Z), {
2234
2203
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
2235
2204
  scope: "global"
2236
2205
  }, {
2237
2206
  code1: m(() => [
2238
- I("code", null, P(l(r)("gateway_services.form.fields.ca_certificates.code1")), 1)
2207
+ S("code", null, I(l(r)("gateway_services.form.fields.ca_certificates.code1")), 1)
2239
2208
  ]),
2240
2209
  code2: m(() => [
2241
- I("code", null, P(l(r)("gateway_services.form.fields.ca_certificates.code2")), 1)
2210
+ S("code", null, I(l(r)("gateway_services.form.fields.ca_certificates.code2")), 1)
2242
2211
  ]),
2243
2212
  _: 1
2244
2213
  })
2245
2214
  ]),
2246
2215
  _: 1
2247
2216
  }, 8, ["modelValue", "error", "label", "placeholder", "readonly"])
2248
- ])) : M("", !0),
2249
- B.value ? (S(), $("div", gl, [
2250
- d(f, {
2217
+ ])) : T("", !0),
2218
+ A.value ? (C(), F("div", gl, [
2219
+ f(u, {
2251
2220
  modelValue: e.fields.tls_verify_enabled,
2252
- "onUpdate:modelValue": s[24] || (s[24] = (y) => e.fields.tls_verify_enabled = y),
2221
+ "onUpdate:modelValue": n[24] || (n[24] = (g) => e.fields.tls_verify_enabled = g),
2253
2222
  "data-testid": "gateway-service-tls-verify-checkbox",
2254
2223
  description: l(r)("gateway_services.form.fields.tls_verify_enabled.help"),
2255
2224
  label: l(r)("gateway_services.form.fields.tls_verify_enabled.label"),
2256
2225
  "label-attributes": { tooltipAttributes: { maxWidth: "400" } }
2257
2226
  }, {
2258
2227
  tooltip: m(() => [
2259
- d(l(Q), {
2228
+ f(l(Z), {
2260
2229
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
2261
2230
  scope: "global"
2262
2231
  }, {
2263
2232
  code1: m(() => [
2264
- I("code", null, P(l(r)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
2233
+ S("code", null, I(l(r)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
2265
2234
  ]),
2266
2235
  _: 1
2267
2236
  })
2268
2237
  ]),
2269
2238
  _: 1
2270
2239
  }, 8, ["modelValue", "description", "label"]),
2271
- e.fields.tls_verify_enabled ? (S(), $("div", yl, [
2272
- d(E, {
2240
+ e.fields.tls_verify_enabled ? (C(), F("div", yl, [
2241
+ f(E, {
2273
2242
  modelValue: e.fields.tls_verify_value,
2274
- "onUpdate:modelValue": s[25] || (s[25] = (y) => e.fields.tls_verify_value = y),
2243
+ "onUpdate:modelValue": n[25] || (n[25] = (g) => e.fields.tls_verify_value = g),
2275
2244
  "data-testid": "gateway-service-tls-verify-true-option",
2276
2245
  label: l(r)("gateway_services.form.fields.tls_verify_option.true.label"),
2277
2246
  "selected-value": !0
2278
2247
  }, null, 8, ["modelValue", "label"])
2279
- ])) : M("", !0),
2280
- e.fields.tls_verify_enabled ? (S(), $("div", _l, [
2281
- d(E, {
2248
+ ])) : T("", !0),
2249
+ e.fields.tls_verify_enabled ? (C(), F("div", _l, [
2250
+ f(E, {
2282
2251
  modelValue: e.fields.tls_verify_value,
2283
- "onUpdate:modelValue": s[26] || (s[26] = (y) => e.fields.tls_verify_value = y),
2252
+ "onUpdate:modelValue": n[26] || (n[26] = (g) => e.fields.tls_verify_value = g),
2284
2253
  "data-testid": "gateway-service-tls-verify-false-option",
2285
2254
  label: l(r)("gateway_services.form.fields.tls_verify_option.false.label"),
2286
2255
  "selected-value": !1
2287
2256
  }, null, 8, ["modelValue", "label"])
2288
- ])) : M("", !0)
2289
- ])) : M("", !0)
2257
+ ])) : T("", !0)
2258
+ ])) : T("", !0)
2290
2259
  ]))
2291
2260
  ]),
2292
2261
  _: 1
@@ -2297,19 +2266,19 @@ const se = {
2297
2266
  ]),
2298
2267
  _: 1
2299
2268
  }, 8, ["description", "hide-info-header", "title"]),
2300
- d(l(Ke), {
2269
+ f(l(Ke), {
2301
2270
  description: l(r)("gateway_services.form.sections.general.description"),
2302
- "hide-info-header": n.hideSectionsInfo,
2271
+ "hide-info-header": c.hideSectionsInfo,
2303
2272
  title: l(r)("gateway_services.form.sections.general.title")
2304
2273
  }, {
2305
2274
  default: m(() => [
2306
- d(U, {
2275
+ f(U, {
2307
2276
  modelValue: e.fields.name,
2308
- "onUpdate:modelValue": s[28] || (s[28] = (y) => e.fields.name = y),
2277
+ "onUpdate:modelValue": n[28] || (n[28] = (g) => e.fields.name = g),
2309
2278
  modelModifiers: { trim: !0 },
2310
2279
  autocomplete: "off",
2311
2280
  "data-testid": "gateway-service-name-input",
2312
- error: we.value,
2281
+ error: ae.value,
2313
2282
  "error-message": ve.value,
2314
2283
  label: l(r)("gateway_services.form.fields.name.label"),
2315
2284
  "label-attributes": {
@@ -2322,16 +2291,16 @@ const se = {
2322
2291
  type: "text",
2323
2292
  onInput: R
2324
2293
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
2325
- d(_e, {
2294
+ f(be, {
2326
2295
  "data-testid": "tags-collapse",
2327
2296
  "trigger-alignment": "leading",
2328
2297
  "trigger-label": l(r)("gateway_services.form.fields.tags.collapse")
2329
2298
  }, {
2330
2299
  default: m(() => [
2331
- I("div", bl, [
2332
- d(U, {
2300
+ S("div", bl, [
2301
+ f(U, {
2333
2302
  modelValue: e.fields.tags,
2334
- "onUpdate:modelValue": s[29] || (s[29] = (y) => e.fields.tags = y),
2303
+ "onUpdate:modelValue": n[29] || (n[29] = (g) => e.fields.tags = g),
2335
2304
  modelModifiers: { trim: !0 },
2336
2305
  autocomplete: "off",
2337
2306
  "data-testid": "gateway-service-tags-input",
@@ -2353,25 +2322,25 @@ const se = {
2353
2322
  ]),
2354
2323
  _: 1
2355
2324
  }, 8, ["description", "hide-info-header", "title"]),
2356
- e.errorMessages.length ? (S(), $e(Ce, {
2325
+ e.errorMessages.length ? (C(), Re(Se, {
2357
2326
  key: 0,
2358
2327
  appearance: "danger",
2359
2328
  "data-testid": "form-error"
2360
2329
  }, {
2361
2330
  default: m(() => [
2362
- I("ul", hl, [
2363
- (S(!0), $(lt, null, ot(e.errorMessages, (y) => (S(), $("li", { key: y }, P(y), 1))), 128))
2331
+ S("ul", hl, [
2332
+ (C(!0), F(tt, null, lt(e.errorMessages, (g) => (C(), F("li", { key: g }, I(g), 1))), 128))
2364
2333
  ])
2365
2334
  ]),
2366
2335
  _: 1
2367
- })) : M("", !0)
2336
+ })) : T("", !0)
2368
2337
  ]),
2369
2338
  _: 3
2370
2339
  }, 8, ["can-submit", "config", "edit-id", "entity-type", "fetch-url", "form-fields", "is-readonly"])
2371
2340
  ]);
2372
2341
  };
2373
2342
  }
2374
- }), Rl = /* @__PURE__ */ Ne(wl, [["__scopeId", "data-v-a94ad8c2"]]), { validateHost: kl, validatePort: Vl, validateProtocol: Cl, validatePath: Sl } = se.useUrlValidators(), Tl = () => ({
2343
+ }), Rl = /* @__PURE__ */ Ne(wl, [["__scopeId", "data-v-a94ad8c2"]]), { validateHost: kl, validatePort: Vl, validateProtocol: Cl, validatePath: Sl } = de.useUrlValidators(), Tl = () => ({
2375
2344
  validateHost: kl,
2376
2345
  validatePort: Vl,
2377
2346
  validateProtocol: Cl,
@@ -2380,7 +2349,7 @@ const se = {
2380
2349
  export {
2381
2350
  xl as GatewayServiceConfigCard,
2382
2351
  Rl as GatewayServiceForm,
2383
- Fl as GatewayServiceList,
2352
+ $l as GatewayServiceList,
2384
2353
  Al as LegacyGatewayServiceForm,
2385
2354
  Tl as useUrlValidator
2386
2355
  };