@kong-ui-public/entities-plugins 2.0.8 → 2.0.9
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.
|
@@ -1702,7 +1702,7 @@ function r0(e, a, n, r = {
|
|
|
1702
1702
|
g.value = !1;
|
|
1703
1703
|
}
|
|
1704
1704
|
}, N = ue(""), ie = async (C) => {
|
|
1705
|
-
var Y, q,
|
|
1705
|
+
var Y, q, ve;
|
|
1706
1706
|
if (N.value !== C)
|
|
1707
1707
|
if (N.value = C || "", O.value === void 0)
|
|
1708
1708
|
try {
|
|
@@ -1737,7 +1737,7 @@ function r0(e, a, n, r = {
|
|
|
1737
1737
|
g.value = !1;
|
|
1738
1738
|
}
|
|
1739
1739
|
else
|
|
1740
|
-
g.value = !0, y.value = "", C ? (w.value = (
|
|
1740
|
+
g.value = !0, y.value = "", C ? (w.value = (ve = O.value) == null ? void 0 : ve.filter((Q) => {
|
|
1741
1741
|
var z;
|
|
1742
1742
|
let te = !1;
|
|
1743
1743
|
for (const ae of r.searchKeys) {
|
|
@@ -3264,7 +3264,7 @@ function Do(e) {
|
|
|
3264
3264
|
var a;
|
|
3265
3265
|
a = e.input.charCodeAt(e.position), a === 10 ? e.position++ : a === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : Oe(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3267
|
+
function bt(e, a, n) {
|
|
3268
3268
|
for (var r = 0, o = e.input.charCodeAt(e.position); o !== 0; ) {
|
|
3269
3269
|
for (; wi(o); )
|
|
3270
3270
|
o === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), o = e.input.charCodeAt(++e.position);
|
|
@@ -3303,7 +3303,7 @@ function dw(e, a, n) {
|
|
|
3303
3303
|
if (e.position === e.lineStart && jr(e) || n && Ki(O))
|
|
3304
3304
|
break;
|
|
3305
3305
|
if (xn(O))
|
|
3306
|
-
if (g = e.line, A = e.lineStart, y = e.lineIndent,
|
|
3306
|
+
if (g = e.line, A = e.lineStart, y = e.lineIndent, bt(e, !1, -1), e.lineIndent >= a) {
|
|
3307
3307
|
d = !0, O = e.input.charCodeAt(e.position);
|
|
3308
3308
|
continue;
|
|
3309
3309
|
} else {
|
|
@@ -3326,7 +3326,7 @@ function pw(e, a) {
|
|
|
3326
3326
|
else
|
|
3327
3327
|
return !0;
|
|
3328
3328
|
else
|
|
3329
|
-
xn(n) ? (si(e, r, o, !0), No(e,
|
|
3329
|
+
xn(n) ? (si(e, r, o, !0), No(e, bt(e, !1, a)), r = o = e.position) : e.position === e.lineStart && jr(e) ? Oe(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
|
|
3330
3330
|
Oe(e, "unexpected end of the stream within a single quoted scalar");
|
|
3331
3331
|
}
|
|
3332
3332
|
function gw(e, a) {
|
|
@@ -3338,7 +3338,7 @@ function gw(e, a) {
|
|
|
3338
3338
|
return si(e, n, e.position, !0), e.position++, !0;
|
|
3339
3339
|
if (d === 92) {
|
|
3340
3340
|
if (si(e, n, e.position, !0), d = e.input.charCodeAt(++e.position), xn(d))
|
|
3341
|
-
|
|
3341
|
+
bt(e, !1, a);
|
|
3342
3342
|
else if (d < 256 && _d[d])
|
|
3343
3343
|
e.result += $d[d], e.position++;
|
|
3344
3344
|
else if ((u = ow(d)) > 0) {
|
|
@@ -3349,7 +3349,7 @@ function gw(e, a) {
|
|
|
3349
3349
|
Oe(e, "unknown escape sequence");
|
|
3350
3350
|
n = r = e.position;
|
|
3351
3351
|
} else
|
|
3352
|
-
xn(d) ? (si(e, n, r, !0), No(e,
|
|
3352
|
+
xn(d) ? (si(e, n, r, !0), No(e, bt(e, !1, a)), n = r = e.position) : e.position === e.lineStart && jr(e) ? Oe(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
3353
3353
|
}
|
|
3354
3354
|
Oe(e, "unexpected end of the stream within a double quoted scalar");
|
|
3355
3355
|
}
|
|
@@ -3362,9 +3362,9 @@ function fw(e, a) {
|
|
|
3362
3362
|
else
|
|
3363
3363
|
return !1;
|
|
3364
3364
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), N = e.input.charCodeAt(++e.position); N !== 0; ) {
|
|
3365
|
-
if (
|
|
3365
|
+
if (bt(e, !0, a), N = e.input.charCodeAt(e.position), N === y)
|
|
3366
3366
|
return e.position++, e.tag = u, e.anchor = g, e.kind = O ? "mapping" : "sequence", e.result = d, !0;
|
|
3367
|
-
n ? N === 44 && Oe(e, "expected the node content, but found ','") : Oe(e, "missed comma between flow collection entries"), M = D = x = null, w = k = !1, N === 63 && (A = e.input.charCodeAt(e.position + 1), Xt(A) && (w = k = !0, e.position++,
|
|
3367
|
+
n ? N === 44 && Oe(e, "expected the node content, but found ','") : Oe(e, "missed comma between flow collection entries"), M = D = x = null, w = k = !1, N === 63 && (A = e.input.charCodeAt(e.position + 1), Xt(A) && (w = k = !0, e.position++, bt(e, !0, a))), r = e.line, o = e.lineStart, l = e.position, Wi(e, a, Or, !1, !0), M = e.tag, D = e.result, bt(e, !0, a), N = e.input.charCodeAt(e.position), (k || e.line === r) && N === 58 && (w = !0, N = e.input.charCodeAt(++e.position), bt(e, !0, a), Wi(e, a, Or, !1, !0), x = e.result), O ? qi(e, d, L, M, D, x, r, o, l) : w ? d.push(qi(e, null, L, M, D, x, r, o, l)) : d.push(D), bt(e, !0, a), N = e.input.charCodeAt(e.position), N === 44 ? (n = !0, N = e.input.charCodeAt(++e.position)) : n = !1;
|
|
3368
3368
|
}
|
|
3369
3369
|
Oe(e, "unexpected end of the stream within a flow collection");
|
|
3370
3370
|
}
|
|
@@ -3420,11 +3420,11 @@ function Lc(e, a) {
|
|
|
3420
3420
|
if (e.firstTabInLine !== -1)
|
|
3421
3421
|
return !1;
|
|
3422
3422
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), g = e.input.charCodeAt(e.position); g !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Oe(e, "tab characters must not be used in indentation")), !(g !== 45 || (u = e.input.charCodeAt(e.position + 1), !Xt(u)))); ) {
|
|
3423
|
-
if (d = !0, e.position++,
|
|
3423
|
+
if (d = !0, e.position++, bt(e, !0, -1) && e.lineIndent <= a) {
|
|
3424
3424
|
l.push(null), g = e.input.charCodeAt(e.position);
|
|
3425
3425
|
continue;
|
|
3426
3426
|
}
|
|
3427
|
-
if (n = e.line, Wi(e, a, Zd, !1, !0), l.push(e.result),
|
|
3427
|
+
if (n = e.line, Wi(e, a, Zd, !1, !0), l.push(e.result), bt(e, !0, -1), g = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > a) && g !== 0)
|
|
3428
3428
|
Oe(e, "bad indentation of a sequence entry");
|
|
3429
3429
|
else if (e.lineIndent < a)
|
|
3430
3430
|
break;
|
|
@@ -3455,7 +3455,7 @@ function hw(e, a, n) {
|
|
|
3455
3455
|
else
|
|
3456
3456
|
return e.tag = A, e.anchor = y, !0;
|
|
3457
3457
|
}
|
|
3458
|
-
if ((e.line === l || e.lineIndent > a) && (M && (u = e.line, d = e.lineStart, g = e.position), Wi(e, a, Br, !0, o) && (M ? L = e.result : D = e.result), M || (qi(e, w, k, O, L, D, u, d, g), O = L = D = null),
|
|
3458
|
+
if ((e.line === l || e.lineIndent > a) && (M && (u = e.line, d = e.lineStart, g = e.position), Wi(e, a, Br, !0, o) && (M ? L = e.result : D = e.result), M || (qi(e, w, k, O, L, D, u, d, g), O = L = D = null), bt(e, !0, -1), N = e.input.charCodeAt(e.position)), (e.line === l || e.lineIndent > a) && N !== 0)
|
|
3459
3459
|
Oe(e, "bad indentation of a mapping entry");
|
|
3460
3460
|
else if (e.lineIndent < a)
|
|
3461
3461
|
break;
|
|
@@ -3498,13 +3498,13 @@ function yw(e) {
|
|
|
3498
3498
|
return !1;
|
|
3499
3499
|
for (r = e.input.charCodeAt(++e.position), a = e.position; r !== 0 && !Xt(r) && !Ki(r); )
|
|
3500
3500
|
r = e.input.charCodeAt(++e.position);
|
|
3501
|
-
return e.position === a && Oe(e, "name of an alias node must contain at least one character"), n = e.input.slice(a, e.position), oi.call(e.anchorMap, n) || Oe(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n],
|
|
3501
|
+
return e.position === a && Oe(e, "name of an alias node must contain at least one character"), n = e.input.slice(a, e.position), oi.call(e.anchorMap, n) || Oe(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], bt(e, !0, -1), !0;
|
|
3502
3502
|
}
|
|
3503
3503
|
function Wi(e, a, n, r, o) {
|
|
3504
3504
|
var l, u, d, g = 1, A = !1, y = !1, w, k, O, L, D, M;
|
|
3505
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, l = u = d = Br === n || Zd === n, r &&
|
|
3505
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, l = u = d = Br === n || Zd === n, r && bt(e, !0, -1) && (A = !0, e.lineIndent > a ? g = 1 : e.lineIndent === a ? g = 0 : e.lineIndent < a && (g = -1)), g === 1)
|
|
3506
3506
|
for (; Aw(e) || vw(e); )
|
|
3507
|
-
|
|
3507
|
+
bt(e, !0, -1) ? (A = !0, d = l, e.lineIndent > a ? g = 1 : e.lineIndent === a ? g = 0 : e.lineIndent < a && (g = -1)) : d = !1;
|
|
3508
3508
|
if (d && (d = A || o), (g === 1 || Br === n) && (Or === n || Wd === n ? D = a : D = a + 1, M = e.position - e.lineStart, g === 1 ? d && (Lc(e, M) || hw(e, M, D)) || fw(e, D) ? y = !0 : (u && mw(e, D) || pw(e, D) || gw(e, D) ? y = !0 : yw(e) ? (y = !0, (e.tag !== null || e.anchor !== null) && Oe(e, "alias node should not have any properties")) : dw(e, D, Or === n) && (y = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : g === 0 && (y = d && Lc(e, M))), e.tag === null)
|
|
3509
3509
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
3510
3510
|
else if (e.tag === "?") {
|
|
@@ -3528,7 +3528,7 @@ function Wi(e, a, n, r, o) {
|
|
|
3528
3528
|
}
|
|
3529
3529
|
function bw(e) {
|
|
3530
3530
|
var a = e.position, n, r, o, l = !1, u;
|
|
3531
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (u = e.input.charCodeAt(e.position)) !== 0 && (
|
|
3531
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (u = e.input.charCodeAt(e.position)) !== 0 && (bt(e, !0, -1), u = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || u !== 37)); ) {
|
|
3532
3532
|
for (l = !0, u = e.input.charCodeAt(++e.position), n = e.position; u !== 0 && !Xt(u); )
|
|
3533
3533
|
u = e.input.charCodeAt(++e.position);
|
|
3534
3534
|
for (r = e.input.slice(n, e.position), o = [], r.length < 1 && Oe(e, "directive name must not be less than one character in length"); u !== 0; ) {
|
|
@@ -3548,8 +3548,8 @@ function bw(e) {
|
|
|
3548
3548
|
}
|
|
3549
3549
|
u !== 0 && Do(e), oi.call(Tc, r) ? Tc[r](e, r, o) : Ir(e, 'unknown document directive "' + r + '"');
|
|
3550
3550
|
}
|
|
3551
|
-
if (
|
|
3552
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
3551
|
+
if (bt(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, bt(e, !0, -1)) : l && Oe(e, "directives end mark is expected"), Wi(e, e.lineIndent - 1, Br, !1, !0), bt(e, !0, -1), e.checkLineBreaks && aw.test(e.input.slice(a, e.position)) && Ir(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && jr(e)) {
|
|
3552
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, bt(e, !0, -1));
|
|
3553
3553
|
return;
|
|
3554
3554
|
}
|
|
3555
3555
|
if (e.position < e.length - 1)
|
|
@@ -4327,7 +4327,7 @@ const CC = {
|
|
|
4327
4327
|
var Q, z;
|
|
4328
4328
|
let te = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
4329
4329
|
return r.config.app === "konnect" ? te = te.replace(/{controlPlaneId}/gi, ((Q = r.config) == null ? void 0 : Q.controlPlaneId) || "") : r.config.app === "kongManager" && (te = te.replace(/\/{workspace}/gi, (z = r.config) != null && z.workspace ? `/${r.config.workspace}` : "")), te = te.replace(/{id}/gi, r.config.entityId), te;
|
|
4330
|
-
}),
|
|
4330
|
+
}), ve = (Q) => {
|
|
4331
4331
|
M.value && Q(JSON.stringify(M.value)) ? a("copy:success", M.value) : a("copy:error");
|
|
4332
4332
|
};
|
|
4333
4333
|
return Wt(O, (Q) => {
|
|
@@ -4398,7 +4398,7 @@ const CC = {
|
|
|
4398
4398
|
key: 0,
|
|
4399
4399
|
appearance: "tertiary",
|
|
4400
4400
|
"data-testid": "json-copy-button",
|
|
4401
|
-
onClick: (oe) =>
|
|
4401
|
+
onClick: (oe) => ve(be)
|
|
4402
4402
|
}, {
|
|
4403
4403
|
default: R(() => [
|
|
4404
4404
|
Me(_(j(l)("baseConfigCard.actions.copy")), 1)
|
|
@@ -4883,7 +4883,7 @@ const CC = {
|
|
|
4883
4883
|
n.preferencesStorageKey && M(n.preferencesStorageKey, C);
|
|
4884
4884
|
};
|
|
4885
4885
|
return (C, Y) => {
|
|
4886
|
-
const q = ne("KIcon"),
|
|
4886
|
+
const q = ne("KIcon"), ve = ne("KButton"), Q = ne("KDropdown"), z = ne("KTable"), te = ne("KCard");
|
|
4887
4887
|
return v(), X(te, {
|
|
4888
4888
|
class: "kong-ui-entity-base-table",
|
|
4889
4889
|
title: e.title
|
|
@@ -4948,7 +4948,7 @@ const CC = {
|
|
|
4948
4948
|
}, void 0, !0)
|
|
4949
4949
|
]),
|
|
4950
4950
|
default: R(() => [
|
|
4951
|
-
ee(
|
|
4951
|
+
ee(ve, {
|
|
4952
4952
|
class: "actions-trigger",
|
|
4953
4953
|
"data-testid": "overflow-actions-button",
|
|
4954
4954
|
size: "small"
|
|
@@ -5233,17 +5233,17 @@ const CC = {
|
|
|
5233
5233
|
]),
|
|
5234
5234
|
He(ee(q, { class: "kong-ui-entity-filter-menu" }, {
|
|
5235
5235
|
body: R(() => [
|
|
5236
|
-
(v(!0), B(Ne, null, Fe(d.value, (
|
|
5237
|
-
key:
|
|
5238
|
-
"data-testid":
|
|
5236
|
+
(v(!0), B(Ne, null, Fe(d.value, (ve, Q) => (v(), X(Y, {
|
|
5237
|
+
key: ve.value,
|
|
5238
|
+
"data-testid": ve.value,
|
|
5239
5239
|
expandable: "",
|
|
5240
5240
|
"last-menu-item": Q === d.value.length - 1
|
|
5241
5241
|
}, {
|
|
5242
5242
|
itemTitle: R(() => [
|
|
5243
5243
|
T("span", pE, [
|
|
5244
|
-
Me(_(
|
|
5244
|
+
Me(_(ve.label) + " ", 1),
|
|
5245
5245
|
He(T("span", gE, null, 512), [
|
|
5246
|
-
[Xi, u.value.includes(
|
|
5246
|
+
[Xi, u.value.includes(ve.value)]
|
|
5247
5247
|
])
|
|
5248
5248
|
])
|
|
5249
5249
|
]),
|
|
@@ -5253,24 +5253,24 @@ const CC = {
|
|
|
5253
5253
|
T("div", fE, [
|
|
5254
5254
|
T("label", {
|
|
5255
5255
|
class: "menu-item-label",
|
|
5256
|
-
for: y(
|
|
5256
|
+
for: y(ve.value)
|
|
5257
5257
|
}, _(j(r)("filter.fieldLabel")), 9, mE),
|
|
5258
|
-
((te = (z = e.config.schema) == null ? void 0 : z[
|
|
5258
|
+
((te = (z = e.config.schema) == null ? void 0 : z[ve.value]) == null ? void 0 : te.type) === "select" ? (v(), X(C, {
|
|
5259
5259
|
key: 0,
|
|
5260
|
-
id: y(
|
|
5261
|
-
modelValue: l.value[
|
|
5262
|
-
"onUpdate:modelValue": (ae) => l.value[
|
|
5260
|
+
id: y(ve.value),
|
|
5261
|
+
modelValue: l.value[ve.value],
|
|
5262
|
+
"onUpdate:modelValue": (ae) => l.value[ve.value] = ae,
|
|
5263
5263
|
appearance: "select",
|
|
5264
|
-
items: w(
|
|
5264
|
+
items: w(ve.value),
|
|
5265
5265
|
placeholder: j(r)("filter.selectPlaceholder")
|
|
5266
5266
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (v(), X(N, {
|
|
5267
5267
|
key: 1,
|
|
5268
|
-
id: y(
|
|
5269
|
-
modelValue: l.value[
|
|
5270
|
-
"onUpdate:modelValue": (ae) => l.value[
|
|
5268
|
+
id: y(ve.value),
|
|
5269
|
+
modelValue: l.value[ve.value],
|
|
5270
|
+
"onUpdate:modelValue": (ae) => l.value[ve.value] = ae,
|
|
5271
5271
|
autocomplete: "off",
|
|
5272
5272
|
placeholder: j(r)("filter.inputPlaceholder"),
|
|
5273
|
-
type: k(
|
|
5273
|
+
type: k(ve.value)
|
|
5274
5274
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
5275
5275
|
]),
|
|
5276
5276
|
T("div", hE, [
|
|
@@ -5289,7 +5289,7 @@ const CC = {
|
|
|
5289
5289
|
appearance: "tertiary",
|
|
5290
5290
|
"data-testid": "clear-filter",
|
|
5291
5291
|
size: "small",
|
|
5292
|
-
onClick: (ae) => O(
|
|
5292
|
+
onClick: (ae) => O(ve.value)
|
|
5293
5293
|
}, {
|
|
5294
5294
|
default: R(() => [
|
|
5295
5295
|
Me(_(j(r)("filter.clearButtonText")), 1)
|
|
@@ -7330,8 +7330,8 @@ var ha = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
7330
7330
|
xr.exports;
|
|
7331
7331
|
(function(e, a) {
|
|
7332
7332
|
(function() {
|
|
7333
|
-
var n, r = "4.17.21", o = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", d = "Invalid `variable` option passed into `_.template`", g = "__lodash_hash_undefined__", A = 500, y = "__lodash_placeholder__", w = 1, k = 2, O = 4, L = 1, D = 2, M = 1, x = 2, N = 4, ie = 8, C = 16, Y = 32, q = 64,
|
|
7334
|
-
["ary",
|
|
7333
|
+
var n, r = "4.17.21", o = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", d = "Invalid `variable` option passed into `_.template`", g = "__lodash_hash_undefined__", A = 500, y = "__lodash_placeholder__", w = 1, k = 2, O = 4, L = 1, D = 2, M = 1, x = 2, N = 4, ie = 8, C = 16, Y = 32, q = 64, ve = 128, Q = 256, z = 512, te = 30, ae = "...", fe = 800, U = 16, W = 1, Te = 2, we = 3, be = 1 / 0, oe = 9007199254740991, nt = 17976931348623157e292, We = 0 / 0, ct = 4294967295, an = ct - 1, Nn = ct >>> 1, yt = [
|
|
7334
|
+
["ary", ve],
|
|
7335
7335
|
["bind", M],
|
|
7336
7336
|
["bindKey", x],
|
|
7337
7337
|
["curry", ie],
|
|
@@ -7340,7 +7340,7 @@ xr.exports;
|
|
|
7340
7340
|
["partial", Y],
|
|
7341
7341
|
["partialRight", q],
|
|
7342
7342
|
["rearg", Q]
|
|
7343
|
-
], Je = "[object Arguments]", Ht = "[object Array]", rn = "[object AsyncFunction]", sn = "[object Boolean]", de = "[object Date]", ke = "[object DOMException]", G = "[object Error]", re = "[object Function]", ge = "[object GeneratorFunction]", Ce = "[object Map]", ce = "[object Number]",
|
|
7343
|
+
], Je = "[object Arguments]", Ht = "[object Array]", rn = "[object AsyncFunction]", sn = "[object Boolean]", de = "[object Date]", ke = "[object DOMException]", G = "[object Error]", re = "[object Function]", ge = "[object GeneratorFunction]", Ce = "[object Map]", ce = "[object Number]", he = "[object Null]", Ye = "[object Object]", ot = "[object Promise]", Ae = "[object Proxy]", je = "[object RegExp]", Qe = "[object Set]", gt = "[object String]", _i = "[object Symbol]", Gp = "[object Undefined]", $i = "[object WeakMap]", Hp = "[object WeakSet]", ea = "[object ArrayBuffer]", Ii = "[object DataView]", Yr = "[object Float32Array]", Ur = "[object Float64Array]", Gr = "[object Int8Array]", Hr = "[object Int16Array]", Fr = "[object Int32Array]", Vr = "[object Uint8Array]", zr = "[object Uint8ClampedArray]", Kr = "[object Uint16Array]", qr = "[object Uint32Array]", Fp = /\b__p \+= '';/g, Vp = /\b(__p \+=) '' \+/g, zp = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Go = /&(?:amp|lt|gt|quot|#39);/g, Ho = /[&<>"']/g, Kp = RegExp(Go.source), qp = RegExp(Ho.source), Xp = /<%-([\s\S]+?)%>/g, Wp = /<%([\s\S]+?)%>/g, Fo = /<%=([\s\S]+?)%>/g, Zp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Jp = /^\w*$/, Qp = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Xr = /[\\^$.*+?()[\]{}|]/g, _p = RegExp(Xr.source), Wr = /^\s+/, $p = /\s/, eg = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, tg = /\{\n\/\* \[wrapped with (.+)\] \*/, ng = /,? & /, ig = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, ag = /[()=,{}\[\]\/\s]/, rg = /\\(\\)?/g, sg = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Vo = /\w*$/, og = /^[-+]0x[0-9a-f]+$/i, lg = /^0b[01]+$/i, ug = /^\[object .+?Constructor\]$/, cg = /^0o[0-7]+$/i, dg = /^(?:0|[1-9]\d*)$/, pg = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ta = /($^)/, gg = /['\n\r\u2028\u2029\\]/g, Ra = "\\ud800-\\udfff", fg = "\\u0300-\\u036f", mg = "\\ufe20-\\ufe2f", hg = "\\u20d0-\\u20ff", zo = fg + mg + hg, Ko = "\\u2700-\\u27bf", qo = "a-z\\xdf-\\xf6\\xf8-\\xff", Ag = "\\xac\\xb1\\xd7\\xf7", vg = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", yg = "\\u2000-\\u206f", bg = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Xo = "A-Z\\xc0-\\xd6\\xd8-\\xde", Wo = "\\ufe0e\\ufe0f", Zo = Ag + vg + yg + bg, Zr = "['’]", wg = "[" + Ra + "]", Jo = "[" + Zo + "]", La = "[" + zo + "]", Qo = "\\d+", Cg = "[" + Ko + "]", _o = "[" + qo + "]", $o = "[^" + Ra + Zo + Qo + Ko + qo + Xo + "]", Jr = "\\ud83c[\\udffb-\\udfff]", Eg = "(?:" + La + "|" + Jr + ")", el = "[^" + Ra + "]", Qr = "(?:\\ud83c[\\udde6-\\uddff]){2}", _r = "[\\ud800-\\udbff][\\udc00-\\udfff]", Mi = "[" + Xo + "]", tl = "\\u200d", nl = "(?:" + _o + "|" + $o + ")", kg = "(?:" + Mi + "|" + $o + ")", il = "(?:" + Zr + "(?:d|ll|m|re|s|t|ve))?", al = "(?:" + Zr + "(?:D|LL|M|RE|S|T|VE))?", rl = Eg + "?", sl = "[" + Wo + "]?", Og = "(?:" + tl + "(?:" + [el, Qr, _r].join("|") + ")" + sl + rl + ")*", Bg = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Ig = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", ol = sl + rl + Og, Mg = "(?:" + [Cg, Qr, _r].join("|") + ")" + ol, Sg = "(?:" + [el + La + "?", La, Qr, _r, wg].join("|") + ")", xg = RegExp(Zr, "g"), Tg = RegExp(La, "g"), $r = RegExp(Jr + "(?=" + Jr + ")|" + Sg + ol, "g"), Rg = RegExp([
|
|
7344
7344
|
Mi + "?" + _o + "+" + il + "(?=" + [Jo, Mi, "$"].join("|") + ")",
|
|
7345
7345
|
kg + "+" + al + "(?=" + [Jo, Mi + nl, "$"].join("|") + ")",
|
|
7346
7346
|
Mi + "?" + nl + "+" + il,
|
|
@@ -7381,9 +7381,9 @@ xr.exports;
|
|
|
7381
7381
|
"parseInt",
|
|
7382
7382
|
"setTimeout"
|
|
7383
7383
|
], jg = -1, dt = {};
|
|
7384
|
-
dt[Yr] = dt[Ur] = dt[Gr] = dt[Hr] = dt[Fr] = dt[Vr] = dt[zr] = dt[Kr] = dt[qr] = !0, dt[Je] = dt[Ht] = dt[ea] = dt[sn] = dt[Ii] = dt[de] = dt[G] = dt[re] = dt[Ce] = dt[ce] = dt[Ye] = dt[je] = dt[Qe] = dt[
|
|
7384
|
+
dt[Yr] = dt[Ur] = dt[Gr] = dt[Hr] = dt[Fr] = dt[Vr] = dt[zr] = dt[Kr] = dt[qr] = !0, dt[Je] = dt[Ht] = dt[ea] = dt[sn] = dt[Ii] = dt[de] = dt[G] = dt[re] = dt[Ce] = dt[ce] = dt[Ye] = dt[je] = dt[Qe] = dt[gt] = dt[$i] = !1;
|
|
7385
7385
|
var lt = {};
|
|
7386
|
-
lt[Je] = lt[Ht] = lt[ea] = lt[Ii] = lt[sn] = lt[de] = lt[Yr] = lt[Ur] = lt[Gr] = lt[Hr] = lt[Fr] = lt[Ce] = lt[ce] = lt[Ye] = lt[je] = lt[Qe] = lt[
|
|
7386
|
+
lt[Je] = lt[Ht] = lt[ea] = lt[Ii] = lt[sn] = lt[de] = lt[Yr] = lt[Ur] = lt[Gr] = lt[Hr] = lt[Fr] = lt[Ce] = lt[ce] = lt[Ye] = lt[je] = lt[Qe] = lt[gt] = lt[_i] = lt[Vr] = lt[zr] = lt[Kr] = lt[qr] = !0, lt[G] = lt[re] = lt[$i] = !1;
|
|
7387
7387
|
var Pg = {
|
|
7388
7388
|
// Latin-1 Supplement block.
|
|
7389
7389
|
À: "A",
|
|
@@ -7887,7 +7887,7 @@ xr.exports;
|
|
|
7887
7887
|
}
|
|
7888
7888
|
}(), wf = F.clearTimeout !== Mt.clearTimeout && F.clearTimeout, Cf = ye && ye.now !== Mt.Date.now && ye.now, Ef = F.setTimeout !== Mt.setTimeout && F.setTimeout, qa = Ct.ceil, Xa = Ct.floor, ps = rt.getOwnPropertySymbols, kf = Ha ? Ha.isBuffer : n, Tl = F.isFinite, Of = Pa.join, Bf = kl(rt.keys, rt), Et = Ct.max, Tt = Ct.min, If = ye.now, Mf = F.parseInt, Rl = Ct.random, Sf = Pa.reverse, gs = fi(F, "DataView"), ia = fi(F, "Map"), fs = fi(F, "Promise"), Di = fi(F, "Set"), aa = fi(F, "WeakMap"), ra = fi(rt, "create"), Wa = aa && new aa(), Ni = {}, xf = mi(gs), Tf = mi(ia), Rf = mi(fs), Lf = mi(Di), Df = mi(aa), Za = Qn ? Qn.prototype : n, sa = Za ? Za.valueOf : n, Ll = Za ? Za.toString : n;
|
|
7889
7889
|
function f(t) {
|
|
7890
|
-
if (
|
|
7890
|
+
if (ht(t) && !Le(t) && !(t instanceof ze)) {
|
|
7891
7891
|
if (t instanceof cn)
|
|
7892
7892
|
return t;
|
|
7893
7893
|
if (it.call(t, "__wrapped__"))
|
|
@@ -7899,7 +7899,7 @@ xr.exports;
|
|
|
7899
7899
|
function t() {
|
|
7900
7900
|
}
|
|
7901
7901
|
return function(i) {
|
|
7902
|
-
if (!
|
|
7902
|
+
if (!ft(i))
|
|
7903
7903
|
return {};
|
|
7904
7904
|
if (Ml)
|
|
7905
7905
|
return Ml(i);
|
|
@@ -8189,7 +8189,7 @@ xr.exports;
|
|
|
8189
8189
|
var b, E = i & w, S = i & k, V = i & O;
|
|
8190
8190
|
if (s && (b = p ? s(t, c, p, m) : s(t)), b !== n)
|
|
8191
8191
|
return b;
|
|
8192
|
-
if (!
|
|
8192
|
+
if (!ft(t))
|
|
8193
8193
|
return t;
|
|
8194
8194
|
var K = Le(t);
|
|
8195
8195
|
if (K) {
|
|
@@ -8322,7 +8322,7 @@ xr.exports;
|
|
|
8322
8322
|
return Le(t) ? c : Zn(c, s(t));
|
|
8323
8323
|
}
|
|
8324
8324
|
function Pt(t) {
|
|
8325
|
-
return t == null ? t === n ? Gp :
|
|
8325
|
+
return t == null ? t === n ? Gp : he : ui && ui in rt(t) ? Wm(t) : oh(t);
|
|
8326
8326
|
}
|
|
8327
8327
|
function ys(t, i) {
|
|
8328
8328
|
return t > i;
|
|
@@ -8368,16 +8368,16 @@ xr.exports;
|
|
|
8368
8368
|
return c == null ? n : Zt(c, t, s);
|
|
8369
8369
|
}
|
|
8370
8370
|
function Vl(t) {
|
|
8371
|
-
return
|
|
8371
|
+
return ht(t) && Pt(t) == Je;
|
|
8372
8372
|
}
|
|
8373
8373
|
function Am(t) {
|
|
8374
|
-
return
|
|
8374
|
+
return ht(t) && Pt(t) == ea;
|
|
8375
8375
|
}
|
|
8376
8376
|
function vm(t) {
|
|
8377
|
-
return
|
|
8377
|
+
return ht(t) && Pt(t) == de;
|
|
8378
8378
|
}
|
|
8379
8379
|
function ca(t, i, s, c, p) {
|
|
8380
|
-
return t === i ? !0 : t == null || i == null || !
|
|
8380
|
+
return t === i ? !0 : t == null || i == null || !ht(t) && !ht(i) ? t !== t && i !== i : ym(t, i, s, c, ca, p);
|
|
8381
8381
|
}
|
|
8382
8382
|
function ym(t, i, s, c, p, m) {
|
|
8383
8383
|
var b = Le(t), E = Le(i), S = b ? Ht : Rt(t), V = E ? Ht : Rt(i);
|
|
@@ -8400,7 +8400,7 @@ xr.exports;
|
|
|
8400
8400
|
return pe ? (m || (m = new yn()), Xm(t, i, s, c, p, m)) : !1;
|
|
8401
8401
|
}
|
|
8402
8402
|
function bm(t) {
|
|
8403
|
-
return
|
|
8403
|
+
return ht(t) && Rt(t) == Ce;
|
|
8404
8404
|
}
|
|
8405
8405
|
function ws(t, i, s, c) {
|
|
8406
8406
|
var p = s.length, m = p, b = !c;
|
|
@@ -8428,19 +8428,19 @@ xr.exports;
|
|
|
8428
8428
|
return !0;
|
|
8429
8429
|
}
|
|
8430
8430
|
function zl(t) {
|
|
8431
|
-
if (!
|
|
8431
|
+
if (!ft(t) || nh(t))
|
|
8432
8432
|
return !1;
|
|
8433
8433
|
var i = Fn(t) ? bf : ug;
|
|
8434
8434
|
return i.test(mi(t));
|
|
8435
8435
|
}
|
|
8436
8436
|
function wm(t) {
|
|
8437
|
-
return
|
|
8437
|
+
return ht(t) && Pt(t) == je;
|
|
8438
8438
|
}
|
|
8439
8439
|
function Cm(t) {
|
|
8440
|
-
return
|
|
8440
|
+
return ht(t) && Rt(t) == Qe;
|
|
8441
8441
|
}
|
|
8442
8442
|
function Em(t) {
|
|
8443
|
-
return
|
|
8443
|
+
return ht(t) && hr(t.length) && !!dt[Pt(t)];
|
|
8444
8444
|
}
|
|
8445
8445
|
function Kl(t) {
|
|
8446
8446
|
return typeof t == "function" ? t : t == null ? Kt : typeof t == "object" ? Le(t) ? Wl(t[0], t[1]) : Xl(t) : gc(t);
|
|
@@ -8454,7 +8454,7 @@ xr.exports;
|
|
|
8454
8454
|
return i;
|
|
8455
8455
|
}
|
|
8456
8456
|
function km(t) {
|
|
8457
|
-
if (!
|
|
8457
|
+
if (!ft(t))
|
|
8458
8458
|
return sh(t);
|
|
8459
8459
|
var i = ga(t), s = [];
|
|
8460
8460
|
for (var c in t)
|
|
@@ -8484,7 +8484,7 @@ xr.exports;
|
|
|
8484
8484
|
}
|
|
8485
8485
|
function er(t, i, s, c, p) {
|
|
8486
8486
|
t !== i && As(i, function(m, b) {
|
|
8487
|
-
if (p || (p = new yn()),
|
|
8487
|
+
if (p || (p = new yn()), ft(m))
|
|
8488
8488
|
Om(t, i, b, s, er, c, p);
|
|
8489
8489
|
else {
|
|
8490
8490
|
var E = c ? c(Fs(t, b), m, b + "", t, i, p) : n;
|
|
@@ -8501,7 +8501,7 @@ xr.exports;
|
|
|
8501
8501
|
var K = m ? m(E, S, s + "", t, i, b) : n, Z = K === n;
|
|
8502
8502
|
if (Z) {
|
|
8503
8503
|
var pe = Le(S), Ee = !pe && ni(S), Se = !pe && !Ee && Gi(S);
|
|
8504
|
-
K = S, pe || Ee || Se ? Le(E) ? K = E :
|
|
8504
|
+
K = S, pe || Ee || Se ? Le(E) ? K = E : At(E) ? K = Ft(E) : Ee ? (Z = !1, K = su(S, !0)) : Se ? (Z = !1, K = ou(S, !0)) : K = [] : ma(S) || hi(S) ? (K = E, hi(E) ? K = ic(E) : (!ft(E) || Fn(E)) && (K = Ou(S))) : Z = !1;
|
|
8505
8505
|
}
|
|
8506
8506
|
Z && (b.set(S, K), p(K, S, c, m, b), b.delete(S)), ms(t, s, K);
|
|
8507
8507
|
}
|
|
@@ -8590,7 +8590,7 @@ xr.exports;
|
|
|
8590
8590
|
return cr(s, pi(i, 0, s.length));
|
|
8591
8591
|
}
|
|
8592
8592
|
function da(t, i, s, c) {
|
|
8593
|
-
if (!
|
|
8593
|
+
if (!ft(t))
|
|
8594
8594
|
return t;
|
|
8595
8595
|
i = ei(i, t);
|
|
8596
8596
|
for (var p = -1, m = i.length, b = m - 1, E = t; E != null && ++p < m; ) {
|
|
@@ -8599,7 +8599,7 @@ xr.exports;
|
|
|
8599
8599
|
return t;
|
|
8600
8600
|
if (p != b) {
|
|
8601
8601
|
var K = E[S];
|
|
8602
|
-
V = c ? c(K, S, E) : n, V === n && (V =
|
|
8602
|
+
V = c ? c(K, S, E) : n, V === n && (V = ft(K) ? K : Hn(i[p + 1]) ? [] : {});
|
|
8603
8603
|
}
|
|
8604
8604
|
oa(E, S, V), E = E[S];
|
|
8605
8605
|
}
|
|
@@ -8738,7 +8738,7 @@ xr.exports;
|
|
|
8738
8738
|
return b;
|
|
8739
8739
|
}
|
|
8740
8740
|
function xs(t) {
|
|
8741
|
-
return
|
|
8741
|
+
return At(t) ? t : [];
|
|
8742
8742
|
}
|
|
8743
8743
|
function Ts(t) {
|
|
8744
8744
|
return typeof t == "function" ? t : Kt;
|
|
@@ -8919,7 +8919,7 @@ xr.exports;
|
|
|
8919
8919
|
return new t(i[0], i[1], i[2], i[3], i[4], i[5], i[6]);
|
|
8920
8920
|
}
|
|
8921
8921
|
var s = ji(t.prototype), c = t.apply(s, i);
|
|
8922
|
-
return
|
|
8922
|
+
return ft(c) ? c : s;
|
|
8923
8923
|
};
|
|
8924
8924
|
}
|
|
8925
8925
|
function Fm(t, i, s) {
|
|
@@ -8972,7 +8972,7 @@ xr.exports;
|
|
|
8972
8972
|
for (c = b ? c : s; ++c < s; ) {
|
|
8973
8973
|
m = i[c];
|
|
8974
8974
|
var E = lr(m), S = E == "wrapper" ? Ps(m) : n;
|
|
8975
|
-
S && Hs(S[0]) && S[1] == (
|
|
8975
|
+
S && Hs(S[0]) && S[1] == (ve | ie | Y | Q) && !S[4].length && S[9] == 1 ? b = b[lr(S[0])].apply(b, S[3]) : b = m.length == 1 && Hs(m) ? b[E]() : b.thru(m);
|
|
8976
8976
|
}
|
|
8977
8977
|
return function() {
|
|
8978
8978
|
var V = arguments, K = V[0];
|
|
@@ -8985,14 +8985,14 @@ xr.exports;
|
|
|
8985
8985
|
});
|
|
8986
8986
|
}
|
|
8987
8987
|
function ar(t, i, s, c, p, m, b, E, S, V) {
|
|
8988
|
-
var K = i &
|
|
8988
|
+
var K = i & ve, Z = i & M, pe = i & x, Ee = i & (ie | C), Se = i & z, Pe = pe ? n : pa(t);
|
|
8989
8989
|
function xe() {
|
|
8990
8990
|
for (var Ge = arguments.length, qe = P(Ge), $t = Ge; $t--; )
|
|
8991
8991
|
qe[$t] = arguments[$t];
|
|
8992
8992
|
if (Ee)
|
|
8993
8993
|
var Ut = Ui(xe), en = $g(qe, Ut);
|
|
8994
8994
|
if (c && (qe = uu(qe, c, p, Ee)), m && (qe = cu(qe, m, b, Ee)), Ge -= en, Ee && Ge < V) {
|
|
8995
|
-
var
|
|
8995
|
+
var vt = Jn(qe, Ut);
|
|
8996
8996
|
return vu(
|
|
8997
8997
|
t,
|
|
8998
8998
|
i,
|
|
@@ -9000,7 +9000,7 @@ xr.exports;
|
|
|
9000
9000
|
xe.placeholder,
|
|
9001
9001
|
s,
|
|
9002
9002
|
qe,
|
|
9003
|
-
|
|
9003
|
+
vt,
|
|
9004
9004
|
E,
|
|
9005
9005
|
S,
|
|
9006
9006
|
V - Ge
|
|
@@ -9136,7 +9136,7 @@ xr.exports;
|
|
|
9136
9136
|
return t === n || bn(t, Li[s]) && !it.call(c, s) ? i : t;
|
|
9137
9137
|
}
|
|
9138
9138
|
function wu(t, i, s, c, p, m) {
|
|
9139
|
-
return
|
|
9139
|
+
return ft(t) && ft(i) && (m.set(i, t), er(t, i, n, wu, m), m.delete(i)), t;
|
|
9140
9140
|
}
|
|
9141
9141
|
function Km(t) {
|
|
9142
9142
|
return ma(t) ? n : t;
|
|
@@ -9189,7 +9189,7 @@ xr.exports;
|
|
|
9189
9189
|
case G:
|
|
9190
9190
|
return t.name == i.name && t.message == i.message;
|
|
9191
9191
|
case je:
|
|
9192
|
-
case
|
|
9192
|
+
case gt:
|
|
9193
9193
|
return t == i + "";
|
|
9194
9194
|
case Ce:
|
|
9195
9195
|
var E = cs;
|
|
@@ -9383,7 +9383,7 @@ xr.exports;
|
|
|
9383
9383
|
case Ce:
|
|
9384
9384
|
return new c();
|
|
9385
9385
|
case ce:
|
|
9386
|
-
case
|
|
9386
|
+
case gt:
|
|
9387
9387
|
return new c(t);
|
|
9388
9388
|
case je:
|
|
9389
9389
|
return jm(t);
|
|
@@ -9410,7 +9410,7 @@ xr.exports;
|
|
|
9410
9410
|
return i = i ?? oe, !!i && (s == "number" || s != "symbol" && dg.test(t)) && t > -1 && t % 1 == 0 && t < i;
|
|
9411
9411
|
}
|
|
9412
9412
|
function Yt(t, i, s) {
|
|
9413
|
-
if (!
|
|
9413
|
+
if (!ft(s))
|
|
9414
9414
|
return !1;
|
|
9415
9415
|
var c = typeof i;
|
|
9416
9416
|
return (c == "number" ? Vt(s) && Hn(i, s.length) : c == "string" && i in s) ? bn(s[i], t) : !1;
|
|
@@ -9443,7 +9443,7 @@ xr.exports;
|
|
|
9443
9443
|
return t === s;
|
|
9444
9444
|
}
|
|
9445
9445
|
function Bu(t) {
|
|
9446
|
-
return t === t && !
|
|
9446
|
+
return t === t && !ft(t);
|
|
9447
9447
|
}
|
|
9448
9448
|
function Iu(t, i) {
|
|
9449
9449
|
return function(s) {
|
|
@@ -9457,7 +9457,7 @@ xr.exports;
|
|
|
9457
9457
|
return i;
|
|
9458
9458
|
}
|
|
9459
9459
|
function rh(t, i) {
|
|
9460
|
-
var s = t[1], c = i[1], p = s | c, m = p < (M | x |
|
|
9460
|
+
var s = t[1], c = i[1], p = s | c, m = p < (M | x | ve), b = c == ve && s == ie || c == ve && s == Q && t[7].length <= i[8] || c == (ve | Q) && i[7].length <= i[8] && s == ie;
|
|
9461
9461
|
if (!(m || b))
|
|
9462
9462
|
return t;
|
|
9463
9463
|
c & M && (t[2] = i[2], p |= s & M ? 0 : N);
|
|
@@ -9466,7 +9466,7 @@ xr.exports;
|
|
|
9466
9466
|
var S = t[3];
|
|
9467
9467
|
t[3] = S ? uu(S, E, i[4]) : E, t[4] = S ? Jn(t[3], y) : i[4];
|
|
9468
9468
|
}
|
|
9469
|
-
return E = i[5], E && (S = t[5], t[5] = S ? cu(S, E, i[6]) : E, t[6] = S ? Jn(t[5], y) : i[6]), E = i[7], E && (t[7] = E), c &
|
|
9469
|
+
return E = i[5], E && (S = t[5], t[5] = S ? cu(S, E, i[6]) : E, t[6] = S ? Jn(t[5], y) : i[6]), E = i[7], E && (t[7] = E), c & ve && (t[8] = t[8] == null ? i[8] : Tt(t[8], i[8])), t[9] == null && (t[9] = i[9]), t[0] = i[0], t[1] = p, t;
|
|
9470
9470
|
}
|
|
9471
9471
|
function sh(t) {
|
|
9472
9472
|
var i = [];
|
|
@@ -9555,7 +9555,7 @@ xr.exports;
|
|
|
9555
9555
|
return "";
|
|
9556
9556
|
}
|
|
9557
9557
|
function uh(t, i) {
|
|
9558
|
-
return ln(
|
|
9558
|
+
return ln(yt, function(s) {
|
|
9559
9559
|
var c = "_." + s[0];
|
|
9560
9560
|
i & s[1] && !Da(t, c) && t.push(c);
|
|
9561
9561
|
}), t.sort();
|
|
@@ -9591,13 +9591,13 @@ xr.exports;
|
|
|
9591
9591
|
return Zn(Le(s) ? Ft(s) : [s], St(i, 1));
|
|
9592
9592
|
}
|
|
9593
9593
|
var gh = Ue(function(t, i) {
|
|
9594
|
-
return
|
|
9594
|
+
return At(t) ? la(t, St(i, 1, At, !0)) : [];
|
|
9595
9595
|
}), fh = Ue(function(t, i) {
|
|
9596
9596
|
var s = gn(i);
|
|
9597
|
-
return
|
|
9597
|
+
return At(s) && (s = n), At(t) ? la(t, St(i, 1, At, !0), Ie(s, 2)) : [];
|
|
9598
9598
|
}), mh = Ue(function(t, i) {
|
|
9599
9599
|
var s = gn(i);
|
|
9600
|
-
return
|
|
9600
|
+
return At(s) && (s = n), At(t) ? la(t, St(i, 1, At, !0), n, s) : [];
|
|
9601
9601
|
});
|
|
9602
9602
|
function hh(t, i, s) {
|
|
9603
9603
|
var c = t == null ? 0 : t.length;
|
|
@@ -9779,13 +9779,13 @@ xr.exports;
|
|
|
9779
9779
|
return t && t.length ? nr(t, Ie(i, 3)) : [];
|
|
9780
9780
|
}
|
|
9781
9781
|
var Qh = Ue(function(t) {
|
|
9782
|
-
return $n(St(t, 1,
|
|
9782
|
+
return $n(St(t, 1, At, !0));
|
|
9783
9783
|
}), _h = Ue(function(t) {
|
|
9784
9784
|
var i = gn(t);
|
|
9785
|
-
return
|
|
9785
|
+
return At(i) && (i = n), $n(St(t, 1, At, !0), Ie(i, 2));
|
|
9786
9786
|
}), $h = Ue(function(t) {
|
|
9787
9787
|
var i = gn(t);
|
|
9788
|
-
return i = typeof i == "function" ? i : n, $n(St(t, 1,
|
|
9788
|
+
return i = typeof i == "function" ? i : n, $n(St(t, 1, At, !0), n, i);
|
|
9789
9789
|
});
|
|
9790
9790
|
function eA(t) {
|
|
9791
9791
|
return t && t.length ? $n(t) : [];
|
|
@@ -9801,7 +9801,7 @@ xr.exports;
|
|
|
9801
9801
|
return [];
|
|
9802
9802
|
var i = 0;
|
|
9803
9803
|
return t = Wn(t, function(s) {
|
|
9804
|
-
if (
|
|
9804
|
+
if (At(s))
|
|
9805
9805
|
return i = Et(s.length, i), !0;
|
|
9806
9806
|
}), ls(i, function(s) {
|
|
9807
9807
|
return pt(t, rs(s));
|
|
@@ -9816,15 +9816,15 @@ xr.exports;
|
|
|
9816
9816
|
});
|
|
9817
9817
|
}
|
|
9818
9818
|
var iA = Ue(function(t, i) {
|
|
9819
|
-
return
|
|
9819
|
+
return At(t) ? la(t, i) : [];
|
|
9820
9820
|
}), aA = Ue(function(t) {
|
|
9821
|
-
return Ss(Wn(t,
|
|
9821
|
+
return Ss(Wn(t, At));
|
|
9822
9822
|
}), rA = Ue(function(t) {
|
|
9823
9823
|
var i = gn(t);
|
|
9824
|
-
return
|
|
9824
|
+
return At(i) && (i = n), Ss(Wn(t, At), Ie(i, 2));
|
|
9825
9825
|
}), sA = Ue(function(t) {
|
|
9826
9826
|
var i = gn(t);
|
|
9827
|
-
return i = typeof i == "function" ? i : n, Ss(Wn(t,
|
|
9827
|
+
return i = typeof i == "function" ? i : n, Ss(Wn(t, At), n, i);
|
|
9828
9828
|
}), oA = Ue(Ks);
|
|
9829
9829
|
function lA(t, i) {
|
|
9830
9830
|
return au(t || [], i || [], oa);
|
|
@@ -10007,7 +10007,7 @@ xr.exports;
|
|
|
10007
10007
|
};
|
|
10008
10008
|
}
|
|
10009
10009
|
function zu(t, i, s) {
|
|
10010
|
-
return i = s ? n : i, i = t && i == null ? t.length : i, Un(t,
|
|
10010
|
+
return i = s ? n : i, i = t && i == null ? t.length : i, Un(t, ve, n, n, n, n, i);
|
|
10011
10011
|
}
|
|
10012
10012
|
function Ku(t, i) {
|
|
10013
10013
|
var s;
|
|
@@ -10046,30 +10046,30 @@ xr.exports;
|
|
|
10046
10046
|
var c, p, m, b, E, S, V = 0, K = !1, Z = !1, pe = !0;
|
|
10047
10047
|
if (typeof t != "function")
|
|
10048
10048
|
throw new un(u);
|
|
10049
|
-
i = fn(i) || 0,
|
|
10050
|
-
function Ee(
|
|
10049
|
+
i = fn(i) || 0, ft(s) && (K = !!s.leading, Z = "maxWait" in s, m = Z ? Et(fn(s.maxWait) || 0, i) : m, pe = "trailing" in s ? !!s.trailing : pe);
|
|
10050
|
+
function Ee(vt) {
|
|
10051
10051
|
var wn = c, zn = p;
|
|
10052
|
-
return c = p = n, V =
|
|
10052
|
+
return c = p = n, V = vt, b = t.apply(zn, wn), b;
|
|
10053
10053
|
}
|
|
10054
|
-
function Se(
|
|
10055
|
-
return V =
|
|
10054
|
+
function Se(vt) {
|
|
10055
|
+
return V = vt, E = fa(Ge, i), K ? Ee(vt) : b;
|
|
10056
10056
|
}
|
|
10057
|
-
function Pe(
|
|
10058
|
-
var wn =
|
|
10057
|
+
function Pe(vt) {
|
|
10058
|
+
var wn = vt - S, zn = vt - V, fc = i - wn;
|
|
10059
10059
|
return Z ? Tt(fc, m - zn) : fc;
|
|
10060
10060
|
}
|
|
10061
|
-
function xe(
|
|
10062
|
-
var wn =
|
|
10061
|
+
function xe(vt) {
|
|
10062
|
+
var wn = vt - S, zn = vt - V;
|
|
10063
10063
|
return S === n || wn >= i || wn < 0 || Z && zn >= m;
|
|
10064
10064
|
}
|
|
10065
10065
|
function Ge() {
|
|
10066
|
-
var
|
|
10067
|
-
if (xe(
|
|
10068
|
-
return qe(
|
|
10069
|
-
E = fa(Ge, Pe(
|
|
10066
|
+
var vt = gr();
|
|
10067
|
+
if (xe(vt))
|
|
10068
|
+
return qe(vt);
|
|
10069
|
+
E = fa(Ge, Pe(vt));
|
|
10070
10070
|
}
|
|
10071
|
-
function qe(
|
|
10072
|
-
return E = n, pe && c ? Ee(
|
|
10071
|
+
function qe(vt) {
|
|
10072
|
+
return E = n, pe && c ? Ee(vt) : (c = p = n, b);
|
|
10073
10073
|
}
|
|
10074
10074
|
function $t() {
|
|
10075
10075
|
E !== n && ru(E), V = 0, c = S = p = E = n;
|
|
@@ -10078,8 +10078,8 @@ xr.exports;
|
|
|
10078
10078
|
return E === n ? b : qe(gr());
|
|
10079
10079
|
}
|
|
10080
10080
|
function en() {
|
|
10081
|
-
var
|
|
10082
|
-
if (c = arguments, p = this, S =
|
|
10081
|
+
var vt = gr(), wn = xe(vt);
|
|
10082
|
+
if (c = arguments, p = this, S = vt, wn) {
|
|
10083
10083
|
if (E === n)
|
|
10084
10084
|
return Se(S);
|
|
10085
10085
|
if (Z)
|
|
@@ -10165,7 +10165,7 @@ xr.exports;
|
|
|
10165
10165
|
var c = !0, p = !0;
|
|
10166
10166
|
if (typeof t != "function")
|
|
10167
10167
|
throw new un(u);
|
|
10168
|
-
return
|
|
10168
|
+
return ft(s) && (c = "leading" in s ? !!s.leading : c, p = "trailing" in s ? !!s.trailing : p), Zu(t, i, {
|
|
10169
10169
|
leading: c,
|
|
10170
10170
|
maxWait: i,
|
|
10171
10171
|
trailing: p
|
|
@@ -10206,20 +10206,20 @@ xr.exports;
|
|
|
10206
10206
|
}), hi = Vl(function() {
|
|
10207
10207
|
return arguments;
|
|
10208
10208
|
}()) ? Vl : function(t) {
|
|
10209
|
-
return
|
|
10209
|
+
return ht(t) && it.call(t, "callee") && !Sl.call(t, "callee");
|
|
10210
10210
|
}, Le = P.isArray, uv = cl ? Jt(cl) : Am;
|
|
10211
10211
|
function Vt(t) {
|
|
10212
10212
|
return t != null && hr(t.length) && !Fn(t);
|
|
10213
10213
|
}
|
|
10214
|
-
function
|
|
10215
|
-
return
|
|
10214
|
+
function At(t) {
|
|
10215
|
+
return ht(t) && Vt(t);
|
|
10216
10216
|
}
|
|
10217
10217
|
function cv(t) {
|
|
10218
|
-
return t === !0 || t === !1 ||
|
|
10218
|
+
return t === !0 || t === !1 || ht(t) && Pt(t) == sn;
|
|
10219
10219
|
}
|
|
10220
10220
|
var ni = kf || ao, dv = dl ? Jt(dl) : vm;
|
|
10221
10221
|
function pv(t) {
|
|
10222
|
-
return
|
|
10222
|
+
return ht(t) && t.nodeType === 1 && !ma(t);
|
|
10223
10223
|
}
|
|
10224
10224
|
function gv(t) {
|
|
10225
10225
|
if (t == null)
|
|
@@ -10245,7 +10245,7 @@ xr.exports;
|
|
|
10245
10245
|
return c === n ? ca(t, i, n, s) : !!c;
|
|
10246
10246
|
}
|
|
10247
10247
|
function Ws(t) {
|
|
10248
|
-
if (!
|
|
10248
|
+
if (!ht(t))
|
|
10249
10249
|
return !1;
|
|
10250
10250
|
var i = Pt(t);
|
|
10251
10251
|
return i == G || i == ke || typeof t.message == "string" && typeof t.name == "string" && !ma(t);
|
|
@@ -10254,10 +10254,10 @@ xr.exports;
|
|
|
10254
10254
|
return typeof t == "number" && Tl(t);
|
|
10255
10255
|
}
|
|
10256
10256
|
function Fn(t) {
|
|
10257
|
-
if (!
|
|
10257
|
+
if (!ft(t))
|
|
10258
10258
|
return !1;
|
|
10259
10259
|
var i = Pt(t);
|
|
10260
|
-
return i == re || i == ge || i == rn || i ==
|
|
10260
|
+
return i == re || i == ge || i == rn || i == Ae;
|
|
10261
10261
|
}
|
|
10262
10262
|
function Qu(t) {
|
|
10263
10263
|
return typeof t == "number" && t == De(t);
|
|
@@ -10265,11 +10265,11 @@ xr.exports;
|
|
|
10265
10265
|
function hr(t) {
|
|
10266
10266
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= oe;
|
|
10267
10267
|
}
|
|
10268
|
-
function
|
|
10268
|
+
function ft(t) {
|
|
10269
10269
|
var i = typeof t;
|
|
10270
10270
|
return t != null && (i == "object" || i == "function");
|
|
10271
10271
|
}
|
|
10272
|
-
function
|
|
10272
|
+
function ht(t) {
|
|
10273
10273
|
return t != null && typeof t == "object";
|
|
10274
10274
|
}
|
|
10275
10275
|
var _u = pl ? Jt(pl) : bm;
|
|
@@ -10294,10 +10294,10 @@ xr.exports;
|
|
|
10294
10294
|
return t == null;
|
|
10295
10295
|
}
|
|
10296
10296
|
function $u(t) {
|
|
10297
|
-
return typeof t == "number" ||
|
|
10297
|
+
return typeof t == "number" || ht(t) && Pt(t) == ce;
|
|
10298
10298
|
}
|
|
10299
10299
|
function ma(t) {
|
|
10300
|
-
if (!
|
|
10300
|
+
if (!ht(t) || Pt(t) != Ye)
|
|
10301
10301
|
return !1;
|
|
10302
10302
|
var i = Va(t);
|
|
10303
10303
|
if (i === null)
|
|
@@ -10311,20 +10311,20 @@ xr.exports;
|
|
|
10311
10311
|
}
|
|
10312
10312
|
var ec = fl ? Jt(fl) : Cm;
|
|
10313
10313
|
function Ar(t) {
|
|
10314
|
-
return typeof t == "string" || !Le(t) &&
|
|
10314
|
+
return typeof t == "string" || !Le(t) && ht(t) && Pt(t) == gt;
|
|
10315
10315
|
}
|
|
10316
10316
|
function _t(t) {
|
|
10317
|
-
return typeof t == "symbol" ||
|
|
10317
|
+
return typeof t == "symbol" || ht(t) && Pt(t) == _i;
|
|
10318
10318
|
}
|
|
10319
10319
|
var Gi = ml ? Jt(ml) : Em;
|
|
10320
10320
|
function kv(t) {
|
|
10321
10321
|
return t === n;
|
|
10322
10322
|
}
|
|
10323
10323
|
function Ov(t) {
|
|
10324
|
-
return
|
|
10324
|
+
return ht(t) && Rt(t) == $i;
|
|
10325
10325
|
}
|
|
10326
10326
|
function Bv(t) {
|
|
10327
|
-
return
|
|
10327
|
+
return ht(t) && Pt(t) == Hp;
|
|
10328
10328
|
}
|
|
10329
10329
|
var Iv = or(Es), Mv = or(function(t, i) {
|
|
10330
10330
|
return t <= i;
|
|
@@ -10360,9 +10360,9 @@ xr.exports;
|
|
|
10360
10360
|
return t;
|
|
10361
10361
|
if (_t(t))
|
|
10362
10362
|
return We;
|
|
10363
|
-
if (
|
|
10363
|
+
if (ft(t)) {
|
|
10364
10364
|
var i = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
10365
|
-
t =
|
|
10365
|
+
t = ft(i) ? i + "" : i;
|
|
10366
10366
|
}
|
|
10367
10367
|
if (typeof t != "string")
|
|
10368
10368
|
return t === 0 ? t : +t;
|
|
@@ -10518,7 +10518,7 @@ xr.exports;
|
|
|
10518
10518
|
var c = Le(t), p = c || ni(t) || Gi(t);
|
|
10519
10519
|
if (i = Ie(i, 4), s == null) {
|
|
10520
10520
|
var m = t && t.constructor;
|
|
10521
|
-
p ? s = c ? new m() : [] :
|
|
10521
|
+
p ? s = c ? new m() : [] : ft(t) ? s = Fn(m) ? ji(Va(t)) : {} : s = {};
|
|
10522
10522
|
}
|
|
10523
10523
|
return (p ? ln : Cn)(t, function(b, E, S) {
|
|
10524
10524
|
return i(s, b, E, S);
|
|
@@ -10695,7 +10695,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
10695
10695
|
}
|
|
10696
10696
|
function Dy(t, i) {
|
|
10697
10697
|
var s = te, c = ae;
|
|
10698
|
-
if (
|
|
10698
|
+
if (ft(i)) {
|
|
10699
10699
|
var p = "separator" in i ? i.separator : p;
|
|
10700
10700
|
s = "length" in i ? De(i.length) : s, c = "omission" in i ? Qt(i.omission) : c;
|
|
10701
10701
|
}
|
|
@@ -10795,8 +10795,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
10795
10795
|
});
|
|
10796
10796
|
function to(t, i, s) {
|
|
10797
10797
|
var c = Bt(i), p = $a(i, c);
|
|
10798
|
-
s == null && !(
|
|
10799
|
-
var m = !(
|
|
10798
|
+
s == null && !(ft(i) && (p.length || !c.length)) && (s = i, i = t, t = this, p = $a(i, Bt(i)));
|
|
10799
|
+
var m = !(ft(s) && "chain" in s) || !!s.chain, b = Fn(t);
|
|
10800
10800
|
return ln(p, function(E) {
|
|
10801
10801
|
var S = i[E];
|
|
10802
10802
|
t[E] = S, b && (t.prototype[E] = function() {
|
|
@@ -10894,7 +10894,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
10894
10894
|
function wb(t, i) {
|
|
10895
10895
|
return t && t.length ? os(t, Ie(i, 2)) : 0;
|
|
10896
10896
|
}
|
|
10897
|
-
return f.after = VA, f.ary = zu, f.assign = xv, f.assignIn = ac, f.assignInWith = vr, f.assignWith = Tv, f.at = Rv, f.before = Ku, f.bind = qs, f.bindAll = Py, f.bindKey = qu, f.castArray = tv, f.chain = Hu, f.chunk = ch, f.compact = dh, f.concat = ph, f.cond = Yy, f.conforms = Uy, f.constant = $s, f.countBy = bA, f.create = Lv, f.curry = Xu, f.curryRight = Wu, f.debounce = Zu, f.defaults = Dv, f.defaultsDeep = Nv, f.defer = zA, f.delay = KA, f.difference = gh, f.differenceBy = fh, f.differenceWith = mh, f.drop = hh, f.dropRight = Ah, f.dropRightWhile = vh, f.dropWhile = yh, f.fill = bh, f.filter = CA, f.flatMap = OA, f.flatMapDeep = BA, f.flatMapDepth = IA, f.flatten = Pu, f.flattenDeep = wh, f.flattenDepth = Ch, f.flip = qA, f.flow = Hy, f.flowRight = Fy, f.fromPairs = Eh, f.functions = Fv, f.functionsIn = Vv, f.groupBy = MA, f.initial = Oh, f.intersection = Bh, f.intersectionBy = Ih, f.intersectionWith = Mh, f.invert = Kv, f.invertBy = qv, f.invokeMap = xA, f.iteratee = eo, f.keyBy = TA, f.keys = Bt, f.keysIn = zt, f.map = pr, f.mapKeys = Wv, f.mapValues = Zv, f.matches = Vy, f.matchesProperty = zy, f.memoize = fr, f.merge = Jv, f.mergeWith = rc, f.method = Ky, f.methodOf = qy, f.mixin = to, f.negate = mr, f.nthArg = Wy, f.omit = Qv, f.omitBy = _v, f.once = XA, f.orderBy = RA, f.over = Zy, f.overArgs = WA, f.overEvery = Jy, f.overSome = Qy, f.partial = Xs, f.partialRight = Ju, f.partition = LA, f.pick = $v, f.pickBy = sc, f.property = gc, f.propertyOf = _y, f.pull = Rh, f.pullAll = Uu, f.pullAllBy = Lh, f.pullAllWith = Dh, f.pullAt = Nh, f.range = $y, f.rangeRight = eb, f.rearg = ZA, f.reject = jA, f.remove = jh, f.rest = JA, f.reverse = zs, f.sampleSize = YA, f.set = ty, f.setWith = ny, f.shuffle = UA, f.slice = Ph, f.sortBy = FA, f.sortedUniq = zh, f.sortedUniqBy = Kh, f.split = Oy, f.spread = QA, f.tail = qh, f.take = Xh, f.takeRight = Wh, f.takeRightWhile = Zh, f.takeWhile = Jh, f.tap = dA, f.throttle = _A, f.thru = dr, f.toArray = tc, f.toPairs = oc, f.toPairsIn = lc, f.toPath = rb, f.toPlainObject = ic, f.transform = iy, f.unary = $A, f.union = Qh, f.unionBy = _h, f.unionWith = $h, f.uniq = eA, f.uniqBy = tA, f.uniqWith = nA, f.unset = ay, f.unzip = Ks, f.unzipWith = Gu, f.update = ry, f.updateWith = sy, f.values = Hi, f.valuesIn = oy, f.without = iA, f.words = dc, f.wrap = ev, f.xor = aA, f.xorBy = rA, f.xorWith = sA, f.zip = oA, f.zipObject = lA, f.zipObjectDeep = uA, f.zipWith = cA, f.entries = oc, f.entriesIn = lc, f.extend = ac, f.extendWith = vr, to(f, f), f.add = ob, f.attempt = pc, f.camelCase = dy, f.capitalize = uc, f.ceil = lb, f.clamp = ly, f.clone = nv, f.cloneDeep = av, f.cloneDeepWith = rv, f.cloneWith = iv, f.conformsTo = sv, f.deburr = cc, f.defaultTo = Gy, f.divide = ub, f.endsWith = py, f.eq = bn, f.escape = gy, f.escapeRegExp = fy, f.every = wA, f.find = EA, f.findIndex = Nu, f.findKey = jv, f.findLast = kA, f.findLastIndex = ju, f.findLastKey = Pv, f.floor = cb, f.forEach = Fu, f.forEachRight = Vu, f.forIn = Yv, f.forInRight = Uv, f.forOwn = Gv, f.forOwnRight = Hv, f.get = Js, f.gt = ov, f.gte = lv, f.has = zv, f.hasIn = Qs, f.head = Yu, f.identity = Kt, f.includes = SA, f.indexOf = kh, f.inRange = uy, f.invoke = Xv, f.isArguments = hi, f.isArray = Le, f.isArrayBuffer = uv, f.isArrayLike = Vt, f.isArrayLikeObject =
|
|
10897
|
+
return f.after = VA, f.ary = zu, f.assign = xv, f.assignIn = ac, f.assignInWith = vr, f.assignWith = Tv, f.at = Rv, f.before = Ku, f.bind = qs, f.bindAll = Py, f.bindKey = qu, f.castArray = tv, f.chain = Hu, f.chunk = ch, f.compact = dh, f.concat = ph, f.cond = Yy, f.conforms = Uy, f.constant = $s, f.countBy = bA, f.create = Lv, f.curry = Xu, f.curryRight = Wu, f.debounce = Zu, f.defaults = Dv, f.defaultsDeep = Nv, f.defer = zA, f.delay = KA, f.difference = gh, f.differenceBy = fh, f.differenceWith = mh, f.drop = hh, f.dropRight = Ah, f.dropRightWhile = vh, f.dropWhile = yh, f.fill = bh, f.filter = CA, f.flatMap = OA, f.flatMapDeep = BA, f.flatMapDepth = IA, f.flatten = Pu, f.flattenDeep = wh, f.flattenDepth = Ch, f.flip = qA, f.flow = Hy, f.flowRight = Fy, f.fromPairs = Eh, f.functions = Fv, f.functionsIn = Vv, f.groupBy = MA, f.initial = Oh, f.intersection = Bh, f.intersectionBy = Ih, f.intersectionWith = Mh, f.invert = Kv, f.invertBy = qv, f.invokeMap = xA, f.iteratee = eo, f.keyBy = TA, f.keys = Bt, f.keysIn = zt, f.map = pr, f.mapKeys = Wv, f.mapValues = Zv, f.matches = Vy, f.matchesProperty = zy, f.memoize = fr, f.merge = Jv, f.mergeWith = rc, f.method = Ky, f.methodOf = qy, f.mixin = to, f.negate = mr, f.nthArg = Wy, f.omit = Qv, f.omitBy = _v, f.once = XA, f.orderBy = RA, f.over = Zy, f.overArgs = WA, f.overEvery = Jy, f.overSome = Qy, f.partial = Xs, f.partialRight = Ju, f.partition = LA, f.pick = $v, f.pickBy = sc, f.property = gc, f.propertyOf = _y, f.pull = Rh, f.pullAll = Uu, f.pullAllBy = Lh, f.pullAllWith = Dh, f.pullAt = Nh, f.range = $y, f.rangeRight = eb, f.rearg = ZA, f.reject = jA, f.remove = jh, f.rest = JA, f.reverse = zs, f.sampleSize = YA, f.set = ty, f.setWith = ny, f.shuffle = UA, f.slice = Ph, f.sortBy = FA, f.sortedUniq = zh, f.sortedUniqBy = Kh, f.split = Oy, f.spread = QA, f.tail = qh, f.take = Xh, f.takeRight = Wh, f.takeRightWhile = Zh, f.takeWhile = Jh, f.tap = dA, f.throttle = _A, f.thru = dr, f.toArray = tc, f.toPairs = oc, f.toPairsIn = lc, f.toPath = rb, f.toPlainObject = ic, f.transform = iy, f.unary = $A, f.union = Qh, f.unionBy = _h, f.unionWith = $h, f.uniq = eA, f.uniqBy = tA, f.uniqWith = nA, f.unset = ay, f.unzip = Ks, f.unzipWith = Gu, f.update = ry, f.updateWith = sy, f.values = Hi, f.valuesIn = oy, f.without = iA, f.words = dc, f.wrap = ev, f.xor = aA, f.xorBy = rA, f.xorWith = sA, f.zip = oA, f.zipObject = lA, f.zipObjectDeep = uA, f.zipWith = cA, f.entries = oc, f.entriesIn = lc, f.extend = ac, f.extendWith = vr, to(f, f), f.add = ob, f.attempt = pc, f.camelCase = dy, f.capitalize = uc, f.ceil = lb, f.clamp = ly, f.clone = nv, f.cloneDeep = av, f.cloneDeepWith = rv, f.cloneWith = iv, f.conformsTo = sv, f.deburr = cc, f.defaultTo = Gy, f.divide = ub, f.endsWith = py, f.eq = bn, f.escape = gy, f.escapeRegExp = fy, f.every = wA, f.find = EA, f.findIndex = Nu, f.findKey = jv, f.findLast = kA, f.findLastIndex = ju, f.findLastKey = Pv, f.floor = cb, f.forEach = Fu, f.forEachRight = Vu, f.forIn = Yv, f.forInRight = Uv, f.forOwn = Gv, f.forOwnRight = Hv, f.get = Js, f.gt = ov, f.gte = lv, f.has = zv, f.hasIn = Qs, f.head = Yu, f.identity = Kt, f.includes = SA, f.indexOf = kh, f.inRange = uy, f.invoke = Xv, f.isArguments = hi, f.isArray = Le, f.isArrayBuffer = uv, f.isArrayLike = Vt, f.isArrayLikeObject = At, f.isBoolean = cv, f.isBuffer = ni, f.isDate = dv, f.isElement = pv, f.isEmpty = gv, f.isEqual = fv, f.isEqualWith = mv, f.isError = Ws, f.isFinite = hv, f.isFunction = Fn, f.isInteger = Qu, f.isLength = hr, f.isMap = _u, f.isMatch = Av, f.isMatchWith = vv, f.isNaN = yv, f.isNative = bv, f.isNil = Cv, f.isNull = wv, f.isNumber = $u, f.isObject = ft, f.isObjectLike = ht, f.isPlainObject = ma, f.isRegExp = Zs, f.isSafeInteger = Ev, f.isSet = ec, f.isString = Ar, f.isSymbol = _t, f.isTypedArray = Gi, f.isUndefined = kv, f.isWeakMap = Ov, f.isWeakSet = Bv, f.join = Sh, f.kebabCase = my, f.last = gn, f.lastIndexOf = xh, f.lowerCase = hy, f.lowerFirst = Ay, f.lt = Iv, f.lte = Mv, f.max = db, f.maxBy = pb, f.mean = gb, f.meanBy = fb, f.min = mb, f.minBy = hb, f.stubArray = io, f.stubFalse = ao, f.stubObject = tb, f.stubString = nb, f.stubTrue = ib, f.multiply = Ab, f.nth = Th, f.noConflict = Xy, f.noop = no, f.now = gr, f.pad = vy, f.padEnd = yy, f.padStart = by, f.parseInt = wy, f.random = cy, f.reduce = DA, f.reduceRight = NA, f.repeat = Cy, f.replace = Ey, f.result = ey, f.round = vb, f.runInContext = I, f.sample = PA, f.size = GA, f.snakeCase = ky, f.some = HA, f.sortedIndex = Yh, f.sortedIndexBy = Uh, f.sortedIndexOf = Gh, f.sortedLastIndex = Hh, f.sortedLastIndexBy = Fh, f.sortedLastIndexOf = Vh, f.startCase = By, f.startsWith = Iy, f.subtract = yb, f.sum = bb, f.sumBy = wb, f.template = My, f.times = ab, f.toFinite = Vn, f.toInteger = De, f.toLength = nc, f.toLower = Sy, f.toNumber = fn, f.toSafeInteger = Sv, f.toString = $e, f.toUpper = xy, f.trim = Ty, f.trimEnd = Ry, f.trimStart = Ly, f.truncate = Dy, f.unescape = Ny, f.uniqueId = sb, f.upperCase = jy, f.upperFirst = _s, f.each = Fu, f.eachRight = Vu, f.first = Yu, to(f, function() {
|
|
10898
10898
|
var t = {};
|
|
10899
10899
|
return Cn(f, function(i, s) {
|
|
10900
10900
|
it.call(f.prototype, s) || (t[s] = i);
|
|
@@ -11287,10 +11287,10 @@ function PO(e, a, n) {
|
|
|
11287
11287
|
return u.push(_c(Y)), "@@@";
|
|
11288
11288
|
}), g = {}, A = {};
|
|
11289
11289
|
d = _c(d).replace(bp, function(C) {
|
|
11290
|
-
var Y = DO[C], q = Y[0],
|
|
11290
|
+
var Y = DO[C], q = Y[0], ve = Y[1], Q = Y[3];
|
|
11291
11291
|
if (g[q])
|
|
11292
11292
|
throw new Error("Invalid format. " + q + " specified twice in format");
|
|
11293
|
-
return g[q] = !0, Q && (A[Q] = !0), l.push(Y), "(" +
|
|
11293
|
+
return g[q] = !0, Q && (A[Q] = !0), l.push(Y), "(" + ve + ")";
|
|
11294
11294
|
}), Object.keys(A).forEach(function(C) {
|
|
11295
11295
|
if (!g[C])
|
|
11296
11296
|
throw new Error("Invalid format. " + C + " is required in specified format");
|
|
@@ -11354,9 +11354,9 @@ const Lt = {
|
|
|
11354
11354
|
invalidTextContainSpec: "Invalid text! Cannot contains special characters"
|
|
11355
11355
|
};
|
|
11356
11356
|
function mn(e, a, n = Lt) {
|
|
11357
|
-
return H.isNil(e) || e === "" ? a ? [
|
|
11357
|
+
return H.isNil(e) || e === "" ? a ? [mt(n.fieldIsRequired)] : [] : null;
|
|
11358
11358
|
}
|
|
11359
|
-
function
|
|
11359
|
+
function mt(e, ...a) {
|
|
11360
11360
|
if (e != null && a.length > 0)
|
|
11361
11361
|
for (let n = 0; n < a.length; n++)
|
|
11362
11362
|
e = e.replace("{" + (n - 1) + "}", a[n]);
|
|
@@ -11372,41 +11372,41 @@ const Ba = {
|
|
|
11372
11372
|
if (o != null)
|
|
11373
11373
|
return o;
|
|
11374
11374
|
const l = [];
|
|
11375
|
-
return H.isFinite(e) ? (!H.isNil(a.min) && e < a.min && l.push(
|
|
11375
|
+
return H.isFinite(e) ? (!H.isNil(a.min) && e < a.min && l.push(mt(r.numberTooSmall, a.min)), !H.isNil(a.max) && e > a.max && l.push(mt(r.numberTooBig, a.max))) : l.push(mt(r.invalidNumber)), l;
|
|
11376
11376
|
},
|
|
11377
11377
|
integer(e, a, n, r = Lt) {
|
|
11378
11378
|
const o = mn(e, a.required, r);
|
|
11379
11379
|
if (o != null)
|
|
11380
11380
|
return o;
|
|
11381
11381
|
const l = Ba.number(e, a, n, r);
|
|
11382
|
-
return H.isInteger(e) || l.push(
|
|
11382
|
+
return H.isInteger(e) || l.push(mt(r.invalidInteger)), l;
|
|
11383
11383
|
},
|
|
11384
11384
|
double(e, a, n, r = Lt) {
|
|
11385
11385
|
const o = mn(e, a.required, r);
|
|
11386
11386
|
if (o != null)
|
|
11387
11387
|
return o;
|
|
11388
11388
|
if (!H.isNumber(e) || isNaN(e))
|
|
11389
|
-
return [
|
|
11389
|
+
return [mt(r.invalidNumber)];
|
|
11390
11390
|
},
|
|
11391
11391
|
string(e, a, n, r = Lt) {
|
|
11392
11392
|
const o = mn(e, a.required, r);
|
|
11393
11393
|
if (o != null)
|
|
11394
11394
|
return o;
|
|
11395
11395
|
const l = [];
|
|
11396
|
-
return H.isString(e) ? (!H.isNil(a.min) && e.length < a.min && l.push(
|
|
11396
|
+
return H.isString(e) ? (!H.isNil(a.min) && e.length < a.min && l.push(mt(r.textTooSmall, e.length, a.min)), !H.isNil(a.max) && e.length > a.max && l.push(mt(r.textTooBig, e.length, a.max))) : l.push(mt(r.thisNotText)), l;
|
|
11397
11397
|
},
|
|
11398
11398
|
array(e, a, n, r = Lt) {
|
|
11399
11399
|
if (a.required) {
|
|
11400
11400
|
if (!H.isArray(e))
|
|
11401
|
-
return [
|
|
11401
|
+
return [mt(r.thisNotArray)];
|
|
11402
11402
|
if (e.length === 0)
|
|
11403
|
-
return [
|
|
11403
|
+
return [mt(r.fieldIsRequired)];
|
|
11404
11404
|
}
|
|
11405
11405
|
if (!H.isNil(e)) {
|
|
11406
11406
|
if (!H.isNil(a.min) && e.length < a.min)
|
|
11407
|
-
return [
|
|
11407
|
+
return [mt(r.selectMinItems, a.min)];
|
|
11408
11408
|
if (!H.isNil(a.max) && e.length > a.max)
|
|
11409
|
-
return [
|
|
11409
|
+
return [mt(r.selectMaxItems, a.max)];
|
|
11410
11410
|
}
|
|
11411
11411
|
},
|
|
11412
11412
|
date(e, a, n, r = Lt) {
|
|
@@ -11415,15 +11415,15 @@ const Ba = {
|
|
|
11415
11415
|
return o;
|
|
11416
11416
|
const l = new Date(e);
|
|
11417
11417
|
if (isNaN(l.getDate()))
|
|
11418
|
-
return [
|
|
11418
|
+
return [mt(r.invalidDate)];
|
|
11419
11419
|
const u = [];
|
|
11420
11420
|
if (!H.isNil(a.min)) {
|
|
11421
11421
|
const d = new Date(a.min);
|
|
11422
|
-
l.valueOf() < d.valueOf() && u.push(
|
|
11422
|
+
l.valueOf() < d.valueOf() && u.push(mt(r.dateIsEarly, hn.format(l), hn.format(d)));
|
|
11423
11423
|
}
|
|
11424
11424
|
if (!H.isNil(a.max)) {
|
|
11425
11425
|
const d = new Date(a.max);
|
|
11426
|
-
l.valueOf() > d.valueOf() && u.push(
|
|
11426
|
+
l.valueOf() > d.valueOf() && u.push(mt(r.dateIsLate, hn.format(l), hn.format(d)));
|
|
11427
11427
|
}
|
|
11428
11428
|
return u;
|
|
11429
11429
|
},
|
|
@@ -11432,21 +11432,21 @@ const Ba = {
|
|
|
11432
11432
|
if (o != null)
|
|
11433
11433
|
return o;
|
|
11434
11434
|
if (!H.isNil(a.pattern) && !new RegExp(a.pattern).test(e))
|
|
11435
|
-
return [
|
|
11435
|
+
return [mt(r.invalidFormat)];
|
|
11436
11436
|
},
|
|
11437
11437
|
email(e, a, n, r = Lt) {
|
|
11438
11438
|
const o = mn(e, a.required, r);
|
|
11439
11439
|
if (o != null)
|
|
11440
11440
|
return o;
|
|
11441
11441
|
if (!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e))
|
|
11442
|
-
return [
|
|
11442
|
+
return [mt(r.invalidEmail)];
|
|
11443
11443
|
},
|
|
11444
11444
|
url(e, a, n, r = Lt) {
|
|
11445
11445
|
const o = mn(e, a.required, r);
|
|
11446
11446
|
if (o != null)
|
|
11447
11447
|
return o;
|
|
11448
11448
|
if (!/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(e))
|
|
11449
|
-
return [
|
|
11449
|
+
return [mt(r.invalidURL)];
|
|
11450
11450
|
},
|
|
11451
11451
|
creditCard(e, a, n, r = Lt) {
|
|
11452
11452
|
const o = mn(e, a.required, r);
|
|
@@ -11454,26 +11454,26 @@ const Ba = {
|
|
|
11454
11454
|
return o;
|
|
11455
11455
|
const l = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, u = e.replace(/[^0-9]+/g, "");
|
|
11456
11456
|
if (!l.test(u))
|
|
11457
|
-
return [
|
|
11457
|
+
return [mt(r.invalidCard)];
|
|
11458
11458
|
let d = 0, g, A, y;
|
|
11459
11459
|
for (let w = u.length - 1; w >= 0; w--)
|
|
11460
11460
|
g = u.substring(w, w + 1), A = parseInt(g, 10), y ? (A *= 2, A >= 10 ? d += A % 10 + 1 : d += A) : d += A, y = !y;
|
|
11461
11461
|
if (!(d % 10 === 0 && u))
|
|
11462
|
-
return [
|
|
11462
|
+
return [mt(r.invalidCardNumber)];
|
|
11463
11463
|
},
|
|
11464
11464
|
alpha(e, a, n, r = Lt) {
|
|
11465
11465
|
const o = mn(e, a.required, r);
|
|
11466
11466
|
if (o != null)
|
|
11467
11467
|
return o;
|
|
11468
11468
|
if (!/^[a-zA-Z]*$/.test(e))
|
|
11469
|
-
return [
|
|
11469
|
+
return [mt(r.invalidTextContainNumber)];
|
|
11470
11470
|
},
|
|
11471
11471
|
alphaNumeric(e, a, n, r = Lt) {
|
|
11472
11472
|
const o = mn(e, a.required, r);
|
|
11473
11473
|
if (o != null)
|
|
11474
11474
|
return o;
|
|
11475
11475
|
if (!/^[a-zA-Z0-9]*$/.test(e))
|
|
11476
|
-
return [
|
|
11476
|
+
return [mt(r.invalidTextContainSpec)];
|
|
11477
11477
|
}
|
|
11478
11478
|
};
|
|
11479
11479
|
Object.keys(Ba).forEach((e) => {
|
|
@@ -15539,13 +15539,13 @@ const tx = /* @__PURE__ */ Ve(GS, [["render", ex], ["__scopeId", "data-v-5ac1c38
|
|
|
15539
15539
|
...Lx
|
|
15540
15540
|
}
|
|
15541
15541
|
}, o = () => ["created_at", "updated_at", "id"], l = (C, Y, q) => {
|
|
15542
|
-
let
|
|
15543
|
-
(Y || C) && (
|
|
15544
|
-
const Q = o().concat(C.blacklist ? C.blacklist : []), z = Object.keys(
|
|
15542
|
+
let ve = {};
|
|
15543
|
+
(Y || C) && (ve = Y || (C.fields ? C.fields : C));
|
|
15544
|
+
const Q = o().concat(C.blacklist ? C.blacklist : []), z = Object.keys(ve).filter((U) => !Q.includes(U)), te = z.indexOf("comparator");
|
|
15545
15545
|
te > -1 && z.splice(te, 1);
|
|
15546
15546
|
const ae = { fields: [] }, fe = {};
|
|
15547
15547
|
return z.forEach((U) => {
|
|
15548
|
-
d(
|
|
15548
|
+
d(ve[U], U, ve, fe, ae, q);
|
|
15549
15549
|
}), ae.fields.sort((U, W) => (U.order = U.order || 0, W.order = W.order || 0, U.order - W.order)), {
|
|
15550
15550
|
schema: ae,
|
|
15551
15551
|
model: fe,
|
|
@@ -15554,14 +15554,14 @@ const tx = /* @__PURE__ */ Ve(GS, [["render", ex], ["__scopeId", "data-v-5ac1c38
|
|
|
15554
15554
|
helpAsHtml: !0
|
|
15555
15555
|
}
|
|
15556
15556
|
};
|
|
15557
|
-
}, u = (C) => Array.isArray(C.default) || C.default != null && typeof C.default != "object" && C.default !== "function", d = (C, Y, q,
|
|
15557
|
+
}, u = (C) => Array.isArray(C.default) || C.default != null && typeof C.default != "object" && C.default !== "function", d = (C, Y, q, ve, Q, z) => {
|
|
15558
15558
|
const te = u(C);
|
|
15559
|
-
return
|
|
15560
|
-
}, g = (C, Y) => (Y && (Object.assign(C, Y), Y.label && (C.label = Y.label)), C), A = (C, Y, q,
|
|
15559
|
+
return ve[Y] = te ? C.default : null, C.id = Y, C.model = Y, C.fields && C.type === "record" ? A(C, Y, q, ve, Q, z) : (q[Y] = C, ie(C, ve), z && z[Y] && g(q[Y], z[Y]), Q.fields.push(C)), q;
|
|
15560
|
+
}, g = (C, Y) => (Y && (Object.assign(C, Y), Y.label && (C.label = Y.label)), C), A = (C, Y, q, ve, Q, z) => {
|
|
15561
15561
|
C.fields.forEach((te) => {
|
|
15562
15562
|
Object.keys(te).forEach((ae) => {
|
|
15563
15563
|
const fe = te[ae];
|
|
15564
|
-
q = d(fe, Y + "-" + ae, q,
|
|
15564
|
+
q = d(fe, Y + "-" + ae, q, ve, Q, z);
|
|
15565
15565
|
});
|
|
15566
15566
|
});
|
|
15567
15567
|
}, y = (C, Y) => {
|
|
@@ -15618,17 +15618,17 @@ const tx = /* @__PURE__ */ Ve(GS, [["render", ex], ["__scopeId", "data-v-5ac1c38
|
|
|
15618
15618
|
}
|
|
15619
15619
|
]
|
|
15620
15620
|
});
|
|
15621
|
-
}, M = (C) => C.fields.reduce((Y, q) => (q.fields && q.fields.forEach((
|
|
15622
|
-
Y[
|
|
15621
|
+
}, M = (C) => C.fields.reduce((Y, q) => (q.fields && q.fields.forEach((ve) => {
|
|
15622
|
+
Y[ve.model] = ve;
|
|
15623
15623
|
}), q.model && (Y[q.model] = q), Y), {}), x = (C, Y) => {
|
|
15624
15624
|
if (!wo.includes(C.model))
|
|
15625
15625
|
return;
|
|
15626
15626
|
const q = M(C);
|
|
15627
|
-
wo.forEach((
|
|
15627
|
+
wo.forEach((ve) => {
|
|
15628
15628
|
Object.keys(q).forEach((Q) => {
|
|
15629
15629
|
const z = u(q[Q]);
|
|
15630
15630
|
Y[Q] = z ? q[Q].default : null;
|
|
15631
|
-
}), delete Y[
|
|
15631
|
+
}), delete Y[ve];
|
|
15632
15632
|
});
|
|
15633
15633
|
}, N = (C, Y) => C.inputType === "hidden" ? "" : n(a(C.label || Y.replace(/_/g, " "))), ie = (C, Y) => {
|
|
15634
15634
|
switch (x(C, Y), C.type) {
|
|
@@ -15662,7 +15662,7 @@ const tx = /* @__PURE__ */ Ve(GS, [["render", ex], ["__scopeId", "data-v-5ac1c38
|
|
|
15662
15662
|
customSchemas: r,
|
|
15663
15663
|
typedefs: Sa
|
|
15664
15664
|
};
|
|
15665
|
-
},
|
|
15665
|
+
}, wt = {
|
|
15666
15666
|
useI18n: hp,
|
|
15667
15667
|
getPluginIconURL: BO,
|
|
15668
15668
|
usePluginMetaData: IO,
|
|
@@ -15725,7 +15725,7 @@ const Nx = { class: "kong-ui-entities-plugin-form" }, jx = {
|
|
|
15725
15725
|
var Q;
|
|
15726
15726
|
const n = e, { axiosInstance: r } = Ji({
|
|
15727
15727
|
headers: n.config.requestHeaders
|
|
15728
|
-
}), { parseSchema: o } =
|
|
15728
|
+
}), { parseSchema: o } = wt.useSchemas(((Q = n.entityMap.focusedEntity) == null ? void 0 : Q.id) || void 0), { convertToDotNotation: l, unFlattenObject: u, isObjectEmpty: d, unsetNullForeignKey: g } = wt.usePluginHelpers(), A = (z, te) => {
|
|
15729
15729
|
let ae = `${n.config.apiBaseUrl}${Dt.form[n.config.app].entityGetOne}`;
|
|
15730
15730
|
return n.config.app === "konnect" ? ae = ae.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (ae = ae.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), ae = ae.replace(/{entity}/gi, z), ae = ae.replace(/{id}/gi, te), ae;
|
|
15731
15731
|
}, y = (z) => {
|
|
@@ -15806,18 +15806,18 @@ const Nx = { class: "kong-ui-entities-plugin-form" }, jx = {
|
|
|
15806
15806
|
Array.isArray(oe[Je]) || (oe[Je] = oe[Je].split(","));
|
|
15807
15807
|
}));
|
|
15808
15808
|
}
|
|
15809
|
-
let
|
|
15809
|
+
let yt = l(we);
|
|
15810
15810
|
if (be.fieldNameHasDashes) {
|
|
15811
|
-
const [Je, ...Ht] =
|
|
15812
|
-
|
|
15811
|
+
const [Je, ...Ht] = yt.split(".").reverse();
|
|
15812
|
+
yt = [Je.replace(/_/g, "-"), ...Ht].reverse().join(".");
|
|
15813
15813
|
}
|
|
15814
15814
|
if (ct === "object-expand") {
|
|
15815
15815
|
let Je;
|
|
15816
|
-
[
|
|
15816
|
+
[yt, Je] = yt.split(".");
|
|
15817
15817
|
let Ht = {};
|
|
15818
|
-
U[
|
|
15818
|
+
U[yt] && (Ht = U[yt]), Ht[Je] = oe, oe = Ht;
|
|
15819
15819
|
}
|
|
15820
|
-
nt !== void 0 && oe === "" && oe !== nt ? U[
|
|
15820
|
+
nt !== void 0 && oe === "" && oe !== nt ? U[yt] = ct === "object" ? {} : null : be.type === "checklist" && oe === "" ? U[yt] = [] : oe !== "" && (U[yt] = oe), U[yt] = Nn ? Nn(oe) : U[yt], g(yt, U);
|
|
15821
15821
|
}), u(U);
|
|
15822
15822
|
}, C = (z, te) => {
|
|
15823
15823
|
const ae = { [te]: z }, fe = Object.assign({}, x, ae);
|
|
@@ -15855,7 +15855,7 @@ const Nx = { class: "kong-ui-entities-plugin-form" }, jx = {
|
|
|
15855
15855
|
originalModel: M,
|
|
15856
15856
|
data: ie()
|
|
15857
15857
|
});
|
|
15858
|
-
}, q = ue(!0),
|
|
15858
|
+
}, q = ue(!0), ve = () => {
|
|
15859
15859
|
var z;
|
|
15860
15860
|
if (n.record && n.schema && (Y({
|
|
15861
15861
|
enabled: n.record.enabled ?? !0,
|
|
@@ -15888,10 +15888,10 @@ const Nx = { class: "kong-ui-entities-plugin-form" }, jx = {
|
|
|
15888
15888
|
}), Wt(() => n.schema, (z) => {
|
|
15889
15889
|
var ae, fe;
|
|
15890
15890
|
const te = o(z);
|
|
15891
|
-
Object.assign(x, te.model), D.value = { fields: (fe = (ae = D.value) == null ? void 0 : ae.fields) == null ? void 0 : fe.map((U) => ({ ...U, disabled: U.disabled || !1 })) }, Object.assign(M, JSON.parse(JSON.stringify(te.model))), O.value = wx(te.model.name),
|
|
15891
|
+
Object.assign(x, te.model), D.value = { fields: (fe = (ae = D.value) == null ? void 0 : ae.fields) == null ? void 0 : fe.map((U) => ({ ...U, disabled: U.disabled || !1 })) }, Object.assign(M, JSON.parse(JSON.stringify(te.model))), O.value = wx(te.model.name), ve();
|
|
15892
15892
|
}, { immediate: !0, deep: !0 }), ki(() => {
|
|
15893
15893
|
var z, te;
|
|
15894
|
-
L.value = o(n.schema), Object.assign(x, ((z = L.value) == null ? void 0 : z.model) || {}), D.value = ((te = L.value) == null ? void 0 : te.schema) || {},
|
|
15894
|
+
L.value = o(n.schema), Object.assign(x, ((z = L.value) == null ? void 0 : z.model) || {}), D.value = ((te = L.value) == null ? void 0 : te.schema) || {}, ve();
|
|
15895
15895
|
}), (z, te) => {
|
|
15896
15896
|
const ae = ne("KSkeleton"), fe = ne("VueFormGenerator");
|
|
15897
15897
|
return v(), B("div", Nx, [
|
|
@@ -15971,7 +15971,7 @@ const Dn = (e, a) => {
|
|
|
15971
15971
|
},
|
|
15972
15972
|
emits: ["error:fetch-schema", "error", "loading", "update", "model-updated"],
|
|
15973
15973
|
setup(e, { emit: a }) {
|
|
15974
|
-
const n = e, r = Nr(), { i18n: { t: o } } =
|
|
15974
|
+
const n = e, r = Nr(), { i18n: { t: o } } = wt.useI18n(), { pluginMetaData: l, credentialMetaData: u, credentialSchemas: d } = wt.usePluginMetaData(), { customSchemas: g, typedefs: A } = wt.useSchemas(), { getMessageFromError: y } = Pr(), { capitalize: w } = mp(), { objectsAreEqual: k } = Yo(), { axiosInstance: O } = Ji({
|
|
15975
15975
|
headers: n.config.requestHeaders
|
|
15976
15976
|
}), L = J(() => n.pluginId ? Kn.Edit : Kn.Create), D = ue(null), M = J(() => !!(n.credential && n.config.entityId)), x = ue(null), N = ue({}), ie = ue(!1), C = va({
|
|
15977
15977
|
enabled: !0,
|
|
@@ -15991,13 +15991,13 @@ const Dn = (e, a) => {
|
|
|
15991
15991
|
return de = de.replace(/{resourceEndpoint}/gi, te.value), de;
|
|
15992
15992
|
}
|
|
15993
15993
|
return Dt.form[n.config.app].edit;
|
|
15994
|
-
}),
|
|
15994
|
+
}), ve = J(() => {
|
|
15995
15995
|
var ke;
|
|
15996
15996
|
const de = Object.keys(g).find((G) => G === n.pluginType);
|
|
15997
15997
|
return de ? (ke = g[de]) == null ? void 0 : ke.configurationDisabled : !1;
|
|
15998
15998
|
}), Q = J(() => {
|
|
15999
|
-
var Ce, ce,
|
|
16000
|
-
const de = n.config.entityType === "consumers" && n.config.entityId || ((ce = (Ce = x.value) == null ? void 0 : Ce.consumer) == null ? void 0 : ce.id), ke = n.config.entityType === "consumer_groups" && n.config.entityId || ((Ye = (
|
|
15999
|
+
var Ce, ce, he, Ye, ot, Ae, je, Qe;
|
|
16000
|
+
const de = n.config.entityType === "consumers" && n.config.entityId || ((ce = (Ce = x.value) == null ? void 0 : Ce.consumer) == null ? void 0 : ce.id), ke = n.config.entityType === "consumer_groups" && n.config.entityId || ((Ye = (he = x.value) == null ? void 0 : he.consumer_group) == null ? void 0 : Ye.id), G = n.config.entityType === "services" && n.config.entityId || ((Ae = (ot = x.value) == null ? void 0 : ot.service) == null ? void 0 : Ae.id), re = n.config.entityType === "routes" && n.config.entityId || ((Qe = (je = x.value) == null ? void 0 : je.route) == null ? void 0 : Qe.id);
|
|
16001
16001
|
if (!(de || ke || G || re))
|
|
16002
16002
|
return {
|
|
16003
16003
|
global: {
|
|
@@ -16105,56 +16105,56 @@ const Dn = (e, a) => {
|
|
|
16105
16105
|
let re = ke && ke.fields || [];
|
|
16106
16106
|
const ge = g[n.pluginType];
|
|
16107
16107
|
return Array.isArray(re) && (re = re.reduce((Ce, ce) => {
|
|
16108
|
-
const
|
|
16109
|
-
return
|
|
16110
|
-
...ce[
|
|
16108
|
+
const he = Object.keys(ce)[0];
|
|
16109
|
+
return he.match(/-/g) ? Ce[he.replace(/-/g, "_")] = {
|
|
16110
|
+
...ce[he],
|
|
16111
16111
|
// A flag to indicate the field name has dashes originally and they are replaced with underscores.
|
|
16112
16112
|
// When submitting the form, the underscores should be replaced with dashes again
|
|
16113
16113
|
fieldNameHasDashes: !0
|
|
16114
|
-
} : Ce[
|
|
16114
|
+
} : Ce[he] = ce[he], Ce;
|
|
16115
16115
|
}, {})), Object.keys(re).sort().forEach((Ce) => {
|
|
16116
16116
|
var ot;
|
|
16117
|
-
const ce = re[Ce],
|
|
16117
|
+
const ce = re[Ce], he = de ? `${de}-${Ce}` : `${Ce}`;
|
|
16118
16118
|
if (Object.prototype.hasOwnProperty.call(ce, "overwrite") || ce.hidden)
|
|
16119
16119
|
return;
|
|
16120
16120
|
if (ce.type === "table")
|
|
16121
|
-
return U(
|
|
16121
|
+
return U(he, ce.schema, G);
|
|
16122
16122
|
if (ce.fields)
|
|
16123
|
-
return U(
|
|
16124
|
-
if (G[
|
|
16125
|
-
if (G[
|
|
16126
|
-
const { type:
|
|
16127
|
-
G[
|
|
16123
|
+
return U(he, ce, G);
|
|
16124
|
+
if (G[he] = { id: he }, G[he].type = ce.type === "boolean" ? "checkbox" : "input", he.startsWith("config-") && (G[he].label = fe(he)), de === "config" && (ot = re[Ce]) != null && ot.description && (G[he].help = at.parse(re[Ce].description, { mangle: !1, headerIds: !1 })), ce.type === "map") {
|
|
16125
|
+
if (G[he].type = "object-advanced", ce.values.type === "array") {
|
|
16126
|
+
const { type: Ae } = ce.values.elements || {};
|
|
16127
|
+
G[he].schema = {
|
|
16128
16128
|
fields: [{
|
|
16129
16129
|
schema: {
|
|
16130
16130
|
fields: [{
|
|
16131
16131
|
...wa,
|
|
16132
|
-
model:
|
|
16133
|
-
valueArrayType:
|
|
16132
|
+
model: he,
|
|
16133
|
+
valueArrayType: Ae === "integer" ? "number" : Ae || "string",
|
|
16134
16134
|
inputAttributes: {
|
|
16135
16135
|
...wa.inputAttributes,
|
|
16136
|
-
type:
|
|
16137
|
-
inputMode:
|
|
16136
|
+
type: Ae === "integer" ? "number" : "text",
|
|
16137
|
+
inputMode: Ae === "integer" ? "numeric" : "text"
|
|
16138
16138
|
}
|
|
16139
16139
|
}]
|
|
16140
16140
|
}
|
|
16141
16141
|
}]
|
|
16142
16142
|
};
|
|
16143
16143
|
} else
|
|
16144
|
-
ce.values.fields && (G[
|
|
16144
|
+
ce.values.fields && (G[he].schema = {
|
|
16145
16145
|
fields: [
|
|
16146
16146
|
{
|
|
16147
16147
|
type: "object",
|
|
16148
16148
|
model: "object",
|
|
16149
16149
|
schema: {
|
|
16150
|
-
fields: ce.values.fields.map((
|
|
16151
|
-
const je = Object.keys(
|
|
16150
|
+
fields: ce.values.fields.map((Ae) => {
|
|
16151
|
+
const je = Object.keys(Ae)[0];
|
|
16152
16152
|
return {
|
|
16153
16153
|
model: je,
|
|
16154
16154
|
type: "input",
|
|
16155
16155
|
label: w(je),
|
|
16156
16156
|
placeholder: je,
|
|
16157
|
-
inputType:
|
|
16157
|
+
inputType: Ae[je].type
|
|
16158
16158
|
};
|
|
16159
16159
|
})
|
|
16160
16160
|
}
|
|
@@ -16163,32 +16163,32 @@ const Dn = (e, a) => {
|
|
|
16163
16163
|
});
|
|
16164
16164
|
return G;
|
|
16165
16165
|
}
|
|
16166
|
-
if (ce.enum && ce.type === "array" && (G[
|
|
16166
|
+
if (ce.enum && ce.type === "array" && (G[he].type = "checklist", G[he].values = ce.enum, G[he].multi = !0, G[he].multiSelect = !0), ce.one_of && ce.type !== "array" && (G[he].type = "select", G[he].values = ce.one_of, G[he].selectOptions = {
|
|
16167
16167
|
noneSelectedText: o("plugins.form.no_selection")
|
|
16168
16168
|
}), ce.elements && ce.type === "array") {
|
|
16169
|
-
const
|
|
16170
|
-
if (
|
|
16171
|
-
const { help: je, label: Qe } = G[
|
|
16172
|
-
G[
|
|
16169
|
+
const Ae = ce.elements;
|
|
16170
|
+
if (Ae.type === "string" && !Ae.one_of) {
|
|
16171
|
+
const { help: je, label: Qe, hint: gt } = G[he];
|
|
16172
|
+
G[he] = { help: je, label: Qe, hint: gt, ...JSON.parse(JSON.stringify(wa)) };
|
|
16173
16173
|
}
|
|
16174
16174
|
}
|
|
16175
|
-
if (ge && !ge.overwriteDefault && Object.keys(ge).forEach((
|
|
16176
|
-
if (
|
|
16177
|
-
const { help: je, label: Qe } = G[
|
|
16178
|
-
G[
|
|
16175
|
+
if (ce.hint && (G[he].hint = ce.hint), ge && !ge.overwriteDefault && Object.keys(ge).forEach((Ae) => {
|
|
16176
|
+
if (Ae === he) {
|
|
16177
|
+
const { help: je, label: Qe, hint: gt } = G[he];
|
|
16178
|
+
G[he] = { help: je, label: Qe, hint: gt, ...ge[Ae] };
|
|
16179
16179
|
}
|
|
16180
|
-
}), ce.required && ce.type !== "boolean" && (G[
|
|
16180
|
+
}), ce.required && ce.type !== "boolean" && (G[he].required = !0, G[he].selectOptions = {
|
|
16181
16181
|
hideNoneSelectedText: !0
|
|
16182
|
-
}), ce.default != null && typeof ce.default != "object" && ce.default !== "function" && (G[
|
|
16183
|
-
const { type:
|
|
16184
|
-
|
|
16182
|
+
}), ce.default != null && typeof ce.default != "object" && ce.default !== "function" && (G[he].default = ce.default), G[he].type === "input") {
|
|
16183
|
+
const { type: Ae } = ce.elements || {};
|
|
16184
|
+
Ae && (G[he].valueArrayType = Ae === "integer" ? "number" : Ae), G[he].inputType = ce.type === "array" || ce.type === "string" ? ce.encrypted ? "password" : "text" : ce.type;
|
|
16185
16185
|
}
|
|
16186
16186
|
let Ye = "string";
|
|
16187
|
-
ce.enum ? Ye = ae(ce.enum) : ce.type === "boolean" ? Ye = "boolean" : ce.type === "number" || ce.type === "integer" ? (Ye = "number", G[
|
|
16187
|
+
ce.enum ? Ye = ae(ce.enum) : ce.type === "boolean" ? Ye = "boolean" : ce.type === "number" || ce.type === "integer" ? (Ye = "number", G[he].inputType = "number") : ce.type === "array" || ce.type === "set" ? (Ye = "array", G[he].default = ce.default, ce.len_min > 0 && (G[he].submitWhenNull = !0)) : ce.default && Array.isArray(ce.default) ? (Ye = "array", G[he].valueArrayType = ae(ce.default)) : ce.default && (Ye = typeof ce.default), G[he].valueType = Ye, ce.fieldNameHasDashes && (G[he].fieldNameHasDashes = !0);
|
|
16188
16188
|
}), G;
|
|
16189
16189
|
}, W = () => {
|
|
16190
|
-
var Ce, ce,
|
|
16191
|
-
const de = ((Ce = l[n.pluginType]) == null ? void 0 : Ce.scope.includes(h.SERVICE)) ?? !0, ke = ((ce = l[n.pluginType]) == null ? void 0 : ce.scope.includes(h.ROUTE)) ?? !0, G = ((
|
|
16190
|
+
var Ce, ce, he, Ye;
|
|
16191
|
+
const de = ((Ce = l[n.pluginType]) == null ? void 0 : Ce.scope.includes(h.SERVICE)) ?? !0, ke = ((ce = l[n.pluginType]) == null ? void 0 : ce.scope.includes(h.ROUTE)) ?? !0, G = ((he = l[n.pluginType]) == null ? void 0 : he.scope.includes(h.CONSUMER)) ?? !0, re = ((Ye = l[n.pluginType]) == null ? void 0 : Ye.scope.includes(h.CONSUMER_GROUP)) ?? !0, ge = [];
|
|
16192
16192
|
if (de && ge.push({
|
|
16193
16193
|
model: "service-id",
|
|
16194
16194
|
label: o("plugins.form.scoping.gateway_service.label"),
|
|
@@ -16239,11 +16239,11 @@ const Dn = (e, a) => {
|
|
|
16239
16239
|
...ke ? ["route"] : [],
|
|
16240
16240
|
...G ? ["consumer"] : [],
|
|
16241
16241
|
...re ? ["consumer_group"] : []
|
|
16242
|
-
], je = ot.splice(ot.length - 2, 2).map((
|
|
16242
|
+
], je = ot.splice(ot.length - 2, 2).map((gt) => o(gt === "service" ? "plugins.form.scoping.gateway_service.plural" : `plugins.form.scoping.${gt}.plural`)).join(`${ot.length > 0 ? "," : ""} and/or `), Qe = [
|
|
16243
16243
|
"Specific",
|
|
16244
16244
|
[
|
|
16245
16245
|
...ot.length > 0 ? [ot.map(
|
|
16246
|
-
(
|
|
16246
|
+
(gt) => o(gt === "service" ? "plugins.form.scoping.gateway_service.plural" : `plugins.form.scoping.${gt}.plural`)
|
|
16247
16247
|
).join(", ")] : [],
|
|
16248
16248
|
je
|
|
16249
16249
|
].join(", ")
|
|
@@ -16276,7 +16276,7 @@ const Dn = (e, a) => {
|
|
|
16276
16276
|
}, Nn = J(() => {
|
|
16277
16277
|
let de = `${n.config.apiBaseUrl}${Dt.form[n.config.app].validate}`;
|
|
16278
16278
|
return n.config.app === "konnect" ? de = de.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (de = de.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), de = de.replace(/{id}/gi, n.pluginId), de;
|
|
16279
|
-
}),
|
|
16279
|
+
}), yt = J(() => {
|
|
16280
16280
|
const de = M.value ? Dt.form[n.config.app].credential[L.value] : Dt.form[n.config.app][L.value];
|
|
16281
16281
|
let ke = `${n.config.apiBaseUrl}${de}`;
|
|
16282
16282
|
return n.config.app === "konnect" ? ke = ke.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (ke = ke.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), ke = ke.replace(/{resourceEndpoint}/gi, te.value), ke = ke.replace(/{id}/gi, n.pluginId), ke;
|
|
@@ -16293,7 +16293,7 @@ const Dn = (e, a) => {
|
|
|
16293
16293
|
}
|
|
16294
16294
|
delete de.created_at;
|
|
16295
16295
|
}
|
|
16296
|
-
M.value || await O.post(Nn.value, de), L.value === "create" ? ke = await O.post(
|
|
16296
|
+
M.value || await O.post(Nn.value, de), L.value === "create" ? ke = await O.post(yt.value, de) : L.value === "edit" && (ke = n.config.app === "konnect" ? await O.put(yt.value, de) : await O.patch(yt.value, de)), Object.assign(C, Y.fields), a("update", ke == null ? void 0 : ke.data);
|
|
16297
16297
|
} catch (de) {
|
|
16298
16298
|
Y.errorMessage = y(de), a("error", de);
|
|
16299
16299
|
} finally {
|
|
@@ -16318,12 +16318,12 @@ const Dn = (e, a) => {
|
|
|
16318
16318
|
if (M.value)
|
|
16319
16319
|
D.value = U("", ge, {}), rn.value = !1;
|
|
16320
16320
|
else {
|
|
16321
|
-
const Ce = ge.fields.find((
|
|
16321
|
+
const Ce = ge.fields.find((he) => he.config);
|
|
16322
16322
|
N.value = Ce ? Ce.config : re, W();
|
|
16323
|
-
const ce = (ke = ge.fields.find((
|
|
16323
|
+
const ce = (ke = ge.fields.find((he) => he.protocols)) == null ? void 0 : ke.protocols;
|
|
16324
16324
|
if (ce) {
|
|
16325
|
-
const { default:
|
|
16326
|
-
z.protocols.default =
|
|
16325
|
+
const { default: he = [], elements: Ye = {} } = ce;
|
|
16326
|
+
z.protocols.default = he, (G = Ye.one_of) != null && G.length && (z.protocols.values = Ye.one_of.map((ot) => ({ label: ot, value: ot })));
|
|
16327
16327
|
}
|
|
16328
16328
|
(be.value || L.value === Kn.Create) && (D.value = U("config", N.value, z));
|
|
16329
16329
|
}
|
|
@@ -16348,7 +16348,7 @@ const Dn = (e, a) => {
|
|
|
16348
16348
|
T("h3", null, _(j(o)("errors.load_schema")), 1)
|
|
16349
16349
|
]),
|
|
16350
16350
|
_: 1
|
|
16351
|
-
})) :
|
|
16351
|
+
})) : ve.value ? (v(), X(re, {
|
|
16352
16352
|
key: 2,
|
|
16353
16353
|
"cta-is-hidden": "",
|
|
16354
16354
|
"is-error": ""
|
|
@@ -16434,7 +16434,7 @@ const Dn = (e, a) => {
|
|
|
16434
16434
|
};
|
|
16435
16435
|
}
|
|
16436
16436
|
});
|
|
16437
|
-
const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-
|
|
16437
|
+
const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-291d7719"]]), zx = ["alt", "src", "width"], Uo = /* @__PURE__ */ Xe({
|
|
16438
16438
|
__name: "PluginIcon",
|
|
16439
16439
|
props: {
|
|
16440
16440
|
name: {
|
|
@@ -16460,7 +16460,7 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16460
16460
|
ref_key: "img",
|
|
16461
16461
|
ref: n,
|
|
16462
16462
|
alt: e.alt,
|
|
16463
|
-
src: j(
|
|
16463
|
+
src: j(wt).getPluginIconURL(e.name),
|
|
16464
16464
|
width: e.size,
|
|
16465
16465
|
onError: r
|
|
16466
16466
|
}, null, 40, zx));
|
|
@@ -16538,7 +16538,7 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16538
16538
|
emits: ["error", "copy:success", "copy:error", "delete:success", "toggle-enabled"],
|
|
16539
16539
|
setup(e, { emit: a }) {
|
|
16540
16540
|
var de, ke;
|
|
16541
|
-
const n = e, r =
|
|
16541
|
+
const n = e, r = wt.usePluginMetaData(), { i18n: { t: o } } = wt.useI18n(), l = Nr(), { axiosInstance: u } = Ji({
|
|
16542
16542
|
headers: (de = n.config) == null ? void 0 : de.requestHeaders
|
|
16543
16543
|
}), d = J(() => {
|
|
16544
16544
|
var G;
|
|
@@ -16577,14 +16577,14 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16577
16577
|
}, ie = () => {
|
|
16578
16578
|
D.value++;
|
|
16579
16579
|
}, C = ue(null), Y = (G) => {
|
|
16580
|
-
var ge, Ce, ce,
|
|
16580
|
+
var ge, Ce, ce, he;
|
|
16581
16581
|
const re = [];
|
|
16582
|
-
return (ge = G.route) != null && ge.id && re.push({ type: "route", badgeText: o("plugins.list.table_headers.applied_to_badges.route") }), (Ce = G.service) != null && Ce.id && re.push({ type: "service", badgeText: o("plugins.list.table_headers.applied_to_badges.service") }), (ce = G.consumer) != null && ce.id && re.push({ type: "consumer", badgeText: o("plugins.list.table_headers.applied_to_badges.consumer") }), (
|
|
16582
|
+
return (ge = G.route) != null && ge.id && re.push({ type: "route", badgeText: o("plugins.list.table_headers.applied_to_badges.route") }), (Ce = G.service) != null && Ce.id && re.push({ type: "service", badgeText: o("plugins.list.table_headers.applied_to_badges.service") }), (ce = G.consumer) != null && ce.id && re.push({ type: "consumer", badgeText: o("plugins.list.table_headers.applied_to_badges.consumer") }), (he = G.consumer_group) != null && he.id && re.push({ type: "consumer_group", badgeText: o("plugins.list.table_headers.applied_to_badges.consumer_group") }), re.length ? re : [{ type: null, badgeText: o("plugins.list.table_headers.applied_to_badges.global") }];
|
|
16583
16583
|
}, q = async (G, re) => {
|
|
16584
16584
|
var ge;
|
|
16585
16585
|
return G === null ? !1 : await ((ge = n.canRetrieveScopedEntity) == null ? void 0 : ge.call(n, G, re.id));
|
|
16586
|
-
},
|
|
16587
|
-
var Ce, ce,
|
|
16586
|
+
}, ve = (G, re) => {
|
|
16587
|
+
var Ce, ce, he, Ye, ot;
|
|
16588
16588
|
let ge = null;
|
|
16589
16589
|
switch (G) {
|
|
16590
16590
|
case "route":
|
|
@@ -16594,7 +16594,7 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16594
16594
|
ge = (ce = re.service) == null ? void 0 : ce.id;
|
|
16595
16595
|
break;
|
|
16596
16596
|
case "consumer":
|
|
16597
|
-
ge = (
|
|
16597
|
+
ge = (he = re.consumer) == null ? void 0 : he.id;
|
|
16598
16598
|
break;
|
|
16599
16599
|
case "consumer_group":
|
|
16600
16600
|
ge = (Ye = re.consumer_group) == null ? void 0 : Ye.id;
|
|
@@ -16617,17 +16617,17 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16617
16617
|
}, fe = () => {
|
|
16618
16618
|
Q.value = !1, z.value = null;
|
|
16619
16619
|
}, U = async () => {
|
|
16620
|
-
var Ce, ce,
|
|
16620
|
+
var Ce, ce, he, Ye, ot, Ae, je, Qe;
|
|
16621
16621
|
if (!await ((Ce = n.canEdit) == null ? void 0 : Ce.call(n, z.value)) || !z.value)
|
|
16622
16622
|
return;
|
|
16623
|
-
let re = `${n.config.apiBaseUrl}${(ot = Dt.item[n.config.app]) == null ? void 0 : ot[(ce = n.config) != null && ce.entityType ? "forEntity" : "all"].replace(/{entityType}/gi, ((
|
|
16624
|
-
n.config.app === "konnect" ? re = re.replace(/{controlPlaneId}/gi, ((
|
|
16623
|
+
let re = `${n.config.apiBaseUrl}${(ot = Dt.item[n.config.app]) == null ? void 0 : ot[(ce = n.config) != null && ce.entityType ? "forEntity" : "all"].replace(/{entityType}/gi, ((he = n.config) == null ? void 0 : he.entityType) || "").replace(/{entityId}/gi, ((Ye = n.config) == null ? void 0 : Ye.entityId) || "")}`.replace(/{id}/gi, z.value.id || "");
|
|
16624
|
+
n.config.app === "konnect" ? re = re.replace(/{controlPlaneId}/gi, ((Ae = n.config) == null ? void 0 : Ae.controlPlaneId) || "") : n.config.app === "kongManager" && (re = re.replace(/\/{workspace}/gi, (je = n.config) != null && je.workspace ? `/${n.config.workspace}` : ""));
|
|
16625
16625
|
const ge = !z.value.enabled;
|
|
16626
16626
|
try {
|
|
16627
|
-
const { data:
|
|
16628
|
-
a("toggle-enabled", ge,
|
|
16629
|
-
} catch (
|
|
16630
|
-
a("error",
|
|
16627
|
+
const { data: gt } = ((Qe = n.config) == null ? void 0 : Qe.app) === "konnect" ? await u.put(re, { ...z.value, enabled: ge }) : await u.patch(re, { ...z.value, enabled: ge });
|
|
16628
|
+
a("toggle-enabled", ge, gt);
|
|
16629
|
+
} catch (gt) {
|
|
16630
|
+
a("error", gt);
|
|
16631
16631
|
}
|
|
16632
16632
|
z.value.enabled = ge;
|
|
16633
16633
|
}, W = (G, re) => {
|
|
@@ -16670,7 +16670,7 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16670
16670
|
}), nt = (G) => ({
|
|
16671
16671
|
label: o("actions.configure_dynamic_ordering"),
|
|
16672
16672
|
to: n.config.getConfigureDynamicOrderingRoute(G)
|
|
16673
|
-
}), We = ue(void 0), ct = ue(!1), an = ue(!1), Nn = ue(""),
|
|
16673
|
+
}), We = ue(void 0), ct = ue(!1), an = ue(!1), Nn = ue(""), yt = wE(n.config, k.value), Je = (G) => {
|
|
16674
16674
|
We.value = G, ct.value = !0;
|
|
16675
16675
|
}, Ht = () => {
|
|
16676
16676
|
ct.value = !1;
|
|
@@ -16679,7 +16679,7 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16679
16679
|
if ((G = We.value) != null && G.id) {
|
|
16680
16680
|
an.value = !0;
|
|
16681
16681
|
try {
|
|
16682
|
-
await u.delete(
|
|
16682
|
+
await u.delete(yt(We.value.id)), an.value = !1, ct.value = !1, D.value++, a("delete:success", We.value);
|
|
16683
16683
|
} catch (Ce) {
|
|
16684
16684
|
Nn.value = ((ge = (re = Ce.response) == null ? void 0 : re.data) == null ? void 0 : ge.message) || Ce.message || o("errors.delete"), a("error", Ce);
|
|
16685
16685
|
} finally {
|
|
@@ -16706,7 +16706,7 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16706
16706
|
return ki(async () => {
|
|
16707
16707
|
await n.canCreate() && (sn.value.title = o("plugins.list.empty_state.title"), sn.value.ctaText = o("actions.create"));
|
|
16708
16708
|
}), (G, re) => {
|
|
16709
|
-
const ge = ne("KButton"), Ce = ne("KBadge"), ce = ne("KTruncate"),
|
|
16709
|
+
const ge = ne("KButton"), Ce = ne("KBadge"), ce = ne("KTruncate"), he = ne("KInputSwitch"), Ye = ne("KDropdownItem"), ot = ne("KClipboardProvider");
|
|
16710
16710
|
return v(), B("div", Kx, [
|
|
16711
16711
|
ee(j(nE), {
|
|
16712
16712
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -16724,13 +16724,13 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16724
16724
|
"table-headers": j(w),
|
|
16725
16725
|
title: e.title,
|
|
16726
16726
|
onClearSearchInput: N,
|
|
16727
|
-
"onClick:row": re[3] || (re[3] = (
|
|
16727
|
+
"onClick:row": re[3] || (re[3] = (Ae) => we(Ae)),
|
|
16728
16728
|
onSort: ie
|
|
16729
16729
|
}, {
|
|
16730
16730
|
"toolbar-filter": R(() => [
|
|
16731
16731
|
ee(j(yE), {
|
|
16732
16732
|
modelValue: O.value,
|
|
16733
|
-
"onUpdate:modelValue": re[0] || (re[0] = (
|
|
16733
|
+
"onUpdate:modelValue": re[0] || (re[0] = (Ae) => O.value = Ae),
|
|
16734
16734
|
config: L.value
|
|
16735
16735
|
}, null, 8, ["modelValue", "config"])
|
|
16736
16736
|
]),
|
|
@@ -16754,31 +16754,31 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16754
16754
|
_: 1
|
|
16755
16755
|
}, 8, ["auth-function"])
|
|
16756
16756
|
]),
|
|
16757
|
-
name: R(({ row:
|
|
16757
|
+
name: R(({ row: Ae }) => [
|
|
16758
16758
|
T("div", qx, [
|
|
16759
16759
|
ee(Uo, {
|
|
16760
16760
|
class: "plugin-icon",
|
|
16761
|
-
name:
|
|
16761
|
+
name: Ae.name,
|
|
16762
16762
|
width: 24
|
|
16763
16763
|
}, null, 8, ["name"]),
|
|
16764
16764
|
T("div", Xx, [
|
|
16765
|
-
|
|
16766
|
-
|
|
16765
|
+
Ae.instance_name ? (v(), B("span", Wx, _(Ae.instance_name), 1)) : (v(), B("span", Zx, _(j(r).getDisplayName(Ae.name)), 1)),
|
|
16766
|
+
Ae.instance_name ? (v(), B("span", Jx, _(j(r).getDisplayName(Ae.name)), 1)) : le("", !0)
|
|
16767
16767
|
])
|
|
16768
16768
|
])
|
|
16769
16769
|
]),
|
|
16770
|
-
appliedTo: R(({ row:
|
|
16771
|
-
Y(
|
|
16770
|
+
appliedTo: R(({ row: Ae }) => [
|
|
16771
|
+
Y(Ae).length > 0 ? (v(), X(ce, { key: 0 }, {
|
|
16772
16772
|
default: R(() => [
|
|
16773
|
-
(v(!0), B(Ne, null, Fe(Y(
|
|
16773
|
+
(v(!0), B(Ne, null, Fe(Y(Ae), (je) => (v(), X(j(Ai), {
|
|
16774
16774
|
key: je.badgeText,
|
|
16775
|
-
"auth-function": () => q(je.type,
|
|
16775
|
+
"auth-function": () => q(je.type, Ae),
|
|
16776
16776
|
"force-show": ""
|
|
16777
16777
|
}, {
|
|
16778
16778
|
default: R(({ isAllowed: Qe }) => [
|
|
16779
16779
|
ee(Ce, {
|
|
16780
16780
|
class: Ke(Qe || "disabled"),
|
|
16781
|
-
onClick: On((
|
|
16781
|
+
onClick: On((gt) => Qe && je.type && ve(je.type, Ae), ["stop"])
|
|
16782
16782
|
}, {
|
|
16783
16783
|
default: R(() => [
|
|
16784
16784
|
Me(_(je.badgeText), 1)
|
|
@@ -16792,27 +16792,27 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16792
16792
|
_: 2
|
|
16793
16793
|
}, 1024)) : (v(), B("span", Qx, "-"))
|
|
16794
16794
|
]),
|
|
16795
|
-
enabled: R(({ row:
|
|
16795
|
+
enabled: R(({ row: Ae }) => [
|
|
16796
16796
|
ee(j(Ai), {
|
|
16797
|
-
"auth-function": async () => !!(await e.canEdit(
|
|
16797
|
+
"auth-function": async () => !!(await e.canEdit(Ae) && await e.canToggle(Ae)),
|
|
16798
16798
|
"force-show": ""
|
|
16799
16799
|
}, {
|
|
16800
16800
|
default: R(({ isAllowed: je }) => {
|
|
16801
|
-
var Qe,
|
|
16801
|
+
var Qe, gt;
|
|
16802
16802
|
return [
|
|
16803
16803
|
T("div", {
|
|
16804
16804
|
onClick: re[1] || (re[1] = On(() => {
|
|
16805
16805
|
}, ["stop"]))
|
|
16806
16806
|
}, [
|
|
16807
|
-
ee(
|
|
16807
|
+
ee(he, {
|
|
16808
16808
|
disabled: !je,
|
|
16809
|
-
"disabled-tooltip-text": !je && ((
|
|
16809
|
+
"disabled-tooltip-text": !je && ((gt = (Qe = e.config).getToggleDisabledTooltip) == null ? void 0 : gt.call(Qe, Ae)) || void 0,
|
|
16810
16810
|
"label-position": "left",
|
|
16811
|
-
"model-value":
|
|
16812
|
-
onClick: On((_i) => je && ae(
|
|
16811
|
+
"model-value": Ae.enabled,
|
|
16812
|
+
onClick: On((_i) => je && ae(Ae), ["stop", "prevent"])
|
|
16813
16813
|
}, {
|
|
16814
16814
|
label: R(() => [
|
|
16815
|
-
T("div", _x, _(
|
|
16815
|
+
T("div", _x, _(Ae.enabled ? j(o)("plugins.list.table_headers.status_label.enabled") : j(o)("plugins.list.table_headers.status_label.disabled")), 1)
|
|
16816
16816
|
]),
|
|
16817
16817
|
_: 2
|
|
16818
16818
|
}, 1032, ["disabled", "disabled-tooltip-text", "model-value", "onClick"])
|
|
@@ -16822,20 +16822,20 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16822
16822
|
_: 2
|
|
16823
16823
|
}, 1032, ["auth-function"])
|
|
16824
16824
|
]),
|
|
16825
|
-
ordering: R(({ rowValue:
|
|
16825
|
+
ordering: R(({ rowValue: Ae }) => [
|
|
16826
16826
|
ee(Ce, {
|
|
16827
|
-
appearance:
|
|
16827
|
+
appearance: Ae ? "warning" : "default"
|
|
16828
16828
|
}, {
|
|
16829
16829
|
default: R(() => [
|
|
16830
|
-
Me(_(
|
|
16830
|
+
Me(_(Ae ? j(o)("plugins.list.table_headers.ordering_badge.dynamic") : j(o)("plugins.list.table_headers.ordering_badge.static")), 1)
|
|
16831
16831
|
]),
|
|
16832
16832
|
_: 2
|
|
16833
16833
|
}, 1032, ["appearance"])
|
|
16834
16834
|
]),
|
|
16835
|
-
tags: R(({ rowValue:
|
|
16836
|
-
(
|
|
16835
|
+
tags: R(({ rowValue: Ae }) => [
|
|
16836
|
+
(Ae == null ? void 0 : Ae.length) > 0 ? (v(), X(ce, { key: 0 }, {
|
|
16837
16837
|
default: R(() => [
|
|
16838
|
-
(v(!0), B(Ne, null, Fe(
|
|
16838
|
+
(v(!0), B(Ne, null, Fe(Ae, (je) => (v(), X(Ce, {
|
|
16839
16839
|
key: je,
|
|
16840
16840
|
onClick: re[2] || (re[2] = On(() => {
|
|
16841
16841
|
}, ["stop"]))
|
|
@@ -16849,12 +16849,12 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16849
16849
|
_: 2
|
|
16850
16850
|
}, 1024)) : (v(), B("span", $x, "-"))
|
|
16851
16851
|
]),
|
|
16852
|
-
actions: R(({ row:
|
|
16852
|
+
actions: R(({ row: Ae }) => [
|
|
16853
16853
|
ee(ot, null, {
|
|
16854
16854
|
default: R(({ copyToClipboard: je }) => [
|
|
16855
16855
|
ee(Ye, {
|
|
16856
16856
|
"data-testid": "action-entity-copy-id",
|
|
16857
|
-
onClick: (Qe) => W(
|
|
16857
|
+
onClick: (Qe) => W(Ae, je)
|
|
16858
16858
|
}, {
|
|
16859
16859
|
default: R(() => [
|
|
16860
16860
|
Me(_(j(o)("actions.copy_id")), 1)
|
|
@@ -16868,7 +16868,7 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16868
16868
|
default: R(({ copyToClipboard: je }) => [
|
|
16869
16869
|
ee(Ye, {
|
|
16870
16870
|
"data-testid": "action-entity-copy-json",
|
|
16871
|
-
onClick: (Qe) => Te(
|
|
16871
|
+
onClick: (Qe) => Te(Ae, je)
|
|
16872
16872
|
}, {
|
|
16873
16873
|
default: R(() => [
|
|
16874
16874
|
Me(_(j(o)("actions.copy_json")), 1)
|
|
@@ -16879,50 +16879,50 @@ const OT = /* @__PURE__ */ Dn(Vx, [["__scopeId", "data-v-c69bd9e1"]]), zx = ["al
|
|
|
16879
16879
|
_: 2
|
|
16880
16880
|
}, 1024),
|
|
16881
16881
|
ee(j(Ai), {
|
|
16882
|
-
"auth-function": () => e.canRetrieve(
|
|
16882
|
+
"auth-function": () => e.canRetrieve(Ae)
|
|
16883
16883
|
}, {
|
|
16884
16884
|
default: R(() => [
|
|
16885
16885
|
ee(Ye, {
|
|
16886
16886
|
"data-testid": "action-entity-view",
|
|
16887
16887
|
"has-divider": "",
|
|
16888
|
-
item: be(
|
|
16888
|
+
item: be(Ae)
|
|
16889
16889
|
}, null, 8, ["item"])
|
|
16890
16890
|
]),
|
|
16891
16891
|
_: 2
|
|
16892
16892
|
}, 1032, ["auth-function"]),
|
|
16893
16893
|
ee(j(Ai), {
|
|
16894
|
-
"auth-function": () => e.canEdit(
|
|
16894
|
+
"auth-function": () => e.canEdit(Ae)
|
|
16895
16895
|
}, {
|
|
16896
16896
|
default: R(() => [
|
|
16897
16897
|
ee(Ye, {
|
|
16898
16898
|
"data-testid": "action-entity-edit",
|
|
16899
|
-
item: oe(
|
|
16899
|
+
item: oe(Ae)
|
|
16900
16900
|
}, null, 8, ["item"])
|
|
16901
16901
|
]),
|
|
16902
16902
|
_: 2
|
|
16903
16903
|
}, 1032, ["auth-function"]),
|
|
16904
16904
|
!d.value && j(g) ? (v(), X(j(Ai), {
|
|
16905
16905
|
key: 0,
|
|
16906
|
-
"auth-function": () => e.canConfigureDynamicOrdering(
|
|
16906
|
+
"auth-function": () => e.canConfigureDynamicOrdering(Ae)
|
|
16907
16907
|
}, {
|
|
16908
16908
|
default: R(() => [
|
|
16909
|
-
nt(
|
|
16909
|
+
nt(Ae) ? (v(), X(Ye, {
|
|
16910
16910
|
key: 0,
|
|
16911
16911
|
"data-testid": "action-entity-config-dyn-order",
|
|
16912
|
-
item: nt(
|
|
16912
|
+
item: nt(Ae)
|
|
16913
16913
|
}, null, 8, ["item"])) : le("", !0)
|
|
16914
16914
|
]),
|
|
16915
16915
|
_: 2
|
|
16916
16916
|
}, 1032, ["auth-function"])) : le("", !0),
|
|
16917
16917
|
ee(j(Ai), {
|
|
16918
|
-
"auth-function": () => e.canDelete(
|
|
16918
|
+
"auth-function": () => e.canDelete(Ae)
|
|
16919
16919
|
}, {
|
|
16920
16920
|
default: R(() => [
|
|
16921
16921
|
ee(Ye, {
|
|
16922
16922
|
danger: "",
|
|
16923
16923
|
"data-testid": "action-entity-delete",
|
|
16924
16924
|
"has-divider": "",
|
|
16925
|
-
onClick: (je) => Je(
|
|
16925
|
+
onClick: (je) => Je(Ae)
|
|
16926
16926
|
}, {
|
|
16927
16927
|
default: R(() => [
|
|
16928
16928
|
Me(_(j(o)("actions.delete")), 1)
|
|
@@ -17138,7 +17138,7 @@ const o2 = /* @__PURE__ */ Dn(s2, [["__scopeId", "data-v-c64c9279"]]), l2 = "16p
|
|
|
17138
17138
|
},
|
|
17139
17139
|
emits: ["plugin-clicked", "custom-plugin-delete"],
|
|
17140
17140
|
setup(e, { emit: a }) {
|
|
17141
|
-
const n = e, r = Nr(), { i18n: { t: o } } =
|
|
17141
|
+
const n = e, r = Nr(), { i18n: { t: o } } = wt.useI18n(), l = J(() => n.config.app === "konnect" ? n.config.controlPlaneId : ""), u = J(() => !!(!n.plugin.available || n.plugin.disabledMessage)), d = J(() => !!(k.value && !w.value && n.navigateOnClick && l.value && (n.canDeleteCustomPlugin || n.canEditCustomPlugin))), g = () => {
|
|
17142
17142
|
r.push(n.config.getCreateRoute(n.plugin.id));
|
|
17143
17143
|
}, A = () => {
|
|
17144
17144
|
n.navigateOnClick ? g() : y();
|
|
@@ -17156,8 +17156,8 @@ const o2 = /* @__PURE__ */ Dn(s2, [["__scopeId", "data-v-c64c9279"]]), l2 = "16p
|
|
|
17156
17156
|
}
|
|
17157
17157
|
};
|
|
17158
17158
|
return (M, x) => {
|
|
17159
|
-
const N = ne("KBadge"), ie = ne("KButton"), C = ne("KDropdownItem"), Y = ne("KDropdownMenu"), q = ne("KCard"),
|
|
17160
|
-
return v(), X(
|
|
17159
|
+
const N = ne("KBadge"), ie = ne("KButton"), C = ne("KDropdownItem"), Y = ne("KDropdownMenu"), q = ne("KCard"), ve = ne("KTooltip");
|
|
17160
|
+
return v(), X(ve, {
|
|
17161
17161
|
class: Ke(["plugin-card plugin-card-cursor-pointer", {
|
|
17162
17162
|
disabled: u.value
|
|
17163
17163
|
}]),
|
|
@@ -17286,7 +17286,7 @@ const Lr = /* @__PURE__ */ Dn(b2, [["__scopeId", "data-v-787ea4a5"]]), w2 = /* @
|
|
|
17286
17286
|
emits: ["closed", "proceed"],
|
|
17287
17287
|
setup(e, { emit: a }) {
|
|
17288
17288
|
var k;
|
|
17289
|
-
const n = e, { i18nT: r, i18n: { t: o } } =
|
|
17289
|
+
const n = e, { i18nT: r, i18n: { t: o } } = wt.useI18n(), { getMessageFromError: l } = Pr(), { axiosInstance: u } = Ji({
|
|
17290
17290
|
headers: (k = n.config) == null ? void 0 : k.requestHeaders
|
|
17291
17291
|
}), d = J(() => {
|
|
17292
17292
|
var O;
|
|
@@ -17418,7 +17418,7 @@ const C2 = /* @__PURE__ */ Dn(w2, [["__scopeId", "data-v-ba6336ac"]]), E2 = { cl
|
|
|
17418
17418
|
},
|
|
17419
17419
|
emits: ["plugin-clicked", "revalidate", "delete:success"],
|
|
17420
17420
|
setup(e, { emit: a }) {
|
|
17421
|
-
const n = e, { i18n: { t: r } } =
|
|
17421
|
+
const n = e, { i18n: { t: r } } = wt.useI18n(), { getPluginCards: o } = wt.usePluginHelpers(), l = ue(!0), u = (O) => {
|
|
17422
17422
|
a("plugin-clicked", O);
|
|
17423
17423
|
}, d = J(() => {
|
|
17424
17424
|
if (n.config.app === "kongManager")
|
|
@@ -17552,7 +17552,7 @@ const S2 = /* @__PURE__ */ Dn(M2, [["__scopeId", "data-v-7a74094f"]]), x2 = { cl
|
|
|
17552
17552
|
},
|
|
17553
17553
|
emits: ["plugin-clicked"],
|
|
17554
17554
|
setup(e, { emit: a }) {
|
|
17555
|
-
const n = e, { i18n: { t: r } } =
|
|
17555
|
+
const n = e, { i18n: { t: r } } = wt.useI18n(), { getPluginCards: o } = wt.usePluginHelpers(), l = ue(OE), u = (y) => {
|
|
17556
17556
|
a("plugin-clicked", y);
|
|
17557
17557
|
}, d = J(() => {
|
|
17558
17558
|
const y = JSON.parse(JSON.stringify(n.pluginList));
|
|
@@ -17713,7 +17713,7 @@ const pd = /* @__PURE__ */ Dn(N2, [["__scopeId", "data-v-35795414"]]), j2 = { cl
|
|
|
17713
17713
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
17714
17714
|
setup(e, { emit: a }) {
|
|
17715
17715
|
var fe;
|
|
17716
|
-
const n = e, r = Db(), { i18n: { t: o } } =
|
|
17716
|
+
const n = e, r = Db(), { i18n: { t: o } } = wt.useI18n(), { pluginMetaData: l } = wt.usePluginMetaData(), { getMessageFromError: u } = Pr(), { sortAlpha: d, objectsAreEqual: g } = Yo(), A = ue(""), y = ue(!0), w = ue(!1), k = ue(""), O = ue([]), L = ue({}), D = ue([]), { axiosInstance: M } = Ji({
|
|
17717
17717
|
headers: n.config.requestHeaders
|
|
17718
17718
|
}), x = J(() => {
|
|
17719
17719
|
var Te;
|
|
@@ -17753,7 +17753,7 @@ const pd = /* @__PURE__ */ Dn(N2, [["__scopeId", "data-v-35795414"]]), j2 = { cl
|
|
|
17753
17753
|
const be = we.group || o("plugins.select.misc_plugins");
|
|
17754
17754
|
let oe = U[be];
|
|
17755
17755
|
return oe || (oe = []), oe.push(we), oe.sort(d("name")), U[be] = oe, U;
|
|
17756
|
-
}, {}),
|
|
17756
|
+
}, {}), ve = J(() => {
|
|
17757
17757
|
let U = `${n.config.apiBaseUrl}${Dt.select[n.config.app].availablePlugins}`;
|
|
17758
17758
|
return n.config.app === "konnect" ? U = U.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (U = U.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), U;
|
|
17759
17759
|
}), Q = J(() => {
|
|
@@ -17775,7 +17775,7 @@ const pd = /* @__PURE__ */ Dn(N2, [["__scopeId", "data-v-35795414"]]), j2 = { cl
|
|
|
17775
17775
|
z.value = await n.canCreateCustomPlugin(), te.value = await n.canEditCustomPlugin(), ae.value = await n.canDeleteCustomPlugin();
|
|
17776
17776
|
}), Eo(async () => {
|
|
17777
17777
|
try {
|
|
17778
|
-
const { data: U } = await M.get(
|
|
17778
|
+
const { data: U } = await M.get(ve.value);
|
|
17779
17779
|
if (n.config.app === "konnect") {
|
|
17780
17780
|
const { names: W } = U;
|
|
17781
17781
|
O.value = W || [];
|
|
@@ -18180,7 +18180,7 @@ const oT = { class: "kong-ui-entity-plugin-config-card" }, lT = { class: "name-c
|
|
|
18180
18180
|
emits: ["loading", "fetch:error", "error:fetch-schema", "fetch:success", "copy:success"],
|
|
18181
18181
|
setup(e, { emit: a }) {
|
|
18182
18182
|
var x;
|
|
18183
|
-
const n = e, { i18n: { t: r } } =
|
|
18183
|
+
const n = e, { i18n: { t: r } } = wt.useI18n(), o = wt.usePluginMetaData(), { setFieldType: l } = wt.usePluginHelpers(), { getPropValue: u } = Yo(), d = J(
|
|
18184
18184
|
() => {
|
|
18185
18185
|
var N;
|
|
18186
18186
|
return (N = Dt.item[n.config.app]) == null ? void 0 : N[n.scopedEntityType ? "forEntity" : "all"].replace(/{entityType}/gi, n.scopedEntityType).replace(/{entityId}/gi, n.scopedEntityId);
|
|
@@ -18189,8 +18189,8 @@ const oT = { class: "kong-ui-entity-plugin-config-card" }, lT = { class: "name-c
|
|
|
18189
18189
|
var C, Y;
|
|
18190
18190
|
const N = {}, ie = ((C = L.value) == null ? void 0 : C.fields) || [];
|
|
18191
18191
|
for (let q = 0; q < ie.length; q++) {
|
|
18192
|
-
const
|
|
18193
|
-
l(N, Q,
|
|
18192
|
+
const ve = L.value.fields[q], Q = (Y = Object.keys(ve)) == null ? void 0 : Y[0];
|
|
18193
|
+
l(N, Q, ve[Q]);
|
|
18194
18194
|
}
|
|
18195
18195
|
return {
|
|
18196
18196
|
...N,
|
|
@@ -18239,10 +18239,10 @@ const oT = { class: "kong-ui-entity-plugin-config-card" }, lT = { class: "name-c
|
|
|
18239
18239
|
if (!A.value)
|
|
18240
18240
|
return N;
|
|
18241
18241
|
for (let Y = 0; Y < ((ie = A.value) == null ? void 0 : ie.length); Y++) {
|
|
18242
|
-
const q = A.value[Y],
|
|
18243
|
-
Q.required && (N[
|
|
18242
|
+
const q = A.value[Y], ve = (C = Object.keys(q)) == null ? void 0 : C[0], Q = q[ve];
|
|
18243
|
+
Q.required && (N[ve] = {
|
|
18244
18244
|
order: 1
|
|
18245
|
-
}), l(N,
|
|
18245
|
+
}), l(N, ve, Q);
|
|
18246
18246
|
}
|
|
18247
18247
|
return N;
|
|
18248
18248
|
}), { getMessageFromError: w } = Pr(), { axiosInstance: k } = Ji({
|
|
@@ -18357,7 +18357,7 @@ const oT = { class: "kong-ui-entity-plugin-config-card" }, lT = { class: "name-c
|
|
|
18357
18357
|
};
|
|
18358
18358
|
}
|
|
18359
18359
|
});
|
|
18360
|
-
const MT = /* @__PURE__ */ Dn(fT, [["__scopeId", "data-v-9cdbf940"]]), { getPluginIconURL: ST, usePluginMetaData: xT } =
|
|
18360
|
+
const MT = /* @__PURE__ */ Dn(fT, [["__scopeId", "data-v-9cdbf940"]]), { getPluginIconURL: ST, usePluginMetaData: xT } = wt;
|
|
18361
18361
|
export {
|
|
18362
18362
|
zi as EntityTypeIdField,
|
|
18363
18363
|
OE as PLUGIN_GROUPS_COLLAPSE_STATUS,
|