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