@kong-ui-public/entities-gateway-services 3.10.4-pr.2001.6ea4ed63c.0 → 3.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as Re, computed as h, ref as R, watch as Ue, onBeforeMount as je, resolveComponent as $, openBlock as w, createElementBlock as T, createVNode as d, unref as o, createSlots as ze, withCtx as u, createBlock as se, Teleport as xe, createElementVNode as E, createCommentVNode as x, createTextVNode as K, toDisplayString as I, withModifiers as Te, toValue as $e, reactive as Me, onMounted as Ze, renderSlot as He, Transition as Ae, Fragment as Je, renderList as Qe } from "vue";
2
- import { useRouter as Ne } from "vue-router";
3
- import { BookIcon as Be, AddIcon as Xe, ServicesIcon as Ye } from "@kong/icons";
4
- import { createI18n as et, i18nTComponent as tt } from "@kong-ui-public/i18n";
5
- import { useAxios as qe, useTableState as ot, useFetcher as it, useDeleteUrlBuilder as lt, FetcherStatus as rt, EntityBaseTable as st, EntityFilter as at, PermissionsWrapper as re, TableTags as nt, EntityEmptyState as ct, EntityToggleModal as dt, EntityDeleteModal as ut, EntityTypes as ft, useErrors as pt, useValidators as mt, EntityBaseFormType as De, useGatewayFeatureSupported as vt, EntityBaseForm as gt, SupportedEntityType as We, EntityFormSection as Le, useHelpers as yt, ConfigurationSchemaSection as be, ConfigurationSchemaType as _t, EntityBaseConfigCard as ht } from "@kong-ui-public/entities-shared";
6
- const bt = {
1
+ import { defineComponent as Te, computed as _, ref as E, watch as Ie, onBeforeMount as Be, resolveComponent as F, openBlock as S, createElementBlock as U, createVNode as d, unref as l, createSlots as Le, withCtx as f, createBlock as ue, Teleport as Ee, createElementVNode as k, createCommentVNode as L, createTextVNode as M, toDisplayString as b, withModifiers as Se, reactive as Pe, onMounted as De, renderSlot as Ke } from "vue";
2
+ import { useRouter as $e } from "vue-router";
3
+ import { BookIcon as Ue, AddIcon as Ge, ServicesIcon as qe } from "@kong/icons";
4
+ import { createI18n as Oe, i18nTComponent as Ne } from "@kong-ui-public/i18n";
5
+ import { useAxios as xe, useTableState as We, useFetcher as je, useDeleteUrlBuilder as He, FetcherStatus as ze, EntityBaseTable as Je, EntityFilter as Qe, PermissionsWrapper as ie, TableTags as Xe, EntityEmptyState as Ze, EntityToggleModal as Ye, EntityDeleteModal as et, EntityTypes as tt, useErrors as lt, useValidators as ot, EntityBaseFormType as Re, useGatewayFeatureSupported as it, EntityBaseForm as st, SupportedEntityType as Ae, EntityFormSection as Me, useHelpers as rt, ConfigurationSchemaSection as fe, ConfigurationSchemaType as at, EntityBaseConfigCard as nt } from "@kong-ui-public/entities-shared";
6
+ const ct = {
7
7
  create: "New gateway service",
8
8
  serverless_create: "Add a Service",
9
9
  copy_id: "Copy ID",
@@ -16,12 +16,12 @@ const bt = {
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
- }, wt = {
19
+ }, dt = {
20
20
  placeholder: {
21
21
  konnect: "Filter by name",
22
22
  kongManager: "Filter by exact name or ID"
23
23
  }
24
- }, kt = {
24
+ }, ut = {
25
25
  title: "Gateway Services",
26
26
  list: {
27
27
  toolbar_actions: {
@@ -55,27 +55,21 @@ const bt = {
55
55
  sections: {
56
56
  general: {
57
57
  title: "General Information",
58
- description: "Provide a name and tags to help identify and manage this service."
58
+ description: "General information will help identify and manage this Gateway Service."
59
59
  },
60
60
  keys: {
61
61
  title: "Service Endpoint",
62
- description: "Define where this service should send requests.",
62
+ description: "Define the endpoint for this service by specifying the full URL or by its separate elements.",
63
63
  checkedGroupLabel: "Choose how and where to send traffic",
64
- url: {
65
- label: "Full URL",
66
- description: "Define the service using a single, complete API URL for simple setup."
67
- },
68
- protocol: {
69
- label: "Protocol, host, port, and path",
70
- description: "Manually specify each component of the API’s URL for advanced configurations."
71
- },
64
+ urlLabel: "Full URL",
65
+ checkedGroupAltLabel: "Protocol, Host, Port and Path",
72
66
  viewAdvancedFields: "View Advanced Fields"
73
67
  }
74
68
  },
75
69
  fields: {
76
70
  upstream_url: {
77
- label: "Full URL",
78
- placeholder: "e.g. https://www.myapi.com/",
71
+ label: "Upstream URL",
72
+ placeholder: "Enter a URL",
79
73
  tooltip_for_konnect: "This is the URL of the API you will manage in Konnect.",
80
74
  tooltip_for_km: "This is the URL of the API you will manage in Kong Gateway."
81
75
  },
@@ -165,8 +159,7 @@ const bt = {
165
159
  label: "Tags",
166
160
  tooltip: "An optional set of strings associated with the Service for grouping and filtering.",
167
161
  placeholder: "Enter a list of tags separated by comma",
168
- help: "e.g. tag1, tag2, tag3",
169
- collapse: "Add tags"
162
+ help: "e.g. tag1, tag2, tag3"
170
163
  },
171
164
  enabled: {
172
165
  label: "Enabled",
@@ -176,39 +169,39 @@ const bt = {
176
169
  }
177
170
  }
178
171
  }
179
- }, Ct = {
172
+ }, ft = {
180
173
  general: "Gateway Services could not be retrieved",
181
174
  delete: "The gateway service could not be deleted at this time.",
182
175
  copy: "Failed to copy to clipboard",
183
176
  urlErrorMessage: "Error: invalid URL"
184
- }, Vt = {
177
+ }, pt = {
185
178
  success: "Copied {val} to clipboard",
186
179
  success_brief: "Successfully copied to clipboard"
187
- }, St = {
180
+ }, mt = {
188
181
  gateway_services: "gateway services"
189
- }, Et = {
190
- actions: bt,
191
- search: wt,
192
- gateway_services: kt,
193
- errors: Ct,
194
- copy: Vt,
195
- glossary: St
182
+ }, vt = {
183
+ actions: ct,
184
+ search: dt,
185
+ gateway_services: ut,
186
+ errors: ft,
187
+ copy: pt,
188
+ glossary: mt
196
189
  };
197
- function It() {
198
- const a = et("en-us", Et);
190
+ function gt() {
191
+ const n = Oe("en-us", vt);
199
192
  return {
200
- i18n: a,
201
- i18nT: tt(a)
193
+ i18n: n,
194
+ i18nT: Ne(n)
202
195
  // Translation component <i18n-t>
203
196
  };
204
197
  }
205
- function Ft() {
198
+ function yt() {
206
199
  return {
207
- getPortFromProtocol: (P, p) => {
208
- const n = [80, 443], r = Number(p);
209
- if ((r || r === 0) && !n.includes(r))
200
+ getPortFromProtocol: (D, p) => {
201
+ const c = [80, 443], r = Number(p);
202
+ if ((r || r === 0) && !c.includes(r))
210
203
  return r;
211
- switch (P) {
204
+ switch (D) {
212
205
  case "grpcs":
213
206
  case "tls":
214
207
  case "https":
@@ -224,38 +217,38 @@ function Ft() {
224
217
  }
225
218
  };
226
219
  }
227
- const Ce = {
228
- useI18n: It,
229
- usePortFromProtocol: Ft
230
- }, we = "/v2/control-planes/{controlPlaneId}/core-entities", ke = "/{workspace}", ae = {
220
+ const ve = {
221
+ useI18n: gt,
222
+ usePortFromProtocol: yt
223
+ }, pe = "/v2/control-planes/{controlPlaneId}/core-entities", me = "/{workspace}", se = {
231
224
  list: {
232
225
  konnect: {
233
- all: `${we}/services`
226
+ all: `${pe}/services`
234
227
  },
235
228
  kongManager: {
236
- all: `${ke}/services`
229
+ all: `${me}/services`
237
230
  }
238
231
  },
239
232
  form: {
240
233
  konnect: {
241
- create: `${we}/services`,
242
- validate: `${we}/v1/schemas/json/service/validate`,
243
- edit: `${we}/services/{id}`
234
+ create: `${pe}/services`,
235
+ validate: `${pe}/v1/schemas/json/service/validate`,
236
+ edit: `${pe}/services/{id}`
244
237
  },
245
238
  kongManager: {
246
- create: `${ke}/services`,
247
- validate: `${ke}/schemas/services/validate`,
248
- edit: `${ke}/services/{id}`
239
+ create: `${me}/services`,
240
+ validate: `${me}/schemas/services/validate`,
241
+ edit: `${me}/services/{id}`
249
242
  }
250
243
  }
251
- }, Pt = "#00abd2", Tt = "24px", At = { class: "kong-ui-entities-gateway-services-list" }, Ut = { class: "button-row" }, Rt = { class: "empty-state-icon-gateway" }, xt = { key: 1 }, $t = /* @__PURE__ */ Re({
244
+ }, _t = "#00abd2", bt = "24px", ht = { class: "kong-ui-entities-gateway-services-list" }, wt = { class: "button-row" }, kt = { class: "empty-state-icon-gateway" }, Ct = { key: 1 }, Vt = /* @__PURE__ */ Te({
252
245
  __name: "GatewayServiceList",
253
246
  props: {
254
247
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
255
248
  config: {
256
249
  type: Object,
257
250
  required: !0,
258
- validator: (a) => !(!a || !["konnect", "kongManager"].includes(a == null ? void 0 : a.app) || !a.createRoute || !a.getViewRoute || !a.getEditRoute || a.app === "kongManager" && !a.isExactMatch && !a.filterSchema)
251
+ 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)
259
252
  },
260
253
  // used to override the default identifier for the cache entry
261
254
  cacheIdentifier: {
@@ -306,12 +299,12 @@ const Ce = {
306
299
  }
307
300
  },
308
301
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle:success"],
309
- setup(a, { emit: P }) {
310
- var he;
311
- const p = P, n = a, { i18n: { t: r, formatUnixTimeStamp: C } } = Ce.useI18n(), B = Ne(), { axiosInstance: O } = qe((he = n.config) == null ? void 0 : he.axiosRequestConfig), { hasRecords: s, handleStateChange: A } = ot(() => N.value), k = h(() => s.value && n.config.app === "konnect"), D = h(() => !n.enableV2EmptyStates && n.config.app === "konnect"), Q = h(() => n.config.app !== "kongManager" || !!n.config.disableSorting), ne = {
302
+ setup(n, { emit: D }) {
303
+ var o;
304
+ const p = D, c = n, { i18n: { t: r, formatUnixTimeStamp: $ } } = ve.useI18n(), N = $e(), { axiosInstance: q } = xe((o = c.config) == null ? void 0 : o.axiosRequestConfig), { hasRecords: a, handleStateChange: P } = We(() => K.value), C = _(() => a.value && c.config.app === "konnect"), ge = _(() => !c.enableV2EmptyStates && c.config.app === "konnect"), ye = _(() => c.config.app !== "kongManager" || !!c.config.disableSorting), O = {
312
305
  // the Name column is non-hidable
313
306
  name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
314
- ...n.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
307
+ ...c.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
315
308
  protocol: { label: r("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
316
309
  host: { label: r("gateway_services.list.table_headers.host"), searchable: !0, sortable: !0 },
317
310
  port: { label: r("gateway_services.list.table_headers.port"), searchable: !0, sortable: !0 },
@@ -320,197 +313,197 @@ const Ce = {
320
313
  tags: { label: r("gateway_services.list.table_headers.tags"), sortable: !1 },
321
314
  updated_at: { label: r("gateway_services.list.table_headers.updated_at"), sortable: !0 },
322
315
  created_at: { label: r("gateway_services.list.table_headers.created_at"), sortable: !0 }
323
- }, G = {
316
+ }, _e = {
324
317
  columnVisibility: {
325
318
  created_at: !1
326
319
  }
327
- }, Ve = ne, L = h(() => {
328
- var v, g;
329
- let f = `${n.config.apiBaseUrl}${ae.list[n.config.app].all}`;
330
- return n.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((v = n.config) == null ? void 0 : v.controlPlaneId) || "") : n.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (g = n.config) != null && g.workspace ? `/${n.config.workspace}` : "")), f;
331
- }), F = h(() => n.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${L.value}`) : new URL(L.value)), N = R(""), X = h(() => {
332
- const f = n.config.app === "konnect" || n.config.isExactMatch;
333
- if (f)
320
+ }, H = O, y = _(() => {
321
+ var s, g;
322
+ let u = `${c.config.apiBaseUrl}${se.list[c.config.app].all}`;
323
+ return c.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((s = c.config) == null ? void 0 : s.controlPlaneId) || "") : c.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (g = c.config) != null && g.workspace ? `/${c.config.workspace}` : "")), u;
324
+ }), Y = _(() => c.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${y.value}`) : new URL(y.value)), K = E(""), be = _(() => {
325
+ const u = c.config.app === "konnect" || c.config.isExactMatch;
326
+ if (u)
334
327
  return {
335
- isExactMatch: f,
336
- placeholder: r(`search.placeholder.${n.config.app}`)
328
+ isExactMatch: u,
329
+ placeholder: r(`search.placeholder.${c.config.app}`)
337
330
  };
338
- const { name: v, enabled: g, protocol: V, host: W, port: e, path: i } = ne;
331
+ const { name: s, enabled: g, protocol: I, host: Z, port: x, path: de } = O;
339
332
  return {
340
- isExactMatch: f,
341
- fields: { name: v, enabled: g, protocol: V, host: W, port: e, path: i },
342
- schema: n.config.filterSchema
333
+ isExactMatch: u,
334
+ fields: { name: s, enabled: g, protocol: I, host: Z, port: x, path: de },
335
+ schema: c.config.filterSchema
343
336
  };
344
337
  }), {
345
- fetcher: ce,
346
- fetcherState: t,
347
- fetcherCacheKey: b
348
- } = it({ ...n.config, cacheIdentifier: n.cacheIdentifier }, L.value), Se = () => {
349
- N.value = "";
350
- }, de = () => {
351
- b.value++;
352
- }, j = R(null), Ee = h(() => ({
353
- ctaPath: n.config.createRoute,
354
- ctaText: H.value ? n.isServerless ? r("actions.serverless_create") : r("actions.create") : void 0,
355
- message: `${r("gateway_services.list.empty_state.description")}${n.config.additionMessageForEmptyState ? ` ${n.config.additionMessageForEmptyState}` : ""}`,
356
- title: H.value ? n.isServerless ? r("gateway_services.list.empty_state.serverless_title") : r("gateway_services.list.empty_state.title") : r("gateway_services.title")
357
- })), q = R(!1), U = R(null), Y = h(() => {
358
- const f = {
338
+ fetcher: e,
339
+ fetcherState: w,
340
+ fetcherCacheKey: ee
341
+ } = je({ ...c.config, cacheIdentifier: c.cacheIdentifier }, y.value), he = () => {
342
+ K.value = "";
343
+ }, re = () => {
344
+ ee.value++;
345
+ }, z = E(null), W = _(() => ({
346
+ ctaPath: c.config.createRoute,
347
+ ctaText: h.value ? c.isServerless ? r("actions.serverless_create") : r("actions.create") : void 0,
348
+ message: `${r("gateway_services.list.empty_state.description")}${c.config.additionMessageForEmptyState ? ` ${c.config.additionMessageForEmptyState}` : ""}`,
349
+ title: h.value ? c.isServerless ? r("gateway_services.list.empty_state.serverless_title") : r("gateway_services.list.empty_state.title") : r("gateway_services.title")
350
+ })), J = E(!1), T = E(null), Q = _(() => {
351
+ const u = {
359
352
  action: "disable",
360
353
  id: "",
361
354
  name: ""
362
355
  };
363
- if (U.value) {
364
- const { enabled: v, id: g, name: V } = U.value;
365
- f.action = v ? "disable" : "enable", f.id = g, f.name = V || g;
356
+ if (T.value) {
357
+ const { enabled: s, id: g, name: I } = T.value;
358
+ u.action = s ? "disable" : "enable", u.id = g, u.name = I || g;
366
359
  }
367
- return f;
368
- }), ue = (f) => {
369
- q.value = !0, U.value = f;
370
- }, fe = () => {
371
- q.value = !1, U.value = null;
372
- }, pe = async () => {
373
- var V, W;
374
- if (!await ((V = n.canEdit) == null ? void 0 : V.call(n, U.value)) || !U.value)
360
+ return u;
361
+ }), we = (u) => {
362
+ J.value = !0, T.value = u;
363
+ }, ae = () => {
364
+ J.value = !1, T.value = null;
365
+ }, ke = async () => {
366
+ var I, Z;
367
+ if (!await ((I = c.canEdit) == null ? void 0 : I.call(c, T.value)) || !T.value)
375
368
  return;
376
- const v = `${F.value.href}/${U.value.id}`, g = !U.value.enabled;
369
+ const s = `${Y.value.href}/${T.value.id}`, g = !T.value.enabled;
377
370
  try {
378
- const { data: e } = ((W = n.config) == null ? void 0 : W.app) === "konnect" ? await O.put(v, { ...U.value, enabled: g }) : await O.patch(v, { ...U.value, enabled: g });
379
- p("toggle:success", e), U.value.enabled = g;
380
- } catch (e) {
381
- p("error", e);
371
+ const { data: x } = ((Z = c.config) == null ? void 0 : Z.app) === "konnect" ? await q.put(s, { ...T.value, enabled: g }) : await q.patch(s, { ...T.value, enabled: g });
372
+ p("toggle:success", x), T.value.enabled = g;
373
+ } catch (x) {
374
+ p("error", x);
382
375
  }
383
- }, me = (f) => {
384
- n.config.getControlPlaneRoute && B.push(n.config.getControlPlaneRoute(f));
385
- }, Ie = (f, v) => {
386
- const g = f.id;
387
- if (!v(g)) {
376
+ }, Ce = (u) => {
377
+ c.config.getControlPlaneRoute && N.push(c.config.getControlPlaneRoute(u));
378
+ }, te = (u, s) => {
379
+ const g = u.id;
380
+ if (!s(g)) {
388
381
  p("copy:error", {
389
- entity: f,
382
+ entity: u,
390
383
  field: "id",
391
384
  message: r("errors.copy")
392
385
  });
393
386
  return;
394
387
  }
395
388
  p("copy:success", {
396
- entity: f,
389
+ entity: u,
397
390
  field: "id",
398
391
  message: r("copy.success", { val: g })
399
392
  });
400
- }, ve = (f, v) => {
401
- const g = JSON.stringify(f);
402
- if (!v(g)) {
393
+ }, ne = (u, s) => {
394
+ const g = JSON.stringify(u);
395
+ if (!s(g)) {
403
396
  p("copy:error", {
404
- entity: f,
397
+ entity: u,
405
398
  message: r("errors.copy")
406
399
  });
407
400
  return;
408
401
  }
409
402
  p("copy:success", {
410
- entity: f,
403
+ entity: u,
411
404
  message: r("copy.success_brief")
412
405
  });
413
- }, ee = async (f) => {
406
+ }, ce = async (u) => {
414
407
  var g;
415
- await ((g = n.canRetrieve) == null ? void 0 : g.call(n, f)) && B.push(n.config.getViewRoute(f.id));
416
- }, te = (f) => ({
408
+ await ((g = c.canRetrieve) == null ? void 0 : g.call(c, u)) && N.push(c.config.getViewRoute(u.id));
409
+ }, Ve = (u) => ({
417
410
  label: r("actions.view"),
418
- to: n.config.getViewRoute(f)
419
- }), ge = (f) => ({
411
+ to: c.config.getViewRoute(u)
412
+ }), le = (u) => ({
420
413
  label: r("actions.edit"),
421
- to: n.config.getEditRoute(f)
422
- }), M = R(void 0), oe = R(!1), Z = R(!1), ie = R(""), Fe = lt(n.config, L.value), Pe = (f) => {
423
- M.value = f, oe.value = !0, ie.value = "";
424
- }, ye = () => {
425
- oe.value = !1, M.value = void 0;
426
- }, le = async () => {
427
- var f, v, g;
428
- if ((f = M.value) != null && f.id) {
429
- Z.value = !0;
414
+ to: c.config.getEditRoute(u)
415
+ }), B = E(void 0), G = E(!1), j = E(!1), X = E(""), t = He(c.config, y.value), i = (u) => {
416
+ B.value = u, G.value = !0, X.value = "";
417
+ }, v = () => {
418
+ G.value = !1, B.value = void 0;
419
+ }, R = async () => {
420
+ var u, s, g;
421
+ if ((u = B.value) != null && u.id) {
422
+ j.value = !0;
430
423
  try {
431
- await O.delete(Fe(M.value.id)), p("delete:success", M.value), ye(), b.value++;
432
- } catch (V) {
433
- ie.value = ((g = (v = V.response) == null ? void 0 : v.data) == null ? void 0 : g.message) || V.message || r("errors.delete"), p("error", V);
424
+ await q.delete(t(B.value.id)), p("delete:success", B.value), v(), ee.value++;
425
+ } catch (I) {
426
+ X.value = ((g = (s = I.response) == null ? void 0 : s.data) == null ? void 0 : g.message) || I.message || r("errors.delete"), p("error", I);
434
427
  } finally {
435
- Z.value = !1;
428
+ j.value = !1;
436
429
  }
437
430
  }
438
- }, _e = () => {
439
- B.push(n.config.createRoute);
431
+ }, V = () => {
432
+ N.push(c.config.createRoute);
440
433
  };
441
- Ue(t, (f) => {
442
- var v, g, V;
443
- if (f.status === rt.Error) {
444
- j.value = {
434
+ Ie(w, (u) => {
435
+ var s, g, I;
436
+ if (u.status === ze.Error) {
437
+ z.value = {
445
438
  title: r("errors.general")
446
- }, (V = (g = (v = f.error) == null ? void 0 : v.response) == null ? void 0 : g.data) != null && V.message && (j.value.message = f.error.response.data.message), p("error", f.error);
439
+ }, (I = (g = (s = u.error) == null ? void 0 : s.response) == null ? void 0 : g.data) != null && I.message && (z.value.message = u.error.response.data.message), p("error", u.error);
447
440
  return;
448
441
  }
449
- j.value = null;
442
+ z.value = null;
450
443
  });
451
- const H = R(!1);
452
- return je(async () => {
453
- H.value = await n.canCreate();
454
- }), (f, v) => {
455
- const g = $("KButton"), V = $("KBadge"), W = $("KInputSwitch"), e = $("KDropdownItem"), i = $("KClipboardProvider");
456
- return w(), T("div", At, [
457
- d(o(st), {
458
- "cache-identifier": a.cacheIdentifier,
459
- "default-table-preferences": G,
460
- "disable-sorting": Q.value,
461
- "empty-state-options": Ee.value,
444
+ const h = E(!1);
445
+ return Be(async () => {
446
+ h.value = await c.canCreate();
447
+ }), (u, s) => {
448
+ const g = F("KButton"), I = F("KBadge"), Z = F("KInputSwitch"), x = F("KDropdownItem"), de = F("KClipboardProvider");
449
+ return S(), U("div", ht, [
450
+ d(l(Je), {
451
+ "cache-identifier": n.cacheIdentifier,
452
+ "default-table-preferences": _e,
453
+ "disable-sorting": ye.value,
454
+ "empty-state-options": W.value,
462
455
  "enable-entity-actions": "",
463
- "error-message": j.value,
464
- fetcher: o(ce),
465
- "fetcher-cache-key": o(b),
456
+ "error-message": z.value,
457
+ fetcher: l(e),
458
+ "fetcher-cache-key": l(ee),
466
459
  "pagination-type": "offset",
467
460
  "preferences-storage-key": "kong-ui-entities-gateway-services-list",
468
- query: N.value,
469
- "table-headers": o(Ve),
470
- onClearSearchInput: Se,
471
- "onClick:row": v[5] || (v[5] = (c) => ee(c)),
472
- onSort: de,
473
- onState: o(A)
474
- }, ze({
475
- "toolbar-filter": u(() => [
476
- d(o(at), {
477
- modelValue: N.value,
478
- "onUpdate:modelValue": v[0] || (v[0] = (c) => N.value = c),
479
- config: X.value
461
+ query: K.value,
462
+ "table-headers": l(H),
463
+ onClearSearchInput: he,
464
+ "onClick:row": s[5] || (s[5] = (m) => ce(m)),
465
+ onSort: re,
466
+ onState: l(P)
467
+ }, Le({
468
+ "toolbar-filter": f(() => [
469
+ d(l(Qe), {
470
+ modelValue: K.value,
471
+ "onUpdate:modelValue": s[0] || (s[0] = (m) => K.value = m),
472
+ config: be.value
480
473
  }, null, 8, ["modelValue", "config"])
481
474
  ]),
482
- "toolbar-button": u(() => [
483
- (w(), se(xe, {
484
- disabled: !a.useActionOutside,
475
+ "toolbar-button": f(() => [
476
+ (S(), ue(Ee, {
477
+ disabled: !n.useActionOutside,
485
478
  to: "#kong-ui-app-page-header-action-button"
486
479
  }, [
487
- E("div", Ut, [
488
- k.value ? (w(), se(g, {
480
+ k("div", wt, [
481
+ C.value ? (S(), ue(g, {
489
482
  key: 0,
490
483
  appearance: "secondary",
491
484
  class: "open-learning-hub",
492
485
  "data-testid": "gateway-services-learn-more-button",
493
486
  icon: "",
494
- onClick: v[1] || (v[1] = (c) => f.$emit("click:learn-more"))
487
+ onClick: s[1] || (s[1] = (m) => u.$emit("click:learn-more"))
495
488
  }, {
496
- default: u(() => [
497
- d(o(Be), { decorative: "" })
489
+ default: f(() => [
490
+ d(l(Ue), { decorative: "" })
498
491
  ]),
499
492
  _: 1
500
- })) : x("", !0),
501
- d(o(re), {
502
- "auth-function": () => a.canCreate()
493
+ })) : L("", !0),
494
+ d(l(ie), {
495
+ "auth-function": () => n.canCreate()
503
496
  }, {
504
- default: u(() => [
497
+ default: f(() => [
505
498
  d(g, {
506
499
  appearance: "primary",
507
500
  "data-testid": "toolbar-add-gateway-service",
508
- size: a.useActionOutside ? "medium" : "large",
509
- to: a.config.createRoute
501
+ size: n.useActionOutside ? "medium" : "large",
502
+ to: n.config.createRoute
510
503
  }, {
511
- default: u(() => [
512
- d(o(Xe)),
513
- K(" " + I(o(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
504
+ default: f(() => [
505
+ d(l(Ge)),
506
+ M(" " + b(l(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
514
507
  ]),
515
508
  _: 1
516
509
  }, 8, ["size", "to"])
@@ -520,120 +513,120 @@ const Ce = {
520
513
  ])
521
514
  ], 8, ["disabled"]))
522
515
  ]),
523
- name: u(({ rowValue: c }) => [
524
- E("b", null, I(c ?? "-"), 1)
516
+ name: f(({ rowValue: m }) => [
517
+ k("b", null, b(m ?? "-"), 1)
525
518
  ]),
526
- control_plane: u(({ row: c }) => {
527
- var _;
519
+ control_plane: f(({ row: m }) => {
520
+ var A;
528
521
  return [
529
- (_ = c.x_meta) != null && _.cluster_id ? (w(), se(V, {
522
+ (A = m.x_meta) != null && A.cluster_id ? (S(), ue(I, {
530
523
  key: 0,
531
- tooltip: c.x_meta.cluster_id,
524
+ tooltip: m.x_meta.cluster_id,
532
525
  "truncation-tooltip": "",
533
- onClick: Te((y) => me(c.x_meta.cluster_id), ["stop"])
526
+ onClick: Se((oe) => Ce(m.x_meta.cluster_id), ["stop"])
534
527
  }, {
535
- default: u(() => [
536
- K(I(c.x_meta.cluster_id), 1)
528
+ default: f(() => [
529
+ M(b(m.x_meta.cluster_id), 1)
537
530
  ]),
538
531
  _: 2
539
- }, 1032, ["tooltip", "onClick"])) : (w(), T("b", xt, "-"))
532
+ }, 1032, ["tooltip", "onClick"])) : (S(), U("b", Ct, "-"))
540
533
  ];
541
534
  }),
542
- enabled: u(({ row: c }) => [
543
- d(o(re), {
544
- "auth-function": () => a.canEdit(c),
535
+ enabled: f(({ row: m }) => [
536
+ d(l(ie), {
537
+ "auth-function": () => n.canEdit(m),
545
538
  "force-show": ""
546
539
  }, {
547
- default: u(({ isAllowed: _ }) => [
548
- E("div", {
549
- onClick: v[4] || (v[4] = Te(() => {
540
+ default: f(({ isAllowed: A }) => [
541
+ k("div", {
542
+ onClick: s[4] || (s[4] = Se(() => {
550
543
  }, ["stop"]))
551
544
  }, [
552
- d(W, {
553
- modelValue: c.enabled,
554
- "onUpdate:modelValue": (y) => c.enabled = y,
555
- "data-testid": `row-${c.id}-toggle-input`,
556
- disabled: !_,
557
- onClick: Te((y) => ue(c), ["prevent"])
545
+ d(Z, {
546
+ modelValue: m.enabled,
547
+ "onUpdate:modelValue": (oe) => m.enabled = oe,
548
+ "data-testid": `row-${m.id}-toggle-input`,
549
+ disabled: !A,
550
+ onClick: Se((oe) => we(m), ["prevent"])
558
551
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "onClick"])
559
552
  ])
560
553
  ]),
561
554
  _: 2
562
555
  }, 1032, ["auth-function"])
563
556
  ]),
564
- tags: u(({ rowValue: c }) => [
565
- d(o(nt), { tags: c }, null, 8, ["tags"])
557
+ tags: f(({ rowValue: m }) => [
558
+ d(l(Xe), { tags: m }, null, 8, ["tags"])
566
559
  ]),
567
- created_at: u(({ rowValue: c }) => [
568
- K(I(o(C)(c)), 1)
560
+ created_at: f(({ rowValue: m }) => [
561
+ M(b(l($)(m)), 1)
569
562
  ]),
570
- updated_at: u(({ row: c, rowValue: _ }) => [
571
- K(I(o(C)(_ ?? c.created_at)), 1)
563
+ updated_at: f(({ row: m, rowValue: A }) => [
564
+ M(b(l($)(A ?? m.created_at)), 1)
572
565
  ]),
573
- actions: u(({ row: c }) => [
574
- d(i, null, {
575
- default: u(({ copyToClipboard: _ }) => [
576
- d(e, {
566
+ actions: f(({ row: m }) => [
567
+ d(de, null, {
568
+ default: f(({ copyToClipboard: A }) => [
569
+ d(x, {
577
570
  "data-testid": "action-entity-copy-id",
578
- onClick: (y) => Ie(c, _)
571
+ onClick: (oe) => te(m, A)
579
572
  }, {
580
- default: u(() => [
581
- K(I(o(r)("actions.copy_id")), 1)
573
+ default: f(() => [
574
+ M(b(l(r)("actions.copy_id")), 1)
582
575
  ]),
583
576
  _: 2
584
577
  }, 1032, ["onClick"])
585
578
  ]),
586
579
  _: 2
587
580
  }, 1024),
588
- d(i, null, {
589
- default: u(({ copyToClipboard: _ }) => [
590
- d(e, {
581
+ d(de, null, {
582
+ default: f(({ copyToClipboard: A }) => [
583
+ d(x, {
591
584
  "data-testid": "action-entity-copy-json",
592
- onClick: (y) => ve(c, _)
585
+ onClick: (oe) => ne(m, A)
593
586
  }, {
594
- default: u(() => [
595
- K(I(o(r)("actions.copy_json")), 1)
587
+ default: f(() => [
588
+ M(b(l(r)("actions.copy_json")), 1)
596
589
  ]),
597
590
  _: 2
598
591
  }, 1032, ["onClick"])
599
592
  ]),
600
593
  _: 2
601
594
  }, 1024),
602
- d(o(re), {
603
- "auth-function": () => a.canRetrieve(c)
595
+ d(l(ie), {
596
+ "auth-function": () => n.canRetrieve(m)
604
597
  }, {
605
- default: u(() => [
606
- d(e, {
598
+ default: f(() => [
599
+ d(x, {
607
600
  "data-testid": "action-entity-view",
608
601
  "has-divider": "",
609
- item: te(c.id)
602
+ item: Ve(m.id)
610
603
  }, null, 8, ["item"])
611
604
  ]),
612
605
  _: 2
613
606
  }, 1032, ["auth-function"]),
614
- d(o(re), {
615
- "auth-function": () => a.canEdit(c)
607
+ d(l(ie), {
608
+ "auth-function": () => n.canEdit(m)
616
609
  }, {
617
- default: u(() => [
618
- d(e, {
610
+ default: f(() => [
611
+ d(x, {
619
612
  "data-testid": "action-entity-edit",
620
- item: ge(c.id)
613
+ item: le(m.id)
621
614
  }, null, 8, ["item"])
622
615
  ]),
623
616
  _: 2
624
617
  }, 1032, ["auth-function"]),
625
- d(o(re), {
626
- "auth-function": () => a.canDelete(c)
618
+ d(l(ie), {
619
+ "auth-function": () => n.canDelete(m)
627
620
  }, {
628
- default: u(() => [
629
- d(e, {
621
+ default: f(() => [
622
+ d(x, {
630
623
  danger: "",
631
624
  "data-testid": "action-entity-delete",
632
625
  "has-divider": "",
633
- onClick: (_) => Pe(c)
626
+ onClick: (A) => i(m)
634
627
  }, {
635
- default: u(() => [
636
- K(I(o(r)("actions.delete.menu_label")), 1)
628
+ default: f(() => [
629
+ M(b(l(r)("actions.delete.menu_label")), 1)
637
630
  ]),
638
631
  _: 2
639
632
  }, 1032, ["onClick"])
@@ -643,11 +636,11 @@ const Ce = {
643
636
  ]),
644
637
  _: 2
645
638
  }, [
646
- !o(s) && D.value ? {
639
+ !l(a) && ge.value ? {
647
640
  name: "outside-actions",
648
- fn: u(() => [
649
- (w(), se(xe, {
650
- disabled: !a.useActionOutside,
641
+ fn: f(() => [
642
+ (S(), ue(Ee, {
643
+ disabled: !n.useActionOutside,
651
644
  to: "#kong-ui-app-page-header-action-button"
652
645
  }, [
653
646
  d(g, {
@@ -655,10 +648,10 @@ const Ce = {
655
648
  class: "open-learning-hub",
656
649
  "data-testid": "gateway-services-more-button",
657
650
  icon: "",
658
- onClick: v[2] || (v[2] = (c) => f.$emit("click:learn-more"))
651
+ onClick: s[2] || (s[2] = (m) => u.$emit("click:learn-more"))
659
652
  }, {
660
- default: u(() => [
661
- d(o(Be), { decorative: "" })
653
+ default: f(() => [
654
+ d(l(Ue), { decorative: "" })
662
655
  ]),
663
656
  _: 1
664
657
  })
@@ -666,25 +659,25 @@ const Ce = {
666
659
  ]),
667
660
  key: "0"
668
661
  } : void 0,
669
- a.enableV2EmptyStates && a.config.app === "konnect" ? {
662
+ n.enableV2EmptyStates && n.config.app === "konnect" ? {
670
663
  name: "empty-state",
671
- fn: u(() => [
672
- d(o(ct), {
673
- "action-button-text": o(r)("gateway_services.empty_state_v2.create"),
664
+ fn: f(() => [
665
+ d(l(Ze), {
666
+ "action-button-text": l(r)("gateway_services.empty_state_v2.create"),
674
667
  appearance: "secondary",
675
- "can-create": () => a.canCreate(),
668
+ "can-create": () => n.canCreate(),
676
669
  "data-testid": "gateway-services-entity-empty-state",
677
- description: o(r)("gateway_services.empty_state_v2.description"),
678
- "learn-more": a.config.app === "konnect",
679
- title: o(r)("gateway_services.empty_state_v2.title"),
680
- "onClick:create": _e,
681
- "onClick:learnMore": v[3] || (v[3] = (c) => f.$emit("click:learn-more"))
670
+ description: l(r)("gateway_services.empty_state_v2.description"),
671
+ "learn-more": n.config.app === "konnect",
672
+ title: l(r)("gateway_services.empty_state_v2.title"),
673
+ "onClick:create": V,
674
+ "onClick:learnMore": s[3] || (s[3] = (m) => u.$emit("click:learn-more"))
682
675
  }, {
683
- image: u(() => [
684
- E("div", Rt, [
685
- d(o(Ye), {
686
- color: o(Pt),
687
- size: o(Tt)
676
+ image: f(() => [
677
+ k("div", kt, [
678
+ d(l(qe), {
679
+ color: l(_t),
680
+ size: l(bt)
688
681
  }, null, 8, ["color", "size"])
689
682
  ])
690
683
  ]),
@@ -694,105 +687,64 @@ const Ce = {
694
687
  key: "1"
695
688
  } : void 0
696
689
  ]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
697
- d(o(dt), {
698
- action: Y.value.action,
699
- "entity-id": Y.value.id,
700
- "entity-name": Y.value.name,
701
- "entity-type": o(r)("glossary.gateway_services"),
702
- "on-confirm": pe,
703
- visible: q.value,
704
- onCancel: fe,
705
- onProceed: fe
690
+ d(l(Ye), {
691
+ action: Q.value.action,
692
+ "entity-id": Q.value.id,
693
+ "entity-name": Q.value.name,
694
+ "entity-type": l(r)("glossary.gateway_services"),
695
+ "on-confirm": ke,
696
+ visible: J.value,
697
+ onCancel: ae,
698
+ onProceed: ae
706
699
  }, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
707
- d(o(ut), {
708
- "action-pending": Z.value,
709
- description: o(r)("actions.delete.description"),
710
- "entity-name": M.value && (M.value.name || M.value.id),
711
- "entity-type": o(ft).GatewayService,
712
- error: ie.value,
713
- title: o(r)("actions.delete.title"),
714
- visible: oe.value,
715
- onCancel: ye,
716
- onProceed: le
700
+ d(l(et), {
701
+ "action-pending": j.value,
702
+ description: l(r)("actions.delete.description"),
703
+ "entity-name": B.value && (B.value.name || B.value.id),
704
+ "entity-type": l(tt).GatewayService,
705
+ error: X.value,
706
+ title: l(r)("actions.delete.title"),
707
+ visible: G.value,
708
+ onCancel: v,
709
+ onProceed: R
717
710
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
718
711
  ]);
719
712
  };
720
713
  }
721
- }), Ge = (a, P) => {
722
- const p = a.__vccOpts || a;
723
- for (const [n, r] of P)
724
- p[n] = r;
714
+ }), Fe = (n, D) => {
715
+ const p = n.__vccOpts || n;
716
+ for (const [c, r] of D)
717
+ p[c] = r;
725
718
  return p;
726
- }, co = /* @__PURE__ */ Ge($t, [["__scopeId", "data-v-fa0c855e"]]);
727
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
728
- const Ke = () => {
729
- };
730
- function Mt(a, P) {
731
- function p(...n) {
732
- return new Promise((r, C) => {
733
- Promise.resolve(a(() => P.apply(this, n), { fn: P, thisArg: this, args: n })).then(r).catch(C);
734
- });
735
- }
736
- return p;
737
- }
738
- function Bt(a, P = {}) {
739
- let p, n, r = Ke;
740
- const C = (s) => {
741
- clearTimeout(s), r(), r = Ke;
742
- };
743
- let B;
744
- return (s) => {
745
- const A = $e(a), k = $e(P.maxWait);
746
- return p && C(p), A <= 0 || k !== void 0 && k <= 0 ? (n && (C(n), n = null), Promise.resolve(s())) : new Promise((D, Q) => {
747
- r = P.rejectOnCancel ? Q : D, B = s, k && !n && (n = setTimeout(() => {
748
- p && C(p), n = null, D(B());
749
- }, k)), p = setTimeout(() => {
750
- n && C(n), n = null, D(s());
751
- }, A);
752
- });
753
- };
754
- }
755
- function Oe(a, P = 200, p = {}) {
756
- return Mt(
757
- Bt(P, p),
758
- a
759
- );
760
- }
761
- const Dt = { class: "kong-ui-entities-gateway-service-form" }, Lt = {
762
- key: 0,
763
- class: "gateway-service-form-general-info"
764
- }, Kt = { class: "gateway-service-form-group-selection-wrapper" }, Ot = {
719
+ }, Jt = /* @__PURE__ */ Fe(Vt, [["__scopeId", "data-v-fa0c855e"]]), St = { class: "kong-ui-entities-gateway-service-form" }, It = { key: 0 }, Tt = { class: "gateway-service-form-traffic-label" }, Et = { class: "gateway-service-form-margin-bottom" }, Pt = {
765
720
  key: 0,
766
721
  class: "gateway-service-form-group-fields"
767
- }, Nt = {
768
- key: 0,
722
+ }, Ut = {
723
+ key: 1,
769
724
  class: "gateway-service-form-group-fields"
770
- }, qt = { key: 0 }, Wt = {
771
- key: 0,
772
- class: "gateway-service-form-advanced-fields"
773
- }, Gt = { class: "gateway-service-form-margin-bottom" }, jt = { class: "gateway-service-form-margin-bottom" }, zt = { class: "gateway-service-form-margin-bottom" }, Zt = { class: "gateway-service-form-margin-bottom" }, Ht = {
725
+ }, Rt = { key: 0 }, Mt = { class: "gateway-service-form-margin-top" }, $t = { class: "gateway-service-form-margin-bottom" }, xt = { class: "gateway-service-form-margin-bottom" }, At = { class: "gateway-service-form-margin-bottom" }, Ft = { class: "gateway-service-form-margin-bottom" }, Bt = {
774
726
  key: 0,
775
727
  class: "gateway-service-form-margin-bottom"
776
- }, Jt = {
728
+ }, Lt = {
777
729
  key: 1,
778
730
  class: "gateway-service-form-margin-bottom"
779
- }, Qt = {
731
+ }, Dt = {
780
732
  key: 2,
781
733
  class: "gateway-service-form-margin-bottom"
782
- }, Xt = {
734
+ }, Kt = {
783
735
  key: 0,
784
736
  class: "checkbox-aligned-radio"
785
- }, Yt = {
737
+ }, Gt = {
786
738
  key: 1,
787
739
  class: "checkbox-aligned-radio"
788
- }, eo = { class: "gateway-service-form-tags" }, to = { class: "form-error-list" }, oo = /* @__PURE__ */ Re({
740
+ }, qt = /* @__PURE__ */ Te({
789
741
  __name: "GatewayServiceForm",
790
742
  props: {
791
743
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
792
744
  config: {
793
745
  type: Object,
794
746
  required: !0,
795
- validator: (a) => !(!a || !["konnect", "kongManager"].includes(a == null ? void 0 : a.app) || a.app === "konnect" && !a.controlPlaneId || a.app === "kongManager" && typeof a.workspace != "string" || !a.cancelRoute)
747
+ 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)
796
748
  },
797
749
  /** If a valid Gateway Service ID is provided, it will put the form in Edit mode instead of Create */
798
750
  gatewayServiceId: {
@@ -805,23 +757,12 @@ const Dt = { class: "kong-ui-entities-gateway-service-form" }, Lt = {
805
757
  type: Boolean,
806
758
  required: !1,
807
759
  default: !1
808
- },
809
- /** Whether show or hide Try sample API button */
810
- hideTrySampleAPIButton: {
811
- type: Boolean,
812
- required: !1,
813
- default: !1
814
- },
815
- sampleApiList: {
816
- type: Array,
817
- required: !1,
818
- default: () => []
819
760
  }
820
761
  },
821
- emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated", "try-sample-api"],
822
- setup(a, { expose: P, emit: p }) {
823
- var W;
824
- const n = p, r = a, C = R(!0), B = Ne(), { i18nT: O, i18n: { t: s } } = Ce.useI18n(), { getMessageFromError: A, getErrorFieldsFromError: k } = pt(), { axiosInstance: D } = qe((W = r.config) == null ? void 0 : W.axiosRequestConfig), Q = mt(), ne = h(() => ae.form[r.config.app].edit), G = h(() => r.gatewayServiceId ? De.Edit : De.Create), Ve = R(!1), L = h(() => !!r.gatewayServiceId), F = R(L.value ? "protocol" : "url"), N = Ce.usePortFromProtocol(), X = R(""), ce = h(() => !!X.value), t = Me({
762
+ emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
763
+ setup(n, { expose: D, emit: p }) {
764
+ var X;
765
+ const c = p, r = n, $ = E(!0), N = $e(), { i18nT: q, i18n: { t: a } } = ve.useI18n(), { getMessageFromError: P } = lt(), { axiosInstance: C } = xe((X = r.config) == null ? void 0 : X.axiosRequestConfig), ge = ot(), ye = _(() => se.form[r.config.app].edit), O = _(() => r.gatewayServiceId ? Re.Edit : Re.Create), _e = E(!1), H = _(() => !!r.gatewayServiceId), y = E(H.value ? "protocol" : "url"), Y = ve.usePortFromProtocol(), K = E(""), be = _(() => !!K.value), e = Pe({
825
766
  fields: {
826
767
  name: "",
827
768
  protocol: "http",
@@ -840,23 +781,8 @@ const Dt = { class: "kong-ui-entities-gateway-service-form" }, Lt = {
840
781
  tags: ""
841
782
  },
842
783
  isReadonly: !1,
843
- errorMessages: [],
844
- formFieldErrors: {
845
- host: "",
846
- port: "",
847
- path: "",
848
- url: "",
849
- tags: "",
850
- retries: "",
851
- connect_timeout: "",
852
- write_timeout: "",
853
- read_timeout: "",
854
- client_certificate: "",
855
- ca_certificates: "",
856
- tls_verify_enabled: "",
857
- tls_verify_value: ""
858
- }
859
- }), b = Me({
784
+ errorMessage: ""
785
+ }), w = Pe({
860
786
  name: "",
861
787
  protocol: "http",
862
788
  host: "",
@@ -872,674 +798,564 @@ const Dt = { class: "kong-ui-entities-gateway-service-form" }, Lt = {
872
798
  tls_verify_enabled: !1,
873
799
  tls_verify_value: !1,
874
800
  tags: ""
875
- }), Se = r.config.app === "konnect" || vt({
801
+ }), ee = r.config.app === "konnect" || it({
876
802
  gatewayInfo: r.config.gatewayInfo,
877
803
  // 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
878
804
  supportedRange: {
879
805
  enterprise: ["3.0"]
880
806
  }
881
- }), de = [
807
+ }), he = [
882
808
  {
883
- label: s("gateway_services.form.fields.protocol.options.http"),
809
+ label: a("gateway_services.form.fields.protocol.options.http"),
884
810
  value: "http",
885
811
  group: "http"
886
812
  },
887
813
  {
888
- label: s("gateway_services.form.fields.protocol.options.https"),
814
+ label: a("gateway_services.form.fields.protocol.options.https"),
889
815
  value: "https",
890
816
  group: "http"
891
817
  },
892
818
  {
893
- label: s("gateway_services.form.fields.protocol.options.tcp"),
819
+ label: a("gateway_services.form.fields.protocol.options.tcp"),
894
820
  value: "tcp",
895
821
  group: "tcp"
896
822
  },
897
823
  {
898
- label: s("gateway_services.form.fields.protocol.options.tls"),
824
+ label: a("gateway_services.form.fields.protocol.options.tls"),
899
825
  value: "tls",
900
826
  group: "tcp"
901
827
  },
902
828
  {
903
- label: s("gateway_services.form.fields.protocol.options.tls_passthrough"),
829
+ label: a("gateway_services.form.fields.protocol.options.tls_passthrough"),
904
830
  value: "tls_passthrough",
905
831
  group: "tcp"
906
832
  },
907
833
  {
908
- label: s("gateway_services.form.fields.protocol.options.grpc"),
834
+ label: a("gateway_services.form.fields.protocol.options.grpc"),
909
835
  value: "grpc",
910
836
  group: "grpc"
911
837
  },
912
838
  {
913
- label: s("gateway_services.form.fields.protocol.options.grpcs"),
839
+ label: a("gateway_services.form.fields.protocol.options.grpcs"),
914
840
  value: "grpcs",
915
841
  group: "grpc"
916
842
  },
917
- ...Se ? [
843
+ ...ee ? [
918
844
  {
919
- label: s("gateway_services.form.fields.protocol.options.ws"),
845
+ label: a("gateway_services.form.fields.protocol.options.ws"),
920
846
  value: "ws",
921
847
  group: "websocket"
922
848
  },
923
849
  {
924
- label: s("gateway_services.form.fields.protocol.options.wss"),
850
+ label: a("gateway_services.form.fields.protocol.options.wss"),
925
851
  value: "wss",
926
852
  group: "websocket"
927
853
  }
928
854
  ] : [],
929
855
  {
930
- label: s("gateway_services.form.fields.protocol.options.udp"),
856
+ label: a("gateway_services.form.fields.protocol.options.udp"),
931
857
  value: "udp",
932
858
  group: "udp"
933
859
  }
934
- ], j = { url: "url", protocol: "protocol" }, Ee = (e, i) => {
860
+ ], re = { url: "url", protocol: "protocol" }, z = (t, i) => {
935
861
  i.value;
936
- }, q = (e) => e ? parseFloat(e) : 0, U = () => {
937
- C.value = !0, te(), t.errorMessages = [], t.fields.host = b.host, t.fields.path = b.path, t.fields.port = b.port, t.fields.protocol = b.protocol, t.fields.url = b.url, t.fields.retries = b.retries, t.fields.connect_timeout = b.connect_timeout, t.fields.write_timeout = b.write_timeout, t.fields.read_timeout = b.read_timeout, t.fields.client_certificate = b.client_certificate, t.fields.ca_certificates = b.ca_certificates, t.fields.tls_verify_enabled = b.tls_verify_enabled, t.fields.tls_verify_value = b.tls_verify_value;
938
- }, Y = () => {
939
- Ie();
940
- }, ue = (e) => !e || e.trim() === "" ? "host cannot be empty" : /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$|^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(e) ? "" : "invalid host", fe = (e) => !e || e.trim() === "" ? "protocol cannot be empty" : (e = e.slice(0, -1), de.find((c) => {
941
- if (c.value === e) return c;
942
- }) === void 0 ? 'protocol - value must be one of "http", "https", "grpc", "grpcs", "tcp", "udp", "tls", "tls_passthrough", "ws", "wss"' : ""), pe = (e) => {
943
- if (e == null || e === "")
944
- return "";
945
- const i = typeof e == "string" ? parseInt(e, 10) : e;
946
- return isNaN(i) ? "Port must be a number" : i < 0 || i > 65535 ? "Port must be between 0 and 65535" : "";
947
- }, me = (e) => !e || e === "" ? "" : e.startsWith("/") ? /[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(e) ? "Path should not include characters outside of the reserved list of RFC 3986" : "" : "Path must begin with /", Ie = Oe(() => {
948
- if (te(), t.fields.url.length)
862
+ }, W = (t) => t ? parseFloat(t) : 0, J = () => {
863
+ $.value = !0, e.errorMessage = "", e.fields.host = w.host, e.fields.path = w.path, e.fields.port = w.port, e.fields.protocol = w.protocol, e.fields.url = w.url, e.fields.retries = w.retries, e.fields.connect_timeout = w.connect_timeout, e.fields.write_timeout = w.write_timeout, e.fields.read_timeout = w.read_timeout, e.fields.client_certificate = w.client_certificate, e.fields.ca_certificates = w.ca_certificates, e.fields.tls_verify_enabled = w.tls_verify_enabled, e.fields.tls_verify_value = w.tls_verify_value;
864
+ }, T = () => {
865
+ if (e.fields.url && y.value === "url")
949
866
  try {
950
- const e = new URL(t.fields.url), i = fe(e.protocol);
951
- if (i) throw new Error(i);
952
- const c = ue(e.hostname);
953
- if (c) throw new Error(c);
954
- const _ = me(e.pathname);
955
- if (_) throw new Error(_);
956
- const y = pe(e.port);
957
- if (y) throw new Error(y);
958
- } catch (e) {
959
- n("url-valid:error", e.message || "URL validation failed"), t.formFieldErrors.url = e.message || "URL validation failed";
960
- }
961
- }, 300), ve = h(() => (e) => {
962
- const i = t.formFieldErrors;
963
- return e === "url" ? i.host.length ? i.host : i.path.length ? i.path : i.url : i[e] ? i[e] : "";
964
- }), ee = Oe(() => {
965
- te();
966
- const e = ue(t.fields.host);
967
- e && (t.formFieldErrors.host = e);
968
- const i = me(t.fields.path);
969
- i && (t.formFieldErrors.path = i);
970
- const c = pe(t.fields.port);
971
- c && (t.formFieldErrors.port = c);
972
- }, 300), te = () => {
973
- t.formFieldErrors = {
974
- host: "",
975
- port: "",
976
- url: "",
977
- path: "",
978
- tags: "",
979
- retries: "",
980
- connect_timeout: "",
981
- write_timeout: "",
982
- read_timeout: "",
983
- client_certificate: "",
984
- ca_certificates: "",
985
- tls_verify_enabled: "",
986
- tls_verify_value: ""
987
- };
988
- }, ge = h(() => Object.values(t.formFieldErrors).some((e) => e !== null && e !== "") && !ce.value), M = () => {
989
- if (t.fields.url && F.value === "url")
990
- try {
991
- const e = new URL(t.fields.url);
992
- t.fields.protocol = e.protocol.slice(0, -1), t.fields.host = e.hostname, t.fields.path = e.pathname;
993
- const i = Number(e.port);
994
- Ve.value = !!i, t.fields.port = i || N.getPortFromProtocol(t.fields.protocol), n("url-valid:success");
995
- } catch (e) {
996
- n("url-valid:error", A(e));
867
+ const t = new URL(e.fields.url);
868
+ e.errorMessage = "", e.fields.protocol = t.protocol.slice(0, -1), e.fields.host = t.hostname, e.fields.path = t.pathname;
869
+ const i = Number(t.port);
870
+ _e.value = !!i, e.fields.port = i || Y.getPortFromProtocol(e.fields.protocol), e.errorMessage = "", c("url-valid:success");
871
+ } catch (t) {
872
+ e.errorMessage = a("errors.urlErrorMessage"), c("url-valid:error", P(t));
997
873
  }
998
874
  else
999
- n("url-valid:success");
1000
- }, oe = () => `new-service-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, Z = h(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(t.fields.protocol)), ie = h(() => {
1001
- if (F.value === "url")
875
+ c("url-valid:success"), e.errorMessage = "";
876
+ }, Q = _(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), we = _(() => {
877
+ if (y.value === "url")
1002
878
  return !0;
1003
- const e = ["https", "wss", "tls"].includes(t.fields.protocol);
1004
- return F.value === "protocol" && e;
1005
- }), Fe = h(() => {
1006
- if (F.value === "url")
879
+ const t = ["https", "wss", "tls"].includes(e.fields.protocol);
880
+ return y.value === "protocol" && t;
881
+ }), ae = _(() => {
882
+ if (y.value === "url")
1007
883
  return !0;
1008
- const e = ["https", "tls"].includes(t.fields.protocol);
1009
- return F.value === "protocol" && e;
1010
- }), Pe = h(() => {
1011
- if (F.value === "url")
884
+ const t = ["https", "tls"].includes(e.fields.protocol);
885
+ return y.value === "protocol" && t;
886
+ }), ke = _(() => {
887
+ if (y.value === "url")
1012
888
  return !0;
1013
- const e = ["https", "wss", "tls"].includes(t.fields.protocol);
1014
- return F.value === "protocol" && e;
1015
- }), ye = (e) => {
1016
- X.value = Q.utf8Name(e);
1017
- }, le = h(() => L.value && JSON.stringify(t.fields) !== JSON.stringify(b) || F.value === "url" && !!t.fields.url && !ge.value || F.value === "protocol" && !!t.fields.host && !ge.value), _e = (e) => {
1018
- var i, c, _;
1019
- t.fields.name = (e == null ? void 0 : e.name) || "", t.fields.tags = ((i = e == null ? void 0 : e.tags) == null ? void 0 : i.join(", ")) || "", t.fields.protocol = (e == null ? void 0 : e.protocol) || "http", t.fields.path = (e == null ? void 0 : e.path) || "", t.fields.read_timeout = e != null && e.read_timeout || (e == null ? void 0 : e.read_timeout) === 0 ? e == null ? void 0 : e.read_timeout : 6e4, t.fields.retries = e != null && e.retries || (e == null ? void 0 : e.retries) === 0 ? e == null ? void 0 : e.retries : 5, t.fields.host = (e == null ? void 0 : e.host) || "", t.fields.connect_timeout = e != null && e.connect_timeout || (e == null ? void 0 : e.connect_timeout) === 0 ? e == null ? void 0 : e.connect_timeout : 6e4, t.fields.tls_verify_enabled = (e == null ? void 0 : e.tls_verify) !== "" && (e == null ? void 0 : e.tls_verify) !== null && (e == null ? void 0 : e.tls_verify) !== void 0, t.fields.tls_verify_value = e != null && e.tls_verify ? e == null ? void 0 : e.tls_verify : !1, t.fields.ca_certificates = ((c = e == null ? void 0 : e.ca_certificates) == null ? void 0 : c.join(",")) || "", t.fields.client_certificate = ((_ = e == null ? void 0 : e.client_certificate) == null ? void 0 : _.id) || "", t.fields.write_timeout = e != null && e.write_timeout || (e == null ? void 0 : e.write_timeout) === 0 ? e == null ? void 0 : e.write_timeout : 6e4, t.fields.port = e != null && e.port || (e == null ? void 0 : e.port) === 0 ? e == null ? void 0 : e.port : 80, Object.assign(b, t.fields);
1020
- }, H = () => {
1021
- B.push(r.config.cancelRoute);
1022
- }, he = h(() => {
1023
- var i, c;
1024
- let e = `${r.config.apiBaseUrl}${ae.form[r.config.app].validate}`;
1025
- return r.config.app === "konnect" ? e = e.replace(/{controlPlaneId}/gi, ((i = r.config) == null ? void 0 : i.controlPlaneId) || "") : r.config.app === "kongManager" && (e = e.replace(/\/{workspace}/gi, (c = r.config) != null && c.workspace ? `/${r.config.workspace}` : "")), e = e.replace(/{id}/gi, r.gatewayServiceId), e;
1026
- }), f = h(() => {
1027
- var i, c;
1028
- let e = `${r.config.apiBaseUrl}${ae.form[r.config.app][G.value]}`;
1029
- return r.config.app === "konnect" ? e = e.replace(/{controlPlaneId}/gi, ((i = r.config) == null ? void 0 : i.controlPlaneId) || "") : r.config.app === "kongManager" && (e = e.replace(/\/{workspace}/gi, (c = r.config) != null && c.workspace ? `/${r.config.workspace}` : "")), e = e.replace(/{id}/gi, r.gatewayServiceId), e;
1030
- }), v = (e) => {
889
+ const t = ["https", "wss", "tls"].includes(e.fields.protocol);
890
+ return y.value === "protocol" && t;
891
+ }), Ce = (t) => {
892
+ K.value = ge.utf8Name(t);
893
+ }, te = _(() => H.value && JSON.stringify(e.fields) !== JSON.stringify(w) || y.value === "url" && !!e.fields.url || y.value === "protocol" && !!e.fields.host), ne = (t) => {
894
+ var i, v, R;
895
+ 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 = ((v = t == null ? void 0 : t.ca_certificates) == null ? void 0 : v.join(",")) || "", e.fields.client_certificate = ((R = t == null ? void 0 : t.client_certificate) == null ? void 0 : R.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(w, e.fields);
896
+ }, ce = () => {
897
+ N.push(r.config.cancelRoute);
898
+ }, Ve = _(() => {
899
+ var i, v;
900
+ let t = `${r.config.apiBaseUrl}${se.form[r.config.app].validate}`;
901
+ 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, (v = r.config) != null && v.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
902
+ }), le = _(() => {
903
+ var i, v;
904
+ let t = `${r.config.apiBaseUrl}${se.form[r.config.app][O.value]}`;
905
+ 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, (v = r.config) != null && v.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
906
+ }), B = (t) => {
1031
907
  let i = "";
1032
- e.url && (i = new URL(e.url).protocol), (["https", "wss", "tls"].includes(e.protocol) || ["https", "wss", "tls"].includes(i)) && (e.tls_verify = e.tls_verify_enabled ? e.tls_verify_value : null), delete e.tls_verify_enabled, delete e.tls_verify_value;
1033
- }, g = h(() => {
1034
- var i, c, _, y;
1035
- const e = {
1036
- name: t.fields.name || null,
1037
- tags: t.fields.tags ? (_ = (c = (i = t.fields.tags) == null ? void 0 : i.split(",")) == null ? void 0 : c.map((S) => String(S || "").trim())) == null ? void 0 : _.filter((S) => S !== "") : null,
1038
- protocol: t.fields.protocol,
1039
- path: t.fields.path || null,
1040
- read_timeout: t.fields.read_timeout,
1041
- retries: t.fields.retries,
1042
- host: t.fields.host,
1043
- connect_timeout: t.fields.connect_timeout,
1044
- tls_verify_value: t.fields.tls_verify_value,
1045
- tls_verify_enabled: t.fields.tls_verify_enabled,
1046
- ca_certificates: t.fields.ca_certificates ? (y = t.fields.ca_certificates) == null ? void 0 : y.split(",").filter((S) => S !== "") : null,
1047
- client_certificate: t.fields.client_certificate ? { id: t.fields.client_certificate } : null,
1048
- write_timeout: t.fields.write_timeout,
1049
- port: t.fields.port,
1050
- url: t.fields.url
908
+ 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;
909
+ }, G = _(() => {
910
+ var i, v, R, V;
911
+ const t = {
912
+ name: e.fields.name || null,
913
+ tags: e.fields.tags ? (R = (v = (i = e.fields.tags) == null ? void 0 : i.split(",")) == null ? void 0 : v.map((h) => String(h || "").trim())) == null ? void 0 : R.filter((h) => h !== "") : null,
914
+ protocol: e.fields.protocol,
915
+ path: e.fields.path || null,
916
+ read_timeout: e.fields.read_timeout,
917
+ retries: e.fields.retries,
918
+ host: e.fields.host,
919
+ connect_timeout: e.fields.connect_timeout,
920
+ tls_verify_value: e.fields.tls_verify_value,
921
+ tls_verify_enabled: e.fields.tls_verify_enabled,
922
+ ca_certificates: e.fields.ca_certificates ? (V = e.fields.ca_certificates) == null ? void 0 : V.split(",").filter((h) => h !== "") : null,
923
+ client_certificate: e.fields.client_certificate ? { id: e.fields.client_certificate } : null,
924
+ write_timeout: e.fields.write_timeout,
925
+ port: e.fields.port,
926
+ url: e.fields.url
1051
927
  };
1052
- return t.fields.client_certificate && ["https", "wss", "tls"].includes(t.fields.protocol) && (e.client_certificate = { id: t.fields.client_certificate }), t.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(t.fields.protocol) && (e.tls_verify = t.fields.tls_verify_value), Z.value || (e.path = null), G.value === "create" ? F.value === "url" ? (delete e.protocol, delete e.host, delete e.path, r.config.app === "konnect" && delete e.port) : delete e.url : G.value === "edit" && delete e.url, e;
1053
- }), V = async () => {
1054
- var e, i, c, _;
928
+ 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), Q.value || (t.path = null), O.value === "create" ? y.value === "url" ? (delete t.protocol, delete t.host, delete t.path, r.config.app === "konnect" && delete t.port) : delete t.url : O.value === "edit" && delete t.url, t;
929
+ }), j = async () => {
930
+ var t, i, v, R;
1055
931
  try {
1056
- t.isReadonly = !0, M();
1057
- const y = g.value;
1058
- v(y);
1059
- let S;
1060
- if (await D.post(he.value, y), G.value === "create" ? S = await D.post(f.value, y) : G.value === "edit" && (S = ((e = r.config) == null ? void 0 : e.app) === "konnect" ? await D.put(f.value, y) : await D.patch(f.value, y)), S) {
1061
- const { data: l } = S;
1062
- t.fields.name = (l == null ? void 0 : l.name) || "", t.fields.port = l.port || N.getPortFromProtocol(l.protocol), t.fields.protocol = (l == null ? void 0 : l.protocol) || "http", t.fields.host = (l == null ? void 0 : l.host) || "", t.fields.path = (l == null ? void 0 : l.path) || "", t.fields.url = (l == null ? void 0 : l.url) || "", t.fields.retries = l != null && l.retries || (l == null ? void 0 : l.retries) === 0 ? l == null ? void 0 : l.retries : 5, t.fields.connect_timeout = l != null && l.connect_timeout || (l == null ? void 0 : l.connect_timeout) === 0 ? l == null ? void 0 : l.connect_timeout : 6e4, t.fields.write_timeout = l != null && l.write_timeout || (l == null ? void 0 : l.write_timeout) === 0 ? l == null ? void 0 : l.write_timeout : 6e4, t.fields.read_timeout = l != null && l.read_timeout || (l == null ? void 0 : l.read_timeout) === 0 ? l == null ? void 0 : l.read_timeout : 6e4, t.fields.client_certificate = ((i = l == null ? void 0 : l.client_certificate) == null ? void 0 : i.id) || "", t.fields.ca_certificates = (c = l == null ? void 0 : l.ca_certificates) != null && c.length ? l == null ? void 0 : l.ca_certificates.join(",") : "", t.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, t.fields.tls_verify_value = t.fields.tls_verify_enabled && (l == null ? void 0 : l.tls_verify), t.fields.tags = (_ = l == null ? void 0 : l.tags) != null && _.length ? l.tags.join(", ") : "", Object.assign(b, t.fields), n("update", S == null ? void 0 : S.data);
932
+ e.isReadonly = !0, T();
933
+ const V = G.value;
934
+ B(V);
935
+ let h;
936
+ if (await C.post(Ve.value, V), O.value === "create" ? h = await C.post(le.value, V) : O.value === "edit" && (h = ((t = r.config) == null ? void 0 : t.app) === "konnect" ? await C.put(le.value, V) : await C.patch(le.value, V)), h) {
937
+ const { data: o } = h;
938
+ e.fields.name = (o == null ? void 0 : o.name) || "", e.fields.port = o.port || Y.getPortFromProtocol(o.protocol), e.fields.protocol = (o == null ? void 0 : o.protocol) || "http", e.fields.host = (o == null ? void 0 : o.host) || "", e.fields.path = (o == null ? void 0 : o.path) || "", e.fields.url = (o == null ? void 0 : o.url) || "", e.fields.retries = o != null && o.retries || (o == null ? void 0 : o.retries) === 0 ? o == null ? void 0 : o.retries : 5, e.fields.connect_timeout = o != null && o.connect_timeout || (o == null ? void 0 : o.connect_timeout) === 0 ? o == null ? void 0 : o.connect_timeout : 6e4, e.fields.write_timeout = o != null && o.write_timeout || (o == null ? void 0 : o.write_timeout) === 0 ? o == null ? void 0 : o.write_timeout : 6e4, e.fields.read_timeout = o != null && o.read_timeout || (o == null ? void 0 : o.read_timeout) === 0 ? o == null ? void 0 : o.read_timeout : 6e4, e.fields.client_certificate = ((i = o == null ? void 0 : o.client_certificate) == null ? void 0 : i.id) || "", e.fields.ca_certificates = (v = o == null ? void 0 : o.ca_certificates) != null && v.length ? o == null ? void 0 : o.ca_certificates.join(",") : "", e.fields.tls_verify_enabled = (o == null ? void 0 : o.tls_verify) !== "" && (o == null ? void 0 : o.tls_verify) !== null && (o == null ? void 0 : o.tls_verify) !== void 0, e.fields.tls_verify_value = e.fields.tls_verify_enabled && (o == null ? void 0 : o.tls_verify), e.fields.tags = (R = o == null ? void 0 : o.tags) != null && R.length ? o.tags.join(", ") : "", Object.assign(w, e.fields), c("update", h == null ? void 0 : h.data);
1063
939
  }
1064
- return S;
1065
- } catch (y) {
1066
- const { fields: S, messages: l } = k(y);
1067
- S.length && (S.forEach((z) => {
1068
- const J = z.field;
1069
- J === "client_certificate.id" ? t.formFieldErrors.client_certificate = z.message : J === "ca_certificates[0]" ? t.formFieldErrors.ca_certificates = z.message : Object.keys(t.formFieldErrors).includes(J) && (t.formFieldErrors = {
1070
- ...t.formFieldErrors,
1071
- [J]: z.message
1072
- });
1073
- }), t.errorMessages = l), n("error", y);
940
+ return h;
941
+ } catch (V) {
942
+ e.errorMessage = P(V), c("error", V);
1074
943
  } finally {
1075
- t.isReadonly = !1;
944
+ e.isReadonly = !1;
1076
945
  }
1077
946
  };
1078
- return Ue(() => r.gatewayServiceId, () => {
1079
- Object.assign(t.fields, b);
1080
- }), Ue(t.fields, (e) => {
1081
- t.fields.port = N.getPortFromProtocol(e.protocol, String(e.port)), n("model-updated", g.value);
1082
- }), Ze(() => {
1083
- n("model-updated", g.value), L.value || (t.fields.name = oe());
1084
- }), P({
1085
- validateUrl: M,
1086
- getPayload: g,
1087
- saveFormData: V,
1088
- canSubmit: le,
1089
- initForm: _e
1090
- }), (e, i) => {
1091
- const c = $("KRadio"), _ = $("KButton"), y = $("KInput"), S = $("KSelect"), l = $("KCheckbox"), z = $("KCollapse"), J = $("KAlert");
1092
- return w(), T("div", Dt, [
1093
- d(o(gt), {
1094
- "can-submit": le.value,
1095
- config: a.config,
1096
- "edit-id": a.gatewayServiceId,
1097
- "entity-type": o(We).GatewayService,
1098
- "fetch-url": ne.value,
1099
- "form-fields": g.value,
1100
- "is-readonly": t.isReadonly,
1101
- onCancel: H,
1102
- "onFetch:error": i[25] || (i[25] = (m) => e.$emit("error", m)),
1103
- "onFetch:success": _e,
1104
- onLoading: i[26] || (i[26] = (m) => e.$emit("loading", m)),
1105
- onSubmit: V
947
+ return Ie(() => r.gatewayServiceId, () => {
948
+ Object.assign(e.fields, w);
949
+ }), Ie(e.fields, (t) => {
950
+ e.fields.port = Y.getPortFromProtocol(t.protocol, String(t.port)), c("model-updated", G.value);
951
+ }), De(() => {
952
+ c("model-updated", G.value);
953
+ }), D({
954
+ validateUrl: T,
955
+ getPayload: G,
956
+ saveFormData: j,
957
+ canSubmit: te,
958
+ initForm: ne
959
+ }), (t, i) => {
960
+ const v = F("KInput"), R = F("KLabel"), V = F("KRadio"), h = F("KSelect"), o = F("KCheckbox"), u = F("KCollapse");
961
+ return S(), U("div", St, [
962
+ d(l(st), {
963
+ "can-submit": te.value,
964
+ config: n.config,
965
+ "edit-id": n.gatewayServiceId,
966
+ "entity-type": l(Ae).GatewayService,
967
+ "error-message": e.errorMessage,
968
+ "fetch-url": ye.value,
969
+ "form-fields": G.value,
970
+ "is-readonly": e.isReadonly,
971
+ onCancel: ce,
972
+ "onFetch:error": i[25] || (i[25] = (s) => t.$emit("error", s)),
973
+ "onFetch:success": ne,
974
+ onLoading: i[26] || (i[26] = (s) => t.$emit("loading", s)),
975
+ onSubmit: j
1106
976
  }, {
1107
- "form-actions": u(() => [
1108
- He(e.$slots, "form-actions", {
1109
- canSubmit: le.value,
1110
- cancel: H,
1111
- submit: V
977
+ "form-actions": f(() => [
978
+ Ke(t.$slots, "form-actions", {
979
+ canSubmit: te.value,
980
+ cancel: ce,
981
+ submit: j
1112
982
  }, void 0, !0)
1113
983
  ]),
1114
- default: u(() => [
1115
- d(o(Le), {
1116
- description: o(s)("gateway_services.form.sections.keys.description"),
1117
- "hide-info-header": a.hideSectionsInfo,
1118
- title: o(s)("gateway_services.form.sections.keys.title")
984
+ default: f(() => [
985
+ d(l(Me), {
986
+ description: l(a)("gateway_services.form.sections.general.description"),
987
+ "hide-info-header": n.hideSectionsInfo,
988
+ title: l(a)("gateway_services.form.sections.general.title")
989
+ }, {
990
+ default: f(() => [
991
+ d(v, {
992
+ modelValue: e.fields.name,
993
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => e.fields.name = s),
994
+ modelModifiers: { trim: !0 },
995
+ autocomplete: "off",
996
+ "data-testid": "gateway-service-name-input",
997
+ error: be.value,
998
+ "error-message": K.value,
999
+ label: l(a)("gateway_services.form.fields.name.label"),
1000
+ "label-attributes": {
1001
+ info: l(a)("gateway_services.form.fields.name.tooltip"),
1002
+ tooltipAttributes: { maxWidth: "400" }
1003
+ },
1004
+ name: "name",
1005
+ placeholder: l(a)("gateway_services.form.fields.name.placeholder"),
1006
+ readonly: e.isReadonly,
1007
+ type: "text",
1008
+ onInput: Ce
1009
+ }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
1010
+ d(v, {
1011
+ modelValue: e.fields.tags,
1012
+ "onUpdate:modelValue": i[1] || (i[1] = (s) => e.fields.tags = s),
1013
+ modelModifiers: { trim: !0 },
1014
+ autocomplete: "off",
1015
+ "data-testid": "gateway-service-tags-input",
1016
+ help: l(a)("gateway_services.form.fields.tags.help"),
1017
+ label: l(a)("gateway_services.form.fields.tags.label"),
1018
+ "label-attributes": {
1019
+ info: l(a)("gateway_services.form.fields.tags.tooltip"),
1020
+ tooltipAttributes: { maxWidth: "400" }
1021
+ },
1022
+ name: "tags",
1023
+ placeholder: l(a)("gateway_services.form.fields.tags.placeholder"),
1024
+ readonly: e.isReadonly,
1025
+ type: "text"
1026
+ }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
1027
+ ]),
1028
+ _: 1
1029
+ }, 8, ["description", "hide-info-header", "title"]),
1030
+ d(l(Me), {
1031
+ description: l(a)("gateway_services.form.sections.keys.description"),
1032
+ "hide-info-header": n.hideSectionsInfo,
1033
+ title: l(a)("gateway_services.form.sections.keys.title")
1119
1034
  }, {
1120
- default: u(() => [
1121
- L.value ? x("", !0) : (w(), T("div", Lt, [
1122
- E("div", Kt, [
1123
- d(c, {
1124
- modelValue: F.value,
1125
- "onUpdate:modelValue": i[0] || (i[0] = (m) => F.value = m),
1126
- card: "",
1127
- "card-orientation": "horizontal",
1035
+ default: f(() => [
1036
+ H.value ? L("", !0) : (S(), U("div", It, [
1037
+ k("div", Tt, [
1038
+ d(R, { required: "" }, {
1039
+ default: f(() => [
1040
+ M(b(l(a)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
1041
+ ]),
1042
+ _: 1
1043
+ })
1044
+ ]),
1045
+ k("div", Et, [
1046
+ d(V, {
1047
+ modelValue: y.value,
1048
+ "onUpdate:modelValue": i[2] || (i[2] = (s) => y.value = s),
1128
1049
  "data-testid": "gateway-service-url-radio",
1129
- description: o(s)("gateway_services.form.sections.keys.url.description"),
1130
- label: o(s)("gateway_services.form.sections.keys.url.label"),
1131
- "selected-value": j.url,
1132
- onChange: U
1133
- }, null, 8, ["modelValue", "description", "label", "selected-value"]),
1134
- d(c, {
1135
- modelValue: F.value,
1136
- "onUpdate:modelValue": i[1] || (i[1] = (m) => F.value = m),
1137
- card: "",
1138
- "card-orientation": "horizontal",
1139
- "checked-group": "protocol",
1140
- "data-testid": "gateway-service-protocol-radio",
1141
- description: o(s)("gateway_services.form.sections.keys.protocol.description"),
1142
- label: o(s)("gateway_services.form.sections.keys.protocol.label"),
1143
- "selected-value": j.protocol,
1144
- onChange: U
1145
- }, null, 8, ["modelValue", "description", "label", "selected-value"])
1050
+ "selected-value": re.url,
1051
+ onChange: J
1052
+ }, {
1053
+ default: f(() => [
1054
+ M(b(l(a)("gateway_services.form.sections.keys.urlLabel")), 1)
1055
+ ]),
1056
+ _: 1
1057
+ }, 8, ["modelValue", "selected-value"])
1146
1058
  ]),
1147
- d(Ae, { name: "slide-fade" }, {
1148
- default: u(() => [
1149
- F.value === "url" ? (w(), T("div", Ot, [
1150
- d(y, {
1151
- modelValue: t.fields.url,
1152
- "onUpdate:modelValue": i[2] || (i[2] = (m) => t.fields.url = m),
1153
- modelModifiers: { trim: !0 },
1154
- class: "gateway-service-url-input gateway-service-form-margin-bottom",
1155
- "data-testid": "gateway-service-url-input",
1156
- error: ve.value("url").length > 0,
1157
- "error-message": t.errorMessages.length <= 1 ? ve.value("url") : void 0,
1158
- label: o(s)("gateway_services.form.fields.upstream_url.label"),
1059
+ y.value === "url" ? (S(), U("div", Pt, [
1060
+ d(v, {
1061
+ modelValue: e.fields.url,
1062
+ "onUpdate:modelValue": i[3] || (i[3] = (s) => e.fields.url = s),
1063
+ modelModifiers: { trim: !0 },
1064
+ class: "gateway-service-url-input gateway-service-form-margin-bottom",
1065
+ "data-testid": "gateway-service-url-input",
1066
+ label: l(a)("gateway_services.form.fields.upstream_url.label"),
1067
+ "label-attributes": {
1068
+ info: n.config.app === "konnect" ? l(a)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : l(a)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
1069
+ tooltipAttributes: { maxWidth: "400" }
1070
+ },
1071
+ name: "url",
1072
+ placeholder: l(a)("gateway_services.form.fields.upstream_url.placeholder"),
1073
+ required: ""
1074
+ }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
1075
+ ])) : L("", !0),
1076
+ d(V, {
1077
+ modelValue: y.value,
1078
+ "onUpdate:modelValue": i[4] || (i[4] = (s) => y.value = s),
1079
+ "checked-group": "protocol",
1080
+ "data-testid": "gateway-service-protocol-radio",
1081
+ "selected-value": re.protocol,
1082
+ onChange: J
1083
+ }, {
1084
+ default: f(() => [
1085
+ M(b(l(a)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
1086
+ ]),
1087
+ _: 1
1088
+ }, 8, ["modelValue", "selected-value"])
1089
+ ])),
1090
+ y.value === "protocol" || H.value ? (S(), U("div", Ut, [
1091
+ d(h, {
1092
+ modelValue: e.fields.protocol,
1093
+ "onUpdate:modelValue": i[5] || (i[5] = (s) => e.fields.protocol = s),
1094
+ "data-testid": "gateway-service-protocol-select",
1095
+ items: he,
1096
+ label: l(a)("gateway_services.form.fields.protocol.label"),
1097
+ "label-attributes": {
1098
+ info: l(a)("gateway_services.form.fields.protocol.tooltip"),
1099
+ tooltipAttributes: { maxWidth: "400" }
1100
+ },
1101
+ readonly: e.isReadonly,
1102
+ required: "",
1103
+ width: "100%",
1104
+ onSelected: i[6] || (i[6] = (s) => z(e.fields.protocol, s))
1105
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1106
+ d(v, {
1107
+ modelValue: e.fields.host,
1108
+ "onUpdate:modelValue": i[7] || (i[7] = (s) => e.fields.host = s),
1109
+ modelModifiers: { trim: !0 },
1110
+ class: "gateway-service-form-margin-top",
1111
+ "data-testid": "gateway-service-host-input",
1112
+ label: l(a)("gateway_services.form.fields.host.label"),
1113
+ "label-attributes": {
1114
+ info: l(a)("gateway_services.form.fields.host.tooltip"),
1115
+ tooltipAttributes: { maxWidth: "400" }
1116
+ },
1117
+ name: "host",
1118
+ placeholder: l(a)("gateway_services.form.fields.host.placeholder"),
1119
+ required: ""
1120
+ }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
1121
+ Q.value ? (S(), U("div", Rt, [
1122
+ d(v, {
1123
+ modelValue: e.fields.path,
1124
+ "onUpdate:modelValue": i[8] || (i[8] = (s) => e.fields.path = s),
1125
+ modelModifiers: { trim: !0 },
1126
+ class: "gateway-service-form-margin-top",
1127
+ "data-testid": "gateway-service-path-input",
1128
+ label: l(a)("gateway_services.form.fields.path.label"),
1129
+ "label-attributes": {
1130
+ info: l(a)("gateway_services.form.fields.path.tooltip"),
1131
+ tooltipAttributes: { maxWidth: "400" }
1132
+ },
1133
+ name: "path",
1134
+ placeholder: l(a)("gateway_services.form.fields.path.placeholder")
1135
+ }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
1136
+ ])) : L("", !0),
1137
+ d(v, {
1138
+ modelValue: e.fields.port,
1139
+ "onUpdate:modelValue": [
1140
+ i[9] || (i[9] = (s) => e.fields.port = s),
1141
+ i[10] || (i[10] = () => {
1142
+ e.fields.port = W(e.fields.port + "");
1143
+ })
1144
+ ],
1145
+ class: "gateway-service-form-margin-top",
1146
+ "data-testid": "gateway-service-port-input",
1147
+ label: l(a)("gateway_services.form.fields.port.label"),
1148
+ "label-attributes": {
1149
+ info: l(a)("gateway_services.form.fields.port.tooltip"),
1150
+ tooltipAttributes: { maxWidth: "400" }
1151
+ },
1152
+ name: "port",
1153
+ type: "number"
1154
+ }, null, 8, ["modelValue", "label", "label-attributes"])
1155
+ ])) : L("", !0),
1156
+ d(u, {
1157
+ modelValue: $.value,
1158
+ "onUpdate:modelValue": i[24] || (i[24] = (s) => $.value = s),
1159
+ "data-testid": "advanced-fields-collapse",
1160
+ "trigger-alignment": "leading",
1161
+ "trigger-label": l(a)("gateway_services.form.sections.keys.viewAdvancedFields")
1162
+ }, {
1163
+ default: f(() => [
1164
+ k("div", Mt, [
1165
+ k("div", $t, [
1166
+ d(v, {
1167
+ modelValue: e.fields.retries,
1168
+ "onUpdate:modelValue": [
1169
+ i[11] || (i[11] = (s) => e.fields.retries = s),
1170
+ i[12] || (i[12] = () => {
1171
+ e.fields.retries = W(e.fields.retries + "");
1172
+ })
1173
+ ],
1174
+ autocomplete: "off",
1175
+ "data-testid": "gateway-service-retries-input",
1176
+ label: l(a)("gateway_services.form.fields.retries.label"),
1159
1177
  "label-attributes": {
1160
- info: a.config.app === "konnect" ? o(s)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : o(s)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
1178
+ info: l(a)("gateway_services.form.fields.retries.tooltip"),
1161
1179
  tooltipAttributes: { maxWidth: "400" }
1162
1180
  },
1163
- name: "url",
1164
- placeholder: o(s)("gateway_services.form.fields.upstream_url.placeholder"),
1165
- required: "",
1166
- onInput: Y
1167
- }, {
1168
- after: u(() => [
1169
- d(_, {
1170
- appearance: "tertiary",
1171
- size: "small"
1172
- }, {
1173
- default: u(() => i[27] || (i[27] = [
1174
- K(" Try Sample API ")
1175
- ])),
1176
- _: 1
1181
+ name: "retries",
1182
+ readonly: e.isReadonly,
1183
+ type: "number"
1184
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1185
+ ]),
1186
+ k("div", xt, [
1187
+ d(v, {
1188
+ modelValue: e.fields.connect_timeout,
1189
+ "onUpdate:modelValue": [
1190
+ i[13] || (i[13] = (s) => e.fields.connect_timeout = s),
1191
+ i[14] || (i[14] = () => {
1192
+ e.fields.connect_timeout = W(e.fields.connect_timeout + "");
1177
1193
  })
1178
- ]),
1179
- _: 1
1180
- }, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder"])
1181
- ])) : x("", !0)
1182
- ]),
1183
- _: 1
1184
- })
1185
- ])),
1186
- d(Ae, { name: "slide-fade" }, {
1187
- default: u(() => [
1188
- F.value === "protocol" || L.value ? (w(), T("div", Nt, [
1189
- d(S, {
1190
- modelValue: t.fields.protocol,
1191
- "onUpdate:modelValue": i[3] || (i[3] = (m) => t.fields.protocol = m),
1192
- "data-testid": "gateway-service-protocol-select",
1193
- items: de,
1194
- label: o(s)("gateway_services.form.fields.protocol.label"),
1195
- "label-attributes": {
1196
- info: o(s)("gateway_services.form.fields.protocol.tooltip"),
1197
- tooltipAttributes: { maxWidth: "400" }
1198
- },
1199
- readonly: t.isReadonly,
1200
- required: "",
1201
- width: "100%",
1202
- onSelected: i[4] || (i[4] = (m) => Ee(t.fields.protocol, m))
1203
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1204
- d(y, {
1205
- modelValue: t.fields.host,
1206
- "onUpdate:modelValue": i[5] || (i[5] = (m) => t.fields.host = m),
1207
- modelModifiers: { trim: !0 },
1208
- class: "gateway-service-form-margin-top",
1209
- "data-testid": "gateway-service-host-input",
1210
- error: t.formFieldErrors.host.length > 0,
1211
- "error-message": t.formFieldErrors.host,
1212
- label: o(s)("gateway_services.form.fields.host.label"),
1213
- "label-attributes": {
1214
- info: o(s)("gateway_services.form.fields.host.tooltip"),
1215
- tooltipAttributes: { maxWidth: "400" }
1216
- },
1217
- name: "host",
1218
- placeholder: o(s)("gateway_services.form.fields.host.placeholder"),
1219
- required: "",
1220
- onInput: o(ee)
1221
- }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "onInput"]),
1222
- Z.value ? (w(), T("div", qt, [
1223
- d(y, {
1224
- modelValue: t.fields.path,
1225
- "onUpdate:modelValue": i[6] || (i[6] = (m) => t.fields.path = m),
1194
+ ],
1195
+ autocomplete: "off",
1196
+ "data-testid": "gateway-service-connTimeout-input",
1197
+ label: l(a)("gateway_services.form.fields.connect_timeout.label"),
1198
+ "label-attributes": {
1199
+ info: l(a)("gateway_services.form.fields.connect_timeout.tooltip"),
1200
+ tooltipAttributes: { maxWidth: "400" }
1201
+ },
1202
+ name: "connTimeout",
1203
+ readonly: e.isReadonly,
1204
+ type: "number"
1205
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1206
+ ]),
1207
+ k("div", At, [
1208
+ d(v, {
1209
+ modelValue: e.fields.write_timeout,
1210
+ "onUpdate:modelValue": [
1211
+ i[15] || (i[15] = (s) => e.fields.write_timeout = s),
1212
+ i[16] || (i[16] = () => {
1213
+ e.fields.write_timeout = W(e.fields.write_timeout + "");
1214
+ })
1215
+ ],
1216
+ autocomplete: "off",
1217
+ "data-testid": "gateway-service-writeTimeout-input",
1218
+ label: l(a)("gateway_services.form.fields.write_timeout.label"),
1219
+ "label-attributes": {
1220
+ info: l(a)("gateway_services.form.fields.write_timeout.tooltip"),
1221
+ tooltipAttributes: { maxWidth: "400" }
1222
+ },
1223
+ name: "writeTimeout",
1224
+ readonly: e.isReadonly,
1225
+ type: "number"
1226
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1227
+ ]),
1228
+ k("div", Ft, [
1229
+ d(v, {
1230
+ modelValue: e.fields.read_timeout,
1231
+ "onUpdate:modelValue": [
1232
+ i[17] || (i[17] = (s) => e.fields.read_timeout = s),
1233
+ i[18] || (i[18] = () => {
1234
+ e.fields.read_timeout = W(e.fields.read_timeout + "");
1235
+ })
1236
+ ],
1237
+ autocomplete: "off",
1238
+ "data-testid": "gateway-service-readTimeout-input",
1239
+ label: l(a)("gateway_services.form.fields.read_timeout.label"),
1240
+ "label-attributes": {
1241
+ info: l(a)("gateway_services.form.fields.read_timeout.tooltip"),
1242
+ tooltipAttributes: { maxWidth: "400" }
1243
+ },
1244
+ name: "readTimeout",
1245
+ readonly: e.isReadonly,
1246
+ type: "number"
1247
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1248
+ ]),
1249
+ we.value ? (S(), U("div", Bt, [
1250
+ d(v, {
1251
+ modelValue: e.fields.client_certificate,
1252
+ "onUpdate:modelValue": i[19] || (i[19] = (s) => e.fields.client_certificate = s),
1226
1253
  modelModifiers: { trim: !0 },
1227
- class: "gateway-service-form-margin-top",
1228
- "data-testid": "gateway-service-path-input",
1229
- error: t.formFieldErrors.path.length > 0,
1230
- "error-message": t.formFieldErrors.path,
1231
- label: o(s)("gateway_services.form.fields.path.label"),
1254
+ autocomplete: "off",
1255
+ "data-testid": "gateway-service-clientCert-input",
1256
+ label: l(a)("gateway_services.form.fields.client_certificate.label"),
1232
1257
  "label-attributes": {
1233
- info: o(s)("gateway_services.form.fields.path.tooltip"),
1258
+ info: l(a)("gateway_services.form.fields.client_certificate.tooltip"),
1234
1259
  tooltipAttributes: { maxWidth: "400" }
1235
1260
  },
1236
- name: "path",
1237
- placeholder: o(s)("gateway_services.form.fields.path.placeholder"),
1238
- onInput: o(ee)
1239
- }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "onInput"])
1240
- ])) : x("", !0),
1241
- d(y, {
1242
- modelValue: t.fields.port,
1243
- "onUpdate:modelValue": [
1244
- i[7] || (i[7] = (m) => t.fields.port = m),
1245
- i[8] || (i[8] = () => {
1246
- t.fields.port = q(t.fields.port + "");
1247
- })
1248
- ],
1249
- class: "gateway-service-form-margin-top",
1250
- "data-testid": "gateway-service-port-input",
1251
- error: t.formFieldErrors.port.length > 0,
1252
- "error-message": t.formFieldErrors.port,
1253
- label: o(s)("gateway_services.form.fields.port.label"),
1254
- "label-attributes": {
1255
- info: o(s)("gateway_services.form.fields.port.tooltip"),
1256
- tooltipAttributes: { maxWidth: "400" }
1257
- },
1258
- name: "port",
1259
- type: "number",
1260
- onInput: o(ee)
1261
- }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "onInput"])
1262
- ])) : x("", !0)
1263
- ]),
1264
- _: 1
1265
- }),
1266
- d(z, {
1267
- modelValue: C.value,
1268
- "onUpdate:modelValue": i[22] || (i[22] = (m) => C.value = m),
1269
- "data-testid": "advanced-fields-collapse",
1270
- "trigger-alignment": "leading",
1271
- "trigger-label": o(s)("gateway_services.form.sections.keys.viewAdvancedFields")
1272
- }, {
1273
- default: u(() => [
1274
- d(Ae, { name: "slide-fade" }, {
1275
- default: u(() => [
1276
- C.value ? x("", !0) : (w(), T("div", Wt, [
1277
- E("div", Gt, [
1278
- d(y, {
1279
- modelValue: t.fields.retries,
1280
- "onUpdate:modelValue": [
1281
- i[9] || (i[9] = (m) => t.fields.retries = m),
1282
- i[10] || (i[10] = () => {
1283
- t.fields.retries = q(t.fields.retries + "");
1284
- })
1285
- ],
1286
- autocomplete: "off",
1287
- "data-testid": "gateway-service-retries-input",
1288
- label: o(s)("gateway_services.form.fields.retries.label"),
1289
- "label-attributes": {
1290
- info: o(s)("gateway_services.form.fields.retries.tooltip"),
1291
- tooltipAttributes: { maxWidth: "400" }
1292
- },
1293
- name: "retries",
1294
- readonly: t.isReadonly,
1295
- type: "number"
1296
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1297
- ]),
1298
- E("div", jt, [
1299
- d(y, {
1300
- modelValue: t.fields.connect_timeout,
1301
- "onUpdate:modelValue": [
1302
- i[11] || (i[11] = (m) => t.fields.connect_timeout = m),
1303
- i[12] || (i[12] = () => {
1304
- t.fields.connect_timeout = q(t.fields.connect_timeout + "");
1305
- })
1306
- ],
1307
- autocomplete: "off",
1308
- "data-testid": "gateway-service-connTimeout-input",
1309
- label: o(s)("gateway_services.form.fields.connect_timeout.label"),
1310
- "label-attributes": {
1311
- info: o(s)("gateway_services.form.fields.connect_timeout.tooltip"),
1312
- tooltipAttributes: { maxWidth: "400" }
1313
- },
1314
- name: "connTimeout",
1315
- readonly: t.isReadonly,
1316
- type: "number"
1317
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1318
- ]),
1319
- E("div", zt, [
1320
- d(y, {
1321
- modelValue: t.fields.write_timeout,
1322
- "onUpdate:modelValue": [
1323
- i[13] || (i[13] = (m) => t.fields.write_timeout = m),
1324
- i[14] || (i[14] = () => {
1325
- t.fields.write_timeout = q(t.fields.write_timeout + "");
1326
- })
1327
- ],
1328
- autocomplete: "off",
1329
- "data-testid": "gateway-service-writeTimeout-input",
1330
- label: o(s)("gateway_services.form.fields.write_timeout.label"),
1331
- "label-attributes": {
1332
- info: o(s)("gateway_services.form.fields.write_timeout.tooltip"),
1333
- tooltipAttributes: { maxWidth: "400" }
1334
- },
1335
- name: "writeTimeout",
1336
- readonly: t.isReadonly,
1337
- type: "number"
1338
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1339
- ]),
1340
- E("div", Zt, [
1341
- d(y, {
1342
- modelValue: t.fields.read_timeout,
1343
- "onUpdate:modelValue": [
1344
- i[15] || (i[15] = (m) => t.fields.read_timeout = m),
1345
- i[16] || (i[16] = () => {
1346
- t.fields.read_timeout = q(t.fields.read_timeout + "");
1347
- })
1348
- ],
1349
- autocomplete: "off",
1350
- "data-testid": "gateway-service-readTimeout-input",
1351
- label: o(s)("gateway_services.form.fields.read_timeout.label"),
1352
- "label-attributes": {
1353
- info: o(s)("gateway_services.form.fields.read_timeout.tooltip"),
1354
- tooltipAttributes: { maxWidth: "400" }
1355
- },
1356
- name: "readTimeout",
1357
- readonly: t.isReadonly,
1358
- type: "number"
1359
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1360
- ]),
1361
- ie.value ? (w(), T("div", Ht, [
1362
- d(y, {
1363
- modelValue: t.fields.client_certificate,
1364
- "onUpdate:modelValue": i[17] || (i[17] = (m) => t.fields.client_certificate = m),
1365
- modelModifiers: { trim: !0 },
1366
- autocomplete: "off",
1367
- "data-testid": "gateway-service-clientCert-input",
1368
- error: t.formFieldErrors.client_certificate.length > 0,
1369
- label: o(s)("gateway_services.form.fields.client_certificate.label"),
1370
- "label-attributes": {
1371
- info: o(s)("gateway_services.form.fields.client_certificate.tooltip"),
1372
- tooltipAttributes: { maxWidth: "400" }
1373
- },
1374
- name: "clientCert",
1375
- placeholder: o(s)("gateway_services.form.fields.client_certificate.placeholder"),
1376
- readonly: t.isReadonly,
1377
- type: "text"
1378
- }, null, 8, ["modelValue", "error", "label", "label-attributes", "placeholder", "readonly"])
1379
- ])) : x("", !0),
1380
- Fe.value ? (w(), T("div", Jt, [
1381
- d(y, {
1382
- modelValue: t.fields.ca_certificates,
1383
- "onUpdate:modelValue": i[18] || (i[18] = (m) => t.fields.ca_certificates = m),
1384
- modelModifiers: { trim: !0 },
1385
- autocomplete: "off",
1386
- "data-testid": "gateway-service-ca-certs-input",
1387
- error: t.formFieldErrors.ca_certificates.length > 0,
1388
- label: o(s)("gateway_services.form.fields.ca_certificates.label"),
1389
- "label-attributes": { tooltipAttributes: { maxWidth: "400" } },
1390
- placeholder: o(s)("gateway_services.form.fields.ca_certificates.placeholder"),
1391
- readonly: t.isReadonly,
1392
- type: "text"
1261
+ name: "clientCert",
1262
+ placeholder: l(a)("gateway_services.form.fields.client_certificate.placeholder"),
1263
+ readonly: e.isReadonly,
1264
+ type: "text"
1265
+ }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
1266
+ ])) : L("", !0),
1267
+ ae.value ? (S(), U("div", Lt, [
1268
+ d(v, {
1269
+ modelValue: e.fields.ca_certificates,
1270
+ "onUpdate:modelValue": i[20] || (i[20] = (s) => e.fields.ca_certificates = s),
1271
+ modelModifiers: { trim: !0 },
1272
+ autocomplete: "off",
1273
+ "data-testid": "gateway-service-ca-certs-input",
1274
+ label: l(a)("gateway_services.form.fields.ca_certificates.label"),
1275
+ "label-attributes": { tooltipAttributes: { maxWidth: "400" } },
1276
+ placeholder: l(a)("gateway_services.form.fields.ca_certificates.placeholder"),
1277
+ readonly: e.isReadonly,
1278
+ type: "text"
1279
+ }, {
1280
+ "label-tooltip": f(() => [
1281
+ d(l(q), {
1282
+ keypath: "gateway_services.form.fields.ca_certificates.tooltip",
1283
+ scope: "global"
1393
1284
  }, {
1394
- "label-tooltip": u(() => [
1395
- d(o(O), {
1396
- keypath: "gateway_services.form.fields.ca_certificates.tooltip",
1397
- scope: "global"
1398
- }, {
1399
- code1: u(() => [
1400
- E("code", null, I(o(s)("gateway_services.form.fields.ca_certificates.code1")), 1)
1401
- ]),
1402
- code2: u(() => [
1403
- E("code", null, I(o(s)("gateway_services.form.fields.ca_certificates.code2")), 1)
1404
- ]),
1405
- _: 1
1406
- })
1285
+ code1: f(() => [
1286
+ k("code", null, b(l(a)("gateway_services.form.fields.ca_certificates.code1")), 1)
1287
+ ]),
1288
+ code2: f(() => [
1289
+ k("code", null, b(l(a)("gateway_services.form.fields.ca_certificates.code2")), 1)
1407
1290
  ]),
1408
1291
  _: 1
1409
- }, 8, ["modelValue", "error", "label", "placeholder", "readonly"])
1410
- ])) : x("", !0),
1411
- Pe.value ? (w(), T("div", Qt, [
1412
- d(l, {
1413
- modelValue: t.fields.tls_verify_enabled,
1414
- "onUpdate:modelValue": i[19] || (i[19] = (m) => t.fields.tls_verify_enabled = m),
1415
- "data-testid": "gateway-service-tls-verify-checkbox",
1416
- description: o(s)("gateway_services.form.fields.tls_verify_enabled.help"),
1417
- label: o(s)("gateway_services.form.fields.tls_verify_enabled.label"),
1418
- "label-attributes": { tooltipAttributes: { maxWidth: "400" } }
1292
+ })
1293
+ ]),
1294
+ _: 1
1295
+ }, 8, ["modelValue", "label", "placeholder", "readonly"])
1296
+ ])) : L("", !0),
1297
+ ke.value ? (S(), U("div", Dt, [
1298
+ d(o, {
1299
+ modelValue: e.fields.tls_verify_enabled,
1300
+ "onUpdate:modelValue": i[21] || (i[21] = (s) => e.fields.tls_verify_enabled = s),
1301
+ "data-testid": "gateway-service-tls-verify-checkbox",
1302
+ description: l(a)("gateway_services.form.fields.tls_verify_enabled.help"),
1303
+ label: l(a)("gateway_services.form.fields.tls_verify_enabled.label"),
1304
+ "label-attributes": { tooltipAttributes: { maxWidth: "400" } }
1305
+ }, {
1306
+ tooltip: f(() => [
1307
+ d(l(q), {
1308
+ keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
1309
+ scope: "global"
1419
1310
  }, {
1420
- tooltip: u(() => [
1421
- d(o(O), {
1422
- keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
1423
- scope: "global"
1424
- }, {
1425
- code1: u(() => [
1426
- E("code", null, I(o(s)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1427
- ]),
1428
- _: 1
1429
- })
1311
+ code1: f(() => [
1312
+ k("code", null, b(l(a)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1430
1313
  ]),
1431
1314
  _: 1
1432
- }, 8, ["modelValue", "description", "label"]),
1433
- t.fields.tls_verify_enabled ? (w(), T("div", Xt, [
1434
- d(c, {
1435
- modelValue: t.fields.tls_verify_value,
1436
- "onUpdate:modelValue": i[20] || (i[20] = (m) => t.fields.tls_verify_value = m),
1437
- "data-testid": "gateway-service-tls-verify-true-option",
1438
- label: o(s)("gateway_services.form.fields.tls_verify_option.true.label"),
1439
- "selected-value": !0
1440
- }, null, 8, ["modelValue", "label"])
1441
- ])) : x("", !0),
1442
- t.fields.tls_verify_enabled ? (w(), T("div", Yt, [
1443
- d(c, {
1444
- modelValue: t.fields.tls_verify_value,
1445
- "onUpdate:modelValue": i[21] || (i[21] = (m) => t.fields.tls_verify_value = m),
1446
- "data-testid": "gateway-service-tls-verify-false-option",
1447
- label: o(s)("gateway_services.form.fields.tls_verify_option.false.label"),
1448
- "selected-value": !1
1449
- }, null, 8, ["modelValue", "label"])
1450
- ])) : x("", !0)
1451
- ])) : x("", !0)
1452
- ]))
1453
- ]),
1454
- _: 1
1455
- })
1456
- ]),
1457
- _: 1
1458
- }, 8, ["modelValue", "trigger-label"])
1459
- ]),
1460
- _: 1
1461
- }, 8, ["description", "hide-info-header", "title"]),
1462
- d(o(Le), {
1463
- description: o(s)("gateway_services.form.sections.general.description"),
1464
- "hide-info-header": a.hideSectionsInfo,
1465
- title: o(s)("gateway_services.form.sections.general.title")
1466
- }, {
1467
- default: u(() => [
1468
- d(y, {
1469
- modelValue: t.fields.name,
1470
- "onUpdate:modelValue": i[23] || (i[23] = (m) => t.fields.name = m),
1471
- modelModifiers: { trim: !0 },
1472
- autocomplete: "off",
1473
- "data-testid": "gateway-service-name-input",
1474
- error: ce.value,
1475
- "error-message": X.value,
1476
- label: o(s)("gateway_services.form.fields.name.label"),
1477
- "label-attributes": {
1478
- info: o(s)("gateway_services.form.fields.name.tooltip"),
1479
- tooltipAttributes: { maxWidth: "400" }
1480
- },
1481
- name: "name",
1482
- placeholder: o(s)("gateway_services.form.fields.name.placeholder"),
1483
- readonly: t.isReadonly,
1484
- type: "text",
1485
- onInput: ye
1486
- }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
1487
- d(z, {
1488
- "data-testid": "tags-collapse",
1489
- "trigger-alignment": "leading",
1490
- "trigger-label": o(s)("gateway_services.form.fields.tags.collapse")
1491
- }, {
1492
- default: u(() => [
1493
- E("div", eo, [
1494
- d(y, {
1495
- modelValue: t.fields.tags,
1496
- "onUpdate:modelValue": i[24] || (i[24] = (m) => t.fields.tags = m),
1497
- modelModifiers: { trim: !0 },
1498
- autocomplete: "off",
1499
- "data-testid": "gateway-service-tags-input",
1500
- help: o(s)("gateway_services.form.fields.tags.help"),
1501
- label: o(s)("gateway_services.form.fields.tags.label"),
1502
- "label-attributes": {
1503
- info: o(s)("gateway_services.form.fields.tags.tooltip"),
1504
- tooltipAttributes: { maxWidth: "400" }
1505
- },
1506
- name: "tags",
1507
- placeholder: o(s)("gateway_services.form.fields.tags.placeholder"),
1508
- readonly: t.isReadonly,
1509
- type: "text"
1510
- }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
1315
+ })
1316
+ ]),
1317
+ _: 1
1318
+ }, 8, ["modelValue", "description", "label"]),
1319
+ e.fields.tls_verify_enabled ? (S(), U("div", Kt, [
1320
+ d(V, {
1321
+ modelValue: e.fields.tls_verify_value,
1322
+ "onUpdate:modelValue": i[22] || (i[22] = (s) => e.fields.tls_verify_value = s),
1323
+ "data-testid": "gateway-service-tls-verify-true-option",
1324
+ label: l(a)("gateway_services.form.fields.tls_verify_option.true.label"),
1325
+ "selected-value": !0
1326
+ }, null, 8, ["modelValue", "label"])
1327
+ ])) : L("", !0),
1328
+ e.fields.tls_verify_enabled ? (S(), U("div", Gt, [
1329
+ d(V, {
1330
+ modelValue: e.fields.tls_verify_value,
1331
+ "onUpdate:modelValue": i[23] || (i[23] = (s) => e.fields.tls_verify_value = s),
1332
+ "data-testid": "gateway-service-tls-verify-false-option",
1333
+ label: l(a)("gateway_services.form.fields.tls_verify_option.false.label"),
1334
+ "selected-value": !1
1335
+ }, null, 8, ["modelValue", "label"])
1336
+ ])) : L("", !0)
1337
+ ])) : L("", !0)
1511
1338
  ])
1512
1339
  ]),
1513
1340
  _: 1
1514
- }, 8, ["trigger-label"])
1515
- ]),
1516
- _: 1
1517
- }, 8, ["description", "hide-info-header", "title"]),
1518
- t.errorMessages.length > 1 ? (w(), se(J, {
1519
- key: 0,
1520
- appearance: "danger"
1521
- }, {
1522
- default: u(() => [
1523
- E("ul", to, [
1524
- (w(!0), T(Je, null, Qe(t.errorMessages, (m) => (w(), T("li", { key: m }, I(m), 1))), 128))
1525
- ])
1341
+ }, 8, ["modelValue", "trigger-label"])
1526
1342
  ]),
1527
1343
  _: 1
1528
- })) : x("", !0)
1344
+ }, 8, ["description", "hide-info-header", "title"])
1529
1345
  ]),
1530
1346
  _: 3
1531
- }, 8, ["can-submit", "config", "edit-id", "entity-type", "fetch-url", "form-fields", "is-readonly"])
1347
+ }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
1532
1348
  ]);
1533
1349
  };
1534
1350
  }
1535
- }), uo = /* @__PURE__ */ Ge(oo, [["__scopeId", "data-v-04ecb6bd"]]), io = { class: "kong-ui-gateway-service-entity-config-card" }, fo = /* @__PURE__ */ Re({
1351
+ }), Qt = /* @__PURE__ */ Fe(qt, [["__scopeId", "data-v-35e0db56"]]), Ot = { class: "kong-ui-gateway-service-entity-config-card" }, Xt = /* @__PURE__ */ Te({
1536
1352
  __name: "GatewayServiceConfigCard",
1537
1353
  props: {
1538
1354
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
1539
1355
  config: {
1540
1356
  type: Object,
1541
1357
  required: !0,
1542
- validator: (a) => !(!a || !["konnect", "kongManager"].includes(a == null ? void 0 : a.app) || a.app === "konnect" && !a.controlPlaneId || a.app === "kongManager" && typeof a.workspace != "string" || !a.entityId)
1358
+ 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)
1543
1359
  },
1544
1360
  /**
1545
1361
  * External link for documentation that determines visibility of Documentation button
@@ -1558,8 +1374,8 @@ const Dt = { class: "kong-ui-entities-gateway-service-form" }, Lt = {
1558
1374
  }
1559
1375
  },
1560
1376
  emits: ["loading", "fetch:error", "fetch:success"],
1561
- setup(a) {
1562
- const P = a, { i18n: { t: p }, i18nT: n } = Ce.useI18n(), r = h(() => ae.form[P.config.app].edit), { getPropValue: C } = yt(), B = (s, A) => C(s, A) === !0 ? p("gateway_services.form.fields.tls_verify_option.true.display") : p("gateway_services.form.fields.tls_verify_option.false.display"), O = R({
1377
+ setup(n) {
1378
+ const D = n, { i18n: { t: p }, i18nT: c } = ve.useI18n(), r = _(() => se.form[D.config.app].edit), { getPropValue: $ } = rt(), N = (a, P) => $(a, P) === !0 ? p("gateway_services.form.fields.tls_verify_option.true.display") : p("gateway_services.form.fields.tls_verify_option.false.display"), q = E({
1563
1379
  id: {},
1564
1380
  name: {
1565
1381
  tooltip: p("gateway_services.form.fields.name.tooltip")
@@ -1568,19 +1384,19 @@ const Dt = { class: "kong-ui-entities-gateway-service-form" }, Lt = {
1568
1384
  updated_at: {},
1569
1385
  created_at: {},
1570
1386
  protocol: {
1571
- section: be.Basic,
1387
+ section: fe.Basic,
1572
1388
  tooltip: p("gateway_services.form.fields.protocol.tooltip")
1573
1389
  },
1574
1390
  host: {
1575
- section: be.Basic,
1391
+ section: fe.Basic,
1576
1392
  tooltip: p("gateway_services.form.fields.host.tooltip")
1577
1393
  },
1578
1394
  path: {
1579
- section: be.Basic,
1395
+ section: fe.Basic,
1580
1396
  tooltip: p("gateway_services.form.fields.path.tooltip")
1581
1397
  },
1582
1398
  port: {
1583
- section: be.Basic,
1399
+ section: fe.Basic,
1584
1400
  tooltip: p("gateway_services.form.fields.port.tooltip")
1585
1401
  },
1586
1402
  tags: {
@@ -1608,7 +1424,7 @@ const Dt = { class: "kong-ui-entities-gateway-service-form" }, Lt = {
1608
1424
  tooltip: p("gateway_services.form.fields.client_certificate.tooltip")
1609
1425
  },
1610
1426
  ca_certificates: {
1611
- type: _t.BadgeTag,
1427
+ type: at.BadgeTag,
1612
1428
  label: p("gateway_services.form.fields.ca_certificates.label"),
1613
1429
  order: 6
1614
1430
  },
@@ -1619,62 +1435,62 @@ const Dt = { class: "kong-ui-entities-gateway-service-form" }, Lt = {
1619
1435
  hidden: !0
1620
1436
  }
1621
1437
  });
1622
- return (s, A) => (w(), T("div", io, [
1623
- d(o(ht), {
1624
- config: a.config,
1625
- "config-card-doc": a.configCardDoc,
1626
- "config-schema": O.value,
1627
- "entity-type": o(We).GatewayService,
1438
+ return (a, P) => (S(), U("div", Ot, [
1439
+ d(l(nt), {
1440
+ config: n.config,
1441
+ "config-card-doc": n.configCardDoc,
1442
+ "config-schema": q.value,
1443
+ "entity-type": l(Ae).GatewayService,
1628
1444
  "fetch-url": r.value,
1629
- "hide-title": a.hideTitle,
1630
- "onFetch:error": A[0] || (A[0] = (k) => s.$emit("fetch:error", k)),
1631
- "onFetch:success": A[1] || (A[1] = (k) => s.$emit("fetch:success", k)),
1632
- onLoading: A[2] || (A[2] = (k) => s.$emit("loading", k))
1445
+ "hide-title": n.hideTitle,
1446
+ "onFetch:error": P[0] || (P[0] = (C) => a.$emit("fetch:error", C)),
1447
+ "onFetch:success": P[1] || (P[1] = (C) => a.$emit("fetch:success", C)),
1448
+ onLoading: P[2] || (P[2] = (C) => a.$emit("loading", C))
1633
1449
  }, {
1634
- "enabled-label-tooltip": u(() => [
1635
- d(o(n), {
1450
+ "enabled-label-tooltip": f(() => [
1451
+ d(l(c), {
1636
1452
  keypath: "gateway_services.form.fields.enabled.tooltip",
1637
1453
  scope: "global"
1638
1454
  }, {
1639
- false: u(() => [
1640
- E("code", null, I(o(p)("gateway_services.form.fields.enabled.false")), 1)
1455
+ false: f(() => [
1456
+ k("code", null, b(l(p)("gateway_services.form.fields.enabled.false")), 1)
1641
1457
  ]),
1642
- true: u(() => [
1643
- E("code", null, I(o(p)("gateway_services.form.fields.enabled.true")), 1)
1458
+ true: f(() => [
1459
+ k("code", null, b(l(p)("gateway_services.form.fields.enabled.true")), 1)
1644
1460
  ]),
1645
1461
  _: 1
1646
1462
  })
1647
1463
  ]),
1648
- "ca_certificates-label-tooltip": u(() => [
1649
- d(o(n), {
1464
+ "ca_certificates-label-tooltip": f(() => [
1465
+ d(l(c), {
1650
1466
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
1651
1467
  scope: "global"
1652
1468
  }, {
1653
- code1: u(() => [
1654
- E("code", null, I(o(p)("gateway_services.form.fields.ca_certificates.code1")), 1)
1469
+ code1: f(() => [
1470
+ k("code", null, b(l(p)("gateway_services.form.fields.ca_certificates.code1")), 1)
1655
1471
  ]),
1656
- code2: u(() => [
1657
- E("code", null, I(o(p)("gateway_services.form.fields.ca_certificates.code2")), 1)
1472
+ code2: f(() => [
1473
+ k("code", null, b(l(p)("gateway_services.form.fields.ca_certificates.code2")), 1)
1658
1474
  ]),
1659
1475
  _: 1
1660
1476
  })
1661
1477
  ]),
1662
- "tls_verify-label-tooltip": u(() => [
1663
- d(o(n), {
1478
+ "tls_verify-label-tooltip": f(() => [
1479
+ d(l(c), {
1664
1480
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
1665
1481
  scope: "global"
1666
1482
  }, {
1667
- code1: u(() => [
1668
- E("code", null, I(o(p)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1483
+ code1: f(() => [
1484
+ k("code", null, b(l(p)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
1669
1485
  ]),
1670
1486
  _: 1
1671
1487
  })
1672
1488
  ]),
1673
- tls_verify: u((k) => [
1674
- K(I(typeof o(C)("rowValue", k) == "boolean" ? B("rowValue", k) : o(p)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
1489
+ tls_verify: f((C) => [
1490
+ M(b(typeof l($)("rowValue", C) == "boolean" ? N("rowValue", C) : l(p)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
1675
1491
  ]),
1676
- client_certificate: u((k) => [
1677
- K(I(o(C)("rowValue", k) ? o(C)("rowValue", k).id : "–"), 1)
1492
+ client_certificate: f((C) => [
1493
+ M(b(l($)("rowValue", C) ? l($)("rowValue", C).id : "–"), 1)
1678
1494
  ]),
1679
1495
  _: 1
1680
1496
  }, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
@@ -1682,7 +1498,7 @@ const Dt = { class: "kong-ui-entities-gateway-service-form" }, Lt = {
1682
1498
  }
1683
1499
  });
1684
1500
  export {
1685
- fo as GatewayServiceConfigCard,
1686
- uo as GatewayServiceForm,
1687
- co as GatewayServiceList
1501
+ Xt as GatewayServiceConfigCard,
1502
+ Qt as GatewayServiceForm,
1503
+ Jt as GatewayServiceList
1688
1504
  };