@kong-ui-public/entities-gateway-services 3.8.29-pr.1756.f5b0b2e2e.0 → 3.8.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as Ve, ref as V, computed as h, watch as ke, onBeforeMount as xe, resolveComponent as A, openBlock as S, createElementBlock as U, createVNode as u, unref as o, withCtx as p, createBlock as Ce, Teleport as Ae, withDirectives as Fe, createTextVNode as E, toDisplayString as _, vShow as $e, createElementVNode as C, withModifiers as we, reactive as Se, onMounted as De, renderSlot as Be, createCommentVNode as L } from "vue";
2
- import { useRouter as Ue } from "vue-router";
3
- import { AddIcon as Ge } from "@kong/icons";
4
- import { createI18n as Le, i18nTComponent as Ke } from "@kong-ui-public/i18n";
5
- import { useAxios as Ee, useFetcher as qe, useDeleteUrlBuilder as Ne, FetcherStatus as Ie, EntityBaseTable as We, EntityFilter as Oe, PermissionsWrapper as le, TableTags as je, EntityToggleModal as He, EntityDeleteModal as Je, EntityTypes as ze, useErrors as Qe, useValidators as Xe, EntityBaseFormType as Te, useGatewayFeatureSupported as Ye, EntityBaseForm as Ze, SupportedEntityType as Me, EntityFormSection as Pe, useHelpers as et, ConfigurationSchemaSection as ne, ConfigurationSchemaType as tt, EntityBaseConfigCard as lt } from "@kong-ui-public/entities-shared";
6
- const ot = {
1
+ import { defineComponent as Se, ref as V, computed as h, watch as Ve, onBeforeMount as Ae, resolveComponent as R, openBlock as w, createElementBlock as I, createVNode as u, unref as o, withCtx as p, createBlock as ne, Teleport as Fe, withDirectives as $e, createTextVNode as E, toDisplayString as _, vShow as De, createElementVNode as S, withModifiers as ce, Fragment as Be, renderList as Le, reactive as Ie, onMounted as Ge, renderSlot as Ke, createCommentVNode as L } from "vue";
2
+ import { useRouter as Ee } from "vue-router";
3
+ import { AddIcon as qe } from "@kong/icons";
4
+ import { createI18n as Ne, i18nTComponent as We } from "@kong-ui-public/i18n";
5
+ import { useAxios as Me, useFetcher as Oe, useDeleteUrlBuilder as je, FetcherStatus as Te, EntityBaseTable as He, EntityFilter as Je, PermissionsWrapper as oe, EntityToggleModal as ze, EntityDeleteModal as Qe, EntityTypes as Xe, useErrors as Ye, useValidators as Ze, EntityBaseFormType as Pe, useGatewayFeatureSupported as et, EntityBaseForm as tt, SupportedEntityType as Re, EntityFormSection as Ue, useHelpers as lt, ConfigurationSchemaSection as de, ConfigurationSchemaType as ot, EntityBaseConfigCard as it } from "@kong-ui-public/entities-shared";
6
+ const st = {
7
7
  create: "New Gateway Service",
8
8
  serverless_create: "Add a Service",
9
9
  copy_id: "Copy ID",
@@ -16,12 +16,12 @@ const ot = {
16
16
  description: "Deleting this Gateway Service will also remove any associated plugins. This action cannot be reversed.",
17
17
  menu_label: "Delete"
18
18
  }
19
- }, it = {
19
+ }, rt = {
20
20
  placeholder: {
21
21
  konnect: "Filter by name",
22
22
  kongManager: "Filter by exact name or ID"
23
23
  }
24
- }, st = {
24
+ }, at = {
25
25
  title: "Gateway Services",
26
26
  list: {
27
27
  toolbar_actions: {
@@ -164,33 +164,33 @@ const ot = {
164
164
  }
165
165
  }
166
166
  }
167
- }, rt = {
167
+ }, nt = {
168
168
  general: "Gateway Services could not be retrieved",
169
169
  delete: "The gateway service could not be deleted at this time.",
170
170
  copy: "Failed to copy to clipboard",
171
171
  urlErrorMessage: "Error: invalid URL"
172
- }, at = {
172
+ }, ct = {
173
173
  success: "Copied {val} to clipboard",
174
174
  success_brief: "Successfully copied to clipboard"
175
- }, nt = {
175
+ }, dt = {
176
176
  gateway_services: "gateway services"
177
- }, ct = {
178
- actions: ot,
179
- search: it,
180
- gateway_services: st,
181
- errors: rt,
182
- copy: at,
183
- glossary: nt
177
+ }, ut = {
178
+ actions: st,
179
+ search: rt,
180
+ gateway_services: at,
181
+ errors: nt,
182
+ copy: ct,
183
+ glossary: dt
184
184
  };
185
- function dt() {
186
- const n = Le("en-us", ct);
185
+ function ft() {
186
+ const n = Ne("en-us", ut);
187
187
  return {
188
188
  i18n: n,
189
- i18nT: Ke(n)
189
+ i18nT: We(n)
190
190
  // Translation component <i18n-t>
191
191
  };
192
192
  }
193
- function ut() {
193
+ function pt() {
194
194
  return {
195
195
  getPortFromProtocol: ($, m) => {
196
196
  const d = [80, 443], r = Number(m);
@@ -212,31 +212,31 @@ function ut() {
212
212
  }
213
213
  };
214
214
  }
215
- const ue = {
216
- useI18n: dt,
217
- usePortFromProtocol: ut
218
- }, ce = "/v2/control-planes/{controlPlaneId}/core-entities", de = "/{workspace}", oe = {
215
+ const pe = {
216
+ useI18n: ft,
217
+ usePortFromProtocol: pt
218
+ }, ue = "/v2/control-planes/{controlPlaneId}/core-entities", fe = "/{workspace}", ie = {
219
219
  list: {
220
220
  konnect: {
221
- all: `${ce}/services`
221
+ all: `${ue}/services`
222
222
  },
223
223
  kongManager: {
224
- all: `${de}/services`
224
+ all: `${fe}/services`
225
225
  }
226
226
  },
227
227
  form: {
228
228
  konnect: {
229
- create: `${ce}/services`,
230
- validate: `${ce}/v1/schemas/json/service/validate`,
231
- edit: `${ce}/services/{id}`
229
+ create: `${ue}/services`,
230
+ validate: `${ue}/v1/schemas/json/service/validate`,
231
+ edit: `${ue}/services/{id}`
232
232
  },
233
233
  kongManager: {
234
- create: `${de}/services`,
235
- validate: `${de}/schemas/services/validate`,
236
- edit: `${de}/services/{id}`
234
+ create: `${fe}/services`,
235
+ validate: `${fe}/schemas/services/validate`,
236
+ edit: `${fe}/services/{id}`
237
237
  }
238
238
  }
239
- }, ft = { class: "kong-ui-entities-gateway-services-list" }, pt = { key: 1 }, mt = /* @__PURE__ */ Ve({
239
+ }, mt = { class: "kong-ui-entities-gateway-services-list" }, vt = { key: 1 }, yt = { key: 1 }, gt = /* @__PURE__ */ Se({
240
240
  __name: "GatewayServiceList",
241
241
  props: {
242
242
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -287,8 +287,8 @@ const ue = {
287
287
  },
288
288
  emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
289
289
  setup(n, { emit: $ }) {
290
- var P;
291
- const m = $, d = n, { i18n: { t: r, formatUnixTimeStamp: M } } = ue.useI18n(), W = Ue(), { axiosInstance: K } = Ee((P = d.config) == null ? void 0 : P.axiosRequestConfig), s = V(1), I = h(() => d.config.app !== "kongManager" || !!d.config.disableSorting), b = {
290
+ var U;
291
+ const m = $, d = n, { i18n: { t: r, formatUnixTimeStamp: x } } = pe.useI18n(), O = Ee(), { axiosInstance: G } = Me((U = d.config) == null ? void 0 : U.axiosRequestConfig), s = V(1), T = h(() => d.config.app !== "kongManager" || !!d.config.disableSorting), b = {
292
292
  // the Name column is non-hidable
293
293
  name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
294
294
  ...d.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
@@ -300,65 +300,65 @@ const ue = {
300
300
  tags: { label: r("gateway_services.list.table_headers.tags"), sortable: !1 },
301
301
  updated_at: { label: r("gateway_services.list.table_headers.updated_at"), sortable: !0 },
302
302
  created_at: { label: r("gateway_services.list.table_headers.created_at"), sortable: !0 }
303
- }, fe = {
303
+ }, me = {
304
304
  columnVisibility: {
305
305
  created_at: !1
306
306
  }
307
- }, pe = b, F = h(() => {
307
+ }, ve = b, F = h(() => {
308
308
  var f, l;
309
- let a = `${d.config.apiBaseUrl}${oe.list[d.config.app].all}`;
309
+ let a = `${d.config.apiBaseUrl}${ie.list[d.config.app].all}`;
310
310
  return d.config.app === "konnect" ? a = a.replace(/{controlPlaneId}/gi, ((f = d.config) == null ? void 0 : f.controlPlaneId) || "") : d.config.app === "kongManager" && (a = a.replace(/\/{workspace}/gi, (l = d.config) != null && l.workspace ? `/${d.config.workspace}` : "")), a;
311
- }), me = h(() => d.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${F.value}`) : new URL(F.value)), D = V(""), w = h(() => {
311
+ }), ye = h(() => d.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${F.value}`) : new URL(F.value)), D = V(""), k = h(() => {
312
312
  const a = d.config.app === "konnect" || d.config.isExactMatch;
313
313
  if (a)
314
314
  return {
315
315
  isExactMatch: a,
316
316
  placeholder: r(`search.placeholder.${d.config.app}`)
317
317
  };
318
- const { name: f, enabled: l, protocol: k, host: c, port: x, path: ae } = b;
318
+ const { name: f, enabled: l, protocol: C, host: c, port: N, path: W } = b;
319
319
  return {
320
320
  isExactMatch: a,
321
- fields: { name: f, enabled: l, protocol: k, host: c, port: x, path: ae },
321
+ fields: { name: f, enabled: l, protocol: C, host: c, port: N, path: W },
322
322
  schema: d.config.filterSchema
323
323
  };
324
- }), { fetcher: j, fetcherState: H } = qe(d.config, F.value), ve = () => {
324
+ }), { fetcher: H, fetcherState: J } = Oe(d.config, F.value), ge = () => {
325
325
  D.value = "";
326
326
  }, e = () => {
327
327
  s.value++;
328
- }, y = V(null), J = V(!1), ge = h(() => ({
328
+ }, g = V(null), z = V(!1), _e = h(() => ({
329
329
  ctaPath: d.config.createRoute,
330
- ctaText: g.value ? d.isServerless ? r("actions.serverless_create") : r("actions.create") : void 0,
330
+ ctaText: y.value ? d.isServerless ? r("actions.serverless_create") : r("actions.create") : void 0,
331
331
  message: `${r("gateway_services.list.empty_state.description")}${d.config.additionMessageForEmptyState ? ` ${d.config.additionMessageForEmptyState}` : ""}`,
332
- title: g.value ? d.isServerless ? r("gateway_services.list.empty_state.serverless_title") : r("gateway_services.list.empty_state.title") : r("gateway_services.title")
333
- })), O = V(!1), T = V(null), B = h(() => {
332
+ title: y.value ? d.isServerless ? r("gateway_services.list.empty_state.serverless_title") : r("gateway_services.list.empty_state.title") : r("gateway_services.title")
333
+ })), j = V(!1), P = V(null), B = h(() => {
334
334
  const a = {
335
335
  action: "disable",
336
336
  id: "",
337
337
  name: ""
338
338
  };
339
- if (T.value) {
340
- const { enabled: f, id: l, name: k } = T.value;
341
- a.action = f ? "disable" : "enable", a.id = l, a.name = k || l;
339
+ if (P.value) {
340
+ const { enabled: f, id: l, name: C } = P.value;
341
+ a.action = f ? "disable" : "enable", a.id = l, a.name = C || l;
342
342
  }
343
343
  return a;
344
- }), ie = (a) => {
345
- O.value = !0, T.value = a;
346
- }, z = () => {
347
- O.value = !1, T.value = null;
348
- }, se = async () => {
349
- var k, c;
350
- if (!await ((k = d.canEdit) == null ? void 0 : k.call(d, T.value)) || !T.value)
344
+ }), se = (a) => {
345
+ j.value = !0, P.value = a;
346
+ }, Q = () => {
347
+ j.value = !1, P.value = null;
348
+ }, re = async () => {
349
+ var C, c;
350
+ if (!await ((C = d.canEdit) == null ? void 0 : C.call(d, P.value)) || !P.value)
351
351
  return;
352
- const f = `${me.value.href}/${T.value.id}`, l = !T.value.enabled;
352
+ const f = `${ye.value.href}/${P.value.id}`, l = !P.value.enabled;
353
353
  try {
354
- const { data: x } = ((c = d.config) == null ? void 0 : c.app) === "konnect" ? await K.put(f, { ...T.value, enabled: l }) : await K.patch(f, { ...T.value, enabled: l });
355
- m("toggle:success", x), T.value.enabled = l;
356
- } catch (x) {
357
- m("error", x);
354
+ const { data: N } = ((c = d.config) == null ? void 0 : c.app) === "konnect" ? await G.put(f, { ...P.value, enabled: l }) : await G.patch(f, { ...P.value, enabled: l });
355
+ m("toggle:success", N), P.value.enabled = l;
356
+ } catch (N) {
357
+ m("error", N);
358
358
  }
359
- }, ye = (a) => {
360
- d.config.getControlPlaneRoute && W.push(d.config.getControlPlaneRoute(a));
361
- }, _e = (a, f) => {
359
+ }, be = (a) => {
360
+ d.config.getControlPlaneRoute && O.push(d.config.getControlPlaneRoute(a));
361
+ }, he = (a, f) => {
362
362
  const l = a.id;
363
363
  if (!f(l)) {
364
364
  m("copy:error", {
@@ -373,7 +373,7 @@ const ue = {
373
373
  field: "id",
374
374
  message: r("copy.success", { val: l })
375
375
  });
376
- }, be = (a, f) => {
376
+ }, we = (a, f) => {
377
377
  const l = JSON.stringify(a);
378
378
  if (!f(l)) {
379
379
  m("copy:error", {
@@ -386,95 +386,95 @@ const ue = {
386
386
  entity: a,
387
387
  message: r("copy.success_brief")
388
388
  });
389
- }, he = async (a) => {
389
+ }, ke = async (a) => {
390
390
  var l;
391
- await ((l = d.canRetrieve) == null ? void 0 : l.call(d, a)) && W.push(d.config.getViewRoute(a.id));
392
- }, Q = (a) => ({
391
+ await ((l = d.canRetrieve) == null ? void 0 : l.call(d, a)) && O.push(d.config.getViewRoute(a.id));
392
+ }, X = (a) => ({
393
393
  label: r("actions.view"),
394
394
  to: d.config.getViewRoute(a)
395
- }), re = (a) => ({
395
+ }), ae = (a) => ({
396
396
  label: r("actions.edit"),
397
397
  to: d.config.getEditRoute(a)
398
- }), R = V(void 0), X = V(!1), q = V(!1), Y = V(""), N = Ne(d.config, F.value), Z = (a) => {
399
- R.value = a, X.value = !0, Y.value = "";
400
- }, ee = () => {
401
- X.value = !1, R.value = void 0;
398
+ }), A = V(void 0), Y = V(!1), K = V(!1), Z = V(""), q = je(d.config, F.value), ee = (a) => {
399
+ A.value = a, Y.value = !0, Z.value = "";
400
+ }, te = () => {
401
+ Y.value = !1, A.value = void 0;
402
402
  }, t = async () => {
403
403
  var a, f, l;
404
- if ((a = R.value) != null && a.id) {
405
- q.value = !0;
404
+ if ((a = A.value) != null && a.id) {
405
+ K.value = !0;
406
406
  try {
407
- await K.delete(N(R.value.id)), m("delete:success", R.value), ee(), s.value++;
408
- } catch (k) {
409
- Y.value = ((l = (f = k.response) == null ? void 0 : f.data) == null ? void 0 : l.message) || k.message || r("errors.delete"), m("error", k);
407
+ await G.delete(q(A.value.id)), m("delete:success", A.value), te(), s.value++;
408
+ } catch (C) {
409
+ Z.value = ((l = (f = C.response) == null ? void 0 : f.data) == null ? void 0 : l.message) || C.message || r("errors.delete"), m("error", C);
410
410
  } finally {
411
- q.value = !1;
411
+ K.value = !1;
412
412
  }
413
413
  }
414
414
  }, i = V(!1);
415
- ke(H, (a) => {
416
- var f, l, k, c;
417
- if (Array.isArray((f = a == null ? void 0 : a.response) == null ? void 0 : f.data) && (i.value = a.response.data.length > 0), a.status === Ie.NoRecords ? J.value = !0 : J.value = !1, a.status === Ie.Error) {
418
- y.value = {
415
+ Ve(J, (a) => {
416
+ var f, l, C, c;
417
+ if (Array.isArray((f = a == null ? void 0 : a.response) == null ? void 0 : f.data) && (i.value = a.response.data.length > 0), a.status === Te.NoRecords ? z.value = !0 : z.value = !1, a.status === Te.Error) {
418
+ g.value = {
419
419
  title: r("errors.general")
420
- }, (c = (k = (l = a.error) == null ? void 0 : l.response) == null ? void 0 : k.data) != null && c.message && (y.value.message = a.error.response.data.message), m("error", a.error);
420
+ }, (c = (C = (l = a.error) == null ? void 0 : l.response) == null ? void 0 : C.data) != null && c.message && (g.value.message = a.error.response.data.message), m("error", a.error);
421
421
  return;
422
422
  }
423
- y.value = null;
423
+ g.value = null;
424
424
  });
425
- const g = V(!1);
426
- return xe(async () => {
427
- g.value = await d.canCreate();
425
+ const y = V(!1);
426
+ return Ae(async () => {
427
+ y.value = await d.canCreate();
428
428
  }), (a, f) => {
429
- const l = A("KButton"), k = A("KBadge"), c = A("KInputSwitch"), x = A("KDropdownItem"), ae = A("KClipboardProvider");
430
- return S(), U("div", ft, [
431
- u(o(We), {
429
+ const l = R("KButton"), C = R("KBadge"), c = R("KInputSwitch"), N = R("KTruncate"), W = R("KDropdownItem"), Ce = R("KClipboardProvider");
430
+ return w(), I("div", mt, [
431
+ u(o(He), {
432
432
  "cache-identifier": n.cacheIdentifier,
433
- "default-table-preferences": fe,
434
- "disable-sorting": I.value,
435
- "empty-state-options": ge.value,
433
+ "default-table-preferences": me,
434
+ "disable-sorting": T.value,
435
+ "empty-state-options": _e.value,
436
436
  "enable-entity-actions": "",
437
- "error-message": y.value,
438
- fetcher: o(j),
437
+ "error-message": g.value,
438
+ fetcher: o(H),
439
439
  "fetcher-cache-key": s.value,
440
- "hide-toolbar": J.value,
440
+ "hide-toolbar": z.value,
441
441
  "pagination-type": "offset",
442
442
  "preferences-storage-key": "kong-ui-entities-gateway-services-list",
443
443
  query: D.value,
444
- "table-headers": o(pe),
445
- onClearSearchInput: ve,
446
- "onClick:row": f[2] || (f[2] = (v) => he(v)),
444
+ "table-headers": o(ve),
445
+ onClearSearchInput: ge,
446
+ "onClick:row": f[3] || (f[3] = (v) => ke(v)),
447
447
  onSort: e
448
448
  }, {
449
449
  "toolbar-filter": p(() => [
450
- u(o(Oe), {
450
+ u(o(Je), {
451
451
  modelValue: D.value,
452
452
  "onUpdate:modelValue": f[0] || (f[0] = (v) => D.value = v),
453
- config: w.value
453
+ config: k.value
454
454
  }, null, 8, ["modelValue", "config"])
455
455
  ]),
456
456
  "toolbar-button": p(() => [
457
- (S(), Ce(Ae, {
457
+ (w(), ne(Fe, {
458
458
  disabled: !n.useActionOutside,
459
459
  to: "#kong-ui-app-page-header-action-button"
460
460
  }, [
461
- u(o(le), {
461
+ u(o(oe), {
462
462
  "auth-function": () => n.canCreate()
463
463
  }, {
464
464
  default: p(() => [
465
- Fe(u(l, {
465
+ $e(u(l, {
466
466
  appearance: "primary",
467
467
  "data-testid": "toolbar-add-gateway-service",
468
468
  size: n.useActionOutside ? "medium" : "large",
469
469
  to: n.config.createRoute
470
470
  }, {
471
471
  default: p(() => [
472
- u(o(Ge)),
472
+ u(o(qe)),
473
473
  E(" " + _(o(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
474
474
  ]),
475
475
  _: 1
476
476
  }, 8, ["size", "to"]), [
477
- [$e, i.value]
477
+ [De, i.value]
478
478
  ])
479
479
  ]),
480
480
  _: 1
@@ -482,40 +482,40 @@ const ue = {
482
482
  ], 8, ["disabled"]))
483
483
  ]),
484
484
  name: p(({ rowValue: v }) => [
485
- C("b", null, _(v ?? "-"), 1)
485
+ S("b", null, _(v ?? "-"), 1)
486
486
  ]),
487
487
  control_plane: p(({ row: v }) => {
488
- var G;
488
+ var M;
489
489
  return [
490
- (G = v.x_meta) != null && G.cluster_id ? (S(), Ce(k, {
490
+ (M = v.x_meta) != null && M.cluster_id ? (w(), ne(C, {
491
491
  key: 0,
492
492
  tooltip: v.x_meta.cluster_id,
493
493
  "truncation-tooltip": "",
494
- onClick: we((te) => ye(v.x_meta.cluster_id), ["stop"])
494
+ onClick: ce((le) => be(v.x_meta.cluster_id), ["stop"])
495
495
  }, {
496
496
  default: p(() => [
497
497
  E(_(v.x_meta.cluster_id), 1)
498
498
  ]),
499
499
  _: 2
500
- }, 1032, ["tooltip", "onClick"])) : (S(), U("b", pt, "-"))
500
+ }, 1032, ["tooltip", "onClick"])) : (w(), I("b", vt, "-"))
501
501
  ];
502
502
  }),
503
503
  enabled: p(({ row: v }) => [
504
- u(o(le), {
504
+ u(o(oe), {
505
505
  "auth-function": () => n.canEdit(v),
506
506
  "force-show": ""
507
507
  }, {
508
- default: p(({ isAllowed: G }) => [
509
- C("div", {
510
- onClick: f[1] || (f[1] = we(() => {
508
+ default: p(({ isAllowed: M }) => [
509
+ S("div", {
510
+ onClick: f[1] || (f[1] = ce(() => {
511
511
  }, ["stop"]))
512
512
  }, [
513
513
  u(c, {
514
514
  modelValue: v.enabled,
515
- "onUpdate:modelValue": (te) => v.enabled = te,
515
+ "onUpdate:modelValue": (le) => v.enabled = le,
516
516
  "data-testid": `row-${v.id}-toggle-input`,
517
- disabled: !G,
518
- onClick: we((te) => ie(v), ["prevent"])
517
+ disabled: !M,
518
+ onClick: ce((le) => se(v), ["prevent"])
519
519
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "onClick"])
520
520
  ])
521
521
  ]),
@@ -523,20 +523,34 @@ const ue = {
523
523
  }, 1032, ["auth-function"])
524
524
  ]),
525
525
  tags: p(({ rowValue: v }) => [
526
- u(o(je), { tags: v }, null, 8, ["tags"])
526
+ (v == null ? void 0 : v.length) > 0 ? (w(), ne(N, { key: 0 }, {
527
+ default: p(() => [
528
+ (w(!0), I(Be, null, Le(v, (M) => (w(), ne(C, {
529
+ key: M,
530
+ onClick: f[2] || (f[2] = ce(() => {
531
+ }, ["stop"]))
532
+ }, {
533
+ default: p(() => [
534
+ E(_(M), 1)
535
+ ]),
536
+ _: 2
537
+ }, 1024))), 128))
538
+ ]),
539
+ _: 2
540
+ }, 1024)) : (w(), I("span", yt, "-"))
527
541
  ]),
528
542
  created_at: p(({ rowValue: v }) => [
529
- E(_(o(M)(v)), 1)
543
+ E(_(o(x)(v)), 1)
530
544
  ]),
531
545
  updated_at: p(({ rowValue: v }) => [
532
- E(_(o(M)(v)), 1)
546
+ E(_(o(x)(v)), 1)
533
547
  ]),
534
548
  actions: p(({ row: v }) => [
535
- u(ae, null, {
536
- default: p(({ copyToClipboard: G }) => [
537
- u(x, {
549
+ u(Ce, null, {
550
+ default: p(({ copyToClipboard: M }) => [
551
+ u(W, {
538
552
  "data-testid": "action-entity-copy-id",
539
- onClick: (te) => _e(v, G)
553
+ onClick: (le) => he(v, M)
540
554
  }, {
541
555
  default: p(() => [
542
556
  E(_(o(r)("actions.copy_id")), 1)
@@ -546,11 +560,11 @@ const ue = {
546
560
  ]),
547
561
  _: 2
548
562
  }, 1024),
549
- u(ae, null, {
550
- default: p(({ copyToClipboard: G }) => [
551
- u(x, {
563
+ u(Ce, null, {
564
+ default: p(({ copyToClipboard: M }) => [
565
+ u(W, {
552
566
  "data-testid": "action-entity-copy-json",
553
- onClick: (te) => be(v, G)
567
+ onClick: (le) => we(v, M)
554
568
  }, {
555
569
  default: p(() => [
556
570
  E(_(o(r)("actions.copy_json")), 1)
@@ -560,38 +574,38 @@ const ue = {
560
574
  ]),
561
575
  _: 2
562
576
  }, 1024),
563
- u(o(le), {
577
+ u(o(oe), {
564
578
  "auth-function": () => n.canRetrieve(v)
565
579
  }, {
566
580
  default: p(() => [
567
- u(x, {
581
+ u(W, {
568
582
  "data-testid": "action-entity-view",
569
583
  "has-divider": "",
570
- item: Q(v.id)
584
+ item: X(v.id)
571
585
  }, null, 8, ["item"])
572
586
  ]),
573
587
  _: 2
574
588
  }, 1032, ["auth-function"]),
575
- u(o(le), {
589
+ u(o(oe), {
576
590
  "auth-function": () => n.canEdit(v)
577
591
  }, {
578
592
  default: p(() => [
579
- u(x, {
593
+ u(W, {
580
594
  "data-testid": "action-entity-edit",
581
- item: re(v.id)
595
+ item: ae(v.id)
582
596
  }, null, 8, ["item"])
583
597
  ]),
584
598
  _: 2
585
599
  }, 1032, ["auth-function"]),
586
- u(o(le), {
600
+ u(o(oe), {
587
601
  "auth-function": () => n.canDelete(v)
588
602
  }, {
589
603
  default: p(() => [
590
- u(x, {
604
+ u(W, {
591
605
  danger: "",
592
606
  "data-testid": "action-entity-delete",
593
607
  "has-divider": "",
594
- onClick: (G) => Z(v)
608
+ onClick: (M) => ee(v)
595
609
  }, {
596
610
  default: p(() => [
597
611
  E(_(o(r)("actions.delete.menu_label")), 1)
@@ -604,57 +618,57 @@ const ue = {
604
618
  ]),
605
619
  _: 1
606
620
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "hide-toolbar", "query", "table-headers"]),
607
- u(o(He), {
621
+ u(o(ze), {
608
622
  action: B.value.action,
609
623
  "entity-id": B.value.id,
610
624
  "entity-name": B.value.name,
611
625
  "entity-type": o(r)("glossary.gateway_services"),
612
- "on-confirm": se,
613
- visible: O.value,
614
- onCancel: z,
615
- onProceed: z
626
+ "on-confirm": re,
627
+ visible: j.value,
628
+ onCancel: Q,
629
+ onProceed: Q
616
630
  }, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
617
- u(o(Je), {
618
- "action-pending": q.value,
631
+ u(o(Qe), {
632
+ "action-pending": K.value,
619
633
  description: o(r)("actions.delete.description"),
620
- "entity-name": R.value && (R.value.name || R.value.id),
621
- "entity-type": o(ze).GatewayService,
622
- error: Y.value,
634
+ "entity-name": A.value && (A.value.name || A.value.id),
635
+ "entity-type": o(Xe).GatewayService,
636
+ error: Z.value,
623
637
  title: o(r)("actions.delete.title"),
624
- visible: X.value,
625
- onCancel: ee,
638
+ visible: Y.value,
639
+ onCancel: te,
626
640
  onProceed: t
627
641
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
628
642
  ]);
629
643
  };
630
644
  }
631
- }), Re = (n, $) => {
645
+ }), xe = (n, $) => {
632
646
  const m = n.__vccOpts || n;
633
647
  for (const [d, r] of $)
634
648
  m[d] = r;
635
649
  return m;
636
- }, Gt = /* @__PURE__ */ Re(mt, [["__scopeId", "data-v-d7870a2d"]]), vt = { class: "kong-ui-entities-gateway-service-form" }, gt = { key: 0 }, yt = { class: "gateway-service-form-traffic-label" }, _t = { class: "gateway-service-form-margin-bottom" }, bt = {
650
+ }, qt = /* @__PURE__ */ xe(gt, [["__scopeId", "data-v-11c07068"]]), _t = { class: "kong-ui-entities-gateway-service-form" }, bt = { key: 0 }, ht = { class: "gateway-service-form-traffic-label" }, wt = { class: "gateway-service-form-margin-bottom" }, kt = {
637
651
  key: 0,
638
652
  class: "gateway-service-form-group-fields"
639
- }, ht = {
653
+ }, Ct = {
640
654
  key: 1,
641
655
  class: "gateway-service-form-group-fields"
642
- }, wt = { key: 0 }, kt = { class: "gateway-service-form-margin-top" }, Vt = { class: "gateway-service-form-margin-bottom" }, Ct = { class: "gateway-service-form-margin-bottom" }, St = { class: "gateway-service-form-margin-bottom" }, It = { class: "gateway-service-form-margin-bottom" }, Tt = {
656
+ }, Vt = { key: 0 }, St = { class: "gateway-service-form-margin-top" }, It = { class: "gateway-service-form-margin-bottom" }, Tt = { class: "gateway-service-form-margin-bottom" }, Pt = { class: "gateway-service-form-margin-bottom" }, Ut = { class: "gateway-service-form-margin-bottom" }, Et = {
643
657
  key: 0,
644
658
  class: "gateway-service-form-margin-bottom"
645
- }, Pt = {
659
+ }, Mt = {
646
660
  key: 1,
647
661
  class: "gateway-service-form-margin-bottom"
648
- }, Ut = {
662
+ }, Rt = {
649
663
  key: 2,
650
664
  class: "gateway-service-form-margin-bottom"
651
- }, Et = {
665
+ }, xt = {
652
666
  key: 0,
653
667
  class: "checkbox-aligned-radio"
654
- }, Mt = {
668
+ }, At = {
655
669
  key: 1,
656
670
  class: "checkbox-aligned-radio"
657
- }, Rt = /* @__PURE__ */ Ve({
671
+ }, Ft = /* @__PURE__ */ Se({
658
672
  __name: "GatewayServiceForm",
659
673
  props: {
660
674
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -678,8 +692,8 @@ const ue = {
678
692
  },
679
693
  emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
680
694
  setup(n, { expose: $, emit: m }) {
681
- var ee;
682
- const d = m, r = n, M = V(!0), W = Ue(), { i18nT: K, i18n: { t: s } } = ue.useI18n(), { getMessageFromError: I } = Qe(), { axiosInstance: b } = Ee((ee = r.config) == null ? void 0 : ee.axiosRequestConfig), fe = Xe(), pe = h(() => oe.form[r.config.app].edit), F = h(() => r.gatewayServiceId ? Te.Edit : Te.Create), me = V(!1), D = h(() => !!r.gatewayServiceId), w = V(D.value ? "protocol" : "url"), j = ue.usePortFromProtocol(), H = V(""), ve = h(() => !!H.value), e = Se({
695
+ var te;
696
+ const d = m, r = n, x = V(!0), O = Ee(), { i18nT: G, i18n: { t: s } } = pe.useI18n(), { getMessageFromError: T } = Ye(), { axiosInstance: b } = Me((te = r.config) == null ? void 0 : te.axiosRequestConfig), me = Ze(), ve = h(() => ie.form[r.config.app].edit), F = h(() => r.gatewayServiceId ? Pe.Edit : Pe.Create), ye = V(!1), D = h(() => !!r.gatewayServiceId), k = V(D.value ? "protocol" : "url"), H = pe.usePortFromProtocol(), J = V(""), ge = h(() => !!J.value), e = Ie({
683
697
  fields: {
684
698
  name: "",
685
699
  protocol: "http",
@@ -699,7 +713,7 @@ const ue = {
699
713
  },
700
714
  isReadonly: !1,
701
715
  errorMessage: ""
702
- }), y = Se({
716
+ }), g = Ie({
703
717
  name: "",
704
718
  protocol: "http",
705
719
  host: "",
@@ -715,13 +729,13 @@ const ue = {
715
729
  tls_verify_enabled: !1,
716
730
  tls_verify_value: !1,
717
731
  tags: ""
718
- }), J = r.config.app === "konnect" || Ye({
732
+ }), z = r.config.app === "konnect" || et({
719
733
  gatewayInfo: r.config.gatewayInfo,
720
734
  // 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
721
735
  supportedRange: {
722
736
  enterprise: ["3.0"]
723
737
  }
724
- }), ge = [
738
+ }), _e = [
725
739
  {
726
740
  label: s("gateway_services.form.fields.protocol.options.http"),
727
741
  value: "http",
@@ -757,7 +771,7 @@ const ue = {
757
771
  value: "grpcs",
758
772
  group: "grpc"
759
773
  },
760
- ...J ? [
774
+ ...z ? [
761
775
  {
762
776
  label: s("gateway_services.form.fields.protocol.options.ws"),
763
777
  value: "ws",
@@ -774,60 +788,60 @@ const ue = {
774
788
  value: "udp",
775
789
  group: "udp"
776
790
  }
777
- ], O = { url: "url", protocol: "protocol" }, T = (t, i) => {
791
+ ], j = { url: "url", protocol: "protocol" }, P = (t, i) => {
778
792
  i.value;
779
- }, B = (t) => t ? parseFloat(t) : 0, ie = () => {
780
- M.value = !0, e.errorMessage = "", e.fields.host = y.host, e.fields.path = y.path, e.fields.port = y.port, e.fields.protocol = y.protocol, e.fields.url = y.url, e.fields.retries = y.retries, e.fields.connect_timeout = y.connect_timeout, e.fields.write_timeout = y.write_timeout, e.fields.read_timeout = y.read_timeout, e.fields.client_certificate = y.client_certificate, e.fields.ca_certificates = y.ca_certificates, e.fields.tls_verify_enabled = y.tls_verify_enabled, e.fields.tls_verify_value = y.tls_verify_value;
781
- }, z = () => {
782
- if (e.fields.url && w.value === "url")
793
+ }, B = (t) => t ? parseFloat(t) : 0, se = () => {
794
+ x.value = !0, e.errorMessage = "", e.fields.host = g.host, e.fields.path = g.path, e.fields.port = g.port, e.fields.protocol = g.protocol, e.fields.url = g.url, e.fields.retries = g.retries, e.fields.connect_timeout = g.connect_timeout, e.fields.write_timeout = g.write_timeout, e.fields.read_timeout = g.read_timeout, e.fields.client_certificate = g.client_certificate, e.fields.ca_certificates = g.ca_certificates, e.fields.tls_verify_enabled = g.tls_verify_enabled, e.fields.tls_verify_value = g.tls_verify_value;
795
+ }, Q = () => {
796
+ if (e.fields.url && k.value === "url")
783
797
  try {
784
798
  const t = new URL(e.fields.url);
785
799
  e.errorMessage = "", e.fields.protocol = t.protocol.slice(0, -1), e.fields.host = t.hostname, e.fields.path = t.pathname;
786
800
  const i = Number(t.port);
787
- me.value = !!i, e.fields.port = i || j.getPortFromProtocol(e.fields.protocol), e.errorMessage = "", d("url-valid:success");
801
+ ye.value = !!i, e.fields.port = i || H.getPortFromProtocol(e.fields.protocol), e.errorMessage = "", d("url-valid:success");
788
802
  } catch (t) {
789
- e.errorMessage = s("errors.urlErrorMessage"), d("url-valid:error", I(t));
803
+ e.errorMessage = s("errors.urlErrorMessage"), d("url-valid:error", T(t));
790
804
  }
791
805
  else
792
806
  d("url-valid:success"), e.errorMessage = "";
793
- }, se = h(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), ye = h(() => {
794
- if (w.value === "url")
807
+ }, re = h(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), be = h(() => {
808
+ if (k.value === "url")
795
809
  return !0;
796
810
  const t = ["https", "wss", "tls"].includes(e.fields.protocol);
797
- return w.value === "protocol" && t;
798
- }), _e = h(() => {
799
- if (w.value === "url")
811
+ return k.value === "protocol" && t;
812
+ }), he = h(() => {
813
+ if (k.value === "url")
800
814
  return !0;
801
815
  const t = ["https", "tls"].includes(e.fields.protocol);
802
- return w.value === "protocol" && t;
803
- }), be = h(() => {
804
- if (w.value === "url")
816
+ return k.value === "protocol" && t;
817
+ }), we = h(() => {
818
+ if (k.value === "url")
805
819
  return !0;
806
820
  const t = ["https", "wss", "tls"].includes(e.fields.protocol);
807
- return w.value === "protocol" && t;
808
- }), he = (t) => {
809
- H.value = fe.utf8Name(t);
810
- }, Q = h(() => D.value && JSON.stringify(e.fields) !== JSON.stringify(y) || w.value === "url" && !!e.fields.url || w.value === "protocol" && !!e.fields.host), re = (t) => {
811
- var i, g, P;
812
- e.fields.name = (t == null ? void 0 : t.name) || "", e.fields.tags = ((i = t == null ? void 0 : t.tags) == null ? void 0 : i.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 = ((g = t == null ? void 0 : t.ca_certificates) == null ? void 0 : g.join(",")) || "", e.fields.client_certificate = ((P = t == null ? void 0 : t.client_certificate) == null ? void 0 : P.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(y, e.fields);
813
- }, R = () => {
814
- W.push(r.config.cancelRoute);
815
- }, X = h(() => {
816
- var i, g;
817
- let t = `${r.config.apiBaseUrl}${oe.form[r.config.app].validate}`;
818
- return r.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((i = r.config) == null ? void 0 : i.controlPlaneId) || "") : r.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (g = r.config) != null && g.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
819
- }), q = h(() => {
820
- var i, g;
821
- let t = `${r.config.apiBaseUrl}${oe.form[r.config.app][F.value]}`;
822
- return r.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((i = r.config) == null ? void 0 : i.controlPlaneId) || "") : r.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (g = r.config) != null && g.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
823
- }), Y = (t) => {
821
+ return k.value === "protocol" && t;
822
+ }), ke = (t) => {
823
+ J.value = me.utf8Name(t);
824
+ }, X = h(() => D.value && JSON.stringify(e.fields) !== JSON.stringify(g) || k.value === "url" && !!e.fields.url || k.value === "protocol" && !!e.fields.host), ae = (t) => {
825
+ var i, y, U;
826
+ e.fields.name = (t == null ? void 0 : t.name) || "", e.fields.tags = ((i = t == null ? void 0 : t.tags) == null ? void 0 : i.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 = ((y = t == null ? void 0 : t.ca_certificates) == null ? void 0 : y.join(",")) || "", e.fields.client_certificate = ((U = t == null ? void 0 : t.client_certificate) == null ? void 0 : U.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(g, e.fields);
827
+ }, A = () => {
828
+ O.push(r.config.cancelRoute);
829
+ }, Y = h(() => {
830
+ var i, y;
831
+ let t = `${r.config.apiBaseUrl}${ie.form[r.config.app].validate}`;
832
+ return r.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((i = r.config) == null ? void 0 : i.controlPlaneId) || "") : r.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (y = r.config) != null && y.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
833
+ }), K = h(() => {
834
+ var i, y;
835
+ let t = `${r.config.apiBaseUrl}${ie.form[r.config.app][F.value]}`;
836
+ return r.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((i = r.config) == null ? void 0 : i.controlPlaneId) || "") : r.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (y = r.config) != null && y.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
837
+ }), Z = (t) => {
824
838
  let i = "";
825
839
  t.url && (i = new URL(t.url).protocol), (["https", "wss", "tls"].includes(t.protocol) || ["https", "wss", "tls"].includes(i)) && (t.tls_verify = t.tls_verify_enabled ? t.tls_verify_value : null), delete t.tls_verify_enabled, delete t.tls_verify_value;
826
- }, N = h(() => {
827
- var i, g, P, a;
840
+ }, q = h(() => {
841
+ var i, y, U, a;
828
842
  const t = {
829
843
  name: e.fields.name || null,
830
- tags: e.fields.tags ? (P = (g = (i = e.fields.tags) == null ? void 0 : i.split(",")) == null ? void 0 : g.map((f) => String(f || "").trim())) == null ? void 0 : P.filter((f) => f !== "") : null,
844
+ tags: e.fields.tags ? (U = (y = (i = e.fields.tags) == null ? void 0 : i.split(",")) == null ? void 0 : y.map((f) => String(f || "").trim())) == null ? void 0 : U.filter((f) => f !== "") : null,
831
845
  protocol: e.fields.protocol,
832
846
  path: e.fields.path || null,
833
847
  read_timeout: e.fields.read_timeout,
@@ -842,77 +856,77 @@ const ue = {
842
856
  port: e.fields.port,
843
857
  url: e.fields.url
844
858
  };
845
- 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), se.value || (t.path = null), F.value === "create" ? w.value === "url" ? (delete t.protocol, delete t.host, delete t.path, r.config.app === "konnect" && delete t.port) : delete t.url : F.value === "edit" && delete t.url, t;
846
- }), Z = async () => {
847
- var t, i, g, P;
859
+ 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), re.value || (t.path = null), F.value === "create" ? k.value === "url" ? (delete t.protocol, delete t.host, delete t.path, r.config.app === "konnect" && delete t.port) : delete t.url : F.value === "edit" && delete t.url, t;
860
+ }), ee = async () => {
861
+ var t, i, y, U;
848
862
  try {
849
- e.isReadonly = !0, z();
850
- const a = N.value;
851
- Y(a);
863
+ e.isReadonly = !0, Q();
864
+ const a = q.value;
865
+ Z(a);
852
866
  let f;
853
- if (await b.post(X.value, a), F.value === "create" ? f = await b.post(q.value, a) : F.value === "edit" && (f = ((t = r.config) == null ? void 0 : t.app) === "konnect" ? await b.put(q.value, a) : await b.patch(q.value, a)), f) {
867
+ if (await b.post(Y.value, a), F.value === "create" ? f = await b.post(K.value, a) : F.value === "edit" && (f = ((t = r.config) == null ? void 0 : t.app) === "konnect" ? await b.put(K.value, a) : await b.patch(K.value, a)), f) {
854
868
  const { data: l } = f;
855
- e.fields.name = (l == null ? void 0 : l.name) || "", e.fields.port = l.port || j.getPortFromProtocol(l.protocol), e.fields.protocol = (l == null ? void 0 : l.protocol) || "http", e.fields.host = (l == null ? void 0 : l.host) || "", e.fields.path = (l == null ? void 0 : l.path) || "", e.fields.url = (l == null ? void 0 : l.url) || "", e.fields.retries = l != null && l.retries || (l == null ? void 0 : l.retries) === 0 ? l == null ? void 0 : l.retries : 5, e.fields.connect_timeout = l != null && l.connect_timeout || (l == null ? void 0 : l.connect_timeout) === 0 ? l == null ? void 0 : l.connect_timeout : 6e4, e.fields.write_timeout = l != null && l.write_timeout || (l == null ? void 0 : l.write_timeout) === 0 ? l == null ? void 0 : l.write_timeout : 6e4, e.fields.read_timeout = l != null && l.read_timeout || (l == null ? void 0 : l.read_timeout) === 0 ? l == null ? void 0 : l.read_timeout : 6e4, e.fields.client_certificate = ((i = l == null ? void 0 : l.client_certificate) == null ? void 0 : i.id) || "", e.fields.ca_certificates = (g = l == null ? void 0 : l.ca_certificates) != null && g.length ? l == null ? void 0 : l.ca_certificates.join(",") : "", e.fields.tls_verify_enabled = (l == null ? void 0 : l.tls_verify) !== "" && (l == null ? void 0 : l.tls_verify) !== null && (l == null ? void 0 : l.tls_verify) !== void 0, e.fields.tls_verify_value = e.fields.tls_verify_enabled && (l == null ? void 0 : l.tls_verify), e.fields.tags = (P = l == null ? void 0 : l.tags) != null && P.length ? l.tags.join(", ") : "", Object.assign(y, e.fields), d("update", f == null ? void 0 : f.data);
869
+ e.fields.name = (l == null ? void 0 : l.name) || "", e.fields.port = l.port || H.getPortFromProtocol(l.protocol), e.fields.protocol = (l == null ? void 0 : l.protocol) || "http", e.fields.host = (l == null ? void 0 : l.host) || "", e.fields.path = (l == null ? void 0 : l.path) || "", e.fields.url = (l == null ? void 0 : l.url) || "", e.fields.retries = l != null && l.retries || (l == null ? void 0 : l.retries) === 0 ? l == null ? void 0 : l.retries : 5, e.fields.connect_timeout = l != null && l.connect_timeout || (l == null ? void 0 : l.connect_timeout) === 0 ? l == null ? void 0 : l.connect_timeout : 6e4, e.fields.write_timeout = l != null && l.write_timeout || (l == null ? void 0 : l.write_timeout) === 0 ? l == null ? void 0 : l.write_timeout : 6e4, e.fields.read_timeout = l != null && l.read_timeout || (l == null ? void 0 : l.read_timeout) === 0 ? l == null ? void 0 : l.read_timeout : 6e4, e.fields.client_certificate = ((i = l == null ? void 0 : l.client_certificate) == null ? void 0 : i.id) || "", e.fields.ca_certificates = (y = l == null ? void 0 : l.ca_certificates) != null && y.length ? l == null ? void 0 : l.ca_certificates.join(",") : "", e.fields.tls_verify_enabled = (l == null ? void 0 : l.tls_verify) !== "" && (l == null ? void 0 : l.tls_verify) !== null && (l == null ? void 0 : l.tls_verify) !== void 0, e.fields.tls_verify_value = e.fields.tls_verify_enabled && (l == null ? void 0 : l.tls_verify), e.fields.tags = (U = l == null ? void 0 : l.tags) != null && U.length ? l.tags.join(", ") : "", Object.assign(g, e.fields), d("update", f == null ? void 0 : f.data);
856
870
  }
857
871
  return f;
858
872
  } catch (a) {
859
- e.errorMessage = I(a), d("error", a);
873
+ e.errorMessage = T(a), d("error", a);
860
874
  } finally {
861
875
  e.isReadonly = !1;
862
876
  }
863
877
  };
864
- return ke(() => r.gatewayServiceId, () => {
865
- Object.assign(e.fields, y);
866
- }), ke(e.fields, (t) => {
867
- e.fields.port = j.getPortFromProtocol(t.protocol, String(t.port)), d("model-updated", N.value);
868
- }), De(() => {
869
- d("model-updated", N.value);
878
+ return Ve(() => r.gatewayServiceId, () => {
879
+ Object.assign(e.fields, g);
880
+ }), Ve(e.fields, (t) => {
881
+ e.fields.port = H.getPortFromProtocol(t.protocol, String(t.port)), d("model-updated", q.value);
882
+ }), Ge(() => {
883
+ d("model-updated", q.value);
870
884
  }), $({
871
- validateUrl: z,
872
- getPayload: N,
873
- saveFormData: Z,
874
- canSubmit: Q,
875
- initForm: re
885
+ validateUrl: Q,
886
+ getPayload: q,
887
+ saveFormData: ee,
888
+ canSubmit: X,
889
+ initForm: ae
876
890
  }), (t, i) => {
877
- const g = A("KInput"), P = A("KLabel"), a = A("KRadio"), f = A("KSelect"), l = A("KCheckbox"), k = A("KCollapse");
878
- return S(), U("div", vt, [
879
- u(o(Ze), {
880
- "can-submit": Q.value,
891
+ const y = R("KInput"), U = R("KLabel"), a = R("KRadio"), f = R("KSelect"), l = R("KCheckbox"), C = R("KCollapse");
892
+ return w(), I("div", _t, [
893
+ u(o(tt), {
894
+ "can-submit": X.value,
881
895
  config: n.config,
882
896
  "edit-id": n.gatewayServiceId,
883
- "entity-type": o(Me).GatewayService,
897
+ "entity-type": o(Re).GatewayService,
884
898
  "error-message": e.errorMessage,
885
- "fetch-url": pe.value,
886
- "form-fields": N.value,
899
+ "fetch-url": ve.value,
900
+ "form-fields": q.value,
887
901
  "is-readonly": e.isReadonly,
888
- onCancel: R,
902
+ onCancel: A,
889
903
  "onFetch:error": i[25] || (i[25] = (c) => t.$emit("error", c)),
890
- "onFetch:success": re,
904
+ "onFetch:success": ae,
891
905
  onLoading: i[26] || (i[26] = (c) => t.$emit("loading", c)),
892
- onSubmit: Z
906
+ onSubmit: ee
893
907
  }, {
894
908
  "form-actions": p(() => [
895
- Be(t.$slots, "form-actions", {
896
- canSubmit: Q.value,
897
- cancel: R,
898
- submit: Z
909
+ Ke(t.$slots, "form-actions", {
910
+ canSubmit: X.value,
911
+ cancel: A,
912
+ submit: ee
899
913
  }, void 0, !0)
900
914
  ]),
901
915
  default: p(() => [
902
- u(o(Pe), {
916
+ u(o(Ue), {
903
917
  description: o(s)("gateway_services.form.sections.general.description"),
904
918
  "hide-info-header": n.hideSectionsInfo,
905
919
  title: o(s)("gateway_services.form.sections.general.title")
906
920
  }, {
907
921
  default: p(() => [
908
- u(g, {
922
+ u(y, {
909
923
  modelValue: e.fields.name,
910
924
  "onUpdate:modelValue": i[0] || (i[0] = (c) => e.fields.name = c),
911
925
  modelModifiers: { trim: !0 },
912
926
  autocomplete: "off",
913
927
  "data-testid": "gateway-service-name-input",
914
- error: ve.value,
915
- "error-message": H.value,
928
+ error: ge.value,
929
+ "error-message": J.value,
916
930
  label: o(s)("gateway_services.form.fields.name.label"),
917
931
  "label-attributes": {
918
932
  info: o(s)("gateway_services.form.fields.name.tooltip"),
@@ -922,9 +936,9 @@ const ue = {
922
936
  placeholder: o(s)("gateway_services.form.fields.name.placeholder"),
923
937
  readonly: e.isReadonly,
924
938
  type: "text",
925
- onInput: he
939
+ onInput: ke
926
940
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
927
- u(g, {
941
+ u(y, {
928
942
  modelValue: e.fields.tags,
929
943
  "onUpdate:modelValue": i[1] || (i[1] = (c) => e.fields.tags = c),
930
944
  modelModifiers: { trim: !0 },
@@ -944,28 +958,28 @@ const ue = {
944
958
  ]),
945
959
  _: 1
946
960
  }, 8, ["description", "hide-info-header", "title"]),
947
- u(o(Pe), {
961
+ u(o(Ue), {
948
962
  description: o(s)("gateway_services.form.sections.keys.description"),
949
963
  "hide-info-header": n.hideSectionsInfo,
950
964
  title: o(s)("gateway_services.form.sections.keys.title")
951
965
  }, {
952
966
  default: p(() => [
953
- D.value ? L("", !0) : (S(), U("div", gt, [
954
- C("div", yt, [
955
- u(P, { required: "" }, {
967
+ D.value ? L("", !0) : (w(), I("div", bt, [
968
+ S("div", ht, [
969
+ u(U, { required: "" }, {
956
970
  default: p(() => [
957
971
  E(_(o(s)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
958
972
  ]),
959
973
  _: 1
960
974
  })
961
975
  ]),
962
- C("div", _t, [
976
+ S("div", wt, [
963
977
  u(a, {
964
- modelValue: w.value,
965
- "onUpdate:modelValue": i[2] || (i[2] = (c) => w.value = c),
978
+ modelValue: k.value,
979
+ "onUpdate:modelValue": i[2] || (i[2] = (c) => k.value = c),
966
980
  "data-testid": "gateway-service-url-radio",
967
- "selected-value": O.url,
968
- onChange: ie
981
+ "selected-value": j.url,
982
+ onChange: se
969
983
  }, {
970
984
  default: p(() => [
971
985
  E(_(o(s)("gateway_services.form.sections.keys.urlLabel")), 1)
@@ -973,8 +987,8 @@ const ue = {
973
987
  _: 1
974
988
  }, 8, ["modelValue", "selected-value"])
975
989
  ]),
976
- w.value === "url" ? (S(), U("div", bt, [
977
- u(g, {
990
+ k.value === "url" ? (w(), I("div", kt, [
991
+ u(y, {
978
992
  modelValue: e.fields.url,
979
993
  "onUpdate:modelValue": i[3] || (i[3] = (c) => e.fields.url = c),
980
994
  modelModifiers: { trim: !0 },
@@ -991,12 +1005,12 @@ const ue = {
991
1005
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
992
1006
  ])) : L("", !0),
993
1007
  u(a, {
994
- modelValue: w.value,
995
- "onUpdate:modelValue": i[4] || (i[4] = (c) => w.value = c),
1008
+ modelValue: k.value,
1009
+ "onUpdate:modelValue": i[4] || (i[4] = (c) => k.value = c),
996
1010
  "checked-group": "protocol",
997
1011
  "data-testid": "gateway-service-protocol-radio",
998
- "selected-value": O.protocol,
999
- onChange: ie
1012
+ "selected-value": j.protocol,
1013
+ onChange: se
1000
1014
  }, {
1001
1015
  default: p(() => [
1002
1016
  E(_(o(s)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
@@ -1004,12 +1018,12 @@ const ue = {
1004
1018
  _: 1
1005
1019
  }, 8, ["modelValue", "selected-value"])
1006
1020
  ])),
1007
- w.value === "protocol" || D.value ? (S(), U("div", ht, [
1021
+ k.value === "protocol" || D.value ? (w(), I("div", Ct, [
1008
1022
  u(f, {
1009
1023
  modelValue: e.fields.protocol,
1010
1024
  "onUpdate:modelValue": i[5] || (i[5] = (c) => e.fields.protocol = c),
1011
1025
  "data-testid": "gateway-service-protocol-select",
1012
- items: ge,
1026
+ items: _e,
1013
1027
  label: o(s)("gateway_services.form.fields.protocol.label"),
1014
1028
  "label-attributes": {
1015
1029
  info: o(s)("gateway_services.form.fields.protocol.tooltip"),
@@ -1018,9 +1032,9 @@ const ue = {
1018
1032
  readonly: e.isReadonly,
1019
1033
  required: "",
1020
1034
  width: "100%",
1021
- onSelected: i[6] || (i[6] = (c) => T(e.fields.protocol, c))
1035
+ onSelected: i[6] || (i[6] = (c) => P(e.fields.protocol, c))
1022
1036
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1023
- u(g, {
1037
+ u(y, {
1024
1038
  modelValue: e.fields.host,
1025
1039
  "onUpdate:modelValue": i[7] || (i[7] = (c) => e.fields.host = c),
1026
1040
  modelModifiers: { trim: !0 },
@@ -1035,8 +1049,8 @@ const ue = {
1035
1049
  placeholder: o(s)("gateway_services.form.fields.host.placeholder"),
1036
1050
  required: ""
1037
1051
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
1038
- se.value ? (S(), U("div", wt, [
1039
- u(g, {
1052
+ re.value ? (w(), I("div", Vt, [
1053
+ u(y, {
1040
1054
  modelValue: e.fields.path,
1041
1055
  "onUpdate:modelValue": i[8] || (i[8] = (c) => e.fields.path = c),
1042
1056
  modelModifiers: { trim: !0 },
@@ -1051,7 +1065,7 @@ const ue = {
1051
1065
  placeholder: o(s)("gateway_services.form.fields.path.placeholder")
1052
1066
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
1053
1067
  ])) : L("", !0),
1054
- u(g, {
1068
+ u(y, {
1055
1069
  modelValue: e.fields.port,
1056
1070
  "onUpdate:modelValue": [
1057
1071
  i[9] || (i[9] = (c) => e.fields.port = c),
@@ -1070,17 +1084,17 @@ const ue = {
1070
1084
  type: "number"
1071
1085
  }, null, 8, ["modelValue", "label", "label-attributes"])
1072
1086
  ])) : L("", !0),
1073
- u(k, {
1074
- modelValue: M.value,
1075
- "onUpdate:modelValue": i[24] || (i[24] = (c) => M.value = c),
1087
+ u(C, {
1088
+ modelValue: x.value,
1089
+ "onUpdate:modelValue": i[24] || (i[24] = (c) => x.value = c),
1076
1090
  "data-testid": "advanced-fields-collapse",
1077
1091
  "trigger-alignment": "leading",
1078
1092
  "trigger-label": o(s)("gateway_services.form.sections.keys.viewAdvancedFields")
1079
1093
  }, {
1080
1094
  default: p(() => [
1081
- C("div", kt, [
1082
- C("div", Vt, [
1083
- u(g, {
1095
+ S("div", St, [
1096
+ S("div", It, [
1097
+ u(y, {
1084
1098
  modelValue: e.fields.retries,
1085
1099
  "onUpdate:modelValue": [
1086
1100
  i[11] || (i[11] = (c) => e.fields.retries = c),
@@ -1100,8 +1114,8 @@ const ue = {
1100
1114
  type: "number"
1101
1115
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1102
1116
  ]),
1103
- C("div", Ct, [
1104
- u(g, {
1117
+ S("div", Tt, [
1118
+ u(y, {
1105
1119
  modelValue: e.fields.connect_timeout,
1106
1120
  "onUpdate:modelValue": [
1107
1121
  i[13] || (i[13] = (c) => e.fields.connect_timeout = c),
@@ -1121,8 +1135,8 @@ const ue = {
1121
1135
  type: "number"
1122
1136
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1123
1137
  ]),
1124
- C("div", St, [
1125
- u(g, {
1138
+ S("div", Pt, [
1139
+ u(y, {
1126
1140
  modelValue: e.fields.write_timeout,
1127
1141
  "onUpdate:modelValue": [
1128
1142
  i[15] || (i[15] = (c) => e.fields.write_timeout = c),
@@ -1142,8 +1156,8 @@ const ue = {
1142
1156
  type: "number"
1143
1157
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1144
1158
  ]),
1145
- C("div", It, [
1146
- u(g, {
1159
+ S("div", Ut, [
1160
+ u(y, {
1147
1161
  modelValue: e.fields.read_timeout,
1148
1162
  "onUpdate:modelValue": [
1149
1163
  i[17] || (i[17] = (c) => e.fields.read_timeout = c),
@@ -1163,8 +1177,8 @@ const ue = {
1163
1177
  type: "number"
1164
1178
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1165
1179
  ]),
1166
- ye.value ? (S(), U("div", Tt, [
1167
- u(g, {
1180
+ be.value ? (w(), I("div", Et, [
1181
+ u(y, {
1168
1182
  modelValue: e.fields.client_certificate,
1169
1183
  "onUpdate:modelValue": i[19] || (i[19] = (c) => e.fields.client_certificate = c),
1170
1184
  modelModifiers: { trim: !0 },
@@ -1181,8 +1195,8 @@ const ue = {
1181
1195
  type: "text"
1182
1196
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
1183
1197
  ])) : L("", !0),
1184
- _e.value ? (S(), U("div", Pt, [
1185
- u(g, {
1198
+ he.value ? (w(), I("div", Mt, [
1199
+ u(y, {
1186
1200
  modelValue: e.fields.ca_certificates,
1187
1201
  "onUpdate:modelValue": i[20] || (i[20] = (c) => e.fields.ca_certificates = c),
1188
1202
  modelModifiers: { trim: !0 },
@@ -1195,15 +1209,15 @@ const ue = {
1195
1209
  type: "text"
1196
1210
  }, {
1197
1211
  "label-tooltip": p(() => [
1198
- u(o(K), {
1212
+ u(o(G), {
1199
1213
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
1200
1214
  scope: "global"
1201
1215
  }, {
1202
1216
  code1: p(() => [
1203
- C("code", null, _(o(s)("gateway_services.form.fields.ca_certificates.code1")), 1)
1217
+ S("code", null, _(o(s)("gateway_services.form.fields.ca_certificates.code1")), 1)
1204
1218
  ]),
1205
1219
  code2: p(() => [
1206
- C("code", null, _(o(s)("gateway_services.form.fields.ca_certificates.code2")), 1)
1220
+ S("code", null, _(o(s)("gateway_services.form.fields.ca_certificates.code2")), 1)
1207
1221
  ]),
1208
1222
  _: 1
1209
1223
  })
@@ -1211,7 +1225,7 @@ const ue = {
1211
1225
  _: 1
1212
1226
  }, 8, ["modelValue", "label", "placeholder", "readonly"])
1213
1227
  ])) : L("", !0),
1214
- be.value ? (S(), U("div", Ut, [
1228
+ we.value ? (w(), I("div", Rt, [
1215
1229
  u(l, {
1216
1230
  modelValue: e.fields.tls_verify_enabled,
1217
1231
  "onUpdate:modelValue": i[21] || (i[21] = (c) => e.fields.tls_verify_enabled = c),
@@ -1221,19 +1235,19 @@ const ue = {
1221
1235
  "label-attributes": { tooltipAttributes: { maxWidth: "400" } }
1222
1236
  }, {
1223
1237
  tooltip: p(() => [
1224
- u(o(K), {
1238
+ u(o(G), {
1225
1239
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
1226
1240
  scope: "global"
1227
1241
  }, {
1228
1242
  code1: p(() => [
1229
- C("code", null, _(o(s)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1243
+ S("code", null, _(o(s)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1230
1244
  ]),
1231
1245
  _: 1
1232
1246
  })
1233
1247
  ]),
1234
1248
  _: 1
1235
1249
  }, 8, ["modelValue", "description", "label"]),
1236
- e.fields.tls_verify_enabled ? (S(), U("div", Et, [
1250
+ e.fields.tls_verify_enabled ? (w(), I("div", xt, [
1237
1251
  u(a, {
1238
1252
  modelValue: e.fields.tls_verify_value,
1239
1253
  "onUpdate:modelValue": i[22] || (i[22] = (c) => e.fields.tls_verify_value = c),
@@ -1242,7 +1256,7 @@ const ue = {
1242
1256
  "selected-value": !0
1243
1257
  }, null, 8, ["modelValue", "label"])
1244
1258
  ])) : L("", !0),
1245
- e.fields.tls_verify_enabled ? (S(), U("div", Mt, [
1259
+ e.fields.tls_verify_enabled ? (w(), I("div", At, [
1246
1260
  u(a, {
1247
1261
  modelValue: e.fields.tls_verify_value,
1248
1262
  "onUpdate:modelValue": i[23] || (i[23] = (c) => e.fields.tls_verify_value = c),
@@ -1265,7 +1279,7 @@ const ue = {
1265
1279
  ]);
1266
1280
  };
1267
1281
  }
1268
- }), Lt = /* @__PURE__ */ Re(Rt, [["__scopeId", "data-v-35e0db56"]]), xt = { class: "kong-ui-gateway-service-entity-config-card" }, Kt = /* @__PURE__ */ Ve({
1282
+ }), Nt = /* @__PURE__ */ xe(Ft, [["__scopeId", "data-v-35e0db56"]]), $t = { class: "kong-ui-gateway-service-entity-config-card" }, Wt = /* @__PURE__ */ Se({
1269
1283
  __name: "GatewayServiceConfigCard",
1270
1284
  props: {
1271
1285
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1292,7 +1306,7 @@ const ue = {
1292
1306
  },
1293
1307
  emits: ["loading", "fetch:error", "fetch:success"],
1294
1308
  setup(n) {
1295
- const $ = n, { i18n: { t: m }, i18nT: d } = ue.useI18n(), r = h(() => oe.form[$.config.app].edit), { getPropValue: M } = et(), W = (s, I) => M(s, I) === !0 ? m("gateway_services.form.fields.tls_verify_option.true.display") : m("gateway_services.form.fields.tls_verify_option.false.display"), K = V({
1309
+ const $ = n, { i18n: { t: m }, i18nT: d } = pe.useI18n(), r = h(() => ie.form[$.config.app].edit), { getPropValue: x } = lt(), O = (s, T) => x(s, T) === !0 ? m("gateway_services.form.fields.tls_verify_option.true.display") : m("gateway_services.form.fields.tls_verify_option.false.display"), G = V({
1296
1310
  id: {},
1297
1311
  name: {
1298
1312
  tooltip: m("gateway_services.form.fields.name.tooltip")
@@ -1301,19 +1315,19 @@ const ue = {
1301
1315
  updated_at: {},
1302
1316
  created_at: {},
1303
1317
  protocol: {
1304
- section: ne.Basic,
1318
+ section: de.Basic,
1305
1319
  tooltip: m("gateway_services.form.fields.protocol.tooltip")
1306
1320
  },
1307
1321
  host: {
1308
- section: ne.Basic,
1322
+ section: de.Basic,
1309
1323
  tooltip: m("gateway_services.form.fields.host.tooltip")
1310
1324
  },
1311
1325
  path: {
1312
- section: ne.Basic,
1326
+ section: de.Basic,
1313
1327
  tooltip: m("gateway_services.form.fields.path.tooltip")
1314
1328
  },
1315
1329
  port: {
1316
- section: ne.Basic,
1330
+ section: de.Basic,
1317
1331
  tooltip: m("gateway_services.form.fields.port.tooltip")
1318
1332
  },
1319
1333
  tags: {
@@ -1341,7 +1355,7 @@ const ue = {
1341
1355
  tooltip: m("gateway_services.form.fields.client_certificate.tooltip")
1342
1356
  },
1343
1357
  ca_certificates: {
1344
- type: tt.BadgeTag,
1358
+ type: ot.BadgeTag,
1345
1359
  label: m("gateway_services.form.fields.ca_certificates.label"),
1346
1360
  order: 6
1347
1361
  },
@@ -1352,17 +1366,17 @@ const ue = {
1352
1366
  hidden: !0
1353
1367
  }
1354
1368
  });
1355
- return (s, I) => (S(), U("div", xt, [
1356
- u(o(lt), {
1369
+ return (s, T) => (w(), I("div", $t, [
1370
+ u(o(it), {
1357
1371
  config: n.config,
1358
1372
  "config-card-doc": n.configCardDoc,
1359
- "config-schema": K.value,
1360
- "entity-type": o(Me).GatewayService,
1373
+ "config-schema": G.value,
1374
+ "entity-type": o(Re).GatewayService,
1361
1375
  "fetch-url": r.value,
1362
1376
  "hide-title": n.hideTitle,
1363
- "onFetch:error": I[0] || (I[0] = (b) => s.$emit("fetch:error", b)),
1364
- "onFetch:success": I[1] || (I[1] = (b) => s.$emit("fetch:success", b)),
1365
- onLoading: I[2] || (I[2] = (b) => s.$emit("loading", b))
1377
+ "onFetch:error": T[0] || (T[0] = (b) => s.$emit("fetch:error", b)),
1378
+ "onFetch:success": T[1] || (T[1] = (b) => s.$emit("fetch:success", b)),
1379
+ onLoading: T[2] || (T[2] = (b) => s.$emit("loading", b))
1366
1380
  }, {
1367
1381
  "enabled-label-tooltip": p(() => [
1368
1382
  u(o(d), {
@@ -1370,10 +1384,10 @@ const ue = {
1370
1384
  scope: "global"
1371
1385
  }, {
1372
1386
  false: p(() => [
1373
- C("code", null, _(o(m)("gateway_services.form.fields.enabled.false")), 1)
1387
+ S("code", null, _(o(m)("gateway_services.form.fields.enabled.false")), 1)
1374
1388
  ]),
1375
1389
  true: p(() => [
1376
- C("code", null, _(o(m)("gateway_services.form.fields.enabled.true")), 1)
1390
+ S("code", null, _(o(m)("gateway_services.form.fields.enabled.true")), 1)
1377
1391
  ]),
1378
1392
  _: 1
1379
1393
  })
@@ -1384,10 +1398,10 @@ const ue = {
1384
1398
  scope: "global"
1385
1399
  }, {
1386
1400
  code1: p(() => [
1387
- C("code", null, _(o(m)("gateway_services.form.fields.ca_certificates.code1")), 1)
1401
+ S("code", null, _(o(m)("gateway_services.form.fields.ca_certificates.code1")), 1)
1388
1402
  ]),
1389
1403
  code2: p(() => [
1390
- C("code", null, _(o(m)("gateway_services.form.fields.ca_certificates.code2")), 1)
1404
+ S("code", null, _(o(m)("gateway_services.form.fields.ca_certificates.code2")), 1)
1391
1405
  ]),
1392
1406
  _: 1
1393
1407
  })
@@ -1398,16 +1412,16 @@ const ue = {
1398
1412
  scope: "global"
1399
1413
  }, {
1400
1414
  code1: p(() => [
1401
- C("code", null, _(o(m)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1415
+ S("code", null, _(o(m)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1402
1416
  ]),
1403
1417
  _: 1
1404
1418
  })
1405
1419
  ]),
1406
1420
  tls_verify: p((b) => [
1407
- E(_(typeof o(M)("rowValue", b) == "boolean" ? W("rowValue", b) : o(m)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
1421
+ E(_(typeof o(x)("rowValue", b) == "boolean" ? O("rowValue", b) : o(m)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
1408
1422
  ]),
1409
1423
  client_certificate: p((b) => [
1410
- E(_(o(M)("rowValue", b) ? o(M)("rowValue", b).id : "–"), 1)
1424
+ E(_(o(x)("rowValue", b) ? o(x)("rowValue", b).id : "–"), 1)
1411
1425
  ]),
1412
1426
  _: 1
1413
1427
  }, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
@@ -1415,7 +1429,7 @@ const ue = {
1415
1429
  }
1416
1430
  });
1417
1431
  export {
1418
- Kt as GatewayServiceConfigCard,
1419
- Lt as GatewayServiceForm,
1420
- Gt as GatewayServiceList
1432
+ Wt as GatewayServiceConfigCard,
1433
+ Nt as GatewayServiceForm,
1434
+ qt as GatewayServiceList
1421
1435
  };