@kong-ui-public/entities-shared 3.53.6 → 3.53.7
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 +54 -54
- package/dist/entities-shared.es.js +622 -661
- package/dist/style.css +1 -1
- package/dist/types/components/entity-filter/EntityFilter.vue.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/components/icons/IconFilter.vue.d.ts +0 -16
- package/dist/types/components/icons/IconFilter.vue.d.ts.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as ke, computed as j, openBlock as b, createBlock as G, resolveDynamicComponent as Ge, normalizeClass as Ee, withCtx as R, createElementBlock as V, createElementVNode as
|
|
2
|
-
import { c as ge, _ as we, C as be, S as je, E as Sn, I as Tn, a as yt, D as $n, b as wn, d as
|
|
3
|
-
import { F as
|
|
1
|
+
import { defineComponent as ke, computed as j, openBlock as b, createBlock as G, resolveDynamicComponent as Ge, normalizeClass as Ee, withCtx as R, createElementBlock as V, createElementVNode as ne, toDisplayString as H, createCommentVNode as ee, Fragment as _e, renderList as Ke, unref as C, resolveComponent as ie, createVNode as Z, createTextVNode as ue, useCssVars as At, useId as yn, useSlots as pt, ref as se, renderSlot as pe, createSlots as Ue, normalizeProps as gn, guardReactiveProps as hn, mergeProps as tt, watch as Le, inject as Lt, watchEffect as vn, onMounted as mt, onBeforeMount as St, withModifiers as et, Teleport as Ft, onUnmounted as bn, withDirectives as Ye, vShow as Ve, withKeys as Mt, warn as kn, useTemplateRef as Cn, onBeforeUnmount as An } from "vue";
|
|
2
|
+
import { c as ge, _ as we, C as be, S as je, E as Sn, I as Tn, a as yt, D as $n, b as wn, d as xn, e as Ie, P as _n, f as En } from "./_plugin-vue_export-helper-CxCTU6Pp.js";
|
|
3
|
+
import { F as kl, g as Cl, i as Al } from "./_plugin-vue_export-helper-CxCTU6Pp.js";
|
|
4
4
|
import { BadgeMethodAppearances as In, KExternalLink as On, KButton as wt, 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
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import Fn from "@shikijs/langs/json";
|
|
8
|
+
import Mn from "@shikijs/langs/yaml";
|
|
9
9
|
import Pn from "@shikijs/langs/terraform";
|
|
10
10
|
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
|
|
15
|
-
import { useRouter as
|
|
14
|
+
import { LanguageShellIcon as xt, LanguageBashIcon as _t, InfoIcon as Pt, BookIcon as Nt, AddIcon as Dt, CloseIcon as Un, FilterIcon as Et, ChevronDownIcon as zn, CopyIcon as qt, VisibilityOffIcon as Hn, VisibilityIcon as Yn } from "@kong/icons";
|
|
15
|
+
import { useRouter as Vn } from "vue-router";
|
|
16
16
|
var Wn = /* @__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))(Wn || {}), Gn = /* @__PURE__ */ ((t) => (t.Edit = "edit", t.Create = "create", t))(Gn || {});
|
|
17
|
-
const
|
|
17
|
+
const xr = ["json", "yaml", "terraform", "deck"], It = [
|
|
18
18
|
"primary",
|
|
19
19
|
"secondary"
|
|
20
20
|
], Jn = {
|
|
@@ -49,9 +49,9 @@ const Kr = ["json", "yaml", "terraform", "deck"], Et = [
|
|
|
49
49
|
}, {
|
|
50
50
|
default: R(() => [
|
|
51
51
|
t.isArrayItem ? (b(), V("legend", Jn, [
|
|
52
|
-
|
|
53
|
-
])) :
|
|
54
|
-
(b(!0), V(
|
|
52
|
+
ne("b", null, H(u.value), 1)
|
|
53
|
+
])) : ee("", !0),
|
|
54
|
+
(b(!0), V(_e, null, Ke(Object.keys(r.value), (g, a) => (b(), G(Ut, {
|
|
55
55
|
key: `${s.value}-property-${a}`,
|
|
56
56
|
item: {
|
|
57
57
|
key: g,
|
|
@@ -112,11 +112,11 @@ const Kr = ["json", "yaml", "terraform", "deck"], Et = [
|
|
|
112
112
|
}, 8, ["appearance"]);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
}), ti = "#
|
|
115
|
+
}), ti = "#e0e4ea", ni = "#0044f4", ii = "#afb7c5", oi = "#0044f4", ri = "1px", li = "16px", Ze = "20px", Ot = "8px", Bt = "12px";
|
|
116
116
|
let kt = null;
|
|
117
|
-
function
|
|
117
|
+
function ai() {
|
|
118
118
|
return kt || (kt = Rn({
|
|
119
|
-
langs: [
|
|
119
|
+
langs: [Fn, Mn, Pn, Nn, Dn],
|
|
120
120
|
themes: [qn, jn],
|
|
121
121
|
engine: Ln(),
|
|
122
122
|
langAlias: {
|
|
@@ -127,17 +127,17 @@ function ci() {
|
|
|
127
127
|
}
|
|
128
128
|
})), kt;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
130
|
+
function ci(t, o) {
|
|
131
|
+
return ai().codeToHtml(t, o);
|
|
132
132
|
}
|
|
133
133
|
function We({ codeElement: t, code: o, language: i, theme: l }) {
|
|
134
|
-
t.innerHTML =
|
|
134
|
+
t.innerHTML = ci(o, { lang: i, theme: l === "dark" ? "catppuccin-mocha" : "catppuccin-latte", structure: "inline" });
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const si = { class: "config-card-details-row" }, ui = ["data-testid"], di = ["data-testid"], fi = ["data-testid"], pi = ["data-testid"], mi = { key: 1 }, yi = ["data-testid"], gi = ["data-testid"], hi = ["data-testid"], vi = ["data-testid"], bi = {
|
|
137
137
|
name: "ConfigCardItem",
|
|
138
138
|
components: { JsonCardItem: jt, StatusBadge: ei, InternalLinkItem: Zn }
|
|
139
|
-
},
|
|
140
|
-
...
|
|
139
|
+
}, ki = /* @__PURE__ */ ke({
|
|
140
|
+
...bi,
|
|
141
141
|
props: {
|
|
142
142
|
item: {
|
|
143
143
|
type: Object,
|
|
@@ -157,7 +157,7 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
157
157
|
emits: ["navigation-click"],
|
|
158
158
|
setup(t, { emit: o }) {
|
|
159
159
|
At((W) => ({
|
|
160
|
-
v25a763c4: c.value ? "none" : `solid ${C(
|
|
160
|
+
v25a763c4: c.value ? "none" : `solid ${C(ri)} ${C(ti)}`,
|
|
161
161
|
v1ac90e12: a.value && f.value ? "block" : "flex",
|
|
162
162
|
v45a716ee: a.value && f.value ? "100%" : i.slim ? "50%" : "25%",
|
|
163
163
|
v45a28b38: a.value && f.value ? "100%" : i.slim ? "50%" : "75%"
|
|
@@ -299,9 +299,9 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
299
299
|
}
|
|
300
300
|
}), B = se(), N = se(), { isTruncated: E } = ge.useTruncationDetector(B), { isTruncated: $ } = ge.useTruncationDetector(N);
|
|
301
301
|
return (W, J) => {
|
|
302
|
-
const ae = ie("KTooltip"), q = ie("KLabel"),
|
|
303
|
-
return b(), V("div",
|
|
304
|
-
|
|
302
|
+
const ae = ie("KTooltip"), q = ie("KLabel"), F = ie("KBadge"), _ = ie("KCopy");
|
|
303
|
+
return b(), V("div", si, [
|
|
304
|
+
ne("div", {
|
|
305
305
|
class: "config-card-details-label",
|
|
306
306
|
"data-testid": `${t.item.key}-label`
|
|
307
307
|
}, [
|
|
@@ -312,7 +312,7 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
312
312
|
text: C(E) ? t.item.label : ""
|
|
313
313
|
}, {
|
|
314
314
|
default: R(() => [
|
|
315
|
-
|
|
315
|
+
ne("span", {
|
|
316
316
|
ref_key: "labelContent",
|
|
317
317
|
ref: B,
|
|
318
318
|
class: "label-content"
|
|
@@ -326,34 +326,34 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
326
326
|
g.value ? {
|
|
327
327
|
name: "tooltip",
|
|
328
328
|
fn: R(() => [
|
|
329
|
-
|
|
329
|
+
ne("div", {
|
|
330
330
|
"data-testid": `${t.item.key}-label-tooltip`
|
|
331
331
|
}, [
|
|
332
332
|
pe(W.$slots, "label-tooltip", {}, () => [
|
|
333
333
|
ue(H(t.item.tooltip), 1)
|
|
334
334
|
], !0)
|
|
335
|
-
], 8,
|
|
335
|
+
], 8, di)
|
|
336
336
|
]),
|
|
337
337
|
key: "0"
|
|
338
338
|
} : void 0
|
|
339
339
|
]), 1024)
|
|
340
340
|
], !0)
|
|
341
|
-
], 8,
|
|
342
|
-
|
|
341
|
+
], 8, ui),
|
|
342
|
+
ne("div", {
|
|
343
343
|
class: "config-card-details-value",
|
|
344
344
|
"data-testid": `${t.item.key}-property-value`
|
|
345
345
|
}, [
|
|
346
346
|
pe(W.$slots, t.item.key, {
|
|
347
347
|
rowValue: t.item.value
|
|
348
348
|
}, () => [
|
|
349
|
-
f.value ? (b(), V("div",
|
|
349
|
+
f.value ? (b(), V("div", mi, [
|
|
350
350
|
(b(), G(Ge(w.value.tag), gn(hn(w.value.attrs)), {
|
|
351
351
|
default: R(() => [
|
|
352
352
|
w.value.additionalComponent === "KBadge" ? (b(), V("div", {
|
|
353
353
|
key: 0,
|
|
354
354
|
"data-testid": `${t.item.key}-badge-tags`
|
|
355
355
|
}, [
|
|
356
|
-
(b(!0), V(
|
|
356
|
+
(b(!0), V(_e, null, Ke(t.item.value, (D, de) => (b(), G(F, {
|
|
357
357
|
key: `${t.item.key}-badge-tag-${de}`,
|
|
358
358
|
class: "config-badge",
|
|
359
359
|
"data-testid": `${t.item.key}-badge-tag-${de}`,
|
|
@@ -365,22 +365,22 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
365
365
|
]),
|
|
366
366
|
_: 2
|
|
367
367
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
368
|
-
], 8,
|
|
368
|
+
], 8, yi)) : w.value.additionalComponent === "KCopy" ? (b(), V("div", {
|
|
369
369
|
key: 1,
|
|
370
370
|
class: "copy-uuid-array",
|
|
371
371
|
"data-testid": `${t.item.key}-copy-uuid-array`
|
|
372
372
|
}, [
|
|
373
|
-
(b(!0), V(
|
|
373
|
+
(b(!0), V(_e, null, Ke(t.item.value, (D, de) => (b(), G(_, tt({ ref_for: !0 }, w.value.childAttrs, {
|
|
374
374
|
key: `${t.item.key}-copy-uuid-${de}`,
|
|
375
375
|
"data-testid": `${t.item.key}-copy-uuid-${de}`,
|
|
376
376
|
text: D
|
|
377
377
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
378
|
-
], 8,
|
|
378
|
+
], 8, gi)) : w.value.additionalComponent === "KMethodBadge" ? (b(), V("div", {
|
|
379
379
|
key: 2,
|
|
380
380
|
class: "method-badge-array",
|
|
381
381
|
"data-testid": `${t.item.key}-badge-methods`
|
|
382
382
|
}, [
|
|
383
|
-
(b(!0), V(
|
|
383
|
+
(b(!0), V(_e, null, Ke(t.item.value, (D, de) => (b(), G(F, {
|
|
384
384
|
key: `${t.item.key}-badge-method-${de}`,
|
|
385
385
|
appearance: Object.values(C(In)).includes(D.toLowerCase()) ? D.toLowerCase() : "custom",
|
|
386
386
|
class: "config-badge",
|
|
@@ -391,22 +391,22 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
391
391
|
]),
|
|
392
392
|
_: 2
|
|
393
393
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
394
|
-
], 8,
|
|
394
|
+
], 8, hi)) : w.value.additionalComponent === "JsonCardItem" ? (b(), V("div", {
|
|
395
395
|
key: 3,
|
|
396
396
|
"data-testid": `${i.item.key}-json-array-content`
|
|
397
397
|
}, [
|
|
398
|
-
(b(!0), V(
|
|
398
|
+
(b(!0), V(_e, null, Ke(t.item.value, (D, de) => (b(), G(jt, {
|
|
399
399
|
key: `json-array-item-${de}`,
|
|
400
400
|
index: Number(de),
|
|
401
401
|
"is-array-item": "",
|
|
402
402
|
item: D
|
|
403
403
|
}, null, 8, ["index", "item"]))), 128))
|
|
404
|
-
], 8,
|
|
404
|
+
], 8, vi)) : (b(), G(ae, {
|
|
405
405
|
key: 4,
|
|
406
406
|
text: C($) ? t.item.value : ""
|
|
407
407
|
}, {
|
|
408
408
|
default: R(() => [
|
|
409
|
-
|
|
409
|
+
ne("span", {
|
|
410
410
|
ref_key: "textContent",
|
|
411
411
|
ref: N,
|
|
412
412
|
class: Ee(["attrs-data-text", { truncated: t.truncated }])
|
|
@@ -420,13 +420,13 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
420
420
|
])) : (b(), V("div", {
|
|
421
421
|
key: 0,
|
|
422
422
|
"data-testid": `${t.item.key}-no-value`
|
|
423
|
-
}, " – ", 8,
|
|
423
|
+
}, " – ", 8, pi))
|
|
424
424
|
], !0)
|
|
425
|
-
], 8,
|
|
425
|
+
], 8, fi)
|
|
426
426
|
]);
|
|
427
427
|
};
|
|
428
428
|
}
|
|
429
|
-
}), Ut = /* @__PURE__ */ we(
|
|
429
|
+
}), Ut = /* @__PURE__ */ we(ki, [["__scopeId", "data-v-b6987b3c"]]), Ci = { class: "json-config config-card-code-block" }, Ai = {
|
|
430
430
|
key: 0,
|
|
431
431
|
class: "json-endpoint"
|
|
432
432
|
}, zt = /* @__PURE__ */ ke({
|
|
@@ -474,8 +474,8 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
474
474
|
});
|
|
475
475
|
return (s, y) => {
|
|
476
476
|
const r = ie("KBadge"), u = ie("KCodeBlock");
|
|
477
|
-
return b(), V("div",
|
|
478
|
-
t.fetcherUrl ? (b(), V("div",
|
|
477
|
+
return b(), V("div", Ci, [
|
|
478
|
+
t.fetcherUrl ? (b(), V("div", Ai, [
|
|
479
479
|
Z(r, { appearance: t.requestMethod }, {
|
|
480
480
|
default: R(() => [
|
|
481
481
|
ue(H(t.requestMethod), 1)
|
|
@@ -489,7 +489,7 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
489
489
|
"single-line": "",
|
|
490
490
|
theme: "dark"
|
|
491
491
|
}, null, 8, ["code"])
|
|
492
|
-
])) :
|
|
492
|
+
])) : ee("", !0),
|
|
493
493
|
t.entityRecord ? (b(), G(u, {
|
|
494
494
|
key: 1,
|
|
495
495
|
id: "json-codeblock",
|
|
@@ -500,20 +500,20 @@ const ui = { class: "config-card-details-row" }, di = ["data-testid"], fi = ["da
|
|
|
500
500
|
language: "json",
|
|
501
501
|
theme: "dark",
|
|
502
502
|
onCodeBlockRender: C(We)
|
|
503
|
-
}, null, 8, ["class", "code", "copy-code", "onCodeBlockRender"])) :
|
|
503
|
+
}, null, 8, ["class", "code", "copy-code", "onCodeBlockRender"])) : ee("", !0)
|
|
504
504
|
]);
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
/*! js-yaml 4.2.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
509
|
-
var
|
|
510
|
-
if (o && typeof o == "object" || typeof o == "function") for (var s =
|
|
509
|
+
var Si = Object.create, Ht = Object.defineProperty, Ti = Object.getOwnPropertyDescriptor, $i = Object.getOwnPropertyNames, wi = Object.getPrototypeOf, xi = Object.prototype.hasOwnProperty, Ce = (t, o) => () => (o || (t((o = { exports: {} }).exports, o), t = null), o.exports), _i = (t, o, i, l) => {
|
|
510
|
+
if (o && typeof o == "object" || typeof o == "function") for (var s = $i(o), y = 0, r = s.length, u; y < r; y++)
|
|
511
511
|
u = s[y], !xi.call(t, u) && u !== i && Ht(t, u, {
|
|
512
512
|
get: ((p) => o[p]).bind(null, u),
|
|
513
|
-
enumerable: !(l =
|
|
513
|
+
enumerable: !(l = Ti(o, u)) || l.enumerable
|
|
514
514
|
});
|
|
515
515
|
return t;
|
|
516
|
-
},
|
|
516
|
+
}, Ei = (t, o, i) => (i = t != null ? Si(wi(t)) : {}, _i(Ht(i, "default", {
|
|
517
517
|
value: t,
|
|
518
518
|
enumerable: !0
|
|
519
519
|
}), t)), nt = /* @__PURE__ */ Ce((t, o) => {
|
|
@@ -559,7 +559,7 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
559
559
|
l.prototype = Object.create(Error.prototype), l.prototype.constructor = l, l.prototype.toString = function(y) {
|
|
560
560
|
return this.name + ": " + i(this, y);
|
|
561
561
|
}, o.exports = l;
|
|
562
|
-
}),
|
|
562
|
+
}), Ii = /* @__PURE__ */ Ce((t, o) => {
|
|
563
563
|
var i = nt();
|
|
564
564
|
function l(r, u, p, f, g) {
|
|
565
565
|
let a = "", c = "";
|
|
@@ -634,7 +634,7 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
634
634
|
}, this.instanceOf = p.instanceOf || null, this.predicate = p.predicate || null, this.represent = p.represent || null, this.representName = p.representName || null, this.defaultStyle = p.defaultStyle || null, this.multi = p.multi || !1, this.styleAliases = y(p.styleAliases || null), s.indexOf(this.kind) === -1) throw new i('Unknown kind "' + this.kind + '" is specified for "' + u + '" YAML type.');
|
|
635
635
|
}
|
|
636
636
|
o.exports = r;
|
|
637
|
-
}),
|
|
637
|
+
}), Yt = /* @__PURE__ */ Ce((t, o) => {
|
|
638
638
|
var i = it(), l = Oe();
|
|
639
639
|
function s(u, p) {
|
|
640
640
|
const f = [];
|
|
@@ -684,7 +684,7 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
684
684
|
const a = Object.create(r.prototype);
|
|
685
685
|
return a.implicit = (this.implicit || []).concat(f), a.explicit = (this.explicit || []).concat(g), a.compiledImplicit = s(a, "implicit"), a.compiledExplicit = s(a, "explicit"), a.compiledTypeMap = y(a.compiledImplicit, a.compiledExplicit), a;
|
|
686
686
|
}, o.exports = r;
|
|
687
|
-
}),
|
|
687
|
+
}), Vt = /* @__PURE__ */ Ce((t, o) => {
|
|
688
688
|
o.exports = new (Oe())("tag:yaml.org,2002:str", {
|
|
689
689
|
kind: "scalar",
|
|
690
690
|
construct: function(i) {
|
|
@@ -706,8 +706,8 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
706
706
|
}
|
|
707
707
|
});
|
|
708
708
|
}), Jt = /* @__PURE__ */ Ce((t, o) => {
|
|
709
|
-
o.exports = new (
|
|
710
|
-
|
|
709
|
+
o.exports = new (Yt())({ explicit: [
|
|
710
|
+
Vt(),
|
|
711
711
|
Wt(),
|
|
712
712
|
Gt()
|
|
713
713
|
] });
|
|
@@ -1094,8 +1094,8 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1094
1094
|
sn()
|
|
1095
1095
|
]
|
|
1096
1096
|
});
|
|
1097
|
-
}),
|
|
1098
|
-
var i = nt(), l = it(), s =
|
|
1097
|
+
}), Oi = /* @__PURE__ */ Ce((t, o) => {
|
|
1098
|
+
var i = nt(), l = it(), s = Ii(), y = Tt(), r = Object.prototype.hasOwnProperty, u = 1, p = 2, f = 3, g = 4, a = 1, c = 2, v = 3, P = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, w = /[\x85\u2028\u2029]/, B = /[,\[\]{}]/, N = /^(?:!|!!|![0-9A-Za-z-]+!)$/, E = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
1099
1099
|
function $(e) {
|
|
1100
1100
|
return Object.prototype.toString.call(e);
|
|
1101
1101
|
}
|
|
@@ -1111,12 +1111,12 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1111
1111
|
function q(e) {
|
|
1112
1112
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function F(e) {
|
|
1115
1115
|
if (e >= 48 && e <= 57) return e - 48;
|
|
1116
1116
|
const d = e | 32;
|
|
1117
1117
|
return d >= 97 && d <= 102 ? d - 97 + 10 : -1;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function _(e) {
|
|
1120
1120
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1121
1121
|
}
|
|
1122
1122
|
function D(e) {
|
|
@@ -1192,7 +1192,7 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1192
1192
|
};
|
|
1193
1193
|
return k.snippet = s(k), new l(d, k);
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function M(e, d) {
|
|
1196
1196
|
throw re(e, d);
|
|
1197
1197
|
}
|
|
1198
1198
|
function Se(e, d) {
|
|
@@ -1246,21 +1246,21 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1246
1246
|
}
|
|
1247
1247
|
var qe = {
|
|
1248
1248
|
YAML: function(d, k, T) {
|
|
1249
|
-
d.version !== null &&
|
|
1249
|
+
d.version !== null && M(d, "duplication of %YAML directive"), T.length !== 1 && M(d, "YAML directive accepts exactly one argument");
|
|
1250
1250
|
const h = /^([0-9]+)\.([0-9]+)$/.exec(T[0]);
|
|
1251
|
-
h === null &&
|
|
1251
|
+
h === null && M(d, "ill-formed argument of the YAML directive");
|
|
1252
1252
|
const K = parseInt(h[1], 10), n = parseInt(h[2], 10);
|
|
1253
|
-
K !== 1 &&
|
|
1253
|
+
K !== 1 && M(d, "unacceptable YAML version of the document"), d.version = T[0], d.checkLineBreaks = n < 2, n !== 1 && n !== 2 && Se(d, "unsupported YAML version of the document");
|
|
1254
1254
|
},
|
|
1255
1255
|
TAG: function(d, k, T) {
|
|
1256
1256
|
let h;
|
|
1257
|
-
T.length !== 2 &&
|
|
1257
|
+
T.length !== 2 && M(d, "TAG directive accepts exactly two arguments");
|
|
1258
1258
|
const K = T[0];
|
|
1259
|
-
h = T[1], N.test(K) ||
|
|
1259
|
+
h = T[1], N.test(K) || M(d, "ill-formed tag handle (first argument) of the TAG directive"), r.call(d.tagMap, K) && M(d, 'there is a previously declared suffix for "' + K + '" tag handle'), E.test(h) || M(d, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1260
1260
|
try {
|
|
1261
1261
|
h = decodeURIComponent(h);
|
|
1262
1262
|
} catch {
|
|
1263
|
-
|
|
1263
|
+
M(d, "tag prefix is malformed: " + h);
|
|
1264
1264
|
}
|
|
1265
1265
|
d.tagMap[K] = h;
|
|
1266
1266
|
}
|
|
@@ -1270,41 +1270,41 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1270
1270
|
const h = e.input.slice(d, k);
|
|
1271
1271
|
if (T) for (let K = 0, n = h.length; K < n; K += 1) {
|
|
1272
1272
|
const m = h.charCodeAt(K);
|
|
1273
|
-
m === 9 || m >= 32 && m <= 1114111 ||
|
|
1273
|
+
m === 9 || m >= 32 && m <= 1114111 || M(e, "expected valid JSON character");
|
|
1274
1274
|
}
|
|
1275
|
-
else P.test(h) &&
|
|
1275
|
+
else P.test(h) && M(e, "the stream contains non-printable characters");
|
|
1276
1276
|
e.result += h;
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
1279
|
function De(e, d, k, T) {
|
|
1280
|
-
i.isObject(k) ||
|
|
1280
|
+
i.isObject(k) || M(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
1281
1281
|
const h = Object.keys(k);
|
|
1282
1282
|
for (let K = 0, n = h.length; K < n; K += 1) {
|
|
1283
1283
|
const m = h[K];
|
|
1284
1284
|
r.call(d, m) || (oe(d, m, k[m]), T[m] = !0);
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function Fe(e, d, k, T, h, K, n, m, O) {
|
|
1288
1288
|
if (Array.isArray(h)) {
|
|
1289
1289
|
h = Array.prototype.slice.call(h);
|
|
1290
1290
|
for (let A = 0, S = h.length; A < S; A += 1)
|
|
1291
|
-
Array.isArray(h[A]) &&
|
|
1291
|
+
Array.isArray(h[A]) && M(e, "nested arrays are not supported inside keys"), typeof h == "object" && $(h[A]) === "[object Object]" && (h[A] = "[object Object]");
|
|
1292
1292
|
}
|
|
1293
1293
|
if (typeof h == "object" && $(h) === "[object Object]" && (h = "[object Object]"), h = String(h), d === null && (d = {}), T === "tag:yaml.org,2002:merge") if (Array.isArray(K)) {
|
|
1294
|
-
K.length > e.maxMergeSeqLength &&
|
|
1294
|
+
K.length > e.maxMergeSeqLength && M(e, "merge sequence length exceeded maxMergeSeqLength (" + e.maxMergeSeqLength + ")");
|
|
1295
1295
|
const A = /* @__PURE__ */ new Set();
|
|
1296
1296
|
for (let S = 0, I = K.length; S < I; S += 1) {
|
|
1297
|
-
const
|
|
1298
|
-
A.has(
|
|
1297
|
+
const x = K[S];
|
|
1298
|
+
A.has(x) || (A.add(x), De(e, d, x, k));
|
|
1299
1299
|
}
|
|
1300
1300
|
} else De(e, d, K, k);
|
|
1301
1301
|
else
|
|
1302
|
-
!e.json && !r.call(k, h) && r.call(d, h) && (e.line = n || e.line, e.lineStart = m || e.lineStart, e.position = O || e.position,
|
|
1302
|
+
!e.json && !r.call(k, h) && r.call(d, h) && (e.line = n || e.line, e.lineStart = m || e.lineStart, e.position = O || e.position, M(e, "duplicated mapping key")), oe(d, h, K), delete k[h];
|
|
1303
1303
|
return d;
|
|
1304
1304
|
}
|
|
1305
1305
|
function ze(e) {
|
|
1306
1306
|
const d = e.input.charCodeAt(e.position);
|
|
1307
|
-
d === 10 ? e.position++ : d === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1307
|
+
d === 10 ? e.position++ : d === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : M(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1308
1308
|
}
|
|
1309
1309
|
function Te(e, d, k) {
|
|
1310
1310
|
let T = 0, h = e.input.charCodeAt(e.position);
|
|
@@ -1325,7 +1325,7 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1325
1325
|
let d = e.position, k = e.input.charCodeAt(d);
|
|
1326
1326
|
return !!((k === 45 || k === 46) && k === e.input.charCodeAt(d + 1) && k === e.input.charCodeAt(d + 2) && (d += 3, k = e.input.charCodeAt(d), k === 0 || ae(k)));
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function Me(e, d) {
|
|
1329
1329
|
d === 1 ? e.result += " " : d > 1 && (e.result += i.repeat(`
|
|
1330
1330
|
`, d - 1));
|
|
1331
1331
|
}
|
|
@@ -1335,13 +1335,13 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1335
1335
|
let I = e.input.charCodeAt(e.position);
|
|
1336
1336
|
if (ae(I) || q(I) || I === 35 || I === 38 || I === 42 || I === 33 || I === 124 || I === 62 || I === 39 || I === 34 || I === 37 || I === 64 || I === 96) return !1;
|
|
1337
1337
|
if (I === 63 || I === 45) {
|
|
1338
|
-
const
|
|
1339
|
-
if (ae(
|
|
1338
|
+
const x = e.input.charCodeAt(e.position + 1);
|
|
1339
|
+
if (ae(x) || k && q(x)) return !1;
|
|
1340
1340
|
}
|
|
1341
1341
|
for (e.kind = "scalar", e.result = "", T = h = e.position, K = !1; I !== 0; ) {
|
|
1342
1342
|
if (I === 58) {
|
|
1343
|
-
const
|
|
1344
|
-
if (ae(
|
|
1343
|
+
const x = e.input.charCodeAt(e.position + 1);
|
|
1344
|
+
if (ae(x) || k && q(x)) break;
|
|
1345
1345
|
} else if (I === 35) {
|
|
1346
1346
|
if (ae(e.input.charCodeAt(e.position - 1))) break;
|
|
1347
1347
|
} else {
|
|
@@ -1355,7 +1355,7 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1355
1355
|
break;
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
K && (Be(e, T, h, !1),
|
|
1358
|
+
K && (Be(e, T, h, !1), Me(e, e.line - n), T = h = e.position, K = !1), J(I) || (h = e.position + 1), I = e.input.charCodeAt(++e.position);
|
|
1359
1359
|
}
|
|
1360
1360
|
return Be(e, T, h, !1), e.result ? !0 : (e.kind = A, e.result = S, !1);
|
|
1361
1361
|
}
|
|
@@ -1366,8 +1366,8 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1366
1366
|
if (Be(e, k, e.position, !0), h = e.input.charCodeAt(++e.position), h === 39)
|
|
1367
1367
|
k = e.position, e.position++, T = e.position;
|
|
1368
1368
|
else return !0;
|
|
1369
|
-
else W(h) ? (Be(e, k, T, !0),
|
|
1370
|
-
|
|
1369
|
+
else W(h) ? (Be(e, k, T, !0), Me(e, Te(e, !1, d)), k = T = e.position) : e.position === e.lineStart && He(e) ? M(e, "unexpected end of the document within a single quoted scalar") : (e.position++, J(h) || (T = e.position));
|
|
1370
|
+
M(e, "unexpected end of the stream within a single quoted scalar");
|
|
1371
1371
|
}
|
|
1372
1372
|
function Je(e, d) {
|
|
1373
1373
|
let k, T, h, K = e.input.charCodeAt(e.position);
|
|
@@ -1379,36 +1379,36 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1379
1379
|
if (Be(e, k, e.position, !0), K = e.input.charCodeAt(++e.position), W(K)) Te(e, !1, d);
|
|
1380
1380
|
else if (K < 256 && ce[K])
|
|
1381
1381
|
e.result += L[K], e.position++;
|
|
1382
|
-
else if ((h =
|
|
1382
|
+
else if ((h = _(K)) > 0) {
|
|
1383
1383
|
let n = h, m = 0;
|
|
1384
1384
|
for (; n > 0; n--)
|
|
1385
|
-
K = e.input.charCodeAt(++e.position), (h =
|
|
1385
|
+
K = e.input.charCodeAt(++e.position), (h = F(K)) >= 0 ? m = (m << 4) + h : M(e, "expected hexadecimal character");
|
|
1386
1386
|
e.result += fe(m), e.position++;
|
|
1387
|
-
} else
|
|
1387
|
+
} else M(e, "unknown escape sequence");
|
|
1388
1388
|
k = T = e.position;
|
|
1389
|
-
} else W(K) ? (Be(e, k, T, !0),
|
|
1389
|
+
} else W(K) ? (Be(e, k, T, !0), Me(e, Te(e, !1, d)), k = T = e.position) : e.position === e.lineStart && He(e) ? M(e, "unexpected end of the document within a double quoted scalar") : (e.position++, J(K) || (T = e.position));
|
|
1390
1390
|
}
|
|
1391
|
-
|
|
1391
|
+
M(e, "unexpected end of the stream within a double quoted scalar");
|
|
1392
1392
|
}
|
|
1393
1393
|
function lt(e, d) {
|
|
1394
1394
|
let k = !0, T, h, K;
|
|
1395
1395
|
const n = e.tag;
|
|
1396
1396
|
let m;
|
|
1397
1397
|
const O = e.anchor;
|
|
1398
|
-
let A, S, I,
|
|
1398
|
+
let A, S, I, x;
|
|
1399
1399
|
const Y = /* @__PURE__ */ Object.create(null);
|
|
1400
|
-
let z, X,
|
|
1400
|
+
let z, X, te, me = e.input.charCodeAt(e.position);
|
|
1401
1401
|
if (me === 91)
|
|
1402
|
-
A = 93,
|
|
1402
|
+
A = 93, x = !1, m = [];
|
|
1403
1403
|
else if (me === 123)
|
|
1404
|
-
A = 125,
|
|
1404
|
+
A = 125, x = !0, m = {};
|
|
1405
1405
|
else return !1;
|
|
1406
1406
|
for (e.anchor !== null && le(e, e.anchor, m), me = e.input.charCodeAt(++e.position); me !== 0; ) {
|
|
1407
1407
|
if (Te(e, !0, d), me = e.input.charCodeAt(e.position), me === A)
|
|
1408
|
-
return e.position++, e.tag = n, e.anchor = O, e.kind =
|
|
1409
|
-
k ? me === 44 &&
|
|
1408
|
+
return e.position++, e.tag = n, e.anchor = O, e.kind = x ? "mapping" : "sequence", e.result = m, !0;
|
|
1409
|
+
k ? me === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), X = z = te = null, S = I = !1, me === 63 && ae(e.input.charCodeAt(e.position + 1)) && (S = I = !0, e.position++, Te(e, !0, d)), T = e.line, h = e.lineStart, K = e.position, Ne(e, d, u, !1, !0), X = e.tag, z = e.result, Te(e, !0, d), me = e.input.charCodeAt(e.position), (I || e.line === T) && me === 58 && (S = !0, me = e.input.charCodeAt(++e.position), Te(e, !0, d), Ne(e, d, u, !1, !0), te = e.result), x ? Fe(e, m, Y, X, z, te, T, h, K) : S ? m.push(Fe(e, null, Y, X, z, te, T, h, K)) : m.push(z), Te(e, !0, d), me = e.input.charCodeAt(e.position), me === 44 ? (k = !0, me = e.input.charCodeAt(++e.position)) : k = !1;
|
|
1410
1410
|
}
|
|
1411
|
-
|
|
1411
|
+
M(e, "unexpected end of the stream within a flow collection");
|
|
1412
1412
|
}
|
|
1413
1413
|
function at(e, d) {
|
|
1414
1414
|
let k, T = a, h = !1, K = !1, n = d, m = 0, O = !1, A, S = e.input.charCodeAt(e.position);
|
|
@@ -1416,8 +1416,8 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1416
1416
|
else if (S === 62) k = !0;
|
|
1417
1417
|
else return !1;
|
|
1418
1418
|
for (e.kind = "scalar", e.result = ""; S !== 0; )
|
|
1419
|
-
if (S = e.input.charCodeAt(++e.position), S === 43 || S === 45) a === T ? T = S === 43 ? v : c :
|
|
1420
|
-
else if ((A = D(S)) >= 0) A === 0 ?
|
|
1419
|
+
if (S = e.input.charCodeAt(++e.position), S === 43 || S === 45) a === T ? T = S === 43 ? v : c : M(e, "repeat of a chomping mode identifier");
|
|
1420
|
+
else if ((A = D(S)) >= 0) A === 0 ? M(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : K ? M(e, "repeat of an indentation width identifier") : (n = d + A - 1, K = !0);
|
|
1421
1421
|
else break;
|
|
1422
1422
|
if (J(S)) {
|
|
1423
1423
|
do
|
|
@@ -1434,7 +1434,7 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1434
1434
|
m++;
|
|
1435
1435
|
continue;
|
|
1436
1436
|
}
|
|
1437
|
-
if (!K && n === 0 &&
|
|
1437
|
+
if (!K && n === 0 && M(e, "missing indentation for block scalar"), e.lineIndent < n) {
|
|
1438
1438
|
T === v ? e.result += i.repeat(`
|
|
1439
1439
|
`, h ? 1 + m : m) : T === a && h && (e.result += `
|
|
1440
1440
|
`);
|
|
@@ -1457,13 +1457,13 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1457
1457
|
if (e.firstTabInLine !== -1) return !1;
|
|
1458
1458
|
e.anchor !== null && le(e, e.anchor, h);
|
|
1459
1459
|
let n = e.input.charCodeAt(e.position);
|
|
1460
|
-
for (; n !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1460
|
+
for (; n !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), !(n !== 45 || !ae(e.input.charCodeAt(e.position + 1)))); ) {
|
|
1461
1461
|
if (K = !0, e.position++, Te(e, !0, -1) && e.lineIndent <= d) {
|
|
1462
1462
|
h.push(null), n = e.input.charCodeAt(e.position);
|
|
1463
1463
|
continue;
|
|
1464
1464
|
}
|
|
1465
1465
|
const m = e.line;
|
|
1466
|
-
if (Ne(e, d, f, !1, !0), h.push(e.result), Te(e, !0, -1), n = e.input.charCodeAt(e.position), (e.line === m || e.lineIndent > d) && n !== 0)
|
|
1466
|
+
if (Ne(e, d, f, !1, !0), h.push(e.result), Te(e, !0, -1), n = e.input.charCodeAt(e.position), (e.line === m || e.lineIndent > d) && n !== 0) M(e, "bad indentation of a sequence entry");
|
|
1467
1467
|
else if (e.lineIndent < d) break;
|
|
1468
1468
|
}
|
|
1469
1469
|
return K ? (e.tag = k, e.anchor = T, e.kind = "sequence", e.result = h, !0) : !1;
|
|
@@ -1471,63 +1471,63 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1471
1471
|
function ct(e, d, k) {
|
|
1472
1472
|
let T, h, K, n;
|
|
1473
1473
|
const m = e.tag, O = e.anchor, A = {}, S = /* @__PURE__ */ Object.create(null);
|
|
1474
|
-
let I = null,
|
|
1474
|
+
let I = null, x = null, Y = null, z = !1, X = !1;
|
|
1475
1475
|
if (e.firstTabInLine !== -1) return !1;
|
|
1476
1476
|
e.anchor !== null && le(e, e.anchor, A);
|
|
1477
|
-
let
|
|
1478
|
-
for (;
|
|
1479
|
-
!z && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1477
|
+
let te = e.input.charCodeAt(e.position);
|
|
1478
|
+
for (; te !== 0; ) {
|
|
1479
|
+
!z && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation"));
|
|
1480
1480
|
const me = e.input.charCodeAt(e.position + 1), Ae = e.line;
|
|
1481
|
-
if ((
|
|
1482
|
-
|
|
1481
|
+
if ((te === 63 || te === 58) && ae(me))
|
|
1482
|
+
te === 63 ? (z && (Fe(e, A, S, I, x, null, h, K, n), I = x = Y = null), X = !0, z = !0, T = !0) : z ? (z = !1, T = !0) : M(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, te = me;
|
|
1483
1483
|
else {
|
|
1484
1484
|
if (h = e.line, K = e.lineStart, n = e.position, !Ne(e, k, p, !1, !0)) break;
|
|
1485
1485
|
if (e.line === Ae) {
|
|
1486
|
-
for (
|
|
1487
|
-
if (
|
|
1488
|
-
|
|
1489
|
-
else if (X)
|
|
1486
|
+
for (te = e.input.charCodeAt(e.position); J(te); ) te = e.input.charCodeAt(++e.position);
|
|
1487
|
+
if (te === 58)
|
|
1488
|
+
te = e.input.charCodeAt(++e.position), ae(te) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), z && (Fe(e, A, S, I, x, null, h, K, n), I = x = Y = null), X = !0, z = !1, T = !1, I = e.tag, x = e.result;
|
|
1489
|
+
else if (X) M(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1490
1490
|
else
|
|
1491
1491
|
return e.tag = m, e.anchor = O, !0;
|
|
1492
|
-
} else if (X)
|
|
1492
|
+
} else if (X) M(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1493
1493
|
else
|
|
1494
1494
|
return e.tag = m, e.anchor = O, !0;
|
|
1495
1495
|
}
|
|
1496
|
-
if ((e.line === Ae || e.lineIndent > d) && (z && (h = e.line, K = e.lineStart, n = e.position), Ne(e, d, g, !0, T) && (z ?
|
|
1496
|
+
if ((e.line === Ae || e.lineIndent > d) && (z && (h = e.line, K = e.lineStart, n = e.position), Ne(e, d, g, !0, T) && (z ? x = e.result : Y = e.result), z || (Fe(e, A, S, I, x, Y, h, K, n), I = x = Y = null), Te(e, !0, -1), te = e.input.charCodeAt(e.position)), (e.line === Ae || e.lineIndent > d) && te !== 0) M(e, "bad indentation of a mapping entry");
|
|
1497
1497
|
else if (e.lineIndent < d) break;
|
|
1498
1498
|
}
|
|
1499
|
-
return z &&
|
|
1499
|
+
return z && Fe(e, A, S, I, x, null, h, K, n), X && (e.tag = m, e.anchor = O, e.kind = "mapping", e.result = A), X;
|
|
1500
1500
|
}
|
|
1501
1501
|
function gt(e) {
|
|
1502
1502
|
let d = !1, k = !1, T, h, K = e.input.charCodeAt(e.position);
|
|
1503
1503
|
if (K !== 33) return !1;
|
|
1504
|
-
e.tag !== null &&
|
|
1504
|
+
e.tag !== null && M(e, "duplication of a tag property"), K = e.input.charCodeAt(++e.position), K === 60 ? (d = !0, K = e.input.charCodeAt(++e.position)) : K === 33 ? (k = !0, T = "!!", K = e.input.charCodeAt(++e.position)) : T = "!";
|
|
1505
1505
|
let n = e.position;
|
|
1506
1506
|
if (d) {
|
|
1507
1507
|
do
|
|
1508
1508
|
K = e.input.charCodeAt(++e.position);
|
|
1509
1509
|
while (K !== 0 && K !== 62);
|
|
1510
|
-
e.position < e.length ? (h = e.input.slice(n, e.position), K = e.input.charCodeAt(++e.position)) :
|
|
1510
|
+
e.position < e.length ? (h = e.input.slice(n, e.position), K = e.input.charCodeAt(++e.position)) : M(e, "unexpected end of the stream within a verbatim tag");
|
|
1511
1511
|
} else {
|
|
1512
1512
|
for (; K !== 0 && !ae(K); )
|
|
1513
|
-
K === 33 && (k ?
|
|
1514
|
-
h = e.input.slice(n, e.position), B.test(h) &&
|
|
1513
|
+
K === 33 && (k ? M(e, "tag suffix cannot contain exclamation marks") : (T = e.input.slice(n - 1, e.position + 1), N.test(T) || M(e, "named tag handle cannot contain such characters"), k = !0, n = e.position + 1)), K = e.input.charCodeAt(++e.position);
|
|
1514
|
+
h = e.input.slice(n, e.position), B.test(h) && M(e, "tag suffix cannot contain flow indicator characters");
|
|
1515
1515
|
}
|
|
1516
|
-
h && !E.test(h) &&
|
|
1516
|
+
h && !E.test(h) && M(e, "tag name cannot contain such characters: " + h);
|
|
1517
1517
|
try {
|
|
1518
1518
|
h = decodeURIComponent(h);
|
|
1519
1519
|
} catch {
|
|
1520
|
-
|
|
1520
|
+
M(e, "tag name is malformed: " + h);
|
|
1521
1521
|
}
|
|
1522
|
-
return d ? e.tag = h : r.call(e.tagMap, T) ? e.tag = e.tagMap[T] + h : T === "!" ? e.tag = "!" + h : T === "!!" ? e.tag = "tag:yaml.org,2002:" + h :
|
|
1522
|
+
return d ? e.tag = h : r.call(e.tagMap, T) ? e.tag = e.tagMap[T] + h : T === "!" ? e.tag = "!" + h : T === "!!" ? e.tag = "tag:yaml.org,2002:" + h : M(e, 'undeclared tag handle "' + T + '"'), !0;
|
|
1523
1523
|
}
|
|
1524
1524
|
function st(e) {
|
|
1525
1525
|
let d = e.input.charCodeAt(e.position);
|
|
1526
1526
|
if (d !== 38) return !1;
|
|
1527
|
-
e.anchor !== null &&
|
|
1527
|
+
e.anchor !== null && M(e, "duplication of an anchor property"), d = e.input.charCodeAt(++e.position);
|
|
1528
1528
|
const k = e.position;
|
|
1529
1529
|
for (; d !== 0 && !ae(d) && !q(d); ) d = e.input.charCodeAt(++e.position);
|
|
1530
|
-
return e.position === k &&
|
|
1530
|
+
return e.position === k && M(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(k, e.position), !0;
|
|
1531
1531
|
}
|
|
1532
1532
|
function ut(e) {
|
|
1533
1533
|
let d = e.input.charCodeAt(e.position);
|
|
@@ -1535,35 +1535,35 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1535
1535
|
d = e.input.charCodeAt(++e.position);
|
|
1536
1536
|
const k = e.position;
|
|
1537
1537
|
for (; d !== 0 && !ae(d) && !q(d); ) d = e.input.charCodeAt(++e.position);
|
|
1538
|
-
e.position === k &&
|
|
1538
|
+
e.position === k && M(e, "name of an alias node must contain at least one character");
|
|
1539
1539
|
const T = e.input.slice(k, e.position);
|
|
1540
|
-
return r.call(e.anchorMap, T) ||
|
|
1540
|
+
return r.call(e.anchorMap, T) || M(e, 'unidentified alias "' + T + '"'), e.result = e.anchorMap[T], Te(e, !0, -1), !0;
|
|
1541
1541
|
}
|
|
1542
1542
|
function ht(e, d, k, T) {
|
|
1543
1543
|
const h = ye(e);
|
|
1544
1544
|
return Q(e), Re(e, d), e.tag = null, e.anchor = null, e.kind = null, e.result = null, ct(e, k, T) && e.kind === "mapping" ? (ve(e), !0) : (he(e), Re(e, h), !1);
|
|
1545
1545
|
}
|
|
1546
1546
|
function Ne(e, d, k, T, h) {
|
|
1547
|
-
let K, n, m = 1, O = !1, A = !1, S = null, I,
|
|
1548
|
-
e.depth >= e.maxDepth &&
|
|
1547
|
+
let K, n, m = 1, O = !1, A = !1, S = null, I, x, Y;
|
|
1548
|
+
e.depth >= e.maxDepth && M(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 z = K = n = g === k || f === k;
|
|
1550
1550
|
if (T && Te(e, !0, -1) && (O = !0, e.lineIndent > d ? m = 1 : e.lineIndent === d ? m = 0 : e.lineIndent < d && (m = -1)), m === 1) for (; ; ) {
|
|
1551
|
-
const X = e.input.charCodeAt(e.position),
|
|
1551
|
+
const X = e.input.charCodeAt(e.position), te = ye(e);
|
|
1552
1552
|
if (O && (X === 33 && e.tag !== null || X === 38 && e.anchor !== null) || !gt(e) && !st(e)) break;
|
|
1553
|
-
S === null && (S =
|
|
1553
|
+
S === null && (S = te), Te(e, !0, -1) ? (O = !0, n = z, e.lineIndent > d ? m = 1 : e.lineIndent === d ? m = 0 : e.lineIndent < d && (m = -1)) : n = !1;
|
|
1554
1554
|
}
|
|
1555
1555
|
if (n && (n = O || h), m === 1 || g === k)
|
|
1556
|
-
if (u === k || p === k ?
|
|
1556
|
+
if (u === k || p === k ? x = d : x = d + 1, Y = e.position - e.lineStart, m === 1) if (n && (Pe(e, Y) || ct(e, Y, x)) || lt(e, x)) A = !0;
|
|
1557
1557
|
else {
|
|
1558
1558
|
const X = e.input.charCodeAt(e.position);
|
|
1559
|
-
S !== null && z && !n && X !== 124 && X !== 62 && ht(e, S, S.position - S.lineStart,
|
|
1559
|
+
S !== null && z && !n && X !== 124 && X !== 62 && ht(e, S, S.position - S.lineStart, x) || K && at(e, x) || rt(e, x) || Je(e, x) ? A = !0 : ut(e) ? (A = !0, (e.tag !== null || e.anchor !== null) && M(e, "alias node should not have any properties")) : ot(e, x, u === k) && (A = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && le(e, e.anchor, e.result);
|
|
1560
1560
|
}
|
|
1561
1561
|
else m === 0 && (A = n && Pe(e, Y));
|
|
1562
1562
|
if (e.tag === null)
|
|
1563
1563
|
e.anchor !== null && le(e, e.anchor, e.result);
|
|
1564
1564
|
else if (e.tag === "?") {
|
|
1565
|
-
e.result !== null && e.kind !== "scalar" &&
|
|
1566
|
-
for (let X = 0,
|
|
1565
|
+
e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"');
|
|
1566
|
+
for (let X = 0, te = e.implicitTypes.length; X < te; X += 1)
|
|
1567
1567
|
if (I = e.implicitTypes[X], I.resolve(e.result)) {
|
|
1568
1568
|
e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && le(e, e.anchor, e.result);
|
|
1569
1569
|
break;
|
|
@@ -1573,12 +1573,12 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1573
1573
|
else {
|
|
1574
1574
|
I = null;
|
|
1575
1575
|
const X = e.typeMap.multi[e.kind || "fallback"];
|
|
1576
|
-
for (let
|
|
1577
|
-
I = X[
|
|
1576
|
+
for (let te = 0, me = X.length; te < me; te += 1) if (e.tag.slice(0, X[te].tag.length) === X[te].tag) {
|
|
1577
|
+
I = X[te];
|
|
1578
1578
|
break;
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
|
-
I ||
|
|
1581
|
+
I || M(e, "unknown tag !<" + e.tag + ">"), e.result !== null && I.kind !== e.kind && M(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + I.kind + '", not "' + e.kind + '"'), I.resolve(e.result, e.tag) ? (e.result = I.construct(e.result, e.tag), e.anchor !== null && le(e, e.anchor, e.result)) : M(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1582
1582
|
}
|
|
1583
1583
|
return e.listener !== null && e.listener("close", e), e.depth -= 1, e.tag !== null || e.anchor !== null || A;
|
|
1584
1584
|
}
|
|
@@ -1590,7 +1590,7 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1590
1590
|
let h = e.position;
|
|
1591
1591
|
for (; T !== 0 && !ae(T); ) T = e.input.charCodeAt(++e.position);
|
|
1592
1592
|
const K = e.input.slice(h, e.position), n = [];
|
|
1593
|
-
for (K.length < 1 &&
|
|
1593
|
+
for (K.length < 1 && M(e, "directive name must not be less than one character in length"); T !== 0; ) {
|
|
1594
1594
|
for (; J(T); ) T = e.input.charCodeAt(++e.position);
|
|
1595
1595
|
if (T === 35) {
|
|
1596
1596
|
do
|
|
@@ -1604,17 +1604,17 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1604
1604
|
}
|
|
1605
1605
|
T !== 0 && ze(e), r.call(qe, K) ? qe[K](e, K, n) : Se(e, 'unknown document directive "' + K + '"');
|
|
1606
1606
|
}
|
|
1607
|
-
if (Te(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, Te(e, !0, -1)) : k &&
|
|
1607
|
+
if (Te(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, Te(e, !0, -1)) : k && M(e, "directives end mark is expected"), Ne(e, e.lineIndent - 1, g, !1, !0), Te(e, !0, -1), e.checkLineBreaks && w.test(e.input.slice(d, e.position)) && Se(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && He(e)) {
|
|
1608
1608
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, Te(e, !0, -1));
|
|
1609
1609
|
return;
|
|
1610
1610
|
}
|
|
1611
|
-
e.position < e.length - 1 &&
|
|
1611
|
+
e.position < e.length - 1 && M(e, "end of the stream or a document separator is expected");
|
|
1612
1612
|
}
|
|
1613
1613
|
function dt(e, d) {
|
|
1614
1614
|
e = String(e), d = d || {}, 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
1616
|
const k = new U(e, d), T = e.indexOf("\0");
|
|
1617
|
-
for (T !== -1 && (k.position = T,
|
|
1617
|
+
for (T !== -1 && (k.position = T, M(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;
|
|
@@ -1633,8 +1633,8 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
1635
1635
|
o.exports.loadAll = ft, o.exports.load = bt;
|
|
1636
|
-
}),
|
|
1637
|
-
var i = nt(), l = it(), s = Tt(), y = Object.prototype.toString, r = Object.prototype.hasOwnProperty, u = 65279, p = 9, f = 10, g = 13, a = 32, c = 33, v = 34, P = 35, w = 37, B = 38, N = 39, E = 42, $ = 44, W = 45, J = 58, ae = 61, q = 62,
|
|
1636
|
+
}), Bi = /* @__PURE__ */ Ce((t, o) => {
|
|
1637
|
+
var i = nt(), l = it(), s = Tt(), y = Object.prototype.toString, r = Object.prototype.hasOwnProperty, u = 65279, p = 9, f = 10, g = 13, a = 32, c = 33, v = 34, P = 35, w = 37, B = 38, N = 39, E = 42, $ = 44, W = 45, J = 58, ae = 61, q = 62, F = 63, _ = 64, D = 91, de = 93, fe = 96, oe = 123, ce = 124, L = 125, U = {};
|
|
1638
1638
|
U[0] = "\\0", U[7] = "\\a", U[8] = "\\b", U[9] = "\\t", U[10] = "\\n", U[11] = "\\v", U[12] = "\\f", U[13] = "\\r", U[27] = "\\e", U[34] = '\\"', U[92] = "\\\\", U[133] = "\\N", U[160] = "\\_", U[8232] = "\\L", U[8233] = "\\P";
|
|
1639
1639
|
var re = [
|
|
1640
1640
|
"y",
|
|
@@ -1653,15 +1653,15 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1653
1653
|
"off",
|
|
1654
1654
|
"Off",
|
|
1655
1655
|
"OFF"
|
|
1656
|
-
],
|
|
1656
|
+
], M = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
1657
1657
|
function Se(n, m) {
|
|
1658
1658
|
if (m === null) return {};
|
|
1659
1659
|
const O = {}, A = Object.keys(m);
|
|
1660
1660
|
for (let S = 0, I = A.length; S < I; S += 1) {
|
|
1661
|
-
let
|
|
1662
|
-
|
|
1663
|
-
const z = n.compiledTypeMap.fallback[
|
|
1664
|
-
z && r.call(z.styleAliases, Y) && (Y = z.styleAliases[Y]), O[
|
|
1661
|
+
let x = A[S], Y = String(m[x]);
|
|
1662
|
+
x.slice(0, 2) === "!!" && (x = "tag:yaml.org,2002:" + x.slice(2));
|
|
1663
|
+
const z = n.compiledTypeMap.fallback[x];
|
|
1664
|
+
z && r.call(z.styleAliases, Y) && (Y = z.styleAliases[Y]), O[x] = Y;
|
|
1665
1665
|
}
|
|
1666
1666
|
return O;
|
|
1667
1667
|
}
|
|
@@ -1686,11 +1686,11 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1686
1686
|
let A = 0, S = "";
|
|
1687
1687
|
const I = n.length;
|
|
1688
1688
|
for (; A < I; ) {
|
|
1689
|
-
let
|
|
1689
|
+
let x;
|
|
1690
1690
|
const Y = n.indexOf(`
|
|
1691
1691
|
`, A);
|
|
1692
|
-
Y === -1 ? (
|
|
1693
|
-
` && (S += O), S +=
|
|
1692
|
+
Y === -1 ? (x = n.slice(A), A = I) : (x = n.slice(A, Y + 1), A = Y + 1), x.length && x !== `
|
|
1693
|
+
` && (S += O), S += x;
|
|
1694
1694
|
}
|
|
1695
1695
|
return S;
|
|
1696
1696
|
}
|
|
@@ -1708,20 +1708,20 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1708
1708
|
function De(n) {
|
|
1709
1709
|
return n >= 32 && n <= 126 || n >= 161 && n <= 55295 && n !== 8232 && n !== 8233 || n >= 57344 && n <= 65533 && n !== u || n >= 65536 && n <= 1114111;
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Fe(n) {
|
|
1712
1712
|
return De(n) && n !== u && n !== g && n !== f;
|
|
1713
1713
|
}
|
|
1714
1714
|
function ze(n, m, O) {
|
|
1715
|
-
const A =
|
|
1716
|
-
return (O ? A : A && n !== $ && n !== D && n !== de && n !== oe && n !== L) && n !== P && !(m === J && !S) ||
|
|
1715
|
+
const A = Fe(n), S = A && !Be(n);
|
|
1716
|
+
return (O ? A : A && n !== $ && n !== D && n !== de && n !== oe && n !== L) && n !== P && !(m === J && !S) || Fe(m) && !Be(m) && n === P || m === J && S;
|
|
1717
1717
|
}
|
|
1718
1718
|
function Te(n) {
|
|
1719
|
-
return De(n) && n !== u && !Be(n) && n !== W && n !==
|
|
1719
|
+
return De(n) && n !== u && !Be(n) && n !== W && n !== F && n !== J && n !== $ && n !== D && n !== de && n !== oe && n !== L && n !== P && n !== B && n !== E && n !== c && n !== ce && n !== ae && n !== q && n !== N && n !== v && n !== w && n !== _ && n !== fe;
|
|
1720
1720
|
}
|
|
1721
1721
|
function He(n) {
|
|
1722
1722
|
return !Be(n) && n !== J;
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function Me(n, m) {
|
|
1725
1725
|
const O = n.charCodeAt(m);
|
|
1726
1726
|
let A;
|
|
1727
1727
|
return O >= 55296 && O <= 56319 && m + 1 < n.length && (A = n.charCodeAt(m + 1), A >= 56320 && A <= 57343) ? (O - 55296) * 1024 + A - 56320 + 65536 : O;
|
|
@@ -1730,35 +1730,35 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1730
1730
|
return /^\n* /.test(n);
|
|
1731
1731
|
}
|
|
1732
1732
|
var rt = 1, Je = 2, lt = 3, at = 4, Pe = 5;
|
|
1733
|
-
function ct(n, m, O, A, S, I,
|
|
1734
|
-
let z, X = 0,
|
|
1733
|
+
function ct(n, m, O, A, S, I, x, Y) {
|
|
1734
|
+
let z, X = 0, te = null, me = !1, Ae = !1;
|
|
1735
1735
|
const $t = A !== -1;
|
|
1736
|
-
let Qe = -1, Xe = Te(
|
|
1737
|
-
if (m ||
|
|
1738
|
-
if (X =
|
|
1739
|
-
Xe = Xe && ze(X,
|
|
1736
|
+
let Qe = -1, Xe = Te(Me(n, 0)) && He(Me(n, n.length - 1));
|
|
1737
|
+
if (m || x) for (z = 0; z < n.length; X >= 65536 ? z += 2 : z++) {
|
|
1738
|
+
if (X = Me(n, z), !De(X)) return Pe;
|
|
1739
|
+
Xe = Xe && ze(X, te, Y), te = X;
|
|
1740
1740
|
}
|
|
1741
1741
|
else {
|
|
1742
1742
|
for (z = 0; z < n.length; X >= 65536 ? z += 2 : z++) {
|
|
1743
|
-
if (X =
|
|
1743
|
+
if (X = Me(n, z), X === f)
|
|
1744
1744
|
me = !0, $t && (Ae = Ae || z - Qe - 1 > A && n[Qe + 1] !== " ", Qe = z);
|
|
1745
1745
|
else if (!De(X)) return Pe;
|
|
1746
|
-
Xe = Xe && ze(X,
|
|
1746
|
+
Xe = Xe && ze(X, te, Y), te = X;
|
|
1747
1747
|
}
|
|
1748
1748
|
Ae = Ae || $t && z - Qe - 1 > A && n[Qe + 1] !== " ";
|
|
1749
1749
|
}
|
|
1750
|
-
return !me && !Ae ? Xe && !
|
|
1750
|
+
return !me && !Ae ? Xe && !x && !S(n) ? rt : I === ve ? Pe : Je : O > 9 && ot(n) ? Pe : x ? I === ve ? Pe : Je : Ae ? at : lt;
|
|
1751
1751
|
}
|
|
1752
1752
|
function gt(n, m, O, A, S) {
|
|
1753
1753
|
n.dump = function() {
|
|
1754
1754
|
if (m.length === 0) return n.quotingType === ve ? '""' : "''";
|
|
1755
|
-
if (!n.noCompatMode && (re.indexOf(m) !== -1 ||
|
|
1755
|
+
if (!n.noCompatMode && (re.indexOf(m) !== -1 || M.test(m)))
|
|
1756
1756
|
return n.quotingType === ve ? '"' + m + '"' : "'" + m + "'";
|
|
1757
|
-
const I = n.indent * Math.max(1, O),
|
|
1757
|
+
const I = n.indent * Math.max(1, O), x = n.lineWidth === -1 ? -1 : Math.max(Math.min(n.lineWidth, 40), n.lineWidth - I), Y = A || n.flowLevel > -1 && O >= n.flowLevel;
|
|
1758
1758
|
function z(X) {
|
|
1759
1759
|
return qe(n, X);
|
|
1760
1760
|
}
|
|
1761
|
-
switch (ct(m, Y, n.indent,
|
|
1761
|
+
switch (ct(m, Y, n.indent, x, z, n.quotingType, n.forceQuotes && !A, S)) {
|
|
1762
1762
|
case rt:
|
|
1763
1763
|
return m;
|
|
1764
1764
|
case Je:
|
|
@@ -1766,7 +1766,7 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1766
1766
|
case lt:
|
|
1767
1767
|
return "|" + st(m, n.indent) + ut(ye(m, I));
|
|
1768
1768
|
case at:
|
|
1769
|
-
return ">" + st(m, n.indent) + ut(ye(ht(m,
|
|
1769
|
+
return ">" + st(m, n.indent) + ut(ye(ht(m, x), I));
|
|
1770
1770
|
case Pe:
|
|
1771
1771
|
return '"' + vt(m) + '"';
|
|
1772
1772
|
default:
|
|
@@ -1793,9 +1793,9 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1793
1793
|
`);
|
|
1794
1794
|
return Y = Y !== -1 ? Y : n.length, O.lastIndex = Y, Ne(n.slice(0, Y), m);
|
|
1795
1795
|
}(), S = n[0] === `
|
|
1796
|
-
` || n[0] === " ", I,
|
|
1797
|
-
for (;
|
|
1798
|
-
const Y =
|
|
1796
|
+
` || n[0] === " ", I, x;
|
|
1797
|
+
for (; x = O.exec(n); ) {
|
|
1798
|
+
const Y = x[1], z = x[2];
|
|
1799
1799
|
I = z[0] === " ", A += Y + (!S && !I && z !== "" ? `
|
|
1800
1800
|
` : "") + Ne(z, m), S = I;
|
|
1801
1801
|
}
|
|
@@ -1804,18 +1804,18 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1804
1804
|
function Ne(n, m) {
|
|
1805
1805
|
if (n === "" || n[0] === " ") return n;
|
|
1806
1806
|
const O = / [^ ]/g;
|
|
1807
|
-
let A, S = 0, I,
|
|
1807
|
+
let A, S = 0, I, x = 0, Y = 0, z = "";
|
|
1808
1808
|
for (; A = O.exec(n); )
|
|
1809
|
-
Y = A.index, Y - S > m && (I =
|
|
1810
|
-
` + n.slice(S, I), S = I + 1),
|
|
1809
|
+
Y = A.index, Y - S > m && (I = x > S ? x : Y, z += `
|
|
1810
|
+
` + n.slice(S, I), S = I + 1), x = Y;
|
|
1811
1811
|
return z += `
|
|
1812
|
-
`, n.length - S > m &&
|
|
1813
|
-
` + n.slice(
|
|
1812
|
+
`, n.length - S > m && x > S ? z += n.slice(S, x) + `
|
|
1813
|
+
` + n.slice(x + 1) : z += n.slice(S), z.slice(1);
|
|
1814
1814
|
}
|
|
1815
1815
|
function vt(n) {
|
|
1816
1816
|
let m = "", O = 0;
|
|
1817
1817
|
for (let A = 0; A < n.length; O >= 65536 ? A += 2 : A++) {
|
|
1818
|
-
O =
|
|
1818
|
+
O = Me(n, A);
|
|
1819
1819
|
const S = U[O];
|
|
1820
1820
|
!S && De(O) ? (m += n[A], O >= 65536 && (m += n[A + 1])) : m += S || le(O);
|
|
1821
1821
|
}
|
|
@@ -1824,7 +1824,7 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1824
1824
|
function dt(n, m, O) {
|
|
1825
1825
|
let A = "";
|
|
1826
1826
|
const S = n.tag;
|
|
1827
|
-
for (let I = 0,
|
|
1827
|
+
for (let I = 0, x = O.length; I < x; I += 1) {
|
|
1828
1828
|
let Y = O[I];
|
|
1829
1829
|
n.replacer && (Y = n.replacer.call(O, String(I), Y)), (k(n, m, Y, !1, !1) || typeof Y > "u" && k(n, m, null, !1, !1)) && (A !== "" && (A += "," + (n.condenseFlow ? "" : " ")), A += n.dump);
|
|
1830
1830
|
}
|
|
@@ -1833,36 +1833,36 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1833
1833
|
function ft(n, m, O, A) {
|
|
1834
1834
|
let S = "";
|
|
1835
1835
|
const I = n.tag;
|
|
1836
|
-
for (let
|
|
1837
|
-
let z = O[
|
|
1838
|
-
n.replacer && (z = n.replacer.call(O, String(
|
|
1836
|
+
for (let x = 0, Y = O.length; x < Y; x += 1) {
|
|
1837
|
+
let z = O[x];
|
|
1838
|
+
n.replacer && (z = n.replacer.call(O, String(x), z)), (k(n, m + 1, z, !0, !0, !1, !0) || typeof z > "u" && k(n, m + 1, null, !0, !0, !1, !0)) && ((!A || S !== "") && (S += Re(n, m)), n.dump && f === n.dump.charCodeAt(0) ? S += "-" : S += "- ", S += n.dump);
|
|
1839
1839
|
}
|
|
1840
1840
|
n.tag = I, n.dump = S || "[]";
|
|
1841
1841
|
}
|
|
1842
1842
|
function bt(n, m, O) {
|
|
1843
1843
|
let A = "";
|
|
1844
1844
|
const S = n.tag, I = Object.keys(O);
|
|
1845
|
-
for (let
|
|
1845
|
+
for (let x = 0, Y = I.length; x < Y; x += 1) {
|
|
1846
1846
|
let z = "";
|
|
1847
1847
|
A !== "" && (z += ", "), n.condenseFlow && (z += '"');
|
|
1848
|
-
const X = I[
|
|
1849
|
-
let
|
|
1850
|
-
n.replacer && (
|
|
1848
|
+
const X = I[x];
|
|
1849
|
+
let te = O[X];
|
|
1850
|
+
n.replacer && (te = n.replacer.call(O, X, te)), k(n, m, X, !1, !1) && (n.dump.length > 1024 && (z += "? "), z += n.dump + (n.condenseFlow ? '"' : "") + ":" + (n.condenseFlow ? "" : " "), k(n, m, te, !1, !1) && (z += n.dump, A += z));
|
|
1851
1851
|
}
|
|
1852
1852
|
n.tag = S, n.dump = "{" + A + "}";
|
|
1853
1853
|
}
|
|
1854
1854
|
function e(n, m, O, A) {
|
|
1855
1855
|
let S = "";
|
|
1856
|
-
const I = n.tag,
|
|
1857
|
-
if (n.sortKeys === !0)
|
|
1858
|
-
else if (typeof n.sortKeys == "function")
|
|
1856
|
+
const I = n.tag, x = Object.keys(O);
|
|
1857
|
+
if (n.sortKeys === !0) x.sort();
|
|
1858
|
+
else if (typeof n.sortKeys == "function") x.sort(n.sortKeys);
|
|
1859
1859
|
else if (n.sortKeys) throw new l("sortKeys must be a boolean or a function");
|
|
1860
|
-
for (let Y = 0, z =
|
|
1860
|
+
for (let Y = 0, z = x.length; Y < z; Y += 1) {
|
|
1861
1861
|
let X = "";
|
|
1862
1862
|
(!A || S !== "") && (X += Re(n, m));
|
|
1863
|
-
const
|
|
1864
|
-
let me = O[
|
|
1865
|
-
if (n.replacer && (me = n.replacer.call(O,
|
|
1863
|
+
const te = x[Y];
|
|
1864
|
+
let me = O[te];
|
|
1865
|
+
if (n.replacer && (me = n.replacer.call(O, te, me)), !k(n, m + 1, te, !0, !0, !0)) continue;
|
|
1866
1866
|
const Ae = n.tag !== null && n.tag !== "?" || n.dump && n.dump.length > 1024;
|
|
1867
1867
|
Ae && (n.dump && f === n.dump.charCodeAt(0) ? X += "?" : X += "? "), X += n.dump, Ae && (X += Re(n, m)), k(n, m + 1, me, !0, Ae) && (n.dump && f === n.dump.charCodeAt(0) ? X += ":" : X += ": ", X += n.dump, S += X);
|
|
1868
1868
|
}
|
|
@@ -1871,14 +1871,14 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1871
1871
|
function d(n, m, O) {
|
|
1872
1872
|
const A = O ? n.explicitTypes : n.implicitTypes;
|
|
1873
1873
|
for (let S = 0, I = A.length; S < I; S += 1) {
|
|
1874
|
-
const
|
|
1875
|
-
if ((
|
|
1876
|
-
if (O ?
|
|
1877
|
-
const Y = n.styleMap[
|
|
1874
|
+
const x = A[S];
|
|
1875
|
+
if ((x.instanceOf || x.predicate) && (!x.instanceOf || typeof m == "object" && m instanceof x.instanceOf) && (!x.predicate || x.predicate(m))) {
|
|
1876
|
+
if (O ? x.multi && x.representName ? n.tag = x.representName(m) : n.tag = x.tag : n.tag = "?", x.represent) {
|
|
1877
|
+
const Y = n.styleMap[x.tag] || x.defaultStyle;
|
|
1878
1878
|
let z;
|
|
1879
|
-
if (y.call(
|
|
1880
|
-
else if (r.call(
|
|
1881
|
-
else throw new l("!<" +
|
|
1879
|
+
if (y.call(x.represent) === "[object Function]") z = x.represent(m, Y);
|
|
1880
|
+
else if (r.call(x.represent, Y)) z = x.represent[Y](m, Y);
|
|
1881
|
+
else throw new l("!<" + x.tag + '> tag resolver accepts not "' + Y + '" style');
|
|
1882
1882
|
n.dump = z;
|
|
1883
1883
|
}
|
|
1884
1884
|
return !0;
|
|
@@ -1886,16 +1886,16 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1886
1886
|
}
|
|
1887
1887
|
return !1;
|
|
1888
1888
|
}
|
|
1889
|
-
function k(n, m, O, A, S, I,
|
|
1889
|
+
function k(n, m, O, A, S, I, x) {
|
|
1890
1890
|
n.tag = null, n.dump = O, d(n, O, !1) || d(n, O, !0);
|
|
1891
1891
|
const Y = y.call(n.dump), z = A;
|
|
1892
1892
|
A && (A = n.flowLevel < 0 || n.flowLevel > m);
|
|
1893
1893
|
const X = Y === "[object Object]" || Y === "[object Array]";
|
|
1894
|
-
let
|
|
1895
|
-
if (X && (
|
|
1894
|
+
let te, me;
|
|
1895
|
+
if (X && (te = n.duplicates.indexOf(O), me = te !== -1), (n.tag !== null && n.tag !== "?" || me || n.indent !== 2 && m > 0) && (S = !1), me && n.usedDuplicates[te]) n.dump = "*ref_" + te;
|
|
1896
1896
|
else {
|
|
1897
|
-
if (X && me && !n.usedDuplicates[
|
|
1898
|
-
else if (Y === "[object Array]") A && n.dump.length !== 0 ? (n.noArrayIndent && !
|
|
1897
|
+
if (X && me && !n.usedDuplicates[te] && (n.usedDuplicates[te] = !0), Y === "[object Object]") A && Object.keys(n.dump).length !== 0 ? (e(n, m, n.dump, S), me && (n.dump = "&ref_" + te + n.dump)) : (bt(n, m, n.dump), me && (n.dump = "&ref_" + te + " " + n.dump));
|
|
1898
|
+
else if (Y === "[object Array]") A && n.dump.length !== 0 ? (n.noArrayIndent && !x && m > 0 ? ft(n, m - 1, n.dump, S) : ft(n, m, n.dump, S), me && (n.dump = "&ref_" + te + n.dump)) : (dt(n, m, n.dump), me && (n.dump = "&ref_" + te + " " + n.dump));
|
|
1899
1899
|
else if (Y === "[object String]")
|
|
1900
1900
|
n.tag !== "?" && gt(n, n.dump, m, I, z);
|
|
1901
1901
|
else {
|
|
@@ -1925,7 +1925,7 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1925
1925
|
else if (m.push(n), Array.isArray(n)) for (let S = 0, I = n.length; S < I; S += 1) h(n[S], m, O);
|
|
1926
1926
|
else {
|
|
1927
1927
|
const S = Object.keys(n);
|
|
1928
|
-
for (let I = 0,
|
|
1928
|
+
for (let I = 0, x = S.length; I < x; I += 1) h(n[S[I]], m, O);
|
|
1929
1929
|
}
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
@@ -1938,14 +1938,14 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1938
1938
|
` : "";
|
|
1939
1939
|
}
|
|
1940
1940
|
o.exports.dump = K;
|
|
1941
|
-
}), un = /* @__PURE__ */
|
|
1942
|
-
var i =
|
|
1941
|
+
}), un = /* @__PURE__ */ Ei((/* @__PURE__ */ Ce((t, o) => {
|
|
1942
|
+
var i = Oi(), l = Bi();
|
|
1943
1943
|
function s(y, r) {
|
|
1944
1944
|
return function() {
|
|
1945
1945
|
throw new Error("Function yaml." + y + " is removed in js-yaml 4. Use yaml." + r + " instead, which is now safe by default.");
|
|
1946
1946
|
};
|
|
1947
1947
|
}
|
|
1948
|
-
o.exports.Type = Oe(), o.exports.Schema =
|
|
1948
|
+
o.exports.Type = Oe(), o.exports.Schema = Yt(), o.exports.FAILSAFE_SCHEMA = Jt(), o.exports.JSON_SCHEMA = tn(), o.exports.CORE_SCHEMA = nn(), o.exports.DEFAULT_SCHEMA = Tt(), o.exports.load = i.load, o.exports.loadAll = i.loadAll, o.exports.dump = l.dump, o.exports.YAMLException = it(), o.exports.types = {
|
|
1949
1949
|
binary: ln(),
|
|
1950
1950
|
float: en(),
|
|
1951
1951
|
map: Gt(),
|
|
@@ -1958,10 +1958,10 @@ var Ti = Object.create, Ht = Object.defineProperty, $i = Object.getOwnPropertyDe
|
|
|
1958
1958
|
merge: rn(),
|
|
1959
1959
|
omap: an(),
|
|
1960
1960
|
seq: Wt(),
|
|
1961
|
-
str:
|
|
1961
|
+
str: Vt()
|
|
1962
1962
|
}, o.exports.safeLoad = s("safeLoad", "load"), o.exports.safeLoadAll = s("safeLoadAll", "loadAll"), o.exports.safeDump = s("safeDump", "dump");
|
|
1963
|
-
}))()), { Type:
|
|
1964
|
-
const
|
|
1963
|
+
}))()), { Type: _r, Schema: Er, FAILSAFE_SCHEMA: Ir, JSON_SCHEMA: Or, CORE_SCHEMA: Br, DEFAULT_SCHEMA: Kr, load: Rr, loadAll: Lr, dump: Fr, YAMLException: Mr, types: Pr, safeLoad: Nr, safeLoadAll: Dr, safeDump: qr } = un.default, dn = un.default;
|
|
1964
|
+
const Ki = /* @__PURE__ */ ke({
|
|
1965
1965
|
__name: "DeckCallout",
|
|
1966
1966
|
emits: ["click-cta", "dismiss"],
|
|
1967
1967
|
setup(t) {
|
|
@@ -1976,7 +1976,7 @@ const Ri = /* @__PURE__ */ ke({
|
|
|
1976
1976
|
default: R(() => [
|
|
1977
1977
|
Z(C(i), { keypath: "deckCallout.body" }, {
|
|
1978
1978
|
cta: R(() => [
|
|
1979
|
-
|
|
1979
|
+
ne("button", {
|
|
1980
1980
|
class: "cta",
|
|
1981
1981
|
type: "button",
|
|
1982
1982
|
onClick: s[0] || (s[0] = (r) => l.$emit("click-cta"))
|
|
@@ -1989,7 +1989,7 @@ const Ri = /* @__PURE__ */ ke({
|
|
|
1989
1989
|
});
|
|
1990
1990
|
};
|
|
1991
1991
|
}
|
|
1992
|
-
}),
|
|
1992
|
+
}), Ri = /* @__PURE__ */ we(Ki, [["__scopeId", "data-v-0bf1334c"]]), fn = /* @__PURE__ */ ke({
|
|
1993
1993
|
inheritAttrs: !1,
|
|
1994
1994
|
__name: "YamlCodeBlock",
|
|
1995
1995
|
props: {
|
|
@@ -2033,13 +2033,13 @@ const Ri = /* @__PURE__ */ ke({
|
|
|
2033
2033
|
}
|
|
2034
2034
|
return (f, g) => {
|
|
2035
2035
|
const a = ie("KCodeBlock");
|
|
2036
|
-
return b(), V(
|
|
2037
|
-
i.deckCalloutPreferenceKey && s.value === "visible" ? (b(), G(
|
|
2036
|
+
return b(), V(_e, null, [
|
|
2037
|
+
i.deckCalloutPreferenceKey && s.value === "visible" ? (b(), G(Ri, {
|
|
2038
2038
|
key: 0,
|
|
2039
2039
|
onClickCta: g[0] || (g[0] = (c) => f.$emit("deck-callout:click-cta")),
|
|
2040
2040
|
onDismiss: g[1] || (g[1] = (c) => p())
|
|
2041
|
-
})) :
|
|
2042
|
-
|
|
2041
|
+
})) : ee("", !0),
|
|
2042
|
+
ne("div", tt({ class: "yaml-config config-card-code-block" }, f.$attrs), [
|
|
2043
2043
|
i.entityRecord ? (b(), G(a, {
|
|
2044
2044
|
key: 0,
|
|
2045
2045
|
id: "yaml-codeblock",
|
|
@@ -2049,12 +2049,12 @@ const Ri = /* @__PURE__ */ ke({
|
|
|
2049
2049
|
language: "yaml",
|
|
2050
2050
|
theme: "dark",
|
|
2051
2051
|
onCodeBlockRender: C(We)
|
|
2052
|
-
}, null, 8, ["code", "copy-code", "onCodeBlockRender"])) :
|
|
2052
|
+
}, null, 8, ["code", "copy-code", "onCodeBlockRender"])) : ee("", !0)
|
|
2053
2053
|
], 16)
|
|
2054
2054
|
], 64);
|
|
2055
2055
|
};
|
|
2056
2056
|
}
|
|
2057
|
-
}),
|
|
2057
|
+
}), Li = { class: "terraform-config config-card-code-block" }, $e = " ", Kt = "TF_MULTILINE_EOT", Ct = "cloud_gateway_addon", pn = /* @__PURE__ */ ke({
|
|
2058
2058
|
__name: "TerraformCodeBlock",
|
|
2059
2059
|
props: {
|
|
2060
2060
|
/** A record to indicate the entity's configuration, the visible code content (may be redacted) */
|
|
@@ -2095,9 +2095,9 @@ const Ri = /* @__PURE__ */ ke({
|
|
|
2095
2095
|
const E = B + $e, $ = w.split(`
|
|
2096
2096
|
`).map((W) => `${E}${W}`).join(`
|
|
2097
2097
|
`);
|
|
2098
|
-
return `<<-${
|
|
2098
|
+
return `<<-${Kt}
|
|
2099
2099
|
${$}
|
|
2100
|
-
${E}${
|
|
2100
|
+
${E}${Kt}`;
|
|
2101
2101
|
}
|
|
2102
2102
|
return `"${w.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
2103
2103
|
}, u = (w, B) => {
|
|
@@ -2145,13 +2145,13 @@ ${E}${Bt}`;
|
|
|
2145
2145
|
Array.isArray(E) ? B += f(E, N) : typeof E == "object" ? B += p(E, N) : B += u(E, N);
|
|
2146
2146
|
return g(B);
|
|
2147
2147
|
}, c = (w) => {
|
|
2148
|
-
var W, J, ae, q,
|
|
2148
|
+
var W, J, ae, q, F, _;
|
|
2149
2149
|
const B = Object.fromEntries(Object.entries(w).filter(([, D]) => D != null)), N = w.config ? Object.fromEntries(Object.entries(w == null ? void 0 : w.config).filter(([, D]) => D != null)) : void 0;
|
|
2150
2150
|
if (N && (B.config = N), Object.keys(B).length === 0)
|
|
2151
2151
|
return "";
|
|
2152
2152
|
delete B.id;
|
|
2153
2153
|
let E = "", $ = "";
|
|
2154
|
-
if ((W = B.service) != null && W.id ? ($ = "service", delete B.service) : (J = B.route) != null && J.id ? ($ = "route", delete B.route) : (ae = B.consumer) != null && ae.id ? ($ = "consumer", delete B.consumer) : (q = B.consumer_group) != null && q.id ? ($ = "consumer_group", delete B.consumer_group) : (
|
|
2154
|
+
if ((W = B.service) != null && W.id ? ($ = "service", delete B.service) : (J = B.route) != null && J.id ? ($ = "route", delete B.route) : (ae = B.consumer) != null && ae.id ? ($ = "consumer", delete B.consumer) : (q = B.consumer_group) != null && q.id ? ($ = "consumer_group", delete B.consumer_group) : (F = B.certificate) != null && F.id ? ($ = "certificate", delete B.certificate) : (_ = B.set) != null && _.id && ($ = "set", delete B.set), s.value) {
|
|
2155
2155
|
const D = o.subEntityType ? `${l.value}_${o.subEntityType}` : l.value;
|
|
2156
2156
|
E += `resource "konnect_event_gateway_${D}" "my_eventgateway${D.replaceAll("_", "")}" {
|
|
2157
2157
|
`, E += `${$e}provider = konnect-beta
|
|
@@ -2174,7 +2174,7 @@ ${E}${Bt}`;
|
|
|
2174
2174
|
}, v = j(() => c(o.entityRecord)), P = j(() => c(o.unredactedRecord || o.entityRecord));
|
|
2175
2175
|
return (w, B) => {
|
|
2176
2176
|
const N = ie("KCodeBlock");
|
|
2177
|
-
return b(), V("div",
|
|
2177
|
+
return b(), V("div", Li, [
|
|
2178
2178
|
o.entityRecord ? (b(), G(N, {
|
|
2179
2179
|
key: 0,
|
|
2180
2180
|
id: "terraform-codeblock",
|
|
@@ -2184,7 +2184,7 @@ ${E}${Bt}`;
|
|
|
2184
2184
|
language: "terraform",
|
|
2185
2185
|
theme: "dark",
|
|
2186
2186
|
onCodeBlockRender: C(We)
|
|
2187
|
-
}, null, 8, ["code", "copy-code", "onCodeBlockRender"])) :
|
|
2187
|
+
}, null, 8, ["code", "copy-code", "onCodeBlockRender"])) : ee("", !0)
|
|
2188
2188
|
]);
|
|
2189
2189
|
};
|
|
2190
2190
|
}
|
|
@@ -2250,7 +2250,7 @@ ${E}${Bt}`;
|
|
|
2250
2250
|
}, 8, ["disabled"])
|
|
2251
2251
|
]),
|
|
2252
2252
|
default: R(() => [
|
|
2253
|
-
|
|
2253
|
+
ne("div", null, H(C(s)("generatePatModal.description")), 1),
|
|
2254
2254
|
Z(P, {
|
|
2255
2255
|
modelValue: y.value,
|
|
2256
2256
|
"onUpdate:modelValue": v[0] || (v[0] = ($) => y.value = $),
|
|
@@ -2270,16 +2270,16 @@ ${E}${Bt}`;
|
|
|
2270
2270
|
key: 0,
|
|
2271
2271
|
appearance: "danger",
|
|
2272
2272
|
message: p.value
|
|
2273
|
-
}, null, 8, ["message"])) :
|
|
2273
|
+
}, null, 8, ["message"])) : ee("", !0)
|
|
2274
2274
|
]),
|
|
2275
2275
|
_: 1
|
|
2276
2276
|
}, 8, ["title", "visible"]);
|
|
2277
2277
|
};
|
|
2278
2278
|
}
|
|
2279
|
-
}),
|
|
2279
|
+
}), Mi = /* @__PURE__ */ we(Fi, [["__scopeId", "data-v-be3cd315"]]), Pi = { class: "step-title" }, Ni = {
|
|
2280
2280
|
key: 3,
|
|
2281
2281
|
class: "konnect-pat-actions"
|
|
2282
|
-
},
|
|
2282
|
+
}, Di = { class: "step-title" }, qi = { class: "customization-secret-advise" }, ji = /* @__PURE__ */ ke({
|
|
2283
2283
|
__name: "DeckCodeBlockInternal",
|
|
2284
2284
|
props: {
|
|
2285
2285
|
app: {},
|
|
@@ -2307,9 +2307,9 @@ ${E}${Bt}`;
|
|
|
2307
2307
|
control_plane_name: i.controlPlaneName
|
|
2308
2308
|
}), i.workspace && (E._workspace = i.workspace), E;
|
|
2309
2309
|
}), v = (E) => {
|
|
2310
|
-
var ae, q,
|
|
2310
|
+
var ae, q, F, _, D;
|
|
2311
2311
|
const $ = Object.fromEntries(Object.entries(E).filter(([, de]) => de !== null && de !== "" && (Array.isArray(de) ? de.length !== 0 : !0)));
|
|
2312
|
-
i.entityType === je.Plugin ? ((ae = $.service) != null && ae.id && ($.service = $.service.id), (q = $.route) != null && q.id && ($.route = $.route.id), (
|
|
2312
|
+
i.entityType === je.Plugin ? ((ae = $.service) != null && ae.id && ($.service = $.service.id), (q = $.route) != null && q.id && ($.route = $.route.id), (F = $.consumer) != null && F.id && ($.consumer = $.consumer.id), (_ = $.consumer_group) != null && _.id && ($.consumer_group = $.consumer_group.id)) : i.entityType === je.Key && (D = $.key_set) != null && D.id && ($.key_set = $.key_set.id);
|
|
2313
2313
|
const W = i.entityType === je.KeySet ? "key_sets" : i.entityType + "s", J = {
|
|
2314
2314
|
...c.value,
|
|
2315
2315
|
[W]: [$]
|
|
@@ -2331,26 +2331,26 @@ ${P.value}
|
|
|
2331
2331
|
${w.value}
|
|
2332
2332
|
'@ | ${E}`);
|
|
2333
2333
|
}), (E, $) => {
|
|
2334
|
-
const W = ie("KSelect"), J = ie("KBadge"), ae = ie("KCodeBlock"), q = ie("KAlert"),
|
|
2335
|
-
return b(), V(
|
|
2336
|
-
|
|
2334
|
+
const W = ie("KSelect"), J = ie("KBadge"), ae = ie("KCodeBlock"), q = ie("KAlert"), F = ie("KButton");
|
|
2335
|
+
return b(), V(_e, null, [
|
|
2336
|
+
ne("div", tt({ class: "deck-config config-card-code-block" }, E.$attrs), [
|
|
2337
2337
|
Z(W, {
|
|
2338
2338
|
modelValue: a.value,
|
|
2339
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
2339
|
+
"onUpdate:modelValue": $[0] || ($[0] = (_) => a.value = _),
|
|
2340
2340
|
items: g
|
|
2341
2341
|
}, {
|
|
2342
|
-
"item-template": R(({ item:
|
|
2343
|
-
|
|
2344
|
-
ue(" " + H(
|
|
2342
|
+
"item-template": R(({ item: _ }) => [
|
|
2343
|
+
_.value === "powershell" ? (b(), G(C(xt), { key: 0 })) : (b(), G(C(_t), { key: 1 })),
|
|
2344
|
+
ue(" " + H(_.label), 1)
|
|
2345
2345
|
]),
|
|
2346
|
-
"selected-item-template": R(({ item:
|
|
2347
|
-
|
|
2348
|
-
ue(" " + H(
|
|
2346
|
+
"selected-item-template": R(({ item: _ }) => [
|
|
2347
|
+
_.value === "powershell" ? (b(), G(C(xt), { key: 0 })) : (b(), G(C(_t), { key: 1 })),
|
|
2348
|
+
ue(" " + H(_.label), 1)
|
|
2349
2349
|
]),
|
|
2350
2350
|
_: 1
|
|
2351
2351
|
}, 8, ["modelValue"]),
|
|
2352
|
-
|
|
2353
|
-
t.isCustomizing ?
|
|
2352
|
+
ne("div", Pi, H(C(y)("deckCodeBlock.steps.step_1")), 1),
|
|
2353
|
+
t.isCustomizing ? ee("", !0) : (b(), G(C(s), {
|
|
2354
2354
|
key: 0,
|
|
2355
2355
|
"data-testid": `deck-hint-${t.app}`,
|
|
2356
2356
|
keypath: `deckCodeBlock.hint.${t.app}`,
|
|
@@ -2390,7 +2390,7 @@ ${w.value}
|
|
|
2390
2390
|
"single-line": "",
|
|
2391
2391
|
theme: t.isCustomizing ? "light" : "dark",
|
|
2392
2392
|
onCodeBlockRender: C(We)
|
|
2393
|
-
}, null, 8, ["class", "code", "language", "theme", "onCodeBlockRender"])) :
|
|
2393
|
+
}, null, 8, ["class", "code", "language", "theme", "onCodeBlockRender"])) : ee("", !0),
|
|
2394
2394
|
r.value ? (b(), G(q, {
|
|
2395
2395
|
key: 2,
|
|
2396
2396
|
class: "copy-konnect-pat-alert"
|
|
@@ -2399,20 +2399,20 @@ ${w.value}
|
|
|
2399
2399
|
ue(H(C(y)("deckCodeBlock.customization.copy_pat")), 1)
|
|
2400
2400
|
]),
|
|
2401
2401
|
_: 1
|
|
2402
|
-
})) : i.isCustomizing && i.generateKonnectPat ? (b(), V("div",
|
|
2403
|
-
Z(
|
|
2402
|
+
})) : i.isCustomizing && i.generateKonnectPat ? (b(), V("div", Ni, [
|
|
2403
|
+
Z(F, {
|
|
2404
2404
|
appearance: "secondary",
|
|
2405
2405
|
"data-testid": "generate-konnect-pat-button",
|
|
2406
|
-
onClick: $[1] || ($[1] = (
|
|
2406
|
+
onClick: $[1] || ($[1] = (_) => f.value = !0)
|
|
2407
2407
|
}, {
|
|
2408
2408
|
default: R(() => [
|
|
2409
2409
|
ue(H(C(y)("deckCodeBlock.customization.generate_pat")), 1)
|
|
2410
2410
|
]),
|
|
2411
2411
|
_: 1
|
|
2412
2412
|
}),
|
|
2413
|
-
|
|
2414
|
-
])) :
|
|
2415
|
-
|
|
2413
|
+
ne("div", null, H(C(y)("deckCodeBlock.customization.reuse_pat")), 1)
|
|
2414
|
+
])) : ee("", !0),
|
|
2415
|
+
ne("div", Di, H(C(y)("deckCodeBlock.steps.step_2")), 1),
|
|
2416
2416
|
i.entityRecord && !i.isCustomizing ? (b(), G(ae, {
|
|
2417
2417
|
key: 4,
|
|
2418
2418
|
id: "deck-codeblock",
|
|
@@ -2423,11 +2423,11 @@ ${w.value}
|
|
|
2423
2423
|
language: a.value,
|
|
2424
2424
|
theme: t.isCustomizing ? "light" : "dark",
|
|
2425
2425
|
onCodeBlockRender: C(We)
|
|
2426
|
-
}, null, 8, ["class", "code", "copy-code", "language", "theme", "onCodeBlockRender"])) : i.entityRecord && i.isCustomizing && C(o) ? (b(), V(
|
|
2427
|
-
|
|
2426
|
+
}, null, 8, ["class", "code", "copy-code", "language", "theme", "onCodeBlockRender"])) : i.entityRecord && i.isCustomizing && C(o) ? (b(), V(_e, { key: 5 }, [
|
|
2427
|
+
ne("div", qi, H(C(y)("deckCodeBlock.customization.secret_advise")), 1),
|
|
2428
2428
|
(b(), G(Ge(C(o)), {
|
|
2429
2429
|
modelValue: p.value,
|
|
2430
|
-
"onUpdate:modelValue": $[2] || ($[2] = (
|
|
2430
|
+
"onUpdate:modelValue": $[2] || ($[2] = (_) => p.value = _),
|
|
2431
2431
|
language: a.value
|
|
2432
2432
|
}, null, 8, ["modelValue", "language"])),
|
|
2433
2433
|
Z(q, { class: "customization-footer-reminder" }, {
|
|
@@ -2439,19 +2439,19 @@ ${w.value}
|
|
|
2439
2439
|
]),
|
|
2440
2440
|
_: 1
|
|
2441
2441
|
})
|
|
2442
|
-
], 64)) :
|
|
2442
|
+
], 64)) : ee("", !0)
|
|
2443
2443
|
], 16),
|
|
2444
|
-
i.isCustomizing && i.generateKonnectPat ? (b(), G(
|
|
2444
|
+
i.isCustomizing && i.generateKonnectPat ? (b(), G(Mi, {
|
|
2445
2445
|
key: 0,
|
|
2446
2446
|
"generate-konnect-pat": i.generateKonnectPat,
|
|
2447
2447
|
visible: f.value,
|
|
2448
|
-
onDismiss: $[3] || ($[3] = (
|
|
2448
|
+
onDismiss: $[3] || ($[3] = (_) => f.value = !1),
|
|
2449
2449
|
onGenerated: N
|
|
2450
|
-
}, null, 8, ["generate-konnect-pat", "visible"])) :
|
|
2450
|
+
}, null, 8, ["generate-konnect-pat", "visible"])) : ee("", !0)
|
|
2451
2451
|
], 64);
|
|
2452
2452
|
};
|
|
2453
2453
|
}
|
|
2454
|
-
}),
|
|
2454
|
+
}), Rt = /* @__PURE__ */ we(ji, [["__scopeId", "data-v-991fe861"]]), mn = /* @__PURE__ */ ke({
|
|
2455
2455
|
inheritAttrs: !1,
|
|
2456
2456
|
__name: "DeckCodeBlock",
|
|
2457
2457
|
props: {
|
|
@@ -2474,8 +2474,8 @@ ${w.value}
|
|
|
2474
2474
|
});
|
|
2475
2475
|
return (s, y) => {
|
|
2476
2476
|
const r = ie("KModal");
|
|
2477
|
-
return b(), V(
|
|
2478
|
-
o.entityRecord ? (b(), G(
|
|
2477
|
+
return b(), V(_e, null, [
|
|
2478
|
+
o.entityRecord ? (b(), G(Rt, tt({ key: 0 }, s.$attrs, {
|
|
2479
2479
|
app: o.app,
|
|
2480
2480
|
"control-plane-name": o.app === "konnect" ? o.controlPlaneName : void 0,
|
|
2481
2481
|
"entity-record": o.entityRecord,
|
|
@@ -2484,7 +2484,7 @@ ${w.value}
|
|
|
2484
2484
|
"kong-admin-api-url": o.app === "kongManager" ? o.kongAdminApiUrl : void 0,
|
|
2485
2485
|
"unredacted-record": o.unredactedRecord,
|
|
2486
2486
|
workspace: o.workspace || void 0
|
|
2487
|
-
}), null, 16, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "unredacted-record", "workspace"])) :
|
|
2487
|
+
}), null, 16, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "unredacted-record", "workspace"])) : ee("", !0),
|
|
2488
2488
|
o.entityRecord ? (b(), G(r, {
|
|
2489
2489
|
key: 1,
|
|
2490
2490
|
"action-button-appearance": "tertiary",
|
|
@@ -2497,7 +2497,7 @@ ${w.value}
|
|
|
2497
2497
|
onProceed: y[1] || (y[1] = (u) => s.$emit("customization-close"))
|
|
2498
2498
|
}, {
|
|
2499
2499
|
default: R(() => [
|
|
2500
|
-
Z(
|
|
2500
|
+
Z(Rt, {
|
|
2501
2501
|
app: o.app,
|
|
2502
2502
|
"control-plane-name": o.app === "konnect" ? o.controlPlaneName : void 0,
|
|
2503
2503
|
"entity-record": o.entityRecord,
|
|
@@ -2511,14 +2511,14 @@ ${w.value}
|
|
|
2511
2511
|
}, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "generate-konnect-pat", "geo-api-server-url", "kong-admin-api-url", "unredacted-record", "workspace"])
|
|
2512
2512
|
]),
|
|
2513
2513
|
_: 1
|
|
2514
|
-
}, 8, ["action-button-text", "title", "visible"])) :
|
|
2514
|
+
}, 8, ["action-button-text", "title", "visible"])) : ee("", !0)
|
|
2515
2515
|
], 64);
|
|
2516
2516
|
};
|
|
2517
2517
|
}
|
|
2518
|
-
}),
|
|
2518
|
+
}), Ui = {
|
|
2519
2519
|
key: 0,
|
|
2520
2520
|
class: "config-card-display-form"
|
|
2521
|
-
},
|
|
2521
|
+
}, zi = ["data-testid"], Hi = {
|
|
2522
2522
|
key: 0,
|
|
2523
2523
|
class: "config-card-prop-section-title"
|
|
2524
2524
|
}, Yi = /* @__PURE__ */ ke({
|
|
@@ -2549,7 +2549,7 @@ ${w.value}
|
|
|
2549
2549
|
type: String,
|
|
2550
2550
|
required: !1,
|
|
2551
2551
|
default: "structured",
|
|
2552
|
-
validator: (t) =>
|
|
2552
|
+
validator: (t) => xn.includes(t)
|
|
2553
2553
|
},
|
|
2554
2554
|
propListTypes: {
|
|
2555
2555
|
type: Array,
|
|
@@ -2623,15 +2623,15 @@ ${w.value}
|
|
|
2623
2623
|
() => o.config,
|
|
2624
2624
|
() => o.entityType
|
|
2625
2625
|
);
|
|
2626
|
-
return (c, v) => (b(), V(
|
|
2627
|
-
t.format === "structured" ? (b(), V("div",
|
|
2628
|
-
(b(!0), V(
|
|
2626
|
+
return (c, v) => (b(), V(_e, null, [
|
|
2627
|
+
t.format === "structured" ? (b(), V("div", Ui, [
|
|
2628
|
+
(b(!0), V(_e, null, Ke(t.propListTypes, (P) => (b(), V("div", {
|
|
2629
2629
|
key: `config-card-details-${P}-props`,
|
|
2630
2630
|
class: Ee(`config-card-details-${P}-props`),
|
|
2631
2631
|
"data-testid": `config-card-details-${P}-props`
|
|
2632
2632
|
}, [
|
|
2633
|
-
P !== "basic" ? (b(), V("div",
|
|
2634
|
-
(b(!0), V(
|
|
2633
|
+
P !== "basic" ? (b(), V("div", Hi, H(P === "advanced" ? C(l)("baseConfigCard.sections.advanced") : P === "plugin" ? C(l)("baseConfigCard.sections.plugin") : C(l)("baseConfigCard.sections.policy")), 1)) : ee("", !0),
|
|
2634
|
+
(b(!0), V(_e, null, Ke(t.propertyCollections[P], (w) => pe(c.$slots, `config-card-item-${w.key}`, { row: w }, () => [
|
|
2635
2635
|
(b(), G(Ut, {
|
|
2636
2636
|
key: w.key,
|
|
2637
2637
|
item: w
|
|
@@ -2656,8 +2656,8 @@ ${w.value}
|
|
|
2656
2656
|
} : void 0
|
|
2657
2657
|
]), 1032, ["item"]))
|
|
2658
2658
|
], !0)), 256))
|
|
2659
|
-
], 10,
|
|
2660
|
-
])) :
|
|
2659
|
+
], 10, zi))), 128))
|
|
2660
|
+
])) : ee("", !0),
|
|
2661
2661
|
t.format === "json" && r.value ? (b(), G(zt, {
|
|
2662
2662
|
key: 1,
|
|
2663
2663
|
config: o.config,
|
|
@@ -2665,21 +2665,21 @@ ${w.value}
|
|
|
2665
2665
|
"fetcher-url": p.value,
|
|
2666
2666
|
"request-method": "get",
|
|
2667
2667
|
"unredacted-record": u.value
|
|
2668
|
-
}, null, 8, ["config", "entity-record", "fetcher-url", "unredacted-record"])) :
|
|
2668
|
+
}, null, 8, ["config", "entity-record", "fetcher-url", "unredacted-record"])) : ee("", !0),
|
|
2669
2669
|
t.format === "yaml" && r.value ? (b(), G(fn, {
|
|
2670
2670
|
key: 2,
|
|
2671
2671
|
"deck-callout-preference-key": C(f) ? C(a) : void 0,
|
|
2672
2672
|
"entity-record": r.value,
|
|
2673
2673
|
"unredacted-record": u.value,
|
|
2674
2674
|
"onDeckCallout:clickCta": v[0] || (v[0] = (P) => c.$emit("request-deck-format"))
|
|
2675
|
-
}, null, 8, ["deck-callout-preference-key", "entity-record", "unredacted-record"])) :
|
|
2675
|
+
}, null, 8, ["deck-callout-preference-key", "entity-record", "unredacted-record"])) : ee("", !0),
|
|
2676
2676
|
t.format === "terraform" && r.value ? (b(), G(pn, {
|
|
2677
2677
|
key: 3,
|
|
2678
2678
|
"entity-record": r.value,
|
|
2679
2679
|
"entity-type": o.entityType,
|
|
2680
2680
|
"sub-entity-type": o.subEntityType,
|
|
2681
2681
|
"unredacted-record": u.value
|
|
2682
|
-
}, null, 8, ["entity-record", "entity-type", "sub-entity-type", "unredacted-record"])) :
|
|
2682
|
+
}, null, 8, ["entity-record", "entity-type", "sub-entity-type", "unredacted-record"])) : ee("", !0),
|
|
2683
2683
|
t.format === "deck" && r.value ? (b(), G(mn, {
|
|
2684
2684
|
key: 4,
|
|
2685
2685
|
app: t.config.app,
|
|
@@ -2693,16 +2693,16 @@ ${w.value}
|
|
|
2693
2693
|
"unredacted-record": u.value,
|
|
2694
2694
|
workspace: t.config.workspace || void 0,
|
|
2695
2695
|
onCustomizationClose: v[1] || (v[1] = (P) => c.$emit("deck-customization:close"))
|
|
2696
|
-
}, null, 8, ["app", "control-plane-name", "customization-options", "entity-record", "entity-type", "geo-api-server-url", "is-customization-modal-visible", "kong-admin-api-url", "unredacted-record", "workspace"])) :
|
|
2696
|
+
}, null, 8, ["app", "control-plane-name", "customization-options", "entity-record", "entity-type", "geo-api-server-url", "is-customization-modal-visible", "kong-admin-api-url", "unredacted-record", "workspace"])) : ee("", !0)
|
|
2697
2697
|
], 64));
|
|
2698
2698
|
}
|
|
2699
|
-
}),
|
|
2699
|
+
}), Vi = /* @__PURE__ */ we(Yi, [["__scopeId", "data-v-83075649"]]), Wi = {
|
|
2700
2700
|
class: "config-card-title",
|
|
2701
2701
|
"data-testid": "config-card-title"
|
|
2702
|
-
},
|
|
2702
|
+
}, Gi = { class: "config-card-actions" }, Ji = { class: "row" }, Qi = ["href"], Xi = {
|
|
2703
2703
|
key: 2,
|
|
2704
2704
|
class: "config-card-details-section"
|
|
2705
|
-
},
|
|
2705
|
+
}, Zi = /* @__PURE__ */ ke({
|
|
2706
2706
|
__name: "EntityBaseConfigCard",
|
|
2707
2707
|
props: {
|
|
2708
2708
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2893,7 +2893,7 @@ ${w.value}
|
|
|
2893
2893
|
var L;
|
|
2894
2894
|
if (l.config.formatPreferenceKey) {
|
|
2895
2895
|
const U = localStorage.getItem(l.config.formatPreferenceKey), re = a.value;
|
|
2896
|
-
U && re.some((
|
|
2896
|
+
U && re.some((M) => M.value === U) ? c.value = U : c.value = ((L = re[0]) == null ? void 0 : L.value) ?? "structured", P(l.config.formatPreferenceKey, c.value);
|
|
2897
2897
|
}
|
|
2898
2898
|
});
|
|
2899
2899
|
const w = {
|
|
@@ -2952,14 +2952,14 @@ ${w.value}
|
|
|
2952
2952
|
for (const re in L)
|
|
2953
2953
|
((U = l.configSchema[re]) == null ? void 0 : U.type) === be.Redacted && (L[re] = "********");
|
|
2954
2954
|
return l.codeBlockRecordResolver ? l.codeBlockRecordResolver(L) : L;
|
|
2955
|
-
}),
|
|
2956
|
-
var re,
|
|
2955
|
+
}), F = j(() => {
|
|
2956
|
+
var re, M, Se;
|
|
2957
2957
|
if (!$.value)
|
|
2958
2958
|
return [];
|
|
2959
2959
|
const L = [], U = Object.keys($.value).length;
|
|
2960
2960
|
for (const le in $.value) {
|
|
2961
2961
|
if (le === "__ui_data") continue;
|
|
2962
|
-
const Q = (
|
|
2962
|
+
const Q = (M = (re = l.configSchema) == null ? void 0 : re[le]) == null ? void 0 : M.order, ve = (Se = w[le]) == null ? void 0 : Se.order;
|
|
2963
2963
|
let he = U;
|
|
2964
2964
|
(ve || ve === 0) && (he = ve === -1 ? U + 1 : ve), Q && (he = Q === -1 ? U + 1 : Q), L.push([le, he]);
|
|
2965
2965
|
}
|
|
@@ -2978,13 +2978,13 @@ ${w.value}
|
|
|
2978
2978
|
section: he.section ?? ((ye == null ? void 0 : ye.section) || Ie.Advanced)
|
|
2979
2979
|
};
|
|
2980
2980
|
}).filter((le) => !le.hidden && le.key !== l.pluginConfigKey);
|
|
2981
|
-
}),
|
|
2982
|
-
var
|
|
2981
|
+
}), _ = j(() => {
|
|
2982
|
+
var M, Se;
|
|
2983
2983
|
if (!$.value || !l.pluginConfigKey)
|
|
2984
2984
|
return [];
|
|
2985
2985
|
const L = $.value[l.pluginConfigKey] || {}, U = Object.keys(L).length, re = [];
|
|
2986
2986
|
for (const le in L) {
|
|
2987
|
-
const Q = (Se = (
|
|
2987
|
+
const Q = (Se = (M = l.pluginConfigSchema) == null ? void 0 : M[le]) == null ? void 0 : Se.order, ve = L[le];
|
|
2988
2988
|
let he = ve != null && ve !== "" ? U - 1 : U;
|
|
2989
2989
|
Q && (he = Q === -1 ? U + 1 : Q), re.push([le, he]);
|
|
2990
2990
|
}
|
|
@@ -3004,12 +3004,12 @@ ${w.value}
|
|
|
3004
3004
|
};
|
|
3005
3005
|
}).filter((le) => !le.hidden);
|
|
3006
3006
|
}), D = j(() => {
|
|
3007
|
-
var
|
|
3007
|
+
var M, Se;
|
|
3008
3008
|
if (!$.value || !l.policyConfigKey)
|
|
3009
3009
|
return [];
|
|
3010
3010
|
const L = $.value[l.policyConfigKey] || {}, U = Object.keys(L).length, re = [];
|
|
3011
3011
|
for (const le in L) {
|
|
3012
|
-
const Q = (Se = (
|
|
3012
|
+
const Q = (Se = (M = l.policyConfigSchema) == null ? void 0 : M[le]) == null ? void 0 : Se.order, ve = L[le];
|
|
3013
3013
|
let he = ve != null && ve !== "" ? U - 1 : U;
|
|
3014
3014
|
Q && (he = Q === -1 ? U + 1 : Q), re.push([le, he]);
|
|
3015
3015
|
}
|
|
@@ -3029,12 +3029,12 @@ ${w.value}
|
|
|
3029
3029
|
};
|
|
3030
3030
|
}).filter((le) => !le.hidden);
|
|
3031
3031
|
}), de = j(() => {
|
|
3032
|
-
var L, U, re,
|
|
3032
|
+
var L, U, re, M, Se, le;
|
|
3033
3033
|
return {
|
|
3034
|
-
basic: (L =
|
|
3035
|
-
advanced: (U =
|
|
3036
|
-
plugin: (
|
|
3037
|
-
policy: (le = D.value) == null ? void 0 : le.concat((Se =
|
|
3034
|
+
basic: (L = F.value) == null ? void 0 : L.filter((Q) => Q.section === Ie.Basic),
|
|
3035
|
+
advanced: (U = F.value) == null ? void 0 : U.filter((Q) => Q.section === Ie.Advanced),
|
|
3036
|
+
plugin: (M = _.value) == null ? void 0 : M.concat((re = F.value) == null ? void 0 : re.filter((Q) => Q.section === Ie.Plugin)),
|
|
3037
|
+
policy: (le = D.value) == null ? void 0 : le.concat((Se = F.value) == null ? void 0 : Se.filter((Q) => Q.section === Ie.Policy))
|
|
3038
3038
|
};
|
|
3039
3039
|
}), fe = j(() => {
|
|
3040
3040
|
const L = [];
|
|
@@ -3067,13 +3067,13 @@ ${w.value}
|
|
|
3067
3067
|
B.value = !1;
|
|
3068
3068
|
}
|
|
3069
3069
|
}), (L, U) => {
|
|
3070
|
-
const re = ie("KCheckbox"),
|
|
3070
|
+
const re = ie("KCheckbox"), M = ie("KLabel"), Se = ie("KSelect"), le = ie("KButton"), Q = ie("KSkeleton"), ve = ie("KEmptyState"), he = ie("KCard");
|
|
3071
3071
|
return b(), G(he, {
|
|
3072
3072
|
class: "kong-ui-entity-base-config-card",
|
|
3073
3073
|
"title-tag": t.titleTag
|
|
3074
3074
|
}, Ue({
|
|
3075
3075
|
actions: R(() => [
|
|
3076
|
-
|
|
3076
|
+
ne("div", Gi, [
|
|
3077
3077
|
pe(L.$slots, "actions", {}, void 0, !0),
|
|
3078
3078
|
c.value !== "structured" ? (b(), G(re, {
|
|
3079
3079
|
key: 0,
|
|
@@ -3082,9 +3082,9 @@ ${w.value}
|
|
|
3082
3082
|
class: "sensitive-fields-checkbox",
|
|
3083
3083
|
"data-testid": "sensitive-fields-checkbox",
|
|
3084
3084
|
label: C(s)("baseConfigCard.actions.sensitive_fields")
|
|
3085
|
-
}, null, 8, ["modelValue", "label"])) :
|
|
3086
|
-
|
|
3087
|
-
Z(
|
|
3085
|
+
}, null, 8, ["modelValue", "label"])) : ee("", !0),
|
|
3086
|
+
ne("div", Ji, [
|
|
3087
|
+
Z(M, {
|
|
3088
3088
|
class: "config-format-select-label",
|
|
3089
3089
|
"data-testid": "config-format-select-label"
|
|
3090
3090
|
}, {
|
|
@@ -3112,7 +3112,7 @@ ${w.value}
|
|
|
3112
3112
|
ue(H(C(s)("baseConfigCard.actions.deck_customize")), 1)
|
|
3113
3113
|
]),
|
|
3114
3114
|
_: 1
|
|
3115
|
-
})) :
|
|
3115
|
+
})) : ee("", !0),
|
|
3116
3116
|
t.configCardDoc ? (b(), G(le, {
|
|
3117
3117
|
key: 2,
|
|
3118
3118
|
appearance: "tertiary",
|
|
@@ -3120,7 +3120,7 @@ ${w.value}
|
|
|
3120
3120
|
"data-testid": "book-icon"
|
|
3121
3121
|
}, {
|
|
3122
3122
|
default: R(() => [
|
|
3123
|
-
|
|
3123
|
+
ne("a", {
|
|
3124
3124
|
href: t.configCardDoc,
|
|
3125
3125
|
rel: "noopener",
|
|
3126
3126
|
target: "_blank"
|
|
@@ -3128,10 +3128,10 @@ ${w.value}
|
|
|
3128
3128
|
Z(C(Nt), {
|
|
3129
3129
|
size: `var(--kui-icon-size-40, ${C(Ze)})`
|
|
3130
3130
|
}, null, 8, ["size"])
|
|
3131
|
-
], 8,
|
|
3131
|
+
], 8, Qi)
|
|
3132
3132
|
]),
|
|
3133
3133
|
_: 1
|
|
3134
|
-
})) :
|
|
3134
|
+
})) : ee("", !0)
|
|
3135
3135
|
])
|
|
3136
3136
|
]),
|
|
3137
3137
|
default: R(() => [
|
|
@@ -3146,11 +3146,11 @@ ${w.value}
|
|
|
3146
3146
|
"icon-variant": "error"
|
|
3147
3147
|
}, {
|
|
3148
3148
|
default: R(() => [
|
|
3149
|
-
|
|
3149
|
+
ne("h3", null, H(E.value), 1)
|
|
3150
3150
|
]),
|
|
3151
3151
|
_: 1
|
|
3152
|
-
})) : (b(), V("div",
|
|
3153
|
-
Z(
|
|
3152
|
+
})) : (b(), V("div", Xi, [
|
|
3153
|
+
Z(Vi, {
|
|
3154
3154
|
"code-block-record": J.value,
|
|
3155
3155
|
"code-block-record-formatter": t.codeBlockRecordFormatter,
|
|
3156
3156
|
"code-block-record-redacted": ae.value ? void 0 : q.value,
|
|
@@ -3181,7 +3181,7 @@ ${w.value}
|
|
|
3181
3181
|
t.hideTitle ? void 0 : {
|
|
3182
3182
|
name: "title",
|
|
3183
3183
|
fn: R(() => [
|
|
3184
|
-
|
|
3184
|
+
ne("span", Wi, [
|
|
3185
3185
|
pe(L.$slots, "title", {}, () => [
|
|
3186
3186
|
ue(H(C(s)("baseConfigCard.title")), 1)
|
|
3187
3187
|
], !0)
|
|
@@ -3192,10 +3192,10 @@ ${w.value}
|
|
|
3192
3192
|
]), 1032, ["title-tag"]);
|
|
3193
3193
|
};
|
|
3194
3194
|
}
|
|
3195
|
-
}),
|
|
3195
|
+
}), jr = /* @__PURE__ */ we(Zi, [["__scopeId", "data-v-fcf2efdc"]]), eo = ["novalidate"], to = {
|
|
3196
3196
|
key: 0,
|
|
3197
3197
|
class: "button-customize-deck-wrapper"
|
|
3198
|
-
},
|
|
3198
|
+
}, no = /* @__PURE__ */ ke({
|
|
3199
3199
|
__name: "EntityBaseForm",
|
|
3200
3200
|
props: {
|
|
3201
3201
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3353,7 +3353,7 @@ ${w.value}
|
|
|
3353
3353
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3354
3354
|
setup(t, { expose: o, emit: i }) {
|
|
3355
3355
|
var de, fe;
|
|
3356
|
-
const l = Lt(
|
|
3356
|
+
const l = Lt(_n, se(!1)), s = i, y = t, r = Vn(), { i18n: { t: u } } = ge.useI18n(), { getMessageFromError: p } = ge.useErrors(), { axiosInstance: f } = ge.useAxios((de = y.config) == null ? void 0 : de.axiosRequestConfig), g = se(!1), a = j(() => !!y.editId), c = se(!1), v = se(""), P = j(() => y.canSubmit === !1 || y.isReadonly), w = se(!1), B = j(() => {
|
|
3357
3357
|
var ce, L;
|
|
3358
3358
|
let oe = `${y.config.apiBaseUrl}${y.fetchUrl}`;
|
|
3359
3359
|
return y.config.app === "konnect" && (oe = oe.replace(/{controlPlaneId}/gi, ((ce = y.config) == null ? void 0 : ce.controlPlaneId) || "")), oe = oe.replace(/\/{workspace}/gi, (L = y.config) != null && L.workspace ? `/${y.config.workspace}` : ""), y.editId ? (oe = oe.replace(/{id}/gi, y.editId), oe) : (oe = oe.replace(/\/{id}/gi, ""), oe);
|
|
@@ -3370,9 +3370,9 @@ ${w.value}
|
|
|
3370
3370
|
y.config.cancelRoute ? r.push(y.config.cancelRoute) : q();
|
|
3371
3371
|
}, q = () => {
|
|
3372
3372
|
s("cancel");
|
|
3373
|
-
},
|
|
3373
|
+
}, F = () => {
|
|
3374
3374
|
P.value || s("submit");
|
|
3375
|
-
},
|
|
3375
|
+
}, _ = j(() => {
|
|
3376
3376
|
const oe = [
|
|
3377
3377
|
{
|
|
3378
3378
|
title: u("baseForm.configuration.json"),
|
|
@@ -3392,8 +3392,8 @@ ${w.value}
|
|
|
3392
3392
|
});
|
|
3393
3393
|
const ce = new Set(y.tabsToHide.map((L) => `#${L}`));
|
|
3394
3394
|
return oe.filter((L) => !ce.has(L.hash));
|
|
3395
|
-
}), D = se((fe =
|
|
3396
|
-
return Le(
|
|
3395
|
+
}), D = se((fe = _.value[0]) == null ? void 0 : fe.hash);
|
|
3396
|
+
return Le(_, (oe) => {
|
|
3397
3397
|
var ce;
|
|
3398
3398
|
oe.some((L) => L.hash === D.value) || (D.value = (ce = oe[0]) == null ? void 0 : ce.hash);
|
|
3399
3399
|
}), Le(() => g.value, (oe) => {
|
|
@@ -3413,9 +3413,9 @@ ${w.value}
|
|
|
3413
3413
|
}), o({
|
|
3414
3414
|
viewConfig: J,
|
|
3415
3415
|
formCancel: q,
|
|
3416
|
-
formSubmit:
|
|
3416
|
+
formSubmit: F
|
|
3417
3417
|
}), (oe, ce) => {
|
|
3418
|
-
const L = ie("KSkeleton"), U = ie("KEmptyState"), re = ie("KAlert"),
|
|
3418
|
+
const L = ie("KSkeleton"), U = ie("KEmptyState"), re = ie("KAlert"), M = ie("KButton"), Se = ie("KTabs"), le = ie("KSlideout");
|
|
3419
3419
|
return b(), G(Ge(t.wrapperComponent), {
|
|
3420
3420
|
class: Ee(["kong-ui-entity-base-form", {
|
|
3421
3421
|
"new-form-layout": C(l) && t.entityType === C(je).Plugin
|
|
@@ -3433,7 +3433,7 @@ ${w.value}
|
|
|
3433
3433
|
onClickAction: ae
|
|
3434
3434
|
}, {
|
|
3435
3435
|
default: R(() => [
|
|
3436
|
-
|
|
3436
|
+
ne("h3", null, H(v.value), 1)
|
|
3437
3437
|
]),
|
|
3438
3438
|
_: 1
|
|
3439
3439
|
}, 8, ["action-button-text"])) : (b(), V("form", {
|
|
@@ -3441,7 +3441,7 @@ ${w.value}
|
|
|
3441
3441
|
"data-testid": "form-content",
|
|
3442
3442
|
novalidate: y.noValidate,
|
|
3443
3443
|
onReset: et(q, ["prevent"]),
|
|
3444
|
-
onSubmit: et(
|
|
3444
|
+
onSubmit: et(F, ["prevent"])
|
|
3445
3445
|
}, [
|
|
3446
3446
|
pe(oe.$slots, "default", {}, void 0, !0),
|
|
3447
3447
|
t.errorMessage ? (b(), G(re, {
|
|
@@ -3450,18 +3450,18 @@ ${w.value}
|
|
|
3450
3450
|
class: "form-error",
|
|
3451
3451
|
"data-testid": "form-error",
|
|
3452
3452
|
message: t.errorMessage
|
|
3453
|
-
}, null, 8, ["message"])) :
|
|
3454
|
-
t.hideActions ?
|
|
3453
|
+
}, null, 8, ["message"])) : ee("", !0),
|
|
3454
|
+
t.hideActions ? ee("", !0) : (b(), G(Ft, {
|
|
3455
3455
|
key: 1,
|
|
3456
3456
|
disabled: !t.actionTeleportTarget,
|
|
3457
3457
|
to: t.actionTeleportTarget
|
|
3458
3458
|
}, [
|
|
3459
|
-
|
|
3459
|
+
ne("div", {
|
|
3460
3460
|
class: Ee(["form-actions", { "form-actions-reverted": t.alignActionButtonToLeft }]),
|
|
3461
3461
|
"data-testid": "form-actions"
|
|
3462
3462
|
}, [
|
|
3463
3463
|
pe(oe.$slots, "form-actions", {}, () => [
|
|
3464
|
-
Z(
|
|
3464
|
+
Z(M, {
|
|
3465
3465
|
appearance: "tertiary",
|
|
3466
3466
|
"data-testid": `${t.entityType}-${a.value ? "edit" : "create"}-form-view-configuration`,
|
|
3467
3467
|
onClick: ce[0] || (ce[0] = (Q) => J())
|
|
@@ -3471,7 +3471,7 @@ ${w.value}
|
|
|
3471
3471
|
]),
|
|
3472
3472
|
_: 1
|
|
3473
3473
|
}, 8, ["data-testid"]),
|
|
3474
|
-
Z(
|
|
3474
|
+
Z(M, {
|
|
3475
3475
|
appearance: "secondary",
|
|
3476
3476
|
"data-testid": `${t.entityType}-${a.value ? "edit" : "create"}-form-cancel`,
|
|
3477
3477
|
disabled: t.isReadonly,
|
|
@@ -3483,12 +3483,12 @@ ${w.value}
|
|
|
3483
3483
|
]),
|
|
3484
3484
|
_: 1
|
|
3485
3485
|
}, 8, ["data-testid", "disabled"]),
|
|
3486
|
-
Z(
|
|
3486
|
+
Z(M, {
|
|
3487
3487
|
appearance: "primary",
|
|
3488
3488
|
"data-testid": `${t.entityType}-${a.value ? "edit" : "create"}-form-submit`,
|
|
3489
3489
|
disabled: P.value,
|
|
3490
3490
|
type: "submit",
|
|
3491
|
-
onClick: ce[2] || (ce[2] = (Q) => !!t.actionTeleportTarget &&
|
|
3491
|
+
onClick: ce[2] || (ce[2] = (Q) => !!t.actionTeleportTarget && F())
|
|
3492
3492
|
}, {
|
|
3493
3493
|
default: R(() => [
|
|
3494
3494
|
ue(H(t.saveButtonText ?? C(u)("baseForm.actions.save")), 1)
|
|
@@ -3498,7 +3498,7 @@ ${w.value}
|
|
|
3498
3498
|
], !0)
|
|
3499
3499
|
], 2)
|
|
3500
3500
|
], 8, ["disabled", "to"]))
|
|
3501
|
-
], 40,
|
|
3501
|
+
], 40, eo)),
|
|
3502
3502
|
Z(le, {
|
|
3503
3503
|
"close-on-blur": !1,
|
|
3504
3504
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3509,7 +3509,7 @@ ${w.value}
|
|
|
3509
3509
|
onClose: ce[8] || (ce[8] = (Q) => J())
|
|
3510
3510
|
}, {
|
|
3511
3511
|
default: R(() => [
|
|
3512
|
-
|
|
3512
|
+
ne("div", null, [
|
|
3513
3513
|
pe(oe.$slots, "configuration-slideout-message", {}, () => [
|
|
3514
3514
|
ue(H(C(u)("baseForm.configuration.message")), 1)
|
|
3515
3515
|
], !0)
|
|
@@ -3518,7 +3518,7 @@ ${w.value}
|
|
|
3518
3518
|
modelValue: D.value,
|
|
3519
3519
|
"onUpdate:modelValue": ce[6] || (ce[6] = (Q) => D.value = Q),
|
|
3520
3520
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3521
|
-
tabs:
|
|
3521
|
+
tabs: _.value,
|
|
3522
3522
|
onChange: ce[7] || (ce[7] = (Q) => s("codeBlockTabChange", Q.replace("#", "")))
|
|
3523
3523
|
}, {
|
|
3524
3524
|
json: R(() => [
|
|
@@ -3544,8 +3544,8 @@ ${w.value}
|
|
|
3544
3544
|
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])
|
|
3545
3545
|
]),
|
|
3546
3546
|
deck: R(() => [
|
|
3547
|
-
C($) ? (b(), V("div",
|
|
3548
|
-
Z(
|
|
3547
|
+
C($) ? (b(), V("div", to, [
|
|
3548
|
+
Z(M, {
|
|
3549
3549
|
appearance: "secondary",
|
|
3550
3550
|
class: "button-customize-deck",
|
|
3551
3551
|
onClick: ce[4] || (ce[4] = (Q) => N.value = !0)
|
|
@@ -3555,7 +3555,7 @@ ${w.value}
|
|
|
3555
3555
|
]),
|
|
3556
3556
|
_: 1
|
|
3557
3557
|
})
|
|
3558
|
-
])) :
|
|
3558
|
+
])) : ee("", !0),
|
|
3559
3559
|
Z(mn, {
|
|
3560
3560
|
app: t.config.app,
|
|
3561
3561
|
"control-plane-name": t.config.app === "konnect" ? t.config.controlPlaneName : void 0,
|
|
@@ -3579,7 +3579,7 @@ ${w.value}
|
|
|
3579
3579
|
}, 8, ["class"]);
|
|
3580
3580
|
};
|
|
3581
3581
|
}
|
|
3582
|
-
}),
|
|
3582
|
+
}), Ur = /* @__PURE__ */ we(no, [["__scopeId", "data-v-b3590221"]]), io = ["data-truncate"], oo = /* @__PURE__ */ ke({
|
|
3583
3583
|
__name: "EntityBaseTableCell",
|
|
3584
3584
|
props: {
|
|
3585
3585
|
keyName: {
|
|
@@ -3658,17 +3658,17 @@ ${w.value}
|
|
|
3658
3658
|
]),
|
|
3659
3659
|
_: 3
|
|
3660
3660
|
}, 8, ["text"])
|
|
3661
|
-
], 8,
|
|
3661
|
+
], 8, io)) : pe(B.$slots, "default", { key: 1 }, void 0, !0)
|
|
3662
3662
|
], 512);
|
|
3663
3663
|
};
|
|
3664
3664
|
}
|
|
3665
|
-
}),
|
|
3665
|
+
}), ro = /* @__PURE__ */ we(oo, [["__scopeId", "data-v-a3a65cac"]]), lo = { class: "toolbar-container" }, ao = {
|
|
3666
3666
|
key: 0,
|
|
3667
3667
|
class: "toolbar-button-container"
|
|
3668
|
-
},
|
|
3668
|
+
}, co = {
|
|
3669
3669
|
key: 0,
|
|
3670
3670
|
class: "hidden"
|
|
3671
|
-
},
|
|
3671
|
+
}, so = /* @__PURE__ */ ke({
|
|
3672
3672
|
__name: "EntityBaseTable",
|
|
3673
3673
|
props: {
|
|
3674
3674
|
// table header configuration
|
|
@@ -3814,73 +3814,73 @@ ${w.value}
|
|
|
3814
3814
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
|
|
3815
3815
|
setup(t, { emit: o }) {
|
|
3816
3816
|
const i = t, l = o, { i18n: { t: s } } = ge.useI18n(), y = j(() => {
|
|
3817
|
-
var
|
|
3817
|
+
var _, D;
|
|
3818
3818
|
return typeof i.errorMessage == "string" ? {
|
|
3819
3819
|
hasError: !!i.errorMessage,
|
|
3820
3820
|
title: i.errorMessage,
|
|
3821
3821
|
message: void 0
|
|
3822
3822
|
} : {
|
|
3823
3823
|
hasError: !!i.errorMessage,
|
|
3824
|
-
title: (
|
|
3824
|
+
title: (_ = i.errorMessage) == null ? void 0 : _.title,
|
|
3825
3825
|
message: (D = i.errorMessage) == null ? void 0 : D.message
|
|
3826
3826
|
};
|
|
3827
3827
|
}), r = j(() => i.cacheIdentifier || i.preferencesStorageKey), u = j(() => {
|
|
3828
|
-
const
|
|
3828
|
+
const _ = [];
|
|
3829
3829
|
return Object.keys(i.tableHeaders).forEach((de) => {
|
|
3830
3830
|
const fe = i.tableHeaders[de];
|
|
3831
|
-
|
|
3831
|
+
_.push({
|
|
3832
3832
|
label: fe.label ?? de,
|
|
3833
3833
|
key: de,
|
|
3834
3834
|
sortable: fe.sortable ?? !1,
|
|
3835
3835
|
hidable: fe.hidable ?? !0
|
|
3836
3836
|
});
|
|
3837
|
-
}), i.enableEntityActions &&
|
|
3837
|
+
}), i.enableEntityActions && _.push({
|
|
3838
3838
|
key: "actions",
|
|
3839
3839
|
hideLabel: !0
|
|
3840
|
-
}),
|
|
3841
|
-
}), p = (
|
|
3842
|
-
"data-rowid":
|
|
3843
|
-
"data-testid":
|
|
3844
|
-
...i.rowAttributes(
|
|
3845
|
-
}), f = se({}), g = (
|
|
3840
|
+
}), _;
|
|
3841
|
+
}), p = (_) => ({
|
|
3842
|
+
"data-rowid": _.id,
|
|
3843
|
+
"data-testid": _.name,
|
|
3844
|
+
...i.rowAttributes(_)
|
|
3845
|
+
}), f = se({}), g = (_) => {
|
|
3846
3846
|
var D;
|
|
3847
|
-
return (D = f.value) == null ? void 0 : D.$el.querySelector(`[data-rowid="${
|
|
3848
|
-
}, a = (
|
|
3847
|
+
return (D = f.value) == null ? void 0 : D.$el.querySelector(`[data-rowid="${_.id}"]`);
|
|
3848
|
+
}, a = (_) => {
|
|
3849
3849
|
const D = {
|
|
3850
|
-
"data-testid":
|
|
3851
|
-
...i.cellAttributes(
|
|
3850
|
+
"data-testid": _.headerKey,
|
|
3851
|
+
...i.cellAttributes(_)
|
|
3852
3852
|
};
|
|
3853
|
-
return
|
|
3853
|
+
return _.colIndex === 0 && (D.style = {
|
|
3854
3854
|
maxWidth: "250px",
|
|
3855
3855
|
overflowX: "hidden",
|
|
3856
3856
|
textOverflow: "ellipsis"
|
|
3857
3857
|
}), D;
|
|
3858
|
-
}, c = (
|
|
3859
|
-
E(
|
|
3858
|
+
}, c = (_) => {
|
|
3859
|
+
E(_), l("state", _);
|
|
3860
3860
|
}, v = () => {
|
|
3861
3861
|
l("empty-state-cta-clicked"), P();
|
|
3862
3862
|
}, P = () => {
|
|
3863
3863
|
l("clear-search-input");
|
|
3864
|
-
}, w = j(() => i.disableRowClick ? void 0 : (
|
|
3864
|
+
}, w = j(() => i.disableRowClick ? void 0 : (_, D) => {
|
|
3865
3865
|
l("click:row", D);
|
|
3866
|
-
}), B = (
|
|
3867
|
-
l("sort",
|
|
3866
|
+
}), B = (_) => {
|
|
3867
|
+
l("sort", _);
|
|
3868
3868
|
}, { hideTableToolbar: N, handleStateChange: E } = ge.useTableState(() => i.query), { setTablePreferences: $, getTablePreferences: W } = En(), J = se(W(r.value, i.defaultTablePreferences)), ae = j(() => {
|
|
3869
|
-
const
|
|
3869
|
+
const _ = W(r.value);
|
|
3870
3870
|
return {
|
|
3871
3871
|
...i.initialFetcherParams,
|
|
3872
|
-
...
|
|
3872
|
+
..._
|
|
3873
3873
|
};
|
|
3874
|
-
}), q = (
|
|
3875
|
-
J.value =
|
|
3874
|
+
}), q = (_) => {
|
|
3875
|
+
J.value = _, u.value.forEach((D) => {
|
|
3876
3876
|
!("hidable" in D) || !J.value.columnVisibility || D.hidable === !1 && (J.value.columnVisibility[D.key] = !0);
|
|
3877
|
-
}), r.value && $(r.value,
|
|
3878
|
-
},
|
|
3877
|
+
}), r.value && $(r.value, _);
|
|
3878
|
+
}, F = j(() => ({
|
|
3879
3879
|
disablePageJump: i.disablePaginationPageJump,
|
|
3880
3880
|
offset: i.paginationType === "offset",
|
|
3881
3881
|
...i.paginationAttributes
|
|
3882
3882
|
}));
|
|
3883
|
-
return (
|
|
3883
|
+
return (_, D) => {
|
|
3884
3884
|
const de = ie("KTableData"), fe = ie("KCard");
|
|
3885
3885
|
return b(), G(fe, {
|
|
3886
3886
|
class: "kong-ui-entity-base-table",
|
|
@@ -3910,7 +3910,7 @@ ${w.value}
|
|
|
3910
3910
|
"hide-toolbar": t.hideToolbar ?? C(N),
|
|
3911
3911
|
"initial-fetcher-params": ae.value,
|
|
3912
3912
|
loading: t.isLoading,
|
|
3913
|
-
"pagination-attributes":
|
|
3913
|
+
"pagination-attributes": F.value,
|
|
3914
3914
|
"resize-columns": "",
|
|
3915
3915
|
"row-attrs": p,
|
|
3916
3916
|
"row-key": t.rowKey,
|
|
@@ -3925,35 +3925,35 @@ ${w.value}
|
|
|
3925
3925
|
"onUpdate:tablePreferences": q
|
|
3926
3926
|
}, Ue({
|
|
3927
3927
|
toolbar: R(() => [
|
|
3928
|
-
|
|
3929
|
-
pe(
|
|
3930
|
-
|
|
3931
|
-
pe(
|
|
3932
|
-
])) :
|
|
3928
|
+
ne("div", lo, [
|
|
3929
|
+
pe(_.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3930
|
+
_.$slots["toolbar-button"] ? (b(), V("div", ao, [
|
|
3931
|
+
pe(_.$slots, "toolbar-button", {}, void 0, !0)
|
|
3932
|
+
])) : ee("", !0)
|
|
3933
3933
|
])
|
|
3934
3934
|
]),
|
|
3935
3935
|
"action-items": R(({ row: oe }) => [
|
|
3936
|
-
pe(
|
|
3936
|
+
pe(_.$slots, "actions", { row: oe }, void 0, !0)
|
|
3937
3937
|
]),
|
|
3938
3938
|
_: 2
|
|
3939
3939
|
}, [
|
|
3940
|
-
|
|
3940
|
+
_.$slots["empty-state"] ? {
|
|
3941
3941
|
name: "empty-state",
|
|
3942
3942
|
fn: R(() => [
|
|
3943
|
-
pe(
|
|
3943
|
+
pe(_.$slots, "empty-state", {}, void 0, !0)
|
|
3944
3944
|
]),
|
|
3945
3945
|
key: "0"
|
|
3946
3946
|
} : void 0,
|
|
3947
3947
|
Ke(t.tableHeaders, (oe, ce) => ({
|
|
3948
3948
|
name: ce,
|
|
3949
3949
|
fn: R(({ row: L, rowValue: U }) => [
|
|
3950
|
-
Z(
|
|
3950
|
+
Z(ro, {
|
|
3951
3951
|
"key-name": String(ce),
|
|
3952
3952
|
"row-el": g(L),
|
|
3953
3953
|
tooltip: oe.tooltip
|
|
3954
3954
|
}, {
|
|
3955
3955
|
default: R(() => [
|
|
3956
|
-
pe(
|
|
3956
|
+
pe(_.$slots, ce, {
|
|
3957
3957
|
row: L,
|
|
3958
3958
|
rowKey: t.rowKey,
|
|
3959
3959
|
rowValue: U
|
|
@@ -3973,21 +3973,21 @@ ${w.value}
|
|
|
3973
3973
|
key: "1"
|
|
3974
3974
|
}
|
|
3975
3975
|
]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
|
|
3976
|
-
|
|
3977
|
-
pe(
|
|
3978
|
-
])) :
|
|
3976
|
+
_.$slots["outside-actions"] && C(N) ? (b(), V("div", co, [
|
|
3977
|
+
pe(_.$slots, "outside-actions", {}, void 0, !0)
|
|
3978
|
+
])) : ee("", !0)
|
|
3979
3979
|
]),
|
|
3980
3980
|
_: 3
|
|
3981
3981
|
}, 8, ["title", "title-tag"]);
|
|
3982
3982
|
};
|
|
3983
3983
|
}
|
|
3984
|
-
}),
|
|
3984
|
+
}), zr = /* @__PURE__ */ we(so, [["__scopeId", "data-v-09e101d4"]]), uo = {
|
|
3985
3985
|
key: 0,
|
|
3986
3986
|
class: "kong-ui-entity-delete-error"
|
|
3987
|
-
},
|
|
3987
|
+
}, fo = {
|
|
3988
3988
|
key: 1,
|
|
3989
3989
|
class: "description"
|
|
3990
|
-
},
|
|
3990
|
+
}, po = /* @__PURE__ */ ke({
|
|
3991
3991
|
__name: "EntityDeleteModal",
|
|
3992
3992
|
props: {
|
|
3993
3993
|
visible: {
|
|
@@ -4061,17 +4061,17 @@ ${w.value}
|
|
|
4061
4061
|
onProceed: p
|
|
4062
4062
|
}, {
|
|
4063
4063
|
default: R(() => [
|
|
4064
|
-
|
|
4064
|
+
ne("div", {
|
|
4065
4065
|
class: Ee(["body", { "body-stacked-copy": t.stackedCopy }])
|
|
4066
4066
|
}, [
|
|
4067
|
-
t.error ? (b(), V("div",
|
|
4067
|
+
t.error ? (b(), V("div", uo, [
|
|
4068
4068
|
Z(a, { appearance: "danger" }, {
|
|
4069
4069
|
default: R(() => [
|
|
4070
4070
|
ue(H(t.error), 1)
|
|
4071
4071
|
]),
|
|
4072
4072
|
_: 1
|
|
4073
4073
|
})
|
|
4074
|
-
])) :
|
|
4074
|
+
])) : ee("", !0),
|
|
4075
4075
|
pe(f.$slots, "message", {}, () => [
|
|
4076
4076
|
Z(C(i), {
|
|
4077
4077
|
class: "message",
|
|
@@ -4086,66 +4086,27 @@ ${w.value}
|
|
|
4086
4086
|
l.entityName ? {
|
|
4087
4087
|
name: "entityName",
|
|
4088
4088
|
fn: R(() => [
|
|
4089
|
-
|
|
4089
|
+
ne("strong", null, H(l.entityName), 1)
|
|
4090
4090
|
]),
|
|
4091
4091
|
key: "0"
|
|
4092
4092
|
} : void 0
|
|
4093
4093
|
]), 1032, ["keypath"])
|
|
4094
4094
|
], !0),
|
|
4095
|
-
l.description || f.$slots.description ? (b(), V("div",
|
|
4095
|
+
l.description || f.$slots.description ? (b(), V("div", fo, [
|
|
4096
4096
|
pe(f.$slots, "description", {}, () => [
|
|
4097
|
-
|
|
4097
|
+
ne("p", null, H(l.description), 1)
|
|
4098
4098
|
], !0)
|
|
4099
|
-
])) :
|
|
4099
|
+
])) : ee("", !0)
|
|
4100
4100
|
], 2)
|
|
4101
4101
|
]),
|
|
4102
4102
|
_: 3
|
|
4103
4103
|
}, 8, ["action-button-disabled", "class", "confirmation-prompt", "confirmation-text", "title", "visible"]);
|
|
4104
4104
|
};
|
|
4105
4105
|
}
|
|
4106
|
-
}),
|
|
4107
|
-
fill: "none",
|
|
4108
|
-
height: "20",
|
|
4109
|
-
viewBox: "0 0 20 20",
|
|
4110
|
-
width: "20",
|
|
4111
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4112
|
-
}, go = {
|
|
4113
|
-
id: "mask0_180_20349",
|
|
4114
|
-
height: "20",
|
|
4115
|
-
"mask-type": "alpha",
|
|
4116
|
-
maskUnits: "userSpaceOnUse",
|
|
4117
|
-
width: "20",
|
|
4118
|
-
x: "0",
|
|
4119
|
-
y: "0"
|
|
4120
|
-
}, ho = ["fill"], vo = { mask: "url(#mask0_180_20349)" }, bo = ["fill"], Rt = /* @__PURE__ */ ke({
|
|
4121
|
-
__name: "IconFilter",
|
|
4122
|
-
props: {
|
|
4123
|
-
color: {
|
|
4124
|
-
type: String,
|
|
4125
|
-
default: `var(--kong-ui-entity-filter-color, ${ti})`
|
|
4126
|
-
}
|
|
4127
|
-
},
|
|
4128
|
-
setup(t) {
|
|
4129
|
-
return (o, i) => (b(), V("svg", yo, [
|
|
4130
|
-
ee("mask", go, [
|
|
4131
|
-
ee("rect", {
|
|
4132
|
-
fill: t.color,
|
|
4133
|
-
height: "20",
|
|
4134
|
-
width: "20"
|
|
4135
|
-
}, null, 8, ho)
|
|
4136
|
-
]),
|
|
4137
|
-
ee("g", vo, [
|
|
4138
|
-
ee("path", {
|
|
4139
|
-
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4140
|
-
fill: t.color
|
|
4141
|
-
}, null, 8, bo)
|
|
4142
|
-
])
|
|
4143
|
-
]));
|
|
4144
|
-
}
|
|
4145
|
-
}), ko = {
|
|
4106
|
+
}), Hr = /* @__PURE__ */ we(po, [["__scopeId", "data-v-fc366e0c"]]), mo = {
|
|
4146
4107
|
key: 1,
|
|
4147
4108
|
class: "kong-ui-entity-filter"
|
|
4148
|
-
},
|
|
4109
|
+
}, yo = { class: "kong-ui-entity-filter-menu" }, go = ["data-testid"], ho = ["onClick", "onKeydown"], vo = { class: "menu-item-indicator" }, bo = { class: "menu-item-body" }, ko = ["for"], Co = { class: "menu-item-buttons" }, Ao = { class: "filter-clear-button-container" }, So = /* @__PURE__ */ ke({
|
|
4149
4110
|
__name: "EntityFilter",
|
|
4150
4111
|
props: {
|
|
4151
4112
|
// filter config, either exact match or fuzzy match
|
|
@@ -4167,23 +4128,23 @@ ${w.value}
|
|
|
4167
4128
|
setup(t, { emit: o }) {
|
|
4168
4129
|
const { i18n: { t: i } } = ge.useI18n(), l = t, s = o, y = se(!1), r = se({}), u = se(/* @__PURE__ */ new Set()), p = j(() => {
|
|
4169
4130
|
const q = [];
|
|
4170
|
-
return new URLSearchParams(l.modelValue).forEach((
|
|
4171
|
-
|
|
4131
|
+
return new URLSearchParams(l.modelValue).forEach((F, _) => {
|
|
4132
|
+
F !== "" && q.push(_);
|
|
4172
4133
|
}), q;
|
|
4173
4134
|
}), f = j(() => {
|
|
4174
4135
|
const q = l.config.fields;
|
|
4175
|
-
return Object.keys(q).filter((
|
|
4176
|
-
var
|
|
4177
|
-
return (
|
|
4178
|
-
}).map((
|
|
4179
|
-
label: q[
|
|
4180
|
-
value:
|
|
4136
|
+
return Object.keys(q).filter((F) => {
|
|
4137
|
+
var _;
|
|
4138
|
+
return (_ = q == null ? void 0 : q[F]) == null ? void 0 : _.searchable;
|
|
4139
|
+
}).map((F) => ({
|
|
4140
|
+
label: q[F].label || F,
|
|
4141
|
+
value: F,
|
|
4181
4142
|
expanded: !1
|
|
4182
4143
|
}));
|
|
4183
4144
|
});
|
|
4184
4145
|
Le(() => l.modelValue, (q) => {
|
|
4185
|
-
r.value = {}, new URLSearchParams(q).forEach((
|
|
4186
|
-
r.value[
|
|
4146
|
+
r.value = {}, new URLSearchParams(q).forEach((F, _) => {
|
|
4147
|
+
r.value[_] = F;
|
|
4187
4148
|
});
|
|
4188
4149
|
});
|
|
4189
4150
|
const g = () => {
|
|
@@ -4195,11 +4156,11 @@ ${w.value}
|
|
|
4195
4156
|
}, v = () => {
|
|
4196
4157
|
c("");
|
|
4197
4158
|
}, P = (q) => `filter-${q}`, w = (q) => {
|
|
4198
|
-
var
|
|
4199
|
-
return (((
|
|
4159
|
+
var F, _;
|
|
4160
|
+
return (((_ = (F = l.config.schema) == null ? void 0 : F[q]) == null ? void 0 : _.values) ?? []).map((D) => typeof D == "string" ? { value: D, label: D } : D);
|
|
4200
4161
|
}, B = (q) => {
|
|
4201
|
-
var
|
|
4202
|
-
return ((
|
|
4162
|
+
var F, _;
|
|
4163
|
+
return ((_ = (F = l.config.schema) == null ? void 0 : F[q]) == null ? void 0 : _.type) ?? "text";
|
|
4203
4164
|
}, N = (q) => {
|
|
4204
4165
|
r.value = {
|
|
4205
4166
|
...r.value,
|
|
@@ -4208,21 +4169,21 @@ ${w.value}
|
|
|
4208
4169
|
}, E = () => {
|
|
4209
4170
|
r.value = {}, $(!0);
|
|
4210
4171
|
}, $ = (q = !1) => {
|
|
4211
|
-
const
|
|
4212
|
-
q && (y.value = !1), s("update:modelValue", new URLSearchParams(
|
|
4172
|
+
const F = Object.keys(r.value).reduce((_, D) => (r.value[D] && (_[D] = `${r.value[D]}`), _), {});
|
|
4173
|
+
q && (y.value = !1), s("update:modelValue", new URLSearchParams(F).toString());
|
|
4213
4174
|
}, W = (q) => {
|
|
4214
|
-
var
|
|
4215
|
-
return !!((
|
|
4216
|
-
}, J = (q,
|
|
4175
|
+
var F, _;
|
|
4176
|
+
return !!((_ = (F = l.config.schema) == null ? void 0 : F[q]) != null && _.filterFunction);
|
|
4177
|
+
}, J = (q, F) => {
|
|
4217
4178
|
var D;
|
|
4218
|
-
const
|
|
4219
|
-
return (
|
|
4220
|
-
}, ae = (q,
|
|
4221
|
-
r.value[q] =
|
|
4179
|
+
const _ = (D = l.config.schema) == null ? void 0 : D[q];
|
|
4180
|
+
return (_ == null ? void 0 : _.filterFunction) === void 0 ? !0 : _.filterFunction(F);
|
|
4181
|
+
}, ae = (q, F) => {
|
|
4182
|
+
r.value[q] = F ? F.custom ? String(F.label) : String(F.value) : "";
|
|
4222
4183
|
};
|
|
4223
|
-
return (q,
|
|
4224
|
-
const
|
|
4225
|
-
return t.config.isExactMatch ? (b(), G(
|
|
4184
|
+
return (q, F) => {
|
|
4185
|
+
const _ = ie("KInput"), D = ie("KButton"), de = ie("KSelect");
|
|
4186
|
+
return t.config.isExactMatch ? (b(), G(_, {
|
|
4226
4187
|
key: 0,
|
|
4227
4188
|
autocomplete: "off",
|
|
4228
4189
|
class: "kong-ui-entity-filter-input",
|
|
@@ -4232,66 +4193,66 @@ ${w.value}
|
|
|
4232
4193
|
"onUpdate:modelValue": c
|
|
4233
4194
|
}, {
|
|
4234
4195
|
before: R(() => [
|
|
4235
|
-
Z(
|
|
4196
|
+
Z(C(Et), { decorative: "" })
|
|
4236
4197
|
]),
|
|
4237
4198
|
after: R(() => [
|
|
4238
|
-
|
|
4199
|
+
Ye(Z(C(Un), {
|
|
4239
4200
|
class: "kong-ui-entity-filter-clear",
|
|
4240
4201
|
role: "button",
|
|
4241
4202
|
tabindex: "0",
|
|
4242
4203
|
onClick: v
|
|
4243
4204
|
}, null, 512), [
|
|
4244
|
-
[
|
|
4205
|
+
[Ve, t.modelValue !== ""]
|
|
4245
4206
|
])
|
|
4246
4207
|
]),
|
|
4247
4208
|
_: 1
|
|
4248
|
-
}, 8, ["model-value", "placeholder"])) : (b(), V("div",
|
|
4209
|
+
}, 8, ["model-value", "placeholder"])) : (b(), V("div", mo, [
|
|
4249
4210
|
Z(D, {
|
|
4250
4211
|
appearance: "tertiary",
|
|
4251
4212
|
"data-testid": "filter-button",
|
|
4252
4213
|
onClick: g
|
|
4253
4214
|
}, {
|
|
4254
4215
|
default: R(() => [
|
|
4255
|
-
Z(
|
|
4216
|
+
Z(C(Et), { decorative: "" }),
|
|
4256
4217
|
ue(" " + H(C(i)("filter.filterButtonText")) + " " + H(p.value.length > 0 ? `(${p.value.length})` : ""), 1)
|
|
4257
4218
|
]),
|
|
4258
4219
|
_: 1
|
|
4259
4220
|
}),
|
|
4260
|
-
|
|
4221
|
+
Ye(ne("div", {
|
|
4261
4222
|
class: "kong-ui-entity-filter-backdrop",
|
|
4262
4223
|
onClick: g
|
|
4263
4224
|
}, null, 512), [
|
|
4264
|
-
[
|
|
4225
|
+
[Ve, y.value]
|
|
4265
4226
|
]),
|
|
4266
|
-
|
|
4267
|
-
(b(!0), V(
|
|
4227
|
+
Ye(ne("div", yo, [
|
|
4228
|
+
(b(!0), V(_e, null, Ke(f.value, (fe) => {
|
|
4268
4229
|
var oe, ce, L, U;
|
|
4269
4230
|
return b(), V("div", {
|
|
4270
4231
|
key: fe.value,
|
|
4271
4232
|
class: "kong-ui-entity-filter-menu-item",
|
|
4272
4233
|
"data-testid": fe.value
|
|
4273
4234
|
}, [
|
|
4274
|
-
|
|
4235
|
+
ne("span", {
|
|
4275
4236
|
class: Ee(["menu-item-title", { expanded: u.value.has(fe.value) }]),
|
|
4276
4237
|
role: "button",
|
|
4277
4238
|
tabindex: "0",
|
|
4278
4239
|
onClick: (re) => a(fe.value),
|
|
4279
|
-
onKeydown:
|
|
4240
|
+
onKeydown: Mt((re) => a(fe.value), ["enter"])
|
|
4280
4241
|
}, [
|
|
4281
4242
|
ue(H(fe.label) + " ", 1),
|
|
4282
|
-
|
|
4283
|
-
[
|
|
4243
|
+
Ye(ne("span", vo, null, 512), [
|
|
4244
|
+
[Ve, p.value.includes(fe.value)]
|
|
4284
4245
|
]),
|
|
4285
4246
|
Z(C(zn), {
|
|
4286
4247
|
class: Ee(["menu-item-expand-icon", { expanded: u.value.has(fe.value) }]),
|
|
4287
|
-
color: `var(--kui-color-text-neutral-weak, ${C(
|
|
4248
|
+
color: `var(--kui-color-text-neutral-weak, ${C(ii)})`
|
|
4288
4249
|
}, null, 8, ["class", "color"])
|
|
4289
|
-
], 42,
|
|
4290
|
-
|
|
4291
|
-
|
|
4250
|
+
], 42, ho),
|
|
4251
|
+
Ye(ne("div", bo, [
|
|
4252
|
+
ne("label", {
|
|
4292
4253
|
class: "menu-item-label",
|
|
4293
4254
|
for: P(fe.value)
|
|
4294
|
-
}, H(C(i)("filter.fieldLabel")), 9,
|
|
4255
|
+
}, H(C(i)("filter.fieldLabel")), 9, ko),
|
|
4295
4256
|
((ce = (oe = t.config.schema) == null ? void 0 : oe[fe.value]) == null ? void 0 : ce.type) === "select" ? (b(), G(de, {
|
|
4296
4257
|
key: 0,
|
|
4297
4258
|
id: P(fe.value),
|
|
@@ -4302,7 +4263,7 @@ ${w.value}
|
|
|
4302
4263
|
"model-value": r.value[fe.value],
|
|
4303
4264
|
placeholder: C(i)("filter.selectPlaceholder"),
|
|
4304
4265
|
onChange: (re) => ae(fe.value, re)
|
|
4305
|
-
}, null, 8, ["id", "enable-filtering", "enable-item-creation", "filter-function", "items", "model-value", "placeholder", "onChange"])) : (b(), G(
|
|
4266
|
+
}, null, 8, ["id", "enable-filtering", "enable-item-creation", "filter-function", "items", "model-value", "placeholder", "onChange"])) : (b(), G(_, {
|
|
4306
4267
|
key: 1,
|
|
4307
4268
|
id: P(fe.value),
|
|
4308
4269
|
modelValue: r.value[fe.value],
|
|
@@ -4312,14 +4273,14 @@ ${w.value}
|
|
|
4312
4273
|
type: B(fe.value)
|
|
4313
4274
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4314
4275
|
], 512), [
|
|
4315
|
-
[
|
|
4276
|
+
[Ve, u.value.has(fe.value)]
|
|
4316
4277
|
]),
|
|
4317
|
-
|
|
4278
|
+
Ye(ne("div", Co, [
|
|
4318
4279
|
Z(D, {
|
|
4319
4280
|
appearance: "tertiary",
|
|
4320
4281
|
"data-testid": "apply-filter",
|
|
4321
4282
|
size: "small",
|
|
4322
|
-
onClick:
|
|
4283
|
+
onClick: F[0] || (F[0] = (re) => $(!0))
|
|
4323
4284
|
}, {
|
|
4324
4285
|
default: R(() => [
|
|
4325
4286
|
ue(H(C(i)("filter.applyButtonText")), 1)
|
|
@@ -4338,11 +4299,11 @@ ${w.value}
|
|
|
4338
4299
|
_: 1
|
|
4339
4300
|
}, 8, ["onClick"])
|
|
4340
4301
|
], 512), [
|
|
4341
|
-
[
|
|
4302
|
+
[Ve, u.value.has(fe.value)]
|
|
4342
4303
|
])
|
|
4343
|
-
], 8,
|
|
4304
|
+
], 8, go);
|
|
4344
4305
|
}), 128)),
|
|
4345
|
-
|
|
4306
|
+
ne("div", Ao, [
|
|
4346
4307
|
Z(D, {
|
|
4347
4308
|
appearance: "tertiary",
|
|
4348
4309
|
size: "small",
|
|
@@ -4355,12 +4316,12 @@ ${w.value}
|
|
|
4355
4316
|
})
|
|
4356
4317
|
])
|
|
4357
4318
|
], 512), [
|
|
4358
|
-
[
|
|
4319
|
+
[Ve, y.value]
|
|
4359
4320
|
])
|
|
4360
4321
|
]));
|
|
4361
4322
|
};
|
|
4362
4323
|
}
|
|
4363
|
-
}),
|
|
4324
|
+
}), Yr = /* @__PURE__ */ we(So, [["__scopeId", "data-v-10015be6"]]), Vr = /* @__PURE__ */ ke({
|
|
4364
4325
|
__name: "EntityToggleModal",
|
|
4365
4326
|
props: {
|
|
4366
4327
|
visible: {
|
|
@@ -4410,7 +4371,7 @@ ${w.value}
|
|
|
4410
4371
|
};
|
|
4411
4372
|
return (a, c) => {
|
|
4412
4373
|
const v = ie("KPrompt");
|
|
4413
|
-
return b(), G(
|
|
4374
|
+
return b(), G(Ft, { to: "body" }, [
|
|
4414
4375
|
Z(v, {
|
|
4415
4376
|
"action-button-disabled": r.value,
|
|
4416
4377
|
"action-button-text": p.value,
|
|
@@ -4429,7 +4390,7 @@ ${w.value}
|
|
|
4429
4390
|
ue(H(t.entityType), 1)
|
|
4430
4391
|
]),
|
|
4431
4392
|
entityName: R(() => [
|
|
4432
|
-
|
|
4393
|
+
ne("strong", null, H(t.entityName), 1)
|
|
4433
4394
|
]),
|
|
4434
4395
|
_: 1
|
|
4435
4396
|
}, 8, ["keypath"])
|
|
@@ -4439,7 +4400,7 @@ ${w.value}
|
|
|
4439
4400
|
]);
|
|
4440
4401
|
};
|
|
4441
4402
|
}
|
|
4442
|
-
}),
|
|
4403
|
+
}), Wr = /* @__PURE__ */ ke({
|
|
4443
4404
|
__name: "PermissionsWrapper",
|
|
4444
4405
|
props: {
|
|
4445
4406
|
/**
|
|
@@ -4467,36 +4428,36 @@ ${w.value}
|
|
|
4467
4428
|
}, { immediate: !0 }), (s, y) => l.value ? pe(s.$slots, "default", {
|
|
4468
4429
|
key: 0,
|
|
4469
4430
|
isAllowed: i.value
|
|
4470
|
-
}) :
|
|
4431
|
+
}) : ee("", !0);
|
|
4471
4432
|
}
|
|
4472
|
-
}),
|
|
4433
|
+
}), xe = [];
|
|
4473
4434
|
for (let t = 0; t < 256; ++t)
|
|
4474
|
-
|
|
4475
|
-
function
|
|
4476
|
-
return (
|
|
4435
|
+
xe.push((t + 256).toString(16).slice(1));
|
|
4436
|
+
function To(t, o = 0) {
|
|
4437
|
+
return (xe[t[o + 0]] + xe[t[o + 1]] + xe[t[o + 2]] + xe[t[o + 3]] + "-" + xe[t[o + 4]] + xe[t[o + 5]] + "-" + xe[t[o + 6]] + xe[t[o + 7]] + "-" + xe[t[o + 8]] + xe[t[o + 9]] + "-" + xe[t[o + 10]] + xe[t[o + 11]] + xe[t[o + 12]] + xe[t[o + 13]] + xe[t[o + 14]] + xe[t[o + 15]]).toLowerCase();
|
|
4477
4438
|
}
|
|
4478
|
-
const
|
|
4479
|
-
function
|
|
4480
|
-
return crypto.getRandomValues(
|
|
4439
|
+
const $o = new Uint8Array(16);
|
|
4440
|
+
function wo() {
|
|
4441
|
+
return crypto.getRandomValues($o);
|
|
4481
4442
|
}
|
|
4482
|
-
function
|
|
4483
|
-
return crypto.randomUUID ? crypto.randomUUID() :
|
|
4443
|
+
function xo(t, o, i) {
|
|
4444
|
+
return crypto.randomUUID ? crypto.randomUUID() : _o(t);
|
|
4484
4445
|
}
|
|
4485
|
-
function
|
|
4446
|
+
function _o(t, o, i) {
|
|
4486
4447
|
var s;
|
|
4487
4448
|
t = t || {};
|
|
4488
|
-
const l = t.random ?? ((s = t.rng) == null ? void 0 : s.call(t)) ??
|
|
4449
|
+
const l = t.random ?? ((s = t.rng) == null ? void 0 : s.call(t)) ?? wo();
|
|
4489
4450
|
if (l.length < 16)
|
|
4490
4451
|
throw new Error("Random bytes length must be >= 16");
|
|
4491
|
-
return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128,
|
|
4452
|
+
return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, To(l);
|
|
4492
4453
|
}
|
|
4493
|
-
const
|
|
4454
|
+
const Eo = ["aria-labelledby"], Io = { class: "form-section-wrapper" }, Oo = {
|
|
4494
4455
|
key: 1,
|
|
4495
4456
|
class: "form-section-description"
|
|
4496
|
-
},
|
|
4457
|
+
}, Bo = {
|
|
4497
4458
|
key: 2,
|
|
4498
4459
|
class: "form-section-footer"
|
|
4499
|
-
},
|
|
4460
|
+
}, Ko = { class: "form-section-content" }, Ro = /* @__PURE__ */ ke({
|
|
4500
4461
|
__name: "EntityFormSection",
|
|
4501
4462
|
props: {
|
|
4502
4463
|
title: {
|
|
@@ -4525,14 +4486,14 @@ const Lo = ["aria-labelledby"], Mo = { class: "form-section-wrapper" }, Fo = {
|
|
|
4525
4486
|
}
|
|
4526
4487
|
},
|
|
4527
4488
|
setup(t) {
|
|
4528
|
-
const o = pt(), i =
|
|
4489
|
+
const o = pt(), i = xo();
|
|
4529
4490
|
return (l, s) => (b(), V("div", {
|
|
4530
4491
|
"aria-labelledby": t.title ? C(i) : void 0,
|
|
4531
4492
|
class: Ee(["kong-ui-entity-form-section", { "has-divider": t.hasDivider }]),
|
|
4532
4493
|
role: "group"
|
|
4533
4494
|
}, [
|
|
4534
|
-
|
|
4535
|
-
t.hideInfoHeader ?
|
|
4495
|
+
ne("div", Io, [
|
|
4496
|
+
t.hideInfoHeader ? ee("", !0) : (b(), V("div", {
|
|
4536
4497
|
key: 0,
|
|
4537
4498
|
class: Ee(["form-section-info", { sticky: t.stickyInfoHeader }])
|
|
4538
4499
|
}, [
|
|
@@ -4545,41 +4506,41 @@ const Lo = ["aria-labelledby"], Mo = { class: "form-section-wrapper" }, Fo = {
|
|
|
4545
4506
|
ue(H(t.title), 1)
|
|
4546
4507
|
]),
|
|
4547
4508
|
_: 1
|
|
4548
|
-
}, 8, ["id"])) :
|
|
4549
|
-
t.description || C(o).description ? (b(), V("div",
|
|
4509
|
+
}, 8, ["id"])) : ee("", !0),
|
|
4510
|
+
t.description || C(o).description ? (b(), V("div", Oo, [
|
|
4550
4511
|
pe(l.$slots, "description", {}, () => [
|
|
4551
|
-
|
|
4512
|
+
ne("p", null, H(t.description), 1)
|
|
4552
4513
|
], !0)
|
|
4553
|
-
])) :
|
|
4554
|
-
C(o).footer ? (b(), V("div",
|
|
4514
|
+
])) : ee("", !0),
|
|
4515
|
+
C(o).footer ? (b(), V("div", Bo, [
|
|
4555
4516
|
pe(l.$slots, "footer", {}, void 0, !0)
|
|
4556
|
-
])) :
|
|
4517
|
+
])) : ee("", !0)
|
|
4557
4518
|
], 2)),
|
|
4558
|
-
|
|
4519
|
+
ne("div", Ko, [
|
|
4559
4520
|
pe(l.$slots, "default", {}, void 0, !0)
|
|
4560
4521
|
])
|
|
4561
4522
|
])
|
|
4562
|
-
], 10,
|
|
4523
|
+
], 10, Eo));
|
|
4563
4524
|
}
|
|
4564
|
-
}),
|
|
4525
|
+
}), Gr = /* @__PURE__ */ we(Ro, [["__scopeId", "data-v-ccd29028"]]), Lo = { class: "header" }, Fo = {
|
|
4565
4526
|
key: 0,
|
|
4566
4527
|
class: "step",
|
|
4567
4528
|
"data-testid": "form-block-step"
|
|
4568
|
-
},
|
|
4529
|
+
}, Mo = { class: "header-content" }, Po = {
|
|
4569
4530
|
class: "header-title",
|
|
4570
4531
|
"data-testid": "header-title"
|
|
4571
|
-
},
|
|
4532
|
+
}, No = {
|
|
4572
4533
|
key: 0,
|
|
4573
4534
|
class: "header-description",
|
|
4574
4535
|
"data-testid": "header-description"
|
|
4575
|
-
},
|
|
4536
|
+
}, Do = {
|
|
4576
4537
|
key: 1,
|
|
4577
4538
|
class: "header-extra",
|
|
4578
4539
|
"data-testid": "header-extra"
|
|
4579
|
-
},
|
|
4540
|
+
}, qo = {
|
|
4580
4541
|
class: "content",
|
|
4581
4542
|
"data-testid": "form-block-content"
|
|
4582
|
-
},
|
|
4543
|
+
}, jo = /* @__PURE__ */ ke({
|
|
4583
4544
|
__name: "EntityFormBlock",
|
|
4584
4545
|
props: {
|
|
4585
4546
|
step: { default: () => {
|
|
@@ -4594,40 +4555,40 @@ const Lo = ["aria-labelledby"], Mo = { class: "form-section-wrapper" }, Fo = {
|
|
|
4594
4555
|
stepped: t.step !== void 0 || o.step
|
|
4595
4556
|
}])
|
|
4596
4557
|
}, [
|
|
4597
|
-
|
|
4598
|
-
t.step !== void 0 || o.step ? (b(), V("div",
|
|
4558
|
+
ne("header", Lo, [
|
|
4559
|
+
t.step !== void 0 || o.step ? (b(), V("div", Fo, [
|
|
4599
4560
|
pe(i.$slots, "step", {}, () => [
|
|
4600
4561
|
ue(H(t.step), 1)
|
|
4601
4562
|
], !0)
|
|
4602
|
-
])) :
|
|
4603
|
-
|
|
4604
|
-
|
|
4563
|
+
])) : ee("", !0),
|
|
4564
|
+
ne("div", Mo, [
|
|
4565
|
+
ne("h2", Po, [
|
|
4605
4566
|
pe(i.$slots, "title", {}, () => [
|
|
4606
4567
|
ue(H(t.title), 1)
|
|
4607
4568
|
], !0)
|
|
4608
4569
|
]),
|
|
4609
|
-
t.description || o.description ? (b(), V("div",
|
|
4570
|
+
t.description || o.description ? (b(), V("div", No, [
|
|
4610
4571
|
pe(i.$slots, "description", {}, () => [
|
|
4611
4572
|
ue(H(t.description), 1)
|
|
4612
4573
|
], !0)
|
|
4613
|
-
])) :
|
|
4574
|
+
])) : ee("", !0)
|
|
4614
4575
|
]),
|
|
4615
|
-
o.extra ? (b(), V("div",
|
|
4576
|
+
o.extra ? (b(), V("div", Do, [
|
|
4616
4577
|
pe(i.$slots, "extra", {}, void 0, !0)
|
|
4617
|
-
])) :
|
|
4578
|
+
])) : ee("", !0)
|
|
4618
4579
|
]),
|
|
4619
|
-
|
|
4580
|
+
ne("div", qo, [
|
|
4620
4581
|
pe(i.$slots, "default", {}, void 0, !0)
|
|
4621
4582
|
])
|
|
4622
4583
|
], 2));
|
|
4623
4584
|
}
|
|
4624
|
-
}),
|
|
4585
|
+
}), Jr = /* @__PURE__ */ we(jo, [["__scopeId", "data-v-7dd2f21d"]]), Uo = {
|
|
4625
4586
|
class: "kong-ui-public-entity-link",
|
|
4626
4587
|
"data-testid": "entity-link-parent"
|
|
4627
|
-
},
|
|
4588
|
+
}, zo = {
|
|
4628
4589
|
key: 0,
|
|
4629
4590
|
class: "deleted-entity"
|
|
4630
|
-
},
|
|
4591
|
+
}, Ho = { key: 1 }, Yo = ["onClick"], Vo = /* @__PURE__ */ ke({
|
|
4631
4592
|
__name: "EntityLink",
|
|
4632
4593
|
props: {
|
|
4633
4594
|
entityLinkData: {
|
|
@@ -4664,8 +4625,8 @@ const Lo = ["aria-labelledby"], Mo = { class: "form-section-wrapper" }, Fo = {
|
|
|
4664
4625
|
};
|
|
4665
4626
|
return (a, c) => {
|
|
4666
4627
|
const v = ie("KTooltip"), P = ie("KExternalLink"), w = ie("KClipboardProvider");
|
|
4667
|
-
return b(), V("div",
|
|
4668
|
-
u.value ? (b(), V("div",
|
|
4628
|
+
return b(), V("div", Uo, [
|
|
4629
|
+
u.value ? (b(), V("div", zo, H(f.value), 1)) : p.value ? p.value ? (b(), G(P, {
|
|
4669
4630
|
key: 2,
|
|
4670
4631
|
class: "entity-link",
|
|
4671
4632
|
"hide-icon": !t.newWindow,
|
|
@@ -4677,7 +4638,7 @@ const Lo = ["aria-labelledby"], Mo = { class: "form-section-wrapper" }, Fo = {
|
|
|
4677
4638
|
text: C(l) && t.entityLinkData.label || ""
|
|
4678
4639
|
}, {
|
|
4679
4640
|
default: R(() => [
|
|
4680
|
-
|
|
4641
|
+
ne("span", {
|
|
4681
4642
|
ref_key: "textContent",
|
|
4682
4643
|
ref: i,
|
|
4683
4644
|
class: "entity-link-label"
|
|
@@ -4687,7 +4648,7 @@ const Lo = ["aria-labelledby"], Mo = { class: "form-section-wrapper" }, Fo = {
|
|
|
4687
4648
|
}, 8, ["text"])
|
|
4688
4649
|
]),
|
|
4689
4650
|
_: 1
|
|
4690
|
-
}, 8, ["hide-icon", "href", "target"])) :
|
|
4651
|
+
}, 8, ["hide-icon", "href", "target"])) : ee("", !0) : (b(), V("div", Ho, H(" – "))),
|
|
4691
4652
|
p.value && t.allowCopy ? (b(), G(v, {
|
|
4692
4653
|
key: r.value,
|
|
4693
4654
|
class: "copy-uuid-tooltip",
|
|
@@ -4698,60 +4659,60 @@ const Lo = ["aria-labelledby"], Mo = { class: "form-section-wrapper" }, Fo = {
|
|
|
4698
4659
|
default: R(() => [
|
|
4699
4660
|
Z(w, null, {
|
|
4700
4661
|
default: R(({ copyToClipboard: B }) => [
|
|
4701
|
-
|
|
4662
|
+
ne("span", {
|
|
4702
4663
|
class: "entity-link-copy-id",
|
|
4703
4664
|
onClick: et((N) => g(B), ["stop"])
|
|
4704
4665
|
}, [
|
|
4705
4666
|
Z(C(qt), {
|
|
4706
4667
|
class: "copy-icon",
|
|
4707
|
-
color: `var(--kui-color-text-primary, ${C(
|
|
4668
|
+
color: `var(--kui-color-text-primary, ${C(oi)})`,
|
|
4708
4669
|
"data-testid": "copy-id",
|
|
4709
|
-
size: `var(--kui-icon-size-30, ${C(
|
|
4670
|
+
size: `var(--kui-icon-size-30, ${C(li)})`
|
|
4710
4671
|
}, null, 8, ["color", "size"])
|
|
4711
|
-
], 8,
|
|
4672
|
+
], 8, Yo)
|
|
4712
4673
|
]),
|
|
4713
4674
|
_: 1
|
|
4714
4675
|
})
|
|
4715
4676
|
]),
|
|
4716
4677
|
_: 1
|
|
4717
|
-
}, 8, ["text"])) :
|
|
4678
|
+
}, 8, ["text"])) : ee("", !0)
|
|
4718
4679
|
]);
|
|
4719
4680
|
};
|
|
4720
4681
|
}
|
|
4721
|
-
}),
|
|
4682
|
+
}), Qr = /* @__PURE__ */ we(Vo, [["__scopeId", "data-v-6668aea9"]]), Wo = { class: "kong-ui-public-entity-empty-state" }, Go = { class: "entity-empty-state-content" }, Jo = {
|
|
4722
4683
|
key: 0,
|
|
4723
4684
|
class: "empty-state-image"
|
|
4724
|
-
},
|
|
4685
|
+
}, Qo = {
|
|
4725
4686
|
key: 1,
|
|
4726
4687
|
class: "entity-empty-state-title"
|
|
4727
|
-
},
|
|
4688
|
+
}, Xo = {
|
|
4728
4689
|
key: 2,
|
|
4729
4690
|
class: "entity-empty-state-description"
|
|
4730
|
-
},
|
|
4691
|
+
}, Zo = {
|
|
4731
4692
|
key: 3,
|
|
4732
4693
|
class: "entity-empty-state-pricing"
|
|
4733
|
-
},
|
|
4694
|
+
}, er = {
|
|
4734
4695
|
key: 0,
|
|
4735
4696
|
class: "entity-empty-state-message"
|
|
4736
|
-
},
|
|
4697
|
+
}, tr = {
|
|
4737
4698
|
key: 1,
|
|
4738
4699
|
class: "entity-empty-state-action"
|
|
4739
|
-
},
|
|
4700
|
+
}, nr = {
|
|
4740
4701
|
key: 2,
|
|
4741
4702
|
class: "entity-empty-state-card-container"
|
|
4742
|
-
},
|
|
4703
|
+
}, ir = {
|
|
4743
4704
|
key: 0,
|
|
4744
4705
|
class: "feature-icon"
|
|
4745
|
-
},
|
|
4706
|
+
}, or = { class: "card-header" }, rr = ["title"], lr = {
|
|
4746
4707
|
key: 3,
|
|
4747
4708
|
class: "entity-empty-state-bottom-container"
|
|
4748
|
-
},
|
|
4709
|
+
}, ar = /* @__PURE__ */ ke({
|
|
4749
4710
|
__name: "EntityEmptyState",
|
|
4750
4711
|
props: {
|
|
4751
4712
|
appearance: {
|
|
4752
4713
|
type: String,
|
|
4753
4714
|
default: () => "primary",
|
|
4754
|
-
validator: (t) =>
|
|
4715
|
+
validator: (t) => It.includes(t)
|
|
4755
4716
|
},
|
|
4756
4717
|
title: {
|
|
4757
4718
|
type: String,
|
|
@@ -4786,45 +4747,45 @@ const Lo = ["aria-labelledby"], Mo = { class: "form-section-wrapper" }, Fo = {
|
|
|
4786
4747
|
},
|
|
4787
4748
|
emits: ["click:create", "click:learn-more"],
|
|
4788
4749
|
setup(t) {
|
|
4789
|
-
const o = t, { i18n: { t: i } } = ge.useI18n(), l = se(!1), s = j(() => l.value && !!o.actionButtonText), y = j(() =>
|
|
4750
|
+
const o = t, { i18n: { t: i } } = ge.useI18n(), l = se(!1), s = j(() => l.value && !!o.actionButtonText), y = j(() => It.includes(o.appearance) ? o.appearance : ["primary", o.appearance]);
|
|
4790
4751
|
return St(async () => {
|
|
4791
4752
|
l.value = await o.canCreate();
|
|
4792
4753
|
}), mt(() => kn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4793
4754
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, u) => {
|
|
4794
4755
|
const p = ie("KCard");
|
|
4795
|
-
return b(), V("div",
|
|
4796
|
-
|
|
4797
|
-
r.$slots.image ? (b(), V("div",
|
|
4756
|
+
return b(), V("div", Wo, [
|
|
4757
|
+
ne("div", Go, [
|
|
4758
|
+
r.$slots.image ? (b(), V("div", Jo, [
|
|
4798
4759
|
pe(r.$slots, "image", {}, void 0, !0)
|
|
4799
|
-
])) :
|
|
4800
|
-
t.title || r.$slots.title ? (b(), V("div",
|
|
4801
|
-
|
|
4760
|
+
])) : ee("", !0),
|
|
4761
|
+
t.title || r.$slots.title ? (b(), V("div", Qo, [
|
|
4762
|
+
ne("h1", {
|
|
4802
4763
|
class: Ee(y.value)
|
|
4803
4764
|
}, [
|
|
4804
4765
|
pe(r.$slots, "title", {}, () => [
|
|
4805
4766
|
ue(H(t.title), 1)
|
|
4806
4767
|
], !0)
|
|
4807
4768
|
], 2)
|
|
4808
|
-
])) :
|
|
4809
|
-
t.description || r.$slots.default ? (b(), V("div",
|
|
4769
|
+
])) : ee("", !0),
|
|
4770
|
+
t.description || r.$slots.default ? (b(), V("div", Xo, [
|
|
4810
4771
|
pe(r.$slots, "default", {}, () => [
|
|
4811
|
-
|
|
4772
|
+
ne("p", null, H(t.description), 1)
|
|
4812
4773
|
], !0)
|
|
4813
|
-
])) :
|
|
4814
|
-
t.pricing || r.$slots.pricing ? (b(), V("div",
|
|
4815
|
-
|
|
4816
|
-
|
|
4774
|
+
])) : ee("", !0),
|
|
4775
|
+
t.pricing || r.$slots.pricing ? (b(), V("div", Zo, [
|
|
4776
|
+
ne("p", null, [
|
|
4777
|
+
ne("b", null, H(C(i)("emptyState.pricingTitle")), 1),
|
|
4817
4778
|
u[2] || (u[2] = ue()),
|
|
4818
4779
|
pe(r.$slots, "pricing", {}, () => [
|
|
4819
4780
|
ue(H(t.pricing), 1)
|
|
4820
4781
|
], !0)
|
|
4821
4782
|
])
|
|
4822
|
-
])) :
|
|
4783
|
+
])) : ee("", !0)
|
|
4823
4784
|
]),
|
|
4824
|
-
r.$slots.message ? (b(), V("div",
|
|
4785
|
+
r.$slots.message ? (b(), V("div", er, [
|
|
4825
4786
|
pe(r.$slots, "message", {}, void 0, !0)
|
|
4826
|
-
])) :
|
|
4827
|
-
s.value || t.learnMore || r.$slots.actions ? (b(), V("div",
|
|
4787
|
+
])) : ee("", !0),
|
|
4788
|
+
s.value || t.learnMore || r.$slots.actions ? (b(), V("div", tr, [
|
|
4828
4789
|
pe(r.$slots, "actions", {}, () => [
|
|
4829
4790
|
s.value ? (b(), G(C(wt), {
|
|
4830
4791
|
key: 0,
|
|
@@ -4838,7 +4799,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, u) =>
|
|
|
4838
4799
|
ue(" " + H(t.actionButtonText), 1)
|
|
4839
4800
|
]),
|
|
4840
4801
|
_: 1
|
|
4841
|
-
}, 8, ["size"])) :
|
|
4802
|
+
}, 8, ["size"])) : ee("", !0),
|
|
4842
4803
|
t.learnMore ? (b(), G(C(wt), {
|
|
4843
4804
|
key: 1,
|
|
4844
4805
|
appearance: "secondary",
|
|
@@ -4851,39 +4812,39 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, u) =>
|
|
|
4851
4812
|
ue(" " + H(C(i)("emptyState.learnMore")), 1)
|
|
4852
4813
|
]),
|
|
4853
4814
|
_: 1
|
|
4854
|
-
}, 8, ["size"])) :
|
|
4815
|
+
}, 8, ["size"])) : ee("", !0)
|
|
4855
4816
|
], !0)
|
|
4856
|
-
])) :
|
|
4857
|
-
t.features.length ? (b(), V("div",
|
|
4858
|
-
(b(!0), V(
|
|
4817
|
+
])) : ee("", !0),
|
|
4818
|
+
t.features.length ? (b(), V("div", nr, [
|
|
4819
|
+
(b(!0), V(_e, null, Ke(t.features, (f, g) => (b(), G(p, {
|
|
4859
4820
|
key: `feature-${g}-card`,
|
|
4860
4821
|
class: "entity-empty-state-card"
|
|
4861
4822
|
}, {
|
|
4862
4823
|
title: R(() => [
|
|
4863
|
-
r.$slots[`feature-${g}-icon`] ? (b(), V("div",
|
|
4824
|
+
r.$slots[`feature-${g}-icon`] ? (b(), V("div", ir, [
|
|
4864
4825
|
pe(r.$slots, `feature-${g}-icon`, {}, void 0, !0)
|
|
4865
|
-
])) :
|
|
4866
|
-
|
|
4826
|
+
])) : ee("", !0),
|
|
4827
|
+
ne("div", or, H(f.title), 1)
|
|
4867
4828
|
]),
|
|
4868
4829
|
default: R(() => [
|
|
4869
|
-
|
|
4830
|
+
ne("div", {
|
|
4870
4831
|
title: f.description
|
|
4871
|
-
}, H(f.description), 9,
|
|
4832
|
+
}, H(f.description), 9, rr)
|
|
4872
4833
|
]),
|
|
4873
4834
|
_: 2
|
|
4874
4835
|
}, 1024))), 128))
|
|
4875
|
-
])) :
|
|
4876
|
-
r.$slots.bottom ? (b(), V("div",
|
|
4836
|
+
])) : ee("", !0),
|
|
4837
|
+
r.$slots.bottom ? (b(), V("div", lr, [
|
|
4877
4838
|
pe(r.$slots, "bottom", {}, void 0, !0)
|
|
4878
|
-
])) :
|
|
4839
|
+
])) : ee("", !0)
|
|
4879
4840
|
]);
|
|
4880
4841
|
};
|
|
4881
4842
|
}
|
|
4882
|
-
}),
|
|
4843
|
+
}), Xr = /* @__PURE__ */ we(ar, [["__scopeId", "data-v-0b2e9081"]]), cr = {
|
|
4883
4844
|
key: 0,
|
|
4884
4845
|
class: "sensitive-input-hint",
|
|
4885
4846
|
"data-testid": "sensitive-input-hint"
|
|
4886
|
-
},
|
|
4847
|
+
}, sr = { class: "sensitive-input-hint-text" }, ur = "••••••••••••••", dr = /* @__PURE__ */ ke({
|
|
4887
4848
|
__name: "SensitiveInput",
|
|
4888
4849
|
props: {
|
|
4889
4850
|
modelValue: { default: "" },
|
|
@@ -4903,26 +4864,26 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, u) =>
|
|
|
4903
4864
|
},
|
|
4904
4865
|
emits: ["update:modelValue", "rotate", "generate", "generated"],
|
|
4905
4866
|
setup(t, { expose: o, emit: i }) {
|
|
4906
|
-
At((
|
|
4867
|
+
At((F) => ({
|
|
4907
4868
|
v430bd82e: ae.value
|
|
4908
4869
|
}));
|
|
4909
|
-
const l = i, { i18n: { t: s } } = ge.useI18n(), y = se(t.mode === "edit" ? "masked" : "editing"), r = se(!1), u = se(!1), p = j(() => y.value === "masked"), f =
|
|
4910
|
-
var
|
|
4911
|
-
return ((
|
|
4870
|
+
const l = i, { i18n: { t: s } } = ge.useI18n(), y = se(t.mode === "edit" ? "masked" : "editing"), r = se(!1), u = se(!1), p = j(() => y.value === "masked"), f = ur, g = j(() => t.placeholder ?? s("sensitiveInput.placeholder")), a = j(() => {
|
|
4871
|
+
var F;
|
|
4872
|
+
return ((F = t.labels) == null ? void 0 : F.rotateLabel) ?? s("sensitiveInput.rotateKey");
|
|
4912
4873
|
}), c = j(() => {
|
|
4913
|
-
var
|
|
4914
|
-
return ((
|
|
4874
|
+
var F;
|
|
4875
|
+
return ((F = t.labels) == null ? void 0 : F.generateLabel) ?? s("sensitiveInput.generateKey");
|
|
4915
4876
|
}), v = j(() => {
|
|
4916
|
-
var
|
|
4917
|
-
return ((
|
|
4877
|
+
var F;
|
|
4878
|
+
return ((F = t.labels) == null ? void 0 : F.hintLabel) ?? s("sensitiveInput.oneTimeHint");
|
|
4918
4879
|
}), P = j(() => p.value || r.value ? "text" : "password");
|
|
4919
|
-
Le(() => t.showOneTimeHint, (
|
|
4920
|
-
|
|
4880
|
+
Le(() => t.showOneTimeHint, (F) => {
|
|
4881
|
+
F && (r.value = !0);
|
|
4921
4882
|
}, { immediate: !0 });
|
|
4922
|
-
const w = (
|
|
4923
|
-
l("update:modelValue",
|
|
4924
|
-
}, B = (
|
|
4925
|
-
y.value = "editing", r.value = !1,
|
|
4883
|
+
const w = (F) => {
|
|
4884
|
+
l("update:modelValue", F);
|
|
4885
|
+
}, B = (F = !0) => {
|
|
4886
|
+
y.value = "editing", r.value = !1, F && l("rotate");
|
|
4926
4887
|
};
|
|
4927
4888
|
o({
|
|
4928
4889
|
/** Switch to the editable state programmatically, WITHOUT emitting `rotate`. */
|
|
@@ -4934,28 +4895,28 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, u) =>
|
|
|
4934
4895
|
if (!(!t.generator || u.value)) {
|
|
4935
4896
|
u.value = !0, l("generate");
|
|
4936
4897
|
try {
|
|
4937
|
-
const
|
|
4938
|
-
l("update:modelValue",
|
|
4898
|
+
const F = await t.generator();
|
|
4899
|
+
l("update:modelValue", F), r.value = !0, l("generated", F);
|
|
4939
4900
|
} finally {
|
|
4940
4901
|
u.value = !1;
|
|
4941
4902
|
}
|
|
4942
4903
|
}
|
|
4943
4904
|
}, $ = Cn("rootElement");
|
|
4944
4905
|
let W, J;
|
|
4945
|
-
const ae = se(`calc(${
|
|
4946
|
-
var
|
|
4947
|
-
const
|
|
4948
|
-
|
|
4906
|
+
const ae = se(`calc(${Bt} + ${Ze} + ${Ot})`), q = () => {
|
|
4907
|
+
var _;
|
|
4908
|
+
const F = (_ = $.value) == null ? void 0 : _.querySelector(".after-content-wrapper");
|
|
4909
|
+
F && (ae.value = `calc(${Bt} + ${F.offsetWidth}px + ${Ot})`);
|
|
4949
4910
|
};
|
|
4950
4911
|
return mt(() => {
|
|
4951
|
-
var
|
|
4952
|
-
const
|
|
4912
|
+
var _;
|
|
4913
|
+
const F = (_ = $.value) == null ? void 0 : _.querySelector(".after-content-wrapper");
|
|
4953
4914
|
W = new ResizeObserver(() => {
|
|
4954
4915
|
J = window.requestAnimationFrame(() => q());
|
|
4955
|
-
}),
|
|
4916
|
+
}), F && W.observe(F), q();
|
|
4956
4917
|
}), An(() => {
|
|
4957
4918
|
W == null || W.disconnect(), J !== void 0 && window.cancelAnimationFrame(J);
|
|
4958
|
-
}), (
|
|
4919
|
+
}), (F, _) => {
|
|
4959
4920
|
const D = ie("KButton"), de = ie("KInput"), fe = ie("KClipboardProvider");
|
|
4960
4921
|
return b(), V("div", {
|
|
4961
4922
|
ref_key: "rootElement",
|
|
@@ -4985,13 +4946,13 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, u) =>
|
|
|
4985
4946
|
class: "sensitive-input-action",
|
|
4986
4947
|
"data-testid": "sensitive-input-rotate",
|
|
4987
4948
|
size: "small",
|
|
4988
|
-
onClick:
|
|
4949
|
+
onClick: _[0] || (_[0] = (oe) => B(!0))
|
|
4989
4950
|
}, {
|
|
4990
4951
|
default: R(() => [
|
|
4991
4952
|
ue(H(a.value), 1)
|
|
4992
4953
|
]),
|
|
4993
4954
|
_: 1
|
|
4994
|
-
})) : (b(), V(
|
|
4955
|
+
})) : (b(), V(_e, { key: 1 }, [
|
|
4995
4956
|
t.generator ? (b(), G(D, {
|
|
4996
4957
|
key: 0,
|
|
4997
4958
|
appearance: "tertiary",
|
|
@@ -5005,8 +4966,8 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, u) =>
|
|
|
5005
4966
|
ue(H(c.value), 1)
|
|
5006
4967
|
]),
|
|
5007
4968
|
_: 1
|
|
5008
|
-
}, 8, ["disabled"])) :
|
|
5009
|
-
(b(), G(Ge(r.value ? C(Hn) : C(
|
|
4969
|
+
}, 8, ["disabled"])) : ee("", !0),
|
|
4970
|
+
(b(), G(Ge(r.value ? C(Hn) : C(Yn)), {
|
|
5010
4971
|
"aria-label": r.value ? C(s)("sensitiveInput.hideKey") : C(s)("sensitiveInput.showKey"),
|
|
5011
4972
|
class: "sensitive-input-toggle",
|
|
5012
4973
|
color: "currentColor",
|
|
@@ -5015,19 +4976,19 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, u) =>
|
|
|
5015
4976
|
size: `var(--kui-icon-size-40, ${C(Ze)})`,
|
|
5016
4977
|
tabindex: "0",
|
|
5017
4978
|
onClick: N,
|
|
5018
|
-
onKeydown:
|
|
4979
|
+
onKeydown: Mt(et(N, ["prevent"]), ["enter", "space"])
|
|
5019
4980
|
}, null, 40, ["aria-label", "size", "onKeydown"]))
|
|
5020
4981
|
], 64))
|
|
5021
4982
|
]),
|
|
5022
4983
|
_: 1
|
|
5023
4984
|
}, 8, ["disabled", "error", "error-message", "help", "label", "label-attributes", "model-value", "placeholder", "readonly", "required", "type"]),
|
|
5024
|
-
t.showOneTimeHint ? (b(), V("div",
|
|
4985
|
+
t.showOneTimeHint ? (b(), V("div", cr, [
|
|
5025
4986
|
Z(C(Pt), {
|
|
5026
4987
|
class: "sensitive-input-hint-icon",
|
|
5027
|
-
color: `var(--kui-color-text-info, ${C(
|
|
4988
|
+
color: `var(--kui-color-text-info, ${C(ni)})`,
|
|
5028
4989
|
size: `var(--kui-icon-size-40, ${C(Ze)})`
|
|
5029
4990
|
}, null, 8, ["color", "size"]),
|
|
5030
|
-
|
|
4991
|
+
ne("span", sr, H(v.value), 1),
|
|
5031
4992
|
Z(fe, null, {
|
|
5032
4993
|
default: R(({ copyToClipboard: oe }) => [
|
|
5033
4994
|
Z(D, {
|
|
@@ -5049,12 +5010,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, u) =>
|
|
|
5049
5010
|
]),
|
|
5050
5011
|
_: 1
|
|
5051
5012
|
})
|
|
5052
|
-
])) :
|
|
5053
|
-
pe(
|
|
5013
|
+
])) : ee("", !0),
|
|
5014
|
+
pe(F.$slots, "alert", {}, void 0, !0)
|
|
5054
5015
|
], 512);
|
|
5055
5016
|
};
|
|
5056
5017
|
}
|
|
5057
|
-
}),
|
|
5018
|
+
}), Zr = /* @__PURE__ */ we(dr, [["__scopeId", "data-v-9efb72a4"]]), fr = { key: 1 }, el = /* @__PURE__ */ ke({
|
|
5058
5019
|
__name: "TableTags",
|
|
5059
5020
|
props: {
|
|
5060
5021
|
/** The tags to display in the table */
|
|
@@ -5084,7 +5045,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, u) =>
|
|
|
5084
5045
|
var y;
|
|
5085
5046
|
return ((y = i.value) == null ? void 0 : y.length) > 0 ? (b(), G(C(Bn), { key: 0 }, {
|
|
5086
5047
|
default: R(() => [
|
|
5087
|
-
(b(!0), V(
|
|
5048
|
+
(b(!0), V(_e, null, Ke(i.value, (r) => (b(), G(C(Kn), {
|
|
5088
5049
|
key: r,
|
|
5089
5050
|
"max-width": t.tagMaxWidth,
|
|
5090
5051
|
onClick: s[0] || (s[0] = et(() => {
|
|
@@ -5097,65 +5058,65 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (r, u) =>
|
|
|
5097
5058
|
}, 1032, ["max-width"]))), 128))
|
|
5098
5059
|
]),
|
|
5099
5060
|
_: 1
|
|
5100
|
-
})) : (b(), V("span",
|
|
5061
|
+
})) : (b(), V("span", fr, "-"));
|
|
5101
5062
|
};
|
|
5102
5063
|
}
|
|
5103
|
-
}), { useAxios:
|
|
5064
|
+
}), { useAxios: tl, useDeleteUrlBuilder: nl, useBaseEntityDeckOptions: il, useBaseFormDeckOptions: ol, useErrors: rl, useExternalLinkCreator: ll, useFetchUrlBuilder: al, useFetcher: cl, useFetcherCacheKey: sl, useDebouncedFilter: ul, useStringHelpers: dl, useHelpers: fl, useGatewayFeatureSupported: pl, useTruncationDetector: ml, useValidators: yl, useSchemaProvider: gl, useTableState: hl } = ge;
|
|
5104
5065
|
export {
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5066
|
+
It as Appearances,
|
|
5067
|
+
xr as BASE_FORM_CONFIG_TABS,
|
|
5068
|
+
xn as CONFIG_CARD_FORMATS,
|
|
5069
|
+
Vi as ConfigCardDisplay,
|
|
5109
5070
|
Ut as ConfigCardItem,
|
|
5110
5071
|
Ie as ConfigurationSchemaSection,
|
|
5111
5072
|
be as ConfigurationSchemaType,
|
|
5112
5073
|
$n as DECK_COMMAND_EDITOR_KEY,
|
|
5113
5074
|
wn as DECK_COMMAND_EDITOR_MISSING_WARNING,
|
|
5114
5075
|
mn as DeckCodeBlock,
|
|
5115
|
-
|
|
5116
|
-
|
|
5076
|
+
jr as EntityBaseConfigCard,
|
|
5077
|
+
Ur as EntityBaseForm,
|
|
5117
5078
|
Gn as EntityBaseFormType,
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5079
|
+
zr as EntityBaseTable,
|
|
5080
|
+
Hr as EntityDeleteModal,
|
|
5081
|
+
Xr as EntityEmptyState,
|
|
5082
|
+
Yr as EntityFilter,
|
|
5083
|
+
Jr as EntityFormBlock,
|
|
5084
|
+
Gr as EntityFormSection,
|
|
5085
|
+
Qr as EntityLink,
|
|
5086
|
+
Vr as EntityToggleModal,
|
|
5126
5087
|
Wn as EntityTypes,
|
|
5127
5088
|
Sn as EventGatewayTypesArray,
|
|
5128
|
-
|
|
5129
|
-
|
|
5089
|
+
kl as FetcherStatus,
|
|
5090
|
+
Mi as GeneratePatModal,
|
|
5130
5091
|
Tn as IdentityTypesArray,
|
|
5131
5092
|
Zn as InternalLinkItem,
|
|
5132
5093
|
zt as JsonCodeBlock,
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5094
|
+
_n as PLUGIN_FORM_LAYOUT_STATE,
|
|
5095
|
+
Wr as PermissionsWrapper,
|
|
5096
|
+
Zr as SensitiveInput,
|
|
5097
|
+
Cl as SupportedEntityDeckArray,
|
|
5137
5098
|
je as SupportedEntityType,
|
|
5138
5099
|
yt as SupportedEntityTypesArray,
|
|
5139
|
-
|
|
5100
|
+
el as TableTags,
|
|
5140
5101
|
pn as TerraformCodeBlock,
|
|
5141
5102
|
fn as YamlCodeBlock,
|
|
5142
5103
|
We as highlightCodeBlock,
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5104
|
+
Al as isSupportedDeckEntityType,
|
|
5105
|
+
tl as useAxios,
|
|
5106
|
+
il as useBaseEntityDeckOptions,
|
|
5107
|
+
ol as useBaseFormDeckOptions,
|
|
5108
|
+
ul as useDebouncedFilter,
|
|
5109
|
+
nl as useDeleteUrlBuilder,
|
|
5110
|
+
rl as useErrors,
|
|
5111
|
+
ll as useExternalLinkCreator,
|
|
5112
|
+
al as useFetchUrlBuilder,
|
|
5113
|
+
cl as useFetcher,
|
|
5114
|
+
sl as useFetcherCacheKey,
|
|
5115
|
+
pl as useGatewayFeatureSupported,
|
|
5116
|
+
fl as useHelpers,
|
|
5117
|
+
gl as useSchemaProvider,
|
|
5118
|
+
dl as useStringHelpers,
|
|
5119
|
+
hl as useTableState,
|
|
5120
|
+
ml as useTruncationDetector,
|
|
5121
|
+
yl as useValidators
|
|
5161
5122
|
};
|