@kong-ui-public/entities-gateway-services 3.9.3-pr.1949.491334e9d.0 → 3.9.3-pr.1949.5a79e6bd7.0

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