@kong-ui-public/entities-shared 3.57.9 → 3.57.10
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/_plugin-vue_export-helper-DXzCT2F2.cjs +1 -0
- package/dist/{_plugin-vue_export-helper-DifnnlJk.js → _plugin-vue_export-helper-DmBKRdlq.js} +71 -69
- package/dist/deck-editor.cjs.js +1 -1
- package/dist/deck-editor.es.js +1 -1
- package/dist/entities-shared.cjs.js +43 -43
- package/dist/entities-shared.es.js +929 -922
- package/dist/style.css +1 -1
- package/dist/types/components/common/DeckCodeBlockInternal.vue.d.ts.map +1 -1
- package/dist/types/components/common/JsonCodeBlock.vue.d.ts.map +1 -1
- package/dist/types/components/common/TerraformCodeBlock.vue.d.ts.map +1 -1
- package/dist/types/components/common/YamlCodeBlock.vue.d.ts.map +1 -1
- package/dist/types/constants.d.ts +11 -0
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/utils/code-block.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/_plugin-vue_export-helper-BqAuE0lQ.cjs +0 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as he, computed as
|
|
2
|
-
import { c as fe, _ as Ae, C as ge,
|
|
3
|
-
import { F as
|
|
4
|
-
import { BadgeMethodAppearances as
|
|
5
|
-
import { createHighlighterCoreSync as
|
|
6
|
-
import { createJavaScriptRegexEngine as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { LanguageShellIcon as
|
|
15
|
-
import { useRouter as
|
|
16
|
-
var
|
|
17
|
-
const
|
|
1
|
+
import { defineComponent as he, computed as N, openBlock as g, createBlock as H, resolveDynamicComponent as Ve, normalizeClass as Ce, withCtx as K, createElementBlock as q, createElementVNode as X, toDisplayString as F, createCommentVNode as Q, Fragment as Te, renderList as _e, unref as b, resolveComponent as ee, createVNode as J, createTextVNode as oe, useId as ai, useSlots as mt, ref as le, renderSlot as se, createSlots as qe, normalizeProps as ci, guardReactiveProps as si, mergeProps as tt, useCssVars as _n, watch as Oe, inject as On, watchEffect as ui, onMounted as yt, onBeforeMount as Ht, withModifiers as Ze, Teleport as Bn, onUnmounted as di, withDirectives as ze, vShow as He, withKeys as Rn, warn as fi, useTemplateRef as pi, onBeforeUnmount as mi } from "vue";
|
|
2
|
+
import { c as fe, _ as Ae, S as yi, C as ge, a as et, b as Pe, E as gi, I as hi, d as gt, D as vi, e as bi, f as ki, g as Ee, P as Ci, h as Ai } from "./_plugin-vue_export-helper-DmBKRdlq.js";
|
|
3
|
+
import { F as ca, i as sa, j as ua } from "./_plugin-vue_export-helper-DmBKRdlq.js";
|
|
4
|
+
import { BadgeMethodAppearances as Si, KExternalLink as Ti, KButton as Wt, KTruncate as wi, KBadge as $i } from "@kong/kongponents";
|
|
5
|
+
import { createHighlighterCoreSync as Ei } from "@shikijs/core";
|
|
6
|
+
import { createJavaScriptRegexEngine as Ii } from "@shikijs/engine-javascript";
|
|
7
|
+
import xi from "@shikijs/langs/json";
|
|
8
|
+
import _i from "@shikijs/langs/yaml";
|
|
9
|
+
import Oi from "@shikijs/langs/terraform";
|
|
10
|
+
import Bi from "@shikijs/langs/shellscript";
|
|
11
|
+
import Ri from "@shikijs/langs/powershell";
|
|
12
|
+
import Ki from "@shikijs/themes/material-theme-darker";
|
|
13
|
+
import Li from "@shikijs/themes/catppuccin-latte";
|
|
14
|
+
import { LanguageShellIcon as Jt, LanguageBashIcon as Qt, InfoIcon as Kn, BookIcon as Ln, AddIcon as Mn, CloseIcon as Mi, FilterIcon as Xt, ChevronDownIcon as Fi, CopyIcon as Fn, VisibilityOffIcon as Ni, VisibilityIcon as Pi } from "@kong/icons";
|
|
15
|
+
import { useRouter as qi } from "vue-router";
|
|
16
|
+
var Di = /* @__PURE__ */ ((t) => (t.GatewayService = "service", t.Route = "route", t.Consumer = "consumer", t.ConsumerGroup = "consumer group", t.Plugin = "plugin", t.Upstream = "upstream", t.Certificate = "certificate", t.CACertificate = "ca certificate", t.SNI = "SNI", t.Key = "key", t.KeySet = "key set", t.Vault = "vault", t.Application = "application", t.Developer = "developer", t.acls = "ACL Credential", t["basic-auth"] = "Basic Auth Credential", t["key-auth"] = "Key Auth Credential", t["key-auth-enc"] = "Key Auth Encrypted Credential", t.oauth2 = "OAuth 2.0 Credential", t["hmac-auth"] = "HMAC Credential", t.jwt = "JWT Credential", t.Target = "target", t.Policy = "policy", t.Secret = "secret", t.RedisConfiguration = "redis configuration", t))(Di || {}), ji = /* @__PURE__ */ ((t) => (t.Edit = "edit", t.Create = "create", t))(ji || {});
|
|
17
|
+
const yl = ["json", "yaml", "terraform", "deck"], Zt = [
|
|
18
18
|
"primary",
|
|
19
19
|
"secondary"
|
|
20
|
-
],
|
|
20
|
+
], Ui = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "config-card-fieldset-title"
|
|
23
|
-
},
|
|
23
|
+
}, zi = /* @__PURE__ */ he({
|
|
24
24
|
__name: "JsonCardItem",
|
|
25
25
|
props: {
|
|
26
26
|
item: {
|
|
@@ -37,18 +37,18 @@ const pl = ["json", "yaml", "terraform", "deck"], Xt = [
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
setup(t) {
|
|
40
|
-
const o = t, { i18n: { t: i } } = fe.useI18n(), { convertKeyToTitle: u } = fe.useStringHelpers(), r =
|
|
40
|
+
const o = t, { i18n: { t: i } } = fe.useI18n(), { convertKeyToTitle: u } = fe.useStringHelpers(), r = N(() => o.item.key ?? "json-array-item"), a = N(() => o.item.value ?? o.item), l = N(() => {
|
|
41
41
|
const m = JSON.parse(JSON.stringify(a.value));
|
|
42
42
|
return o.isArrayItem && delete m.name, m;
|
|
43
|
-
}), s =
|
|
43
|
+
}), s = N(() => o.isArrayItem ? a.value?.name ? u(a.value.name, "_") : i("baseConfigCard.general.entryTitle", { index: o.index }) : "");
|
|
44
44
|
return (m, c) => (g(), H(Ve(t.isArrayItem ? "fieldset" : "div"), {
|
|
45
45
|
class: Ce(t.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
46
46
|
}, {
|
|
47
47
|
default: K(() => [
|
|
48
|
-
t.isArrayItem ? (g(), q("legend",
|
|
49
|
-
X("b", null,
|
|
48
|
+
t.isArrayItem ? (g(), q("legend", Ui, [
|
|
49
|
+
X("b", null, F(s.value), 1)
|
|
50
50
|
])) : Q("", !0),
|
|
51
|
-
(g(!0), q(Te, null,
|
|
51
|
+
(g(!0), q(Te, null, _e(Object.keys(l.value), (d, y) => (g(), H(Pn, {
|
|
52
52
|
key: `${r.value}-property-${y}`,
|
|
53
53
|
item: {
|
|
54
54
|
key: d,
|
|
@@ -60,7 +60,7 @@ const pl = ["json", "yaml", "terraform", "deck"], Xt = [
|
|
|
60
60
|
_: 1
|
|
61
61
|
}, 8, ["class"]));
|
|
62
62
|
}
|
|
63
|
-
}),
|
|
63
|
+
}), Nn = /* @__PURE__ */ Ae(zi, [["__scopeId", "data-v-5baf64ca"]]), Hi = /* @__PURE__ */ he({
|
|
64
64
|
__name: "InternalLinkItem",
|
|
65
65
|
props: {
|
|
66
66
|
item: {
|
|
@@ -80,14 +80,14 @@ const pl = ["json", "yaml", "terraform", "deck"], Xt = [
|
|
|
80
80
|
onClick: u[0] || (u[0] = (a) => i.$emit("navigation-click", t.item))
|
|
81
81
|
}, {
|
|
82
82
|
default: K(() => [
|
|
83
|
-
oe(
|
|
83
|
+
oe(F(t.item.value || b(o)("baseConfigCard.commonFields.link")), 1)
|
|
84
84
|
]),
|
|
85
85
|
_: 1
|
|
86
86
|
})
|
|
87
87
|
]);
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
}),
|
|
90
|
+
}), Yi = /* @__PURE__ */ Ae(Hi, [["__scopeId", "data-v-2feb8c2e"]]), Vi = /* @__PURE__ */ he({
|
|
91
91
|
__name: "StatusBadge",
|
|
92
92
|
props: {
|
|
93
93
|
status: {
|
|
@@ -103,42 +103,42 @@ const pl = ["json", "yaml", "terraform", "deck"], Xt = [
|
|
|
103
103
|
appearance: t.status ? "success" : "neutral"
|
|
104
104
|
}, {
|
|
105
105
|
default: K(() => [
|
|
106
|
-
oe(
|
|
106
|
+
oe(F(t.status ? b(o)("baseConfigCard.statusBadge.enabledLabel") : b(o)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}, 8, ["appearance"]);
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
let
|
|
114
|
-
function
|
|
115
|
-
return
|
|
116
|
-
langs: [
|
|
117
|
-
themes: [
|
|
118
|
-
engine:
|
|
113
|
+
let Ct = null;
|
|
114
|
+
function Gi() {
|
|
115
|
+
return Ct || (Ct = Ei({
|
|
116
|
+
langs: [xi, _i, Oi, Bi, Ri],
|
|
117
|
+
themes: [Ki, Li],
|
|
118
|
+
engine: Ii(),
|
|
119
119
|
langAlias: {
|
|
120
120
|
bash: "shellscript",
|
|
121
121
|
sh: "shellscript",
|
|
122
122
|
shell: "shellscript",
|
|
123
123
|
zsh: "shellscript"
|
|
124
124
|
}
|
|
125
|
-
})),
|
|
125
|
+
})), Ct;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
127
|
+
function Wi(t, o) {
|
|
128
|
+
return Gi().codeToHtml(t, o);
|
|
129
129
|
}
|
|
130
130
|
function Ye({ codeElement: t, code: o, language: i }) {
|
|
131
|
-
t.innerHTML =
|
|
131
|
+
o.length > yi || (t.innerHTML = Wi(o, {
|
|
132
132
|
lang: i,
|
|
133
133
|
themes: { light: "catppuccin-latte", dark: "material-theme-darker" },
|
|
134
134
|
structure: "inline"
|
|
135
|
-
});
|
|
135
|
+
}));
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const Ji = ["data-testid"], Qi = ["data-testid"], Xi = ["data-testid"], Zi = ["data-testid"], eo = { key: 1 }, to = ["data-testid"], no = ["data-testid"], io = ["data-testid"], oo = ["data-testid"], ro = {
|
|
138
138
|
name: "ConfigCardItem",
|
|
139
|
-
components: { JsonCardItem:
|
|
140
|
-
},
|
|
141
|
-
...
|
|
139
|
+
components: { JsonCardItem: Nn, StatusBadge: Vi, InternalLinkItem: Yi }
|
|
140
|
+
}, lo = /* @__PURE__ */ he({
|
|
141
|
+
...ro,
|
|
142
142
|
props: {
|
|
143
143
|
item: {
|
|
144
144
|
type: Object,
|
|
@@ -157,7 +157,7 @@ const Wi = ["data-testid"], Gi = ["data-testid"], Ji = ["data-testid"], Qi = ["d
|
|
|
157
157
|
},
|
|
158
158
|
emits: ["navigation-click"],
|
|
159
159
|
setup(t, { emit: o }) {
|
|
160
|
-
const i = t, u = o, r =
|
|
160
|
+
const i = t, u = o, r = ai(), a = mt(), { i18n: { t: l, formatIsoDate: s, formatUnixTimeStamp: m } } = fe.useI18n(), c = N(() => i.item.value !== void 0 && i.item.value !== null && i.item.value !== ""), d = N(() => !!(i.item.tooltip || a["label-tooltip"])), y = N(() => i.item.type === ge.Json || i.item.type === ge.JsonArray), T = N(() => i.item.type === ge.JsonArray), M = fe.useSubSchema(i.item.key), re = N(() => i.item.type ? i.item.type : M?.value?.encrypted ? ge.Redacted : void 0), w = N(() => {
|
|
161
161
|
switch (re.value) {
|
|
162
162
|
case ge.ID:
|
|
163
163
|
return {
|
|
@@ -289,7 +289,7 @@ const Wi = ["data-testid"], Gi = ["data-testid"], Ji = ["data-testid"], Qi = ["d
|
|
|
289
289
|
text: i.item.value
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
}), B = le(),
|
|
292
|
+
}), B = le(), G = le(), { isTruncated: x } = fe.useTruncationDetector(B), { isTruncated: C } = fe.useTruncationDetector(G);
|
|
293
293
|
return (Y, te) => {
|
|
294
294
|
const me = ee("KTooltip"), z = ee("KLabel"), j = ee("KBadge"), L = ee("KCopy");
|
|
295
295
|
return g(), q("div", {
|
|
@@ -310,7 +310,7 @@ const Wi = ["data-testid"], Gi = ["data-testid"], Ji = ["data-testid"], Qi = ["d
|
|
|
310
310
|
ref_key: "labelContent",
|
|
311
311
|
ref: B,
|
|
312
312
|
class: "label-content"
|
|
313
|
-
},
|
|
313
|
+
}, F(t.item.label), 513)
|
|
314
314
|
]),
|
|
315
315
|
_: 1
|
|
316
316
|
}, 8, ["text"])
|
|
@@ -324,15 +324,15 @@ const Wi = ["data-testid"], Gi = ["data-testid"], Ji = ["data-testid"], Qi = ["d
|
|
|
324
324
|
"data-testid": `${t.item.key}-label-tooltip`
|
|
325
325
|
}, [
|
|
326
326
|
se(Y.$slots, "label-tooltip", {}, () => [
|
|
327
|
-
oe(
|
|
327
|
+
oe(F(t.item.tooltip), 1)
|
|
328
328
|
], !0)
|
|
329
|
-
], 8,
|
|
329
|
+
], 8, Qi)
|
|
330
330
|
]),
|
|
331
331
|
key: "0"
|
|
332
332
|
} : void 0
|
|
333
333
|
]), 1024)
|
|
334
334
|
], !0)
|
|
335
|
-
], 10,
|
|
335
|
+
], 10, Ji),
|
|
336
336
|
X("div", {
|
|
337
337
|
class: Ce(["config-card-details-value", { "json-item-value": y.value && c.value, "slim-value": t.slim }]),
|
|
338
338
|
"data-testid": `${t.item.key}-property-value`
|
|
@@ -340,14 +340,14 @@ const Wi = ["data-testid"], Gi = ["data-testid"], Ji = ["data-testid"], Qi = ["d
|
|
|
340
340
|
se(Y.$slots, t.item.key, {
|
|
341
341
|
rowValue: t.item.value
|
|
342
342
|
}, () => [
|
|
343
|
-
c.value ? (g(), q("div",
|
|
344
|
-
(g(), H(Ve(w.value.tag),
|
|
343
|
+
c.value ? (g(), q("div", eo, [
|
|
344
|
+
(g(), H(Ve(w.value.tag), ci(si(w.value.attrs)), {
|
|
345
345
|
default: K(() => [
|
|
346
346
|
w.value.additionalComponent === "KBadge" ? (g(), q("div", {
|
|
347
347
|
key: 0,
|
|
348
348
|
"data-testid": `${t.item.key}-badge-tags`
|
|
349
349
|
}, [
|
|
350
|
-
(g(!0), q(Te, null,
|
|
350
|
+
(g(!0), q(Te, null, _e(t.item.value, (ne, V) => (g(), H(j, {
|
|
351
351
|
key: `${t.item.key}-badge-tag-${V}`,
|
|
352
352
|
class: "config-badge",
|
|
353
353
|
"data-testid": `${t.item.key}-badge-tag-${V}`,
|
|
@@ -355,56 +355,56 @@ const Wi = ["data-testid"], Gi = ["data-testid"], Ji = ["data-testid"], Qi = ["d
|
|
|
355
355
|
"truncation-tooltip": ""
|
|
356
356
|
}, {
|
|
357
357
|
default: K(() => [
|
|
358
|
-
oe(
|
|
358
|
+
oe(F(ne), 1)
|
|
359
359
|
]),
|
|
360
360
|
_: 2
|
|
361
361
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
362
|
-
], 8,
|
|
362
|
+
], 8, to)) : w.value.additionalComponent === "KCopy" ? (g(), q("div", {
|
|
363
363
|
key: 1,
|
|
364
364
|
class: "copy-uuid-array",
|
|
365
365
|
"data-testid": `${t.item.key}-copy-uuid-array`
|
|
366
366
|
}, [
|
|
367
|
-
(g(!0), q(Te, null,
|
|
367
|
+
(g(!0), q(Te, null, _e(t.item.value, (ne, V) => (g(), H(L, tt({ ref_for: !0 }, w.value.childAttrs, {
|
|
368
368
|
key: `${t.item.key}-copy-uuid-${V}`,
|
|
369
369
|
"data-testid": `${t.item.key}-copy-uuid-${V}`,
|
|
370
370
|
text: ne
|
|
371
371
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
372
|
-
], 8,
|
|
372
|
+
], 8, no)) : w.value.additionalComponent === "KMethodBadge" ? (g(), q("div", {
|
|
373
373
|
key: 2,
|
|
374
374
|
class: "method-badge-array",
|
|
375
375
|
"data-testid": `${t.item.key}-badge-methods`
|
|
376
376
|
}, [
|
|
377
|
-
(g(!0), q(Te, null,
|
|
377
|
+
(g(!0), q(Te, null, _e(t.item.value, (ne, V) => (g(), H(j, {
|
|
378
378
|
key: `${t.item.key}-badge-method-${V}`,
|
|
379
|
-
appearance: Object.values(b(
|
|
379
|
+
appearance: Object.values(b(Si)).includes(ne.toLowerCase()) ? ne.toLowerCase() : "custom",
|
|
380
380
|
class: "config-badge",
|
|
381
381
|
"data-testid": `${t.item.key}-badge-method-${V}`
|
|
382
382
|
}, {
|
|
383
383
|
default: K(() => [
|
|
384
|
-
oe(
|
|
384
|
+
oe(F(ne), 1)
|
|
385
385
|
]),
|
|
386
386
|
_: 2
|
|
387
387
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
388
|
-
], 8,
|
|
388
|
+
], 8, io)) : w.value.additionalComponent === "JsonCardItem" ? (g(), q("div", {
|
|
389
389
|
key: 3,
|
|
390
390
|
"data-testid": `${i.item.key}-json-array-content`
|
|
391
391
|
}, [
|
|
392
|
-
(g(!0), q(Te, null,
|
|
392
|
+
(g(!0), q(Te, null, _e(t.item.value, (ne, V) => (g(), H(Nn, {
|
|
393
393
|
key: `json-array-item-${V}`,
|
|
394
394
|
index: Number(V),
|
|
395
395
|
"is-array-item": "",
|
|
396
396
|
item: ne
|
|
397
397
|
}, null, 8, ["index", "item"]))), 128))
|
|
398
|
-
], 8,
|
|
398
|
+
], 8, oo)) : (g(), H(me, {
|
|
399
399
|
key: 4,
|
|
400
400
|
text: b(C) ? t.item.value : ""
|
|
401
401
|
}, {
|
|
402
402
|
default: K(() => [
|
|
403
403
|
X("span", {
|
|
404
404
|
ref_key: "textContent",
|
|
405
|
-
ref:
|
|
405
|
+
ref: G,
|
|
406
406
|
class: Ce(["attrs-data-text", { truncated: t.truncated }])
|
|
407
|
-
},
|
|
407
|
+
}, F(w.value.text), 3)
|
|
408
408
|
]),
|
|
409
409
|
_: 1
|
|
410
410
|
}, 8, ["text"]))
|
|
@@ -414,16 +414,16 @@ const Wi = ["data-testid"], Gi = ["data-testid"], Ji = ["data-testid"], Qi = ["d
|
|
|
414
414
|
])) : (g(), q("div", {
|
|
415
415
|
key: 0,
|
|
416
416
|
"data-testid": `${t.item.key}-no-value`
|
|
417
|
-
}, " – ", 8,
|
|
417
|
+
}, " – ", 8, Zi))
|
|
418
418
|
], !0)
|
|
419
|
-
], 10,
|
|
419
|
+
], 10, Xi)
|
|
420
420
|
], 2);
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
|
-
}), Pn = /* @__PURE__ */ Ae(
|
|
423
|
+
}), Pn = /* @__PURE__ */ Ae(lo, [["__scopeId", "data-v-9dbcd619"]]), ao = { class: "json-config config-card-code-block" }, co = {
|
|
424
424
|
key: 0,
|
|
425
425
|
class: "json-endpoint"
|
|
426
|
-
},
|
|
426
|
+
}, qn = /* @__PURE__ */ he({
|
|
427
427
|
__name: "JsonCodeBlock",
|
|
428
428
|
props: {
|
|
429
429
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -456,10 +456,10 @@ const Wi = ["data-testid"], Gi = ["data-testid"], Ji = ["data-testid"], Qi = ["d
|
|
|
456
456
|
}
|
|
457
457
|
},
|
|
458
458
|
setup(t) {
|
|
459
|
-
|
|
460
|
-
|
|
459
|
+
_n((r) => ({
|
|
460
|
+
v06a68197: `${u.value}ch`
|
|
461
461
|
}));
|
|
462
|
-
const o = t, i =
|
|
462
|
+
const o = t, i = N(() => o.entityRecord), u = N(() => {
|
|
463
463
|
if (!o.fetcherUrl)
|
|
464
464
|
return 0;
|
|
465
465
|
const r = o.fetcherUrl?.split("/");
|
|
@@ -467,11 +467,11 @@ const Wi = ["data-testid"], Gi = ["data-testid"], Ji = ["data-testid"], Qi = ["d
|
|
|
467
467
|
});
|
|
468
468
|
return (r, a) => {
|
|
469
469
|
const l = ee("KBadge"), s = ee("KCodeBlock");
|
|
470
|
-
return g(), q("div",
|
|
471
|
-
t.fetcherUrl ? (g(), q("div",
|
|
470
|
+
return g(), q("div", ao, [
|
|
471
|
+
t.fetcherUrl ? (g(), q("div", co, [
|
|
472
472
|
J(l, { appearance: t.requestMethod }, {
|
|
473
473
|
default: K(() => [
|
|
474
|
-
oe(
|
|
474
|
+
oe(F(t.requestMethod), 1)
|
|
475
475
|
]),
|
|
476
476
|
_: 1
|
|
477
477
|
}, 8, ["appearance"]),
|
|
@@ -479,9 +479,10 @@ const Wi = ["data-testid"], Gi = ["data-testid"], Ji = ["data-testid"], Qi = ["d
|
|
|
479
479
|
id: "json-endpoint-codeblock",
|
|
480
480
|
code: t.fetcherUrl,
|
|
481
481
|
language: "plaintext",
|
|
482
|
+
"max-height": b(et),
|
|
482
483
|
"single-line": "",
|
|
483
484
|
theme: "dark"
|
|
484
|
-
}, null, 8, ["code"])
|
|
485
|
+
}, null, 8, ["code", "max-height"])
|
|
485
486
|
])) : Q("", !0),
|
|
486
487
|
t.entityRecord ? (g(), H(s, {
|
|
487
488
|
key: 1,
|
|
@@ -491,20 +492,21 @@ const Wi = ["data-testid"], Gi = ["data-testid"], Ji = ["data-testid"], Qi = ["d
|
|
|
491
492
|
"copy-code": JSON.stringify(t.unredactedRecord || i.value, null, 2),
|
|
492
493
|
"data-dd-privacy": "mask",
|
|
493
494
|
language: "json",
|
|
495
|
+
"max-height": b(et),
|
|
494
496
|
theme: "dark",
|
|
495
497
|
onCodeBlockRender: b(Ye)
|
|
496
|
-
}, null, 8, ["class", "code", "copy-code", "onCodeBlockRender"])) : Q("", !0)
|
|
498
|
+
}, null, 8, ["class", "code", "copy-code", "max-height", "onCodeBlockRender"])) : Q("", !0)
|
|
497
499
|
]);
|
|
498
500
|
};
|
|
499
501
|
}
|
|
500
502
|
});
|
|
501
|
-
function
|
|
503
|
+
function so(t) {
|
|
502
504
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
503
505
|
}
|
|
504
|
-
var $e = {},
|
|
505
|
-
function
|
|
506
|
-
if (
|
|
507
|
-
|
|
506
|
+
var $e = {}, pt = {}, Fe = {}, en;
|
|
507
|
+
function nt() {
|
|
508
|
+
if (en) return Fe;
|
|
509
|
+
en = 1;
|
|
508
510
|
function t(l) {
|
|
509
511
|
return typeof l > "u" || l === null;
|
|
510
512
|
}
|
|
@@ -533,12 +535,12 @@ function tt() {
|
|
|
533
535
|
function a(l) {
|
|
534
536
|
return l === 0 && Number.NEGATIVE_INFINITY === 1 / l;
|
|
535
537
|
}
|
|
536
|
-
return
|
|
538
|
+
return Fe.isNothing = t, Fe.isObject = o, Fe.toArray = i, Fe.repeat = r, Fe.isNegativeZero = a, Fe.extend = u, Fe;
|
|
537
539
|
}
|
|
538
|
-
var
|
|
539
|
-
function
|
|
540
|
-
if (
|
|
541
|
-
|
|
540
|
+
var At, tn;
|
|
541
|
+
function it() {
|
|
542
|
+
if (tn) return At;
|
|
543
|
+
tn = 1;
|
|
542
544
|
function t(i, u) {
|
|
543
545
|
let r = "";
|
|
544
546
|
const a = i.reason || "(unknown reason)";
|
|
@@ -551,13 +553,13 @@ function nt() {
|
|
|
551
553
|
}
|
|
552
554
|
return o.prototype = Object.create(Error.prototype), o.prototype.constructor = o, o.prototype.toString = function(u) {
|
|
553
555
|
return this.name + ": " + t(this, u);
|
|
554
|
-
},
|
|
556
|
+
}, At = o, At;
|
|
555
557
|
}
|
|
556
|
-
var
|
|
557
|
-
function
|
|
558
|
-
if (
|
|
559
|
-
|
|
560
|
-
const t =
|
|
558
|
+
var St, nn;
|
|
559
|
+
function uo() {
|
|
560
|
+
if (nn) return St;
|
|
561
|
+
nn = 1;
|
|
562
|
+
const t = nt();
|
|
561
563
|
function o(r, a, l, s, m) {
|
|
562
564
|
let c = "", d = "";
|
|
563
565
|
const y = Math.floor(m / 2) - 1;
|
|
@@ -579,19 +581,19 @@ function co() {
|
|
|
579
581
|
m.push(c.index), s.push(c.index + c[0].length), r.position <= c.index && d < 0 && (d = s.length - 2);
|
|
580
582
|
d < 0 && (d = s.length - 1);
|
|
581
583
|
let y = "";
|
|
582
|
-
const T = Math.min(r.line + a.linesAfter, m.length).toString().length,
|
|
584
|
+
const T = Math.min(r.line + a.linesAfter, m.length).toString().length, M = a.maxLength - (a.indent + T + 3);
|
|
583
585
|
for (let w = 1; w <= a.linesBefore && !(d - w < 0); w++) {
|
|
584
586
|
const B = o(
|
|
585
587
|
r.buffer,
|
|
586
588
|
s[d - w],
|
|
587
589
|
m[d - w],
|
|
588
590
|
r.position - (s[d] - s[d - w]),
|
|
589
|
-
|
|
591
|
+
M
|
|
590
592
|
);
|
|
591
593
|
y = t.repeat(" ", a.indent) + i((r.line - w + 1).toString(), T) + " | " + B.str + `
|
|
592
594
|
` + y;
|
|
593
595
|
}
|
|
594
|
-
const re = o(r.buffer, s[d], m[d], r.position,
|
|
596
|
+
const re = o(r.buffer, s[d], m[d], r.position, M);
|
|
595
597
|
y += t.repeat(" ", a.indent) + i((r.line + 1).toString(), T) + " | " + re.str + `
|
|
596
598
|
`, y += t.repeat("-", a.indent + T + 3 + re.pos) + `^
|
|
597
599
|
`;
|
|
@@ -601,20 +603,20 @@ function co() {
|
|
|
601
603
|
s[d + w],
|
|
602
604
|
m[d + w],
|
|
603
605
|
r.position - (s[d] - s[d + w]),
|
|
604
|
-
|
|
606
|
+
M
|
|
605
607
|
);
|
|
606
608
|
y += t.repeat(" ", a.indent) + i((r.line + w + 1).toString(), T) + " | " + B.str + `
|
|
607
609
|
`;
|
|
608
610
|
}
|
|
609
611
|
return y.replace(/\n$/, "");
|
|
610
612
|
}
|
|
611
|
-
return
|
|
613
|
+
return St = u, St;
|
|
612
614
|
}
|
|
613
|
-
var
|
|
615
|
+
var Tt, on;
|
|
614
616
|
function Ie() {
|
|
615
|
-
if (
|
|
616
|
-
|
|
617
|
-
const t =
|
|
617
|
+
if (on) return Tt;
|
|
618
|
+
on = 1;
|
|
619
|
+
const t = it(), o = [
|
|
618
620
|
"kind",
|
|
619
621
|
"multi",
|
|
620
622
|
"resolve",
|
|
@@ -649,13 +651,13 @@ function Ie() {
|
|
|
649
651
|
}, this.instanceOf = l.instanceOf || null, this.predicate = l.predicate || null, this.represent = l.represent || null, this.representName = l.representName || null, this.defaultStyle = l.defaultStyle || null, this.multi = l.multi || !1, this.styleAliases = u(l.styleAliases || null), i.indexOf(this.kind) === -1)
|
|
650
652
|
throw new t('Unknown kind "' + this.kind + '" is specified for "' + a + '" YAML type.');
|
|
651
653
|
}
|
|
652
|
-
return
|
|
654
|
+
return Tt = r, Tt;
|
|
653
655
|
}
|
|
654
|
-
var
|
|
655
|
-
function
|
|
656
|
-
if (
|
|
657
|
-
|
|
658
|
-
const t =
|
|
656
|
+
var wt, rn;
|
|
657
|
+
function Dn() {
|
|
658
|
+
if (rn) return wt;
|
|
659
|
+
rn = 1;
|
|
660
|
+
const t = it(), o = Ie();
|
|
659
661
|
function i(a, l) {
|
|
660
662
|
const s = [];
|
|
661
663
|
return a[l].forEach(function(m) {
|
|
@@ -711,29 +713,17 @@ function qn() {
|
|
|
711
713
|
});
|
|
712
714
|
const c = Object.create(r.prototype);
|
|
713
715
|
return c.implicit = (this.implicit || []).concat(s), c.explicit = (this.explicit || []).concat(m), c.compiledImplicit = i(c, "implicit"), c.compiledExplicit = i(c, "explicit"), c.compiledTypeMap = u(c.compiledImplicit, c.compiledExplicit), c;
|
|
714
|
-
},
|
|
715
|
-
}
|
|
716
|
-
var wt, rn;
|
|
717
|
-
function Dn() {
|
|
718
|
-
if (rn) return wt;
|
|
719
|
-
rn = 1;
|
|
720
|
-
const t = Ie();
|
|
721
|
-
return wt = new t("tag:yaml.org,2002:str", {
|
|
722
|
-
kind: "scalar",
|
|
723
|
-
construct: function(o) {
|
|
724
|
-
return o !== null ? o : "";
|
|
725
|
-
}
|
|
726
|
-
}), wt;
|
|
716
|
+
}, wt = r, wt;
|
|
727
717
|
}
|
|
728
718
|
var $t, ln;
|
|
729
719
|
function jn() {
|
|
730
720
|
if (ln) return $t;
|
|
731
721
|
ln = 1;
|
|
732
722
|
const t = Ie();
|
|
733
|
-
return $t = new t("tag:yaml.org,2002:
|
|
734
|
-
kind: "
|
|
723
|
+
return $t = new t("tag:yaml.org,2002:str", {
|
|
724
|
+
kind: "scalar",
|
|
735
725
|
construct: function(o) {
|
|
736
|
-
return o !== null ? o :
|
|
726
|
+
return o !== null ? o : "";
|
|
737
727
|
}
|
|
738
728
|
}), $t;
|
|
739
729
|
}
|
|
@@ -742,10 +732,10 @@ function Un() {
|
|
|
742
732
|
if (an) return Et;
|
|
743
733
|
an = 1;
|
|
744
734
|
const t = Ie();
|
|
745
|
-
return Et = new t("tag:yaml.org,2002:
|
|
746
|
-
kind: "
|
|
735
|
+
return Et = new t("tag:yaml.org,2002:seq", {
|
|
736
|
+
kind: "sequence",
|
|
747
737
|
construct: function(o) {
|
|
748
|
-
return o !== null ? o :
|
|
738
|
+
return o !== null ? o : [];
|
|
749
739
|
}
|
|
750
740
|
}), Et;
|
|
751
741
|
}
|
|
@@ -753,19 +743,31 @@ var It, cn;
|
|
|
753
743
|
function zn() {
|
|
754
744
|
if (cn) return It;
|
|
755
745
|
cn = 1;
|
|
756
|
-
const t =
|
|
757
|
-
return It = new t({
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
]
|
|
746
|
+
const t = Ie();
|
|
747
|
+
return It = new t("tag:yaml.org,2002:map", {
|
|
748
|
+
kind: "mapping",
|
|
749
|
+
construct: function(o) {
|
|
750
|
+
return o !== null ? o : {};
|
|
751
|
+
}
|
|
763
752
|
}), It;
|
|
764
753
|
}
|
|
765
754
|
var xt, sn;
|
|
766
755
|
function Hn() {
|
|
767
756
|
if (sn) return xt;
|
|
768
757
|
sn = 1;
|
|
758
|
+
const t = Dn();
|
|
759
|
+
return xt = new t({
|
|
760
|
+
explicit: [
|
|
761
|
+
jn(),
|
|
762
|
+
Un(),
|
|
763
|
+
zn()
|
|
764
|
+
]
|
|
765
|
+
}), xt;
|
|
766
|
+
}
|
|
767
|
+
var _t, un;
|
|
768
|
+
function Yn() {
|
|
769
|
+
if (un) return _t;
|
|
770
|
+
un = 1;
|
|
769
771
|
const t = Ie();
|
|
770
772
|
function o(r) {
|
|
771
773
|
if (r === null) return !0;
|
|
@@ -778,7 +780,7 @@ function Hn() {
|
|
|
778
780
|
function u(r) {
|
|
779
781
|
return r === null;
|
|
780
782
|
}
|
|
781
|
-
return
|
|
783
|
+
return _t = new t("tag:yaml.org,2002:null", {
|
|
782
784
|
kind: "scalar",
|
|
783
785
|
resolve: o,
|
|
784
786
|
construct: i,
|
|
@@ -801,12 +803,12 @@ function Hn() {
|
|
|
801
803
|
}
|
|
802
804
|
},
|
|
803
805
|
defaultStyle: "lowercase"
|
|
804
|
-
}),
|
|
806
|
+
}), _t;
|
|
805
807
|
}
|
|
806
|
-
var Ot,
|
|
807
|
-
function
|
|
808
|
-
if (
|
|
809
|
-
|
|
808
|
+
var Ot, dn;
|
|
809
|
+
function Vn() {
|
|
810
|
+
if (dn) return Ot;
|
|
811
|
+
dn = 1;
|
|
810
812
|
const t = Ie();
|
|
811
813
|
function o(r) {
|
|
812
814
|
if (r === null) return !1;
|
|
@@ -838,11 +840,11 @@ function Yn() {
|
|
|
838
840
|
defaultStyle: "lowercase"
|
|
839
841
|
}), Ot;
|
|
840
842
|
}
|
|
841
|
-
var
|
|
842
|
-
function
|
|
843
|
-
if (
|
|
844
|
-
|
|
845
|
-
const t =
|
|
843
|
+
var Bt, fn;
|
|
844
|
+
function Gn() {
|
|
845
|
+
if (fn) return Bt;
|
|
846
|
+
fn = 1;
|
|
847
|
+
const t = nt(), o = Ie();
|
|
846
848
|
function i(c) {
|
|
847
849
|
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
848
850
|
}
|
|
@@ -857,24 +859,24 @@ function Vn() {
|
|
|
857
859
|
const d = c.length;
|
|
858
860
|
let y = 0, T = !1;
|
|
859
861
|
if (!d) return !1;
|
|
860
|
-
let
|
|
861
|
-
if ((
|
|
862
|
+
let M = c[y];
|
|
863
|
+
if ((M === "-" || M === "+") && (M = c[++y]), M === "0") {
|
|
862
864
|
if (y + 1 === d) return !0;
|
|
863
|
-
if (
|
|
865
|
+
if (M = c[++y], M === "b") {
|
|
864
866
|
for (y++; y < d; y++) {
|
|
865
|
-
if (
|
|
867
|
+
if (M = c[y], M !== "0" && M !== "1") return !1;
|
|
866
868
|
T = !0;
|
|
867
869
|
}
|
|
868
870
|
return T && isFinite(l(c));
|
|
869
871
|
}
|
|
870
|
-
if (
|
|
872
|
+
if (M === "x") {
|
|
871
873
|
for (y++; y < d; y++) {
|
|
872
874
|
if (!i(c.charCodeAt(y))) return !1;
|
|
873
875
|
T = !0;
|
|
874
876
|
}
|
|
875
877
|
return T && isFinite(l(c));
|
|
876
878
|
}
|
|
877
|
-
if (
|
|
879
|
+
if (M === "o") {
|
|
878
880
|
for (y++; y < d; y++) {
|
|
879
881
|
if (!u(c.charCodeAt(y))) return !1;
|
|
880
882
|
T = !0;
|
|
@@ -905,7 +907,7 @@ function Vn() {
|
|
|
905
907
|
function m(c) {
|
|
906
908
|
return Object.prototype.toString.call(c) === "[object Number]" && c % 1 === 0 && !t.isNegativeZero(c);
|
|
907
909
|
}
|
|
908
|
-
return
|
|
910
|
+
return Bt = new o("tag:yaml.org,2002:int", {
|
|
909
911
|
kind: "scalar",
|
|
910
912
|
resolve: a,
|
|
911
913
|
construct: s,
|
|
@@ -931,13 +933,13 @@ function Vn() {
|
|
|
931
933
|
decimal: [10, "dec"],
|
|
932
934
|
hexadecimal: [16, "hex"]
|
|
933
935
|
}
|
|
934
|
-
}),
|
|
936
|
+
}), Bt;
|
|
935
937
|
}
|
|
936
|
-
var
|
|
938
|
+
var Rt, pn;
|
|
937
939
|
function Wn() {
|
|
938
|
-
if (
|
|
939
|
-
|
|
940
|
-
const t =
|
|
940
|
+
if (pn) return Rt;
|
|
941
|
+
pn = 1;
|
|
942
|
+
const t = nt(), o = Ie(), i = new RegExp(
|
|
941
943
|
// 2.5e4, 2.5 and integers
|
|
942
944
|
"^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
943
945
|
), u = new RegExp(
|
|
@@ -988,34 +990,34 @@ function Wn() {
|
|
|
988
990
|
function m(c) {
|
|
989
991
|
return Object.prototype.toString.call(c) === "[object Number]" && (c % 1 !== 0 || t.isNegativeZero(c));
|
|
990
992
|
}
|
|
991
|
-
return
|
|
993
|
+
return Rt = new o("tag:yaml.org,2002:float", {
|
|
992
994
|
kind: "scalar",
|
|
993
995
|
resolve: r,
|
|
994
996
|
construct: a,
|
|
995
997
|
predicate: m,
|
|
996
998
|
represent: s,
|
|
997
999
|
defaultStyle: "lowercase"
|
|
998
|
-
}),
|
|
1000
|
+
}), Rt;
|
|
999
1001
|
}
|
|
1000
|
-
var
|
|
1001
|
-
function
|
|
1002
|
-
return
|
|
1002
|
+
var Kt, mn;
|
|
1003
|
+
function Jn() {
|
|
1004
|
+
return mn || (mn = 1, Kt = Hn().extend({
|
|
1003
1005
|
implicit: [
|
|
1004
|
-
Hn(),
|
|
1005
1006
|
Yn(),
|
|
1006
1007
|
Vn(),
|
|
1008
|
+
Gn(),
|
|
1007
1009
|
Wn()
|
|
1008
1010
|
]
|
|
1009
|
-
})),
|
|
1010
|
-
}
|
|
1011
|
-
var Kt, mn;
|
|
1012
|
-
function Jn() {
|
|
1013
|
-
return mn || (mn = 1, Kt = Gn()), Kt;
|
|
1011
|
+
})), Kt;
|
|
1014
1012
|
}
|
|
1015
1013
|
var Lt, yn;
|
|
1016
1014
|
function Qn() {
|
|
1017
|
-
|
|
1018
|
-
|
|
1015
|
+
return yn || (yn = 1, Lt = Jn()), Lt;
|
|
1016
|
+
}
|
|
1017
|
+
var Mt, gn;
|
|
1018
|
+
function Xn() {
|
|
1019
|
+
if (gn) return Mt;
|
|
1020
|
+
gn = 1;
|
|
1019
1021
|
const t = Ie(), o = new RegExp(
|
|
1020
1022
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1021
1023
|
), i = new RegExp(
|
|
@@ -1030,34 +1032,34 @@ function Qn() {
|
|
|
1030
1032
|
const d = +c[1], y = +c[2] - 1, T = +c[3];
|
|
1031
1033
|
if (!c[4])
|
|
1032
1034
|
return new Date(Date.UTC(d, y, T));
|
|
1033
|
-
const
|
|
1035
|
+
const M = +c[4], re = +c[5], w = +c[6];
|
|
1034
1036
|
if (c[7]) {
|
|
1035
1037
|
for (s = c[7].slice(0, 3); s.length < 3; )
|
|
1036
1038
|
s += "0";
|
|
1037
1039
|
s = +s;
|
|
1038
1040
|
}
|
|
1039
1041
|
if (c[9]) {
|
|
1040
|
-
const
|
|
1041
|
-
m = (
|
|
1042
|
+
const G = +c[10], x = +(c[11] || 0);
|
|
1043
|
+
m = (G * 60 + x) * 6e4, c[9] === "-" && (m = -m);
|
|
1042
1044
|
}
|
|
1043
|
-
const B = new Date(Date.UTC(d, y, T,
|
|
1045
|
+
const B = new Date(Date.UTC(d, y, T, M, re, w, s));
|
|
1044
1046
|
return m && B.setTime(B.getTime() - m), B;
|
|
1045
1047
|
}
|
|
1046
1048
|
function a(l) {
|
|
1047
1049
|
return l.toISOString();
|
|
1048
1050
|
}
|
|
1049
|
-
return
|
|
1051
|
+
return Mt = new t("tag:yaml.org,2002:timestamp", {
|
|
1050
1052
|
kind: "scalar",
|
|
1051
1053
|
resolve: u,
|
|
1052
1054
|
construct: r,
|
|
1053
1055
|
instanceOf: Date,
|
|
1054
1056
|
represent: a
|
|
1055
|
-
}),
|
|
1057
|
+
}), Mt;
|
|
1056
1058
|
}
|
|
1057
|
-
var Ft,
|
|
1058
|
-
function
|
|
1059
|
-
if (
|
|
1060
|
-
|
|
1059
|
+
var Ft, hn;
|
|
1060
|
+
function Zn() {
|
|
1061
|
+
if (hn) return Ft;
|
|
1062
|
+
hn = 1;
|
|
1061
1063
|
const t = Ie();
|
|
1062
1064
|
function o(i) {
|
|
1063
1065
|
return i === "<<" || i === null;
|
|
@@ -1067,10 +1069,10 @@ function Xn() {
|
|
|
1067
1069
|
resolve: o
|
|
1068
1070
|
}), Ft;
|
|
1069
1071
|
}
|
|
1070
|
-
var
|
|
1071
|
-
function
|
|
1072
|
-
if (
|
|
1073
|
-
|
|
1072
|
+
var Nt, vn;
|
|
1073
|
+
function ei() {
|
|
1074
|
+
if (vn) return Nt;
|
|
1075
|
+
vn = 1;
|
|
1074
1076
|
const t = Ie(), o = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1075
1077
|
\r`;
|
|
1076
1078
|
function i(l) {
|
|
@@ -1090,8 +1092,8 @@ function Zn() {
|
|
|
1090
1092
|
const s = l.replace(/[\r\n=]/g, ""), m = s.length, c = o;
|
|
1091
1093
|
let d = 0;
|
|
1092
1094
|
const y = [];
|
|
1093
|
-
for (let
|
|
1094
|
-
|
|
1095
|
+
for (let M = 0; M < m; M++)
|
|
1096
|
+
M % 4 === 0 && M && (y.push(d >> 16 & 255), y.push(d >> 8 & 255), y.push(d & 255)), d = d << 6 | c.indexOf(s.charAt(M));
|
|
1095
1097
|
const T = m % 4 * 6;
|
|
1096
1098
|
return T === 0 ? (y.push(d >> 16 & 255), y.push(d >> 8 & 255), y.push(d & 255)) : T === 18 ? (y.push(d >> 10 & 255), y.push(d >> 2 & 255)) : T === 12 && y.push(d >> 4 & 255), new Uint8Array(y);
|
|
1097
1099
|
}
|
|
@@ -1106,18 +1108,18 @@ function Zn() {
|
|
|
1106
1108
|
function a(l) {
|
|
1107
1109
|
return Object.prototype.toString.call(l) === "[object Uint8Array]";
|
|
1108
1110
|
}
|
|
1109
|
-
return
|
|
1111
|
+
return Nt = new t("tag:yaml.org,2002:binary", {
|
|
1110
1112
|
kind: "scalar",
|
|
1111
1113
|
resolve: i,
|
|
1112
1114
|
construct: u,
|
|
1113
1115
|
predicate: a,
|
|
1114
1116
|
represent: r
|
|
1115
|
-
}),
|
|
1117
|
+
}), Nt;
|
|
1116
1118
|
}
|
|
1117
|
-
var Pt,
|
|
1118
|
-
function
|
|
1119
|
-
if (
|
|
1120
|
-
|
|
1119
|
+
var Pt, bn;
|
|
1120
|
+
function ti() {
|
|
1121
|
+
if (bn) return Pt;
|
|
1122
|
+
bn = 1;
|
|
1121
1123
|
const t = Ie(), o = Object.prototype.hasOwnProperty, i = Object.prototype.toString;
|
|
1122
1124
|
function u(a) {
|
|
1123
1125
|
if (a === null) return !0;
|
|
@@ -1146,10 +1148,10 @@ function ei() {
|
|
|
1146
1148
|
construct: r
|
|
1147
1149
|
}), Pt;
|
|
1148
1150
|
}
|
|
1149
|
-
var
|
|
1150
|
-
function
|
|
1151
|
-
if (
|
|
1152
|
-
|
|
1151
|
+
var qt, kn;
|
|
1152
|
+
function ni() {
|
|
1153
|
+
if (kn) return qt;
|
|
1154
|
+
kn = 1;
|
|
1153
1155
|
const t = Ie(), o = Object.prototype.toString;
|
|
1154
1156
|
function i(r) {
|
|
1155
1157
|
if (r === null) return !0;
|
|
@@ -1172,16 +1174,16 @@ function ti() {
|
|
|
1172
1174
|
}
|
|
1173
1175
|
return l;
|
|
1174
1176
|
}
|
|
1175
|
-
return
|
|
1177
|
+
return qt = new t("tag:yaml.org,2002:pairs", {
|
|
1176
1178
|
kind: "sequence",
|
|
1177
1179
|
resolve: i,
|
|
1178
1180
|
construct: u
|
|
1179
|
-
}),
|
|
1181
|
+
}), qt;
|
|
1180
1182
|
}
|
|
1181
|
-
var
|
|
1182
|
-
function
|
|
1183
|
-
if (
|
|
1184
|
-
|
|
1183
|
+
var Dt, Cn;
|
|
1184
|
+
function ii() {
|
|
1185
|
+
if (Cn) return Dt;
|
|
1186
|
+
Cn = 1;
|
|
1185
1187
|
const t = Ie(), o = Object.prototype.hasOwnProperty;
|
|
1186
1188
|
function i(r) {
|
|
1187
1189
|
if (r === null) return !0;
|
|
@@ -1194,33 +1196,33 @@ function ni() {
|
|
|
1194
1196
|
function u(r) {
|
|
1195
1197
|
return r !== null ? r : {};
|
|
1196
1198
|
}
|
|
1197
|
-
return
|
|
1199
|
+
return Dt = new t("tag:yaml.org,2002:set", {
|
|
1198
1200
|
kind: "mapping",
|
|
1199
1201
|
resolve: i,
|
|
1200
1202
|
construct: u
|
|
1201
|
-
}),
|
|
1203
|
+
}), Dt;
|
|
1202
1204
|
}
|
|
1203
|
-
var
|
|
1204
|
-
function
|
|
1205
|
-
return
|
|
1205
|
+
var jt, An;
|
|
1206
|
+
function Yt() {
|
|
1207
|
+
return An || (An = 1, jt = Qn().extend({
|
|
1206
1208
|
implicit: [
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
+
Xn(),
|
|
1210
|
+
Zn()
|
|
1209
1211
|
],
|
|
1210
1212
|
explicit: [
|
|
1211
|
-
Zn(),
|
|
1212
1213
|
ei(),
|
|
1213
1214
|
ti(),
|
|
1214
|
-
ni()
|
|
1215
|
+
ni(),
|
|
1216
|
+
ii()
|
|
1215
1217
|
]
|
|
1216
|
-
})),
|
|
1218
|
+
})), jt;
|
|
1217
1219
|
}
|
|
1218
|
-
var
|
|
1219
|
-
function
|
|
1220
|
-
if (
|
|
1221
|
-
|
|
1222
|
-
const t =
|
|
1223
|
-
function
|
|
1220
|
+
var Sn;
|
|
1221
|
+
function fo() {
|
|
1222
|
+
if (Sn) return pt;
|
|
1223
|
+
Sn = 1;
|
|
1224
|
+
const t = nt(), o = it(), i = uo(), u = Yt(), r = Object.prototype.hasOwnProperty, a = 1, l = 2, s = 3, m = 4, c = 1, d = 2, y = 3, T = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, M = /[\x85\u2028\u2029]/, re = /[,\[\]{}]/, w = /^(?:!|!!|![0-9A-Za-z-]+!)$/, B = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
1225
|
+
function G(e) {
|
|
1224
1226
|
return Object.prototype.toString.call(e);
|
|
1225
1227
|
}
|
|
1226
1228
|
function x(e) {
|
|
@@ -1307,7 +1309,7 @@ function so() {
|
|
|
1307
1309
|
const U = new Array(256), pe = new Array(256);
|
|
1308
1310
|
for (let e = 0; e < 256; e++)
|
|
1309
1311
|
U[e] = L(e) ? 1 : 0, pe[e] = L(e);
|
|
1310
|
-
function
|
|
1312
|
+
function O(e, f) {
|
|
1311
1313
|
this.input = e, this.filename = f.filename || null, this.schema = f.schema || u, this.onWarning = f.onWarning || null, this.legacy = f.legacy || !1, this.json = f.json || !1, this.listener = f.listener || null, this.maxDepth = typeof f.maxDepth == "number" ? f.maxDepth : 100, this.maxTotalMergeKeys = typeof f.maxTotalMergeKeys == "number" ? f.maxTotalMergeKeys : 1e4, 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.depth = 0, this.totalMergeKeys = 0, this.firstTabInLine = -1, this.documents = [], this.anchorMapTransactions = [];
|
|
1312
1314
|
}
|
|
1313
1315
|
function ie(e, f) {
|
|
@@ -1350,14 +1352,14 @@ function so() {
|
|
|
1350
1352
|
r.call(S, p) || (S[p] = f[p]);
|
|
1351
1353
|
}
|
|
1352
1354
|
}
|
|
1353
|
-
function
|
|
1355
|
+
function Ge(e) {
|
|
1354
1356
|
const f = e.anchorMapTransactions.pop(), v = Object.keys(f);
|
|
1355
1357
|
for (let S = v.length - 1; S >= 0; S -= 1) {
|
|
1356
1358
|
const h = f[v[S]];
|
|
1357
1359
|
h.existed ? e.anchorMap[v[S]] = h.value : delete e.anchorMap[v[S]];
|
|
1358
1360
|
}
|
|
1359
1361
|
}
|
|
1360
|
-
function
|
|
1362
|
+
function Ne(e) {
|
|
1361
1363
|
return {
|
|
1362
1364
|
position: e.position,
|
|
1363
1365
|
line: e.line,
|
|
@@ -1406,7 +1408,7 @@ function so() {
|
|
|
1406
1408
|
e.result += h;
|
|
1407
1409
|
}
|
|
1408
1410
|
}
|
|
1409
|
-
function
|
|
1411
|
+
function Me(e, f, v, S) {
|
|
1410
1412
|
t.isObject(v) || E(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
1411
1413
|
const h = Object.keys(v);
|
|
1412
1414
|
for (let R = 0, n = h.length; R < n; R += 1) {
|
|
@@ -1418,14 +1420,14 @@ function so() {
|
|
|
1418
1420
|
if (Array.isArray(h)) {
|
|
1419
1421
|
h = Array.prototype.slice.call(h);
|
|
1420
1422
|
for (let k = 0, A = h.length; k < A; k += 1)
|
|
1421
|
-
Array.isArray(h[k]) && E(e, "nested arrays are not supported inside keys"), typeof h == "object" &&
|
|
1423
|
+
Array.isArray(h[k]) && E(e, "nested arrays are not supported inside keys"), typeof h == "object" && G(h[k]) === "[object Object]" && (h[k] = "[object Object]");
|
|
1422
1424
|
}
|
|
1423
|
-
if (typeof h == "object" &&
|
|
1425
|
+
if (typeof h == "object" && G(h) === "[object Object]" && (h = "[object Object]"), h = String(h), f === null && (f = {}), S === "tag:yaml.org,2002:merge")
|
|
1424
1426
|
if (Array.isArray(R))
|
|
1425
1427
|
for (let k = 0, A = R.length; k < A; k += 1)
|
|
1426
|
-
|
|
1428
|
+
Me(e, f, R[k], v);
|
|
1427
1429
|
else
|
|
1428
|
-
|
|
1430
|
+
Me(e, f, R, v);
|
|
1429
1431
|
else
|
|
1430
1432
|
!e.json && !r.call(v, h) && r.call(f, h) && (e.line = n || e.line, e.lineStart = p || e.lineStart, e.position = I || e.position, E(e, "duplicated mapping key")), V(f, h, R), delete v[h];
|
|
1431
1433
|
return f;
|
|
@@ -1459,43 +1461,43 @@ function so() {
|
|
|
1459
1461
|
f === 1 ? e.result += " " : f > 1 && (e.result += t.repeat(`
|
|
1460
1462
|
`, f - 1));
|
|
1461
1463
|
}
|
|
1462
|
-
function
|
|
1464
|
+
function ot(e, f, v) {
|
|
1463
1465
|
let S, h, R, n, p, I;
|
|
1464
1466
|
const k = e.kind, A = e.result;
|
|
1465
|
-
let
|
|
1466
|
-
if (Y(
|
|
1467
|
+
let _ = e.input.charCodeAt(e.position);
|
|
1468
|
+
if (Y(_) || te(_) || _ === 35 || _ === 38 || _ === 42 || _ === 33 || _ === 124 || _ === 62 || _ === 39 || _ === 34 || _ === 37 || _ === 64 || _ === 96)
|
|
1467
1469
|
return !1;
|
|
1468
|
-
if (
|
|
1470
|
+
if (_ === 63 || _ === 45) {
|
|
1469
1471
|
const $ = e.input.charCodeAt(e.position + 1);
|
|
1470
1472
|
if (Y($) || v && te($))
|
|
1471
1473
|
return !1;
|
|
1472
1474
|
}
|
|
1473
|
-
for (e.kind = "scalar", e.result = "", S = h = e.position, R = !1;
|
|
1474
|
-
if (
|
|
1475
|
+
for (e.kind = "scalar", e.result = "", S = h = e.position, R = !1; _ !== 0; ) {
|
|
1476
|
+
if (_ === 58) {
|
|
1475
1477
|
const $ = e.input.charCodeAt(e.position + 1);
|
|
1476
1478
|
if (Y($) || v && te($))
|
|
1477
1479
|
break;
|
|
1478
|
-
} else if (
|
|
1480
|
+
} else if (_ === 35) {
|
|
1479
1481
|
const $ = e.input.charCodeAt(e.position - 1);
|
|
1480
1482
|
if (Y($))
|
|
1481
1483
|
break;
|
|
1482
1484
|
} else {
|
|
1483
|
-
if (e.position === e.lineStart && Ue(e) || v && te(
|
|
1485
|
+
if (e.position === e.lineStart && Ue(e) || v && te(_))
|
|
1484
1486
|
break;
|
|
1485
|
-
if (x(
|
|
1487
|
+
if (x(_))
|
|
1486
1488
|
if (n = e.line, p = e.lineStart, I = e.lineIndent, be(e, !1, -1), e.lineIndent >= f) {
|
|
1487
|
-
R = !0,
|
|
1489
|
+
R = !0, _ = e.input.charCodeAt(e.position);
|
|
1488
1490
|
continue;
|
|
1489
1491
|
} else {
|
|
1490
1492
|
e.position = h, e.line = n, e.lineStart = p, e.lineIndent = I;
|
|
1491
1493
|
break;
|
|
1492
1494
|
}
|
|
1493
1495
|
}
|
|
1494
|
-
R && (xe(e, S, h, !1), Re(e, e.line - n), S = h = e.position, R = !1), C(
|
|
1496
|
+
R && (xe(e, S, h, !1), Re(e, e.line - n), S = h = e.position, R = !1), C(_) || (h = e.position + 1), _ = e.input.charCodeAt(++e.position);
|
|
1495
1497
|
}
|
|
1496
1498
|
return xe(e, S, h, !1), e.result ? !0 : (e.kind = k, e.result = A, !1);
|
|
1497
1499
|
}
|
|
1498
|
-
function
|
|
1500
|
+
function rt(e, f) {
|
|
1499
1501
|
let v, S, h = e.input.charCodeAt(e.position);
|
|
1500
1502
|
if (h !== 39)
|
|
1501
1503
|
return !1;
|
|
@@ -1508,7 +1510,7 @@ function so() {
|
|
|
1508
1510
|
else x(h) ? (xe(e, v, S, !0), Re(e, be(e, !1, f)), v = S = e.position) : e.position === e.lineStart && Ue(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, C(h) || (S = e.position));
|
|
1509
1511
|
E(e, "unexpected end of the stream within a single quoted scalar");
|
|
1510
1512
|
}
|
|
1511
|
-
function
|
|
1513
|
+
function We(e, f) {
|
|
1512
1514
|
let v, S, h, R = e.input.charCodeAt(e.position);
|
|
1513
1515
|
if (R !== 34)
|
|
1514
1516
|
return !1;
|
|
@@ -1532,14 +1534,14 @@ function so() {
|
|
|
1532
1534
|
}
|
|
1533
1535
|
E(e, "unexpected end of the stream within a double quoted scalar");
|
|
1534
1536
|
}
|
|
1535
|
-
function
|
|
1537
|
+
function lt(e, f) {
|
|
1536
1538
|
let v = !0, S, h, R;
|
|
1537
1539
|
const n = e.tag;
|
|
1538
1540
|
let p;
|
|
1539
1541
|
const I = e.anchor;
|
|
1540
|
-
let k, A,
|
|
1542
|
+
let k, A, _, $;
|
|
1541
1543
|
const D = /* @__PURE__ */ Object.create(null);
|
|
1542
|
-
let
|
|
1544
|
+
let P, W, Z, de = e.input.charCodeAt(e.position);
|
|
1543
1545
|
if (de === 91)
|
|
1544
1546
|
k = 93, $ = !1, p = [];
|
|
1545
1547
|
else if (de === 123)
|
|
@@ -1549,15 +1551,15 @@ function so() {
|
|
|
1549
1551
|
for (e.anchor !== null && ce(e, e.anchor, p), de = e.input.charCodeAt(++e.position); de !== 0; ) {
|
|
1550
1552
|
if (be(e, !0, f), de = e.input.charCodeAt(e.position), de === k)
|
|
1551
1553
|
return e.position++, e.tag = n, e.anchor = I, e.kind = $ ? "mapping" : "sequence", e.result = p, !0;
|
|
1552
|
-
if (v ? de === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"),
|
|
1554
|
+
if (v ? de === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), W = P = Z = null, A = _ = !1, de === 63) {
|
|
1553
1555
|
const ve = e.input.charCodeAt(e.position + 1);
|
|
1554
|
-
Y(ve) && (A =
|
|
1556
|
+
Y(ve) && (A = _ = !0, e.position++, be(e, !0, f));
|
|
1555
1557
|
}
|
|
1556
|
-
S = e.line, h = e.lineStart, R = e.position, Le(e, f, a, !1, !0),
|
|
1558
|
+
S = e.line, h = e.lineStart, R = e.position, Le(e, f, a, !1, !0), W = e.tag, P = e.result, be(e, !0, f), de = e.input.charCodeAt(e.position), (_ || e.line === S) && de === 58 && (A = !0, de = e.input.charCodeAt(++e.position), be(e, !0, f), Le(e, f, a, !1, !0), Z = e.result), $ ? Be(e, p, D, W, P, Z, S, h, R) : A ? p.push(Be(e, null, D, W, P, Z, S, h, R)) : p.push(P), be(e, !0, f), de = e.input.charCodeAt(e.position), de === 44 ? (v = !0, de = e.input.charCodeAt(++e.position)) : v = !1;
|
|
1557
1559
|
}
|
|
1558
1560
|
E(e, "unexpected end of the stream within a flow collection");
|
|
1559
1561
|
}
|
|
1560
|
-
function
|
|
1562
|
+
function at(e, f) {
|
|
1561
1563
|
let v, S = c, h = !1, R = !1, n = f, p = 0, I = !1, k, A = e.input.charCodeAt(e.position);
|
|
1562
1564
|
if (A === 124)
|
|
1563
1565
|
v = !1;
|
|
@@ -1599,10 +1601,10 @@ function so() {
|
|
|
1599
1601
|
`, p + 1)) : p === 0 ? h && (e.result += " ") : e.result += t.repeat(`
|
|
1600
1602
|
`, p) : e.result += t.repeat(`
|
|
1601
1603
|
`, h ? 1 + p : p), h = !0, R = !0, p = 0;
|
|
1602
|
-
const
|
|
1604
|
+
const _ = e.position;
|
|
1603
1605
|
for (; !x(A) && A !== 0; )
|
|
1604
1606
|
A = e.input.charCodeAt(++e.position);
|
|
1605
|
-
xe(e,
|
|
1607
|
+
xe(e, _, e.position, !1);
|
|
1606
1608
|
}
|
|
1607
1609
|
return !0;
|
|
1608
1610
|
}
|
|
@@ -1628,18 +1630,18 @@ function so() {
|
|
|
1628
1630
|
}
|
|
1629
1631
|
return R ? (e.tag = v, e.anchor = S, e.kind = "sequence", e.result = h, !0) : !1;
|
|
1630
1632
|
}
|
|
1631
|
-
function
|
|
1633
|
+
function ct(e, f, v) {
|
|
1632
1634
|
let S, h, R, n;
|
|
1633
1635
|
const p = e.tag, I = e.anchor, k = {}, A = /* @__PURE__ */ Object.create(null);
|
|
1634
|
-
let
|
|
1636
|
+
let _ = null, $ = null, D = null, P = !1, W = !1;
|
|
1635
1637
|
if (e.firstTabInLine !== -1) return !1;
|
|
1636
1638
|
e.anchor !== null && ce(e, e.anchor, k);
|
|
1637
1639
|
let Z = e.input.charCodeAt(e.position);
|
|
1638
1640
|
for (; Z !== 0; ) {
|
|
1639
|
-
!
|
|
1641
|
+
!P && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation"));
|
|
1640
1642
|
const de = e.input.charCodeAt(e.position + 1), ve = e.line;
|
|
1641
1643
|
if ((Z === 63 || Z === 58) && Y(de))
|
|
1642
|
-
Z === 63 ? (
|
|
1644
|
+
Z === 63 ? (P && (Be(e, k, A, _, $, null, h, R, n), _ = $ = D = null), W = !0, P = !0, S = !0) : P ? (P = !1, S = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, Z = de;
|
|
1643
1645
|
else {
|
|
1644
1646
|
if (h = e.line, R = e.lineStart, n = e.position, !Le(e, v, l, !1, !0))
|
|
1645
1647
|
break;
|
|
@@ -1647,24 +1649,24 @@ function so() {
|
|
|
1647
1649
|
for (Z = e.input.charCodeAt(e.position); C(Z); )
|
|
1648
1650
|
Z = e.input.charCodeAt(++e.position);
|
|
1649
1651
|
if (Z === 58)
|
|
1650
|
-
Z = e.input.charCodeAt(++e.position), Y(Z) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"),
|
|
1651
|
-
else if (
|
|
1652
|
+
Z = e.input.charCodeAt(++e.position), Y(Z) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), P && (Be(e, k, A, _, $, null, h, R, n), _ = $ = D = null), W = !0, P = !1, S = !1, _ = e.tag, $ = e.result;
|
|
1653
|
+
else if (W)
|
|
1652
1654
|
E(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1653
1655
|
else
|
|
1654
1656
|
return e.tag = p, e.anchor = I, !0;
|
|
1655
|
-
} else if (
|
|
1657
|
+
} else if (W)
|
|
1656
1658
|
E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1657
1659
|
else
|
|
1658
1660
|
return e.tag = p, e.anchor = I, !0;
|
|
1659
1661
|
}
|
|
1660
|
-
if ((e.line === ve || e.lineIndent > f) && (
|
|
1662
|
+
if ((e.line === ve || e.lineIndent > f) && (P && (h = e.line, R = e.lineStart, n = e.position), Le(e, f, m, !0, S) && (P ? $ = e.result : D = e.result), P || (Be(e, k, A, _, $, D, h, R, n), _ = $ = D = null), be(e, !0, -1), Z = e.input.charCodeAt(e.position)), (e.line === ve || e.lineIndent > f) && Z !== 0)
|
|
1661
1663
|
E(e, "bad indentation of a mapping entry");
|
|
1662
1664
|
else if (e.lineIndent < f)
|
|
1663
1665
|
break;
|
|
1664
1666
|
}
|
|
1665
|
-
return
|
|
1667
|
+
return P && Be(e, k, A, _, $, null, h, R, n), W && (e.tag = p, e.anchor = I, e.kind = "mapping", e.result = k), W;
|
|
1666
1668
|
}
|
|
1667
|
-
function
|
|
1669
|
+
function ht(e) {
|
|
1668
1670
|
let f = !1, v = !1, S, h, R = e.input.charCodeAt(e.position);
|
|
1669
1671
|
if (R !== 33) return !1;
|
|
1670
1672
|
e.tag !== null && E(e, "duplication of a tag property"), R = e.input.charCodeAt(++e.position), R === 60 ? (f = !0, R = e.input.charCodeAt(++e.position)) : R === 33 ? (v = !0, S = "!!", R = e.input.charCodeAt(++e.position)) : S = "!";
|
|
@@ -1687,7 +1689,7 @@ function so() {
|
|
|
1687
1689
|
}
|
|
1688
1690
|
return f ? e.tag = h : r.call(e.tagMap, S) ? e.tag = e.tagMap[S] + h : S === "!" ? e.tag = "!" + h : S === "!!" ? e.tag = "tag:yaml.org,2002:" + h : E(e, 'undeclared tag handle "' + S + '"'), !0;
|
|
1689
1691
|
}
|
|
1690
|
-
function
|
|
1692
|
+
function st(e) {
|
|
1691
1693
|
let f = e.input.charCodeAt(e.position);
|
|
1692
1694
|
if (f !== 38) return !1;
|
|
1693
1695
|
e.anchor !== null && E(e, "duplication of an anchor property"), f = e.input.charCodeAt(++e.position);
|
|
@@ -1696,7 +1698,7 @@ function so() {
|
|
|
1696
1698
|
f = e.input.charCodeAt(++e.position);
|
|
1697
1699
|
return e.position === v && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(v, e.position), !0;
|
|
1698
1700
|
}
|
|
1699
|
-
function
|
|
1701
|
+
function ut(e) {
|
|
1700
1702
|
let f = e.input.charCodeAt(e.position);
|
|
1701
1703
|
if (f !== 42) return !1;
|
|
1702
1704
|
f = e.input.charCodeAt(++e.position);
|
|
@@ -1707,61 +1709,61 @@ function so() {
|
|
|
1707
1709
|
const S = e.input.slice(v, e.position);
|
|
1708
1710
|
return r.call(e.anchorMap, S) || E(e, 'unidentified alias "' + S + '"'), e.result = e.anchorMap[S], be(e, !0, -1), !0;
|
|
1709
1711
|
}
|
|
1710
|
-
function
|
|
1711
|
-
const h =
|
|
1712
|
-
return ue(e), we(e, f), e.tag = null, e.anchor = null, e.kind = null, e.result = null,
|
|
1712
|
+
function vt(e, f, v, S) {
|
|
1713
|
+
const h = Ne(e);
|
|
1714
|
+
return ue(e), we(e, f), e.tag = null, e.anchor = null, e.kind = null, e.result = null, ct(e, v, S) && e.kind === "mapping" ? (ye(e), !0) : (Ge(e), we(e, h), !1);
|
|
1713
1715
|
}
|
|
1714
1716
|
function Le(e, f, v, S, h) {
|
|
1715
|
-
let R, n, p = 1, I = !1, k = !1, A = null,
|
|
1717
|
+
let R, n, p = 1, I = !1, k = !1, A = null, _, $, D;
|
|
1716
1718
|
e.depth >= e.maxDepth && E(e, "nesting exceeded maxDepth (" + e.maxDepth + ")"), e.depth += 1, e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null;
|
|
1717
|
-
const
|
|
1719
|
+
const P = R = n = m === v || s === v;
|
|
1718
1720
|
if (S && be(e, !0, -1) && (I = !0, e.lineIndent > f ? p = 1 : e.lineIndent === f ? p = 0 : e.lineIndent < f && (p = -1)), p === 1)
|
|
1719
1721
|
for (; ; ) {
|
|
1720
|
-
const
|
|
1721
|
-
if (I && (
|
|
1722
|
+
const W = e.input.charCodeAt(e.position), Z = Ne(e);
|
|
1723
|
+
if (I && (W === 33 && e.tag !== null || W === 38 && e.anchor !== null) || !ht(e) && !st(e))
|
|
1722
1724
|
break;
|
|
1723
|
-
A === null && (A = Z), be(e, !0, -1) ? (I = !0, n =
|
|
1725
|
+
A === null && (A = Z), be(e, !0, -1) ? (I = !0, n = P, e.lineIndent > f ? p = 1 : e.lineIndent === f ? p = 0 : e.lineIndent < f && (p = -1)) : n = !1;
|
|
1724
1726
|
}
|
|
1725
1727
|
if (n && (n = I || h), p === 1 || m === v)
|
|
1726
1728
|
if (a === v || l === v ? $ = f : $ = f + 1, D = e.position - e.lineStart, p === 1)
|
|
1727
|
-
if (n && (Ke(e, D) ||
|
|
1729
|
+
if (n && (Ke(e, D) || ct(e, D, $)) || lt(e, $))
|
|
1728
1730
|
k = !0;
|
|
1729
1731
|
else {
|
|
1730
|
-
const
|
|
1731
|
-
A !== null &&
|
|
1732
|
+
const W = e.input.charCodeAt(e.position);
|
|
1733
|
+
A !== null && P && !n && W !== 124 && W !== 62 && vt(
|
|
1732
1734
|
e,
|
|
1733
1735
|
A,
|
|
1734
1736
|
A.position - A.lineStart,
|
|
1735
1737
|
$
|
|
1736
|
-
) || R &&
|
|
1738
|
+
) || R && at(e, $) || rt(e, $) || We(e, $) ? k = !0 : ut(e) ? (k = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : ot(e, $, a === v) && (k = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && ce(e, e.anchor, e.result);
|
|
1737
1739
|
}
|
|
1738
1740
|
else p === 0 && (k = n && Ke(e, D));
|
|
1739
1741
|
if (e.tag === null)
|
|
1740
1742
|
e.anchor !== null && ce(e, e.anchor, e.result);
|
|
1741
1743
|
else if (e.tag === "?") {
|
|
1742
1744
|
e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"');
|
|
1743
|
-
for (let
|
|
1744
|
-
if (
|
|
1745
|
-
e.result =
|
|
1745
|
+
for (let W = 0, Z = e.implicitTypes.length; W < Z; W += 1)
|
|
1746
|
+
if (_ = e.implicitTypes[W], _.resolve(e.result)) {
|
|
1747
|
+
e.result = _.construct(e.result), e.tag = _.tag, e.anchor !== null && ce(e, e.anchor, e.result);
|
|
1746
1748
|
break;
|
|
1747
1749
|
}
|
|
1748
1750
|
} else if (e.tag !== "!") {
|
|
1749
1751
|
if (r.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1750
|
-
|
|
1752
|
+
_ = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1751
1753
|
else {
|
|
1752
|
-
|
|
1753
|
-
const
|
|
1754
|
-
for (let Z = 0, de =
|
|
1755
|
-
if (e.tag.slice(0,
|
|
1756
|
-
|
|
1754
|
+
_ = null;
|
|
1755
|
+
const W = e.typeMap.multi[e.kind || "fallback"];
|
|
1756
|
+
for (let Z = 0, de = W.length; Z < de; Z += 1)
|
|
1757
|
+
if (e.tag.slice(0, W[Z].tag.length) === W[Z].tag) {
|
|
1758
|
+
_ = W[Z];
|
|
1757
1759
|
break;
|
|
1758
1760
|
}
|
|
1759
1761
|
}
|
|
1760
|
-
|
|
1762
|
+
_ || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && _.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + _.kind + '", not "' + e.kind + '"'), _.resolve(e.result, e.tag) ? (e.result = _.construct(e.result, e.tag), e.anchor !== null && ce(e, e.anchor, e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1761
1763
|
}
|
|
1762
1764
|
return e.listener !== null && e.listener("close", e), e.depth -= 1, e.tag !== null || e.anchor !== null || k;
|
|
1763
1765
|
}
|
|
1764
|
-
function
|
|
1766
|
+
function bt(e) {
|
|
1765
1767
|
const f = e.position;
|
|
1766
1768
|
let v = !1, S;
|
|
1767
1769
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (S = e.input.charCodeAt(e.position)) !== 0 && (be(e, !0, -1), S = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || S !== 37)); ) {
|
|
@@ -1786,46 +1788,46 @@ function so() {
|
|
|
1786
1788
|
}
|
|
1787
1789
|
S !== 0 && je(e), r.call(De, R) ? De[R](e, R, n) : ae(e, 'unknown document directive "' + R + '"');
|
|
1788
1790
|
}
|
|
1789
|
-
if (be(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, be(e, !0, -1)) : v && E(e, "directives end mark is expected"), Le(e, e.lineIndent - 1, m, !1, !0), be(e, !0, -1), e.checkLineBreaks &&
|
|
1791
|
+
if (be(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, be(e, !0, -1)) : v && E(e, "directives end mark is expected"), Le(e, e.lineIndent - 1, m, !1, !0), be(e, !0, -1), e.checkLineBreaks && M.test(e.input.slice(f, e.position)) && ae(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ue(e)) {
|
|
1790
1792
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, be(e, !0, -1));
|
|
1791
1793
|
return;
|
|
1792
1794
|
}
|
|
1793
1795
|
e.position < e.length - 1 && E(e, "end of the stream or a document separator is expected");
|
|
1794
1796
|
}
|
|
1795
|
-
function
|
|
1797
|
+
function dt(e, f) {
|
|
1796
1798
|
e = String(e), f = f || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
1797
1799
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1798
|
-
const v = new
|
|
1800
|
+
const v = new O(e, f), S = e.indexOf("\0");
|
|
1799
1801
|
for (S !== -1 && (v.position = S, E(v, "null byte is not allowed in input")), v.input += "\0"; v.input.charCodeAt(v.position) === 32; )
|
|
1800
1802
|
v.lineIndent += 1, v.position += 1;
|
|
1801
1803
|
for (; v.position < v.length - 1; )
|
|
1802
|
-
|
|
1804
|
+
bt(v);
|
|
1803
1805
|
return v.documents;
|
|
1804
1806
|
}
|
|
1805
|
-
function
|
|
1807
|
+
function ft(e, f, v) {
|
|
1806
1808
|
f !== null && typeof f == "object" && typeof v > "u" && (v = f, f = null);
|
|
1807
|
-
const S =
|
|
1809
|
+
const S = dt(e, v);
|
|
1808
1810
|
if (typeof f != "function")
|
|
1809
1811
|
return S;
|
|
1810
1812
|
for (let h = 0, R = S.length; h < R; h += 1)
|
|
1811
1813
|
f(S[h]);
|
|
1812
1814
|
}
|
|
1813
|
-
function
|
|
1814
|
-
const v =
|
|
1815
|
+
function kt(e, f) {
|
|
1816
|
+
const v = dt(e, f);
|
|
1815
1817
|
if (v.length !== 0) {
|
|
1816
1818
|
if (v.length === 1)
|
|
1817
1819
|
return v[0];
|
|
1818
1820
|
throw new o("expected a single document in the stream, but found more");
|
|
1819
1821
|
}
|
|
1820
1822
|
}
|
|
1821
|
-
return
|
|
1823
|
+
return pt.loadAll = ft, pt.load = kt, pt;
|
|
1822
1824
|
}
|
|
1823
|
-
var
|
|
1824
|
-
function
|
|
1825
|
-
if (
|
|
1826
|
-
|
|
1827
|
-
const t =
|
|
1828
|
-
|
|
1825
|
+
var Ut = {}, Tn;
|
|
1826
|
+
function po() {
|
|
1827
|
+
if (Tn) return Ut;
|
|
1828
|
+
Tn = 1;
|
|
1829
|
+
const t = nt(), o = it(), i = Yt(), u = Object.prototype.toString, r = Object.prototype.hasOwnProperty, a = 65279, l = 9, s = 10, m = 13, c = 32, d = 33, y = 34, T = 35, M = 37, re = 38, w = 39, B = 42, G = 44, x = 45, C = 58, Y = 61, te = 62, me = 63, z = 64, j = 91, L = 93, ne = 96, V = 123, U = 124, pe = 125, O = {};
|
|
1830
|
+
O[0] = "\\0", O[7] = "\\a", O[8] = "\\b", O[9] = "\\t", O[10] = "\\n", O[11] = "\\v", O[12] = "\\f", O[13] = "\\r", O[27] = "\\e", O[34] = '\\"', O[92] = "\\\\", O[133] = "\\N", O[160] = "\\_", O[8232] = "\\L", O[8233] = "\\P";
|
|
1829
1831
|
const ie = [
|
|
1830
1832
|
"y",
|
|
1831
1833
|
"Y",
|
|
@@ -1847,11 +1849,11 @@ function uo() {
|
|
|
1847
1849
|
function ae(n, p) {
|
|
1848
1850
|
if (p === null) return {};
|
|
1849
1851
|
const I = {}, k = Object.keys(p);
|
|
1850
|
-
for (let A = 0,
|
|
1852
|
+
for (let A = 0, _ = k.length; A < _; A += 1) {
|
|
1851
1853
|
let $ = k[A], D = String(p[$]);
|
|
1852
1854
|
$.slice(0, 2) === "!!" && ($ = "tag:yaml.org,2002:" + $.slice(2));
|
|
1853
|
-
const
|
|
1854
|
-
|
|
1855
|
+
const P = n.compiledTypeMap.fallback[$];
|
|
1856
|
+
P && r.call(P.styleAliases, D) && (D = P.styleAliases[D]), I[$] = D;
|
|
1855
1857
|
}
|
|
1856
1858
|
return I;
|
|
1857
1859
|
}
|
|
@@ -1869,18 +1871,18 @@ function uo() {
|
|
|
1869
1871
|
return "\\" + p + t.repeat("0", I - k.length) + k;
|
|
1870
1872
|
}
|
|
1871
1873
|
const ue = 1, ye = 2;
|
|
1872
|
-
function
|
|
1874
|
+
function Ge(n) {
|
|
1873
1875
|
this.schema = n.schema || i, this.indent = Math.max(1, n.indent || 2), this.noArrayIndent = n.noArrayIndent || !1, this.skipInvalid = n.skipInvalid || !1, this.flowLevel = t.isNothing(n.flowLevel) ? -1 : n.flowLevel, this.styleMap = ae(this.schema, n.styles || null), this.sortKeys = n.sortKeys || !1, this.lineWidth = n.lineWidth || 80, this.noRefs = n.noRefs || !1, this.noCompatMode = n.noCompatMode || !1, this.condenseFlow = n.condenseFlow || !1, this.quotingType = n.quotingType === '"' ? ye : ue, this.forceQuotes = n.forceQuotes || !1, this.replacer = typeof n.replacer == "function" ? n.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
1874
1876
|
}
|
|
1875
|
-
function
|
|
1877
|
+
function Ne(n, p) {
|
|
1876
1878
|
const I = t.repeat(" ", p);
|
|
1877
1879
|
let k = 0, A = "";
|
|
1878
|
-
const
|
|
1879
|
-
for (; k <
|
|
1880
|
+
const _ = n.length;
|
|
1881
|
+
for (; k < _; ) {
|
|
1880
1882
|
let $;
|
|
1881
1883
|
const D = n.indexOf(`
|
|
1882
1884
|
`, k);
|
|
1883
|
-
D === -1 ? ($ = n.slice(k), k =
|
|
1885
|
+
D === -1 ? ($ = n.slice(k), k = _) : ($ = n.slice(k, D + 1), k = D + 1), $.length && $ !== `
|
|
1884
1886
|
` && (A += I), A += $;
|
|
1885
1887
|
}
|
|
1886
1888
|
return A;
|
|
@@ -1898,11 +1900,11 @@ function uo() {
|
|
|
1898
1900
|
function xe(n) {
|
|
1899
1901
|
return n === c || n === l;
|
|
1900
1902
|
}
|
|
1901
|
-
function
|
|
1903
|
+
function Me(n) {
|
|
1902
1904
|
return n >= 32 && n <= 126 || n >= 161 && n <= 55295 && n !== 8232 && n !== 8233 || n >= 57344 && n <= 65533 && n !== a || n >= 65536 && n <= 1114111;
|
|
1903
1905
|
}
|
|
1904
1906
|
function Be(n) {
|
|
1905
|
-
return
|
|
1907
|
+
return Me(n) && n !== a && // - b-char
|
|
1906
1908
|
n !== m && n !== s;
|
|
1907
1909
|
}
|
|
1908
1910
|
function je(n, p, I) {
|
|
@@ -1910,7 +1912,7 @@ function uo() {
|
|
|
1910
1912
|
return (
|
|
1911
1913
|
// ns-plain-safe
|
|
1912
1914
|
(I ? k : k && // - c-flow-indicator
|
|
1913
|
-
n !==
|
|
1915
|
+
n !== G && n !== j && n !== L && n !== V && n !== pe) && // ns-plain-char
|
|
1914
1916
|
n !== T && // false on '#'
|
|
1915
1917
|
!(p === C && !A) || // false on ': '
|
|
1916
1918
|
Be(p) && !xe(p) && n === T || // change to true on '[^ ]#'
|
|
@@ -1918,12 +1920,12 @@ function uo() {
|
|
|
1918
1920
|
);
|
|
1919
1921
|
}
|
|
1920
1922
|
function be(n) {
|
|
1921
|
-
return
|
|
1923
|
+
return Me(n) && n !== a && !xe(n) && // - s-white
|
|
1922
1924
|
// - (c-indicator ::=
|
|
1923
1925
|
// “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
|
|
1924
|
-
n !== x && n !== me && n !== C && n !==
|
|
1926
|
+
n !== x && n !== me && n !== C && n !== G && n !== j && n !== L && n !== V && n !== pe && // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
|
|
1925
1927
|
n !== T && n !== re && n !== B && n !== d && n !== U && n !== Y && n !== te && n !== w && n !== y && // | “%” | “@” | “`”)
|
|
1926
|
-
n !==
|
|
1928
|
+
n !== M && n !== z && n !== ne;
|
|
1927
1929
|
}
|
|
1928
1930
|
function Ue(n) {
|
|
1929
1931
|
return !xe(n) && n !== C;
|
|
@@ -1933,203 +1935,203 @@ function uo() {
|
|
|
1933
1935
|
let k;
|
|
1934
1936
|
return I >= 55296 && I <= 56319 && p + 1 < n.length && (k = n.charCodeAt(p + 1), k >= 56320 && k <= 57343) ? (I - 55296) * 1024 + k - 56320 + 65536 : I;
|
|
1935
1937
|
}
|
|
1936
|
-
function
|
|
1938
|
+
function ot(n) {
|
|
1937
1939
|
return /^\n* /.test(n);
|
|
1938
1940
|
}
|
|
1939
|
-
const
|
|
1940
|
-
function
|
|
1941
|
-
let
|
|
1942
|
-
const
|
|
1941
|
+
const rt = 1, We = 2, lt = 3, at = 4, Ke = 5;
|
|
1942
|
+
function ct(n, p, I, k, A, _, $, D) {
|
|
1943
|
+
let P, W = 0, Z = null, de = !1, ve = !1;
|
|
1944
|
+
const Gt = k !== -1;
|
|
1943
1945
|
let Je = -1, Qe = be(Re(n, 0)) && Ue(Re(n, n.length - 1));
|
|
1944
1946
|
if (p || $)
|
|
1945
|
-
for (
|
|
1946
|
-
if (
|
|
1947
|
+
for (P = 0; P < n.length; W >= 65536 ? P += 2 : P++) {
|
|
1948
|
+
if (W = Re(n, P), !Me(W))
|
|
1947
1949
|
return Ke;
|
|
1948
|
-
Qe = Qe && je(
|
|
1950
|
+
Qe = Qe && je(W, Z, D), Z = W;
|
|
1949
1951
|
}
|
|
1950
1952
|
else {
|
|
1951
|
-
for (
|
|
1952
|
-
if (
|
|
1953
|
-
de = !0,
|
|
1954
|
-
|
|
1955
|
-
else if (!
|
|
1953
|
+
for (P = 0; P < n.length; W >= 65536 ? P += 2 : P++) {
|
|
1954
|
+
if (W = Re(n, P), W === s)
|
|
1955
|
+
de = !0, Gt && (ve = ve || // Foldable line = too long, and not more-indented.
|
|
1956
|
+
P - Je - 1 > k && n[Je + 1] !== " ", Je = P);
|
|
1957
|
+
else if (!Me(W))
|
|
1956
1958
|
return Ke;
|
|
1957
|
-
Qe = Qe && je(
|
|
1959
|
+
Qe = Qe && je(W, Z, D), Z = W;
|
|
1958
1960
|
}
|
|
1959
|
-
ve = ve ||
|
|
1961
|
+
ve = ve || Gt && P - Je - 1 > k && n[Je + 1] !== " ";
|
|
1960
1962
|
}
|
|
1961
|
-
return !de && !ve ? Qe && !$ && !A(n) ?
|
|
1963
|
+
return !de && !ve ? Qe && !$ && !A(n) ? rt : _ === ye ? Ke : We : I > 9 && ot(n) ? Ke : $ ? _ === ye ? Ke : We : ve ? at : lt;
|
|
1962
1964
|
}
|
|
1963
|
-
function
|
|
1965
|
+
function ht(n, p, I, k, A) {
|
|
1964
1966
|
n.dump = (function() {
|
|
1965
1967
|
if (p.length === 0)
|
|
1966
1968
|
return n.quotingType === ye ? '""' : "''";
|
|
1967
1969
|
if (!n.noCompatMode && (ie.indexOf(p) !== -1 || E.test(p)))
|
|
1968
1970
|
return n.quotingType === ye ? '"' + p + '"' : "'" + p + "'";
|
|
1969
|
-
const
|
|
1971
|
+
const _ = n.indent * Math.max(1, I), $ = n.lineWidth === -1 ? -1 : Math.max(Math.min(n.lineWidth, 40), n.lineWidth - _), D = k || // No block styles in flow mode.
|
|
1970
1972
|
n.flowLevel > -1 && I >= n.flowLevel;
|
|
1971
|
-
function
|
|
1972
|
-
return De(n,
|
|
1973
|
+
function P(W) {
|
|
1974
|
+
return De(n, W);
|
|
1973
1975
|
}
|
|
1974
|
-
switch (
|
|
1976
|
+
switch (ct(
|
|
1975
1977
|
p,
|
|
1976
1978
|
D,
|
|
1977
1979
|
n.indent,
|
|
1978
1980
|
$,
|
|
1979
|
-
|
|
1981
|
+
P,
|
|
1980
1982
|
n.quotingType,
|
|
1981
1983
|
n.forceQuotes && !k,
|
|
1982
1984
|
A
|
|
1983
1985
|
)) {
|
|
1984
|
-
case
|
|
1986
|
+
case rt:
|
|
1985
1987
|
return p;
|
|
1986
|
-
case
|
|
1988
|
+
case We:
|
|
1987
1989
|
return "'" + p.replace(/'/g, "''") + "'";
|
|
1988
|
-
case rt:
|
|
1989
|
-
return "|" + ct(p, n.indent) + st(Pe(p, O));
|
|
1990
1990
|
case lt:
|
|
1991
|
-
return "
|
|
1991
|
+
return "|" + st(p, n.indent) + ut(Ne(p, _));
|
|
1992
|
+
case at:
|
|
1993
|
+
return ">" + st(p, n.indent) + ut(Ne(vt(p, $), _));
|
|
1992
1994
|
case Ke:
|
|
1993
|
-
return '"' +
|
|
1995
|
+
return '"' + bt(p) + '"';
|
|
1994
1996
|
default:
|
|
1995
1997
|
throw new o("impossible error: invalid scalar style");
|
|
1996
1998
|
}
|
|
1997
1999
|
})();
|
|
1998
2000
|
}
|
|
1999
|
-
function
|
|
2000
|
-
const I =
|
|
2001
|
-
`,
|
|
2001
|
+
function st(n, p) {
|
|
2002
|
+
const I = ot(n) ? String(p) : "", k = n[n.length - 1] === `
|
|
2003
|
+
`, _ = k && (n[n.length - 2] === `
|
|
2002
2004
|
` || n === `
|
|
2003
2005
|
`) ? "+" : k ? "" : "-";
|
|
2004
|
-
return I +
|
|
2006
|
+
return I + _ + `
|
|
2005
2007
|
`;
|
|
2006
2008
|
}
|
|
2007
|
-
function
|
|
2009
|
+
function ut(n) {
|
|
2008
2010
|
return n[n.length - 1] === `
|
|
2009
2011
|
` ? n.slice(0, -1) : n;
|
|
2010
2012
|
}
|
|
2011
|
-
function
|
|
2013
|
+
function vt(n, p) {
|
|
2012
2014
|
const I = /(\n+)([^\n]*)/g;
|
|
2013
2015
|
let k = (function() {
|
|
2014
2016
|
let D = n.indexOf(`
|
|
2015
2017
|
`);
|
|
2016
2018
|
return D = D !== -1 ? D : n.length, I.lastIndex = D, Le(n.slice(0, D), p);
|
|
2017
2019
|
})(), A = n[0] === `
|
|
2018
|
-
` || n[0] === " ",
|
|
2020
|
+
` || n[0] === " ", _, $;
|
|
2019
2021
|
for (; $ = I.exec(n); ) {
|
|
2020
|
-
const D = $[1],
|
|
2021
|
-
|
|
2022
|
-
` : "") + Le(
|
|
2022
|
+
const D = $[1], P = $[2];
|
|
2023
|
+
_ = P[0] === " ", k += D + (!A && !_ && P !== "" ? `
|
|
2024
|
+
` : "") + Le(P, p), A = _;
|
|
2023
2025
|
}
|
|
2024
2026
|
return k;
|
|
2025
2027
|
}
|
|
2026
2028
|
function Le(n, p) {
|
|
2027
2029
|
if (n === "" || n[0] === " ") return n;
|
|
2028
2030
|
const I = / [^ ]/g;
|
|
2029
|
-
let k, A = 0,
|
|
2031
|
+
let k, A = 0, _, $ = 0, D = 0, P = "";
|
|
2030
2032
|
for (; k = I.exec(n); )
|
|
2031
|
-
D = k.index, D - A > p && (
|
|
2032
|
-
` + n.slice(A,
|
|
2033
|
-
return
|
|
2034
|
-
`, n.length - A > p && $ > A ?
|
|
2035
|
-
` + n.slice($ + 1) :
|
|
2033
|
+
D = k.index, D - A > p && (_ = $ > A ? $ : D, P += `
|
|
2034
|
+
` + n.slice(A, _), A = _ + 1), $ = D;
|
|
2035
|
+
return P += `
|
|
2036
|
+
`, n.length - A > p && $ > A ? P += n.slice(A, $) + `
|
|
2037
|
+
` + n.slice($ + 1) : P += n.slice(A), P.slice(1);
|
|
2036
2038
|
}
|
|
2037
|
-
function
|
|
2039
|
+
function bt(n) {
|
|
2038
2040
|
let p = "", I = 0;
|
|
2039
2041
|
for (let k = 0; k < n.length; I >= 65536 ? k += 2 : k++) {
|
|
2040
2042
|
I = Re(n, k);
|
|
2041
|
-
const A =
|
|
2042
|
-
!A &&
|
|
2043
|
+
const A = O[I];
|
|
2044
|
+
!A && Me(I) ? (p += n[k], I >= 65536 && (p += n[k + 1])) : p += A || ce(I);
|
|
2043
2045
|
}
|
|
2044
2046
|
return p;
|
|
2045
2047
|
}
|
|
2046
|
-
function
|
|
2048
|
+
function dt(n, p, I) {
|
|
2047
2049
|
let k = "";
|
|
2048
2050
|
const A = n.tag;
|
|
2049
|
-
for (let
|
|
2050
|
-
let D = I[
|
|
2051
|
-
n.replacer && (D = n.replacer.call(I, String(
|
|
2051
|
+
for (let _ = 0, $ = I.length; _ < $; _ += 1) {
|
|
2052
|
+
let D = I[_];
|
|
2053
|
+
n.replacer && (D = n.replacer.call(I, String(_), D)), (v(n, p, D, !1, !1) || typeof D > "u" && v(n, p, null, !1, !1)) && (k !== "" && (k += "," + (n.condenseFlow ? "" : " ")), k += n.dump);
|
|
2052
2054
|
}
|
|
2053
2055
|
n.tag = A, n.dump = "[" + k + "]";
|
|
2054
2056
|
}
|
|
2055
|
-
function
|
|
2057
|
+
function ft(n, p, I, k) {
|
|
2056
2058
|
let A = "";
|
|
2057
|
-
const
|
|
2059
|
+
const _ = n.tag;
|
|
2058
2060
|
for (let $ = 0, D = I.length; $ < D; $ += 1) {
|
|
2059
|
-
let
|
|
2060
|
-
n.replacer && (
|
|
2061
|
+
let P = I[$];
|
|
2062
|
+
n.replacer && (P = n.replacer.call(I, String($), P)), (v(n, p + 1, P, !0, !0, !1, !0) || typeof P > "u" && v(n, p + 1, null, !0, !0, !1, !0)) && ((!k || A !== "") && (A += we(n, p)), n.dump && s === n.dump.charCodeAt(0) ? A += "-" : A += "- ", A += n.dump);
|
|
2061
2063
|
}
|
|
2062
|
-
n.tag =
|
|
2064
|
+
n.tag = _, n.dump = A || "[]";
|
|
2063
2065
|
}
|
|
2064
|
-
function
|
|
2066
|
+
function kt(n, p, I) {
|
|
2065
2067
|
let k = "";
|
|
2066
|
-
const A = n.tag,
|
|
2067
|
-
for (let $ = 0, D =
|
|
2068
|
-
let
|
|
2069
|
-
k !== "" && (
|
|
2070
|
-
const
|
|
2071
|
-
let Z = I[
|
|
2072
|
-
n.replacer && (Z = n.replacer.call(I,
|
|
2068
|
+
const A = n.tag, _ = Object.keys(I);
|
|
2069
|
+
for (let $ = 0, D = _.length; $ < D; $ += 1) {
|
|
2070
|
+
let P = "";
|
|
2071
|
+
k !== "" && (P += ", "), n.condenseFlow && (P += '"');
|
|
2072
|
+
const W = _[$];
|
|
2073
|
+
let Z = I[W];
|
|
2074
|
+
n.replacer && (Z = n.replacer.call(I, W, Z)), v(n, p, W, !1, !1) && (n.dump.length > 1024 && (P += "? "), P += n.dump + (n.condenseFlow ? '"' : "") + ":" + (n.condenseFlow ? "" : " "), v(n, p, Z, !1, !1) && (P += n.dump, k += P));
|
|
2073
2075
|
}
|
|
2074
2076
|
n.tag = A, n.dump = "{" + k + "}";
|
|
2075
2077
|
}
|
|
2076
2078
|
function e(n, p, I, k) {
|
|
2077
2079
|
let A = "";
|
|
2078
|
-
const
|
|
2080
|
+
const _ = n.tag, $ = Object.keys(I);
|
|
2079
2081
|
if (n.sortKeys === !0)
|
|
2080
2082
|
$.sort();
|
|
2081
2083
|
else if (typeof n.sortKeys == "function")
|
|
2082
2084
|
$.sort(n.sortKeys);
|
|
2083
2085
|
else if (n.sortKeys)
|
|
2084
2086
|
throw new o("sortKeys must be a boolean or a function");
|
|
2085
|
-
for (let D = 0,
|
|
2086
|
-
let
|
|
2087
|
-
(!k || A !== "") && (
|
|
2087
|
+
for (let D = 0, P = $.length; D < P; D += 1) {
|
|
2088
|
+
let W = "";
|
|
2089
|
+
(!k || A !== "") && (W += we(n, p));
|
|
2088
2090
|
const Z = $[D];
|
|
2089
2091
|
let de = I[Z];
|
|
2090
2092
|
if (n.replacer && (de = n.replacer.call(I, Z, de)), !v(n, p + 1, Z, !0, !0, !0))
|
|
2091
2093
|
continue;
|
|
2092
2094
|
const ve = n.tag !== null && n.tag !== "?" || n.dump && n.dump.length > 1024;
|
|
2093
|
-
ve && (n.dump && s === n.dump.charCodeAt(0) ?
|
|
2095
|
+
ve && (n.dump && s === n.dump.charCodeAt(0) ? W += "?" : W += "? "), W += n.dump, ve && (W += we(n, p)), v(n, p + 1, de, !0, ve) && (n.dump && s === n.dump.charCodeAt(0) ? W += ":" : W += ": ", W += n.dump, A += W);
|
|
2094
2096
|
}
|
|
2095
|
-
n.tag =
|
|
2097
|
+
n.tag = _, n.dump = A || "{}";
|
|
2096
2098
|
}
|
|
2097
2099
|
function f(n, p, I) {
|
|
2098
2100
|
const k = I ? n.explicitTypes : n.implicitTypes;
|
|
2099
|
-
for (let A = 0,
|
|
2101
|
+
for (let A = 0, _ = k.length; A < _; A += 1) {
|
|
2100
2102
|
const $ = k[A];
|
|
2101
2103
|
if (($.instanceOf || $.predicate) && (!$.instanceOf || typeof p == "object" && p instanceof $.instanceOf) && (!$.predicate || $.predicate(p))) {
|
|
2102
2104
|
if (I ? $.multi && $.representName ? n.tag = $.representName(p) : n.tag = $.tag : n.tag = "?", $.represent) {
|
|
2103
2105
|
const D = n.styleMap[$.tag] || $.defaultStyle;
|
|
2104
|
-
let
|
|
2106
|
+
let P;
|
|
2105
2107
|
if (u.call($.represent) === "[object Function]")
|
|
2106
|
-
|
|
2108
|
+
P = $.represent(p, D);
|
|
2107
2109
|
else if (r.call($.represent, D))
|
|
2108
|
-
|
|
2110
|
+
P = $.represent[D](p, D);
|
|
2109
2111
|
else
|
|
2110
2112
|
throw new o("!<" + $.tag + '> tag resolver accepts not "' + D + '" style');
|
|
2111
|
-
n.dump =
|
|
2113
|
+
n.dump = P;
|
|
2112
2114
|
}
|
|
2113
2115
|
return !0;
|
|
2114
2116
|
}
|
|
2115
2117
|
}
|
|
2116
2118
|
return !1;
|
|
2117
2119
|
}
|
|
2118
|
-
function v(n, p, I, k, A,
|
|
2120
|
+
function v(n, p, I, k, A, _, $) {
|
|
2119
2121
|
n.tag = null, n.dump = I, f(n, I, !1) || f(n, I, !0);
|
|
2120
|
-
const D = u.call(n.dump),
|
|
2122
|
+
const D = u.call(n.dump), P = k;
|
|
2121
2123
|
k && (k = n.flowLevel < 0 || n.flowLevel > p);
|
|
2122
|
-
const
|
|
2124
|
+
const W = D === "[object Object]" || D === "[object Array]";
|
|
2123
2125
|
let Z, de;
|
|
2124
|
-
if (
|
|
2126
|
+
if (W && (Z = n.duplicates.indexOf(I), de = Z !== -1), (n.tag !== null && n.tag !== "?" || de || n.indent !== 2 && p > 0) && (A = !1), de && n.usedDuplicates[Z])
|
|
2125
2127
|
n.dump = "*ref_" + Z;
|
|
2126
2128
|
else {
|
|
2127
|
-
if (
|
|
2128
|
-
k && Object.keys(n.dump).length !== 0 ? (e(n, p, n.dump, A), de && (n.dump = "&ref_" + Z + n.dump)) : (
|
|
2129
|
+
if (W && de && !n.usedDuplicates[Z] && (n.usedDuplicates[Z] = !0), D === "[object Object]")
|
|
2130
|
+
k && Object.keys(n.dump).length !== 0 ? (e(n, p, n.dump, A), de && (n.dump = "&ref_" + Z + n.dump)) : (kt(n, p, n.dump), de && (n.dump = "&ref_" + Z + " " + n.dump));
|
|
2129
2131
|
else if (D === "[object Array]")
|
|
2130
|
-
k && n.dump.length !== 0 ? (n.noArrayIndent && !$ && p > 0 ?
|
|
2132
|
+
k && n.dump.length !== 0 ? (n.noArrayIndent && !$ && p > 0 ? ft(n, p - 1, n.dump, A) : ft(n, p, n.dump, A), de && (n.dump = "&ref_" + Z + n.dump)) : (dt(n, p, n.dump), de && (n.dump = "&ref_" + Z + " " + n.dump));
|
|
2131
2133
|
else if (D === "[object String]")
|
|
2132
|
-
n.tag !== "?" &&
|
|
2134
|
+
n.tag !== "?" && ht(n, n.dump, p, _, P);
|
|
2133
2135
|
else {
|
|
2134
2136
|
if (D === "[object Undefined]")
|
|
2135
2137
|
return !1;
|
|
@@ -2149,8 +2151,8 @@ function uo() {
|
|
|
2149
2151
|
const I = [], k = [];
|
|
2150
2152
|
h(n, I, k);
|
|
2151
2153
|
const A = k.length;
|
|
2152
|
-
for (let
|
|
2153
|
-
p.duplicates.push(I[k[
|
|
2154
|
+
for (let _ = 0; _ < A; _ += 1)
|
|
2155
|
+
p.duplicates.push(I[k[_]]);
|
|
2154
2156
|
p.usedDuplicates = new Array(A);
|
|
2155
2157
|
}
|
|
2156
2158
|
function h(n, p, I) {
|
|
@@ -2159,68 +2161,68 @@ function uo() {
|
|
|
2159
2161
|
if (k !== -1)
|
|
2160
2162
|
I.indexOf(k) === -1 && I.push(k);
|
|
2161
2163
|
else if (p.push(n), Array.isArray(n))
|
|
2162
|
-
for (let A = 0,
|
|
2164
|
+
for (let A = 0, _ = n.length; A < _; A += 1)
|
|
2163
2165
|
h(n[A], p, I);
|
|
2164
2166
|
else {
|
|
2165
2167
|
const A = Object.keys(n);
|
|
2166
|
-
for (let
|
|
2167
|
-
h(n[A[
|
|
2168
|
+
for (let _ = 0, $ = A.length; _ < $; _ += 1)
|
|
2169
|
+
h(n[A[_]], p, I);
|
|
2168
2170
|
}
|
|
2169
2171
|
}
|
|
2170
2172
|
}
|
|
2171
2173
|
function R(n, p) {
|
|
2172
2174
|
p = p || {};
|
|
2173
|
-
const I = new
|
|
2175
|
+
const I = new Ge(p);
|
|
2174
2176
|
I.noRefs || S(n, I);
|
|
2175
2177
|
let k = n;
|
|
2176
2178
|
return I.replacer && (k = I.replacer.call({ "": k }, "", k)), v(I, 0, k, !0, !0) ? I.dump + `
|
|
2177
2179
|
` : "";
|
|
2178
2180
|
}
|
|
2179
|
-
return
|
|
2181
|
+
return Ut.dump = R, Ut;
|
|
2180
2182
|
}
|
|
2181
|
-
var
|
|
2182
|
-
function
|
|
2183
|
-
if (
|
|
2184
|
-
|
|
2185
|
-
const t =
|
|
2183
|
+
var wn;
|
|
2184
|
+
function mo() {
|
|
2185
|
+
if (wn) return $e;
|
|
2186
|
+
wn = 1;
|
|
2187
|
+
const t = fo(), o = po();
|
|
2186
2188
|
function i(u, r) {
|
|
2187
2189
|
return function() {
|
|
2188
2190
|
throw new Error("Function yaml." + u + " is removed in js-yaml 4. Use yaml." + r + " instead, which is now safe by default.");
|
|
2189
2191
|
};
|
|
2190
2192
|
}
|
|
2191
|
-
return $e.Type = Ie(), $e.Schema =
|
|
2192
|
-
binary:
|
|
2193
|
+
return $e.Type = Ie(), $e.Schema = Dn(), $e.FAILSAFE_SCHEMA = Hn(), $e.JSON_SCHEMA = Jn(), $e.CORE_SCHEMA = Qn(), $e.DEFAULT_SCHEMA = Yt(), $e.load = t.load, $e.loadAll = t.loadAll, $e.dump = o.dump, $e.YAMLException = it(), $e.types = {
|
|
2194
|
+
binary: ei(),
|
|
2193
2195
|
float: Wn(),
|
|
2194
|
-
map:
|
|
2195
|
-
null:
|
|
2196
|
-
pairs:
|
|
2197
|
-
set:
|
|
2198
|
-
timestamp:
|
|
2199
|
-
bool:
|
|
2200
|
-
int:
|
|
2201
|
-
merge:
|
|
2202
|
-
omap:
|
|
2203
|
-
seq:
|
|
2204
|
-
str:
|
|
2196
|
+
map: zn(),
|
|
2197
|
+
null: Yn(),
|
|
2198
|
+
pairs: ni(),
|
|
2199
|
+
set: ii(),
|
|
2200
|
+
timestamp: Xn(),
|
|
2201
|
+
bool: Vn(),
|
|
2202
|
+
int: Gn(),
|
|
2203
|
+
merge: Zn(),
|
|
2204
|
+
omap: ti(),
|
|
2205
|
+
seq: Un(),
|
|
2206
|
+
str: jn()
|
|
2205
2207
|
}, $e.safeLoad = i("safeLoad", "load"), $e.safeLoadAll = i("safeLoadAll", "loadAll"), $e.safeDump = i("safeDump", "dump"), $e;
|
|
2206
2208
|
}
|
|
2207
|
-
var
|
|
2208
|
-
const
|
|
2209
|
-
Type:
|
|
2210
|
-
Schema:
|
|
2211
|
-
FAILSAFE_SCHEMA:
|
|
2212
|
-
JSON_SCHEMA:
|
|
2213
|
-
CORE_SCHEMA:
|
|
2214
|
-
DEFAULT_SCHEMA:
|
|
2215
|
-
load:
|
|
2216
|
-
loadAll:
|
|
2217
|
-
dump:
|
|
2218
|
-
YAMLException:
|
|
2219
|
-
types:
|
|
2220
|
-
safeLoad:
|
|
2221
|
-
safeLoadAll:
|
|
2222
|
-
safeDump:
|
|
2223
|
-
} =
|
|
2209
|
+
var yo = mo();
|
|
2210
|
+
const Vt = /* @__PURE__ */ so(yo), {
|
|
2211
|
+
Type: gl,
|
|
2212
|
+
Schema: hl,
|
|
2213
|
+
FAILSAFE_SCHEMA: vl,
|
|
2214
|
+
JSON_SCHEMA: bl,
|
|
2215
|
+
CORE_SCHEMA: kl,
|
|
2216
|
+
DEFAULT_SCHEMA: Cl,
|
|
2217
|
+
load: Al,
|
|
2218
|
+
loadAll: Sl,
|
|
2219
|
+
dump: Tl,
|
|
2220
|
+
YAMLException: wl,
|
|
2221
|
+
types: $l,
|
|
2222
|
+
safeLoad: El,
|
|
2223
|
+
safeLoadAll: Il,
|
|
2224
|
+
safeDump: xl
|
|
2225
|
+
} = Vt, go = /* @__PURE__ */ he({
|
|
2224
2226
|
__name: "DeckCallout",
|
|
2225
2227
|
emits: ["click-cta", "dismiss"],
|
|
2226
2228
|
setup(t) {
|
|
@@ -2239,7 +2241,7 @@ const Yt = /* @__PURE__ */ ao(po), {
|
|
|
2239
2241
|
class: "cta",
|
|
2240
2242
|
type: "button",
|
|
2241
2243
|
onClick: r[0] || (r[0] = (l) => u.$emit("click-cta"))
|
|
2242
|
-
},
|
|
2244
|
+
}, F(b(o)("deckCallout.cta")), 1)
|
|
2243
2245
|
]),
|
|
2244
2246
|
_: 1
|
|
2245
2247
|
})
|
|
@@ -2248,7 +2250,7 @@ const Yt = /* @__PURE__ */ ao(po), {
|
|
|
2248
2250
|
});
|
|
2249
2251
|
};
|
|
2250
2252
|
}
|
|
2251
|
-
}),
|
|
2253
|
+
}), ho = /* @__PURE__ */ Ae(go, [["__scopeId", "data-v-0bf1334c"]]), oi = /* @__PURE__ */ he({
|
|
2252
2254
|
inheritAttrs: !1,
|
|
2253
2255
|
__name: "YamlCodeBlock",
|
|
2254
2256
|
props: {
|
|
@@ -2276,14 +2278,14 @@ const Yt = /* @__PURE__ */ ao(po), {
|
|
|
2276
2278
|
setup(t, { emit: o }) {
|
|
2277
2279
|
const i = t, u = o, r = le("visible"), a = (c) => {
|
|
2278
2280
|
const d = Object.fromEntries(Object.entries(c).filter(([, y]) => y !== null && y !== "" && (Array.isArray(y) ? y.length !== 0 : !0)));
|
|
2279
|
-
return Object.keys(d).length === 0 && d.constructor === Object ? "" :
|
|
2280
|
-
}, l =
|
|
2281
|
-
|
|
2281
|
+
return Object.keys(d).length === 0 && d.constructor === Object ? "" : Vt.dump(d).trim();
|
|
2282
|
+
}, l = N(() => a(i.entityRecord)), s = N(() => a(i.unredactedRecord || i.entityRecord));
|
|
2283
|
+
Oe(() => i.deckCalloutPreferenceKey, (c) => {
|
|
2282
2284
|
if (c) {
|
|
2283
2285
|
const d = localStorage.getItem(c);
|
|
2284
2286
|
r.value = d === "dismissed" ? "dismissed" : "visible";
|
|
2285
2287
|
}
|
|
2286
|
-
}, { immediate: !0 }),
|
|
2288
|
+
}, { immediate: !0 }), Oe(r, (c) => {
|
|
2287
2289
|
const d = i.deckCalloutPreferenceKey;
|
|
2288
2290
|
d && localStorage.setItem(d, c);
|
|
2289
2291
|
});
|
|
@@ -2293,12 +2295,12 @@ const Yt = /* @__PURE__ */ ao(po), {
|
|
|
2293
2295
|
return (c, d) => {
|
|
2294
2296
|
const y = ee("KCodeBlock");
|
|
2295
2297
|
return g(), q(Te, null, [
|
|
2296
|
-
i.deckCalloutPreferenceKey && r.value === "visible" ? (g(), H(
|
|
2298
|
+
i.deckCalloutPreferenceKey && r.value === "visible" ? (g(), H(ho, {
|
|
2297
2299
|
key: 0,
|
|
2298
2300
|
onClickCta: d[0] || (d[0] = (T) => c.$emit("deck-callout:click-cta")),
|
|
2299
2301
|
onDismiss: d[1] || (d[1] = (T) => m())
|
|
2300
2302
|
})) : Q("", !0),
|
|
2301
|
-
X("div",
|
|
2303
|
+
X("div", tt({ class: "yaml-config config-card-code-block" }, c.$attrs), [
|
|
2302
2304
|
i.entityRecord ? (g(), H(y, {
|
|
2303
2305
|
key: 0,
|
|
2304
2306
|
id: "yaml-codeblock",
|
|
@@ -2306,14 +2308,15 @@ const Yt = /* @__PURE__ */ ao(po), {
|
|
|
2306
2308
|
"copy-code": s.value,
|
|
2307
2309
|
"data-dd-privacy": "mask",
|
|
2308
2310
|
language: "yaml",
|
|
2311
|
+
"max-height": b(et),
|
|
2309
2312
|
theme: "dark",
|
|
2310
2313
|
onCodeBlockRender: b(Ye)
|
|
2311
|
-
}, null, 8, ["code", "copy-code", "onCodeBlockRender"])) : Q("", !0)
|
|
2314
|
+
}, null, 8, ["code", "copy-code", "max-height", "onCodeBlockRender"])) : Q("", !0)
|
|
2312
2315
|
], 16)
|
|
2313
2316
|
], 64);
|
|
2314
2317
|
};
|
|
2315
2318
|
}
|
|
2316
|
-
}),
|
|
2319
|
+
}), vo = { class: "terraform-config config-card-code-block" }, ke = " ", $n = "TF_MULTILINE_EOT", zt = "cloud_gateway_addon", ri = /* @__PURE__ */ he({
|
|
2317
2320
|
__name: "TerraformCodeBlock",
|
|
2318
2321
|
props: {
|
|
2319
2322
|
/** A record to indicate the entity's configuration, the visible code content (may be redacted) */
|
|
@@ -2329,7 +2332,7 @@ const Yt = /* @__PURE__ */ ao(po), {
|
|
|
2329
2332
|
entityType: {
|
|
2330
2333
|
type: String,
|
|
2331
2334
|
required: !0,
|
|
2332
|
-
validator: (t) =>
|
|
2335
|
+
validator: (t) => gt.includes(t)
|
|
2333
2336
|
},
|
|
2334
2337
|
credentialType: {
|
|
2335
2338
|
type: String,
|
|
@@ -2342,33 +2345,33 @@ const Yt = /* @__PURE__ */ ao(po), {
|
|
|
2342
2345
|
}
|
|
2343
2346
|
},
|
|
2344
2347
|
setup(t) {
|
|
2345
|
-
const o = t, i =
|
|
2348
|
+
const o = t, i = N(() => {
|
|
2346
2349
|
const w = o.entityRecord;
|
|
2347
2350
|
if (!w || typeof w != "object")
|
|
2348
2351
|
return !1;
|
|
2349
2352
|
const B = w.config;
|
|
2350
2353
|
return !B || typeof B != "object" ? !1 : typeof B.managed_cache < "u" || typeof B.capacity_config < "u";
|
|
2351
|
-
}), u =
|
|
2354
|
+
}), u = N(() => typeof o.entityType == "string" && o.entityType.length > 0 ? o.entityType : i.value ? zt : Pe.Partial), r = N(() => gi.includes(u.value)), a = N(() => hi.includes(u.value)), l = (w, B) => {
|
|
2352
2355
|
if (w.includes(`
|
|
2353
2356
|
`)) {
|
|
2354
2357
|
const x = B + ke, C = w.split(`
|
|
2355
2358
|
`).map((Y) => `${x}${Y}`).join(`
|
|
2356
2359
|
`);
|
|
2357
|
-
return `<<-${
|
|
2360
|
+
return `<<-${$n}
|
|
2358
2361
|
${C}
|
|
2359
|
-
${x}${
|
|
2362
|
+
${x}${$n}`;
|
|
2360
2363
|
}
|
|
2361
2364
|
return `"${w.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
2362
2365
|
}, s = (w, B) => {
|
|
2363
|
-
const
|
|
2366
|
+
const G = ke;
|
|
2364
2367
|
let x = "";
|
|
2365
|
-
return typeof w == "string" ? x += `${
|
|
2366
|
-
` : x += `${
|
|
2368
|
+
return typeof w == "string" ? x += `${G}${B} = ${l(w, G)}
|
|
2369
|
+
` : x += `${G}${B} = ${String(w ?? "")}
|
|
2367
2370
|
`, x;
|
|
2368
|
-
}, m = (w, B,
|
|
2371
|
+
}, m = (w, B, G = "") => {
|
|
2369
2372
|
if (typeof w != "object")
|
|
2370
2373
|
return "Invalid object";
|
|
2371
|
-
const x = ke +
|
|
2374
|
+
const x = ke + G;
|
|
2372
2375
|
let C = "";
|
|
2373
2376
|
if (B && (C += `${x}${B} = {
|
|
2374
2377
|
`), w === null)
|
|
@@ -2382,10 +2385,10 @@ ${x}${wn}`;
|
|
|
2382
2385
|
`;
|
|
2383
2386
|
return B ? C += `${x}}
|
|
2384
2387
|
` : C;
|
|
2385
|
-
}, c = (w, B,
|
|
2388
|
+
}, c = (w, B, G = "") => {
|
|
2386
2389
|
if (!Array.isArray(w))
|
|
2387
2390
|
return "Invalid array";
|
|
2388
|
-
const x = ke +
|
|
2391
|
+
const x = ke + G;
|
|
2389
2392
|
let C = "";
|
|
2390
2393
|
B && (w.length === 0 ? C += `${x}${B} = [` : C += `${x}${B} = [
|
|
2391
2394
|
`);
|
|
@@ -2400,12 +2403,12 @@ ${x}${wn}`;
|
|
|
2400
2403
|
`), C;
|
|
2401
2404
|
}, d = (w) => w.replace(/\$\{/g, () => "$${"), y = (w) => {
|
|
2402
2405
|
let B = "";
|
|
2403
|
-
for (const [
|
|
2404
|
-
Array.isArray(x) ? B += c(x,
|
|
2406
|
+
for (const [G, x] of Object.entries(w))
|
|
2407
|
+
Array.isArray(x) ? B += c(x, G) : typeof x == "object" ? B += m(x, G) : B += s(x, G);
|
|
2405
2408
|
return d(B);
|
|
2406
2409
|
}, T = (w) => {
|
|
2407
|
-
const B = Object.fromEntries(Object.entries(w).filter(([, Y]) => Y != null)),
|
|
2408
|
-
if (
|
|
2410
|
+
const B = Object.fromEntries(Object.entries(w).filter(([, Y]) => Y != null)), G = w.config ? Object.fromEntries(Object.entries(w?.config).filter(([, Y]) => Y != null)) : void 0;
|
|
2411
|
+
if (G && (B.config = G), Object.keys(B).length === 0)
|
|
2409
2412
|
return "";
|
|
2410
2413
|
delete B.id;
|
|
2411
2414
|
let x = "", C = "";
|
|
@@ -2414,39 +2417,40 @@ ${x}${wn}`;
|
|
|
2414
2417
|
x += `resource "konnect_event_gateway_${Y}" "my_eventgateway${Y.replaceAll("_", "")}" {
|
|
2415
2418
|
`, x += `${ke}provider = konnect-beta
|
|
2416
2419
|
`;
|
|
2417
|
-
} else if (u.value ===
|
|
2420
|
+
} else if (u.value === Pe.Plugin) {
|
|
2418
2421
|
const Y = o.credentialType.replace(/-/g, "_") || (B.name + "").replace(/-/g, "_");
|
|
2419
2422
|
delete B.name, x += `resource "konnect_gateway_plugin_${Y}" "my_${Y}" {
|
|
2420
2423
|
`;
|
|
2421
2424
|
} else a.value ? (x += `resource "konnect_${u.value}" "my_${u.value}" {
|
|
2422
2425
|
`, x += `${ke}provider = konnect-beta
|
|
2423
|
-
`) : i.value || u.value ===
|
|
2426
|
+
`) : i.value || u.value === zt ? x += `resource "konnect_cloud_gateway_addon" "managed_cache" {
|
|
2424
2427
|
` : x += `resource "konnect_gateway_${u.value}" "my_${u.value}" {
|
|
2425
2428
|
`;
|
|
2426
|
-
return x += y(B), !r.value && !a.value && u.value !==
|
|
2429
|
+
return x += y(B), !r.value && !a.value && u.value !== zt ? x += `${ke}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
|
|
2427
2430
|
` : C && (x += `${ke}${C} = {
|
|
2428
2431
|
`, x += `${ke}${ke}id = konnect_gateway_${C}.my_${C}.id
|
|
2429
2432
|
`, x += `${ke}}
|
|
2430
2433
|
`), x += `}
|
|
2431
2434
|
`, x;
|
|
2432
|
-
},
|
|
2435
|
+
}, M = N(() => T(o.entityRecord)), re = N(() => T(o.unredactedRecord || o.entityRecord));
|
|
2433
2436
|
return (w, B) => {
|
|
2434
|
-
const
|
|
2435
|
-
return g(), q("div",
|
|
2436
|
-
o.entityRecord ? (g(), H(
|
|
2437
|
+
const G = ee("KCodeBlock");
|
|
2438
|
+
return g(), q("div", vo, [
|
|
2439
|
+
o.entityRecord ? (g(), H(G, {
|
|
2437
2440
|
key: 0,
|
|
2438
2441
|
id: "terraform-codeblock",
|
|
2439
|
-
code:
|
|
2442
|
+
code: M.value,
|
|
2440
2443
|
"copy-code": re.value,
|
|
2441
2444
|
"data-dd-privacy": "mask",
|
|
2442
2445
|
language: "terraform",
|
|
2446
|
+
"max-height": b(et),
|
|
2443
2447
|
theme: "dark",
|
|
2444
2448
|
onCodeBlockRender: b(Ye)
|
|
2445
|
-
}, null, 8, ["code", "copy-code", "onCodeBlockRender"])) : Q("", !0)
|
|
2449
|
+
}, null, 8, ["code", "copy-code", "max-height", "onCodeBlockRender"])) : Q("", !0)
|
|
2446
2450
|
]);
|
|
2447
2451
|
};
|
|
2448
2452
|
}
|
|
2449
|
-
}),
|
|
2453
|
+
}), bo = /* @__PURE__ */ he({
|
|
2450
2454
|
__name: "GeneratePatModal",
|
|
2451
2455
|
props: {
|
|
2452
2456
|
visible: { type: Boolean },
|
|
@@ -2468,16 +2472,16 @@ ${x}${wn}`;
|
|
|
2468
2472
|
const T = /* @__PURE__ */ new Date();
|
|
2469
2473
|
T.setDate(T.getDate() + Number(l.value));
|
|
2470
2474
|
try {
|
|
2471
|
-
const
|
|
2472
|
-
u("generated",
|
|
2473
|
-
} catch (
|
|
2474
|
-
console.error("Failed to create PAT:",
|
|
2475
|
+
const M = await i.generateKonnectPat(a.value, T);
|
|
2476
|
+
u("generated", M);
|
|
2477
|
+
} catch (M) {
|
|
2478
|
+
console.error("Failed to create PAT:", M), m.value = M instanceof Error ? M.message : String(M);
|
|
2475
2479
|
} finally {
|
|
2476
2480
|
s.value = !1;
|
|
2477
2481
|
}
|
|
2478
2482
|
};
|
|
2479
|
-
return (T,
|
|
2480
|
-
const re = ee("KInput"), w = ee("KSelect"), B = ee("KAlert"),
|
|
2483
|
+
return (T, M) => {
|
|
2484
|
+
const re = ee("KInput"), w = ee("KSelect"), B = ee("KAlert"), G = ee("KButton"), x = ee("KModal");
|
|
2481
2485
|
return g(), H(x, {
|
|
2482
2486
|
class: "generate-pat-modal",
|
|
2483
2487
|
"max-width": "640px",
|
|
@@ -2487,38 +2491,38 @@ ${x}${wn}`;
|
|
|
2487
2491
|
onProceed: y
|
|
2488
2492
|
}, {
|
|
2489
2493
|
"footer-actions": K(() => [
|
|
2490
|
-
J(
|
|
2494
|
+
J(G, {
|
|
2491
2495
|
appearance: "tertiary",
|
|
2492
2496
|
onClick: d
|
|
2493
2497
|
}, {
|
|
2494
2498
|
default: K(() => [
|
|
2495
|
-
oe(
|
|
2499
|
+
oe(F(b(r)("generatePatModal.actions.cancel")), 1)
|
|
2496
2500
|
]),
|
|
2497
2501
|
_: 1
|
|
2498
2502
|
}),
|
|
2499
|
-
J(
|
|
2503
|
+
J(G, {
|
|
2500
2504
|
appearance: "primary",
|
|
2501
2505
|
disabled: !a.value || s.value,
|
|
2502
2506
|
onClick: y
|
|
2503
2507
|
}, {
|
|
2504
2508
|
default: K(() => [
|
|
2505
|
-
oe(
|
|
2509
|
+
oe(F(s.value ? b(r)("generatePatModal.actions.generating") : b(r)("generatePatModal.actions.generate")), 1)
|
|
2506
2510
|
]),
|
|
2507
2511
|
_: 1
|
|
2508
2512
|
}, 8, ["disabled"])
|
|
2509
2513
|
]),
|
|
2510
2514
|
default: K(() => [
|
|
2511
|
-
X("div", null,
|
|
2515
|
+
X("div", null, F(b(r)("generatePatModal.description")), 1),
|
|
2512
2516
|
J(re, {
|
|
2513
2517
|
modelValue: a.value,
|
|
2514
|
-
"onUpdate:modelValue":
|
|
2518
|
+
"onUpdate:modelValue": M[0] || (M[0] = (C) => a.value = C),
|
|
2515
2519
|
label: b(r)("generatePatModal.fields.name.label"),
|
|
2516
2520
|
placeholder: b(r)("generatePatModal.fields.name.placeholder"),
|
|
2517
2521
|
required: ""
|
|
2518
2522
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
2519
2523
|
J(w, {
|
|
2520
2524
|
modelValue: l.value,
|
|
2521
|
-
"onUpdate:modelValue":
|
|
2525
|
+
"onUpdate:modelValue": M[1] || (M[1] = (C) => l.value = C),
|
|
2522
2526
|
items: c,
|
|
2523
2527
|
label: b(r)("generatePatModal.fields.expiresAt.label"),
|
|
2524
2528
|
placeholder: b(r)("generatePatModal.fields.expiresAt.placeholder"),
|
|
@@ -2534,10 +2538,10 @@ ${x}${wn}`;
|
|
|
2534
2538
|
}, 8, ["title", "visible"]);
|
|
2535
2539
|
};
|
|
2536
2540
|
}
|
|
2537
|
-
}),
|
|
2541
|
+
}), ko = /* @__PURE__ */ Ae(bo, [["__scopeId", "data-v-be3cd315"]]), Co = { class: "step-title" }, Ao = {
|
|
2538
2542
|
key: 3,
|
|
2539
2543
|
class: "konnect-pat-actions"
|
|
2540
|
-
},
|
|
2544
|
+
}, So = { class: "step-title" }, To = { class: "customization-secret-advise" }, wo = /* @__PURE__ */ he({
|
|
2541
2545
|
__name: "DeckCodeBlockInternal",
|
|
2542
2546
|
props: {
|
|
2543
2547
|
app: {},
|
|
@@ -2552,31 +2556,31 @@ ${x}${wn}`;
|
|
|
2552
2556
|
generateKonnectPat: { type: Function }
|
|
2553
2557
|
},
|
|
2554
2558
|
setup(t) {
|
|
2555
|
-
const o = On(
|
|
2556
|
-
i.isCustomizing && !o && console.warn(
|
|
2559
|
+
const o = On(vi, null), i = t;
|
|
2560
|
+
i.isCustomizing && !o && console.warn(bi);
|
|
2557
2561
|
const { i18n: u, i18nT: r } = fe.useI18n(), { t: a } = u, l = le(""), s = le(""), m = le(""), c = le(!1), d = [
|
|
2558
2562
|
{ value: "bash", label: "Linux / macOS Bash" },
|
|
2559
2563
|
{ value: "powershell", label: "Windows PowerShell" }
|
|
2560
|
-
], y = le(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), T =
|
|
2564
|
+
], y = le(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), T = N(() => {
|
|
2561
2565
|
const x = {
|
|
2562
2566
|
_format_version: "3.0"
|
|
2563
2567
|
};
|
|
2564
2568
|
return i.controlPlaneName && (x._konnect = {
|
|
2565
2569
|
control_plane_name: i.controlPlaneName
|
|
2566
2570
|
}), i.workspace && (x._workspace = i.workspace), x;
|
|
2567
|
-
}),
|
|
2571
|
+
}), M = (x) => {
|
|
2568
2572
|
const C = Object.fromEntries(Object.entries(x).filter(([, me]) => me !== null && me !== "" && (Array.isArray(me) ? me.length !== 0 : !0)));
|
|
2569
|
-
i.entityType ===
|
|
2570
|
-
const Y = i.entityType ===
|
|
2573
|
+
i.entityType === Pe.Plugin ? (C.service?.id && (C.service = C.service.id), C.route?.id && (C.route = C.route.id), C.consumer?.id && (C.consumer = C.consumer.id), C.consumer_group?.id && (C.consumer_group = C.consumer_group.id)) : i.entityType === Pe.Key && C.key_set?.id && (C.key_set = C.key_set.id);
|
|
2574
|
+
const Y = i.entityType === Pe.KeySet ? "key_sets" : i.entityType + "s", te = {
|
|
2571
2575
|
...T.value,
|
|
2572
2576
|
[Y]: [C]
|
|
2573
2577
|
};
|
|
2574
|
-
return
|
|
2575
|
-
}, re =
|
|
2576
|
-
function
|
|
2578
|
+
return Vt.dump(te, { quotingType: '"' }).trim();
|
|
2579
|
+
}, re = N(() => M(i.entityRecord)), w = N(() => M(i.unredactedRecord || i.entityRecord)), B = N(() => y.value === "bash" ? `export DECK_KONNECT_TOKEN='${l.value || "YOUR_KONNECT_PAT"}'` : `$env:DECK_KONNECT_TOKEN = "${l.value || "YOUR_KONNECT_PAT"}"`);
|
|
2580
|
+
function G(x) {
|
|
2577
2581
|
l.value = x, c.value = !1;
|
|
2578
2582
|
}
|
|
2579
|
-
return
|
|
2583
|
+
return ui(() => {
|
|
2580
2584
|
let x = "deck gateway apply -";
|
|
2581
2585
|
i.geoApiServerUrl ? x += ` --konnect-addr ${i.geoApiServerUrl}` : i.kongAdminApiUrl && (x += ` --kong-addr ${i.kongAdminApiUrl}`), y.value === "bash" ? (s.value = `echo '
|
|
2582
2586
|
${re.value}
|
|
@@ -2590,23 +2594,23 @@ ${w.value}
|
|
|
2590
2594
|
}), (x, C) => {
|
|
2591
2595
|
const Y = ee("KSelect"), te = ee("KBadge"), me = ee("KCodeBlock"), z = ee("KAlert"), j = ee("KButton");
|
|
2592
2596
|
return g(), q(Te, null, [
|
|
2593
|
-
X("div",
|
|
2597
|
+
X("div", tt({ class: "deck-config config-card-code-block" }, x.$attrs), [
|
|
2594
2598
|
J(Y, {
|
|
2595
2599
|
modelValue: y.value,
|
|
2596
2600
|
"onUpdate:modelValue": C[0] || (C[0] = (L) => y.value = L),
|
|
2597
2601
|
items: d
|
|
2598
2602
|
}, {
|
|
2599
2603
|
"item-template": K(({ item: L }) => [
|
|
2600
|
-
L.value === "powershell" ? (g(), H(b(
|
|
2601
|
-
oe(" " +
|
|
2604
|
+
L.value === "powershell" ? (g(), H(b(Jt), { key: 0 })) : (g(), H(b(Qt), { key: 1 })),
|
|
2605
|
+
oe(" " + F(L.label), 1)
|
|
2602
2606
|
]),
|
|
2603
2607
|
"selected-item-template": K(({ item: L }) => [
|
|
2604
|
-
L.value === "powershell" ? (g(), H(b(
|
|
2605
|
-
oe(" " +
|
|
2608
|
+
L.value === "powershell" ? (g(), H(b(Jt), { key: 0 })) : (g(), H(b(Qt), { key: 1 })),
|
|
2609
|
+
oe(" " + F(L.label), 1)
|
|
2606
2610
|
]),
|
|
2607
2611
|
_: 1
|
|
2608
2612
|
}, 8, ["modelValue"]),
|
|
2609
|
-
X("div",
|
|
2613
|
+
X("div", Co, F(b(a)("deckCodeBlock.steps.step_1")), 1),
|
|
2610
2614
|
t.isCustomizing ? Q("", !0) : (g(), H(b(r), {
|
|
2611
2615
|
key: 0,
|
|
2612
2616
|
"data-testid": `deck-hint-${t.app}`,
|
|
@@ -2614,11 +2618,11 @@ ${w.value}
|
|
|
2614
2618
|
tag: "p"
|
|
2615
2619
|
}, qe({
|
|
2616
2620
|
link: K(() => [
|
|
2617
|
-
J(b(
|
|
2621
|
+
J(b(Ti), {
|
|
2618
2622
|
href: t.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
|
|
2619
2623
|
}, {
|
|
2620
2624
|
default: K(() => [
|
|
2621
|
-
oe(
|
|
2625
|
+
oe(F(b(u).t("deckCodeBlock.documentation")), 1)
|
|
2622
2626
|
]),
|
|
2623
2627
|
_: 1
|
|
2624
2628
|
}, 8, ["href"])
|
|
@@ -2653,23 +2657,23 @@ ${w.value}
|
|
|
2653
2657
|
class: "copy-konnect-pat-alert"
|
|
2654
2658
|
}, {
|
|
2655
2659
|
default: K(() => [
|
|
2656
|
-
oe(
|
|
2660
|
+
oe(F(b(a)("deckCodeBlock.customization.copy_pat")), 1)
|
|
2657
2661
|
]),
|
|
2658
2662
|
_: 1
|
|
2659
|
-
})) : i.isCustomizing && i.generateKonnectPat ? (g(), q("div",
|
|
2663
|
+
})) : i.isCustomizing && i.generateKonnectPat ? (g(), q("div", Ao, [
|
|
2660
2664
|
J(j, {
|
|
2661
2665
|
appearance: "secondary",
|
|
2662
2666
|
"data-testid": "generate-konnect-pat-button",
|
|
2663
2667
|
onClick: C[1] || (C[1] = (L) => c.value = !0)
|
|
2664
2668
|
}, {
|
|
2665
2669
|
default: K(() => [
|
|
2666
|
-
oe(
|
|
2670
|
+
oe(F(b(a)("deckCodeBlock.customization.generate_pat")), 1)
|
|
2667
2671
|
]),
|
|
2668
2672
|
_: 1
|
|
2669
2673
|
}),
|
|
2670
|
-
X("div", null,
|
|
2674
|
+
X("div", null, F(b(a)("deckCodeBlock.customization.reuse_pat")), 1)
|
|
2671
2675
|
])) : Q("", !0),
|
|
2672
|
-
X("div",
|
|
2676
|
+
X("div", So, F(b(a)("deckCodeBlock.steps.step_2")), 1),
|
|
2673
2677
|
i.entityRecord && !i.isCustomizing ? (g(), H(me, {
|
|
2674
2678
|
key: 4,
|
|
2675
2679
|
id: "deck-codeblock",
|
|
@@ -2678,10 +2682,11 @@ ${w.value}
|
|
|
2678
2682
|
"copy-code": m.value,
|
|
2679
2683
|
"data-dd-privacy": "mask",
|
|
2680
2684
|
language: y.value,
|
|
2685
|
+
"max-height": b(et),
|
|
2681
2686
|
theme: t.isCustomizing ? "light" : "dark",
|
|
2682
2687
|
onCodeBlockRender: b(Ye)
|
|
2683
|
-
}, null, 8, ["class", "code", "copy-code", "language", "theme", "onCodeBlockRender"])) : i.entityRecord && i.isCustomizing && b(o) ? (g(), q(Te, { key: 5 }, [
|
|
2684
|
-
X("div",
|
|
2688
|
+
}, null, 8, ["class", "code", "copy-code", "language", "max-height", "theme", "onCodeBlockRender"])) : i.entityRecord && i.isCustomizing && b(o) ? (g(), q(Te, { key: 5 }, [
|
|
2689
|
+
X("div", To, F(b(a)("deckCodeBlock.customization.secret_advise")), 1),
|
|
2685
2690
|
(g(), H(Ve(b(o)), {
|
|
2686
2691
|
modelValue: m.value,
|
|
2687
2692
|
"onUpdate:modelValue": C[2] || (C[2] = (L) => m.value = L),
|
|
@@ -2689,26 +2694,26 @@ ${w.value}
|
|
|
2689
2694
|
}, null, 8, ["modelValue", "language"])),
|
|
2690
2695
|
J(z, { class: "customization-footer-reminder" }, {
|
|
2691
2696
|
icon: K(() => [
|
|
2692
|
-
J(b(
|
|
2697
|
+
J(b(Kn))
|
|
2693
2698
|
]),
|
|
2694
2699
|
default: K(() => [
|
|
2695
|
-
oe(" " +
|
|
2700
|
+
oe(" " + F(b(a)("deckCodeBlock.customization.footer_reminder")), 1)
|
|
2696
2701
|
]),
|
|
2697
2702
|
_: 1
|
|
2698
2703
|
})
|
|
2699
2704
|
], 64)) : Q("", !0)
|
|
2700
2705
|
], 16),
|
|
2701
|
-
i.isCustomizing && i.generateKonnectPat ? (g(), H(
|
|
2706
|
+
i.isCustomizing && i.generateKonnectPat ? (g(), H(ko, {
|
|
2702
2707
|
key: 0,
|
|
2703
2708
|
"generate-konnect-pat": i.generateKonnectPat,
|
|
2704
2709
|
visible: c.value,
|
|
2705
2710
|
onDismiss: C[3] || (C[3] = (L) => c.value = !1),
|
|
2706
|
-
onGenerated:
|
|
2711
|
+
onGenerated: G
|
|
2707
2712
|
}, null, 8, ["generate-konnect-pat", "visible"])) : Q("", !0)
|
|
2708
2713
|
], 64);
|
|
2709
2714
|
};
|
|
2710
2715
|
}
|
|
2711
|
-
}),
|
|
2716
|
+
}), En = /* @__PURE__ */ Ae(wo, [["__scopeId", "data-v-a158b294"]]), li = /* @__PURE__ */ he({
|
|
2712
2717
|
inheritAttrs: !1,
|
|
2713
2718
|
__name: "DeckCodeBlock",
|
|
2714
2719
|
props: {
|
|
@@ -2725,14 +2730,14 @@ ${w.value}
|
|
|
2725
2730
|
},
|
|
2726
2731
|
emits: ["customization-close"],
|
|
2727
2732
|
setup(t) {
|
|
2728
|
-
const o = t, { i18n: { t: i } } = fe.useI18n(), u =
|
|
2733
|
+
const o = t, { i18n: { t: i } } = fe.useI18n(), u = N(() => {
|
|
2729
2734
|
if (o.app === "konnect" && o.customizationOptions && typeof o.customizationOptions != "boolean")
|
|
2730
2735
|
return o.customizationOptions.generateKonnectPat;
|
|
2731
2736
|
});
|
|
2732
2737
|
return (r, a) => {
|
|
2733
2738
|
const l = ee("KModal");
|
|
2734
2739
|
return g(), q(Te, null, [
|
|
2735
|
-
o.entityRecord ? (g(), H(
|
|
2740
|
+
o.entityRecord ? (g(), H(En, tt({ key: 0 }, r.$attrs, {
|
|
2736
2741
|
app: o.app,
|
|
2737
2742
|
"control-plane-name": o.app === "konnect" ? o.controlPlaneName : void 0,
|
|
2738
2743
|
"entity-record": o.entityRecord,
|
|
@@ -2754,7 +2759,7 @@ ${w.value}
|
|
|
2754
2759
|
onProceed: a[1] || (a[1] = (s) => r.$emit("customization-close"))
|
|
2755
2760
|
}, {
|
|
2756
2761
|
default: K(() => [
|
|
2757
|
-
J(
|
|
2762
|
+
J(En, {
|
|
2758
2763
|
app: o.app,
|
|
2759
2764
|
"control-plane-name": o.app === "konnect" ? o.controlPlaneName : void 0,
|
|
2760
2765
|
"entity-record": o.entityRecord,
|
|
@@ -2772,13 +2777,13 @@ ${w.value}
|
|
|
2772
2777
|
], 64);
|
|
2773
2778
|
};
|
|
2774
2779
|
}
|
|
2775
|
-
}),
|
|
2780
|
+
}), $o = {
|
|
2776
2781
|
key: 0,
|
|
2777
2782
|
class: "config-card-display-form"
|
|
2778
|
-
},
|
|
2783
|
+
}, Eo = ["data-testid"], Io = {
|
|
2779
2784
|
key: 0,
|
|
2780
2785
|
class: "config-card-prop-section-title"
|
|
2781
|
-
},
|
|
2786
|
+
}, xo = /* @__PURE__ */ he({
|
|
2782
2787
|
__name: "ConfigCardDisplay",
|
|
2783
2788
|
props: {
|
|
2784
2789
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2790,7 +2795,7 @@ ${w.value}
|
|
|
2790
2795
|
entityType: {
|
|
2791
2796
|
type: String,
|
|
2792
2797
|
required: !0,
|
|
2793
|
-
validator: (t) =>
|
|
2798
|
+
validator: (t) => gt.includes(t)
|
|
2794
2799
|
},
|
|
2795
2800
|
subEntityType: {
|
|
2796
2801
|
// only for event gateway entities
|
|
@@ -2806,7 +2811,7 @@ ${w.value}
|
|
|
2806
2811
|
type: String,
|
|
2807
2812
|
required: !1,
|
|
2808
2813
|
default: "structured",
|
|
2809
|
-
validator: (t) =>
|
|
2814
|
+
validator: (t) => ki.includes(t)
|
|
2810
2815
|
},
|
|
2811
2816
|
propListTypes: {
|
|
2812
2817
|
type: Array,
|
|
@@ -2863,16 +2868,16 @@ ${w.value}
|
|
|
2863
2868
|
},
|
|
2864
2869
|
emits: ["deck-customization:close", "request-deck-format"],
|
|
2865
2870
|
setup(t) {
|
|
2866
|
-
const o = t, i =
|
|
2871
|
+
const o = t, i = mt(), { i18n: { t: u } } = fe.useI18n(), r = (T) => !!(T.tooltip || i[`${T.key}-label-tooltip`]), a = (T) => {
|
|
2867
2872
|
if (T == null)
|
|
2868
2873
|
return;
|
|
2869
|
-
let
|
|
2870
|
-
return o.codeBlockRecordFormatter && (
|
|
2871
|
-
}, l =
|
|
2874
|
+
let M = JSON.parse(JSON.stringify(T));
|
|
2875
|
+
return o.codeBlockRecordFormatter && (M = o.codeBlockRecordFormatter(M, o.format)), o.preserveCodeBlockTimestamps || (delete M.created_at, delete M.updated_at), M;
|
|
2876
|
+
}, l = N(
|
|
2872
2877
|
() => a(o.codeBlockRecordRedacted || o.codeBlockRecord || o.record)
|
|
2873
|
-
), s =
|
|
2878
|
+
), s = N(
|
|
2874
2879
|
() => a(o.codeBlockRecord || o.record)
|
|
2875
|
-
), m =
|
|
2880
|
+
), m = N(() => o.fetcherUrl.replace(/(\?|&)__ui_data=true/, "")), {
|
|
2876
2881
|
isDeckEnabled: c,
|
|
2877
2882
|
deckCustomizationOptions: d,
|
|
2878
2883
|
deckCalloutPreferenceKey: y
|
|
@@ -2880,15 +2885,15 @@ ${w.value}
|
|
|
2880
2885
|
() => o.config,
|
|
2881
2886
|
() => o.entityType
|
|
2882
2887
|
);
|
|
2883
|
-
return (T,
|
|
2884
|
-
t.format === "structured" ? (g(), q("div",
|
|
2885
|
-
(g(!0), q(Te, null,
|
|
2888
|
+
return (T, M) => (g(), q(Te, null, [
|
|
2889
|
+
t.format === "structured" ? (g(), q("div", $o, [
|
|
2890
|
+
(g(!0), q(Te, null, _e(t.propListTypes, (re) => (g(), q("div", {
|
|
2886
2891
|
key: `config-card-details-${re}-props`,
|
|
2887
2892
|
class: Ce(`config-card-details-${re}-props`),
|
|
2888
2893
|
"data-testid": `config-card-details-${re}-props`
|
|
2889
2894
|
}, [
|
|
2890
|
-
re !== "basic" ? (g(), q("div",
|
|
2891
|
-
(g(!0), q(Te, null,
|
|
2895
|
+
re !== "basic" ? (g(), q("div", Io, F(re === "advanced" ? b(u)("baseConfigCard.sections.advanced") : re === "plugin" ? b(u)("baseConfigCard.sections.plugin") : b(u)("baseConfigCard.sections.policy")), 1)) : Q("", !0),
|
|
2896
|
+
(g(!0), q(Te, null, _e(t.propertyCollections[re], (w) => se(T.$slots, `config-card-item-${w.key}`, { row: w }, () => [
|
|
2892
2897
|
(g(), H(Pn, {
|
|
2893
2898
|
key: w.key,
|
|
2894
2899
|
item: w
|
|
@@ -2913,9 +2918,9 @@ ${w.value}
|
|
|
2913
2918
|
} : void 0
|
|
2914
2919
|
]), 1032, ["item"]))
|
|
2915
2920
|
], !0)), 256))
|
|
2916
|
-
], 10,
|
|
2921
|
+
], 10, Eo))), 128))
|
|
2917
2922
|
])) : Q("", !0),
|
|
2918
|
-
t.format === "json" && l.value ? (g(), H(
|
|
2923
|
+
t.format === "json" && l.value ? (g(), H(qn, {
|
|
2919
2924
|
key: 1,
|
|
2920
2925
|
config: o.config,
|
|
2921
2926
|
"entity-record": l.value,
|
|
@@ -2923,21 +2928,21 @@ ${w.value}
|
|
|
2923
2928
|
"request-method": "get",
|
|
2924
2929
|
"unredacted-record": s.value
|
|
2925
2930
|
}, null, 8, ["config", "entity-record", "fetcher-url", "unredacted-record"])) : Q("", !0),
|
|
2926
|
-
t.format === "yaml" && l.value ? (g(), H(
|
|
2931
|
+
t.format === "yaml" && l.value ? (g(), H(oi, {
|
|
2927
2932
|
key: 2,
|
|
2928
2933
|
"deck-callout-preference-key": b(c) ? b(y) : void 0,
|
|
2929
2934
|
"entity-record": l.value,
|
|
2930
2935
|
"unredacted-record": s.value,
|
|
2931
|
-
"onDeckCallout:clickCta":
|
|
2936
|
+
"onDeckCallout:clickCta": M[0] || (M[0] = (re) => T.$emit("request-deck-format"))
|
|
2932
2937
|
}, null, 8, ["deck-callout-preference-key", "entity-record", "unredacted-record"])) : Q("", !0),
|
|
2933
|
-
t.format === "terraform" && l.value ? (g(), H(
|
|
2938
|
+
t.format === "terraform" && l.value ? (g(), H(ri, {
|
|
2934
2939
|
key: 3,
|
|
2935
2940
|
"entity-record": l.value,
|
|
2936
2941
|
"entity-type": o.entityType,
|
|
2937
2942
|
"sub-entity-type": o.subEntityType,
|
|
2938
2943
|
"unredacted-record": s.value
|
|
2939
2944
|
}, null, 8, ["entity-record", "entity-type", "sub-entity-type", "unredacted-record"])) : Q("", !0),
|
|
2940
|
-
t.format === "deck" && l.value ? (g(), H(
|
|
2945
|
+
t.format === "deck" && l.value ? (g(), H(li, {
|
|
2941
2946
|
key: 4,
|
|
2942
2947
|
app: t.config.app,
|
|
2943
2948
|
"control-plane-name": t.config.app === "konnect" ? t.config.controlPlaneName : void 0,
|
|
@@ -2949,17 +2954,17 @@ ${w.value}
|
|
|
2949
2954
|
"kong-admin-api-url": t.config.app === "kongManager" ? t.config.apiBaseUrl : void 0,
|
|
2950
2955
|
"unredacted-record": s.value,
|
|
2951
2956
|
workspace: t.config.workspace || void 0,
|
|
2952
|
-
onCustomizationClose:
|
|
2957
|
+
onCustomizationClose: M[1] || (M[1] = (re) => T.$emit("deck-customization:close"))
|
|
2953
2958
|
}, null, 8, ["app", "control-plane-name", "customization-options", "entity-record", "entity-type", "geo-api-server-url", "is-customization-modal-visible", "kong-admin-api-url", "unredacted-record", "workspace"])) : Q("", !0)
|
|
2954
2959
|
], 64));
|
|
2955
2960
|
}
|
|
2956
|
-
}),
|
|
2961
|
+
}), _o = /* @__PURE__ */ Ae(xo, [["__scopeId", "data-v-83075649"]]), Oo = "#0044f4", Bo = "#afb7c5", Ro = "#0044f4", Ko = "16px", Xe = "20px", In = "8px", xn = "12px", Lo = {
|
|
2957
2962
|
class: "config-card-title",
|
|
2958
2963
|
"data-testid": "config-card-title"
|
|
2959
|
-
},
|
|
2964
|
+
}, Mo = { class: "config-card-actions" }, Fo = { class: "row" }, No = ["href"], Po = {
|
|
2960
2965
|
key: 2,
|
|
2961
2966
|
class: "config-card-details-section"
|
|
2962
|
-
},
|
|
2967
|
+
}, qo = /* @__PURE__ */ he({
|
|
2963
2968
|
__name: "EntityBaseConfigCard",
|
|
2964
2969
|
props: {
|
|
2965
2970
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2980,7 +2985,7 @@ ${w.value}
|
|
|
2980
2985
|
entityType: {
|
|
2981
2986
|
type: String,
|
|
2982
2987
|
required: !0,
|
|
2983
|
-
validator: (t) =>
|
|
2988
|
+
validator: (t) => gt.includes(t)
|
|
2984
2989
|
},
|
|
2985
2990
|
/**
|
|
2986
2991
|
* Sub Entity type, required to generate terraform code for event gateway entities
|
|
@@ -3113,8 +3118,8 @@ ${w.value}
|
|
|
3113
3118
|
} = fe.useBaseEntityDeckOptions(
|
|
3114
3119
|
() => u.config,
|
|
3115
3120
|
() => u.entityType
|
|
3116
|
-
), y =
|
|
3117
|
-
const
|
|
3121
|
+
), y = N(() => {
|
|
3122
|
+
const O = [
|
|
3118
3123
|
{
|
|
3119
3124
|
label: r("baseConfigCard.general.structuredFormat"),
|
|
3120
3125
|
value: "structured",
|
|
@@ -3129,26 +3134,26 @@ ${w.value}
|
|
|
3129
3134
|
value: "yaml"
|
|
3130
3135
|
}
|
|
3131
3136
|
];
|
|
3132
|
-
u.config.app === "konnect" &&
|
|
3137
|
+
u.config.app === "konnect" && O.splice(2, 0, {
|
|
3133
3138
|
label: r("baseForm.configuration.terraform"),
|
|
3134
3139
|
value: "terraform"
|
|
3135
|
-
}), c.value &&
|
|
3140
|
+
}), c.value && O.push({
|
|
3136
3141
|
label: r("baseForm.configuration.deck"),
|
|
3137
3142
|
value: "deck"
|
|
3138
3143
|
});
|
|
3139
3144
|
const ie = new Set(u.formatsToHide);
|
|
3140
|
-
return
|
|
3141
|
-
}), T = le("structured"),
|
|
3142
|
-
T.value =
|
|
3143
|
-
}, re = (
|
|
3144
|
-
localStorage.setItem(
|
|
3145
|
+
return O.filter((E) => E.value === "structured" || !ie.has(E.value));
|
|
3146
|
+
}), T = le("structured"), M = (O) => {
|
|
3147
|
+
T.value = O?.value, i("configFormatChange", T.value);
|
|
3148
|
+
}, re = (O, ie) => {
|
|
3149
|
+
localStorage.setItem(O, ie);
|
|
3145
3150
|
};
|
|
3146
|
-
|
|
3147
|
-
u.config.formatPreferenceKey && re(u.config.formatPreferenceKey,
|
|
3148
|
-
}),
|
|
3151
|
+
Oe(T, (O) => {
|
|
3152
|
+
u.config.formatPreferenceKey && re(u.config.formatPreferenceKey, O);
|
|
3153
|
+
}), yt(() => {
|
|
3149
3154
|
if (u.config.formatPreferenceKey) {
|
|
3150
|
-
const
|
|
3151
|
-
|
|
3155
|
+
const O = localStorage.getItem(u.config.formatPreferenceKey), ie = y.value;
|
|
3156
|
+
O && ie.some((E) => E.value === O) ? T.value = O : T.value = ie[0]?.value ?? "structured", re(u.config.formatPreferenceKey, T.value);
|
|
3152
3157
|
}
|
|
3153
3158
|
});
|
|
3154
3159
|
const w = {
|
|
@@ -3198,27 +3203,27 @@ ${w.value}
|
|
|
3198
3203
|
// the last property displayed
|
|
3199
3204
|
section: Ee.Basic
|
|
3200
3205
|
}
|
|
3201
|
-
}, B = le(!1),
|
|
3206
|
+
}, B = le(!1), G = le(!1), x = le(""), C = le({}), Y = le(null), te = N(() => {
|
|
3202
3207
|
if (!(!u.codeBlockRecordResolver || Y.value == null))
|
|
3203
3208
|
return u.codeBlockRecordResolver(Y.value);
|
|
3204
|
-
}), me = le(!1), z =
|
|
3205
|
-
const
|
|
3206
|
-
for (const ie in
|
|
3207
|
-
u.configSchema[ie]?.type === ge.Redacted && (
|
|
3208
|
-
return u.codeBlockRecordResolver ? u.codeBlockRecordResolver(
|
|
3209
|
-
}), j =
|
|
3209
|
+
}), me = le(!1), z = N(() => {
|
|
3210
|
+
const O = { ...te.value || C.value };
|
|
3211
|
+
for (const ie in O)
|
|
3212
|
+
u.configSchema[ie]?.type === ge.Redacted && (O[ie] = "********");
|
|
3213
|
+
return u.codeBlockRecordResolver ? u.codeBlockRecordResolver(O) : O;
|
|
3214
|
+
}), j = N(() => {
|
|
3210
3215
|
if (!C.value)
|
|
3211
3216
|
return [];
|
|
3212
|
-
const
|
|
3217
|
+
const O = [], ie = Object.keys(C.value).length;
|
|
3213
3218
|
for (const E in C.value) {
|
|
3214
3219
|
if (E === "__ui_data") continue;
|
|
3215
3220
|
const ae = u.configSchema?.[E]?.order, ce = w[E]?.order;
|
|
3216
3221
|
let ue = ie;
|
|
3217
|
-
(ce || ce === 0) && (ue = ce === -1 ? ie + 1 : ce), ae && (ue = ae === -1 ? ie + 1 : ae),
|
|
3222
|
+
(ce || ce === 0) && (ue = ce === -1 ? ie + 1 : ce), ae && (ue = ae === -1 ? ie + 1 : ae), O.push([E, ue]);
|
|
3218
3223
|
}
|
|
3219
|
-
return
|
|
3224
|
+
return O.sort(function(E, ae) {
|
|
3220
3225
|
return E[1] - ae[1];
|
|
3221
|
-
}),
|
|
3226
|
+
}), O.map((E) => {
|
|
3222
3227
|
const ae = E[0], ce = C.value?.[ae], ue = u.configSchema?.[ae] || {}, ye = w[ae];
|
|
3223
3228
|
return {
|
|
3224
3229
|
key: ae,
|
|
@@ -3230,19 +3235,19 @@ ${w.value}
|
|
|
3230
3235
|
section: ue.section ?? (ye?.section || Ee.Advanced)
|
|
3231
3236
|
};
|
|
3232
3237
|
}).filter((E) => !E.hidden && E.key !== u.pluginConfigKey);
|
|
3233
|
-
}), L =
|
|
3238
|
+
}), L = N(() => {
|
|
3234
3239
|
if (!C.value || !u.pluginConfigKey)
|
|
3235
3240
|
return [];
|
|
3236
|
-
const
|
|
3237
|
-
for (const ae in
|
|
3238
|
-
const ce = u.pluginConfigSchema?.[ae]?.order, ue =
|
|
3241
|
+
const O = C.value[u.pluginConfigKey] || {}, ie = Object.keys(O).length, E = [];
|
|
3242
|
+
for (const ae in O) {
|
|
3243
|
+
const ce = u.pluginConfigSchema?.[ae]?.order, ue = O[ae];
|
|
3239
3244
|
let ye = ue != null && ue !== "" ? ie - 1 : ie;
|
|
3240
3245
|
ce && (ye = ce === -1 ? ie + 1 : ce), E.push([ae, ye]);
|
|
3241
3246
|
}
|
|
3242
3247
|
return E.sort(function(ae, ce) {
|
|
3243
3248
|
return ae[1] - ce[1];
|
|
3244
3249
|
}), E.map((ae) => {
|
|
3245
|
-
const ce = ae[0], ue =
|
|
3250
|
+
const ce = ae[0], ue = O[ce], ye = u.pluginConfigSchema?.[ce] || {};
|
|
3246
3251
|
return {
|
|
3247
3252
|
key: ce,
|
|
3248
3253
|
value: ue,
|
|
@@ -3253,19 +3258,19 @@ ${w.value}
|
|
|
3253
3258
|
section: Ee.Plugin
|
|
3254
3259
|
};
|
|
3255
3260
|
}).filter((ae) => !ae.hidden);
|
|
3256
|
-
}), ne =
|
|
3261
|
+
}), ne = N(() => {
|
|
3257
3262
|
if (!C.value || !u.policyConfigKey)
|
|
3258
3263
|
return [];
|
|
3259
|
-
const
|
|
3260
|
-
for (const ae in
|
|
3261
|
-
const ce = u.policyConfigSchema?.[ae]?.order, ue =
|
|
3264
|
+
const O = C.value[u.policyConfigKey] || {}, ie = Object.keys(O).length, E = [];
|
|
3265
|
+
for (const ae in O) {
|
|
3266
|
+
const ce = u.policyConfigSchema?.[ae]?.order, ue = O[ae];
|
|
3262
3267
|
let ye = ue != null && ue !== "" ? ie - 1 : ie;
|
|
3263
3268
|
ce && (ye = ce === -1 ? ie + 1 : ce), E.push([ae, ye]);
|
|
3264
3269
|
}
|
|
3265
3270
|
return E.sort(function(ae, ce) {
|
|
3266
3271
|
return ae[1] - ce[1];
|
|
3267
3272
|
}), E.map((ae) => {
|
|
3268
|
-
const ce = ae[0], ue =
|
|
3273
|
+
const ce = ae[0], ue = O[ce], ye = u.policyConfigSchema?.[ce] || {};
|
|
3269
3274
|
return {
|
|
3270
3275
|
key: ce,
|
|
3271
3276
|
value: ue,
|
|
@@ -3276,49 +3281,49 @@ ${w.value}
|
|
|
3276
3281
|
section: Ee.Policy
|
|
3277
3282
|
};
|
|
3278
3283
|
}).filter((ae) => !ae.hidden);
|
|
3279
|
-
}), V =
|
|
3280
|
-
basic: j.value?.filter((
|
|
3281
|
-
advanced: j.value?.filter((
|
|
3282
|
-
plugin: L.value?.concat(j.value?.filter((
|
|
3283
|
-
policy: ne.value?.concat(j.value?.filter((
|
|
3284
|
-
})), U =
|
|
3285
|
-
const
|
|
3286
|
-
return V.value.basic.length &&
|
|
3287
|
-
}), pe =
|
|
3288
|
-
let
|
|
3289
|
-
return u.config.app === "konnect" && (
|
|
3284
|
+
}), V = N(() => ({
|
|
3285
|
+
basic: j.value?.filter((O) => O.section === Ee.Basic),
|
|
3286
|
+
advanced: j.value?.filter((O) => O.section === Ee.Advanced),
|
|
3287
|
+
plugin: L.value?.concat(j.value?.filter((O) => O.section === Ee.Plugin)),
|
|
3288
|
+
policy: ne.value?.concat(j.value?.filter((O) => O.section === Ee.Policy))
|
|
3289
|
+
})), U = N(() => {
|
|
3290
|
+
const O = [];
|
|
3291
|
+
return V.value.basic.length && O.push("basic"), V.value.advanced.length && O.push("advanced"), V.value.plugin.length && O.push("plugin"), V.value.policy.length && O.push("policy"), O;
|
|
3292
|
+
}), pe = N(() => {
|
|
3293
|
+
let O = `${u.config.apiBaseUrl}${u.fetchUrl}`;
|
|
3294
|
+
return u.config.app === "konnect" && (O = O.replace(/{controlPlaneId}/gi, u.config?.controlPlaneId || "")), O.replace(/\/{workspace}/gi, u.config?.workspace ? `/${u.config.workspace}` : "").replace(/{id}/gi, u.config.entityId);
|
|
3290
3295
|
});
|
|
3291
|
-
return
|
|
3292
|
-
i("loading",
|
|
3293
|
-
}, { immediate: !0 }),
|
|
3294
|
-
|
|
3296
|
+
return Oe(B, (O) => {
|
|
3297
|
+
i("loading", O);
|
|
3298
|
+
}, { immediate: !0 }), Ht(async () => {
|
|
3299
|
+
G.value = !1, B.value = !0;
|
|
3295
3300
|
try {
|
|
3296
|
-
const { data:
|
|
3297
|
-
if (Y.value =
|
|
3298
|
-
if (typeof
|
|
3299
|
-
C.value = { ...
|
|
3301
|
+
const { data: O } = await s.get(pe.value);
|
|
3302
|
+
if (Y.value = O, u.dataKey)
|
|
3303
|
+
if (typeof O[u.dataKey] < "u")
|
|
3304
|
+
C.value = { ...O[u.dataKey] };
|
|
3300
3305
|
else
|
|
3301
3306
|
throw new Error(r("errors.dataKeyUndefined", { dataKey: u.dataKey }));
|
|
3302
|
-
else u.recordResolver ? C.value = { ...u.recordResolver(
|
|
3307
|
+
else u.recordResolver ? C.value = { ...u.recordResolver(O) } : C.value = { ...O };
|
|
3303
3308
|
Object.keys(u.configSchema).filter((E) => u.configSchema[E].forceShow).forEach((E) => {
|
|
3304
3309
|
C.value && typeof C.value[E] > "u" && (C.value[E] = null);
|
|
3305
|
-
}), i("fetch:success",
|
|
3306
|
-
} catch (
|
|
3310
|
+
}), i("fetch:success", O);
|
|
3311
|
+
} catch (O) {
|
|
3307
3312
|
Y.value = null;
|
|
3308
|
-
const ie = a(
|
|
3309
|
-
x.value = ie.startsWith("code") ? r("baseConfigCard.errors.load") : ie,
|
|
3313
|
+
const ie = a(O);
|
|
3314
|
+
x.value = ie.startsWith("code") ? r("baseConfigCard.errors.load") : ie, G.value = !0, i("fetch:error", O);
|
|
3310
3315
|
} finally {
|
|
3311
3316
|
B.value = !1;
|
|
3312
3317
|
}
|
|
3313
|
-
}), (
|
|
3314
|
-
const E = ee("KCheckbox"), ae = ee("KLabel"), ce = ee("KSelect"), ue = ee("KButton"), ye = ee("KSkeleton"),
|
|
3315
|
-
return g(), H(
|
|
3318
|
+
}), (O, ie) => {
|
|
3319
|
+
const E = ee("KCheckbox"), ae = ee("KLabel"), ce = ee("KSelect"), ue = ee("KButton"), ye = ee("KSkeleton"), Ge = ee("KEmptyState"), Ne = ee("KCard");
|
|
3320
|
+
return g(), H(Ne, {
|
|
3316
3321
|
class: "kong-ui-entity-base-config-card",
|
|
3317
3322
|
"title-tag": t.titleTag
|
|
3318
3323
|
}, qe({
|
|
3319
3324
|
actions: K(() => [
|
|
3320
|
-
X("div",
|
|
3321
|
-
se(
|
|
3325
|
+
X("div", Mo, [
|
|
3326
|
+
se(O.$slots, "actions", {}, void 0, !0),
|
|
3322
3327
|
T.value !== "structured" ? (g(), H(E, {
|
|
3323
3328
|
key: 0,
|
|
3324
3329
|
modelValue: me.value,
|
|
@@ -3327,13 +3332,13 @@ ${w.value}
|
|
|
3327
3332
|
"data-testid": "sensitive-fields-checkbox",
|
|
3328
3333
|
label: b(r)("baseConfigCard.actions.sensitive_fields")
|
|
3329
3334
|
}, null, 8, ["modelValue", "label"])) : Q("", !0),
|
|
3330
|
-
X("div",
|
|
3335
|
+
X("div", Fo, [
|
|
3331
3336
|
J(ae, {
|
|
3332
3337
|
class: "config-format-select-label",
|
|
3333
3338
|
"data-testid": "config-format-select-label"
|
|
3334
3339
|
}, {
|
|
3335
3340
|
default: K(() => [
|
|
3336
|
-
oe(
|
|
3341
|
+
oe(F(t.label), 1)
|
|
3337
3342
|
]),
|
|
3338
3343
|
_: 1
|
|
3339
3344
|
}),
|
|
@@ -3342,7 +3347,7 @@ ${w.value}
|
|
|
3342
3347
|
"onUpdate:modelValue": ie[1] || (ie[1] = (we) => T.value = we),
|
|
3343
3348
|
"data-testid": "select-config-format",
|
|
3344
3349
|
items: y.value,
|
|
3345
|
-
onChange:
|
|
3350
|
+
onChange: M
|
|
3346
3351
|
}, null, 8, ["modelValue", "items"])
|
|
3347
3352
|
]),
|
|
3348
3353
|
T.value === "deck" && b(d) ? (g(), H(ue, {
|
|
@@ -3353,7 +3358,7 @@ ${w.value}
|
|
|
3353
3358
|
onClick: ie[2] || (ie[2] = (we) => m.value = !0)
|
|
3354
3359
|
}, {
|
|
3355
3360
|
default: K(() => [
|
|
3356
|
-
oe(
|
|
3361
|
+
oe(F(b(r)("baseConfigCard.actions.deck_customize")), 1)
|
|
3357
3362
|
]),
|
|
3358
3363
|
_: 1
|
|
3359
3364
|
})) : Q("", !0),
|
|
@@ -3369,10 +3374,10 @@ ${w.value}
|
|
|
3369
3374
|
rel: "noopener",
|
|
3370
3375
|
target: "_blank"
|
|
3371
3376
|
}, [
|
|
3372
|
-
J(b(
|
|
3377
|
+
J(b(Ln), {
|
|
3373
3378
|
size: `var(--kui-icon-size-40, ${b(Xe)})`
|
|
3374
3379
|
}, null, 8, ["size"])
|
|
3375
|
-
], 8,
|
|
3380
|
+
], 8, No)
|
|
3376
3381
|
]),
|
|
3377
3382
|
_: 1
|
|
3378
3383
|
})) : Q("", !0)
|
|
@@ -3384,17 +3389,17 @@ ${w.value}
|
|
|
3384
3389
|
"data-testid": "config-card-loader",
|
|
3385
3390
|
"table-columns": 2,
|
|
3386
3391
|
type: "table"
|
|
3387
|
-
})) :
|
|
3392
|
+
})) : G.value ? (g(), H(Ge, {
|
|
3388
3393
|
key: 1,
|
|
3389
3394
|
"data-testid": "config-card-fetch-error",
|
|
3390
3395
|
"icon-variant": "error"
|
|
3391
3396
|
}, {
|
|
3392
3397
|
default: K(() => [
|
|
3393
|
-
X("h3", null,
|
|
3398
|
+
X("h3", null, F(x.value), 1)
|
|
3394
3399
|
]),
|
|
3395
3400
|
_: 1
|
|
3396
|
-
})) : (g(), q("div",
|
|
3397
|
-
J(
|
|
3401
|
+
})) : (g(), q("div", Po, [
|
|
3402
|
+
J(_o, {
|
|
3398
3403
|
"code-block-record": te.value,
|
|
3399
3404
|
"code-block-record-formatter": t.codeBlockRecordFormatter,
|
|
3400
3405
|
"code-block-record-redacted": me.value ? void 0 : z.value,
|
|
@@ -3411,10 +3416,10 @@ ${w.value}
|
|
|
3411
3416
|
"onDeckCustomization:close": ie[3] || (ie[3] = (we) => m.value = !1),
|
|
3412
3417
|
onRequestDeckFormat: ie[4] || (ie[4] = (we) => T.value = "deck")
|
|
3413
3418
|
}, qe({ _: 2 }, [
|
|
3414
|
-
|
|
3419
|
+
_e(Object.keys(O.$slots), (we) => ({
|
|
3415
3420
|
name: we,
|
|
3416
3421
|
fn: K((De) => [
|
|
3417
|
-
se(
|
|
3422
|
+
se(O.$slots, we, tt({ record: C.value }, De), void 0, !0)
|
|
3418
3423
|
])
|
|
3419
3424
|
}))
|
|
3420
3425
|
]), 1032, ["code-block-record", "code-block-record-formatter", "code-block-record-redacted", "config", "entity-type", "fetcher-url", "format", "is-deck-customization-visible", "preserve-code-block-timestamps", "prop-list-types", "property-collections", "record", "sub-entity-type"])
|
|
@@ -3425,9 +3430,9 @@ ${w.value}
|
|
|
3425
3430
|
t.hideTitle ? void 0 : {
|
|
3426
3431
|
name: "title",
|
|
3427
3432
|
fn: K(() => [
|
|
3428
|
-
X("span",
|
|
3429
|
-
se(
|
|
3430
|
-
oe(
|
|
3433
|
+
X("span", Lo, [
|
|
3434
|
+
se(O.$slots, "title", {}, () => [
|
|
3435
|
+
oe(F(b(r)("baseConfigCard.title")), 1)
|
|
3431
3436
|
], !0)
|
|
3432
3437
|
])
|
|
3433
3438
|
]),
|
|
@@ -3436,10 +3441,10 @@ ${w.value}
|
|
|
3436
3441
|
]), 1032, ["title-tag"]);
|
|
3437
3442
|
};
|
|
3438
3443
|
}
|
|
3439
|
-
}),
|
|
3444
|
+
}), _l = /* @__PURE__ */ Ae(qo, [["__scopeId", "data-v-fcf2efdc"]]), Do = ["novalidate"], jo = {
|
|
3440
3445
|
key: 0,
|
|
3441
3446
|
class: "button-customize-deck-wrapper"
|
|
3442
|
-
},
|
|
3447
|
+
}, Uo = /* @__PURE__ */ he({
|
|
3443
3448
|
__name: "EntityBaseForm",
|
|
3444
3449
|
props: {
|
|
3445
3450
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3460,7 +3465,7 @@ ${w.value}
|
|
|
3460
3465
|
entityType: {
|
|
3461
3466
|
type: String,
|
|
3462
3467
|
required: !0,
|
|
3463
|
-
validator: (t) =>
|
|
3468
|
+
validator: (t) => gt.includes(t)
|
|
3464
3469
|
},
|
|
3465
3470
|
/**
|
|
3466
3471
|
* Sub entity type, required for event gateway entities to generate terraform code
|
|
@@ -3596,10 +3601,10 @@ ${w.value}
|
|
|
3596
3601
|
},
|
|
3597
3602
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3598
3603
|
setup(t, { expose: o, emit: i }) {
|
|
3599
|
-
const u = On(
|
|
3604
|
+
const u = On(Ci, le(!1)), r = i, a = t, l = qi(), { i18n: { t: s } } = fe.useI18n(), { getMessageFromError: m } = fe.useErrors(), { axiosInstance: c } = fe.useAxios(a.config?.axiosRequestConfig), d = le(!1), y = N(() => !!a.editId), T = le(!1), M = le(""), re = N(() => a.canSubmit === !1 || a.isReadonly), w = le(!1), B = N(() => {
|
|
3600
3605
|
let V = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3601
3606
|
return a.config.app === "konnect" && (V = V.replace(/{controlPlaneId}/gi, a.config?.controlPlaneId || "")), V = V.replace(/\/{workspace}/gi, a.config?.workspace ? `/${a.config.workspace}` : ""), a.editId ? (V = V.replace(/{id}/gi, a.editId), V) : (V = V.replace(/\/{id}/gi, ""), V);
|
|
3602
|
-
}),
|
|
3607
|
+
}), G = le(!1), {
|
|
3603
3608
|
isDeckEnabled: x,
|
|
3604
3609
|
deckCustomizationOptions: C,
|
|
3605
3610
|
deckCalloutPreferenceKey: Y
|
|
@@ -3614,7 +3619,7 @@ ${w.value}
|
|
|
3614
3619
|
r("cancel");
|
|
3615
3620
|
}, j = () => {
|
|
3616
3621
|
re.value || r("submit");
|
|
3617
|
-
}, L =
|
|
3622
|
+
}, L = N(() => {
|
|
3618
3623
|
const V = [
|
|
3619
3624
|
{
|
|
3620
3625
|
title: s("baseForm.configuration.json"),
|
|
@@ -3625,7 +3630,7 @@ ${w.value}
|
|
|
3625
3630
|
hash: "#yaml"
|
|
3626
3631
|
}
|
|
3627
3632
|
];
|
|
3628
|
-
a.config.app === "konnect" && a.entityType !==
|
|
3633
|
+
a.config.app === "konnect" && a.entityType !== Pe.Other && V.splice(1, 0, {
|
|
3629
3634
|
title: s("baseForm.configuration.terraform"),
|
|
3630
3635
|
hash: "#terraform"
|
|
3631
3636
|
}), x.value && V.push({
|
|
@@ -3635,11 +3640,11 @@ ${w.value}
|
|
|
3635
3640
|
const U = new Set(a.tabsToHide.map((pe) => `#${pe}`));
|
|
3636
3641
|
return V.filter((pe) => !U.has(pe.hash));
|
|
3637
3642
|
}), ne = le(L.value[0]?.hash);
|
|
3638
|
-
return
|
|
3643
|
+
return Oe(L, (V) => {
|
|
3639
3644
|
V.some((U) => U.hash === ne.value) || (ne.value = V[0]?.hash);
|
|
3640
|
-
}),
|
|
3645
|
+
}), Oe(() => d.value, (V) => {
|
|
3641
3646
|
r("loading", V);
|
|
3642
|
-
}, { immediate: !0 }),
|
|
3647
|
+
}, { immediate: !0 }), Ht(async () => {
|
|
3643
3648
|
if (a.editId)
|
|
3644
3649
|
try {
|
|
3645
3650
|
T.value = !1, d.value = !0;
|
|
@@ -3647,7 +3652,7 @@ ${w.value}
|
|
|
3647
3652
|
r("fetch:success", V);
|
|
3648
3653
|
} catch (V) {
|
|
3649
3654
|
const U = m(V);
|
|
3650
|
-
|
|
3655
|
+
M.value = U.startsWith("code") ? s("baseForm.errors.edit") : U, T.value = !0, r("fetch:error", V);
|
|
3651
3656
|
} finally {
|
|
3652
3657
|
d.value = !1;
|
|
3653
3658
|
}
|
|
@@ -3656,17 +3661,17 @@ ${w.value}
|
|
|
3656
3661
|
formCancel: z,
|
|
3657
3662
|
formSubmit: j
|
|
3658
3663
|
}), (V, U) => {
|
|
3659
|
-
const pe = ee("KSkeleton"),
|
|
3664
|
+
const pe = ee("KSkeleton"), O = ee("KEmptyState"), ie = ee("KAlert"), E = ee("KButton"), ae = ee("KTabs"), ce = ee("KSlideout");
|
|
3660
3665
|
return g(), H(Ve(t.wrapperComponent), {
|
|
3661
3666
|
class: Ce(["kong-ui-entity-base-form", {
|
|
3662
|
-
"new-form-layout": b(u) && t.entityType === b(
|
|
3667
|
+
"new-form-layout": b(u) && t.entityType === b(Pe).Plugin
|
|
3663
3668
|
}])
|
|
3664
3669
|
}, {
|
|
3665
3670
|
default: K(() => [
|
|
3666
3671
|
d.value ? (g(), H(pe, {
|
|
3667
3672
|
key: 0,
|
|
3668
3673
|
type: "form"
|
|
3669
|
-
})) : T.value ? (g(), H(
|
|
3674
|
+
})) : T.value ? (g(), H(O, {
|
|
3670
3675
|
key: 1,
|
|
3671
3676
|
"action-button-text": b(s)("baseForm.actions.back"),
|
|
3672
3677
|
"data-testid": "form-fetch-error",
|
|
@@ -3674,7 +3679,7 @@ ${w.value}
|
|
|
3674
3679
|
onClickAction: me
|
|
3675
3680
|
}, {
|
|
3676
3681
|
default: K(() => [
|
|
3677
|
-
X("h3", null, M
|
|
3682
|
+
X("h3", null, F(M.value), 1)
|
|
3678
3683
|
]),
|
|
3679
3684
|
_: 1
|
|
3680
3685
|
}, 8, ["action-button-text"])) : (g(), q("form", {
|
|
@@ -3692,7 +3697,7 @@ ${w.value}
|
|
|
3692
3697
|
"data-testid": "form-error",
|
|
3693
3698
|
message: t.errorMessage
|
|
3694
3699
|
}, null, 8, ["message"])) : Q("", !0),
|
|
3695
|
-
t.hideActions ? Q("", !0) : (g(), H(
|
|
3700
|
+
t.hideActions ? Q("", !0) : (g(), H(Bn, {
|
|
3696
3701
|
key: 1,
|
|
3697
3702
|
disabled: !t.actionTeleportTarget,
|
|
3698
3703
|
to: t.actionTeleportTarget
|
|
@@ -3708,7 +3713,7 @@ ${w.value}
|
|
|
3708
3713
|
onClick: U[0] || (U[0] = (ue) => te())
|
|
3709
3714
|
}, {
|
|
3710
3715
|
default: K(() => [
|
|
3711
|
-
oe(
|
|
3716
|
+
oe(F(w.value ? b(s)("baseForm.actions.hideConfiguration") : b(s)("baseForm.actions.viewConfiguration")), 1)
|
|
3712
3717
|
]),
|
|
3713
3718
|
_: 1
|
|
3714
3719
|
}, 8, ["data-testid"]),
|
|
@@ -3720,7 +3725,7 @@ ${w.value}
|
|
|
3720
3725
|
onClick: U[1] || (U[1] = (ue) => !!t.actionTeleportTarget && z())
|
|
3721
3726
|
}, {
|
|
3722
3727
|
default: K(() => [
|
|
3723
|
-
oe(
|
|
3728
|
+
oe(F(t.cancelButtonText ?? b(s)("baseForm.actions.cancel")), 1)
|
|
3724
3729
|
]),
|
|
3725
3730
|
_: 1
|
|
3726
3731
|
}, 8, ["data-testid", "disabled"]),
|
|
@@ -3732,14 +3737,14 @@ ${w.value}
|
|
|
3732
3737
|
onClick: U[2] || (U[2] = (ue) => !!t.actionTeleportTarget && j())
|
|
3733
3738
|
}, {
|
|
3734
3739
|
default: K(() => [
|
|
3735
|
-
oe(
|
|
3740
|
+
oe(F(t.saveButtonText ?? b(s)("baseForm.actions.save")), 1)
|
|
3736
3741
|
]),
|
|
3737
3742
|
_: 1
|
|
3738
3743
|
}, 8, ["data-testid", "disabled"])
|
|
3739
3744
|
], !0)
|
|
3740
3745
|
], 2)
|
|
3741
3746
|
], 8, ["disabled", "to"]))
|
|
3742
|
-
], 40,
|
|
3747
|
+
], 40, Do)),
|
|
3743
3748
|
J(ce, {
|
|
3744
3749
|
"close-on-blur": !1,
|
|
3745
3750
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3752,7 +3757,7 @@ ${w.value}
|
|
|
3752
3757
|
default: K(() => [
|
|
3753
3758
|
X("div", null, [
|
|
3754
3759
|
se(V.$slots, "configuration-slideout-message", {}, () => [
|
|
3755
|
-
oe(
|
|
3760
|
+
oe(F(b(s)("baseForm.configuration.message")), 1)
|
|
3756
3761
|
], !0)
|
|
3757
3762
|
]),
|
|
3758
3763
|
J(ae, {
|
|
@@ -3763,7 +3768,7 @@ ${w.value}
|
|
|
3763
3768
|
onChange: U[7] || (U[7] = (ue) => r("codeBlockTabChange", ue.replace("#", "")))
|
|
3764
3769
|
}, {
|
|
3765
3770
|
json: K(() => [
|
|
3766
|
-
J(
|
|
3771
|
+
J(qn, {
|
|
3767
3772
|
config: t.config,
|
|
3768
3773
|
"entity-record": a.formFields,
|
|
3769
3774
|
"fetcher-url": a.slideoutFetchUrl ?? B.value,
|
|
@@ -3771,43 +3776,43 @@ ${w.value}
|
|
|
3771
3776
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3772
3777
|
]),
|
|
3773
3778
|
yaml: K(() => [
|
|
3774
|
-
J(
|
|
3779
|
+
J(oi, {
|
|
3775
3780
|
"deck-callout-preference-key": b(x) ? b(Y) : void 0,
|
|
3776
3781
|
"entity-record": a.formFields,
|
|
3777
3782
|
"onDeckCallout:clickCta": U[3] || (U[3] = (ue) => ne.value = "#deck")
|
|
3778
3783
|
}, null, 8, ["deck-callout-preference-key", "entity-record"])
|
|
3779
3784
|
]),
|
|
3780
3785
|
terraform: K(() => [
|
|
3781
|
-
J(
|
|
3786
|
+
J(ri, {
|
|
3782
3787
|
"entity-record": a.formFields,
|
|
3783
3788
|
"entity-type": t.entityType,
|
|
3784
3789
|
"sub-entity-type": t.subEntityType
|
|
3785
3790
|
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])
|
|
3786
3791
|
]),
|
|
3787
3792
|
deck: K(() => [
|
|
3788
|
-
b(C) ? (g(), q("div",
|
|
3793
|
+
b(C) ? (g(), q("div", jo, [
|
|
3789
3794
|
J(E, {
|
|
3790
3795
|
appearance: "secondary",
|
|
3791
3796
|
class: "button-customize-deck",
|
|
3792
|
-
onClick: U[4] || (U[4] = (ue) =>
|
|
3797
|
+
onClick: U[4] || (U[4] = (ue) => G.value = !0)
|
|
3793
3798
|
}, {
|
|
3794
3799
|
default: K(() => [
|
|
3795
|
-
oe(
|
|
3800
|
+
oe(F(b(s)("baseConfigCard.actions.deck_customize")), 1)
|
|
3796
3801
|
]),
|
|
3797
3802
|
_: 1
|
|
3798
3803
|
})
|
|
3799
3804
|
])) : Q("", !0),
|
|
3800
|
-
J(
|
|
3805
|
+
J(li, {
|
|
3801
3806
|
app: t.config.app,
|
|
3802
3807
|
"control-plane-name": t.config.app === "konnect" ? t.config.controlPlaneName : void 0,
|
|
3803
3808
|
"customization-options": b(C),
|
|
3804
3809
|
"entity-record": a.formFields,
|
|
3805
3810
|
"entity-type": a.slideoutDeckEntityType ?? t.entityType,
|
|
3806
3811
|
"geo-api-server-url": t.config.app === "konnect" ? t.config.geoApiServerUrl : void 0,
|
|
3807
|
-
"is-customization-modal-visible":
|
|
3812
|
+
"is-customization-modal-visible": G.value,
|
|
3808
3813
|
"kong-admin-api-url": t.config.app === "kongManager" ? t.config.apiBaseUrl : void 0,
|
|
3809
3814
|
workspace: t.config.workspace || void 0,
|
|
3810
|
-
onCustomizationClose: U[5] || (U[5] = (ue) =>
|
|
3815
|
+
onCustomizationClose: U[5] || (U[5] = (ue) => G.value = !1)
|
|
3811
3816
|
}, null, 8, ["app", "control-plane-name", "customization-options", "entity-record", "entity-type", "geo-api-server-url", "is-customization-modal-visible", "kong-admin-api-url", "workspace"])
|
|
3812
3817
|
]),
|
|
3813
3818
|
_: 1
|
|
@@ -3820,7 +3825,7 @@ ${w.value}
|
|
|
3820
3825
|
}, 8, ["class"]);
|
|
3821
3826
|
};
|
|
3822
3827
|
}
|
|
3823
|
-
}),
|
|
3828
|
+
}), Ol = /* @__PURE__ */ Ae(Uo, [["__scopeId", "data-v-b3590221"]]), zo = ["data-truncate"], Ho = /* @__PURE__ */ he({
|
|
3824
3829
|
__name: "EntityBaseTableCell",
|
|
3825
3830
|
props: {
|
|
3826
3831
|
keyName: {
|
|
@@ -3837,40 +3842,40 @@ ${w.value}
|
|
|
3837
3842
|
}
|
|
3838
3843
|
},
|
|
3839
3844
|
setup(t) {
|
|
3840
|
-
const o = t, i =
|
|
3845
|
+
const o = t, i = N(() => o.rowEl?.querySelector(`[data-testid="${o.keyName}"]`) || null), u = N(() => i.value?.querySelector('[data-truncate="true"]') || null), r = N(() => {
|
|
3841
3846
|
const B = o.rowEl?.querySelectorAll("td");
|
|
3842
3847
|
return B ? B[0]?.getAttribute("data-testid") === o.keyName : !0;
|
|
3843
|
-
}), a =
|
|
3848
|
+
}), a = N(() => r.value || o.tooltip);
|
|
3844
3849
|
let l;
|
|
3845
3850
|
const s = () => {
|
|
3846
3851
|
l && (l.disconnect(), l = void 0);
|
|
3847
3852
|
}, m = () => {
|
|
3848
3853
|
let B = i.value?.clientWidth || 0;
|
|
3849
3854
|
if (i.value && "getComputedStyle" in window) {
|
|
3850
|
-
const
|
|
3851
|
-
B -= (parseFloat(
|
|
3855
|
+
const G = window.getComputedStyle(i.value);
|
|
3856
|
+
B -= (parseFloat(G.paddingLeft) || 0) + (parseFloat(G.paddingRight) || 0);
|
|
3852
3857
|
}
|
|
3853
3858
|
d.value = u.value?.getBoundingClientRect().width || 0, y.value = B, T.value = c.value?.innerText || "";
|
|
3854
|
-
}, c = le({}), d = le(0), y = le(0), T = le(""),
|
|
3855
|
-
|
|
3859
|
+
}, c = le({}), d = le(0), y = le(0), T = le(""), M = N(() => [u.value, i.value]), re = Oe(
|
|
3860
|
+
M,
|
|
3856
3861
|
(B) => {
|
|
3857
3862
|
if (a.value && (s(), "ResizeObserver" in window && window)) {
|
|
3858
|
-
l = new ResizeObserver((
|
|
3863
|
+
l = new ResizeObserver((G) => {
|
|
3859
3864
|
window.requestAnimationFrame(() => {
|
|
3860
|
-
!Array.isArray(
|
|
3865
|
+
!Array.isArray(G) || !G.length || m();
|
|
3861
3866
|
});
|
|
3862
3867
|
});
|
|
3863
|
-
for (const
|
|
3864
|
-
|
|
3868
|
+
for (const G of B)
|
|
3869
|
+
G && l.observe(G);
|
|
3865
3870
|
}
|
|
3866
3871
|
},
|
|
3867
3872
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3868
|
-
), w =
|
|
3869
|
-
return
|
|
3873
|
+
), w = N(() => a.value ? d.value > y.value : !1);
|
|
3874
|
+
return yt(() => {
|
|
3870
3875
|
m();
|
|
3871
|
-
}),
|
|
3876
|
+
}), di(() => {
|
|
3872
3877
|
re();
|
|
3873
|
-
}), (B,
|
|
3878
|
+
}), (B, G) => {
|
|
3874
3879
|
const x = ee("KTooltip");
|
|
3875
3880
|
return g(), q("span", {
|
|
3876
3881
|
ref_key: "contentRef",
|
|
@@ -3891,17 +3896,17 @@ ${w.value}
|
|
|
3891
3896
|
]),
|
|
3892
3897
|
_: 3
|
|
3893
3898
|
}, 8, ["text"])
|
|
3894
|
-
], 8,
|
|
3899
|
+
], 8, zo)) : se(B.$slots, "default", { key: 1 }, void 0, !0)
|
|
3895
3900
|
], 512);
|
|
3896
3901
|
};
|
|
3897
3902
|
}
|
|
3898
|
-
}),
|
|
3903
|
+
}), Yo = /* @__PURE__ */ Ae(Ho, [["__scopeId", "data-v-a3a65cac"]]), Vo = { class: "toolbar-container" }, Go = {
|
|
3899
3904
|
key: 0,
|
|
3900
3905
|
class: "toolbar-button-container"
|
|
3901
|
-
},
|
|
3906
|
+
}, Wo = {
|
|
3902
3907
|
key: 0,
|
|
3903
3908
|
class: "hidden"
|
|
3904
|
-
},
|
|
3909
|
+
}, Jo = /* @__PURE__ */ he({
|
|
3905
3910
|
__name: "EntityBaseTable",
|
|
3906
3911
|
props: {
|
|
3907
3912
|
// table header configuration
|
|
@@ -4046,7 +4051,7 @@ ${w.value}
|
|
|
4046
4051
|
},
|
|
4047
4052
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
|
|
4048
4053
|
setup(t, { emit: o }) {
|
|
4049
|
-
const i = t, u = o, { i18n: { t: r } } = fe.useI18n(), a =
|
|
4054
|
+
const i = t, u = o, { i18n: { t: r } } = fe.useI18n(), a = N(() => typeof i.errorMessage == "string" ? {
|
|
4050
4055
|
hasError: !!i.errorMessage,
|
|
4051
4056
|
title: i.errorMessage,
|
|
4052
4057
|
message: void 0
|
|
@@ -4054,7 +4059,7 @@ ${w.value}
|
|
|
4054
4059
|
hasError: !!i.errorMessage,
|
|
4055
4060
|
title: i.errorMessage?.title,
|
|
4056
4061
|
message: i.errorMessage?.message
|
|
4057
|
-
}), l =
|
|
4062
|
+
}), l = N(() => i.cacheIdentifier || i.preferencesStorageKey), s = N(() => {
|
|
4058
4063
|
const L = [];
|
|
4059
4064
|
return Object.keys(i.tableHeaders).forEach((V) => {
|
|
4060
4065
|
const U = i.tableHeaders[V];
|
|
@@ -4084,15 +4089,15 @@ ${w.value}
|
|
|
4084
4089
|
}), ne;
|
|
4085
4090
|
}, T = (L) => {
|
|
4086
4091
|
x(L), u("state", L);
|
|
4087
|
-
},
|
|
4092
|
+
}, M = () => {
|
|
4088
4093
|
u("empty-state-cta-clicked"), re();
|
|
4089
4094
|
}, re = () => {
|
|
4090
4095
|
u("clear-search-input");
|
|
4091
|
-
}, w =
|
|
4096
|
+
}, w = N(() => i.disableRowClick ? void 0 : (L, ne) => {
|
|
4092
4097
|
u("click:row", ne);
|
|
4093
4098
|
}), B = (L) => {
|
|
4094
4099
|
u("sort", L);
|
|
4095
|
-
}, { hideTableToolbar:
|
|
4100
|
+
}, { hideTableToolbar: G, handleStateChange: x } = fe.useTableState(() => i.query), { setTablePreferences: C, getTablePreferences: Y } = Ai(), te = le(Y(l.value, i.defaultTablePreferences)), me = N(() => {
|
|
4096
4101
|
const L = Y(l.value);
|
|
4097
4102
|
return {
|
|
4098
4103
|
...i.initialFetcherParams,
|
|
@@ -4102,7 +4107,7 @@ ${w.value}
|
|
|
4102
4107
|
te.value = L, s.value.forEach((ne) => {
|
|
4103
4108
|
!("hidable" in ne) || !te.value.columnVisibility || ne.hidable === !1 && (te.value.columnVisibility[ne.key] = !0);
|
|
4104
4109
|
}), l.value && C(l.value, L);
|
|
4105
|
-
}, j =
|
|
4110
|
+
}, j = N(() => ({
|
|
4106
4111
|
disablePageJump: i.disablePaginationPageJump,
|
|
4107
4112
|
offset: i.paginationType === "offset",
|
|
4108
4113
|
...i.paginationAttributes
|
|
@@ -4134,7 +4139,7 @@ ${w.value}
|
|
|
4134
4139
|
headers: s.value,
|
|
4135
4140
|
"hide-pagination": t.hidePagination,
|
|
4136
4141
|
"hide-pagination-when-optional": t.hidePaginationWhenOptional,
|
|
4137
|
-
"hide-toolbar": t.hideToolbar ?? b(
|
|
4142
|
+
"hide-toolbar": t.hideToolbar ?? b(G),
|
|
4138
4143
|
"initial-fetcher-params": me.value,
|
|
4139
4144
|
loading: t.isLoading,
|
|
4140
4145
|
"pagination-attributes": j.value,
|
|
@@ -4145,16 +4150,16 @@ ${w.value}
|
|
|
4145
4150
|
"sort-handler-function": t.enableClientSort ? t.sortHandlerFunction : void 0,
|
|
4146
4151
|
sortable: !t.disableSorting,
|
|
4147
4152
|
"table-preferences": te.value,
|
|
4148
|
-
onEmptyStateActionClick:
|
|
4153
|
+
onEmptyStateActionClick: M,
|
|
4149
4154
|
"onRow:click": w.value,
|
|
4150
4155
|
onSort: ne[0] || (ne[0] = (pe) => B(pe)),
|
|
4151
4156
|
onState: T,
|
|
4152
4157
|
"onUpdate:tablePreferences": z
|
|
4153
4158
|
}, qe({
|
|
4154
4159
|
toolbar: K(() => [
|
|
4155
|
-
X("div",
|
|
4160
|
+
X("div", Vo, [
|
|
4156
4161
|
se(L.$slots, "toolbar-filter", {}, void 0, !0),
|
|
4157
|
-
L.$slots["toolbar-button"] ? (g(), q("div",
|
|
4162
|
+
L.$slots["toolbar-button"] ? (g(), q("div", Go, [
|
|
4158
4163
|
se(L.$slots, "toolbar-button", {}, void 0, !0)
|
|
4159
4164
|
])) : Q("", !0)
|
|
4160
4165
|
])
|
|
@@ -4171,21 +4176,21 @@ ${w.value}
|
|
|
4171
4176
|
]),
|
|
4172
4177
|
key: "0"
|
|
4173
4178
|
} : void 0,
|
|
4174
|
-
|
|
4175
|
-
name:
|
|
4179
|
+
_e(t.tableHeaders, (pe, O) => ({
|
|
4180
|
+
name: O,
|
|
4176
4181
|
fn: K(({ row: ie, rowValue: E }) => [
|
|
4177
|
-
J(
|
|
4178
|
-
"key-name": String(
|
|
4182
|
+
J(Yo, {
|
|
4183
|
+
"key-name": String(O),
|
|
4179
4184
|
"row-el": d(ie),
|
|
4180
4185
|
tooltip: pe.tooltip
|
|
4181
4186
|
}, {
|
|
4182
4187
|
default: K(() => [
|
|
4183
|
-
se(L.$slots,
|
|
4188
|
+
se(L.$slots, O, {
|
|
4184
4189
|
row: ie,
|
|
4185
4190
|
rowKey: t.rowKey,
|
|
4186
4191
|
rowValue: E
|
|
4187
4192
|
}, () => [
|
|
4188
|
-
oe(
|
|
4193
|
+
oe(F(E), 1)
|
|
4189
4194
|
], !0)
|
|
4190
4195
|
]),
|
|
4191
4196
|
_: 2
|
|
@@ -4195,12 +4200,12 @@ ${w.value}
|
|
|
4195
4200
|
t.query ? void 0 : {
|
|
4196
4201
|
name: "empty-state-action-icon",
|
|
4197
4202
|
fn: K(() => [
|
|
4198
|
-
J(b(
|
|
4203
|
+
J(b(Mn))
|
|
4199
4204
|
]),
|
|
4200
4205
|
key: "1"
|
|
4201
4206
|
}
|
|
4202
4207
|
]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
|
|
4203
|
-
L.$slots["outside-actions"] && b(
|
|
4208
|
+
L.$slots["outside-actions"] && b(G) ? (g(), q("div", Wo, [
|
|
4204
4209
|
se(L.$slots, "outside-actions", {}, void 0, !0)
|
|
4205
4210
|
])) : Q("", !0)
|
|
4206
4211
|
]),
|
|
@@ -4208,13 +4213,13 @@ ${w.value}
|
|
|
4208
4213
|
}, 8, ["title", "title-tag"]);
|
|
4209
4214
|
};
|
|
4210
4215
|
}
|
|
4211
|
-
}),
|
|
4216
|
+
}), Bl = /* @__PURE__ */ Ae(Jo, [["__scopeId", "data-v-09e101d4"]]), Qo = {
|
|
4212
4217
|
key: 0,
|
|
4213
4218
|
class: "kong-ui-entity-delete-error"
|
|
4214
|
-
},
|
|
4219
|
+
}, Xo = {
|
|
4215
4220
|
key: 1,
|
|
4216
4221
|
class: "description"
|
|
4217
|
-
},
|
|
4222
|
+
}, Zo = /* @__PURE__ */ he({
|
|
4218
4223
|
__name: "EntityDeleteModal",
|
|
4219
4224
|
props: {
|
|
4220
4225
|
visible: {
|
|
@@ -4265,9 +4270,9 @@ ${w.value}
|
|
|
4265
4270
|
},
|
|
4266
4271
|
emits: ["cancel", "proceed"],
|
|
4267
4272
|
setup(t, { emit: o }) {
|
|
4268
|
-
const { i18nT: i } = fe.useI18n(), u = t, r = o, a =
|
|
4273
|
+
const { i18nT: i } = fe.useI18n(), u = t, r = o, a = N(
|
|
4269
4274
|
() => u.entityTypeDisplay.trim() !== "" ? u.entityTypeDisplay : u.entityType
|
|
4270
|
-
), l =
|
|
4275
|
+
), l = N(() => u.needConfirm ? u.entityName : ""), s = () => {
|
|
4271
4276
|
r("cancel");
|
|
4272
4277
|
}, m = () => {
|
|
4273
4278
|
r("proceed");
|
|
@@ -4291,10 +4296,10 @@ ${w.value}
|
|
|
4291
4296
|
X("div", {
|
|
4292
4297
|
class: Ce(["body", { "body-stacked-copy": t.stackedCopy }])
|
|
4293
4298
|
}, [
|
|
4294
|
-
t.error ? (g(), q("div",
|
|
4299
|
+
t.error ? (g(), q("div", Qo, [
|
|
4295
4300
|
J(y, { appearance: "danger" }, {
|
|
4296
4301
|
default: K(() => [
|
|
4297
|
-
oe(
|
|
4302
|
+
oe(F(t.error), 1)
|
|
4298
4303
|
]),
|
|
4299
4304
|
_: 1
|
|
4300
4305
|
})
|
|
@@ -4306,22 +4311,22 @@ ${w.value}
|
|
|
4306
4311
|
tag: "p"
|
|
4307
4312
|
}, qe({
|
|
4308
4313
|
entityType: K(() => [
|
|
4309
|
-
oe(
|
|
4314
|
+
oe(F(a.value), 1)
|
|
4310
4315
|
]),
|
|
4311
4316
|
_: 2
|
|
4312
4317
|
}, [
|
|
4313
4318
|
u.entityName ? {
|
|
4314
4319
|
name: "entityName",
|
|
4315
4320
|
fn: K(() => [
|
|
4316
|
-
X("strong", null,
|
|
4321
|
+
X("strong", null, F(u.entityName), 1)
|
|
4317
4322
|
]),
|
|
4318
4323
|
key: "0"
|
|
4319
4324
|
} : void 0
|
|
4320
4325
|
]), 1032, ["keypath"])
|
|
4321
4326
|
], !0),
|
|
4322
|
-
u.description || c.$slots.description ? (g(), q("div",
|
|
4327
|
+
u.description || c.$slots.description ? (g(), q("div", Xo, [
|
|
4323
4328
|
se(c.$slots, "description", {}, () => [
|
|
4324
|
-
X("p", null,
|
|
4329
|
+
X("p", null, F(u.description), 1)
|
|
4325
4330
|
], !0)
|
|
4326
4331
|
])) : Q("", !0)
|
|
4327
4332
|
], 2)
|
|
@@ -4330,10 +4335,10 @@ ${w.value}
|
|
|
4330
4335
|
}, 8, ["action-button-disabled", "class", "confirmation-prompt", "confirmation-text", "title", "visible"]);
|
|
4331
4336
|
};
|
|
4332
4337
|
}
|
|
4333
|
-
}),
|
|
4338
|
+
}), Rl = /* @__PURE__ */ Ae(Zo, [["__scopeId", "data-v-fc366e0c"]]), er = {
|
|
4334
4339
|
key: 1,
|
|
4335
4340
|
class: "kong-ui-entity-filter"
|
|
4336
|
-
},
|
|
4341
|
+
}, tr = { class: "kong-ui-entity-filter-menu" }, nr = ["data-testid"], ir = ["onClick", "onKeydown"], or = { class: "menu-item-indicator" }, rr = { class: "menu-item-body" }, lr = ["for"], ar = { class: "menu-item-buttons" }, cr = { class: "filter-clear-button-container" }, sr = /* @__PURE__ */ he({
|
|
4337
4342
|
__name: "EntityFilter",
|
|
4338
4343
|
props: {
|
|
4339
4344
|
// filter config, either exact match or fuzzy match
|
|
@@ -4353,12 +4358,12 @@ ${w.value}
|
|
|
4353
4358
|
},
|
|
4354
4359
|
emits: ["update:modelValue"],
|
|
4355
4360
|
setup(t, { emit: o }) {
|
|
4356
|
-
const { i18n: { t: i } } = fe.useI18n(), u = t, r = o, a = le(!1), l = le({}), s = le(/* @__PURE__ */ new Set()), m =
|
|
4361
|
+
const { i18n: { t: i } } = fe.useI18n(), u = t, r = o, a = le(!1), l = le({}), s = le(/* @__PURE__ */ new Set()), m = N(() => {
|
|
4357
4362
|
const z = [];
|
|
4358
4363
|
return new URLSearchParams(u.modelValue).forEach((j, L) => {
|
|
4359
4364
|
j !== "" && z.push(L);
|
|
4360
4365
|
}), z;
|
|
4361
|
-
}), c =
|
|
4366
|
+
}), c = N(() => {
|
|
4362
4367
|
const z = u.config.fields;
|
|
4363
4368
|
return Object.keys(z).filter((j) => z?.[j]?.searchable).map((j) => ({
|
|
4364
4369
|
label: z[j].label || j,
|
|
@@ -4366,7 +4371,7 @@ ${w.value}
|
|
|
4366
4371
|
expanded: !1
|
|
4367
4372
|
}));
|
|
4368
4373
|
});
|
|
4369
|
-
|
|
4374
|
+
Oe(() => u.modelValue, (z) => {
|
|
4370
4375
|
l.value = {}, new URLSearchParams(z).forEach((j, L) => {
|
|
4371
4376
|
l.value[L] = j;
|
|
4372
4377
|
});
|
|
@@ -4377,9 +4382,9 @@ ${w.value}
|
|
|
4377
4382
|
s.value.has(z) ? s.value.delete(z) : s.value.add(z);
|
|
4378
4383
|
}, T = (z) => {
|
|
4379
4384
|
r("update:modelValue", z);
|
|
4380
|
-
},
|
|
4385
|
+
}, M = () => {
|
|
4381
4386
|
T("");
|
|
4382
|
-
}, re = (z) => `filter-${z}`, w = (z) => (u.config.schema?.[z]?.values ?? []).map((j) => typeof j == "string" ? { value: j, label: j } : j), B = (z) => u.config.schema?.[z]?.type ?? "text",
|
|
4387
|
+
}, re = (z) => `filter-${z}`, w = (z) => (u.config.schema?.[z]?.values ?? []).map((j) => typeof j == "string" ? { value: j, label: j } : j), B = (z) => u.config.schema?.[z]?.type ?? "text", G = (z) => {
|
|
4383
4388
|
l.value = {
|
|
4384
4389
|
...l.value,
|
|
4385
4390
|
[z]: ""
|
|
@@ -4407,28 +4412,28 @@ ${w.value}
|
|
|
4407
4412
|
"onUpdate:modelValue": T
|
|
4408
4413
|
}, {
|
|
4409
4414
|
before: K(() => [
|
|
4410
|
-
J(b(
|
|
4415
|
+
J(b(Xt), { decorative: "" })
|
|
4411
4416
|
]),
|
|
4412
4417
|
after: K(() => [
|
|
4413
|
-
ze(J(b(
|
|
4418
|
+
ze(J(b(Mi), {
|
|
4414
4419
|
class: "kong-ui-entity-filter-clear",
|
|
4415
4420
|
role: "button",
|
|
4416
4421
|
tabindex: "0",
|
|
4417
|
-
onClick:
|
|
4422
|
+
onClick: M
|
|
4418
4423
|
}, null, 512), [
|
|
4419
4424
|
[He, t.modelValue !== ""]
|
|
4420
4425
|
])
|
|
4421
4426
|
]),
|
|
4422
4427
|
_: 1
|
|
4423
|
-
}, 8, ["model-value", "placeholder"])) : (g(), q("div",
|
|
4428
|
+
}, 8, ["model-value", "placeholder"])) : (g(), q("div", er, [
|
|
4424
4429
|
J(ne, {
|
|
4425
4430
|
appearance: "tertiary",
|
|
4426
4431
|
"data-testid": "filter-button",
|
|
4427
4432
|
onClick: d
|
|
4428
4433
|
}, {
|
|
4429
4434
|
default: K(() => [
|
|
4430
|
-
J(b(
|
|
4431
|
-
oe(" " +
|
|
4435
|
+
J(b(Xt), { decorative: "" }),
|
|
4436
|
+
oe(" " + F(b(i)("filter.filterButtonText")) + " " + F(m.value.length > 0 ? `(${m.value.length})` : ""), 1)
|
|
4432
4437
|
]),
|
|
4433
4438
|
_: 1
|
|
4434
4439
|
}),
|
|
@@ -4438,8 +4443,8 @@ ${w.value}
|
|
|
4438
4443
|
}, null, 512), [
|
|
4439
4444
|
[He, a.value]
|
|
4440
4445
|
]),
|
|
4441
|
-
ze(X("div",
|
|
4442
|
-
(g(!0), q(Te, null,
|
|
4446
|
+
ze(X("div", tr, [
|
|
4447
|
+
(g(!0), q(Te, null, _e(c.value, (U) => (g(), q("div", {
|
|
4443
4448
|
key: U.value,
|
|
4444
4449
|
class: "kong-ui-entity-filter-menu-item",
|
|
4445
4450
|
"data-testid": U.value
|
|
@@ -4449,22 +4454,22 @@ ${w.value}
|
|
|
4449
4454
|
role: "button",
|
|
4450
4455
|
tabindex: "0",
|
|
4451
4456
|
onClick: (pe) => y(U.value),
|
|
4452
|
-
onKeydown:
|
|
4457
|
+
onKeydown: Rn((pe) => y(U.value), ["enter"])
|
|
4453
4458
|
}, [
|
|
4454
|
-
oe(
|
|
4455
|
-
ze(X("span",
|
|
4459
|
+
oe(F(U.label) + " ", 1),
|
|
4460
|
+
ze(X("span", or, null, 512), [
|
|
4456
4461
|
[He, m.value.includes(U.value)]
|
|
4457
4462
|
]),
|
|
4458
|
-
J(b(
|
|
4463
|
+
J(b(Fi), {
|
|
4459
4464
|
class: Ce(["menu-item-expand-icon", { expanded: s.value.has(U.value) }]),
|
|
4460
|
-
color: `var(--kui-color-text-neutral-weak, ${b(
|
|
4465
|
+
color: `var(--kui-color-text-neutral-weak, ${b(Bo)})`
|
|
4461
4466
|
}, null, 8, ["class", "color"])
|
|
4462
|
-
], 42,
|
|
4463
|
-
ze(X("div",
|
|
4467
|
+
], 42, ir),
|
|
4468
|
+
ze(X("div", rr, [
|
|
4464
4469
|
X("label", {
|
|
4465
4470
|
class: "menu-item-label",
|
|
4466
4471
|
for: re(U.value)
|
|
4467
|
-
},
|
|
4472
|
+
}, F(b(i)("filter.fieldLabel")), 9, lr),
|
|
4468
4473
|
t.config.schema?.[U.value]?.type === "select" ? (g(), H(V, {
|
|
4469
4474
|
key: 0,
|
|
4470
4475
|
id: re(U.value),
|
|
@@ -4487,7 +4492,7 @@ ${w.value}
|
|
|
4487
4492
|
], 512), [
|
|
4488
4493
|
[He, s.value.has(U.value)]
|
|
4489
4494
|
]),
|
|
4490
|
-
ze(X("div",
|
|
4495
|
+
ze(X("div", ar, [
|
|
4491
4496
|
J(ne, {
|
|
4492
4497
|
appearance: "tertiary",
|
|
4493
4498
|
"data-testid": "apply-filter",
|
|
@@ -4495,7 +4500,7 @@ ${w.value}
|
|
|
4495
4500
|
onClick: j[0] || (j[0] = (pe) => C(!0))
|
|
4496
4501
|
}, {
|
|
4497
4502
|
default: K(() => [
|
|
4498
|
-
oe(
|
|
4503
|
+
oe(F(b(i)("filter.applyButtonText")), 1)
|
|
4499
4504
|
]),
|
|
4500
4505
|
_: 1
|
|
4501
4506
|
}),
|
|
@@ -4503,25 +4508,25 @@ ${w.value}
|
|
|
4503
4508
|
appearance: "tertiary",
|
|
4504
4509
|
"data-testid": "clear-filter",
|
|
4505
4510
|
size: "small",
|
|
4506
|
-
onClick: (pe) =>
|
|
4511
|
+
onClick: (pe) => G(U.value)
|
|
4507
4512
|
}, {
|
|
4508
4513
|
default: K(() => [
|
|
4509
|
-
oe(
|
|
4514
|
+
oe(F(b(i)("filter.clearButtonText")), 1)
|
|
4510
4515
|
]),
|
|
4511
4516
|
_: 1
|
|
4512
4517
|
}, 8, ["onClick"])
|
|
4513
4518
|
], 512), [
|
|
4514
4519
|
[He, s.value.has(U.value)]
|
|
4515
4520
|
])
|
|
4516
|
-
], 8,
|
|
4517
|
-
X("div",
|
|
4521
|
+
], 8, nr))), 128)),
|
|
4522
|
+
X("div", cr, [
|
|
4518
4523
|
J(ne, {
|
|
4519
4524
|
appearance: "tertiary",
|
|
4520
4525
|
size: "small",
|
|
4521
4526
|
onClick: x
|
|
4522
4527
|
}, {
|
|
4523
4528
|
default: K(() => [
|
|
4524
|
-
oe(
|
|
4529
|
+
oe(F(b(i)("filter.clearAllButtonText")), 1)
|
|
4525
4530
|
]),
|
|
4526
4531
|
_: 1
|
|
4527
4532
|
})
|
|
@@ -4532,7 +4537,7 @@ ${w.value}
|
|
|
4532
4537
|
]));
|
|
4533
4538
|
};
|
|
4534
4539
|
}
|
|
4535
|
-
}),
|
|
4540
|
+
}), Kl = /* @__PURE__ */ Ae(sr, [["__scopeId", "data-v-10015be6"]]), Ll = /* @__PURE__ */ he({
|
|
4536
4541
|
__name: "EntityToggleModal",
|
|
4537
4542
|
props: {
|
|
4538
4543
|
visible: {
|
|
@@ -4564,9 +4569,9 @@ ${w.value}
|
|
|
4564
4569
|
},
|
|
4565
4570
|
emits: ["cancel", "proceed"],
|
|
4566
4571
|
setup(t, { emit: o }) {
|
|
4567
|
-
const { i18n: { t: i }, i18nT: u } = fe.useI18n(), r = t, a = o, l = le(!1), s =
|
|
4572
|
+
const { i18n: { t: i }, i18nT: u } = fe.useI18n(), r = t, a = o, l = le(!1), s = N(
|
|
4568
4573
|
() => r.action === "enable" ? i("toggleModal.enable.title", { entityType: r.entityType }) : i("toggleModal.disable.title", { entityType: r.entityType })
|
|
4569
|
-
), m =
|
|
4574
|
+
), m = N(
|
|
4570
4575
|
() => r.action === "enable" ? i("toggleModal.enable.confirmText") : i("toggleModal.disable.confirmText")
|
|
4571
4576
|
), c = () => a("cancel"), d = async () => {
|
|
4572
4577
|
if (r.onConfirm) {
|
|
@@ -4581,9 +4586,9 @@ ${w.value}
|
|
|
4581
4586
|
}
|
|
4582
4587
|
};
|
|
4583
4588
|
return (y, T) => {
|
|
4584
|
-
const
|
|
4585
|
-
return g(), H(
|
|
4586
|
-
J(
|
|
4589
|
+
const M = ee("KPrompt");
|
|
4590
|
+
return g(), H(Bn, { to: "body" }, [
|
|
4591
|
+
J(M, {
|
|
4587
4592
|
"action-button-disabled": l.value,
|
|
4588
4593
|
"action-button-text": m.value,
|
|
4589
4594
|
"data-testid": `${t.entityType}-${t.entityId}-toggle-prompt`,
|
|
@@ -4598,10 +4603,10 @@ ${w.value}
|
|
|
4598
4603
|
scope: "global"
|
|
4599
4604
|
}, {
|
|
4600
4605
|
entityType: K(() => [
|
|
4601
|
-
oe(
|
|
4606
|
+
oe(F(t.entityType), 1)
|
|
4602
4607
|
]),
|
|
4603
4608
|
entityName: K(() => [
|
|
4604
|
-
X("strong", null,
|
|
4609
|
+
X("strong", null, F(t.entityName), 1)
|
|
4605
4610
|
]),
|
|
4606
4611
|
_: 1
|
|
4607
4612
|
}, 8, ["keypath"])
|
|
@@ -4611,7 +4616,7 @@ ${w.value}
|
|
|
4611
4616
|
]);
|
|
4612
4617
|
};
|
|
4613
4618
|
}
|
|
4614
|
-
}),
|
|
4619
|
+
}), Ml = /* @__PURE__ */ he({
|
|
4615
4620
|
__name: "PermissionsWrapper",
|
|
4616
4621
|
props: {
|
|
4617
4622
|
/**
|
|
@@ -4633,8 +4638,8 @@ ${w.value}
|
|
|
4633
4638
|
}
|
|
4634
4639
|
},
|
|
4635
4640
|
setup(t) {
|
|
4636
|
-
const o = t, i = le(void 0), u =
|
|
4637
|
-
return
|
|
4641
|
+
const o = t, i = le(void 0), u = N(() => i.value === !0 || i.value !== void 0 && o.forceShow === !0);
|
|
4642
|
+
return Oe(() => o.authFunction, async () => {
|
|
4638
4643
|
i.value = await o.authFunction();
|
|
4639
4644
|
}, { immediate: !0 }), (r, a) => u.value ? se(r.$slots, "default", {
|
|
4640
4645
|
key: 0,
|
|
@@ -4644,30 +4649,30 @@ ${w.value}
|
|
|
4644
4649
|
}), Se = [];
|
|
4645
4650
|
for (let t = 0; t < 256; ++t)
|
|
4646
4651
|
Se.push((t + 256).toString(16).slice(1));
|
|
4647
|
-
function
|
|
4652
|
+
function ur(t, o = 0) {
|
|
4648
4653
|
return (Se[t[o + 0]] + Se[t[o + 1]] + Se[t[o + 2]] + Se[t[o + 3]] + "-" + Se[t[o + 4]] + Se[t[o + 5]] + "-" + Se[t[o + 6]] + Se[t[o + 7]] + "-" + Se[t[o + 8]] + Se[t[o + 9]] + "-" + Se[t[o + 10]] + Se[t[o + 11]] + Se[t[o + 12]] + Se[t[o + 13]] + Se[t[o + 14]] + Se[t[o + 15]]).toLowerCase();
|
|
4649
4654
|
}
|
|
4650
|
-
const
|
|
4651
|
-
function
|
|
4652
|
-
return crypto.getRandomValues(
|
|
4655
|
+
const dr = new Uint8Array(16);
|
|
4656
|
+
function fr() {
|
|
4657
|
+
return crypto.getRandomValues(dr);
|
|
4653
4658
|
}
|
|
4654
|
-
function
|
|
4655
|
-
return crypto.randomUUID ? crypto.randomUUID() :
|
|
4659
|
+
function pr(t, o, i) {
|
|
4660
|
+
return crypto.randomUUID ? crypto.randomUUID() : mr(t);
|
|
4656
4661
|
}
|
|
4657
|
-
function
|
|
4662
|
+
function mr(t, o, i) {
|
|
4658
4663
|
t = t || {};
|
|
4659
|
-
const u = t.random ?? t.rng?.() ??
|
|
4664
|
+
const u = t.random ?? t.rng?.() ?? fr();
|
|
4660
4665
|
if (u.length < 16)
|
|
4661
4666
|
throw new Error("Random bytes length must be >= 16");
|
|
4662
|
-
return u[6] = u[6] & 15 | 64, u[8] = u[8] & 63 | 128,
|
|
4667
|
+
return u[6] = u[6] & 15 | 64, u[8] = u[8] & 63 | 128, ur(u);
|
|
4663
4668
|
}
|
|
4664
|
-
const
|
|
4669
|
+
const yr = ["aria-labelledby"], gr = { class: "form-section-wrapper" }, hr = {
|
|
4665
4670
|
key: 1,
|
|
4666
4671
|
class: "form-section-description"
|
|
4667
|
-
},
|
|
4672
|
+
}, vr = {
|
|
4668
4673
|
key: 2,
|
|
4669
4674
|
class: "form-section-footer"
|
|
4670
|
-
},
|
|
4675
|
+
}, br = { class: "form-section-content" }, kr = /* @__PURE__ */ he({
|
|
4671
4676
|
__name: "EntityFormSection",
|
|
4672
4677
|
props: {
|
|
4673
4678
|
title: {
|
|
@@ -4696,13 +4701,13 @@ const pr = ["aria-labelledby"], mr = { class: "form-section-wrapper" }, yr = {
|
|
|
4696
4701
|
}
|
|
4697
4702
|
},
|
|
4698
4703
|
setup(t) {
|
|
4699
|
-
const o =
|
|
4704
|
+
const o = mt(), i = pr();
|
|
4700
4705
|
return (u, r) => (g(), q("div", {
|
|
4701
4706
|
"aria-labelledby": t.title ? b(i) : void 0,
|
|
4702
4707
|
class: Ce(["kong-ui-entity-form-section", { "has-divider": t.hasDivider }]),
|
|
4703
4708
|
role: "group"
|
|
4704
4709
|
}, [
|
|
4705
|
-
X("div",
|
|
4710
|
+
X("div", gr, [
|
|
4706
4711
|
t.hideInfoHeader ? Q("", !0) : (g(), q("div", {
|
|
4707
4712
|
key: 0,
|
|
4708
4713
|
class: Ce(["form-section-info", { sticky: t.stickyInfoHeader }])
|
|
@@ -4713,44 +4718,44 @@ const pr = ["aria-labelledby"], mr = { class: "form-section-wrapper" }, yr = {
|
|
|
4713
4718
|
class: "form-section-title"
|
|
4714
4719
|
}, {
|
|
4715
4720
|
default: K(() => [
|
|
4716
|
-
oe(
|
|
4721
|
+
oe(F(t.title), 1)
|
|
4717
4722
|
]),
|
|
4718
4723
|
_: 1
|
|
4719
4724
|
}, 8, ["id"])) : Q("", !0),
|
|
4720
|
-
t.description || b(o).description ? (g(), q("div",
|
|
4725
|
+
t.description || b(o).description ? (g(), q("div", hr, [
|
|
4721
4726
|
se(u.$slots, "description", {}, () => [
|
|
4722
|
-
X("p", null,
|
|
4727
|
+
X("p", null, F(t.description), 1)
|
|
4723
4728
|
], !0)
|
|
4724
4729
|
])) : Q("", !0),
|
|
4725
|
-
b(o).footer ? (g(), q("div",
|
|
4730
|
+
b(o).footer ? (g(), q("div", vr, [
|
|
4726
4731
|
se(u.$slots, "footer", {}, void 0, !0)
|
|
4727
4732
|
])) : Q("", !0)
|
|
4728
4733
|
], 2)),
|
|
4729
|
-
X("div",
|
|
4734
|
+
X("div", br, [
|
|
4730
4735
|
se(u.$slots, "default", {}, void 0, !0)
|
|
4731
4736
|
])
|
|
4732
4737
|
])
|
|
4733
|
-
], 10,
|
|
4738
|
+
], 10, yr));
|
|
4734
4739
|
}
|
|
4735
|
-
}),
|
|
4740
|
+
}), Fl = /* @__PURE__ */ Ae(kr, [["__scopeId", "data-v-ccd29028"]]), Cr = { class: "header" }, Ar = {
|
|
4736
4741
|
key: 0,
|
|
4737
4742
|
class: "step",
|
|
4738
4743
|
"data-testid": "form-block-step"
|
|
4739
|
-
},
|
|
4744
|
+
}, Sr = { class: "header-content" }, Tr = {
|
|
4740
4745
|
class: "header-title",
|
|
4741
4746
|
"data-testid": "header-title"
|
|
4742
|
-
},
|
|
4747
|
+
}, wr = {
|
|
4743
4748
|
key: 0,
|
|
4744
4749
|
class: "header-description",
|
|
4745
4750
|
"data-testid": "header-description"
|
|
4746
|
-
},
|
|
4751
|
+
}, $r = {
|
|
4747
4752
|
key: 1,
|
|
4748
4753
|
class: "header-extra",
|
|
4749
4754
|
"data-testid": "header-extra"
|
|
4750
|
-
},
|
|
4755
|
+
}, Er = {
|
|
4751
4756
|
class: "content",
|
|
4752
4757
|
"data-testid": "form-block-content"
|
|
4753
|
-
},
|
|
4758
|
+
}, Ir = /* @__PURE__ */ he({
|
|
4754
4759
|
__name: "EntityFormBlock",
|
|
4755
4760
|
props: {
|
|
4756
4761
|
step: { default: () => {
|
|
@@ -4759,46 +4764,46 @@ const pr = ["aria-labelledby"], mr = { class: "form-section-wrapper" }, yr = {
|
|
|
4759
4764
|
description: { default: "" }
|
|
4760
4765
|
},
|
|
4761
4766
|
setup(t) {
|
|
4762
|
-
const o =
|
|
4767
|
+
const o = mt();
|
|
4763
4768
|
return (i, u) => (g(), q("div", {
|
|
4764
4769
|
class: Ce(["kong-ui-entity-form-block", {
|
|
4765
4770
|
stepped: t.step !== void 0 || o.step
|
|
4766
4771
|
}])
|
|
4767
4772
|
}, [
|
|
4768
|
-
X("header",
|
|
4769
|
-
t.step !== void 0 || o.step ? (g(), q("div",
|
|
4773
|
+
X("header", Cr, [
|
|
4774
|
+
t.step !== void 0 || o.step ? (g(), q("div", Ar, [
|
|
4770
4775
|
se(i.$slots, "step", {}, () => [
|
|
4771
|
-
oe(
|
|
4776
|
+
oe(F(t.step), 1)
|
|
4772
4777
|
], !0)
|
|
4773
4778
|
])) : Q("", !0),
|
|
4774
|
-
X("div",
|
|
4775
|
-
X("h2",
|
|
4779
|
+
X("div", Sr, [
|
|
4780
|
+
X("h2", Tr, [
|
|
4776
4781
|
se(i.$slots, "title", {}, () => [
|
|
4777
|
-
oe(
|
|
4782
|
+
oe(F(t.title), 1)
|
|
4778
4783
|
], !0)
|
|
4779
4784
|
]),
|
|
4780
|
-
t.description || o.description ? (g(), q("div",
|
|
4785
|
+
t.description || o.description ? (g(), q("div", wr, [
|
|
4781
4786
|
se(i.$slots, "description", {}, () => [
|
|
4782
|
-
oe(
|
|
4787
|
+
oe(F(t.description), 1)
|
|
4783
4788
|
], !0)
|
|
4784
4789
|
])) : Q("", !0)
|
|
4785
4790
|
]),
|
|
4786
|
-
o.extra ? (g(), q("div",
|
|
4791
|
+
o.extra ? (g(), q("div", $r, [
|
|
4787
4792
|
se(i.$slots, "extra", {}, void 0, !0)
|
|
4788
4793
|
])) : Q("", !0)
|
|
4789
4794
|
]),
|
|
4790
|
-
X("div",
|
|
4795
|
+
X("div", Er, [
|
|
4791
4796
|
se(i.$slots, "default", {}, void 0, !0)
|
|
4792
4797
|
])
|
|
4793
4798
|
], 2));
|
|
4794
4799
|
}
|
|
4795
|
-
}),
|
|
4800
|
+
}), Nl = /* @__PURE__ */ Ae(Ir, [["__scopeId", "data-v-7dd2f21d"]]), xr = {
|
|
4796
4801
|
class: "kong-ui-public-entity-link",
|
|
4797
4802
|
"data-testid": "entity-link-parent"
|
|
4798
|
-
},
|
|
4803
|
+
}, _r = {
|
|
4799
4804
|
key: 0,
|
|
4800
4805
|
class: "deleted-entity"
|
|
4801
|
-
},
|
|
4806
|
+
}, Or = { key: 1 }, Br = ["onClick"], Rr = /* @__PURE__ */ he({
|
|
4802
4807
|
__name: "EntityLink",
|
|
4803
4808
|
props: {
|
|
4804
4809
|
entityLinkData: {
|
|
@@ -4822,15 +4827,15 @@ const pr = ["aria-labelledby"], mr = { class: "form-section-wrapper" }, yr = {
|
|
|
4822
4827
|
}
|
|
4823
4828
|
},
|
|
4824
4829
|
setup(t) {
|
|
4825
|
-
const o = t, i = le(), { isTruncated: u } = fe.useTruncationDetector(i), { i18n: { t: r } } = fe.useI18n(), a = r("global.actions.copyId"), l = le(a), s =
|
|
4830
|
+
const o = t, i = le(), { isTruncated: u } = fe.useTruncationDetector(i), { i18n: { t: r } } = fe.useI18n(), a = r("global.actions.copyId"), l = le(a), s = N(() => o.entityLinkData.deleted ?? !1), m = N(() => o.entityLinkData.id?.toString().includes(":") ? o.entityLinkData.id.toString().split(":")[1] : o.entityLinkData.id), c = N(() => `${m.value?.toString().slice(0, 5)} (deleted)`), d = async (y) => {
|
|
4826
4831
|
await y(m.value || "") && (l.value = r("global.actions.copyToClipboard"), setTimeout(() => {
|
|
4827
4832
|
l.value = a;
|
|
4828
4833
|
}, 1800));
|
|
4829
4834
|
};
|
|
4830
4835
|
return (y, T) => {
|
|
4831
|
-
const
|
|
4832
|
-
return g(), q("div",
|
|
4833
|
-
s.value ? (g(), q("div",
|
|
4836
|
+
const M = ee("KTooltip"), re = ee("KExternalLink"), w = ee("KClipboardProvider");
|
|
4837
|
+
return g(), q("div", xr, [
|
|
4838
|
+
s.value ? (g(), q("div", _r, F(c.value), 1)) : m.value ? m.value ? (g(), H(re, {
|
|
4834
4839
|
key: 2,
|
|
4835
4840
|
class: "entity-link",
|
|
4836
4841
|
"hide-icon": !t.newWindow,
|
|
@@ -4838,7 +4843,7 @@ const pr = ["aria-labelledby"], mr = { class: "form-section-wrapper" }, yr = {
|
|
|
4838
4843
|
target: t.newWindow ? "_blank" : "_self"
|
|
4839
4844
|
}, {
|
|
4840
4845
|
default: K(() => [
|
|
4841
|
-
J(
|
|
4846
|
+
J(M, {
|
|
4842
4847
|
text: b(u) && t.entityLinkData.label || ""
|
|
4843
4848
|
}, {
|
|
4844
4849
|
default: K(() => [
|
|
@@ -4846,14 +4851,14 @@ const pr = ["aria-labelledby"], mr = { class: "form-section-wrapper" }, yr = {
|
|
|
4846
4851
|
ref_key: "textContent",
|
|
4847
4852
|
ref: i,
|
|
4848
4853
|
class: "entity-link-label"
|
|
4849
|
-
},
|
|
4854
|
+
}, F(t.entityLinkData.label), 513)
|
|
4850
4855
|
]),
|
|
4851
4856
|
_: 1
|
|
4852
4857
|
}, 8, ["text"])
|
|
4853
4858
|
]),
|
|
4854
4859
|
_: 1
|
|
4855
|
-
}, 8, ["hide-icon", "href", "target"])) : Q("", !0) : (g(), q("div",
|
|
4856
|
-
m.value && t.allowCopy ? (g(), H(
|
|
4860
|
+
}, 8, ["hide-icon", "href", "target"])) : Q("", !0) : (g(), q("div", Or, F(" – "))),
|
|
4861
|
+
m.value && t.allowCopy ? (g(), H(M, {
|
|
4857
4862
|
key: l.value,
|
|
4858
4863
|
class: "copy-uuid-tooltip",
|
|
4859
4864
|
"max-width": "160",
|
|
@@ -4865,15 +4870,15 @@ const pr = ["aria-labelledby"], mr = { class: "form-section-wrapper" }, yr = {
|
|
|
4865
4870
|
default: K(({ copyToClipboard: B }) => [
|
|
4866
4871
|
X("span", {
|
|
4867
4872
|
class: "entity-link-copy-id",
|
|
4868
|
-
onClick: Ze((
|
|
4873
|
+
onClick: Ze((G) => d(B), ["stop"])
|
|
4869
4874
|
}, [
|
|
4870
4875
|
J(b(Fn), {
|
|
4871
4876
|
class: "copy-icon",
|
|
4872
|
-
color: `var(--kui-color-text-primary, ${b(
|
|
4877
|
+
color: `var(--kui-color-text-primary, ${b(Ro)})`,
|
|
4873
4878
|
"data-testid": "copy-id",
|
|
4874
|
-
size: `var(--kui-icon-size-30, ${b(
|
|
4879
|
+
size: `var(--kui-icon-size-30, ${b(Ko)})`
|
|
4875
4880
|
}, null, 8, ["color", "size"])
|
|
4876
|
-
], 8,
|
|
4881
|
+
], 8, Br)
|
|
4877
4882
|
]),
|
|
4878
4883
|
_: 1
|
|
4879
4884
|
})
|
|
@@ -4883,40 +4888,40 @@ const pr = ["aria-labelledby"], mr = { class: "form-section-wrapper" }, yr = {
|
|
|
4883
4888
|
]);
|
|
4884
4889
|
};
|
|
4885
4890
|
}
|
|
4886
|
-
}),
|
|
4891
|
+
}), Pl = /* @__PURE__ */ Ae(Rr, [["__scopeId", "data-v-6668aea9"]]), Kr = { class: "kong-ui-public-entity-empty-state" }, Lr = { class: "entity-empty-state-content" }, Mr = {
|
|
4887
4892
|
key: 0,
|
|
4888
4893
|
class: "empty-state-image"
|
|
4889
|
-
},
|
|
4894
|
+
}, Fr = {
|
|
4890
4895
|
key: 1,
|
|
4891
4896
|
class: "entity-empty-state-title"
|
|
4892
|
-
},
|
|
4897
|
+
}, Nr = {
|
|
4893
4898
|
key: 2,
|
|
4894
4899
|
class: "entity-empty-state-description"
|
|
4895
|
-
},
|
|
4900
|
+
}, Pr = {
|
|
4896
4901
|
key: 3,
|
|
4897
4902
|
class: "entity-empty-state-pricing"
|
|
4898
|
-
},
|
|
4903
|
+
}, qr = {
|
|
4899
4904
|
key: 0,
|
|
4900
4905
|
class: "entity-empty-state-message"
|
|
4901
|
-
},
|
|
4906
|
+
}, Dr = {
|
|
4902
4907
|
key: 1,
|
|
4903
4908
|
class: "entity-empty-state-action"
|
|
4904
|
-
},
|
|
4909
|
+
}, jr = {
|
|
4905
4910
|
key: 2,
|
|
4906
4911
|
class: "entity-empty-state-card-container"
|
|
4907
|
-
},
|
|
4912
|
+
}, Ur = {
|
|
4908
4913
|
key: 0,
|
|
4909
4914
|
class: "feature-icon"
|
|
4910
|
-
},
|
|
4915
|
+
}, zr = { class: "card-header" }, Hr = ["title"], Yr = {
|
|
4911
4916
|
key: 3,
|
|
4912
4917
|
class: "entity-empty-state-bottom-container"
|
|
4913
|
-
},
|
|
4918
|
+
}, Vr = /* @__PURE__ */ he({
|
|
4914
4919
|
__name: "EntityEmptyState",
|
|
4915
4920
|
props: {
|
|
4916
4921
|
appearance: {
|
|
4917
4922
|
type: String,
|
|
4918
4923
|
default: () => "primary",
|
|
4919
|
-
validator: (t) =>
|
|
4924
|
+
validator: (t) => Zt.includes(t)
|
|
4920
4925
|
},
|
|
4921
4926
|
title: {
|
|
4922
4927
|
type: String,
|
|
@@ -4951,45 +4956,45 @@ const pr = ["aria-labelledby"], mr = { class: "form-section-wrapper" }, yr = {
|
|
|
4951
4956
|
},
|
|
4952
4957
|
emits: ["click:create", "click:learn-more"],
|
|
4953
4958
|
setup(t) {
|
|
4954
|
-
const o = t, { i18n: { t: i } } = fe.useI18n(), u = le(!1), r =
|
|
4955
|
-
return
|
|
4959
|
+
const o = t, { i18n: { t: i } } = fe.useI18n(), u = le(!1), r = N(() => u.value && !!o.actionButtonText), a = N(() => Zt.includes(o.appearance) ? o.appearance : ["primary", o.appearance]);
|
|
4960
|
+
return Ht(async () => {
|
|
4956
4961
|
u.value = await o.canCreate();
|
|
4957
|
-
}),
|
|
4962
|
+
}), yt(() => fi(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4958
4963
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) => {
|
|
4959
4964
|
const m = ee("KCard");
|
|
4960
|
-
return g(), q("div",
|
|
4961
|
-
X("div",
|
|
4962
|
-
l.$slots.image ? (g(), q("div",
|
|
4965
|
+
return g(), q("div", Kr, [
|
|
4966
|
+
X("div", Lr, [
|
|
4967
|
+
l.$slots.image ? (g(), q("div", Mr, [
|
|
4963
4968
|
se(l.$slots, "image", {}, void 0, !0)
|
|
4964
4969
|
])) : Q("", !0),
|
|
4965
|
-
t.title || l.$slots.title ? (g(), q("div",
|
|
4970
|
+
t.title || l.$slots.title ? (g(), q("div", Fr, [
|
|
4966
4971
|
X("h1", {
|
|
4967
4972
|
class: Ce(a.value)
|
|
4968
4973
|
}, [
|
|
4969
4974
|
se(l.$slots, "title", {}, () => [
|
|
4970
|
-
oe(
|
|
4975
|
+
oe(F(t.title), 1)
|
|
4971
4976
|
], !0)
|
|
4972
4977
|
], 2)
|
|
4973
4978
|
])) : Q("", !0),
|
|
4974
|
-
t.description || l.$slots.default ? (g(), q("div",
|
|
4979
|
+
t.description || l.$slots.default ? (g(), q("div", Nr, [
|
|
4975
4980
|
se(l.$slots, "default", {}, () => [
|
|
4976
|
-
X("p", null,
|
|
4981
|
+
X("p", null, F(t.description), 1)
|
|
4977
4982
|
], !0)
|
|
4978
4983
|
])) : Q("", !0),
|
|
4979
|
-
t.pricing || l.$slots.pricing ? (g(), q("div",
|
|
4984
|
+
t.pricing || l.$slots.pricing ? (g(), q("div", Pr, [
|
|
4980
4985
|
X("p", null, [
|
|
4981
|
-
X("b", null,
|
|
4986
|
+
X("b", null, F(b(i)("emptyState.pricingTitle")), 1),
|
|
4982
4987
|
s[2] || (s[2] = oe()),
|
|
4983
4988
|
se(l.$slots, "pricing", {}, () => [
|
|
4984
|
-
oe(
|
|
4989
|
+
oe(F(t.pricing), 1)
|
|
4985
4990
|
], !0)
|
|
4986
4991
|
])
|
|
4987
4992
|
])) : Q("", !0)
|
|
4988
4993
|
]),
|
|
4989
|
-
l.$slots.message ? (g(), q("div",
|
|
4994
|
+
l.$slots.message ? (g(), q("div", qr, [
|
|
4990
4995
|
se(l.$slots, "message", {}, void 0, !0)
|
|
4991
4996
|
])) : Q("", !0),
|
|
4992
|
-
r.value || t.learnMore || l.$slots.actions ? (g(), q("div",
|
|
4997
|
+
r.value || t.learnMore || l.$slots.actions ? (g(), q("div", Dr, [
|
|
4993
4998
|
se(l.$slots, "actions", {}, () => [
|
|
4994
4999
|
r.value ? (g(), H(b(Wt), {
|
|
4995
5000
|
key: 0,
|
|
@@ -4999,8 +5004,8 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
4999
5004
|
onClick: s[0] || (s[0] = (c) => l.$emit("click:create"))
|
|
5000
5005
|
}, {
|
|
5001
5006
|
default: K(() => [
|
|
5002
|
-
J(b(
|
|
5003
|
-
oe(" " +
|
|
5007
|
+
J(b(Mn)),
|
|
5008
|
+
oe(" " + F(t.actionButtonText), 1)
|
|
5004
5009
|
]),
|
|
5005
5010
|
_: 1
|
|
5006
5011
|
}, 8, ["size"])) : Q("", !0),
|
|
@@ -5012,47 +5017,47 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5012
5017
|
onClick: s[1] || (s[1] = (c) => l.$emit("click:learn-more"))
|
|
5013
5018
|
}, {
|
|
5014
5019
|
default: K(() => [
|
|
5015
|
-
J(b(
|
|
5016
|
-
oe(" " +
|
|
5020
|
+
J(b(Ln), { decorative: "" }),
|
|
5021
|
+
oe(" " + F(b(i)("emptyState.learnMore")), 1)
|
|
5017
5022
|
]),
|
|
5018
5023
|
_: 1
|
|
5019
5024
|
}, 8, ["size"])) : Q("", !0)
|
|
5020
5025
|
], !0)
|
|
5021
5026
|
])) : Q("", !0),
|
|
5022
|
-
t.features.length ? (g(), q("div",
|
|
5023
|
-
(g(!0), q(Te, null,
|
|
5027
|
+
t.features.length ? (g(), q("div", jr, [
|
|
5028
|
+
(g(!0), q(Te, null, _e(t.features, (c, d) => (g(), H(m, {
|
|
5024
5029
|
key: `feature-${d}-card`,
|
|
5025
5030
|
class: "entity-empty-state-card"
|
|
5026
5031
|
}, {
|
|
5027
5032
|
title: K(() => [
|
|
5028
|
-
l.$slots[`feature-${d}-icon`] ? (g(), q("div",
|
|
5033
|
+
l.$slots[`feature-${d}-icon`] ? (g(), q("div", Ur, [
|
|
5029
5034
|
se(l.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
5030
5035
|
])) : Q("", !0),
|
|
5031
|
-
X("div",
|
|
5036
|
+
X("div", zr, F(c.title), 1)
|
|
5032
5037
|
]),
|
|
5033
5038
|
default: K(() => [
|
|
5034
5039
|
X("div", {
|
|
5035
5040
|
title: c.description
|
|
5036
|
-
},
|
|
5041
|
+
}, F(c.description), 9, Hr)
|
|
5037
5042
|
]),
|
|
5038
5043
|
_: 2
|
|
5039
5044
|
}, 1024))), 128))
|
|
5040
5045
|
])) : Q("", !0),
|
|
5041
|
-
l.$slots.bottom ? (g(), q("div",
|
|
5046
|
+
l.$slots.bottom ? (g(), q("div", Yr, [
|
|
5042
5047
|
se(l.$slots, "bottom", {}, void 0, !0)
|
|
5043
5048
|
])) : Q("", !0)
|
|
5044
5049
|
]);
|
|
5045
5050
|
};
|
|
5046
5051
|
}
|
|
5047
|
-
}),
|
|
5052
|
+
}), ql = /* @__PURE__ */ Ae(Vr, [["__scopeId", "data-v-0b2e9081"]]), Gr = {
|
|
5048
5053
|
key: 0,
|
|
5049
5054
|
class: "sensitive-input-error-message",
|
|
5050
5055
|
"data-testid": "sensitive-input-error-message"
|
|
5051
|
-
},
|
|
5056
|
+
}, Wr = { class: "sensitive-input-textarea-actions" }, Jr = {
|
|
5052
5057
|
key: 2,
|
|
5053
5058
|
class: "sensitive-input-hint",
|
|
5054
5059
|
"data-testid": "sensitive-input-hint"
|
|
5055
|
-
},
|
|
5060
|
+
}, Qr = { class: "sensitive-input-hint-text" }, Xr = "••••••••••••••", Zr = /* @__PURE__ */ he({
|
|
5056
5061
|
__name: "SensitiveInput",
|
|
5057
5062
|
props: {
|
|
5058
5063
|
modelValue: { default: "" },
|
|
@@ -5073,11 +5078,11 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5073
5078
|
},
|
|
5074
5079
|
emits: ["update:modelValue", "rotate", "generate", "generated"],
|
|
5075
5080
|
setup(t, { expose: o, emit: i }) {
|
|
5076
|
-
|
|
5081
|
+
_n((j) => ({
|
|
5077
5082
|
v41f8c11f: me.value
|
|
5078
5083
|
}));
|
|
5079
|
-
const u = i, { i18n: { t: r } } = fe.useI18n(), a = le(t.mode === "edit" ? "masked" : "editing"), l = le(!1), s = le(!1), m =
|
|
5080
|
-
|
|
5084
|
+
const u = i, { i18n: { t: r } } = fe.useI18n(), a = le(t.mode === "edit" ? "masked" : "editing"), l = le(!1), s = le(!1), m = N(() => a.value === "masked"), c = Xr, d = N(() => t.placeholder ?? r("sensitiveInput.placeholder")), y = N(() => t.labels?.rotateLabel ?? r("sensitiveInput.rotateKey")), T = N(() => t.labels?.generateLabel ?? r("sensitiveInput.generateKey")), M = N(() => t.labels?.hintLabel ?? r("sensitiveInput.oneTimeHint")), re = N(() => m.value || l.value ? "text" : "password");
|
|
5085
|
+
Oe(() => t.showOneTimeHint, (j) => {
|
|
5081
5086
|
j && (l.value = !0);
|
|
5082
5087
|
}, { immediate: !0 });
|
|
5083
5088
|
const w = (j) => {
|
|
@@ -5089,7 +5094,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5089
5094
|
/** Switch to the editable state programmatically, WITHOUT emitting `rotate`. */
|
|
5090
5095
|
enterEditing: () => B(!1)
|
|
5091
5096
|
});
|
|
5092
|
-
const
|
|
5097
|
+
const G = () => {
|
|
5093
5098
|
l.value = !l.value;
|
|
5094
5099
|
}, x = async () => {
|
|
5095
5100
|
if (!(!t.generator || s.value)) {
|
|
@@ -5101,18 +5106,18 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5101
5106
|
s.value = !1;
|
|
5102
5107
|
}
|
|
5103
5108
|
}
|
|
5104
|
-
}, C =
|
|
5109
|
+
}, C = pi("rootElement");
|
|
5105
5110
|
let Y, te;
|
|
5106
|
-
const me = le(`calc(${
|
|
5111
|
+
const me = le(`calc(${xn} + ${Xe} + ${In})`), z = () => {
|
|
5107
5112
|
const j = C.value?.querySelector(".after-content-wrapper");
|
|
5108
|
-
j && (me.value = `calc(${
|
|
5113
|
+
j && (me.value = `calc(${xn} + ${j.offsetWidth}px + ${In})`);
|
|
5109
5114
|
};
|
|
5110
|
-
return
|
|
5115
|
+
return yt(() => {
|
|
5111
5116
|
const j = C.value?.querySelector(".after-content-wrapper");
|
|
5112
5117
|
Y = new ResizeObserver(() => {
|
|
5113
5118
|
te = window.requestAnimationFrame(() => z());
|
|
5114
5119
|
}), j && Y.observe(j), z();
|
|
5115
|
-
}),
|
|
5120
|
+
}), mi(() => {
|
|
5116
5121
|
Y?.disconnect(), te !== void 0 && window.cancelAnimationFrame(te);
|
|
5117
5122
|
}), (j, L) => {
|
|
5118
5123
|
const ne = ee("KButton"), V = ee("KInput"), U = ee("KTextArea"), pe = ee("KClipboardProvider");
|
|
@@ -5138,18 +5143,18 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5138
5143
|
resizable: "",
|
|
5139
5144
|
"onUpdate:modelValue": w
|
|
5140
5145
|
}, null, 8, ["disabled", "error", "help", "label", "label-attributes", "model-value", "placeholder", "readonly", "required"]),
|
|
5141
|
-
t.error && t.errorMessage ? (g(), q("p",
|
|
5142
|
-
X("div",
|
|
5146
|
+
t.error && t.errorMessage ? (g(), q("p", Gr, F(t.errorMessage), 1)) : Q("", !0),
|
|
5147
|
+
X("div", Wr, [
|
|
5143
5148
|
m.value ? (g(), H(ne, {
|
|
5144
5149
|
key: 0,
|
|
5145
5150
|
appearance: "tertiary",
|
|
5146
5151
|
class: "sensitive-input-action",
|
|
5147
5152
|
"data-testid": "sensitive-input-rotate",
|
|
5148
5153
|
size: "small",
|
|
5149
|
-
onClick: L[1] || (L[1] = (
|
|
5154
|
+
onClick: L[1] || (L[1] = (O) => B(!0))
|
|
5150
5155
|
}, {
|
|
5151
5156
|
default: K(() => [
|
|
5152
|
-
oe(
|
|
5157
|
+
oe(F(y.value), 1)
|
|
5153
5158
|
]),
|
|
5154
5159
|
_: 1
|
|
5155
5160
|
})) : t.generator ? (g(), H(ne, {
|
|
@@ -5162,7 +5167,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5162
5167
|
onClick: x
|
|
5163
5168
|
}, {
|
|
5164
5169
|
default: K(() => [
|
|
5165
|
-
oe(
|
|
5170
|
+
oe(F(T.value), 1)
|
|
5166
5171
|
]),
|
|
5167
5172
|
_: 1
|
|
5168
5173
|
}, 8, ["disabled"])) : Q("", !0)
|
|
@@ -5191,10 +5196,10 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5191
5196
|
class: "sensitive-input-action",
|
|
5192
5197
|
"data-testid": "sensitive-input-rotate",
|
|
5193
5198
|
size: "small",
|
|
5194
|
-
onClick: L[0] || (L[0] = (
|
|
5199
|
+
onClick: L[0] || (L[0] = (O) => B(!0))
|
|
5195
5200
|
}, {
|
|
5196
5201
|
default: K(() => [
|
|
5197
|
-
oe(
|
|
5202
|
+
oe(F(y.value), 1)
|
|
5198
5203
|
]),
|
|
5199
5204
|
_: 1
|
|
5200
5205
|
})) : (g(), q(Te, { key: 1 }, [
|
|
@@ -5208,11 +5213,11 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5208
5213
|
onClick: x
|
|
5209
5214
|
}, {
|
|
5210
5215
|
default: K(() => [
|
|
5211
|
-
oe(
|
|
5216
|
+
oe(F(T.value), 1)
|
|
5212
5217
|
]),
|
|
5213
5218
|
_: 1
|
|
5214
5219
|
}, 8, ["disabled"])) : Q("", !0),
|
|
5215
|
-
(g(), H(Ve(l.value ? b(
|
|
5220
|
+
(g(), H(Ve(l.value ? b(Ni) : b(Pi)), {
|
|
5216
5221
|
"aria-label": l.value ? b(r)("sensitiveInput.hideKey") : b(r)("sensitiveInput.showKey"),
|
|
5217
5222
|
class: "sensitive-input-toggle",
|
|
5218
5223
|
color: "currentColor",
|
|
@@ -5220,35 +5225,35 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5220
5225
|
role: "button",
|
|
5221
5226
|
size: `var(--kui-icon-size-40, ${b(Xe)})`,
|
|
5222
5227
|
tabindex: "0",
|
|
5223
|
-
onClick:
|
|
5224
|
-
onKeydown:
|
|
5228
|
+
onClick: G,
|
|
5229
|
+
onKeydown: Rn(Ze(G, ["prevent"]), ["enter", "space"])
|
|
5225
5230
|
}, null, 40, ["aria-label", "size", "onKeydown"]))
|
|
5226
5231
|
], 64))
|
|
5227
5232
|
]),
|
|
5228
5233
|
_: 1
|
|
5229
5234
|
}, 8, ["disabled", "error", "error-message", "help", "label", "label-attributes", "model-value", "placeholder", "readonly", "required", "type"])),
|
|
5230
|
-
t.showOneTimeHint ? (g(), q("div",
|
|
5231
|
-
J(b(
|
|
5235
|
+
t.showOneTimeHint ? (g(), q("div", Jr, [
|
|
5236
|
+
J(b(Kn), {
|
|
5232
5237
|
class: "sensitive-input-hint-icon",
|
|
5233
|
-
color: `var(--kui-color-text-info, ${b(
|
|
5238
|
+
color: `var(--kui-color-text-info, ${b(Oo)})`,
|
|
5234
5239
|
size: `var(--kui-icon-size-40, ${b(Xe)})`
|
|
5235
5240
|
}, null, 8, ["color", "size"]),
|
|
5236
|
-
X("span",
|
|
5241
|
+
X("span", Qr, F(M.value), 1),
|
|
5237
5242
|
J(pe, null, {
|
|
5238
|
-
default: K(({ copyToClipboard:
|
|
5243
|
+
default: K(({ copyToClipboard: O }) => [
|
|
5239
5244
|
J(ne, {
|
|
5240
5245
|
appearance: "none",
|
|
5241
5246
|
class: "sensitive-input-action sensitive-input-copy",
|
|
5242
5247
|
"data-testid": "sensitive-input-copy",
|
|
5243
5248
|
icon: !0,
|
|
5244
|
-
onClick: (ie) =>
|
|
5249
|
+
onClick: (ie) => O(t.modelValue)
|
|
5245
5250
|
}, {
|
|
5246
5251
|
default: K(() => [
|
|
5247
5252
|
J(b(Fn), {
|
|
5248
5253
|
color: "currentColor",
|
|
5249
5254
|
size: `var(--kui-icon-size-40, ${b(Xe)})`
|
|
5250
5255
|
}, null, 8, ["size"]),
|
|
5251
|
-
oe(" " +
|
|
5256
|
+
oe(" " + F(b(r)("sensitiveInput.copy")), 1)
|
|
5252
5257
|
]),
|
|
5253
5258
|
_: 1
|
|
5254
5259
|
}, 8, ["onClick"])
|
|
@@ -5260,7 +5265,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5260
5265
|
], 512);
|
|
5261
5266
|
};
|
|
5262
5267
|
}
|
|
5263
|
-
}),
|
|
5268
|
+
}), Dl = /* @__PURE__ */ Ae(Zr, [["__scopeId", "data-v-ae0726c4"]]), el = { key: 1 }, jl = /* @__PURE__ */ he({
|
|
5264
5269
|
__name: "TableTags",
|
|
5265
5270
|
props: {
|
|
5266
5271
|
/** The tags to display in the table */
|
|
@@ -5274,7 +5279,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5274
5279
|
}
|
|
5275
5280
|
},
|
|
5276
5281
|
setup(t) {
|
|
5277
|
-
const o = t, i =
|
|
5282
|
+
const o = t, i = N(() => {
|
|
5278
5283
|
if (Array.isArray(o.tags))
|
|
5279
5284
|
return o.tags;
|
|
5280
5285
|
if (typeof o.tags == "string")
|
|
@@ -5286,79 +5291,81 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (l, s) =>
|
|
|
5286
5291
|
}
|
|
5287
5292
|
return [];
|
|
5288
5293
|
});
|
|
5289
|
-
return (u, r) => i.value?.length > 0 ? (g(), H(b(
|
|
5294
|
+
return (u, r) => i.value?.length > 0 ? (g(), H(b(wi), { key: 0 }, {
|
|
5290
5295
|
default: K(() => [
|
|
5291
|
-
(g(!0), q(Te, null,
|
|
5296
|
+
(g(!0), q(Te, null, _e(i.value, (a) => (g(), H(b($i), {
|
|
5292
5297
|
key: a,
|
|
5293
5298
|
"max-width": t.tagMaxWidth,
|
|
5294
5299
|
onClick: r[0] || (r[0] = Ze(() => {
|
|
5295
5300
|
}, ["stop"]))
|
|
5296
5301
|
}, {
|
|
5297
5302
|
default: K(() => [
|
|
5298
|
-
oe(
|
|
5303
|
+
oe(F(a), 1)
|
|
5299
5304
|
]),
|
|
5300
5305
|
_: 2
|
|
5301
5306
|
}, 1032, ["max-width"]))), 128))
|
|
5302
5307
|
]),
|
|
5303
5308
|
_: 1
|
|
5304
|
-
})) : (g(), q("span",
|
|
5309
|
+
})) : (g(), q("span", el, "-"));
|
|
5305
5310
|
}
|
|
5306
|
-
}), { useAxios:
|
|
5311
|
+
}), { useAxios: Ul, useDeleteUrlBuilder: zl, useBaseEntityDeckOptions: Hl, useBaseFormDeckOptions: Yl, useErrors: Vl, useExternalLinkCreator: Gl, useFetchUrlBuilder: Wl, useFetcher: Jl, useFetcherCacheKey: Ql, useDebouncedFilter: Xl, useStringHelpers: Zl, useHelpers: ea, useGatewayFeatureSupported: ta, useTruncationDetector: na, useValidators: ia, useSchemaProvider: oa, useTableState: ra } = fe;
|
|
5307
5312
|
export {
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5313
|
+
Zt as Appearances,
|
|
5314
|
+
yl as BASE_FORM_CONFIG_TABS,
|
|
5315
|
+
et as CONFIG_CARD_CODE_BLOCK_MAX_HEIGHT,
|
|
5316
|
+
ki as CONFIG_CARD_FORMATS,
|
|
5317
|
+
_o as ConfigCardDisplay,
|
|
5312
5318
|
Pn as ConfigCardItem,
|
|
5313
5319
|
Ee as ConfigurationSchemaSection,
|
|
5314
5320
|
ge as ConfigurationSchemaType,
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5321
|
+
vi as DECK_COMMAND_EDITOR_KEY,
|
|
5322
|
+
bi as DECK_COMMAND_EDITOR_MISSING_WARNING,
|
|
5323
|
+
li as DeckCodeBlock,
|
|
5324
|
+
_l as EntityBaseConfigCard,
|
|
5325
|
+
Ol as EntityBaseForm,
|
|
5326
|
+
ji as EntityBaseFormType,
|
|
5327
|
+
Bl as EntityBaseTable,
|
|
5328
|
+
Rl as EntityDeleteModal,
|
|
5329
|
+
ql as EntityEmptyState,
|
|
5330
|
+
Kl as EntityFilter,
|
|
5331
|
+
Nl as EntityFormBlock,
|
|
5332
|
+
Fl as EntityFormSection,
|
|
5333
|
+
Pl as EntityLink,
|
|
5334
|
+
Ll as EntityToggleModal,
|
|
5335
|
+
Di as EntityTypes,
|
|
5336
|
+
gi as EventGatewayTypesArray,
|
|
5337
|
+
ca as FetcherStatus,
|
|
5338
|
+
ko as GeneratePatModal,
|
|
5339
|
+
hi as IdentityTypesArray,
|
|
5340
|
+
Yi as InternalLinkItem,
|
|
5341
|
+
qn as JsonCodeBlock,
|
|
5342
|
+
Ci as PLUGIN_FORM_LAYOUT_STATE,
|
|
5343
|
+
Ml as PermissionsWrapper,
|
|
5344
|
+
yi as SHIKI_MAX_HIGHLIGHT_LENGTH,
|
|
5345
|
+
Dl as SensitiveInput,
|
|
5346
|
+
sa as SupportedEntityDeckArray,
|
|
5347
|
+
Pe as SupportedEntityType,
|
|
5348
|
+
gt as SupportedEntityTypesArray,
|
|
5349
|
+
jl as TableTags,
|
|
5350
|
+
ri as TerraformCodeBlock,
|
|
5351
|
+
oi as YamlCodeBlock,
|
|
5345
5352
|
Ye as highlightCodeBlock,
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5353
|
+
ua as isSupportedDeckEntityType,
|
|
5354
|
+
Ul as useAxios,
|
|
5355
|
+
Hl as useBaseEntityDeckOptions,
|
|
5356
|
+
Yl as useBaseFormDeckOptions,
|
|
5357
|
+
Xl as useDebouncedFilter,
|
|
5358
|
+
zl as useDeleteUrlBuilder,
|
|
5359
|
+
Vl as useErrors,
|
|
5360
|
+
Gl as useExternalLinkCreator,
|
|
5361
|
+
Wl as useFetchUrlBuilder,
|
|
5362
|
+
Jl as useFetcher,
|
|
5363
|
+
Ql as useFetcherCacheKey,
|
|
5364
|
+
ta as useGatewayFeatureSupported,
|
|
5365
|
+
ea as useHelpers,
|
|
5366
|
+
oa as useSchemaProvider,
|
|
5367
|
+
Zl as useStringHelpers,
|
|
5368
|
+
ra as useTableState,
|
|
5369
|
+
na as useTruncationDetector,
|
|
5370
|
+
ia as useValidators
|
|
5364
5371
|
};
|