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