@kong-ui-public/entities-shared 3.50.2 → 3.50.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-shared.cjs.js +21 -21
- package/dist/entities-shared.es.js +417 -415
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as Ce, computed as D, openBlock as v, createBlock as Y, resolveDynamicComponent as We, normalizeClass as Ke, withCtx as L, createElementBlock as U, createElementVNode as X, toDisplayString as
|
|
2
|
-
import { c as he, _ as Ee, C as ke, S as Ue, E as Sn, I as Tn, a as yt, D as
|
|
3
|
-
import { F as
|
|
4
|
-
import { BadgeMethodAppearances as In, KExternalLink as On, KButton as
|
|
1
|
+
import { defineComponent as Ce, computed as D, openBlock as v, createBlock as Y, resolveDynamicComponent as We, normalizeClass as Ke, withCtx as L, createElementBlock as U, createElementVNode as X, toDisplayString as z, createCommentVNode as ee, Fragment as Be, renderList as Fe, unref as C, resolveComponent as ne, createVNode as Q, createTextVNode as ae, useCssVars as At, useId as yn, useSlots as tt, ref as le, renderSlot as pe, createSlots as ze, normalizeProps as gn, guardReactiveProps as hn, mergeProps as nt, watch as Pe, inject as Lt, watchEffect as vn, onMounted as mt, onBeforeMount as St, withModifiers as et, Teleport as Mt, onUnmounted as bn, withDirectives as Ve, vShow as Ye, withKeys as Ft, warn as kn, useTemplateRef as Cn, onBeforeUnmount as An } from "vue";
|
|
2
|
+
import { c as he, _ as Ee, C as ke, S as Ue, E as Sn, I as Tn, a as yt, D as $n, b as _n, d as wn, e as Me, P as xn, f as En } from "./_plugin-vue_export-helper-CxCTU6Pp.js";
|
|
3
|
+
import { F as wl, g as xl, i as El } from "./_plugin-vue_export-helper-CxCTU6Pp.js";
|
|
4
|
+
import { BadgeMethodAppearances as In, KExternalLink as On, KButton as _t, KTruncate as Bn, KBadge as Kn } from "@kong/kongponents";
|
|
5
5
|
import { createHighlighterCoreSync as Rn } from "@shikijs/core";
|
|
6
6
|
import { createJavaScriptRegexEngine as Ln } from "@shikijs/engine-javascript";
|
|
7
7
|
import Mn from "@shikijs/langs/json";
|
|
@@ -11,7 +11,7 @@ import Nn from "@shikijs/langs/shellscript";
|
|
|
11
11
|
import Dn from "@shikijs/langs/powershell";
|
|
12
12
|
import qn from "@shikijs/themes/catppuccin-mocha";
|
|
13
13
|
import jn from "@shikijs/themes/catppuccin-latte";
|
|
14
|
-
import { LanguageShellIcon as
|
|
14
|
+
import { LanguageShellIcon as wt, LanguageBashIcon as xt, InfoIcon as Pt, BookIcon as Nt, AddIcon as Dt, CloseIcon as Un, ChevronDownIcon as zn, CopyIcon as qt, VisibilityOffIcon as Hn, VisibilityIcon as Vn } from "@kong/icons";
|
|
15
15
|
import { useRouter as Yn } from "vue-router";
|
|
16
16
|
var Gn = /* @__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))(Gn || {}), Wn = /* @__PURE__ */ ((t) => (t.Edit = "edit", t.Create = "create", t))(Wn || {});
|
|
17
17
|
const Rr = ["json", "yaml", "terraform", "deck"], Et = [
|
|
@@ -49,7 +49,7 @@ const Rr = ["json", "yaml", "terraform", "deck"], Et = [
|
|
|
49
49
|
}, {
|
|
50
50
|
default: L(() => [
|
|
51
51
|
t.isArrayItem ? (v(), U("legend", Jn, [
|
|
52
|
-
X("b", null,
|
|
52
|
+
X("b", null, z(c.value), 1)
|
|
53
53
|
])) : ee("", !0),
|
|
54
54
|
(v(!0), U(Be, null, Fe(Object.keys(r.value), (g, a) => (v(), Y(Ut, {
|
|
55
55
|
key: `${y.value}-property-${a}`,
|
|
@@ -83,7 +83,7 @@ const Rr = ["json", "yaml", "terraform", "deck"], Et = [
|
|
|
83
83
|
onClick: l[0] || (l[0] = (d) => i.$emit("navigation-click", t.item))
|
|
84
84
|
}, {
|
|
85
85
|
default: L(() => [
|
|
86
|
-
ae(
|
|
86
|
+
ae(z(t.item.value || C(o)("baseConfigCard.commonFields.link")), 1)
|
|
87
87
|
]),
|
|
88
88
|
_: 1
|
|
89
89
|
})
|
|
@@ -106,7 +106,7 @@ const Rr = ["json", "yaml", "terraform", "deck"], Et = [
|
|
|
106
106
|
appearance: t.status ? "success" : "neutral"
|
|
107
107
|
}, {
|
|
108
108
|
default: L(() => [
|
|
109
|
-
ae(
|
|
109
|
+
ae(z(t.status ? C(o)("baseConfigCard.statusBadge.enabledLabel") : C(o)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
112
112
|
}, 8, ["appearance"]);
|
|
@@ -165,7 +165,7 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
165
165
|
const i = t, l = o, y = yn(), d = tt(), { i18n: { t: r, formatIsoDate: c, formatUnixTimeStamp: p } } = he.useI18n(), s = D(() => i.item.value !== void 0 && i.item.value !== null && i.item.value !== ""), g = D(() => !!(i.item.tooltip || d["label-tooltip"])), a = D(() => i.item.type === ke.Json || i.item.type === ke.JsonArray), f = D(() => i.item.type === ke.JsonArray), b = he.useSubSchema(i.item.key), M = D(() => {
|
|
166
166
|
var G;
|
|
167
167
|
return i.item.type ? i.item.type : (G = b == null ? void 0 : b.value) != null && G.encrypted ? ke.Redacted : void 0;
|
|
168
|
-
}),
|
|
168
|
+
}), _ = D(() => {
|
|
169
169
|
switch (M.value) {
|
|
170
170
|
case ke.ID:
|
|
171
171
|
return {
|
|
@@ -297,7 +297,7 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
297
297
|
text: i.item.value
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
}),
|
|
300
|
+
}), w = le(), P = le(), { isTruncated: x } = he.useTruncationDetector(w), { isTruncated: K } = he.useTruncationDetector(P);
|
|
301
301
|
return (G, W) => {
|
|
302
302
|
const ce = ne("KTooltip"), S = ne("KLabel"), V = ne("KBadge"), I = ne("KCopy");
|
|
303
303
|
return v(), U("div", ui, [
|
|
@@ -306,7 +306,7 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
306
306
|
"data-testid": `${t.item.key}-label`
|
|
307
307
|
}, [
|
|
308
308
|
pe(G.$slots, "label", { item: t.item }, () => [
|
|
309
|
-
Q(S, { "tooltip-attributes": { maxWidth: "500px" } },
|
|
309
|
+
Q(S, { "tooltip-attributes": { maxWidth: "500px" } }, ze({
|
|
310
310
|
default: L(() => [
|
|
311
311
|
Q(ce, {
|
|
312
312
|
text: C(x) ? t.item.label : ""
|
|
@@ -314,9 +314,9 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
314
314
|
default: L(() => [
|
|
315
315
|
X("span", {
|
|
316
316
|
ref_key: "labelContent",
|
|
317
|
-
ref:
|
|
317
|
+
ref: w,
|
|
318
318
|
class: "label-content"
|
|
319
|
-
},
|
|
319
|
+
}, z(t.item.label), 513)
|
|
320
320
|
]),
|
|
321
321
|
_: 1
|
|
322
322
|
}, 8, ["text"])
|
|
@@ -330,7 +330,7 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
330
330
|
"data-testid": `${t.item.key}-label-tooltip`
|
|
331
331
|
}, [
|
|
332
332
|
pe(G.$slots, "label-tooltip", {}, () => [
|
|
333
|
-
ae(
|
|
333
|
+
ae(z(t.item.tooltip), 1)
|
|
334
334
|
], !0)
|
|
335
335
|
], 8, fi)
|
|
336
336
|
]),
|
|
@@ -347,9 +347,9 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
347
347
|
rowValue: t.item.value
|
|
348
348
|
}, () => [
|
|
349
349
|
s.value ? (v(), U("div", yi, [
|
|
350
|
-
(v(), Y(We(
|
|
350
|
+
(v(), Y(We(_.value.tag), gn(hn(_.value.attrs)), {
|
|
351
351
|
default: L(() => [
|
|
352
|
-
|
|
352
|
+
_.value.additionalComponent === "KBadge" ? (v(), U("div", {
|
|
353
353
|
key: 0,
|
|
354
354
|
"data-testid": `${t.item.key}-badge-tags`
|
|
355
355
|
}, [
|
|
@@ -361,21 +361,21 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
361
361
|
"truncation-tooltip": ""
|
|
362
362
|
}, {
|
|
363
363
|
default: L(() => [
|
|
364
|
-
ae(
|
|
364
|
+
ae(z(F), 1)
|
|
365
365
|
]),
|
|
366
366
|
_: 2
|
|
367
367
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
368
|
-
], 8, gi)) :
|
|
368
|
+
], 8, gi)) : _.value.additionalComponent === "KCopy" ? (v(), U("div", {
|
|
369
369
|
key: 1,
|
|
370
370
|
class: "copy-uuid-array",
|
|
371
371
|
"data-testid": `${t.item.key}-copy-uuid-array`
|
|
372
372
|
}, [
|
|
373
|
-
(v(!0), U(Be, null, Fe(t.item.value, (F, me) => (v(), Y(I, nt({ ref_for: !0 },
|
|
373
|
+
(v(!0), U(Be, null, Fe(t.item.value, (F, me) => (v(), Y(I, nt({ ref_for: !0 }, _.value.childAttrs, {
|
|
374
374
|
key: `${t.item.key}-copy-uuid-${me}`,
|
|
375
375
|
"data-testid": `${t.item.key}-copy-uuid-${me}`,
|
|
376
376
|
text: F
|
|
377
377
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
378
|
-
], 8, hi)) :
|
|
378
|
+
], 8, hi)) : _.value.additionalComponent === "KMethodBadge" ? (v(), U("div", {
|
|
379
379
|
key: 2,
|
|
380
380
|
class: "method-badge-array",
|
|
381
381
|
"data-testid": `${t.item.key}-badge-methods`
|
|
@@ -387,11 +387,11 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
387
387
|
"data-testid": `${t.item.key}-badge-method-${me}`
|
|
388
388
|
}, {
|
|
389
389
|
default: L(() => [
|
|
390
|
-
ae(
|
|
390
|
+
ae(z(F), 1)
|
|
391
391
|
]),
|
|
392
392
|
_: 2
|
|
393
393
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
394
|
-
], 8, vi)) :
|
|
394
|
+
], 8, vi)) : _.value.additionalComponent === "JsonCardItem" ? (v(), U("div", {
|
|
395
395
|
key: 3,
|
|
396
396
|
"data-testid": `${i.item.key}-json-array-content`
|
|
397
397
|
}, [
|
|
@@ -410,7 +410,7 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
410
410
|
ref_key: "textContent",
|
|
411
411
|
ref: P,
|
|
412
412
|
class: Ke(["attrs-data-text", { truncated: t.truncated }])
|
|
413
|
-
},
|
|
413
|
+
}, z(_.value.text), 3)
|
|
414
414
|
]),
|
|
415
415
|
_: 1
|
|
416
416
|
}, 8, ["text"]))
|
|
@@ -429,7 +429,7 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
429
429
|
}), Ut = /* @__PURE__ */ Ee(Ci, [["__scopeId", "data-v-b6987b3c"]]), Ai = { class: "json-config config-card-code-block" }, Si = {
|
|
430
430
|
key: 0,
|
|
431
431
|
class: "json-endpoint"
|
|
432
|
-
},
|
|
432
|
+
}, zt = /* @__PURE__ */ Ce({
|
|
433
433
|
__name: "JsonCodeBlock",
|
|
434
434
|
props: {
|
|
435
435
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -478,7 +478,7 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
478
478
|
t.fetcherUrl ? (v(), U("div", Si, [
|
|
479
479
|
Q(r, { appearance: t.requestMethod }, {
|
|
480
480
|
default: L(() => [
|
|
481
|
-
ae(
|
|
481
|
+
ae(z(t.requestMethod), 1)
|
|
482
482
|
]),
|
|
483
483
|
_: 1
|
|
484
484
|
}, 8, ["appearance"]),
|
|
@@ -506,14 +506,14 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
/*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
509
|
-
var Ti = Object.create,
|
|
510
|
-
if (o && typeof o == "object" || typeof o == "function") for (var y =
|
|
511
|
-
c = y[d], !xi.call(t, c) && c !== i &&
|
|
509
|
+
var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, _i = Object.getOwnPropertyNames, wi = Object.getPrototypeOf, xi = Object.prototype.hasOwnProperty, Se = (t, o) => () => (o || (t((o = { exports: {} }).exports, o), t = null), o.exports), Ei = (t, o, i, l) => {
|
|
510
|
+
if (o && typeof o == "object" || typeof o == "function") for (var y = _i(o), d = 0, r = y.length, c; d < r; d++)
|
|
511
|
+
c = y[d], !xi.call(t, c) && c !== i && Ht(t, c, {
|
|
512
512
|
get: ((p) => o[p]).bind(null, c),
|
|
513
|
-
enumerable: !(l =
|
|
513
|
+
enumerable: !(l = $i(o, c)) || l.enumerable
|
|
514
514
|
});
|
|
515
515
|
return t;
|
|
516
|
-
}, Ii = (t, o, i) => (i = t != null ? Ti(
|
|
516
|
+
}, Ii = (t, o, i) => (i = t != null ? Ti(wi(t)) : {}, Ei(Ht(i, "default", {
|
|
517
517
|
value: t,
|
|
518
518
|
enumerable: !0
|
|
519
519
|
}), t)), it = /* @__PURE__ */ Se((t, o) => {
|
|
@@ -581,18 +581,18 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
581
581
|
g.push(a.index), s.push(a.index + a[0].length), r.position <= a.index && f < 0 && (f = s.length - 2);
|
|
582
582
|
f < 0 && (f = s.length - 1);
|
|
583
583
|
let b = "";
|
|
584
|
-
const M = Math.min(r.line + c.linesAfter, g.length).toString().length,
|
|
584
|
+
const M = Math.min(r.line + c.linesAfter, g.length).toString().length, _ = c.maxLength - (c.indent + M + 3);
|
|
585
585
|
for (let P = 1; P <= c.linesBefore && !(f - P < 0); P++) {
|
|
586
|
-
const x = l(r.buffer, s[f - P], g[f - P], r.position - (s[f] - s[f - P]),
|
|
586
|
+
const x = l(r.buffer, s[f - P], g[f - P], r.position - (s[f] - s[f - P]), _);
|
|
587
587
|
b = i.repeat(" ", c.indent) + y((r.line - P + 1).toString(), M) + " | " + x.str + `
|
|
588
588
|
` + b;
|
|
589
589
|
}
|
|
590
|
-
const
|
|
591
|
-
b += i.repeat(" ", c.indent) + y((r.line + 1).toString(), M) + " | " +
|
|
592
|
-
`, b += i.repeat("-", c.indent + M + 3 +
|
|
590
|
+
const w = l(r.buffer, s[f], g[f], r.position, _);
|
|
591
|
+
b += i.repeat(" ", c.indent) + y((r.line + 1).toString(), M) + " | " + w.str + `
|
|
592
|
+
`, b += i.repeat("-", c.indent + M + 3 + w.pos) + `^
|
|
593
593
|
`;
|
|
594
594
|
for (let P = 1; P <= c.linesAfter && !(f + P >= g.length); P++) {
|
|
595
|
-
const x = l(r.buffer, s[f + P], g[f + P], r.position - (s[f] - s[f + P]),
|
|
595
|
+
const x = l(r.buffer, s[f + P], g[f + P], r.position - (s[f] - s[f + P]), _);
|
|
596
596
|
b += i.repeat(" ", c.indent) + y((r.line + P + 1).toString(), M) + " | " + x.str + `
|
|
597
597
|
`;
|
|
598
598
|
}
|
|
@@ -795,24 +795,24 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
795
795
|
const f = a.length;
|
|
796
796
|
let b = 0, M = !1;
|
|
797
797
|
if (!f) return !1;
|
|
798
|
-
let
|
|
799
|
-
if ((
|
|
798
|
+
let _ = a[b];
|
|
799
|
+
if ((_ === "-" || _ === "+") && (_ = a[++b]), _ === "0") {
|
|
800
800
|
if (b + 1 === f) return !0;
|
|
801
|
-
if (
|
|
801
|
+
if (_ = a[++b], _ === "b") {
|
|
802
802
|
for (b++; b < f; b++) {
|
|
803
|
-
if (
|
|
803
|
+
if (_ = a[b], _ !== "0" && _ !== "1") return !1;
|
|
804
804
|
M = !0;
|
|
805
805
|
}
|
|
806
806
|
return M && Number.isFinite(p(a));
|
|
807
807
|
}
|
|
808
|
-
if (
|
|
808
|
+
if (_ === "x") {
|
|
809
809
|
for (b++; b < f; b++) {
|
|
810
810
|
if (!y(a.charCodeAt(b))) return !1;
|
|
811
811
|
M = !0;
|
|
812
812
|
}
|
|
813
813
|
return M && Number.isFinite(p(a));
|
|
814
814
|
}
|
|
815
|
-
if (
|
|
815
|
+
if (_ === "o") {
|
|
816
816
|
for (b++; b < f; b++) {
|
|
817
817
|
if (!d(a.charCodeAt(b))) return !1;
|
|
818
818
|
M = !0;
|
|
@@ -939,7 +939,7 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
939
939
|
if (a === null && (a = y.exec(p)), a === null) throw new Error("Date resolve error");
|
|
940
940
|
const f = +a[1], b = +a[2] - 1, M = +a[3];
|
|
941
941
|
if (!a[4]) return new Date(Date.UTC(f, b, M));
|
|
942
|
-
const
|
|
942
|
+
const _ = +a[4], w = +a[5], P = +a[6];
|
|
943
943
|
if (a[7]) {
|
|
944
944
|
for (s = a[7].slice(0, 3); s.length < 3; ) s += "0";
|
|
945
945
|
s = +s;
|
|
@@ -948,7 +948,7 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
948
948
|
const K = +a[10], G = +(a[11] || 0);
|
|
949
949
|
g = (K * 60 + G) * 6e4, a[9] === "-" && (g = -g);
|
|
950
950
|
}
|
|
951
|
-
const x = new Date(Date.UTC(f, b, M, w,
|
|
951
|
+
const x = new Date(Date.UTC(f, b, M, _, w, P, s));
|
|
952
952
|
return g && x.setTime(x.getTime() - g), x;
|
|
953
953
|
}
|
|
954
954
|
function c(p) {
|
|
@@ -990,8 +990,8 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
990
990
|
const s = p.replace(/[\r\n=]/g, ""), g = s.length, a = l;
|
|
991
991
|
let f = 0;
|
|
992
992
|
const b = [];
|
|
993
|
-
for (let
|
|
994
|
-
|
|
993
|
+
for (let _ = 0; _ < g; _++)
|
|
994
|
+
_ % 4 === 0 && _ && (b.push(f >> 16 & 255), b.push(f >> 8 & 255), b.push(f & 255)), f = f << 6 | a.indexOf(s.charAt(_));
|
|
995
995
|
const M = g % 4 * 6;
|
|
996
996
|
return M === 0 ? (b.push(f >> 16 & 255), b.push(f >> 8 & 255), b.push(f & 255)) : M === 18 ? (b.push(f >> 10 & 255), b.push(f >> 2 & 255)) : M === 12 && b.push(f >> 4 & 255), new Uint8Array(b);
|
|
997
997
|
}
|
|
@@ -1095,7 +1095,7 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1095
1095
|
]
|
|
1096
1096
|
});
|
|
1097
1097
|
}), Bi = /* @__PURE__ */ Se((t, o) => {
|
|
1098
|
-
var i = it(), l = ot(), y = Oi(), d = Tt(), r = Object.prototype.hasOwnProperty, c = 1, p = 2, s = 3, g = 4, a = 1, f = 2, b = 3, M = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,
|
|
1098
|
+
var i = it(), l = ot(), y = Oi(), d = Tt(), r = Object.prototype.hasOwnProperty, c = 1, p = 2, s = 3, g = 4, a = 1, f = 2, b = 3, M = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, _ = /[\x85\u2028\u2029]/, w = /[,\[\]{}]/, P = /^(?:!|!!|![0-9A-Za-z-]+!)$/, x = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
1099
1099
|
function K(e) {
|
|
1100
1100
|
return Object.prototype.toString.call(e);
|
|
1101
1101
|
}
|
|
@@ -1199,9 +1199,9 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1199
1199
|
e.onWarning && e.onWarning.call(null, xe(e, u));
|
|
1200
1200
|
}
|
|
1201
1201
|
function Z(e, u, k) {
|
|
1202
|
-
const
|
|
1203
|
-
if (
|
|
1204
|
-
const h =
|
|
1202
|
+
const $ = e.anchorMapTransactions;
|
|
1203
|
+
if ($.length !== 0) {
|
|
1204
|
+
const h = $[$.length - 1];
|
|
1205
1205
|
r.call(h, u) || (h[u] = {
|
|
1206
1206
|
existed: r.call(e.anchorMap, u),
|
|
1207
1207
|
value: e.anchorMap[u]
|
|
@@ -1215,17 +1215,17 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1215
1215
|
function Te(e) {
|
|
1216
1216
|
const u = e.anchorMapTransactions.pop(), k = e.anchorMapTransactions;
|
|
1217
1217
|
if (k.length === 0) return;
|
|
1218
|
-
const
|
|
1218
|
+
const $ = k[k.length - 1], h = Object.keys(u);
|
|
1219
1219
|
for (let R = 0, n = h.length; R < n; R += 1) {
|
|
1220
1220
|
const m = h[R];
|
|
1221
|
-
r.call(
|
|
1221
|
+
r.call($, m) || ($[m] = u[m]);
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
1224
|
function Ie(e) {
|
|
1225
1225
|
const u = e.anchorMapTransactions.pop(), k = Object.keys(u);
|
|
1226
|
-
for (let
|
|
1227
|
-
const h = u[k[
|
|
1228
|
-
h.existed ? e.anchorMap[k[
|
|
1226
|
+
for (let $ = k.length - 1; $ >= 0; $ -= 1) {
|
|
1227
|
+
const h = u[k[$]];
|
|
1228
|
+
h.existed ? e.anchorMap[k[$]] = h.value : delete e.anchorMap[k[$]];
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
1231
|
function de(e) {
|
|
@@ -1245,18 +1245,18 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1245
1245
|
e.position = u.position, e.line = u.line, e.lineStart = u.lineStart, e.lineIndent = u.lineIndent, e.firstTabInLine = u.firstTabInLine, e.tag = u.tag, e.anchor = u.anchor, e.kind = u.kind, e.result = u.result;
|
|
1246
1246
|
}
|
|
1247
1247
|
var Ae = {
|
|
1248
|
-
YAML: function(u, k,
|
|
1249
|
-
u.version !== null && j(u, "duplication of %YAML directive"),
|
|
1250
|
-
const h = /^([0-9]+)\.([0-9]+)$/.exec(
|
|
1248
|
+
YAML: function(u, k, $) {
|
|
1249
|
+
u.version !== null && j(u, "duplication of %YAML directive"), $.length !== 1 && j(u, "YAML directive accepts exactly one argument");
|
|
1250
|
+
const h = /^([0-9]+)\.([0-9]+)$/.exec($[0]);
|
|
1251
1251
|
h === null && j(u, "ill-formed argument of the YAML directive");
|
|
1252
1252
|
const R = parseInt(h[1], 10), n = parseInt(h[2], 10);
|
|
1253
|
-
R !== 1 && j(u, "unacceptable YAML version of the document"), u.version =
|
|
1253
|
+
R !== 1 && j(u, "unacceptable YAML version of the document"), u.version = $[0], u.checkLineBreaks = n < 2, n !== 1 && n !== 2 && N(u, "unsupported YAML version of the document");
|
|
1254
1254
|
},
|
|
1255
|
-
TAG: function(u, k,
|
|
1255
|
+
TAG: function(u, k, $) {
|
|
1256
1256
|
let h;
|
|
1257
|
-
|
|
1258
|
-
const R =
|
|
1259
|
-
h =
|
|
1257
|
+
$.length !== 2 && j(u, "TAG directive accepts exactly two arguments");
|
|
1258
|
+
const R = $[0];
|
|
1259
|
+
h = $[1], P.test(R) || j(u, "ill-formed tag handle (first argument) of the TAG directive"), r.call(u.tagMap, R) && j(u, 'there is a previously declared suffix for "' + R + '" tag handle'), x.test(h) || j(u, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1260
1260
|
try {
|
|
1261
1261
|
h = decodeURIComponent(h);
|
|
1262
1262
|
} catch {
|
|
@@ -1265,10 +1265,10 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1265
1265
|
u.tagMap[R] = h;
|
|
1266
1266
|
}
|
|
1267
1267
|
};
|
|
1268
|
-
function fe(e, u, k,
|
|
1268
|
+
function fe(e, u, k, $) {
|
|
1269
1269
|
if (u < k) {
|
|
1270
1270
|
const h = e.input.slice(u, k);
|
|
1271
|
-
if (
|
|
1271
|
+
if ($) for (let R = 0, n = h.length; R < n; R += 1) {
|
|
1272
1272
|
const m = h.charCodeAt(R);
|
|
1273
1273
|
m === 9 || m >= 32 && m <= 1114111 || j(e, "expected valid JSON character");
|
|
1274
1274
|
}
|
|
@@ -1276,21 +1276,21 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1276
1276
|
e.result += h;
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
|
-
function ye(e, u, k,
|
|
1279
|
+
function ye(e, u, k, $) {
|
|
1280
1280
|
i.isObject(k) || j(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
1281
1281
|
const h = Object.keys(k);
|
|
1282
1282
|
for (let R = 0, n = h.length; R < n; R += 1) {
|
|
1283
1283
|
const m = h[R];
|
|
1284
|
-
r.call(u, m) || (re(u, m, k[m]),
|
|
1284
|
+
r.call(u, m) || (re(u, m, k[m]), $[m] = !0);
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
|
-
function Le(e, u, k,
|
|
1287
|
+
function Le(e, u, k, $, h, R, n, m, B) {
|
|
1288
1288
|
if (Array.isArray(h)) {
|
|
1289
1289
|
h = Array.prototype.slice.call(h);
|
|
1290
1290
|
for (let A = 0, T = h.length; A < T; A += 1)
|
|
1291
1291
|
Array.isArray(h[A]) && j(e, "nested arrays are not supported inside keys"), typeof h == "object" && K(h[A]) === "[object Object]" && (h[A] = "[object Object]");
|
|
1292
1292
|
}
|
|
1293
|
-
if (typeof h == "object" && K(h) === "[object Object]" && (h = "[object Object]"), h = String(h), u === null && (u = {}),
|
|
1293
|
+
if (typeof h == "object" && K(h) === "[object Object]" && (h = "[object Object]"), h = String(h), u === null && (u = {}), $ === "tag:yaml.org,2002:merge") if (Array.isArray(R)) {
|
|
1294
1294
|
R.length > e.maxMergeSeqLength && j(e, "merge sequence length exceeded maxMergeSeqLength (" + e.maxMergeSeqLength + ")");
|
|
1295
1295
|
const A = /* @__PURE__ */ new Set();
|
|
1296
1296
|
for (let T = 0, O = R.length; T < O; T += 1) {
|
|
@@ -1306,8 +1306,8 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1306
1306
|
const u = e.input.charCodeAt(e.position);
|
|
1307
1307
|
u === 10 ? e.position++ : u === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : j(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1310
|
-
let
|
|
1309
|
+
function _e(e, u, k) {
|
|
1310
|
+
let $ = 0, h = e.input.charCodeAt(e.position);
|
|
1311
1311
|
for (; h !== 0; ) {
|
|
1312
1312
|
for (; W(h); )
|
|
1313
1313
|
h === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), h = e.input.charCodeAt(++e.position);
|
|
@@ -1315,13 +1315,13 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1315
1315
|
h = e.input.charCodeAt(++e.position);
|
|
1316
1316
|
while (h !== 10 && h !== 13 && h !== 0);
|
|
1317
1317
|
if (G(h))
|
|
1318
|
-
for (Ne(e), h = e.input.charCodeAt(e.position),
|
|
1318
|
+
for (Ne(e), h = e.input.charCodeAt(e.position), $++, e.lineIndent = 0; h === 32; )
|
|
1319
1319
|
e.lineIndent++, h = e.input.charCodeAt(++e.position);
|
|
1320
1320
|
else break;
|
|
1321
1321
|
}
|
|
1322
|
-
return k !== -1 &&
|
|
1322
|
+
return k !== -1 && $ !== 0 && e.lineIndent < k && N(e, "deficient indentation"), $;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function He(e) {
|
|
1325
1325
|
let u = e.position, k = e.input.charCodeAt(u);
|
|
1326
1326
|
return !!((k === 45 || k === 46) && k === e.input.charCodeAt(u + 1) && k === e.input.charCodeAt(u + 2) && (u += 3, k = e.input.charCodeAt(u), k === 0 || ce(k)));
|
|
1327
1327
|
}
|
|
@@ -1330,7 +1330,7 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1330
1330
|
`, u - 1));
|
|
1331
1331
|
}
|
|
1332
1332
|
function rt(e, u, k) {
|
|
1333
|
-
let
|
|
1333
|
+
let $, h, R, n, m, B;
|
|
1334
1334
|
const A = e.kind, T = e.result;
|
|
1335
1335
|
let O = e.input.charCodeAt(e.position);
|
|
1336
1336
|
if (ce(O) || S(O) || O === 35 || O === 38 || O === 42 || O === 33 || O === 124 || O === 62 || O === 39 || O === 34 || O === 37 || O === 64 || O === 96) return !1;
|
|
@@ -1338,16 +1338,16 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1338
1338
|
const E = e.input.charCodeAt(e.position + 1);
|
|
1339
1339
|
if (ce(E) || k && S(E)) return !1;
|
|
1340
1340
|
}
|
|
1341
|
-
for (e.kind = "scalar", e.result = "",
|
|
1341
|
+
for (e.kind = "scalar", e.result = "", $ = h = e.position, R = !1; O !== 0; ) {
|
|
1342
1342
|
if (O === 58) {
|
|
1343
1343
|
const E = e.input.charCodeAt(e.position + 1);
|
|
1344
1344
|
if (ce(E) || k && S(E)) break;
|
|
1345
1345
|
} else if (O === 35) {
|
|
1346
1346
|
if (ce(e.input.charCodeAt(e.position - 1))) break;
|
|
1347
1347
|
} else {
|
|
1348
|
-
if (e.position === e.lineStart &&
|
|
1348
|
+
if (e.position === e.lineStart && He(e) || k && S(O)) break;
|
|
1349
1349
|
if (G(O))
|
|
1350
|
-
if (n = e.line, m = e.lineStart, B = e.lineIndent,
|
|
1350
|
+
if (n = e.line, m = e.lineStart, B = e.lineIndent, _e(e, !1, -1), e.lineIndent >= u) {
|
|
1351
1351
|
R = !0, O = e.input.charCodeAt(e.position);
|
|
1352
1352
|
continue;
|
|
1353
1353
|
} else {
|
|
@@ -1355,28 +1355,28 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1355
1355
|
break;
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
R && (fe(e,
|
|
1358
|
+
R && (fe(e, $, h, !1), De(e, e.line - n), $ = h = e.position, R = !1), W(O) || (h = e.position + 1), O = e.input.charCodeAt(++e.position);
|
|
1359
1359
|
}
|
|
1360
|
-
return fe(e,
|
|
1360
|
+
return fe(e, $, h, !1), e.result ? !0 : (e.kind = A, e.result = T, !1);
|
|
1361
1361
|
}
|
|
1362
1362
|
function lt(e, u) {
|
|
1363
|
-
let k,
|
|
1363
|
+
let k, $, h = e.input.charCodeAt(e.position);
|
|
1364
1364
|
if (h !== 39) return !1;
|
|
1365
|
-
for (e.kind = "scalar", e.result = "", e.position++, k =
|
|
1365
|
+
for (e.kind = "scalar", e.result = "", e.position++, k = $ = e.position; (h = e.input.charCodeAt(e.position)) !== 0; ) if (h === 39)
|
|
1366
1366
|
if (fe(e, k, e.position, !0), h = e.input.charCodeAt(++e.position), h === 39)
|
|
1367
|
-
k = e.position, e.position++,
|
|
1367
|
+
k = e.position, e.position++, $ = e.position;
|
|
1368
1368
|
else return !0;
|
|
1369
|
-
else G(h) ? (fe(e, k,
|
|
1369
|
+
else G(h) ? (fe(e, k, $, !0), De(e, _e(e, !1, u)), k = $ = e.position) : e.position === e.lineStart && He(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, W(h) || ($ = e.position));
|
|
1370
1370
|
j(e, "unexpected end of the stream within a single quoted scalar");
|
|
1371
1371
|
}
|
|
1372
1372
|
function Je(e, u) {
|
|
1373
|
-
let k,
|
|
1373
|
+
let k, $, h, R = e.input.charCodeAt(e.position);
|
|
1374
1374
|
if (R !== 34) return !1;
|
|
1375
|
-
for (e.kind = "scalar", e.result = "", e.position++, k =
|
|
1375
|
+
for (e.kind = "scalar", e.result = "", e.position++, k = $ = e.position; (R = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1376
1376
|
if (R === 34)
|
|
1377
1377
|
return fe(e, k, e.position, !0), e.position++, !0;
|
|
1378
1378
|
if (R === 92) {
|
|
1379
|
-
if (fe(e, k, e.position, !0), R = e.input.charCodeAt(++e.position), G(R))
|
|
1379
|
+
if (fe(e, k, e.position, !0), R = e.input.charCodeAt(++e.position), G(R)) _e(e, !1, u);
|
|
1380
1380
|
else if (R < 256 && ue[R])
|
|
1381
1381
|
e.result += ve[R], e.position++;
|
|
1382
1382
|
else if ((h = I(R)) > 0) {
|
|
@@ -1385,18 +1385,18 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1385
1385
|
R = e.input.charCodeAt(++e.position), (h = V(R)) >= 0 ? m = (m << 4) + h : j(e, "expected hexadecimal character");
|
|
1386
1386
|
e.result += se(m), e.position++;
|
|
1387
1387
|
} else j(e, "unknown escape sequence");
|
|
1388
|
-
k =
|
|
1389
|
-
} else G(R) ? (fe(e, k,
|
|
1388
|
+
k = $ = e.position;
|
|
1389
|
+
} else G(R) ? (fe(e, k, $, !0), De(e, _e(e, !1, u)), k = $ = e.position) : e.position === e.lineStart && He(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, W(R) || ($ = e.position));
|
|
1390
1390
|
}
|
|
1391
1391
|
j(e, "unexpected end of the stream within a double quoted scalar");
|
|
1392
1392
|
}
|
|
1393
1393
|
function at(e, u) {
|
|
1394
|
-
let k = !0,
|
|
1394
|
+
let k = !0, $, h, R;
|
|
1395
1395
|
const n = e.tag;
|
|
1396
1396
|
let m;
|
|
1397
1397
|
const B = e.anchor;
|
|
1398
1398
|
let A, T, O, E;
|
|
1399
|
-
const
|
|
1399
|
+
const H = /* @__PURE__ */ Object.create(null);
|
|
1400
1400
|
let q, J, te, ge = e.input.charCodeAt(e.position);
|
|
1401
1401
|
if (ge === 91)
|
|
1402
1402
|
A = 93, E = !1, m = [];
|
|
@@ -1404,19 +1404,19 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1404
1404
|
A = 125, E = !0, m = {};
|
|
1405
1405
|
else return !1;
|
|
1406
1406
|
for (e.anchor !== null && Z(e, e.anchor, m), ge = e.input.charCodeAt(++e.position); ge !== 0; ) {
|
|
1407
|
-
if (
|
|
1407
|
+
if (_e(e, !0, u), ge = e.input.charCodeAt(e.position), ge === A)
|
|
1408
1408
|
return e.position++, e.tag = n, e.anchor = B, e.kind = E ? "mapping" : "sequence", e.result = m, !0;
|
|
1409
|
-
k ? ge === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), J = q = te = null, T = O = !1, ge === 63 && ce(e.input.charCodeAt(e.position + 1)) && (T = O = !0, e.position++,
|
|
1409
|
+
k ? ge === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), J = q = te = null, T = O = !1, ge === 63 && ce(e.input.charCodeAt(e.position + 1)) && (T = O = !0, e.position++, _e(e, !0, u)), $ = e.line, h = e.lineStart, R = e.position, je(e, u, c, !1, !0), J = e.tag, q = e.result, _e(e, !0, u), ge = e.input.charCodeAt(e.position), (O || e.line === $) && ge === 58 && (T = !0, ge = e.input.charCodeAt(++e.position), _e(e, !0, u), je(e, u, c, !1, !0), te = e.result), E ? Le(e, m, H, J, q, te, $, h, R) : T ? m.push(Le(e, null, H, J, q, te, $, h, R)) : m.push(q), _e(e, !0, u), ge = e.input.charCodeAt(e.position), ge === 44 ? (k = !0, ge = e.input.charCodeAt(++e.position)) : k = !1;
|
|
1410
1410
|
}
|
|
1411
1411
|
j(e, "unexpected end of the stream within a flow collection");
|
|
1412
1412
|
}
|
|
1413
1413
|
function ct(e, u) {
|
|
1414
|
-
let k,
|
|
1414
|
+
let k, $ = a, h = !1, R = !1, n = u, m = 0, B = !1, A, T = e.input.charCodeAt(e.position);
|
|
1415
1415
|
if (T === 124) k = !1;
|
|
1416
1416
|
else if (T === 62) k = !0;
|
|
1417
1417
|
else return !1;
|
|
1418
1418
|
for (e.kind = "scalar", e.result = ""; T !== 0; )
|
|
1419
|
-
if (T = e.input.charCodeAt(++e.position), T === 43 || T === 45) a ===
|
|
1419
|
+
if (T = e.input.charCodeAt(++e.position), T === 43 || T === 45) a === $ ? $ = T === 43 ? b : f : j(e, "repeat of a chomping mode identifier");
|
|
1420
1420
|
else if ((A = F(T)) >= 0) A === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : R ? j(e, "repeat of an indentation width identifier") : (n = u + A - 1, R = !0);
|
|
1421
1421
|
else break;
|
|
1422
1422
|
if (W(T)) {
|
|
@@ -1435,8 +1435,8 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1435
1435
|
continue;
|
|
1436
1436
|
}
|
|
1437
1437
|
if (!R && n === 0 && j(e, "missing indentation for block scalar"), e.lineIndent < n) {
|
|
1438
|
-
|
|
1439
|
-
`, h ? 1 + m : m) :
|
|
1438
|
+
$ === b ? e.result += i.repeat(`
|
|
1439
|
+
`, h ? 1 + m : m) : $ === a && h && (e.result += `
|
|
1440
1440
|
`);
|
|
1441
1441
|
break;
|
|
1442
1442
|
}
|
|
@@ -1452,40 +1452,40 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1452
1452
|
return !0;
|
|
1453
1453
|
}
|
|
1454
1454
|
function qe(e, u) {
|
|
1455
|
-
const k = e.tag,
|
|
1455
|
+
const k = e.tag, $ = e.anchor, h = [];
|
|
1456
1456
|
let R = !1;
|
|
1457
1457
|
if (e.firstTabInLine !== -1) return !1;
|
|
1458
1458
|
e.anchor !== null && Z(e, e.anchor, h);
|
|
1459
1459
|
let n = e.input.charCodeAt(e.position);
|
|
1460
1460
|
for (; n !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), !(n !== 45 || !ce(e.input.charCodeAt(e.position + 1)))); ) {
|
|
1461
|
-
if (R = !0, e.position++,
|
|
1461
|
+
if (R = !0, e.position++, _e(e, !0, -1) && e.lineIndent <= u) {
|
|
1462
1462
|
h.push(null), n = e.input.charCodeAt(e.position);
|
|
1463
1463
|
continue;
|
|
1464
1464
|
}
|
|
1465
1465
|
const m = e.line;
|
|
1466
|
-
if (je(e, u, s, !1, !0), h.push(e.result),
|
|
1466
|
+
if (je(e, u, s, !1, !0), h.push(e.result), _e(e, !0, -1), n = e.input.charCodeAt(e.position), (e.line === m || e.lineIndent > u) && n !== 0) j(e, "bad indentation of a sequence entry");
|
|
1467
1467
|
else if (e.lineIndent < u) break;
|
|
1468
1468
|
}
|
|
1469
|
-
return R ? (e.tag = k, e.anchor =
|
|
1469
|
+
return R ? (e.tag = k, e.anchor = $, e.kind = "sequence", e.result = h, !0) : !1;
|
|
1470
1470
|
}
|
|
1471
1471
|
function st(e, u, k) {
|
|
1472
|
-
let
|
|
1472
|
+
let $, h, R, n;
|
|
1473
1473
|
const m = e.tag, B = e.anchor, A = {}, T = /* @__PURE__ */ Object.create(null);
|
|
1474
|
-
let O = null, E = null,
|
|
1474
|
+
let O = null, E = null, H = null, q = !1, J = !1;
|
|
1475
1475
|
if (e.firstTabInLine !== -1) return !1;
|
|
1476
1476
|
e.anchor !== null && Z(e, e.anchor, A);
|
|
1477
1477
|
let te = e.input.charCodeAt(e.position);
|
|
1478
1478
|
for (; te !== 0; ) {
|
|
1479
1479
|
!q && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation"));
|
|
1480
|
-
const ge = e.input.charCodeAt(e.position + 1),
|
|
1480
|
+
const ge = e.input.charCodeAt(e.position + 1), $e = e.line;
|
|
1481
1481
|
if ((te === 63 || te === 58) && ce(ge))
|
|
1482
|
-
te === 63 ? (q && (Le(e, A, T, O, E, null, h, R, n), O = E =
|
|
1482
|
+
te === 63 ? (q && (Le(e, A, T, O, E, null, h, R, n), O = E = H = null), J = !0, q = !0, $ = !0) : q ? (q = !1, $ = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, te = ge;
|
|
1483
1483
|
else {
|
|
1484
1484
|
if (h = e.line, R = e.lineStart, n = e.position, !je(e, k, p, !1, !0)) break;
|
|
1485
|
-
if (e.line ===
|
|
1485
|
+
if (e.line === $e) {
|
|
1486
1486
|
for (te = e.input.charCodeAt(e.position); W(te); ) te = e.input.charCodeAt(++e.position);
|
|
1487
1487
|
if (te === 58)
|
|
1488
|
-
te = e.input.charCodeAt(++e.position), ce(te) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), q && (Le(e, A, T, O, E, null, h, R, n), O = E =
|
|
1488
|
+
te = e.input.charCodeAt(++e.position), ce(te) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), q && (Le(e, A, T, O, E, null, h, R, n), O = E = H = null), J = !0, q = !1, $ = !1, O = e.tag, E = e.result;
|
|
1489
1489
|
else if (J) j(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1490
1490
|
else
|
|
1491
1491
|
return e.tag = m, e.anchor = B, !0;
|
|
@@ -1493,15 +1493,15 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1493
1493
|
else
|
|
1494
1494
|
return e.tag = m, e.anchor = B, !0;
|
|
1495
1495
|
}
|
|
1496
|
-
if ((e.line ===
|
|
1496
|
+
if ((e.line === $e || e.lineIndent > u) && (q && (h = e.line, R = e.lineStart, n = e.position), je(e, u, g, !0, $) && (q ? E = e.result : H = e.result), q || (Le(e, A, T, O, E, H, h, R, n), O = E = H = null), _e(e, !0, -1), te = e.input.charCodeAt(e.position)), (e.line === $e || e.lineIndent > u) && te !== 0) j(e, "bad indentation of a mapping entry");
|
|
1497
1497
|
else if (e.lineIndent < u) break;
|
|
1498
1498
|
}
|
|
1499
1499
|
return q && Le(e, A, T, O, E, null, h, R, n), J && (e.tag = m, e.anchor = B, e.kind = "mapping", e.result = A), J;
|
|
1500
1500
|
}
|
|
1501
1501
|
function gt(e) {
|
|
1502
|
-
let u = !1, k = !1,
|
|
1502
|
+
let u = !1, k = !1, $, h, R = e.input.charCodeAt(e.position);
|
|
1503
1503
|
if (R !== 33) return !1;
|
|
1504
|
-
e.tag !== null && j(e, "duplication of a tag property"), R = e.input.charCodeAt(++e.position), R === 60 ? (u = !0, R = e.input.charCodeAt(++e.position)) : R === 33 ? (k = !0,
|
|
1504
|
+
e.tag !== null && j(e, "duplication of a tag property"), R = e.input.charCodeAt(++e.position), R === 60 ? (u = !0, R = e.input.charCodeAt(++e.position)) : R === 33 ? (k = !0, $ = "!!", R = e.input.charCodeAt(++e.position)) : $ = "!";
|
|
1505
1505
|
let n = e.position;
|
|
1506
1506
|
if (u) {
|
|
1507
1507
|
do
|
|
@@ -1510,8 +1510,8 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1510
1510
|
e.position < e.length ? (h = e.input.slice(n, e.position), R = e.input.charCodeAt(++e.position)) : j(e, "unexpected end of the stream within a verbatim tag");
|
|
1511
1511
|
} else {
|
|
1512
1512
|
for (; R !== 0 && !ce(R); )
|
|
1513
|
-
R === 33 && (k ? j(e, "tag suffix cannot contain exclamation marks") : (
|
|
1514
|
-
h = e.input.slice(n, e.position),
|
|
1513
|
+
R === 33 && (k ? j(e, "tag suffix cannot contain exclamation marks") : ($ = e.input.slice(n - 1, e.position + 1), P.test($) || j(e, "named tag handle cannot contain such characters"), k = !0, n = e.position + 1)), R = e.input.charCodeAt(++e.position);
|
|
1514
|
+
h = e.input.slice(n, e.position), w.test(h) && j(e, "tag suffix cannot contain flow indicator characters");
|
|
1515
1515
|
}
|
|
1516
1516
|
h && !x.test(h) && j(e, "tag name cannot contain such characters: " + h);
|
|
1517
1517
|
try {
|
|
@@ -1519,7 +1519,7 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1519
1519
|
} catch {
|
|
1520
1520
|
j(e, "tag name is malformed: " + h);
|
|
1521
1521
|
}
|
|
1522
|
-
return u ? e.tag = h : r.call(e.tagMap,
|
|
1522
|
+
return u ? e.tag = h : r.call(e.tagMap, $) ? e.tag = e.tagMap[$] + h : $ === "!" ? e.tag = "!" + h : $ === "!!" ? e.tag = "tag:yaml.org,2002:" + h : j(e, 'undeclared tag handle "' + $ + '"'), !0;
|
|
1523
1523
|
}
|
|
1524
1524
|
function ut(e) {
|
|
1525
1525
|
let u = e.input.charCodeAt(e.position);
|
|
@@ -1536,29 +1536,29 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1536
1536
|
const k = e.position;
|
|
1537
1537
|
for (; u !== 0 && !ce(u) && !S(u); ) u = e.input.charCodeAt(++e.position);
|
|
1538
1538
|
e.position === k && j(e, "name of an alias node must contain at least one character");
|
|
1539
|
-
const
|
|
1540
|
-
return r.call(e.anchorMap,
|
|
1539
|
+
const $ = e.input.slice(k, e.position);
|
|
1540
|
+
return r.call(e.anchorMap, $) || j(e, 'unidentified alias "' + $ + '"'), e.result = e.anchorMap[$], _e(e, !0, -1), !0;
|
|
1541
1541
|
}
|
|
1542
|
-
function ht(e, u, k,
|
|
1542
|
+
function ht(e, u, k, $) {
|
|
1543
1543
|
const h = de(e);
|
|
1544
|
-
return oe(e), ie(e, u), e.tag = null, e.anchor = null, e.kind = null, e.result = null, st(e, k,
|
|
1544
|
+
return oe(e), ie(e, u), e.tag = null, e.anchor = null, e.kind = null, e.result = null, st(e, k, $) && e.kind === "mapping" ? (Te(e), !0) : (Ie(e), ie(e, h), !1);
|
|
1545
1545
|
}
|
|
1546
|
-
function je(e, u, k,
|
|
1547
|
-
let R, n, m = 1, B = !1, A = !1, T = null, O, E,
|
|
1546
|
+
function je(e, u, k, $, h) {
|
|
1547
|
+
let R, n, m = 1, B = !1, A = !1, T = null, O, E, H;
|
|
1548
1548
|
e.depth >= e.maxDepth && j(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;
|
|
1549
1549
|
const q = R = n = g === k || s === k;
|
|
1550
|
-
if (
|
|
1550
|
+
if ($ && _e(e, !0, -1) && (B = !0, e.lineIndent > u ? m = 1 : e.lineIndent === u ? m = 0 : e.lineIndent < u && (m = -1)), m === 1) for (; ; ) {
|
|
1551
1551
|
const J = e.input.charCodeAt(e.position), te = de(e);
|
|
1552
1552
|
if (B && (J === 33 && e.tag !== null || J === 38 && e.anchor !== null) || !gt(e) && !ut(e)) break;
|
|
1553
|
-
T === null && (T = te),
|
|
1553
|
+
T === null && (T = te), _e(e, !0, -1) ? (B = !0, n = q, e.lineIndent > u ? m = 1 : e.lineIndent === u ? m = 0 : e.lineIndent < u && (m = -1)) : n = !1;
|
|
1554
1554
|
}
|
|
1555
1555
|
if (n && (n = B || h), m === 1 || g === k)
|
|
1556
|
-
if (c === k || p === k ? E = u : E = u + 1,
|
|
1556
|
+
if (c === k || p === k ? E = u : E = u + 1, H = e.position - e.lineStart, m === 1) if (n && (qe(e, H) || st(e, H, E)) || at(e, E)) A = !0;
|
|
1557
1557
|
else {
|
|
1558
1558
|
const J = e.input.charCodeAt(e.position);
|
|
1559
1559
|
T !== null && q && !n && J !== 124 && J !== 62 && ht(e, T, T.position - T.lineStart, E) || R && ct(e, E) || lt(e, E) || Je(e, E) ? A = !0 : dt(e) ? (A = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : rt(e, E, c === k) && (A = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && Z(e, e.anchor, e.result);
|
|
1560
1560
|
}
|
|
1561
|
-
else m === 0 && (A = n && qe(e,
|
|
1561
|
+
else m === 0 && (A = n && qe(e, H));
|
|
1562
1562
|
if (e.tag === null)
|
|
1563
1563
|
e.anchor !== null && Z(e, e.anchor, e.result);
|
|
1564
1564
|
else if (e.tag === "?") {
|
|
@@ -1584,28 +1584,28 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1584
1584
|
}
|
|
1585
1585
|
function vt(e) {
|
|
1586
1586
|
const u = e.position;
|
|
1587
|
-
let k = !1,
|
|
1588
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (
|
|
1589
|
-
k = !0,
|
|
1587
|
+
let k = !1, $;
|
|
1588
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); ($ = e.input.charCodeAt(e.position)) !== 0 && (_e(e, !0, -1), $ = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || $ !== 37)); ) {
|
|
1589
|
+
k = !0, $ = e.input.charCodeAt(++e.position);
|
|
1590
1590
|
let h = e.position;
|
|
1591
|
-
for (;
|
|
1591
|
+
for (; $ !== 0 && !ce($); ) $ = e.input.charCodeAt(++e.position);
|
|
1592
1592
|
const R = e.input.slice(h, e.position), n = [];
|
|
1593
|
-
for (R.length < 1 && j(e, "directive name must not be less than one character in length");
|
|
1594
|
-
for (; W(
|
|
1595
|
-
if (
|
|
1593
|
+
for (R.length < 1 && j(e, "directive name must not be less than one character in length"); $ !== 0; ) {
|
|
1594
|
+
for (; W($); ) $ = e.input.charCodeAt(++e.position);
|
|
1595
|
+
if ($ === 35) {
|
|
1596
1596
|
do
|
|
1597
|
-
|
|
1598
|
-
while (
|
|
1597
|
+
$ = e.input.charCodeAt(++e.position);
|
|
1598
|
+
while ($ !== 0 && !G($));
|
|
1599
1599
|
break;
|
|
1600
1600
|
}
|
|
1601
|
-
if (G(
|
|
1602
|
-
for (h = e.position;
|
|
1601
|
+
if (G($)) break;
|
|
1602
|
+
for (h = e.position; $ !== 0 && !ce($); ) $ = e.input.charCodeAt(++e.position);
|
|
1603
1603
|
n.push(e.input.slice(h, e.position));
|
|
1604
1604
|
}
|
|
1605
|
-
|
|
1605
|
+
$ !== 0 && Ne(e), r.call(Ae, R) ? Ae[R](e, R, n) : N(e, 'unknown document directive "' + R + '"');
|
|
1606
1606
|
}
|
|
1607
|
-
if (
|
|
1608
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
1607
|
+
if (_e(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, _e(e, !0, -1)) : k && j(e, "directives end mark is expected"), je(e, e.lineIndent - 1, g, !1, !0), _e(e, !0, -1), e.checkLineBreaks && _.test(e.input.slice(u, e.position)) && N(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && He(e)) {
|
|
1608
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, _e(e, !0, -1));
|
|
1609
1609
|
return;
|
|
1610
1610
|
}
|
|
1611
1611
|
e.position < e.length - 1 && j(e, "end of the stream or a document separator is expected");
|
|
@@ -1613,17 +1613,17 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1613
1613
|
function ft(e, u) {
|
|
1614
1614
|
e = String(e), u = u || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
1615
1615
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1616
|
-
const k = new be(e, u),
|
|
1617
|
-
for (
|
|
1616
|
+
const k = new be(e, u), $ = e.indexOf("\0");
|
|
1617
|
+
for ($ !== -1 && (k.position = $, j(k, "null byte is not allowed in input")), k.input += "\0"; k.input.charCodeAt(k.position) === 32; )
|
|
1618
1618
|
k.lineIndent += 1, k.position += 1;
|
|
1619
1619
|
for (; k.position < k.length - 1; ) vt(k);
|
|
1620
1620
|
return k.documents;
|
|
1621
1621
|
}
|
|
1622
1622
|
function pt(e, u, k) {
|
|
1623
1623
|
u !== null && typeof u == "object" && typeof k > "u" && (k = u, u = null);
|
|
1624
|
-
const
|
|
1625
|
-
if (typeof u != "function") return
|
|
1626
|
-
for (let h = 0, R =
|
|
1624
|
+
const $ = ft(e, k);
|
|
1625
|
+
if (typeof u != "function") return $;
|
|
1626
|
+
for (let h = 0, R = $.length; h < R; h += 1) u($[h]);
|
|
1627
1627
|
}
|
|
1628
1628
|
function bt(e, u) {
|
|
1629
1629
|
const k = ft(e, u);
|
|
@@ -1634,7 +1634,7 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1634
1634
|
}
|
|
1635
1635
|
o.exports.loadAll = pt, o.exports.load = bt;
|
|
1636
1636
|
}), Ki = /* @__PURE__ */ Se((t, o) => {
|
|
1637
|
-
var i = it(), l = ot(), y = Tt(), d = Object.prototype.toString, r = Object.prototype.hasOwnProperty, c = 65279, p = 9, s = 10, g = 13, a = 32, f = 33, b = 34, M = 35,
|
|
1637
|
+
var i = it(), l = ot(), y = Tt(), d = Object.prototype.toString, r = Object.prototype.hasOwnProperty, c = 65279, p = 9, s = 10, g = 13, a = 32, f = 33, b = 34, M = 35, _ = 37, w = 38, P = 39, x = 42, K = 44, G = 45, W = 58, ce = 61, S = 62, V = 63, I = 64, F = 91, me = 93, se = 96, re = 123, ue = 124, ve = 125, be = {};
|
|
1638
1638
|
be[0] = "\\0", be[7] = "\\a", be[8] = "\\b", be[9] = "\\t", be[10] = "\\n", be[11] = "\\v", be[12] = "\\f", be[13] = "\\r", be[27] = "\\e", be[34] = '\\"', be[92] = "\\\\", be[133] = "\\N", be[160] = "\\_", be[8232] = "\\L", be[8233] = "\\P";
|
|
1639
1639
|
var xe = [
|
|
1640
1640
|
"y",
|
|
@@ -1658,10 +1658,10 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1658
1658
|
if (m === null) return {};
|
|
1659
1659
|
const B = {}, A = Object.keys(m);
|
|
1660
1660
|
for (let T = 0, O = A.length; T < O; T += 1) {
|
|
1661
|
-
let E = A[T],
|
|
1661
|
+
let E = A[T], H = String(m[E]);
|
|
1662
1662
|
E.slice(0, 2) === "!!" && (E = "tag:yaml.org,2002:" + E.slice(2));
|
|
1663
1663
|
const q = n.compiledTypeMap.fallback[E];
|
|
1664
|
-
q && r.call(q.styleAliases,
|
|
1664
|
+
q && r.call(q.styleAliases, H) && (H = q.styleAliases[H]), B[E] = H;
|
|
1665
1665
|
}
|
|
1666
1666
|
return B;
|
|
1667
1667
|
}
|
|
@@ -1687,9 +1687,9 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1687
1687
|
const O = n.length;
|
|
1688
1688
|
for (; A < O; ) {
|
|
1689
1689
|
let E;
|
|
1690
|
-
const
|
|
1690
|
+
const H = n.indexOf(`
|
|
1691
1691
|
`, A);
|
|
1692
|
-
|
|
1692
|
+
H === -1 ? (E = n.slice(A), A = O) : (E = n.slice(A, H + 1), A = H + 1), E.length && E !== `
|
|
1693
1693
|
` && (T += B), T += E;
|
|
1694
1694
|
}
|
|
1695
1695
|
return T;
|
|
@@ -1715,10 +1715,10 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1715
1715
|
const A = Le(n), T = A && !fe(n);
|
|
1716
1716
|
return (B ? A : A && n !== K && n !== F && n !== me && n !== re && n !== ve) && n !== M && !(m === W && !T) || Le(m) && !fe(m) && n === M || m === W && T;
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1719
|
-
return ye(n) && n !== c && !fe(n) && n !== G && n !== V && n !== W && n !== K && n !== F && n !== me && n !== re && n !== ve && n !== M && n !==
|
|
1718
|
+
function _e(n) {
|
|
1719
|
+
return ye(n) && n !== c && !fe(n) && n !== G && n !== V && n !== W && n !== K && n !== F && n !== me && n !== re && n !== ve && n !== M && n !== w && n !== x && n !== f && n !== ue && n !== ce && n !== S && n !== P && n !== b && n !== _ && n !== I && n !== se;
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function He(n) {
|
|
1722
1722
|
return !fe(n) && n !== W;
|
|
1723
1723
|
}
|
|
1724
1724
|
function De(n, m) {
|
|
@@ -1730,35 +1730,35 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1730
1730
|
return /^\n* /.test(n);
|
|
1731
1731
|
}
|
|
1732
1732
|
var lt = 1, Je = 2, at = 3, ct = 4, qe = 5;
|
|
1733
|
-
function st(n, m, B, A, T, O, E,
|
|
1734
|
-
let q, J = 0, te = null, ge = !1,
|
|
1735
|
-
const
|
|
1736
|
-
let Qe = -1, Xe =
|
|
1733
|
+
function st(n, m, B, A, T, O, E, H) {
|
|
1734
|
+
let q, J = 0, te = null, ge = !1, $e = !1;
|
|
1735
|
+
const $t = A !== -1;
|
|
1736
|
+
let Qe = -1, Xe = _e(De(n, 0)) && He(De(n, n.length - 1));
|
|
1737
1737
|
if (m || E) for (q = 0; q < n.length; J >= 65536 ? q += 2 : q++) {
|
|
1738
1738
|
if (J = De(n, q), !ye(J)) return qe;
|
|
1739
|
-
Xe = Xe && Ne(J, te,
|
|
1739
|
+
Xe = Xe && Ne(J, te, H), te = J;
|
|
1740
1740
|
}
|
|
1741
1741
|
else {
|
|
1742
1742
|
for (q = 0; q < n.length; J >= 65536 ? q += 2 : q++) {
|
|
1743
1743
|
if (J = De(n, q), J === s)
|
|
1744
|
-
ge = !0,
|
|
1744
|
+
ge = !0, $t && ($e = $e || q - Qe - 1 > A && n[Qe + 1] !== " ", Qe = q);
|
|
1745
1745
|
else if (!ye(J)) return qe;
|
|
1746
|
-
Xe = Xe && Ne(J, te,
|
|
1746
|
+
Xe = Xe && Ne(J, te, H), te = J;
|
|
1747
1747
|
}
|
|
1748
|
-
|
|
1748
|
+
$e = $e || $t && q - Qe - 1 > A && n[Qe + 1] !== " ";
|
|
1749
1749
|
}
|
|
1750
|
-
return !ge &&
|
|
1750
|
+
return !ge && !$e ? Xe && !E && !T(n) ? lt : O === Te ? qe : Je : B > 9 && rt(n) ? qe : E ? O === Te ? qe : Je : $e ? ct : at;
|
|
1751
1751
|
}
|
|
1752
1752
|
function gt(n, m, B, A, T) {
|
|
1753
1753
|
n.dump = function() {
|
|
1754
1754
|
if (m.length === 0) return n.quotingType === Te ? '""' : "''";
|
|
1755
1755
|
if (!n.noCompatMode && (xe.indexOf(m) !== -1 || j.test(m)))
|
|
1756
1756
|
return n.quotingType === Te ? '"' + m + '"' : "'" + m + "'";
|
|
1757
|
-
const O = n.indent * Math.max(1, B), E = n.lineWidth === -1 ? -1 : Math.max(Math.min(n.lineWidth, 40), n.lineWidth - O),
|
|
1757
|
+
const O = n.indent * Math.max(1, B), E = n.lineWidth === -1 ? -1 : Math.max(Math.min(n.lineWidth, 40), n.lineWidth - O), H = A || n.flowLevel > -1 && B >= n.flowLevel;
|
|
1758
1758
|
function q(J) {
|
|
1759
1759
|
return Ae(n, J);
|
|
1760
1760
|
}
|
|
1761
|
-
switch (st(m,
|
|
1761
|
+
switch (st(m, H, n.indent, E, q, n.quotingType, n.forceQuotes && !A, T)) {
|
|
1762
1762
|
case lt:
|
|
1763
1763
|
return m;
|
|
1764
1764
|
case Je:
|
|
@@ -1789,14 +1789,14 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1789
1789
|
function ht(n, m) {
|
|
1790
1790
|
const B = /(\n+)([^\n]*)/g;
|
|
1791
1791
|
let A = function() {
|
|
1792
|
-
let
|
|
1792
|
+
let H = n.indexOf(`
|
|
1793
1793
|
`);
|
|
1794
|
-
return
|
|
1794
|
+
return H = H !== -1 ? H : n.length, B.lastIndex = H, je(n.slice(0, H), m);
|
|
1795
1795
|
}(), T = n[0] === `
|
|
1796
1796
|
` || n[0] === " ", O, E;
|
|
1797
1797
|
for (; E = B.exec(n); ) {
|
|
1798
|
-
const
|
|
1799
|
-
O = q[0] === " ", A +=
|
|
1798
|
+
const H = E[1], q = E[2];
|
|
1799
|
+
O = q[0] === " ", A += H + (!T && !O && q !== "" ? `
|
|
1800
1800
|
` : "") + je(q, m), T = O;
|
|
1801
1801
|
}
|
|
1802
1802
|
return A;
|
|
@@ -1804,10 +1804,10 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1804
1804
|
function je(n, m) {
|
|
1805
1805
|
if (n === "" || n[0] === " ") return n;
|
|
1806
1806
|
const B = / [^ ]/g;
|
|
1807
|
-
let A, T = 0, O, E = 0,
|
|
1807
|
+
let A, T = 0, O, E = 0, H = 0, q = "";
|
|
1808
1808
|
for (; A = B.exec(n); )
|
|
1809
|
-
|
|
1810
|
-
` + n.slice(T, O), T = O + 1), E =
|
|
1809
|
+
H = A.index, H - T > m && (O = E > T ? E : H, q += `
|
|
1810
|
+
` + n.slice(T, O), T = O + 1), E = H;
|
|
1811
1811
|
return q += `
|
|
1812
1812
|
`, n.length - T > m && E > T ? q += n.slice(T, E) + `
|
|
1813
1813
|
` + n.slice(E + 1) : q += n.slice(T), q.slice(1);
|
|
@@ -1825,15 +1825,15 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1825
1825
|
let A = "";
|
|
1826
1826
|
const T = n.tag;
|
|
1827
1827
|
for (let O = 0, E = B.length; O < E; O += 1) {
|
|
1828
|
-
let
|
|
1829
|
-
n.replacer && (
|
|
1828
|
+
let H = B[O];
|
|
1829
|
+
n.replacer && (H = n.replacer.call(B, String(O), H)), (k(n, m, H, !1, !1) || typeof H > "u" && k(n, m, null, !1, !1)) && (A !== "" && (A += "," + (n.condenseFlow ? "" : " ")), A += n.dump);
|
|
1830
1830
|
}
|
|
1831
1831
|
n.tag = T, n.dump = "[" + A + "]";
|
|
1832
1832
|
}
|
|
1833
1833
|
function pt(n, m, B, A) {
|
|
1834
1834
|
let T = "";
|
|
1835
1835
|
const O = n.tag;
|
|
1836
|
-
for (let E = 0,
|
|
1836
|
+
for (let E = 0, H = B.length; E < H; E += 1) {
|
|
1837
1837
|
let q = B[E];
|
|
1838
1838
|
n.replacer && (q = n.replacer.call(B, String(E), q)), (k(n, m + 1, q, !0, !0, !1, !0) || typeof q > "u" && k(n, m + 1, null, !0, !0, !1, !0)) && ((!A || T !== "") && (T += ie(n, m)), n.dump && s === n.dump.charCodeAt(0) ? T += "-" : T += "- ", T += n.dump);
|
|
1839
1839
|
}
|
|
@@ -1842,7 +1842,7 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1842
1842
|
function bt(n, m, B) {
|
|
1843
1843
|
let A = "";
|
|
1844
1844
|
const T = n.tag, O = Object.keys(B);
|
|
1845
|
-
for (let E = 0,
|
|
1845
|
+
for (let E = 0, H = O.length; E < H; E += 1) {
|
|
1846
1846
|
let q = "";
|
|
1847
1847
|
A !== "" && (q += ", "), n.condenseFlow && (q += '"');
|
|
1848
1848
|
const J = O[E];
|
|
@@ -1857,14 +1857,14 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1857
1857
|
if (n.sortKeys === !0) E.sort();
|
|
1858
1858
|
else if (typeof n.sortKeys == "function") E.sort(n.sortKeys);
|
|
1859
1859
|
else if (n.sortKeys) throw new l("sortKeys must be a boolean or a function");
|
|
1860
|
-
for (let
|
|
1860
|
+
for (let H = 0, q = E.length; H < q; H += 1) {
|
|
1861
1861
|
let J = "";
|
|
1862
1862
|
(!A || T !== "") && (J += ie(n, m));
|
|
1863
|
-
const te = E[
|
|
1863
|
+
const te = E[H];
|
|
1864
1864
|
let ge = B[te];
|
|
1865
1865
|
if (n.replacer && (ge = n.replacer.call(B, te, ge)), !k(n, m + 1, te, !0, !0, !0)) continue;
|
|
1866
|
-
const
|
|
1867
|
-
|
|
1866
|
+
const $e = n.tag !== null && n.tag !== "?" || n.dump && n.dump.length > 1024;
|
|
1867
|
+
$e && (n.dump && s === n.dump.charCodeAt(0) ? J += "?" : J += "? "), J += n.dump, $e && (J += ie(n, m)), k(n, m + 1, ge, !0, $e) && (n.dump && s === n.dump.charCodeAt(0) ? J += ":" : J += ": ", J += n.dump, T += J);
|
|
1868
1868
|
}
|
|
1869
1869
|
n.tag = O, n.dump = T || "{}";
|
|
1870
1870
|
}
|
|
@@ -1874,11 +1874,11 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1874
1874
|
const E = A[T];
|
|
1875
1875
|
if ((E.instanceOf || E.predicate) && (!E.instanceOf || typeof m == "object" && m instanceof E.instanceOf) && (!E.predicate || E.predicate(m))) {
|
|
1876
1876
|
if (B ? E.multi && E.representName ? n.tag = E.representName(m) : n.tag = E.tag : n.tag = "?", E.represent) {
|
|
1877
|
-
const
|
|
1877
|
+
const H = n.styleMap[E.tag] || E.defaultStyle;
|
|
1878
1878
|
let q;
|
|
1879
|
-
if (d.call(E.represent) === "[object Function]") q = E.represent(m,
|
|
1880
|
-
else if (r.call(E.represent,
|
|
1881
|
-
else throw new l("!<" + E.tag + '> tag resolver accepts not "' +
|
|
1879
|
+
if (d.call(E.represent) === "[object Function]") q = E.represent(m, H);
|
|
1880
|
+
else if (r.call(E.represent, H)) q = E.represent[H](m, H);
|
|
1881
|
+
else throw new l("!<" + E.tag + '> tag resolver accepts not "' + H + '" style');
|
|
1882
1882
|
n.dump = q;
|
|
1883
1883
|
}
|
|
1884
1884
|
return !0;
|
|
@@ -1888,29 +1888,29 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1888
1888
|
}
|
|
1889
1889
|
function k(n, m, B, A, T, O, E) {
|
|
1890
1890
|
n.tag = null, n.dump = B, u(n, B, !1) || u(n, B, !0);
|
|
1891
|
-
const
|
|
1891
|
+
const H = d.call(n.dump), q = A;
|
|
1892
1892
|
A && (A = n.flowLevel < 0 || n.flowLevel > m);
|
|
1893
|
-
const J =
|
|
1893
|
+
const J = H === "[object Object]" || H === "[object Array]";
|
|
1894
1894
|
let te, ge;
|
|
1895
1895
|
if (J && (te = n.duplicates.indexOf(B), ge = te !== -1), (n.tag !== null && n.tag !== "?" || ge || n.indent !== 2 && m > 0) && (T = !1), ge && n.usedDuplicates[te]) n.dump = "*ref_" + te;
|
|
1896
1896
|
else {
|
|
1897
|
-
if (J && ge && !n.usedDuplicates[te] && (n.usedDuplicates[te] = !0),
|
|
1898
|
-
else if (
|
|
1899
|
-
else if (
|
|
1897
|
+
if (J && ge && !n.usedDuplicates[te] && (n.usedDuplicates[te] = !0), H === "[object Object]") A && Object.keys(n.dump).length !== 0 ? (e(n, m, n.dump, T), ge && (n.dump = "&ref_" + te + n.dump)) : (bt(n, m, n.dump), ge && (n.dump = "&ref_" + te + " " + n.dump));
|
|
1898
|
+
else if (H === "[object Array]") A && n.dump.length !== 0 ? (n.noArrayIndent && !E && m > 0 ? pt(n, m - 1, n.dump, T) : pt(n, m, n.dump, T), ge && (n.dump = "&ref_" + te + n.dump)) : (ft(n, m, n.dump), ge && (n.dump = "&ref_" + te + " " + n.dump));
|
|
1899
|
+
else if (H === "[object String]")
|
|
1900
1900
|
n.tag !== "?" && gt(n, n.dump, m, O, q);
|
|
1901
1901
|
else {
|
|
1902
|
-
if (
|
|
1902
|
+
if (H === "[object Undefined]") return !1;
|
|
1903
1903
|
if (n.skipInvalid) return !1;
|
|
1904
|
-
throw new l("unacceptable kind of an object to dump " +
|
|
1904
|
+
throw new l("unacceptable kind of an object to dump " + H);
|
|
1905
1905
|
}
|
|
1906
1906
|
if (n.tag !== null && n.tag !== "?") {
|
|
1907
|
-
let
|
|
1908
|
-
n.tag[0] === "!" ?
|
|
1907
|
+
let $e = encodeURI(n.tag[0] === "!" ? n.tag.slice(1) : n.tag).replace(/!/g, "%21");
|
|
1908
|
+
n.tag[0] === "!" ? $e = "!" + $e : $e.slice(0, 18) === "tag:yaml.org,2002:" ? $e = "!!" + $e.slice(18) : $e = "!<" + $e + ">", n.dump = $e + " " + n.dump;
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
1911
|
return !0;
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1913
|
+
function $(n, m) {
|
|
1914
1914
|
const B = [], A = [];
|
|
1915
1915
|
h(n, B, A);
|
|
1916
1916
|
const T = A.length;
|
|
@@ -1932,7 +1932,7 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1932
1932
|
function R(n, m) {
|
|
1933
1933
|
m = m || {};
|
|
1934
1934
|
const B = new Ie(m);
|
|
1935
|
-
B.noRefs ||
|
|
1935
|
+
B.noRefs || $(n, B);
|
|
1936
1936
|
let A = n;
|
|
1937
1937
|
return B.replacer && (A = B.replacer.call({ "": A }, "", A)), k(B, 0, A, !0, !0) ? B.dump + `
|
|
1938
1938
|
` : "";
|
|
@@ -1960,7 +1960,7 @@ var Ti = Object.create, zt = Object.defineProperty, _i = Object.getOwnPropertyDe
|
|
|
1960
1960
|
seq: Gt(),
|
|
1961
1961
|
str: Yt()
|
|
1962
1962
|
}, o.exports.safeLoad = y("safeLoad", "load"), o.exports.safeLoadAll = y("safeLoadAll", "loadAll"), o.exports.safeDump = y("safeDump", "dump");
|
|
1963
|
-
}))()), { Type: Lr, Schema: Mr, FAILSAFE_SCHEMA: Fr, JSON_SCHEMA: Pr, CORE_SCHEMA: Nr, DEFAULT_SCHEMA: Dr, load: qr, loadAll: jr, dump: Ur, YAMLException:
|
|
1963
|
+
}))()), { Type: Lr, Schema: Mr, FAILSAFE_SCHEMA: Fr, JSON_SCHEMA: Pr, CORE_SCHEMA: Nr, DEFAULT_SCHEMA: Dr, load: qr, loadAll: jr, dump: Ur, YAMLException: zr, types: Hr, safeLoad: Vr, safeLoadAll: Yr, safeDump: Gr } = un.default, dn = un.default;
|
|
1964
1964
|
const Ri = /* @__PURE__ */ Ce({
|
|
1965
1965
|
__name: "DeckCallout",
|
|
1966
1966
|
emits: ["click-cta", "dismiss"],
|
|
@@ -1980,7 +1980,7 @@ const Ri = /* @__PURE__ */ Ce({
|
|
|
1980
1980
|
class: "cta",
|
|
1981
1981
|
type: "button",
|
|
1982
1982
|
onClick: y[0] || (y[0] = (r) => l.$emit("click-cta"))
|
|
1983
|
-
},
|
|
1983
|
+
}, z(C(o)("deckCallout.cta")), 1)
|
|
1984
1984
|
]),
|
|
1985
1985
|
_: 1
|
|
1986
1986
|
})
|
|
@@ -2054,7 +2054,7 @@ const Ri = /* @__PURE__ */ Ce({
|
|
|
2054
2054
|
], 64);
|
|
2055
2055
|
};
|
|
2056
2056
|
}
|
|
2057
|
-
}), Mi = { class: "terraform-config config-card-code-block" },
|
|
2057
|
+
}), Mi = { class: "terraform-config config-card-code-block" }, we = " ", Bt = "TF_MULTILINE_EOT", Ct = "cloud_gateway_addon", pn = /* @__PURE__ */ Ce({
|
|
2058
2058
|
__name: "TerraformCodeBlock",
|
|
2059
2059
|
props: {
|
|
2060
2060
|
/** A record to indicate the entity's configuration, the visible code content (may be redacted) */
|
|
@@ -2084,95 +2084,95 @@ const Ri = /* @__PURE__ */ Ce({
|
|
|
2084
2084
|
},
|
|
2085
2085
|
setup(t) {
|
|
2086
2086
|
const o = t, i = D(() => {
|
|
2087
|
-
const
|
|
2088
|
-
if (!
|
|
2087
|
+
const _ = o.entityRecord;
|
|
2088
|
+
if (!_ || typeof _ != "object")
|
|
2089
2089
|
return !1;
|
|
2090
|
-
const
|
|
2091
|
-
return
|
|
2092
|
-
}), l = D(() => typeof o.entityType == "string" && o.entityType.length > 0 ? o.entityType : i.value ? Ct : Ue.Partial), y = D(() => Sn.includes(l.value)), d = D(() => Tn.includes(l.value)), r = (
|
|
2093
|
-
if (
|
|
2090
|
+
const w = _.config;
|
|
2091
|
+
return !w || typeof w != "object" ? !1 : typeof w.managed_cache < "u" || typeof w.capacity_config < "u";
|
|
2092
|
+
}), l = D(() => typeof o.entityType == "string" && o.entityType.length > 0 ? o.entityType : i.value ? Ct : Ue.Partial), y = D(() => Sn.includes(l.value)), d = D(() => Tn.includes(l.value)), r = (_, w) => {
|
|
2093
|
+
if (_.includes(`
|
|
2094
2094
|
`)) {
|
|
2095
|
-
const x =
|
|
2095
|
+
const x = w + we, K = _.split(`
|
|
2096
2096
|
`).map((G) => `${x}${G}`).join(`
|
|
2097
2097
|
`);
|
|
2098
2098
|
return `<<-${Bt}
|
|
2099
2099
|
${K}
|
|
2100
2100
|
${x}${Bt}`;
|
|
2101
2101
|
}
|
|
2102
|
-
return `"${
|
|
2103
|
-
}, c = (
|
|
2104
|
-
const P =
|
|
2102
|
+
return `"${_.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
2103
|
+
}, c = (_, w) => {
|
|
2104
|
+
const P = we;
|
|
2105
2105
|
let x = "";
|
|
2106
|
-
return typeof
|
|
2107
|
-
` : x += `${P}${
|
|
2106
|
+
return typeof _ == "string" ? x += `${P}${w} = ${r(_, P)}
|
|
2107
|
+
` : x += `${P}${w} = ${String(_ ?? "")}
|
|
2108
2108
|
`, x;
|
|
2109
|
-
}, p = (w,
|
|
2110
|
-
if (typeof
|
|
2109
|
+
}, p = (_, w, P = "") => {
|
|
2110
|
+
if (typeof _ != "object")
|
|
2111
2111
|
return "Invalid object";
|
|
2112
|
-
const x =
|
|
2112
|
+
const x = we + P;
|
|
2113
2113
|
let K = "";
|
|
2114
|
-
if (
|
|
2115
|
-
`),
|
|
2116
|
-
return
|
|
2117
|
-
const G = Object.fromEntries(Object.entries(
|
|
2114
|
+
if (w && (K += `${x}${w} = {
|
|
2115
|
+
`), _ === null)
|
|
2116
|
+
return w ? K += `${x}}` : K = "{}", K;
|
|
2117
|
+
const G = Object.fromEntries(Object.entries(_).filter(([, ce]) => ce !== null));
|
|
2118
2118
|
let W = "";
|
|
2119
2119
|
for (const [ce, S] of Object.entries(G))
|
|
2120
2120
|
Array.isArray(S) ? S.length === 0 ? W = "[]" : (W = `[
|
|
2121
|
-
`, W += s(S, void 0, x), W += `${x}${
|
|
2122
|
-
`, W += p(S, void 0, x), W += `${x}${
|
|
2121
|
+
`, W += s(S, void 0, x), W += `${x}${we}]`) : S && typeof S == "object" ? (W = `{
|
|
2122
|
+
`, W += p(S, void 0, x), W += `${x}${we}}`) : typeof S == "string" ? W = r(S, x + we) : W = String(S ?? ""), K += `${x}${we}${ce} = ${W}
|
|
2123
2123
|
`;
|
|
2124
|
-
return
|
|
2124
|
+
return w ? K += `${x}}
|
|
2125
2125
|
` : K;
|
|
2126
|
-
}, s = (w,
|
|
2127
|
-
if (!Array.isArray(
|
|
2126
|
+
}, s = (_, w, P = "") => {
|
|
2127
|
+
if (!Array.isArray(_))
|
|
2128
2128
|
return "Invalid array";
|
|
2129
|
-
const x =
|
|
2129
|
+
const x = we + P;
|
|
2130
2130
|
let K = "";
|
|
2131
|
-
|
|
2131
|
+
w && (_.length === 0 ? K += `${x}${w} = [` : K += `${x}${w} = [
|
|
2132
2132
|
`);
|
|
2133
|
-
for (let G = 0; G <
|
|
2134
|
-
const W =
|
|
2135
|
-
typeof W == "object" ? (K += `${x}${
|
|
2136
|
-
`, K += p(W, void 0, x), K += `${x}${
|
|
2133
|
+
for (let G = 0; G < _.length; G++) {
|
|
2134
|
+
const W = _[G];
|
|
2135
|
+
typeof W == "object" ? (K += `${x}${we}{
|
|
2136
|
+
`, K += p(W, void 0, x), K += `${x}${we}}`) : typeof W == "string" ? K += `${x}${we}${r(W, x + we)}` : K += `${x}${we}${String(W ?? "")}`, G < _.length - 1 && (K += ","), K += `
|
|
2137
2137
|
`;
|
|
2138
2138
|
}
|
|
2139
|
-
return
|
|
2139
|
+
return w && (_.length === 0 ? K += `]
|
|
2140
2140
|
` : K += `${x}]
|
|
2141
2141
|
`), K;
|
|
2142
|
-
}, g = (
|
|
2143
|
-
let
|
|
2144
|
-
for (const [P, x] of Object.entries(
|
|
2145
|
-
Array.isArray(x) ?
|
|
2146
|
-
return g(
|
|
2147
|
-
}, f = (
|
|
2142
|
+
}, g = (_) => _.replace(/\$\{/g, () => "$${"), a = (_) => {
|
|
2143
|
+
let w = "";
|
|
2144
|
+
for (const [P, x] of Object.entries(_))
|
|
2145
|
+
Array.isArray(x) ? w += s(x, P) : typeof x == "object" ? w += p(x, P) : w += c(x, P);
|
|
2146
|
+
return g(w);
|
|
2147
|
+
}, f = (_) => {
|
|
2148
2148
|
var G, W, ce, S, V, I;
|
|
2149
|
-
const
|
|
2150
|
-
if (P && (
|
|
2149
|
+
const w = Object.fromEntries(Object.entries(_).filter(([, F]) => F != null)), P = _.config ? Object.fromEntries(Object.entries(_ == null ? void 0 : _.config).filter(([, F]) => F != null)) : void 0;
|
|
2150
|
+
if (P && (w.config = P), Object.keys(w).length === 0)
|
|
2151
2151
|
return "";
|
|
2152
|
-
delete
|
|
2152
|
+
delete w.id;
|
|
2153
2153
|
let x = "", K = "";
|
|
2154
|
-
if ((G =
|
|
2154
|
+
if ((G = w.service) != null && G.id ? (K = "service", delete w.service) : (W = w.route) != null && W.id ? (K = "route", delete w.route) : (ce = w.consumer) != null && ce.id ? (K = "consumer", delete w.consumer) : (S = w.consumer_group) != null && S.id ? (K = "consumer_group", delete w.consumer_group) : (V = w.certificate) != null && V.id ? (K = "certificate", delete w.certificate) : (I = w.set) != null && I.id && (K = "set", delete w.set), y.value) {
|
|
2155
2155
|
const F = o.subEntityType ? `${l.value}_${o.subEntityType}` : l.value;
|
|
2156
2156
|
x += `resource "konnect_event_gateway_${F}" "my_eventgateway${F.replaceAll("_", "")}" {
|
|
2157
|
-
`, x += `${
|
|
2157
|
+
`, x += `${we}provider = konnect-beta
|
|
2158
2158
|
`;
|
|
2159
2159
|
} else if (l.value === Ue.Plugin) {
|
|
2160
|
-
const F = o.credentialType.replace(/-/g, "_") || (
|
|
2161
|
-
delete
|
|
2160
|
+
const F = o.credentialType.replace(/-/g, "_") || (w.name + "").replace(/-/g, "_");
|
|
2161
|
+
delete w.name, x += `resource "konnect_gateway_plugin_${F}" "my_${F}" {
|
|
2162
2162
|
`;
|
|
2163
2163
|
} else d.value ? (x += `resource "konnect_${l.value}" "my_${l.value}" {
|
|
2164
|
-
`, x += `${
|
|
2164
|
+
`, x += `${we}provider = konnect-beta
|
|
2165
2165
|
`) : i.value || l.value === Ct ? x += `resource "konnect_cloud_gateway_addon" "managed_cache" {
|
|
2166
2166
|
` : x += `resource "konnect_gateway_${l.value}" "my_${l.value}" {
|
|
2167
2167
|
`;
|
|
2168
|
-
return x += a(
|
|
2169
|
-
` : K && (x += `${
|
|
2170
|
-
`, x += `${
|
|
2171
|
-
`, x += `${
|
|
2168
|
+
return x += a(w), !y.value && !d.value && l.value !== Ct ? x += `${we}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
|
|
2169
|
+
` : K && (x += `${we}${K} = {
|
|
2170
|
+
`, x += `${we}${we}id = konnect_gateway_${K}.my_${K}.id
|
|
2171
|
+
`, x += `${we}}
|
|
2172
2172
|
`), x += `}
|
|
2173
2173
|
`, x;
|
|
2174
2174
|
}, b = D(() => f(o.entityRecord)), M = D(() => f(o.unredactedRecord || o.entityRecord));
|
|
2175
|
-
return (
|
|
2175
|
+
return (_, w) => {
|
|
2176
2176
|
const P = ne("KCodeBlock");
|
|
2177
2177
|
return v(), U("div", Mi, [
|
|
2178
2178
|
o.entityRecord ? (v(), Y(P, {
|
|
@@ -2219,7 +2219,7 @@ ${x}${Bt}`;
|
|
|
2219
2219
|
}
|
|
2220
2220
|
};
|
|
2221
2221
|
return (f, b) => {
|
|
2222
|
-
const M = ne("KInput"),
|
|
2222
|
+
const M = ne("KInput"), _ = ne("KSelect"), w = ne("KAlert"), P = ne("KButton"), x = ne("KModal");
|
|
2223
2223
|
return v(), Y(x, {
|
|
2224
2224
|
class: "generate-pat-modal",
|
|
2225
2225
|
"max-width": "640px",
|
|
@@ -2234,7 +2234,7 @@ ${x}${Bt}`;
|
|
|
2234
2234
|
onClick: g
|
|
2235
2235
|
}, {
|
|
2236
2236
|
default: L(() => [
|
|
2237
|
-
ae(
|
|
2237
|
+
ae(z(C(y)("generatePatModal.actions.cancel")), 1)
|
|
2238
2238
|
]),
|
|
2239
2239
|
_: 1
|
|
2240
2240
|
}),
|
|
@@ -2244,13 +2244,13 @@ ${x}${Bt}`;
|
|
|
2244
2244
|
onClick: a
|
|
2245
2245
|
}, {
|
|
2246
2246
|
default: L(() => [
|
|
2247
|
-
ae(
|
|
2247
|
+
ae(z(c.value ? C(y)("generatePatModal.actions.generating") : C(y)("generatePatModal.actions.generate")), 1)
|
|
2248
2248
|
]),
|
|
2249
2249
|
_: 1
|
|
2250
2250
|
}, 8, ["disabled"])
|
|
2251
2251
|
]),
|
|
2252
2252
|
default: L(() => [
|
|
2253
|
-
X("div", null,
|
|
2253
|
+
X("div", null, z(C(y)("generatePatModal.description")), 1),
|
|
2254
2254
|
Q(M, {
|
|
2255
2255
|
modelValue: d.value,
|
|
2256
2256
|
"onUpdate:modelValue": b[0] || (b[0] = (K) => d.value = K),
|
|
@@ -2258,7 +2258,7 @@ ${x}${Bt}`;
|
|
|
2258
2258
|
placeholder: C(y)("generatePatModal.fields.name.placeholder"),
|
|
2259
2259
|
required: ""
|
|
2260
2260
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
2261
|
-
Q(
|
|
2261
|
+
Q(_, {
|
|
2262
2262
|
modelValue: r.value,
|
|
2263
2263
|
"onUpdate:modelValue": b[1] || (b[1] = (K) => r.value = K),
|
|
2264
2264
|
items: s,
|
|
@@ -2266,7 +2266,7 @@ ${x}${Bt}`;
|
|
|
2266
2266
|
placeholder: C(y)("generatePatModal.fields.expiresAt.placeholder"),
|
|
2267
2267
|
required: ""
|
|
2268
2268
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
2269
|
-
p.value ? (v(), Y(
|
|
2269
|
+
p.value ? (v(), Y(w, {
|
|
2270
2270
|
key: 0,
|
|
2271
2271
|
appearance: "danger",
|
|
2272
2272
|
message: p.value
|
|
@@ -2294,8 +2294,8 @@ ${x}${Bt}`;
|
|
|
2294
2294
|
generateKonnectPat: { type: Function }
|
|
2295
2295
|
},
|
|
2296
2296
|
setup(t) {
|
|
2297
|
-
const o = Lt(
|
|
2298
|
-
i.isCustomizing && !o && console.warn(
|
|
2297
|
+
const o = Lt($n, null), i = t;
|
|
2298
|
+
i.isCustomizing && !o && console.warn(_n);
|
|
2299
2299
|
const { i18n: l, i18nT: y } = he.useI18n(), { t: d } = l, r = le(""), c = le(""), p = le(""), s = le(!1), g = [
|
|
2300
2300
|
{ value: "bash", label: "Linux / macOS Bash" },
|
|
2301
2301
|
{ value: "powershell", label: "Windows PowerShell" }
|
|
@@ -2315,7 +2315,7 @@ ${x}${Bt}`;
|
|
|
2315
2315
|
[G]: [K]
|
|
2316
2316
|
};
|
|
2317
2317
|
return dn.dump(W, { quotingType: '"' }).trim();
|
|
2318
|
-
}, M = D(() => b(i.entityRecord)),
|
|
2318
|
+
}, M = D(() => b(i.entityRecord)), _ = D(() => b(i.unredactedRecord || i.entityRecord)), w = D(() => a.value === "bash" ? `export DECK_KONNECT_TOKEN='${r.value || "YOUR_KONNECT_PAT"}'` : `$env:DECK_KONNECT_TOKEN = "${r.value || "YOUR_KONNECT_PAT"}"`);
|
|
2319
2319
|
function P(x) {
|
|
2320
2320
|
r.value = x, s.value = !1;
|
|
2321
2321
|
}
|
|
@@ -2324,11 +2324,11 @@ ${x}${Bt}`;
|
|
|
2324
2324
|
i.geoApiServerUrl ? x += ` --konnect-addr ${i.geoApiServerUrl}` : i.kongAdminApiUrl && (x += ` --kong-addr ${i.kongAdminApiUrl}`), a.value === "bash" ? (c.value = `echo '
|
|
2325
2325
|
${M.value}
|
|
2326
2326
|
' | ${x}`, p.value = `echo '
|
|
2327
|
-
${
|
|
2327
|
+
${_.value}
|
|
2328
2328
|
' | ${x}`) : (c.value = `@'
|
|
2329
2329
|
${M.value}
|
|
2330
2330
|
'@ | ${x}`, p.value = `@'
|
|
2331
|
-
${
|
|
2331
|
+
${_.value}
|
|
2332
2332
|
'@ | ${x}`);
|
|
2333
2333
|
}), (x, K) => {
|
|
2334
2334
|
const G = ne("KSelect"), W = ne("KBadge"), ce = ne("KCodeBlock"), S = ne("KAlert"), V = ne("KButton");
|
|
@@ -2340,28 +2340,28 @@ ${w.value}
|
|
|
2340
2340
|
items: g
|
|
2341
2341
|
}, {
|
|
2342
2342
|
"item-template": L(({ item: I }) => [
|
|
2343
|
-
I.value === "powershell" ? (v(), Y(C(
|
|
2344
|
-
ae(" " +
|
|
2343
|
+
I.value === "powershell" ? (v(), Y(C(wt), { key: 0 })) : (v(), Y(C(xt), { key: 1 })),
|
|
2344
|
+
ae(" " + z(I.label), 1)
|
|
2345
2345
|
]),
|
|
2346
2346
|
"selected-item-template": L(({ item: I }) => [
|
|
2347
|
-
I.value === "powershell" ? (v(), Y(C(
|
|
2348
|
-
ae(" " +
|
|
2347
|
+
I.value === "powershell" ? (v(), Y(C(wt), { key: 0 })) : (v(), Y(C(xt), { key: 1 })),
|
|
2348
|
+
ae(" " + z(I.label), 1)
|
|
2349
2349
|
]),
|
|
2350
2350
|
_: 1
|
|
2351
2351
|
}, 8, ["modelValue"]),
|
|
2352
|
-
X("div", Ni,
|
|
2352
|
+
X("div", Ni, z(C(d)("deckCodeBlock.steps.step_1")), 1),
|
|
2353
2353
|
t.isCustomizing ? ee("", !0) : (v(), Y(C(y), {
|
|
2354
2354
|
key: 0,
|
|
2355
2355
|
"data-testid": `deck-hint-${t.app}`,
|
|
2356
2356
|
keypath: `deckCodeBlock.hint.${t.app}`,
|
|
2357
2357
|
tag: "p"
|
|
2358
|
-
},
|
|
2358
|
+
}, ze({
|
|
2359
2359
|
link: L(() => [
|
|
2360
2360
|
Q(C(On), {
|
|
2361
2361
|
href: t.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
|
|
2362
2362
|
}, {
|
|
2363
2363
|
default: L(() => [
|
|
2364
|
-
ae(
|
|
2364
|
+
ae(z(C(l).t("deckCodeBlock.documentation")), 1)
|
|
2365
2365
|
]),
|
|
2366
2366
|
_: 1
|
|
2367
2367
|
}, 8, ["href"])
|
|
@@ -2385,7 +2385,7 @@ ${w.value}
|
|
|
2385
2385
|
key: 1,
|
|
2386
2386
|
id: "deck-env-codeblock",
|
|
2387
2387
|
class: Ke({ customization: i.isCustomizing }),
|
|
2388
|
-
code:
|
|
2388
|
+
code: w.value,
|
|
2389
2389
|
language: a.value,
|
|
2390
2390
|
"single-line": "",
|
|
2391
2391
|
theme: t.isCustomizing ? "light" : "dark",
|
|
@@ -2396,7 +2396,7 @@ ${w.value}
|
|
|
2396
2396
|
class: "copy-konnect-pat-alert"
|
|
2397
2397
|
}, {
|
|
2398
2398
|
default: L(() => [
|
|
2399
|
-
ae(
|
|
2399
|
+
ae(z(C(d)("deckCodeBlock.customization.copy_pat")), 1)
|
|
2400
2400
|
]),
|
|
2401
2401
|
_: 1
|
|
2402
2402
|
})) : i.isCustomizing && i.generateKonnectPat ? (v(), U("div", Di, [
|
|
@@ -2406,13 +2406,13 @@ ${w.value}
|
|
|
2406
2406
|
onClick: K[1] || (K[1] = (I) => s.value = !0)
|
|
2407
2407
|
}, {
|
|
2408
2408
|
default: L(() => [
|
|
2409
|
-
ae(
|
|
2409
|
+
ae(z(C(d)("deckCodeBlock.customization.generate_pat")), 1)
|
|
2410
2410
|
]),
|
|
2411
2411
|
_: 1
|
|
2412
2412
|
}),
|
|
2413
|
-
X("div", null,
|
|
2413
|
+
X("div", null, z(C(d)("deckCodeBlock.customization.reuse_pat")), 1)
|
|
2414
2414
|
])) : ee("", !0),
|
|
2415
|
-
X("div", qi,
|
|
2415
|
+
X("div", qi, z(C(d)("deckCodeBlock.steps.step_2")), 1),
|
|
2416
2416
|
i.entityRecord && !i.isCustomizing ? (v(), Y(ce, {
|
|
2417
2417
|
key: 4,
|
|
2418
2418
|
id: "deck-codeblock",
|
|
@@ -2424,7 +2424,7 @@ ${w.value}
|
|
|
2424
2424
|
theme: t.isCustomizing ? "light" : "dark",
|
|
2425
2425
|
onCodeBlockRender: C(Ge)
|
|
2426
2426
|
}, null, 8, ["class", "code", "copy-code", "language", "theme", "onCodeBlockRender"])) : i.entityRecord && i.isCustomizing && C(o) ? (v(), U(Be, { key: 5 }, [
|
|
2427
|
-
X("div", ji,
|
|
2427
|
+
X("div", ji, z(C(d)("deckCodeBlock.customization.secret_advise")), 1),
|
|
2428
2428
|
(v(), Y(We(C(o)), {
|
|
2429
2429
|
modelValue: p.value,
|
|
2430
2430
|
"onUpdate:modelValue": K[2] || (K[2] = (I) => p.value = I),
|
|
@@ -2435,7 +2435,7 @@ ${w.value}
|
|
|
2435
2435
|
Q(C(Pt))
|
|
2436
2436
|
]),
|
|
2437
2437
|
default: L(() => [
|
|
2438
|
-
ae(" " +
|
|
2438
|
+
ae(" " + z(C(d)("deckCodeBlock.customization.footer_reminder")), 1)
|
|
2439
2439
|
]),
|
|
2440
2440
|
_: 1
|
|
2441
2441
|
})
|
|
@@ -2515,10 +2515,10 @@ ${w.value}
|
|
|
2515
2515
|
], 64);
|
|
2516
2516
|
};
|
|
2517
2517
|
}
|
|
2518
|
-
}),
|
|
2518
|
+
}), zi = {
|
|
2519
2519
|
key: 0,
|
|
2520
2520
|
class: "config-card-display-form"
|
|
2521
|
-
},
|
|
2521
|
+
}, Hi = ["data-testid"], Vi = {
|
|
2522
2522
|
key: 0,
|
|
2523
2523
|
class: "config-card-prop-section-title"
|
|
2524
2524
|
}, Yi = /* @__PURE__ */ Ce({
|
|
@@ -2549,7 +2549,7 @@ ${w.value}
|
|
|
2549
2549
|
type: String,
|
|
2550
2550
|
required: !1,
|
|
2551
2551
|
default: "structured",
|
|
2552
|
-
validator: (t) =>
|
|
2552
|
+
validator: (t) => wn.includes(t)
|
|
2553
2553
|
},
|
|
2554
2554
|
propListTypes: {
|
|
2555
2555
|
type: Array,
|
|
@@ -2624,41 +2624,41 @@ ${w.value}
|
|
|
2624
2624
|
() => o.entityType
|
|
2625
2625
|
);
|
|
2626
2626
|
return (f, b) => (v(), U(Be, null, [
|
|
2627
|
-
t.format === "structured" ? (v(), U("div",
|
|
2627
|
+
t.format === "structured" ? (v(), U("div", zi, [
|
|
2628
2628
|
(v(!0), U(Be, null, Fe(t.propListTypes, (M) => (v(), U("div", {
|
|
2629
2629
|
key: `config-card-details-${M}-props`,
|
|
2630
2630
|
class: Ke(`config-card-details-${M}-props`),
|
|
2631
2631
|
"data-testid": `config-card-details-${M}-props`
|
|
2632
2632
|
}, [
|
|
2633
|
-
M !== "basic" ? (v(), U("div", Vi,
|
|
2634
|
-
(v(!0), U(Be, null, Fe(t.propertyCollections[M], (
|
|
2633
|
+
M !== "basic" ? (v(), U("div", Vi, z(M === "advanced" ? C(l)("baseConfigCard.sections.advanced") : M === "plugin" ? C(l)("baseConfigCard.sections.plugin") : C(l)("baseConfigCard.sections.policy")), 1)) : ee("", !0),
|
|
2634
|
+
(v(!0), U(Be, null, Fe(t.propertyCollections[M], (_) => pe(f.$slots, `config-card-item-${_.key}`, { row: _ }, () => [
|
|
2635
2635
|
(v(), Y(Ut, {
|
|
2636
|
-
key:
|
|
2637
|
-
item:
|
|
2638
|
-
},
|
|
2636
|
+
key: _.key,
|
|
2637
|
+
item: _
|
|
2638
|
+
}, ze({
|
|
2639
2639
|
label: L(() => [
|
|
2640
|
-
pe(f.$slots, `${
|
|
2640
|
+
pe(f.$slots, `${_.key}-label`, { row: _ }, void 0, !0)
|
|
2641
2641
|
]),
|
|
2642
|
-
[
|
|
2643
|
-
pe(f.$slots,
|
|
2644
|
-
row:
|
|
2645
|
-
rowValue:
|
|
2642
|
+
[_.key]: L(({ rowValue: w }) => [
|
|
2643
|
+
pe(f.$slots, _.key, {
|
|
2644
|
+
row: _,
|
|
2645
|
+
rowValue: w
|
|
2646
2646
|
}, void 0, !0)
|
|
2647
2647
|
]),
|
|
2648
2648
|
_: 2
|
|
2649
2649
|
}, [
|
|
2650
|
-
y(
|
|
2650
|
+
y(_) ? {
|
|
2651
2651
|
name: "label-tooltip",
|
|
2652
2652
|
fn: L(() => [
|
|
2653
|
-
pe(f.$slots, `${
|
|
2653
|
+
pe(f.$slots, `${_.key}-label-tooltip`, { row: _ }, void 0, !0)
|
|
2654
2654
|
]),
|
|
2655
2655
|
key: "0"
|
|
2656
2656
|
} : void 0
|
|
2657
2657
|
]), 1032, ["item"]))
|
|
2658
2658
|
], !0)), 256))
|
|
2659
|
-
], 10,
|
|
2659
|
+
], 10, Hi))), 128))
|
|
2660
2660
|
])) : ee("", !0),
|
|
2661
|
-
t.format === "json" && r.value ? (v(), Y(
|
|
2661
|
+
t.format === "json" && r.value ? (v(), Y(zt, {
|
|
2662
2662
|
key: 1,
|
|
2663
2663
|
config: o.config,
|
|
2664
2664
|
"entity-record": r.value,
|
|
@@ -2859,7 +2859,7 @@ ${w.value}
|
|
|
2859
2859
|
} = he.useBaseEntityDeckOptions(
|
|
2860
2860
|
() => l.config,
|
|
2861
2861
|
() => l.entityType
|
|
2862
|
-
),
|
|
2862
|
+
), _ = D(() => {
|
|
2863
2863
|
const N = [
|
|
2864
2864
|
{
|
|
2865
2865
|
label: d("baseConfigCard.general.structuredFormat"),
|
|
@@ -2884,18 +2884,18 @@ ${w.value}
|
|
|
2884
2884
|
});
|
|
2885
2885
|
const Z = new Set(l.formatsToHide);
|
|
2886
2886
|
return N.filter((oe) => oe.value === "structured" || !Z.has(oe.value));
|
|
2887
|
-
}),
|
|
2888
|
-
|
|
2887
|
+
}), w = le("structured"), P = (N) => {
|
|
2888
|
+
w.value = N == null ? void 0 : N.value, i("configFormatChange", w.value);
|
|
2889
2889
|
}, x = (N, Z) => {
|
|
2890
2890
|
localStorage.setItem(N, Z);
|
|
2891
2891
|
};
|
|
2892
|
-
Pe(
|
|
2892
|
+
Pe(w, (N) => {
|
|
2893
2893
|
l.config.formatPreferenceKey && x(l.config.formatPreferenceKey, N);
|
|
2894
2894
|
}), mt(() => {
|
|
2895
2895
|
var N;
|
|
2896
2896
|
if (l.config.formatPreferenceKey) {
|
|
2897
|
-
const Z = localStorage.getItem(l.config.formatPreferenceKey), oe =
|
|
2898
|
-
Z && oe.some((Te) => Te.value === Z) ?
|
|
2897
|
+
const Z = localStorage.getItem(l.config.formatPreferenceKey), oe = _.value;
|
|
2898
|
+
Z && oe.some((Te) => Te.value === Z) ? w.value = Z : w.value = ((N = oe[0]) == null ? void 0 : N.value) ?? "structured", x(l.config.formatPreferenceKey, w.value);
|
|
2899
2899
|
}
|
|
2900
2900
|
});
|
|
2901
2901
|
const K = {
|
|
@@ -3067,11 +3067,11 @@ ${w.value}
|
|
|
3067
3067
|
return v(), Y(fe, {
|
|
3068
3068
|
class: "kong-ui-entity-base-config-card",
|
|
3069
3069
|
"title-tag": t.titleTag
|
|
3070
|
-
},
|
|
3070
|
+
}, ze({
|
|
3071
3071
|
actions: L(() => [
|
|
3072
3072
|
X("div", Ji, [
|
|
3073
3073
|
pe(N.$slots, "actions", {}, void 0, !0),
|
|
3074
|
-
|
|
3074
|
+
w.value !== "structured" ? (v(), Y(oe, {
|
|
3075
3075
|
key: 0,
|
|
3076
3076
|
modelValue: F.value,
|
|
3077
3077
|
"onUpdate:modelValue": Z[0] || (Z[0] = (ye) => F.value = ye),
|
|
@@ -3085,19 +3085,19 @@ ${w.value}
|
|
|
3085
3085
|
"data-testid": "config-format-select-label"
|
|
3086
3086
|
}, {
|
|
3087
3087
|
default: L(() => [
|
|
3088
|
-
ae(
|
|
3088
|
+
ae(z(t.label), 1)
|
|
3089
3089
|
]),
|
|
3090
3090
|
_: 1
|
|
3091
3091
|
}),
|
|
3092
3092
|
Q(Ie, {
|
|
3093
|
-
modelValue:
|
|
3094
|
-
"onUpdate:modelValue": Z[1] || (Z[1] = (ye) =>
|
|
3093
|
+
modelValue: w.value,
|
|
3094
|
+
"onUpdate:modelValue": Z[1] || (Z[1] = (ye) => w.value = ye),
|
|
3095
3095
|
"data-testid": "select-config-format",
|
|
3096
|
-
items:
|
|
3096
|
+
items: _.value,
|
|
3097
3097
|
onChange: P
|
|
3098
3098
|
}, null, 8, ["modelValue", "items"])
|
|
3099
3099
|
]),
|
|
3100
|
-
|
|
3100
|
+
w.value === "deck" && C(M) ? (v(), Y(de, {
|
|
3101
3101
|
key: 1,
|
|
3102
3102
|
appearance: "secondary",
|
|
3103
3103
|
class: "button-customize-deck",
|
|
@@ -3105,7 +3105,7 @@ ${w.value}
|
|
|
3105
3105
|
onClick: Z[2] || (Z[2] = (ye) => g.value = !0)
|
|
3106
3106
|
}, {
|
|
3107
3107
|
default: L(() => [
|
|
3108
|
-
ae(
|
|
3108
|
+
ae(z(C(d)("baseConfigCard.actions.deck_customize")), 1)
|
|
3109
3109
|
]),
|
|
3110
3110
|
_: 1
|
|
3111
3111
|
})) : ee("", !0),
|
|
@@ -3121,7 +3121,9 @@ ${w.value}
|
|
|
3121
3121
|
rel: "noopener",
|
|
3122
3122
|
target: "_blank"
|
|
3123
3123
|
}, [
|
|
3124
|
-
Q(C(Nt), {
|
|
3124
|
+
Q(C(Nt), {
|
|
3125
|
+
size: `var(--kui-icon-size-40, ${C(Ze)})`
|
|
3126
|
+
}, null, 8, ["size"])
|
|
3125
3127
|
], 8, Xi)
|
|
3126
3128
|
]),
|
|
3127
3129
|
_: 1
|
|
@@ -3140,7 +3142,7 @@ ${w.value}
|
|
|
3140
3142
|
"icon-variant": "error"
|
|
3141
3143
|
}, {
|
|
3142
3144
|
default: L(() => [
|
|
3143
|
-
X("h3", null,
|
|
3145
|
+
X("h3", null, z(ce.value), 1)
|
|
3144
3146
|
]),
|
|
3145
3147
|
_: 1
|
|
3146
3148
|
})) : (v(), U(Be, { key: 2 }, [
|
|
@@ -3152,7 +3154,7 @@ ${w.value}
|
|
|
3152
3154
|
config: t.config,
|
|
3153
3155
|
"entity-type": t.entityType,
|
|
3154
3156
|
"fetcher-url": xe.value,
|
|
3155
|
-
format:
|
|
3157
|
+
format: w.value,
|
|
3156
3158
|
"is-deck-customization-visible": g.value,
|
|
3157
3159
|
"preserve-code-block-timestamps": t.preserveCodeBlockTimestamps,
|
|
3158
3160
|
"prop-list-types": be.value,
|
|
@@ -3160,8 +3162,8 @@ ${w.value}
|
|
|
3160
3162
|
record: S.value,
|
|
3161
3163
|
"sub-entity-type": t.subEntityType,
|
|
3162
3164
|
"onDeckCustomization:close": Z[3] || (Z[3] = (ye) => g.value = !1),
|
|
3163
|
-
onRequestDeckFormat: Z[4] || (Z[4] = (ye) =>
|
|
3164
|
-
},
|
|
3165
|
+
onRequestDeckFormat: Z[4] || (Z[4] = (ye) => w.value = "deck")
|
|
3166
|
+
}, ze({ _: 2 }, [
|
|
3165
3167
|
Fe(a.value, (ye) => ({
|
|
3166
3168
|
name: ye,
|
|
3167
3169
|
fn: L((Le) => [
|
|
@@ -3182,7 +3184,7 @@ ${w.value}
|
|
|
3182
3184
|
fn: L(() => [
|
|
3183
3185
|
X("span", Wi, [
|
|
3184
3186
|
pe(N.$slots, "title", {}, () => [
|
|
3185
|
-
ae(
|
|
3187
|
+
ae(z(C(d)("baseConfigCard.title")), 1)
|
|
3186
3188
|
], !0)
|
|
3187
3189
|
])
|
|
3188
3190
|
]),
|
|
@@ -3191,7 +3193,7 @@ ${w.value}
|
|
|
3191
3193
|
]), 1032, ["title-tag"]);
|
|
3192
3194
|
};
|
|
3193
3195
|
}
|
|
3194
|
-
}), Wr = /* @__PURE__ */ Ee(to, [["__scopeId", "data-v-
|
|
3196
|
+
}), Wr = /* @__PURE__ */ Ee(to, [["__scopeId", "data-v-c2408876"]]), no = ["novalidate"], io = {
|
|
3195
3197
|
key: 0,
|
|
3196
3198
|
class: "button-customize-deck-wrapper"
|
|
3197
3199
|
}, oo = /* @__PURE__ */ Ce({
|
|
@@ -3352,7 +3354,7 @@ ${w.value}
|
|
|
3352
3354
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3353
3355
|
setup(t, { expose: o, emit: i }) {
|
|
3354
3356
|
var me, se;
|
|
3355
|
-
const l = Lt(xn, le(!1)), y = i, d = t, r = Yn(), { i18n: { t: c } } = he.useI18n(), { getMessageFromError: p } = he.useErrors(), { axiosInstance: s } = he.useAxios((me = d.config) == null ? void 0 : me.axiosRequestConfig), g = le(!1), a = D(() => !!d.editId), f = le(!1), b = le(""), M = D(() => d.canSubmit === !1 || d.isReadonly),
|
|
3357
|
+
const l = Lt(xn, le(!1)), y = i, d = t, r = Yn(), { i18n: { t: c } } = he.useI18n(), { getMessageFromError: p } = he.useErrors(), { axiosInstance: s } = he.useAxios((me = d.config) == null ? void 0 : me.axiosRequestConfig), g = le(!1), a = D(() => !!d.editId), f = le(!1), b = le(""), M = D(() => d.canSubmit === !1 || d.isReadonly), _ = le(!1), w = D(() => {
|
|
3356
3358
|
var ue, ve;
|
|
3357
3359
|
let re = `${d.config.apiBaseUrl}${d.fetchUrl}`;
|
|
3358
3360
|
return d.config.app === "konnect" && (re = re.replace(/{controlPlaneId}/gi, ((ue = d.config) == null ? void 0 : ue.controlPlaneId) || "")), re = re.replace(/\/{workspace}/gi, (ve = d.config) != null && ve.workspace ? `/${d.config.workspace}` : ""), d.editId ? (re = re.replace(/{id}/gi, d.editId), re) : (re = re.replace(/\/{id}/gi, ""), re);
|
|
@@ -3364,7 +3366,7 @@ ${w.value}
|
|
|
3364
3366
|
() => d.config,
|
|
3365
3367
|
() => d.entityType
|
|
3366
3368
|
), W = () => {
|
|
3367
|
-
|
|
3369
|
+
_.value = !_.value;
|
|
3368
3370
|
}, ce = () => {
|
|
3369
3371
|
d.config.cancelRoute ? r.push(d.config.cancelRoute) : S();
|
|
3370
3372
|
}, S = () => {
|
|
@@ -3401,7 +3403,7 @@ ${w.value}
|
|
|
3401
3403
|
if (d.editId)
|
|
3402
3404
|
try {
|
|
3403
3405
|
f.value = !1, g.value = !0;
|
|
3404
|
-
const { data: re } = await s.get(
|
|
3406
|
+
const { data: re } = await s.get(w.value);
|
|
3405
3407
|
y("fetch:success", re);
|
|
3406
3408
|
} catch (re) {
|
|
3407
3409
|
const ue = p(re);
|
|
@@ -3432,7 +3434,7 @@ ${w.value}
|
|
|
3432
3434
|
onClickAction: ce
|
|
3433
3435
|
}, {
|
|
3434
3436
|
default: L(() => [
|
|
3435
|
-
X("h3", null,
|
|
3437
|
+
X("h3", null, z(b.value), 1)
|
|
3436
3438
|
]),
|
|
3437
3439
|
_: 1
|
|
3438
3440
|
}, 8, ["action-button-text"])) : (v(), U("form", {
|
|
@@ -3466,7 +3468,7 @@ ${w.value}
|
|
|
3466
3468
|
onClick: ue[0] || (ue[0] = (oe) => W())
|
|
3467
3469
|
}, {
|
|
3468
3470
|
default: L(() => [
|
|
3469
|
-
ae(
|
|
3471
|
+
ae(z(_.value ? C(c)("baseForm.actions.hideConfiguration") : C(c)("baseForm.actions.viewConfiguration")), 1)
|
|
3470
3472
|
]),
|
|
3471
3473
|
_: 1
|
|
3472
3474
|
}, 8, ["data-testid"]),
|
|
@@ -3478,7 +3480,7 @@ ${w.value}
|
|
|
3478
3480
|
onClick: ue[1] || (ue[1] = (oe) => !!t.actionTeleportTarget && S())
|
|
3479
3481
|
}, {
|
|
3480
3482
|
default: L(() => [
|
|
3481
|
-
ae(
|
|
3483
|
+
ae(z(t.cancelButtonText ?? C(c)("baseForm.actions.cancel")), 1)
|
|
3482
3484
|
]),
|
|
3483
3485
|
_: 1
|
|
3484
3486
|
}, 8, ["data-testid", "disabled"]),
|
|
@@ -3490,7 +3492,7 @@ ${w.value}
|
|
|
3490
3492
|
onClick: ue[2] || (ue[2] = (oe) => !!t.actionTeleportTarget && V())
|
|
3491
3493
|
}, {
|
|
3492
3494
|
default: L(() => [
|
|
3493
|
-
ae(
|
|
3495
|
+
ae(z(t.saveButtonText ?? C(c)("baseForm.actions.save")), 1)
|
|
3494
3496
|
]),
|
|
3495
3497
|
_: 1
|
|
3496
3498
|
}, 8, ["data-testid", "disabled"])
|
|
@@ -3504,13 +3506,13 @@ ${w.value}
|
|
|
3504
3506
|
"has-overlay": !1,
|
|
3505
3507
|
"offset-top": t.slidoutTopOffset,
|
|
3506
3508
|
title: C(c)("baseForm.configuration.title"),
|
|
3507
|
-
visible:
|
|
3509
|
+
visible: _.value,
|
|
3508
3510
|
onClose: ue[8] || (ue[8] = (oe) => W())
|
|
3509
3511
|
}, {
|
|
3510
3512
|
default: L(() => [
|
|
3511
3513
|
X("div", null, [
|
|
3512
3514
|
pe(re.$slots, "configuration-slideout-message", {}, () => [
|
|
3513
|
-
ae(
|
|
3515
|
+
ae(z(C(c)("baseForm.configuration.message")), 1)
|
|
3514
3516
|
], !0)
|
|
3515
3517
|
]),
|
|
3516
3518
|
Q(N, {
|
|
@@ -3521,10 +3523,10 @@ ${w.value}
|
|
|
3521
3523
|
onChange: ue[7] || (ue[7] = (oe) => y("codeBlockTabChange", oe.replace("#", "")))
|
|
3522
3524
|
}, {
|
|
3523
3525
|
json: L(() => [
|
|
3524
|
-
Q(
|
|
3526
|
+
Q(zt, {
|
|
3525
3527
|
config: t.config,
|
|
3526
3528
|
"entity-record": d.formFields,
|
|
3527
|
-
"fetcher-url": d.slideoutFetchUrl ??
|
|
3529
|
+
"fetcher-url": d.slideoutFetchUrl ?? w.value,
|
|
3528
3530
|
"request-method": d.slideoutRequestMethod ?? (d.editId ? "put" : "post")
|
|
3529
3531
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3530
3532
|
]),
|
|
@@ -3550,7 +3552,7 @@ ${w.value}
|
|
|
3550
3552
|
onClick: ue[4] || (ue[4] = (oe) => P.value = !0)
|
|
3551
3553
|
}, {
|
|
3552
3554
|
default: L(() => [
|
|
3553
|
-
ae(
|
|
3555
|
+
ae(z(C(c)("baseConfigCard.actions.deck_customize")), 1)
|
|
3554
3556
|
]),
|
|
3555
3557
|
_: 1
|
|
3556
3558
|
})
|
|
@@ -3596,47 +3598,47 @@ ${w.value}
|
|
|
3596
3598
|
},
|
|
3597
3599
|
setup(t) {
|
|
3598
3600
|
const o = t, i = D(() => {
|
|
3599
|
-
var
|
|
3600
|
-
return ((
|
|
3601
|
+
var w;
|
|
3602
|
+
return ((w = o.rowEl) == null ? void 0 : w.querySelector(`[data-testid="${o.keyName}"]`)) || null;
|
|
3601
3603
|
}), l = D(() => {
|
|
3602
|
-
var
|
|
3603
|
-
return ((
|
|
3604
|
+
var w;
|
|
3605
|
+
return ((w = i.value) == null ? void 0 : w.querySelector('[data-truncate="true"]')) || null;
|
|
3604
3606
|
}), y = D(() => {
|
|
3605
3607
|
var P, x;
|
|
3606
|
-
const
|
|
3607
|
-
return
|
|
3608
|
+
const w = (P = o.rowEl) == null ? void 0 : P.querySelectorAll("td");
|
|
3609
|
+
return w ? ((x = w[0]) == null ? void 0 : x.getAttribute("data-testid")) === o.keyName : !0;
|
|
3608
3610
|
}), d = D(() => y.value || o.tooltip);
|
|
3609
3611
|
let r;
|
|
3610
3612
|
const c = () => {
|
|
3611
3613
|
r && (r.disconnect(), r = void 0);
|
|
3612
3614
|
}, p = () => {
|
|
3613
3615
|
var P, x, K;
|
|
3614
|
-
let
|
|
3616
|
+
let w = ((P = i.value) == null ? void 0 : P.clientWidth) || 0;
|
|
3615
3617
|
if (i.value && "getComputedStyle" in window) {
|
|
3616
3618
|
const G = window.getComputedStyle(i.value);
|
|
3617
|
-
|
|
3619
|
+
w -= (parseFloat(G.paddingLeft) || 0) + (parseFloat(G.paddingRight) || 0);
|
|
3618
3620
|
}
|
|
3619
|
-
g.value = ((x = l.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, a.value =
|
|
3621
|
+
g.value = ((x = l.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, a.value = w, f.value = ((K = s.value) == null ? void 0 : K.innerText) || "";
|
|
3620
3622
|
}, s = le({}), g = le(0), a = le(0), f = le(""), b = D(() => [l.value, i.value]), M = Pe(
|
|
3621
3623
|
b,
|
|
3622
|
-
(
|
|
3624
|
+
(w) => {
|
|
3623
3625
|
if (d.value && (c(), "ResizeObserver" in window && window)) {
|
|
3624
3626
|
r = new ResizeObserver((P) => {
|
|
3625
3627
|
window.requestAnimationFrame(() => {
|
|
3626
3628
|
!Array.isArray(P) || !P.length || p();
|
|
3627
3629
|
});
|
|
3628
3630
|
});
|
|
3629
|
-
for (const P of
|
|
3631
|
+
for (const P of w)
|
|
3630
3632
|
P && r.observe(P);
|
|
3631
3633
|
}
|
|
3632
3634
|
},
|
|
3633
3635
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3634
|
-
),
|
|
3636
|
+
), _ = D(() => d.value ? g.value > a.value : !1);
|
|
3635
3637
|
return mt(() => {
|
|
3636
3638
|
p();
|
|
3637
3639
|
}), bn(() => {
|
|
3638
3640
|
M();
|
|
3639
|
-
}), (
|
|
3641
|
+
}), (w, P) => {
|
|
3640
3642
|
const x = ne("KTooltip");
|
|
3641
3643
|
return v(), U("span", {
|
|
3642
3644
|
ref_key: "contentRef",
|
|
@@ -3650,14 +3652,14 @@ ${w.value}
|
|
|
3650
3652
|
Q(x, {
|
|
3651
3653
|
"max-width": "300",
|
|
3652
3654
|
placement: "bottom-start",
|
|
3653
|
-
text:
|
|
3655
|
+
text: _.value ? f.value : ""
|
|
3654
3656
|
}, {
|
|
3655
3657
|
default: L(() => [
|
|
3656
|
-
pe(
|
|
3658
|
+
pe(w.$slots, "default", {}, void 0, !0)
|
|
3657
3659
|
]),
|
|
3658
3660
|
_: 3
|
|
3659
3661
|
}, 8, ["text"])
|
|
3660
|
-
], 8, ro)) : pe(
|
|
3662
|
+
], 8, ro)) : pe(w.$slots, "default", { key: 1 }, void 0, !0)
|
|
3661
3663
|
], 512);
|
|
3662
3664
|
};
|
|
3663
3665
|
}
|
|
@@ -3860,9 +3862,9 @@ ${w.value}
|
|
|
3860
3862
|
l("empty-state-cta-clicked"), M();
|
|
3861
3863
|
}, M = () => {
|
|
3862
3864
|
l("clear-search-input");
|
|
3863
|
-
},
|
|
3865
|
+
}, _ = D(() => i.disableRowClick ? void 0 : (I, F) => {
|
|
3864
3866
|
l("click:row", F);
|
|
3865
|
-
}),
|
|
3867
|
+
}), w = (I) => {
|
|
3866
3868
|
l("sort", I);
|
|
3867
3869
|
}, { hideTableToolbar: P, handleStateChange: x } = he.useTableState(() => i.query), { setTablePreferences: K, getTablePreferences: G } = En(), W = le(G(r.value, i.defaultTablePreferences)), ce = D(() => {
|
|
3868
3870
|
const I = G(r.value);
|
|
@@ -3918,11 +3920,11 @@ ${w.value}
|
|
|
3918
3920
|
sortable: !t.disableSorting,
|
|
3919
3921
|
"table-preferences": W.value,
|
|
3920
3922
|
onEmptyStateActionClick: b,
|
|
3921
|
-
"onRow:click":
|
|
3922
|
-
onSort: F[0] || (F[0] = (re) =>
|
|
3923
|
+
"onRow:click": _.value,
|
|
3924
|
+
onSort: F[0] || (F[0] = (re) => w(re)),
|
|
3923
3925
|
onState: f,
|
|
3924
3926
|
"onUpdate:tablePreferences": S
|
|
3925
|
-
},
|
|
3927
|
+
}, ze({
|
|
3926
3928
|
toolbar: L(() => [
|
|
3927
3929
|
X("div", co, [
|
|
3928
3930
|
pe(I.$slots, "toolbar-filter", {}, void 0, !0),
|
|
@@ -3957,7 +3959,7 @@ ${w.value}
|
|
|
3957
3959
|
rowKey: t.rowKey,
|
|
3958
3960
|
rowValue: be
|
|
3959
3961
|
}, () => [
|
|
3960
|
-
ae(
|
|
3962
|
+
ae(z(be), 1)
|
|
3961
3963
|
], !0)
|
|
3962
3964
|
]),
|
|
3963
3965
|
_: 2
|
|
@@ -4066,7 +4068,7 @@ ${w.value}
|
|
|
4066
4068
|
t.error ? (v(), U("div", po, [
|
|
4067
4069
|
Q(a, { appearance: "danger" }, {
|
|
4068
4070
|
default: L(() => [
|
|
4069
|
-
ae(
|
|
4071
|
+
ae(z(t.error), 1)
|
|
4070
4072
|
]),
|
|
4071
4073
|
_: 1
|
|
4072
4074
|
})
|
|
@@ -4076,16 +4078,16 @@ ${w.value}
|
|
|
4076
4078
|
class: "message",
|
|
4077
4079
|
keypath: l.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
4078
4080
|
tag: "p"
|
|
4079
|
-
},
|
|
4081
|
+
}, ze({
|
|
4080
4082
|
entityType: L(() => [
|
|
4081
|
-
ae(
|
|
4083
|
+
ae(z(d.value), 1)
|
|
4082
4084
|
]),
|
|
4083
4085
|
_: 2
|
|
4084
4086
|
}, [
|
|
4085
4087
|
l.entityName ? {
|
|
4086
4088
|
name: "entityName",
|
|
4087
4089
|
fn: L(() => [
|
|
4088
|
-
X("strong", null,
|
|
4090
|
+
X("strong", null, z(l.entityName), 1)
|
|
4089
4091
|
]),
|
|
4090
4092
|
key: "0"
|
|
4091
4093
|
} : void 0
|
|
@@ -4093,7 +4095,7 @@ ${w.value}
|
|
|
4093
4095
|
], !0),
|
|
4094
4096
|
l.description || s.$slots.description ? (v(), U("div", mo, [
|
|
4095
4097
|
pe(s.$slots, "description", {}, () => [
|
|
4096
|
-
X("p", null,
|
|
4098
|
+
X("p", null, z(l.description), 1)
|
|
4097
4099
|
], !0)
|
|
4098
4100
|
])) : ee("", !0)
|
|
4099
4101
|
], 2)
|
|
@@ -4144,7 +4146,7 @@ ${w.value}
|
|
|
4144
4146
|
}), Co = {
|
|
4145
4147
|
key: 1,
|
|
4146
4148
|
class: "kong-ui-entity-filter"
|
|
4147
|
-
}, Ao = { class: "kong-ui-entity-filter-menu" }, So = ["data-testid"], To = ["onClick", "onKeydown"],
|
|
4149
|
+
}, Ao = { class: "kong-ui-entity-filter-menu" }, So = ["data-testid"], To = ["onClick", "onKeydown"], $o = { class: "menu-item-indicator" }, _o = { class: "menu-item-body" }, wo = ["for"], xo = { class: "menu-item-buttons" }, Eo = { class: "filter-clear-button-container" }, Io = /* @__PURE__ */ Ce({
|
|
4148
4150
|
__name: "EntityFilter",
|
|
4149
4151
|
props: {
|
|
4150
4152
|
// filter config, either exact match or fuzzy match
|
|
@@ -4193,10 +4195,10 @@ ${w.value}
|
|
|
4193
4195
|
y("update:modelValue", S);
|
|
4194
4196
|
}, b = () => {
|
|
4195
4197
|
f("");
|
|
4196
|
-
}, M = (S) => `filter-${S}`,
|
|
4198
|
+
}, M = (S) => `filter-${S}`, _ = (S) => {
|
|
4197
4199
|
var V, I;
|
|
4198
4200
|
return (((I = (V = l.config.schema) == null ? void 0 : V[S]) == null ? void 0 : I.values) ?? []).map((F) => typeof F == "string" ? { value: F, label: F } : F);
|
|
4199
|
-
},
|
|
4201
|
+
}, w = (S) => {
|
|
4200
4202
|
var V, I;
|
|
4201
4203
|
return ((I = (V = l.config.schema) == null ? void 0 : V[S]) == null ? void 0 : I.type) ?? "text";
|
|
4202
4204
|
}, P = (S) => {
|
|
@@ -4252,7 +4254,7 @@ ${w.value}
|
|
|
4252
4254
|
}, {
|
|
4253
4255
|
default: L(() => [
|
|
4254
4256
|
Q(Rt),
|
|
4255
|
-
ae(" " +
|
|
4257
|
+
ae(" " + z(C(i)("filter.filterButtonText")) + " " + z(p.value.length > 0 ? `(${p.value.length})` : ""), 1)
|
|
4256
4258
|
]),
|
|
4257
4259
|
_: 1
|
|
4258
4260
|
}),
|
|
@@ -4277,27 +4279,27 @@ ${w.value}
|
|
|
4277
4279
|
onClick: (xe) => a(se.value),
|
|
4278
4280
|
onKeydown: Ft((xe) => a(se.value), ["enter"])
|
|
4279
4281
|
}, [
|
|
4280
|
-
ae(
|
|
4281
|
-
Ve(X("span",
|
|
4282
|
+
ae(z(se.label) + " ", 1),
|
|
4283
|
+
Ve(X("span", $o, null, 512), [
|
|
4282
4284
|
[Ye, p.value.includes(se.value)]
|
|
4283
4285
|
]),
|
|
4284
|
-
Q(C(
|
|
4286
|
+
Q(C(zn), {
|
|
4285
4287
|
class: Ke(["menu-item-expand-icon", { expanded: c.value.has(se.value) }]),
|
|
4286
|
-
color: C(oi)
|
|
4288
|
+
color: `var(--kui-color-text-neutral-weak, ${C(oi)})`
|
|
4287
4289
|
}, null, 8, ["class", "color"])
|
|
4288
4290
|
], 42, To),
|
|
4289
|
-
Ve(X("div",
|
|
4291
|
+
Ve(X("div", _o, [
|
|
4290
4292
|
X("label", {
|
|
4291
4293
|
class: "menu-item-label",
|
|
4292
4294
|
for: M(se.value)
|
|
4293
|
-
},
|
|
4295
|
+
}, z(C(i)("filter.fieldLabel")), 9, wo),
|
|
4294
4296
|
((ue = (re = t.config.schema) == null ? void 0 : re[se.value]) == null ? void 0 : ue.type) === "select" ? (v(), Y(me, {
|
|
4295
4297
|
key: 0,
|
|
4296
4298
|
id: M(se.value),
|
|
4297
4299
|
"enable-filtering": G(se.value),
|
|
4298
4300
|
"enable-item-creation": (be = (ve = t.config.schema) == null ? void 0 : ve[se.value]) == null ? void 0 : be.enableItemCreation,
|
|
4299
4301
|
"filter-function": (xe) => W(se.value, xe),
|
|
4300
|
-
items:
|
|
4302
|
+
items: _(se.value),
|
|
4301
4303
|
"model-value": r.value[se.value],
|
|
4302
4304
|
placeholder: C(i)("filter.selectPlaceholder"),
|
|
4303
4305
|
onChange: (xe) => ce(se.value, xe)
|
|
@@ -4308,7 +4310,7 @@ ${w.value}
|
|
|
4308
4310
|
"onUpdate:modelValue": (xe) => r.value[se.value] = xe,
|
|
4309
4311
|
autocomplete: "off",
|
|
4310
4312
|
placeholder: C(i)("filter.inputPlaceholder"),
|
|
4311
|
-
type:
|
|
4313
|
+
type: w(se.value)
|
|
4312
4314
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4313
4315
|
], 512), [
|
|
4314
4316
|
[Ye, c.value.has(se.value)]
|
|
@@ -4321,7 +4323,7 @@ ${w.value}
|
|
|
4321
4323
|
onClick: V[0] || (V[0] = (xe) => K(!0))
|
|
4322
4324
|
}, {
|
|
4323
4325
|
default: L(() => [
|
|
4324
|
-
ae(
|
|
4326
|
+
ae(z(C(i)("filter.applyButtonText")), 1)
|
|
4325
4327
|
]),
|
|
4326
4328
|
_: 1
|
|
4327
4329
|
}),
|
|
@@ -4332,7 +4334,7 @@ ${w.value}
|
|
|
4332
4334
|
onClick: (xe) => P(se.value)
|
|
4333
4335
|
}, {
|
|
4334
4336
|
default: L(() => [
|
|
4335
|
-
ae(
|
|
4337
|
+
ae(z(C(i)("filter.clearButtonText")), 1)
|
|
4336
4338
|
]),
|
|
4337
4339
|
_: 1
|
|
4338
4340
|
}, 8, ["onClick"])
|
|
@@ -4348,7 +4350,7 @@ ${w.value}
|
|
|
4348
4350
|
onClick: x
|
|
4349
4351
|
}, {
|
|
4350
4352
|
default: L(() => [
|
|
4351
|
-
ae(
|
|
4353
|
+
ae(z(C(i)("filter.clearAllButtonText")), 1)
|
|
4352
4354
|
]),
|
|
4353
4355
|
_: 1
|
|
4354
4356
|
})
|
|
@@ -4359,7 +4361,7 @@ ${w.value}
|
|
|
4359
4361
|
]));
|
|
4360
4362
|
};
|
|
4361
4363
|
}
|
|
4362
|
-
}), Zr = /* @__PURE__ */ Ee(Io, [["__scopeId", "data-v-
|
|
4364
|
+
}), Zr = /* @__PURE__ */ Ee(Io, [["__scopeId", "data-v-3ece8659"]]), el = /* @__PURE__ */ Ce({
|
|
4363
4365
|
__name: "EntityToggleModal",
|
|
4364
4366
|
props: {
|
|
4365
4367
|
visible: {
|
|
@@ -4425,10 +4427,10 @@ ${w.value}
|
|
|
4425
4427
|
scope: "global"
|
|
4426
4428
|
}, {
|
|
4427
4429
|
entityType: L(() => [
|
|
4428
|
-
ae(
|
|
4430
|
+
ae(z(t.entityType), 1)
|
|
4429
4431
|
]),
|
|
4430
4432
|
entityName: L(() => [
|
|
4431
|
-
X("strong", null,
|
|
4433
|
+
X("strong", null, z(t.entityName), 1)
|
|
4432
4434
|
]),
|
|
4433
4435
|
_: 1
|
|
4434
4436
|
}, 8, ["keypath"])
|
|
@@ -4541,13 +4543,13 @@ const Mo = ["aria-labelledby"], Fo = { class: "form-section-wrapper" }, Po = {
|
|
|
4541
4543
|
class: "form-section-title"
|
|
4542
4544
|
}, {
|
|
4543
4545
|
default: L(() => [
|
|
4544
|
-
ae(
|
|
4546
|
+
ae(z(t.title), 1)
|
|
4545
4547
|
]),
|
|
4546
4548
|
_: 1
|
|
4547
4549
|
}, 8, ["id"])) : ee("", !0),
|
|
4548
4550
|
t.description || C(o).description ? (v(), U("div", Po, [
|
|
4549
4551
|
pe(l.$slots, "description", {}, () => [
|
|
4550
|
-
X("p", null,
|
|
4552
|
+
X("p", null, z(t.description), 1)
|
|
4551
4553
|
], !0)
|
|
4552
4554
|
])) : ee("", !0),
|
|
4553
4555
|
C(o).footer ? (v(), U("div", No, [
|
|
@@ -4564,7 +4566,7 @@ const Mo = ["aria-labelledby"], Fo = { class: "form-section-wrapper" }, Po = {
|
|
|
4564
4566
|
key: 0,
|
|
4565
4567
|
class: "step",
|
|
4566
4568
|
"data-testid": "form-block-step"
|
|
4567
|
-
},
|
|
4569
|
+
}, zo = { class: "header-content" }, Ho = {
|
|
4568
4570
|
class: "header-title",
|
|
4569
4571
|
"data-testid": "header-title"
|
|
4570
4572
|
}, Vo = {
|
|
@@ -4596,18 +4598,18 @@ const Mo = ["aria-labelledby"], Fo = { class: "form-section-wrapper" }, Po = {
|
|
|
4596
4598
|
X("header", jo, [
|
|
4597
4599
|
t.step !== void 0 || o.step ? (v(), U("div", Uo, [
|
|
4598
4600
|
pe(i.$slots, "step", {}, () => [
|
|
4599
|
-
ae(
|
|
4601
|
+
ae(z(t.step), 1)
|
|
4600
4602
|
], !0)
|
|
4601
4603
|
])) : ee("", !0),
|
|
4602
|
-
X("div",
|
|
4603
|
-
X("h2",
|
|
4604
|
+
X("div", zo, [
|
|
4605
|
+
X("h2", Ho, [
|
|
4604
4606
|
pe(i.$slots, "title", {}, () => [
|
|
4605
|
-
ae(
|
|
4607
|
+
ae(z(t.title), 1)
|
|
4606
4608
|
], !0)
|
|
4607
4609
|
]),
|
|
4608
4610
|
t.description || o.description ? (v(), U("div", Vo, [
|
|
4609
4611
|
pe(i.$slots, "description", {}, () => [
|
|
4610
|
-
ae(
|
|
4612
|
+
ae(z(t.description), 1)
|
|
4611
4613
|
], !0)
|
|
4612
4614
|
])) : ee("", !0)
|
|
4613
4615
|
]),
|
|
@@ -4662,9 +4664,9 @@ const Mo = ["aria-labelledby"], Fo = { class: "form-section-wrapper" }, Po = {
|
|
|
4662
4664
|
}, 1800));
|
|
4663
4665
|
};
|
|
4664
4666
|
return (a, f) => {
|
|
4665
|
-
const b = ne("KTooltip"), M = ne("KExternalLink"),
|
|
4667
|
+
const b = ne("KTooltip"), M = ne("KExternalLink"), _ = ne("KClipboardProvider");
|
|
4666
4668
|
return v(), U("div", Jo, [
|
|
4667
|
-
c.value ? (v(), U("div", Qo,
|
|
4669
|
+
c.value ? (v(), U("div", Qo, z(s.value), 1)) : p.value ? p.value ? (v(), Y(M, {
|
|
4668
4670
|
key: 2,
|
|
4669
4671
|
class: "entity-link",
|
|
4670
4672
|
"hide-icon": !t.newWindow,
|
|
@@ -4680,13 +4682,13 @@ const Mo = ["aria-labelledby"], Fo = { class: "form-section-wrapper" }, Po = {
|
|
|
4680
4682
|
ref_key: "textContent",
|
|
4681
4683
|
ref: i,
|
|
4682
4684
|
class: "entity-link-label"
|
|
4683
|
-
},
|
|
4685
|
+
}, z(t.entityLinkData.label), 513)
|
|
4684
4686
|
]),
|
|
4685
4687
|
_: 1
|
|
4686
4688
|
}, 8, ["text"])
|
|
4687
4689
|
]),
|
|
4688
4690
|
_: 1
|
|
4689
|
-
}, 8, ["hide-icon", "href", "target"])) : ee("", !0) : (v(), U("div", Xo,
|
|
4691
|
+
}, 8, ["hide-icon", "href", "target"])) : ee("", !0) : (v(), U("div", Xo, z(" – "))),
|
|
4690
4692
|
p.value && t.allowCopy ? (v(), Y(b, {
|
|
4691
4693
|
key: r.value,
|
|
4692
4694
|
class: "copy-uuid-tooltip",
|
|
@@ -4695,17 +4697,17 @@ const Mo = ["aria-labelledby"], Fo = { class: "form-section-wrapper" }, Po = {
|
|
|
4695
4697
|
text: r.value
|
|
4696
4698
|
}, {
|
|
4697
4699
|
default: L(() => [
|
|
4698
|
-
Q(
|
|
4699
|
-
default: L(({ copyToClipboard:
|
|
4700
|
+
Q(_, null, {
|
|
4701
|
+
default: L(({ copyToClipboard: w }) => [
|
|
4700
4702
|
X("span", {
|
|
4701
4703
|
class: "entity-link-copy-id",
|
|
4702
|
-
onClick: et((P) => g(
|
|
4704
|
+
onClick: et((P) => g(w), ["stop"])
|
|
4703
4705
|
}, [
|
|
4704
4706
|
Q(C(qt), {
|
|
4705
4707
|
class: "copy-icon",
|
|
4706
|
-
color: C(ri)
|
|
4708
|
+
color: `var(--kui-color-text-primary, ${C(ri)})`,
|
|
4707
4709
|
"data-testid": "copy-id",
|
|
4708
|
-
size: C(ai)
|
|
4710
|
+
size: `var(--kui-icon-size-30, ${C(ai)})`
|
|
4709
4711
|
}, null, 8, ["color", "size"])
|
|
4710
4712
|
], 8, Zo)
|
|
4711
4713
|
]),
|
|
@@ -4717,7 +4719,7 @@ const Mo = ["aria-labelledby"], Fo = { class: "form-section-wrapper" }, Po = {
|
|
|
4717
4719
|
]);
|
|
4718
4720
|
};
|
|
4719
4721
|
}
|
|
4720
|
-
}), ol = /* @__PURE__ */ Ee(er, [["__scopeId", "data-v-
|
|
4722
|
+
}), ol = /* @__PURE__ */ Ee(er, [["__scopeId", "data-v-6668aea9"]]), tr = { class: "kong-ui-public-entity-empty-state" }, nr = { class: "entity-empty-state-content" }, ir = {
|
|
4721
4723
|
key: 0,
|
|
4722
4724
|
class: "empty-state-image"
|
|
4723
4725
|
}, or = {
|
|
@@ -4801,21 +4803,21 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
4801
4803
|
class: Ke(d.value)
|
|
4802
4804
|
}, [
|
|
4803
4805
|
pe(r.$slots, "title", {}, () => [
|
|
4804
|
-
ae(
|
|
4806
|
+
ae(z(t.title), 1)
|
|
4805
4807
|
], !0)
|
|
4806
4808
|
], 2)
|
|
4807
4809
|
])) : ee("", !0),
|
|
4808
4810
|
t.description || r.$slots.default ? (v(), U("div", rr, [
|
|
4809
4811
|
pe(r.$slots, "default", {}, () => [
|
|
4810
|
-
X("p", null,
|
|
4812
|
+
X("p", null, z(t.description), 1)
|
|
4811
4813
|
], !0)
|
|
4812
4814
|
])) : ee("", !0),
|
|
4813
4815
|
t.pricing || r.$slots.pricing ? (v(), U("div", lr, [
|
|
4814
4816
|
X("p", null, [
|
|
4815
|
-
X("b", null,
|
|
4817
|
+
X("b", null, z(C(i)("emptyState.pricingTitle")), 1),
|
|
4816
4818
|
c[2] || (c[2] = ae()),
|
|
4817
4819
|
pe(r.$slots, "pricing", {}, () => [
|
|
4818
|
-
ae(
|
|
4820
|
+
ae(z(t.pricing), 1)
|
|
4819
4821
|
], !0)
|
|
4820
4822
|
])
|
|
4821
4823
|
])) : ee("", !0)
|
|
@@ -4825,7 +4827,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
4825
4827
|
])) : ee("", !0),
|
|
4826
4828
|
y.value || t.learnMore || r.$slots.actions ? (v(), U("div", cr, [
|
|
4827
4829
|
pe(r.$slots, "actions", {}, () => [
|
|
4828
|
-
y.value ? (v(), Y(C(
|
|
4830
|
+
y.value ? (v(), Y(C(_t), {
|
|
4829
4831
|
key: 0,
|
|
4830
4832
|
appearance: "primary",
|
|
4831
4833
|
"data-testid": "entity-create-button",
|
|
@@ -4834,11 +4836,11 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
4834
4836
|
}, {
|
|
4835
4837
|
default: L(() => [
|
|
4836
4838
|
Q(C(Dt)),
|
|
4837
|
-
ae(" " +
|
|
4839
|
+
ae(" " + z(t.actionButtonText), 1)
|
|
4838
4840
|
]),
|
|
4839
4841
|
_: 1
|
|
4840
4842
|
}, 8, ["size"])) : ee("", !0),
|
|
4841
|
-
t.learnMore ? (v(), Y(C(
|
|
4843
|
+
t.learnMore ? (v(), Y(C(_t), {
|
|
4842
4844
|
key: 1,
|
|
4843
4845
|
appearance: "secondary",
|
|
4844
4846
|
"data-testid": "entity-learn-more-button",
|
|
@@ -4847,7 +4849,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
4847
4849
|
}, {
|
|
4848
4850
|
default: L(() => [
|
|
4849
4851
|
Q(C(Nt), { decorative: "" }),
|
|
4850
|
-
ae(" " +
|
|
4852
|
+
ae(" " + z(C(i)("emptyState.learnMore")), 1)
|
|
4851
4853
|
]),
|
|
4852
4854
|
_: 1
|
|
4853
4855
|
}, 8, ["size"])) : ee("", !0)
|
|
@@ -4862,12 +4864,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
4862
4864
|
r.$slots[`feature-${g}-icon`] ? (v(), U("div", ur, [
|
|
4863
4865
|
pe(r.$slots, `feature-${g}-icon`, {}, void 0, !0)
|
|
4864
4866
|
])) : ee("", !0),
|
|
4865
|
-
X("div", dr,
|
|
4867
|
+
X("div", dr, z(s.title), 1)
|
|
4866
4868
|
]),
|
|
4867
4869
|
default: L(() => [
|
|
4868
4870
|
X("div", {
|
|
4869
4871
|
title: s.description
|
|
4870
|
-
},
|
|
4872
|
+
}, z(s.description), 9, fr)
|
|
4871
4873
|
]),
|
|
4872
4874
|
_: 2
|
|
4873
4875
|
}, 1024))), 128))
|
|
@@ -4903,7 +4905,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
4903
4905
|
emits: ["update:modelValue", "rotate", "generate", "generated"],
|
|
4904
4906
|
setup(t, { emit: o }) {
|
|
4905
4907
|
At((S) => ({
|
|
4906
|
-
|
|
4908
|
+
v249e10f0: W.value
|
|
4907
4909
|
}));
|
|
4908
4910
|
const i = o, { i18n: { t: l } } = he.useI18n(), y = le(t.mode === "edit" ? "masked" : "editing"), d = le(!1), r = le(!1), c = D(() => y.value === "masked"), p = hr, s = D(() => t.placeholder ?? l("sensitiveInput.placeholder")), g = D(() => {
|
|
4909
4911
|
var S;
|
|
@@ -4920,9 +4922,9 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
4920
4922
|
}, { immediate: !0 });
|
|
4921
4923
|
const M = (S) => {
|
|
4922
4924
|
i("update:modelValue", S);
|
|
4923
|
-
},
|
|
4925
|
+
}, _ = () => {
|
|
4924
4926
|
y.value = "editing", d.value = !1, i("rotate");
|
|
4925
|
-
},
|
|
4927
|
+
}, w = () => {
|
|
4926
4928
|
d.value = !d.value;
|
|
4927
4929
|
}, P = async () => {
|
|
4928
4930
|
if (!(!t.generator || r.value)) {
|
|
@@ -4979,10 +4981,10 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
4979
4981
|
class: "sensitive-input-action",
|
|
4980
4982
|
"data-testid": "sensitive-input-rotate",
|
|
4981
4983
|
size: "small",
|
|
4982
|
-
onClick:
|
|
4984
|
+
onClick: _
|
|
4983
4985
|
}, {
|
|
4984
4986
|
default: L(() => [
|
|
4985
|
-
ae(
|
|
4987
|
+
ae(z(g.value), 1)
|
|
4986
4988
|
]),
|
|
4987
4989
|
_: 1
|
|
4988
4990
|
})) : (v(), U(Be, { key: 1 }, [
|
|
@@ -4996,20 +4998,20 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
4996
4998
|
onClick: P
|
|
4997
4999
|
}, {
|
|
4998
5000
|
default: L(() => [
|
|
4999
|
-
ae(
|
|
5001
|
+
ae(z(a.value), 1)
|
|
5000
5002
|
]),
|
|
5001
5003
|
_: 1
|
|
5002
5004
|
}, 8, ["disabled"])) : ee("", !0),
|
|
5003
|
-
(v(), Y(We(d.value ? C(
|
|
5005
|
+
(v(), Y(We(d.value ? C(Hn) : C(Vn)), {
|
|
5004
5006
|
"aria-label": d.value ? C(l)("sensitiveInput.hideKey") : C(l)("sensitiveInput.showKey"),
|
|
5005
5007
|
class: "sensitive-input-toggle",
|
|
5006
5008
|
color: "currentColor",
|
|
5007
5009
|
"data-testid": "sensitive-input-toggle",
|
|
5008
5010
|
role: "button",
|
|
5009
|
-
size: C(Ze)
|
|
5011
|
+
size: `var(--kui-icon-size-40, ${C(Ze)})`,
|
|
5010
5012
|
tabindex: "0",
|
|
5011
|
-
onClick:
|
|
5012
|
-
onKeydown: Ft(et(
|
|
5013
|
+
onClick: w,
|
|
5014
|
+
onKeydown: Ft(et(w, ["prevent"]), ["enter", "space"])
|
|
5013
5015
|
}, null, 40, ["aria-label", "size", "onKeydown"]))
|
|
5014
5016
|
], 64))
|
|
5015
5017
|
]),
|
|
@@ -5018,10 +5020,10 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
5018
5020
|
t.showOneTimeHint ? (v(), U("div", yr, [
|
|
5019
5021
|
Q(C(Pt), {
|
|
5020
5022
|
class: "sensitive-input-hint-icon",
|
|
5021
|
-
color: C(ii)
|
|
5022
|
-
size: C(Ze)
|
|
5023
|
+
color: `var(--kui-color-text-info, ${C(ii)})`,
|
|
5024
|
+
size: `var(--kui-icon-size-40, ${C(Ze)})`
|
|
5023
5025
|
}, null, 8, ["color", "size"]),
|
|
5024
|
-
X("span", gr,
|
|
5026
|
+
X("span", gr, z(f.value), 1),
|
|
5025
5027
|
Q(me, null, {
|
|
5026
5028
|
default: L(({ copyToClipboard: se }) => [
|
|
5027
5029
|
Q(I, {
|
|
@@ -5034,9 +5036,9 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
5034
5036
|
default: L(() => [
|
|
5035
5037
|
Q(C(qt), {
|
|
5036
5038
|
color: "currentColor",
|
|
5037
|
-
size: C(Ze)
|
|
5039
|
+
size: `var(--kui-icon-size-40, ${C(Ze)})`
|
|
5038
5040
|
}, null, 8, ["size"]),
|
|
5039
|
-
ae(" " +
|
|
5041
|
+
ae(" " + z(C(l)("sensitiveInput.copy")), 1)
|
|
5040
5042
|
]),
|
|
5041
5043
|
_: 1
|
|
5042
5044
|
}, 8, ["onClick"])
|
|
@@ -5047,7 +5049,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
5047
5049
|
], 512);
|
|
5048
5050
|
};
|
|
5049
5051
|
}
|
|
5050
|
-
}), ll = /* @__PURE__ */ Ee(vr, [["__scopeId", "data-v-
|
|
5052
|
+
}), ll = /* @__PURE__ */ Ee(vr, [["__scopeId", "data-v-79aebef4"]]), br = { key: 1 }, al = /* @__PURE__ */ Ce({
|
|
5051
5053
|
__name: "TableTags",
|
|
5052
5054
|
props: {
|
|
5053
5055
|
/** The tags to display in the table */
|
|
@@ -5084,7 +5086,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
5084
5086
|
}, ["stop"]))
|
|
5085
5087
|
}, {
|
|
5086
5088
|
default: L(() => [
|
|
5087
|
-
ae(
|
|
5089
|
+
ae(z(r), 1)
|
|
5088
5090
|
]),
|
|
5089
5091
|
_: 2
|
|
5090
5092
|
}, 1032, ["max-width"]))), 128))
|
|
@@ -5097,13 +5099,13 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, c) =>
|
|
|
5097
5099
|
export {
|
|
5098
5100
|
Et as Appearances,
|
|
5099
5101
|
Rr as BASE_FORM_CONFIG_TABS,
|
|
5100
|
-
|
|
5102
|
+
wn as CONFIG_CARD_FORMATS,
|
|
5101
5103
|
Gi as ConfigCardDisplay,
|
|
5102
5104
|
Ut as ConfigCardItem,
|
|
5103
5105
|
Me as ConfigurationSchemaSection,
|
|
5104
5106
|
ke as ConfigurationSchemaType,
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
+
$n as DECK_COMMAND_EDITOR_KEY,
|
|
5108
|
+
_n as DECK_COMMAND_EDITOR_MISSING_WARNING,
|
|
5107
5109
|
mn as DeckCodeBlock,
|
|
5108
5110
|
Wr as EntityBaseConfigCard,
|
|
5109
5111
|
Jr as EntityBaseForm,
|
|
@@ -5118,11 +5120,11 @@ export {
|
|
|
5118
5120
|
el as EntityToggleModal,
|
|
5119
5121
|
Gn as EntityTypes,
|
|
5120
5122
|
Sn as EventGatewayTypesArray,
|
|
5121
|
-
|
|
5123
|
+
wl as FetcherStatus,
|
|
5122
5124
|
Pi as GeneratePatModal,
|
|
5123
5125
|
Tn as IdentityTypesArray,
|
|
5124
5126
|
Zn as InternalLinkItem,
|
|
5125
|
-
|
|
5127
|
+
zt as JsonCodeBlock,
|
|
5126
5128
|
xn as PLUGIN_FORM_LAYOUT_STATE,
|
|
5127
5129
|
tl as PermissionsWrapper,
|
|
5128
5130
|
ll as SensitiveInput,
|