@kong-ui-public/entities-shared 3.72.1 → 3.72.2-pr.3999.7a488ec91.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.
Files changed (37) hide show
  1. package/README.md +2 -0
  2. package/dist/_plugin-vue_export-helper-B2ERpA_4.cjs +1 -0
  3. package/dist/{_plugin-vue_export-helper-CH7HFDMi.js → _plugin-vue_export-helper-CnEmxi1C.js} +216 -213
  4. package/dist/deck-editor.cjs.js +1 -1
  5. package/dist/deck-editor.es.js +1 -1
  6. package/dist/entities-shared.cjs.js +75 -75
  7. package/dist/entities-shared.es.js +2326 -2154
  8. package/dist/style.css +1 -1
  9. package/dist/types/components/common/DeckCallout.vue.d.ts +2 -2
  10. package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts +16 -14
  11. package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts.map +1 -1
  12. package/dist/types/components/entity-base-config-card/ConfigCardRowSchemaScope.vue.d.ts +26 -0
  13. package/dist/types/components/entity-base-config-card/ConfigCardRowSchemaScope.vue.d.ts.map +1 -0
  14. package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts +25 -13
  15. package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts.map +1 -1
  16. package/dist/types/components/entity-base-config-card/EntityConfigCardView.vue.d.ts +247 -0
  17. package/dist/types/components/entity-base-config-card/EntityConfigCardView.vue.d.ts.map +1 -0
  18. package/dist/types/components/entity-base-config-card/reader-config-card.d.ts +34 -0
  19. package/dist/types/components/entity-base-config-card/reader-config-card.d.ts.map +1 -0
  20. package/dist/types/components/entity-base-config-card/record.d.ts +6 -0
  21. package/dist/types/components/entity-base-config-card/record.d.ts.map +1 -0
  22. package/dist/types/components/entity-base-config-card/row-schema.d.ts +11 -0
  23. package/dist/types/components/entity-base-config-card/row-schema.d.ts.map +1 -0
  24. package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts +1 -1
  25. package/dist/types/composables/index.d.ts +3 -3
  26. package/dist/types/composables/useDeckOptions.d.ts +3 -2
  27. package/dist/types/composables/useDeckOptions.d.ts.map +1 -1
  28. package/dist/types/composables/useSchema.d.ts +3 -3
  29. package/dist/types/composables/useSchema.d.ts.map +1 -1
  30. package/dist/types/index.d.ts +4 -3
  31. package/dist/types/index.d.ts.map +1 -1
  32. package/dist/types/types/entity-base-config-card.d.ts +14 -0
  33. package/dist/types/types/entity-base-config-card.d.ts.map +1 -1
  34. package/dist/types/utils/config-card.d.ts +9 -0
  35. package/dist/types/utils/config-card.d.ts.map +1 -0
  36. package/package.json +2 -2
  37. package/dist/_plugin-vue_export-helper-CaP0B8XI.cjs +0 -1
@@ -1,7 +1,7 @@
1
1
  import N from "axios";
2
- import { inject as D, ref as y, computed as b, unref as H, toValue as g, watch as re, toRef as oe, provide as S } from "vue";
2
+ import { inject as O, ref as y, computed as h, unref as V, toValue as m, watch as oe, provide as H } from "vue";
3
3
  import { createI18n as W, i18nTComponent as ie } from "@kong-ui-public/i18n";
4
- const rt = /* @__PURE__ */ Symbol("PLUGIN_FORM_LAYOUT_STATE"), ot = /* @__PURE__ */ Symbol("CONFIG_CARD_SHOW_SENSITIVE_FIELDS"), Y = /* @__PURE__ */ Symbol("DECK_COMMAND_EDITOR"), J = "[entities-shared] DeckCommandEditor was not provided. Provide it via the `DECK_COMMAND_EDITOR_KEY` injection key or the `provideDeckCommandEditor` helper (see @kong-ui-public/entities-shared/deck-editor).", it = "50vh", ct = 2e5, ce = {
4
+ const nt = /* @__PURE__ */ Symbol("PLUGIN_FORM_LAYOUT_STATE"), rt = /* @__PURE__ */ Symbol("CONFIG_CARD_SHOW_SENSITIVE_FIELDS"), Y = /* @__PURE__ */ Symbol("DECK_COMMAND_EDITOR"), J = "[entities-shared] DeckCommandEditor was not provided. Provide it via the `DECK_COMMAND_EDITOR_KEY` injection key or the `provideDeckCommandEditor` helper (see @kong-ui-public/entities-shared/deck-editor).", ot = "50vh", it = 2e5, ce = {
5
5
  /** Surfaces the `managed_by` ownership field in entity lists and detail cards. */
6
6
  MANAGED_BY: "KM-3018-entity-managed-by"
7
7
  };
@@ -9,7 +9,7 @@ function le() {
9
9
  return {
10
10
  getAxiosInstance: (e = {}) => {
11
11
  try {
12
- const n = D("get-axios-instance", void 0);
12
+ const n = O("get-axios-instance", void 0);
13
13
  return typeof n == "function" ? n(e) : N.create({
14
14
  withCredentials: !0,
15
15
  timeout: 3e4,
@@ -41,13 +41,13 @@ function ue() {
41
41
  }
42
42
  };
43
43
  }
44
- const R = "khcp-user-table-preferences", de = {
44
+ const K = "khcp-user-table-preferences", de = {
45
45
  pageSize: 30,
46
46
  sortColumnKey: void 0,
47
47
  sortColumnOrder: void 0,
48
48
  columnVisibility: {}
49
49
  };
50
- function lt() {
50
+ function ct() {
51
51
  const e = (o) => {
52
52
  if (typeof o == "string")
53
53
  try {
@@ -57,31 +57,31 @@ function lt() {
57
57
  return;
58
58
  }
59
59
  }, n = () => {
60
- const o = e(localStorage.getItem(R));
60
+ const o = e(localStorage.getItem(K));
61
61
  return !o || !Object.keys(o).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(o));
62
62
  };
63
63
  return {
64
64
  setTablePreferences: (o, t) => {
65
65
  try {
66
- const s = n();
67
- s.set(o, t), localStorage.setItem(R, JSON.stringify(Object.fromEntries(s.entries())));
68
- } catch (s) {
69
- console.error("useTablePreferences(setTablePreferences)", s);
66
+ const a = n();
67
+ a.set(o, t), localStorage.setItem(K, JSON.stringify(Object.fromEntries(a.entries())));
68
+ } catch (a) {
69
+ console.error("useTablePreferences(setTablePreferences)", a);
70
70
  }
71
71
  },
72
72
  getTablePreferences: (o, t) => n()?.get(o) || void 0 || t || de,
73
73
  deleteAllTablePreferences: () => {
74
- localStorage.removeItem(R);
74
+ localStorage.removeItem(K);
75
75
  }
76
76
  };
77
77
  }
78
- function T(e = {}) {
78
+ function P(e = {}) {
79
79
  const { getAxiosInstance: n } = le();
80
80
  return {
81
81
  axiosInstance: n(e)
82
82
  };
83
83
  }
84
- const fe = { actions: { copyId: "Copy ID", copied_id: 'Copied "{id}" to the clipboard', copyToClipboard: "Copied successfully!", copyToClipboardFailed: "Failed to copy to the clipboard" } }, pe = { message: "Are you sure you want to delete this {entityType}?", messageWithName: "Are you sure you want to delete this {entityType} {entityName}?" }, ge = { actions: { viewConfiguration: "View configuration", hideConfiguration: "Hide configuration", save: "Save", cancel: "Cancel", back: "Back" }, configuration: { title: "Configuration", message: "Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.", yaml: "YAML", json: "JSON", terraform: "Terraform", deck: "decK" }, errors: { edit: "The entity could not be edited at this time." } }, me = { emptyState: { noSearchResultsTitle: "No results found", noSearchResultsMessage: "Please adjust the criteria and try again.", noSearchResultsCtaText: "Clear" } }, ye = { title: "Configuration", actions: { copy: "Copy JSON", deck_customize: "Customize before copying to CLI", deck_customize_cancel: "Cancel", sensitive_fields: "Show sensitive fields", sensitive_fields_tooltip: "View masked sensitive data in your configurations if any field values have been redacted." }, sections: { advanced: "Advanced", plugin: "Plugin specific configuration", policy: "Policy specific configuration" }, commonFields: { id_label: "ID", name_label: "Name", enabled_label: "Enabled", enabled_tooltip: "Enabled is FTW", updated_at_label: "Last updated", created_at_label: "Created", managed_by_label: "Managed By", tags_label: "Tags", link: "Link", partial_label: "Redis configuration" }, statusBadge: { enabledLabel: "Enabled", disabledLabel: "Disabled" }, copy: { tooltip: "Copy {label}", success: "Copied!" }, errors: { load: "The entity configuration data could not be loaded at this time.", copy: "Failed to copy to clipboard" }, general: { entryTitle: "Entry {index}", structuredFormat: "Structured" } }, he = { learnMore: "Learn more", pricingTitle: "Pricing: " }, be = { filterButtonText: "Filter", fieldLabel: "Filter by:", inputPlaceholder: "Enter a value", selectPlaceholder: "Select an item", applyButtonText: "Apply", clearButtonText: "Clear", clearAllButtonText: "Clear all filters" }, ve = { errors: { fetch: "Could not fetch available items", invalid: "Please select a valid value" } }, _e = { unexpected: "An unexpected error has occurred", dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.' }, Ae = { utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces." }, Ce = { enable: { title: "Enable {entityType}", message: "Are you sure you want to enable the {entityType} {entityName}?", confirmText: "Yes, enable" }, disable: { title: "Disable {entityType}", message: "Are you sure you want to disable the {entityType} {entityName}?", confirmText: "Yes, disable" } }, ke = { copy_url: "Copy URL" }, we = { hint: { konnect: "The {token} environment variable must be added first. See {link} for details.", kongManager: "If your Admin API is secured, set up authentication following {link}." }, documentation: "the documentation", steps: { step_1: "Step 1: Export token", step_2: "Step 2: Apply configuration" }, customization: { title: "Customize before copying to CLI", copy_pat: "Make sure to copy your personal access token now. You won't be able to see it again.", reuse_pat: "Use an existing PAT if you've already generated one.", generate_pat: "Generate PAT", footer_reminder: "Changes you make here won't affect your configuration. After you apply changes with decK in the CLI, refresh the page to view them.", secret_advise: "Command may contain sensitive values. Treat it as a secret." }, copy_tooltip: "Copy" }, Ie = { body: "Want a ready-to-use CLI command? {cta} to view this configuration as a decK sync snippet you can copy directly.", cta: "Switch to decK format" }, xe = { title: "Generate a Personal Access Token", description: "Personal access tokens are used to authenticate decK commands and Konnect API requests.", fields: { name: { label: "Name", placeholder: "Enter token name" }, expiresAt: { label: "Expiration date", placeholder: "Select an expiration date", n_days: "{n} days" } }, actions: { cancel: "Cancel", generate: "Generate", generating: "Generating…" } }, Ee = { dismissLabel: "Dismiss" }, De = { rotateKey: "Rotate key", generateKey: "Generate key", placeholder: "Enter or generate a key", oneTimeHint: "The key is shown only once. Copy it now and store it securely.", copy: "Copy", showKey: "Show key", hideKey: "Hide key" }, Q = {
84
+ const fe = { actions: { copyId: "Copy ID", copied_id: 'Copied "{id}" to the clipboard', copyToClipboard: "Copied successfully!", copyToClipboardFailed: "Failed to copy to the clipboard" } }, pe = { message: "Are you sure you want to delete this {entityType}?", messageWithName: "Are you sure you want to delete this {entityType} {entityName}?" }, ge = { actions: { viewConfiguration: "View configuration", hideConfiguration: "Hide configuration", save: "Save", cancel: "Cancel", back: "Back" }, configuration: { title: "Configuration", message: "Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.", yaml: "YAML", json: "JSON", terraform: "Terraform", deck: "decK" }, errors: { edit: "The entity could not be edited at this time." } }, me = { emptyState: { noSearchResultsTitle: "No results found", noSearchResultsMessage: "Please adjust the criteria and try again.", noSearchResultsCtaText: "Clear" } }, ye = { title: "Configuration", actions: { copy: "Copy JSON", deck_customize: "Customize before copying to CLI", deck_customize_cancel: "Cancel", sensitive_fields: "Show sensitive fields", sensitive_fields_tooltip: "View masked sensitive data in your configurations if any field values have been redacted." }, sections: { advanced: "Advanced", plugin: "Plugin specific configuration", policy: "Policy specific configuration" }, commonFields: { id_label: "ID", name_label: "Name", enabled_label: "Enabled", enabled_tooltip: "Enabled is FTW", updated_at_label: "Last updated", created_at_label: "Created", managed_by_label: "Managed By", tags_label: "Tags", link: "Link", partial_label: "Redis configuration" }, statusBadge: { enabledLabel: "Enabled", disabledLabel: "Disabled" }, copy: { tooltip: "Copy {label}", success: "Copied!" }, errors: { load: "The entity configuration data could not be loaded at this time.", copy: "Failed to copy to clipboard" }, general: { formatLabel: "Format:", entryTitle: "Entry {index}", structuredFormat: "Structured" } }, he = { learnMore: "Learn more", pricingTitle: "Pricing: " }, be = { filterButtonText: "Filter", fieldLabel: "Filter by:", inputPlaceholder: "Enter a value", selectPlaceholder: "Select an item", applyButtonText: "Apply", clearButtonText: "Clear", clearAllButtonText: "Clear all filters" }, ve = { errors: { fetch: "Could not fetch available items", invalid: "Please select a valid value" } }, _e = { unexpected: "An unexpected error has occurred", dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.' }, Ae = { utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces." }, Ce = { enable: { title: "Enable {entityType}", message: "Are you sure you want to enable the {entityType} {entityName}?", confirmText: "Yes, enable" }, disable: { title: "Disable {entityType}", message: "Are you sure you want to disable the {entityType} {entityName}?", confirmText: "Yes, disable" } }, ke = { copy_url: "Copy URL" }, we = { hint: { konnect: "The {token} environment variable must be added first. See {link} for details.", kongManager: "If your Admin API is secured, set up authentication following {link}." }, documentation: "the documentation", steps: { step_1: "Step 1: Export token", step_2: "Step 2: Apply configuration" }, customization: { title: "Customize before copying to CLI", copy_pat: "Make sure to copy your personal access token now. You won't be able to see it again.", reuse_pat: "Use an existing PAT if you've already generated one.", generate_pat: "Generate PAT", footer_reminder: "Changes you make here won't affect your configuration. After you apply changes with decK in the CLI, refresh the page to view them.", secret_advise: "Command may contain sensitive values. Treat it as a secret." }, copy_tooltip: "Copy" }, Ie = { body: "Want a ready-to-use CLI command? {cta} to view this configuration as a decK sync snippet you can copy directly.", cta: "Switch to decK format" }, xe = { title: "Generate a Personal Access Token", description: "Personal access tokens are used to authenticate decK commands and Konnect API requests.", fields: { name: { label: "Name", placeholder: "Enter token name" }, expiresAt: { label: "Expiration date", placeholder: "Select an expiration date", n_days: "{n} days" } }, actions: { cancel: "Cancel", generate: "Generate", generating: "Generating…" } }, Ee = { dismissLabel: "Dismiss" }, De = { rotateKey: "Rotate key", generateKey: "Generate key", placeholder: "Enter or generate a key", oneTimeHint: "The key is shown only once. Copy it now and store it securely.", copy: "Copy", showKey: "Show key", hideKey: "Hide key" }, Q = {
85
85
  global: fe,
86
86
  deleteModal: pe,
87
87
  baseForm: ge,
@@ -100,7 +100,7 @@ const fe = { actions: { copyId: "Copy ID", copied_id: 'Copied "{id}" to the clip
100
100
  onboardingCard: Ee,
101
101
  sensitiveInput: De
102
102
  };
103
- function M() {
103
+ function L() {
104
104
  const e = W("en-us", Q);
105
105
  return {
106
106
  i18n: e,
@@ -109,7 +109,7 @@ function M() {
109
109
  };
110
110
  }
111
111
  var I = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(I || {}), X = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.CloudGatewayAddon = "cloud_gateway_addon", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.TlsTrustBundle = "tls_trust_bundle", e.AuthServer = "auth_server", e.AuthServerScopes = "auth_server_scopes", e.AuthServerClaims = "auth_server_claims", e.AuthServerClients = "auth_server_clients", e.Other = "other", e.PluginSchema = "plugin_schema", e.CustomPlugin = "custom_plugin", e.ClonedPlugin = "cloned_plugin", e))(X || {});
112
- const ut = Object.values(X), Oe = [
112
+ const lt = Object.values(X), Oe = [
113
113
  "ca_certificate",
114
114
  "certificate",
115
115
  "consumer",
@@ -131,16 +131,16 @@ const ut = Object.values(X), Oe = [
131
131
  function Z(e) {
132
132
  return Oe.includes(e);
133
133
  }
134
- const dt = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key", "tls_trust_bundle"], ft = ["auth_server", "auth_server_scopes", "auth_server_claims", "auth_server_clients"];
135
- var P = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e.ManagedBy = "managed-by", e))(P || {}), Le = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(Le || {});
136
- const pt = ["structured", "yaml", "json", "terraform", "deck"];
134
+ const ut = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key", "tls_trust_bundle"], dt = ["auth_server", "auth_server_scopes", "auth_server_claims", "auth_server_clients"];
135
+ var R = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e.ManagedBy = "managed-by", e))(R || {}), Le = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(Le || {});
136
+ const ft = ["structured", "yaml", "json", "terraform", "deck"];
137
137
  function q() {
138
138
  const e = (i, r) => r?.[i] ?? void 0, n = (i, r) => {
139
139
  if (i.length !== r.length) return !1;
140
140
  const d = /* @__PURE__ */ new Set([...i, ...r]);
141
141
  for (const c of d) {
142
- const f = i.filter((A) => A === c).length, h = r.filter((A) => A === c).length;
143
- if (f !== h) return !1;
142
+ const f = i.filter((A) => A === c).length, b = r.filter((A) => A === c).length;
143
+ if (f !== b) return !1;
144
144
  }
145
145
  return !0;
146
146
  }, o = (i, r, d) => {
@@ -168,13 +168,13 @@ function q() {
168
168
  }, t = (i) => (r, d) => {
169
169
  let c = r[i] === void 0 || r[i] === null ? "" : r[i], f = d[i] === void 0 || d[i] === null ? "" : d[i];
170
170
  return Array.isArray(r[i]) && (c = r[i][0]), Array.isArray(d[i]) && (f = d[i][0]), c.localeCompare(f);
171
- }, s = (i) => i ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(i) : !1, l = "********", a = (i) => !!i && typeof i == "object" && !Array.isArray(i), u = (i, r) => i?.find((c) => Object.keys(c)?.[0] === r)?.[r], m = (i, r) => {
171
+ }, a = (i) => i ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(i) : !1, l = "********", s = (i) => !!i && typeof i == "object" && !Array.isArray(i), u = (i, r) => i?.find((c) => Object.keys(c)?.[0] === r)?.[r], p = (i, r) => {
172
172
  if (!r || i === null || i === void 0)
173
173
  return i;
174
174
  if (r.type === "string")
175
175
  return r.encrypted ? l : i;
176
176
  if (r.type === "record" || r.type === "map") {
177
- if (!a(i))
177
+ if (!s(i))
178
178
  return i;
179
179
  if (r.type === "map" && !r.values)
180
180
  return { ...i };
@@ -182,10 +182,10 @@ function q() {
182
182
  for (const c in i)
183
183
  if (r.type === "record") {
184
184
  const f = u(r.fields, c);
185
- d[c] = f ? m(i[c], f) : i[c];
185
+ d[c] = f ? p(i[c], f) : i[c];
186
186
  } else if (r.type === "map") {
187
187
  const f = r.values;
188
- d[c] = m(i[c], {
188
+ d[c] = p(i[c], {
189
189
  ...f,
190
190
  encrypted: !!(r.encrypted || f.encrypted)
191
191
  });
@@ -194,7 +194,7 @@ function q() {
194
194
  }
195
195
  if ((r.type === "array" || r.type === "set") && Array.isArray(i)) {
196
196
  const d = r.elements;
197
- return d ? i.map((c) => m(c, {
197
+ return d ? i.map((c) => p(c, {
198
198
  ...d,
199
199
  // encryption set if either parent or child is encrypted
200
200
  encrypted: !!(r.encrypted || d.encrypted)
@@ -204,15 +204,15 @@ function q() {
204
204
  }, v = (i, r) => {
205
205
  if (Array.isArray(i))
206
206
  return i.map((c) => v(c, r));
207
- if (!a(i))
207
+ if (!s(i))
208
208
  return i;
209
209
  const d = {};
210
210
  for (const c in i) {
211
- if (r[c]?.type === P.Redacted) {
211
+ if (r[c]?.type === R.Redacted) {
212
212
  d[c] = l;
213
213
  continue;
214
214
  }
215
- if (r[c]?.type === P.RedactedArray && Array.isArray(i[c])) {
215
+ if (r[c]?.type === R.RedactedArray && Array.isArray(i[c])) {
216
216
  d[c] = i[c].map(() => l);
217
217
  continue;
218
218
  }
@@ -224,78 +224,78 @@ function q() {
224
224
  getPropValue: e,
225
225
  objectsAreEqual: o,
226
226
  sortAlpha: t,
227
- isValidUuid: s,
228
- isObjectRecord: a,
227
+ isValidUuid: a,
228
+ isObjectRecord: s,
229
229
  getApiSchemaField: u,
230
- redactByApiSchema: m,
230
+ redactByApiSchema: p,
231
231
  redactByConfigSchema: v
232
232
  };
233
233
  }
234
- function Me(e, n, o, t = {
234
+ function Ke(e, n, o, t = {
235
235
  fetchedItemsKey: "data",
236
236
  searchKeys: ["id"]
237
237
  }) {
238
238
  o || (o = "1000");
239
- const { axiosInstance: s } = T(e.axiosRequestConfig), { i18n: { t: l } } = M(), { debounce: a } = ue(), u = a(async (p) => {
240
- await x(p);
241
- }, 200), m = y(!1), v = y(""), i = y(""), r = y([]), d = y([]), c = y(void 0), f = b(() => {
242
- let p = `${e.apiBaseUrl}${H(n)}`;
243
- return e.app === "konnect" && (p = p.replace(/{controlPlaneId}/gi, e?.controlPlaneId || "")), p.replace(/\/{workspace}/gi, e?.workspace ? `/${e.workspace}` : "");
244
- }), { isValidUuid: h } = q(), A = async () => {
239
+ const { axiosInstance: a } = P(e.axiosRequestConfig), { i18n: { t: l } } = L(), { debounce: s } = ue(), u = s(async (g) => {
240
+ await x(g);
241
+ }, 200), p = y(!1), v = y(""), i = y(""), r = y([]), d = y([]), c = y(void 0), f = h(() => {
242
+ let g = `${e.apiBaseUrl}${V(n)}`;
243
+ return e.app === "konnect" && (g = g.replace(/{controlPlaneId}/gi, e?.controlPlaneId || "")), g.replace(/\/{workspace}/gi, e?.workspace ? `/${e.workspace}` : "");
244
+ }), { isValidUuid: b } = q(), A = async () => {
245
245
  try {
246
- m.value = !0;
247
- const { data: p } = await s.get(`${f.value}?size=${o}`);
248
- p?.next || (c.value = t.fetchedItemsKey in p ? p[t.fetchedItemsKey] : []), d.value = t.fetchedItemsKey in p ? p[t.fetchedItemsKey] : [], r.value = d.value;
246
+ p.value = !0;
247
+ const { data: g } = await a.get(`${f.value}?size=${o}`);
248
+ g?.next || (c.value = t.fetchedItemsKey in g ? g[t.fetchedItemsKey] : []), d.value = t.fetchedItemsKey in g ? g[t.fetchedItemsKey] : [], r.value = d.value;
249
249
  } catch {
250
250
  r.value = [], v.value = l("debouncedFilter.errors.fetch");
251
251
  } finally {
252
- m.value = !1;
252
+ p.value = !1;
253
253
  }
254
- }, w = y(""), x = async (p) => {
255
- if (w.value !== p) {
256
- if (w.value = p ?? "", !p) {
254
+ }, w = y(""), x = async (g) => {
255
+ if (w.value !== g) {
256
+ if (w.value = g ?? "", !g) {
257
257
  r.value = d.value;
258
258
  return;
259
259
  }
260
260
  if (c.value === void 0)
261
261
  try {
262
- if (m.value = !0, v.value = "", i.value = "", e.app === "konnect") {
263
- const _ = `${f.value}/${p}`, { data: C } = await s.get(`${_}?size=${o}`);
262
+ if (p.value = !0, v.value = "", i.value = "", e.app === "konnect") {
263
+ const _ = `${f.value}/${g}`, { data: C } = await a.get(`${_}?size=${o}`);
264
264
  t.fetchedItemsKey in C ? r.value = C[t.fetchedItemsKey] : C?.[t.exactMatchKey ?? "id"] ? r.value = [C] : r.value = [];
265
265
  } else {
266
266
  const _ = [];
267
- h(p) && t.searchKeys.includes("id") ? _.push((async () => {
268
- const { data: k } = await s.get(`${f.value}/${p}`);
267
+ b(g) && t.searchKeys.includes("id") ? _.push((async () => {
268
+ const { data: k } = await a.get(`${f.value}/${g}`);
269
269
  return [k[t.fetchedItemsKey] ?? k];
270
270
  })()) : _.push(
271
271
  ...t.searchKeys.filter((k) => k !== "id").map(async (k) => {
272
- const { data: O } = await s.get(`${f.value}?${k}=${p}`);
273
- return O[t.fetchedItemsKey];
272
+ const { data: D } = await a.get(`${f.value}?${k}=${g}`);
273
+ return D[t.fetchedItemsKey];
274
274
  })
275
275
  );
276
276
  const C = await Promise.all(_), E = /* @__PURE__ */ new Set();
277
277
  r.value = [], C?.forEach?.((k) => {
278
- k?.forEach?.((O) => {
279
- E.has(O.id) || (E.add(O.id), r.value.push(O));
278
+ k?.forEach?.((D) => {
279
+ E.has(D.id) || (E.add(D.id), r.value.push(D));
280
280
  });
281
281
  });
282
282
  }
283
283
  } catch (_) {
284
284
  _?.response?.status === 404 ? i.value = l("debouncedFilter.errors.invalid") : (r.value = [], v.value = l("debouncedFilter.errors.fetch"));
285
285
  } finally {
286
- m.value = !1;
286
+ p.value = !1;
287
287
  }
288
288
  else
289
- m.value = !0, i.value = "", r.value = c.value?.filter((_) => {
289
+ p.value = !0, i.value = "", r.value = c.value?.filter((_) => {
290
290
  let C = !1;
291
291
  for (const E of t.searchKeys)
292
- (typeof _[E] == "string" ? _[E]?.toLowerCase() : _[E])?.includes(p.toLowerCase()) && (C = !0);
292
+ (typeof _[E] == "string" ? _[E]?.toLowerCase() : _[E])?.includes(g.toLowerCase()) && (C = !0);
293
293
  return C;
294
- }), (!r.value || !r.value.length) && (i.value = l("debouncedFilter.errors.invalid")), m.value = !1;
294
+ }), (!r.value || !r.value.length) && (i.value = l("debouncedFilter.errors.invalid")), p.value = !1;
295
295
  }
296
296
  };
297
297
  return {
298
- loading: m,
298
+ loading: p,
299
299
  error: v,
300
300
  validationError: i,
301
301
  results: r,
@@ -304,56 +304,56 @@ function Me(e, n, o, t = {
304
304
  debouncedQueryChange: u
305
305
  };
306
306
  }
307
- function Re(e, n) {
308
- const o = D(Y, null), t = b(() => {
309
- const a = g(e);
310
- return (a.app === "kongManager" || !!(a.app === "konnect" && a.enableDeckConfig)) && Z(g(n));
311
- }), s = b(() => {
312
- const a = g(e), u = a.app === "konnect" && a.enableDeckConfig && typeof a.enableDeckConfig != "boolean" ? a.enableDeckConfig.customization : void 0;
307
+ function Me(e, n) {
308
+ const o = O(Y, null), t = h(() => {
309
+ const s = m(e), u = s.app === "kongManager" || !!(s.app === "konnect" && s.enableDeckConfig), p = m(n);
310
+ return u && p !== void 0 && Z(p);
311
+ }), a = h(() => {
312
+ const s = m(e), u = s.app === "konnect" && s.enableDeckConfig && typeof s.enableDeckConfig != "boolean" ? s.enableDeckConfig.customization : void 0;
313
313
  if (u && !o) {
314
314
  console.warn(J);
315
315
  return;
316
316
  }
317
317
  return u;
318
- }), l = b(() => {
319
- const a = g(e);
320
- return a.app === "konnect" && a.enableDeckConfig && typeof a.enableDeckConfig != "boolean" ? a.enableDeckConfig.calloutPreferenceKey : a.app === "kongManager" ? a.deckCalloutPreferenceKey : void 0;
318
+ }), l = h(() => {
319
+ const s = m(e);
320
+ return s.app === "konnect" && s.enableDeckConfig && typeof s.enableDeckConfig != "boolean" ? s.enableDeckConfig.calloutPreferenceKey : s.app === "kongManager" ? s.deckCalloutPreferenceKey : void 0;
321
321
  });
322
322
  return {
323
323
  isDeckEnabled: t,
324
- deckCustomizationOptions: s,
324
+ deckCustomizationOptions: a,
325
325
  deckCalloutPreferenceKey: l
326
326
  };
327
327
  }
328
- function Ke(e, n) {
329
- const o = D(Y, null), t = b(() => {
330
- const a = g(e);
331
- return (a.app === "kongManager" || !!(a.app === "konnect" && a.enableDeckTab)) && Z(g(n));
332
- }), s = b(() => {
333
- const a = g(e), u = a.app === "konnect" && a.enableDeckTab && typeof a.enableDeckTab != "boolean" ? a.enableDeckTab.customization : void 0;
328
+ function Re(e, n) {
329
+ const o = O(Y, null), t = h(() => {
330
+ const s = m(e);
331
+ return (s.app === "kongManager" || !!(s.app === "konnect" && s.enableDeckTab)) && Z(m(n));
332
+ }), a = h(() => {
333
+ const s = m(e), u = s.app === "konnect" && s.enableDeckTab && typeof s.enableDeckTab != "boolean" ? s.enableDeckTab.customization : void 0;
334
334
  if (u && !o) {
335
335
  console.warn(J);
336
336
  return;
337
337
  }
338
338
  return u;
339
- }), l = b(() => {
340
- const a = g(e);
341
- return a.app === "konnect" && a.enableDeckTab && typeof a.enableDeckTab != "boolean" ? a.enableDeckTab.calloutPreferenceKey : a.app === "kongManager" ? a.deckCalloutPreferenceKey : void 0;
339
+ }), l = h(() => {
340
+ const s = m(e);
341
+ return s.app === "konnect" && s.enableDeckTab && typeof s.enableDeckTab != "boolean" ? s.enableDeckTab.calloutPreferenceKey : s.app === "kongManager" ? s.deckCalloutPreferenceKey : void 0;
342
342
  });
343
343
  return {
344
344
  isDeckEnabled: t,
345
- deckCustomizationOptions: s,
345
+ deckCustomizationOptions: a,
346
346
  deckCalloutPreferenceKey: l
347
347
  };
348
348
  }
349
349
  function Pe(e, n) {
350
- const o = H(n), t = b(
350
+ const o = V(n), t = h(
351
351
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${o}`) : new URL(o)
352
352
  );
353
- return t.value.search = "", (s) => `${t.value.href}/${s}`;
353
+ return t.value.search = "", (a) => `${t.value.href}/${a}`;
354
354
  }
355
355
  function Te() {
356
- const { i18n: { t: e } } = M();
356
+ const { i18n: { t: e } } = L();
357
357
  return {
358
358
  getErrorFieldsFromError: (t) => {
359
359
  if (!t)
@@ -366,30 +366,30 @@ function Te() {
366
366
  messages: [],
367
367
  fields: []
368
368
  };
369
- let s = [e("errors.unexpected")];
369
+ let a = [e("errors.unexpected")];
370
370
  const l = [];
371
371
  if (t?.response?.data) {
372
372
  if (t.response.data.details?.length)
373
- return s = [], t.response.data.details.forEach((a) => {
373
+ return a = [], t.response.data.details.forEach((s) => {
374
374
  let u = e("errors.unexpected");
375
- a.messages && Array.isArray(a.messages) && a.messages.length && (u = a.messages.join(", ")), a.field && l.push({ field: a.field, message: u }), s.push(`${a.field ?? ""} ${u}`);
376
- }), { messages: s, fields: l };
375
+ s.messages && Array.isArray(s.messages) && s.messages.length && (u = s.messages.join(", ")), s.field && l.push({ field: s.field, message: u }), a.push(`${s.field ?? ""} ${u}`);
376
+ }), { messages: a, fields: l };
377
377
  if (t.response.data.message && Array.isArray(t.response.data.message))
378
- return s = [], t.response.data.message.forEach((a) => {
379
- if (a?.constraints) {
380
- const u = Object.values(a.constraints).join(", ");
381
- s.push(u), a.property && l.push({ field: a.property, message: u });
382
- } else a?.property && a?.message ? (l.push({ field: a.property, message: a.message }), s.push(a.message)) : s.push(a);
383
- }), { messages: s, fields: l };
378
+ return a = [], t.response.data.message.forEach((s) => {
379
+ if (s?.constraints) {
380
+ const u = Object.values(s.constraints).join(", ");
381
+ a.push(u), s.property && l.push({ field: s.property, message: u });
382
+ } else s?.property && s?.message ? (l.push({ field: s.property, message: s.message }), a.push(s.message)) : a.push(s);
383
+ }), { messages: a, fields: l };
384
384
  if (typeof t.response.data.message == "string" || typeof t.response.data == "string")
385
385
  return {
386
386
  messages: [t.response.data.message],
387
387
  fields: []
388
388
  };
389
389
  if (typeof t.response.data == "object")
390
- return s = [], Object.keys(t.response.data).forEach((a) => {
391
- l.push({ field: a, message: t.response.data[a] }), s.push(t.response.data[a]);
392
- }), { messages: s, fields: l };
390
+ return a = [], Object.keys(t.response.data).forEach((s) => {
391
+ l.push({ field: s, message: t.response.data[s] }), a.push(t.response.data[s]);
392
+ }), { messages: a, fields: l };
393
393
  }
394
394
  return {
395
395
  messages: [t.message || e("errors.unexpected")],
@@ -405,18 +405,18 @@ function Te() {
405
405
  if (t.response.data.detail)
406
406
  return t.response.data.detail;
407
407
  if (t.response.data.details?.length)
408
- return t.response.data.details.map((s) => {
408
+ return t.response.data.details.map((a) => {
409
409
  let l = e("errors.unexpected");
410
- return s.messages && typeof s.messages == "object" && s.messages.length && (l = s.messages.join(", ")), s.field ? `${s.field} - ${l}` : l;
410
+ return a.messages && typeof a.messages == "object" && a.messages.length && (l = a.messages.join(", ")), a.field ? `${a.field} - ${l}` : l;
411
411
  }).join("; ");
412
412
  if (t.response.data.message) {
413
- const { message: s } = t.response.data;
414
- return Array.isArray(s) ? s[0]?.constraints ? Object.values(s[0].constraints)[0] : s[0] : s;
413
+ const { message: a } = t.response.data;
414
+ return Array.isArray(a) ? a[0]?.constraints ? Object.values(a[0].constraints)[0] : a[0] : a;
415
415
  }
416
416
  if (typeof t.response.data == "string")
417
417
  return t.response.data;
418
418
  if (typeof t.response.data == "object")
419
- return Object.keys(t.response.data).map((s) => `${s} ${t.response.data[s]}`).join(", ");
419
+ return Object.keys(t.response.data).map((a) => `${a} ${t.response.data[a]}`).join(", ");
420
420
  }
421
421
  return t.message || e("errors.unexpected");
422
422
  }
@@ -425,8 +425,8 @@ function Te() {
425
425
  function Ne(e) {
426
426
  const n = window.location.origin, o = n.endsWith("/") ? n : `${n}/`;
427
427
  try {
428
- const t = e.join("/"), s = `${o}${t}`, l = e.some((u) => u.trim() === "");
429
- if (/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(s) && !l && new URL(s))
428
+ const t = e.join("/"), a = `${o}${t}`, l = e.some((u) => u.trim() === "");
429
+ if (/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(a) && !l && new URL(a))
430
430
  return `${o}${t}`;
431
431
  throw new Error("Invalid url");
432
432
  } catch (t) {
@@ -434,52 +434,52 @@ function Ne(e) {
434
434
  }
435
435
  }
436
436
  function ee(e, n) {
437
- const o = b(() => {
438
- const s = g(e);
439
- return typeof s.isExactMatch == "boolean" ? s.isExactMatch : s.app === "konnect";
440
- }), t = b(() => {
441
- const s = g(n);
442
- return s.startsWith("/") ? new URL(`${window.location.origin}${s}`) : new URL(s);
437
+ const o = h(() => {
438
+ const a = m(e);
439
+ return typeof a.isExactMatch == "boolean" ? a.isExactMatch : a.app === "konnect";
440
+ }), t = h(() => {
441
+ const a = m(n);
442
+ return a.startsWith("/") ? new URL(`${window.location.origin}${a}`) : new URL(a);
443
443
  });
444
- return (s) => {
445
- const { page: l, pageSize: a, offset: u, sortColumnKey: m, sortColumnOrder: v, query: i } = s;
444
+ return (a) => {
445
+ const { page: l, pageSize: s, offset: u, sortColumnKey: p, sortColumnOrder: v, query: i } = a;
446
446
  try {
447
447
  let r = new URL(t.value.href);
448
448
  if (o.value && i) {
449
449
  const d = new URLSearchParams(t.value.search);
450
- r.search = "", r = g(e).isExactMatch ? new URL(`${r.href}/${i}`) : new URL(`${r.href}?filter[name][contains]=${i}`), d.forEach((c, f) => r.searchParams.append(f, c));
450
+ r.search = "", r = m(e).isExactMatch ? new URL(`${r.href}/${i}`) : new URL(`${r.href}?filter[name][contains]=${i}`), d.forEach((c, f) => r.searchParams.append(f, c));
451
451
  } else
452
452
  o.value || new URLSearchParams(i).forEach((d, c) => {
453
453
  r.searchParams.append(c, d);
454
- }), m && r.searchParams.append("sort_by", m), v === "desc" && r.searchParams.append("sort_desc", "1"), r.searchParams.append("size", String(a));
454
+ }), p && r.searchParams.append("sort_by", p), v === "desc" && r.searchParams.append("sort_desc", "1"), r.searchParams.append("size", String(s));
455
455
  return u && l !== 1 && r.searchParams.append("offset", String(u)), r.href;
456
456
  } catch (r) {
457
- return console.error("RouteList(fetcher)", r), g(n);
457
+ return console.error("RouteList(fetcher)", r), m(n);
458
458
  }
459
459
  };
460
460
  }
461
461
  const $ = /* @__PURE__ */ new Map();
462
462
  function $e(e, n, o) {
463
- const t = y(!0), s = g(e), { axiosInstance: l } = T(s.axiosRequestConfig), a = ee(e, n), u = y({
463
+ const t = y(!0), a = m(e), { axiosInstance: l } = P(a.axiosRequestConfig), s = ee(e, n), u = y({
464
464
  status: I.Idle
465
- }), m = async (r) => {
466
- const d = g(o) || "data";
465
+ }), p = async (r) => {
466
+ const d = m(o) || "data";
467
467
  try {
468
468
  u.value = t.value ? { status: I.InitialLoad } : { status: I.Loading }, t.value = !1;
469
- let c = a(r);
469
+ let c = s(r);
470
470
  c.includes("filter[name]") && (c = `${c}&page[size]=${r.pageSize}&page[number]=${r.page}`);
471
471
  const f = await l.get(c);
472
472
  if (f.status >= 400)
473
473
  throw f;
474
- const h = f.data, A = d && d.replace(/[^\w-_]/gi, "");
474
+ const b = f.data, A = d && d.replace(/[^\w-_]/gi, "");
475
475
  let w;
476
- h[A] ? w = Array.isArray(h[A]) ? h[A] : [h[A]] : Array.isArray(h) ? w = h : w = Object.keys(h).length ? [h] : [];
476
+ b[A] ? w = Array.isArray(b[A]) ? b[A] : [b[A]] : Array.isArray(b) ? w = b : w = Object.keys(b).length ? [b] : [];
477
477
  const x = {
478
478
  data: w,
479
479
  total: w.length,
480
- ...h.offset ? {
480
+ ...b.offset ? {
481
481
  pagination: {
482
- offset: h.offset
482
+ offset: b.offset
483
483
  }
484
484
  } : null
485
485
  };
@@ -505,8 +505,8 @@ function $e(e, n, o) {
505
505
  error: c.response ? c : { response: c }
506
506
  }, f);
507
507
  }
508
- }, v = s.cacheIdentifier, i = te(v);
509
- return { fetcher: m, fetcherState: u, fetcherCacheKey: i };
508
+ }, v = a.cacheIdentifier, i = te(v);
509
+ return { fetcher: p, fetcherState: u, fetcherCacheKey: i };
510
510
  }
511
511
  function te(e) {
512
512
  if (e) {
@@ -516,9 +516,9 @@ function te(e) {
516
516
  return y(1);
517
517
  }
518
518
  function Ue() {
519
- const e = (t, s = "_") => t ? t.split(s).map((l) => l.toLowerCase() === "id" ? l.toUpperCase() : l.charAt(0).toUpperCase() + l.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
519
+ const e = (t, a = "_") => t ? t.split(a).map((l) => l.toLowerCase() === "id" ? l.toUpperCase() : l.charAt(0).toUpperCase() + l.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
520
520
  return {
521
- capitalize: (t) => t ? t.replace(n, (s) => s.toUpperCase()) : "",
521
+ capitalize: (t) => t ? t.replace(n, (a) => a.toUpperCase()) : "",
522
522
  convertKeyToTitle: e
523
523
  };
524
524
  }
@@ -529,27 +529,27 @@ const se = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
529
529
  if (!n)
530
530
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
531
531
  return n.shift(), n;
532
- }, B = (e) => e === "*" || e === "x" || e === "X", j = (e) => {
532
+ }, B = (e) => e === "*" || e === "x" || e === "X", F = (e) => {
533
533
  const n = parseInt(e, 10);
534
534
  return isNaN(n) ? e : n;
535
- }, Be = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], je = (e, n) => {
535
+ }, Be = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Fe = (e, n) => {
536
536
  if (B(e) || B(n))
537
537
  return 0;
538
- const [o, t] = Be(j(e), j(n));
538
+ const [o, t] = Be(F(e), F(n));
539
539
  return o > t ? 1 : o < t ? -1 : 0;
540
- }, F = (e, n) => {
540
+ }, j = (e, n) => {
541
541
  for (let o = 0; o < Math.max(e.length, n.length); o++) {
542
- const t = je(e[o] || "0", n[o] || "0");
542
+ const t = Fe(e[o] || "0", n[o] || "0");
543
543
  if (t !== 0)
544
544
  return t;
545
545
  }
546
546
  return 0;
547
- }, Fe = (e, n) => {
548
- const o = U(e), t = U(n), s = o.pop(), l = t.pop(), a = F(o, t);
549
- return a !== 0 ? a : s && l ? F(s.split("."), l.split(".")) : s || l ? s ? -1 : 1 : 0;
547
+ }, je = (e, n) => {
548
+ const o = U(e), t = U(n), a = o.pop(), l = t.pop(), s = j(o, t);
549
+ return s !== 0 ? s : a && l ? j(a.split("."), l.split(".")) : a || l ? a ? -1 : 1 : 0;
550
550
  }, G = (e, n, o) => {
551
551
  Ge(o);
552
- const t = Fe(e, n);
552
+ const t = je(e, n);
553
553
  return ae[o].includes(t);
554
554
  }, ae = {
555
555
  ">": [1],
@@ -564,70 +564,72 @@ const se = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
564
564
  if (z.indexOf(e) === -1)
565
565
  throw new Error(`Invalid operator, expected one of ${z.join("|")}`);
566
566
  }, ze = (e) => typeof e == "string" && /^[v\d]/.test(e) && se.test(e);
567
- function Ve(e) {
567
+ function Se(e) {
568
568
  const { gatewayInfo: n, supportedRange: o } = e;
569
569
  if (!n)
570
570
  return !0;
571
- const { edition: t, version: s } = n;
572
- if (!ze(s))
571
+ const { edition: t, version: a } = n;
572
+ if (!ze(a))
573
573
  return console.error("Invalid version"), !1;
574
574
  const l = o[t];
575
575
  if (!l)
576
576
  return !1;
577
- const [a, u] = l;
578
- return !(a && G(s, a, "<") || u && G(s, u, ">"));
577
+ const [s, u] = l;
578
+ return !(s && G(a, s, "<") || u && G(a, u, ">"));
579
579
  }
580
- function He(e) {
580
+ function Ve(e) {
581
581
  const n = y(0), o = y(0), t = y(!1);
582
- return re(e, (l) => {
582
+ return oe(e, (l) => {
583
583
  l && !t.value && (n.value = l.offsetWidth, o.value = l.scrollWidth, t.value = !0);
584
584
  }), {
585
- isTruncated: b(() => n.value < o.value)
585
+ isTruncated: h(() => n.value < o.value)
586
586
  };
587
587
  }
588
- function Se() {
589
- const { i18n: { t: e } } = M();
588
+ function He() {
589
+ const { i18n: { t: e } } = L();
590
590
  return {
591
591
  utf8Name: (o) => /^[\p{N}\p{L}.\-_~]*$/u.test(o) ? "" : e("validationErrors.utf8Name")
592
592
  };
593
593
  }
594
- const L = /* @__PURE__ */ Symbol("schema"), We = (e) => {
595
- S(L, e);
596
- }, Ye = () => D(L, void 0), Je = (e) => /^\d+$/.test(e), Qe = (e) => {
597
- const o = D(L, void 0)?.value;
598
- let t;
599
- if ((o?.type === "array" || o?.type === "set") && Je(e)) {
600
- const l = o.elements;
601
- t = l && {
602
- ...l,
603
- // encryption set if either parent or child is encrypted
604
- encrypted: !!(o.encrypted || l.encrypted)
605
- };
606
- } else
607
- t = o?.fields?.find((a) => Object.keys(a)[0] === e)?.[e];
608
- const s = oe(t);
609
- return S(L, s), s;
594
+ const T = /* @__PURE__ */ Symbol("schema"), We = (e) => {
595
+ H(T, e);
596
+ }, ne = () => O(T, void 0), Ye = (e) => /^\d+$/.test(e), Je = (e) => {
597
+ const n = ne(), o = h(() => {
598
+ const t = n?.value, a = m(e);
599
+ let l;
600
+ if ((t?.type === "array" || t?.type === "set") && Ye(a)) {
601
+ const s = t.elements;
602
+ l = s && {
603
+ ...s,
604
+ // encryption set if either parent or child is encrypted
605
+ encrypted: !!(t.encrypted || s.encrypted)
606
+ };
607
+ } else
608
+ l = t?.fields?.find((u) => Object.keys(u)[0] === a)?.[a];
609
+ return l;
610
+ });
611
+ return H(T, o), o;
610
612
  };
611
- function Xe(e) {
613
+ function Qe(e) {
612
614
  let n = "";
613
- const o = y(!1), t = y(null), s = b(() => {
614
- let a;
615
- return o.value ? a = !0 : t.value ? a = t.value.hasData || e && g(e) : a = !1, !a;
615
+ const o = y(!1), t = y(null), a = h(() => {
616
+ let s;
617
+ return o.value ? s = !0 : t.value ? s = t.value.hasData || e && m(e) : s = !1, !s;
616
618
  });
617
619
  return {
618
620
  tableState: t,
619
621
  hasRecords: o,
620
- hideTableToolbar: s,
621
- handleStateChange: (a) => {
622
- a.hasData ? o.value = !0 : a.state === "success" && !a.hasData && (!e || !n) && (o.value = !1), e && (n = g(e)), t.value = { ...a };
622
+ hideTableToolbar: a,
623
+ handleStateChange: (s) => {
624
+ s.hasData ? o.value = !0 : s.state === "success" && !s.hasData && (!e || !n) && (o.value = !1), e && (n = m(e)), t.value = { ...s };
623
625
  }
624
626
  };
625
627
  }
626
- function ne() {
627
- const e = D(ce.MANAGED_BY, !1);
628
- return b(() => !!g(e));
628
+ function re() {
629
+ const e = O(ce.MANAGED_BY, !1);
630
+ return h(() => !!m(e));
629
631
  }
630
- const Ze = (e) => e?.service || e?.tool || null, qe = "Custom", V = {
632
+ const Xe = (e) => e?.service || e?.tool || null, Ze = "Custom", S = {
631
633
  "terraform-provider-konnect": "Terraform",
632
634
  deck: "decK",
633
635
  "kong-gateway-operator": "Kong Gateway Operator",
@@ -636,14 +638,14 @@ const Ze = (e) => e?.service || e?.tool || null, qe = "Custom", V = {
636
638
  "gw-manager": "Konnect UI",
637
639
  "ai-manager": "AI Manager",
638
640
  "dev-portal": "Dev Portal"
639
- }, gt = (e) => {
640
- const n = Ze(e);
641
- return n ? Object.hasOwn(V, n) ? V[n] : qe : null;
641
+ }, pt = (e) => {
642
+ const n = Xe(e);
643
+ return n ? Object.hasOwn(S, n) ? S[n] : Ze : null;
642
644
  };
643
- let K;
644
- const et = () => (K === void 0 && (K = W("en-us", Q).t("baseConfigCard.commonFields.managed_by_label")), K);
645
- function tt(e, n = {}) {
646
- const o = ne();
645
+ let M;
646
+ const qe = () => (M === void 0 && (M = W("en-us", Q).t("baseConfigCard.commonFields.managed_by_label")), M);
647
+ function et(e, n = {}) {
648
+ const o = re();
647
649
  return {
648
650
  defaultTablePreferences: {
649
651
  columnVisibility: {
@@ -651,18 +653,18 @@ function tt(e, n = {}) {
651
653
  ...n
652
654
  }
653
655
  },
654
- tableHeaders: b(() => ({
655
- ...g(e),
656
- ...o.value ? { managed_by: { label: et(), sortable: !1 } } : {}
656
+ tableHeaders: h(() => ({
657
+ ...m(e),
658
+ ...o.value ? { managed_by: { label: qe(), sortable: !1 } } : {}
657
659
  }))
658
660
  };
659
661
  }
660
- const mt = {
661
- useAxios: T,
662
- useDebouncedFilter: Me,
662
+ const gt = {
663
+ useAxios: P,
664
+ useDebouncedFilter: Ke,
663
665
  useDeleteUrlBuilder: Pe,
664
- useBaseEntityDeckOptions: Re,
665
- useBaseFormDeckOptions: Ke,
666
+ useBaseEntityDeckOptions: Me,
667
+ useBaseFormDeckOptions: Re,
666
668
  useErrors: Te,
667
669
  useExternalLinkCreator: Ne,
668
670
  useFetcher: $e,
@@ -670,45 +672,46 @@ const mt = {
670
672
  useFetchUrlBuilder: ee,
671
673
  useHelpers: q,
672
674
  useStringHelpers: Ue,
673
- useI18n: M,
674
- useGatewayFeatureSupported: Ve,
675
- useTruncationDetector: He,
676
- useValidators: Se,
677
- useSchema: Ye,
675
+ useI18n: L,
676
+ useGatewayFeatureSupported: Se,
677
+ useTruncationDetector: Ve,
678
+ useValidators: He,
679
+ useSchema: ne,
678
680
  useSchemaProvider: We,
679
- useSubSchema: Qe,
680
- useTableState: Xe,
681
- useManagedByEnabled: ne,
682
- useManagedByColumn: tt
683
- }, yt = (e, n) => {
681
+ useSubSchema: Je,
682
+ useTableState: Qe,
683
+ useManagedByEnabled: re,
684
+ useManagedByColumn: et
685
+ }, mt = (e, n) => {
684
686
  const o = e.__vccOpts || e;
685
- for (const [t, s] of n)
686
- o[t] = s;
687
+ for (const [t, a] of n)
688
+ o[t] = a;
687
689
  return o;
688
690
  };
689
691
  export {
690
- P as C,
692
+ R as C,
691
693
  Y as D,
692
- dt as E,
694
+ ut as E,
693
695
  I as F,
694
- ft as I,
695
- V as M,
696
- rt as P,
697
- ct as S,
698
- yt as _,
699
- ot as a,
700
- it as b,
701
- mt as c,
696
+ dt as I,
697
+ S as M,
698
+ nt as P,
699
+ it as S,
700
+ mt as _,
701
+ rt as a,
702
+ ot as b,
703
+ gt as c,
702
704
  X as d,
703
- ut as e,
705
+ lt as e,
704
706
  J as f,
705
- gt as g,
706
- pt as h,
707
+ pt as g,
708
+ ft as h,
707
709
  Le as i,
708
- lt as j,
710
+ ct as j,
709
711
  ce as k,
710
712
  Oe as l,
711
- et as m,
713
+ qe as m,
712
714
  de as n,
713
- Z as o
715
+ Z as o,
716
+ q as u
714
717
  };