@kong-ui-public/entities-snis 3.3.18 → 3.4.1
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.
package/dist/entities-snis.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { createI18n as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as X, ref as E, computed as I, watch as ye, renderSlot as le, createCommentVNode as Z, unref as m, toValue as Zn, onBeforeMount as ut, resolveComponent as K, openBlock as C, createBlock as D, resolveDynamicComponent as Se, withCtx as w, createElementVNode as L, toDisplayString as M, createElementBlock as q, withModifiers as rt, createVNode as N, createTextVNode as Q, createSlots as Yt, withDirectives as ge, vShow as he, renderList as dt, Fragment as Wt, normalizeClass as Me, withKeys as Gn, useSlots as Qn, useCssVars as Xn, inject as ei, onMounted as ti, onUnmounted as ni, normalizeStyle as Ue, pushScopeId as Be, popScopeId as Ve, Teleport as ii, reactive as kt } from "vue";
|
|
2
|
+
import { createI18n as Jt, i18nTComponent as Zt } from "@kong-ui-public/i18n";
|
|
3
|
+
import wt from "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
5
|
-
import { useRouter as
|
|
6
|
-
const
|
|
5
|
+
import { useRouter as Gt } from "vue-router";
|
|
6
|
+
const ri = {
|
|
7
7
|
create: "New SNI",
|
|
8
8
|
copy_id: "Copy ID",
|
|
9
9
|
copy_json: "Copy JSON",
|
|
@@ -11,10 +11,10 @@ const ti = {
|
|
|
11
11
|
delete: "Delete",
|
|
12
12
|
clear: "Clear",
|
|
13
13
|
loading: "Loading..."
|
|
14
|
-
},
|
|
14
|
+
}, ai = {
|
|
15
15
|
placeholder: "Filter by exact name or ID",
|
|
16
16
|
no_results: "No results found"
|
|
17
|
-
},
|
|
17
|
+
}, oi = {
|
|
18
18
|
title: "SNIs",
|
|
19
19
|
list: {
|
|
20
20
|
toolbar_actions: {
|
|
@@ -31,7 +31,7 @@ const ti = {
|
|
|
31
31
|
description: "SNIs are used to map hostnames to a certificate."
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, li = {
|
|
35
35
|
sections: {
|
|
36
36
|
general: {
|
|
37
37
|
title: "General Information",
|
|
@@ -59,7 +59,7 @@ const ti = {
|
|
|
59
59
|
footer: "Search by exact ID to find certificates not included in the list"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
},
|
|
62
|
+
}, si = {
|
|
63
63
|
delete: "The SNI could not be deleted at this time.",
|
|
64
64
|
general: "SNIs could not be retrieved",
|
|
65
65
|
certificates: {
|
|
@@ -67,68 +67,69 @@ const ti = {
|
|
|
67
67
|
invalid: "Please select a valid certificate ID"
|
|
68
68
|
},
|
|
69
69
|
copy: "Failed to copy to clipboard"
|
|
70
|
-
},
|
|
70
|
+
}, ci = {
|
|
71
71
|
success: "Copied {val} to clipboard",
|
|
72
72
|
success_brief: "Successfully copied to clipboard"
|
|
73
|
-
},
|
|
74
|
-
actions:
|
|
75
|
-
search:
|
|
76
|
-
snis:
|
|
77
|
-
form:
|
|
73
|
+
}, ui = {
|
|
74
|
+
actions: ri,
|
|
75
|
+
search: ai,
|
|
76
|
+
snis: oi,
|
|
77
|
+
form: li,
|
|
78
78
|
delete: {
|
|
79
79
|
title: "Delete an SNI",
|
|
80
80
|
description: "This action cannot be reversed so make sure to check the SNI usage before deleting."
|
|
81
81
|
},
|
|
82
|
-
errors:
|
|
83
|
-
copy:
|
|
82
|
+
errors: si,
|
|
83
|
+
copy: ci
|
|
84
84
|
};
|
|
85
|
-
function
|
|
86
|
-
const e =
|
|
85
|
+
function di() {
|
|
86
|
+
const e = Jt("en-us", ui);
|
|
87
87
|
return {
|
|
88
88
|
i18n: e,
|
|
89
|
-
i18nT:
|
|
89
|
+
i18nT: Zt(e)
|
|
90
90
|
// Translation component <i18n-t>
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
const
|
|
94
|
-
useI18n:
|
|
95
|
-
},
|
|
93
|
+
const Qt = {
|
|
94
|
+
useI18n: di
|
|
95
|
+
}, $e = "/v2/control-planes/{controlPlaneId}/core-entities", je = "/{workspace}", Ee = {
|
|
96
96
|
list: {
|
|
97
97
|
konnect: {
|
|
98
|
-
all: `${
|
|
98
|
+
all: `${$e}/snis`
|
|
99
99
|
},
|
|
100
100
|
kongManager: {
|
|
101
|
-
all: `${
|
|
101
|
+
all: `${je}/snis`
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
form: {
|
|
105
105
|
konnect: {
|
|
106
|
+
create: `${$e}/snis`,
|
|
107
|
+
edit: `${$e}/snis/{id}`,
|
|
108
|
+
validate: `${$e}/v1/schemas/json/sni/validate`,
|
|
109
|
+
certificates: `${$e}/certificates`
|
|
110
|
+
},
|
|
111
|
+
kongManager: {
|
|
106
112
|
create: `${je}/snis`,
|
|
107
113
|
edit: `${je}/snis/{id}`,
|
|
108
|
-
validate: `${je}/
|
|
114
|
+
validate: `${je}/schemas/snis/validate`,
|
|
109
115
|
certificates: `${je}/certificates`
|
|
110
|
-
},
|
|
111
|
-
kongManager: {
|
|
112
|
-
create: `${Oe}/snis`,
|
|
113
|
-
edit: `${Oe}/snis/{id}`,
|
|
114
|
-
validate: `${Oe}/schemas/snis/validate`,
|
|
115
|
-
certificates: `${Oe}/certificates`
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
-
var
|
|
120
|
-
|
|
119
|
+
var Xt = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e))(Xt || {}), Pe = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Pe || {}), ke = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(ke || {}), pt = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "key_set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e))(pt || {});
|
|
120
|
+
const en = Object.values(pt);
|
|
121
|
+
function pi() {
|
|
121
122
|
return {
|
|
122
123
|
getAxiosInstance: (e = {}) => {
|
|
123
124
|
try {
|
|
124
|
-
const t =
|
|
125
|
-
return typeof t == "function" ? t(e) :
|
|
125
|
+
const t = ei("get-axios-instance", void 0);
|
|
126
|
+
return typeof t == "function" ? t(e) : wt.create({
|
|
126
127
|
withCredentials: !0,
|
|
127
128
|
timeout: 3e4,
|
|
128
129
|
...e
|
|
129
130
|
});
|
|
130
131
|
} catch (t) {
|
|
131
|
-
return console.warn("getAxiosInstance:", t.message || t),
|
|
132
|
+
return console.warn("getAxiosInstance:", t.message || t), wt.create({
|
|
132
133
|
withCredentials: !0,
|
|
133
134
|
timeout: 3e4,
|
|
134
135
|
...e
|
|
@@ -141,7 +142,7 @@ function ci() {
|
|
|
141
142
|
}
|
|
142
143
|
};
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
+
function fi() {
|
|
145
146
|
return {
|
|
146
147
|
debounce: (e, t) => {
|
|
147
148
|
let n;
|
|
@@ -153,14 +154,14 @@ function ui() {
|
|
|
153
154
|
}
|
|
154
155
|
};
|
|
155
156
|
}
|
|
156
|
-
const
|
|
157
|
+
const Xe = "khcp-user-table-preferences", gi = {
|
|
157
158
|
pageSize: 30,
|
|
158
159
|
sortColumnKey: void 0,
|
|
159
160
|
sortColumnOrder: void 0,
|
|
160
161
|
columnWidths: {},
|
|
161
162
|
columnVisibility: {}
|
|
162
163
|
};
|
|
163
|
-
function
|
|
164
|
+
function hi() {
|
|
164
165
|
const e = (n) => {
|
|
165
166
|
if (typeof n == "string")
|
|
166
167
|
try {
|
|
@@ -170,44 +171,44 @@ function pi() {
|
|
|
170
171
|
return;
|
|
171
172
|
}
|
|
172
173
|
}, t = () => {
|
|
173
|
-
const n = e(localStorage.getItem(
|
|
174
|
+
const n = e(localStorage.getItem(Xe));
|
|
174
175
|
return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
|
|
175
176
|
};
|
|
176
177
|
return {
|
|
177
178
|
setTablePreferences: (n, i) => {
|
|
178
179
|
try {
|
|
179
180
|
const r = t();
|
|
180
|
-
r.set(n, i), localStorage.setItem(
|
|
181
|
+
r.set(n, i), localStorage.setItem(Xe, JSON.stringify(Object.fromEntries(r.entries())));
|
|
181
182
|
} catch (r) {
|
|
182
183
|
console.error("useTablePreferences(setTablePreferences)", r);
|
|
183
184
|
}
|
|
184
185
|
},
|
|
185
186
|
getTablePreferences: (n) => {
|
|
186
187
|
const i = t();
|
|
187
|
-
return (i == null ? void 0 : i.get(n)) || void 0 ||
|
|
188
|
+
return (i == null ? void 0 : i.get(n)) || void 0 || gi;
|
|
188
189
|
},
|
|
189
190
|
deleteAllTablePreferences: () => {
|
|
190
|
-
localStorage.removeItem(
|
|
191
|
+
localStorage.removeItem(Xe);
|
|
191
192
|
}
|
|
192
193
|
};
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
-
const { getAxiosInstance: t } =
|
|
195
|
+
function ft(e = {}) {
|
|
196
|
+
const { getAxiosInstance: t } = pi();
|
|
196
197
|
return {
|
|
197
198
|
axiosInstance: t(e)
|
|
198
199
|
};
|
|
199
200
|
}
|
|
200
|
-
const
|
|
201
|
+
const mi = {
|
|
201
202
|
actions: {
|
|
202
203
|
copyId: "Copy ID",
|
|
203
204
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
204
205
|
copyToClipboard: "Copied successfully!",
|
|
205
206
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
206
207
|
}
|
|
207
|
-
},
|
|
208
|
+
}, yi = {
|
|
208
209
|
message: "Are you sure you want to delete this {entityType}?",
|
|
209
210
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
210
|
-
},
|
|
211
|
+
}, vi = {
|
|
211
212
|
actions: {
|
|
212
213
|
viewConfiguration: "View Configuration",
|
|
213
214
|
save: "Save",
|
|
@@ -218,18 +219,19 @@ const fi = {
|
|
|
218
219
|
title: "Configuration",
|
|
219
220
|
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.",
|
|
220
221
|
yaml: "YAML",
|
|
221
|
-
json: "JSON"
|
|
222
|
+
json: "JSON",
|
|
223
|
+
terraform: "Terraform"
|
|
222
224
|
},
|
|
223
225
|
errors: {
|
|
224
226
|
edit: "The entity could not be edited at this time."
|
|
225
227
|
}
|
|
226
|
-
},
|
|
228
|
+
}, bi = {
|
|
227
229
|
emptyState: {
|
|
228
230
|
noSearchResultsTitle: "No results found",
|
|
229
231
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
230
232
|
noSearchResultsCtaText: "Clear"
|
|
231
233
|
}
|
|
232
|
-
},
|
|
234
|
+
}, ki = {
|
|
233
235
|
title: "Configuration",
|
|
234
236
|
actions: {
|
|
235
237
|
copy: "Copy JSON"
|
|
@@ -264,7 +266,7 @@ const fi = {
|
|
|
264
266
|
entryTitle: "Entry {index}",
|
|
265
267
|
structuredFormat: "Structured"
|
|
266
268
|
}
|
|
267
|
-
},
|
|
269
|
+
}, wi = {
|
|
268
270
|
filterButtonText: "Filter",
|
|
269
271
|
fieldLabel: "Filter by:",
|
|
270
272
|
inputPlaceholder: "Enter a value",
|
|
@@ -272,17 +274,17 @@ const fi = {
|
|
|
272
274
|
applyButtonText: "Apply",
|
|
273
275
|
clearButtonText: "Clear",
|
|
274
276
|
clearAllButtonText: "Clear all filters"
|
|
275
|
-
},
|
|
277
|
+
}, Ci = {
|
|
276
278
|
errors: {
|
|
277
279
|
fetch: "Could not fetch available items",
|
|
278
280
|
invalid: "Please select a valid value"
|
|
279
281
|
}
|
|
280
|
-
},
|
|
282
|
+
}, Si = {
|
|
281
283
|
unexpected: "An unexpected error has occurred",
|
|
282
284
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
283
|
-
},
|
|
285
|
+
}, xi = {
|
|
284
286
|
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
285
|
-
},
|
|
287
|
+
}, Ai = {
|
|
286
288
|
enable: {
|
|
287
289
|
title: "Enable {entityType}",
|
|
288
290
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -293,27 +295,27 @@ const fi = {
|
|
|
293
295
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
294
296
|
confirmText: "Yes, disable"
|
|
295
297
|
}
|
|
296
|
-
},
|
|
297
|
-
global:
|
|
298
|
-
deleteModal:
|
|
299
|
-
baseForm:
|
|
300
|
-
baseTable:
|
|
301
|
-
baseConfigCard:
|
|
302
|
-
filter:
|
|
303
|
-
debouncedFilter:
|
|
304
|
-
errors:
|
|
305
|
-
validationErrors:
|
|
306
|
-
toggleModal:
|
|
298
|
+
}, _i = {
|
|
299
|
+
global: mi,
|
|
300
|
+
deleteModal: yi,
|
|
301
|
+
baseForm: vi,
|
|
302
|
+
baseTable: bi,
|
|
303
|
+
baseConfigCard: ki,
|
|
304
|
+
filter: wi,
|
|
305
|
+
debouncedFilter: Ci,
|
|
306
|
+
errors: Si,
|
|
307
|
+
validationErrors: xi,
|
|
308
|
+
toggleModal: Ai
|
|
307
309
|
};
|
|
308
|
-
function
|
|
309
|
-
const e =
|
|
310
|
+
function Ze() {
|
|
311
|
+
const e = Jt("en-us", _i);
|
|
310
312
|
return {
|
|
311
313
|
i18n: e,
|
|
312
|
-
i18nT:
|
|
314
|
+
i18nT: Zt(e)
|
|
313
315
|
// Translation component <i18n-t>
|
|
314
316
|
};
|
|
315
317
|
}
|
|
316
|
-
function
|
|
318
|
+
function tn() {
|
|
317
319
|
const e = (n, i) => (i == null ? void 0 : i[n]) ?? void 0, t = (n, i) => {
|
|
318
320
|
if (n.length !== i.length) return !1;
|
|
319
321
|
const r = /* @__PURE__ */ new Set([...n, ...i]);
|
|
@@ -355,92 +357,92 @@ function Qt() {
|
|
|
355
357
|
isValidUuid: (n) => n ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(n) : !1
|
|
356
358
|
};
|
|
357
359
|
}
|
|
358
|
-
function
|
|
360
|
+
function Ii(e, t, n, i = {
|
|
359
361
|
fetchedItemsKey: "data",
|
|
360
362
|
searchKeys: ["id"]
|
|
361
363
|
}) {
|
|
362
364
|
n || (n = "1000");
|
|
363
|
-
const { axiosInstance: r } =
|
|
364
|
-
await
|
|
365
|
-
}, 200), s =
|
|
366
|
-
const
|
|
367
|
-
return e.app === "konnect" ?
|
|
368
|
-
}), { isValidUuid:
|
|
365
|
+
const { axiosInstance: r } = ft(e.axiosRequestConfig), { i18n: { t: o } } = Ze(), { debounce: a } = fi(), l = a(async (T) => {
|
|
366
|
+
await y(T);
|
|
367
|
+
}, 200), s = E(!1), d = E(""), u = E(""), c = E([]), f = E([]), p = E(void 0), g = I(() => {
|
|
368
|
+
const T = `${e.apiBaseUrl}${m(t)}`;
|
|
369
|
+
return e.app === "konnect" ? T.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? T.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : T;
|
|
370
|
+
}), { isValidUuid: k } = tn(), v = async () => {
|
|
369
371
|
try {
|
|
370
372
|
s.value = !0;
|
|
371
|
-
const { data:
|
|
372
|
-
|
|
373
|
+
const { data: T } = await r.get(`${g.value}?size=${n}`);
|
|
374
|
+
T != null && T.next || (p.value = i.fetchedItemsKey in T ? T[i.fetchedItemsKey] : []), f.value = i.fetchedItemsKey in T ? T[i.fetchedItemsKey] : [], c.value = f.value;
|
|
373
375
|
} catch {
|
|
374
|
-
c.value = [],
|
|
376
|
+
c.value = [], d.value = o("debouncedFilter.errors.fetch");
|
|
375
377
|
} finally {
|
|
376
378
|
s.value = !1;
|
|
377
379
|
}
|
|
378
|
-
},
|
|
379
|
-
var
|
|
380
|
-
if (
|
|
381
|
-
if (
|
|
382
|
-
c.value =
|
|
380
|
+
}, x = E(""), y = async (T) => {
|
|
381
|
+
var A, $, h;
|
|
382
|
+
if (x.value !== T) {
|
|
383
|
+
if (x.value = T ?? "", !T) {
|
|
384
|
+
c.value = f.value;
|
|
383
385
|
return;
|
|
384
386
|
}
|
|
385
|
-
if (
|
|
387
|
+
if (p.value === void 0)
|
|
386
388
|
try {
|
|
387
|
-
if (s.value = !0,
|
|
388
|
-
const
|
|
389
|
+
if (s.value = !0, d.value = "", u.value = "", e.app === "konnect") {
|
|
390
|
+
const b = `${g.value}/${T}`, { data: R } = await r.get(`${b}?size=${n}`);
|
|
389
391
|
i.fetchedItemsKey in R ? c.value = R[i.fetchedItemsKey] : R != null && R[i.exactMatchKey ?? "id"] ? c.value = [R] : c.value = [];
|
|
390
392
|
} else {
|
|
391
|
-
const
|
|
392
|
-
|
|
393
|
-
const { data:
|
|
394
|
-
return [
|
|
395
|
-
})()) :
|
|
396
|
-
...i.searchKeys.filter((
|
|
397
|
-
const { data:
|
|
398
|
-
return
|
|
393
|
+
const b = [];
|
|
394
|
+
k(T) && i.searchKeys.includes("id") ? b.push((async () => {
|
|
395
|
+
const { data: U } = await r.get(`${g.value}/${T}`);
|
|
396
|
+
return [U[i.fetchedItemsKey] ?? U];
|
|
397
|
+
})()) : b.push(
|
|
398
|
+
...i.searchKeys.filter((U) => U !== "id").map(async (U) => {
|
|
399
|
+
const { data: G } = await r.get(`${g.value}?${U}=${T}`);
|
|
400
|
+
return G[i.fetchedItemsKey];
|
|
399
401
|
})
|
|
400
402
|
);
|
|
401
|
-
const R = await Promise.all(
|
|
402
|
-
c.value = [], (
|
|
403
|
-
var
|
|
404
|
-
(
|
|
405
|
-
|
|
403
|
+
const R = await Promise.all(b), j = /* @__PURE__ */ new Set();
|
|
404
|
+
c.value = [], (A = R == null ? void 0 : R.forEach) == null || A.call(R, (U) => {
|
|
405
|
+
var G;
|
|
406
|
+
(G = U == null ? void 0 : U.forEach) == null || G.call(U, (B) => {
|
|
407
|
+
j.has(B.id) || (j.add(B.id), c.value.push(B));
|
|
406
408
|
});
|
|
407
409
|
});
|
|
408
410
|
}
|
|
409
|
-
} catch (
|
|
410
|
-
((
|
|
411
|
+
} catch (b) {
|
|
412
|
+
(($ = b == null ? void 0 : b.response) == null ? void 0 : $.status) === 404 ? u.value = o("debouncedFilter.errors.invalid") : (c.value = [], d.value = o("debouncedFilter.errors.fetch"));
|
|
411
413
|
} finally {
|
|
412
414
|
s.value = !1;
|
|
413
415
|
}
|
|
414
416
|
else
|
|
415
|
-
s.value = !0,
|
|
417
|
+
s.value = !0, u.value = "", c.value = (h = p.value) == null ? void 0 : h.filter((b) => {
|
|
416
418
|
var R;
|
|
417
|
-
let
|
|
418
|
-
for (const
|
|
419
|
-
const
|
|
420
|
-
|
|
419
|
+
let j = !1;
|
|
420
|
+
for (const U of i.searchKeys) {
|
|
421
|
+
const G = typeof b[U] == "string" ? (R = b[U]) == null ? void 0 : R.toLowerCase() : b[U];
|
|
422
|
+
G != null && G.includes(T.toLowerCase()) && (j = !0);
|
|
421
423
|
}
|
|
422
|
-
return
|
|
423
|
-
}), (!c.value || !c.value.length) && (
|
|
424
|
+
return j;
|
|
425
|
+
}), (!c.value || !c.value.length) && (u.value = o("debouncedFilter.errors.invalid")), s.value = !1;
|
|
424
426
|
}
|
|
425
427
|
};
|
|
426
428
|
return {
|
|
427
429
|
loading: s,
|
|
428
|
-
error:
|
|
429
|
-
validationError:
|
|
430
|
+
error: d,
|
|
431
|
+
validationError: u,
|
|
430
432
|
results: c,
|
|
431
|
-
allRecords:
|
|
432
|
-
loadItems:
|
|
433
|
+
allRecords: p,
|
|
434
|
+
loadItems: v,
|
|
433
435
|
debouncedQueryChange: l
|
|
434
436
|
};
|
|
435
437
|
}
|
|
436
|
-
function
|
|
437
|
-
const n =
|
|
438
|
+
function Ni(e, t) {
|
|
439
|
+
const n = m(t), i = I(
|
|
438
440
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
439
441
|
);
|
|
440
442
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
441
443
|
}
|
|
442
|
-
function
|
|
443
|
-
const { i18n: { t: e } } =
|
|
444
|
+
function Ti() {
|
|
445
|
+
const { i18n: { t: e } } = Ze();
|
|
444
446
|
return {
|
|
445
447
|
getMessageFromError: (t) => {
|
|
446
448
|
var n, i, r, o;
|
|
@@ -469,7 +471,7 @@ function Ai() {
|
|
|
469
471
|
}
|
|
470
472
|
};
|
|
471
473
|
}
|
|
472
|
-
function
|
|
474
|
+
function Oi(e) {
|
|
473
475
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
474
476
|
try {
|
|
475
477
|
const i = e.join("/"), r = `${n}${i}`, o = e.some((a) => a.trim() === "");
|
|
@@ -480,170 +482,170 @@ function _i(e) {
|
|
|
480
482
|
return console.warn("Failed to build valid URL:", i), "";
|
|
481
483
|
}
|
|
482
484
|
}
|
|
483
|
-
function
|
|
484
|
-
const n =
|
|
485
|
+
function nn(e, t) {
|
|
486
|
+
const n = E(m(e)), i = E(m(t)), r = I(
|
|
485
487
|
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
486
488
|
), o = I(
|
|
487
489
|
() => i.value.startsWith("/") ? new URL(`${window.location.origin}${i.value}`) : new URL(i.value)
|
|
488
490
|
);
|
|
489
491
|
return (a) => {
|
|
490
|
-
const { page: l, pageSize: s, offset:
|
|
492
|
+
const { page: l, pageSize: s, offset: d, sortColumnKey: u, sortColumnOrder: c, query: f } = a;
|
|
491
493
|
try {
|
|
492
|
-
let
|
|
493
|
-
return r.value &&
|
|
494
|
-
|
|
495
|
-
}),
|
|
496
|
-
} catch (
|
|
497
|
-
return console.error("RouteList(fetcher)",
|
|
494
|
+
let p = new URL(o.value.href);
|
|
495
|
+
return r.value && f ? (p.search = "", p = n.value.isExactMatch ? new URL(`${p.href}/${f}/`) : new URL(`${p.href}?filter[name][contains]=${f}`)) : (r.value || new URLSearchParams(f).forEach((g, k) => {
|
|
496
|
+
p.searchParams.append(k, g);
|
|
497
|
+
}), u && p.searchParams.append("sort_by", u), c === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(s))), d && l !== 1 && p.searchParams.append("offset", String(d)), p.href;
|
|
498
|
+
} catch (p) {
|
|
499
|
+
return console.error("RouteList(fetcher)", p), i.value;
|
|
498
500
|
}
|
|
499
501
|
};
|
|
500
502
|
}
|
|
501
|
-
function
|
|
502
|
-
const i =
|
|
503
|
-
status:
|
|
503
|
+
function $i(e, t, n) {
|
|
504
|
+
const i = m(t), { axiosInstance: r } = ft(e.axiosRequestConfig), o = nn(e, i), a = E({
|
|
505
|
+
status: ke.Idle
|
|
504
506
|
});
|
|
505
507
|
return { fetcher: async (l) => {
|
|
506
508
|
var s;
|
|
507
|
-
const
|
|
509
|
+
const d = Zn(n) || "data";
|
|
508
510
|
try {
|
|
509
|
-
a.value = { status:
|
|
510
|
-
let
|
|
511
|
-
|
|
512
|
-
const c = await r.get(
|
|
511
|
+
a.value = { status: ke.Loading };
|
|
512
|
+
let u = o(l);
|
|
513
|
+
u.includes("filter[name]") && (u = `${u}&page[size]=${l.pageSize}&page[number]=${l.page}`);
|
|
514
|
+
const c = await r.get(u);
|
|
513
515
|
if (c.status >= 400)
|
|
514
516
|
throw c;
|
|
515
|
-
const
|
|
516
|
-
let
|
|
517
|
-
p
|
|
518
|
-
const
|
|
519
|
-
data:
|
|
520
|
-
total:
|
|
521
|
-
...
|
|
517
|
+
const f = c.data, p = d && d.replace(/[^\w-_]/gi, "");
|
|
518
|
+
let g;
|
|
519
|
+
f[p] ? g = Array.isArray(f[p]) ? f[p] : [f[p]] : Array.isArray(f) ? g = f : g = Object.keys(f).length ? [f] : [];
|
|
520
|
+
const k = {
|
|
521
|
+
data: g,
|
|
522
|
+
total: g.length,
|
|
523
|
+
...f.offset ? {
|
|
522
524
|
pagination: {
|
|
523
|
-
offset:
|
|
525
|
+
offset: f.offset
|
|
524
526
|
}
|
|
525
527
|
} : null
|
|
526
528
|
};
|
|
527
529
|
return a.value = {
|
|
528
|
-
status:
|
|
529
|
-
response:
|
|
530
|
-
},
|
|
531
|
-
} catch (
|
|
530
|
+
status: ke.Idle,
|
|
531
|
+
response: k
|
|
532
|
+
}, k;
|
|
533
|
+
} catch (u) {
|
|
532
534
|
const c = {
|
|
533
535
|
data: [],
|
|
534
536
|
total: 0
|
|
535
537
|
};
|
|
536
|
-
return l.query && (((s =
|
|
537
|
-
status:
|
|
538
|
+
return l.query && (((s = u.response) == null ? void 0 : s.status) === 404 || u.status === 404) ? (a.value = {
|
|
539
|
+
status: ke.NoResults,
|
|
538
540
|
response: c,
|
|
539
|
-
error:
|
|
541
|
+
error: u.response ? u : { response: u }
|
|
540
542
|
}, c) : (a.value = {
|
|
541
|
-
status:
|
|
543
|
+
status: ke.Error,
|
|
542
544
|
response: c,
|
|
543
|
-
error:
|
|
545
|
+
error: u.response ? u : { response: u }
|
|
544
546
|
}, c);
|
|
545
547
|
}
|
|
546
548
|
}, fetcherState: a };
|
|
547
549
|
}
|
|
548
|
-
function
|
|
550
|
+
function ji() {
|
|
549
551
|
const e = (n, i = "_") => n ? n.split(i).map((r) => r.toLowerCase() === "id" ? r.toUpperCase() : r.charAt(0).toUpperCase() + r.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
550
552
|
return {
|
|
551
553
|
capitalize: (n) => n ? n.replace(t, (i) => i.toUpperCase()) : "",
|
|
552
554
|
convertKeyToTitle: e
|
|
553
555
|
};
|
|
554
556
|
}
|
|
555
|
-
const
|
|
557
|
+
const rn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Ct = (e) => {
|
|
556
558
|
if (typeof e != "string")
|
|
557
559
|
throw new TypeError("Invalid argument expected string");
|
|
558
|
-
const t = e.match(
|
|
560
|
+
const t = e.match(rn);
|
|
559
561
|
if (!t)
|
|
560
562
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
561
563
|
return t.shift(), t;
|
|
562
|
-
},
|
|
564
|
+
}, St = (e) => e === "*" || e === "x" || e === "X", xt = (e) => {
|
|
563
565
|
const t = parseInt(e, 10);
|
|
564
566
|
return isNaN(t) ? e : t;
|
|
565
|
-
},
|
|
566
|
-
if (
|
|
567
|
+
}, Ei = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Fi = (e, t) => {
|
|
568
|
+
if (St(e) || St(t))
|
|
567
569
|
return 0;
|
|
568
|
-
const [n, i] =
|
|
570
|
+
const [n, i] = Ei(xt(e), xt(t));
|
|
569
571
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
570
|
-
},
|
|
572
|
+
}, At = (e, t) => {
|
|
571
573
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
572
|
-
const i =
|
|
574
|
+
const i = Fi(e[n] || "0", t[n] || "0");
|
|
573
575
|
if (i !== 0)
|
|
574
576
|
return i;
|
|
575
577
|
}
|
|
576
578
|
return 0;
|
|
577
579
|
}, Mi = (e, t) => {
|
|
578
|
-
const n =
|
|
579
|
-
return a !== 0 ? a : r && o ?
|
|
580
|
-
},
|
|
581
|
-
|
|
580
|
+
const n = Ct(e), i = Ct(t), r = n.pop(), o = i.pop(), a = At(n, i);
|
|
581
|
+
return a !== 0 ? a : r && o ? At(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
|
|
582
|
+
}, _t = (e, t, n) => {
|
|
583
|
+
qi(n);
|
|
582
584
|
const i = Mi(e, t);
|
|
583
|
-
return
|
|
584
|
-
},
|
|
585
|
+
return an[n].includes(i);
|
|
586
|
+
}, an = {
|
|
585
587
|
">": [1],
|
|
586
588
|
">=": [0, 1],
|
|
587
589
|
"=": [0],
|
|
588
590
|
"<=": [-1, 0],
|
|
589
591
|
"<": [-1],
|
|
590
592
|
"!=": [-1, 1]
|
|
591
|
-
}, It = Object.keys(
|
|
593
|
+
}, It = Object.keys(an), qi = (e) => {
|
|
592
594
|
if (typeof e != "string")
|
|
593
595
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
594
596
|
if (It.indexOf(e) === -1)
|
|
595
597
|
throw new Error(`Invalid operator, expected one of ${It.join("|")}`);
|
|
596
|
-
},
|
|
597
|
-
function
|
|
598
|
+
}, Li = (e) => typeof e == "string" && /^[v\d]/.test(e) && rn.test(e);
|
|
599
|
+
function Ri(e) {
|
|
598
600
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
599
601
|
if (!t)
|
|
600
602
|
return !0;
|
|
601
603
|
const { edition: i, version: r } = t;
|
|
602
|
-
if (
|
|
604
|
+
if (!Li(r))
|
|
603
605
|
return console.error("Invalid version"), !1;
|
|
604
606
|
const o = n[i];
|
|
605
607
|
if (!o)
|
|
606
608
|
return !1;
|
|
607
609
|
const [a, l] = o;
|
|
608
|
-
return !(a &&
|
|
610
|
+
return !(a && _t(r, a, "<") || l && _t(r, l, ">"));
|
|
609
611
|
}
|
|
610
|
-
function
|
|
611
|
-
const t =
|
|
612
|
-
return
|
|
612
|
+
function Ki(e) {
|
|
613
|
+
const t = E(0), n = E(0), i = E(!1);
|
|
614
|
+
return ye(e, (r) => {
|
|
613
615
|
r && !i.value && (t.value = r.offsetWidth, n.value = r.scrollWidth, i.value = !0);
|
|
614
616
|
}), {
|
|
615
617
|
isTruncated: I(() => t.value < n.value)
|
|
616
618
|
};
|
|
617
619
|
}
|
|
618
|
-
function
|
|
619
|
-
const { i18n: { t: e } } =
|
|
620
|
+
function Ui() {
|
|
621
|
+
const { i18n: { t: e } } = Ze();
|
|
620
622
|
return {
|
|
621
623
|
utf8Name: (t) => /^[\p{N}\p{L}.\-_~]*$/u.test(t) ? "" : e("validationErrors.utf8Name")
|
|
622
624
|
};
|
|
623
625
|
}
|
|
624
|
-
const
|
|
625
|
-
useAxios:
|
|
626
|
-
useDebouncedFilter:
|
|
627
|
-
useDeleteUrlBuilder:
|
|
628
|
-
useErrors:
|
|
629
|
-
useExternalLinkCreator:
|
|
630
|
-
useFetcher:
|
|
631
|
-
useFetchUrlBuilder:
|
|
632
|
-
useHelpers:
|
|
633
|
-
useStringHelpers:
|
|
634
|
-
useI18n:
|
|
635
|
-
useGatewayFeatureSupported:
|
|
636
|
-
useTruncationDetector:
|
|
637
|
-
useValidators:
|
|
638
|
-
},
|
|
626
|
+
const we = {
|
|
627
|
+
useAxios: ft,
|
|
628
|
+
useDebouncedFilter: Ii,
|
|
629
|
+
useDeleteUrlBuilder: Ni,
|
|
630
|
+
useErrors: Ti,
|
|
631
|
+
useExternalLinkCreator: Oi,
|
|
632
|
+
useFetcher: $i,
|
|
633
|
+
useFetchUrlBuilder: nn,
|
|
634
|
+
useHelpers: tn,
|
|
635
|
+
useStringHelpers: ji,
|
|
636
|
+
useI18n: Ze,
|
|
637
|
+
useGatewayFeatureSupported: Ri,
|
|
638
|
+
useTruncationDetector: Ki,
|
|
639
|
+
useValidators: Ui
|
|
640
|
+
}, Oe = (e, t) => {
|
|
639
641
|
const n = e.__vccOpts || e;
|
|
640
642
|
for (const [i, r] of t)
|
|
641
643
|
n[i] = r;
|
|
642
644
|
return n;
|
|
643
|
-
},
|
|
645
|
+
}, Bi = "#0044f4", Vi = "#afb7c5", Di = { class: "json-config" }, Pi = {
|
|
644
646
|
key: 0,
|
|
645
647
|
class: "json-endpoint"
|
|
646
|
-
},
|
|
648
|
+
}, zi = /* @__PURE__ */ X({
|
|
647
649
|
__name: "JsonCodeBlock",
|
|
648
650
|
props: {
|
|
649
651
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -659,7 +661,7 @@ const ke = {
|
|
|
659
661
|
default: ""
|
|
660
662
|
},
|
|
661
663
|
/** A record to indicate the entity's configuration, used to populate the JSON code block */
|
|
662
|
-
|
|
664
|
+
entityRecord: {
|
|
663
665
|
type: Object,
|
|
664
666
|
required: !0
|
|
665
667
|
},
|
|
@@ -671,10 +673,10 @@ const ke = {
|
|
|
671
673
|
}
|
|
672
674
|
},
|
|
673
675
|
setup(e) {
|
|
674
|
-
|
|
675
|
-
"
|
|
676
|
+
Xn((r) => ({
|
|
677
|
+
"454fa8c4": `${i.value}ch`
|
|
676
678
|
}));
|
|
677
|
-
const t = e, n = I(() => t.
|
|
679
|
+
const t = e, n = I(() => t.entityRecord), i = I(() => {
|
|
678
680
|
var r;
|
|
679
681
|
if (!t.fetcherUrl)
|
|
680
682
|
return 0;
|
|
@@ -682,87 +684,87 @@ const ke = {
|
|
|
682
684
|
return o.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? o[o.length - 1] : o[o.length - 2]).length;
|
|
683
685
|
});
|
|
684
686
|
return (r, o) => {
|
|
685
|
-
const a =
|
|
686
|
-
return
|
|
687
|
-
t.fetcherUrl ? (
|
|
688
|
-
|
|
687
|
+
const a = K("KBadge"), l = K("KCodeBlock");
|
|
688
|
+
return C(), q("div", Di, [
|
|
689
|
+
t.fetcherUrl ? (C(), q("div", Pi, [
|
|
690
|
+
N(a, {
|
|
689
691
|
appearance: t.requestMethod
|
|
690
692
|
}, {
|
|
691
|
-
default:
|
|
692
|
-
|
|
693
|
+
default: w(() => [
|
|
694
|
+
Q(M(t.requestMethod), 1)
|
|
693
695
|
]),
|
|
694
696
|
_: 1
|
|
695
697
|
}, 8, ["appearance"]),
|
|
696
|
-
|
|
698
|
+
N(l, {
|
|
697
699
|
id: "json-endpoint-codeblock",
|
|
698
700
|
code: t.fetcherUrl,
|
|
699
701
|
language: "json",
|
|
700
702
|
"single-line": "",
|
|
701
703
|
theme: "dark"
|
|
702
704
|
}, null, 8, ["code"])
|
|
703
|
-
])) :
|
|
704
|
-
t.
|
|
705
|
+
])) : Z("", !0),
|
|
706
|
+
t.entityRecord ? (C(), D(l, {
|
|
705
707
|
key: 1,
|
|
706
708
|
id: "json-codeblock",
|
|
707
|
-
class:
|
|
709
|
+
class: Me({ "json-content": t.fetcherUrl }),
|
|
708
710
|
code: JSON.stringify(n.value, null, 2),
|
|
709
711
|
language: "json",
|
|
710
712
|
theme: "dark"
|
|
711
|
-
}, null, 8, ["class", "code"])) :
|
|
713
|
+
}, null, 8, ["class", "code"])) : Z("", !0)
|
|
712
714
|
]);
|
|
713
715
|
};
|
|
714
716
|
}
|
|
715
717
|
});
|
|
716
718
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
717
|
-
function
|
|
719
|
+
function on(e) {
|
|
718
720
|
return typeof e > "u" || e === null;
|
|
719
721
|
}
|
|
720
|
-
function
|
|
722
|
+
function Hi(e) {
|
|
721
723
|
return typeof e == "object" && e !== null;
|
|
722
724
|
}
|
|
723
|
-
function
|
|
724
|
-
return Array.isArray(e) ? e :
|
|
725
|
+
function Yi(e) {
|
|
726
|
+
return Array.isArray(e) ? e : on(e) ? [] : [e];
|
|
725
727
|
}
|
|
726
|
-
function
|
|
728
|
+
function Wi(e, t) {
|
|
727
729
|
var n, i, r, o;
|
|
728
730
|
if (t)
|
|
729
731
|
for (o = Object.keys(t), n = 0, i = o.length; n < i; n += 1)
|
|
730
732
|
r = o[n], e[r] = t[r];
|
|
731
733
|
return e;
|
|
732
734
|
}
|
|
733
|
-
function
|
|
735
|
+
function Ji(e, t) {
|
|
734
736
|
var n = "", i;
|
|
735
737
|
for (i = 0; i < t; i += 1)
|
|
736
738
|
n += e;
|
|
737
739
|
return n;
|
|
738
740
|
}
|
|
739
|
-
function
|
|
741
|
+
function Zi(e) {
|
|
740
742
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
741
743
|
}
|
|
742
|
-
var
|
|
743
|
-
isNothing:
|
|
744
|
-
isObject:
|
|
745
|
-
toArray:
|
|
746
|
-
repeat:
|
|
747
|
-
isNegativeZero:
|
|
748
|
-
extend:
|
|
744
|
+
var Gi = on, Qi = Hi, Xi = Yi, er = Ji, tr = Zi, nr = Wi, J = {
|
|
745
|
+
isNothing: Gi,
|
|
746
|
+
isObject: Qi,
|
|
747
|
+
toArray: Xi,
|
|
748
|
+
repeat: er,
|
|
749
|
+
isNegativeZero: tr,
|
|
750
|
+
extend: nr
|
|
749
751
|
};
|
|
750
|
-
function
|
|
752
|
+
function ln(e, t) {
|
|
751
753
|
var n = "", i = e.reason || "(unknown reason)";
|
|
752
754
|
return e.mark ? (e.mark.name && (n += 'in "' + e.mark.name + '" '), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += `
|
|
753
755
|
|
|
754
756
|
` + e.mark.snippet), i + " " + n) : i;
|
|
755
757
|
}
|
|
756
|
-
function
|
|
757
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
758
|
+
function qe(e, t) {
|
|
759
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = ln(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
758
760
|
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
return this.name + ": " +
|
|
761
|
+
qe.prototype = Object.create(Error.prototype);
|
|
762
|
+
qe.prototype.constructor = qe;
|
|
763
|
+
qe.prototype.toString = function(e) {
|
|
764
|
+
return this.name + ": " + ln(this, e);
|
|
763
765
|
};
|
|
764
|
-
var
|
|
765
|
-
function
|
|
766
|
+
var ae = qe;
|
|
767
|
+
function et(e, t, n, i, r) {
|
|
766
768
|
var o = "", a = "", l = Math.floor(r / 2) - 1;
|
|
767
769
|
return i - t > l && (o = " ... ", t = i - l + o.length), n - i > l && (a = " ...", n = i + l - a.length), {
|
|
768
770
|
str: o + e.slice(t, n).replace(/\t/g, "→") + a,
|
|
@@ -770,39 +772,39 @@ function Xe(e, t, n, i, r) {
|
|
|
770
772
|
// relative position
|
|
771
773
|
};
|
|
772
774
|
}
|
|
773
|
-
function
|
|
775
|
+
function tt(e, t) {
|
|
774
776
|
return J.repeat(" ", t - e.length) + e;
|
|
775
777
|
}
|
|
776
|
-
function
|
|
778
|
+
function ir(e, t) {
|
|
777
779
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
778
780
|
t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
779
781
|
for (var n = /\r?\n|\r|\0/g, i = [0], r = [], o, a = -1; o = n.exec(e.buffer); )
|
|
780
782
|
r.push(o.index), i.push(o.index + o[0].length), e.position <= o.index && a < 0 && (a = i.length - 2);
|
|
781
783
|
a < 0 && (a = i.length - 1);
|
|
782
|
-
var l = "", s,
|
|
784
|
+
var l = "", s, d, u = Math.min(e.line + t.linesAfter, r.length).toString().length, c = t.maxLength - (t.indent + u + 3);
|
|
783
785
|
for (s = 1; s <= t.linesBefore && !(a - s < 0); s++)
|
|
784
|
-
|
|
786
|
+
d = et(
|
|
785
787
|
e.buffer,
|
|
786
788
|
i[a - s],
|
|
787
789
|
r[a - s],
|
|
788
790
|
e.position - (i[a] - i[a - s]),
|
|
789
791
|
c
|
|
790
|
-
), l = J.repeat(" ", t.indent) +
|
|
792
|
+
), l = J.repeat(" ", t.indent) + tt((e.line - s + 1).toString(), u) + " | " + d.str + `
|
|
791
793
|
` + l;
|
|
792
|
-
for (
|
|
793
|
-
`, l += J.repeat("-", t.indent +
|
|
794
|
+
for (d = et(e.buffer, i[a], r[a], e.position, c), l += J.repeat(" ", t.indent) + tt((e.line + 1).toString(), u) + " | " + d.str + `
|
|
795
|
+
`, l += J.repeat("-", t.indent + u + 3 + d.pos) + `^
|
|
794
796
|
`, s = 1; s <= t.linesAfter && !(a + s >= r.length); s++)
|
|
795
|
-
|
|
797
|
+
d = et(
|
|
796
798
|
e.buffer,
|
|
797
799
|
i[a + s],
|
|
798
800
|
r[a + s],
|
|
799
801
|
e.position - (i[a] - i[a + s]),
|
|
800
802
|
c
|
|
801
|
-
), l += J.repeat(" ", t.indent) +
|
|
803
|
+
), l += J.repeat(" ", t.indent) + tt((e.line + s + 1).toString(), u) + " | " + d.str + `
|
|
802
804
|
`;
|
|
803
805
|
return l.replace(/\n$/, "");
|
|
804
806
|
}
|
|
805
|
-
var
|
|
807
|
+
var rr = ir, ar = [
|
|
806
808
|
"kind",
|
|
807
809
|
"multi",
|
|
808
810
|
"resolve",
|
|
@@ -813,12 +815,12 @@ var tr = er, nr = [
|
|
|
813
815
|
"representName",
|
|
814
816
|
"defaultStyle",
|
|
815
817
|
"styleAliases"
|
|
816
|
-
],
|
|
818
|
+
], or = [
|
|
817
819
|
"scalar",
|
|
818
820
|
"sequence",
|
|
819
821
|
"mapping"
|
|
820
822
|
];
|
|
821
|
-
function
|
|
823
|
+
function lr(e) {
|
|
822
824
|
var t = {};
|
|
823
825
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
824
826
|
e[n].forEach(function(i) {
|
|
@@ -826,19 +828,19 @@ function rr(e) {
|
|
|
826
828
|
});
|
|
827
829
|
}), t;
|
|
828
830
|
}
|
|
829
|
-
function
|
|
831
|
+
function sr(e, t) {
|
|
830
832
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
831
|
-
if (
|
|
832
|
-
throw new
|
|
833
|
+
if (ar.indexOf(n) === -1)
|
|
834
|
+
throw new ae('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
833
835
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
834
836
|
return !0;
|
|
835
837
|
}, this.construct = t.construct || function(n) {
|
|
836
838
|
return n;
|
|
837
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
838
|
-
throw new
|
|
839
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = lr(t.styleAliases || null), or.indexOf(this.kind) === -1)
|
|
840
|
+
throw new ae('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
839
841
|
}
|
|
840
|
-
var
|
|
841
|
-
function
|
|
842
|
+
var te = sr;
|
|
843
|
+
function Nt(e, t) {
|
|
842
844
|
var n = [];
|
|
843
845
|
return e[t].forEach(function(i) {
|
|
844
846
|
var r = n.length;
|
|
@@ -847,7 +849,7 @@ function At(e, t) {
|
|
|
847
849
|
}), n[r] = i;
|
|
848
850
|
}), n;
|
|
849
851
|
}
|
|
850
|
-
function
|
|
852
|
+
function cr() {
|
|
851
853
|
var e = {
|
|
852
854
|
scalar: {},
|
|
853
855
|
sequence: {},
|
|
@@ -867,71 +869,71 @@ function or() {
|
|
|
867
869
|
arguments[t].forEach(i);
|
|
868
870
|
return e;
|
|
869
871
|
}
|
|
870
|
-
function
|
|
872
|
+
function at(e) {
|
|
871
873
|
return this.extend(e);
|
|
872
874
|
}
|
|
873
|
-
|
|
875
|
+
at.prototype.extend = function(e) {
|
|
874
876
|
var t = [], n = [];
|
|
875
|
-
if (e instanceof
|
|
877
|
+
if (e instanceof te)
|
|
876
878
|
n.push(e);
|
|
877
879
|
else if (Array.isArray(e))
|
|
878
880
|
n = n.concat(e);
|
|
879
881
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
|
|
880
882
|
e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
|
|
881
883
|
else
|
|
882
|
-
throw new
|
|
884
|
+
throw new ae("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
883
885
|
t.forEach(function(r) {
|
|
884
|
-
if (!(r instanceof
|
|
885
|
-
throw new
|
|
886
|
+
if (!(r instanceof te))
|
|
887
|
+
throw new ae("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
886
888
|
if (r.loadKind && r.loadKind !== "scalar")
|
|
887
|
-
throw new
|
|
889
|
+
throw new ae("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
888
890
|
if (r.multi)
|
|
889
|
-
throw new
|
|
891
|
+
throw new ae("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
890
892
|
}), n.forEach(function(r) {
|
|
891
|
-
if (!(r instanceof
|
|
892
|
-
throw new
|
|
893
|
+
if (!(r instanceof te))
|
|
894
|
+
throw new ae("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
893
895
|
});
|
|
894
|
-
var i = Object.create(
|
|
895
|
-
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit =
|
|
896
|
+
var i = Object.create(at.prototype);
|
|
897
|
+
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = Nt(i, "implicit"), i.compiledExplicit = Nt(i, "explicit"), i.compiledTypeMap = cr(i.compiledImplicit, i.compiledExplicit), i;
|
|
896
898
|
};
|
|
897
|
-
var
|
|
899
|
+
var sn = at, cn = new te("tag:yaml.org,2002:str", {
|
|
898
900
|
kind: "scalar",
|
|
899
901
|
construct: function(e) {
|
|
900
902
|
return e !== null ? e : "";
|
|
901
903
|
}
|
|
902
|
-
}),
|
|
904
|
+
}), un = new te("tag:yaml.org,2002:seq", {
|
|
903
905
|
kind: "sequence",
|
|
904
906
|
construct: function(e) {
|
|
905
907
|
return e !== null ? e : [];
|
|
906
908
|
}
|
|
907
|
-
}),
|
|
909
|
+
}), dn = new te("tag:yaml.org,2002:map", {
|
|
908
910
|
kind: "mapping",
|
|
909
911
|
construct: function(e) {
|
|
910
912
|
return e !== null ? e : {};
|
|
911
913
|
}
|
|
912
|
-
}),
|
|
914
|
+
}), pn = new sn({
|
|
913
915
|
explicit: [
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
916
|
+
cn,
|
|
917
|
+
un,
|
|
918
|
+
dn
|
|
917
919
|
]
|
|
918
920
|
});
|
|
919
|
-
function
|
|
921
|
+
function ur(e) {
|
|
920
922
|
if (e === null) return !0;
|
|
921
923
|
var t = e.length;
|
|
922
924
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
923
925
|
}
|
|
924
|
-
function
|
|
926
|
+
function dr() {
|
|
925
927
|
return null;
|
|
926
928
|
}
|
|
927
|
-
function
|
|
929
|
+
function pr(e) {
|
|
928
930
|
return e === null;
|
|
929
931
|
}
|
|
930
|
-
var
|
|
932
|
+
var fn = new te("tag:yaml.org,2002:null", {
|
|
931
933
|
kind: "scalar",
|
|
932
|
-
resolve:
|
|
933
|
-
construct:
|
|
934
|
-
predicate:
|
|
934
|
+
resolve: ur,
|
|
935
|
+
construct: dr,
|
|
936
|
+
predicate: pr,
|
|
935
937
|
represent: {
|
|
936
938
|
canonical: function() {
|
|
937
939
|
return "~";
|
|
@@ -951,22 +953,22 @@ var un = new ee("tag:yaml.org,2002:null", {
|
|
|
951
953
|
},
|
|
952
954
|
defaultStyle: "lowercase"
|
|
953
955
|
});
|
|
954
|
-
function
|
|
956
|
+
function fr(e) {
|
|
955
957
|
if (e === null) return !1;
|
|
956
958
|
var t = e.length;
|
|
957
959
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
958
960
|
}
|
|
959
|
-
function
|
|
961
|
+
function gr(e) {
|
|
960
962
|
return e === "true" || e === "True" || e === "TRUE";
|
|
961
963
|
}
|
|
962
|
-
function
|
|
964
|
+
function hr(e) {
|
|
963
965
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
964
966
|
}
|
|
965
|
-
var
|
|
967
|
+
var gn = new te("tag:yaml.org,2002:bool", {
|
|
966
968
|
kind: "scalar",
|
|
967
|
-
resolve:
|
|
968
|
-
construct:
|
|
969
|
-
predicate:
|
|
969
|
+
resolve: fr,
|
|
970
|
+
construct: gr,
|
|
971
|
+
predicate: hr,
|
|
970
972
|
represent: {
|
|
971
973
|
lowercase: function(e) {
|
|
972
974
|
return e ? "true" : "false";
|
|
@@ -980,16 +982,16 @@ var dn = new ee("tag:yaml.org,2002:bool", {
|
|
|
980
982
|
},
|
|
981
983
|
defaultStyle: "lowercase"
|
|
982
984
|
});
|
|
983
|
-
function
|
|
985
|
+
function mr(e) {
|
|
984
986
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
985
987
|
}
|
|
986
|
-
function
|
|
988
|
+
function yr(e) {
|
|
987
989
|
return 48 <= e && e <= 55;
|
|
988
990
|
}
|
|
989
|
-
function
|
|
991
|
+
function vr(e) {
|
|
990
992
|
return 48 <= e && e <= 57;
|
|
991
993
|
}
|
|
992
|
-
function
|
|
994
|
+
function br(e) {
|
|
993
995
|
if (e === null) return !1;
|
|
994
996
|
var t = e.length, n = 0, i = !1, r;
|
|
995
997
|
if (!t) return !1;
|
|
@@ -1006,7 +1008,7 @@ function mr(e) {
|
|
|
1006
1008
|
if (r === "x") {
|
|
1007
1009
|
for (n++; n < t; n++)
|
|
1008
1010
|
if (r = e[n], r !== "_") {
|
|
1009
|
-
if (!
|
|
1011
|
+
if (!mr(e.charCodeAt(n))) return !1;
|
|
1010
1012
|
i = !0;
|
|
1011
1013
|
}
|
|
1012
1014
|
return i && r !== "_";
|
|
@@ -1014,7 +1016,7 @@ function mr(e) {
|
|
|
1014
1016
|
if (r === "o") {
|
|
1015
1017
|
for (n++; n < t; n++)
|
|
1016
1018
|
if (r = e[n], r !== "_") {
|
|
1017
|
-
if (!
|
|
1019
|
+
if (!yr(e.charCodeAt(n))) return !1;
|
|
1018
1020
|
i = !0;
|
|
1019
1021
|
}
|
|
1020
1022
|
return i && r !== "_";
|
|
@@ -1023,13 +1025,13 @@ function mr(e) {
|
|
|
1023
1025
|
if (r === "_") return !1;
|
|
1024
1026
|
for (; n < t; n++)
|
|
1025
1027
|
if (r = e[n], r !== "_") {
|
|
1026
|
-
if (!
|
|
1028
|
+
if (!vr(e.charCodeAt(n)))
|
|
1027
1029
|
return !1;
|
|
1028
1030
|
i = !0;
|
|
1029
1031
|
}
|
|
1030
1032
|
return !(!i || r === "_");
|
|
1031
1033
|
}
|
|
1032
|
-
function
|
|
1034
|
+
function kr(e) {
|
|
1033
1035
|
var t = e, n = 1, i;
|
|
1034
1036
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), i = t[0], (i === "-" || i === "+") && (i === "-" && (n = -1), t = t.slice(1), i = t[0]), t === "0") return 0;
|
|
1035
1037
|
if (i === "0") {
|
|
@@ -1039,14 +1041,14 @@ function yr(e) {
|
|
|
1039
1041
|
}
|
|
1040
1042
|
return n * parseInt(t, 10);
|
|
1041
1043
|
}
|
|
1042
|
-
function
|
|
1044
|
+
function wr(e) {
|
|
1043
1045
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !J.isNegativeZero(e);
|
|
1044
1046
|
}
|
|
1045
|
-
var
|
|
1047
|
+
var hn = new te("tag:yaml.org,2002:int", {
|
|
1046
1048
|
kind: "scalar",
|
|
1047
|
-
resolve:
|
|
1048
|
-
construct:
|
|
1049
|
-
predicate:
|
|
1049
|
+
resolve: br,
|
|
1050
|
+
construct: kr,
|
|
1051
|
+
predicate: wr,
|
|
1050
1052
|
represent: {
|
|
1051
1053
|
binary: function(e) {
|
|
1052
1054
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1069,21 +1071,21 @@ var pn = new ee("tag:yaml.org,2002:int", {
|
|
|
1069
1071
|
decimal: [10, "dec"],
|
|
1070
1072
|
hexadecimal: [16, "hex"]
|
|
1071
1073
|
}
|
|
1072
|
-
}),
|
|
1074
|
+
}), Cr = new RegExp(
|
|
1073
1075
|
// 2.5e4, 2.5 and integers
|
|
1074
1076
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1075
1077
|
);
|
|
1076
|
-
function
|
|
1077
|
-
return !(e === null || !
|
|
1078
|
+
function Sr(e) {
|
|
1079
|
+
return !(e === null || !Cr.test(e) || // Quick hack to not allow integers end with `_`
|
|
1078
1080
|
// Probably should update regexp & check speed
|
|
1079
1081
|
e[e.length - 1] === "_");
|
|
1080
1082
|
}
|
|
1081
|
-
function
|
|
1083
|
+
function xr(e) {
|
|
1082
1084
|
var t, n;
|
|
1083
1085
|
return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1084
1086
|
}
|
|
1085
|
-
var
|
|
1086
|
-
function
|
|
1087
|
+
var Ar = /^[-+]?[0-9]+e/;
|
|
1088
|
+
function _r(e, t) {
|
|
1087
1089
|
var n;
|
|
1088
1090
|
if (isNaN(e))
|
|
1089
1091
|
switch (t) {
|
|
@@ -1114,36 +1116,36 @@ function Sr(e, t) {
|
|
|
1114
1116
|
}
|
|
1115
1117
|
else if (J.isNegativeZero(e))
|
|
1116
1118
|
return "-0.0";
|
|
1117
|
-
return n = e.toString(10),
|
|
1119
|
+
return n = e.toString(10), Ar.test(n) ? n.replace("e", ".e") : n;
|
|
1118
1120
|
}
|
|
1119
|
-
function
|
|
1121
|
+
function Ir(e) {
|
|
1120
1122
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || J.isNegativeZero(e));
|
|
1121
1123
|
}
|
|
1122
|
-
var
|
|
1124
|
+
var mn = new te("tag:yaml.org,2002:float", {
|
|
1123
1125
|
kind: "scalar",
|
|
1124
|
-
resolve:
|
|
1125
|
-
construct:
|
|
1126
|
-
predicate:
|
|
1127
|
-
represent:
|
|
1126
|
+
resolve: Sr,
|
|
1127
|
+
construct: xr,
|
|
1128
|
+
predicate: Ir,
|
|
1129
|
+
represent: _r,
|
|
1128
1130
|
defaultStyle: "lowercase"
|
|
1129
|
-
}),
|
|
1131
|
+
}), yn = pn.extend({
|
|
1130
1132
|
implicit: [
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1133
|
+
fn,
|
|
1134
|
+
gn,
|
|
1135
|
+
hn,
|
|
1136
|
+
mn
|
|
1135
1137
|
]
|
|
1136
|
-
}),
|
|
1138
|
+
}), vn = yn, bn = new RegExp(
|
|
1137
1139
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1138
|
-
),
|
|
1140
|
+
), kn = new RegExp(
|
|
1139
1141
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1140
1142
|
);
|
|
1141
|
-
function
|
|
1142
|
-
return e === null ? !1 :
|
|
1143
|
+
function Nr(e) {
|
|
1144
|
+
return e === null ? !1 : bn.exec(e) !== null || kn.exec(e) !== null;
|
|
1143
1145
|
}
|
|
1144
|
-
function
|
|
1145
|
-
var t, n, i, r, o, a, l, s = 0,
|
|
1146
|
-
if (t =
|
|
1146
|
+
function Tr(e) {
|
|
1147
|
+
var t, n, i, r, o, a, l, s = 0, d = null, u, c, f;
|
|
1148
|
+
if (t = bn.exec(e), t === null && (t = kn.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1147
1149
|
if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
|
|
1148
1150
|
return new Date(Date.UTC(n, i, r));
|
|
1149
1151
|
if (o = +t[4], a = +t[5], l = +t[6], t[7]) {
|
|
@@ -1151,29 +1153,29 @@ function Ar(e) {
|
|
|
1151
1153
|
s += "0";
|
|
1152
1154
|
s = +s;
|
|
1153
1155
|
}
|
|
1154
|
-
return t[9] && (
|
|
1156
|
+
return t[9] && (u = +t[10], c = +(t[11] || 0), d = (u * 60 + c) * 6e4, t[9] === "-" && (d = -d)), f = new Date(Date.UTC(n, i, r, o, a, l, s)), d && f.setTime(f.getTime() - d), f;
|
|
1155
1157
|
}
|
|
1156
|
-
function
|
|
1158
|
+
function Or(e) {
|
|
1157
1159
|
return e.toISOString();
|
|
1158
1160
|
}
|
|
1159
|
-
var
|
|
1161
|
+
var wn = new te("tag:yaml.org,2002:timestamp", {
|
|
1160
1162
|
kind: "scalar",
|
|
1161
|
-
resolve:
|
|
1162
|
-
construct:
|
|
1163
|
+
resolve: Nr,
|
|
1164
|
+
construct: Tr,
|
|
1163
1165
|
instanceOf: Date,
|
|
1164
|
-
represent:
|
|
1166
|
+
represent: Or
|
|
1165
1167
|
});
|
|
1166
|
-
function
|
|
1168
|
+
function $r(e) {
|
|
1167
1169
|
return e === "<<" || e === null;
|
|
1168
1170
|
}
|
|
1169
|
-
var
|
|
1171
|
+
var Cn = new te("tag:yaml.org,2002:merge", {
|
|
1170
1172
|
kind: "scalar",
|
|
1171
|
-
resolve:
|
|
1172
|
-
}),
|
|
1173
|
+
resolve: $r
|
|
1174
|
+
}), gt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1173
1175
|
\r`;
|
|
1174
|
-
function
|
|
1176
|
+
function jr(e) {
|
|
1175
1177
|
if (e === null) return !1;
|
|
1176
|
-
var t, n, i = 0, r = e.length, o =
|
|
1178
|
+
var t, n, i = 0, r = e.length, o = gt;
|
|
1177
1179
|
for (n = 0; n < r; n++)
|
|
1178
1180
|
if (t = o.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1179
1181
|
if (t < 0) return !1;
|
|
@@ -1181,14 +1183,14 @@ function Tr(e) {
|
|
|
1181
1183
|
}
|
|
1182
1184
|
return i % 8 === 0;
|
|
1183
1185
|
}
|
|
1184
|
-
function
|
|
1185
|
-
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o =
|
|
1186
|
+
function Er(e) {
|
|
1187
|
+
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = gt, a = 0, l = [];
|
|
1186
1188
|
for (t = 0; t < r; t++)
|
|
1187
1189
|
t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
|
|
1188
1190
|
return n = r % 4 * 6, n === 0 ? (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)) : n === 18 ? (l.push(a >> 10 & 255), l.push(a >> 2 & 255)) : n === 12 && l.push(a >> 4 & 255), new Uint8Array(l);
|
|
1189
1191
|
}
|
|
1190
|
-
function
|
|
1191
|
-
var t = "", n = 0, i, r, o = e.length, a =
|
|
1192
|
+
function Fr(e) {
|
|
1193
|
+
var t = "", n = 0, i, r, o = e.length, a = gt;
|
|
1192
1194
|
for (i = 0; i < o; i++)
|
|
1193
1195
|
i % 3 === 0 && i && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[i];
|
|
1194
1196
|
return r = o % 3, r === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : r === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : r === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
|
|
@@ -1196,20 +1198,20 @@ function Or(e) {
|
|
|
1196
1198
|
function Mr(e) {
|
|
1197
1199
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1198
1200
|
}
|
|
1199
|
-
var
|
|
1201
|
+
var Sn = new te("tag:yaml.org,2002:binary", {
|
|
1200
1202
|
kind: "scalar",
|
|
1201
|
-
resolve:
|
|
1202
|
-
construct:
|
|
1203
|
+
resolve: jr,
|
|
1204
|
+
construct: Er,
|
|
1203
1205
|
predicate: Mr,
|
|
1204
|
-
represent:
|
|
1205
|
-
}),
|
|
1206
|
-
function
|
|
1206
|
+
represent: Fr
|
|
1207
|
+
}), qr = Object.prototype.hasOwnProperty, Lr = Object.prototype.toString;
|
|
1208
|
+
function Rr(e) {
|
|
1207
1209
|
if (e === null) return !0;
|
|
1208
1210
|
var t = [], n, i, r, o, a, l = e;
|
|
1209
1211
|
for (n = 0, i = l.length; n < i; n += 1) {
|
|
1210
|
-
if (r = l[n], a = !1,
|
|
1212
|
+
if (r = l[n], a = !1, Lr.call(r) !== "[object Object]") return !1;
|
|
1211
1213
|
for (o in r)
|
|
1212
|
-
if (
|
|
1214
|
+
if (qr.call(r, o))
|
|
1213
1215
|
if (!a) a = !0;
|
|
1214
1216
|
else return !1;
|
|
1215
1217
|
if (!a) return !1;
|
|
@@ -1218,104 +1220,104 @@ function Lr(e) {
|
|
|
1218
1220
|
}
|
|
1219
1221
|
return !0;
|
|
1220
1222
|
}
|
|
1221
|
-
function
|
|
1223
|
+
function Kr(e) {
|
|
1222
1224
|
return e !== null ? e : [];
|
|
1223
1225
|
}
|
|
1224
|
-
var
|
|
1226
|
+
var xn = new te("tag:yaml.org,2002:omap", {
|
|
1225
1227
|
kind: "sequence",
|
|
1226
|
-
resolve:
|
|
1227
|
-
construct:
|
|
1228
|
-
}),
|
|
1229
|
-
function
|
|
1228
|
+
resolve: Rr,
|
|
1229
|
+
construct: Kr
|
|
1230
|
+
}), Ur = Object.prototype.toString;
|
|
1231
|
+
function Br(e) {
|
|
1230
1232
|
if (e === null) return !0;
|
|
1231
1233
|
var t, n, i, r, o, a = e;
|
|
1232
1234
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1) {
|
|
1233
|
-
if (i = a[t],
|
|
1235
|
+
if (i = a[t], Ur.call(i) !== "[object Object]" || (r = Object.keys(i), r.length !== 1)) return !1;
|
|
1234
1236
|
o[t] = [r[0], i[r[0]]];
|
|
1235
1237
|
}
|
|
1236
1238
|
return !0;
|
|
1237
1239
|
}
|
|
1238
|
-
function
|
|
1240
|
+
function Vr(e) {
|
|
1239
1241
|
if (e === null) return [];
|
|
1240
1242
|
var t, n, i, r, o, a = e;
|
|
1241
1243
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1)
|
|
1242
1244
|
i = a[t], r = Object.keys(i), o[t] = [r[0], i[r[0]]];
|
|
1243
1245
|
return o;
|
|
1244
1246
|
}
|
|
1245
|
-
var
|
|
1247
|
+
var An = new te("tag:yaml.org,2002:pairs", {
|
|
1246
1248
|
kind: "sequence",
|
|
1247
|
-
resolve:
|
|
1248
|
-
construct:
|
|
1249
|
-
}),
|
|
1250
|
-
function
|
|
1249
|
+
resolve: Br,
|
|
1250
|
+
construct: Vr
|
|
1251
|
+
}), Dr = Object.prototype.hasOwnProperty;
|
|
1252
|
+
function Pr(e) {
|
|
1251
1253
|
if (e === null) return !0;
|
|
1252
1254
|
var t, n = e;
|
|
1253
1255
|
for (t in n)
|
|
1254
|
-
if (
|
|
1256
|
+
if (Dr.call(n, t) && n[t] !== null)
|
|
1255
1257
|
return !1;
|
|
1256
1258
|
return !0;
|
|
1257
1259
|
}
|
|
1258
|
-
function
|
|
1260
|
+
function zr(e) {
|
|
1259
1261
|
return e !== null ? e : {};
|
|
1260
1262
|
}
|
|
1261
|
-
var
|
|
1263
|
+
var _n = new te("tag:yaml.org,2002:set", {
|
|
1262
1264
|
kind: "mapping",
|
|
1263
|
-
resolve:
|
|
1264
|
-
construct:
|
|
1265
|
-
}),
|
|
1265
|
+
resolve: Pr,
|
|
1266
|
+
construct: zr
|
|
1267
|
+
}), ht = vn.extend({
|
|
1266
1268
|
implicit: [
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
+
wn,
|
|
1270
|
+
Cn
|
|
1269
1271
|
],
|
|
1270
1272
|
explicit: [
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1273
|
+
Sn,
|
|
1274
|
+
xn,
|
|
1275
|
+
An,
|
|
1276
|
+
_n
|
|
1275
1277
|
]
|
|
1276
|
-
}),
|
|
1277
|
-
function
|
|
1278
|
+
}), ve = Object.prototype.hasOwnProperty, ze = 1, In = 2, Nn = 3, He = 4, nt = 1, Hr = 2, Tt = 3, Yr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Wr = /[\x85\u2028\u2029]/, Jr = /[,\[\]\{\}]/, Tn = /^(?:!|!!|![a-z\-]+!)$/i, On = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1279
|
+
function Ot(e) {
|
|
1278
1280
|
return Object.prototype.toString.call(e);
|
|
1279
1281
|
}
|
|
1280
|
-
function
|
|
1282
|
+
function ce(e) {
|
|
1281
1283
|
return e === 10 || e === 13;
|
|
1282
1284
|
}
|
|
1283
|
-
function
|
|
1285
|
+
function Ce(e) {
|
|
1284
1286
|
return e === 9 || e === 32;
|
|
1285
1287
|
}
|
|
1286
|
-
function
|
|
1288
|
+
function oe(e) {
|
|
1287
1289
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1288
1290
|
}
|
|
1289
|
-
function
|
|
1291
|
+
function Ie(e) {
|
|
1290
1292
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1291
1293
|
}
|
|
1292
|
-
function
|
|
1294
|
+
function Zr(e) {
|
|
1293
1295
|
var t;
|
|
1294
1296
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1295
1297
|
}
|
|
1296
|
-
function
|
|
1298
|
+
function Gr(e) {
|
|
1297
1299
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1298
1300
|
}
|
|
1299
|
-
function
|
|
1301
|
+
function Qr(e) {
|
|
1300
1302
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1301
1303
|
}
|
|
1302
|
-
function
|
|
1304
|
+
function $t(e) {
|
|
1303
1305
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1304
1306
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1305
1307
|
}
|
|
1306
|
-
function
|
|
1308
|
+
function Xr(e) {
|
|
1307
1309
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1308
1310
|
(e - 65536 >> 10) + 55296,
|
|
1309
1311
|
(e - 65536 & 1023) + 56320
|
|
1310
1312
|
);
|
|
1311
1313
|
}
|
|
1312
|
-
var
|
|
1313
|
-
for (var
|
|
1314
|
-
|
|
1315
|
-
function
|
|
1316
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1314
|
+
var $n = new Array(256), jn = new Array(256);
|
|
1315
|
+
for (var Ae = 0; Ae < 256; Ae++)
|
|
1316
|
+
$n[Ae] = $t(Ae) ? 1 : 0, jn[Ae] = $t(Ae);
|
|
1317
|
+
function ea(e, t) {
|
|
1318
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || ht, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1317
1319
|
}
|
|
1318
|
-
function
|
|
1320
|
+
function En(e, t) {
|
|
1319
1321
|
var n = {
|
|
1320
1322
|
name: e.filename,
|
|
1321
1323
|
buffer: e.input.slice(0, -1),
|
|
@@ -1324,58 +1326,58 @@ function jn(e, t) {
|
|
|
1324
1326
|
line: e.line,
|
|
1325
1327
|
column: e.position - e.lineStart
|
|
1326
1328
|
};
|
|
1327
|
-
return n.snippet =
|
|
1329
|
+
return n.snippet = rr(n), new ae(t, n);
|
|
1328
1330
|
}
|
|
1329
|
-
function
|
|
1330
|
-
throw
|
|
1331
|
+
function S(e, t) {
|
|
1332
|
+
throw En(e, t);
|
|
1331
1333
|
}
|
|
1332
|
-
function
|
|
1333
|
-
e.onWarning && e.onWarning.call(null,
|
|
1334
|
+
function Ye(e, t) {
|
|
1335
|
+
e.onWarning && e.onWarning.call(null, En(e, t));
|
|
1334
1336
|
}
|
|
1335
1337
|
var jt = {
|
|
1336
1338
|
YAML: function(e, t, n) {
|
|
1337
1339
|
var i, r, o;
|
|
1338
|
-
e.version !== null &&
|
|
1340
|
+
e.version !== null && S(e, "duplication of %YAML directive"), n.length !== 1 && S(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), i === null && S(e, "ill-formed argument of the YAML directive"), r = parseInt(i[1], 10), o = parseInt(i[2], 10), r !== 1 && S(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Ye(e, "unsupported YAML version of the document");
|
|
1339
1341
|
},
|
|
1340
1342
|
TAG: function(e, t, n) {
|
|
1341
1343
|
var i, r;
|
|
1342
|
-
n.length !== 2 &&
|
|
1344
|
+
n.length !== 2 && S(e, "TAG directive accepts exactly two arguments"), i = n[0], r = n[1], Tn.test(i) || S(e, "ill-formed tag handle (first argument) of the TAG directive"), ve.call(e.tagMap, i) && S(e, 'there is a previously declared suffix for "' + i + '" tag handle'), On.test(r) || S(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1343
1345
|
try {
|
|
1344
1346
|
r = decodeURIComponent(r);
|
|
1345
1347
|
} catch {
|
|
1346
|
-
|
|
1348
|
+
S(e, "tag prefix is malformed: " + r);
|
|
1347
1349
|
}
|
|
1348
1350
|
e.tagMap[i] = r;
|
|
1349
1351
|
}
|
|
1350
1352
|
};
|
|
1351
|
-
function
|
|
1353
|
+
function me(e, t, n, i) {
|
|
1352
1354
|
var r, o, a, l;
|
|
1353
1355
|
if (t < n) {
|
|
1354
1356
|
if (l = e.input.slice(t, n), i)
|
|
1355
1357
|
for (r = 0, o = l.length; r < o; r += 1)
|
|
1356
|
-
a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 ||
|
|
1357
|
-
else
|
|
1358
|
+
a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || S(e, "expected valid JSON character");
|
|
1359
|
+
else Yr.test(l) && S(e, "the stream contains non-printable characters");
|
|
1358
1360
|
e.result += l;
|
|
1359
1361
|
}
|
|
1360
1362
|
}
|
|
1361
|
-
function
|
|
1363
|
+
function Et(e, t, n, i) {
|
|
1362
1364
|
var r, o, a, l;
|
|
1363
|
-
for (J.isObject(n) ||
|
|
1364
|
-
o = r[a],
|
|
1365
|
+
for (J.isObject(n) || S(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
|
|
1366
|
+
o = r[a], ve.call(t, o) || (t[o] = n[o], i[o] = !0);
|
|
1365
1367
|
}
|
|
1366
|
-
function
|
|
1367
|
-
var
|
|
1368
|
+
function Ne(e, t, n, i, r, o, a, l, s) {
|
|
1369
|
+
var d, u;
|
|
1368
1370
|
if (Array.isArray(r))
|
|
1369
|
-
for (r = Array.prototype.slice.call(r),
|
|
1370
|
-
Array.isArray(r[
|
|
1371
|
-
if (typeof r == "object" &&
|
|
1371
|
+
for (r = Array.prototype.slice.call(r), d = 0, u = r.length; d < u; d += 1)
|
|
1372
|
+
Array.isArray(r[d]) && S(e, "nested arrays are not supported inside keys"), typeof r == "object" && Ot(r[d]) === "[object Object]" && (r[d] = "[object Object]");
|
|
1373
|
+
if (typeof r == "object" && Ot(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
|
|
1372
1374
|
if (Array.isArray(o))
|
|
1373
|
-
for (
|
|
1374
|
-
|
|
1375
|
+
for (d = 0, u = o.length; d < u; d += 1)
|
|
1376
|
+
Et(e, t, o[d], n);
|
|
1375
1377
|
else
|
|
1376
|
-
|
|
1378
|
+
Et(e, t, o, n);
|
|
1377
1379
|
else
|
|
1378
|
-
!e.json && !
|
|
1380
|
+
!e.json && !ve.call(n, r) && ve.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, S(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(t, r, {
|
|
1379
1381
|
configurable: !0,
|
|
1380
1382
|
enumerable: !0,
|
|
1381
1383
|
writable: !0,
|
|
@@ -1383,114 +1385,114 @@ function _e(e, t, n, i, r, o, a, l, s) {
|
|
|
1383
1385
|
}) : t[r] = o, delete n[r];
|
|
1384
1386
|
return t;
|
|
1385
1387
|
}
|
|
1386
|
-
function
|
|
1388
|
+
function mt(e) {
|
|
1387
1389
|
var t;
|
|
1388
|
-
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1390
|
+
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : S(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1389
1391
|
}
|
|
1390
1392
|
function Y(e, t, n) {
|
|
1391
1393
|
for (var i = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
1392
|
-
for (;
|
|
1394
|
+
for (; Ce(r); )
|
|
1393
1395
|
r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
1394
1396
|
if (t && r === 35)
|
|
1395
1397
|
do
|
|
1396
1398
|
r = e.input.charCodeAt(++e.position);
|
|
1397
1399
|
while (r !== 10 && r !== 13 && r !== 0);
|
|
1398
|
-
if (
|
|
1399
|
-
for (
|
|
1400
|
+
if (ce(r))
|
|
1401
|
+
for (mt(e), r = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; r === 32; )
|
|
1400
1402
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1401
1403
|
else
|
|
1402
1404
|
break;
|
|
1403
1405
|
}
|
|
1404
|
-
return n !== -1 && i !== 0 && e.lineIndent < n &&
|
|
1406
|
+
return n !== -1 && i !== 0 && e.lineIndent < n && Ye(e, "deficient indentation"), i;
|
|
1405
1407
|
}
|
|
1406
|
-
function
|
|
1408
|
+
function Ge(e) {
|
|
1407
1409
|
var t = e.position, n;
|
|
1408
|
-
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 ||
|
|
1410
|
+
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || oe(n)));
|
|
1409
1411
|
}
|
|
1410
|
-
function
|
|
1412
|
+
function yt(e, t) {
|
|
1411
1413
|
t === 1 ? e.result += " " : t > 1 && (e.result += J.repeat(`
|
|
1412
1414
|
`, t - 1));
|
|
1413
1415
|
}
|
|
1414
|
-
function
|
|
1415
|
-
var i, r, o, a, l, s,
|
|
1416
|
-
if (
|
|
1416
|
+
function ta(e, t, n) {
|
|
1417
|
+
var i, r, o, a, l, s, d, u, c = e.kind, f = e.result, p;
|
|
1418
|
+
if (p = e.input.charCodeAt(e.position), oe(p) || Ie(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (r = e.input.charCodeAt(e.position + 1), oe(r) || n && Ie(r)))
|
|
1417
1419
|
return !1;
|
|
1418
|
-
for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1;
|
|
1419
|
-
if (
|
|
1420
|
-
if (r = e.input.charCodeAt(e.position + 1),
|
|
1420
|
+
for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; p !== 0; ) {
|
|
1421
|
+
if (p === 58) {
|
|
1422
|
+
if (r = e.input.charCodeAt(e.position + 1), oe(r) || n && Ie(r))
|
|
1421
1423
|
break;
|
|
1422
|
-
} else if (
|
|
1423
|
-
if (i = e.input.charCodeAt(e.position - 1),
|
|
1424
|
+
} else if (p === 35) {
|
|
1425
|
+
if (i = e.input.charCodeAt(e.position - 1), oe(i))
|
|
1424
1426
|
break;
|
|
1425
1427
|
} else {
|
|
1426
|
-
if (e.position === e.lineStart &&
|
|
1428
|
+
if (e.position === e.lineStart && Ge(e) || n && Ie(p))
|
|
1427
1429
|
break;
|
|
1428
|
-
if (
|
|
1429
|
-
if (s = e.line,
|
|
1430
|
-
l = !0,
|
|
1430
|
+
if (ce(p))
|
|
1431
|
+
if (s = e.line, d = e.lineStart, u = e.lineIndent, Y(e, !1, -1), e.lineIndent >= t) {
|
|
1432
|
+
l = !0, p = e.input.charCodeAt(e.position);
|
|
1431
1433
|
continue;
|
|
1432
1434
|
} else {
|
|
1433
|
-
e.position = a, e.line = s, e.lineStart =
|
|
1435
|
+
e.position = a, e.line = s, e.lineStart = d, e.lineIndent = u;
|
|
1434
1436
|
break;
|
|
1435
1437
|
}
|
|
1436
1438
|
}
|
|
1437
|
-
l && (
|
|
1439
|
+
l && (me(e, o, a, !1), yt(e, e.line - s), o = a = e.position, l = !1), Ce(p) || (a = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
1438
1440
|
}
|
|
1439
|
-
return
|
|
1441
|
+
return me(e, o, a, !1), e.result ? !0 : (e.kind = c, e.result = f, !1);
|
|
1440
1442
|
}
|
|
1441
|
-
function
|
|
1443
|
+
function na(e, t) {
|
|
1442
1444
|
var n, i, r;
|
|
1443
1445
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1444
1446
|
return !1;
|
|
1445
1447
|
for (e.kind = "scalar", e.result = "", e.position++, i = r = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
|
|
1446
1448
|
if (n === 39)
|
|
1447
|
-
if (
|
|
1449
|
+
if (me(e, i, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
|
|
1448
1450
|
i = e.position, e.position++, r = e.position;
|
|
1449
1451
|
else
|
|
1450
1452
|
return !0;
|
|
1451
|
-
else
|
|
1452
|
-
|
|
1453
|
+
else ce(n) ? (me(e, i, r, !0), yt(e, Y(e, !1, t)), i = r = e.position) : e.position === e.lineStart && Ge(e) ? S(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1454
|
+
S(e, "unexpected end of the stream within a single quoted scalar");
|
|
1453
1455
|
}
|
|
1454
|
-
function
|
|
1456
|
+
function ia(e, t) {
|
|
1455
1457
|
var n, i, r, o, a, l;
|
|
1456
1458
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1457
1459
|
return !1;
|
|
1458
1460
|
for (e.kind = "scalar", e.result = "", e.position++, n = i = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1459
1461
|
if (l === 34)
|
|
1460
|
-
return
|
|
1462
|
+
return me(e, n, e.position, !0), e.position++, !0;
|
|
1461
1463
|
if (l === 92) {
|
|
1462
|
-
if (
|
|
1464
|
+
if (me(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), ce(l))
|
|
1463
1465
|
Y(e, !1, t);
|
|
1464
|
-
else if (l < 256 &&
|
|
1465
|
-
e.result +=
|
|
1466
|
-
else if ((a =
|
|
1466
|
+
else if (l < 256 && $n[l])
|
|
1467
|
+
e.result += jn[l], e.position++;
|
|
1468
|
+
else if ((a = Gr(l)) > 0) {
|
|
1467
1469
|
for (r = a, o = 0; r > 0; r--)
|
|
1468
|
-
l = e.input.charCodeAt(++e.position), (a =
|
|
1469
|
-
e.result +=
|
|
1470
|
+
l = e.input.charCodeAt(++e.position), (a = Zr(l)) >= 0 ? o = (o << 4) + a : S(e, "expected hexadecimal character");
|
|
1471
|
+
e.result += Xr(o), e.position++;
|
|
1470
1472
|
} else
|
|
1471
|
-
|
|
1473
|
+
S(e, "unknown escape sequence");
|
|
1472
1474
|
n = i = e.position;
|
|
1473
|
-
} else
|
|
1475
|
+
} else ce(l) ? (me(e, n, i, !0), yt(e, Y(e, !1, t)), n = i = e.position) : e.position === e.lineStart && Ge(e) ? S(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
1474
1476
|
}
|
|
1475
|
-
|
|
1476
|
-
}
|
|
1477
|
-
function
|
|
1478
|
-
var n = !0, i, r, o, a = e.tag, l, s = e.anchor,
|
|
1479
|
-
if (
|
|
1480
|
-
|
|
1481
|
-
else if (
|
|
1482
|
-
|
|
1477
|
+
S(e, "unexpected end of the stream within a double quoted scalar");
|
|
1478
|
+
}
|
|
1479
|
+
function ra(e, t) {
|
|
1480
|
+
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, d, u, c, f, p, g = /* @__PURE__ */ Object.create(null), k, v, x, y;
|
|
1481
|
+
if (y = e.input.charCodeAt(e.position), y === 91)
|
|
1482
|
+
u = 93, p = !1, l = [];
|
|
1483
|
+
else if (y === 123)
|
|
1484
|
+
u = 125, p = !0, l = {};
|
|
1483
1485
|
else
|
|
1484
1486
|
return !1;
|
|
1485
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = l),
|
|
1486
|
-
if (Y(e, !0, t),
|
|
1487
|
-
return e.position++, e.tag = a, e.anchor = s, e.kind =
|
|
1488
|
-
n ?
|
|
1487
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), y = e.input.charCodeAt(++e.position); y !== 0; ) {
|
|
1488
|
+
if (Y(e, !0, t), y = e.input.charCodeAt(e.position), y === u)
|
|
1489
|
+
return e.position++, e.tag = a, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
|
|
1490
|
+
n ? y === 44 && S(e, "expected the node content, but found ','") : S(e, "missed comma between flow collection entries"), v = k = x = null, c = f = !1, y === 63 && (d = e.input.charCodeAt(e.position + 1), oe(d) && (c = f = !0, e.position++, Y(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Te(e, t, ze, !1, !0), v = e.tag, k = e.result, Y(e, !0, t), y = e.input.charCodeAt(e.position), (f || e.line === i) && y === 58 && (c = !0, y = e.input.charCodeAt(++e.position), Y(e, !0, t), Te(e, t, ze, !1, !0), x = e.result), p ? Ne(e, l, g, v, k, x, i, r, o) : c ? l.push(Ne(e, null, g, v, k, x, i, r, o)) : l.push(k), Y(e, !0, t), y = e.input.charCodeAt(e.position), y === 44 ? (n = !0, y = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1489
1491
|
}
|
|
1490
|
-
|
|
1492
|
+
S(e, "unexpected end of the stream within a flow collection");
|
|
1491
1493
|
}
|
|
1492
|
-
function
|
|
1493
|
-
var n, i, r =
|
|
1494
|
+
function aa(e, t) {
|
|
1495
|
+
var n, i, r = nt, o = !1, a = !1, l = t, s = 0, d = !1, u, c;
|
|
1494
1496
|
if (c = e.input.charCodeAt(e.position), c === 124)
|
|
1495
1497
|
i = !1;
|
|
1496
1498
|
else if (c === 62)
|
|
@@ -1499,209 +1501,209 @@ function na(e, t) {
|
|
|
1499
1501
|
return !1;
|
|
1500
1502
|
for (e.kind = "scalar", e.result = ""; c !== 0; )
|
|
1501
1503
|
if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
|
|
1502
|
-
|
|
1503
|
-
else if ((
|
|
1504
|
-
|
|
1504
|
+
nt === r ? r = c === 43 ? Tt : Hr : S(e, "repeat of a chomping mode identifier");
|
|
1505
|
+
else if ((u = Qr(c)) >= 0)
|
|
1506
|
+
u === 0 ? S(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? S(e, "repeat of an indentation width identifier") : (l = t + u - 1, a = !0);
|
|
1505
1507
|
else
|
|
1506
1508
|
break;
|
|
1507
|
-
if (
|
|
1509
|
+
if (Ce(c)) {
|
|
1508
1510
|
do
|
|
1509
1511
|
c = e.input.charCodeAt(++e.position);
|
|
1510
|
-
while (
|
|
1512
|
+
while (Ce(c));
|
|
1511
1513
|
if (c === 35)
|
|
1512
1514
|
do
|
|
1513
1515
|
c = e.input.charCodeAt(++e.position);
|
|
1514
|
-
while (!
|
|
1516
|
+
while (!ce(c) && c !== 0);
|
|
1515
1517
|
}
|
|
1516
1518
|
for (; c !== 0; ) {
|
|
1517
|
-
for (
|
|
1519
|
+
for (mt(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && c === 32; )
|
|
1518
1520
|
e.lineIndent++, c = e.input.charCodeAt(++e.position);
|
|
1519
|
-
if (!a && e.lineIndent > l && (l = e.lineIndent),
|
|
1521
|
+
if (!a && e.lineIndent > l && (l = e.lineIndent), ce(c)) {
|
|
1520
1522
|
s++;
|
|
1521
1523
|
continue;
|
|
1522
1524
|
}
|
|
1523
1525
|
if (e.lineIndent < l) {
|
|
1524
|
-
r ===
|
|
1525
|
-
`, o ? 1 + s : s) : r ===
|
|
1526
|
+
r === Tt ? e.result += J.repeat(`
|
|
1527
|
+
`, o ? 1 + s : s) : r === nt && o && (e.result += `
|
|
1526
1528
|
`);
|
|
1527
1529
|
break;
|
|
1528
1530
|
}
|
|
1529
|
-
for (i ?
|
|
1530
|
-
`, o ? 1 + s : s)) :
|
|
1531
|
+
for (i ? Ce(c) ? (d = !0, e.result += J.repeat(`
|
|
1532
|
+
`, o ? 1 + s : s)) : d ? (d = !1, e.result += J.repeat(`
|
|
1531
1533
|
`, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += J.repeat(`
|
|
1532
1534
|
`, s) : e.result += J.repeat(`
|
|
1533
|
-
`, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !
|
|
1535
|
+
`, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !ce(c) && c !== 0; )
|
|
1534
1536
|
c = e.input.charCodeAt(++e.position);
|
|
1535
|
-
|
|
1537
|
+
me(e, n, e.position, !1);
|
|
1536
1538
|
}
|
|
1537
1539
|
return !0;
|
|
1538
1540
|
}
|
|
1539
|
-
function
|
|
1541
|
+
function Ft(e, t) {
|
|
1540
1542
|
var n, i = e.tag, r = e.anchor, o = [], a, l = !1, s;
|
|
1541
1543
|
if (e.firstTabInLine !== -1) return !1;
|
|
1542
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1544
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, S(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !oe(a)))); ) {
|
|
1543
1545
|
if (l = !0, e.position++, Y(e, !0, -1) && e.lineIndent <= t) {
|
|
1544
1546
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
1545
1547
|
continue;
|
|
1546
1548
|
}
|
|
1547
|
-
if (n = e.line,
|
|
1548
|
-
|
|
1549
|
+
if (n = e.line, Te(e, t, Nn, !1, !0), o.push(e.result), Y(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1550
|
+
S(e, "bad indentation of a sequence entry");
|
|
1549
1551
|
else if (e.lineIndent < t)
|
|
1550
1552
|
break;
|
|
1551
1553
|
}
|
|
1552
1554
|
return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1553
1555
|
}
|
|
1554
|
-
function
|
|
1555
|
-
var i, r, o, a, l, s,
|
|
1556
|
+
function oa(e, t, n) {
|
|
1557
|
+
var i, r, o, a, l, s, d = e.tag, u = e.anchor, c = {}, f = /* @__PURE__ */ Object.create(null), p = null, g = null, k = null, v = !1, x = !1, y;
|
|
1556
1558
|
if (e.firstTabInLine !== -1) return !1;
|
|
1557
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = c),
|
|
1558
|
-
if (!
|
|
1559
|
-
|
|
1559
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), y = e.input.charCodeAt(e.position); y !== 0; ) {
|
|
1560
|
+
if (!v && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, S(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (y === 63 || y === 58) && oe(i))
|
|
1561
|
+
y === 63 ? (v && (Ne(e, c, f, p, g, null, a, l, s), p = g = k = null), x = !0, v = !0, r = !0) : v ? (v = !1, r = !0) : S(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, y = i;
|
|
1560
1562
|
else {
|
|
1561
|
-
if (a = e.line, l = e.lineStart, s = e.position, !
|
|
1563
|
+
if (a = e.line, l = e.lineStart, s = e.position, !Te(e, n, In, !1, !0))
|
|
1562
1564
|
break;
|
|
1563
1565
|
if (e.line === o) {
|
|
1564
|
-
for (
|
|
1565
|
-
|
|
1566
|
-
if (
|
|
1567
|
-
|
|
1568
|
-
else if (
|
|
1569
|
-
|
|
1566
|
+
for (y = e.input.charCodeAt(e.position); Ce(y); )
|
|
1567
|
+
y = e.input.charCodeAt(++e.position);
|
|
1568
|
+
if (y === 58)
|
|
1569
|
+
y = e.input.charCodeAt(++e.position), oe(y) || S(e, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Ne(e, c, f, p, g, null, a, l, s), p = g = k = null), x = !0, v = !1, r = !1, p = e.tag, g = e.result;
|
|
1570
|
+
else if (x)
|
|
1571
|
+
S(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1570
1572
|
else
|
|
1571
|
-
return e.tag =
|
|
1572
|
-
} else if (
|
|
1573
|
-
|
|
1573
|
+
return e.tag = d, e.anchor = u, !0;
|
|
1574
|
+
} else if (x)
|
|
1575
|
+
S(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1574
1576
|
else
|
|
1575
|
-
return e.tag =
|
|
1577
|
+
return e.tag = d, e.anchor = u, !0;
|
|
1576
1578
|
}
|
|
1577
|
-
if ((e.line === o || e.lineIndent > t) && (
|
|
1578
|
-
|
|
1579
|
+
if ((e.line === o || e.lineIndent > t) && (v && (a = e.line, l = e.lineStart, s = e.position), Te(e, t, He, !0, r) && (v ? g = e.result : k = e.result), v || (Ne(e, c, f, p, g, k, a, l, s), p = g = k = null), Y(e, !0, -1), y = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && y !== 0)
|
|
1580
|
+
S(e, "bad indentation of a mapping entry");
|
|
1579
1581
|
else if (e.lineIndent < t)
|
|
1580
1582
|
break;
|
|
1581
1583
|
}
|
|
1582
|
-
return
|
|
1584
|
+
return v && Ne(e, c, f, p, g, null, a, l, s), x && (e.tag = d, e.anchor = u, e.kind = "mapping", e.result = c), x;
|
|
1583
1585
|
}
|
|
1584
|
-
function
|
|
1586
|
+
function la(e) {
|
|
1585
1587
|
var t, n = !1, i = !1, r, o, a;
|
|
1586
1588
|
if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
|
|
1587
|
-
if (e.tag !== null &&
|
|
1589
|
+
if (e.tag !== null && S(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
|
|
1588
1590
|
do
|
|
1589
1591
|
a = e.input.charCodeAt(++e.position);
|
|
1590
1592
|
while (a !== 0 && a !== 62);
|
|
1591
|
-
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) :
|
|
1593
|
+
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : S(e, "unexpected end of the stream within a verbatim tag");
|
|
1592
1594
|
} else {
|
|
1593
|
-
for (; a !== 0 && !
|
|
1594
|
-
a === 33 && (i ?
|
|
1595
|
-
o = e.input.slice(t, e.position),
|
|
1595
|
+
for (; a !== 0 && !oe(a); )
|
|
1596
|
+
a === 33 && (i ? S(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), Tn.test(r) || S(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
1597
|
+
o = e.input.slice(t, e.position), Jr.test(o) && S(e, "tag suffix cannot contain flow indicator characters");
|
|
1596
1598
|
}
|
|
1597
|
-
o && !
|
|
1599
|
+
o && !On.test(o) && S(e, "tag name cannot contain such characters: " + o);
|
|
1598
1600
|
try {
|
|
1599
1601
|
o = decodeURIComponent(o);
|
|
1600
1602
|
} catch {
|
|
1601
|
-
|
|
1603
|
+
S(e, "tag name is malformed: " + o);
|
|
1602
1604
|
}
|
|
1603
|
-
return n ? e.tag = o :
|
|
1605
|
+
return n ? e.tag = o : ve.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : S(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
1604
1606
|
}
|
|
1605
|
-
function
|
|
1607
|
+
function sa(e) {
|
|
1606
1608
|
var t, n;
|
|
1607
1609
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
1608
|
-
for (e.anchor !== null &&
|
|
1610
|
+
for (e.anchor !== null && S(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !oe(n) && !Ie(n); )
|
|
1609
1611
|
n = e.input.charCodeAt(++e.position);
|
|
1610
|
-
return e.position === t &&
|
|
1612
|
+
return e.position === t && S(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1611
1613
|
}
|
|
1612
|
-
function
|
|
1614
|
+
function ca(e) {
|
|
1613
1615
|
var t, n, i;
|
|
1614
1616
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
1615
|
-
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !
|
|
1617
|
+
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !oe(i) && !Ie(i); )
|
|
1616
1618
|
i = e.input.charCodeAt(++e.position);
|
|
1617
|
-
return e.position === t &&
|
|
1618
|
-
}
|
|
1619
|
-
function
|
|
1620
|
-
var o, a, l, s = 1,
|
|
1621
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l =
|
|
1622
|
-
for (;
|
|
1623
|
-
Y(e, !0, -1) ? (
|
|
1624
|
-
if (l && (l =
|
|
1619
|
+
return e.position === t && S(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ve.call(e.anchorMap, n) || S(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Y(e, !0, -1), !0;
|
|
1620
|
+
}
|
|
1621
|
+
function Te(e, t, n, i, r) {
|
|
1622
|
+
var o, a, l, s = 1, d = !1, u = !1, c, f, p, g, k, v;
|
|
1623
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = He === n || Nn === n, i && Y(e, !0, -1) && (d = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1624
|
+
for (; la(e) || sa(e); )
|
|
1625
|
+
Y(e, !0, -1) ? (d = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1626
|
+
if (l && (l = d || r), (s === 1 || He === n) && (ze === n || In === n ? k = t : k = t + 1, v = e.position - e.lineStart, s === 1 ? l && (Ft(e, v) || oa(e, v, k)) || ra(e, k) ? u = !0 : (a && aa(e, k) || na(e, k) || ia(e, k) ? u = !0 : ca(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && S(e, "alias node should not have any properties")) : ta(e, k, ze === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (u = l && Ft(e, v))), e.tag === null)
|
|
1625
1627
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1626
1628
|
else if (e.tag === "?") {
|
|
1627
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
1628
|
-
if (
|
|
1629
|
-
e.result =
|
|
1629
|
+
for (e.result !== null && e.kind !== "scalar" && S(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, f = e.implicitTypes.length; c < f; c += 1)
|
|
1630
|
+
if (g = e.implicitTypes[c], g.resolve(e.result)) {
|
|
1631
|
+
e.result = g.construct(e.result), e.tag = g.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1630
1632
|
break;
|
|
1631
1633
|
}
|
|
1632
1634
|
} else if (e.tag !== "!") {
|
|
1633
|
-
if (
|
|
1634
|
-
|
|
1635
|
+
if (ve.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1636
|
+
g = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1635
1637
|
else
|
|
1636
|
-
for (
|
|
1637
|
-
if (e.tag.slice(0,
|
|
1638
|
-
|
|
1638
|
+
for (g = null, p = e.typeMap.multi[e.kind || "fallback"], c = 0, f = p.length; c < f; c += 1)
|
|
1639
|
+
if (e.tag.slice(0, p[c].tag.length) === p[c].tag) {
|
|
1640
|
+
g = p[c];
|
|
1639
1641
|
break;
|
|
1640
1642
|
}
|
|
1641
|
-
|
|
1643
|
+
g || S(e, "unknown tag !<" + e.tag + ">"), e.result !== null && g.kind !== e.kind && S(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + g.kind + '", not "' + e.kind + '"'), g.resolve(e.result, e.tag) ? (e.result = g.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : S(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1642
1644
|
}
|
|
1643
|
-
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null ||
|
|
1645
|
+
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
|
|
1644
1646
|
}
|
|
1645
|
-
function
|
|
1647
|
+
function ua(e) {
|
|
1646
1648
|
var t = e.position, n, i, r, o = !1, a;
|
|
1647
1649
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (Y(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
1648
|
-
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !
|
|
1650
|
+
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !oe(a); )
|
|
1649
1651
|
a = e.input.charCodeAt(++e.position);
|
|
1650
|
-
for (i = e.input.slice(n, e.position), r = [], i.length < 1 &&
|
|
1651
|
-
for (;
|
|
1652
|
+
for (i = e.input.slice(n, e.position), r = [], i.length < 1 && S(e, "directive name must not be less than one character in length"); a !== 0; ) {
|
|
1653
|
+
for (; Ce(a); )
|
|
1652
1654
|
a = e.input.charCodeAt(++e.position);
|
|
1653
1655
|
if (a === 35) {
|
|
1654
1656
|
do
|
|
1655
1657
|
a = e.input.charCodeAt(++e.position);
|
|
1656
|
-
while (a !== 0 && !
|
|
1658
|
+
while (a !== 0 && !ce(a));
|
|
1657
1659
|
break;
|
|
1658
1660
|
}
|
|
1659
|
-
if (
|
|
1660
|
-
for (n = e.position; a !== 0 && !
|
|
1661
|
+
if (ce(a)) break;
|
|
1662
|
+
for (n = e.position; a !== 0 && !oe(a); )
|
|
1661
1663
|
a = e.input.charCodeAt(++e.position);
|
|
1662
1664
|
r.push(e.input.slice(n, e.position));
|
|
1663
1665
|
}
|
|
1664
|
-
a !== 0 &&
|
|
1666
|
+
a !== 0 && mt(e), ve.call(jt, i) ? jt[i](e, i, r) : Ye(e, 'unknown document directive "' + i + '"');
|
|
1665
1667
|
}
|
|
1666
|
-
if (Y(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Y(e, !0, -1)) : o &&
|
|
1668
|
+
if (Y(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Y(e, !0, -1)) : o && S(e, "directives end mark is expected"), Te(e, e.lineIndent - 1, He, !1, !0), Y(e, !0, -1), e.checkLineBreaks && Wr.test(e.input.slice(t, e.position)) && Ye(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ge(e)) {
|
|
1667
1669
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, Y(e, !0, -1));
|
|
1668
1670
|
return;
|
|
1669
1671
|
}
|
|
1670
1672
|
if (e.position < e.length - 1)
|
|
1671
|
-
|
|
1673
|
+
S(e, "end of the stream or a document separator is expected");
|
|
1672
1674
|
else
|
|
1673
1675
|
return;
|
|
1674
1676
|
}
|
|
1675
|
-
function
|
|
1677
|
+
function Fn(e, t) {
|
|
1676
1678
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
1677
1679
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1678
|
-
var n = new
|
|
1679
|
-
for (i !== -1 && (n.position = i,
|
|
1680
|
+
var n = new ea(e, t), i = e.indexOf("\0");
|
|
1681
|
+
for (i !== -1 && (n.position = i, S(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
1680
1682
|
n.lineIndent += 1, n.position += 1;
|
|
1681
1683
|
for (; n.position < n.length - 1; )
|
|
1682
|
-
|
|
1684
|
+
ua(n);
|
|
1683
1685
|
return n.documents;
|
|
1684
1686
|
}
|
|
1685
|
-
function
|
|
1687
|
+
function da(e, t, n) {
|
|
1686
1688
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
1687
|
-
var i =
|
|
1689
|
+
var i = Fn(e, n);
|
|
1688
1690
|
if (typeof t != "function")
|
|
1689
1691
|
return i;
|
|
1690
1692
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
1691
1693
|
t(i[r]);
|
|
1692
1694
|
}
|
|
1693
|
-
function
|
|
1694
|
-
var n =
|
|
1695
|
+
function pa(e, t) {
|
|
1696
|
+
var n = Fn(e, t);
|
|
1695
1697
|
if (n.length !== 0) {
|
|
1696
1698
|
if (n.length === 1)
|
|
1697
1699
|
return n[0];
|
|
1698
|
-
throw new
|
|
1700
|
+
throw new ae("expected a single document in the stream, but found more");
|
|
1699
1701
|
}
|
|
1700
1702
|
}
|
|
1701
|
-
var
|
|
1702
|
-
loadAll:
|
|
1703
|
-
load:
|
|
1704
|
-
},
|
|
1703
|
+
var fa = da, ga = pa, Mn = {
|
|
1704
|
+
loadAll: fa,
|
|
1705
|
+
load: ga
|
|
1706
|
+
}, qn = Object.prototype.toString, Ln = Object.prototype.hasOwnProperty, vt = 65279, ha = 9, Le = 10, ma = 13, ya = 32, va = 33, ba = 34, ot = 35, ka = 37, wa = 38, Ca = 39, Sa = 42, Rn = 44, xa = 45, We = 58, Aa = 61, _a = 62, Ia = 63, Na = 64, Kn = 91, Un = 93, Ta = 96, Bn = 123, Oa = 124, Vn = 125, ne = {};
|
|
1705
1707
|
ne[0] = "\\0";
|
|
1706
1708
|
ne[7] = "\\a";
|
|
1707
1709
|
ne[8] = "\\b";
|
|
@@ -1717,7 +1719,7 @@ ne[133] = "\\N";
|
|
|
1717
1719
|
ne[160] = "\\_";
|
|
1718
1720
|
ne[8232] = "\\L";
|
|
1719
1721
|
ne[8233] = "\\P";
|
|
1720
|
-
var
|
|
1722
|
+
var $a = [
|
|
1721
1723
|
"y",
|
|
1722
1724
|
"Y",
|
|
1723
1725
|
"yes",
|
|
@@ -1734,15 +1736,15 @@ var Na = [
|
|
|
1734
1736
|
"off",
|
|
1735
1737
|
"Off",
|
|
1736
1738
|
"OFF"
|
|
1737
|
-
],
|
|
1738
|
-
function
|
|
1739
|
+
], ja = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
1740
|
+
function Ea(e, t) {
|
|
1739
1741
|
var n, i, r, o, a, l, s;
|
|
1740
1742
|
if (t === null) return {};
|
|
1741
1743
|
for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
|
|
1742
|
-
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s &&
|
|
1744
|
+
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && Ln.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
|
|
1743
1745
|
return n;
|
|
1744
1746
|
}
|
|
1745
|
-
function
|
|
1747
|
+
function Fa(e) {
|
|
1746
1748
|
var t, n, i;
|
|
1747
1749
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
1748
1750
|
n = "x", i = 2;
|
|
@@ -1751,97 +1753,97 @@ function Oa(e) {
|
|
|
1751
1753
|
else if (e <= 4294967295)
|
|
1752
1754
|
n = "U", i = 8;
|
|
1753
1755
|
else
|
|
1754
|
-
throw new
|
|
1756
|
+
throw new ae("code point within a string may not be greater than 0xFFFFFFFF");
|
|
1755
1757
|
return "\\" + n + J.repeat("0", i - t.length) + t;
|
|
1756
1758
|
}
|
|
1757
|
-
var Ma = 1,
|
|
1758
|
-
function
|
|
1759
|
-
this.schema = e.schema ||
|
|
1759
|
+
var Ma = 1, Re = 2;
|
|
1760
|
+
function qa(e) {
|
|
1761
|
+
this.schema = e.schema || ht, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = J.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Ea(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Re : Ma, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
1760
1762
|
}
|
|
1761
|
-
function
|
|
1763
|
+
function Mt(e, t) {
|
|
1762
1764
|
for (var n = J.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
|
|
1763
1765
|
r = e.indexOf(`
|
|
1764
1766
|
`, i), r === -1 ? (a = e.slice(i), i = l) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
|
|
1765
1767
|
` && (o += n), o += a;
|
|
1766
1768
|
return o;
|
|
1767
1769
|
}
|
|
1768
|
-
function
|
|
1770
|
+
function lt(e, t) {
|
|
1769
1771
|
return `
|
|
1770
1772
|
` + J.repeat(" ", e.indent * t);
|
|
1771
1773
|
}
|
|
1772
|
-
function
|
|
1774
|
+
function La(e, t) {
|
|
1773
1775
|
var n, i, r;
|
|
1774
1776
|
for (n = 0, i = e.implicitTypes.length; n < i; n += 1)
|
|
1775
1777
|
if (r = e.implicitTypes[n], r.resolve(t))
|
|
1776
1778
|
return !0;
|
|
1777
1779
|
return !1;
|
|
1778
1780
|
}
|
|
1779
|
-
function
|
|
1780
|
-
return e ===
|
|
1781
|
+
function Je(e) {
|
|
1782
|
+
return e === ya || e === ha;
|
|
1781
1783
|
}
|
|
1782
|
-
function
|
|
1783
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
1784
|
+
function Ke(e) {
|
|
1785
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== vt || 65536 <= e && e <= 1114111;
|
|
1784
1786
|
}
|
|
1785
|
-
function
|
|
1786
|
-
return
|
|
1787
|
+
function qt(e) {
|
|
1788
|
+
return Ke(e) && e !== vt && e !== ma && e !== Le;
|
|
1787
1789
|
}
|
|
1788
1790
|
function Lt(e, t, n) {
|
|
1789
|
-
var i =
|
|
1791
|
+
var i = qt(e), r = i && !Je(e);
|
|
1790
1792
|
return (
|
|
1791
1793
|
// ns-plain-safe
|
|
1792
1794
|
(n ? (
|
|
1793
1795
|
// c = flow-in
|
|
1794
1796
|
i
|
|
1795
|
-
) : i && e !==
|
|
1797
|
+
) : i && e !== Rn && e !== Kn && e !== Un && e !== Bn && e !== Vn) && e !== ot && !(t === We && !r) || qt(t) && !Je(t) && e === ot || t === We && r
|
|
1796
1798
|
);
|
|
1797
1799
|
}
|
|
1798
|
-
function
|
|
1799
|
-
return
|
|
1800
|
+
function Ra(e) {
|
|
1801
|
+
return Ke(e) && e !== vt && !Je(e) && e !== xa && e !== Ia && e !== We && e !== Rn && e !== Kn && e !== Un && e !== Bn && e !== Vn && e !== ot && e !== wa && e !== Sa && e !== va && e !== Oa && e !== Aa && e !== _a && e !== Ca && e !== ba && e !== ka && e !== Na && e !== Ta;
|
|
1800
1802
|
}
|
|
1801
|
-
function
|
|
1802
|
-
return !
|
|
1803
|
+
function Ka(e) {
|
|
1804
|
+
return !Je(e) && e !== We;
|
|
1803
1805
|
}
|
|
1804
1806
|
function Fe(e, t) {
|
|
1805
1807
|
var n = e.charCodeAt(t), i;
|
|
1806
1808
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
|
|
1807
1809
|
}
|
|
1808
|
-
function
|
|
1810
|
+
function Dn(e) {
|
|
1809
1811
|
var t = /^\n* /;
|
|
1810
1812
|
return t.test(e);
|
|
1811
1813
|
}
|
|
1812
|
-
var
|
|
1813
|
-
function
|
|
1814
|
-
var s,
|
|
1814
|
+
var Pn = 1, st = 2, zn = 3, Hn = 4, _e = 5;
|
|
1815
|
+
function Ua(e, t, n, i, r, o, a, l) {
|
|
1816
|
+
var s, d = 0, u = null, c = !1, f = !1, p = i !== -1, g = -1, k = Ra(Fe(e, 0)) && Ka(Fe(e, e.length - 1));
|
|
1815
1817
|
if (t || a)
|
|
1816
|
-
for (s = 0; s < e.length;
|
|
1817
|
-
if (
|
|
1818
|
-
return
|
|
1819
|
-
|
|
1818
|
+
for (s = 0; s < e.length; d >= 65536 ? s += 2 : s++) {
|
|
1819
|
+
if (d = Fe(e, s), !Ke(d))
|
|
1820
|
+
return _e;
|
|
1821
|
+
k = k && Lt(d, u, l), u = d;
|
|
1820
1822
|
}
|
|
1821
1823
|
else {
|
|
1822
|
-
for (s = 0; s < e.length;
|
|
1823
|
-
if (
|
|
1824
|
-
c = !0,
|
|
1825
|
-
s -
|
|
1826
|
-
else if (!
|
|
1827
|
-
return
|
|
1828
|
-
|
|
1824
|
+
for (s = 0; s < e.length; d >= 65536 ? s += 2 : s++) {
|
|
1825
|
+
if (d = Fe(e, s), d === Le)
|
|
1826
|
+
c = !0, p && (f = f || // Foldable line = too long, and not more-indented.
|
|
1827
|
+
s - g - 1 > i && e[g + 1] !== " ", g = s);
|
|
1828
|
+
else if (!Ke(d))
|
|
1829
|
+
return _e;
|
|
1830
|
+
k = k && Lt(d, u, l), u = d;
|
|
1829
1831
|
}
|
|
1830
|
-
|
|
1832
|
+
f = f || p && s - g - 1 > i && e[g + 1] !== " ";
|
|
1831
1833
|
}
|
|
1832
|
-
return !c && !
|
|
1834
|
+
return !c && !f ? k && !a && !r(e) ? Pn : o === Re ? _e : st : n > 9 && Dn(e) ? _e : a ? o === Re ? _e : st : f ? Hn : zn;
|
|
1833
1835
|
}
|
|
1834
|
-
function
|
|
1836
|
+
function Ba(e, t, n, i, r) {
|
|
1835
1837
|
e.dump = function() {
|
|
1836
1838
|
if (t.length === 0)
|
|
1837
|
-
return e.quotingType ===
|
|
1838
|
-
if (!e.noCompatMode && (
|
|
1839
|
-
return e.quotingType ===
|
|
1839
|
+
return e.quotingType === Re ? '""' : "''";
|
|
1840
|
+
if (!e.noCompatMode && ($a.indexOf(t) !== -1 || ja.test(t)))
|
|
1841
|
+
return e.quotingType === Re ? '"' + t + '"' : "'" + t + "'";
|
|
1840
1842
|
var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
1841
|
-
function s(
|
|
1842
|
-
return
|
|
1843
|
+
function s(d) {
|
|
1844
|
+
return La(e, d);
|
|
1843
1845
|
}
|
|
1844
|
-
switch (
|
|
1846
|
+
switch (Ua(
|
|
1845
1847
|
t,
|
|
1846
1848
|
l,
|
|
1847
1849
|
e.indent,
|
|
@@ -1851,47 +1853,47 @@ function Ra(e, t, n, i, r) {
|
|
|
1851
1853
|
e.forceQuotes && !i,
|
|
1852
1854
|
r
|
|
1853
1855
|
)) {
|
|
1854
|
-
case
|
|
1856
|
+
case Pn:
|
|
1855
1857
|
return t;
|
|
1856
|
-
case
|
|
1858
|
+
case st:
|
|
1857
1859
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
1858
|
-
case
|
|
1859
|
-
return "|" +
|
|
1860
|
-
case
|
|
1861
|
-
return ">" +
|
|
1862
|
-
case
|
|
1863
|
-
return '"' +
|
|
1860
|
+
case zn:
|
|
1861
|
+
return "|" + Rt(t, e.indent) + Kt(Mt(t, o));
|
|
1862
|
+
case Hn:
|
|
1863
|
+
return ">" + Rt(t, e.indent) + Kt(Mt(Va(t, a), o));
|
|
1864
|
+
case _e:
|
|
1865
|
+
return '"' + Da(t) + '"';
|
|
1864
1866
|
default:
|
|
1865
|
-
throw new
|
|
1867
|
+
throw new ae("impossible error: invalid scalar style");
|
|
1866
1868
|
}
|
|
1867
1869
|
}();
|
|
1868
1870
|
}
|
|
1869
|
-
function
|
|
1870
|
-
var n =
|
|
1871
|
+
function Rt(e, t) {
|
|
1872
|
+
var n = Dn(e) ? String(t) : "", i = e[e.length - 1] === `
|
|
1871
1873
|
`, r = i && (e[e.length - 2] === `
|
|
1872
1874
|
` || e === `
|
|
1873
1875
|
`), o = r ? "+" : i ? "" : "-";
|
|
1874
1876
|
return n + o + `
|
|
1875
1877
|
`;
|
|
1876
1878
|
}
|
|
1877
|
-
function
|
|
1879
|
+
function Kt(e) {
|
|
1878
1880
|
return e[e.length - 1] === `
|
|
1879
1881
|
` ? e.slice(0, -1) : e;
|
|
1880
1882
|
}
|
|
1881
|
-
function
|
|
1883
|
+
function Va(e, t) {
|
|
1882
1884
|
for (var n = /(\n+)([^\n]*)/g, i = function() {
|
|
1883
|
-
var
|
|
1885
|
+
var d = e.indexOf(`
|
|
1884
1886
|
`);
|
|
1885
|
-
return
|
|
1887
|
+
return d = d !== -1 ? d : e.length, n.lastIndex = d, Ut(e.slice(0, d), t);
|
|
1886
1888
|
}(), r = e[0] === `
|
|
1887
1889
|
` || e[0] === " ", o, a; a = n.exec(e); ) {
|
|
1888
1890
|
var l = a[1], s = a[2];
|
|
1889
1891
|
o = s[0] === " ", i += l + (!r && !o && s !== "" ? `
|
|
1890
|
-
` : "") +
|
|
1892
|
+
` : "") + Ut(s, t), r = o;
|
|
1891
1893
|
}
|
|
1892
1894
|
return i;
|
|
1893
1895
|
}
|
|
1894
|
-
function
|
|
1896
|
+
function Ut(e, t) {
|
|
1895
1897
|
if (e === "" || e[0] === " ") return e;
|
|
1896
1898
|
for (var n = / [^ ]/g, i, r = 0, o, a = 0, l = 0, s = ""; i = n.exec(e); )
|
|
1897
1899
|
l = i.index, l - r > t && (o = a > r ? a : l, s += `
|
|
@@ -1900,185 +1902,277 @@ function Rt(e, t) {
|
|
|
1900
1902
|
`, e.length - r > t && a > r ? s += e.slice(r, a) + `
|
|
1901
1903
|
` + e.slice(a + 1) : s += e.slice(r), s.slice(1);
|
|
1902
1904
|
}
|
|
1903
|
-
function
|
|
1905
|
+
function Da(e) {
|
|
1904
1906
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
1905
|
-
n = Fe(e, r), i = ne[n], !i &&
|
|
1907
|
+
n = Fe(e, r), i = ne[n], !i && Ke(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || Fa(n);
|
|
1906
1908
|
return t;
|
|
1907
1909
|
}
|
|
1908
|
-
function
|
|
1910
|
+
function Pa(e, t, n) {
|
|
1909
1911
|
var i = "", r = e.tag, o, a, l;
|
|
1910
1912
|
for (o = 0, a = n.length; o < a; o += 1)
|
|
1911
|
-
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (
|
|
1913
|
+
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (pe(e, t, l, !1, !1) || typeof l > "u" && pe(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
1912
1914
|
e.tag = r, e.dump = "[" + i + "]";
|
|
1913
1915
|
}
|
|
1914
|
-
function
|
|
1916
|
+
function Bt(e, t, n, i) {
|
|
1915
1917
|
var r = "", o = e.tag, a, l, s;
|
|
1916
1918
|
for (a = 0, l = n.length; a < l; a += 1)
|
|
1917
|
-
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (
|
|
1919
|
+
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (pe(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && pe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += lt(e, t)), e.dump && Le === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
1918
1920
|
e.tag = o, e.dump = r || "[]";
|
|
1919
1921
|
}
|
|
1920
|
-
function
|
|
1921
|
-
var i = "", r = e.tag, o = Object.keys(n), a, l, s,
|
|
1922
|
+
function za(e, t, n) {
|
|
1923
|
+
var i = "", r = e.tag, o = Object.keys(n), a, l, s, d, u;
|
|
1922
1924
|
for (a = 0, l = o.length; a < l; a += 1)
|
|
1923
|
-
|
|
1925
|
+
u = "", i !== "" && (u += ", "), e.condenseFlow && (u += '"'), s = o[a], d = n[s], e.replacer && (d = e.replacer.call(n, s, d)), pe(e, t, s, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), pe(e, t, d, !1, !1) && (u += e.dump, i += u));
|
|
1924
1926
|
e.tag = r, e.dump = "{" + i + "}";
|
|
1925
1927
|
}
|
|
1926
|
-
function
|
|
1927
|
-
var r = "", o = e.tag, a = Object.keys(n), l, s,
|
|
1928
|
+
function Ha(e, t, n, i) {
|
|
1929
|
+
var r = "", o = e.tag, a = Object.keys(n), l, s, d, u, c, f;
|
|
1928
1930
|
if (e.sortKeys === !0)
|
|
1929
1931
|
a.sort();
|
|
1930
1932
|
else if (typeof e.sortKeys == "function")
|
|
1931
1933
|
a.sort(e.sortKeys);
|
|
1932
1934
|
else if (e.sortKeys)
|
|
1933
|
-
throw new
|
|
1935
|
+
throw new ae("sortKeys must be a boolean or a function");
|
|
1934
1936
|
for (l = 0, s = a.length; l < s; l += 1)
|
|
1935
|
-
|
|
1937
|
+
f = "", (!i || r !== "") && (f += lt(e, t)), d = a[l], u = n[d], e.replacer && (u = e.replacer.call(n, d, u)), pe(e, t + 1, d, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Le === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, c && (f += lt(e, t)), pe(e, t + 1, u, !0, c) && (e.dump && Le === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, r += f));
|
|
1936
1938
|
e.tag = o, e.dump = r || "{}";
|
|
1937
1939
|
}
|
|
1938
|
-
function
|
|
1940
|
+
function Vt(e, t, n) {
|
|
1939
1941
|
var i, r, o, a, l, s;
|
|
1940
1942
|
for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
|
|
1941
1943
|
if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
1942
1944
|
if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
1943
|
-
if (s = e.styleMap[l.tag] || l.defaultStyle,
|
|
1945
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, qn.call(l.represent) === "[object Function]")
|
|
1944
1946
|
i = l.represent(t, s);
|
|
1945
|
-
else if (
|
|
1947
|
+
else if (Ln.call(l.represent, s))
|
|
1946
1948
|
i = l.represent[s](t, s);
|
|
1947
1949
|
else
|
|
1948
|
-
throw new
|
|
1950
|
+
throw new ae("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
1949
1951
|
e.dump = i;
|
|
1950
1952
|
}
|
|
1951
1953
|
return !0;
|
|
1952
1954
|
}
|
|
1953
1955
|
return !1;
|
|
1954
1956
|
}
|
|
1955
|
-
function
|
|
1956
|
-
e.tag = null, e.dump = n,
|
|
1957
|
-
var l =
|
|
1957
|
+
function pe(e, t, n, i, r, o, a) {
|
|
1958
|
+
e.tag = null, e.dump = n, Vt(e, n, !1) || Vt(e, n, !0);
|
|
1959
|
+
var l = qn.call(e.dump), s = i, d;
|
|
1958
1960
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
1959
|
-
var
|
|
1960
|
-
if (
|
|
1961
|
+
var u = l === "[object Object]" || l === "[object Array]", c, f;
|
|
1962
|
+
if (u && (c = e.duplicates.indexOf(n), f = c !== -1), (e.tag !== null && e.tag !== "?" || f || e.indent !== 2 && t > 0) && (r = !1), f && e.usedDuplicates[c])
|
|
1961
1963
|
e.dump = "*ref_" + c;
|
|
1962
1964
|
else {
|
|
1963
|
-
if (
|
|
1964
|
-
i && Object.keys(e.dump).length !== 0 ? (
|
|
1965
|
+
if (u && f && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
|
|
1966
|
+
i && Object.keys(e.dump).length !== 0 ? (Ha(e, t, e.dump, r), f && (e.dump = "&ref_" + c + e.dump)) : (za(e, t, e.dump), f && (e.dump = "&ref_" + c + " " + e.dump));
|
|
1965
1967
|
else if (l === "[object Array]")
|
|
1966
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ?
|
|
1968
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Bt(e, t - 1, e.dump, r) : Bt(e, t, e.dump, r), f && (e.dump = "&ref_" + c + e.dump)) : (Pa(e, t, e.dump), f && (e.dump = "&ref_" + c + " " + e.dump));
|
|
1967
1969
|
else if (l === "[object String]")
|
|
1968
|
-
e.tag !== "?" &&
|
|
1970
|
+
e.tag !== "?" && Ba(e, e.dump, t, o, s);
|
|
1969
1971
|
else {
|
|
1970
1972
|
if (l === "[object Undefined]" || e.skipInvalid) return !1;
|
|
1971
|
-
throw new
|
|
1973
|
+
throw new ae("unacceptable kind of an object to dump " + l);
|
|
1972
1974
|
}
|
|
1973
|
-
e.tag !== null && e.tag !== "?" && (
|
|
1975
|
+
e.tag !== null && e.tag !== "?" && (d = encodeURI(
|
|
1974
1976
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
1975
|
-
).replace(/!/g, "%21"), e.tag[0] === "!" ?
|
|
1977
|
+
).replace(/!/g, "%21"), e.tag[0] === "!" ? d = "!" + d : d.slice(0, 18) === "tag:yaml.org,2002:" ? d = "!!" + d.slice(18) : d = "!<" + d + ">", e.dump = d + " " + e.dump);
|
|
1976
1978
|
}
|
|
1977
1979
|
return !0;
|
|
1978
1980
|
}
|
|
1979
|
-
function
|
|
1981
|
+
function Ya(e, t) {
|
|
1980
1982
|
var n = [], i = [], r, o;
|
|
1981
|
-
for (
|
|
1983
|
+
for (ct(e, n, i), r = 0, o = i.length; r < o; r += 1)
|
|
1982
1984
|
t.duplicates.push(n[i[r]]);
|
|
1983
1985
|
t.usedDuplicates = new Array(o);
|
|
1984
1986
|
}
|
|
1985
|
-
function
|
|
1987
|
+
function ct(e, t, n) {
|
|
1986
1988
|
var i, r, o;
|
|
1987
1989
|
if (e !== null && typeof e == "object")
|
|
1988
1990
|
if (r = t.indexOf(e), r !== -1)
|
|
1989
1991
|
n.indexOf(r) === -1 && n.push(r);
|
|
1990
1992
|
else if (t.push(e), Array.isArray(e))
|
|
1991
1993
|
for (r = 0, o = e.length; r < o; r += 1)
|
|
1992
|
-
|
|
1994
|
+
ct(e[r], t, n);
|
|
1993
1995
|
else
|
|
1994
1996
|
for (i = Object.keys(e), r = 0, o = i.length; r < o; r += 1)
|
|
1995
|
-
|
|
1997
|
+
ct(e[i[r]], t, n);
|
|
1996
1998
|
}
|
|
1997
|
-
function
|
|
1999
|
+
function Wa(e, t) {
|
|
1998
2000
|
t = t || {};
|
|
1999
|
-
var n = new
|
|
2000
|
-
n.noRefs ||
|
|
2001
|
+
var n = new qa(t);
|
|
2002
|
+
n.noRefs || Ya(e, n);
|
|
2001
2003
|
var i = e;
|
|
2002
|
-
return n.replacer && (i = n.replacer.call({ "": i }, "", i)),
|
|
2004
|
+
return n.replacer && (i = n.replacer.call({ "": i }, "", i)), pe(n, 0, i, !0, !0) ? n.dump + `
|
|
2003
2005
|
` : "";
|
|
2004
2006
|
}
|
|
2005
|
-
var
|
|
2006
|
-
dump:
|
|
2007
|
+
var Ja = Wa, Za = {
|
|
2008
|
+
dump: Ja
|
|
2007
2009
|
};
|
|
2008
|
-
function
|
|
2010
|
+
function bt(e, t) {
|
|
2009
2011
|
return function() {
|
|
2010
2012
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2011
2013
|
};
|
|
2012
2014
|
}
|
|
2013
|
-
var
|
|
2014
|
-
binary:
|
|
2015
|
-
float:
|
|
2016
|
-
map:
|
|
2017
|
-
null:
|
|
2018
|
-
pairs:
|
|
2019
|
-
set:
|
|
2020
|
-
timestamp:
|
|
2021
|
-
bool:
|
|
2022
|
-
int:
|
|
2023
|
-
merge:
|
|
2024
|
-
omap:
|
|
2025
|
-
seq:
|
|
2026
|
-
str:
|
|
2027
|
-
},
|
|
2028
|
-
Type:
|
|
2029
|
-
Schema:
|
|
2030
|
-
FAILSAFE_SCHEMA:
|
|
2031
|
-
JSON_SCHEMA:
|
|
2032
|
-
CORE_SCHEMA:
|
|
2033
|
-
DEFAULT_SCHEMA:
|
|
2034
|
-
load:
|
|
2035
|
-
loadAll:
|
|
2036
|
-
dump:
|
|
2037
|
-
YAMLException:
|
|
2038
|
-
types:
|
|
2039
|
-
safeLoad:
|
|
2040
|
-
safeLoadAll:
|
|
2041
|
-
safeDump:
|
|
2015
|
+
var Ga = te, Qa = sn, Xa = pn, eo = yn, to = vn, no = ht, io = Mn.load, ro = Mn.loadAll, ao = Za.dump, oo = ae, lo = {
|
|
2016
|
+
binary: Sn,
|
|
2017
|
+
float: mn,
|
|
2018
|
+
map: dn,
|
|
2019
|
+
null: fn,
|
|
2020
|
+
pairs: An,
|
|
2021
|
+
set: _n,
|
|
2022
|
+
timestamp: wn,
|
|
2023
|
+
bool: gn,
|
|
2024
|
+
int: hn,
|
|
2025
|
+
merge: Cn,
|
|
2026
|
+
omap: xn,
|
|
2027
|
+
seq: un,
|
|
2028
|
+
str: cn
|
|
2029
|
+
}, so = bt("safeLoad", "load"), co = bt("safeLoadAll", "loadAll"), uo = bt("safeDump", "dump"), po = {
|
|
2030
|
+
Type: Ga,
|
|
2031
|
+
Schema: Qa,
|
|
2032
|
+
FAILSAFE_SCHEMA: Xa,
|
|
2033
|
+
JSON_SCHEMA: eo,
|
|
2034
|
+
CORE_SCHEMA: to,
|
|
2035
|
+
DEFAULT_SCHEMA: no,
|
|
2036
|
+
load: io,
|
|
2037
|
+
loadAll: ro,
|
|
2038
|
+
dump: ao,
|
|
2039
|
+
YAMLException: oo,
|
|
2040
|
+
types: lo,
|
|
2041
|
+
safeLoad: so,
|
|
2042
|
+
safeLoadAll: co,
|
|
2043
|
+
safeDump: uo
|
|
2042
2044
|
};
|
|
2043
|
-
const
|
|
2045
|
+
const fo = { class: "yaml-config" }, go = /* @__PURE__ */ X({
|
|
2044
2046
|
__name: "YamlCodeBlock",
|
|
2045
2047
|
props: {
|
|
2046
2048
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
2047
|
-
|
|
2049
|
+
entityRecord: {
|
|
2048
2050
|
type: Object,
|
|
2049
2051
|
required: !0
|
|
2050
2052
|
}
|
|
2051
2053
|
},
|
|
2052
2054
|
setup(e) {
|
|
2053
2055
|
const t = e, n = I(() => {
|
|
2054
|
-
const i = Object.fromEntries(Object.entries(t.
|
|
2055
|
-
return Object.keys(i).length === 0 && i.constructor === Object ? "" :
|
|
2056
|
+
const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
|
|
2057
|
+
return Object.keys(i).length === 0 && i.constructor === Object ? "" : po.dump(i).trim();
|
|
2056
2058
|
});
|
|
2057
2059
|
return (i, r) => {
|
|
2058
|
-
const o =
|
|
2059
|
-
return
|
|
2060
|
-
t.
|
|
2060
|
+
const o = K("KCodeBlock");
|
|
2061
|
+
return C(), q("div", fo, [
|
|
2062
|
+
t.entityRecord ? (C(), D(o, {
|
|
2061
2063
|
key: 0,
|
|
2062
2064
|
id: "yaml-codeblock",
|
|
2063
2065
|
code: n.value,
|
|
2064
2066
|
language: "yaml",
|
|
2065
2067
|
theme: "dark"
|
|
2066
|
-
}, null, 8, ["code"])) :
|
|
2068
|
+
}, null, 8, ["code"])) : Z("", !0)
|
|
2069
|
+
]);
|
|
2070
|
+
};
|
|
2071
|
+
}
|
|
2072
|
+
}), ho = { class: "terraform-config" }, re = " ", mo = /* @__PURE__ */ X({
|
|
2073
|
+
__name: "TerraformCodeBlock",
|
|
2074
|
+
props: {
|
|
2075
|
+
/** A record to indicate the entity's configuration, used to populate the Terraform code block */
|
|
2076
|
+
entityRecord: {
|
|
2077
|
+
type: Object,
|
|
2078
|
+
required: !0
|
|
2079
|
+
},
|
|
2080
|
+
entityType: {
|
|
2081
|
+
type: String,
|
|
2082
|
+
required: !0,
|
|
2083
|
+
validator: (e) => en.includes(e)
|
|
2084
|
+
}
|
|
2085
|
+
},
|
|
2086
|
+
setup(e) {
|
|
2087
|
+
const t = e, n = (l, s) => {
|
|
2088
|
+
const d = re;
|
|
2089
|
+
let u = "";
|
|
2090
|
+
return typeof l == "string" ? u += `
|
|
2091
|
+
${d}${s} = "${l}"` : u += `
|
|
2092
|
+
${d}${s} = ${String(l ?? "")}`, u;
|
|
2093
|
+
}, i = (l, s, d = "") => {
|
|
2094
|
+
if (typeof l != "object")
|
|
2095
|
+
return "Invalid object";
|
|
2096
|
+
const u = re + d;
|
|
2097
|
+
let c = "";
|
|
2098
|
+
if (s && (c += `
|
|
2099
|
+
${u}${s} = {
|
|
2100
|
+
`), l === null)
|
|
2101
|
+
return s ? c += `${u}}` : c = "{}", c;
|
|
2102
|
+
const f = Object.fromEntries(Object.entries(l).filter(([, g]) => g !== null));
|
|
2103
|
+
let p = "";
|
|
2104
|
+
for (const [g, k] of Object.entries(f))
|
|
2105
|
+
Array.isArray(k) ? k.length === 0 ? p = "[]" : (p = `[
|
|
2106
|
+
`, p += r(k, void 0, u), p += `${u}${re}]`) : k && typeof k == "object" ? (p = `{
|
|
2107
|
+
`, p += i(k, void 0, u), p += `${u}${re}}`) : p = String(k ?? ""), typeof k == "string" && (p = `"${p}"`), c += `${u}${re}${g} = ${p}
|
|
2108
|
+
`;
|
|
2109
|
+
return s ? c += `${u}}` : c;
|
|
2110
|
+
}, r = (l, s, d = "") => {
|
|
2111
|
+
if (!Array.isArray(l))
|
|
2112
|
+
return "Invalid array";
|
|
2113
|
+
const u = re + d;
|
|
2114
|
+
let c = "";
|
|
2115
|
+
s && (l.length === 0 ? c += `${u}${s} = [` : c += `
|
|
2116
|
+
${u}${s} = [
|
|
2117
|
+
`);
|
|
2118
|
+
for (let f = 0; f < l.length; f++) {
|
|
2119
|
+
const p = l[f];
|
|
2120
|
+
typeof p == "object" ? (c += `${u}${re}{
|
|
2121
|
+
`, c += i(p, void 0, u), c += `${u}${re}}`) : typeof p == "string" ? c += `${u}${re}"${p}"` : c += `${u}${re}${String(p ?? "")}`, f < l.length - 1 && (c += ","), c += `
|
|
2122
|
+
`;
|
|
2123
|
+
}
|
|
2124
|
+
return s && (l.length === 0 ? c += "]" : c += `${u}]`), c;
|
|
2125
|
+
}, o = (l) => {
|
|
2126
|
+
let s = "";
|
|
2127
|
+
for (const [d, u] of Object.entries(l))
|
|
2128
|
+
Array.isArray(u) ? s += r(u, d) : typeof u == "object" ? s += i(u, d) : s += n(u, d);
|
|
2129
|
+
return s;
|
|
2130
|
+
}, a = I(() => {
|
|
2131
|
+
var l, s, d, u, c, f, p;
|
|
2132
|
+
const g = Object.fromEntries(Object.entries(t.entityRecord).filter(([, y]) => y != null)), k = t.entityRecord.config ? Object.fromEntries(Object.entries((l = t.entityRecord) == null ? void 0 : l.config).filter(([, y]) => y != null)) : void 0;
|
|
2133
|
+
if (k && (g.config = k), Object.keys(g).length === 0)
|
|
2134
|
+
return "";
|
|
2135
|
+
delete g.id;
|
|
2136
|
+
let v = "", x = "";
|
|
2137
|
+
if ((s = g.service) != null && s.id ? (x = "service", delete g.service) : (d = g.route) != null && d.id ? (x = "route", delete g.route) : (u = g.consumer) != null && u.id ? (x = "consumer", delete g.consumer) : (c = g.consumer_group) != null && c.id ? (x = "consumer_group", delete g.consumer_group) : (f = g.certificate) != null && f.id ? (x = "certificate", delete g.certificate) : (p = g.key_set) != null && p.id && (x = "key_set", delete g.key_set), t.entityType === "plugin") {
|
|
2138
|
+
const y = (g.name + "").replace(/-/g, "_");
|
|
2139
|
+
delete g.name, v += `resource "konnect_gateway_plugin_${y}" "my_${y}" {`;
|
|
2140
|
+
} else
|
|
2141
|
+
v += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {`;
|
|
2142
|
+
return v += o(g), v += `
|
|
2143
|
+
${re}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
|
|
2144
|
+
`, x && (v += `
|
|
2145
|
+
${re}${x} = {
|
|
2146
|
+
`, v += `${re}${re}id = konnect_gateway_${x}.my_${x}.id
|
|
2147
|
+
`, v += `${re}}
|
|
2148
|
+
`), v += `}
|
|
2149
|
+
`, v;
|
|
2150
|
+
});
|
|
2151
|
+
return (l, s) => {
|
|
2152
|
+
const d = K("KCodeBlock");
|
|
2153
|
+
return C(), q("div", ho, [
|
|
2154
|
+
t.entityRecord ? (C(), D(d, {
|
|
2155
|
+
key: 0,
|
|
2156
|
+
id: "terraform-codeblock",
|
|
2157
|
+
code: a.value,
|
|
2158
|
+
language: "terraform",
|
|
2159
|
+
theme: "dark"
|
|
2160
|
+
}, null, 8, ["code"])) : Z("", !0)
|
|
2067
2161
|
]);
|
|
2068
2162
|
};
|
|
2069
2163
|
}
|
|
2070
|
-
}),
|
|
2164
|
+
}), be = "24px", Qe = (e, t) => {
|
|
2071
2165
|
const n = e.__vccOpts || e;
|
|
2072
2166
|
for (const [i, r] of t)
|
|
2073
2167
|
n[i] = r;
|
|
2074
2168
|
return n;
|
|
2075
|
-
},
|
|
2169
|
+
}, yo = (e) => (Be("data-v-c1f7c39c"), e = e(), Ve(), e), vo = ["aria-hidden"], bo = {
|
|
2076
2170
|
key: 0,
|
|
2077
2171
|
"data-testid": "kui-icon-svg-title"
|
|
2078
|
-
},
|
|
2172
|
+
}, ko = /* @__PURE__ */ yo(() => /* @__PURE__ */ L("path", {
|
|
2079
2173
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2080
2174
|
fill: "currentColor"
|
|
2081
|
-
}, null, -1)),
|
|
2175
|
+
}, null, -1)), wo = /* @__PURE__ */ X({
|
|
2082
2176
|
__name: "AddIcon",
|
|
2083
2177
|
props: {
|
|
2084
2178
|
/** The accessibility text provided to screen readers */
|
|
@@ -2109,7 +2203,7 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2109
2203
|
size: {
|
|
2110
2204
|
type: [Number, String],
|
|
2111
2205
|
required: !1,
|
|
2112
|
-
default:
|
|
2206
|
+
default: be,
|
|
2113
2207
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2114
2208
|
validator: (e) => {
|
|
2115
2209
|
if (typeof e == "number" && e > 0)
|
|
@@ -2138,7 +2232,7 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2138
2232
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
2139
2233
|
return `${o}px`;
|
|
2140
2234
|
}
|
|
2141
|
-
return
|
|
2235
|
+
return be;
|
|
2142
2236
|
}), i = I(() => ({
|
|
2143
2237
|
boxSizing: "border-box",
|
|
2144
2238
|
color: t.color,
|
|
@@ -2148,14 +2242,14 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2148
2242
|
lineHeight: "0",
|
|
2149
2243
|
width: n.value
|
|
2150
2244
|
}));
|
|
2151
|
-
return (r, o) => (
|
|
2245
|
+
return (r, o) => (C(), D(Se(e.as), {
|
|
2152
2246
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2153
2247
|
class: "kui-icon add-icon",
|
|
2154
2248
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2155
2249
|
style: Ue(i.value)
|
|
2156
2250
|
}, {
|
|
2157
|
-
default:
|
|
2158
|
-
(
|
|
2251
|
+
default: w(() => [
|
|
2252
|
+
(C(), q("svg", {
|
|
2159
2253
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2160
2254
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2161
2255
|
fill: "none",
|
|
@@ -2165,20 +2259,20 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2165
2259
|
width: "100%",
|
|
2166
2260
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2167
2261
|
}, [
|
|
2168
|
-
e.title ? (
|
|
2169
|
-
|
|
2170
|
-
], 8,
|
|
2262
|
+
e.title ? (C(), q("title", bo, M(e.title), 1)) : Z("", !0),
|
|
2263
|
+
ko
|
|
2264
|
+
], 8, vo))
|
|
2171
2265
|
]),
|
|
2172
2266
|
_: 1
|
|
2173
2267
|
}, 8, ["aria-hidden", "style"]));
|
|
2174
2268
|
}
|
|
2175
|
-
}),
|
|
2269
|
+
}), Co = /* @__PURE__ */ Qe(wo, [["__scopeId", "data-v-c1f7c39c"]]), So = (e) => (Be("data-v-745761f6"), e = e(), Ve(), e), xo = ["aria-hidden"], Ao = {
|
|
2176
2270
|
key: 0,
|
|
2177
2271
|
"data-testid": "kui-icon-svg-title"
|
|
2178
|
-
},
|
|
2272
|
+
}, _o = /* @__PURE__ */ So(() => /* @__PURE__ */ L("path", {
|
|
2179
2273
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2180
2274
|
fill: "currentColor"
|
|
2181
|
-
}, null, -1)),
|
|
2275
|
+
}, null, -1)), Io = /* @__PURE__ */ X({
|
|
2182
2276
|
__name: "ChevronDownIcon",
|
|
2183
2277
|
props: {
|
|
2184
2278
|
/** The accessibility text provided to screen readers */
|
|
@@ -2209,7 +2303,7 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2209
2303
|
size: {
|
|
2210
2304
|
type: [Number, String],
|
|
2211
2305
|
required: !1,
|
|
2212
|
-
default:
|
|
2306
|
+
default: be,
|
|
2213
2307
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2214
2308
|
validator: (e) => {
|
|
2215
2309
|
if (typeof e == "number" && e > 0)
|
|
@@ -2238,7 +2332,7 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2238
2332
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
2239
2333
|
return `${o}px`;
|
|
2240
2334
|
}
|
|
2241
|
-
return
|
|
2335
|
+
return be;
|
|
2242
2336
|
}), i = I(() => ({
|
|
2243
2337
|
boxSizing: "border-box",
|
|
2244
2338
|
color: t.color,
|
|
@@ -2248,14 +2342,14 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2248
2342
|
lineHeight: "0",
|
|
2249
2343
|
width: n.value
|
|
2250
2344
|
}));
|
|
2251
|
-
return (r, o) => (
|
|
2345
|
+
return (r, o) => (C(), D(Se(e.as), {
|
|
2252
2346
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2253
2347
|
class: "kui-icon chevron-down-icon",
|
|
2254
2348
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
2255
2349
|
style: Ue(i.value)
|
|
2256
2350
|
}, {
|
|
2257
|
-
default:
|
|
2258
|
-
(
|
|
2351
|
+
default: w(() => [
|
|
2352
|
+
(C(), q("svg", {
|
|
2259
2353
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2260
2354
|
"data-testid": "kui-icon-svg-chevron-down-icon",
|
|
2261
2355
|
fill: "none",
|
|
@@ -2265,20 +2359,20 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2265
2359
|
width: "100%",
|
|
2266
2360
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2267
2361
|
}, [
|
|
2268
|
-
e.title ? (
|
|
2269
|
-
|
|
2270
|
-
], 8,
|
|
2362
|
+
e.title ? (C(), q("title", Ao, M(e.title), 1)) : Z("", !0),
|
|
2363
|
+
_o
|
|
2364
|
+
], 8, xo))
|
|
2271
2365
|
]),
|
|
2272
2366
|
_: 1
|
|
2273
2367
|
}, 8, ["aria-hidden", "style"]));
|
|
2274
2368
|
}
|
|
2275
|
-
}),
|
|
2369
|
+
}), No = /* @__PURE__ */ Qe(Io, [["__scopeId", "data-v-745761f6"]]), To = (e) => (Be("data-v-863d10eb"), e = e(), Ve(), e), Oo = ["aria-hidden"], $o = {
|
|
2276
2370
|
key: 0,
|
|
2277
2371
|
"data-testid": "kui-icon-svg-title"
|
|
2278
|
-
},
|
|
2372
|
+
}, jo = /* @__PURE__ */ To(() => /* @__PURE__ */ L("path", {
|
|
2279
2373
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2280
2374
|
fill: "currentColor"
|
|
2281
|
-
}, null, -1)),
|
|
2375
|
+
}, null, -1)), Eo = /* @__PURE__ */ X({
|
|
2282
2376
|
__name: "CloseIcon",
|
|
2283
2377
|
props: {
|
|
2284
2378
|
/** The accessibility text provided to screen readers */
|
|
@@ -2309,7 +2403,7 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2309
2403
|
size: {
|
|
2310
2404
|
type: [Number, String],
|
|
2311
2405
|
required: !1,
|
|
2312
|
-
default:
|
|
2406
|
+
default: be,
|
|
2313
2407
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2314
2408
|
validator: (e) => {
|
|
2315
2409
|
if (typeof e == "number" && e > 0)
|
|
@@ -2338,7 +2432,7 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2338
2432
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
2339
2433
|
return `${o}px`;
|
|
2340
2434
|
}
|
|
2341
|
-
return
|
|
2435
|
+
return be;
|
|
2342
2436
|
}), i = I(() => ({
|
|
2343
2437
|
boxSizing: "border-box",
|
|
2344
2438
|
color: t.color,
|
|
@@ -2348,14 +2442,14 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2348
2442
|
lineHeight: "0",
|
|
2349
2443
|
width: n.value
|
|
2350
2444
|
}));
|
|
2351
|
-
return (r, o) => (
|
|
2445
|
+
return (r, o) => (C(), D(Se(e.as), {
|
|
2352
2446
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2353
2447
|
class: "kui-icon close-icon",
|
|
2354
2448
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
2355
2449
|
style: Ue(i.value)
|
|
2356
2450
|
}, {
|
|
2357
|
-
default:
|
|
2358
|
-
(
|
|
2451
|
+
default: w(() => [
|
|
2452
|
+
(C(), q("svg", {
|
|
2359
2453
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2360
2454
|
"data-testid": "kui-icon-svg-close-icon",
|
|
2361
2455
|
fill: "none",
|
|
@@ -2365,20 +2459,20 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2365
2459
|
width: "100%",
|
|
2366
2460
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2367
2461
|
}, [
|
|
2368
|
-
e.title ? (
|
|
2369
|
-
|
|
2370
|
-
], 8,
|
|
2462
|
+
e.title ? (C(), q("title", $o, M(e.title), 1)) : Z("", !0),
|
|
2463
|
+
jo
|
|
2464
|
+
], 8, Oo))
|
|
2371
2465
|
]),
|
|
2372
2466
|
_: 1
|
|
2373
2467
|
}, 8, ["aria-hidden", "style"]));
|
|
2374
2468
|
}
|
|
2375
|
-
}),
|
|
2469
|
+
}), Fo = /* @__PURE__ */ Qe(Eo, [["__scopeId", "data-v-863d10eb"]]), Mo = (e) => (Be("data-v-d9894a05"), e = e(), Ve(), e), qo = ["aria-hidden"], Lo = {
|
|
2376
2470
|
key: 0,
|
|
2377
2471
|
"data-testid": "kui-icon-svg-title"
|
|
2378
|
-
},
|
|
2472
|
+
}, Ro = /* @__PURE__ */ Mo(() => /* @__PURE__ */ L("path", {
|
|
2379
2473
|
d: "M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",
|
|
2380
2474
|
fill: "currentColor"
|
|
2381
|
-
}, null, -1)),
|
|
2475
|
+
}, null, -1)), Ko = /* @__PURE__ */ X({
|
|
2382
2476
|
__name: "MoreIcon",
|
|
2383
2477
|
props: {
|
|
2384
2478
|
/** The accessibility text provided to screen readers */
|
|
@@ -2409,7 +2503,7 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2409
2503
|
size: {
|
|
2410
2504
|
type: [Number, String],
|
|
2411
2505
|
required: !1,
|
|
2412
|
-
default:
|
|
2506
|
+
default: be,
|
|
2413
2507
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2414
2508
|
validator: (e) => {
|
|
2415
2509
|
if (typeof e == "number" && e > 0)
|
|
@@ -2438,7 +2532,7 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2438
2532
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
2439
2533
|
return `${o}px`;
|
|
2440
2534
|
}
|
|
2441
|
-
return
|
|
2535
|
+
return be;
|
|
2442
2536
|
}), i = I(() => ({
|
|
2443
2537
|
boxSizing: "border-box",
|
|
2444
2538
|
color: t.color,
|
|
@@ -2448,14 +2542,14 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2448
2542
|
lineHeight: "0",
|
|
2449
2543
|
width: n.value
|
|
2450
2544
|
}));
|
|
2451
|
-
return (r, o) => (
|
|
2545
|
+
return (r, o) => (C(), D(Se(e.as), {
|
|
2452
2546
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2453
2547
|
class: "kui-icon more-icon",
|
|
2454
2548
|
"data-testid": "kui-icon-wrapper-more-icon",
|
|
2455
2549
|
style: Ue(i.value)
|
|
2456
2550
|
}, {
|
|
2457
|
-
default:
|
|
2458
|
-
(
|
|
2551
|
+
default: w(() => [
|
|
2552
|
+
(C(), q("svg", {
|
|
2459
2553
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2460
2554
|
"data-testid": "kui-icon-svg-more-icon",
|
|
2461
2555
|
fill: "none",
|
|
@@ -2465,17 +2559,17 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2465
2559
|
width: "100%",
|
|
2466
2560
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2467
2561
|
}, [
|
|
2468
|
-
e.title ? (
|
|
2469
|
-
|
|
2470
|
-
], 8,
|
|
2562
|
+
e.title ? (C(), q("title", Lo, M(e.title), 1)) : Z("", !0),
|
|
2563
|
+
Ro
|
|
2564
|
+
], 8, qo))
|
|
2471
2565
|
]),
|
|
2472
2566
|
_: 1
|
|
2473
2567
|
}, 8, ["aria-hidden", "style"]));
|
|
2474
2568
|
}
|
|
2475
|
-
}),
|
|
2569
|
+
}), Uo = /* @__PURE__ */ Qe(Ko, [["__scopeId", "data-v-d9894a05"]]), Bo = ["novalidate"], Vo = {
|
|
2476
2570
|
class: "form-actions",
|
|
2477
2571
|
"data-testid": "form-actions"
|
|
2478
|
-
},
|
|
2572
|
+
}, Do = /* @__PURE__ */ X({
|
|
2479
2573
|
__name: "EntityBaseForm",
|
|
2480
2574
|
props: {
|
|
2481
2575
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2490,6 +2584,14 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2490
2584
|
required: !1,
|
|
2491
2585
|
default: ""
|
|
2492
2586
|
},
|
|
2587
|
+
/**
|
|
2588
|
+
* Entity type, required to generate terraform code
|
|
2589
|
+
*/
|
|
2590
|
+
entityType: {
|
|
2591
|
+
type: String,
|
|
2592
|
+
required: !0,
|
|
2593
|
+
validator: (e) => en.includes(e)
|
|
2594
|
+
},
|
|
2493
2595
|
/**
|
|
2494
2596
|
* Fetch url for the item to edit. We will handle the replacement of {controlPlaneId}, {workspace}, and {id}.
|
|
2495
2597
|
* Value should NOT contain config.apiBaseUrl, as we auto include this. Typically this will just an entry from
|
|
@@ -2539,143 +2641,160 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2539
2641
|
wrapperComponent: {
|
|
2540
2642
|
type: String,
|
|
2541
2643
|
default: "KCard"
|
|
2644
|
+
},
|
|
2645
|
+
/**
|
|
2646
|
+
* Enable display of Terraform code
|
|
2647
|
+
* Guarded by FF: khcp-12445-terraform-config-details
|
|
2648
|
+
*/
|
|
2649
|
+
enableTerraform: {
|
|
2650
|
+
type: Boolean,
|
|
2651
|
+
default: !1
|
|
2542
2652
|
}
|
|
2543
2653
|
},
|
|
2544
2654
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
2545
2655
|
setup(e, { emit: t }) {
|
|
2546
2656
|
var n;
|
|
2547
|
-
const i = t, r = e, o =
|
|
2548
|
-
var
|
|
2549
|
-
let
|
|
2550
|
-
return r.config.app === "konnect" ?
|
|
2551
|
-
}),
|
|
2552
|
-
|
|
2553
|
-
}, S = () => {
|
|
2554
|
-
r.config.cancelRoute ? o.push(r.config.cancelRoute) : j();
|
|
2555
|
-
}, j = () => {
|
|
2556
|
-
i("cancel");
|
|
2657
|
+
const i = t, r = e, o = Gt(), { i18n: { t: a } } = we.useI18n(), { getMessageFromError: l } = we.useErrors(), { axiosInstance: s } = we.useAxios((n = r.config) == null ? void 0 : n.axiosRequestConfig), d = E(!1), u = E(!1), c = E(""), f = I(() => r.canSubmit === !1 || r.isReadonly), p = E(!1), g = I(() => {
|
|
2658
|
+
var A, $;
|
|
2659
|
+
let h = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2660
|
+
return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((A = r.config) == null ? void 0 : A.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, ($ = r.config) != null && $.workspace ? `/${r.config.workspace}` : "")), r.editId ? (h = h.replace(/{id}/gi, r.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
|
|
2661
|
+
}), k = () => {
|
|
2662
|
+
p.value = !p.value;
|
|
2557
2663
|
}, v = () => {
|
|
2558
|
-
|
|
2559
|
-
},
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2664
|
+
r.config.cancelRoute ? o.push(r.config.cancelRoute) : x();
|
|
2665
|
+
}, x = () => {
|
|
2666
|
+
i("cancel");
|
|
2667
|
+
}, y = () => {
|
|
2668
|
+
f.value || i("submit");
|
|
2669
|
+
}, T = E([
|
|
2564
2670
|
{
|
|
2565
2671
|
title: a("baseForm.configuration.json"),
|
|
2566
2672
|
hash: "#json"
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
title: a("baseForm.configuration.yaml"),
|
|
2676
|
+
hash: "#yaml"
|
|
2567
2677
|
}
|
|
2568
2678
|
]);
|
|
2569
|
-
return
|
|
2570
|
-
|
|
2571
|
-
|
|
2679
|
+
return r.enableTerraform && T.value.splice(1, 0, {
|
|
2680
|
+
title: a("baseForm.configuration.terraform"),
|
|
2681
|
+
hash: "#terraform"
|
|
2682
|
+
}), ye(() => d.value, (A) => {
|
|
2683
|
+
i("loading", A);
|
|
2684
|
+
}, { immediate: !0 }), ut(async () => {
|
|
2572
2685
|
if (r.editId)
|
|
2573
2686
|
try {
|
|
2574
|
-
|
|
2575
|
-
const { data:
|
|
2576
|
-
i("fetch:success",
|
|
2577
|
-
} catch (
|
|
2578
|
-
const
|
|
2579
|
-
c.value =
|
|
2687
|
+
u.value = !1, d.value = !0;
|
|
2688
|
+
const { data: A } = await s.get(g.value);
|
|
2689
|
+
i("fetch:success", A);
|
|
2690
|
+
} catch (A) {
|
|
2691
|
+
const $ = l(A);
|
|
2692
|
+
c.value = $.startsWith("code") ? a("baseForm.errors.edit") : $, u.value = !0, i("fetch:error", A);
|
|
2580
2693
|
} finally {
|
|
2581
|
-
|
|
2694
|
+
d.value = !1;
|
|
2582
2695
|
}
|
|
2583
|
-
}), (
|
|
2584
|
-
const
|
|
2585
|
-
return
|
|
2586
|
-
default:
|
|
2587
|
-
|
|
2696
|
+
}), (A, $) => {
|
|
2697
|
+
const h = K("KSkeleton"), b = K("KEmptyState"), R = K("KAlert"), j = K("KButton"), U = K("KTabs"), G = K("KSlideout");
|
|
2698
|
+
return C(), D(Se(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
2699
|
+
default: w(() => [
|
|
2700
|
+
d.value ? (C(), D(h, {
|
|
2588
2701
|
key: 0,
|
|
2589
2702
|
type: "form"
|
|
2590
|
-
})) :
|
|
2703
|
+
})) : u.value ? (C(), D(b, {
|
|
2591
2704
|
key: 1,
|
|
2592
|
-
"action-button-text":
|
|
2705
|
+
"action-button-text": m(a)("baseForm.actions.back"),
|
|
2593
2706
|
"data-testid": "form-fetch-error",
|
|
2594
2707
|
"icon-variant": "error",
|
|
2595
|
-
onClickAction:
|
|
2708
|
+
onClickAction: v
|
|
2596
2709
|
}, {
|
|
2597
|
-
default:
|
|
2598
|
-
|
|
2710
|
+
default: w(() => [
|
|
2711
|
+
L("h3", null, M(c.value), 1)
|
|
2599
2712
|
]),
|
|
2600
2713
|
_: 1
|
|
2601
|
-
}, 8, ["action-button-text"])) : (
|
|
2714
|
+
}, 8, ["action-button-text"])) : (C(), q("form", {
|
|
2602
2715
|
key: 2,
|
|
2603
2716
|
"data-testid": "form-content",
|
|
2604
2717
|
novalidate: r.noValidate,
|
|
2605
|
-
onReset:
|
|
2606
|
-
onSubmit:
|
|
2718
|
+
onReset: rt(x, ["prevent"]),
|
|
2719
|
+
onSubmit: rt(y, ["prevent"])
|
|
2607
2720
|
}, [
|
|
2608
|
-
|
|
2609
|
-
e.errorMessage ? (
|
|
2721
|
+
le(A.$slots, "default", {}, void 0, !0),
|
|
2722
|
+
e.errorMessage ? (C(), D(R, {
|
|
2610
2723
|
key: 0,
|
|
2611
2724
|
appearance: "danger",
|
|
2612
2725
|
"data-testid": "form-error",
|
|
2613
2726
|
message: e.errorMessage
|
|
2614
|
-
}, null, 8, ["message"])) :
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2727
|
+
}, null, 8, ["message"])) : Z("", !0),
|
|
2728
|
+
L("div", Vo, [
|
|
2729
|
+
le(A.$slots, "form-actions", {}, () => [
|
|
2730
|
+
N(j, {
|
|
2618
2731
|
appearance: "tertiary",
|
|
2619
2732
|
"data-testid": "form-view-configuration",
|
|
2620
|
-
onClick:
|
|
2733
|
+
onClick: $[0] || ($[0] = (B) => k())
|
|
2621
2734
|
}, {
|
|
2622
|
-
default:
|
|
2623
|
-
|
|
2735
|
+
default: w(() => [
|
|
2736
|
+
Q(M(m(a)("baseForm.actions.viewConfiguration")), 1)
|
|
2624
2737
|
]),
|
|
2625
2738
|
_: 1
|
|
2626
2739
|
}),
|
|
2627
|
-
|
|
2740
|
+
N(j, {
|
|
2628
2741
|
appearance: "secondary",
|
|
2629
2742
|
"data-testid": "form-cancel",
|
|
2630
2743
|
disabled: e.isReadonly,
|
|
2631
2744
|
type: "reset"
|
|
2632
2745
|
}, {
|
|
2633
|
-
default:
|
|
2634
|
-
|
|
2746
|
+
default: w(() => [
|
|
2747
|
+
Q(M(m(a)("baseForm.actions.cancel")), 1)
|
|
2635
2748
|
]),
|
|
2636
2749
|
_: 1
|
|
2637
2750
|
}, 8, ["disabled"]),
|
|
2638
|
-
|
|
2751
|
+
N(j, {
|
|
2639
2752
|
appearance: "primary",
|
|
2640
2753
|
"data-testid": "form-submit",
|
|
2641
|
-
disabled:
|
|
2754
|
+
disabled: f.value,
|
|
2642
2755
|
type: "submit"
|
|
2643
2756
|
}, {
|
|
2644
|
-
default:
|
|
2645
|
-
|
|
2757
|
+
default: w(() => [
|
|
2758
|
+
Q(M(m(a)("baseForm.actions.save")), 1)
|
|
2646
2759
|
]),
|
|
2647
2760
|
_: 1
|
|
2648
2761
|
}, 8, ["disabled"])
|
|
2649
2762
|
], !0)
|
|
2650
2763
|
])
|
|
2651
|
-
], 40,
|
|
2652
|
-
|
|
2764
|
+
], 40, Bo)),
|
|
2765
|
+
N(G, {
|
|
2653
2766
|
"close-on-blur": !1,
|
|
2654
2767
|
"data-testid": "form-view-configuration-slideout",
|
|
2655
2768
|
"has-overlay": !1,
|
|
2656
2769
|
"offset-top": 60,
|
|
2657
|
-
title:
|
|
2658
|
-
visible:
|
|
2659
|
-
onClose:
|
|
2770
|
+
title: m(a)("baseForm.configuration.title"),
|
|
2771
|
+
visible: p.value,
|
|
2772
|
+
onClose: $[1] || ($[1] = (B) => k())
|
|
2660
2773
|
}, {
|
|
2661
|
-
default:
|
|
2662
|
-
|
|
2663
|
-
|
|
2774
|
+
default: w(() => [
|
|
2775
|
+
L("div", null, M(m(a)("baseForm.configuration.message")), 1),
|
|
2776
|
+
N(U, {
|
|
2664
2777
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
2665
|
-
tabs:
|
|
2778
|
+
tabs: T.value
|
|
2666
2779
|
}, {
|
|
2667
|
-
json:
|
|
2668
|
-
|
|
2780
|
+
json: w(() => [
|
|
2781
|
+
N(zi, {
|
|
2669
2782
|
config: e.config,
|
|
2670
|
-
"
|
|
2671
|
-
"
|
|
2783
|
+
"entity-record": r.formFields,
|
|
2784
|
+
"fetcher-url": g.value,
|
|
2672
2785
|
"request-method": r.editId ? "put" : "post"
|
|
2673
|
-
}, null, 8, ["config", "
|
|
2786
|
+
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
2674
2787
|
]),
|
|
2675
|
-
yaml:
|
|
2676
|
-
|
|
2677
|
-
"
|
|
2678
|
-
}, null, 8, ["
|
|
2788
|
+
yaml: w(() => [
|
|
2789
|
+
N(go, {
|
|
2790
|
+
"entity-record": r.formFields
|
|
2791
|
+
}, null, 8, ["entity-record"])
|
|
2792
|
+
]),
|
|
2793
|
+
terraform: w(() => [
|
|
2794
|
+
N(mo, {
|
|
2795
|
+
"entity-record": r.formFields,
|
|
2796
|
+
"entity-type": e.entityType
|
|
2797
|
+
}, null, 8, ["entity-record", "entity-type"])
|
|
2679
2798
|
]),
|
|
2680
2799
|
_: 1
|
|
2681
2800
|
}, 8, ["tabs"])
|
|
@@ -2687,7 +2806,7 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2687
2806
|
});
|
|
2688
2807
|
};
|
|
2689
2808
|
}
|
|
2690
|
-
}),
|
|
2809
|
+
}), Po = /* @__PURE__ */ Oe(Do, [["__scopeId", "data-v-073c33c8"]]), zo = ["data-truncate"], Ho = /* @__PURE__ */ X({
|
|
2691
2810
|
__name: "EntityBaseTableCell",
|
|
2692
2811
|
props: {
|
|
2693
2812
|
keyName: {
|
|
@@ -2705,75 +2824,75 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2705
2824
|
},
|
|
2706
2825
|
setup(e) {
|
|
2707
2826
|
const t = e, n = I(() => {
|
|
2708
|
-
var
|
|
2709
|
-
return ((
|
|
2827
|
+
var v;
|
|
2828
|
+
return ((v = t.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
2710
2829
|
}), i = I(() => {
|
|
2711
|
-
var
|
|
2712
|
-
return ((
|
|
2830
|
+
var v;
|
|
2831
|
+
return ((v = n.value) == null ? void 0 : v.querySelector('[data-truncate="true"]')) || null;
|
|
2713
2832
|
}), r = I(() => {
|
|
2714
|
-
var
|
|
2715
|
-
const
|
|
2716
|
-
return
|
|
2833
|
+
var v, x;
|
|
2834
|
+
const y = (v = t.rowEl) == null ? void 0 : v.querySelectorAll("td");
|
|
2835
|
+
return y ? ((x = y[0]) == null ? void 0 : x.getAttribute("data-testid")) === t.keyName : !0;
|
|
2717
2836
|
}), o = I(() => r.value || t.tooltip);
|
|
2718
2837
|
let a;
|
|
2719
2838
|
const l = () => {
|
|
2720
2839
|
a && (a.disconnect(), a = void 0);
|
|
2721
2840
|
}, s = () => {
|
|
2722
|
-
var
|
|
2723
|
-
let
|
|
2841
|
+
var v, x, y;
|
|
2842
|
+
let T = ((v = n.value) == null ? void 0 : v.clientWidth) || 0;
|
|
2724
2843
|
if (n.value && "getComputedStyle" in window) {
|
|
2725
|
-
const
|
|
2726
|
-
|
|
2844
|
+
const A = window.getComputedStyle(n.value);
|
|
2845
|
+
T -= (parseFloat(A.paddingLeft) || 0) + (parseFloat(A.paddingRight) || 0);
|
|
2727
2846
|
}
|
|
2728
|
-
|
|
2729
|
-
},
|
|
2730
|
-
|
|
2731
|
-
(
|
|
2847
|
+
u.value = ((x = i.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, c.value = T, f.value = ((y = d.value) == null ? void 0 : y.innerText) || "";
|
|
2848
|
+
}, d = E({}), u = E(0), c = E(0), f = E(""), p = I(() => [i.value, n.value]), g = ye(
|
|
2849
|
+
p,
|
|
2850
|
+
(v) => {
|
|
2732
2851
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
2733
|
-
a = new ResizeObserver((
|
|
2852
|
+
a = new ResizeObserver((x) => {
|
|
2734
2853
|
window.requestAnimationFrame(() => {
|
|
2735
|
-
!Array.isArray(
|
|
2854
|
+
!Array.isArray(x) || !x.length || s();
|
|
2736
2855
|
});
|
|
2737
2856
|
});
|
|
2738
|
-
for (const
|
|
2739
|
-
|
|
2857
|
+
for (const x of v)
|
|
2858
|
+
x && a.observe(x);
|
|
2740
2859
|
}
|
|
2741
2860
|
},
|
|
2742
2861
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
2743
|
-
),
|
|
2744
|
-
return
|
|
2862
|
+
), k = I(() => o.value ? u.value > c.value : !1);
|
|
2863
|
+
return ti(() => {
|
|
2745
2864
|
s();
|
|
2746
|
-
}),
|
|
2747
|
-
|
|
2748
|
-
}), (
|
|
2749
|
-
const
|
|
2750
|
-
return
|
|
2865
|
+
}), ni(() => {
|
|
2866
|
+
g();
|
|
2867
|
+
}), (v, x) => {
|
|
2868
|
+
const y = K("KTooltip");
|
|
2869
|
+
return C(), q("span", {
|
|
2751
2870
|
ref_key: "contentRef",
|
|
2752
|
-
ref:
|
|
2871
|
+
ref: d,
|
|
2753
2872
|
class: "content-wrapper"
|
|
2754
2873
|
}, [
|
|
2755
|
-
o.value ? (
|
|
2874
|
+
o.value ? (C(), q("span", {
|
|
2756
2875
|
key: 0,
|
|
2757
2876
|
"data-truncate": o.value || void 0
|
|
2758
2877
|
}, [
|
|
2759
|
-
|
|
2878
|
+
N(y, {
|
|
2760
2879
|
"max-width": "300",
|
|
2761
2880
|
placement: "bottom-start",
|
|
2762
|
-
text:
|
|
2881
|
+
text: k.value ? f.value : ""
|
|
2763
2882
|
}, {
|
|
2764
|
-
default:
|
|
2765
|
-
|
|
2883
|
+
default: w(() => [
|
|
2884
|
+
le(v.$slots, "default", {}, void 0, !0)
|
|
2766
2885
|
]),
|
|
2767
2886
|
_: 3
|
|
2768
2887
|
}, 8, ["text"])
|
|
2769
|
-
], 8,
|
|
2888
|
+
], 8, zo)) : le(v.$slots, "default", { key: 1 }, void 0, !0)
|
|
2770
2889
|
], 512);
|
|
2771
2890
|
};
|
|
2772
2891
|
}
|
|
2773
|
-
}),
|
|
2892
|
+
}), Yo = /* @__PURE__ */ Oe(Ho, [["__scopeId", "data-v-b252463e"]]), Wo = { class: "toolbar-container" }, Jo = {
|
|
2774
2893
|
key: 0,
|
|
2775
2894
|
class: "toolbar-button-container"
|
|
2776
|
-
},
|
|
2895
|
+
}, Zo = ["data-testid"], Go = /* @__PURE__ */ X({
|
|
2777
2896
|
__name: "EntityBaseTable",
|
|
2778
2897
|
props: {
|
|
2779
2898
|
// table header configuration
|
|
@@ -2891,87 +3010,87 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2891
3010
|
},
|
|
2892
3011
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
2893
3012
|
setup(e, { emit: t }) {
|
|
2894
|
-
const n = e, i = t, { i18n: { t: r } } =
|
|
2895
|
-
var
|
|
3013
|
+
const n = e, i = t, { i18n: { t: r } } = we.useI18n(), o = I(() => {
|
|
3014
|
+
var h, b;
|
|
2896
3015
|
return typeof n.errorMessage == "string" ? {
|
|
2897
3016
|
hasError: !!n.errorMessage,
|
|
2898
3017
|
title: n.errorMessage,
|
|
2899
3018
|
message: void 0
|
|
2900
3019
|
} : {
|
|
2901
3020
|
hasError: !!n.errorMessage,
|
|
2902
|
-
title: (
|
|
2903
|
-
message: (
|
|
3021
|
+
title: (h = n.errorMessage) == null ? void 0 : h.title,
|
|
3022
|
+
message: (b = n.errorMessage) == null ? void 0 : b.message
|
|
2904
3023
|
};
|
|
2905
|
-
}), a = I(() => n.cacheIdentifier || n.preferencesStorageKey), l = (
|
|
2906
|
-
const
|
|
2907
|
-
return Object.keys(n.tableHeaders).forEach((
|
|
2908
|
-
const R = n.tableHeaders[
|
|
2909
|
-
|
|
2910
|
-
label: R.label ??
|
|
2911
|
-
key:
|
|
3024
|
+
}), a = I(() => n.cacheIdentifier || n.preferencesStorageKey), l = (h) => h.hasData || !!n.query, s = I(() => {
|
|
3025
|
+
const h = [];
|
|
3026
|
+
return Object.keys(n.tableHeaders).forEach((b) => {
|
|
3027
|
+
const R = n.tableHeaders[b];
|
|
3028
|
+
h.push({
|
|
3029
|
+
label: R.label ?? b,
|
|
3030
|
+
key: b,
|
|
2912
3031
|
sortable: R.sortable ?? !1,
|
|
2913
3032
|
hidable: R.hidable ?? !0
|
|
2914
3033
|
});
|
|
2915
|
-
}), n.enableEntityActions &&
|
|
3034
|
+
}), n.enableEntityActions && h.push({
|
|
2916
3035
|
key: "actions",
|
|
2917
3036
|
hideLabel: !0
|
|
2918
|
-
}),
|
|
2919
|
-
}),
|
|
2920
|
-
"data-rowid":
|
|
2921
|
-
"data-testid":
|
|
2922
|
-
...n.rowAttributes(
|
|
2923
|
-
}),
|
|
2924
|
-
var
|
|
2925
|
-
return (
|
|
2926
|
-
},
|
|
2927
|
-
const
|
|
2928
|
-
"data-testid":
|
|
2929
|
-
...n.cellAttributes(
|
|
3037
|
+
}), h;
|
|
3038
|
+
}), d = (h) => ({
|
|
3039
|
+
"data-rowid": h.id,
|
|
3040
|
+
"data-testid": h.name,
|
|
3041
|
+
...n.rowAttributes(h)
|
|
3042
|
+
}), u = E({}), c = (h) => {
|
|
3043
|
+
var b;
|
|
3044
|
+
return (b = u.value) == null ? void 0 : b.$el.querySelector(`[data-rowid="${h.id}"]`);
|
|
3045
|
+
}, f = (h) => {
|
|
3046
|
+
const b = {
|
|
3047
|
+
"data-testid": h.headerKey,
|
|
3048
|
+
...n.cellAttributes(h)
|
|
2930
3049
|
};
|
|
2931
|
-
return
|
|
3050
|
+
return h.colIndex === 0 && (b.style = {
|
|
2932
3051
|
maxWidth: "250px",
|
|
2933
3052
|
overflowX: "hidden",
|
|
2934
3053
|
textOverflow: "ellipsis"
|
|
2935
|
-
}),
|
|
2936
|
-
},
|
|
2937
|
-
i("empty-state-cta-clicked"),
|
|
2938
|
-
},
|
|
3054
|
+
}), b;
|
|
3055
|
+
}, p = () => {
|
|
3056
|
+
i("empty-state-cta-clicked"), g();
|
|
3057
|
+
}, g = () => {
|
|
2939
3058
|
i("clear-search-input");
|
|
2940
|
-
},
|
|
2941
|
-
i("click:row",
|
|
2942
|
-
}),
|
|
2943
|
-
i("sort",
|
|
2944
|
-
}, { setTablePreferences:
|
|
2945
|
-
const
|
|
3059
|
+
}, k = I(() => n.disableRowClick ? void 0 : (h, b) => {
|
|
3060
|
+
i("click:row", b);
|
|
3061
|
+
}), v = (h) => {
|
|
3062
|
+
i("sort", h);
|
|
3063
|
+
}, { setTablePreferences: x, getTablePreferences: y } = hi(), T = E(y(a.value)), A = I(() => {
|
|
3064
|
+
const h = y(a.value);
|
|
2946
3065
|
return {
|
|
2947
3066
|
...n.initialFetcherParams,
|
|
2948
|
-
...
|
|
3067
|
+
...h
|
|
2949
3068
|
};
|
|
2950
|
-
}),
|
|
2951
|
-
|
|
2952
|
-
!("hidable" in
|
|
2953
|
-
}), a.value &&
|
|
3069
|
+
}), $ = (h) => {
|
|
3070
|
+
T.value = h, s.value.forEach((b) => {
|
|
3071
|
+
!("hidable" in b) || !T.value.columnVisibility || b.hidable === !1 && (T.value.columnVisibility[b.key] = !0);
|
|
3072
|
+
}), a.value && x(a.value, h);
|
|
2954
3073
|
};
|
|
2955
|
-
return (
|
|
2956
|
-
const R =
|
|
2957
|
-
return
|
|
3074
|
+
return (h, b) => {
|
|
3075
|
+
const R = K("KButton"), j = K("KDropdown"), U = K("KTable"), G = K("KCard");
|
|
3076
|
+
return C(), D(G, {
|
|
2958
3077
|
class: "kong-ui-entity-base-table",
|
|
2959
3078
|
title: e.title,
|
|
2960
3079
|
"title-tag": e.titleTag
|
|
2961
3080
|
}, {
|
|
2962
|
-
default:
|
|
2963
|
-
|
|
3081
|
+
default: w(() => [
|
|
3082
|
+
N(U, {
|
|
2964
3083
|
ref_key: "tableRefs",
|
|
2965
|
-
ref:
|
|
3084
|
+
ref: u,
|
|
2966
3085
|
"cache-identifier": a.value,
|
|
2967
|
-
"cell-attrs":
|
|
3086
|
+
"cell-attrs": f,
|
|
2968
3087
|
"client-sort": e.enableClientSort,
|
|
2969
3088
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
2970
|
-
"empty-state-action-message": e.query ?
|
|
3089
|
+
"empty-state-action-message": e.query ? m(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
2971
3090
|
"empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
|
|
2972
3091
|
"empty-state-icon-variant": e.query ? "search" : "kong",
|
|
2973
|
-
"empty-state-message": e.query ?
|
|
2974
|
-
"empty-state-title": e.query ?
|
|
3092
|
+
"empty-state-message": e.query ? m(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
3093
|
+
"empty-state-title": e.query ? m(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
2975
3094
|
error: o.value.hasError,
|
|
2976
3095
|
"error-state-message": o.value.message,
|
|
2977
3096
|
"error-state-title": o.value.title,
|
|
@@ -2979,81 +3098,81 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
2979
3098
|
"fetcher-cache-key": String(e.fetcherCacheKey),
|
|
2980
3099
|
headers: s.value,
|
|
2981
3100
|
"hide-pagination-when-optional": "",
|
|
2982
|
-
"initial-fetcher-params":
|
|
3101
|
+
"initial-fetcher-params": A.value,
|
|
2983
3102
|
loading: e.isLoading,
|
|
2984
3103
|
"pagination-offset": e.paginationType === "offset",
|
|
2985
3104
|
"resize-columns": "",
|
|
2986
|
-
"row-attrs":
|
|
3105
|
+
"row-attrs": d,
|
|
2987
3106
|
"search-input": e.query,
|
|
2988
3107
|
"sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
|
|
2989
3108
|
sortable: !e.disableSorting,
|
|
2990
|
-
"table-preferences":
|
|
2991
|
-
onEmptyStateActionClick:
|
|
2992
|
-
"onRow:click":
|
|
2993
|
-
onSort:
|
|
2994
|
-
"onUpdate:tablePreferences":
|
|
2995
|
-
},
|
|
2996
|
-
toolbar:
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
])) :
|
|
3109
|
+
"table-preferences": T.value,
|
|
3110
|
+
onEmptyStateActionClick: p,
|
|
3111
|
+
"onRow:click": k.value,
|
|
3112
|
+
onSort: b[0] || (b[0] = (B) => v(B)),
|
|
3113
|
+
"onUpdate:tablePreferences": $
|
|
3114
|
+
}, Yt({
|
|
3115
|
+
toolbar: w(({ state: B }) => [
|
|
3116
|
+
ge(L("div", Wo, [
|
|
3117
|
+
le(h.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3118
|
+
h.$slots["toolbar-button"] ? (C(), q("div", Jo, [
|
|
3119
|
+
le(h.$slots, "toolbar-button", {}, void 0, !0)
|
|
3120
|
+
])) : Z("", !0)
|
|
3002
3121
|
], 512), [
|
|
3003
|
-
[
|
|
3122
|
+
[he, l(B)]
|
|
3004
3123
|
])
|
|
3005
3124
|
]),
|
|
3006
|
-
actions:
|
|
3007
|
-
|
|
3125
|
+
actions: w(({ row: B, rowKey: se, rowValue: fe }) => [
|
|
3126
|
+
L("div", {
|
|
3008
3127
|
class: "actions-container",
|
|
3009
|
-
"data-testid":
|
|
3128
|
+
"data-testid": B.name
|
|
3010
3129
|
}, [
|
|
3011
|
-
|
|
3130
|
+
N(j, {
|
|
3012
3131
|
"kpop-attributes": { placement: "bottom-end" },
|
|
3013
3132
|
width: e.dropdownMenuWidth
|
|
3014
3133
|
}, {
|
|
3015
|
-
items:
|
|
3016
|
-
|
|
3017
|
-
row:
|
|
3018
|
-
rowKey:
|
|
3019
|
-
rowValue:
|
|
3134
|
+
items: w(() => [
|
|
3135
|
+
le(h.$slots, "actions", {
|
|
3136
|
+
row: B,
|
|
3137
|
+
rowKey: se,
|
|
3138
|
+
rowValue: fe
|
|
3020
3139
|
}, void 0, !0)
|
|
3021
3140
|
]),
|
|
3022
|
-
default:
|
|
3023
|
-
|
|
3141
|
+
default: w(() => [
|
|
3142
|
+
N(R, {
|
|
3024
3143
|
appearance: "tertiary",
|
|
3025
3144
|
class: "actions-trigger",
|
|
3026
3145
|
"data-testid": "overflow-actions-button",
|
|
3027
3146
|
icon: "",
|
|
3028
3147
|
size: "small"
|
|
3029
3148
|
}, {
|
|
3030
|
-
default:
|
|
3031
|
-
|
|
3149
|
+
default: w(() => [
|
|
3150
|
+
N(m(Uo))
|
|
3032
3151
|
]),
|
|
3033
3152
|
_: 1
|
|
3034
3153
|
})
|
|
3035
3154
|
]),
|
|
3036
3155
|
_: 2
|
|
3037
3156
|
}, 1032, ["width"])
|
|
3038
|
-
], 8,
|
|
3157
|
+
], 8, Zo)
|
|
3039
3158
|
]),
|
|
3040
3159
|
_: 2
|
|
3041
3160
|
}, [
|
|
3042
|
-
|
|
3043
|
-
name:
|
|
3044
|
-
fn:
|
|
3045
|
-
|
|
3046
|
-
"key-name": String(
|
|
3047
|
-
"row-el": c(
|
|
3048
|
-
tooltip:
|
|
3161
|
+
dt(e.tableHeaders, (B, se) => ({
|
|
3162
|
+
name: se,
|
|
3163
|
+
fn: w(({ row: fe, rowKey: xe, rowValue: ue }) => [
|
|
3164
|
+
N(Yo, {
|
|
3165
|
+
"key-name": String(se),
|
|
3166
|
+
"row-el": c(fe),
|
|
3167
|
+
tooltip: B.tooltip
|
|
3049
3168
|
}, {
|
|
3050
|
-
default:
|
|
3051
|
-
|
|
3052
|
-
row:
|
|
3053
|
-
rowKey:
|
|
3054
|
-
rowValue:
|
|
3169
|
+
default: w(() => [
|
|
3170
|
+
le(h.$slots, se, {
|
|
3171
|
+
row: fe,
|
|
3172
|
+
rowKey: xe,
|
|
3173
|
+
rowValue: ue
|
|
3055
3174
|
}, () => [
|
|
3056
|
-
|
|
3175
|
+
Q(M(ue), 1)
|
|
3057
3176
|
], !0)
|
|
3058
3177
|
]),
|
|
3059
3178
|
_: 2
|
|
@@ -3062,8 +3181,8 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
3062
3181
|
})),
|
|
3063
3182
|
e.query ? void 0 : {
|
|
3064
3183
|
name: "empty-state-action-icon",
|
|
3065
|
-
fn:
|
|
3066
|
-
|
|
3184
|
+
fn: w(() => [
|
|
3185
|
+
N(m(Co))
|
|
3067
3186
|
]),
|
|
3068
3187
|
key: "0"
|
|
3069
3188
|
}
|
|
@@ -3073,13 +3192,13 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
3073
3192
|
}, 8, ["title", "title-tag"]);
|
|
3074
3193
|
};
|
|
3075
3194
|
}
|
|
3076
|
-
}),
|
|
3195
|
+
}), Qo = /* @__PURE__ */ Oe(Go, [["__scopeId", "data-v-71b4425a"]]), Xo = {
|
|
3077
3196
|
key: 0,
|
|
3078
3197
|
class: "kong-ui-entity-delete-error"
|
|
3079
|
-
},
|
|
3198
|
+
}, el = {
|
|
3080
3199
|
key: 1,
|
|
3081
3200
|
class: "description"
|
|
3082
|
-
},
|
|
3201
|
+
}, tl = /* @__PURE__ */ X({
|
|
3083
3202
|
__name: "EntityDeleteModal",
|
|
3084
3203
|
props: {
|
|
3085
3204
|
visible: {
|
|
@@ -3118,14 +3237,14 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
3118
3237
|
},
|
|
3119
3238
|
emits: ["cancel", "proceed"],
|
|
3120
3239
|
setup(e, { emit: t }) {
|
|
3121
|
-
const { i18nT: n } =
|
|
3240
|
+
const { i18nT: n } = we.useI18n(), i = e, r = t, o = I(() => i.needConfirm ? i.entityName : ""), a = () => {
|
|
3122
3241
|
r("cancel");
|
|
3123
3242
|
}, l = () => {
|
|
3124
3243
|
r("proceed");
|
|
3125
3244
|
};
|
|
3126
|
-
return (s,
|
|
3127
|
-
const
|
|
3128
|
-
return
|
|
3245
|
+
return (s, d) => {
|
|
3246
|
+
const u = K("KAlert"), c = K("KPrompt");
|
|
3247
|
+
return C(), D(c, {
|
|
3129
3248
|
"action-button-appearance": "danger",
|
|
3130
3249
|
"action-button-disabled": e.actionPending,
|
|
3131
3250
|
"action-button-text": "Yes, delete",
|
|
@@ -3136,50 +3255,50 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
3136
3255
|
onCancel: a,
|
|
3137
3256
|
onProceed: l
|
|
3138
3257
|
}, {
|
|
3139
|
-
default:
|
|
3140
|
-
e.error ? (
|
|
3141
|
-
|
|
3142
|
-
default:
|
|
3143
|
-
|
|
3258
|
+
default: w(() => [
|
|
3259
|
+
e.error ? (C(), q("div", Xo, [
|
|
3260
|
+
N(u, { appearance: "danger" }, {
|
|
3261
|
+
default: w(() => [
|
|
3262
|
+
Q(M(e.error), 1)
|
|
3144
3263
|
]),
|
|
3145
3264
|
_: 1
|
|
3146
3265
|
})
|
|
3147
|
-
])) :
|
|
3148
|
-
|
|
3266
|
+
])) : Z("", !0),
|
|
3267
|
+
N(m(n), {
|
|
3149
3268
|
class: "message",
|
|
3150
3269
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3151
3270
|
tag: "p"
|
|
3152
|
-
},
|
|
3153
|
-
entityType:
|
|
3154
|
-
|
|
3271
|
+
}, Yt({
|
|
3272
|
+
entityType: w(() => [
|
|
3273
|
+
Q(M(i.entityType), 1)
|
|
3155
3274
|
]),
|
|
3156
3275
|
_: 2
|
|
3157
3276
|
}, [
|
|
3158
3277
|
i.entityName ? {
|
|
3159
3278
|
name: "entityName",
|
|
3160
|
-
fn:
|
|
3161
|
-
|
|
3279
|
+
fn: w(() => [
|
|
3280
|
+
L("strong", null, M(i.entityName), 1)
|
|
3162
3281
|
]),
|
|
3163
3282
|
key: "0"
|
|
3164
3283
|
} : void 0
|
|
3165
3284
|
]), 1032, ["keypath"]),
|
|
3166
|
-
i.description || s.$slots.description ? (
|
|
3167
|
-
|
|
3168
|
-
|
|
3285
|
+
i.description || s.$slots.description ? (C(), q("div", el, [
|
|
3286
|
+
le(s.$slots, "description", {}, () => [
|
|
3287
|
+
L("p", null, M(i.description), 1)
|
|
3169
3288
|
], !0)
|
|
3170
|
-
])) :
|
|
3289
|
+
])) : Z("", !0)
|
|
3171
3290
|
]),
|
|
3172
3291
|
_: 3
|
|
3173
3292
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3174
3293
|
};
|
|
3175
3294
|
}
|
|
3176
|
-
}),
|
|
3295
|
+
}), nl = /* @__PURE__ */ Oe(tl, [["__scopeId", "data-v-4361d622"]]), il = {
|
|
3177
3296
|
fill: "none",
|
|
3178
3297
|
height: "20",
|
|
3179
3298
|
viewBox: "0 0 20 20",
|
|
3180
3299
|
width: "20",
|
|
3181
3300
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3182
|
-
},
|
|
3301
|
+
}, rl = {
|
|
3183
3302
|
id: "mask0_180_20349",
|
|
3184
3303
|
height: "20",
|
|
3185
3304
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3187,35 +3306,35 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
3187
3306
|
width: "20",
|
|
3188
3307
|
x: "0",
|
|
3189
3308
|
y: "0"
|
|
3190
|
-
},
|
|
3309
|
+
}, al = ["fill"], ol = { mask: "url(#mask0_180_20349)" }, ll = ["fill"], Dt = /* @__PURE__ */ X({
|
|
3191
3310
|
__name: "IconFilter",
|
|
3192
3311
|
props: {
|
|
3193
3312
|
color: {
|
|
3194
3313
|
type: String,
|
|
3195
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3314
|
+
default: `var(--kong-ui-entity-filter-color, ${Bi})`
|
|
3196
3315
|
}
|
|
3197
3316
|
},
|
|
3198
3317
|
setup(e) {
|
|
3199
|
-
return (t, n) => (
|
|
3200
|
-
|
|
3201
|
-
|
|
3318
|
+
return (t, n) => (C(), q("svg", il, [
|
|
3319
|
+
L("mask", rl, [
|
|
3320
|
+
L("rect", {
|
|
3202
3321
|
fill: e.color,
|
|
3203
3322
|
height: "20",
|
|
3204
3323
|
width: "20"
|
|
3205
|
-
}, null, 8,
|
|
3324
|
+
}, null, 8, al)
|
|
3206
3325
|
]),
|
|
3207
|
-
|
|
3208
|
-
|
|
3326
|
+
L("g", ol, [
|
|
3327
|
+
L("path", {
|
|
3209
3328
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3210
3329
|
fill: e.color
|
|
3211
|
-
}, null, 8,
|
|
3330
|
+
}, null, 8, ll)
|
|
3212
3331
|
])
|
|
3213
3332
|
]));
|
|
3214
3333
|
}
|
|
3215
|
-
}),
|
|
3334
|
+
}), sl = {
|
|
3216
3335
|
key: 1,
|
|
3217
3336
|
class: "kong-ui-entity-filter"
|
|
3218
|
-
},
|
|
3337
|
+
}, cl = { class: "kong-ui-entity-filter-menu" }, ul = ["data-testid"], dl = ["onClick", "onKeydown"], pl = { class: "menu-item-indicator" }, fl = { class: "menu-item-body" }, gl = ["for"], hl = { class: "menu-item-buttons" }, ml = { class: "filter-clear-button-container" }, yl = /* @__PURE__ */ X({
|
|
3219
3338
|
__name: "EntityFilter",
|
|
3220
3339
|
props: {
|
|
3221
3340
|
// filter config, either exact match or fuzzy match
|
|
@@ -3235,191 +3354,191 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
3235
3354
|
},
|
|
3236
3355
|
emits: ["update:modelValue"],
|
|
3237
3356
|
setup(e, { emit: t }) {
|
|
3238
|
-
const { i18n: { t: n } } =
|
|
3239
|
-
const
|
|
3240
|
-
return new URLSearchParams(i.modelValue).forEach((
|
|
3241
|
-
|
|
3242
|
-
}),
|
|
3243
|
-
}),
|
|
3244
|
-
const
|
|
3245
|
-
return Object.keys(
|
|
3246
|
-
var
|
|
3247
|
-
return (
|
|
3248
|
-
}).map((
|
|
3249
|
-
label:
|
|
3250
|
-
value:
|
|
3357
|
+
const { i18n: { t: n } } = we.useI18n(), i = e, r = t, o = E(!1), a = E({}), l = E(/* @__PURE__ */ new Set()), s = I(() => {
|
|
3358
|
+
const A = [];
|
|
3359
|
+
return new URLSearchParams(i.modelValue).forEach(($, h) => {
|
|
3360
|
+
$ !== "" && A.push(h);
|
|
3361
|
+
}), A;
|
|
3362
|
+
}), d = I(() => {
|
|
3363
|
+
const A = i.config.fields;
|
|
3364
|
+
return Object.keys(A).filter(($) => {
|
|
3365
|
+
var h;
|
|
3366
|
+
return (h = A == null ? void 0 : A[$]) == null ? void 0 : h.searchable;
|
|
3367
|
+
}).map(($) => ({
|
|
3368
|
+
label: A[$].label || $,
|
|
3369
|
+
value: $,
|
|
3251
3370
|
expanded: !1
|
|
3252
3371
|
}));
|
|
3253
3372
|
});
|
|
3254
|
-
|
|
3255
|
-
a.value = {}, new URLSearchParams(
|
|
3256
|
-
a.value[
|
|
3373
|
+
ye(() => i.modelValue, (A) => {
|
|
3374
|
+
a.value = {}, new URLSearchParams(A).forEach(($, h) => {
|
|
3375
|
+
a.value[h] = $;
|
|
3257
3376
|
});
|
|
3258
3377
|
});
|
|
3259
|
-
const
|
|
3378
|
+
const u = () => {
|
|
3260
3379
|
o.value = !o.value;
|
|
3261
|
-
}, c = (
|
|
3262
|
-
l.value.has(
|
|
3263
|
-
},
|
|
3264
|
-
r("update:modelValue",
|
|
3265
|
-
},
|
|
3266
|
-
|
|
3267
|
-
},
|
|
3268
|
-
var
|
|
3269
|
-
return (((
|
|
3270
|
-
value:
|
|
3271
|
-
label:
|
|
3380
|
+
}, c = (A) => {
|
|
3381
|
+
l.value.has(A) ? l.value.delete(A) : l.value.add(A);
|
|
3382
|
+
}, f = (A) => {
|
|
3383
|
+
r("update:modelValue", A);
|
|
3384
|
+
}, p = () => {
|
|
3385
|
+
f("");
|
|
3386
|
+
}, g = (A) => `filter-${A}`, k = (A) => {
|
|
3387
|
+
var $, h;
|
|
3388
|
+
return (((h = ($ = i.config.schema) == null ? void 0 : $[A]) == null ? void 0 : h.values) ?? []).map((b) => ({
|
|
3389
|
+
value: b,
|
|
3390
|
+
label: b
|
|
3272
3391
|
}));
|
|
3273
|
-
},
|
|
3274
|
-
var
|
|
3275
|
-
return ((
|
|
3276
|
-
},
|
|
3392
|
+
}, v = (A) => {
|
|
3393
|
+
var $, h;
|
|
3394
|
+
return ((h = ($ = i.config.schema) == null ? void 0 : $[A]) == null ? void 0 : h.type) ?? "text";
|
|
3395
|
+
}, x = (A) => {
|
|
3277
3396
|
a.value = {
|
|
3278
3397
|
...a.value,
|
|
3279
|
-
[
|
|
3280
|
-
},
|
|
3281
|
-
},
|
|
3282
|
-
a.value = {},
|
|
3283
|
-
},
|
|
3284
|
-
const
|
|
3285
|
-
|
|
3398
|
+
[A]: ""
|
|
3399
|
+
}, T();
|
|
3400
|
+
}, y = () => {
|
|
3401
|
+
a.value = {}, T(!0);
|
|
3402
|
+
}, T = (A = !1) => {
|
|
3403
|
+
const $ = Object.keys(a.value).reduce((h, b) => (a.value[b] && (h[b] = `${a.value[b]}`), h), {});
|
|
3404
|
+
A && (o.value = !1), r("update:modelValue", new URLSearchParams($).toString());
|
|
3286
3405
|
};
|
|
3287
|
-
return (
|
|
3288
|
-
const
|
|
3289
|
-
return e.config.isExactMatch ? (
|
|
3406
|
+
return (A, $) => {
|
|
3407
|
+
const h = K("KInput"), b = K("KButton"), R = K("KSelect");
|
|
3408
|
+
return e.config.isExactMatch ? (C(), D(h, {
|
|
3290
3409
|
key: 0,
|
|
3291
3410
|
autocomplete: "off",
|
|
3292
3411
|
class: "kong-ui-entity-filter-input",
|
|
3293
3412
|
"data-testid": "search-input",
|
|
3294
3413
|
"model-value": e.modelValue,
|
|
3295
3414
|
placeholder: e.config.placeholder,
|
|
3296
|
-
"onUpdate:modelValue":
|
|
3415
|
+
"onUpdate:modelValue": f
|
|
3297
3416
|
}, {
|
|
3298
|
-
before:
|
|
3299
|
-
|
|
3417
|
+
before: w(() => [
|
|
3418
|
+
N(Dt)
|
|
3300
3419
|
]),
|
|
3301
|
-
after:
|
|
3302
|
-
|
|
3420
|
+
after: w(() => [
|
|
3421
|
+
ge(N(m(Fo), {
|
|
3303
3422
|
class: "kong-ui-entity-filter-clear",
|
|
3304
|
-
onClick:
|
|
3423
|
+
onClick: p
|
|
3305
3424
|
}, null, 512), [
|
|
3306
|
-
[
|
|
3425
|
+
[he, e.modelValue !== ""]
|
|
3307
3426
|
])
|
|
3308
3427
|
]),
|
|
3309
3428
|
_: 1
|
|
3310
|
-
}, 8, ["model-value", "placeholder"])) : (
|
|
3311
|
-
|
|
3429
|
+
}, 8, ["model-value", "placeholder"])) : (C(), q("div", sl, [
|
|
3430
|
+
N(b, {
|
|
3312
3431
|
appearance: "tertiary",
|
|
3313
3432
|
"data-testid": "filter-button",
|
|
3314
|
-
onClick:
|
|
3433
|
+
onClick: u
|
|
3315
3434
|
}, {
|
|
3316
|
-
default:
|
|
3317
|
-
|
|
3318
|
-
|
|
3435
|
+
default: w(() => [
|
|
3436
|
+
N(Dt),
|
|
3437
|
+
Q(" " + M(m(n)("filter.filterButtonText")) + " " + M(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
3319
3438
|
]),
|
|
3320
3439
|
_: 1
|
|
3321
3440
|
}),
|
|
3322
|
-
|
|
3441
|
+
ge(L("div", {
|
|
3323
3442
|
class: "kong-ui-entity-filter-backdrop",
|
|
3324
|
-
onClick:
|
|
3443
|
+
onClick: u
|
|
3325
3444
|
}, null, 512), [
|
|
3326
|
-
[
|
|
3445
|
+
[he, o.value]
|
|
3327
3446
|
]),
|
|
3328
|
-
|
|
3329
|
-
(
|
|
3330
|
-
var
|
|
3331
|
-
return
|
|
3332
|
-
key:
|
|
3447
|
+
ge(L("div", cl, [
|
|
3448
|
+
(C(!0), q(Wt, null, dt(d.value, (j) => {
|
|
3449
|
+
var U, G;
|
|
3450
|
+
return C(), q("div", {
|
|
3451
|
+
key: j.value,
|
|
3333
3452
|
class: "kong-ui-entity-filter-menu-item",
|
|
3334
|
-
"data-testid":
|
|
3453
|
+
"data-testid": j.value
|
|
3335
3454
|
}, [
|
|
3336
|
-
|
|
3337
|
-
class:
|
|
3455
|
+
L("span", {
|
|
3456
|
+
class: Me(["menu-item-title", { expanded: l.value.has(j.value) }]),
|
|
3338
3457
|
role: "button",
|
|
3339
3458
|
tabindex: "0",
|
|
3340
|
-
onClick: (
|
|
3341
|
-
onKeydown:
|
|
3459
|
+
onClick: (B) => c(j.value),
|
|
3460
|
+
onKeydown: Gn((B) => c(j.value), ["enter"])
|
|
3342
3461
|
}, [
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
[
|
|
3462
|
+
Q(M(j.label) + " ", 1),
|
|
3463
|
+
ge(L("span", pl, null, 512), [
|
|
3464
|
+
[he, s.value.includes(j.value)]
|
|
3346
3465
|
]),
|
|
3347
|
-
|
|
3348
|
-
class:
|
|
3349
|
-
color:
|
|
3466
|
+
N(m(No), {
|
|
3467
|
+
class: Me(["menu-item-expand-icon", { expanded: l.value.has(j.value) }]),
|
|
3468
|
+
color: m(Vi)
|
|
3350
3469
|
}, null, 8, ["class", "color"])
|
|
3351
|
-
], 42,
|
|
3352
|
-
|
|
3353
|
-
|
|
3470
|
+
], 42, dl),
|
|
3471
|
+
ge(L("div", fl, [
|
|
3472
|
+
L("label", {
|
|
3354
3473
|
class: "menu-item-label",
|
|
3355
|
-
for:
|
|
3356
|
-
},
|
|
3357
|
-
((
|
|
3474
|
+
for: g(j.value)
|
|
3475
|
+
}, M(m(n)("filter.fieldLabel")), 9, gl),
|
|
3476
|
+
((G = (U = e.config.schema) == null ? void 0 : U[j.value]) == null ? void 0 : G.type) === "select" ? (C(), D(R, {
|
|
3358
3477
|
key: 0,
|
|
3359
|
-
id:
|
|
3360
|
-
modelValue: a.value[
|
|
3361
|
-
"onUpdate:modelValue": (
|
|
3362
|
-
items:
|
|
3363
|
-
placeholder:
|
|
3364
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (
|
|
3478
|
+
id: g(j.value),
|
|
3479
|
+
modelValue: a.value[j.value],
|
|
3480
|
+
"onUpdate:modelValue": (B) => a.value[j.value] = B,
|
|
3481
|
+
items: k(j.value),
|
|
3482
|
+
placeholder: m(n)("filter.selectPlaceholder")
|
|
3483
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (C(), D(h, {
|
|
3365
3484
|
key: 1,
|
|
3366
|
-
id:
|
|
3367
|
-
modelValue: a.value[
|
|
3368
|
-
"onUpdate:modelValue": (
|
|
3485
|
+
id: g(j.value),
|
|
3486
|
+
modelValue: a.value[j.value],
|
|
3487
|
+
"onUpdate:modelValue": (B) => a.value[j.value] = B,
|
|
3369
3488
|
autocomplete: "off",
|
|
3370
|
-
placeholder:
|
|
3371
|
-
type:
|
|
3489
|
+
placeholder: m(n)("filter.inputPlaceholder"),
|
|
3490
|
+
type: v(j.value)
|
|
3372
3491
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3373
3492
|
], 512), [
|
|
3374
|
-
[
|
|
3493
|
+
[he, l.value.has(j.value)]
|
|
3375
3494
|
]),
|
|
3376
|
-
|
|
3377
|
-
|
|
3495
|
+
ge(L("div", hl, [
|
|
3496
|
+
N(b, {
|
|
3378
3497
|
appearance: "tertiary",
|
|
3379
3498
|
"data-testid": "apply-filter",
|
|
3380
3499
|
size: "small",
|
|
3381
|
-
onClick:
|
|
3500
|
+
onClick: $[0] || ($[0] = (B) => T(!0))
|
|
3382
3501
|
}, {
|
|
3383
|
-
default:
|
|
3384
|
-
|
|
3502
|
+
default: w(() => [
|
|
3503
|
+
Q(M(m(n)("filter.applyButtonText")), 1)
|
|
3385
3504
|
]),
|
|
3386
3505
|
_: 1
|
|
3387
3506
|
}),
|
|
3388
|
-
|
|
3507
|
+
N(b, {
|
|
3389
3508
|
appearance: "tertiary",
|
|
3390
3509
|
"data-testid": "clear-filter",
|
|
3391
3510
|
size: "small",
|
|
3392
|
-
onClick: (
|
|
3511
|
+
onClick: (B) => x(j.value)
|
|
3393
3512
|
}, {
|
|
3394
|
-
default:
|
|
3395
|
-
|
|
3513
|
+
default: w(() => [
|
|
3514
|
+
Q(M(m(n)("filter.clearButtonText")), 1)
|
|
3396
3515
|
]),
|
|
3397
3516
|
_: 2
|
|
3398
3517
|
}, 1032, ["onClick"])
|
|
3399
3518
|
], 512), [
|
|
3400
|
-
[
|
|
3519
|
+
[he, l.value.has(j.value)]
|
|
3401
3520
|
])
|
|
3402
|
-
], 8,
|
|
3521
|
+
], 8, ul);
|
|
3403
3522
|
}), 128)),
|
|
3404
|
-
|
|
3405
|
-
|
|
3523
|
+
L("div", ml, [
|
|
3524
|
+
N(b, {
|
|
3406
3525
|
appearance: "tertiary",
|
|
3407
3526
|
size: "small",
|
|
3408
|
-
onClick:
|
|
3527
|
+
onClick: y
|
|
3409
3528
|
}, {
|
|
3410
|
-
default:
|
|
3411
|
-
|
|
3529
|
+
default: w(() => [
|
|
3530
|
+
Q(M(m(n)("filter.clearAllButtonText")), 1)
|
|
3412
3531
|
]),
|
|
3413
3532
|
_: 1
|
|
3414
3533
|
})
|
|
3415
3534
|
])
|
|
3416
3535
|
], 512), [
|
|
3417
|
-
[
|
|
3536
|
+
[he, o.value]
|
|
3418
3537
|
])
|
|
3419
3538
|
]));
|
|
3420
3539
|
};
|
|
3421
3540
|
}
|
|
3422
|
-
}),
|
|
3541
|
+
}), vl = /* @__PURE__ */ Oe(yl, [["__scopeId", "data-v-94990087"]]), it = /* @__PURE__ */ X({
|
|
3423
3542
|
__name: "PermissionsWrapper",
|
|
3424
3543
|
props: {
|
|
3425
3544
|
/**
|
|
@@ -3441,51 +3560,51 @@ const co = { class: "yaml-config" }, uo = /* @__PURE__ */ te({
|
|
|
3441
3560
|
}
|
|
3442
3561
|
},
|
|
3443
3562
|
setup(e) {
|
|
3444
|
-
const t = e, n =
|
|
3445
|
-
return
|
|
3563
|
+
const t = e, n = E(void 0), i = I(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
3564
|
+
return ye(() => t.authFunction, async () => {
|
|
3446
3565
|
n.value = await t.authFunction();
|
|
3447
|
-
}, { immediate: !0 }), (r, o) => i.value ?
|
|
3566
|
+
}, { immediate: !0 }), (r, o) => i.value ? le(r.$slots, "default", {
|
|
3448
3567
|
key: 0,
|
|
3449
3568
|
isAllowed: n.value
|
|
3450
|
-
}) :
|
|
3569
|
+
}) : Z("", !0);
|
|
3451
3570
|
}
|
|
3452
3571
|
});
|
|
3453
|
-
let
|
|
3454
|
-
const
|
|
3455
|
-
function
|
|
3456
|
-
if (!
|
|
3572
|
+
let De;
|
|
3573
|
+
const bl = new Uint8Array(16);
|
|
3574
|
+
function kl() {
|
|
3575
|
+
if (!De && (De = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !De))
|
|
3457
3576
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
3458
|
-
return
|
|
3577
|
+
return De(bl);
|
|
3459
3578
|
}
|
|
3460
|
-
const
|
|
3579
|
+
const ee = [];
|
|
3461
3580
|
for (let e = 0; e < 256; ++e)
|
|
3462
|
-
|
|
3463
|
-
function
|
|
3464
|
-
return
|
|
3581
|
+
ee.push((e + 256).toString(16).slice(1));
|
|
3582
|
+
function wl(e, t = 0) {
|
|
3583
|
+
return ee[e[t + 0]] + ee[e[t + 1]] + ee[e[t + 2]] + ee[e[t + 3]] + "-" + ee[e[t + 4]] + ee[e[t + 5]] + "-" + ee[e[t + 6]] + ee[e[t + 7]] + "-" + ee[e[t + 8]] + ee[e[t + 9]] + "-" + ee[e[t + 10]] + ee[e[t + 11]] + ee[e[t + 12]] + ee[e[t + 13]] + ee[e[t + 14]] + ee[e[t + 15]];
|
|
3465
3584
|
}
|
|
3466
|
-
const
|
|
3467
|
-
randomUUID:
|
|
3585
|
+
const Cl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pt = {
|
|
3586
|
+
randomUUID: Cl
|
|
3468
3587
|
};
|
|
3469
|
-
function
|
|
3470
|
-
if (
|
|
3471
|
-
return
|
|
3588
|
+
function Sl(e, t, n) {
|
|
3589
|
+
if (Pt.randomUUID && !t && !e)
|
|
3590
|
+
return Pt.randomUUID();
|
|
3472
3591
|
e = e || {};
|
|
3473
|
-
const i = e.random || (e.rng ||
|
|
3592
|
+
const i = e.random || (e.rng || kl)();
|
|
3474
3593
|
if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, t) {
|
|
3475
3594
|
n = n || 0;
|
|
3476
3595
|
for (let r = 0; r < 16; ++r)
|
|
3477
3596
|
t[n + r] = i[r];
|
|
3478
3597
|
return t;
|
|
3479
3598
|
}
|
|
3480
|
-
return
|
|
3599
|
+
return wl(i);
|
|
3481
3600
|
}
|
|
3482
|
-
const
|
|
3601
|
+
const xl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
3483
3602
|
key: 1,
|
|
3484
3603
|
class: "form-section-description"
|
|
3485
|
-
},
|
|
3604
|
+
}, Il = {
|
|
3486
3605
|
key: 2,
|
|
3487
3606
|
class: "form-section-footer"
|
|
3488
|
-
},
|
|
3607
|
+
}, Nl = { class: "form-section-content" }, Tl = /* @__PURE__ */ X({
|
|
3489
3608
|
__name: "EntityFormSection",
|
|
3490
3609
|
props: {
|
|
3491
3610
|
title: {
|
|
@@ -3514,54 +3633,54 @@ const bl = ["aria-labelledby"], kl = { class: "form-section-wrapper" }, wl = {
|
|
|
3514
3633
|
}
|
|
3515
3634
|
},
|
|
3516
3635
|
setup(e) {
|
|
3517
|
-
const t =
|
|
3518
|
-
return (i, r) => (
|
|
3519
|
-
"aria-labelledby": e.title ?
|
|
3520
|
-
class:
|
|
3636
|
+
const t = Qn(), n = Sl();
|
|
3637
|
+
return (i, r) => (C(), q("div", {
|
|
3638
|
+
"aria-labelledby": e.title ? m(n) : void 0,
|
|
3639
|
+
class: Me(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
3521
3640
|
role: "group"
|
|
3522
3641
|
}, [
|
|
3523
|
-
|
|
3524
|
-
e.hideInfoHeader ?
|
|
3642
|
+
L("div", Al, [
|
|
3643
|
+
e.hideInfoHeader ? Z("", !0) : (C(), q("div", {
|
|
3525
3644
|
key: 0,
|
|
3526
|
-
class:
|
|
3645
|
+
class: Me(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3527
3646
|
}, [
|
|
3528
|
-
e.title ? (
|
|
3647
|
+
e.title ? (C(), D(Se(e.titleTag), {
|
|
3529
3648
|
key: 0,
|
|
3530
|
-
id:
|
|
3649
|
+
id: m(n),
|
|
3531
3650
|
class: "form-section-title"
|
|
3532
3651
|
}, {
|
|
3533
|
-
default:
|
|
3534
|
-
|
|
3652
|
+
default: w(() => [
|
|
3653
|
+
Q(M(e.title), 1)
|
|
3535
3654
|
]),
|
|
3536
3655
|
_: 1
|
|
3537
|
-
}, 8, ["id"])) :
|
|
3538
|
-
e.description ||
|
|
3539
|
-
|
|
3540
|
-
|
|
3656
|
+
}, 8, ["id"])) : Z("", !0),
|
|
3657
|
+
e.description || m(t).description ? (C(), q("div", _l, [
|
|
3658
|
+
le(i.$slots, "description", {}, () => [
|
|
3659
|
+
L("p", null, M(e.description), 1)
|
|
3541
3660
|
], !0)
|
|
3542
|
-
])) :
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
])) :
|
|
3661
|
+
])) : Z("", !0),
|
|
3662
|
+
m(t).footer ? (C(), q("div", Il, [
|
|
3663
|
+
le(i.$slots, "footer", {}, void 0, !0)
|
|
3664
|
+
])) : Z("", !0)
|
|
3546
3665
|
], 2)),
|
|
3547
|
-
|
|
3548
|
-
|
|
3666
|
+
L("div", Nl, [
|
|
3667
|
+
le(i.$slots, "default", {}, void 0, !0)
|
|
3549
3668
|
])
|
|
3550
3669
|
])
|
|
3551
|
-
], 10,
|
|
3670
|
+
], 10, xl));
|
|
3552
3671
|
}
|
|
3553
|
-
}),
|
|
3672
|
+
}), zt = /* @__PURE__ */ Oe(Tl, [["__scopeId", "data-v-b1f74200"]]), { useAxios: Yn, useDeleteUrlBuilder: Ol, useErrors: $l, useExternalLinkCreator: es, useFetchUrlBuilder: ts, useFetcher: jl, useDebouncedFilter: El, useStringHelpers: ns, useHelpers: is, useGatewayFeatureSupported: rs, useTruncationDetector: as, useValidators: os } = we, Ht = "24px", Fl = (e, t) => {
|
|
3554
3673
|
const n = e.__vccOpts || e;
|
|
3555
3674
|
for (const [i, r] of t)
|
|
3556
3675
|
n[i] = r;
|
|
3557
3676
|
return n;
|
|
3558
|
-
},
|
|
3677
|
+
}, Ml = (e) => (Be("data-v-c1f7c39c"), e = e(), Ve(), e), ql = ["aria-hidden"], Ll = {
|
|
3559
3678
|
key: 0,
|
|
3560
3679
|
"data-testid": "kui-icon-svg-title"
|
|
3561
|
-
},
|
|
3680
|
+
}, Rl = /* @__PURE__ */ Ml(() => /* @__PURE__ */ L("path", {
|
|
3562
3681
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
3563
3682
|
fill: "currentColor"
|
|
3564
|
-
}, null, -1)),
|
|
3683
|
+
}, null, -1)), Kl = /* @__PURE__ */ X({
|
|
3565
3684
|
__name: "AddIcon",
|
|
3566
3685
|
props: {
|
|
3567
3686
|
/** The accessibility text provided to screen readers */
|
|
@@ -3592,7 +3711,7 @@ const bl = ["aria-labelledby"], kl = { class: "form-section-wrapper" }, wl = {
|
|
|
3592
3711
|
size: {
|
|
3593
3712
|
type: [Number, String],
|
|
3594
3713
|
required: !1,
|
|
3595
|
-
default:
|
|
3714
|
+
default: Ht,
|
|
3596
3715
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
3597
3716
|
validator: (e) => {
|
|
3598
3717
|
if (typeof e == "number" && e > 0)
|
|
@@ -3621,7 +3740,7 @@ const bl = ["aria-labelledby"], kl = { class: "form-section-wrapper" }, wl = {
|
|
|
3621
3740
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
3622
3741
|
return `${o}px`;
|
|
3623
3742
|
}
|
|
3624
|
-
return
|
|
3743
|
+
return Ht;
|
|
3625
3744
|
}), i = I(() => ({
|
|
3626
3745
|
boxSizing: "border-box",
|
|
3627
3746
|
color: t.color,
|
|
@@ -3631,14 +3750,14 @@ const bl = ["aria-labelledby"], kl = { class: "form-section-wrapper" }, wl = {
|
|
|
3631
3750
|
lineHeight: "0",
|
|
3632
3751
|
width: n.value
|
|
3633
3752
|
}));
|
|
3634
|
-
return (r, o) => (
|
|
3753
|
+
return (r, o) => (C(), D(Se(e.as), {
|
|
3635
3754
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3636
3755
|
class: "kui-icon add-icon",
|
|
3637
3756
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
3638
3757
|
style: Ue(i.value)
|
|
3639
3758
|
}, {
|
|
3640
|
-
default:
|
|
3641
|
-
(
|
|
3759
|
+
default: w(() => [
|
|
3760
|
+
(C(), q("svg", {
|
|
3642
3761
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3643
3762
|
"data-testid": "kui-icon-svg-add-icon",
|
|
3644
3763
|
fill: "none",
|
|
@@ -3648,14 +3767,14 @@ const bl = ["aria-labelledby"], kl = { class: "form-section-wrapper" }, wl = {
|
|
|
3648
3767
|
width: "100%",
|
|
3649
3768
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3650
3769
|
}, [
|
|
3651
|
-
e.title ? (
|
|
3652
|
-
|
|
3653
|
-
], 8,
|
|
3770
|
+
e.title ? (C(), q("title", Ll, M(e.title), 1)) : Z("", !0),
|
|
3771
|
+
Rl
|
|
3772
|
+
], 8, ql))
|
|
3654
3773
|
]),
|
|
3655
3774
|
_: 1
|
|
3656
3775
|
}, 8, ["aria-hidden", "style"]));
|
|
3657
3776
|
}
|
|
3658
|
-
}),
|
|
3777
|
+
}), Ul = /* @__PURE__ */ Fl(Kl, [["__scopeId", "data-v-c1f7c39c"]]), Bl = { class: "kong-ui-entities-snis-list" }, Vl = { key: 1 }, Dl = { key: 1 }, Pl = /* @__PURE__ */ X({
|
|
3659
3778
|
__name: "SniList",
|
|
3660
3779
|
props: {
|
|
3661
3780
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3701,239 +3820,239 @@ const bl = ["aria-labelledby"], kl = { class: "form-section-wrapper" }, wl = {
|
|
|
3701
3820
|
},
|
|
3702
3821
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
3703
3822
|
setup(e, { emit: t }) {
|
|
3704
|
-
var
|
|
3705
|
-
const n = t, i = e, { i18n: { t: r } } =
|
|
3823
|
+
var ue;
|
|
3824
|
+
const n = t, i = e, { i18n: { t: r } } = Qt.useI18n(), { axiosInstance: o } = Yn((ue = i.config) == null ? void 0 : ue.axiosRequestConfig), a = E(1), l = I(() => i.config.app !== "kongManager" || !!i.config.disableSorting), s = {
|
|
3706
3825
|
// the Name column is non-hidable
|
|
3707
3826
|
name: { label: r("snis.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
|
|
3708
3827
|
certificate: { label: r("snis.list.table_headers.certificate_id"), sortable: !1 },
|
|
3709
3828
|
tags: { label: r("snis.list.table_headers.tags"), sortable: !1 }
|
|
3710
|
-
},
|
|
3829
|
+
}, d = s, u = (O) => ({
|
|
3711
3830
|
style: {
|
|
3712
|
-
maxWidth:
|
|
3831
|
+
maxWidth: O.headerKey === "name" ? "250px" : O.headerKey === "certificate" ? "350px" : null
|
|
3713
3832
|
}
|
|
3714
3833
|
}), c = I(() => {
|
|
3715
3834
|
var z, W;
|
|
3716
|
-
let
|
|
3717
|
-
return i.config.app === "konnect" ?
|
|
3718
|
-
}),
|
|
3719
|
-
const
|
|
3720
|
-
if (
|
|
3835
|
+
let O = `${i.config.apiBaseUrl}${Ee.list[i.config.app].all}`;
|
|
3836
|
+
return i.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((z = i.config) == null ? void 0 : z.controlPlaneId) || "") : i.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (W = i.config) != null && W.workspace ? `/${i.config.workspace}` : "")), O;
|
|
3837
|
+
}), f = E(""), p = I(() => {
|
|
3838
|
+
const O = i.config.app === "konnect" || i.config.isExactMatch;
|
|
3839
|
+
if (O)
|
|
3721
3840
|
return {
|
|
3722
|
-
isExactMatch:
|
|
3841
|
+
isExactMatch: O,
|
|
3723
3842
|
placeholder: r("search.placeholder")
|
|
3724
3843
|
};
|
|
3725
3844
|
const { name: z } = s;
|
|
3726
3845
|
return {
|
|
3727
|
-
isExactMatch:
|
|
3846
|
+
isExactMatch: O,
|
|
3728
3847
|
fields: { name: z },
|
|
3729
3848
|
schema: i.config.filterSchema
|
|
3730
3849
|
};
|
|
3731
|
-
}), { fetcher:
|
|
3732
|
-
|
|
3733
|
-
},
|
|
3850
|
+
}), { fetcher: g, fetcherState: k } = jl(i.config, c.value), v = () => {
|
|
3851
|
+
f.value = "";
|
|
3852
|
+
}, x = () => {
|
|
3734
3853
|
a.value++;
|
|
3735
|
-
},
|
|
3854
|
+
}, y = E(null), T = E({
|
|
3736
3855
|
ctaPath: i.config.createRoute,
|
|
3737
3856
|
ctaText: void 0,
|
|
3738
3857
|
message: `${r("snis.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
|
|
3739
3858
|
title: r("snis.title")
|
|
3740
|
-
}),
|
|
3741
|
-
const W =
|
|
3859
|
+
}), A = (O, z) => {
|
|
3860
|
+
const W = O.id;
|
|
3742
3861
|
if (!z(W)) {
|
|
3743
3862
|
n("copy:error", {
|
|
3744
|
-
entity:
|
|
3863
|
+
entity: O,
|
|
3745
3864
|
field: "id",
|
|
3746
3865
|
message: r("errors.copy")
|
|
3747
3866
|
});
|
|
3748
3867
|
return;
|
|
3749
3868
|
}
|
|
3750
3869
|
n("copy:success", {
|
|
3751
|
-
entity:
|
|
3870
|
+
entity: O,
|
|
3752
3871
|
field: "id",
|
|
3753
3872
|
message: r("copy.success", { val: W })
|
|
3754
3873
|
});
|
|
3755
|
-
},
|
|
3756
|
-
const W = JSON.stringify(
|
|
3874
|
+
}, $ = (O, z) => {
|
|
3875
|
+
const W = JSON.stringify(O);
|
|
3757
3876
|
if (!z(W)) {
|
|
3758
3877
|
n("copy:error", {
|
|
3759
|
-
entity:
|
|
3878
|
+
entity: O,
|
|
3760
3879
|
message: r("errors.copy")
|
|
3761
3880
|
});
|
|
3762
3881
|
return;
|
|
3763
3882
|
}
|
|
3764
3883
|
n("copy:success", {
|
|
3765
|
-
entity:
|
|
3884
|
+
entity: O,
|
|
3766
3885
|
message: r("copy.success_brief")
|
|
3767
3886
|
});
|
|
3768
|
-
},
|
|
3887
|
+
}, h = (O) => ({
|
|
3769
3888
|
label: r("actions.edit"),
|
|
3770
|
-
to: i.config.getEditRoute(
|
|
3771
|
-
}),
|
|
3772
|
-
|
|
3773
|
-
},
|
|
3774
|
-
R.value = !1,
|
|
3775
|
-
},
|
|
3776
|
-
var
|
|
3777
|
-
if ((
|
|
3778
|
-
|
|
3889
|
+
to: i.config.getEditRoute(O)
|
|
3890
|
+
}), b = E(void 0), R = E(!1), j = E(!1), U = E(""), G = Ol(i.config, c.value), B = (O) => {
|
|
3891
|
+
b.value = O, R.value = !0;
|
|
3892
|
+
}, se = () => {
|
|
3893
|
+
R.value = !1, b.value = void 0;
|
|
3894
|
+
}, fe = async () => {
|
|
3895
|
+
var O, z, W;
|
|
3896
|
+
if ((O = b.value) != null && O.id) {
|
|
3897
|
+
j.value = !0;
|
|
3779
3898
|
try {
|
|
3780
|
-
await o.delete(
|
|
3781
|
-
} catch (
|
|
3782
|
-
|
|
3899
|
+
await o.delete(G(b.value.id)), n("delete:success", b.value), j.value = !1, se(), a.value++;
|
|
3900
|
+
} catch (_) {
|
|
3901
|
+
U.value = ((W = (z = _.response) == null ? void 0 : z.data) == null ? void 0 : W.message) || _.message || r("errors.delete"), n("error", _);
|
|
3783
3902
|
} finally {
|
|
3784
|
-
|
|
3903
|
+
j.value = !1;
|
|
3785
3904
|
}
|
|
3786
3905
|
}
|
|
3787
|
-
},
|
|
3788
|
-
return
|
|
3789
|
-
var z, W,
|
|
3790
|
-
if (Array.isArray((z =
|
|
3791
|
-
|
|
3906
|
+
}, xe = E(!1);
|
|
3907
|
+
return ye(k, (O) => {
|
|
3908
|
+
var z, W, _, F;
|
|
3909
|
+
if (Array.isArray((z = O == null ? void 0 : O.response) == null ? void 0 : z.data) && (xe.value = O.response.data.length > 0), O.status === ke.Error) {
|
|
3910
|
+
y.value = {
|
|
3792
3911
|
title: r("errors.general")
|
|
3793
|
-
}, (
|
|
3912
|
+
}, (F = (_ = (W = O.error) == null ? void 0 : W.response) == null ? void 0 : _.data) != null && F.message && (y.value.message = O.error.response.data.message), n("error", O.error);
|
|
3794
3913
|
return;
|
|
3795
3914
|
}
|
|
3796
|
-
|
|
3797
|
-
}),
|
|
3798
|
-
await i.canCreate() && (
|
|
3799
|
-
}), (
|
|
3800
|
-
const W =
|
|
3801
|
-
return
|
|
3802
|
-
|
|
3915
|
+
y.value = null;
|
|
3916
|
+
}), ut(async () => {
|
|
3917
|
+
await i.canCreate() && (T.value.title = r("snis.list.empty_state.title"), T.value.ctaText = r("actions.create"));
|
|
3918
|
+
}), (O, z) => {
|
|
3919
|
+
const W = K("KButton"), _ = K("KCopy"), F = K("KBadge"), H = K("KTruncate"), de = K("KDropdownItem"), ie = K("KClipboardProvider");
|
|
3920
|
+
return C(), q("div", Bl, [
|
|
3921
|
+
N(m(Qo), {
|
|
3803
3922
|
"cache-identifier": e.cacheIdentifier,
|
|
3804
|
-
"cell-attributes":
|
|
3923
|
+
"cell-attributes": u,
|
|
3805
3924
|
"disable-pagination-page-jump": "",
|
|
3806
3925
|
"disable-row-click": !0,
|
|
3807
3926
|
"disable-sorting": l.value,
|
|
3808
|
-
"empty-state-options":
|
|
3927
|
+
"empty-state-options": T.value,
|
|
3809
3928
|
"enable-entity-actions": "",
|
|
3810
|
-
"error-message":
|
|
3811
|
-
fetcher:
|
|
3929
|
+
"error-message": y.value,
|
|
3930
|
+
fetcher: m(g),
|
|
3812
3931
|
"fetcher-cache-key": a.value,
|
|
3813
3932
|
"pagination-type": "offset",
|
|
3814
3933
|
"preferences-storage-key": "kong-ui-entities-snis-list",
|
|
3815
|
-
query:
|
|
3816
|
-
"table-headers":
|
|
3934
|
+
query: f.value,
|
|
3935
|
+
"table-headers": m(d),
|
|
3817
3936
|
"use-action-outside": e.useActionOutside,
|
|
3818
|
-
onClearSearchInput:
|
|
3819
|
-
onSort:
|
|
3937
|
+
onClearSearchInput: v,
|
|
3938
|
+
onSort: x
|
|
3820
3939
|
}, {
|
|
3821
|
-
"toolbar-filter":
|
|
3822
|
-
|
|
3823
|
-
modelValue:
|
|
3824
|
-
"onUpdate:modelValue": z[0] || (z[0] = (P) =>
|
|
3825
|
-
config:
|
|
3940
|
+
"toolbar-filter": w(() => [
|
|
3941
|
+
N(m(vl), {
|
|
3942
|
+
modelValue: f.value,
|
|
3943
|
+
"onUpdate:modelValue": z[0] || (z[0] = (P) => f.value = P),
|
|
3944
|
+
config: p.value
|
|
3826
3945
|
}, null, 8, ["modelValue", "config"])
|
|
3827
3946
|
]),
|
|
3828
|
-
"toolbar-button":
|
|
3829
|
-
(
|
|
3947
|
+
"toolbar-button": w(() => [
|
|
3948
|
+
(C(), D(ii, {
|
|
3830
3949
|
disabled: !e.useActionOutside,
|
|
3831
3950
|
to: "#kong-ui-app-page-header-action-button"
|
|
3832
3951
|
}, [
|
|
3833
|
-
|
|
3952
|
+
N(m(it), {
|
|
3834
3953
|
"auth-function": () => e.canCreate()
|
|
3835
3954
|
}, {
|
|
3836
|
-
default:
|
|
3837
|
-
|
|
3955
|
+
default: w(() => [
|
|
3956
|
+
ge(N(W, {
|
|
3838
3957
|
appearance: "primary",
|
|
3839
3958
|
"data-testid": "toolbar-add-sni",
|
|
3840
3959
|
size: "large",
|
|
3841
3960
|
to: e.config.createRoute
|
|
3842
3961
|
}, {
|
|
3843
|
-
default:
|
|
3844
|
-
|
|
3845
|
-
|
|
3962
|
+
default: w(() => [
|
|
3963
|
+
N(m(Ul)),
|
|
3964
|
+
Q(" " + M(m(r)("snis.list.toolbar_actions.new")), 1)
|
|
3846
3965
|
]),
|
|
3847
3966
|
_: 1
|
|
3848
3967
|
}, 8, ["to"]), [
|
|
3849
|
-
[
|
|
3968
|
+
[he, xe.value]
|
|
3850
3969
|
])
|
|
3851
3970
|
]),
|
|
3852
3971
|
_: 1
|
|
3853
3972
|
}, 8, ["auth-function"])
|
|
3854
3973
|
], 8, ["disabled"]))
|
|
3855
3974
|
]),
|
|
3856
|
-
name:
|
|
3857
|
-
|
|
3975
|
+
name: w(({ rowValue: P }) => [
|
|
3976
|
+
L("b", null, M(P ?? "-"), 1)
|
|
3858
3977
|
]),
|
|
3859
|
-
certificate:
|
|
3860
|
-
P.certificate && P.certificate.id ? (
|
|
3978
|
+
certificate: w(({ row: P }) => [
|
|
3979
|
+
P.certificate && P.certificate.id ? (C(), D(_, {
|
|
3861
3980
|
key: 0,
|
|
3862
3981
|
class: "copy-certificate-uuid",
|
|
3863
3982
|
"data-testid": "copy-certificate-uuid",
|
|
3864
3983
|
text: P.certificate.id,
|
|
3865
3984
|
truncate: ""
|
|
3866
|
-
}, null, 8, ["text"])) : (
|
|
3985
|
+
}, null, 8, ["text"])) : (C(), q("span", Vl, "-"))
|
|
3867
3986
|
]),
|
|
3868
|
-
tags:
|
|
3869
|
-
P != null && P.length ? (
|
|
3870
|
-
default:
|
|
3871
|
-
(
|
|
3987
|
+
tags: w(({ rowValue: P }) => [
|
|
3988
|
+
P != null && P.length ? (C(), D(H, { key: 0 }, {
|
|
3989
|
+
default: w(() => [
|
|
3990
|
+
(C(!0), q(Wt, null, dt(P, (V) => (C(), D(F, {
|
|
3872
3991
|
key: V,
|
|
3873
|
-
onClick: z[1] || (z[1] =
|
|
3992
|
+
onClick: z[1] || (z[1] = rt(() => {
|
|
3874
3993
|
}, ["stop"]))
|
|
3875
3994
|
}, {
|
|
3876
|
-
default:
|
|
3877
|
-
|
|
3995
|
+
default: w(() => [
|
|
3996
|
+
Q(M(V), 1)
|
|
3878
3997
|
]),
|
|
3879
3998
|
_: 2
|
|
3880
3999
|
}, 1024))), 128))
|
|
3881
4000
|
]),
|
|
3882
4001
|
_: 2
|
|
3883
|
-
}, 1024)) : (
|
|
4002
|
+
}, 1024)) : (C(), q("span", Dl, "-"))
|
|
3884
4003
|
]),
|
|
3885
|
-
actions:
|
|
3886
|
-
|
|
3887
|
-
default:
|
|
3888
|
-
|
|
4004
|
+
actions: w(({ row: P }) => [
|
|
4005
|
+
N(ie, null, {
|
|
4006
|
+
default: w(({ copyToClipboard: V }) => [
|
|
4007
|
+
N(de, {
|
|
3889
4008
|
"data-testid": "action-entity-copy-id",
|
|
3890
|
-
onClick: (
|
|
4009
|
+
onClick: (Jn) => A(P, V)
|
|
3891
4010
|
}, {
|
|
3892
|
-
default:
|
|
3893
|
-
|
|
4011
|
+
default: w(() => [
|
|
4012
|
+
Q(M(m(r)("actions.copy_id")), 1)
|
|
3894
4013
|
]),
|
|
3895
4014
|
_: 2
|
|
3896
4015
|
}, 1032, ["onClick"])
|
|
3897
4016
|
]),
|
|
3898
4017
|
_: 2
|
|
3899
4018
|
}, 1024),
|
|
3900
|
-
|
|
3901
|
-
default:
|
|
3902
|
-
|
|
4019
|
+
N(ie, null, {
|
|
4020
|
+
default: w(({ copyToClipboard: V }) => [
|
|
4021
|
+
N(de, {
|
|
3903
4022
|
"data-testid": "action-entity-copy-json",
|
|
3904
|
-
onClick: (
|
|
4023
|
+
onClick: (Jn) => $(P, V)
|
|
3905
4024
|
}, {
|
|
3906
|
-
default:
|
|
3907
|
-
|
|
4025
|
+
default: w(() => [
|
|
4026
|
+
Q(M(m(r)("actions.copy_json")), 1)
|
|
3908
4027
|
]),
|
|
3909
4028
|
_: 2
|
|
3910
4029
|
}, 1032, ["onClick"])
|
|
3911
4030
|
]),
|
|
3912
4031
|
_: 2
|
|
3913
4032
|
}, 1024),
|
|
3914
|
-
|
|
4033
|
+
N(m(it), {
|
|
3915
4034
|
"auth-function": () => e.canEdit(P)
|
|
3916
4035
|
}, {
|
|
3917
|
-
default:
|
|
3918
|
-
|
|
4036
|
+
default: w(() => [
|
|
4037
|
+
N(de, {
|
|
3919
4038
|
"data-testid": "action-entity-edit",
|
|
3920
|
-
item:
|
|
4039
|
+
item: h(P.id)
|
|
3921
4040
|
}, null, 8, ["item"])
|
|
3922
4041
|
]),
|
|
3923
4042
|
_: 2
|
|
3924
4043
|
}, 1032, ["auth-function"]),
|
|
3925
|
-
|
|
4044
|
+
N(m(it), {
|
|
3926
4045
|
"auth-function": () => e.canDelete(P)
|
|
3927
4046
|
}, {
|
|
3928
|
-
default:
|
|
3929
|
-
|
|
4047
|
+
default: w(() => [
|
|
4048
|
+
N(de, {
|
|
3930
4049
|
danger: "",
|
|
3931
4050
|
"data-testid": "action-entity-delete",
|
|
3932
4051
|
"has-divider": "",
|
|
3933
|
-
onClick: (V) =>
|
|
4052
|
+
onClick: (V) => B(P)
|
|
3934
4053
|
}, {
|
|
3935
|
-
default:
|
|
3936
|
-
|
|
4054
|
+
default: w(() => [
|
|
4055
|
+
Q(M(m(r)("actions.delete")), 1)
|
|
3937
4056
|
]),
|
|
3938
4057
|
_: 2
|
|
3939
4058
|
}, 1032, ["onClick"])
|
|
@@ -3943,31 +4062,31 @@ const bl = ["aria-labelledby"], kl = { class: "form-section-wrapper" }, wl = {
|
|
|
3943
4062
|
]),
|
|
3944
4063
|
_: 1
|
|
3945
4064
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
3946
|
-
|
|
3947
|
-
"action-pending":
|
|
3948
|
-
description:
|
|
3949
|
-
"entity-name":
|
|
3950
|
-
"entity-type":
|
|
3951
|
-
error:
|
|
4065
|
+
N(m(nl), {
|
|
4066
|
+
"action-pending": j.value,
|
|
4067
|
+
description: m(r)("delete.description"),
|
|
4068
|
+
"entity-name": b.value && (b.value.name || b.value.id),
|
|
4069
|
+
"entity-type": m(Xt).SNI,
|
|
4070
|
+
error: U.value,
|
|
3952
4071
|
"need-confirm": !1,
|
|
3953
|
-
title:
|
|
4072
|
+
title: m(r)("delete.title"),
|
|
3954
4073
|
visible: R.value,
|
|
3955
|
-
onCancel:
|
|
3956
|
-
onProceed:
|
|
4074
|
+
onCancel: se,
|
|
4075
|
+
onProceed: fe
|
|
3957
4076
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
3958
4077
|
]);
|
|
3959
4078
|
};
|
|
3960
4079
|
}
|
|
3961
|
-
}),
|
|
4080
|
+
}), Wn = (e, t) => {
|
|
3962
4081
|
const n = e.__vccOpts || e;
|
|
3963
4082
|
for (const [i, r] of t)
|
|
3964
4083
|
n[i] = r;
|
|
3965
4084
|
return n;
|
|
3966
|
-
},
|
|
4085
|
+
}, ls = /* @__PURE__ */ Wn(Pl, [["__scopeId", "data-v-7738772b"]]), zl = { class: "kong-ui-entities-snis-form" }, Hl = { "data-testid": "no-search-results" }, Yl = {
|
|
3967
4086
|
key: 2,
|
|
3968
4087
|
class: "invalid-certificate-message",
|
|
3969
4088
|
"data-testid": "invalid-certificate-message"
|
|
3970
|
-
},
|
|
4089
|
+
}, Wl = /* @__PURE__ */ X({
|
|
3971
4090
|
__name: "SniForm",
|
|
3972
4091
|
props: {
|
|
3973
4092
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3981,12 +4100,20 @@ const bl = ["aria-labelledby"], kl = { class: "form-section-wrapper" }, wl = {
|
|
|
3981
4100
|
type: String,
|
|
3982
4101
|
required: !1,
|
|
3983
4102
|
default: ""
|
|
4103
|
+
},
|
|
4104
|
+
/**
|
|
4105
|
+
* Enable display of Terraform code
|
|
4106
|
+
* Guarded by FF: khcp-12445-terraform-config-details
|
|
4107
|
+
*/
|
|
4108
|
+
enableTerraform: {
|
|
4109
|
+
type: Boolean,
|
|
4110
|
+
default: !1
|
|
3984
4111
|
}
|
|
3985
4112
|
},
|
|
3986
4113
|
emits: ["update", "error", "loading"],
|
|
3987
4114
|
setup(e, { emit: t }) {
|
|
3988
4115
|
var W;
|
|
3989
|
-
const n = t, i = e, r =
|
|
4116
|
+
const n = t, i = e, r = Gt(), { i18n: { t: o } } = Qt.useI18n(), { getMessageFromError: a } = $l(), { axiosInstance: l } = Yn((W = i.config) == null ? void 0 : W.axiosRequestConfig), s = I(() => Ee.form[i.config.app].edit), d = I(() => i.sniId ? Pe.Edit : Pe.Create), u = I(() => i.config.certificateId && d.value === Pe.Create ? i.config.certificateId : ""), c = kt({
|
|
3990
4117
|
fields: {
|
|
3991
4118
|
name: "",
|
|
3992
4119
|
tags: "",
|
|
@@ -3994,170 +4121,172 @@ const bl = ["aria-labelledby"], kl = { class: "form-section-wrapper" }, wl = {
|
|
|
3994
4121
|
},
|
|
3995
4122
|
isReadonly: !1,
|
|
3996
4123
|
errorMessage: ""
|
|
3997
|
-
}),
|
|
4124
|
+
}), f = kt({
|
|
3998
4125
|
name: "",
|
|
3999
4126
|
tags: "",
|
|
4000
4127
|
certificate_id: ""
|
|
4001
|
-
}),
|
|
4002
|
-
var
|
|
4003
|
-
c.fields.name = (
|
|
4004
|
-
},
|
|
4128
|
+
}), p = I(() => JSON.stringify(c.fields) !== JSON.stringify(f) && !!c.fields.name && !!(c.fields.certificate_id || u.value)), g = (_) => {
|
|
4129
|
+
var F, H;
|
|
4130
|
+
c.fields.name = (_ == null ? void 0 : _.name) || "", c.fields.tags = ((F = _ == null ? void 0 : _.tags) == null ? void 0 : F.join(", ")) || "", c.fields.certificate_id = ((H = _ == null ? void 0 : _.certificate) == null ? void 0 : H.id) || "", Object.assign(f, c.fields);
|
|
4131
|
+
}, k = () => {
|
|
4005
4132
|
r.push(i.config.cancelRoute);
|
|
4006
|
-
},
|
|
4007
|
-
var
|
|
4008
|
-
let
|
|
4009
|
-
return i.config.app === "konnect" ?
|
|
4010
|
-
}),
|
|
4011
|
-
var
|
|
4012
|
-
let
|
|
4013
|
-
return i.config.app === "konnect" ?
|
|
4014
|
-
}),
|
|
4015
|
-
var
|
|
4133
|
+
}, v = I(() => {
|
|
4134
|
+
var F, H;
|
|
4135
|
+
let _ = `${i.config.apiBaseUrl}${Ee.form[i.config.app].validate}`;
|
|
4136
|
+
return i.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((F = i.config) == null ? void 0 : F.controlPlaneId) || "") : i.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "")), _ = _.replace(/{id}/gi, i.sniId), _;
|
|
4137
|
+
}), x = I(() => {
|
|
4138
|
+
var F, H;
|
|
4139
|
+
let _ = `${i.config.apiBaseUrl}${Ee.form[i.config.app][d.value]}`;
|
|
4140
|
+
return i.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((F = i.config) == null ? void 0 : F.controlPlaneId) || "") : i.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "")), _ = _.replace(/{id}/gi, i.sniId), _;
|
|
4141
|
+
}), y = I(() => {
|
|
4142
|
+
var _, F;
|
|
4016
4143
|
return {
|
|
4017
4144
|
name: c.fields.name,
|
|
4018
|
-
tags: (
|
|
4019
|
-
certificate: { id:
|
|
4145
|
+
tags: (F = (_ = c.fields.tags.split(",")) == null ? void 0 : _.map((H) => String(H || "").trim())) == null ? void 0 : F.filter((H) => H !== ""),
|
|
4146
|
+
certificate: { id: u.value || c.fields.certificate_id }
|
|
4020
4147
|
};
|
|
4021
|
-
}),
|
|
4022
|
-
var
|
|
4148
|
+
}), T = async () => {
|
|
4149
|
+
var _, F, H, de, ie, P;
|
|
4023
4150
|
try {
|
|
4024
4151
|
c.isReadonly = !0;
|
|
4025
4152
|
let V;
|
|
4026
|
-
await l.post(
|
|
4153
|
+
await l.post(v.value, y.value), d.value === "create" ? V = await l.post(x.value, y.value) : d.value === "edit" && (V = ((_ = i.config) == null ? void 0 : _.app) === "konnect" ? await l.put(x.value, y.value) : await l.patch(x.value, y.value)), c.fields.name = ((F = V == null ? void 0 : V.data) == null ? void 0 : F.name) || "", c.fields.tags = ((de = (H = V == null ? void 0 : V.data) == null ? void 0 : H.tags) == null ? void 0 : de.join(", ")) || "", c.fields.certificate_id = ((P = (ie = V == null ? void 0 : V.data) == null ? void 0 : ie.certificate) == null ? void 0 : P.id) || "", Object.assign(f, c.fields), n("update", V == null ? void 0 : V.data);
|
|
4027
4154
|
} catch (V) {
|
|
4028
4155
|
c.errorMessage = a(V), n("error", V);
|
|
4029
4156
|
} finally {
|
|
4030
4157
|
c.isReadonly = !1;
|
|
4031
4158
|
}
|
|
4032
4159
|
}, {
|
|
4033
|
-
debouncedQueryChange:
|
|
4034
|
-
loading:
|
|
4035
|
-
allRecords:
|
|
4036
|
-
error:
|
|
4160
|
+
debouncedQueryChange: A,
|
|
4161
|
+
loading: $,
|
|
4162
|
+
allRecords: h,
|
|
4163
|
+
error: b,
|
|
4037
4164
|
validationError: R,
|
|
4038
|
-
loadItems:
|
|
4039
|
-
results:
|
|
4040
|
-
} =
|
|
4041
|
-
|
|
4042
|
-
},
|
|
4043
|
-
label:
|
|
4044
|
-
value:
|
|
4045
|
-
selected: c.fields.certificate_id ===
|
|
4046
|
-
}))), z = (
|
|
4047
|
-
|
|
4048
|
-
let
|
|
4049
|
-
for (
|
|
4050
|
-
|
|
4165
|
+
loadItems: j,
|
|
4166
|
+
results: U
|
|
4167
|
+
} = El(i.config, Ee.form[i.config.app].certificates), G = (_) => {
|
|
4168
|
+
A(_);
|
|
4169
|
+
}, B = I(() => b.value ? o("errors.certificates.fetch") : ""), se = I(() => R.value ? o("errors.certificates.invalid") : ""), fe = E(0), xe = I(() => h.value === void 0), ue = E(/* @__PURE__ */ new Set()), O = I(() => Array.from(ue.value).map((F) => ({
|
|
4170
|
+
label: F,
|
|
4171
|
+
value: F,
|
|
4172
|
+
selected: c.fields.certificate_id === F
|
|
4173
|
+
}))), z = (_) => {
|
|
4174
|
+
ue.value.clear();
|
|
4175
|
+
let F;
|
|
4176
|
+
for (F of _)
|
|
4177
|
+
ue.value.add(F.id);
|
|
4051
4178
|
};
|
|
4052
|
-
return
|
|
4053
|
-
z(
|
|
4054
|
-
}, { immediate: !0, deep: !0 }),
|
|
4055
|
-
|
|
4056
|
-
}, { immediate: !0, deep: !0 }),
|
|
4057
|
-
await
|
|
4058
|
-
}), (
|
|
4059
|
-
const H =
|
|
4060
|
-
return
|
|
4061
|
-
|
|
4062
|
-
"can-submit":
|
|
4179
|
+
return ye(U, (_) => {
|
|
4180
|
+
z(_);
|
|
4181
|
+
}, { immediate: !0, deep: !0 }), ye(O, () => {
|
|
4182
|
+
fe.value++;
|
|
4183
|
+
}, { immediate: !0, deep: !0 }), ut(async () => {
|
|
4184
|
+
await j();
|
|
4185
|
+
}), (_, F) => {
|
|
4186
|
+
const H = K("KInput"), de = K("KSelect");
|
|
4187
|
+
return C(), q("div", zl, [
|
|
4188
|
+
N(m(Po), {
|
|
4189
|
+
"can-submit": p.value,
|
|
4063
4190
|
config: e.config,
|
|
4064
4191
|
"edit-id": e.sniId,
|
|
4065
|
-
"
|
|
4192
|
+
"enable-terraform": e.enableTerraform,
|
|
4193
|
+
"entity-type": m(pt).SNI,
|
|
4194
|
+
"error-message": c.errorMessage || B.value,
|
|
4066
4195
|
"fetch-url": s.value,
|
|
4067
|
-
"form-fields":
|
|
4196
|
+
"form-fields": y.value,
|
|
4068
4197
|
"is-readonly": c.isReadonly,
|
|
4069
|
-
onCancel:
|
|
4070
|
-
"onFetch:error":
|
|
4071
|
-
"onFetch:success":
|
|
4072
|
-
onLoading:
|
|
4073
|
-
onSubmit:
|
|
4198
|
+
onCancel: k,
|
|
4199
|
+
"onFetch:error": F[3] || (F[3] = (ie) => _.$emit("error", ie)),
|
|
4200
|
+
"onFetch:success": g,
|
|
4201
|
+
onLoading: F[4] || (F[4] = (ie) => _.$emit("loading", ie)),
|
|
4202
|
+
onSubmit: T
|
|
4074
4203
|
}, {
|
|
4075
|
-
default:
|
|
4076
|
-
|
|
4077
|
-
description:
|
|
4078
|
-
title:
|
|
4204
|
+
default: w(() => [
|
|
4205
|
+
N(m(zt), {
|
|
4206
|
+
description: m(o)("form.sections.general.description"),
|
|
4207
|
+
title: m(o)("form.sections.general.title")
|
|
4079
4208
|
}, {
|
|
4080
|
-
default:
|
|
4081
|
-
|
|
4209
|
+
default: w(() => [
|
|
4210
|
+
N(H, {
|
|
4082
4211
|
modelValue: c.fields.name,
|
|
4083
|
-
"onUpdate:modelValue":
|
|
4212
|
+
"onUpdate:modelValue": F[0] || (F[0] = (ie) => c.fields.name = ie),
|
|
4084
4213
|
modelModifiers: { trim: !0 },
|
|
4085
4214
|
autocomplete: "off",
|
|
4086
4215
|
"data-testid": "sni-form-name",
|
|
4087
|
-
label:
|
|
4088
|
-
placeholder:
|
|
4216
|
+
label: m(o)("form.fields.name.label"),
|
|
4217
|
+
placeholder: m(o)("form.fields.name.placeholder"),
|
|
4089
4218
|
readonly: c.isReadonly,
|
|
4090
4219
|
required: "",
|
|
4091
4220
|
type: "text"
|
|
4092
4221
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
4093
|
-
|
|
4222
|
+
N(H, {
|
|
4094
4223
|
modelValue: c.fields.tags,
|
|
4095
|
-
"onUpdate:modelValue":
|
|
4224
|
+
"onUpdate:modelValue": F[1] || (F[1] = (ie) => c.fields.tags = ie),
|
|
4096
4225
|
modelModifiers: { trim: !0 },
|
|
4097
4226
|
autocomplete: "off",
|
|
4098
4227
|
"data-testid": "sni-form-tags",
|
|
4099
|
-
help:
|
|
4100
|
-
label:
|
|
4101
|
-
"label-attributes": { info:
|
|
4102
|
-
placeholder:
|
|
4228
|
+
help: m(o)("form.fields.tags.help"),
|
|
4229
|
+
label: m(o)("form.fields.tags.label"),
|
|
4230
|
+
"label-attributes": { info: m(o)("form.fields.tags.tooltip") },
|
|
4231
|
+
placeholder: m(o)("form.fields.tags.placeholder"),
|
|
4103
4232
|
readonly: c.isReadonly,
|
|
4104
4233
|
type: "text"
|
|
4105
4234
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
4106
4235
|
]),
|
|
4107
4236
|
_: 1
|
|
4108
4237
|
}, 8, ["description", "title"]),
|
|
4109
|
-
|
|
4110
|
-
description:
|
|
4238
|
+
N(m(zt), {
|
|
4239
|
+
description: m(o)("form.sections.certificate.description"),
|
|
4111
4240
|
"has-divider": "",
|
|
4112
|
-
title:
|
|
4241
|
+
title: m(o)("form.sections.certificate.title")
|
|
4113
4242
|
}, {
|
|
4114
|
-
default:
|
|
4115
|
-
|
|
4243
|
+
default: w(() => [
|
|
4244
|
+
u.value ? (C(), D(H, {
|
|
4116
4245
|
key: 0,
|
|
4117
4246
|
"data-testid": "sni-form-certificate-id",
|
|
4118
|
-
label:
|
|
4119
|
-
"model-value":
|
|
4247
|
+
label: m(o)("form.fields.certificate_id.label"),
|
|
4248
|
+
"model-value": u.value,
|
|
4120
4249
|
readonly: "",
|
|
4121
4250
|
required: "",
|
|
4122
4251
|
width: "100%"
|
|
4123
|
-
}, null, 8, ["label", "model-value"])) : (
|
|
4252
|
+
}, null, 8, ["label", "model-value"])) : (C(), D(de, {
|
|
4124
4253
|
key: 1,
|
|
4125
4254
|
modelValue: c.fields.certificate_id,
|
|
4126
|
-
"onUpdate:modelValue":
|
|
4255
|
+
"onUpdate:modelValue": F[2] || (F[2] = (ie) => c.fields.certificate_id = ie),
|
|
4127
4256
|
clearable: "",
|
|
4128
4257
|
"data-testid": "sni-form-certificate-id",
|
|
4129
|
-
"dropdown-footer-text":
|
|
4258
|
+
"dropdown-footer-text": xe.value ? m(o)("form.fields.certificate_id.footer") : void 0,
|
|
4130
4259
|
"enable-filtering": "",
|
|
4131
4260
|
"filter-function": () => !0,
|
|
4132
|
-
items:
|
|
4133
|
-
label:
|
|
4134
|
-
loading:
|
|
4135
|
-
placeholder:
|
|
4261
|
+
items: O.value,
|
|
4262
|
+
label: m(o)("form.fields.certificate_id.label"),
|
|
4263
|
+
loading: m($),
|
|
4264
|
+
placeholder: m(o)("form.fields.certificate_id.placeholder"),
|
|
4136
4265
|
readonly: c.isReadonly,
|
|
4137
4266
|
required: "",
|
|
4138
4267
|
width: "100%",
|
|
4139
|
-
onQueryChange:
|
|
4268
|
+
onQueryChange: G
|
|
4140
4269
|
}, {
|
|
4141
|
-
loading:
|
|
4142
|
-
|
|
4270
|
+
loading: w(() => [
|
|
4271
|
+
L("div", null, M(m(o)("actions.loading")), 1)
|
|
4143
4272
|
]),
|
|
4144
|
-
empty:
|
|
4145
|
-
|
|
4273
|
+
empty: w(() => [
|
|
4274
|
+
L("div", Hl, M(m(o)("search.no_results")), 1)
|
|
4146
4275
|
]),
|
|
4147
4276
|
_: 1
|
|
4148
4277
|
}, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
|
|
4149
|
-
|
|
4278
|
+
se.value ? (C(), q("p", Yl, M(se.value), 1)) : Z("", !0)
|
|
4150
4279
|
]),
|
|
4151
4280
|
_: 1
|
|
4152
4281
|
}, 8, ["description", "title"])
|
|
4153
4282
|
]),
|
|
4154
4283
|
_: 1
|
|
4155
|
-
}, 8, ["can-submit", "config", "edit-id", "error-message", "fetch-url", "form-fields", "is-readonly"])
|
|
4284
|
+
}, 8, ["can-submit", "config", "edit-id", "enable-terraform", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
|
|
4156
4285
|
]);
|
|
4157
4286
|
};
|
|
4158
4287
|
}
|
|
4159
|
-
}),
|
|
4288
|
+
}), ss = /* @__PURE__ */ Wn(Wl, [["__scopeId", "data-v-b606a09d"]]);
|
|
4160
4289
|
export {
|
|
4161
|
-
|
|
4162
|
-
|
|
4290
|
+
ss as SniForm,
|
|
4291
|
+
ls as SniList
|
|
4163
4292
|
};
|