@kong-ui-public/entities-plugins 3.0.6 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-plugins.es.js +631 -642
- package/dist/entities-plugins.umd.js +52 -52
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -10,7 +10,7 @@ var Oo = (e, a, n) => {
|
|
|
10
10
|
a instanceof WeakSet ? a.add(e) : a.set(e, n);
|
|
11
11
|
};
|
|
12
12
|
var Yr = (e, a, n) => ($b(e, a, "access private method"), n);
|
|
13
|
-
import { defineComponent as
|
|
13
|
+
import { defineComponent as je, useCssVars as jd, computed as J, resolveComponent as te, openBlock as y, createElementBlock as O, createVNode as X, withCtx as T, createTextVNode as Be, toDisplayString as W, createCommentVNode as se, createBlock as K, normalizeClass as Fe, ref as le, Teleport as e1, unref as R, createElementVNode as S, watch as gn, renderSlot as gt, onBeforeMount as Yi, createSlots as Gn, renderList as Ye, withModifiers as Ai, withDirectives as Ue, vShow as Dn, Fragment as Re, withKeys as t1, inject as n1, useSlots as Dd, onMounted as Go, onUnmounted as i1, resolveDynamicComponent as Ot, normalizeStyle as wi, normalizeProps as a1, guardReactiveProps as r1, mergeProps as oa, pushScopeId as fn, popScopeId as mn, resolveDirective as ii, vModelCheckbox as Ho, vModelSelect as Fo, vModelText as In, Transition as s1, vModelDynamic as o1, vModelRadio as l1, provide as u1, reactive as Na, mergeModels as Uc, useModel as c1 } from "vue";
|
|
14
14
|
import Yc from "axios";
|
|
15
15
|
import { createI18n as is, i18nTComponent as Ud } from "@kong-ui-public/i18n";
|
|
16
16
|
import { BadgeMethodAppearances as d1 } from "@kong/kongponents";
|
|
@@ -260,7 +260,7 @@ function M1(e, a, n, r = {
|
|
|
260
260
|
}) {
|
|
261
261
|
n || (n = "1000");
|
|
262
262
|
const { axiosInstance: s } = Ko(e.axiosRequestConfig), { i18n: { t: l } } = as(), { debounce: u } = f1(), d = u(async (N) => {
|
|
263
|
-
await
|
|
263
|
+
await ee(N);
|
|
264
264
|
}, 200), p = le(!1), m = le(""), v = le(""), b = le([]), E = le([]), B = le(void 0), j = R(a);
|
|
265
265
|
let V = `${e.apiBaseUrl}${j}`;
|
|
266
266
|
e.app === "konnect" ? V = V.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (V = V.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
@@ -274,7 +274,7 @@ function M1(e, a, n, r = {
|
|
|
274
274
|
} finally {
|
|
275
275
|
p.value = !1;
|
|
276
276
|
}
|
|
277
|
-
}, Z = le(""),
|
|
277
|
+
}, Z = le(""), ee = async (N) => {
|
|
278
278
|
var I, C, U;
|
|
279
279
|
if (Z.value !== N)
|
|
280
280
|
if (Z.value = N || "", B.value === void 0)
|
|
@@ -534,7 +534,7 @@ const xt = {
|
|
|
534
534
|
}, H1 = {
|
|
535
535
|
key: 0,
|
|
536
536
|
class: "config-card-fieldset-title"
|
|
537
|
-
}, F1 = /* @__PURE__ */
|
|
537
|
+
}, F1 = /* @__PURE__ */ je({
|
|
538
538
|
__name: "JsonCardItem",
|
|
539
539
|
props: {
|
|
540
540
|
item: {
|
|
@@ -565,7 +565,7 @@ const xt = {
|
|
|
565
565
|
e.isArrayItem ? (y(), O("legend", H1, [
|
|
566
566
|
S("b", null, W(d.value), 1)
|
|
567
567
|
])) : se("", !0),
|
|
568
|
-
(y(!0), O(Re, null,
|
|
568
|
+
(y(!0), O(Re, null, Ye(Object.keys(u.value), (v, b) => (y(), K(zd, {
|
|
569
569
|
key: `${s.value}-property-${b}`,
|
|
570
570
|
item: {
|
|
571
571
|
key: v,
|
|
@@ -582,7 +582,7 @@ const xt = {
|
|
|
582
582
|
for (const [r, s] of a)
|
|
583
583
|
n[r] = s;
|
|
584
584
|
return n;
|
|
585
|
-
}, Fd = /* @__PURE__ */ Hn(F1, [["__scopeId", "data-v-68ca83ec"]]), z1 = /* @__PURE__ */
|
|
585
|
+
}, Fd = /* @__PURE__ */ Hn(F1, [["__scopeId", "data-v-68ca83ec"]]), z1 = /* @__PURE__ */ je({
|
|
586
586
|
__name: "InternalLinkItem",
|
|
587
587
|
props: {
|
|
588
588
|
item: {
|
|
@@ -594,7 +594,7 @@ const xt = {
|
|
|
594
594
|
setup(e) {
|
|
595
595
|
const { i18n: { t: a } } = xt.useI18n();
|
|
596
596
|
return (n, r) => {
|
|
597
|
-
const s =
|
|
597
|
+
const s = te("KButton");
|
|
598
598
|
return y(), O("div", null, [
|
|
599
599
|
X(s, {
|
|
600
600
|
appearance: "tertiary",
|
|
@@ -609,7 +609,7 @@ const xt = {
|
|
|
609
609
|
]);
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
}), Ra = /* @__PURE__ */ Hn(z1, [["__scopeId", "data-v-c96811e5"]]), K1 = /* @__PURE__ */
|
|
612
|
+
}), Ra = /* @__PURE__ */ Hn(z1, [["__scopeId", "data-v-c96811e5"]]), K1 = /* @__PURE__ */ je({
|
|
613
613
|
__name: "StatusBadge",
|
|
614
614
|
props: {
|
|
615
615
|
status: {
|
|
@@ -620,7 +620,7 @@ const xt = {
|
|
|
620
620
|
setup(e) {
|
|
621
621
|
const { i18n: { t: a } } = xt.useI18n();
|
|
622
622
|
return (n, r) => {
|
|
623
|
-
const s =
|
|
623
|
+
const s = te("KBadge");
|
|
624
624
|
return y(), K(s, {
|
|
625
625
|
appearance: e.status ? "success" : "neutral"
|
|
626
626
|
}, {
|
|
@@ -634,7 +634,7 @@ const xt = {
|
|
|
634
634
|
}), q1 = "#0044f4", X1 = "#e0e4ea", J1 = "#3a3f51", W1 = "#afb7c5", Z1 = "1px", Q1 = "20px", _1 = { class: "config-card-details-row" }, $1 = ["data-testid"], e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["data-testid"], i0 = { key: 1 }, a0 = ["data-testid"], r0 = ["data-testid"], s0 = ["data-testid"], o0 = ["data-testid"], l0 = {
|
|
635
635
|
name: "ConfigCardItem",
|
|
636
636
|
components: { JsonCardItem: Fd, StatusBadge: K1, InternalLinkItem: Ra }
|
|
637
|
-
}, u0 = /* @__PURE__ */
|
|
637
|
+
}, u0 = /* @__PURE__ */ je({
|
|
638
638
|
...l0,
|
|
639
639
|
props: {
|
|
640
640
|
item: {
|
|
@@ -772,7 +772,7 @@ const xt = {
|
|
|
772
772
|
}
|
|
773
773
|
}), E = le(), { isTruncated: B } = xt.useTruncationDetector(E);
|
|
774
774
|
return (j, V) => {
|
|
775
|
-
const Y =
|
|
775
|
+
const Y = te("KLabel"), ie = te("KBadge"), Z = te("KCopy"), ee = te("KTooltip");
|
|
776
776
|
return y(), O("div", _1, [
|
|
777
777
|
S("div", {
|
|
778
778
|
class: "config-card-details-label",
|
|
@@ -815,7 +815,7 @@ const xt = {
|
|
|
815
815
|
key: 0,
|
|
816
816
|
"data-testid": `${e.item.key}-badge-tags`
|
|
817
817
|
}, [
|
|
818
|
-
(y(!0), O(Re, null,
|
|
818
|
+
(y(!0), O(Re, null, Ye(e.item.value, (N, I) => (y(), K(ie, {
|
|
819
819
|
key: `${e.item.key}-badge-tag-${I}`,
|
|
820
820
|
class: "config-badge",
|
|
821
821
|
"data-testid": `${e.item.key}-badge-tag-${I}`,
|
|
@@ -833,7 +833,7 @@ const xt = {
|
|
|
833
833
|
class: "copy-uuid-array",
|
|
834
834
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
835
835
|
}, [
|
|
836
|
-
(y(!0), O(Re, null,
|
|
836
|
+
(y(!0), O(Re, null, Ye(e.item.value, (N, I) => (y(), K(Z, oa(b.value.childAttrs, {
|
|
837
837
|
key: `${e.item.key}-copy-uuid-${I}`,
|
|
838
838
|
"data-testid": `${e.item.key}-copy-uuid-${I}`,
|
|
839
839
|
text: N
|
|
@@ -843,7 +843,7 @@ const xt = {
|
|
|
843
843
|
class: "method-badge-array",
|
|
844
844
|
"data-testid": `${e.item.key}-badge-methods`
|
|
845
845
|
}, [
|
|
846
|
-
(y(!0), O(Re, null,
|
|
846
|
+
(y(!0), O(Re, null, Ye(e.item.value, (N, I) => (y(), K(ie, {
|
|
847
847
|
key: `${e.item.key}-badge-method-${I}`,
|
|
848
848
|
appearance: Object.values(R(d1)).includes(N.toLowerCase()) ? N.toLowerCase() : "custom",
|
|
849
849
|
class: "config-badge",
|
|
@@ -859,13 +859,13 @@ const xt = {
|
|
|
859
859
|
key: 3,
|
|
860
860
|
"data-testid": `${n.item.key}-json-array-content`
|
|
861
861
|
}, [
|
|
862
|
-
(y(!0), O(Re, null,
|
|
862
|
+
(y(!0), O(Re, null, Ye(e.item.value, (N, I) => (y(), K(Fd, {
|
|
863
863
|
key: `json-array-item-${I}`,
|
|
864
864
|
index: I,
|
|
865
865
|
"is-array-item": "",
|
|
866
866
|
item: N
|
|
867
867
|
}, null, 8, ["index", "item"]))), 128))
|
|
868
|
-
], 8, o0)) : (y(), K(
|
|
868
|
+
], 8, o0)) : (y(), K(ee, {
|
|
869
869
|
key: 4,
|
|
870
870
|
text: R(B) ? e.item.value : ""
|
|
871
871
|
}, {
|
|
@@ -893,7 +893,7 @@ const xt = {
|
|
|
893
893
|
}), zd = /* @__PURE__ */ Hn(u0, [["__scopeId", "data-v-d056663c"]]), c0 = { class: "json-config" }, d0 = {
|
|
894
894
|
key: 0,
|
|
895
895
|
class: "json-endpoint"
|
|
896
|
-
}, qo = /* @__PURE__ */
|
|
896
|
+
}, qo = /* @__PURE__ */ je({
|
|
897
897
|
__name: "JsonCodeBlock",
|
|
898
898
|
props: {
|
|
899
899
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -932,7 +932,7 @@ const xt = {
|
|
|
932
932
|
return l.length < 2 ? 0 : 41 + (a.requestMethod === "post" ? l[l.length - 1] : l[l.length - 2]).length;
|
|
933
933
|
});
|
|
934
934
|
return (s, l) => {
|
|
935
|
-
const u =
|
|
935
|
+
const u = te("KBadge"), d = te("KCodeBlock");
|
|
936
936
|
return y(), O("div", c0, [
|
|
937
937
|
a.fetcherUrl ? (y(), O("div", d0, [
|
|
938
938
|
X(u, {
|
|
@@ -2330,7 +2330,7 @@ var AC = Dt, yC = Xd, vC = Qd, bC = np, wC = ip, CC = Jo, EC = bp.load, kC = bp.
|
|
|
2330
2330
|
safeLoadAll: xC,
|
|
2331
2331
|
safeDump: SC
|
|
2332
2332
|
};
|
|
2333
|
-
const RC = { class: "yaml-config" }, $o = /* @__PURE__ */
|
|
2333
|
+
const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ je({
|
|
2334
2334
|
__name: "YamlCodeBlock",
|
|
2335
2335
|
props: {
|
|
2336
2336
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2345,7 +2345,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
2345
2345
|
return Object.keys(r).length === 0 && r.constructor === Object ? "" : TC.dump(r).trim();
|
|
2346
2346
|
});
|
|
2347
2347
|
return (r, s) => {
|
|
2348
|
-
const l =
|
|
2348
|
+
const l = te("KCodeBlock");
|
|
2349
2349
|
return y(), O("div", RC, [
|
|
2350
2350
|
a.yamlRecord ? (y(), K(l, {
|
|
2351
2351
|
key: 0,
|
|
@@ -2363,7 +2363,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
2363
2363
|
}, NC = ["data-testid"], PC = {
|
|
2364
2364
|
key: 0,
|
|
2365
2365
|
class: "config-card-prop-section-title"
|
|
2366
|
-
}, jC = /* @__PURE__ */
|
|
2366
|
+
}, jC = /* @__PURE__ */ je({
|
|
2367
2367
|
__name: "ConfigCardDisplay",
|
|
2368
2368
|
props: {
|
|
2369
2369
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2410,13 +2410,13 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
2410
2410
|
});
|
|
2411
2411
|
return (u, d) => (y(), O(Re, null, [
|
|
2412
2412
|
e.format === "structured" ? (y(), O("div", LC, [
|
|
2413
|
-
(y(!0), O(Re, null,
|
|
2413
|
+
(y(!0), O(Re, null, Ye(e.propListTypes, (p) => (y(), O("div", {
|
|
2414
2414
|
key: `config-card-details-${p}-props`,
|
|
2415
2415
|
class: Fe(`config-card-details-${p}-props`),
|
|
2416
2416
|
"data-testid": `config-card-details-${p}-props`
|
|
2417
2417
|
}, [
|
|
2418
2418
|
p !== "basic" ? (y(), O("div", PC, W(p === "advanced" ? R(r)("baseConfigCard.sections.advanced") : R(r)("baseConfigCard.sections.plugin")), 1)) : se("", !0),
|
|
2419
|
-
(y(!0), O(Re, null,
|
|
2419
|
+
(y(!0), O(Re, null, Ye(e.propertyCollections[p], (m) => (y(), K(zd, {
|
|
2420
2420
|
key: m.key,
|
|
2421
2421
|
item: m
|
|
2422
2422
|
}, Gn({
|
|
@@ -2465,7 +2465,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
2465
2465
|
}, GC = /* @__PURE__ */ UC(() => /* @__PURE__ */ S("path", {
|
|
2466
2466
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2467
2467
|
fill: "currentColor"
|
|
2468
|
-
}, null, -1)), HC = /* @__PURE__ */
|
|
2468
|
+
}, null, -1)), HC = /* @__PURE__ */ je({
|
|
2469
2469
|
__name: "AddIcon",
|
|
2470
2470
|
props: {
|
|
2471
2471
|
/** The accessibility text provided to screen readers */
|
|
@@ -2564,7 +2564,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
2564
2564
|
}, XC = /* @__PURE__ */ zC(() => /* @__PURE__ */ S("path", {
|
|
2565
2565
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2566
2566
|
fill: "currentColor"
|
|
2567
|
-
}, null, -1)), JC = /* @__PURE__ */
|
|
2567
|
+
}, null, -1)), JC = /* @__PURE__ */ je({
|
|
2568
2568
|
__name: "BookIcon",
|
|
2569
2569
|
props: {
|
|
2570
2570
|
/** The accessibility text provided to screen readers */
|
|
@@ -2663,7 +2663,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
2663
2663
|
}, $C = /* @__PURE__ */ ZC(() => /* @__PURE__ */ S("path", {
|
|
2664
2664
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2665
2665
|
fill: "currentColor"
|
|
2666
|
-
}, null, -1)), eE = /* @__PURE__ */
|
|
2666
|
+
}, null, -1)), eE = /* @__PURE__ */ je({
|
|
2667
2667
|
__name: "ChevronDownIcon",
|
|
2668
2668
|
props: {
|
|
2669
2669
|
/** The accessibility text provided to screen readers */
|
|
@@ -2762,7 +2762,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
2762
2762
|
}, rE = /* @__PURE__ */ nE(() => /* @__PURE__ */ S("path", {
|
|
2763
2763
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2764
2764
|
fill: "currentColor"
|
|
2765
|
-
}, null, -1)), sE = /* @__PURE__ */
|
|
2765
|
+
}, null, -1)), sE = /* @__PURE__ */ je({
|
|
2766
2766
|
__name: "CloseIcon",
|
|
2767
2767
|
props: {
|
|
2768
2768
|
/** The accessibility text provided to screen readers */
|
|
@@ -2858,7 +2858,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
2858
2858
|
}), oE = /* @__PURE__ */ ss(sE, [["__scopeId", "data-v-79c90e9e"]]), lE = {
|
|
2859
2859
|
class: "config-card-title",
|
|
2860
2860
|
"data-testid": "config-card-title"
|
|
2861
|
-
}, uE = { class: "config-card-actions" }, cE = ["href"], dE = { class: "config-card-details-section" }, pE = /* @__PURE__ */
|
|
2861
|
+
}, uE = { class: "config-card-actions" }, cE = ["href"], dE = { class: "config-card-details-section" }, pE = /* @__PURE__ */ je({
|
|
2862
2862
|
__name: "EntityBaseConfigCard",
|
|
2863
2863
|
props: {
|
|
2864
2864
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3037,7 +3037,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3037
3037
|
section: Rt.Plugin
|
|
3038
3038
|
};
|
|
3039
3039
|
}).filter((me) => !me.hidden);
|
|
3040
|
-
}),
|
|
3040
|
+
}), ee = J(() => {
|
|
3041
3041
|
var C, U, P, ne;
|
|
3042
3042
|
return {
|
|
3043
3043
|
basic: (C = ie.value) == null ? void 0 : C.filter((Ae) => Ae.section === Rt.Basic),
|
|
@@ -3046,7 +3046,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3046
3046
|
};
|
|
3047
3047
|
}), N = J(() => {
|
|
3048
3048
|
const C = [];
|
|
3049
|
-
return
|
|
3049
|
+
return ee.value.basic.length && C.push("basic"), ee.value.advanced.length && C.push("advanced"), ee.value.plugin.length && C.push("plugin"), C;
|
|
3050
3050
|
}), I = J(() => {
|
|
3051
3051
|
var C, U;
|
|
3052
3052
|
let P = `${s.config.apiBaseUrl}${s.fetchUrl}`;
|
|
@@ -3075,7 +3075,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3075
3075
|
B.value = !1;
|
|
3076
3076
|
}
|
|
3077
3077
|
}), (C, U) => {
|
|
3078
|
-
const P =
|
|
3078
|
+
const P = te("KLabel"), ne = te("KSelect"), Ae = te("KButton"), me = te("KSkeleton"), be = te("KEmptyState"), oe = te("KCard");
|
|
3079
3079
|
return y(), K(oe, {
|
|
3080
3080
|
class: "kong-ui-entity-base-config-card",
|
|
3081
3081
|
"title-tag": e.titleTag
|
|
@@ -3138,10 +3138,10 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3138
3138
|
"fetcher-url": I.value,
|
|
3139
3139
|
format: v.value,
|
|
3140
3140
|
"prop-list-types": N.value,
|
|
3141
|
-
"property-collections":
|
|
3141
|
+
"property-collections": ee.value,
|
|
3142
3142
|
record: Y.value
|
|
3143
3143
|
}, Gn({ _: 2 }, [
|
|
3144
|
-
|
|
3144
|
+
Ye(Object.keys(C.$slots), (ce) => ({
|
|
3145
3145
|
name: ce,
|
|
3146
3146
|
fn: T(({ row: ke, rowValue: Ce }) => [
|
|
3147
3147
|
gt(C.$slots, ce, {
|
|
@@ -3172,7 +3172,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3172
3172
|
}), gE = /* @__PURE__ */ Hn(pE, [["__scopeId", "data-v-f40a683b"]]), fE = ["novalidate"], mE = {
|
|
3173
3173
|
class: "form-actions",
|
|
3174
3174
|
"data-testid": "form-actions"
|
|
3175
|
-
}, hE = /* @__PURE__ */
|
|
3175
|
+
}, hE = /* @__PURE__ */ je({
|
|
3176
3176
|
__name: "EntityBaseForm",
|
|
3177
3177
|
props: {
|
|
3178
3178
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3246,7 +3246,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3246
3246
|
r("cancel");
|
|
3247
3247
|
}, Z = () => {
|
|
3248
3248
|
E.value || r("submit");
|
|
3249
|
-
},
|
|
3249
|
+
}, ee = le([
|
|
3250
3250
|
{
|
|
3251
3251
|
title: u("baseForm.configuration.yaml"),
|
|
3252
3252
|
hash: "#yaml"
|
|
@@ -3271,7 +3271,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3271
3271
|
m.value = !1;
|
|
3272
3272
|
}
|
|
3273
3273
|
}), (N, I) => {
|
|
3274
|
-
const C =
|
|
3274
|
+
const C = te("KSkeleton"), U = te("KEmptyState"), P = te("KAlert"), ne = te("KButton"), Ae = te("KTabs"), me = te("KSlideout"), be = te("KCard");
|
|
3275
3275
|
return y(), K(be, { class: "kong-ui-entity-base-form" }, {
|
|
3276
3276
|
default: T(() => [
|
|
3277
3277
|
m.value ? (y(), K(C, {
|
|
@@ -3352,7 +3352,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3352
3352
|
S("div", null, W(R(u)("baseForm.configuration.message")), 1),
|
|
3353
3353
|
X(Ae, {
|
|
3354
3354
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3355
|
-
tabs:
|
|
3355
|
+
tabs: ee.value
|
|
3356
3356
|
}, {
|
|
3357
3357
|
json: T(() => [
|
|
3358
3358
|
X(qo, {
|
|
@@ -3380,7 +3380,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3380
3380
|
}), AE = /* @__PURE__ */ Hn(hE, [["__scopeId", "data-v-3def74fe"]]), yE = {
|
|
3381
3381
|
key: 0,
|
|
3382
3382
|
"data-testid": "first-col"
|
|
3383
|
-
}, vE = /* @__PURE__ */
|
|
3383
|
+
}, vE = /* @__PURE__ */ je({
|
|
3384
3384
|
__name: "EntityBaseTableCell",
|
|
3385
3385
|
props: {
|
|
3386
3386
|
keyName: {
|
|
@@ -3430,7 +3430,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3430
3430
|
}), i1(() => {
|
|
3431
3431
|
B();
|
|
3432
3432
|
}), (V, Y) => {
|
|
3433
|
-
const ie =
|
|
3433
|
+
const ie = te("KTooltip");
|
|
3434
3434
|
return y(), O("span", {
|
|
3435
3435
|
ref_key: "contentRef",
|
|
3436
3436
|
ref: p,
|
|
@@ -3454,7 +3454,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3454
3454
|
}), bE = /* @__PURE__ */ Hn(vE, [["__scopeId", "data-v-c4379fd4"]]), wE = { class: "toolbar-container" }, CE = {
|
|
3455
3455
|
key: 0,
|
|
3456
3456
|
class: "toolbar-button-container"
|
|
3457
|
-
}, EE = ["data-testid"], kE = /* @__PURE__ */
|
|
3457
|
+
}, EE = ["data-testid"], kE = /* @__PURE__ */ je({
|
|
3458
3458
|
__name: "EntityBaseTable",
|
|
3459
3459
|
props: {
|
|
3460
3460
|
// table header configuration
|
|
@@ -3617,7 +3617,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3617
3617
|
r("click:row", C);
|
|
3618
3618
|
}), Y = (I) => {
|
|
3619
3619
|
r("sort", I);
|
|
3620
|
-
}, { setTablePreferences: ie, getTablePreferences: Z } = h1(),
|
|
3620
|
+
}, { setTablePreferences: ie, getTablePreferences: Z } = h1(), ee = J(() => {
|
|
3621
3621
|
const I = Z(n.preferencesStorageKey);
|
|
3622
3622
|
return {
|
|
3623
3623
|
...n.initialFetcherParams,
|
|
@@ -3627,7 +3627,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3627
3627
|
n.preferencesStorageKey && ie(n.preferencesStorageKey, I);
|
|
3628
3628
|
};
|
|
3629
3629
|
return (I, C) => {
|
|
3630
|
-
const U =
|
|
3630
|
+
const U = te("KIcon"), P = te("KButton"), ne = te("KDropdown"), Ae = te("KTable"), me = te("KCard");
|
|
3631
3631
|
return y(), K(me, {
|
|
3632
3632
|
class: "kong-ui-entity-base-table",
|
|
3633
3633
|
title: e.title,
|
|
@@ -3654,7 +3654,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3654
3654
|
"has-error": l.value.hasError,
|
|
3655
3655
|
headers: p.value,
|
|
3656
3656
|
"hide-pagination-when-optional": "",
|
|
3657
|
-
"initial-fetcher-params":
|
|
3657
|
+
"initial-fetcher-params": ee.value,
|
|
3658
3658
|
"is-loading": e.isLoading,
|
|
3659
3659
|
"pagination-type": e.paginationType,
|
|
3660
3660
|
"row-attrs": m,
|
|
@@ -3665,7 +3665,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3665
3665
|
"onUpdate:tablePreferences": N
|
|
3666
3666
|
}, Gn({
|
|
3667
3667
|
toolbar: T(({ state: be }) => [
|
|
3668
|
-
|
|
3668
|
+
Ue(S("div", wE, [
|
|
3669
3669
|
gt(I.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3670
3670
|
I.$slots["toolbar-button"] ? (y(), O("div", CE, [
|
|
3671
3671
|
gt(I.$slots, "toolbar-button", {}, void 0, !0)
|
|
@@ -3712,7 +3712,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3712
3712
|
]),
|
|
3713
3713
|
_: 2
|
|
3714
3714
|
}, [
|
|
3715
|
-
|
|
3715
|
+
Ye(e.tableHeaders, (be, oe) => ({
|
|
3716
3716
|
name: oe,
|
|
3717
3717
|
fn: T(({ row: ce, rowKey: ke, rowValue: Ce }) => [
|
|
3718
3718
|
X(bE, {
|
|
@@ -3751,7 +3751,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3751
3751
|
}, BE = {
|
|
3752
3752
|
key: 1,
|
|
3753
3753
|
class: "description"
|
|
3754
|
-
}, ME = /* @__PURE__ */
|
|
3754
|
+
}, ME = /* @__PURE__ */ je({
|
|
3755
3755
|
__name: "EntityDeleteModal",
|
|
3756
3756
|
props: {
|
|
3757
3757
|
visible: {
|
|
@@ -3796,7 +3796,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3796
3796
|
s("proceed");
|
|
3797
3797
|
};
|
|
3798
3798
|
return (p, m) => {
|
|
3799
|
-
const v =
|
|
3799
|
+
const v = te("KAlert"), b = te("KPrompt");
|
|
3800
3800
|
return y(), K(b, {
|
|
3801
3801
|
"action-button-appearance": "danger",
|
|
3802
3802
|
"action-button-disabled": e.actionPending,
|
|
@@ -3859,7 +3859,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3859
3859
|
width: "20",
|
|
3860
3860
|
x: "0",
|
|
3861
3861
|
y: "0"
|
|
3862
|
-
}, TE = ["fill"], RE = { mask: "url(#mask0_180_20349)" }, LE = ["fill"], od = /* @__PURE__ */
|
|
3862
|
+
}, TE = ["fill"], RE = { mask: "url(#mask0_180_20349)" }, LE = ["fill"], od = /* @__PURE__ */ je({
|
|
3863
3863
|
__name: "IconFilter",
|
|
3864
3864
|
props: {
|
|
3865
3865
|
color: {
|
|
@@ -3887,7 +3887,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3887
3887
|
}), NE = {
|
|
3888
3888
|
key: 1,
|
|
3889
3889
|
class: "kong-ui-entity-filter"
|
|
3890
|
-
}, PE = { class: "kong-ui-entity-filter-menu" }, jE = ["data-testid"], DE = ["onClick", "onKeydown"], UE = { class: "menu-item-indicator" }, YE = { class: "menu-item-body" }, VE = ["for"], GE = { class: "menu-item-buttons" }, HE = { class: "filter-clear-button-container" }, FE = /* @__PURE__ */
|
|
3890
|
+
}, PE = { class: "kong-ui-entity-filter-menu" }, jE = ["data-testid"], DE = ["onClick", "onKeydown"], UE = { class: "menu-item-indicator" }, YE = { class: "menu-item-body" }, VE = ["for"], GE = { class: "menu-item-buttons" }, HE = { class: "filter-clear-button-container" }, FE = /* @__PURE__ */ je({
|
|
3891
3891
|
__name: "EntityFilter",
|
|
3892
3892
|
props: {
|
|
3893
3893
|
// filter config, either exact match or fuzzy match
|
|
@@ -3946,15 +3946,15 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3946
3946
|
u.value = {
|
|
3947
3947
|
...u.value,
|
|
3948
3948
|
[N]: ""
|
|
3949
|
-
},
|
|
3949
|
+
}, ee();
|
|
3950
3950
|
}, Z = () => {
|
|
3951
|
-
u.value = {},
|
|
3952
|
-
},
|
|
3951
|
+
u.value = {}, ee(!0);
|
|
3952
|
+
}, ee = (N = !1) => {
|
|
3953
3953
|
const I = Object.keys(u.value).reduce((C, U) => (u.value[U] && (C[U] = `${u.value[U]}`), C), {});
|
|
3954
3954
|
N && (l.value = !1), s("update:modelValue", new URLSearchParams(I).toString());
|
|
3955
3955
|
};
|
|
3956
3956
|
return (N, I) => {
|
|
3957
|
-
const C =
|
|
3957
|
+
const C = te("KInput"), U = te("KButton"), P = te("KSelect");
|
|
3958
3958
|
return e.config.isExactMatch ? (y(), K(C, {
|
|
3959
3959
|
key: 0,
|
|
3960
3960
|
autocomplete: "off",
|
|
@@ -3968,7 +3968,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3968
3968
|
X(od)
|
|
3969
3969
|
]),
|
|
3970
3970
|
after: T(() => [
|
|
3971
|
-
|
|
3971
|
+
Ue(X(R(oE), {
|
|
3972
3972
|
class: "kong-ui-entity-filter-clear",
|
|
3973
3973
|
onClick: B
|
|
3974
3974
|
}, null, 512), [
|
|
@@ -3988,14 +3988,14 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
3988
3988
|
]),
|
|
3989
3989
|
_: 1
|
|
3990
3990
|
}),
|
|
3991
|
-
|
|
3991
|
+
Ue(S("div", {
|
|
3992
3992
|
class: "kong-ui-entity-filter-backdrop",
|
|
3993
3993
|
onClick: v
|
|
3994
3994
|
}, null, 512), [
|
|
3995
3995
|
[Dn, l.value]
|
|
3996
3996
|
]),
|
|
3997
|
-
|
|
3998
|
-
(y(!0), O(Re, null,
|
|
3997
|
+
Ue(S("div", PE, [
|
|
3998
|
+
(y(!0), O(Re, null, Ye(m.value, (ne) => {
|
|
3999
3999
|
var Ae, me;
|
|
4000
4000
|
return y(), O("div", {
|
|
4001
4001
|
key: ne.value,
|
|
@@ -4010,7 +4010,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
4010
4010
|
onKeydown: t1((be) => b(ne.value), ["enter"])
|
|
4011
4011
|
}, [
|
|
4012
4012
|
Be(W(ne.label) + " ", 1),
|
|
4013
|
-
|
|
4013
|
+
Ue(S("span", UE, null, 512), [
|
|
4014
4014
|
[Dn, p.value.includes(ne.value)]
|
|
4015
4015
|
]),
|
|
4016
4016
|
X(R(tE), {
|
|
@@ -4018,7 +4018,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
4018
4018
|
color: R(W1)
|
|
4019
4019
|
}, null, 8, ["class", "color"])
|
|
4020
4020
|
], 42, DE),
|
|
4021
|
-
|
|
4021
|
+
Ue(S("div", YE, [
|
|
4022
4022
|
S("label", {
|
|
4023
4023
|
class: "menu-item-label",
|
|
4024
4024
|
for: j(ne.value)
|
|
@@ -4042,12 +4042,12 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
4042
4042
|
], 512), [
|
|
4043
4043
|
[Dn, d.value.has(ne.value)]
|
|
4044
4044
|
]),
|
|
4045
|
-
|
|
4045
|
+
Ue(S("div", GE, [
|
|
4046
4046
|
X(U, {
|
|
4047
4047
|
appearance: "tertiary",
|
|
4048
4048
|
"data-testid": "apply-filter",
|
|
4049
4049
|
size: "small",
|
|
4050
|
-
onClick: I[0] || (I[0] = (be) =>
|
|
4050
|
+
onClick: I[0] || (I[0] = (be) => ee(!0))
|
|
4051
4051
|
}, {
|
|
4052
4052
|
default: T(() => [
|
|
4053
4053
|
Be(W(R(n)("filter.applyButtonText")), 1)
|
|
@@ -4088,7 +4088,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
4088
4088
|
]));
|
|
4089
4089
|
};
|
|
4090
4090
|
}
|
|
4091
|
-
}), zE = /* @__PURE__ */ Hn(FE, [["__scopeId", "data-v-8cfadde3"]]), KE = /* @__PURE__ */
|
|
4091
|
+
}), zE = /* @__PURE__ */ Hn(FE, [["__scopeId", "data-v-8cfadde3"]]), KE = /* @__PURE__ */ je({
|
|
4092
4092
|
__name: "EntityToggleModal",
|
|
4093
4093
|
props: {
|
|
4094
4094
|
visible: {
|
|
@@ -4137,7 +4137,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
4137
4137
|
}
|
|
4138
4138
|
};
|
|
4139
4139
|
return (b, E) => {
|
|
4140
|
-
const B =
|
|
4140
|
+
const B = te("KPrompt");
|
|
4141
4141
|
return y(), K(e1, { to: "body" }, [
|
|
4142
4142
|
X(B, {
|
|
4143
4143
|
"action-button-disabled": u.value,
|
|
@@ -4167,7 +4167,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
4167
4167
|
]);
|
|
4168
4168
|
};
|
|
4169
4169
|
}
|
|
4170
|
-
}), Ri = /* @__PURE__ */
|
|
4170
|
+
}), Ri = /* @__PURE__ */ je({
|
|
4171
4171
|
__name: "PermissionsWrapper",
|
|
4172
4172
|
props: {
|
|
4173
4173
|
/**
|
|
@@ -4197,7 +4197,7 @@ const RC = { class: "yaml-config" }, $o = /* @__PURE__ */ Ve({
|
|
|
4197
4197
|
isAllowed: n.value
|
|
4198
4198
|
}) : se("", !0);
|
|
4199
4199
|
}
|
|
4200
|
-
}), { useAxios: ga, useDeleteUrlBuilder: qE, useErrors: os, useExternalLinkCreator:
|
|
4200
|
+
}), { useAxios: ga, useDeleteUrlBuilder: qE, useErrors: os, useExternalLinkCreator: q2, useFetchUrlBuilder: X2, useFetcher: XE, useDebouncedFilter: J2, useStringHelpers: el, useHelpers: ls, useGatewayFeatureSupported: JE, useTruncationDetector: W2, useValidators: Z2 } = xt;
|
|
4201
4201
|
function tl() {
|
|
4202
4202
|
return {
|
|
4203
4203
|
async: !1,
|
|
@@ -4450,17 +4450,17 @@ class Jr {
|
|
|
4450
4450
|
let j = !1;
|
|
4451
4451
|
if (!b && /^ *$/.test(E) && (d += E + `
|
|
4452
4452
|
`, a = a.substring(E.length + 1), v = !0), !v) {
|
|
4453
|
-
const ie = new RegExp(`^ {0,${Math.min(3, B - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), Z = new RegExp(`^ {0,${Math.min(3, B - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
|
|
4453
|
+
const ie = new RegExp(`^ {0,${Math.min(3, B - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), Z = new RegExp(`^ {0,${Math.min(3, B - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), ee = new RegExp(`^ {0,${Math.min(3, B - 1)}}(?:\`\`\`|~~~)`), N = new RegExp(`^ {0,${Math.min(3, B - 1)}}#`);
|
|
4454
4454
|
for (; a; ) {
|
|
4455
4455
|
const I = a.split(`
|
|
4456
4456
|
`, 1)[0];
|
|
4457
|
-
if (E = I, this.options.pedantic && (E = E.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")),
|
|
4457
|
+
if (E = I, this.options.pedantic && (E = E.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), ee.test(E) || N.test(E) || ie.test(E) || Z.test(a))
|
|
4458
4458
|
break;
|
|
4459
4459
|
if (E.search(/[^ ]/) >= B || !E.trim())
|
|
4460
4460
|
p += `
|
|
4461
4461
|
` + E.slice(B);
|
|
4462
4462
|
else {
|
|
4463
|
-
if (j || b.search(/[^ ]/) >= 4 ||
|
|
4463
|
+
if (j || b.search(/[^ ]/) >= 4 || ee.test(b) || N.test(b) || Z.test(b))
|
|
4464
4464
|
break;
|
|
4465
4465
|
p += `
|
|
4466
4466
|
` + E;
|
|
@@ -7629,11 +7629,11 @@ var Ta = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
7629
7629
|
Qr.exports;
|
|
7630
7630
|
(function(e, a) {
|
|
7631
7631
|
(function() {
|
|
7632
|
-
var n, r = "4.17.21", s = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", d = "Invalid `variable` option passed into `_.template`", p = "__lodash_hash_undefined__", m = 500, v = "__lodash_placeholder__", b = 1, E = 2, B = 4, j = 1, V = 2, Y = 1, ie = 2, Z = 4,
|
|
7632
|
+
var n, r = "4.17.21", s = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", d = "Invalid `variable` option passed into `_.template`", p = "__lodash_hash_undefined__", m = 500, v = "__lodash_placeholder__", b = 1, E = 2, B = 4, j = 1, V = 2, Y = 1, ie = 2, Z = 4, ee = 8, N = 16, I = 32, C = 64, U = 128, P = 256, ne = 512, Ae = 30, me = "...", be = 800, oe = 16, ce = 1, ke = 2, Ce = 3, ye = 1 / 0, Me = 9007199254740991, de = 17976931348623157e292, ue = NaN, we = 4294967295, he = we - 1, Xe = we >>> 1, $e = [
|
|
7633
7633
|
["ary", U],
|
|
7634
7634
|
["bind", Y],
|
|
7635
7635
|
["bindKey", ie],
|
|
7636
|
-
["curry",
|
|
7636
|
+
["curry", ee],
|
|
7637
7637
|
["curryRight", N],
|
|
7638
7638
|
["flip", ne],
|
|
7639
7639
|
["partial", I],
|
|
@@ -8280,8 +8280,8 @@ Qr.exports;
|
|
|
8280
8280
|
e:
|
|
8281
8281
|
for (; x-- && ge < Ee; ) {
|
|
8282
8282
|
z += i;
|
|
8283
|
-
for (var
|
|
8284
|
-
var qe = q[
|
|
8283
|
+
for (var Ve = -1, Te = t[z]; ++Ve < _; ) {
|
|
8284
|
+
var qe = q[Ve], Ze = qe.iteratee, un = qe.type, Jt = Ze(Te);
|
|
8285
8285
|
if (un == ke)
|
|
8286
8286
|
Te = Jt;
|
|
8287
8287
|
else if (!Jt) {
|
|
@@ -8516,9 +8516,9 @@ Qr.exports;
|
|
|
8516
8516
|
}) : wc(t) && t.forEach(function(Te, qe) {
|
|
8517
8517
|
w.set(qe, bn(Te, i, o, qe, t, A));
|
|
8518
8518
|
});
|
|
8519
|
-
var Se = z ? x ? to : eo : x ? $t : Tt,
|
|
8520
|
-
return An(
|
|
8521
|
-
|
|
8519
|
+
var Se = z ? x ? to : eo : x ? $t : Tt, Ve = q ? n : Se(t);
|
|
8520
|
+
return An(Ve || t, function(Te, qe) {
|
|
8521
|
+
Ve && (qe = Te, Te = t[qe]), wa(w, qe, bn(Te, i, o, qe, t, A));
|
|
8522
8522
|
}), w;
|
|
8523
8523
|
}
|
|
8524
8524
|
function Ym(t) {
|
|
@@ -8580,7 +8580,7 @@ Qr.exports;
|
|
|
8580
8580
|
}
|
|
8581
8581
|
function Gm(t, i, o, c) {
|
|
8582
8582
|
var g = t.length;
|
|
8583
|
-
for (o =
|
|
8583
|
+
for (o = De(o), o < 0 && (o = -o > g ? 0 : g + o), c = c === n || c > g ? g : De(c), c < 0 && (c += g), c = o > c ? 0 : Oc(c); o < c; )
|
|
8584
8584
|
t[o++] = i;
|
|
8585
8585
|
return t;
|
|
8586
8586
|
}
|
|
@@ -8647,8 +8647,8 @@ Qr.exports;
|
|
|
8647
8647
|
var Ee = q[_], Se = i ? i(Ee) : Ee;
|
|
8648
8648
|
if (Ee = o || Ee !== 0 ? Ee : 0, !(ge ? ma(ge, Se) : c(z, Se, o))) {
|
|
8649
8649
|
for (w = A; --w; ) {
|
|
8650
|
-
var
|
|
8651
|
-
if (!(
|
|
8650
|
+
var Ve = k[w];
|
|
8651
|
+
if (!(Ve ? ma(Ve, Se) : c(t[w], Se, o)))
|
|
8652
8652
|
continue e;
|
|
8653
8653
|
}
|
|
8654
8654
|
ge && ge.push(Se), z.push(Ee);
|
|
@@ -8692,8 +8692,8 @@ Qr.exports;
|
|
|
8692
8692
|
if (!(o & j)) {
|
|
8693
8693
|
var Ee = q && rt.call(t, "__wrapped__"), Se = _ && rt.call(i, "__wrapped__");
|
|
8694
8694
|
if (Ee || Se) {
|
|
8695
|
-
var
|
|
8696
|
-
return A || (A = new Mn()), g(
|
|
8695
|
+
var Ve = Ee ? t.value() : t, Te = Se ? i.value() : i;
|
|
8696
|
+
return A || (A = new Mn()), g(Ve, Te, o, c, A);
|
|
8697
8697
|
}
|
|
8698
8698
|
}
|
|
8699
8699
|
return ge ? (A || (A = new Mn()), Ch(t, i, o, c, g, A)) : !1;
|
|
@@ -8947,11 +8947,11 @@ Qr.exports;
|
|
|
8947
8947
|
return 0;
|
|
8948
8948
|
i = o(i);
|
|
8949
8949
|
for (var w = i !== i, k = i === null, x = ln(i), z = i === n; g < A; ) {
|
|
8950
|
-
var q = gr((g + A) / 2), _ = o(t[q]), ge = _ !== n, Ee = _ === null, Se = _ === _,
|
|
8950
|
+
var q = gr((g + A) / 2), _ = o(t[q]), ge = _ !== n, Ee = _ === null, Se = _ === _, Ve = ln(_);
|
|
8951
8951
|
if (w)
|
|
8952
8952
|
var Te = c || Se;
|
|
8953
8953
|
else
|
|
8954
|
-
z ? Te = Se && (c || ge) : k ? Te = Se && ge && (c || !Ee) : x ? Te = Se && ge && !Ee && (c || !
|
|
8954
|
+
z ? Te = Se && (c || ge) : k ? Te = Se && ge && (c || !Ee) : x ? Te = Se && ge && !Ee && (c || !Ve) : Ee || Ve ? Te = !1 : Te = c ? _ <= i : _ < i;
|
|
8955
8955
|
Te ? g = q + 1 : A = q;
|
|
8956
8956
|
}
|
|
8957
8957
|
return Ut(A, he);
|
|
@@ -9271,7 +9271,7 @@ Qr.exports;
|
|
|
9271
9271
|
for (c = w ? c : o; ++c < o; ) {
|
|
9272
9272
|
A = i[c];
|
|
9273
9273
|
var k = Mr(A), x = k == "wrapper" ? no(A) : n;
|
|
9274
|
-
x && so(x[0]) && x[1] == (U |
|
|
9274
|
+
x && so(x[0]) && x[1] == (U | ee | I | P) && !x[4].length && x[9] == 1 ? w = w[Mr(x[0])].apply(w, x[3]) : w = A.length == 1 && so(A) ? w[k]() : w.thru(A);
|
|
9275
9275
|
}
|
|
9276
9276
|
return function() {
|
|
9277
9277
|
var z = arguments, q = z[0];
|
|
@@ -9284,7 +9284,7 @@ Qr.exports;
|
|
|
9284
9284
|
});
|
|
9285
9285
|
}
|
|
9286
9286
|
function kr(t, i, o, c, g, A, w, k, x, z) {
|
|
9287
|
-
var q = i & U, _ = i & Y, ge = i & ie, Ee = i & (
|
|
9287
|
+
var q = i & U, _ = i & Y, ge = i & ie, Ee = i & (ee | N), Se = i & ne, Ve = ge ? n : Ia(t);
|
|
9288
9288
|
function Te() {
|
|
9289
9289
|
for (var qe = arguments.length, Ze = D(qe), un = qe; un--; )
|
|
9290
9290
|
Ze[un] = arguments[un];
|
|
@@ -9306,7 +9306,7 @@ Qr.exports;
|
|
|
9306
9306
|
);
|
|
9307
9307
|
}
|
|
9308
9308
|
var Sn = _ ? o : this, ei = ge ? Sn[t] : t;
|
|
9309
|
-
return qe = Ze.length, k ? Ze = Dh(Ze, k) : Se && qe > 1 && Ze.reverse(), q && x < qe && (Ze.length = x), this && this !== Pt && this instanceof Te && (ei =
|
|
9309
|
+
return qe = Ze.length, k ? Ze = Dh(Ze, k) : Se && qe > 1 && Ze.reverse(), q && x < qe && (Ze.length = x), this && this !== Pt && this instanceof Te && (ei = Ve || Ia(ei)), ei.apply(Sn, Ze);
|
|
9310
9310
|
}
|
|
9311
9311
|
return Te;
|
|
9312
9312
|
}
|
|
@@ -9368,9 +9368,9 @@ Qr.exports;
|
|
|
9368
9368
|
};
|
|
9369
9369
|
}
|
|
9370
9370
|
function Gu(t, i, o, c, g, A, w, k, x, z) {
|
|
9371
|
-
var q = i &
|
|
9371
|
+
var q = i & ee, _ = q ? w : n, ge = q ? n : w, Ee = q ? A : n, Se = q ? n : A;
|
|
9372
9372
|
i |= q ? I : C, i &= ~(q ? C : I), i & Z || (i &= ~(Y | ie));
|
|
9373
|
-
var
|
|
9373
|
+
var Ve = [
|
|
9374
9374
|
t,
|
|
9375
9375
|
i,
|
|
9376
9376
|
g,
|
|
@@ -9381,13 +9381,13 @@ Qr.exports;
|
|
|
9381
9381
|
k,
|
|
9382
9382
|
x,
|
|
9383
9383
|
z
|
|
9384
|
-
], Te = o.apply(n,
|
|
9385
|
-
return so(t) && $u(Te,
|
|
9384
|
+
], Te = o.apply(n, Ve);
|
|
9385
|
+
return so(t) && $u(Te, Ve), Te.placeholder = c, ec(Te, t, i);
|
|
9386
9386
|
}
|
|
9387
9387
|
function $s(t) {
|
|
9388
9388
|
var i = It[t];
|
|
9389
9389
|
return function(o, c) {
|
|
9390
|
-
if (o = En(o), c = c == null ? 0 : Ut(
|
|
9390
|
+
if (o = En(o), c = c == null ? 0 : Ut(De(c), 292), c && eu(o)) {
|
|
9391
9391
|
var g = (it(o) + "e").split("e"), A = i(g[0] + "e" + (+g[1] + c));
|
|
9392
9392
|
return g = (it(A) + "e").split("e"), +(g[0] + "e" + (+g[1] - c));
|
|
9393
9393
|
}
|
|
@@ -9408,7 +9408,7 @@ Qr.exports;
|
|
|
9408
9408
|
if (!x && typeof t != "function")
|
|
9409
9409
|
throw new yn(u);
|
|
9410
9410
|
var z = c ? c.length : 0;
|
|
9411
|
-
if (z || (i &= ~(I | C), c = g = n), w = w === n ? w : Bt(
|
|
9411
|
+
if (z || (i &= ~(I | C), c = g = n), w = w === n ? w : Bt(De(w), 0), k = k === n ? k : De(k), z -= g ? g.length : 0, i & C) {
|
|
9412
9412
|
var q = c, _ = g;
|
|
9413
9413
|
c = g = n;
|
|
9414
9414
|
}
|
|
@@ -9424,12 +9424,12 @@ Qr.exports;
|
|
|
9424
9424
|
w,
|
|
9425
9425
|
k
|
|
9426
9426
|
];
|
|
9427
|
-
if (ge && Nh(Ee, ge), t = Ee[0], i = Ee[1], o = Ee[2], c = Ee[3], g = Ee[4], k = Ee[9] = Ee[9] === n ? x ? 0 : t.length : Bt(Ee[9] - z, 0), !k && i & (
|
|
9427
|
+
if (ge && Nh(Ee, ge), t = Ee[0], i = Ee[1], o = Ee[2], c = Ee[3], g = Ee[4], k = Ee[9] = Ee[9] === n ? x ? 0 : t.length : Bt(Ee[9] - z, 0), !k && i & (ee | N) && (i &= ~(ee | N)), !i || i == Y)
|
|
9428
9428
|
var Se = hh(t, i, o);
|
|
9429
9429
|
else
|
|
9430
|
-
i ==
|
|
9431
|
-
var
|
|
9432
|
-
return ec(
|
|
9430
|
+
i == ee || i == N ? Se = Ah(t, i, k) : (i == I || i == (Y | I)) && !g.length ? Se = yh(t, i, o, c) : Se = kr.apply(n, Ee);
|
|
9431
|
+
var Ve = ge ? Cu : $u;
|
|
9432
|
+
return ec(Ve(Se, Ee), t, i);
|
|
9433
9433
|
}
|
|
9434
9434
|
function Fu(t, i, o, c) {
|
|
9435
9435
|
return t === n || xn(t, Wi[o]) && !rt.call(c, o) ? i : t;
|
|
@@ -9449,9 +9449,9 @@ Qr.exports;
|
|
|
9449
9449
|
return z == i && q == t;
|
|
9450
9450
|
var _ = -1, ge = !0, Ee = o & V ? new Ii() : n;
|
|
9451
9451
|
for (A.set(t, i), A.set(i, t); ++_ < k; ) {
|
|
9452
|
-
var Se = t[_],
|
|
9452
|
+
var Se = t[_], Ve = i[_];
|
|
9453
9453
|
if (c)
|
|
9454
|
-
var Te = w ? c(
|
|
9454
|
+
var Te = w ? c(Ve, Se, _, i, t, A) : c(Se, Ve, _, t, i, A);
|
|
9455
9455
|
if (Te !== n) {
|
|
9456
9456
|
if (Te)
|
|
9457
9457
|
continue;
|
|
@@ -9466,7 +9466,7 @@ Qr.exports;
|
|
|
9466
9466
|
ge = !1;
|
|
9467
9467
|
break;
|
|
9468
9468
|
}
|
|
9469
|
-
} else if (!(Se ===
|
|
9469
|
+
} else if (!(Se === Ve || g(Se, Ve, o, c, A))) {
|
|
9470
9470
|
ge = !1;
|
|
9471
9471
|
break;
|
|
9472
9472
|
}
|
|
@@ -9520,7 +9520,7 @@ Qr.exports;
|
|
|
9520
9520
|
var Ee = A.get(t), Se = A.get(i);
|
|
9521
9521
|
if (Ee && Se)
|
|
9522
9522
|
return Ee == i && Se == t;
|
|
9523
|
-
var
|
|
9523
|
+
var Ve = !0;
|
|
9524
9524
|
A.set(t, i), A.set(i, t);
|
|
9525
9525
|
for (var Te = w; ++_ < x; ) {
|
|
9526
9526
|
ge = k[_];
|
|
@@ -9528,16 +9528,16 @@ Qr.exports;
|
|
|
9528
9528
|
if (c)
|
|
9529
9529
|
var un = w ? c(Ze, qe, ge, i, t, A) : c(qe, Ze, ge, t, i, A);
|
|
9530
9530
|
if (!(un === n ? qe === Ze || g(qe, Ze, o, c, A) : un)) {
|
|
9531
|
-
|
|
9531
|
+
Ve = !1;
|
|
9532
9532
|
break;
|
|
9533
9533
|
}
|
|
9534
9534
|
Te || (Te = ge == "constructor");
|
|
9535
9535
|
}
|
|
9536
|
-
if (
|
|
9536
|
+
if (Ve && !Te) {
|
|
9537
9537
|
var Jt = t.constructor, cn = i.constructor;
|
|
9538
|
-
Jt != cn && "constructor" in t && "constructor" in i && !(typeof Jt == "function" && Jt instanceof Jt && typeof cn == "function" && cn instanceof cn) && (
|
|
9538
|
+
Jt != cn && "constructor" in t && "constructor" in i && !(typeof Jt == "function" && Jt instanceof Jt && typeof cn == "function" && cn instanceof cn) && (Ve = !1);
|
|
9539
9539
|
}
|
|
9540
|
-
return A.delete(t), A.delete(i),
|
|
9540
|
+
return A.delete(t), A.delete(i), Ve;
|
|
9541
9541
|
}
|
|
9542
9542
|
function Zn(t) {
|
|
9543
9543
|
return lo(Qu(t, n, sc), t + "");
|
|
@@ -9756,7 +9756,7 @@ Qr.exports;
|
|
|
9756
9756
|
return i;
|
|
9757
9757
|
}
|
|
9758
9758
|
function Nh(t, i) {
|
|
9759
|
-
var o = t[1], c = i[1], g = o | c, A = g < (Y | ie | U), w = c == U && o ==
|
|
9759
|
+
var o = t[1], c = i[1], g = o | c, A = g < (Y | ie | U), w = c == U && o == ee || c == U && o == P && t[7].length <= i[8] || c == (U | P) && i[7].length <= i[8] && o == ee;
|
|
9760
9760
|
if (!(A || w))
|
|
9761
9761
|
return t;
|
|
9762
9762
|
c & Y && (t[2] = i[2], g |= o & Y ? 0 : Z);
|
|
@@ -9866,7 +9866,7 @@ Qr.exports;
|
|
|
9866
9866
|
return i.__actions__ = Qt(t.__actions__), i.__index__ = t.__index__, i.__values__ = t.__values__, i;
|
|
9867
9867
|
}
|
|
9868
9868
|
function Yh(t, i, o) {
|
|
9869
|
-
(o ? Xt(t, i, o) : i === n) ? i = 1 : i = Bt(
|
|
9869
|
+
(o ? Xt(t, i, o) : i === n) ? i = 1 : i = Bt(De(i), 0);
|
|
9870
9870
|
var c = t == null ? 0 : t.length;
|
|
9871
9871
|
if (!c || i < 1)
|
|
9872
9872
|
return [];
|
|
@@ -9900,11 +9900,11 @@ Qr.exports;
|
|
|
9900
9900
|
});
|
|
9901
9901
|
function Kh(t, i, o) {
|
|
9902
9902
|
var c = t == null ? 0 : t.length;
|
|
9903
|
-
return c ? (i = o || i === n ? 1 :
|
|
9903
|
+
return c ? (i = o || i === n ? 1 : De(i), wn(t, i < 0 ? 0 : i, c)) : [];
|
|
9904
9904
|
}
|
|
9905
9905
|
function qh(t, i, o) {
|
|
9906
9906
|
var c = t == null ? 0 : t.length;
|
|
9907
|
-
return c ? (i = o || i === n ? 1 :
|
|
9907
|
+
return c ? (i = o || i === n ? 1 : De(i), i = c - i, wn(t, 0, i < 0 ? 0 : i)) : [];
|
|
9908
9908
|
}
|
|
9909
9909
|
function Xh(t, i) {
|
|
9910
9910
|
return t && t.length ? Cr(t, xe(i, 3), !0, !0) : [];
|
|
@@ -9920,7 +9920,7 @@ Qr.exports;
|
|
|
9920
9920
|
var c = t == null ? 0 : t.length;
|
|
9921
9921
|
if (!c)
|
|
9922
9922
|
return -1;
|
|
9923
|
-
var g = o == null ? 0 :
|
|
9923
|
+
var g = o == null ? 0 : De(o);
|
|
9924
9924
|
return g < 0 && (g = Bt(c + g, 0)), tr(t, xe(i, 3), g);
|
|
9925
9925
|
}
|
|
9926
9926
|
function rc(t, i, o) {
|
|
@@ -9928,7 +9928,7 @@ Qr.exports;
|
|
|
9928
9928
|
if (!c)
|
|
9929
9929
|
return -1;
|
|
9930
9930
|
var g = c - 1;
|
|
9931
|
-
return o !== n && (g =
|
|
9931
|
+
return o !== n && (g = De(o), g = o < 0 ? Bt(c + g, 0) : Ut(g, c - 1)), tr(t, xe(i, 3), g, !0);
|
|
9932
9932
|
}
|
|
9933
9933
|
function sc(t) {
|
|
9934
9934
|
var i = t == null ? 0 : t.length;
|
|
@@ -9940,7 +9940,7 @@ Qr.exports;
|
|
|
9940
9940
|
}
|
|
9941
9941
|
function Qh(t, i) {
|
|
9942
9942
|
var o = t == null ? 0 : t.length;
|
|
9943
|
-
return o ? (i = i === n ? 1 :
|
|
9943
|
+
return o ? (i = i === n ? 1 : De(i), jt(t, i)) : [];
|
|
9944
9944
|
}
|
|
9945
9945
|
function _h(t) {
|
|
9946
9946
|
for (var i = -1, o = t == null ? 0 : t.length, c = {}; ++i < o; ) {
|
|
@@ -9956,7 +9956,7 @@ Qr.exports;
|
|
|
9956
9956
|
var c = t == null ? 0 : t.length;
|
|
9957
9957
|
if (!c)
|
|
9958
9958
|
return -1;
|
|
9959
|
-
var g = o == null ? 0 :
|
|
9959
|
+
var g = o == null ? 0 : De(o);
|
|
9960
9960
|
return g < 0 && (g = Bt(c + g, 0)), Ki(t, i, g);
|
|
9961
9961
|
}
|
|
9962
9962
|
function eA(t) {
|
|
@@ -9985,10 +9985,10 @@ Qr.exports;
|
|
|
9985
9985
|
if (!c)
|
|
9986
9986
|
return -1;
|
|
9987
9987
|
var g = c;
|
|
9988
|
-
return o !== n && (g =
|
|
9988
|
+
return o !== n && (g = De(o), g = g < 0 ? Bt(c + g, 0) : Ut(g, c - 1)), i === i ? Uf(t, i, g) : tr(t, Gl, g, !0);
|
|
9989
9989
|
}
|
|
9990
9990
|
function sA(t, i) {
|
|
9991
|
-
return t && t.length ? yu(t,
|
|
9991
|
+
return t && t.length ? yu(t, De(i)) : n;
|
|
9992
9992
|
}
|
|
9993
9993
|
var oA = He(lc);
|
|
9994
9994
|
function lc(t, i) {
|
|
@@ -10022,7 +10022,7 @@ Qr.exports;
|
|
|
10022
10022
|
}
|
|
10023
10023
|
function pA(t, i, o) {
|
|
10024
10024
|
var c = t == null ? 0 : t.length;
|
|
10025
|
-
return c ? (o && typeof o != "number" && Xt(t, i, o) ? (i = 0, o = c) : (i = i == null ? 0 :
|
|
10025
|
+
return c ? (o && typeof o != "number" && Xt(t, i, o) ? (i = 0, o = c) : (i = i == null ? 0 : De(i), o = o === n ? c : De(o)), wn(t, i, o)) : [];
|
|
10026
10026
|
}
|
|
10027
10027
|
function gA(t, i) {
|
|
10028
10028
|
return wr(t, i);
|
|
@@ -10065,11 +10065,11 @@ Qr.exports;
|
|
|
10065
10065
|
return i ? wn(t, 1, i) : [];
|
|
10066
10066
|
}
|
|
10067
10067
|
function CA(t, i, o) {
|
|
10068
|
-
return t && t.length ? (i = o || i === n ? 1 :
|
|
10068
|
+
return t && t.length ? (i = o || i === n ? 1 : De(i), wn(t, 0, i < 0 ? 0 : i)) : [];
|
|
10069
10069
|
}
|
|
10070
10070
|
function EA(t, i, o) {
|
|
10071
10071
|
var c = t == null ? 0 : t.length;
|
|
10072
|
-
return c ? (i = o || i === n ? 1 :
|
|
10072
|
+
return c ? (i = o || i === n ? 1 : De(i), i = c - i, wn(t, i < 0 ? 0 : i, c)) : [];
|
|
10073
10073
|
}
|
|
10074
10074
|
function kA(t, i) {
|
|
10075
10075
|
return t && t.length ? Cr(t, xe(i, 3), !1, !0) : [];
|
|
@@ -10214,7 +10214,7 @@ Qr.exports;
|
|
|
10214
10214
|
return jt(Rr(t, i), ye);
|
|
10215
10215
|
}
|
|
10216
10216
|
function ny(t, i, o) {
|
|
10217
|
-
return o = o === n ? 1 :
|
|
10217
|
+
return o = o === n ? 1 : De(o), jt(Rr(t, i), o);
|
|
10218
10218
|
}
|
|
10219
10219
|
function dc(t, i) {
|
|
10220
10220
|
var o = Pe(t) ? An : ui;
|
|
@@ -10228,7 +10228,7 @@ Qr.exports;
|
|
|
10228
10228
|
rt.call(t, o) ? t[o].push(i) : Jn(t, o, [i]);
|
|
10229
10229
|
});
|
|
10230
10230
|
function ay(t, i, o, c) {
|
|
10231
|
-
t = _t(t) ? t : ia(t), o = o && !c ?
|
|
10231
|
+
t = _t(t) ? t : ia(t), o = o && !c ? De(o) : 0;
|
|
10232
10232
|
var g = t.length;
|
|
10233
10233
|
return o < 0 && (o = Bt(g + o, 0)), Dr(t) ? o <= g && t.indexOf(i, o) > -1 : !!g && Ki(t, i, o) > -1;
|
|
10234
10234
|
}
|
|
@@ -10269,7 +10269,7 @@ Qr.exports;
|
|
|
10269
10269
|
return i(t);
|
|
10270
10270
|
}
|
|
10271
10271
|
function gy(t, i, o) {
|
|
10272
|
-
(o ? Xt(t, i, o) : i === n) ? i = 1 : i =
|
|
10272
|
+
(o ? Xt(t, i, o) : i === n) ? i = 1 : i = De(i);
|
|
10273
10273
|
var c = Pe(t) ? Pm : rh;
|
|
10274
10274
|
return c(t, i);
|
|
10275
10275
|
}
|
|
@@ -10300,7 +10300,7 @@ Qr.exports;
|
|
|
10300
10300
|
function yy(t, i) {
|
|
10301
10301
|
if (typeof i != "function")
|
|
10302
10302
|
throw new yn(u);
|
|
10303
|
-
return t =
|
|
10303
|
+
return t = De(t), function() {
|
|
10304
10304
|
if (--t < 1)
|
|
10305
10305
|
return i.apply(this, arguments);
|
|
10306
10306
|
};
|
|
@@ -10312,7 +10312,7 @@ Qr.exports;
|
|
|
10312
10312
|
var o;
|
|
10313
10313
|
if (typeof i != "function")
|
|
10314
10314
|
throw new yn(u);
|
|
10315
|
-
return t =
|
|
10315
|
+
return t = De(t), function() {
|
|
10316
10316
|
return --t > 0 && (o = i.apply(this, arguments)), t <= 1 && (i = n), o;
|
|
10317
10317
|
};
|
|
10318
10318
|
}
|
|
@@ -10333,7 +10333,7 @@ Qr.exports;
|
|
|
10333
10333
|
});
|
|
10334
10334
|
function hc(t, i, o) {
|
|
10335
10335
|
i = o ? n : i;
|
|
10336
|
-
var c = Wn(t,
|
|
10336
|
+
var c = Wn(t, ee, n, n, n, n, n, i);
|
|
10337
10337
|
return c.placeholder = hc.placeholder, c;
|
|
10338
10338
|
}
|
|
10339
10339
|
function Ac(t, i, o) {
|
|
@@ -10353,7 +10353,7 @@ Qr.exports;
|
|
|
10353
10353
|
function Se(Ct) {
|
|
10354
10354
|
return z = Ct, k = Ma(qe, i), q ? Ee(Ct) : w;
|
|
10355
10355
|
}
|
|
10356
|
-
function
|
|
10356
|
+
function Ve(Ct) {
|
|
10357
10357
|
var Sn = Ct - x, ei = Ct - z, Dc = i - Sn;
|
|
10358
10358
|
return _ ? Ut(Dc, A - ei) : Dc;
|
|
10359
10359
|
}
|
|
@@ -10365,7 +10365,7 @@ Qr.exports;
|
|
|
10365
10365
|
var Ct = Lr();
|
|
10366
10366
|
if (Te(Ct))
|
|
10367
10367
|
return Ze(Ct);
|
|
10368
|
-
k = Ma(qe,
|
|
10368
|
+
k = Ma(qe, Ve(Ct));
|
|
10369
10369
|
}
|
|
10370
10370
|
function Ze(Ct) {
|
|
10371
10371
|
return k = n, ge && c ? Ee(Ct) : (c = g = n, w);
|
|
@@ -10450,12 +10450,12 @@ Qr.exports;
|
|
|
10450
10450
|
function Oy(t, i) {
|
|
10451
10451
|
if (typeof t != "function")
|
|
10452
10452
|
throw new yn(u);
|
|
10453
|
-
return i = i === n ? i :
|
|
10453
|
+
return i = i === n ? i : De(i), He(t, i);
|
|
10454
10454
|
}
|
|
10455
10455
|
function Iy(t, i) {
|
|
10456
10456
|
if (typeof t != "function")
|
|
10457
10457
|
throw new yn(u);
|
|
10458
|
-
return i = i == null ? 0 : Bt(
|
|
10458
|
+
return i = i == null ? 0 : Bt(De(i), 0), He(function(o) {
|
|
10459
10459
|
var c = o[i], g = pi(o, 0, i);
|
|
10460
10460
|
return c && si(g, c), rn(t, this, g);
|
|
10461
10461
|
});
|
|
@@ -10559,7 +10559,7 @@ Qr.exports;
|
|
|
10559
10559
|
return i == fe || i == Q || i == Fn || i == Je;
|
|
10560
10560
|
}
|
|
10561
10561
|
function bc(t) {
|
|
10562
|
-
return typeof t == "number" && t ==
|
|
10562
|
+
return typeof t == "number" && t == De(t);
|
|
10563
10563
|
}
|
|
10564
10564
|
function jr(t) {
|
|
10565
10565
|
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Me;
|
|
@@ -10647,12 +10647,12 @@ Qr.exports;
|
|
|
10647
10647
|
}
|
|
10648
10648
|
return t === t ? t : 0;
|
|
10649
10649
|
}
|
|
10650
|
-
function
|
|
10650
|
+
function De(t) {
|
|
10651
10651
|
var i = $n(t), o = i % 1;
|
|
10652
10652
|
return i === i ? o ? i - o : i : 0;
|
|
10653
10653
|
}
|
|
10654
10654
|
function Oc(t) {
|
|
10655
|
-
return t ? Bi(
|
|
10655
|
+
return t ? Bi(De(t), 0, we) : 0;
|
|
10656
10656
|
}
|
|
10657
10657
|
function En(t) {
|
|
10658
10658
|
if (typeof t == "number")
|
|
@@ -10673,7 +10673,7 @@ Qr.exports;
|
|
|
10673
10673
|
return Pn(t, $t(t));
|
|
10674
10674
|
}
|
|
10675
10675
|
function av(t) {
|
|
10676
|
-
return t ? Bi(
|
|
10676
|
+
return t ? Bi(De(t), -Me, Me) : t === 0 ? t : 0;
|
|
10677
10677
|
}
|
|
10678
10678
|
function it(t) {
|
|
10679
10679
|
return t == null ? "" : on(t);
|
|
@@ -10867,7 +10867,7 @@ Qr.exports;
|
|
|
10867
10867
|
function Gv(t, i, o) {
|
|
10868
10868
|
t = it(t), i = on(i);
|
|
10869
10869
|
var c = t.length;
|
|
10870
|
-
o = o === n ? c : Bi(
|
|
10870
|
+
o = o === n ? c : Bi(De(o), 0, c);
|
|
10871
10871
|
var g = o;
|
|
10872
10872
|
return o -= i.length, o >= 0 && t.slice(o, g) == i;
|
|
10873
10873
|
}
|
|
@@ -10883,7 +10883,7 @@ Qr.exports;
|
|
|
10883
10883
|
return t + (o ? " " : "") + i.toLowerCase();
|
|
10884
10884
|
}), qv = ju("toLowerCase");
|
|
10885
10885
|
function Xv(t, i, o) {
|
|
10886
|
-
t = it(t), i =
|
|
10886
|
+
t = it(t), i = De(i);
|
|
10887
10887
|
var c = i ? Xi(t) : 0;
|
|
10888
10888
|
if (!i || c >= i)
|
|
10889
10889
|
return t;
|
|
@@ -10891,12 +10891,12 @@ Qr.exports;
|
|
|
10891
10891
|
return Ir(gr(g), o) + t + Ir(pr(g), o);
|
|
10892
10892
|
}
|
|
10893
10893
|
function Jv(t, i, o) {
|
|
10894
|
-
t = it(t), i =
|
|
10894
|
+
t = it(t), i = De(i);
|
|
10895
10895
|
var c = i ? Xi(t) : 0;
|
|
10896
10896
|
return i && c < i ? t + Ir(i - c, o) : t;
|
|
10897
10897
|
}
|
|
10898
10898
|
function Wv(t, i, o) {
|
|
10899
|
-
t = it(t), i =
|
|
10899
|
+
t = it(t), i = De(i);
|
|
10900
10900
|
var c = i ? Xi(t) : 0;
|
|
10901
10901
|
return i && c < i ? Ir(i - c, o) + t : t;
|
|
10902
10902
|
}
|
|
@@ -10904,7 +10904,7 @@ Qr.exports;
|
|
|
10904
10904
|
return o || i == null ? i = 0 : i && (i = +i), im(it(t).replace(gs, ""), i || 0);
|
|
10905
10905
|
}
|
|
10906
10906
|
function Qv(t, i, o) {
|
|
10907
|
-
return (o ? Xt(t, i, o) : i === n) ? i = 1 : i =
|
|
10907
|
+
return (o ? Xt(t, i, o) : i === n) ? i = 1 : i = De(i), Ks(it(t), i);
|
|
10908
10908
|
}
|
|
10909
10909
|
function _v() {
|
|
10910
10910
|
var t = arguments, i = it(t[0]);
|
|
@@ -10920,7 +10920,7 @@ Qr.exports;
|
|
|
10920
10920
|
return t + (o ? " " : "") + yo(i);
|
|
10921
10921
|
});
|
|
10922
10922
|
function nb(t, i, o) {
|
|
10923
|
-
return t = it(t), o = o == null ? 0 : Bi(
|
|
10923
|
+
return t = it(t), o = o == null ? 0 : Bi(De(o), 0, t.length), i = on(i), t.slice(o, o + i.length) == i;
|
|
10924
10924
|
}
|
|
10925
10925
|
function ib(t, i, o) {
|
|
10926
10926
|
var c = f.templateSettings;
|
|
@@ -10955,12 +10955,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
10955
10955
|
` : `;
|
|
10956
10956
|
`) + _ + `return __p
|
|
10957
10957
|
}`;
|
|
10958
|
-
var
|
|
10958
|
+
var Ve = Pc(function() {
|
|
10959
10959
|
return et(A, Ee + "return " + _).apply(n, w);
|
|
10960
10960
|
});
|
|
10961
|
-
if (
|
|
10962
|
-
throw
|
|
10963
|
-
return
|
|
10961
|
+
if (Ve.source = _, fo(Ve))
|
|
10962
|
+
throw Ve;
|
|
10963
|
+
return Ve;
|
|
10964
10964
|
}
|
|
10965
10965
|
function ab(t) {
|
|
10966
10966
|
return it(t).toLowerCase();
|
|
@@ -10996,7 +10996,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
10996
10996
|
var o = Ae, c = me;
|
|
10997
10997
|
if (ht(i)) {
|
|
10998
10998
|
var g = "separator" in i ? i.separator : g;
|
|
10999
|
-
o = "length" in i ?
|
|
10999
|
+
o = "length" in i ? De(i.length) : o, c = "omission" in i ? on(i.omission) : c;
|
|
11000
11000
|
}
|
|
11001
11001
|
t = it(t);
|
|
11002
11002
|
var A = t.length;
|
|
@@ -11114,7 +11114,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
11114
11114
|
function Co() {
|
|
11115
11115
|
}
|
|
11116
11116
|
function Eb(t) {
|
|
11117
|
-
return t =
|
|
11117
|
+
return t = De(t), He(function(i) {
|
|
11118
11118
|
return yu(i, t);
|
|
11119
11119
|
});
|
|
11120
11120
|
}
|
|
@@ -11144,7 +11144,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
11144
11144
|
return !0;
|
|
11145
11145
|
}
|
|
11146
11146
|
function Lb(t, i) {
|
|
11147
|
-
if (t =
|
|
11147
|
+
if (t = De(t), t < 1 || t > Me)
|
|
11148
11148
|
return [];
|
|
11149
11149
|
var o = we, c = Ut(t, we);
|
|
11150
11150
|
i = xe(i), t -= we;
|
|
@@ -11193,7 +11193,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
11193
11193
|
function Zb(t, i) {
|
|
11194
11194
|
return t && t.length ? Is(t, xe(i, 2)) : 0;
|
|
11195
11195
|
}
|
|
11196
|
-
return f.after = yy, f.ary = gc, f.assign = rv, f.assignIn = Bc, f.assignInWith = Ur, f.assignWith = sv, f.at = ov, f.before = fc, f.bind = po, f.bindAll = pb, f.bindKey = mc, f.castArray = Sy, f.chain = cc, f.chunk = Yh, f.compact = Vh, f.concat = Gh, f.cond = gb, f.conforms = fb, f.constant = vo, f.countBy = WA, f.create = lv, f.curry = hc, f.curryRight = Ac, f.debounce = yc, f.defaults = uv, f.defaultsDeep = cv, f.defer = vy, f.delay = by, f.difference = Hh, f.differenceBy = Fh, f.differenceWith = zh, f.drop = Kh, f.dropRight = qh, f.dropRightWhile = Xh, f.dropWhile = Jh, f.fill = Wh, f.filter = QA, f.flatMap = ey, f.flatMapDeep = ty, f.flatMapDepth = ny, f.flatten = sc, f.flattenDeep = Zh, f.flattenDepth = Qh, f.flip = wy, f.flow = hb, f.flowRight = Ab, f.fromPairs = _h, f.functions = Av, f.functionsIn = yv, f.groupBy = iy, f.initial = eA, f.intersection = tA, f.intersectionBy = nA, f.intersectionWith = iA, f.invert = bv, f.invertBy = wv, f.invokeMap = ry, f.iteratee = bo, f.keyBy = sy, f.keys = Tt, f.keysIn = $t, f.map = Rr, f.mapKeys = Ev, f.mapValues = kv, f.matches = yb, f.matchesProperty = vb, f.memoize = Nr, f.merge = Ov, f.mergeWith = Mc, f.method = bb, f.methodOf = wb, f.mixin = wo, f.negate = Pr, f.nthArg = Eb, f.omit = Iv, f.omitBy = Bv, f.once = Cy, f.orderBy = oy, f.over = kb, f.overArgs = Ey, f.overEvery = Ob, f.overSome = Ib, f.partial = go, f.partialRight = vc, f.partition = ly, f.pick = Mv, f.pickBy = xc, f.property = jc, f.propertyOf = Bb, f.pull = oA, f.pullAll = lc, f.pullAllBy = lA, f.pullAllWith = uA, f.pullAt = cA, f.range = Mb, f.rangeRight = xb, f.rearg = ky, f.reject = dy, f.remove = dA, f.rest = Oy, f.reverse = uo, f.sampleSize = gy, f.set = Sv, f.setWith = Tv, f.shuffle = fy, f.slice = pA, f.sortBy = Ay, f.sortedUniq = vA, f.sortedUniqBy = bA, f.split = eb, f.spread = Iy, f.tail = wA, f.take = CA, f.takeRight = EA, f.takeRightWhile = kA, f.takeWhile = OA, f.tap = VA, f.throttle = By, f.thru = Tr, f.toArray = kc, f.toPairs = Sc, f.toPairsIn = Tc, f.toPath = Nb, f.toPlainObject = Ic, f.transform = Rv, f.unary = My, f.union = IA, f.unionBy = BA, f.unionWith = MA, f.uniq = xA, f.uniqBy = SA, f.uniqWith = TA, f.unset = Lv, f.unzip = co, f.unzipWith = uc, f.update = Nv, f.updateWith = Pv, f.values = ia, f.valuesIn = jv, f.without = RA, f.words = Nc, f.wrap = xy, f.xor = LA, f.xorBy = NA, f.xorWith = PA, f.zip = jA, f.zipObject = DA, f.zipObjectDeep = UA, f.zipWith = YA, f.entries = Sc, f.entriesIn = Tc, f.extend = Bc, f.extendWith = Ur, wo(f, f), f.add = jb, f.attempt = Pc, f.camelCase = Vv, f.capitalize = Rc, f.ceil = Db, f.clamp = Dv, f.clone = Ty, f.cloneDeep = Ly, f.cloneDeepWith = Ny, f.cloneWith = Ry, f.conformsTo = Py, f.deburr = Lc, f.defaultTo = mb, f.divide = Ub, f.endsWith = Gv, f.eq = xn, f.escape = Hv, f.escapeRegExp = Fv, f.every = ZA, f.find = _A, f.findIndex = ac, f.findKey = dv, f.findLast = $A, f.findLastIndex = rc, f.findLastKey = pv, f.floor = Yb, f.forEach = dc, f.forEachRight = pc, f.forIn = gv, f.forInRight = fv, f.forOwn = mv, f.forOwnRight = hv, f.get = ho, f.gt = jy, f.gte = Dy, f.has = vv, f.hasIn = Ao, f.head = oc, f.identity = en, f.includes = ay, f.indexOf = $h, f.inRange = Uv, f.invoke = Cv, f.isArguments = Ti, f.isArray = Pe, f.isArrayBuffer = Uy, f.isArrayLike = _t, f.isArrayLikeObject = wt, f.isBoolean = Yy, f.isBuffer = gi, f.isDate = Vy, f.isElement = Gy, f.isEmpty = Hy, f.isEqual = Fy, f.isEqualWith = zy, f.isError = fo, f.isFinite = Ky, f.isFunction = _n, f.isInteger = bc, f.isLength = jr, f.isMap = wc, f.isMatch = qy, f.isMatchWith = Xy, f.isNaN = Jy, f.isNative = Wy, f.isNil = Qy, f.isNull = Zy, f.isNumber = Cc, f.isObject = ht, f.isObjectLike = vt, f.isPlainObject = xa, f.isRegExp = mo, f.isSafeInteger = _y, f.isSet = Ec, f.isString = Dr, f.isSymbol = ln, f.isTypedArray = na, f.isUndefined = $y, f.isWeakMap = ev, f.isWeakSet = tv, f.join = aA, f.kebabCase = zv, f.last = Cn, f.lastIndexOf = rA, f.lowerCase = Kv, f.lowerFirst = qv, f.lt = nv, f.lte = iv, f.max = Vb, f.maxBy = Gb, f.mean = Hb, f.meanBy = Fb, f.min = zb, f.minBy = Kb, f.stubArray = Eo, f.stubFalse = ko, f.stubObject = Sb, f.stubString = Tb, f.stubTrue = Rb, f.multiply = qb, f.nth = sA, f.noConflict = Cb, f.noop = Co, f.now = Lr, f.pad = Xv, f.padEnd = Jv, f.padStart = Wv, f.parseInt = Zv, f.random = Yv, f.reduce = uy, f.reduceRight = cy, f.repeat = Qv, f.replace = _v, f.result = xv, f.round = Xb, f.runInContext = M, f.sample = py, f.size = my, f.snakeCase = $v, f.some = hy, f.sortedIndex = gA, f.sortedIndexBy = fA, f.sortedIndexOf = mA, f.sortedLastIndex = hA, f.sortedLastIndexBy = AA, f.sortedLastIndexOf = yA, f.startCase = tb, f.startsWith = nb, f.subtract = Jb, f.sum = Wb, f.sumBy = Zb, f.template = ib, f.times = Lb, f.toFinite = $n, f.toInteger =
|
|
11196
|
+
return f.after = yy, f.ary = gc, f.assign = rv, f.assignIn = Bc, f.assignInWith = Ur, f.assignWith = sv, f.at = ov, f.before = fc, f.bind = po, f.bindAll = pb, f.bindKey = mc, f.castArray = Sy, f.chain = cc, f.chunk = Yh, f.compact = Vh, f.concat = Gh, f.cond = gb, f.conforms = fb, f.constant = vo, f.countBy = WA, f.create = lv, f.curry = hc, f.curryRight = Ac, f.debounce = yc, f.defaults = uv, f.defaultsDeep = cv, f.defer = vy, f.delay = by, f.difference = Hh, f.differenceBy = Fh, f.differenceWith = zh, f.drop = Kh, f.dropRight = qh, f.dropRightWhile = Xh, f.dropWhile = Jh, f.fill = Wh, f.filter = QA, f.flatMap = ey, f.flatMapDeep = ty, f.flatMapDepth = ny, f.flatten = sc, f.flattenDeep = Zh, f.flattenDepth = Qh, f.flip = wy, f.flow = hb, f.flowRight = Ab, f.fromPairs = _h, f.functions = Av, f.functionsIn = yv, f.groupBy = iy, f.initial = eA, f.intersection = tA, f.intersectionBy = nA, f.intersectionWith = iA, f.invert = bv, f.invertBy = wv, f.invokeMap = ry, f.iteratee = bo, f.keyBy = sy, f.keys = Tt, f.keysIn = $t, f.map = Rr, f.mapKeys = Ev, f.mapValues = kv, f.matches = yb, f.matchesProperty = vb, f.memoize = Nr, f.merge = Ov, f.mergeWith = Mc, f.method = bb, f.methodOf = wb, f.mixin = wo, f.negate = Pr, f.nthArg = Eb, f.omit = Iv, f.omitBy = Bv, f.once = Cy, f.orderBy = oy, f.over = kb, f.overArgs = Ey, f.overEvery = Ob, f.overSome = Ib, f.partial = go, f.partialRight = vc, f.partition = ly, f.pick = Mv, f.pickBy = xc, f.property = jc, f.propertyOf = Bb, f.pull = oA, f.pullAll = lc, f.pullAllBy = lA, f.pullAllWith = uA, f.pullAt = cA, f.range = Mb, f.rangeRight = xb, f.rearg = ky, f.reject = dy, f.remove = dA, f.rest = Oy, f.reverse = uo, f.sampleSize = gy, f.set = Sv, f.setWith = Tv, f.shuffle = fy, f.slice = pA, f.sortBy = Ay, f.sortedUniq = vA, f.sortedUniqBy = bA, f.split = eb, f.spread = Iy, f.tail = wA, f.take = CA, f.takeRight = EA, f.takeRightWhile = kA, f.takeWhile = OA, f.tap = VA, f.throttle = By, f.thru = Tr, f.toArray = kc, f.toPairs = Sc, f.toPairsIn = Tc, f.toPath = Nb, f.toPlainObject = Ic, f.transform = Rv, f.unary = My, f.union = IA, f.unionBy = BA, f.unionWith = MA, f.uniq = xA, f.uniqBy = SA, f.uniqWith = TA, f.unset = Lv, f.unzip = co, f.unzipWith = uc, f.update = Nv, f.updateWith = Pv, f.values = ia, f.valuesIn = jv, f.without = RA, f.words = Nc, f.wrap = xy, f.xor = LA, f.xorBy = NA, f.xorWith = PA, f.zip = jA, f.zipObject = DA, f.zipObjectDeep = UA, f.zipWith = YA, f.entries = Sc, f.entriesIn = Tc, f.extend = Bc, f.extendWith = Ur, wo(f, f), f.add = jb, f.attempt = Pc, f.camelCase = Vv, f.capitalize = Rc, f.ceil = Db, f.clamp = Dv, f.clone = Ty, f.cloneDeep = Ly, f.cloneDeepWith = Ny, f.cloneWith = Ry, f.conformsTo = Py, f.deburr = Lc, f.defaultTo = mb, f.divide = Ub, f.endsWith = Gv, f.eq = xn, f.escape = Hv, f.escapeRegExp = Fv, f.every = ZA, f.find = _A, f.findIndex = ac, f.findKey = dv, f.findLast = $A, f.findLastIndex = rc, f.findLastKey = pv, f.floor = Yb, f.forEach = dc, f.forEachRight = pc, f.forIn = gv, f.forInRight = fv, f.forOwn = mv, f.forOwnRight = hv, f.get = ho, f.gt = jy, f.gte = Dy, f.has = vv, f.hasIn = Ao, f.head = oc, f.identity = en, f.includes = ay, f.indexOf = $h, f.inRange = Uv, f.invoke = Cv, f.isArguments = Ti, f.isArray = Pe, f.isArrayBuffer = Uy, f.isArrayLike = _t, f.isArrayLikeObject = wt, f.isBoolean = Yy, f.isBuffer = gi, f.isDate = Vy, f.isElement = Gy, f.isEmpty = Hy, f.isEqual = Fy, f.isEqualWith = zy, f.isError = fo, f.isFinite = Ky, f.isFunction = _n, f.isInteger = bc, f.isLength = jr, f.isMap = wc, f.isMatch = qy, f.isMatchWith = Xy, f.isNaN = Jy, f.isNative = Wy, f.isNil = Qy, f.isNull = Zy, f.isNumber = Cc, f.isObject = ht, f.isObjectLike = vt, f.isPlainObject = xa, f.isRegExp = mo, f.isSafeInteger = _y, f.isSet = Ec, f.isString = Dr, f.isSymbol = ln, f.isTypedArray = na, f.isUndefined = $y, f.isWeakMap = ev, f.isWeakSet = tv, f.join = aA, f.kebabCase = zv, f.last = Cn, f.lastIndexOf = rA, f.lowerCase = Kv, f.lowerFirst = qv, f.lt = nv, f.lte = iv, f.max = Vb, f.maxBy = Gb, f.mean = Hb, f.meanBy = Fb, f.min = zb, f.minBy = Kb, f.stubArray = Eo, f.stubFalse = ko, f.stubObject = Sb, f.stubString = Tb, f.stubTrue = Rb, f.multiply = qb, f.nth = sA, f.noConflict = Cb, f.noop = Co, f.now = Lr, f.pad = Xv, f.padEnd = Jv, f.padStart = Wv, f.parseInt = Zv, f.random = Yv, f.reduce = uy, f.reduceRight = cy, f.repeat = Qv, f.replace = _v, f.result = xv, f.round = Xb, f.runInContext = M, f.sample = py, f.size = my, f.snakeCase = $v, f.some = hy, f.sortedIndex = gA, f.sortedIndexBy = fA, f.sortedIndexOf = mA, f.sortedLastIndex = hA, f.sortedLastIndexBy = AA, f.sortedLastIndexOf = yA, f.startCase = tb, f.startsWith = nb, f.subtract = Jb, f.sum = Wb, f.sumBy = Zb, f.template = ib, f.times = Lb, f.toFinite = $n, f.toInteger = De, f.toLength = Oc, f.toLower = ab, f.toNumber = En, f.toSafeInteger = av, f.toString = it, f.toUpper = rb, f.trim = sb, f.trimEnd = ob, f.trimStart = lb, f.truncate = ub, f.unescape = cb, f.uniqueId = Pb, f.upperCase = db, f.upperFirst = yo, f.each = dc, f.eachRight = pc, f.first = oc, wo(f, function() {
|
|
11197
11197
|
var t = {};
|
|
11198
11198
|
return Nn(f, function(i, o) {
|
|
11199
11199
|
rt.call(f.prototype, o) || (t[o] = i);
|
|
@@ -11202,7 +11202,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
11202
11202
|
f[t].placeholder = f;
|
|
11203
11203
|
}), An(["drop", "take"], function(t, i) {
|
|
11204
11204
|
We.prototype[t] = function(o) {
|
|
11205
|
-
o = o === n ? 1 : Bt(
|
|
11205
|
+
o = o === n ? 1 : Bt(De(o), 0);
|
|
11206
11206
|
var c = this.__filtered__ && !i ? new We(this) : this.clone();
|
|
11207
11207
|
return c.__filtered__ ? c.__takeCount__ = Ut(o, c.__takeCount__) : c.__views__.push({
|
|
11208
11208
|
size: Ut(o, we),
|
|
@@ -11243,9 +11243,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
11243
11243
|
}), We.prototype.reject = function(t) {
|
|
11244
11244
|
return this.filter(Pr(xe(t)));
|
|
11245
11245
|
}, We.prototype.slice = function(t, i) {
|
|
11246
|
-
t =
|
|
11246
|
+
t = De(t);
|
|
11247
11247
|
var o = this;
|
|
11248
|
-
return o.__filtered__ && (t > 0 || i < 0) ? new We(o) : (t < 0 ? o = o.takeRight(-t) : t && (o = o.drop(t)), i !== n && (i =
|
|
11248
|
+
return o.__filtered__ && (t > 0 || i < 0) ? new We(o) : (t < 0 ? o = o.takeRight(-t) : t && (o = o.drop(t)), i !== n && (i = De(i), o = i < 0 ? o.dropRight(-i) : o.take(i - t)), o);
|
|
11249
11249
|
}, We.prototype.takeRightWhile = function(t) {
|
|
11250
11250
|
return this.reverse().takeWhile(t).reverse();
|
|
11251
11251
|
}, We.prototype.toArray = function() {
|
|
@@ -11258,13 +11258,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
11258
11258
|
return c && ge ? Ze[0] : Ze;
|
|
11259
11259
|
};
|
|
11260
11260
|
q && o && typeof z == "function" && z.length != 1 && (x = q = !1);
|
|
11261
|
-
var ge = this.__chain__, Ee = !!this.__actions__.length, Se = A && !ge,
|
|
11261
|
+
var ge = this.__chain__, Ee = !!this.__actions__.length, Se = A && !ge, Ve = x && !Ee;
|
|
11262
11262
|
if (!A && q) {
|
|
11263
|
-
w =
|
|
11263
|
+
w = Ve ? w : new We(this);
|
|
11264
11264
|
var Te = t.apply(w, k);
|
|
11265
11265
|
return Te.__actions__.push({ func: Tr, args: [_], thisArg: n }), new vn(Te, ge);
|
|
11266
11266
|
}
|
|
11267
|
-
return Se &&
|
|
11267
|
+
return Se && Ve ? t.apply(this, k) : (Te = this.thru(_), Se ? c ? Te.value()[0] : Te.value() : Te);
|
|
11268
11268
|
});
|
|
11269
11269
|
}), An(["pop", "push", "shift", "sort", "splice", "unshift"], function(t) {
|
|
11270
11270
|
var i = ir[t], o = /^(?:push|sort|unshift)$/.test(t) ? "tap" : "thru", c = /^(?:pop|shift)$/.test(t);
|
|
@@ -11615,7 +11615,7 @@ function $I(e, a, n) {
|
|
|
11615
11615
|
["hour", "getHours"],
|
|
11616
11616
|
["minute", "getMinutes"],
|
|
11617
11617
|
["second", "getSeconds"]
|
|
11618
|
-
], E = 0,
|
|
11618
|
+
], E = 0, ee = Z.length; E < ee; E++)
|
|
11619
11619
|
if (p[Z[E][0]] && s[Z[E][0]] !== ie[Z[E][1]]())
|
|
11620
11620
|
return null;
|
|
11621
11621
|
} else if (ie = new Date(Date.UTC(s.year, s.month, s.day, s.hour, s.minute - s.timezoneOffset, s.second, s.millisecond)), s.month > 11 || s.month < 0 || s.day > 31 || s.day < 1 || s.hour > 23 || s.hour < 0 || s.minute > 59 || s.minute < 0 || s.second > 59 || s.second < 0)
|
|
@@ -11905,7 +11905,7 @@ const tt = {
|
|
|
11905
11905
|
}, tB = ["id", "autocomplete", "disabled", "name", "required"];
|
|
11906
11906
|
function nB(e, a, n, r, s, l) {
|
|
11907
11907
|
const u = ii("attributes");
|
|
11908
|
-
return
|
|
11908
|
+
return Ue((y(), O("input", {
|
|
11909
11909
|
id: e.getFieldID(e.schema),
|
|
11910
11910
|
type: "checkbox",
|
|
11911
11911
|
"onUpdate:modelValue": a[0] || (a[0] = (d) => e.value = d),
|
|
@@ -11927,17 +11927,17 @@ const Ge = (e, a) => {
|
|
|
11927
11927
|
}, iB = /* @__PURE__ */ Ge(eB, [["render", nB]]), aB = { class: "wrapper" }, rB = ["disabled"], sB = ["id", "checked", "disabled", "onChange", "name"], oB = ["disabled"], lB = { class: "info" }, uB = /* @__PURE__ */ S("div", { class: "arrow" }, null, -1), cB = { class: "dropList" }, dB = ["id", "checked", "disabled", "onChange", "name"];
|
|
11928
11928
|
function pB(e, a, n, r, s, l) {
|
|
11929
11929
|
const u = ii("attributes");
|
|
11930
|
-
return
|
|
11930
|
+
return Ue((y(), O("div", aB, [
|
|
11931
11931
|
e.schema.listBox ? (y(), O("div", {
|
|
11932
11932
|
key: 0,
|
|
11933
11933
|
class: "listbox form-control",
|
|
11934
11934
|
disabled: e.disabled || null
|
|
11935
11935
|
}, [
|
|
11936
|
-
(y(!0), O(Re, null,
|
|
11936
|
+
(y(!0), O(Re, null, Ye(l.items, (d) => (y(), O("div", {
|
|
11937
11937
|
class: Fe(["list-row", { "is-checked": l.isItemChecked(d) }])
|
|
11938
11938
|
}, [
|
|
11939
11939
|
S("label", null, [
|
|
11940
|
-
|
|
11940
|
+
Ue(S("input", {
|
|
11941
11941
|
id: e.getFieldID(e.schema, !0),
|
|
11942
11942
|
type: "checkbox",
|
|
11943
11943
|
checked: l.isItemChecked(d) || null,
|
|
@@ -11964,11 +11964,11 @@ function pB(e, a, n, r, s, l) {
|
|
|
11964
11964
|
uB
|
|
11965
11965
|
], 2),
|
|
11966
11966
|
S("div", cB, [
|
|
11967
|
-
s.comboExpanded ? (y(!0), O(Re, { key: 0 },
|
|
11967
|
+
s.comboExpanded ? (y(!0), O(Re, { key: 0 }, Ye(l.items, (d) => (y(), O("div", {
|
|
11968
11968
|
class: Fe(["list-row", { "is-checked": l.isItemChecked(d) }])
|
|
11969
11969
|
}, [
|
|
11970
11970
|
S("label", null, [
|
|
11971
|
-
|
|
11971
|
+
Ue(S("input", {
|
|
11972
11972
|
id: e.getFieldID(e.schema, !0),
|
|
11973
11973
|
type: "checkbox",
|
|
11974
11974
|
checked: l.isItemChecked(d) || null,
|
|
@@ -12049,8 +12049,8 @@ const gB = {
|
|
|
12049
12049
|
};
|
|
12050
12050
|
function yB(e, a, n, r, s, l) {
|
|
12051
12051
|
const u = ii("attributes");
|
|
12052
|
-
return
|
|
12053
|
-
|
|
12052
|
+
return Ue((y(), O("div", mB, [
|
|
12053
|
+
Ue(S("input", {
|
|
12054
12054
|
class: Fe(["form-control", e.schema.fieldClasses]),
|
|
12055
12055
|
id: e.getFieldID(e.schema),
|
|
12056
12056
|
type: l.inputType,
|
|
@@ -12194,7 +12194,7 @@ const Md = {
|
|
|
12194
12194
|
}, $p = /* @__PURE__ */ Ge(vB, [["render", yB]]), bB = ["id"];
|
|
12195
12195
|
function wB(e, a, n, r, s, l) {
|
|
12196
12196
|
const u = ii("attributes");
|
|
12197
|
-
return
|
|
12197
|
+
return Ue((y(), O("span", {
|
|
12198
12198
|
id: e.getFieldID(e.schema),
|
|
12199
12199
|
class: Fe(e.schema.fieldClasses)
|
|
12200
12200
|
}, [
|
|
@@ -12208,14 +12208,14 @@ const CB = {
|
|
|
12208
12208
|
}, EB = /* @__PURE__ */ Ge(CB, [["render", wB]]), kB = ["disabled"], OB = ["id", "disabled", "name", "onClick", "value", "checked", "required"];
|
|
12209
12209
|
function IB(e, a, n, r, s, l) {
|
|
12210
12210
|
const u = ii("attributes");
|
|
12211
|
-
return
|
|
12211
|
+
return Ue((y(), O("div", {
|
|
12212
12212
|
class: "radio-list",
|
|
12213
12213
|
disabled: e.disabled || null
|
|
12214
12214
|
}, [
|
|
12215
|
-
(y(!0), O(Re, null,
|
|
12215
|
+
(y(!0), O(Re, null, Ye(l.items, (d) => Ue((y(), O("label", {
|
|
12216
12216
|
class: Fe(l.getItemCssClasses(d))
|
|
12217
12217
|
}, [
|
|
12218
|
-
|
|
12218
|
+
Ue(S("input", {
|
|
12219
12219
|
id: e.getFieldID(e.schema, !0),
|
|
12220
12220
|
type: "radio",
|
|
12221
12221
|
disabled: l.isItemDisabled(d) || null,
|
|
@@ -12290,7 +12290,7 @@ const BB = {
|
|
|
12290
12290
|
}, MB = /* @__PURE__ */ Ge(BB, [["render", IB]]), xB = ["disabled", "name", "id"], SB = ["disabled"], TB = ["label"], RB = ["value"], LB = ["value"];
|
|
12291
12291
|
function NB(e, a, n, r, s, l) {
|
|
12292
12292
|
const u = ii("attributes");
|
|
12293
|
-
return
|
|
12293
|
+
return Ue((y(), O("select", {
|
|
12294
12294
|
class: Fe(["form-control", e.schema.fieldClasses]),
|
|
12295
12295
|
"onUpdate:modelValue": a[0] || (a[0] = (d) => e.value = d),
|
|
12296
12296
|
disabled: e.disabled || null,
|
|
@@ -12302,12 +12302,12 @@ function NB(e, a, n, r, s, l) {
|
|
|
12302
12302
|
disabled: e.schema.required || null,
|
|
12303
12303
|
value: null
|
|
12304
12304
|
}, W(l.selectOptions.noneSelectedText || "<Nothing selected>"), 9, SB)),
|
|
12305
|
-
(y(!0), O(Re, null,
|
|
12305
|
+
(y(!0), O(Re, null, Ye(l.items, (d) => (y(), O(Re, null, [
|
|
12306
12306
|
d.group ? (y(), O("optgroup", {
|
|
12307
12307
|
key: 0,
|
|
12308
12308
|
label: l.getGroupName(d)
|
|
12309
12309
|
}, [
|
|
12310
|
-
d.ops ? (y(!0), O(Re, { key: 0 },
|
|
12310
|
+
d.ops ? (y(!0), O(Re, { key: 0 }, Ye(d.ops, (p) => (y(), O("option", {
|
|
12311
12311
|
value: l.getItemValue(p)
|
|
12312
12312
|
}, W(l.getItemName(p)), 9, RB))), 256)) : se("", !0)
|
|
12313
12313
|
], 8, TB)) : se("", !0),
|
|
@@ -12407,7 +12407,7 @@ const UB = {
|
|
|
12407
12407
|
}, YB = /* @__PURE__ */ Ge(UB, [["render", DB]]), VB = ["id", "disabled", "maxlength", "minlength", "placeholder", "readonly", "required", "rows", "name"];
|
|
12408
12408
|
function GB(e, a, n, r, s, l) {
|
|
12409
12409
|
const u = ii("attributes");
|
|
12410
|
-
return
|
|
12410
|
+
return Ue((y(), O("textarea", {
|
|
12411
12411
|
class: Fe(["form-control", e.schema.fieldClasses]),
|
|
12412
12412
|
"onUpdate:modelValue": a[0] || (a[0] = (d) => e.value = d),
|
|
12413
12413
|
id: e.getFieldID(e.schema),
|
|
@@ -12429,8 +12429,8 @@ const HB = {
|
|
|
12429
12429
|
}, tg = /* @__PURE__ */ Ge(HB, [["render", GB]]), FB = { class: "wrapper" }, zB = ["id", "name", "accept", "multiple", "placeholder", "readonly", "required", "disabled"];
|
|
12430
12430
|
function KB(e, a, n, r, s, l) {
|
|
12431
12431
|
const u = ii("attributes");
|
|
12432
|
-
return
|
|
12433
|
-
|
|
12432
|
+
return Ue((y(), O("div", FB, [
|
|
12433
|
+
Ue(S("input", {
|
|
12434
12434
|
class: "form-control",
|
|
12435
12435
|
id: e.getFieldID(e.schema),
|
|
12436
12436
|
type: "file",
|
|
@@ -12538,7 +12538,7 @@ const ZB = {
|
|
|
12538
12538
|
], -1);
|
|
12539
12539
|
function tM(e, a, n, r, s, l) {
|
|
12540
12540
|
return y(), O("div", _B, [
|
|
12541
|
-
|
|
12541
|
+
Ue(S("input", {
|
|
12542
12542
|
class: "form-control",
|
|
12543
12543
|
type: "text",
|
|
12544
12544
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => e.value = u),
|
|
@@ -12584,7 +12584,7 @@ const xd = "YYYY-MM-DD HH:mm:ss", nM = {
|
|
|
12584
12584
|
}
|
|
12585
12585
|
}, iM = /* @__PURE__ */ Ge(nM, [["render", tM]]), aM = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
12586
12586
|
function rM(e, a, n, r, s, l) {
|
|
12587
|
-
return
|
|
12587
|
+
return Ue((y(), O("input", {
|
|
12588
12588
|
class: "form-control",
|
|
12589
12589
|
type: "text",
|
|
12590
12590
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => e.value = u),
|
|
@@ -12665,7 +12665,7 @@ const sM = {
|
|
|
12665
12665
|
}, oM = /* @__PURE__ */ Ge(sM, [["render", rM]]), lM = { class: "wrapper" }, uM = ["autocomplete", "disabled", "placeholder", "readonly"], cM = ["disabled", "name"];
|
|
12666
12666
|
function dM(e, a, n, r, s, l) {
|
|
12667
12667
|
return y(), O("div", lM, [
|
|
12668
|
-
|
|
12668
|
+
Ue(S("input", {
|
|
12669
12669
|
class: "form-control link",
|
|
12670
12670
|
type: "text",
|
|
12671
12671
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => l.wrappedValue = u),
|
|
@@ -12739,7 +12739,7 @@ const pM = {
|
|
|
12739
12739
|
}
|
|
12740
12740
|
}, gM = /* @__PURE__ */ Ge(pM, [["render", dM]]), fM = ["autocomplete", "disabled", "placeholder", "readonly", "name", "id"];
|
|
12741
12741
|
function mM(e, a, n, r, s, l) {
|
|
12742
|
-
return
|
|
12742
|
+
return Ue((y(), O("input", {
|
|
12743
12743
|
class: "form-control",
|
|
12744
12744
|
type: "text",
|
|
12745
12745
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => e.value = u),
|
|
@@ -12831,7 +12831,7 @@ function bM(e, a, n, r, s, l) {
|
|
|
12831
12831
|
}
|
|
12832
12832
|
const wM = /* @__PURE__ */ Ge(yM, [["render", bM]]), CM = ["autocomplete", "disabled", "placeholder", "readonly", "name"];
|
|
12833
12833
|
function EM(e, a, n, r, s, l) {
|
|
12834
|
-
return
|
|
12834
|
+
return Ue((y(), O("input", {
|
|
12835
12835
|
class: "form-control",
|
|
12836
12836
|
type: "text",
|
|
12837
12837
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => e.value = u),
|
|
@@ -12940,7 +12940,7 @@ const xM = {
|
|
|
12940
12940
|
}
|
|
12941
12941
|
}, SM = /* @__PURE__ */ Ge(xM, [["render", MM]]), TM = ["disabled", "multiple", "title", "name"], RM = ["disabled", "selected"], LM = ["value"];
|
|
12942
12942
|
function NM(e, a, n, r, s, l) {
|
|
12943
|
-
return
|
|
12943
|
+
return Ue((y(), O("select", {
|
|
12944
12944
|
class: "selectpicker",
|
|
12945
12945
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => e.value = u),
|
|
12946
12946
|
disabled: e.disabled || null,
|
|
@@ -12955,7 +12955,7 @@ function NM(e, a, n, r, s, l) {
|
|
|
12955
12955
|
value: null,
|
|
12956
12956
|
selected: e.value == null
|
|
12957
12957
|
}, null, 8, RM)) : se("", !0),
|
|
12958
|
-
(y(!0), O(Re, null,
|
|
12958
|
+
(y(!0), O(Re, null, Ye(l.items, (u) => (y(), O("option", {
|
|
12959
12959
|
value: l.getItemValue(u)
|
|
12960
12960
|
}, W(l.getItemName(u)), 9, LM))), 256))
|
|
12961
12961
|
], 8, TM)), [
|
|
@@ -13087,7 +13087,7 @@ const FM = {
|
|
|
13087
13087
|
}, zM = /* @__PURE__ */ Ge(FM, [["render", HM]]), KM = ["autocomplete", "disabled", "name", "id"], qM = ["data-on", "data-off", "for"], XM = /* @__PURE__ */ S("span", { class: "handle" }, null, -1);
|
|
13088
13088
|
function JM(e, a, n, r, s, l) {
|
|
13089
13089
|
return y(), O("label", null, [
|
|
13090
|
-
|
|
13090
|
+
Ue(S("input", {
|
|
13091
13091
|
type: "checkbox",
|
|
13092
13092
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => e.value = u),
|
|
13093
13093
|
autocomplete: e.schema.autocomplete,
|
|
@@ -13156,8 +13156,8 @@ const WM = {
|
|
|
13156
13156
|
cx
|
|
13157
13157
|
];
|
|
13158
13158
|
function px(e, a, n, r, s, l) {
|
|
13159
|
-
const u =
|
|
13160
|
-
return
|
|
13159
|
+
const u = te("vue-form-generator"), d = ii("attributes");
|
|
13160
|
+
return Ue((y(), O("div", null, [
|
|
13161
13161
|
e.schema.schema ? (y(), O("div", _M, [
|
|
13162
13162
|
X(u, {
|
|
13163
13163
|
model: e.value,
|
|
@@ -13169,10 +13169,10 @@ function px(e, a, n, r, s, l) {
|
|
|
13169
13169
|
id: e.getFieldID(e.schema),
|
|
13170
13170
|
class: Fe(e.schema.fieldClasses)
|
|
13171
13171
|
}, [
|
|
13172
|
-
(y(!0), O(Re, null,
|
|
13172
|
+
(y(!0), O(Re, null, Ye(e.value, (p, m) => (y(), O("tr", { key: m }, [
|
|
13173
13173
|
S("td", null, W(m), 1),
|
|
13174
13174
|
s.keyTypes[m] === "string" ? (y(), O("td", tx, [
|
|
13175
|
-
|
|
13175
|
+
Ue(S("input", {
|
|
13176
13176
|
"onUpdate:modelValue": (v) => e.value[m] = v,
|
|
13177
13177
|
type: "text"
|
|
13178
13178
|
}, null, 8, nx), [
|
|
@@ -13180,7 +13180,7 @@ function px(e, a, n, r, s, l) {
|
|
|
13180
13180
|
])
|
|
13181
13181
|
])) : se("", !0),
|
|
13182
13182
|
s.keyTypes[m] === "boolean" ? (y(), O("td", ix, [
|
|
13183
|
-
|
|
13183
|
+
Ue(S("input", {
|
|
13184
13184
|
"onUpdate:modelValue": (v) => e.value[m] = v,
|
|
13185
13185
|
type: "checkbox"
|
|
13186
13186
|
}, null, 8, ax), [
|
|
@@ -13188,7 +13188,7 @@ function px(e, a, n, r, s, l) {
|
|
|
13188
13188
|
])
|
|
13189
13189
|
])) : se("", !0),
|
|
13190
13190
|
s.keyTypes[m] === "number" ? (y(), O("td", rx, [
|
|
13191
|
-
|
|
13191
|
+
Ue(S("input", {
|
|
13192
13192
|
"onUpdate:modelValue": (v) => e.value[m] = v,
|
|
13193
13193
|
type: "number"
|
|
13194
13194
|
}, null, 8, sx), [
|
|
@@ -13204,12 +13204,12 @@ function px(e, a, n, r, s, l) {
|
|
|
13204
13204
|
])
|
|
13205
13205
|
]))), 128))
|
|
13206
13206
|
], 10, ex),
|
|
13207
|
-
|
|
13207
|
+
Ue(S("select", {
|
|
13208
13208
|
"onUpdate:modelValue": a[0] || (a[0] = (p) => s.newKeyType = p)
|
|
13209
13209
|
}, dx, 512), [
|
|
13210
13210
|
[Fo, s.newKeyType]
|
|
13211
13211
|
]),
|
|
13212
|
-
|
|
13212
|
+
Ue(S("input", {
|
|
13213
13213
|
"onUpdate:modelValue": a[1] || (a[1] = (p) => s.newKeyName = p),
|
|
13214
13214
|
type: "text"
|
|
13215
13215
|
}, null, 512), [
|
|
@@ -13316,12 +13316,12 @@ const ig = /* @__PURE__ */ Ge(QM, [["render", px]]), gx = {
|
|
|
13316
13316
|
class: "hint"
|
|
13317
13317
|
};
|
|
13318
13318
|
function Bx(e, a, n, r, s, l) {
|
|
13319
|
-
const u =
|
|
13319
|
+
const u = te("KIcon"), d = te("KButton"), p = te("vue-form-generator");
|
|
13320
13320
|
return y(), O("div", {
|
|
13321
13321
|
id: e.getFieldID(e.schema),
|
|
13322
13322
|
class: Fe(["object-advanced-wrapper", e.schema.fieldClasses])
|
|
13323
13323
|
}, [
|
|
13324
|
-
(y(!0), O(Re, null,
|
|
13324
|
+
(y(!0), O(Re, null, Ye(e.value, (m, v) => (y(), O("div", {
|
|
13325
13325
|
key: v,
|
|
13326
13326
|
"data-testid": `field-object-key-${v}`
|
|
13327
13327
|
}, [
|
|
@@ -13355,7 +13355,7 @@ function Bx(e, a, n, r, s, l) {
|
|
|
13355
13355
|
onModelUpdated: l.updateModel
|
|
13356
13356
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
13357
13357
|
])) : (y(), O("div", bx, [
|
|
13358
|
-
|
|
13358
|
+
Ue(S("input", {
|
|
13359
13359
|
"onUpdate:modelValue": (b) => e.value[v] = b,
|
|
13360
13360
|
class: "form-control",
|
|
13361
13361
|
placeholder: e.schema.fields && e.schema.fields[0].schema.placeholder,
|
|
@@ -13374,7 +13374,7 @@ function Bx(e, a, n, r, s, l) {
|
|
|
13374
13374
|
class: Fe(["input-wrapper", { indent: l.hasObjectKeys }])
|
|
13375
13375
|
}, [
|
|
13376
13376
|
S("div", kx, [
|
|
13377
|
-
|
|
13377
|
+
Ue(S("input", {
|
|
13378
13378
|
"onUpdate:modelValue": a[0] || (a[0] = (m) => s.newKeyName = m),
|
|
13379
13379
|
class: "form-control",
|
|
13380
13380
|
"data-testid": "keyname-input",
|
|
@@ -13410,7 +13410,7 @@ const rg = /* @__PURE__ */ Ge(gx, [["render", Bx], ["__scopeId", "data-v-22600a2
|
|
|
13410
13410
|
}, Tx = /* @__PURE__ */ Mx(() => /* @__PURE__ */ S("path", {
|
|
13411
13411
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
13412
13412
|
fill: "currentColor"
|
|
13413
|
-
}, null, -1)), Rx = /* @__PURE__ */
|
|
13413
|
+
}, null, -1)), Rx = /* @__PURE__ */ je({
|
|
13414
13414
|
__name: "AddIcon",
|
|
13415
13415
|
props: {
|
|
13416
13416
|
/** The accessibility text provided to screen readers */
|
|
@@ -13509,7 +13509,7 @@ const rg = /* @__PURE__ */ Ge(gx, [["render", Bx], ["__scopeId", "data-v-22600a2
|
|
|
13509
13509
|
}, Dx = /* @__PURE__ */ Nx(() => /* @__PURE__ */ S("path", {
|
|
13510
13510
|
d: "M7 21C6.45 21 5.97917 20.8042 5.5875 20.4125C5.19583 20.0208 5 19.55 5 19V6H4V4H9V3H15V4H20V6H19V19C19 19.55 18.8042 20.0208 18.4125 20.4125C18.0208 20.8042 17.55 21 17 21H7ZM17 6H7V19H17V6ZM9 17H11V8H9V17ZM13 17H15V8H13V17Z",
|
|
13511
13511
|
fill: "currentColor"
|
|
13512
|
-
}, null, -1)), Ux = /* @__PURE__ */
|
|
13512
|
+
}, null, -1)), Ux = /* @__PURE__ */ je({
|
|
13513
13513
|
__name: "TrashIcon",
|
|
13514
13514
|
props: {
|
|
13515
13515
|
/** The accessibility text provided to screen readers */
|
|
@@ -13602,67 +13602,56 @@ const rg = /* @__PURE__ */ Ge(gx, [["render", Bx], ["__scopeId", "data-v-22600a2
|
|
|
13602
13602
|
_: 1
|
|
13603
13603
|
}, 8, ["aria-hidden", "style"]));
|
|
13604
13604
|
}
|
|
13605
|
-
}), ds = /* @__PURE__ */ sg(Ux, [["__scopeId", "data-v-2674553b"]]), Yx = {
|
|
13606
|
-
|
|
13607
|
-
components: { TrashIcon: ds },
|
|
13605
|
+
}), ds = /* @__PURE__ */ sg(Ux, [["__scopeId", "data-v-2674553b"]]), Yx = { class: "array-item" }, Vx = /* @__PURE__ */ je({
|
|
13606
|
+
__name: "FieldArrayItem",
|
|
13608
13607
|
props: {
|
|
13609
13608
|
model: {
|
|
13610
13609
|
type: String,
|
|
13611
|
-
default:
|
|
13610
|
+
default: ""
|
|
13612
13611
|
}
|
|
13613
13612
|
},
|
|
13614
13613
|
emits: ["remove-item"],
|
|
13615
|
-
|
|
13616
|
-
return {
|
|
13617
|
-
|
|
13614
|
+
setup(e) {
|
|
13615
|
+
return (a, n) => {
|
|
13616
|
+
const r = te("KButton");
|
|
13617
|
+
return y(), O("div", Yx, [
|
|
13618
|
+
gt(a.$slots, "default", {}, void 0, !0),
|
|
13619
|
+
X(r, {
|
|
13620
|
+
appearance: "tertiary",
|
|
13621
|
+
class: "delete",
|
|
13622
|
+
onClick: n[0] || (n[0] = (s) => a.$emit("remove-item"))
|
|
13623
|
+
}, {
|
|
13624
|
+
default: T(() => [
|
|
13625
|
+
X(R(ds))
|
|
13626
|
+
]),
|
|
13627
|
+
_: 1
|
|
13628
|
+
})
|
|
13629
|
+
]);
|
|
13618
13630
|
};
|
|
13619
13631
|
}
|
|
13620
|
-
}, Vx = { class: "
|
|
13621
|
-
|
|
13622
|
-
const u = ee("TrashIcon"), d = ee("KButton");
|
|
13623
|
-
return y(), O("div", Vx, [
|
|
13624
|
-
gt(e.$slots, "default", {}, void 0, !0),
|
|
13625
|
-
X(d, {
|
|
13626
|
-
appearance: "tertiary",
|
|
13627
|
-
class: "delete",
|
|
13628
|
-
type: "button",
|
|
13629
|
-
onClick: a[0] || (a[0] = (p) => e.$emit("remove-item"))
|
|
13630
|
-
}, {
|
|
13631
|
-
default: T(() => [
|
|
13632
|
-
X(u)
|
|
13633
|
-
]),
|
|
13634
|
-
_: 1
|
|
13635
|
-
})
|
|
13636
|
-
]);
|
|
13637
|
-
}
|
|
13638
|
-
const og = /* @__PURE__ */ Ge(Yx, [["render", Gx], ["__scopeId", "data-v-d42daeb2"]]), Hx = {
|
|
13639
|
-
name: "FieldArrayMultiItem",
|
|
13632
|
+
}), og = /* @__PURE__ */ Ge(Vx, [["__scopeId", "data-v-ec926551"]]), Gx = (e) => (fn("data-v-27d212bd"), e = e(), mn(), e), Hx = { class: "multi-item-wrapper" }, Fx = /* @__PURE__ */ Gx(() => /* @__PURE__ */ S("hr", null, null, -1)), zx = /* @__PURE__ */ je({
|
|
13633
|
+
__name: "FieldArrayMultiItem",
|
|
13640
13634
|
emits: ["remove-item"],
|
|
13641
|
-
|
|
13642
|
-
return {
|
|
13643
|
-
|
|
13635
|
+
setup(e) {
|
|
13636
|
+
return (a, n) => {
|
|
13637
|
+
const r = te("KButton");
|
|
13638
|
+
return y(), O("div", Hx, [
|
|
13639
|
+
gt(a.$slots, "default", {}, void 0, !0),
|
|
13640
|
+
X(r, {
|
|
13641
|
+
appearance: "danger",
|
|
13642
|
+
class: "delete",
|
|
13643
|
+
onClick: n[0] || (n[0] = (s) => a.$emit("remove-item"))
|
|
13644
|
+
}, {
|
|
13645
|
+
default: T(() => [
|
|
13646
|
+
Be(" - Remove Field ")
|
|
13647
|
+
]),
|
|
13648
|
+
_: 1
|
|
13649
|
+
}),
|
|
13650
|
+
Fx
|
|
13651
|
+
]);
|
|
13644
13652
|
};
|
|
13645
13653
|
}
|
|
13646
|
-
},
|
|
13647
|
-
function qx(e, a, n, r, s, l) {
|
|
13648
|
-
const u = ee("KButton");
|
|
13649
|
-
return y(), O("div", zx, [
|
|
13650
|
-
gt(e.$slots, "default", {}, void 0, !0),
|
|
13651
|
-
X(u, {
|
|
13652
|
-
appearance: "danger",
|
|
13653
|
-
class: "delete",
|
|
13654
|
-
type: "input",
|
|
13655
|
-
onClick: a[0] || (a[0] = (d) => e.$emit("remove-item"))
|
|
13656
|
-
}, {
|
|
13657
|
-
default: T(() => [
|
|
13658
|
-
Be(" - Remove Field ")
|
|
13659
|
-
]),
|
|
13660
|
-
_: 1
|
|
13661
|
-
}),
|
|
13662
|
-
Kx
|
|
13663
|
-
]);
|
|
13664
|
-
}
|
|
13665
|
-
const lg = /* @__PURE__ */ Ge(Hx, [["render", qx], ["__scopeId", "data-v-47ff1f9a"]]), Xx = {
|
|
13654
|
+
}), lg = /* @__PURE__ */ Ge(zx, [["__scopeId", "data-v-27d212bd"]]), Kx = {
|
|
13666
13655
|
name: "FieldMetric",
|
|
13667
13656
|
components: { AddIcon: Lx, TrashIcon: ds },
|
|
13668
13657
|
mixins: [tt],
|
|
@@ -13672,12 +13661,12 @@ const lg = /* @__PURE__ */ Ge(Hx, [["render", qx], ["__scopeId", "data-v-47ff1f9
|
|
|
13672
13661
|
contentVisible: !1
|
|
13673
13662
|
};
|
|
13674
13663
|
}
|
|
13675
|
-
},
|
|
13664
|
+
}, qx = {
|
|
13676
13665
|
key: 0,
|
|
13677
13666
|
class: "content"
|
|
13678
13667
|
};
|
|
13679
|
-
function
|
|
13680
|
-
const u =
|
|
13668
|
+
function Xx(e, a, n, r, s, l) {
|
|
13669
|
+
const u = te("AddIcon"), d = te("TrashIcon"), p = te("KButton");
|
|
13681
13670
|
return y(), O("div", {
|
|
13682
13671
|
class: Fe(["field-dropdown", { active: s.contentVisible }])
|
|
13683
13672
|
}, [
|
|
@@ -13690,7 +13679,7 @@ function Wx(e, a, n, r, s, l) {
|
|
|
13690
13679
|
]),
|
|
13691
13680
|
X(s1, { name: "slide-fade" }, {
|
|
13692
13681
|
default: T(() => [
|
|
13693
|
-
s.contentVisible ? (y(), O("div",
|
|
13682
|
+
s.contentVisible ? (y(), O("div", qx, [
|
|
13694
13683
|
gt(e.$slots, "default"),
|
|
13695
13684
|
X(p, {
|
|
13696
13685
|
appearance: "tertiary",
|
|
@@ -13708,9 +13697,9 @@ function Wx(e, a, n, r, s, l) {
|
|
|
13708
13697
|
})
|
|
13709
13698
|
], 2);
|
|
13710
13699
|
}
|
|
13711
|
-
const ug = /* @__PURE__ */ Ge(
|
|
13712
|
-
function
|
|
13713
|
-
return e ? e.length === 36 && new RegExp(`^${
|
|
13700
|
+
const ug = /* @__PURE__ */ Ge(Kx, [["render", Xx]]), hi = "kong-ui-forms-api", Jx = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}";
|
|
13701
|
+
function Wx(e) {
|
|
13702
|
+
return e ? e.length === 36 && new RegExp(`^${Jx}$`).test(e) : !1;
|
|
13714
13703
|
}
|
|
13715
13704
|
const To = 50, Pi = {
|
|
13716
13705
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
@@ -13718,10 +13707,10 @@ const To = 50, Pi = {
|
|
|
13718
13707
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
13719
13708
|
SET_REFERRAL_VALUE: "SET_REFERRAL_VALUE"
|
|
13720
13709
|
};
|
|
13721
|
-
function
|
|
13710
|
+
function Zx(e, a, n) {
|
|
13722
13711
|
return n ? Pi.SET_REFERRAL_VALUE : e && !a || !e && a ? Pi.UPDATE_ENTITY : e && a ? Pi.CREATE_FROM_ENTITY : Pi.CREATE_NOT_FROM_ENTITY;
|
|
13723
13712
|
}
|
|
13724
|
-
const
|
|
13713
|
+
const Qx = {
|
|
13725
13714
|
mixins: [tt],
|
|
13726
13715
|
inject: [hi],
|
|
13727
13716
|
emits: ["model-updated"],
|
|
@@ -13737,7 +13726,7 @@ const $x = {
|
|
|
13737
13726
|
},
|
|
13738
13727
|
computed: {
|
|
13739
13728
|
fieldState() {
|
|
13740
|
-
return
|
|
13729
|
+
return Zx(this.model[this.schema.model], this.associatedEntity || this.entityId, this.bypassSearch);
|
|
13741
13730
|
},
|
|
13742
13731
|
associatedEntity() {
|
|
13743
13732
|
return this.$route && this.$route.params[this.entity];
|
|
@@ -13791,7 +13780,7 @@ const $x = {
|
|
|
13791
13780
|
return;
|
|
13792
13781
|
this.loading = !0;
|
|
13793
13782
|
const a = [], n = [], r = this.getInputFields(), s = /* @__PURE__ */ new Set();
|
|
13794
|
-
|
|
13783
|
+
Wx(e) && r.includes("id") ? n.push((async () => {
|
|
13795
13784
|
const l = await this.fetchExact(e);
|
|
13796
13785
|
a.push({ ...l, label: this.getSuggestionLabel(l), value: l.id });
|
|
13797
13786
|
})()) : n.push(...r.filter((l) => l !== "id").map(async (l) => {
|
|
@@ -13845,10 +13834,10 @@ const $x = {
|
|
|
13845
13834
|
return n ? e[n] : e.id;
|
|
13846
13835
|
}
|
|
13847
13836
|
}
|
|
13848
|
-
},
|
|
13849
|
-
function
|
|
13850
|
-
const u =
|
|
13851
|
-
return y(), O("div",
|
|
13837
|
+
}, _x = { class: "field-wrap autosuggest" }, $x = ["data-testid", "data-testlabel"], eS = ["data-testid"], tS = { class: "autosuggest__results_message" };
|
|
13838
|
+
function nS(e, a, n, r, s, l) {
|
|
13839
|
+
const u = te("KSelect");
|
|
13840
|
+
return y(), O("div", _x, [
|
|
13852
13841
|
X(u, {
|
|
13853
13842
|
id: e.schema.model,
|
|
13854
13843
|
ref: "suggestion",
|
|
@@ -13869,15 +13858,15 @@ function aS(e, a, n, r, s, l) {
|
|
|
13869
13858
|
class: "first-part",
|
|
13870
13859
|
"data-testid": d.id && `${d.id}-0`,
|
|
13871
13860
|
"data-testlabel": d.label
|
|
13872
|
-
}, W(l.getSuggestionLabel(d).split(" - ")[0]), 9,
|
|
13873
|
-
(y(!0), O(Re, null,
|
|
13861
|
+
}, W(l.getSuggestionLabel(d).split(" - ")[0]), 9, $x),
|
|
13862
|
+
(y(!0), O(Re, null, Ye(l.getSuggestionLabel(d).split(" - ").slice(1), (p, m) => (y(), O("span", {
|
|
13874
13863
|
key: m,
|
|
13875
13864
|
class: "field-span",
|
|
13876
13865
|
"data-testid": d.id && `${d.id}-${m + 1}` || m + 1
|
|
13877
|
-
}, W(p), 9,
|
|
13866
|
+
}, W(p), 9, eS))), 128))
|
|
13878
13867
|
]),
|
|
13879
13868
|
empty: T(() => [
|
|
13880
|
-
S("div",
|
|
13869
|
+
S("div", tS, [
|
|
13881
13870
|
S("span", null, W(s.message), 1)
|
|
13882
13871
|
])
|
|
13883
13872
|
]),
|
|
@@ -13885,43 +13874,43 @@ function aS(e, a, n, r, s, l) {
|
|
|
13885
13874
|
}, 8, ["id", "modelValue", "items", "loading", "placeholder", "onChange", "onQueryChange"])
|
|
13886
13875
|
]);
|
|
13887
13876
|
}
|
|
13888
|
-
const cg = /* @__PURE__ */ Ge(
|
|
13889
|
-
|
|
13890
|
-
components: { TrashIcon: ds },
|
|
13877
|
+
const cg = /* @__PURE__ */ Ge(Qx, [["render", nS], ["__scopeId", "data-v-62760c9d"]]), iS = { class: "array-card-container" }, aS = /* @__PURE__ */ je({
|
|
13878
|
+
__name: "FieldArrayCardContainer",
|
|
13891
13879
|
props: {
|
|
13892
13880
|
model: {
|
|
13893
13881
|
type: Object,
|
|
13894
|
-
default: null
|
|
13882
|
+
default: () => null
|
|
13895
13883
|
},
|
|
13896
13884
|
schema: {
|
|
13897
13885
|
type: Object,
|
|
13898
|
-
default: null
|
|
13886
|
+
default: () => null
|
|
13899
13887
|
}
|
|
13900
13888
|
},
|
|
13901
|
-
emits: ["remove-item"]
|
|
13902
|
-
|
|
13903
|
-
|
|
13904
|
-
|
|
13905
|
-
|
|
13906
|
-
|
|
13907
|
-
|
|
13908
|
-
|
|
13909
|
-
|
|
13910
|
-
|
|
13911
|
-
|
|
13912
|
-
|
|
13913
|
-
|
|
13914
|
-
|
|
13915
|
-
|
|
13916
|
-
|
|
13917
|
-
|
|
13918
|
-
|
|
13919
|
-
|
|
13920
|
-
|
|
13921
|
-
|
|
13922
|
-
|
|
13923
|
-
}
|
|
13924
|
-
|
|
13889
|
+
emits: ["remove-item"],
|
|
13890
|
+
setup(e) {
|
|
13891
|
+
return (a, n) => {
|
|
13892
|
+
const r = te("KCard"), s = te("KButton");
|
|
13893
|
+
return y(), O("div", iS, [
|
|
13894
|
+
X(r, { class: "card" }, {
|
|
13895
|
+
default: T(() => [
|
|
13896
|
+
gt(a.$slots, "default", {}, void 0, !0)
|
|
13897
|
+
]),
|
|
13898
|
+
_: 3
|
|
13899
|
+
}),
|
|
13900
|
+
X(s, {
|
|
13901
|
+
appearance: "tertiary",
|
|
13902
|
+
class: "array-card-remove-button",
|
|
13903
|
+
onClick: n[0] || (n[0] = (l) => a.$emit("remove-item"))
|
|
13904
|
+
}, {
|
|
13905
|
+
default: T(() => [
|
|
13906
|
+
X(R(ds))
|
|
13907
|
+
]),
|
|
13908
|
+
_: 1
|
|
13909
|
+
})
|
|
13910
|
+
]);
|
|
13911
|
+
};
|
|
13912
|
+
}
|
|
13913
|
+
}), dg = /* @__PURE__ */ Ge(aS, [["__scopeId", "data-v-5fa27cb4"]]), rS = {
|
|
13925
13914
|
mixins: [tt],
|
|
13926
13915
|
emits: ["model-updated"],
|
|
13927
13916
|
methods: {
|
|
@@ -13936,14 +13925,14 @@ const dg = /* @__PURE__ */ Ge(rS, [["render", oS], ["__scopeId", "data-v-6870296
|
|
|
13936
13925
|
this.schema.array || (a = a.toString()), this.updateModel(a);
|
|
13937
13926
|
}
|
|
13938
13927
|
}
|
|
13939
|
-
},
|
|
13940
|
-
function
|
|
13941
|
-
return y(), O("div",
|
|
13942
|
-
(y(!0), O(Re, null,
|
|
13928
|
+
}, sS = { class: "selection-group" }, oS = { class: "form-group" }, lS = ["id", "checked", "name", "value"];
|
|
13929
|
+
function uS(e, a, n, r, s, l) {
|
|
13930
|
+
return y(), O("div", sS, [
|
|
13931
|
+
(y(!0), O(Re, null, Ye(e.schema.values, (u, d) => (y(), O("div", {
|
|
13943
13932
|
key: d,
|
|
13944
13933
|
class: "option-group"
|
|
13945
13934
|
}, [
|
|
13946
|
-
S("div",
|
|
13935
|
+
S("div", oS, [
|
|
13947
13936
|
S("label", {
|
|
13948
13937
|
class: Fe(["k-label", u.name])
|
|
13949
13938
|
}, [
|
|
@@ -13955,14 +13944,14 @@ function pS(e, a, n, r, s, l) {
|
|
|
13955
13944
|
type: "radio",
|
|
13956
13945
|
value: u.value,
|
|
13957
13946
|
onChange: a[0] || (a[0] = (...p) => l.onChange && l.onChange(...p))
|
|
13958
|
-
}, null, 40,
|
|
13947
|
+
}, null, 40, lS),
|
|
13959
13948
|
Be(" " + W(u.name), 1)
|
|
13960
13949
|
], 2)
|
|
13961
13950
|
])
|
|
13962
13951
|
]))), 128))
|
|
13963
13952
|
]);
|
|
13964
13953
|
}
|
|
13965
|
-
const pg = /* @__PURE__ */ Ge(
|
|
13954
|
+
const pg = /* @__PURE__ */ Ge(rS, [["render", uS], ["__scopeId", "data-v-7e49acd6"]]), cS = {
|
|
13966
13955
|
name: "FieldArray",
|
|
13967
13956
|
components: {
|
|
13968
13957
|
FieldArrayItem: og,
|
|
@@ -14015,15 +14004,15 @@ const pg = /* @__PURE__ */ Ge(lS, [["render", pS], ["__scopeId", "data-v-7e49acd
|
|
|
14015
14004
|
modelUpdated() {
|
|
14016
14005
|
}
|
|
14017
14006
|
}
|
|
14018
|
-
},
|
|
14019
|
-
function
|
|
14020
|
-
const u =
|
|
14007
|
+
}, dS = ["id"], pS = { key: 1 }, gS = ["onUpdate:modelValue", "aria-labelledby", "type"], fS = ["value", "onClick"], mS = ["onUpdate:modelValue", "aria-labelledby"], hS = ["value", "onClick"];
|
|
14008
|
+
function AS(e, a, n, r, s, l) {
|
|
14009
|
+
const u = te("FieldTextArea"), d = te("KButton");
|
|
14021
14010
|
return e.schema ? (y(), O("div", {
|
|
14022
14011
|
key: 0,
|
|
14023
14012
|
id: e.getFieldID(e.schema),
|
|
14024
14013
|
class: Fe(e.schema.fieldClasses)
|
|
14025
14014
|
}, [
|
|
14026
|
-
(y(!0), O(Re, null,
|
|
14015
|
+
(y(!0), O(Re, null, Ye(e.value, (p, m) => (y(), O("div", {
|
|
14027
14016
|
key: m,
|
|
14028
14017
|
class: Fe(e.schema.fieldItemsClasses)
|
|
14029
14018
|
}, [
|
|
@@ -14042,7 +14031,7 @@ function bS(e, a, n, r, s, l) {
|
|
|
14042
14031
|
}, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
|
|
14043
14032
|
]),
|
|
14044
14033
|
_: 2
|
|
14045
|
-
}, 1064, ["model", "schema", "onRemoveItem"])) : e.schema.items ? (y(), O("span",
|
|
14034
|
+
}, 1064, ["model", "schema", "onRemoveItem"])) : e.schema.items ? (y(), O("span", pS, [
|
|
14046
14035
|
(y(), K(Ot(l.getFieldType(e.schema.items)), {
|
|
14047
14036
|
"form-options": e.formOptions,
|
|
14048
14037
|
model: p,
|
|
@@ -14067,35 +14056,35 @@ function bS(e, a, n, r, s, l) {
|
|
|
14067
14056
|
model: p,
|
|
14068
14057
|
schema: l.generateSchema(e.value, e.schema.items, m),
|
|
14069
14058
|
onModelUpdated: l.modelUpdated
|
|
14070
|
-
}, null, 8, ["aria-labelledby", "form-options", "model", "schema", "onModelUpdated"])) :
|
|
14059
|
+
}, null, 8, ["aria-labelledby", "form-options", "model", "schema", "onModelUpdated"])) : Ue((y(), O("input", oa({
|
|
14071
14060
|
key: 1,
|
|
14072
14061
|
"onUpdate:modelValue": (E) => e.value[m] = E,
|
|
14073
14062
|
"aria-labelledby": e.getLabelId(e.schema)
|
|
14074
14063
|
}, e.schema.inputAttributes, {
|
|
14075
14064
|
type: ((b = e.schema.inputAttributes) == null ? void 0 : b.type) || "text"
|
|
14076
|
-
}), null, 16,
|
|
14065
|
+
}), null, 16, gS)), [
|
|
14077
14066
|
[o1, e.value[m]]
|
|
14078
14067
|
]),
|
|
14079
14068
|
e.schema.showRemoveButton ? (y(), O("input", oa({ key: 2 }, e.schema.removeElementButtonAttributes, {
|
|
14080
14069
|
type: "button",
|
|
14081
14070
|
value: e.schema.removeElementButtonLabel || n.removeElementButtonLabel,
|
|
14082
14071
|
onClick: (E) => l.removeElement(m)
|
|
14083
|
-
}), null, 16,
|
|
14072
|
+
}), null, 16, fS)) : se("", !0)
|
|
14084
14073
|
];
|
|
14085
14074
|
}),
|
|
14086
14075
|
_: 2
|
|
14087
|
-
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) :
|
|
14076
|
+
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : Ue((y(), O("input", oa({ key: 3 }, e.schema.inputAttributes, {
|
|
14088
14077
|
"onUpdate:modelValue": (v) => e.value[m] = v,
|
|
14089
14078
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
14090
14079
|
type: "text"
|
|
14091
|
-
}), null, 16,
|
|
14080
|
+
}), null, 16, mS)), [
|
|
14092
14081
|
[In, e.value[m]]
|
|
14093
14082
|
]),
|
|
14094
14083
|
e.schema.showRemoveButton ? (y(), O("input", oa({ key: 4 }, e.schema.removeElementButtonAttributes, {
|
|
14095
14084
|
type: "button",
|
|
14096
14085
|
value: e.schema.removeElementButtonLabel || n.removeElementButtonLabel,
|
|
14097
14086
|
onClick: (v) => l.removeElement(m)
|
|
14098
|
-
}), null, 16,
|
|
14087
|
+
}), null, 16, hS)) : se("", !0)
|
|
14099
14088
|
], 2))), 128)),
|
|
14100
14089
|
X(d, {
|
|
14101
14090
|
appearance: "tertiary",
|
|
@@ -14109,9 +14098,9 @@ function bS(e, a, n, r, s, l) {
|
|
|
14109
14098
|
]),
|
|
14110
14099
|
_: 1
|
|
14111
14100
|
}, 8, ["class", "data-testid", "onClick"])
|
|
14112
|
-
], 10,
|
|
14101
|
+
], 10, dS)) : se("", !0);
|
|
14113
14102
|
}
|
|
14114
|
-
const
|
|
14103
|
+
const yS = /* @__PURE__ */ Ge(cS, [["render", AS], ["__scopeId", "data-v-1c5fa392"]]), vS = {
|
|
14115
14104
|
mixins: [tt],
|
|
14116
14105
|
emits: ["model-updated"],
|
|
14117
14106
|
data() {
|
|
@@ -14138,19 +14127,19 @@ const wS = /* @__PURE__ */ Ge(gS, [["render", bS], ["__scopeId", "data-v-1c5fa39
|
|
|
14138
14127
|
this.$emit("model-updated", e, a);
|
|
14139
14128
|
}
|
|
14140
14129
|
}
|
|
14141
|
-
},
|
|
14130
|
+
}, bS = {
|
|
14142
14131
|
class: "advanced-field-dropdown-wrapper",
|
|
14143
14132
|
"data-testid": "advanced-field-dropdown-wrapper"
|
|
14144
|
-
},
|
|
14145
|
-
function
|
|
14146
|
-
const u =
|
|
14147
|
-
return y(), O("div",
|
|
14133
|
+
}, wS = { class: "material-icons" };
|
|
14134
|
+
function CS(e, a, n, r, s, l) {
|
|
14135
|
+
const u = te("vue-form-generator");
|
|
14136
|
+
return y(), O("div", bS, [
|
|
14148
14137
|
S("button", {
|
|
14149
14138
|
class: "advanced-field-title",
|
|
14150
14139
|
type: "button",
|
|
14151
14140
|
onClick: a[0] || (a[0] = (...d) => l.handleOpen && l.handleOpen(...d))
|
|
14152
14141
|
}, [
|
|
14153
|
-
S("i",
|
|
14142
|
+
S("i", wS, W(s.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
14154
14143
|
S("span", null, W(l.titleText), 1)
|
|
14155
14144
|
]),
|
|
14156
14145
|
S("div", {
|
|
@@ -14165,7 +14154,7 @@ function OS(e, a, n, r, s, l) {
|
|
|
14165
14154
|
], 2)
|
|
14166
14155
|
]);
|
|
14167
14156
|
}
|
|
14168
|
-
const
|
|
14157
|
+
const ES = /* @__PURE__ */ Ge(vS, [["render", CS], ["__scopeId", "data-v-2d8e71e1"]]), kS = {
|
|
14169
14158
|
mixins: [tt],
|
|
14170
14159
|
emits: ["model-updated"],
|
|
14171
14160
|
data() {
|
|
@@ -14200,32 +14189,32 @@ const IS = /* @__PURE__ */ Ge(CS, [["render", OS], ["__scopeId", "data-v-2d8e71e
|
|
|
14200
14189
|
this.$emit("model-updated", e, a);
|
|
14201
14190
|
}
|
|
14202
14191
|
}
|
|
14203
|
-
},
|
|
14204
|
-
function
|
|
14205
|
-
const u =
|
|
14206
|
-
return y(), O("div",
|
|
14207
|
-
(y(!0), O(Re, null,
|
|
14192
|
+
}, OS = { class: "selection-group" }, IS = { class: "form-group" }, BS = ["value"], MS = { class: "control-help" }, xS = { class: "option-field" }, SS = { class: "option-field-container" };
|
|
14193
|
+
function TS(e, a, n, r, s, l) {
|
|
14194
|
+
const u = te("vue-form-generator");
|
|
14195
|
+
return y(), O("div", OS, [
|
|
14196
|
+
(y(!0), O(Re, null, Ye(e.schema.fields, (d, p) => (y(), O("div", {
|
|
14208
14197
|
key: p,
|
|
14209
14198
|
class: "option-group"
|
|
14210
14199
|
}, [
|
|
14211
|
-
S("div",
|
|
14200
|
+
S("div", IS, [
|
|
14212
14201
|
S("label", {
|
|
14213
14202
|
class: Fe(["k-label", `${d.label}-check`])
|
|
14214
14203
|
}, [
|
|
14215
|
-
|
|
14204
|
+
Ue(S("input", {
|
|
14216
14205
|
"onUpdate:modelValue": a[0] || (a[0] = (m) => s.checkedGroup = m),
|
|
14217
14206
|
class: "k-input",
|
|
14218
14207
|
type: "radio",
|
|
14219
14208
|
value: p
|
|
14220
|
-
}, null, 8,
|
|
14209
|
+
}, null, 8, BS), [
|
|
14221
14210
|
[l1, s.checkedGroup]
|
|
14222
14211
|
]),
|
|
14223
14212
|
Be(" " + W(d.label) + " ", 1),
|
|
14224
|
-
S("div",
|
|
14213
|
+
S("div", MS, W(d.description), 1)
|
|
14225
14214
|
], 2)
|
|
14226
14215
|
]),
|
|
14227
|
-
|
|
14228
|
-
S("div",
|
|
14216
|
+
Ue(S("div", xS, [
|
|
14217
|
+
S("div", SS, [
|
|
14229
14218
|
X(u, {
|
|
14230
14219
|
model: e.model,
|
|
14231
14220
|
options: { helpAsHtml: !0 },
|
|
@@ -14239,7 +14228,7 @@ function NS(e, a, n, r, s, l) {
|
|
|
14239
14228
|
]))), 128))
|
|
14240
14229
|
]);
|
|
14241
14230
|
}
|
|
14242
|
-
const
|
|
14231
|
+
const RS = /* @__PURE__ */ Ge(kS, [["render", TS], ["__scopeId", "data-v-25fe24da"]]), LS = {
|
|
14243
14232
|
mixins: [tt],
|
|
14244
14233
|
emits: ["model-updated"],
|
|
14245
14234
|
methods: {
|
|
@@ -14248,8 +14237,8 @@ const PS = /* @__PURE__ */ Ge(BS, [["render", NS], ["__scopeId", "data-v-25fe24d
|
|
|
14248
14237
|
}
|
|
14249
14238
|
}
|
|
14250
14239
|
};
|
|
14251
|
-
function
|
|
14252
|
-
const u =
|
|
14240
|
+
function NS(e, a, n, r, s, l) {
|
|
14241
|
+
const u = te("KMultiselect");
|
|
14253
14242
|
return y(), K(u, {
|
|
14254
14243
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
14255
14244
|
"data-testid": "field-multiselect",
|
|
@@ -14262,7 +14251,7 @@ function DS(e, a, n, r, s, l) {
|
|
|
14262
14251
|
"onUpdate:modelValue": l.onUpdate
|
|
14263
14252
|
}, null, 8, ["aria-labelledby", "items", "label-attributes", "model-value", "placeholder", "required", "onUpdate:modelValue"]);
|
|
14264
14253
|
}
|
|
14265
|
-
const
|
|
14254
|
+
const PS = /* @__PURE__ */ Ge(LS, [["render", NS]]), jS = {
|
|
14266
14255
|
name: "FieldKeyValuePairs",
|
|
14267
14256
|
components: { TrashIcon: ds },
|
|
14268
14257
|
mixins: [tt],
|
|
@@ -14310,11 +14299,11 @@ const US = /* @__PURE__ */ Ge(jS, [["render", DS]]), YS = {
|
|
|
14310
14299
|
this.pairs.splice(e, 1);
|
|
14311
14300
|
}
|
|
14312
14301
|
}
|
|
14313
|
-
},
|
|
14314
|
-
function
|
|
14315
|
-
const u =
|
|
14316
|
-
return y(), O("div",
|
|
14317
|
-
(y(!0), O(Re, null,
|
|
14302
|
+
}, DS = { class: "key-value-pairs-editor" }, US = ["data-testid", "placeholder", "value", "onInput"], YS = ["data-testid", "placeholder", "value", "onInput"];
|
|
14303
|
+
function VS(e, a, n, r, s, l) {
|
|
14304
|
+
const u = te("TrashIcon"), d = te("KButton");
|
|
14305
|
+
return y(), O("div", DS, [
|
|
14306
|
+
(y(!0), O(Re, null, Ye(s.pairs, (p, m) => (y(), O("div", {
|
|
14318
14307
|
key: m,
|
|
14319
14308
|
class: "pair-item"
|
|
14320
14309
|
}, [
|
|
@@ -14327,7 +14316,7 @@ function FS(e, a, n, r, s, l) {
|
|
|
14327
14316
|
onInput: (v) => {
|
|
14328
14317
|
l.onInput(v, m, "key");
|
|
14329
14318
|
}
|
|
14330
|
-
}, null, 40,
|
|
14319
|
+
}, null, 40, US),
|
|
14331
14320
|
S("input", {
|
|
14332
14321
|
class: "form-control",
|
|
14333
14322
|
"data-testid": `${e.getFieldID(e.schema)}-pair-value-${m}`,
|
|
@@ -14337,7 +14326,7 @@ function FS(e, a, n, r, s, l) {
|
|
|
14337
14326
|
onInput: (v) => {
|
|
14338
14327
|
l.onInput(v, m, "value");
|
|
14339
14328
|
}
|
|
14340
|
-
}, null, 40,
|
|
14329
|
+
}, null, 40, YS),
|
|
14341
14330
|
X(d, {
|
|
14342
14331
|
appearance: "tertiary",
|
|
14343
14332
|
"data-testid": `${e.getFieldID(e.schema)}-remove-pair-${m}`,
|
|
@@ -14365,10 +14354,10 @@ function FS(e, a, n, r, s, l) {
|
|
|
14365
14354
|
}, 8, ["class", "data-testid", "onClick"])
|
|
14366
14355
|
]);
|
|
14367
14356
|
}
|
|
14368
|
-
const
|
|
14357
|
+
const GS = /* @__PURE__ */ Ge(jS, [["render", VS], ["__scopeId", "data-v-29d15375"]]), HS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14369
14358
|
__proto__: null,
|
|
14370
|
-
FieldAdvanced:
|
|
14371
|
-
FieldArray:
|
|
14359
|
+
FieldAdvanced: ES,
|
|
14360
|
+
FieldArray: yS,
|
|
14372
14361
|
FieldArrayCardContainer: dg,
|
|
14373
14362
|
FieldArrayItem: og,
|
|
14374
14363
|
FieldArrayMultiItem: lg,
|
|
@@ -14380,11 +14369,11 @@ const zS = /* @__PURE__ */ Ge(YS, [["render", FS], ["__scopeId", "data-v-29d1537
|
|
|
14380
14369
|
FieldGoogleAddress: oM,
|
|
14381
14370
|
FieldImage: gM,
|
|
14382
14371
|
FieldInput: $p,
|
|
14383
|
-
FieldKeyValuePairs:
|
|
14372
|
+
FieldKeyValuePairs: GS,
|
|
14384
14373
|
FieldLabel: EB,
|
|
14385
14374
|
FieldMasked: AM,
|
|
14386
14375
|
FieldMetric: ug,
|
|
14387
|
-
FieldMultiselect:
|
|
14376
|
+
FieldMultiselect: PS,
|
|
14388
14377
|
FieldNoUiSlider: wM,
|
|
14389
14378
|
FieldObject: ig,
|
|
14390
14379
|
FieldObjectAdvanced: rg,
|
|
@@ -14394,16 +14383,16 @@ const zS = /* @__PURE__ */ Ge(YS, [["render", FS], ["__scopeId", "data-v-29d1537
|
|
|
14394
14383
|
FieldRangeSlider: SM,
|
|
14395
14384
|
FieldSelect: eg,
|
|
14396
14385
|
FieldSelectEx: jM,
|
|
14397
|
-
FieldSelectionGroup:
|
|
14386
|
+
FieldSelectionGroup: RS,
|
|
14398
14387
|
FieldSpectrum: VM,
|
|
14399
14388
|
FieldStaticMap: zM,
|
|
14400
14389
|
FieldSubmit: YB,
|
|
14401
14390
|
FieldTextArea: tg,
|
|
14402
14391
|
FieldUpload: XB,
|
|
14403
14392
|
fieldSwitch: ZM
|
|
14404
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
14393
|
+
}, Symbol.toStringTag, { value: "Module" })), FS = {
|
|
14405
14394
|
name: "FormGroup",
|
|
14406
|
-
components:
|
|
14395
|
+
components: HS,
|
|
14407
14396
|
mixins: [Kp],
|
|
14408
14397
|
props: {
|
|
14409
14398
|
vfg: {
|
|
@@ -14499,24 +14488,24 @@ const zS = /* @__PURE__ */ Ge(YS, [["render", FS], ["__scopeId", "data-v-29d1537
|
|
|
14499
14488
|
return e ? e.replace(/^[cC]onfig\./, "") : "";
|
|
14500
14489
|
}
|
|
14501
14490
|
}
|
|
14502
|
-
}, gg = (e) => (fn("data-v-60b9a75a"), e = e(), mn(), e),
|
|
14491
|
+
}, gg = (e) => (fn("data-v-60b9a75a"), e = e(), mn(), e), zS = ["aria-describedby", "for"], KS = { class: "icon-wrapper" }, qS = ["innerHTML"], XS = /* @__PURE__ */ gg(() => /* @__PURE__ */ S("div", {
|
|
14503
14492
|
class: "help",
|
|
14504
14493
|
role: "button",
|
|
14505
14494
|
tabindex: "0"
|
|
14506
14495
|
}, [
|
|
14507
14496
|
/* @__PURE__ */ S("i", { class: "icon" })
|
|
14508
|
-
], -1)),
|
|
14497
|
+
], -1)), JS = ["innerHTML"], WS = {
|
|
14509
14498
|
key: 0,
|
|
14510
14499
|
class: "link-wrapper"
|
|
14511
|
-
},
|
|
14500
|
+
}, ZS = /* @__PURE__ */ gg(() => /* @__PURE__ */ S("span", { class: "section-header" }, "More info", -1)), QS = { class: "field-wrap" }, _S = {
|
|
14512
14501
|
key: 0,
|
|
14513
14502
|
class: "buttons"
|
|
14514
|
-
},
|
|
14503
|
+
}, $S = ["type", "onClick", "textContent"], eT = ["innerHTML"], tT = {
|
|
14515
14504
|
key: 2,
|
|
14516
14505
|
class: "errors help-block"
|
|
14517
|
-
},
|
|
14518
|
-
function
|
|
14519
|
-
const u =
|
|
14506
|
+
}, nT = ["innerHTML"];
|
|
14507
|
+
function iT(e, a, n, r, s, l) {
|
|
14508
|
+
const u = te("KTooltip"), d = te("KExternalLink");
|
|
14520
14509
|
return y(), O("div", {
|
|
14521
14510
|
class: Fe(["form-group", e.getFieldRowClasses(n.field)])
|
|
14522
14511
|
}, [
|
|
@@ -14526,10 +14515,10 @@ function sT(e, a, n, r, s, l) {
|
|
|
14526
14515
|
class: Fe(["form-group-label", n.field.labelClasses]),
|
|
14527
14516
|
for: l.getFieldID(n.field)
|
|
14528
14517
|
}, [
|
|
14529
|
-
S("div",
|
|
14518
|
+
S("div", KS, [
|
|
14530
14519
|
S("span", {
|
|
14531
14520
|
innerHTML: l.formattedLabel(n.field.label)
|
|
14532
|
-
}, null, 8,
|
|
14521
|
+
}, null, 8, qS),
|
|
14533
14522
|
n.field.help ? (y(), K(u, {
|
|
14534
14523
|
key: 0,
|
|
14535
14524
|
"max-width": "300",
|
|
@@ -14541,28 +14530,28 @@ function sT(e, a, n, r, s, l) {
|
|
|
14541
14530
|
n.options.helpAsHtml ? (y(), O("div", {
|
|
14542
14531
|
key: 0,
|
|
14543
14532
|
innerHTML: n.field.help
|
|
14544
|
-
}, null, 8,
|
|
14533
|
+
}, null, 8, JS)) : (y(), O(Re, { key: 1 }, [
|
|
14545
14534
|
Be(W(n.field.help), 1)
|
|
14546
14535
|
], 64))
|
|
14547
14536
|
]),
|
|
14548
14537
|
default: T(() => [
|
|
14549
|
-
|
|
14538
|
+
XS
|
|
14550
14539
|
]),
|
|
14551
14540
|
_: 1
|
|
14552
14541
|
}, 8, ["tooltip-id"])) : se("", !0)
|
|
14553
14542
|
]),
|
|
14554
|
-
n.field.link ? (y(), O("div",
|
|
14543
|
+
n.field.link ? (y(), O("div", WS, [
|
|
14555
14544
|
X(d, {
|
|
14556
14545
|
href: n.field.link
|
|
14557
14546
|
}, {
|
|
14558
14547
|
default: T(() => [
|
|
14559
|
-
|
|
14548
|
+
ZS
|
|
14560
14549
|
]),
|
|
14561
14550
|
_: 1
|
|
14562
14551
|
}, 8, ["href"])
|
|
14563
14552
|
])) : se("", !0)
|
|
14564
|
-
], 10,
|
|
14565
|
-
S("div",
|
|
14553
|
+
], 10, zS)) : se("", !0),
|
|
14554
|
+
S("div", QS, [
|
|
14566
14555
|
(y(), K(Ot(l.getFieldType(n.field)), oa(e.$attrs, {
|
|
14567
14556
|
ref: "child",
|
|
14568
14557
|
disabled: e.fieldDisabled(n.field) || null,
|
|
@@ -14573,32 +14562,32 @@ function sT(e, a, n, r, s, l) {
|
|
|
14573
14562
|
onModelUpdated: l.onModelUpdated,
|
|
14574
14563
|
onValidated: l.onFieldValidated
|
|
14575
14564
|
}), null, 16, ["disabled", "form-options", "model", "schema", "vfg", "onModelUpdated", "onValidated"])),
|
|
14576
|
-
l.buttonVisibility(n.field) ? (y(), O("div",
|
|
14577
|
-
(y(!0), O(Re, null,
|
|
14565
|
+
l.buttonVisibility(n.field) ? (y(), O("div", _S, [
|
|
14566
|
+
(y(!0), O(Re, null, Ye(n.field.buttons, (p, m) => (y(), O("button", {
|
|
14578
14567
|
key: m,
|
|
14579
14568
|
class: Fe(p.classes),
|
|
14580
14569
|
type: l.getButtonType(p),
|
|
14581
14570
|
onClick: (v) => l.buttonClickHandler(p, n.field, v),
|
|
14582
14571
|
textContent: W(p.label)
|
|
14583
|
-
}, null, 10,
|
|
14572
|
+
}, null, 10, $S))), 128))
|
|
14584
14573
|
])) : se("", !0)
|
|
14585
14574
|
]),
|
|
14586
14575
|
n.field.hint ? (y(), O("div", {
|
|
14587
14576
|
key: 1,
|
|
14588
14577
|
class: "hint",
|
|
14589
14578
|
innerHTML: l.fieldHint(n.field)
|
|
14590
|
-
}, null, 8,
|
|
14591
|
-
l.fieldErrors(n.field).length > 0 ? (y(), O("div",
|
|
14592
|
-
(y(!0), O(Re, null,
|
|
14579
|
+
}, null, 8, eT)) : se("", !0),
|
|
14580
|
+
l.fieldErrors(n.field).length > 0 ? (y(), O("div", tT, [
|
|
14581
|
+
(y(!0), O(Re, null, Ye(l.fieldErrors(n.field), (p, m) => (y(), O("span", {
|
|
14593
14582
|
key: m,
|
|
14594
14583
|
innerHTML: p
|
|
14595
|
-
}, null, 8,
|
|
14584
|
+
}, null, 8, nT))), 128))
|
|
14596
14585
|
])) : se("", !0)
|
|
14597
14586
|
], 2);
|
|
14598
14587
|
}
|
|
14599
|
-
const
|
|
14588
|
+
const aT = /* @__PURE__ */ Ge(FS, [["render", iT], ["__scopeId", "data-v-60b9a75a"]]), rT = {
|
|
14600
14589
|
name: "FormGenerator",
|
|
14601
|
-
components: { formGroup:
|
|
14590
|
+
components: { formGroup: aT },
|
|
14602
14591
|
mixins: [Kp],
|
|
14603
14592
|
props: {
|
|
14604
14593
|
schema: {
|
|
@@ -14730,16 +14719,16 @@ const oT = /* @__PURE__ */ Ge(qS, [["render", sT], ["__scopeId", "data-v-60b9a75
|
|
|
14730
14719
|
});
|
|
14731
14720
|
}
|
|
14732
14721
|
}
|
|
14733
|
-
},
|
|
14722
|
+
}, sT = {
|
|
14734
14723
|
key: 0,
|
|
14735
14724
|
class: "vue-form-generator"
|
|
14736
|
-
},
|
|
14737
|
-
function
|
|
14738
|
-
const u =
|
|
14739
|
-
return n.schema != null ? (y(), O("div",
|
|
14725
|
+
}, oT = { key: 0 };
|
|
14726
|
+
function lT(e, a, n, r, s, l) {
|
|
14727
|
+
const u = te("form-group"), d = te("KCollapse");
|
|
14728
|
+
return n.schema != null ? (y(), O("div", sT, [
|
|
14740
14729
|
n.schema.fields ? (y(), K(Ot(n.tag), { key: 0 }, {
|
|
14741
14730
|
default: T(() => [
|
|
14742
|
-
(y(!0), O(Re, null,
|
|
14731
|
+
(y(!0), O(Re, null, Ye(l.fields, (p) => (y(), O(Re, {
|
|
14743
14732
|
key: p.model
|
|
14744
14733
|
}, [
|
|
14745
14734
|
l.fieldVisible(p) ? (y(), K(u, {
|
|
@@ -14758,7 +14747,7 @@ function dT(e, a, n, r, s, l) {
|
|
|
14758
14747
|
]),
|
|
14759
14748
|
_: 1
|
|
14760
14749
|
})) : se("", !0),
|
|
14761
|
-
(y(!0), O(Re, null,
|
|
14750
|
+
(y(!0), O(Re, null, Ye(l.groups, (p, m) => (y(), O(Re, {
|
|
14762
14751
|
key: `group-${m}`
|
|
14763
14752
|
}, [
|
|
14764
14753
|
p.collapsible !== void 0 && p.collapsible !== !1 ? (y(), K(d, {
|
|
@@ -14776,7 +14765,7 @@ function dT(e, a, n, r, s, l) {
|
|
|
14776
14765
|
class: Fe(e.getFieldRowClasses(p))
|
|
14777
14766
|
}, {
|
|
14778
14767
|
default: T(() => [
|
|
14779
|
-
(y(!0), O(Re, null,
|
|
14768
|
+
(y(!0), O(Re, null, Ye(p.fields, (j) => (y(), O(Re, {
|
|
14780
14769
|
key: j.model
|
|
14781
14770
|
}, [
|
|
14782
14771
|
l.fieldVisible(j) ? (y(), K(u, {
|
|
@@ -14808,7 +14797,7 @@ function dT(e, a, n, r, s, l) {
|
|
|
14808
14797
|
class: Fe(e.getFieldRowClasses(p))
|
|
14809
14798
|
}, {
|
|
14810
14799
|
default: T(() => [
|
|
14811
|
-
(y(!0), O(Re, null,
|
|
14800
|
+
(y(!0), O(Re, null, Ye(p.collapsible.nestedCollapsible.fields, (j) => (y(), O(Re, {
|
|
14812
14801
|
key: j.model
|
|
14813
14802
|
}, [
|
|
14814
14803
|
l.fieldVisible(j) ? (y(), K(u, {
|
|
@@ -14846,8 +14835,8 @@ function dT(e, a, n, r, s, l) {
|
|
|
14846
14835
|
class: Fe(e.getFieldRowClasses(p))
|
|
14847
14836
|
}, {
|
|
14848
14837
|
default: T(() => [
|
|
14849
|
-
p.legend ? (y(), O("legend",
|
|
14850
|
-
(y(!0), O(Re, null,
|
|
14838
|
+
p.legend ? (y(), O("legend", oT, W(p.legend), 1)) : se("", !0),
|
|
14839
|
+
(y(!0), O(Re, null, Ye(p.fields, (v) => (y(), O(Re, {
|
|
14851
14840
|
key: v.model
|
|
14852
14841
|
}, [
|
|
14853
14842
|
l.fieldVisible(v) ? (y(), K(u, {
|
|
@@ -14869,7 +14858,7 @@ function dT(e, a, n, r, s, l) {
|
|
|
14869
14858
|
], 64))), 128))
|
|
14870
14859
|
])) : se("", !0);
|
|
14871
14860
|
}
|
|
14872
|
-
const dn = /* @__PURE__ */ Ge(
|
|
14861
|
+
const dn = /* @__PURE__ */ Ge(rT, [["render", lT]]), uT = {
|
|
14873
14862
|
fields: [{
|
|
14874
14863
|
inputType: "text",
|
|
14875
14864
|
label: "Config.Client Id",
|
|
@@ -14892,7 +14881,7 @@ const dn = /* @__PURE__ */ Ge(lT, [["render", dT]]), pT = {
|
|
|
14892
14881
|
model: "config-auth_methods",
|
|
14893
14882
|
type: "input"
|
|
14894
14883
|
}]
|
|
14895
|
-
},
|
|
14884
|
+
}, cT = {
|
|
14896
14885
|
fields: [{
|
|
14897
14886
|
inputType: "text",
|
|
14898
14887
|
label: "Config.Scopes Claim",
|
|
@@ -14966,7 +14955,7 @@ const dn = /* @__PURE__ */ Ge(lT, [["render", dT]]), pT = {
|
|
|
14966
14955
|
newElementButtonLabelClasses: "auth-array-item-new",
|
|
14967
14956
|
newElementButtonLabel: "+ Add"
|
|
14968
14957
|
}]
|
|
14969
|
-
},
|
|
14958
|
+
}, dT = {
|
|
14970
14959
|
fields: [
|
|
14971
14960
|
{
|
|
14972
14961
|
type: "array",
|
|
@@ -15180,7 +15169,7 @@ const dn = /* @__PURE__ */ Ge(lT, [["render", dT]]), pT = {
|
|
|
15180
15169
|
link: "https://docs.konghq.com/hub/kong-inc/openid-connect/#host-record"
|
|
15181
15170
|
}
|
|
15182
15171
|
]
|
|
15183
|
-
},
|
|
15172
|
+
}, pT = {
|
|
15184
15173
|
name: "OIDCForm",
|
|
15185
15174
|
components: { VueFormGenerator: dn },
|
|
15186
15175
|
props: {
|
|
@@ -15255,10 +15244,10 @@ const dn = /* @__PURE__ */ Ge(lT, [["render", dT]]), pT = {
|
|
|
15255
15244
|
this.init || (this.init = !0, this.globalFields = {
|
|
15256
15245
|
fields: this.formSchema.fields.filter((n) => !n.model.startsWith("config") && n.model !== "tags")
|
|
15257
15246
|
}, this.commonFieldsSchema = {
|
|
15258
|
-
...
|
|
15247
|
+
...uT
|
|
15259
15248
|
}, this.authFieldsSchema = {
|
|
15260
|
-
...
|
|
15261
|
-
}, this.advancedFieldsSchema.fields = this.formSchema.fields.filter((n) => n.model.startsWith("config") && !this.commonFieldsSchema.fields.filter((r) => r.model === n.model).length && !this.authFieldsSchema.fields.filter((r) => r.model === n.model).length || n.model === "tags"), this.advancedFieldsSchema.fields = this.advancedFieldsSchema.fields.map((n) =>
|
|
15249
|
+
...cT
|
|
15250
|
+
}, this.advancedFieldsSchema.fields = this.formSchema.fields.filter((n) => n.model.startsWith("config") && !this.commonFieldsSchema.fields.filter((r) => r.model === n.model).length && !this.authFieldsSchema.fields.filter((r) => r.model === n.model).length || n.model === "tags"), this.advancedFieldsSchema.fields = this.advancedFieldsSchema.fields.map((n) => dT.fields.find((s) => s.model === n.model) || n), this.commonFieldsSchema.fields = this.commonFieldsSchema.fields.filter((n) => n.model !== "config-auth_methods"), this.sessionManagement = this.isEditing ? this.formModel["config-auth_methods"].includes("session") : !1, this.authMethods = [
|
|
15262
15251
|
{
|
|
15263
15252
|
label: "Authorization Code Flow",
|
|
15264
15253
|
value: "authorization_code",
|
|
@@ -15327,9 +15316,9 @@ const dn = /* @__PURE__ */ Ge(lT, [["render", dT]]), pT = {
|
|
|
15327
15316
|
this.formModel["config-auth_methods"] = this.getAuthMethodsValue(a, e), this.onModelUpdated();
|
|
15328
15317
|
}
|
|
15329
15318
|
}
|
|
15330
|
-
}, fa = (e) => (fn("data-v-e7395ff0"), e = e(), mn(), e),
|
|
15331
|
-
function
|
|
15332
|
-
const u =
|
|
15319
|
+
}, fa = (e) => (fn("data-v-e7395ff0"), e = e(), mn(), e), gT = { class: "general-settings" }, fT = { class: "link-wrapper" }, mT = /* @__PURE__ */ fa(() => /* @__PURE__ */ S("span", { class: "section-header" }, "Common Configuration Settings", -1)), hT = /* @__PURE__ */ fa(() => /* @__PURE__ */ S("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)), AT = { class: "auth-method-container" }, yT = { class: "general-settings" }, vT = { class: "link-wrapper" }, bT = /* @__PURE__ */ fa(() => /* @__PURE__ */ S("span", { class: "section-header" }, "Authorization Configuration Settings", -1)), wT = /* @__PURE__ */ fa(() => /* @__PURE__ */ S("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)), CT = { class: "general-settings" }, ET = { class: "link-wrapper" }, kT = /* @__PURE__ */ fa(() => /* @__PURE__ */ S("span", { class: "section-header" }, "Advanced Configuration Settings", -1)), OT = /* @__PURE__ */ fa(() => /* @__PURE__ */ S("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1));
|
|
15320
|
+
function IT(e, a, n, r, s, l) {
|
|
15321
|
+
const u = te("VueFormGenerator"), d = te("KExternalLink"), p = te("KLabel"), m = te("KCheckbox"), v = te("KInputSwitch"), b = te("KTabs");
|
|
15333
15322
|
return y(), O("div", null, [
|
|
15334
15323
|
n.formModel.id && n.isEditing || !n.isEditing ? (y(), K(u, {
|
|
15335
15324
|
key: 0,
|
|
@@ -15341,16 +15330,16 @@ function xT(e, a, n, r, s, l) {
|
|
|
15341
15330
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : se("", !0),
|
|
15342
15331
|
X(b, { tabs: s.tabs }, {
|
|
15343
15332
|
common: T(() => [
|
|
15344
|
-
S("div",
|
|
15345
|
-
S("div",
|
|
15333
|
+
S("div", gT, [
|
|
15334
|
+
S("div", fT, [
|
|
15346
15335
|
X(d, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#important-configuration-parameters" }, {
|
|
15347
15336
|
default: T(() => [
|
|
15348
|
-
|
|
15337
|
+
mT
|
|
15349
15338
|
]),
|
|
15350
15339
|
_: 1
|
|
15351
15340
|
})
|
|
15352
15341
|
]),
|
|
15353
|
-
|
|
15342
|
+
hT,
|
|
15354
15343
|
l.displayForm ? (y(), K(u, {
|
|
15355
15344
|
key: 0,
|
|
15356
15345
|
model: n.formModel,
|
|
@@ -15364,8 +15353,8 @@ function xT(e, a, n, r, s, l) {
|
|
|
15364
15353
|
]),
|
|
15365
15354
|
_: 1
|
|
15366
15355
|
}),
|
|
15367
|
-
S("div",
|
|
15368
|
-
(y(!0), O(Re, null,
|
|
15356
|
+
S("div", AT, [
|
|
15357
|
+
(y(!0), O(Re, null, Ye(s.authMethods, (E) => (y(), O("div", {
|
|
15369
15358
|
key: E.value,
|
|
15370
15359
|
class: "auth-method"
|
|
15371
15360
|
}, [
|
|
@@ -15390,16 +15379,16 @@ function xT(e, a, n, r, s, l) {
|
|
|
15390
15379
|
])
|
|
15391
15380
|
]),
|
|
15392
15381
|
authorization: T(() => [
|
|
15393
|
-
S("div",
|
|
15394
|
-
S("div",
|
|
15382
|
+
S("div", yT, [
|
|
15383
|
+
S("div", vT, [
|
|
15395
15384
|
X(d, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/#authorization" }, {
|
|
15396
15385
|
default: T(() => [
|
|
15397
|
-
|
|
15386
|
+
bT
|
|
15398
15387
|
]),
|
|
15399
15388
|
_: 1
|
|
15400
15389
|
})
|
|
15401
15390
|
]),
|
|
15402
|
-
|
|
15391
|
+
wT,
|
|
15403
15392
|
l.displayForm ? (y(), K(u, {
|
|
15404
15393
|
key: 0,
|
|
15405
15394
|
model: n.formModel,
|
|
@@ -15410,16 +15399,16 @@ function xT(e, a, n, r, s, l) {
|
|
|
15410
15399
|
])
|
|
15411
15400
|
]),
|
|
15412
15401
|
advanced: T(() => [
|
|
15413
|
-
S("div",
|
|
15414
|
-
S("div",
|
|
15402
|
+
S("div", CT, [
|
|
15403
|
+
S("div", ET, [
|
|
15415
15404
|
X(d, { href: "https://docs.konghq.com/hub/kong-inc/openid-connect/" }, {
|
|
15416
15405
|
default: T(() => [
|
|
15417
|
-
|
|
15406
|
+
kT
|
|
15418
15407
|
]),
|
|
15419
15408
|
_: 1
|
|
15420
15409
|
})
|
|
15421
15410
|
]),
|
|
15422
|
-
|
|
15411
|
+
OT,
|
|
15423
15412
|
l.displayForm ? (y(), K(u, {
|
|
15424
15413
|
key: 0,
|
|
15425
15414
|
model: n.formModel,
|
|
@@ -15433,10 +15422,10 @@ function xT(e, a, n, r, s, l) {
|
|
|
15433
15422
|
}, 8, ["tabs"])
|
|
15434
15423
|
]);
|
|
15435
15424
|
}
|
|
15436
|
-
const
|
|
15425
|
+
const BT = /* @__PURE__ */ Ge(pT, [["render", IT], ["__scopeId", "data-v-e7395ff0"]]), MT = {
|
|
15437
15426
|
packageName: "forms"
|
|
15438
15427
|
}, fg = {
|
|
15439
|
-
general:
|
|
15428
|
+
general: MT,
|
|
15440
15429
|
"post-function": {
|
|
15441
15430
|
tags: {
|
|
15442
15431
|
hint: "e.g. tag1, tag2, tag3",
|
|
@@ -15497,7 +15486,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15497
15486
|
newElementButtonLabel: "+ Add"
|
|
15498
15487
|
}
|
|
15499
15488
|
}
|
|
15500
|
-
},
|
|
15489
|
+
}, xT = /* @__PURE__ */ je({
|
|
15501
15490
|
__name: "PostFunction",
|
|
15502
15491
|
props: {
|
|
15503
15492
|
formModel: {
|
|
@@ -15538,7 +15527,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15538
15527
|
onModelUpdated: e.onModelUpdated
|
|
15539
15528
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : se("", !0);
|
|
15540
15529
|
}
|
|
15541
|
-
}),
|
|
15530
|
+
}), ST = /* @__PURE__ */ Ge(xT, [["__scopeId", "data-v-6706c68b"]]), TT = /* @__PURE__ */ je({
|
|
15542
15531
|
__name: "ExitTransformer",
|
|
15543
15532
|
props: {
|
|
15544
15533
|
formModel: {
|
|
@@ -15579,7 +15568,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15579
15568
|
onModelUpdated: e.onModelUpdated
|
|
15580
15569
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : se("", !0);
|
|
15581
15570
|
}
|
|
15582
|
-
}),
|
|
15571
|
+
}), RT = /* @__PURE__ */ Ge(TT, [["__scopeId", "data-v-0fc8ef29"]]), LT = {
|
|
15583
15572
|
fields: [
|
|
15584
15573
|
{
|
|
15585
15574
|
inputType: "text",
|
|
@@ -15614,7 +15603,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15614
15603
|
disabled: !1
|
|
15615
15604
|
}
|
|
15616
15605
|
]
|
|
15617
|
-
},
|
|
15606
|
+
}, NT = {
|
|
15618
15607
|
fields: [
|
|
15619
15608
|
{
|
|
15620
15609
|
type: "input",
|
|
@@ -15636,7 +15625,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15636
15625
|
disabled: !1
|
|
15637
15626
|
}
|
|
15638
15627
|
]
|
|
15639
|
-
},
|
|
15628
|
+
}, PT = {
|
|
15640
15629
|
fields: [
|
|
15641
15630
|
{
|
|
15642
15631
|
type: "input",
|
|
@@ -15667,13 +15656,13 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15667
15656
|
disabled: !1
|
|
15668
15657
|
}
|
|
15669
15658
|
]
|
|
15670
|
-
}, Gi = (e) => (fn("data-v-5b189366"), e = e(), mn(), e),
|
|
15659
|
+
}, Gi = (e) => (fn("data-v-5b189366"), e = e(), mn(), e), jT = { class: "general-settings" }, DT = /* @__PURE__ */ Gi(() => /* @__PURE__ */ S("div", { class: "header-wrapper" }, [
|
|
15671
15660
|
/* @__PURE__ */ S("span", { class: "section-header" }, "General Configuration Settings")
|
|
15672
|
-
], -1)),
|
|
15661
|
+
], -1)), UT = /* @__PURE__ */ Gi(() => /* @__PURE__ */ S("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)), YT = /* @__PURE__ */ Gi(() => /* @__PURE__ */ S("hr", null, null, -1)), VT = { class: "sub-form" }, GT = { class: "general-settings" }, HT = /* @__PURE__ */ Gi(() => /* @__PURE__ */ S("div", { class: "header-wrapper" }, [
|
|
15673
15662
|
/* @__PURE__ */ S("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
15674
|
-
], -1)),
|
|
15663
|
+
], -1)), FT = /* @__PURE__ */ Gi(() => /* @__PURE__ */ S("div", { class: "description" }, " Parameters for setting up storage. ", -1)), zT = { class: "sub-form" }, KT = { class: "general-settings" }, qT = /* @__PURE__ */ Gi(() => /* @__PURE__ */ S("div", { class: "header-wrapper" }, [
|
|
15675
15664
|
/* @__PURE__ */ S("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
15676
|
-
], -1)),
|
|
15665
|
+
], -1)), XT = /* @__PURE__ */ Gi(() => /* @__PURE__ */ S("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)), JT = /* @__PURE__ */ je({
|
|
15677
15666
|
__name: "ACMEForm",
|
|
15678
15667
|
props: {
|
|
15679
15668
|
formModel: {
|
|
@@ -15708,7 +15697,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15708
15697
|
return C;
|
|
15709
15698
|
}), l = J(() => {
|
|
15710
15699
|
var I;
|
|
15711
|
-
const C = H.cloneDeep(
|
|
15700
|
+
const C = H.cloneDeep(LT);
|
|
15712
15701
|
for (const U of C.fields) {
|
|
15713
15702
|
const P = (I = s.value[U.model]) == null ? void 0 : I.help;
|
|
15714
15703
|
U.help === void 0 && typeof P == "string" && (U.help = P);
|
|
@@ -15716,7 +15705,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15716
15705
|
return C;
|
|
15717
15706
|
}), u = J(() => {
|
|
15718
15707
|
var I;
|
|
15719
|
-
const C = H.cloneDeep(
|
|
15708
|
+
const C = H.cloneDeep(NT);
|
|
15720
15709
|
for (const U of C.fields) {
|
|
15721
15710
|
const P = (I = s.value[U.model]) == null ? void 0 : I.help;
|
|
15722
15711
|
U.help === void 0 && typeof P == "string" && (U.help = P);
|
|
@@ -15724,7 +15713,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15724
15713
|
return C;
|
|
15725
15714
|
}), d = J(() => {
|
|
15726
15715
|
var I;
|
|
15727
|
-
const C = H.cloneDeep(
|
|
15716
|
+
const C = H.cloneDeep(PT);
|
|
15728
15717
|
for (const U of C.fields) {
|
|
15729
15718
|
const P = (I = s.value[U.model]) == null ? void 0 : I.help;
|
|
15730
15719
|
U.help === void 0 && typeof P == "string" && (U.help = P);
|
|
@@ -15779,13 +15768,13 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15779
15768
|
Go(() => {
|
|
15780
15769
|
n.value === "zeroSsl" && (a.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
15781
15770
|
});
|
|
15782
|
-
const
|
|
15771
|
+
const ee = (I) => {
|
|
15783
15772
|
n.value = I.value, (I.value === "zeroSsl" || I.value === "other") && (I.value === "zeroSsl" ? a.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90" : a.formModel["config-api_uri"] = "https://acme.example.com/", a.formModel["config-tos_accepted"] = !1), I.value === "letsEncrypt" && (a.formModel["config-api_uri"] = "https://acme-v02.api.letsencrypt.org/directory", a.formModel["config-eab_hmac_key"] = "", a.formModel["config-eab_kid"] = ""), a.onModelUpdated();
|
|
15784
15773
|
}, N = (I, C) => {
|
|
15785
15774
|
C === "config-storage" && (r.value = I), a.onModelUpdated();
|
|
15786
15775
|
};
|
|
15787
15776
|
return (I, C) => {
|
|
15788
|
-
const U =
|
|
15777
|
+
const U = te("KSelect"), P = te("KTabs");
|
|
15789
15778
|
return y(), O("div", null, [
|
|
15790
15779
|
e.formModel.id && e.isEditing || !e.isEditing ? (y(), K(dn, {
|
|
15791
15780
|
key: 0,
|
|
@@ -15797,9 +15786,9 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15797
15786
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : se("", !0),
|
|
15798
15787
|
X(P, { tabs: ie }, {
|
|
15799
15788
|
general: T(() => [
|
|
15800
|
-
S("div",
|
|
15801
|
-
|
|
15802
|
-
|
|
15789
|
+
S("div", jT, [
|
|
15790
|
+
DT,
|
|
15791
|
+
UT,
|
|
15803
15792
|
Y.value ? (y(), K(dn, {
|
|
15804
15793
|
key: 0,
|
|
15805
15794
|
model: e.formModel,
|
|
@@ -15807,14 +15796,14 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15807
15796
|
schema: m.value,
|
|
15808
15797
|
onModelUpdated: e.onModelUpdated
|
|
15809
15798
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : se("", !0),
|
|
15810
|
-
|
|
15799
|
+
YT,
|
|
15811
15800
|
X(U, {
|
|
15812
15801
|
class: "issuer-select",
|
|
15813
15802
|
items: Z,
|
|
15814
15803
|
label: "Issuer",
|
|
15815
|
-
onChange:
|
|
15804
|
+
onChange: ee
|
|
15816
15805
|
}),
|
|
15817
|
-
S("div",
|
|
15806
|
+
S("div", VT, [
|
|
15818
15807
|
n.value === "letsEncrypt" ? (y(), K(dn, {
|
|
15819
15808
|
key: 0,
|
|
15820
15809
|
model: e.formModel,
|
|
@@ -15833,9 +15822,9 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15833
15822
|
])
|
|
15834
15823
|
]),
|
|
15835
15824
|
storage: T(() => [
|
|
15836
|
-
S("div",
|
|
15837
|
-
|
|
15838
|
-
|
|
15825
|
+
S("div", GT, [
|
|
15826
|
+
HT,
|
|
15827
|
+
FT,
|
|
15839
15828
|
Y.value ? (y(), K(dn, {
|
|
15840
15829
|
key: 0,
|
|
15841
15830
|
model: e.formModel,
|
|
@@ -15843,7 +15832,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15843
15832
|
schema: v.value,
|
|
15844
15833
|
onModelUpdated: N
|
|
15845
15834
|
}, null, 8, ["model", "options", "schema"])) : se("", !0),
|
|
15846
|
-
S("div",
|
|
15835
|
+
S("div", zT, [
|
|
15847
15836
|
r.value === "consul" ? (y(), K(dn, {
|
|
15848
15837
|
key: 0,
|
|
15849
15838
|
model: e.formModel,
|
|
@@ -15876,9 +15865,9 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15876
15865
|
])
|
|
15877
15866
|
]),
|
|
15878
15867
|
advanced: T(() => [
|
|
15879
|
-
S("div",
|
|
15880
|
-
|
|
15881
|
-
|
|
15868
|
+
S("div", KT, [
|
|
15869
|
+
qT,
|
|
15870
|
+
XT,
|
|
15882
15871
|
Y.value ? (y(), K(dn, {
|
|
15883
15872
|
key: 0,
|
|
15884
15873
|
model: e.formModel,
|
|
@@ -15893,12 +15882,12 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15893
15882
|
]);
|
|
15894
15883
|
};
|
|
15895
15884
|
}
|
|
15896
|
-
}),
|
|
15885
|
+
}), WT = /* @__PURE__ */ Ge(JT, [["__scopeId", "data-v-5b189366"]]), ZT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15897
15886
|
__proto__: null,
|
|
15898
|
-
ACMEForm:
|
|
15899
|
-
ExitTransformer:
|
|
15900
|
-
OIDCForm:
|
|
15901
|
-
PostFunction:
|
|
15887
|
+
ACMEForm: WT,
|
|
15888
|
+
ExitTransformer: RT,
|
|
15889
|
+
OIDCForm: BT,
|
|
15890
|
+
PostFunction: ST
|
|
15902
15891
|
}, Symbol.toStringTag, { value: "Module" })), Vo = [
|
|
15903
15892
|
"array",
|
|
15904
15893
|
"metric",
|
|
@@ -15918,7 +15907,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15918
15907
|
newElementButtonLabelClasses: "kong-form-new-element-button-label",
|
|
15919
15908
|
itemContainerComponent: "FieldArrayCardContainer",
|
|
15920
15909
|
fieldClasses: "array-card-container-wrapper"
|
|
15921
|
-
},
|
|
15910
|
+
}, QT = {
|
|
15922
15911
|
"config-prompts-prepend": {
|
|
15923
15912
|
...pa,
|
|
15924
15913
|
newElementButtonLabel: "+ Add Message",
|
|
@@ -15971,7 +15960,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15971
15960
|
}
|
|
15972
15961
|
}
|
|
15973
15962
|
}
|
|
15974
|
-
},
|
|
15963
|
+
}, _T = {
|
|
15975
15964
|
"config-templates": {
|
|
15976
15965
|
...pa,
|
|
15977
15966
|
newElementButtonLabel: "+ Add Template",
|
|
@@ -15994,7 +15983,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
15994
15983
|
}
|
|
15995
15984
|
}
|
|
15996
15985
|
}
|
|
15997
|
-
},
|
|
15986
|
+
}, $T = {
|
|
15998
15987
|
enabled: {
|
|
15999
15988
|
type: "switch",
|
|
16000
15989
|
model: "enabled",
|
|
@@ -16064,7 +16053,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16064
16053
|
newElementButtonLabelClasses: "kong-form-new-element-button-label",
|
|
16065
16054
|
itemContainerComponent: "FieldMetric",
|
|
16066
16055
|
fieldClasses: "metrics-wrapper"
|
|
16067
|
-
},
|
|
16056
|
+
}, eR = {
|
|
16068
16057
|
"config-metrics": {
|
|
16069
16058
|
...Wa,
|
|
16070
16059
|
items: {
|
|
@@ -16126,7 +16115,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16126
16115
|
}
|
|
16127
16116
|
}
|
|
16128
16117
|
}
|
|
16129
|
-
},
|
|
16118
|
+
}, tR = {
|
|
16130
16119
|
"config-strategy": {
|
|
16131
16120
|
label: "Config.Strategy",
|
|
16132
16121
|
type: "select",
|
|
@@ -16158,14 +16147,14 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16158
16147
|
}
|
|
16159
16148
|
}
|
|
16160
16149
|
}
|
|
16161
|
-
},
|
|
16150
|
+
}, nR = {
|
|
16162
16151
|
"config-api_specification": {
|
|
16163
16152
|
label: "Config.API Specification",
|
|
16164
16153
|
placeholder: "Enter an API spec",
|
|
16165
16154
|
type: "textArea",
|
|
16166
16155
|
rows: 10
|
|
16167
16156
|
}
|
|
16168
|
-
},
|
|
16157
|
+
}, iR = {
|
|
16169
16158
|
"config-access": {},
|
|
16170
16159
|
"config-body_filter": {},
|
|
16171
16160
|
"config-header_filter": {},
|
|
@@ -16186,7 +16175,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16186
16175
|
[a]: Ja.fields.arrayItems({
|
|
16187
16176
|
newElementButtonLabel: "Add"
|
|
16188
16177
|
})
|
|
16189
|
-
}),
|
|
16178
|
+
}), iR), Hr = {
|
|
16190
16179
|
"config-strategy": {
|
|
16191
16180
|
label: "Config.Strategy",
|
|
16192
16181
|
type: "select",
|
|
@@ -16199,7 +16188,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16199
16188
|
placeholder: "Enter list of consumer groups",
|
|
16200
16189
|
hint: "e.g. group1, group2"
|
|
16201
16190
|
}
|
|
16202
|
-
},
|
|
16191
|
+
}, aR = {
|
|
16203
16192
|
"config-remove-headers": {},
|
|
16204
16193
|
"config-remove.querystring": {},
|
|
16205
16194
|
"config-remove-body": {},
|
|
@@ -16216,7 +16205,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16216
16205
|
"config-append-querystring": {},
|
|
16217
16206
|
"config-append-body": {},
|
|
16218
16207
|
"config-allow-body": {}
|
|
16219
|
-
},
|
|
16208
|
+
}, rR = [
|
|
16220
16209
|
"config-remove-headers",
|
|
16221
16210
|
"config-remove.querystring",
|
|
16222
16211
|
"config-remove-body",
|
|
@@ -16238,7 +16227,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16238
16227
|
[a]: Ja.fields.arrayItems({
|
|
16239
16228
|
newElementButtonLabel: "Add"
|
|
16240
16229
|
})
|
|
16241
|
-
}),
|
|
16230
|
+
}), aR), sR = {
|
|
16242
16231
|
"config-parameter_schema": {
|
|
16243
16232
|
...Wa,
|
|
16244
16233
|
items: {
|
|
@@ -16299,7 +16288,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16299
16288
|
}
|
|
16300
16289
|
}
|
|
16301
16290
|
}
|
|
16302
|
-
},
|
|
16291
|
+
}, oR = {
|
|
16303
16292
|
"config-rules": {
|
|
16304
16293
|
...pa,
|
|
16305
16294
|
newElementButtonLabel: "+ Add Rule",
|
|
@@ -16326,7 +16315,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16326
16315
|
}
|
|
16327
16316
|
}
|
|
16328
16317
|
}
|
|
16329
|
-
},
|
|
16318
|
+
}, lR = {
|
|
16330
16319
|
"config-session_redis_cluster_nodes": {
|
|
16331
16320
|
...pa,
|
|
16332
16321
|
newElementButtonLabel: "+ Add Cluster Node",
|
|
@@ -16347,7 +16336,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16347
16336
|
}
|
|
16348
16337
|
}
|
|
16349
16338
|
}
|
|
16350
|
-
},
|
|
16339
|
+
}, uR = {
|
|
16351
16340
|
"config-metrics": {
|
|
16352
16341
|
...Wa,
|
|
16353
16342
|
items: {
|
|
@@ -16422,7 +16411,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16422
16411
|
}
|
|
16423
16412
|
}
|
|
16424
16413
|
}
|
|
16425
|
-
},
|
|
16414
|
+
}, cR = {
|
|
16426
16415
|
"config-allow_status_codes": {
|
|
16427
16416
|
type: "input",
|
|
16428
16417
|
inputType: "text",
|
|
@@ -16507,7 +16496,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16507
16496
|
}
|
|
16508
16497
|
}
|
|
16509
16498
|
}
|
|
16510
|
-
},
|
|
16499
|
+
}, dR = {
|
|
16511
16500
|
"config-vault": {
|
|
16512
16501
|
type: "AutoSuggest",
|
|
16513
16502
|
entity: "vaults",
|
|
@@ -16518,7 +16507,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16518
16507
|
modelTransformer: (e) => ({ id: e }),
|
|
16519
16508
|
keyFromObject: "id"
|
|
16520
16509
|
}
|
|
16521
|
-
},
|
|
16510
|
+
}, pR = {
|
|
16522
16511
|
"config-static_tags": {
|
|
16523
16512
|
...Wa,
|
|
16524
16513
|
items: {
|
|
@@ -16544,19 +16533,19 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16544
16533
|
}
|
|
16545
16534
|
}
|
|
16546
16535
|
}
|
|
16547
|
-
},
|
|
16536
|
+
}, gR = (e, a) => {
|
|
16548
16537
|
const n = e.model.startsWith("config-"), r = a.model.startsWith("config-");
|
|
16549
16538
|
return n && !r ? 1 : !n && r ? -1 : 0;
|
|
16550
|
-
}, hg = (e, a) => (e.order ?? 0) - (a.order ?? 0), Rd = (e, a) =>
|
|
16539
|
+
}, hg = (e, a) => (e.order ?? 0) - (a.order ?? 0), Rd = (e, a) => gR(e, a) || hg(e, a) || e.model.localeCompare(a.model), fR = (e, a) => {
|
|
16551
16540
|
const { capitalize: n } = el(), { convertToDotNotation: r } = zp(), { i18n: { t: s } } = cs(), l = {
|
|
16552
16541
|
"application-registration": {
|
|
16553
16542
|
overwriteDefault: !0,
|
|
16554
16543
|
formSchema: {
|
|
16555
|
-
|
|
16544
|
+
...$T
|
|
16556
16545
|
}
|
|
16557
16546
|
},
|
|
16558
16547
|
datadog: {
|
|
16559
|
-
...
|
|
16548
|
+
...eR
|
|
16560
16549
|
},
|
|
16561
16550
|
"upstream-tls": {
|
|
16562
16551
|
"config-trusted_certificates": {
|
|
@@ -16577,22 +16566,22 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16577
16566
|
...Sd
|
|
16578
16567
|
},
|
|
16579
16568
|
statsd: {
|
|
16580
|
-
...
|
|
16569
|
+
...uR
|
|
16581
16570
|
},
|
|
16582
16571
|
"statsd-advanced": {
|
|
16583
|
-
...
|
|
16572
|
+
...cR
|
|
16584
16573
|
},
|
|
16585
16574
|
"route-by-header": {
|
|
16586
|
-
...
|
|
16575
|
+
...oR
|
|
16587
16576
|
},
|
|
16588
16577
|
"ai-prompt-decorator": {
|
|
16589
|
-
...
|
|
16578
|
+
...QT
|
|
16590
16579
|
},
|
|
16591
16580
|
"ai-prompt-template": {
|
|
16592
|
-
...
|
|
16581
|
+
..._T
|
|
16593
16582
|
},
|
|
16594
16583
|
"vault-auth": {
|
|
16595
|
-
...
|
|
16584
|
+
...dR
|
|
16596
16585
|
},
|
|
16597
16586
|
"oas-validation": {
|
|
16598
16587
|
"config-api_spec": {
|
|
@@ -16601,7 +16590,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16601
16590
|
}
|
|
16602
16591
|
},
|
|
16603
16592
|
mocking: {
|
|
16604
|
-
...
|
|
16593
|
+
...nR
|
|
16605
16594
|
},
|
|
16606
16595
|
"rate-limiting": {
|
|
16607
16596
|
...Hr
|
|
@@ -16612,7 +16601,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16612
16601
|
...Hr
|
|
16613
16602
|
},
|
|
16614
16603
|
"graphql-rate-limiting-advanced": {
|
|
16615
|
-
...
|
|
16604
|
+
...tR
|
|
16616
16605
|
},
|
|
16617
16606
|
"response-ratelimiting": {
|
|
16618
16607
|
...Hr
|
|
@@ -16625,16 +16614,16 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16625
16614
|
...Td
|
|
16626
16615
|
},
|
|
16627
16616
|
"request-transformer-advanced": {
|
|
16628
|
-
...
|
|
16617
|
+
...rR
|
|
16629
16618
|
},
|
|
16630
16619
|
"request-validator": {
|
|
16631
|
-
...
|
|
16620
|
+
...sR
|
|
16632
16621
|
},
|
|
16633
16622
|
zipkin: {
|
|
16634
|
-
...
|
|
16623
|
+
...pR
|
|
16635
16624
|
},
|
|
16636
16625
|
saml: {
|
|
16637
|
-
...
|
|
16626
|
+
...lR
|
|
16638
16627
|
}
|
|
16639
16628
|
}, u = () => ["created_at", "updated_at", "id"], d = (C, U, P) => {
|
|
16640
16629
|
let ne = {};
|
|
@@ -16774,7 +16763,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16774
16763
|
});
|
|
16775
16764
|
}, Z = (C) => C.fields.reduce((U, P) => (P.fields && P.fields.forEach((ne) => {
|
|
16776
16765
|
U[ne.model] = ne;
|
|
16777
|
-
}), P.model && (U[P.model] = P), U), {}),
|
|
16766
|
+
}), P.model && (U[P.model] = P), U), {}), ee = (C, U) => {
|
|
16778
16767
|
if (!Vo.includes(C.model))
|
|
16779
16768
|
return;
|
|
16780
16769
|
const P = Z(C);
|
|
@@ -16785,7 +16774,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16785
16774
|
}), delete U[ne];
|
|
16786
16775
|
});
|
|
16787
16776
|
}, N = (C, U) => C.inputType === "hidden" ? "" : r(n(C.label || U.replace(/_/g, " "))), I = (C, U) => {
|
|
16788
|
-
switch (
|
|
16777
|
+
switch (ee(C, U), C.type) {
|
|
16789
16778
|
case "foreign":
|
|
16790
16779
|
E(C, U);
|
|
16791
16780
|
break;
|
|
@@ -16820,7 +16809,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16820
16809
|
useI18n: cs,
|
|
16821
16810
|
usePluginMetaData: FI,
|
|
16822
16811
|
usePluginHelpers: zp,
|
|
16823
|
-
useSchemas:
|
|
16812
|
+
useSchemas: fR
|
|
16824
16813
|
}, nn = "/v2/control-planes/{controlPlaneId}/core-entities", Vt = "/{workspace}", Lt = {
|
|
16825
16814
|
list: {
|
|
16826
16815
|
konnect: {
|
|
@@ -16893,7 +16882,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16893
16882
|
forEntity: `${Vt}/{entityType}/{entityId}/plugins/{id}`
|
|
16894
16883
|
}
|
|
16895
16884
|
}
|
|
16896
|
-
},
|
|
16885
|
+
}, mR = { key: 0 }, hR = /* @__PURE__ */ je({
|
|
16897
16886
|
__name: "PluginFieldRuleAlerts",
|
|
16898
16887
|
props: {
|
|
16899
16888
|
rules: {}
|
|
@@ -16915,20 +16904,20 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16915
16904
|
return d;
|
|
16916
16905
|
});
|
|
16917
16906
|
return (d, p) => {
|
|
16918
|
-
const m =
|
|
16907
|
+
const m = te("KAlert");
|
|
16919
16908
|
return y(), K(m, { class: "plugin-field-rule-alerts" }, {
|
|
16920
16909
|
default: T(() => [
|
|
16921
16910
|
S("ul", null, [
|
|
16922
|
-
(y(!0), O(Re, null,
|
|
16911
|
+
(y(!0), O(Re, null, Ye(u.value, (v, b) => (y(), O("li", {
|
|
16923
16912
|
key: `simple-alert-${b}`
|
|
16924
16913
|
}, W(v), 1))), 128)),
|
|
16925
|
-
a.rules.onlyOneOfMutuallyRequired && a.rules.onlyOneOfMutuallyRequired.length > 0 ? (y(), O("li",
|
|
16926
|
-
(y(!0), O(Re, null,
|
|
16914
|
+
a.rules.onlyOneOfMutuallyRequired && a.rules.onlyOneOfMutuallyRequired.length > 0 ? (y(), O("li", mR, [
|
|
16915
|
+
(y(!0), O(Re, null, Ye(a.rules.onlyOneOfMutuallyRequired, (v, b) => (y(), O("div", {
|
|
16927
16916
|
key: `only-one-mutually-alert-${b}`
|
|
16928
16917
|
}, [
|
|
16929
16918
|
S("div", null, W(R(r)("plugins.form.field_rules.only_one_of_mutually_required")), 1),
|
|
16930
16919
|
S("ul", null, [
|
|
16931
|
-
(y(!0), O(Re, null,
|
|
16920
|
+
(y(!0), O(Re, null, Ye(v, (E, B) => (y(), O("li", {
|
|
16932
16921
|
key: `only-one-mutually-alert-${b}-combination-${B}`
|
|
16933
16922
|
}, W(s(E)), 1))), 128))
|
|
16934
16923
|
])
|
|
@@ -16945,13 +16934,13 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
16945
16934
|
for (const [r, s] of a)
|
|
16946
16935
|
n[r] = s;
|
|
16947
16936
|
return n;
|
|
16948
|
-
},
|
|
16937
|
+
}, AR = /* @__PURE__ */ Rn(hR, [["__scopeId", "data-v-17c1f232"]]), yR = { class: "kong-ui-entities-plugin-form" }, vR = {
|
|
16949
16938
|
key: 1,
|
|
16950
16939
|
class: "entity-form"
|
|
16951
|
-
},
|
|
16952
|
-
components: {
|
|
16953
|
-
}),
|
|
16954
|
-
...
|
|
16940
|
+
}, bR = { class: "plugin-config-empty-state" }, wR = je({
|
|
16941
|
+
components: { ...ZT }
|
|
16942
|
+
}), CR = /* @__PURE__ */ je({
|
|
16943
|
+
...wR,
|
|
16955
16944
|
__name: "PluginEntityForm",
|
|
16956
16945
|
props: {
|
|
16957
16946
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -17025,12 +17014,12 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17025
17014
|
}) : s.get(ke, { params: ce });
|
|
17026
17015
|
}
|
|
17027
17016
|
});
|
|
17028
|
-
const Y = le(""), ie = le(null), Z = le({}),
|
|
17017
|
+
const Y = le(""), ie = le(null), Z = le({}), ee = Na({}), N = Na({}), I = J(() => {
|
|
17029
17018
|
var oe;
|
|
17030
17019
|
return (oe = ie.value) == null ? void 0 : oe.options;
|
|
17031
17020
|
}), C = () => {
|
|
17032
17021
|
var Me, de;
|
|
17033
|
-
const oe = { ...r.schema }, ce = N, ke =
|
|
17022
|
+
const oe = { ...r.schema }, ce = N, ke = ee, Ce = Object.keys(ce), ye = {};
|
|
17034
17023
|
if (!p(Z.value))
|
|
17035
17024
|
for (let ue = 0; ue < ((de = (Me = Z.value) == null ? void 0 : Me.fields) == null ? void 0 : de.length); ue++)
|
|
17036
17025
|
oe[Z.value.fields[ue].model] = Z.value.fields[ue];
|
|
@@ -17102,7 +17091,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17102
17091
|
const Ce = Object.assign({}, N, ke);
|
|
17103
17092
|
Object.assign(N, Ce), n("model-updated", {
|
|
17104
17093
|
model: N,
|
|
17105
|
-
originalModel:
|
|
17094
|
+
originalModel: ee,
|
|
17106
17095
|
data: C()
|
|
17107
17096
|
});
|
|
17108
17097
|
}, P = (oe, ce) => {
|
|
@@ -17115,23 +17104,23 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17115
17104
|
}
|
|
17116
17105
|
const Me = oe[ke], de = typeof Me;
|
|
17117
17106
|
if (ye && ye.type === "object-advanced" && !Me) {
|
|
17118
|
-
N[Ce] = {},
|
|
17107
|
+
N[Ce] = {}, ee[Ce] = {};
|
|
17119
17108
|
return;
|
|
17120
17109
|
}
|
|
17121
17110
|
if (Array.isArray(Me)) {
|
|
17122
|
-
N[Ce] = JSON.parse(JSON.stringify(Me)),
|
|
17111
|
+
N[Ce] = JSON.parse(JSON.stringify(Me)), ee[Ce] = JSON.parse(JSON.stringify(Me));
|
|
17123
17112
|
return;
|
|
17124
17113
|
}
|
|
17125
17114
|
if (de === "object" && Me && !Me.length)
|
|
17126
17115
|
return P(Me, Ce);
|
|
17127
17116
|
if (de === "object" && Me && Me.length && ye.type === "input") {
|
|
17128
|
-
N[Ce] = Me.join(", "),
|
|
17117
|
+
N[Ce] = Me.join(", "), ee[Ce] = Me.join(", ");
|
|
17129
17118
|
return;
|
|
17130
17119
|
}
|
|
17131
|
-
N[Ce] = Me,
|
|
17120
|
+
N[Ce] = Me, ee[Ce] = Me;
|
|
17132
17121
|
}), n("model-updated", {
|
|
17133
17122
|
model: N,
|
|
17134
|
-
originalModel:
|
|
17123
|
+
originalModel: ee,
|
|
17135
17124
|
data: C()
|
|
17136
17125
|
});
|
|
17137
17126
|
}, ne = le(!0), Ae = () => {
|
|
@@ -17169,17 +17158,17 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17169
17158
|
if (v(oe || {}, ce || {}))
|
|
17170
17159
|
return;
|
|
17171
17160
|
const ke = l(oe);
|
|
17172
|
-
Object.assign(N, ke.model), Z.value = { fields: (ye = (Ce = Z.value) == null ? void 0 : Ce.fields) == null ? void 0 : ye.map((Me) => ({ ...Me, disabled: Me.disabled || !1 })) }, Object.assign(
|
|
17161
|
+
Object.assign(N, ke.model), Z.value = { fields: (ye = (Ce = Z.value) == null ? void 0 : Ce.fields) == null ? void 0 : ye.map((Me) => ({ ...Me, disabled: Me.disabled || !1 })) }, Object.assign(ee, JSON.parse(JSON.stringify(ke.model))), Y.value = mg(ke.model.name), Ae();
|
|
17173
17162
|
}, { immediate: !0, deep: !0 }), Yi(() => {
|
|
17174
17163
|
var oe, ce;
|
|
17175
17164
|
ie.value = l(r.schema), Object.assign(N, ((oe = ie.value) == null ? void 0 : oe.model) || {}), Z.value = ((ce = ie.value) == null ? void 0 : ce.schema) || {}, Ae();
|
|
17176
17165
|
}), (oe, ce) => {
|
|
17177
|
-
const ke =
|
|
17178
|
-
return y(), O("div",
|
|
17166
|
+
const ke = te("KSkeleton"), Ce = te("VueFormGenerator");
|
|
17167
|
+
return y(), O("div", yR, [
|
|
17179
17168
|
ne.value ? (y(), K(ke, {
|
|
17180
17169
|
key: 0,
|
|
17181
17170
|
type: "form"
|
|
17182
|
-
})) : (y(), O("div",
|
|
17171
|
+
})) : (y(), O("div", vR, [
|
|
17183
17172
|
Y.value && (N.id && e.editing || !e.editing) ? (y(), K(Ot(Y.value), {
|
|
17184
17173
|
key: 0,
|
|
17185
17174
|
"form-model": N,
|
|
@@ -17196,14 +17185,14 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17196
17185
|
onModelUpdated: U
|
|
17197
17186
|
}, Gn({
|
|
17198
17187
|
"plugin-config-empty-state": T(() => [
|
|
17199
|
-
S("div",
|
|
17188
|
+
S("div", bR, W(R(b)("plugins.form.grouping.plugin_configuration.empty")), 1)
|
|
17200
17189
|
]),
|
|
17201
17190
|
_: 2
|
|
17202
17191
|
}, [
|
|
17203
17192
|
R(Tn)[N.name] && R(Tn)[N.name].fieldRules ? {
|
|
17204
17193
|
name: "plugin-config-before-content",
|
|
17205
17194
|
fn: T(() => [
|
|
17206
|
-
X(
|
|
17195
|
+
X(AR, {
|
|
17207
17196
|
rules: R(Tn)[N.name].fieldRules
|
|
17208
17197
|
}, null, 8, ["rules"])
|
|
17209
17198
|
]),
|
|
@@ -17214,10 +17203,10 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17214
17203
|
]);
|
|
17215
17204
|
};
|
|
17216
17205
|
}
|
|
17217
|
-
}),
|
|
17206
|
+
}), ER = /* @__PURE__ */ Rn(CR, [["__scopeId", "data-v-9e3936be"]]), kR = { class: "kong-ui-entities-plugin-form-container" }, OR = { key: 0 }, IR = {
|
|
17218
17207
|
key: 1,
|
|
17219
17208
|
class: "plugin-form-actions"
|
|
17220
|
-
},
|
|
17209
|
+
}, BR = /* @__PURE__ */ je({
|
|
17221
17210
|
__name: "PluginForm",
|
|
17222
17211
|
props: {
|
|
17223
17212
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -17270,7 +17259,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17270
17259
|
emits: ["error:fetch-schema", "error", "loading", "update", "model-updated"],
|
|
17271
17260
|
setup(e, { emit: a }) {
|
|
17272
17261
|
var Ln;
|
|
17273
|
-
const n = a, r = e, s = Ka(), { i18n: { t: l } } = bt.useI18n(), { customSchemas: u, typedefs: d } = bt.useSchemas(void 0, { app: r.config.app }), { formatPluginFieldLabel: p } = bt.usePluginHelpers(), { getMessageFromError: m } = os(), { capitalize: v } = el(), { objectsAreEqual: b } = ls(), { axiosInstance: E } = ga((Ln = r.config) == null ? void 0 : Ln.axiosRequestConfig), B = le(!1), j = J(() => r.pluginId ? ti.Edit : ti.Create), V = le(null), Y = J(() => !!(r.credential && r.config.entityId)), ie = le(null), Z = le({}),
|
|
17262
|
+
const n = a, r = e, s = Ka(), { i18n: { t: l } } = bt.useI18n(), { customSchemas: u, typedefs: d } = bt.useSchemas(void 0, { app: r.config.app }), { formatPluginFieldLabel: p } = bt.usePluginHelpers(), { getMessageFromError: m } = os(), { capitalize: v } = el(), { objectsAreEqual: b } = ls(), { axiosInstance: E } = ga((Ln = r.config) == null ? void 0 : Ln.axiosRequestConfig), B = le(!1), j = J(() => r.pluginId ? ti.Edit : ti.Create), V = le(null), Y = J(() => !!(r.credential && r.config.entityId)), ie = le(null), Z = le({}), ee = le(!1), N = Na({
|
|
17274
17263
|
enabled: !0,
|
|
17275
17264
|
protocols: [],
|
|
17276
17265
|
tags: []
|
|
@@ -17608,7 +17597,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17608
17597
|
}), Ae.selectionGroup.fields[1].fields = Oe;
|
|
17609
17598
|
}
|
|
17610
17599
|
u[r.pluginType] && u[r.pluginType].overwriteDefault && Object.hasOwnProperty.call(u[r.pluginType], "formSchema") && Object.assign(Ae, u[r.pluginType].formSchema);
|
|
17611
|
-
}, ke = J(() => !b(I.fields, N, !0)), Ce = J(() => !Ke.value && !
|
|
17600
|
+
}, ke = J(() => !b(I.fields, N, !0)), Ce = J(() => !Ke.value && !ee.value && (j.value === ti.Create || ke.value)), ye = le(!1), Me = (fe) => {
|
|
17612
17601
|
I.fields.id = (fe == null ? void 0 : fe.id) || void 0, Object.assign(N, I.fields), ie.value = fe, ye.value = !0;
|
|
17613
17602
|
}, de = le({}), ue = (fe) => {
|
|
17614
17603
|
var Q;
|
|
@@ -17689,8 +17678,8 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17689
17678
|
Ke.value = !1;
|
|
17690
17679
|
}
|
|
17691
17680
|
}), (fe, Q) => {
|
|
17692
|
-
const L =
|
|
17693
|
-
return y(), O("div",
|
|
17681
|
+
const L = te("KSkeleton"), pe = te("KEmptyState"), Oe = te("KButton"), Ne = te("KTabs"), lt = te("KSlideout");
|
|
17682
|
+
return y(), O("div", kR, [
|
|
17694
17683
|
Ke.value ? (y(), K(L, {
|
|
17695
17684
|
key: 0,
|
|
17696
17685
|
type: "form"
|
|
@@ -17720,7 +17709,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17720
17709
|
onLoading: Q[3] || (Q[3] = (Je) => fe.$emit("loading", Je))
|
|
17721
17710
|
}, {
|
|
17722
17711
|
"form-actions": T(() => [
|
|
17723
|
-
e.isWizardStep ? (y(), O("div",
|
|
17712
|
+
e.isWizardStep ? (y(), O("div", OR)) : (y(), O("div", IR, [
|
|
17724
17713
|
X(Oe, {
|
|
17725
17714
|
appearance: "tertiary",
|
|
17726
17715
|
"data-testid": "form-view-configuration",
|
|
@@ -17776,14 +17765,14 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17776
17765
|
hidden: "",
|
|
17777
17766
|
onSubmit: Fn
|
|
17778
17767
|
}, null, 32),
|
|
17779
|
-
X(
|
|
17768
|
+
X(ER, {
|
|
17780
17769
|
config: e.config,
|
|
17781
17770
|
credential: Y.value,
|
|
17782
17771
|
editing: j.value === R(ti).Edit,
|
|
17783
17772
|
"entity-map": ne.value,
|
|
17784
17773
|
record: ie.value || void 0,
|
|
17785
17774
|
schema: V.value || {},
|
|
17786
|
-
onLoading: Q[0] || (Q[0] = (Je) =>
|
|
17775
|
+
onLoading: Q[0] || (Q[0] = (Je) => ee.value = Je),
|
|
17787
17776
|
onModelUpdated: ue
|
|
17788
17777
|
}, null, 8, ["config", "credential", "editing", "entity-map", "record", "schema"])
|
|
17789
17778
|
]),
|
|
@@ -17825,7 +17814,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17825
17814
|
]);
|
|
17826
17815
|
};
|
|
17827
17816
|
}
|
|
17828
|
-
}),
|
|
17817
|
+
}), Q2 = /* @__PURE__ */ Rn(BR, [["__scopeId", "data-v-6d6aad4b"]]), MR = ["alt", "src", "width"], ll = /* @__PURE__ */ je({
|
|
17829
17818
|
__name: "PluginIcon",
|
|
17830
17819
|
props: {
|
|
17831
17820
|
name: {
|
|
@@ -17854,18 +17843,18 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17854
17843
|
src: s.value || R(a),
|
|
17855
17844
|
width: e.size,
|
|
17856
17845
|
onError: l
|
|
17857
|
-
}, null, 40,
|
|
17846
|
+
}, null, 40, MR));
|
|
17858
17847
|
}
|
|
17859
|
-
}),
|
|
17848
|
+
}), xR = { class: "kong-ui-entities-plugins-list" }, SR = { class: "name-cell-wrapper" }, TR = { class: "info-wrapper" }, RR = {
|
|
17860
17849
|
key: 0,
|
|
17861
17850
|
class: "info-name"
|
|
17862
|
-
},
|
|
17851
|
+
}, LR = {
|
|
17863
17852
|
key: 1,
|
|
17864
17853
|
class: "info-name"
|
|
17865
|
-
},
|
|
17854
|
+
}, NR = {
|
|
17866
17855
|
key: 2,
|
|
17867
17856
|
class: "info-type"
|
|
17868
|
-
},
|
|
17857
|
+
}, PR = { key: 1 }, jR = { key: 1 }, DR = /* @__PURE__ */ je({
|
|
17869
17858
|
__name: "PluginList",
|
|
17870
17859
|
props: {
|
|
17871
17860
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -17970,7 +17959,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
17970
17959
|
instance_name: { label: l("plugins.list.table_headers.instance_name"), searchable: !0 }
|
|
17971
17960
|
},
|
|
17972
17961
|
schema: s.config.filterSchema
|
|
17973
|
-
}), Y = le(1), { fetcher: ie, fetcherState: Z } = XE(s.config, B.value),
|
|
17962
|
+
}), Y = le(1), { fetcher: ie, fetcherState: Z } = XE(s.config, B.value), ee = () => {
|
|
17974
17963
|
j.value = "";
|
|
17975
17964
|
}, N = () => {
|
|
17976
17965
|
Y.value++;
|
|
@@ -18104,8 +18093,8 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18104
18093
|
return Yi(async () => {
|
|
18105
18094
|
await s.canCreate() && (Zt.value.title = l("plugins.list.empty_state.title"), Zt.value.ctaText = l("actions.create"));
|
|
18106
18095
|
}), (Q, L) => {
|
|
18107
|
-
const pe =
|
|
18108
|
-
return y(), O("div",
|
|
18096
|
+
const pe = te("KButton"), Oe = te("KBadge"), Ne = te("KTruncate"), lt = te("KInputSwitch"), Je = te("KDropdownItem"), Qe = te("KClipboardProvider");
|
|
18097
|
+
return y(), O("div", xR, [
|
|
18109
18098
|
X(R(OE), {
|
|
18110
18099
|
"cache-identifier": e.cacheIdentifier,
|
|
18111
18100
|
"disable-pagination-page-jump": "",
|
|
@@ -18123,7 +18112,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18123
18112
|
title: e.title,
|
|
18124
18113
|
"title-tag": e.titleTag,
|
|
18125
18114
|
"use-action-outside": e.useActionOutside,
|
|
18126
|
-
onClearSearchInput:
|
|
18115
|
+
onClearSearchInput: ee,
|
|
18127
18116
|
"onClick:row": L[3] || (L[3] = (G) => ye(G)),
|
|
18128
18117
|
onSort: N
|
|
18129
18118
|
}, {
|
|
@@ -18143,7 +18132,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18143
18132
|
"auth-function": () => e.canCreate()
|
|
18144
18133
|
}, {
|
|
18145
18134
|
default: T(() => [
|
|
18146
|
-
|
|
18135
|
+
Ue(X(pe, {
|
|
18147
18136
|
appearance: "primary",
|
|
18148
18137
|
"data-testid": "toolbar-add-plugin",
|
|
18149
18138
|
icon: "plus",
|
|
@@ -18165,22 +18154,22 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18165
18154
|
}, 8, ["to"]))
|
|
18166
18155
|
]),
|
|
18167
18156
|
name: T(({ row: G }) => [
|
|
18168
|
-
S("div",
|
|
18157
|
+
S("div", SR, [
|
|
18169
18158
|
X(ll, {
|
|
18170
18159
|
class: "plugin-icon",
|
|
18171
18160
|
name: G.name,
|
|
18172
18161
|
width: 24
|
|
18173
18162
|
}, null, 8, ["name"]),
|
|
18174
|
-
S("div",
|
|
18175
|
-
G.instance_name ? (y(), O("span",
|
|
18176
|
-
G.instance_name ? (y(), O("span",
|
|
18163
|
+
S("div", TR, [
|
|
18164
|
+
G.instance_name ? (y(), O("span", RR, W(G.instance_name), 1)) : (y(), O("span", LR, W(R(n).getDisplayName(G.name)), 1)),
|
|
18165
|
+
G.instance_name ? (y(), O("span", NR, W(R(n).getDisplayName(G.name)), 1)) : se("", !0)
|
|
18177
18166
|
])
|
|
18178
18167
|
])
|
|
18179
18168
|
]),
|
|
18180
18169
|
appliedTo: T(({ row: G }) => [
|
|
18181
18170
|
C(G).length > 0 ? (y(), K(Ne, { key: 0 }, {
|
|
18182
18171
|
default: T(() => [
|
|
18183
|
-
(y(!0), O(Re, null,
|
|
18172
|
+
(y(!0), O(Re, null, Ye(C(G), (re) => (y(), K(R(Ri), {
|
|
18184
18173
|
key: re.badgeText,
|
|
18185
18174
|
"auth-function": () => U(re.type, G),
|
|
18186
18175
|
"force-show": ""
|
|
@@ -18200,7 +18189,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18200
18189
|
}, 1032, ["auth-function"]))), 128))
|
|
18201
18190
|
]),
|
|
18202
18191
|
_: 2
|
|
18203
|
-
}, 1024)) : (y(), O("span",
|
|
18192
|
+
}, 1024)) : (y(), O("span", PR, "-"))
|
|
18204
18193
|
]),
|
|
18205
18194
|
enabled: T(({ row: G }) => [
|
|
18206
18195
|
X(R(Ri), {
|
|
@@ -18239,7 +18228,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18239
18228
|
tags: T(({ rowValue: G }) => [
|
|
18240
18229
|
(G == null ? void 0 : G.length) > 0 ? (y(), K(Ne, { key: 0 }, {
|
|
18241
18230
|
default: T(() => [
|
|
18242
|
-
(y(!0), O(Re, null,
|
|
18231
|
+
(y(!0), O(Re, null, Ye(G, (re) => (y(), K(Oe, {
|
|
18243
18232
|
key: re,
|
|
18244
18233
|
onClick: L[2] || (L[2] = Ai(() => {
|
|
18245
18234
|
}, ["stop"]))
|
|
@@ -18251,7 +18240,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18251
18240
|
}, 1024))), 128))
|
|
18252
18241
|
]),
|
|
18253
18242
|
_: 2
|
|
18254
|
-
}, 1024)) : (y(), O("span",
|
|
18243
|
+
}, 1024)) : (y(), O("span", jR, "-"))
|
|
18255
18244
|
]),
|
|
18256
18245
|
actions: T(({ row: G }) => [
|
|
18257
18246
|
X(Qe, null, {
|
|
@@ -18363,7 +18352,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18363
18352
|
]);
|
|
18364
18353
|
};
|
|
18365
18354
|
}
|
|
18366
|
-
}),
|
|
18355
|
+
}), _2 = /* @__PURE__ */ Rn(DR, [["__scopeId", "data-v-6bbe2d27"]]), UR = (e) => (fn("data-v-14bc032f"), e = e(), mn(), e), YR = { class: "plugin-card-header" }, VR = { class: "plugin-card-footer" }, GR = /* @__PURE__ */ UR(() => /* @__PURE__ */ S("hr", { class: "plugin-card-footer-divider" }, null, -1)), HR = { class: "footer-skeleton" }, FR = /* @__PURE__ */ je({
|
|
18367
18356
|
__name: "PluginCardSkeleton",
|
|
18368
18357
|
props: {
|
|
18369
18358
|
cardCount: {
|
|
@@ -18373,14 +18362,14 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18373
18362
|
},
|
|
18374
18363
|
setup(e) {
|
|
18375
18364
|
return (a, n) => {
|
|
18376
|
-
const r =
|
|
18365
|
+
const r = te("KSkeletonBox"), s = te("KSkeleton");
|
|
18377
18366
|
return y(), K(s, {
|
|
18378
18367
|
"card-count": e.cardCount,
|
|
18379
18368
|
class: "plugin-card-skeleton",
|
|
18380
18369
|
type: "card"
|
|
18381
18370
|
}, {
|
|
18382
18371
|
"card-header": T(() => [
|
|
18383
|
-
S("div",
|
|
18372
|
+
S("div", YR, [
|
|
18384
18373
|
X(r, { width: "5" })
|
|
18385
18374
|
])
|
|
18386
18375
|
]),
|
|
@@ -18388,9 +18377,9 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18388
18377
|
Be(" ")
|
|
18389
18378
|
]),
|
|
18390
18379
|
"card-footer": T(() => [
|
|
18391
|
-
S("div",
|
|
18392
|
-
|
|
18393
|
-
S("div",
|
|
18380
|
+
S("div", VR, [
|
|
18381
|
+
GR,
|
|
18382
|
+
S("div", HR, [
|
|
18394
18383
|
X(r, { width: "5" })
|
|
18395
18384
|
])
|
|
18396
18385
|
])
|
|
@@ -18399,18 +18388,18 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18399
18388
|
}, 8, ["card-count"]);
|
|
18400
18389
|
};
|
|
18401
18390
|
}
|
|
18402
|
-
}),
|
|
18391
|
+
}), zR = /* @__PURE__ */ Rn(FR, [["__scopeId", "data-v-14bc032f"]]), KR = "16px", Ld = "24px", qR = (e, a) => {
|
|
18403
18392
|
const n = e.__vccOpts || e;
|
|
18404
18393
|
for (const [r, s] of a)
|
|
18405
18394
|
n[r] = s;
|
|
18406
18395
|
return n;
|
|
18407
|
-
},
|
|
18396
|
+
}, XR = (e) => (fn("data-v-add92a5e"), e = e(), mn(), e), JR = ["aria-hidden"], WR = {
|
|
18408
18397
|
key: 0,
|
|
18409
18398
|
"data-testid": "kui-icon-svg-title"
|
|
18410
|
-
},
|
|
18399
|
+
}, ZR = /* @__PURE__ */ XR(() => /* @__PURE__ */ S("path", {
|
|
18411
18400
|
d: "M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",
|
|
18412
18401
|
fill: "currentColor"
|
|
18413
|
-
}, null, -1)),
|
|
18402
|
+
}, null, -1)), QR = /* @__PURE__ */ je({
|
|
18414
18403
|
__name: "MoreIcon",
|
|
18415
18404
|
props: {
|
|
18416
18405
|
/** The accessibility text provided to screen readers */
|
|
@@ -18496,20 +18485,20 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18496
18485
|
width: "100%",
|
|
18497
18486
|
xmlns: "http://www.w3.org/2000/svg"
|
|
18498
18487
|
}, [
|
|
18499
|
-
e.title ? (y(), O("title",
|
|
18500
|
-
|
|
18501
|
-
], 8,
|
|
18488
|
+
e.title ? (y(), O("title", WR, W(e.title), 1)) : se("", !0),
|
|
18489
|
+
ZR
|
|
18490
|
+
], 8, JR))
|
|
18502
18491
|
]),
|
|
18503
18492
|
_: 1
|
|
18504
18493
|
}, 8, ["aria-hidden", "style"]));
|
|
18505
18494
|
}
|
|
18506
|
-
}),
|
|
18495
|
+
}), _R = /* @__PURE__ */ qR(QR, [["__scopeId", "data-v-add92a5e"]]), $R = ["data-testid"], e2 = { class: "plugin-card-header" }, t2 = { class: "plugin-card-title" }, n2 = {
|
|
18507
18496
|
key: 0,
|
|
18508
18497
|
class: "plugin-card-actions"
|
|
18509
|
-
},
|
|
18498
|
+
}, i2 = ["data-testid", "title"], a2 = {
|
|
18510
18499
|
key: 0,
|
|
18511
18500
|
class: "plugin-card-text"
|
|
18512
|
-
},
|
|
18501
|
+
}, r2 = { key: 0 }, s2 = ["title"], o2 = /* @__PURE__ */ je({
|
|
18513
18502
|
__name: "PluginSelectCard",
|
|
18514
18503
|
props: {
|
|
18515
18504
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -18561,7 +18550,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18561
18550
|
}
|
|
18562
18551
|
};
|
|
18563
18552
|
return (ie, Z) => {
|
|
18564
|
-
const
|
|
18553
|
+
const ee = te("KButton"), N = te("KDropdownItem"), I = te("KDropdownMenu"), C = te("KTooltip");
|
|
18565
18554
|
return y(), K(C, {
|
|
18566
18555
|
"position-fixed": "",
|
|
18567
18556
|
text: e.plugin.disabledMessage
|
|
@@ -18573,27 +18562,27 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18573
18562
|
role: "button",
|
|
18574
18563
|
onClick: Z[1] || (Z[1] = (U) => d.value || B.value ? void 0 : v())
|
|
18575
18564
|
}, [
|
|
18576
|
-
S("div",
|
|
18577
|
-
S("div",
|
|
18565
|
+
S("div", e2, [
|
|
18566
|
+
S("div", t2, [
|
|
18578
18567
|
S("span", {
|
|
18579
18568
|
class: Fe({ "non-custom-title": !B.value })
|
|
18580
18569
|
}, W(e.plugin.name), 3)
|
|
18581
18570
|
]),
|
|
18582
|
-
p.value ? (y(), O("div",
|
|
18571
|
+
p.value ? (y(), O("div", n2, [
|
|
18583
18572
|
X(I, {
|
|
18584
18573
|
"data-testid": "custom-plugin-actions",
|
|
18585
18574
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
18586
18575
|
width: "150"
|
|
18587
18576
|
}, {
|
|
18588
18577
|
default: T(() => [
|
|
18589
|
-
X(
|
|
18578
|
+
X(ee, {
|
|
18590
18579
|
appearance: "tertiary",
|
|
18591
18580
|
class: "actions-trigger",
|
|
18592
18581
|
"data-testid": "overflow-actions-button",
|
|
18593
18582
|
size: "small"
|
|
18594
18583
|
}, {
|
|
18595
18584
|
icon: T(() => [
|
|
18596
|
-
X(R(
|
|
18585
|
+
X(R(_R), { size: R(KR) }, null, 8, ["size"])
|
|
18597
18586
|
]),
|
|
18598
18587
|
_: 1
|
|
18599
18588
|
})
|
|
@@ -18638,26 +18627,26 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18638
18627
|
name: e.plugin.imageName || e.plugin.id,
|
|
18639
18628
|
size: 55
|
|
18640
18629
|
}, null, 8, ["alt", "name"]),
|
|
18641
|
-
e.plugin.description || B.value && !E.value ? (y(), O("div",
|
|
18642
|
-
B.value && !E.value ? (y(), O("p",
|
|
18630
|
+
e.plugin.description || B.value && !E.value ? (y(), O("div", a2, [
|
|
18631
|
+
B.value && !E.value ? (y(), O("p", r2, W(R(l)("plugins.select.custom_badge_text")), 1)) : se("", !0),
|
|
18643
18632
|
e.plugin.description ? (y(), O("p", {
|
|
18644
18633
|
key: 1,
|
|
18645
18634
|
class: "plugin-card-text",
|
|
18646
18635
|
title: e.plugin.description
|
|
18647
|
-
}, W(e.plugin.description), 9,
|
|
18636
|
+
}, W(e.plugin.description), 9, s2)) : se("", !0)
|
|
18648
18637
|
])) : se("", !0)
|
|
18649
|
-
], 10,
|
|
18638
|
+
], 10, i2),
|
|
18650
18639
|
S("div", {
|
|
18651
18640
|
class: "plugin-card-footer",
|
|
18652
18641
|
onClick: Y
|
|
18653
18642
|
}, W(E.value ? R(l)("actions.create_custom") : e.plugin.exists ? R(l)("actions.enabled") : R(l)("actions.enable")), 1)
|
|
18654
|
-
], 10,
|
|
18643
|
+
], 10, $R)
|
|
18655
18644
|
]),
|
|
18656
18645
|
_: 1
|
|
18657
18646
|
}, 8, ["text"]);
|
|
18658
18647
|
};
|
|
18659
18648
|
}
|
|
18660
|
-
}), ts = /* @__PURE__ */ Rn(
|
|
18649
|
+
}), ts = /* @__PURE__ */ Rn(o2, [["__scopeId", "data-v-3e933d10"]]), l2 = /* @__PURE__ */ je({
|
|
18661
18650
|
__name: "DeleteCustomPluginSchemaModal",
|
|
18662
18651
|
props: {
|
|
18663
18652
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -18681,17 +18670,17 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18681
18670
|
var j, V, Y, ie, Z;
|
|
18682
18671
|
if (m.value = !0, v.value = "", !(!((j = n.plugin) != null && j.name) || ((V = n.config) == null ? void 0 : V.app) !== "konnect"))
|
|
18683
18672
|
try {
|
|
18684
|
-
const
|
|
18685
|
-
await d.delete(
|
|
18686
|
-
} catch (
|
|
18687
|
-
const { response: N } =
|
|
18688
|
-
(N == null ? void 0 : N.status) === 400 && ((Z = (ie = N.data) == null ? void 0 : ie.message) != null && Z.includes("plugin schema is currently in use")) ? b.value = !0 : v.value = u(
|
|
18673
|
+
const ee = `${n.config.apiBaseUrl}/v2/control-planes/${n.config.controlPlaneId}/core-entities/plugin-schemas/${(Y = n.plugin) == null ? void 0 : Y.name}`;
|
|
18674
|
+
await d.delete(ee), r("proceed");
|
|
18675
|
+
} catch (ee) {
|
|
18676
|
+
const { response: N } = ee;
|
|
18677
|
+
(N == null ? void 0 : N.status) === 400 && ((Z = (ie = N.data) == null ? void 0 : ie.message) != null && Z.includes("plugin schema is currently in use")) ? b.value = !0 : v.value = u(ee);
|
|
18689
18678
|
} finally {
|
|
18690
18679
|
m.value = !1;
|
|
18691
18680
|
}
|
|
18692
18681
|
};
|
|
18693
18682
|
return (j, V) => {
|
|
18694
|
-
const Y =
|
|
18683
|
+
const Y = te("KButton"), ie = te("KModal");
|
|
18695
18684
|
return !b.value && e.plugin ? (y(), K(R(Rp), {
|
|
18696
18685
|
key: 0,
|
|
18697
18686
|
"action-pending": m.value,
|
|
@@ -18747,7 +18736,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18747
18736
|
}, 8, ["action-button-disabled", "title"])) : se("", !0);
|
|
18748
18737
|
};
|
|
18749
18738
|
}
|
|
18750
|
-
}),
|
|
18739
|
+
}), u2 = /* @__PURE__ */ Rn(l2, [["__scopeId", "data-v-4148beb9"]]), c2 = { class: "custom-plugins-grid" }, d2 = { class: "empty-state-title" }, p2 = { class: "empty-state-description" }, g2 = { class: "plugin-card-container" }, f2 = { class: "plugin-card-container" }, m2 = /* @__PURE__ */ je({
|
|
18751
18740
|
__name: "PluginCustomGrid",
|
|
18752
18741
|
props: {
|
|
18753
18742
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -18829,8 +18818,8 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18829
18818
|
j && (r("revalidate"), r("delete:success", ((V = b.value) == null ? void 0 : V.name) || "")), v.value = !1, b.value = null;
|
|
18830
18819
|
};
|
|
18831
18820
|
return (j, V) => {
|
|
18832
|
-
const Y =
|
|
18833
|
-
return y(), O("div",
|
|
18821
|
+
const Y = te("KEmptyState"), ie = te("KCollapse");
|
|
18822
|
+
return y(), O("div", c2, [
|
|
18834
18823
|
p.value.length ? (y(), K(ie, {
|
|
18835
18824
|
key: 1,
|
|
18836
18825
|
modelValue: u.value,
|
|
@@ -18841,9 +18830,9 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18841
18830
|
"trigger-label": m.value
|
|
18842
18831
|
}, Gn({
|
|
18843
18832
|
"visible-content": T(() => [
|
|
18844
|
-
S("div",
|
|
18845
|
-
(y(!0), O(Re, null,
|
|
18846
|
-
key: `plugin-card-${
|
|
18833
|
+
S("div", g2, [
|
|
18834
|
+
(y(!0), O(Re, null, Ye(R(l)("visible", p.value, e.pluginsPerRow), (Z, ee) => (y(), K(ts, {
|
|
18835
|
+
key: `plugin-card-${ee}`,
|
|
18847
18836
|
"can-delete-custom-plugin": e.canDeleteCustomPlugin,
|
|
18848
18837
|
"can-edit-custom-plugin": e.canEditCustomPlugin,
|
|
18849
18838
|
config: e.config,
|
|
@@ -18855,9 +18844,9 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18855
18844
|
])
|
|
18856
18845
|
]),
|
|
18857
18846
|
default: T(() => [
|
|
18858
|
-
S("div",
|
|
18859
|
-
(y(!0), O(Re, null,
|
|
18860
|
-
key: `plugin-card-${
|
|
18847
|
+
S("div", f2, [
|
|
18848
|
+
(y(!0), O(Re, null, Ye(R(l)("hidden", p.value, e.pluginsPerRow), (Z, ee) => (y(), K(ts, {
|
|
18849
|
+
key: `plugin-card-${ee}`,
|
|
18861
18850
|
"can-delete-custom-plugin": e.canDeleteCustomPlugin,
|
|
18862
18851
|
"can-edit-custom-plugin": e.canEditCustomPlugin,
|
|
18863
18852
|
config: e.config,
|
|
@@ -18883,14 +18872,14 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18883
18872
|
"icon-variant": "kong"
|
|
18884
18873
|
}, {
|
|
18885
18874
|
title: T(() => [
|
|
18886
|
-
S("span",
|
|
18875
|
+
S("span", d2, W(R(s)("plugins.select.tabs.custom.empty_title")), 1)
|
|
18887
18876
|
]),
|
|
18888
18877
|
default: T(() => [
|
|
18889
|
-
S("span",
|
|
18878
|
+
S("span", p2, W(R(s)("plugins.select.tabs.custom.empty_description")), 1)
|
|
18890
18879
|
]),
|
|
18891
18880
|
_: 1
|
|
18892
18881
|
})),
|
|
18893
|
-
v.value && b.value ? (y(), K(
|
|
18882
|
+
v.value && b.value ? (y(), K(u2, {
|
|
18894
18883
|
key: 2,
|
|
18895
18884
|
config: e.config,
|
|
18896
18885
|
plugin: b.value,
|
|
@@ -18900,7 +18889,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18900
18889
|
]);
|
|
18901
18890
|
};
|
|
18902
18891
|
}
|
|
18903
|
-
}),
|
|
18892
|
+
}), h2 = /* @__PURE__ */ Rn(m2, [["__scopeId", "data-v-acd8a972"]]), A2 = { class: "plugin-card-container" }, y2 = { class: "plugin-card-container" }, v2 = /* @__PURE__ */ je({
|
|
18904
18893
|
__name: "PluginSelectGroup",
|
|
18905
18894
|
props: /* @__PURE__ */ Uc({
|
|
18906
18895
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -18950,7 +18939,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18950
18939
|
return p > r.pluginsPerRow ? l("plugins.select.view_more", { count: m }) : void 0;
|
|
18951
18940
|
});
|
|
18952
18941
|
return (p, m) => {
|
|
18953
|
-
const v =
|
|
18942
|
+
const v = te("KCollapse");
|
|
18954
18943
|
return y(), K(v, {
|
|
18955
18944
|
modelValue: n.value,
|
|
18956
18945
|
"onUpdate:modelValue": m[0] || (m[0] = (b) => n.value = b),
|
|
@@ -18960,8 +18949,8 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18960
18949
|
"trigger-label": n.value ? d.value : R(l)("plugins.select.view_less")
|
|
18961
18950
|
}, Gn({
|
|
18962
18951
|
"visible-content": T(() => [
|
|
18963
|
-
S("div",
|
|
18964
|
-
(y(!0), O(Re, null,
|
|
18952
|
+
S("div", A2, [
|
|
18953
|
+
(y(!0), O(Re, null, Ye(R(u)("visible", r.plugins, r.pluginsPerRow), (b, E) => (y(), K(ts, {
|
|
18965
18954
|
key: `plugin-card-${E}`,
|
|
18966
18955
|
config: e.config,
|
|
18967
18956
|
"navigate-on-click": e.navigateOnClick,
|
|
@@ -18971,8 +18960,8 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18971
18960
|
])
|
|
18972
18961
|
]),
|
|
18973
18962
|
default: T(() => [
|
|
18974
|
-
S("div",
|
|
18975
|
-
(y(!0), O(Re, null,
|
|
18963
|
+
S("div", y2, [
|
|
18964
|
+
(y(!0), O(Re, null, Ye(R(u)("hidden", r.plugins, r.pluginsPerRow), (b, E) => (y(), K(ts, {
|
|
18976
18965
|
key: `plugin-card-${E}`,
|
|
18977
18966
|
config: e.config,
|
|
18978
18967
|
"navigate-on-click": e.navigateOnClick,
|
|
@@ -18993,7 +18982,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
18993
18982
|
]), 1032, ["modelValue", "data-testid", "title", "trigger-label"]);
|
|
18994
18983
|
};
|
|
18995
18984
|
}
|
|
18996
|
-
}), Nd = /* @__PURE__ */ Rn(
|
|
18985
|
+
}), Nd = /* @__PURE__ */ Rn(v2, [["__scopeId", "data-v-a2f6c6cd"]]), b2 = { class: "plugin-select-grid" }, w2 = { class: "empty-state-title" }, C2 = { class: "empty-state-description" }, Pd = /* @__PURE__ */ je({
|
|
18997
18986
|
__name: "PluginSelectGrid",
|
|
18998
18987
|
props: {
|
|
18999
18988
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -19055,8 +19044,8 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19055
19044
|
return n.config.app === "konnect" && delete m[ae.CUSTOM_PLUGINS], m;
|
|
19056
19045
|
});
|
|
19057
19046
|
return (m, v) => {
|
|
19058
|
-
const b =
|
|
19059
|
-
return y(), O("div",
|
|
19047
|
+
const b = te("KEmptyState");
|
|
19048
|
+
return y(), O("div", b2, [
|
|
19060
19049
|
Object.keys(p.value).length ? se("", !0) : (y(), K(b, {
|
|
19061
19050
|
key: 0,
|
|
19062
19051
|
"action-button-visible": !1,
|
|
@@ -19065,10 +19054,10 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19065
19054
|
"icon-variant": "kong"
|
|
19066
19055
|
}, {
|
|
19067
19056
|
title: T(() => [
|
|
19068
|
-
S("span",
|
|
19057
|
+
S("span", w2, W(R(s)("plugins.select.tabs.kong.empty_title")), 1)
|
|
19069
19058
|
]),
|
|
19070
19059
|
default: T(() => [
|
|
19071
|
-
S("span",
|
|
19060
|
+
S("span", C2, W(R(s)("plugins.select.tabs.kong.empty_description")), 1)
|
|
19072
19061
|
]),
|
|
19073
19062
|
_: 1
|
|
19074
19063
|
})),
|
|
@@ -19083,7 +19072,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19083
19072
|
"plugins-per-row": e.pluginsPerRow,
|
|
19084
19073
|
onPluginClicked: v[1] || (v[1] = (E) => d(E))
|
|
19085
19074
|
}, null, 8, ["modelValue", "config", "name", "navigate-on-click", "plugins", "plugins-per-row"])) : se("", !0),
|
|
19086
|
-
(y(!0), O(Re, null,
|
|
19075
|
+
(y(!0), O(Re, null, Ye(R(uI), (E, B) => (y(), O(Re, null, [
|
|
19087
19076
|
p.value[E] ? (y(), O("div", { key: B }, [
|
|
19088
19077
|
X(Nd, {
|
|
19089
19078
|
modelValue: u.value[E],
|
|
@@ -19100,11 +19089,11 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19100
19089
|
]);
|
|
19101
19090
|
};
|
|
19102
19091
|
}
|
|
19103
|
-
}),
|
|
19092
|
+
}), E2 = { class: "kong-ui-entities-plugin-select-form" }, k2 = { class: "plugins-filter-input-container" }, O2 = { key: 0 }, I2 = {
|
|
19104
19093
|
key: 3,
|
|
19105
19094
|
"aria-live": "polite",
|
|
19106
19095
|
class: "plugins-results-container"
|
|
19107
|
-
},
|
|
19096
|
+
}, B2 = { "data-testid": "kong-tab" }, M2 = { class: "tab-description" }, x2 = { "data-testid": "custom-tab" }, S2 = { class: "tab-description" }, T2 = /* @__PURE__ */ je({
|
|
19108
19097
|
__name: "PluginSelect",
|
|
19109
19098
|
props: {
|
|
19110
19099
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -19195,7 +19184,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19195
19184
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
19196
19185
|
setup(e, { emit: a }) {
|
|
19197
19186
|
var ye, Me;
|
|
19198
|
-
const n = e, r = a, s = p1(), l = Ka(), { i18n: { t: u } } = bt.useI18n(), { pluginMetaData: d } = bt.usePluginMetaData(), { getMessageFromError: p } = os(), { sortAlpha: m, objectsAreEqual: v } = ls(), b = le(""), E = le(!0), B = le(!1), j = le(""), V = le([]), Y = le({}), ie = le([]), { axiosInstance: Z } = ga((ye = n.config) == null ? void 0 : ye.axiosRequestConfig),
|
|
19187
|
+
const n = e, r = a, s = p1(), l = Ka(), { i18n: { t: u } } = bt.useI18n(), { pluginMetaData: d } = bt.usePluginMetaData(), { getMessageFromError: p } = os(), { sortAlpha: m, objectsAreEqual: v } = ls(), b = le(""), E = le(!0), B = le(!1), j = le(""), V = le([]), Y = le({}), ie = le([]), { axiosInstance: Z } = ga((ye = n.config) == null ? void 0 : ye.axiosRequestConfig), ee = J(() => Y.value ? Object.entries(Y.value).filter(([de]) => de !== ae.CUSTOM_PLUGINS).reduce((de, [, ue]) => {
|
|
19199
19188
|
for (const we of ue)
|
|
19200
19189
|
de[we.id] = we;
|
|
19201
19190
|
return de;
|
|
@@ -19210,7 +19199,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19210
19199
|
}
|
|
19211
19200
|
return ue;
|
|
19212
19201
|
}), I = J(() => n.highlightedPluginIds.reduce((de, ue) => {
|
|
19213
|
-
const we =
|
|
19202
|
+
const we = ee.value[ue];
|
|
19214
19203
|
return we && de.push(we), de;
|
|
19215
19204
|
}, [])), C = J(() => Object.keys(N.value).length > 0), U = J(() => Object.keys(Y.value).length > 0 && !C.value), P = n.config.app === "konnect" ? [
|
|
19216
19205
|
{
|
|
@@ -19287,9 +19276,9 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19287
19276
|
}
|
|
19288
19277
|
B.value || (Y.value = Ae()), E.value = !1;
|
|
19289
19278
|
}), (de, ue) => {
|
|
19290
|
-
const we =
|
|
19291
|
-
return y(), O("div",
|
|
19292
|
-
S("div",
|
|
19279
|
+
const we = te("KInput"), he = te("KSkeletonBox"), Xe = te("KSkeleton"), $e = te("KEmptyState"), ft = te("KTabs");
|
|
19280
|
+
return y(), O("div", E2, [
|
|
19281
|
+
S("div", k2, [
|
|
19293
19282
|
X(we, {
|
|
19294
19283
|
modelValue: b.value,
|
|
19295
19284
|
"onUpdate:modelValue": ue[0] || (ue[0] = (st) => b.value = st),
|
|
@@ -19300,7 +19289,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19300
19289
|
type: "search"
|
|
19301
19290
|
}, null, 8, ["modelValue", "placeholder"])
|
|
19302
19291
|
]),
|
|
19303
|
-
E.value ? (y(), O("section",
|
|
19292
|
+
E.value ? (y(), O("section", O2, [
|
|
19304
19293
|
X(Xe, {
|
|
19305
19294
|
"table-rows": 1,
|
|
19306
19295
|
type: "table"
|
|
@@ -19314,7 +19303,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19314
19303
|
]),
|
|
19315
19304
|
_: 1
|
|
19316
19305
|
}),
|
|
19317
|
-
X(
|
|
19306
|
+
X(zR, {
|
|
19318
19307
|
"card-count": 8,
|
|
19319
19308
|
type: "card"
|
|
19320
19309
|
})
|
|
@@ -19338,7 +19327,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19338
19327
|
S("h5", null, W(R(u)("search.no_results", { filter: b.value })), 1)
|
|
19339
19328
|
]),
|
|
19340
19329
|
_: 1
|
|
19341
|
-
})) : (y(), O("section",
|
|
19330
|
+
})) : (y(), O("section", I2, [
|
|
19342
19331
|
R(P).length && !e.disableCustomPlugins ? (y(), K(ft, {
|
|
19343
19332
|
key: 0,
|
|
19344
19333
|
modelValue: ne.value,
|
|
@@ -19348,8 +19337,8 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19348
19337
|
onChange: oe
|
|
19349
19338
|
}, {
|
|
19350
19339
|
kong: T(() => [
|
|
19351
|
-
S("div",
|
|
19352
|
-
S("p",
|
|
19340
|
+
S("div", B2, [
|
|
19341
|
+
S("p", M2, W(R(u)("plugins.select.tabs.kong.description")), 1),
|
|
19353
19342
|
X(Pd, {
|
|
19354
19343
|
config: e.config,
|
|
19355
19344
|
"hide-highlighted-plugins": b.value.length > 0,
|
|
@@ -19363,9 +19352,9 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19363
19352
|
])
|
|
19364
19353
|
]),
|
|
19365
19354
|
custom: T(() => [
|
|
19366
|
-
S("div",
|
|
19367
|
-
S("p",
|
|
19368
|
-
X(
|
|
19355
|
+
S("div", x2, [
|
|
19356
|
+
S("p", S2, W(R(u)("plugins.select.tabs.custom.description")), 1),
|
|
19357
|
+
X(h2, {
|
|
19369
19358
|
"can-create-custom-plugin": ce.value,
|
|
19370
19359
|
"can-delete-custom-plugin": Ce.value,
|
|
19371
19360
|
"can-edit-custom-plugin": ke.value,
|
|
@@ -19395,7 +19384,7 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19395
19384
|
]);
|
|
19396
19385
|
};
|
|
19397
19386
|
}
|
|
19398
|
-
}),
|
|
19387
|
+
}), $2 = /* @__PURE__ */ Rn(T2, [["__scopeId", "data-v-32dfb7b0"]]), R2 = { class: "kong-ui-entity-plugin-config-card" }, L2 = { class: "name-cell-wrapper" }, N2 = { class: "info-name" }, P2 = { key: 0 }, j2 = { key: 0 }, D2 = { key: 0 }, U2 = { key: 0 }, Ro = "config", Y2 = /* @__PURE__ */ je({
|
|
19399
19388
|
__name: "PluginConfigCard",
|
|
19400
19389
|
props: {
|
|
19401
19390
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -19441,18 +19430,18 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19441
19430
|
var Z;
|
|
19442
19431
|
const n = a, r = e, { i18n: { t: s } } = bt.useI18n(), l = bt.usePluginMetaData(), { setFieldType: u } = bt.usePluginHelpers(), { getPropValue: d } = ls(), p = J(
|
|
19443
19432
|
() => {
|
|
19444
|
-
var
|
|
19445
|
-
return (
|
|
19433
|
+
var ee;
|
|
19434
|
+
return (ee = Lt.item[r.config.app]) == null ? void 0 : ee[r.scopedEntityType ? "forEntity" : "all"].replace(/{entityType}/gi, r.scopedEntityType).replace(/{entityId}/gi, r.scopedEntityId);
|
|
19446
19435
|
}
|
|
19447
19436
|
), m = J(() => {
|
|
19448
19437
|
var I, C;
|
|
19449
|
-
const
|
|
19438
|
+
const ee = {}, N = ((I = V.value) == null ? void 0 : I.fields) || [];
|
|
19450
19439
|
for (let U = 0; U < N.length; U++) {
|
|
19451
19440
|
const P = V.value.fields[U], ne = (C = Object.keys(P)) == null ? void 0 : C[0];
|
|
19452
|
-
u(
|
|
19441
|
+
u(ee, ne, P[ne]);
|
|
19453
19442
|
}
|
|
19454
19443
|
return {
|
|
19455
|
-
...
|
|
19444
|
+
...ee,
|
|
19456
19445
|
instance_name: {
|
|
19457
19446
|
section: Rt.Basic,
|
|
19458
19447
|
order: 1.5
|
|
@@ -19487,41 +19476,41 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19487
19476
|
var N, I, C;
|
|
19488
19477
|
if (!((N = V.value) != null && N.fields))
|
|
19489
19478
|
return [];
|
|
19490
|
-
const
|
|
19479
|
+
const ee = (I = V.value.fields) == null ? void 0 : I.find((U) => {
|
|
19491
19480
|
var ne;
|
|
19492
19481
|
return ((ne = Object.keys(U)) == null ? void 0 : ne[0]) === Ro;
|
|
19493
19482
|
});
|
|
19494
|
-
return ((C =
|
|
19483
|
+
return ((C = ee == null ? void 0 : ee[Ro]) == null ? void 0 : C.fields) || [];
|
|
19495
19484
|
}), b = J(() => {
|
|
19496
19485
|
var N, I;
|
|
19497
|
-
const
|
|
19486
|
+
const ee = {};
|
|
19498
19487
|
if (!v.value)
|
|
19499
|
-
return
|
|
19488
|
+
return ee;
|
|
19500
19489
|
for (let C = 0; C < ((N = v.value) == null ? void 0 : N.length); C++) {
|
|
19501
19490
|
const U = v.value[C], P = (I = Object.keys(U)) == null ? void 0 : I[0], ne = U[P];
|
|
19502
|
-
ne.required && (
|
|
19491
|
+
ne.required && (ee[P] = {
|
|
19503
19492
|
order: 1
|
|
19504
|
-
}), u(
|
|
19493
|
+
}), u(ee, P, ne);
|
|
19505
19494
|
}
|
|
19506
|
-
return
|
|
19495
|
+
return ee;
|
|
19507
19496
|
}), { getMessageFromError: E } = os(), { axiosInstance: B } = ga((Z = r.config) == null ? void 0 : Z.axiosRequestConfig), j = J(() => {
|
|
19508
19497
|
var N, I;
|
|
19509
|
-
let
|
|
19510
|
-
return r.config.app === "konnect" ?
|
|
19498
|
+
let ee = `${r.config.apiBaseUrl}${Lt.form[r.config.app].pluginSchema}`;
|
|
19499
|
+
return r.config.app === "konnect" ? ee = ee.replace(/{controlPlaneId}/gi, ((N = r.config) == null ? void 0 : N.controlPlaneId) || "") : r.config.app === "kongManager" && (ee = ee.replace(/\/{workspace}/gi, (I = r.config) != null && I.workspace ? `/${r.config.workspace}` : "")), ee = ee.replace(/{plugin}/gi, r.config.pluginType), ee;
|
|
19511
19500
|
}), V = le({}), Y = le(!1), ie = le("");
|
|
19512
19501
|
return Yi(async () => {
|
|
19513
19502
|
Y.value = !0;
|
|
19514
19503
|
try {
|
|
19515
|
-
const { data:
|
|
19516
|
-
V.value =
|
|
19517
|
-
} catch (
|
|
19518
|
-
ie.value = E(
|
|
19504
|
+
const { data: ee } = await B.get(j.value);
|
|
19505
|
+
V.value = ee;
|
|
19506
|
+
} catch (ee) {
|
|
19507
|
+
ie.value = E(ee), n("error:fetch-schema", ee);
|
|
19519
19508
|
} finally {
|
|
19520
19509
|
Y.value = !1;
|
|
19521
19510
|
}
|
|
19522
|
-
}), (
|
|
19523
|
-
const I =
|
|
19524
|
-
return y(), O("div",
|
|
19511
|
+
}), (ee, N) => {
|
|
19512
|
+
const I = te("KSkeleton"), C = te("KEmptyState"), U = te("KCopy");
|
|
19513
|
+
return y(), O("div", R2, [
|
|
19525
19514
|
Y.value ? (y(), K(I, {
|
|
19526
19515
|
key: 0,
|
|
19527
19516
|
"data-testid": "plugin-config-card-loader",
|
|
@@ -19545,18 +19534,18 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19545
19534
|
"hide-title": e.hideTitle,
|
|
19546
19535
|
"plugin-config-key": Ro,
|
|
19547
19536
|
"plugin-config-schema": b.value,
|
|
19548
|
-
"onFetch:error": N[0] || (N[0] = (P) =>
|
|
19549
|
-
"onFetch:success": N[1] || (N[1] = (P) =>
|
|
19550
|
-
onLoading: N[2] || (N[2] = (P) =>
|
|
19537
|
+
"onFetch:error": N[0] || (N[0] = (P) => ee.$emit("fetch:error", P)),
|
|
19538
|
+
"onFetch:success": N[1] || (N[1] = (P) => ee.$emit("fetch:success", P)),
|
|
19539
|
+
onLoading: N[2] || (N[2] = (P) => ee.$emit("loading", P))
|
|
19551
19540
|
}, {
|
|
19552
19541
|
name: T((P) => [
|
|
19553
|
-
S("div",
|
|
19542
|
+
S("div", L2, [
|
|
19554
19543
|
X(ll, {
|
|
19555
19544
|
class: "plugin-icon",
|
|
19556
19545
|
name: R(d)("rowValue", P),
|
|
19557
19546
|
width: 24
|
|
19558
19547
|
}, null, 8, ["name"]),
|
|
19559
|
-
S("span",
|
|
19548
|
+
S("span", N2, W(R(l).getDisplayName(R(d)("rowValue", P))), 1)
|
|
19560
19549
|
])
|
|
19561
19550
|
]),
|
|
19562
19551
|
consumer: T((P) => [
|
|
@@ -19567,13 +19556,13 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19567
19556
|
value: R(d)("rowValue", P).id,
|
|
19568
19557
|
type: R(ze).LinkInternal
|
|
19569
19558
|
},
|
|
19570
|
-
onNavigationClick: () =>
|
|
19559
|
+
onNavigationClick: () => ee.$emit("navigation-click", R(d)("rowValue", P).id, "consumer")
|
|
19571
19560
|
}, null, 8, ["item", "onNavigationClick"])) : (y(), K(U, {
|
|
19572
19561
|
key: 2,
|
|
19573
19562
|
"copy-tooltip": R(s)("copy.tooltip", { label: R(d)("row", P).label }),
|
|
19574
19563
|
"data-testid": "consumer-copy-uuid",
|
|
19575
19564
|
text: R(d)("rowValue", P).id
|
|
19576
|
-
}, null, 8, ["copy-tooltip", "text"])) : (y(), O("span",
|
|
19565
|
+
}, null, 8, ["copy-tooltip", "text"])) : (y(), O("span", P2, "–"))
|
|
19577
19566
|
]),
|
|
19578
19567
|
route: T((P) => [
|
|
19579
19568
|
R(d)("rowValue", P) ? e.showIdAsLink ? (y(), K(R(Ra), {
|
|
@@ -19583,13 +19572,13 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19583
19572
|
value: R(d)("rowValue", P).id,
|
|
19584
19573
|
type: R(ze).LinkInternal
|
|
19585
19574
|
},
|
|
19586
|
-
onNavigationClick: () =>
|
|
19575
|
+
onNavigationClick: () => ee.$emit("navigation-click", R(d)("rowValue", P).id, "route")
|
|
19587
19576
|
}, null, 8, ["item", "onNavigationClick"])) : (y(), K(U, {
|
|
19588
19577
|
key: 2,
|
|
19589
19578
|
"copy-tooltip": R(s)("copy.tooltip", { label: R(d)("row", P).label }),
|
|
19590
19579
|
"data-testid": "route-copy-uuid",
|
|
19591
19580
|
text: R(d)("rowValue", P).id
|
|
19592
|
-
}, null, 8, ["copy-tooltip", "text"])) : (y(), O("span",
|
|
19581
|
+
}, null, 8, ["copy-tooltip", "text"])) : (y(), O("span", j2, "–"))
|
|
19593
19582
|
]),
|
|
19594
19583
|
service: T((P) => [
|
|
19595
19584
|
R(d)("rowValue", P) ? e.showIdAsLink ? (y(), K(R(Ra), {
|
|
@@ -19599,13 +19588,13 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19599
19588
|
value: R(d)("rowValue", P).id,
|
|
19600
19589
|
type: R(ze).LinkInternal
|
|
19601
19590
|
},
|
|
19602
|
-
onNavigationClick: () =>
|
|
19591
|
+
onNavigationClick: () => ee.$emit("navigation-click", R(d)("rowValue", P).id, "service")
|
|
19603
19592
|
}, null, 8, ["item", "onNavigationClick"])) : (y(), K(U, {
|
|
19604
19593
|
key: 2,
|
|
19605
19594
|
"copy-tooltip": R(s)("copy.tooltip", { label: R(d)("row", P).label }),
|
|
19606
19595
|
"data-testid": "service-copy-uuid",
|
|
19607
19596
|
text: R(d)("rowValue", P).id
|
|
19608
|
-
}, null, 8, ["copy-tooltip", "text"])) : (y(), O("span",
|
|
19597
|
+
}, null, 8, ["copy-tooltip", "text"])) : (y(), O("span", D2, "–"))
|
|
19609
19598
|
]),
|
|
19610
19599
|
consumer_group: T((P) => [
|
|
19611
19600
|
R(d)("rowValue", P) ? e.showIdAsLink ? (y(), K(R(Ra), {
|
|
@@ -19615,34 +19604,34 @@ const ST = /* @__PURE__ */ Ge(mT, [["render", xT], ["__scopeId", "data-v-e7395ff
|
|
|
19615
19604
|
value: R(d)("rowValue", P).id,
|
|
19616
19605
|
type: R(ze).LinkInternal
|
|
19617
19606
|
},
|
|
19618
|
-
onNavigationClick: () =>
|
|
19607
|
+
onNavigationClick: () => ee.$emit("navigation-click", R(d)("rowValue", P).id, "consumer_group")
|
|
19619
19608
|
}, null, 8, ["item", "onNavigationClick"])) : (y(), K(U, {
|
|
19620
19609
|
key: 2,
|
|
19621
19610
|
"copy-tooltip": R(s)("copy.tooltip", { label: R(d)("row", P).label }),
|
|
19622
19611
|
"data-testid": "consumer-group-copy-uuid",
|
|
19623
19612
|
text: R(d)("rowValue", P).id
|
|
19624
|
-
}, null, 8, ["copy-tooltip", "text"])) : (y(), O("span",
|
|
19613
|
+
}, null, 8, ["copy-tooltip", "text"])) : (y(), O("span", U2, "–"))
|
|
19625
19614
|
]),
|
|
19626
19615
|
_: 1
|
|
19627
19616
|
}, 8, ["config", "config-card-doc", "config-schema", "fetch-url", "hide-title", "plugin-config-schema"]))
|
|
19628
19617
|
]);
|
|
19629
19618
|
};
|
|
19630
19619
|
}
|
|
19631
|
-
}),
|
|
19620
|
+
}), eL = /* @__PURE__ */ Rn(Y2, [["__scopeId", "data-v-3e4f66ec"]]), { usePluginMetaData: tL } = bt;
|
|
19632
19621
|
export {
|
|
19633
19622
|
sa as EntityTypeIdField,
|
|
19634
19623
|
cI as PLUGIN_GROUPS_COLLAPSE_STATUS,
|
|
19635
|
-
|
|
19636
|
-
|
|
19624
|
+
eL as PluginConfigCard,
|
|
19625
|
+
Q2 as PluginForm,
|
|
19637
19626
|
ae as PluginGroup,
|
|
19638
19627
|
uI as PluginGroupArray,
|
|
19639
19628
|
ll as PluginIcon,
|
|
19640
|
-
|
|
19629
|
+
_2 as PluginList,
|
|
19641
19630
|
h as PluginScope,
|
|
19642
|
-
|
|
19631
|
+
$2 as PluginSelect,
|
|
19643
19632
|
Pd as PluginSelectGrid,
|
|
19644
19633
|
dn as VueFormGenerator,
|
|
19645
19634
|
HI as getPluginIconURL,
|
|
19646
19635
|
Lt as pluginEndpoints,
|
|
19647
|
-
|
|
19636
|
+
tL as usePluginMetaData
|
|
19648
19637
|
};
|